vue-data-ui 0.3.3 → 0.3.5
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.
|
@@ -12820,7 +12820,7 @@ function(e) {
|
|
|
12820
12820
|
*/
|
|
12821
12821
|
function(e) {
|
|
12822
12822
|
function t() {
|
|
12823
|
-
return (Ft.canvg ? Promise.resolve(Ft.canvg) : import("./index.es-
|
|
12823
|
+
return (Ft.canvg ? Promise.resolve(Ft.canvg) : import("./index.es-f18f5e9a.js")).catch(function(A) {
|
|
12824
12824
|
return Promise.reject(new Error("Could not load canvg: " + A));
|
|
12825
12825
|
}).then(function(A) {
|
|
12826
12826
|
return A.default ? A.default : A;
|
|
@@ -29874,7 +29874,7 @@ function ca({ defaultConfig: e, userConfig: t }) {
|
|
|
29874
29874
|
}), A;
|
|
29875
29875
|
}
|
|
29876
29876
|
function m6({ userConfig: e, key: t }) {
|
|
29877
|
-
return Object.hasOwn(e, t) && Array.isArray(e[t]) && e[t].length;
|
|
29877
|
+
return Object.hasOwn(e, t) && Array.isArray(e[t]) && e[t].length >= 0;
|
|
29878
29878
|
}
|
|
29879
29879
|
function B6({ userConfig: e, key: t }) {
|
|
29880
29880
|
return Object.hasOwn(e, t) && !Array.isArray(e[t]) && typeof e[t] == "object";
|
|
@@ -30588,7 +30588,7 @@ const Pa = (e, t) => {
|
|
|
30588
30588
|
l.href = window.URL.createObjectURL(o), l.download = `${this.chartConfig.chart.title.text.replaceAll(" ", "_") || "vue-ui-xy"}.xlsx`, l.click(), window.URL.revokeObjectURL(l.href);
|
|
30589
30589
|
}
|
|
30590
30590
|
}
|
|
30591
|
-
}, L6 = (e) => (kc("data-v-
|
|
30591
|
+
}, L6 = (e) => (kc("data-v-df19898b"), e = e(), Tc(), e), k6 = ["id"], T6 = { class: "vue-ui-xy-user-option-item" }, I6 = ["id", "name"], N6 = ["for"], D6 = { class: "vue-ui-xy-user-option-item" }, O6 = ["id", "name"], M6 = ["for"], H6 = { class: "vue-ui-xy-user-option-item" }, P6 = ["id", "name"], R6 = ["for"], K6 = { class: "vue-ui-xy-user-option-item" }, V6 = ["id", "name"], G6 = ["for"], z6 = ["disabled"], j6 = ["stroke"], W6 = /* @__PURE__ */ Oa('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-df19898b></path><path d="M18 16v.01" data-v-df19898b></path><path d="M6 16v.01" data-v-df19898b></path><path d="M12 5v.01" data-v-df19898b></path><path d="M12 12v.01" data-v-df19898b></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-df19898b></path>', 6), $6 = [
|
|
30592
30592
|
W6
|
|
30593
30593
|
], X6 = { key: 1 }, q6 = ["viewBox"], Y6 = { class: "vue-ui-xy-grid" }, J6 = ["stroke", "x1", "x2", "y1", "y2"], Z6 = ["stroke", "x1", "x2", "y1", "y2"], e8 = { key: 0 }, t8 = ["x1", "x2", "y1", "y2", "stroke"], A8 = ["id"], r8 = ["stop-color"], n8 = ["stop-color"], a8 = ["stop-color"], i8 = ["id"], s8 = ["stop-color"], o8 = ["stop-color"], l8 = ["stop-color"], u8 = ["id"], c8 = ["stop-color"], h8 = ["stop-color"], f8 = ["id"], d8 = ["stop-color"], g8 = ["stop-color"], v8 = ["x", "y", "height", "width", "fill"], p8 = ["cx", "cy", "r", "fill", "stroke"], w8 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], y8 = ["cx", "cy", "r", "fill", "stroke"], m8 = { key: 0 }, B8 = ["x", "y", "font-size", "fill"], x8 = { key: 1 }, b8 = ["x", "y", "font-size", "fill"], C8 = { key: 2 }, F8 = ["x", "y", "font-size", "fill"], _8 = { key: 3 }, E8 = ["x1", "x2", "y1", "y2", "stroke"], S8 = ["x", "y", "font-size", "fill"], U8 = ["font-size", "fill"], Q8 = ["x", "y", "font-size", "fill"], L8 = { key: 4 }, k8 = {
|
|
30594
30594
|
x: "0",
|
|
@@ -30600,7 +30600,7 @@ const Pa = (e, t) => {
|
|
|
30600
30600
|
key: 2,
|
|
30601
30601
|
class: "vue-ui-xy-range-slider",
|
|
30602
30602
|
"data-html2canvas-ignore": ""
|
|
30603
|
-
}, K8 = { class: "vue-ui-xy-slider--left" }, V8 = ["for"], G8 = ["id", "max"], z8 = { class: "vue-ui-xy-slider--right" }, j8 = ["for"], W8 = ["id", "
|
|
30603
|
+
}, K8 = { class: "vue-ui-xy-slider--left" }, V8 = ["for"], G8 = ["id", "max"], z8 = { class: "vue-ui-xy-slider--right" }, j8 = ["for"], W8 = ["id", "max"], $8 = ["onClick"], X8 = ["innerHTML"], q8 = ["innerHTML"], Y8 = { class: "vue-ui-xy-table" }, J8 = { style: { "max-width": "200px", margin: "0 auto", "text-align": "center" } }, Z8 = /* @__PURE__ */ L6(() => /* @__PURE__ */ T("svg", {
|
|
30604
30604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30605
30605
|
width: "16",
|
|
30606
30606
|
height: "16",
|
|
@@ -31108,7 +31108,7 @@ function AU(e, t, A, r, n, a) {
|
|
|
31108
31108
|
type: "range",
|
|
31109
31109
|
style: oe(`accent-color:${a.chartConfig.chart.zoom.color}`),
|
|
31110
31110
|
min: 0,
|
|
31111
|
-
max:
|
|
31111
|
+
max: n.maxX,
|
|
31112
31112
|
"onUpdate:modelValue": t[8] || (t[8] = (i) => n.slicer.start = i)
|
|
31113
31113
|
}, null, 12, G8), [
|
|
31114
31114
|
[Ii, n.slicer.start]
|
|
@@ -31122,7 +31122,7 @@ function AU(e, t, A, r, n, a) {
|
|
|
31122
31122
|
id: `end_${n.uniqueId}`,
|
|
31123
31123
|
type: "range",
|
|
31124
31124
|
style: oe(`accent-color:${a.chartConfig.chart.zoom.color}`),
|
|
31125
|
-
min:
|
|
31125
|
+
min: 0,
|
|
31126
31126
|
max: n.maxX,
|
|
31127
31127
|
"onUpdate:modelValue": t[9] || (t[9] = (i) => n.slicer.end = i)
|
|
31128
31128
|
}, null, 12, W8), [
|
|
@@ -31208,7 +31208,7 @@ function AU(e, t, A, r, n, a) {
|
|
|
31208
31208
|
], 2)) : ye("", !0)
|
|
31209
31209
|
], 12, k6);
|
|
31210
31210
|
}
|
|
31211
|
-
const eO = /* @__PURE__ */ Pa(Q6, [["render", AU], ["__scopeId", "data-v-
|
|
31211
|
+
const eO = /* @__PURE__ */ Pa(Q6, [["render", AU], ["__scopeId", "data-v-df19898b"]]);
|
|
31212
31212
|
const rU = {
|
|
31213
31213
|
name: "vue-ui-table",
|
|
31214
31214
|
props: {
|
|
@@ -37111,7 +37111,7 @@ const TN = ["id"], IN = { class: "vue-ui-chestnut-user-option-item" }, NN = ["id
|
|
|
37111
37111
|
], 12, TN));
|
|
37112
37112
|
}
|
|
37113
37113
|
}, sO = /* @__PURE__ */ Pa(yD, [["__scopeId", "data-v-bb11d54e"]]);
|
|
37114
|
-
const mD = ["id"], BD = { class: "vue-ui-onion-user-option-item" }, xD = ["id", "name"], bD = ["for"], CD = { class: "vue-ui-onion-user-option-item" }, FD = ["id", "name"], _D = ["for"], ED = ["disabled"], SD = ["stroke"], UD = /* @__PURE__ */ Oa('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-
|
|
37114
|
+
const mD = ["id"], BD = { class: "vue-ui-onion-user-option-item" }, xD = ["id", "name"], bD = ["for"], CD = { class: "vue-ui-onion-user-option-item" }, FD = ["id", "name"], _D = ["for"], ED = ["disabled"], SD = ["stroke"], UD = /* @__PURE__ */ Oa('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1bfaa13f></path><path d="M18 16v.01" data-v-1bfaa13f></path><path d="M6 16v.01" data-v-1bfaa13f></path><path d="M12 5v.01" data-v-1bfaa13f></path><path d="M12 12v.01" data-v-1bfaa13f></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-1bfaa13f></path>', 6), QD = [
|
|
37115
37115
|
UD
|
|
37116
37116
|
], LD = { key: 1 }, kD = ["viewBox"], TD = ["id"], ID = ["stop-color"], ND = ["stop-color"], DD = ["stop-color"], OD = { key: 0 }, MD = ["font-size", "fill", "x", "y"], HD = ["font-size", "fill", "x", "y"], PD = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], RD = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], KD = { key: 1 }, VD = ["cx", "cy", "r", "fill"], GD = { key: 2 }, zD = ["x", "y", "font-size", "fill", "font-weight"], jD = ["y", "height"], WD = ["onClick"], $D = ["onClick"], XD = { key: 0 }, qD = { key: 0 }, YD = ["colspan"], JD = {
|
|
37117
37117
|
__name: "vue-ui-onion",
|
|
@@ -37258,9 +37258,10 @@ const mD = ["id"], BD = { class: "vue-ui-onion-user-option-item" }, xD = ["id",
|
|
|
37258
37258
|
gutter: h.value.width / 2 / f.value * l.value.style.chart.layout.gutter.width,
|
|
37259
37259
|
track: h.value.width / 2 / f.value * l.value.style.chart.layout.track.width
|
|
37260
37260
|
})), b = it(() => d.value.filter((P) => !B.value.includes(P.id)).map((P, Ae) => {
|
|
37261
|
-
const Q = (h.value.maxRadius - p.value.track) / f.value / 2 * (1 + Ae);
|
|
37261
|
+
const Q = (h.value.maxRadius - p.value.track) / f.value / 2 * (1 + Ae), k = h.value.centerY - (h.value.centerY - h.value.top - l.value.style.chart.layout.labels.fontSize) / f.value * (Ae + 1);
|
|
37262
37262
|
return {
|
|
37263
37263
|
...P,
|
|
37264
|
+
labelY: k,
|
|
37264
37265
|
radius: Q,
|
|
37265
37266
|
path: E(Q, P.percentage)
|
|
37266
37267
|
};
|
|
@@ -37487,14 +37488,17 @@ const mD = ["id"], BD = { class: "vue-ui-onion-user-option-item" }, xD = ["id",
|
|
|
37487
37488
|
}, null, 8, VD))), 256))
|
|
37488
37489
|
])) : ye("", !0),
|
|
37489
37490
|
l.value.style.chart.layout.labels.show ? (S(), U("g", GD, [
|
|
37490
|
-
(S(!0), U(He, null, Ke(b.value, (Q) => (S(), U("
|
|
37491
|
-
|
|
37492
|
-
|
|
37493
|
-
|
|
37494
|
-
|
|
37495
|
-
|
|
37496
|
-
|
|
37497
|
-
|
|
37491
|
+
(S(!0), U(He, null, Ke(b.value, (Q) => (S(), U("g", null, [
|
|
37492
|
+
B.value.includes(Q.id) ? ye("", !0) : (S(), U("text", {
|
|
37493
|
+
key: 0,
|
|
37494
|
+
x: v.value.width / 2 - p.value.gutter * 0.8 + l.value.style.chart.layout.labels.offsetX,
|
|
37495
|
+
y: Q.labelY,
|
|
37496
|
+
"text-anchor": "end",
|
|
37497
|
+
"font-size": l.value.style.chart.layout.labels.fontSize,
|
|
37498
|
+
fill: l.value.style.chart.layout.labels.color,
|
|
37499
|
+
"font-weight": l.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
37500
|
+
}, X(Q.name) + " " + X(l.value.style.chart.layout.labels.percentage.show ? ` : ${Q.percentage.toFixed(l.value.style.chart.layout.labels.roundingPercentage)}%` : "") + " " + X(!l.value.style.chart.layout.labels.percentage.show && l.value.style.chart.layout.labels.value.show ? ` : ${Q.value ? `${Q.prefix}${Q.value.toFixed(l.value.style.chart.layout.labels.roundingValue)}${Q.suffix}` : ""}` : `${l.value.style.chart.layout.labels.value.show && Q.value ? `(${Q.prefix}${Q.value.toFixed(l.value.style.chart.layout.labels.roundingValue)}${Q.suffix})` : ""}`), 9, zD))
|
|
37501
|
+
]))), 256))
|
|
37498
37502
|
])) : ye("", !0),
|
|
37499
37503
|
l.value.style.chart.legend.show && c.value.inside && !i.value ? (S(), U("foreignObject", {
|
|
37500
37504
|
key: 3,
|
|
@@ -37587,7 +37591,7 @@ const mD = ["id"], BD = { class: "vue-ui-onion-user-option-item" }, xD = ["id",
|
|
|
37587
37591
|
], 4)) : ye("", !0)
|
|
37588
37592
|
], 12, mD));
|
|
37589
37593
|
}
|
|
37590
|
-
}, oO = /* @__PURE__ */ Pa(JD, [["__scopeId", "data-v-
|
|
37594
|
+
}, oO = /* @__PURE__ */ Pa(JD, [["__scopeId", "data-v-1bfaa13f"]]);
|
|
37591
37595
|
export {
|
|
37592
37596
|
aA as _,
|
|
37593
37597
|
tO as a,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Ha } from "./index-
|
|
1
|
+
import { _ as Ha } from "./index-b8f74737.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function Vo(a) {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vue-ui-xy *[data-v-b0d1b95b]{transition:unset}.vue-ui-xy[data-v-b0d1b95b]{position:relative;padding-top:36px}.vue-ui-xy-user-options[data-v-b0d1b95b]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px}.vue-ui-xy-user-options[open][data-v-b0d1b95b]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-b0d1b95b]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-b0d1b95b]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-b0d1b95b]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-b0d1b95b]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-b0d1b95b]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;cursor:pointer}.vue-ui-xy-legend-item-segregated[data-v-b0d1b95b]{opacity:.5}.vue-ui-xy-title[data-v-b0d1b95b]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-b0d1b95b]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-b0d1b95b]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-b0d1b95b]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-b0d1b95b]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-b0d1b95b]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-b0d1b95b]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table thead[data-v-b0d1b95b]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-b0d1b95b]{background:#e1e5e8}.vue-ui-xy-button[data-v-b0d1b95b]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-b0d1b95b]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-b0d1b95b]{animation:smartspin-b0d1b95b .5s infinite linear}@keyframes smartspin-b0d1b95b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-xy-range-slider[data-v-b0d1b95b]{width:100%;margin-bottom:12px;display:flex;flex-direction:row}.vue-ui-xy-slider--left[data-v-b0d1b95b],.vue-ui-xy-slider--right[data-v-b0d1b95b]{width:100%;padding:0 12px;display:flex;flex-direction:column}.vue-ui-xy-slider--left input[data-v-b0d1b95b],.vue-ui-xy-slider--right input[data-v-b0d1b95b]{width:100%}.vue-ui-xy-slider--right[data-v-b0d1b95b]{align-items:flex-end;margin-left:-10px}.vue-ui-xy-slider--left[data-v-b0d1b95b]{align-items:flex-start;margin-right:-10px}.vue-ui-table-main[data-v-0eae4ec3]{height:fit-content;padding:0 0 98px;position:relative}.vue-ui-table__wrapper[data-v-0eae4ec3]{overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}.vue-ui-table-main thead[data-v-0eae4ec3]{position:sticky;top:0}.vue-ui-table[data-v-0eae4ec3]{width:100%;position:relative}.vue-ui-table-main table[data-v-0eae4ec3]{border-collapse:collapse}.vue-ui-table-main th[data-v-0eae4ec3],.vue-ui-table-main td[data-v-0eae4ec3]{padding:3px 8px}.vue-ui-table-main tr td[data-v-0eae4ec3]{outline:1px solid white}.vue-ui-table-main .th-numeric[data-v-0eae4ec3]{text-align:right;font-variant-numeric:tabular-nums}.vue-ui-table-main .th-filter[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.vue-ui-table-main button[data-v-0eae4ec3]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.vue-ui-table-main input[data-v-0eae4ec3]{padding:0 6px;font-family:Satoshi}.vue-ui-table-main button[data-v-0eae4ec3],.vue-ui-table-main input[data-v-0eae4ec3]{border-radius:6px;height:32px}.vue-ui-table-main button[data-v-0eae4ec3]{border:1px solid grey}.vue-ui-table-main button[data-v-0eae4ec3]:hover,.vue-ui-table-main button[data-v-0eae4ec3]:focus,.vue-ui-table-main input[data-v-0eae4ec3]:hover,.vue-ui-table-main input[data-v-0eae4ec3]:focus{outline:3px solid rgba(128,128,128,.432)}.vue-ui-table-main button.clicked[data-v-0eae4ec3]{animation:clicked-0eae4ec3 .15s ease-in-out}.vue-ui-table-main button[disabled][data-v-0eae4ec3]{cursor:not-allowed}.vue-ui-table-main button[disabled][data-v-0eae4ec3]:focus,.vue-ui-table-main button[disabled][data-v-0eae4ec3]:hover{outline:none}button.th-reset[data-v-0eae4ec3]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}.vue-ui-table-main button.th-reset[data-v-0eae4ec3]:not(:disabled):hover,.vue-ui-table-main button.th-reset[data-v-0eae4ec3]:not(:disabled):focus{outline:3px solid #f171717e}.vue-ui-table-main [data-is-open=false][data-v-0eae4ec3]{transform:scale(0)}.vue-ui-table-main .th-dropdown[data-is-open=true][data-v-0eae4ec3]{animation:open-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .th-dropdown[data-is-open=false][data-v-0eae4ec3]{animation:close-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .th-dropdown[data-v-0eae4ec3]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.vue-ui-table-main .th-option[data-v-0eae4ec3]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.vue-ui-table-main .th-option[data-v-0eae4ec3]:hover{background-color:#ffffff1a;box-shadow:0 3px 6px -3px #00000080;z-index:1}.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3],.vue-ui-table-main button.close-chart-modal[data-v-0eae4ec3]{align-items:center;border-radius:50%;border:none;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3]:hover,.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3]:focus,.vue-ui-table-main button.close-chart-modal[data-v-0eae4ec3]:hover,.vue-ui-table-main button.close-char-modal[data-v-0eae4ec3]:focus{outline:3px solid #2d353c71}.vue-ui-table-main .th-button-active[data-v-0eae4ec3]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.vue-ui-table-main .th-button-active[data-v-0eae4ec3]:hover,.vue-ui-table-main .th-button-active[data-v-0eae4ec3]:focus{outline:3px solid #6375dd7a}.vue-ui-table-main .th-date[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--inputs[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--button[data-v-0eae4ec3]{display:flex;gap:3px}.vue-ui-table-main input[type=date][data-v-0eae4ec3]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.vue-ui-table-main .date-fieldset[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-fieldset label[data-v-0eae4ec3]{font-size:12px;font-weight:400}@keyframes clicked-0eae4ec3{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}.vue-ui-table-main td.td-numeric[data-v-0eae4ec3]{cursor:pointer}.vue-ui-table-main .td-selector-info[data-v-0eae4ec3]{align-items:center;border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]:hover,.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]:focus{outline:3px solid #f171717e}.vue-ui-table-main .format-num[data-v-0eae4ec3]{font-variant-numeric:tabular-nums}.vue-ui-table-main .td-selector-icon[data-v-0eae4ec3]{margin-bottom:-5px;margin-right:6px}.vue-ui-table-main .vue-ui-table-pagination[data-v-0eae4ec3]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}.vue-ui-table-main button.vue-ui-table-navigation[data-v-0eae4ec3]{height:36px;padding:1px;width:36px}.vue-ui-table-main .vue-ui-table-navigation-indicator[data-v-0eae4ec3]{border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.vue-ui-table-main .vue-ui-table-page-scroller-wrapper[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;justify-content:center}.vue-ui-table-main input.vue-ui-table-page-scroller[data-v-0eae4ec3]{cursor:pointer;height:24px;padding:0}.vue-ui-table-main .vue-ui-table-paginator[data-v-0eae4ec3]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-paginator select[data-v-0eae4ec3]{border-radius:3px}.vue-ui-table-main .vue-ui-table-size-warning[data-v-0eae4ec3]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}.vue-ui-table-main th.vue-ui-table-col-selector[data-v-0eae4ec3]{height:12px}.vue-ui-table-main .col-selector[data-v-0eae4ec3]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}.vue-ui-table-main th.col-selector--selected[data-v-0eae4ec3]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}.vue-ui-table-main th.col-selector--selected div[data-v-0eae4ec3]{background:transparent;color:#fff}.vue-ui-table-main .vue-ui-table-chart-modal[data-v-0eae4ec3]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.vue-ui-table-main .vue-ui-table-chart-svg[data-v-0eae4ec3]{border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-donut-chart[data-v-0eae4ec3]{border-radius:6px}.vue-ui-table-main td.vue-ui-table-td-iteration[data-v-0eae4ec3]{font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.vue-ui-table-main .chart-trend[data-v-0eae4ec3]{font-size:12px;padding-left:12px}.vue-ui-table-main .chart-modal-options[data-v-0eae4ec3]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.vue-ui-table-main .chart-modal-options button[data-v-0eae4ec3]{height:24px;padding:3px;width:24px}.vue-ui-table-main .th-range-filter[data-v-0eae4ec3]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.vue-ui-table-main .th-range-filter input[data-v-0eae4ec3]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.vue-ui-table-main .th-range-filter label[data-v-0eae4ec3]{font-size:12px;font-weight:400;margin-bottom:-3px}.vue-ui-table-main .vue-ui-table-fieldset-wrapper[data-v-0eae4ec3]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.vue-ui-table-main .vue-ui-table-fieldset[data-v-0eae4ec3]{border-radius:6px;margin-bottom:24px;border:1px solid white}.vue-ui-table-main .vue-ui-table-fieldset legend[data-v-0eae4ec3]{color:gray}.vue-ui-table-main .vue-ui-table-fieldset-option[data-v-0eae4ec3]{display:flex;align-items:center}.vue-ui-table-main .vue-ui-table-fieldset-option input[data-v-0eae4ec3]{height:14px;width:14px;border-radius:50%}.vue-ui-table-main button.vue-ui-table-generate-donut[data-v-0eae4ec3]{align-items:center;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}.vue-ui-table-main button.vue-ui-table-generate-donut[disabled][data-v-0eae4ec3]{opacity:.5}.vue-ui-table-main .vue-ui-table-donut-legend[data-v-0eae4ec3]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.vue-ui-table-main .vue-ui-table-donut-legend-item[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.vue-ui-table-main .vue-ui-table-donut-label[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-table-main .vue-ui-table-donut-label-name[data-v-0eae4ec3]{font-size:3px;line-height:3px}.vue-ui-table-main td[data-v-0eae4ec3]:focus{outline:3px solid #202d7470}.vue-ui-table-main .vue-ui-table-export-hub[data-v-0eae4ec3]{left:5px;position:absolute;top:0;z-index:1001}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-v-0eae4ec3]{position:absolute;top:40px;left:0;padding:24px;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=true][data-v-0eae4ec3]{animation:open-dropdown-0eae4ec3 .2s ease-in forwards}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=false][data-v-0eae4ec3]{animation:close-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .vue-ui-table-export-hub-options[data-v-0eae4ec3]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.vue-ui-table-main .vue-ui-table-export-hub-options button[data-v-0eae4ec3]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper .label[data-v-0eae4ec3]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.vue-ui-table-main .td-nan[data-v-0eae4ec3]{background:#F17171}.vue-ui-table-main .td-has-nan[data-v-0eae4ec3],.vue-ui-table-main .th-has-nan[data-v-0eae4ec3]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-0eae4ec3{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-0eae4ec3{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}.vue-ui-donut *[data-v-976beb1e]{transition:unset}.vue-ui-donut[data-v-976beb1e]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-donut .vue-ui-donut-label[data-v-976beb1e]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-donut-legend[data-v-976beb1e]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-donut-legend-item[data-v-976beb1e]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-donut-tooltip[data-v-976beb1e]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-donut-user-options[data-v-976beb1e]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-donut-user-options[open][data-v-976beb1e]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-donut summary[data-v-976beb1e]{text-align:right;direction:rtl}.vue-ui-donut-user-options-items[data-v-976beb1e]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-donut-user-options-item[data-v-976beb1e]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-donut-button[data-v-976beb1e]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-donut-button[data-v-976beb1e]:hover{background:rgba(0,0,0,.05)}.vue-ui-donut-print-icon[data-v-976beb1e]{animation:smartspin-976beb1e .5s infinite linear}@keyframes smartspin-976beb1e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-donut table[data-v-976beb1e]{width:100%;border-collapse:collapse}.vue-ui-donut table td[data-v-976beb1e]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-donut table th[data-v-976beb1e]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-waffle *[data-v-5e4533da]{transition:unset}.vue-ui-waffle[data-v-5e4533da]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-waffle .vue-ui-waffle-label[data-v-5e4533da]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-waffle-legend[data-v-5e4533da]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-waffle-legend-item[data-v-5e4533da]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-waffle-tooltip[data-v-5e4533da]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-waffle-user-options[data-v-5e4533da]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-waffle-user-options[open][data-v-5e4533da]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-waffle summary[data-v-5e4533da]{text-align:right;direction:rtl}.vue-ui-waffle-user-options-items[data-v-5e4533da]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-waffle-user-options-item[data-v-5e4533da]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-waffle-button[data-v-5e4533da]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-waffle-button[data-v-5e4533da]:hover{background:rgba(0,0,0,.05)}.vue-ui-waffle-print-icon[data-v-5e4533da]{animation:smartspin-5e4533da .5s infinite linear}@keyframes smartspin-5e4533da{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-waffle table[data-v-5e4533da]{width:100%;border-collapse:collapse}.vue-ui-waffle table td[data-v-5e4533da]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-waffle table th[data-v-5e4533da]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-radar *[data-v-0a1b704d]{transition:unset}.vue-ui-radar[data-v-0a1b704d]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-radar .vue-ui-radar-label[data-v-0a1b704d]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-radar-legend[data-v-0a1b704d]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-radar-legend-item[data-v-0a1b704d]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-radar-tooltip[data-v-0a1b704d]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-radar-user-options[data-v-0a1b704d]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-radar-user-options[open][data-v-0a1b704d]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-radar summary[data-v-0a1b704d]{text-align:right;direction:rtl}.vue-ui-radar-user-options-items[data-v-0a1b704d]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-radar-user-options-item[data-v-0a1b704d]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-radar-button[data-v-0a1b704d]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-radar-button[data-v-0a1b704d]:hover{background:rgba(0,0,0,.05)}.vue-ui-radar-print-icon[data-v-0a1b704d]{animation:smartspin-0a1b704d .5s infinite linear}@keyframes smartspin-0a1b704d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-radar table[data-v-0a1b704d]{width:100%;border-collapse:collapse}.vue-ui-radar table td[data-v-0a1b704d]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-radar table th[data-v-0a1b704d]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-quadrant *[data-v-b7a555f6]{transition:unset}.vue-ui-quadrant[data-v-b7a555f6]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-quadrant .vue-ui-quadrant-label[data-v-b7a555f6]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-quadrant-legend[data-v-b7a555f6]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-quadrant-legend-item[data-v-b7a555f6]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-quadrant-tooltip[data-v-b7a555f6]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-quadrant-user-options[data-v-b7a555f6]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-quadrant-user-options[open][data-v-b7a555f6]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-quadrant summary[data-v-b7a555f6]{text-align:right;direction:rtl}.vue-ui-quadrant-user-options-items[data-v-b7a555f6]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-quadrant-user-options-item[data-v-b7a555f6]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-quadrant-button[data-v-b7a555f6]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-quadrant-button[data-v-b7a555f6]:hover{background:rgba(0,0,0,.05)}.vue-ui-quadrant-print-icon[data-v-b7a555f6]{animation:smartspin-b7a555f6 .5s infinite linear}@keyframes smartspin-b7a555f6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-quadrant table[data-v-b7a555f6]{width:100%;border-collapse:collapse}.vue-ui-quadrant table td[data-v-b7a555f6]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-quadrant table th[data-v-b7a555f6]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-gauge *[data-v-90bec987]{transition:unset}.vue-ui-gauge[data-v-90bec987]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-gauge .vue-ui-gauge-label[data-v-90bec987]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-gauge-legend[data-v-90bec987]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-gauge-legend-item[data-v-90bec987]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-gauge-tooltip[data-v-90bec987]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-gauge-user-options[data-v-90bec987]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-gauge-user-options[open][data-v-90bec987]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-gauge summary[data-v-90bec987]{text-align:right;direction:rtl}.vue-ui-gauge-user-options-items[data-v-90bec987]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-gauge-user-options-item[data-v-90bec987]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-gauge-button[data-v-90bec987]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-gauge-button[data-v-90bec987]:hover{background:rgba(0,0,0,.05)}.vue-ui-gauge-print-icon[data-v-90bec987]{animation:smartspin-90bec987 .5s infinite linear}@keyframes smartspin-90bec987{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-chestnut *[data-v-bb11d54e]{transition:unset}.vue-ui-chestnut[data-v-bb11d54e]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-chestnut .vue-ui-chestnut-label[data-v-bb11d54e]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-chestnut-legend[data-v-bb11d54e]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-chestnut-legend-item[data-v-bb11d54e]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-chestnut-tooltip[data-v-bb11d54e]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-chestnut-user-options[data-v-bb11d54e]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-chestnut-user-options[open][data-v-bb11d54e]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-chestnut summary[data-v-bb11d54e]{text-align:right;direction:rtl}.vue-ui-chestnut-user-options-items[data-v-bb11d54e]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-chestnut-user-options-item[data-v-bb11d54e]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-chestnut-button[data-v-bb11d54e]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-chestnut-button[data-v-bb11d54e]:hover{background:rgba(0,0,0,.05)}.vue-ui-chestnut-print-icon[data-v-bb11d54e]{animation:smartspin-bb11d54e .5s infinite linear}@keyframes smartspin-bb11d54e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-chestnut table[data-v-bb11d54e]{width:100%;border-collapse:collapse}.vue-ui-chestnut table td[data-v-bb11d54e]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-chestnut table th[data-v-bb11d54e]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-chestnut-animated[data-v-bb11d54e]{opacity:0;animation:chestnut-opacity-bb11d54e .2s ease-in-out forwards}@keyframes chestnut-opacity-bb11d54e{0%{transform:scaleX(.98);opacity:0}to{transform:scale(1);opacity:1}}.vue-ui-onion *[data-v-3ee4c8c6]{transition:unset}.vue-ui-onion[data-v-3ee4c8c6]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-onion .vue-ui-onion-label[data-v-3ee4c8c6]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-onion-legend[data-v-3ee4c8c6]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-onion-legend-item[data-v-3ee4c8c6]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-onion-tooltip[data-v-3ee4c8c6]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-onion-user-options[data-v-3ee4c8c6]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-onion-user-options[open][data-v-3ee4c8c6]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-onion summary[data-v-3ee4c8c6]{text-align:right;direction:rtl}.vue-ui-onion-user-options-items[data-v-3ee4c8c6]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-onion-user-options-item[data-v-3ee4c8c6]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-onion-button[data-v-3ee4c8c6]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-onion-button[data-v-3ee4c8c6]:hover{background:rgba(0,0,0,.05)}.vue-ui-onion-print-icon[data-v-3ee4c8c6]{animation:smartspin-3ee4c8c6 .5s infinite linear}@keyframes smartspin-3ee4c8c6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-onion table[data-v-3ee4c8c6]{width:100%;border-collapse:collapse}.vue-ui-onion table td[data-v-3ee4c8c6]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-onion table th[data-v-3ee4c8c6]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}
|
|
1
|
+
.vue-ui-xy *[data-v-df19898b]{transition:unset}.vue-ui-xy[data-v-df19898b]{position:relative;padding-top:36px}.vue-ui-xy-user-options[data-v-df19898b]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px}.vue-ui-xy-user-options[open][data-v-df19898b]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-df19898b]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-df19898b]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-df19898b]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-df19898b]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-df19898b]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;cursor:pointer}.vue-ui-xy-legend-item-segregated[data-v-df19898b]{opacity:.5}.vue-ui-xy-title[data-v-df19898b]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-df19898b]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-df19898b]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-df19898b]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-df19898b]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-df19898b]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-df19898b]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table thead[data-v-df19898b]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-df19898b]{background:#e1e5e8}.vue-ui-xy-button[data-v-df19898b]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-df19898b]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-df19898b]{animation:smartspin-df19898b .5s infinite linear}@keyframes smartspin-df19898b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-xy-range-slider[data-v-df19898b]{width:100%;max-width:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 auto 12px}.vue-ui-xy-slider--left[data-v-df19898b],.vue-ui-xy-slider--right[data-v-df19898b]{padding:0 24px;width:100%;display:flex;flex-direction:column}.vue-ui-xy-slider--left input[data-v-df19898b],.vue-ui-xy-slider--right input[data-v-df19898b]{width:100%}.vue-ui-xy-slider--right[data-v-df19898b]{align-items:flex-end;margin-left:4px}.vue-ui-xy-slider--left[data-v-df19898b]{align-items:flex-start}.vue-ui-table-main[data-v-0eae4ec3]{height:fit-content;padding:0 0 98px;position:relative}.vue-ui-table__wrapper[data-v-0eae4ec3]{overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}.vue-ui-table-main thead[data-v-0eae4ec3]{position:sticky;top:0}.vue-ui-table[data-v-0eae4ec3]{width:100%;position:relative}.vue-ui-table-main table[data-v-0eae4ec3]{border-collapse:collapse}.vue-ui-table-main th[data-v-0eae4ec3],.vue-ui-table-main td[data-v-0eae4ec3]{padding:3px 8px}.vue-ui-table-main tr td[data-v-0eae4ec3]{outline:1px solid white}.vue-ui-table-main .th-numeric[data-v-0eae4ec3]{text-align:right;font-variant-numeric:tabular-nums}.vue-ui-table-main .th-filter[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.vue-ui-table-main button[data-v-0eae4ec3]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.vue-ui-table-main input[data-v-0eae4ec3]{padding:0 6px;font-family:Satoshi}.vue-ui-table-main button[data-v-0eae4ec3],.vue-ui-table-main input[data-v-0eae4ec3]{border-radius:6px;height:32px}.vue-ui-table-main button[data-v-0eae4ec3]{border:1px solid grey}.vue-ui-table-main button[data-v-0eae4ec3]:hover,.vue-ui-table-main button[data-v-0eae4ec3]:focus,.vue-ui-table-main input[data-v-0eae4ec3]:hover,.vue-ui-table-main input[data-v-0eae4ec3]:focus{outline:3px solid rgba(128,128,128,.432)}.vue-ui-table-main button.clicked[data-v-0eae4ec3]{animation:clicked-0eae4ec3 .15s ease-in-out}.vue-ui-table-main button[disabled][data-v-0eae4ec3]{cursor:not-allowed}.vue-ui-table-main button[disabled][data-v-0eae4ec3]:focus,.vue-ui-table-main button[disabled][data-v-0eae4ec3]:hover{outline:none}button.th-reset[data-v-0eae4ec3]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}.vue-ui-table-main button.th-reset[data-v-0eae4ec3]:not(:disabled):hover,.vue-ui-table-main button.th-reset[data-v-0eae4ec3]:not(:disabled):focus{outline:3px solid #f171717e}.vue-ui-table-main [data-is-open=false][data-v-0eae4ec3]{transform:scale(0)}.vue-ui-table-main .th-dropdown[data-is-open=true][data-v-0eae4ec3]{animation:open-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .th-dropdown[data-is-open=false][data-v-0eae4ec3]{animation:close-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .th-dropdown[data-v-0eae4ec3]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.vue-ui-table-main .th-option[data-v-0eae4ec3]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.vue-ui-table-main .th-option[data-v-0eae4ec3]:hover{background-color:#ffffff1a;box-shadow:0 3px 6px -3px #00000080;z-index:1}.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3],.vue-ui-table-main button.close-chart-modal[data-v-0eae4ec3]{align-items:center;border-radius:50%;border:none;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3]:hover,.vue-ui-table-main button.close-dropdown[data-v-0eae4ec3]:focus,.vue-ui-table-main button.close-chart-modal[data-v-0eae4ec3]:hover,.vue-ui-table-main button.close-char-modal[data-v-0eae4ec3]:focus{outline:3px solid #2d353c71}.vue-ui-table-main .th-button-active[data-v-0eae4ec3]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.vue-ui-table-main .th-button-active[data-v-0eae4ec3]:hover,.vue-ui-table-main .th-button-active[data-v-0eae4ec3]:focus{outline:3px solid #6375dd7a}.vue-ui-table-main .th-date[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--inputs[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--button[data-v-0eae4ec3]{display:flex;gap:3px}.vue-ui-table-main input[type=date][data-v-0eae4ec3]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.vue-ui-table-main .date-fieldset[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-fieldset label[data-v-0eae4ec3]{font-size:12px;font-weight:400}@keyframes clicked-0eae4ec3{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}.vue-ui-table-main td.td-numeric[data-v-0eae4ec3]{cursor:pointer}.vue-ui-table-main .td-selector-info[data-v-0eae4ec3]{align-items:center;border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]:hover,.vue-ui-table-main button.td-selector-info-reset[data-v-0eae4ec3]:focus{outline:3px solid #f171717e}.vue-ui-table-main .format-num[data-v-0eae4ec3]{font-variant-numeric:tabular-nums}.vue-ui-table-main .td-selector-icon[data-v-0eae4ec3]{margin-bottom:-5px;margin-right:6px}.vue-ui-table-main .vue-ui-table-pagination[data-v-0eae4ec3]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}.vue-ui-table-main button.vue-ui-table-navigation[data-v-0eae4ec3]{height:36px;padding:1px;width:36px}.vue-ui-table-main .vue-ui-table-navigation-indicator[data-v-0eae4ec3]{border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.vue-ui-table-main .vue-ui-table-page-scroller-wrapper[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;justify-content:center}.vue-ui-table-main input.vue-ui-table-page-scroller[data-v-0eae4ec3]{cursor:pointer;height:24px;padding:0}.vue-ui-table-main .vue-ui-table-paginator[data-v-0eae4ec3]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-paginator select[data-v-0eae4ec3]{border-radius:3px}.vue-ui-table-main .vue-ui-table-size-warning[data-v-0eae4ec3]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}.vue-ui-table-main th.vue-ui-table-col-selector[data-v-0eae4ec3]{height:12px}.vue-ui-table-main .col-selector[data-v-0eae4ec3]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}.vue-ui-table-main th.col-selector--selected[data-v-0eae4ec3]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}.vue-ui-table-main th.col-selector--selected div[data-v-0eae4ec3]{background:transparent;color:#fff}.vue-ui-table-main .vue-ui-table-chart-modal[data-v-0eae4ec3]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.vue-ui-table-main .vue-ui-table-chart-svg[data-v-0eae4ec3]{border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-donut-chart[data-v-0eae4ec3]{border-radius:6px}.vue-ui-table-main td.vue-ui-table-td-iteration[data-v-0eae4ec3]{font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.vue-ui-table-main .chart-trend[data-v-0eae4ec3]{font-size:12px;padding-left:12px}.vue-ui-table-main .chart-modal-options[data-v-0eae4ec3]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.vue-ui-table-main .chart-modal-options button[data-v-0eae4ec3]{height:24px;padding:3px;width:24px}.vue-ui-table-main .th-range-filter[data-v-0eae4ec3]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.vue-ui-table-main .th-range-filter input[data-v-0eae4ec3]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.vue-ui-table-main .th-range-filter label[data-v-0eae4ec3]{font-size:12px;font-weight:400;margin-bottom:-3px}.vue-ui-table-main .vue-ui-table-fieldset-wrapper[data-v-0eae4ec3]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.vue-ui-table-main .vue-ui-table-fieldset[data-v-0eae4ec3]{border-radius:6px;margin-bottom:24px;border:1px solid white}.vue-ui-table-main .vue-ui-table-fieldset legend[data-v-0eae4ec3]{color:gray}.vue-ui-table-main .vue-ui-table-fieldset-option[data-v-0eae4ec3]{display:flex;align-items:center}.vue-ui-table-main .vue-ui-table-fieldset-option input[data-v-0eae4ec3]{height:14px;width:14px;border-radius:50%}.vue-ui-table-main button.vue-ui-table-generate-donut[data-v-0eae4ec3]{align-items:center;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}.vue-ui-table-main button.vue-ui-table-generate-donut[disabled][data-v-0eae4ec3]{opacity:.5}.vue-ui-table-main .vue-ui-table-donut-legend[data-v-0eae4ec3]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.vue-ui-table-main .vue-ui-table-donut-legend-item[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.vue-ui-table-main .vue-ui-table-donut-label[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-table-main .vue-ui-table-donut-label-name[data-v-0eae4ec3]{font-size:3px;line-height:3px}.vue-ui-table-main td[data-v-0eae4ec3]:focus{outline:3px solid #202d7470}.vue-ui-table-main .vue-ui-table-export-hub[data-v-0eae4ec3]{left:5px;position:absolute;top:0;z-index:1001}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-v-0eae4ec3]{position:absolute;top:40px;left:0;padding:24px;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=true][data-v-0eae4ec3]{animation:open-dropdown-0eae4ec3 .2s ease-in forwards}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=false][data-v-0eae4ec3]{animation:close-dropdown-0eae4ec3 .2s ease-in}.vue-ui-table-main .vue-ui-table-export-hub-options[data-v-0eae4ec3]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.vue-ui-table-main .vue-ui-table-export-hub-options button[data-v-0eae4ec3]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper[data-v-0eae4ec3]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper .label[data-v-0eae4ec3]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.vue-ui-table-main .td-nan[data-v-0eae4ec3]{background:#F17171}.vue-ui-table-main .td-has-nan[data-v-0eae4ec3],.vue-ui-table-main .th-has-nan[data-v-0eae4ec3]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-0eae4ec3{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-0eae4ec3{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}.vue-ui-donut *[data-v-976beb1e]{transition:unset}.vue-ui-donut[data-v-976beb1e]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-donut .vue-ui-donut-label[data-v-976beb1e]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-donut-legend[data-v-976beb1e]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-donut-legend-item[data-v-976beb1e]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-donut-tooltip[data-v-976beb1e]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-donut-user-options[data-v-976beb1e]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-donut-user-options[open][data-v-976beb1e]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-donut summary[data-v-976beb1e]{text-align:right;direction:rtl}.vue-ui-donut-user-options-items[data-v-976beb1e]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-donut-user-options-item[data-v-976beb1e]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-donut-button[data-v-976beb1e]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-donut-button[data-v-976beb1e]:hover{background:rgba(0,0,0,.05)}.vue-ui-donut-print-icon[data-v-976beb1e]{animation:smartspin-976beb1e .5s infinite linear}@keyframes smartspin-976beb1e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-donut table[data-v-976beb1e]{width:100%;border-collapse:collapse}.vue-ui-donut table td[data-v-976beb1e]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-donut table th[data-v-976beb1e]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-waffle *[data-v-5e4533da]{transition:unset}.vue-ui-waffle[data-v-5e4533da]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-waffle .vue-ui-waffle-label[data-v-5e4533da]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-waffle-legend[data-v-5e4533da]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-waffle-legend-item[data-v-5e4533da]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-waffle-tooltip[data-v-5e4533da]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-waffle-user-options[data-v-5e4533da]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-waffle-user-options[open][data-v-5e4533da]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-waffle summary[data-v-5e4533da]{text-align:right;direction:rtl}.vue-ui-waffle-user-options-items[data-v-5e4533da]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-waffle-user-options-item[data-v-5e4533da]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-waffle-button[data-v-5e4533da]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-waffle-button[data-v-5e4533da]:hover{background:rgba(0,0,0,.05)}.vue-ui-waffle-print-icon[data-v-5e4533da]{animation:smartspin-5e4533da .5s infinite linear}@keyframes smartspin-5e4533da{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-waffle table[data-v-5e4533da]{width:100%;border-collapse:collapse}.vue-ui-waffle table td[data-v-5e4533da]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-waffle table th[data-v-5e4533da]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-radar *[data-v-0a1b704d]{transition:unset}.vue-ui-radar[data-v-0a1b704d]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-radar .vue-ui-radar-label[data-v-0a1b704d]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-radar-legend[data-v-0a1b704d]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-radar-legend-item[data-v-0a1b704d]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-radar-tooltip[data-v-0a1b704d]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-radar-user-options[data-v-0a1b704d]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-radar-user-options[open][data-v-0a1b704d]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-radar summary[data-v-0a1b704d]{text-align:right;direction:rtl}.vue-ui-radar-user-options-items[data-v-0a1b704d]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-radar-user-options-item[data-v-0a1b704d]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-radar-button[data-v-0a1b704d]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-radar-button[data-v-0a1b704d]:hover{background:rgba(0,0,0,.05)}.vue-ui-radar-print-icon[data-v-0a1b704d]{animation:smartspin-0a1b704d .5s infinite linear}@keyframes smartspin-0a1b704d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-radar table[data-v-0a1b704d]{width:100%;border-collapse:collapse}.vue-ui-radar table td[data-v-0a1b704d]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-radar table th[data-v-0a1b704d]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-quadrant *[data-v-b7a555f6]{transition:unset}.vue-ui-quadrant[data-v-b7a555f6]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-quadrant .vue-ui-quadrant-label[data-v-b7a555f6]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-quadrant-legend[data-v-b7a555f6]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-quadrant-legend-item[data-v-b7a555f6]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-quadrant-tooltip[data-v-b7a555f6]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-quadrant-user-options[data-v-b7a555f6]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-quadrant-user-options[open][data-v-b7a555f6]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-quadrant summary[data-v-b7a555f6]{text-align:right;direction:rtl}.vue-ui-quadrant-user-options-items[data-v-b7a555f6]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-quadrant-user-options-item[data-v-b7a555f6]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-quadrant-button[data-v-b7a555f6]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-quadrant-button[data-v-b7a555f6]:hover{background:rgba(0,0,0,.05)}.vue-ui-quadrant-print-icon[data-v-b7a555f6]{animation:smartspin-b7a555f6 .5s infinite linear}@keyframes smartspin-b7a555f6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-quadrant table[data-v-b7a555f6]{width:100%;border-collapse:collapse}.vue-ui-quadrant table td[data-v-b7a555f6]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-quadrant table th[data-v-b7a555f6]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-gauge *[data-v-90bec987]{transition:unset}.vue-ui-gauge[data-v-90bec987]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-gauge .vue-ui-gauge-label[data-v-90bec987]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-gauge-legend[data-v-90bec987]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-gauge-legend-item[data-v-90bec987]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-gauge-tooltip[data-v-90bec987]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-gauge-user-options[data-v-90bec987]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-gauge-user-options[open][data-v-90bec987]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-gauge summary[data-v-90bec987]{text-align:right;direction:rtl}.vue-ui-gauge-user-options-items[data-v-90bec987]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-gauge-user-options-item[data-v-90bec987]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-gauge-button[data-v-90bec987]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-gauge-button[data-v-90bec987]:hover{background:rgba(0,0,0,.05)}.vue-ui-gauge-print-icon[data-v-90bec987]{animation:smartspin-90bec987 .5s infinite linear}@keyframes smartspin-90bec987{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-chestnut *[data-v-bb11d54e]{transition:unset}.vue-ui-chestnut[data-v-bb11d54e]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-chestnut .vue-ui-chestnut-label[data-v-bb11d54e]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-chestnut-legend[data-v-bb11d54e]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-chestnut-legend-item[data-v-bb11d54e]{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;height:24px}.vue-ui-chestnut-tooltip[data-v-bb11d54e]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-chestnut-user-options[data-v-bb11d54e]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-chestnut-user-options[open][data-v-bb11d54e]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-chestnut summary[data-v-bb11d54e]{text-align:right;direction:rtl}.vue-ui-chestnut-user-options-items[data-v-bb11d54e]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-chestnut-user-options-item[data-v-bb11d54e]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-chestnut-button[data-v-bb11d54e]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-chestnut-button[data-v-bb11d54e]:hover{background:rgba(0,0,0,.05)}.vue-ui-chestnut-print-icon[data-v-bb11d54e]{animation:smartspin-bb11d54e .5s infinite linear}@keyframes smartspin-bb11d54e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-chestnut table[data-v-bb11d54e]{width:100%;border-collapse:collapse}.vue-ui-chestnut table td[data-v-bb11d54e]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-chestnut table th[data-v-bb11d54e]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}.vue-ui-chestnut-animated[data-v-bb11d54e]{opacity:0;animation:chestnut-opacity-bb11d54e .2s ease-in-out forwards}@keyframes chestnut-opacity-bb11d54e{0%{transform:scaleX(.98);opacity:0}to{transform:scale(1);opacity:1}}.vue-ui-onion *[data-v-1bfaa13f]{transition:unset}.vue-ui-onion[data-v-1bfaa13f]{-webkit-user-select:none;user-select:none;position:relative;padding-top:36px}.vue-ui-onion .vue-ui-onion-label[data-v-1bfaa13f]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-onion-legend[data-v-1bfaa13f]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-onion-legend-item[data-v-1bfaa13f]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-onion-tooltip[data-v-1bfaa13f]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-onion-user-options[data-v-1bfaa13f]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-onion-user-options[open][data-v-1bfaa13f]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-onion summary[data-v-1bfaa13f]{text-align:right;direction:rtl}.vue-ui-onion-user-options-items[data-v-1bfaa13f]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-onion-user-options-item[data-v-1bfaa13f]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-onion-button[data-v-1bfaa13f]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-onion-button[data-v-1bfaa13f]:hover{background:rgba(0,0,0,.05)}.vue-ui-onion-print-icon[data-v-1bfaa13f]{animation:smartspin-1bfaa13f .5s infinite linear}@keyframes smartspin-1bfaa13f{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-onion table[data-v-1bfaa13f]{width:100%;border-collapse:collapse}.vue-ui-onion table td[data-v-1bfaa13f]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-onion table th[data-v-1bfaa13f]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}
|
package/dist/vue-data-ui.js
CHANGED
package/dist/vue-data-ui.umd.cjs
CHANGED
|
@@ -355,9 +355,9 @@ end`};e.events.push(["putFont",function(a){(function(i){var s=i.font,l=i.out,c=i
|
|
|
355
355
|
`),l.push(` </office:body>
|
|
356
356
|
`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function WB(t,e){if(e.bookType=="fods")return jB(t,e);var r=a1(),n="",A=[],a=[];return n="mimetype",Qt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Qt(r,n,jB(t,e)),A.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Qt(r,n,cD(t,e)),A.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Qt(r,n,jr+Ww()),A.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Qt(r,n,x6(a)),A.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Qt(r,n,w6(A)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function $h(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function uD(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):GA(ja(t))}function hD(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Di(t){var e=t.reduce(function(A,a){return A+a.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(A){r.set(A,n),n+=A.length}),r}function fD(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,A=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var a=0;A>=1;++a,A/=256)t[e+a]=A&255;t[e+15]|=r>=0?0:128}function oc(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function Ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function _s(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function nn(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],A=oc(t,r),a=A&7;A=Math.floor(A/8);var i=0,s;if(A==0)break;switch(a){case 0:{for(var l=r[0];t[r[0]++]>=128;);s=t.slice(l,r[0])}break;case 5:i=4,s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 1:i=8,s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 2:i=oc(t,r),s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(A," at offset ").concat(n))}var c={data:s,type:a};e[A]==null?e[A]=[c]:e[A].push(c)}return e}function En(t){var e=[];return t.forEach(function(r,n){r.forEach(function(A){A.data&&(e.push(Ar(n*8+A.type)),A.type==2&&e.push(Ar(A.data.length)),e.push(A.data))})}),Di(e)}function XA(t){for(var e,r=[],n=[0];n[0]<t.length;){var A=oc(t,n),a=nn(t.slice(n[0],n[0]+A));n[0]+=A;var i={id:_s(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=nn(s.data),c=_s(l[3][0].data);i.messages.push({meta:l,data:t.slice(n[0],n[0]+c)}),n[0]+=c}),(e=a[3])!=null&&e[0]&&(i.merge=_s(a[3][0].data)>>>0>0),r.push(i)}return r}function Ss(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:Ar(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ar(+!!r.merge),type:0}]);var A=[];r.messages.forEach(function(i){A.push(i.data),i.meta[3]=[{type:0,data:Ar(i.data.length)}],n[2].push({data:En(i.meta),type:2})});var a=En(n);e.push(Ar(a.length)),e.push(a),A.forEach(function(i){return e.push(i)})}),Di(e)}function dD(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=oc(e,r),A=[];r[0]<e.length;){var a=e[r[0]]&3;if(a==0){var i=e[r[0]++]>>2;if(i<60)++i;else{var s=i-59;i=e[r[0]],s>1&&(i|=e[r[0]+1]<<8),s>2&&(i|=e[r[0]+2]<<16),s>3&&(i|=e[r[0]+3]<<24),i>>>=0,i++,r[0]+=s}A.push(e.slice(r[0],r[0]+i)),r[0]+=i;continue}else{var l=0,c=0;if(a==1?(c=(e[r[0]]>>2&7)+4,l=(e[r[0]++]&224)<<3,l|=e[r[0]++]):(c=(e[r[0]++]>>2)+1,a==2?(l=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(l=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),A=[Di(A)],l==0)throw new Error("Invalid offset 0");if(l>A[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(A.push(A[0].slice(-l)),c-=l;c>=A[A.length-1].length;)A.push(A[A.length-1]),c-=A[A.length-1].length;A.push(A[0].slice(-l,-l+c))}}var u=Di(A);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function qA(t){for(var e=[],r=0;r<t.length;){var n=t[r++],A=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(dD(n,t.slice(r,r+A))),r+=A}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Di(e)}function ks(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),A=new Uint8Array(4);e.push(A);var a=Ar(n),i=a.length;e.push(a),n<=60?(i++,e.push(new Uint8Array([n-1<<2]))):n<=256?(i+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(i+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(i+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(i+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),i+=n,A[0]=0,A[1]=i&255,A[2]=i>>8&255,A[3]=i>>16&255,r+=n}return Di(e)}function k1(t,e){var r=new Uint8Array(32),n=$h(r),A=12,a=0;switch(r[0]=5,t.t){case"n":r[1]=2,fD(r,A,t.v),a|=1,A+=16;break;case"b":r[1]=6,n.setFloat64(A,t.v?1:0,!0),a|=2,A+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(A,e.indexOf(t.v),!0),a|=8,A+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,a,!0),r.slice(0,A)}function T1(t,e){var r=new Uint8Array(32),n=$h(r),A=12,a=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(A,t.v,!0),a|=32,A+=8;break;case"b":r[2]=6,n.setFloat64(A,t.v?1:0,!0),a|=32,A+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(A,e.indexOf(t.v),!0),a|=16,A+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,a,!0),r.slice(0,A)}function Oi(t){var e=nn(t);return oc(e[1][0].data)}function gD(t,e,r){var n,A,a,i;if(!((n=t[6])!=null&&n[0])||!((A=t[7])!=null&&A[0]))throw"Mutation only works on post-BNC storages!";var s=((i=(a=t[8])==null?void 0:a[0])==null?void 0:i.data)&&_s(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=$h(t[7][0].data),u=0,p=[],h=$h(t[4][0].data),d=0,y=[],g=0;g<e.length;++g){if(e[g]==null){c.setUint16(g*2,65535,!0),h.setUint16(g*2,65535);continue}c.setUint16(g*2,u,!0),h.setUint16(g*2,d,!0);var m,w;switch(typeof e[g]){case"string":m=k1({t:"s",v:e[g]},r),w=T1({t:"s",v:e[g]},r);break;case"number":m=k1({t:"n",v:e[g]},r),w=T1({t:"n",v:e[g]},r);break;case"boolean":m=k1({t:"b",v:e[g]},r),w=T1({t:"b",v:e[g]},r);break;default:throw new Error("Unsupported value "+e[g])}p.push(m),u+=m.length,y.push(w),d+=w.length,++l}for(t[2][0].data=Ar(l);g<t[7][0].data.length/2;++g)c.setUint16(g*2,65535,!0),h.setUint16(g*2,65535,!0);return t[6][0].data=Di(p),t[3][0].data=Di(y),l}function pD(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=mA(r["!ref"]);n.s.r=n.s.c=0;var A=!1;n.e.c>9&&(A=!0,n.e.c=9),n.e.r>49&&(A=!0,n.e.r=49),A&&console.error("The Numbers writer is currently limited to ".concat(Wr(n)));var a=Kh(r,{range:n,header:1}),i=["~Sh33tJ5~"];a.forEach(function(F){return F.forEach(function(b){typeof b=="string"&&i.push(b)})});var s={},l=[],c=lr.read(e.numbers,{type:"base64"});c.FileIndex.map(function(F,b){return[F,c.FullPaths[b]]}).forEach(function(F){var b=F[0],E=F[1];if(b.type==2&&b.name.match(/\.iwa/)){var T=b.content,j=qA(T),te=XA(j);te.forEach(function(ue){l.push(ue.id),s[ue.id]={deps:[],location:E,type:_s(ue.messages[0].meta[1][0].data)}})}}),l.sort(function(F,b){return F-b});var u=l.filter(function(F){return F>1}).map(function(F){return[F,Ar(F)]});c.FileIndex.map(function(F,b){return[F,c.FullPaths[b]]}).forEach(function(F){var b=F[0];if(F[1],!!b.name.match(/\.iwa/)){var E=XA(qA(b.content));E.forEach(function(T){T.messages.forEach(function(j){u.forEach(function(te){T.messages.some(function(ue){return _s(ue.meta[1][0].data)!=11006&&hD(ue.data,te[1])})&&s[te[0]].deps.push(T.id)})})})}});for(var p=lr.find(c,s[1].location),h=XA(qA(p.content)),d,y=0;y<h.length;++y){var g=h[y];g.id==1&&(d=g)}var m=Oi(nn(d.messages[0].data)[1][0].data);for(p=lr.find(c,s[m].location),h=XA(qA(p.content)),y=0;y<h.length;++y)g=h[y],g.id==m&&(d=g);for(m=Oi(nn(d.messages[0].data)[2][0].data),p=lr.find(c,s[m].location),h=XA(qA(p.content)),y=0;y<h.length;++y)g=h[y],g.id==m&&(d=g);for(m=Oi(nn(d.messages[0].data)[2][0].data),p=lr.find(c,s[m].location),h=XA(qA(p.content)),y=0;y<h.length;++y)g=h[y],g.id==m&&(d=g);var w=nn(d.messages[0].data);{w[6][0].data=Ar(n.e.r+1),w[7][0].data=Ar(n.e.c+1);var _=Oi(w[46][0].data),N=lr.find(c,s[_].location),Q=XA(qA(N.content));{for(var W=0;W<Q.length&&Q[W].id!=_;++W);if(Q[W].id!=_)throw"Bad ColumnRowUIDMapArchive";var z=nn(Q[W].messages[0].data);z[1]=[],z[2]=[],z[3]=[];for(var I=0;I<=n.e.c;++I){var U=[];U[1]=U[2]=[{type:0,data:Ar(I+420690)}],z[1].push({type:2,data:En(U)}),z[2].push({type:0,data:Ar(I)}),z[3].push({type:0,data:Ar(I)})}z[4]=[],z[5]=[],z[6]=[];for(var P=0;P<=n.e.r;++P)U=[],U[1]=U[2]=[{type:0,data:Ar(P+726270)}],z[4].push({type:2,data:En(U)}),z[5].push({type:0,data:Ar(P)}),z[6].push({type:0,data:Ar(P)});Q[W].messages[0].data=En(z)}N.content=ks(Ss(Q)),N.size=N.content.length,delete w[46];var Y=nn(w[4][0].data);{Y[7][0].data=Ar(n.e.r+1);var k=nn(Y[1][0].data),L=Oi(k[2][0].data);N=lr.find(c,s[L].location),Q=XA(qA(N.content));{if(Q[0].id!=L)throw"Bad HeaderStorageBucket";var V=nn(Q[0].messages[0].data);for(P=0;P<a.length;++P){var X=nn(V[2][0].data);X[1][0].data=Ar(P),X[4][0].data=Ar(a[P].length),V[2][P]={type:V[2][0].type,data:En(X)}}Q[0].messages[0].data=En(V)}N.content=ks(Ss(Q)),N.size=N.content.length;var se=Oi(Y[2][0].data);N=lr.find(c,s[se].location),Q=XA(qA(N.content));{if(Q[0].id!=se)throw"Bad HeaderStorageBucket";for(V=nn(Q[0].messages[0].data),I=0;I<=n.e.c;++I)X=nn(V[2][0].data),X[1][0].data=Ar(I),X[4][0].data=Ar(n.e.r+1),V[2][I]={type:V[2][0].type,data:En(X)};Q[0].messages[0].data=En(V)}N.content=ks(Ss(Q)),N.size=N.content.length;var ce=Oi(Y[4][0].data);(function(){for(var F=lr.find(c,s[ce].location),b=XA(qA(F.content)),E,T=0;T<b.length;++T){var j=b[T];j.id==ce&&(E=j)}var te=nn(E.messages[0].data);{te[3]=[];var ue=[];i.forEach(function(be,Z){ue[1]=[{type:0,data:Ar(Z)}],ue[2]=[{type:0,data:Ar(1)}],ue[3]=[{type:2,data:uD(be)}],te[3].push({type:2,data:En(ue)})})}E.messages[0].data=En(te);var Be=Ss(b),le=ks(Be);F.content=le,F.size=F.content.length})();var he=nn(Y[3][0].data);{var ge=he[1][0];delete he[2];var fe=nn(ge.data);{var ye=Oi(fe[2][0].data);(function(){for(var F=lr.find(c,s[ye].location),b=XA(qA(F.content)),E,T=0;T<b.length;++T){var j=b[T];j.id==ye&&(E=j)}var te=nn(E.messages[0].data);{delete te[6],delete he[7];var ue=new Uint8Array(te[5][0].data);te[5]=[];for(var Be=0,le=0;le<=n.e.r;++le){var be=nn(ue);Be+=gD(be,a[le],i),be[1][0].data=Ar(le),te[5].push({data:En(be),type:2})}te[1]=[{type:0,data:Ar(n.e.c+1)}],te[2]=[{type:0,data:Ar(n.e.r+1)}],te[3]=[{type:0,data:Ar(Be)}],te[4]=[{type:0,data:Ar(n.e.r+1)}]}E.messages[0].data=En(te);var Z=Ss(b),Ce=ks(Z);F.content=Ce,F.size=F.content.length})()}ge.data=En(fe)}Y[3][0].data=En(he)}w[4][0].data=En(Y)}d.messages[0].data=En(w);var Ue=Ss(h),x=ks(Ue);return p.content=x,p.size=p.content.length,c}function mD(t){return function(r){for(var n=0;n!=t.length;++n){var A=t[n];r[A[0]]===void 0&&(r[A[0]]=A[1]),A[2]==="n"&&(r[A[0]]=Number(r[A[0]]))}}}function N1(t){mD([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function vD(t,e){return e.bookType=="ods"?WB(t,e):e.bookType=="numbers"?pD(t,e):e.bookType=="xlsb"?yD(t,e):wD(t,e)}function yD(t,e){Es=1024,t&&!t.SSF&&(t.SSF=nA(Tr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=Fh(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=EB.indexOf(e.bookType)>-1,A=zw();N1(e=e||{});var a=a1(),i="",s=0;if(e.cellXfs=[],Qi(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),i="docProps/core.xml",Qt(a,i,Xw(t.Props,e)),A.coreprops.push(i),nr(e.rels,2,i,Xt.CORE_PROPS),i="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,Qt(a,i,Yw(t.Props)),A.extprops.push(i),nr(e.rels,3,i,Xt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(i="docProps/custom.xml",Qt(a,i,Jw(t.Custprops)),A.custprops.push(i),nr(e.rels,4,i,Xt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},p=t.Sheets[t.SheetNames[s-1]],h=(p||{})["!type"]||"sheet";switch(h){case"chart":default:i="xl/worksheets/sheet"+s+"."+r,Qt(a,i,xQ(s-1,i,e,t,u)),A.sheets.push(i),nr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(p){var d=p["!comments"],y=!1,g="";d&&d.length>0&&(g="xl/comments"+s+"."+r,Qt(a,g,EQ(d,g)),A.comments.push(g),nr(u,-1,"../comments"+s+"."+r,Xt.CMNT),y=!0),p["!legacy"]&&y&&Qt(a,"xl/drawings/vmlDrawing"+s+".vml",bB(s,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Qt(a,Gw(i),bs(u))}return e.Strings!=null&&e.Strings.length>0&&(i="xl/sharedStrings."+r,Qt(a,i,CQ(e.Strings,i,e)),A.strs.push(i),nr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),i="xl/workbook."+r,Qt(a,i,BQ(t,i)),A.workbooks.push(i),nr(e.rels,1,i,Xt.WB),i="xl/theme/theme1.xml",Qt(a,i,BB(t.Themes,e)),A.themes.push(i),nr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),i="xl/styles."+r,Qt(a,i,bQ(t,i,e)),A.styles.push(i),nr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&n&&(i="xl/vbaProject.bin",Qt(a,i,t.vbaraw),A.vba.push(i),nr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),i="xl/metadata."+r,Qt(a,i,FQ(i)),A.metadata.push(i),nr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),Qt(a,"[Content_Types].xml",Kw(A,e)),Qt(a,"_rels/.rels",bs(e.rels)),Qt(a,"xl/_rels/workbook."+r+".rels",bs(e.wbrels)),delete e.revssf,delete e.ssf,a}function wD(t,e){Es=1024,t&&!t.SSF&&(t.SSF=nA(Tr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=Fh(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=EB.indexOf(e.bookType)>-1,A=zw();N1(e=e||{});var a=a1(),i="",s=0;if(e.cellXfs=[],Qi(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),i="docProps/core.xml",Qt(a,i,Xw(t.Props,e)),A.coreprops.push(i),nr(e.rels,2,i,Xt.CORE_PROPS),i="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,Qt(a,i,Yw(t.Props)),A.extprops.push(i),nr(e.rels,3,i,Xt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(i="docProps/custom.xml",Qt(a,i,Jw(t.Custprops)),A.custprops.push(i),nr(e.rels,4,i,Xt.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var p={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:i="xl/worksheets/sheet"+s+"."+r,Qt(a,i,OB(s-1,e,t,p)),A.sheets.push(i),nr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(h){var y=h["!comments"],g=!1,m="";if(y&&y.length>0){var w=!1;y.forEach(function(_){_[1].forEach(function(N){N.T==!0&&(w=!0)})}),w&&(m="xl/threadedComments/threadedComment"+s+"."+r,Qt(a,m,YL(y,u,e)),A.threadedcomments.push(m),nr(p,-1,"../threadedComments/threadedComment"+s+"."+r,Xt.TCMNT)),m="xl/comments"+s+"."+r,Qt(a,m,CB(y)),A.comments.push(m),nr(p,-1,"../comments"+s+"."+r,Xt.CMNT),g=!0}h["!legacy"]&&g&&Qt(a,"xl/drawings/vmlDrawing"+s+".vml",bB(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}p["!id"].rId1&&Qt(a,Gw(i),bs(p))}return e.Strings!=null&&e.Strings.length>0&&(i="xl/sharedStrings."+r,Qt(a,i,fB(e.Strings,e)),A.strs.push(i),nr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),i="xl/workbook."+r,Qt(a,i,RB(t)),A.workbooks.push(i),nr(e.rels,1,i,Xt.WB),i="xl/theme/theme1.xml",Qt(a,i,BB(t.Themes,e)),A.themes.push(i),nr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),i="xl/styles."+r,Qt(a,i,vB(t,e)),A.styles.push(i),nr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&n&&(i="xl/vbaProject.bin",Qt(a,i,t.vbaraw),A.vba.push(i),nr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),i="xl/metadata."+r,Qt(a,i,xB()),A.metadata.push(i),nr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),u.length>1&&(i="xl/persons/person.xml",Qt(a,i,JL(u)),A.people.push(i),nr(e.wbrels,-1,"persons/person.xml",Xt.PEOPLE)),Qt(a,"[Content_Types].xml",Kw(A,e)),Qt(a,"_rels/.rels",bs(e.rels)),Qt(a,"xl/_rels/workbook."+r+".rels",bs(e.wbrels)),delete e.revssf,delete e.ssf,a}function BD(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=$a(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function XB(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return jl(e.file,lr.write(t,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return lr.write(t,e)}function xD(t,e){var r=nA(e||{}),n=vD(t,r);return bD(n,r)}function bD(t,e){var r={},n=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var A=t.FullPaths?lr.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof A=="string"){if(e.type=="binary"||e.type=="base64")return A;A=new Uint8Array(vh(A))}return e.password&&typeof encrypt_agile<"u"?XB(encrypt_agile(A,e.password),e):e.type==="file"?jl(e.file,A):e.type=="string"?Xl(A):A}function CD(t,e){var r=e||{},n=RQ(t,r);return XB(n,r)}function Ca(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return zl(ja(n));case"binary":return ja(n);case"string":return t;case"file":return jl(e.file,n,"utf8");case"buffer":return Yt?za(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Ca(n,{type:"binary"}).split("").map(function(A){return A.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function ED(t,e){switch(e.type){case"base64":return zl(t);case"binary":return t;case"string":return t;case"file":return jl(e.file,t,"binary");case"buffer":return Yt?za(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function zh(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?zl(r):e.type=="string"?Xl(r):r;case"file":return jl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function qa(t,e){JT(),cQ(t);var r=nA(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=qa(t,r);return r.type="array",vh(n)}var A=0;if(r.sheet&&(typeof r.sheet=="number"?A=r.sheet:A=t.SheetNames.indexOf(r.sheet),!t.SheetNames[A]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Ca(PQ(t,r),r);case"slk":case"sylk":return Ca(oL.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"htm":case"html":return Ca($B(t.Sheets[t.SheetNames[A]],r),r);case"txt":return ED(YB(t.Sheets[t.SheetNames[A]],r),r);case"csv":return Ca(L1(t.Sheets[t.SheetNames[A]],r),r,"\uFEFF");case"dif":return Ca(sL.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"dbf":return zh(iL.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"prn":return Ca(lL.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"rtf":return Ca(pL.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"eth":return Ca(uB.from_sheet(t.Sheets[t.SheetNames[A]],r),r);case"fods":return Ca(WB(t,r),r);case"wk1":return zh(hB.sheet_to_wk1(t.Sheets[t.SheetNames[A]],r),r);case"wk3":return zh(hB.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),zh(VB(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),CD(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return xD(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function FD(t,e,r,n,A,a,i,s){var l=bn(r),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),p=!0,h=A===1?[]:{};if(A!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!i||t[r])for(var d=e.s.c;d<=e.e.c;++d){var y=i?t[r][d]:t[n[d]+l];if(y===void 0||y.t===void 0){if(c===void 0)continue;a[d]!=null&&(h[a[d]]=c);continue}var g=y.v;switch(y.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(a[d]!=null){if(g==null)if(y.t=="e"&&g===null)h[a[d]]=null;else if(c!==void 0)h[a[d]]=c;else if(u&&g===null)h[a[d]]=null;else continue;else h[a[d]]=u&&(y.t!=="n"||y.t==="n"&&s.rawNumbers!==!1)?g:Wa(y,g,s);g!=null&&(p=!1)}}return{row:h,isempty:p}}function Kh(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,A=1,a=[],i=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=c.range!=null?c.range:t["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Br(u);break;case"number":l=Br(t["!ref"]),l.s.r=u;break;default:l=u}n>0&&(A=0);var p=bn(l.s.r),h=[],d=[],y=0,g=0,m=Array.isArray(t),w=l.s.r,_=0,N={};m&&!t[w]&&(t[w]=[]);var Q=c.skipHidden&&t["!cols"]||[],W=c.skipHidden&&t["!rows"]||[];for(_=l.s.c;_<=l.e.c;++_)if(!(Q[_]||{}).hidden)switch(h[_]=Qn(_),r=m?t[w][_]:t[h[_]+p],n){case 1:a[_]=_-l.s.c;break;case 2:a[_]=h[_];break;case 3:a[_]=c.header[_-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=i=Wa(r,null,c),g=N[i]||0,!g)N[i]=1;else{do s=i+"_"+g++;while(N[s]);N[i]=g,N[s]=1}a[_]=s}for(w=l.s.r+A;w<=l.e.r;++w)if(!(W[w]||{}).hidden){var z=FD(t,l,w,h,n,a,m,c);(z.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(d[y++]=z.row)}return d.length=y,d}var qB=/"/g;function _D(t,e,r,n,A,a,i,s){for(var l=!0,c=[],u="",p=bn(r),h=e.s.c;h<=e.e.c;++h)if(n[h]){var d=s.dense?(t[r]||[])[h]:t[n[h]+p];if(d==null)u="";else if(d.v!=null){l=!1,u=""+(s.rawNumbers&&d.t=="n"?d.v:Wa(d,null,s));for(var y=0,g=0;y!==u.length;++y)if((g=u.charCodeAt(y))===A||g===a||g===34||s.forceQuotes){u='"'+u.replace(qB,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f!=null&&!d.F?(l=!1,u="="+d.f,u.indexOf(",")>=0&&(u='"'+u.replace(qB,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(i)}function L1(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var A=Br(t["!ref"]),a=n.FS!==void 0?n.FS:",",i=a.charCodeAt(0),s=n.RS!==void 0?n.RS:`
|
|
357
357
|
`,l=s.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",p=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],d=n.skipHidden&&t["!rows"]||[],y=A.s.c;y<=A.e.c;++y)(h[y]||{}).hidden||(p[y]=Qn(y));for(var g=0,m=A.s.r;m<=A.e.r;++m)(d[m]||{}).hidden||(u=_D(t,A,m,p,i,l,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((g++?s:"")+u)));return delete n.dense,r.join("")}function YB(t,e){e||(e={}),e.FS=" ",e.RS=`
|
|
358
|
-
`;var r=L1(t,e);return r}function SD(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var A=Br(t["!ref"]),a="",i=[],s,l=[],c=Array.isArray(t);for(s=A.s.c;s<=A.e.c;++s)i[s]=Qn(s);for(var u=A.s.r;u<=A.e.r;++u)for(a=bn(u),s=A.s.c;s<=A.e.c;++s)if(e=i[s]+a,r=c?(t[u]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function JB(t,e,r){var n=r||{},A=+!n.skipHeader,a=t||{},i=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;i=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:i+e.length-1+A}};if(a["!ref"]){var p=Br(a["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),i==-1&&(i=p.e.r+1,u.e.r=i+e.length-1+A)}else i==-1&&(i=0,u.e.r=e.length-1+A);var h=n.header||[],d=0;e.forEach(function(g,m){Bn(g).forEach(function(w){(d=h.indexOf(w))==-1&&(h[d=h.length]=w);var _=g[w],N="z",Q="",W=rr({c:s+d,r:i+m+A});c=sc(a,W),_&&typeof _=="object"&&!(_ instanceof Date)?a[W]=_:(typeof _=="number"?N="n":typeof _=="boolean"?N="b":typeof _=="string"?N="s":_ instanceof Date?(N="d",n.cellDates||(N="n",_=rA(_)),Q=n.dateNF||Tr[14]):_===null&&n.nullError&&(N="e",_=0),c?(c.t=N,c.v=_,delete c.w,delete c.R,Q&&(c.z=Q)):a[W]=c={t:N,v:_},Q&&(c.z=Q))})}),u.e.c=Math.max(u.e.c,s+h.length-1);var y=bn(i);if(A)for(d=0;d<h.length;++d)a[Qn(d+s)+y]={t:"s",v:h[d]};return a["!ref"]=Wr(u),a}function kD(t,e){return JB(null,t,e)}function sc(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=hn(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?sc(t,rr(e)):sc(t,rr({r:e,c:r||0}))}function TD(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function ND(){return{SheetNames:[],Sheets:{}}}function LD(t,e,r,n){var A=1;if(!r)for(;A<=65535&&t.SheetNames.indexOf(r="Sheet"+A)!=-1;++A,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);A=a&&+a[2]||0;var i=a&&a[1]||r;for(++A;A<=65535&&t.SheetNames.indexOf(r=i+A)!=-1;++A);}if(MB(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function UD(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=TD(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function ID(t,e){return t.z=e,t}function ZB(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function QD(t,e,r){return ZB(t,"#"+e,r)}function DD(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function OD(t,e,r,n){for(var A=typeof e!="string"?e:Br(e),a=typeof e=="string"?e:Wr(e),i=A.s.r;i<=A.e.r;++i)for(var s=A.s.c;s<=A.e.c;++s){var l=sc(t,i,s);l.t="n",l.F=a,delete l.v,i==A.s.r&&s==A.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Er={encode_col:Qn,encode_row:bn,encode_cell:rr,encode_range:Wr,decode_col:d1,decode_row:f1,split_cell:ZN,decode_cell:hn,decode_range:mA,format_cell:Wa,sheet_add_aoa:Dw,sheet_add_json:JB,sheet_add_dom:zB,aoa_to_sheet:ws,json_to_sheet:kD,table_to_sheet:KB,table_to_book:sD,sheet_to_csv:L1,sheet_to_txt:YB,sheet_to_json:Kh,sheet_to_html:$B,sheet_to_formulae:SD,sheet_to_row_object_array:Kh,sheet_get_cell:sc,book_new:ND,book_append_sheet:LD,book_set_sheet_visibility:UD,cell_set_number_format:ID,cell_set_hyperlink:ZB,cell_set_internal_link:QD,cell_add_comment:DD,sheet_set_array_formula:OD,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Gh(t,e,r,n,A){let{series:a}=t;if(!a||t.base===0)return{...a,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const i=[...a].map(c=>c.value).reduce((c,u)=>c+u,0),s=[];let l=0;for(let c=0;c<a.length;c+=1){let u=a[c].value/i;const p=u*(Math.PI*1.9999),d=a[c].value/2/i*(Math.PI*2),{startX:y,startY:g,endX:m,endY:w,path:_}=tx([e,r],[n,A],[l,p],110);s.push({cx:e,cy:r,...a[c],proportion:u,ratio:p,path:_,startX:y,startY:g,endX:m,endY:w,center:tx([e,r],[n*1.45,A*1.45],[l,d],110)}),l+=p}return s}function jh([t,e],[r,n]){return[t+r,e+n]}function Wh([[t,e],[r,n]],[A,a]){return[t*A+e*a,r*A+n*a]}function ex(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function tx([t,e],[r,n],[A,a],i){a=a%(2*Math.PI);const s=ex(i),[l,c]=jh(Wh(s,[r*Math.cos(A),n*Math.sin(A)]),[t,e]),[u,p]=jh(Wh(s,[r*Math.cos(A+a),n*Math.sin(A+a)]),[t,e]),h=a>Math.PI?1:0,d=a>0?1:0;return{startX:l,startY:c,endX:u,endY:p,path:`M${l} ${c} A ${[r,n,i/(2*Math.PI)*360,h,d,u,p].join(" ")}`}}function Ea({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(n=>{if(Object.hasOwn(e,n)){const A=e[n];typeof A=="boolean"?r[n]=A:["string","number"].includes(typeof A)?RD(A)&&(r[n]=A):Array.isArray(r[n])?PD({userConfig:e,key:n})&&(r[n]=A):MD({userConfig:e,key:n})&&(r[n]=Ea({defaultConfig:r[n],userConfig:A}))}}),r}function PD({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length}function MD({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function RD(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function HD(t){return![void 0,NaN,1/0,-1/0].includes(t)}function VD(t,e=0){return isNaN(t)?e:t}const Rt=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],gr=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"];function An(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,n=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;if([void 0,null,NaN].includes(t))return null;if(t==="transparent")return"#FFFFFF00";let A;if(A=t.match(e)){const[,a,i,s]=A;return`#${a}${i}${s}`}else if(A=t.match(r)){const[,a,i,s]=A;return`#${Ts(a)}${Ts(i)}${Ts(s)}`}else if(A=t.match(n)){const[,a,i,s]=A,l=$D(Number(a),Number(i),Number(s));return`#${Ts(l[0])}${Ts(l[1])}${Ts(l[2])}`}return null}function Ts(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function $D(t,e,r){t/=360,e/=100,r/=100;let n,A,a;if(e===0)n=A=a=r;else{const i=(c,u,p)=>(p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?c+(u-c)*6*p:p<.5?u:p<.6666666666666666?c+(u-c)*(.6666666666666666-p)*6:c),s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),A=i(l,s,t),a=i(l,s,t-1/3)}return[Math.round(n*255),Math.round(A*255),Math.round(a*255)]}function Ns(t,e){const r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),n=({r:c,g:u,b:p})=>{c/=255,u/=255,p/=255;const h=Math.max(c,u,p),d=Math.min(c,u,p);let y,g,m=(h+d)/2;if(h===d)y=g=0;else{const w=h-d;switch(g=m>.5?w/(2-h-d):w/(h+d),h){case c:y=(u-p)/w+(u<p?6:0);break;case u:y=(p-c)/w+2;break;case p:y=(c-u)/w+4;break}y/=6}return{h:y,s:g,l:m}},A=({h:c,s:u,l:p})=>{let h,d,y;if(u===0)h=d=y=p;else{const g=(_,N,Q)=>(Q<0&&(Q+=1),Q>1&&(Q-=1),Q<.16666666666666666?_+(N-_)*6*Q:Q<.5?N:Q<.6666666666666666?_+(N-_)*(.6666666666666666-Q)*6:_),m=p<.5?p*(1+u):p+u-p*u,w=2*p-m;h=g(w,m,c+.3333333333333333),d=g(w,m,c),y=g(w,m,c-.3333333333333333)}return{r:Math.round(h*255),g:Math.round(d*255),b:Math.round(y*255)}},a=r(t),i=n(a);i.h+=e,i.h=(i.h+1)%1;const s=A(i);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`}function zD({centerX:t,centerY:e,outerPoints:r,radius:n,rotation:A}){const a=Math.PI/r,i=A;let s="";const l=[];for(let c=0;c<r*2;c+=1){let u=t+Math.cos(c*a+i)*n,p=e+Math.sin(c*a+i)*n;s+=`${u},${p} `,l.push({x:u,y:p})}return{path:`M${s}Z`,coordinates:l}}function Fo({plot:t,radius:e,sides:r,rotation:n=0}){const A=t.x,a=t.y,i=r/2;return zD({centerX:A,centerY:a,outerPoints:i,radius:e+1,rotation:n})}function KD({centerX:t,centerY:e,innerCirclePoints:r,innerRadius:n,outerRadius:A}){const a=Math.PI/r,i=60,s=r*2;let l="";for(let c=0;c<s;c+=1){let p=c%2==0?A:n,h=t+Math.cos(c*a+i)*p,d=e+Math.sin(c*a+i)*p;l+=`${h},${d} `}return l}function GD({plot:t,radius:e}){const r=t.x,n=t.y,A=5,a=e*3.5/A,s=a*2;return KD({centerX:r,centerY:n,innerCirclePoints:A,innerRadius:a,outerRadius:s})}function jD({series:t}){t=t.sort((c,u)=>c.x-u.x);function e(c,u,p){const h=(c.x-u.x)*(p.x-u.x)+(c.y-u.y)*(p.y-u.y),d=(c.x-u.x)*(p.y-u.y)-(p.x-u.x)*(c.y-u.y);return Math.atan2(d,h)}const r=[];let n;n=t[0];for(const c of t)c.x<n.x&&(n=c);r[0]=n;let A,a,i,s;A=r[0],a={x:A.x,y:A.y+1};do{i=Math.PI;for(const c of t)n=e(a,A,c),n<=i&&(s=c,i=n);s!==r[0]&&(r.push(s),a=A,A=s)}while(s!==r[0]);let l;return r.forEach(c=>{c&&c.x&&c.y&&(l+=`${Math.round(c.x)},${Math.round(c.y)} `)}),l=l.replaceAll("undefined",""),l}function rx(t){if(t){let e=t;e.charAt(0)!=="#"&&(e=this.rgbToHex(t)),e=e.substring(1,7);let r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),A=parseInt(e.substring(4,6),16),i=[r/255,n/255,A/255].map(l=>l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4));return .2126*i[0]+.7152*i[1]+.0722*i[2]>.3?"#000000":"#FFFFFF"}return"#000000"}function Fa(t){for(const e in t)typeof t[e]=="object"&&!Array.isArray(t[e])&&t[e]!==null?Fa(t[e]):(e==="color"||e==="backgroundColor"||e==="stroke")&&(t[e]===""?t[e]="#000000":t[e]==="transparent"?t[e]="#FFFFFF00":t[e]=An(t[e]));return t}const wAe="",Ya=(t,e)=>{const r=t.__vccOpts||t;for(const[n,A]of e)r[n]=A;return r},WD={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`,e=Math.max(...this.dataset.map(n=>n.series.length));return{opacity:gr,useSafeValues:!0,palette:Rt,defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,zoom:{show:!0,color:"#2D353C"},padding:{top:36,right:12,bottom:12,left:48},highlighter:{color:"#2D353C",opacity:5},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6,showOnlyFirstAndLast:!1}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t,slicer:{start:0,end:e},maxX:e}},computed:{chartConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,n)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*n*this.absoluteDataset.filter(A=>A.type==="bar").filter(A=>!this.segregatedSeries.includes(A.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[n]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){const t=Math.min(...this.safeDataset.filter(e=>!this.segregatedSeries.includes(e.id)).map(e=>Math.min(...e.series)));return t>0?0:t},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.chartConfig.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=this.relativeDataset.map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.timeLabels.forEach((r,n)=>{const A=[r];this.relativeDataset.forEach(a=>{A.push(this.canShowValue(a.absoluteValues[n])?Number(a.absoluteValues[n].toFixed(this.chartConfig.table.rounding)):"")}),e.push(A)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(A=>({name:A.name,color:A.color,type:A.type,value:A.absoluteValues.find((a,i)=>i===this.selectedSerieIndex)}));let e="",r=t.map(A=>A.value).filter(A=>this.isSafeValue(A)&&A!==null).reduce((A,a)=>Math.abs(A)+Math.abs(a),0);const n=this.timeLabels[this.selectedSerieIndex];return n&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${n}</div>`),t.forEach(A=>{this.isSafeValue(A.value)&&A.value!==null&&(e+=`<div><span style="color:${A.color}; margin-right: 3px">${this.icons[A.type]}</span>${A.name} : <b>${this.chartConfig.chart.tooltip.showValue?A.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(A.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,n=48;if(t&&e){const{width:A,height:a}=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.clientPosition.x+A/2>i.right?r=-A:this.clientPosition.x-A/2<i.left?r=0:r=-A/2,this.clientPosition.y+a>i.bottom&&(n=-a-48)}return{top:this.clientPosition.y+n,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let A=5;A>0;A-=1){const a=t*A;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*A),value:a})}const r=this.closestDecimal(this.min/5),n=[];for(let A=5;A>=0;A-=1){const a=Math.abs(r)*A;n.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*A),value:-a})}return[...e,...n]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,n=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${n})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",n),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,n)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
358
|
+
`;var r=L1(t,e);return r}function SD(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var A=Br(t["!ref"]),a="",i=[],s,l=[],c=Array.isArray(t);for(s=A.s.c;s<=A.e.c;++s)i[s]=Qn(s);for(var u=A.s.r;u<=A.e.r;++u)for(a=bn(u),s=A.s.c;s<=A.e.c;++s)if(e=i[s]+a,r=c?(t[u]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function JB(t,e,r){var n=r||{},A=+!n.skipHeader,a=t||{},i=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;i=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:i+e.length-1+A}};if(a["!ref"]){var p=Br(a["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),i==-1&&(i=p.e.r+1,u.e.r=i+e.length-1+A)}else i==-1&&(i=0,u.e.r=e.length-1+A);var h=n.header||[],d=0;e.forEach(function(g,m){Bn(g).forEach(function(w){(d=h.indexOf(w))==-1&&(h[d=h.length]=w);var _=g[w],N="z",Q="",W=rr({c:s+d,r:i+m+A});c=sc(a,W),_&&typeof _=="object"&&!(_ instanceof Date)?a[W]=_:(typeof _=="number"?N="n":typeof _=="boolean"?N="b":typeof _=="string"?N="s":_ instanceof Date?(N="d",n.cellDates||(N="n",_=rA(_)),Q=n.dateNF||Tr[14]):_===null&&n.nullError&&(N="e",_=0),c?(c.t=N,c.v=_,delete c.w,delete c.R,Q&&(c.z=Q)):a[W]=c={t:N,v:_},Q&&(c.z=Q))})}),u.e.c=Math.max(u.e.c,s+h.length-1);var y=bn(i);if(A)for(d=0;d<h.length;++d)a[Qn(d+s)+y]={t:"s",v:h[d]};return a["!ref"]=Wr(u),a}function kD(t,e){return JB(null,t,e)}function sc(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=hn(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?sc(t,rr(e)):sc(t,rr({r:e,c:r||0}))}function TD(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function ND(){return{SheetNames:[],Sheets:{}}}function LD(t,e,r,n){var A=1;if(!r)for(;A<=65535&&t.SheetNames.indexOf(r="Sheet"+A)!=-1;++A,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);A=a&&+a[2]||0;var i=a&&a[1]||r;for(++A;A<=65535&&t.SheetNames.indexOf(r=i+A)!=-1;++A);}if(MB(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function UD(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=TD(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function ID(t,e){return t.z=e,t}function ZB(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function QD(t,e,r){return ZB(t,"#"+e,r)}function DD(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function OD(t,e,r,n){for(var A=typeof e!="string"?e:Br(e),a=typeof e=="string"?e:Wr(e),i=A.s.r;i<=A.e.r;++i)for(var s=A.s.c;s<=A.e.c;++s){var l=sc(t,i,s);l.t="n",l.F=a,delete l.v,i==A.s.r&&s==A.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Er={encode_col:Qn,encode_row:bn,encode_cell:rr,encode_range:Wr,decode_col:d1,decode_row:f1,split_cell:ZN,decode_cell:hn,decode_range:mA,format_cell:Wa,sheet_add_aoa:Dw,sheet_add_json:JB,sheet_add_dom:zB,aoa_to_sheet:ws,json_to_sheet:kD,table_to_sheet:KB,table_to_book:sD,sheet_to_csv:L1,sheet_to_txt:YB,sheet_to_json:Kh,sheet_to_html:$B,sheet_to_formulae:SD,sheet_to_row_object_array:Kh,sheet_get_cell:sc,book_new:ND,book_append_sheet:LD,book_set_sheet_visibility:UD,cell_set_number_format:ID,cell_set_hyperlink:ZB,cell_set_internal_link:QD,cell_add_comment:DD,sheet_set_array_formula:OD,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Gh(t,e,r,n,A){let{series:a}=t;if(!a||t.base===0)return{...a,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const i=[...a].map(c=>c.value).reduce((c,u)=>c+u,0),s=[];let l=0;for(let c=0;c<a.length;c+=1){let u=a[c].value/i;const p=u*(Math.PI*1.9999),d=a[c].value/2/i*(Math.PI*2),{startX:y,startY:g,endX:m,endY:w,path:_}=tx([e,r],[n,A],[l,p],110);s.push({cx:e,cy:r,...a[c],proportion:u,ratio:p,path:_,startX:y,startY:g,endX:m,endY:w,center:tx([e,r],[n*1.45,A*1.45],[l,d],110)}),l+=p}return s}function jh([t,e],[r,n]){return[t+r,e+n]}function Wh([[t,e],[r,n]],[A,a]){return[t*A+e*a,r*A+n*a]}function ex(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function tx([t,e],[r,n],[A,a],i){a=a%(2*Math.PI);const s=ex(i),[l,c]=jh(Wh(s,[r*Math.cos(A),n*Math.sin(A)]),[t,e]),[u,p]=jh(Wh(s,[r*Math.cos(A+a),n*Math.sin(A+a)]),[t,e]),h=a>Math.PI?1:0,d=a>0?1:0;return{startX:l,startY:c,endX:u,endY:p,path:`M${l} ${c} A ${[r,n,i/(2*Math.PI)*360,h,d,u,p].join(" ")}`}}function Ea({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(n=>{if(Object.hasOwn(e,n)){const A=e[n];typeof A=="boolean"?r[n]=A:["string","number"].includes(typeof A)?RD(A)&&(r[n]=A):Array.isArray(r[n])?PD({userConfig:e,key:n})&&(r[n]=A):MD({userConfig:e,key:n})&&(r[n]=Ea({defaultConfig:r[n],userConfig:A}))}}),r}function PD({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length>=0}function MD({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function RD(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function HD(t){return![void 0,NaN,1/0,-1/0].includes(t)}function VD(t,e=0){return isNaN(t)?e:t}const Rt=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],gr=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"];function An(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,n=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;if([void 0,null,NaN].includes(t))return null;if(t==="transparent")return"#FFFFFF00";let A;if(A=t.match(e)){const[,a,i,s]=A;return`#${a}${i}${s}`}else if(A=t.match(r)){const[,a,i,s]=A;return`#${Ts(a)}${Ts(i)}${Ts(s)}`}else if(A=t.match(n)){const[,a,i,s]=A,l=$D(Number(a),Number(i),Number(s));return`#${Ts(l[0])}${Ts(l[1])}${Ts(l[2])}`}return null}function Ts(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function $D(t,e,r){t/=360,e/=100,r/=100;let n,A,a;if(e===0)n=A=a=r;else{const i=(c,u,p)=>(p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?c+(u-c)*6*p:p<.5?u:p<.6666666666666666?c+(u-c)*(.6666666666666666-p)*6:c),s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),A=i(l,s,t),a=i(l,s,t-1/3)}return[Math.round(n*255),Math.round(A*255),Math.round(a*255)]}function Ns(t,e){const r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),n=({r:c,g:u,b:p})=>{c/=255,u/=255,p/=255;const h=Math.max(c,u,p),d=Math.min(c,u,p);let y,g,m=(h+d)/2;if(h===d)y=g=0;else{const w=h-d;switch(g=m>.5?w/(2-h-d):w/(h+d),h){case c:y=(u-p)/w+(u<p?6:0);break;case u:y=(p-c)/w+2;break;case p:y=(c-u)/w+4;break}y/=6}return{h:y,s:g,l:m}},A=({h:c,s:u,l:p})=>{let h,d,y;if(u===0)h=d=y=p;else{const g=(_,N,Q)=>(Q<0&&(Q+=1),Q>1&&(Q-=1),Q<.16666666666666666?_+(N-_)*6*Q:Q<.5?N:Q<.6666666666666666?_+(N-_)*(.6666666666666666-Q)*6:_),m=p<.5?p*(1+u):p+u-p*u,w=2*p-m;h=g(w,m,c+.3333333333333333),d=g(w,m,c),y=g(w,m,c-.3333333333333333)}return{r:Math.round(h*255),g:Math.round(d*255),b:Math.round(y*255)}},a=r(t),i=n(a);i.h+=e,i.h=(i.h+1)%1;const s=A(i);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`}function zD({centerX:t,centerY:e,outerPoints:r,radius:n,rotation:A}){const a=Math.PI/r,i=A;let s="";const l=[];for(let c=0;c<r*2;c+=1){let u=t+Math.cos(c*a+i)*n,p=e+Math.sin(c*a+i)*n;s+=`${u},${p} `,l.push({x:u,y:p})}return{path:`M${s}Z`,coordinates:l}}function Fo({plot:t,radius:e,sides:r,rotation:n=0}){const A=t.x,a=t.y,i=r/2;return zD({centerX:A,centerY:a,outerPoints:i,radius:e+1,rotation:n})}function KD({centerX:t,centerY:e,innerCirclePoints:r,innerRadius:n,outerRadius:A}){const a=Math.PI/r,i=60,s=r*2;let l="";for(let c=0;c<s;c+=1){let p=c%2==0?A:n,h=t+Math.cos(c*a+i)*p,d=e+Math.sin(c*a+i)*p;l+=`${h},${d} `}return l}function GD({plot:t,radius:e}){const r=t.x,n=t.y,A=5,a=e*3.5/A,s=a*2;return KD({centerX:r,centerY:n,innerCirclePoints:A,innerRadius:a,outerRadius:s})}function jD({series:t}){t=t.sort((c,u)=>c.x-u.x);function e(c,u,p){const h=(c.x-u.x)*(p.x-u.x)+(c.y-u.y)*(p.y-u.y),d=(c.x-u.x)*(p.y-u.y)-(p.x-u.x)*(c.y-u.y);return Math.atan2(d,h)}const r=[];let n;n=t[0];for(const c of t)c.x<n.x&&(n=c);r[0]=n;let A,a,i,s;A=r[0],a={x:A.x,y:A.y+1};do{i=Math.PI;for(const c of t)n=e(a,A,c),n<=i&&(s=c,i=n);s!==r[0]&&(r.push(s),a=A,A=s)}while(s!==r[0]);let l;return r.forEach(c=>{c&&c.x&&c.y&&(l+=`${Math.round(c.x)},${Math.round(c.y)} `)}),l=l.replaceAll("undefined",""),l}function rx(t){if(t){let e=t;e.charAt(0)!=="#"&&(e=this.rgbToHex(t)),e=e.substring(1,7);let r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),A=parseInt(e.substring(4,6),16),i=[r/255,n/255,A/255].map(l=>l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4));return .2126*i[0]+.7152*i[1]+.0722*i[2]>.3?"#000000":"#FFFFFF"}return"#000000"}function Fa(t){for(const e in t)typeof t[e]=="object"&&!Array.isArray(t[e])&&t[e]!==null?Fa(t[e]):(e==="color"||e==="backgroundColor"||e==="stroke")&&(t[e]===""?t[e]="#000000":t[e]==="transparent"?t[e]="#FFFFFF00":t[e]=An(t[e]));return t}const wAe="",Ya=(t,e)=>{const r=t.__vccOpts||t;for(const[n,A]of e)r[n]=A;return r},WD={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`,e=Math.max(...this.dataset.map(n=>n.series.length));return{opacity:gr,useSafeValues:!0,palette:Rt,defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,zoom:{show:!0,color:"#2D353C"},padding:{top:36,right:12,bottom:12,left:48},highlighter:{color:"#2D353C",opacity:5},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6,showOnlyFirstAndLast:!1}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t,slicer:{start:0,end:e},maxX:e}},computed:{chartConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,n)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*n*this.absoluteDataset.filter(A=>A.type==="bar").filter(A=>!this.segregatedSeries.includes(A.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[n]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){const t=Math.min(...this.safeDataset.filter(e=>!this.segregatedSeries.includes(e.id)).map(e=>Math.min(...e.series)));return t>0?0:t},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.chartConfig.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=this.relativeDataset.map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.timeLabels.forEach((r,n)=>{const A=[r];this.relativeDataset.forEach(a=>{A.push(this.canShowValue(a.absoluteValues[n])?Number(a.absoluteValues[n].toFixed(this.chartConfig.table.rounding)):"")}),e.push(A)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(A=>({name:A.name,color:A.color,type:A.type,value:A.absoluteValues.find((a,i)=>i===this.selectedSerieIndex)}));let e="",r=t.map(A=>A.value).filter(A=>this.isSafeValue(A)&&A!==null).reduce((A,a)=>Math.abs(A)+Math.abs(a),0);const n=this.timeLabels[this.selectedSerieIndex];return n&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${n}</div>`),t.forEach(A=>{this.isSafeValue(A.value)&&A.value!==null&&(e+=`<div><span style="color:${A.color}; margin-right: 3px">${this.icons[A.type]}</span>${A.name} : <b>${this.chartConfig.chart.tooltip.showValue?A.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(A.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,n=48;if(t&&e){const{width:A,height:a}=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.clientPosition.x+A/2>i.right?r=-A:this.clientPosition.x-A/2<i.left?r=0:r=-A/2,this.clientPosition.y+a>i.bottom&&(n=-a-48)}return{top:this.clientPosition.y+n,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let A=5;A>0;A-=1){const a=t*A;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*A),value:a})}const r=this.closestDecimal(this.min/5),n=[];for(let A=5;A>=0;A-=1){const a=Math.abs(r)*A;n.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*A),value:-a})}return[...e,...n]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,n=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${n})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",n),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,n)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
359
359
|
-----> The serie '${e.name}' contains the value '${r}' at index ${n}.
|
|
360
|
-
'${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{checkNaN:VD,isSafeValue:HD,treeShake:Ea,shiftHue:Ns,pdf:Ti,convertColorToHex:An,convertConfigColors:Fa,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let n;return t<0,n=Math.round(t/r)*r,n},ratioToMax(t){return t/this.absoluteMax},selectX(t){this.$emit("selectX",{dataset:this.relativeDataset.map(e=>({name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type})),index:t,indexLabel:this.chartConfig.chart.grid.labels.xAxisLabels.values[t]})},getData(){return this.absoluteDataset.map(t=>({values:t.absoluteValues,color:t.color,name:t.name,type:t.type}))},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}this.$emit("selectLegend",this.relativeDataset.map(e=>({name:e.name,values:e.absoluteValues,color:e.color,type:e.type})))},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){this.isPrinting=!0,this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.chartConfig.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(u=>u.label)],r=this.table.body,n=t.concat([e]).concat(r);function A(u){let p=new ArrayBuffer(u.length),h=new Uint8Array(p);for(let d=0;d<u.length;d++)h[d]=u.charCodeAt(d)&255;return p}const a=Er.book_new(),i=Er.aoa_to_sheet(n);Er.book_append_sheet(a,i,"Sheet1");const s=qa(a,{bookType:"xlsx",type:"binary"}),l=new Blob([A(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,c.click(),window.URL.revokeObjectURL(c.href)}}},XD=t=>(o.pushScopeId("data-v-b0d1b95b"),t=t(),o.popScopeId(),t),qD=["id"],YD={class:"vue-ui-xy-user-option-item"},JD=["id","name"],ZD=["for"],eO={class:"vue-ui-xy-user-option-item"},tO=["id","name"],rO=["for"],nO={class:"vue-ui-xy-user-option-item"},AO=["id","name"],aO=["for"],iO={class:"vue-ui-xy-user-option-item"},oO=["id","name"],sO=["for"],lO=["disabled"],cO=["stroke"],uO=[o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-b0d1b95b></path><path d="M18 16v.01" data-v-b0d1b95b></path><path d="M6 16v.01" data-v-b0d1b95b></path><path d="M12 5v.01" data-v-b0d1b95b></path><path d="M12 12v.01" data-v-b0d1b95b></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-b0d1b95b></path>',6)],hO={key:1},fO=["viewBox"],dO={class:"vue-ui-xy-grid"},gO=["stroke","x1","x2","y1","y2"],pO=["stroke","x1","x2","y1","y2"],mO={key:0},vO=["x1","x2","y1","y2","stroke"],yO=["id"],wO=["stop-color"],BO=["stop-color"],xO=["stop-color"],bO=["id"],CO=["stop-color"],EO=["stop-color"],FO=["stop-color"],_O=["id"],SO=["stop-color"],kO=["stop-color"],TO=["id"],NO=["stop-color"],LO=["stop-color"],UO=["x","y","height","width","fill"],IO=["cx","cy","r","fill","stroke"],QO=["x1","x2","y1","y2","stroke","stroke-width"],DO=["cx","cy","r","fill","stroke"],OO={key:0},PO=["x","y","font-size","fill"],MO={key:1},RO=["x","y","font-size","fill"],HO={key:2},VO=["x","y","font-size","fill"],$O={key:3},zO=["x1","x2","y1","y2","stroke"],KO=["x","y","font-size","fill"],GO=["font-size","fill"],jO=["x","y","font-size","fill"],WO={key:4},XO={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},qO={key:5},YO=["y"],JO={class:"vue-ui-xy-legend"},ZO=["onClick"],e7={key:6},t7=["y","x","font-size","fill"],r7={key:7},n7=["x","y","height","width","fill","onMouseenter","onClick"],A7={key:2,class:"vue-ui-xy-range-slider","data-html2canvas-ignore":""},a7={class:"vue-ui-xy-slider--left"},i7=["for"],o7=["id","max"],s7={class:"vue-ui-xy-slider--right"},l7=["for"],c7=["id","min","max"],u7=["onClick"],h7=["innerHTML"],f7=["innerHTML"],d7={class:"vue-ui-xy-table"},g7={style:{"max-width":"200px",margin:"0 auto","text-align":"center"}},p7=[XD(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],m7=["onMouseover"];function v7(t,e,r,n,A,a){return o.openBlock(),o.createElementBlock("div",{id:`vue-ui-xy_${A.uniqueId}`,class:"vue-ui-xy",ref:"chart",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color};width:100%`)},[a.chartConfig.chart.title.show&&(!A.mutableConfig.titleInside||A.isPrinting)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:o.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[o.createElementVNode("div",{class:"vue-ui-xy-title-main",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},o.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize}px; color:${a.chartConfig.chart.title.subtitle.color}`)},o.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),a.chartConfig.chart.userOptions.show?(o.openBlock(),o.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[o.createElementVNode("summary",{style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},o.toDisplayString(a.chartConfig.chart.userOptions.title),5),o.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[o.createElementVNode("div",YD,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${A.uniqueId}`,name:`vue-ui-xy-option-datalabels_${A.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=i=>A.mutableConfig.dataLabels.show=i)},null,8,JD),[[o.vModelCheckbox,A.mutableConfig.dataLabels.show]]),o.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.dataLabels),9,ZD)]),o.createElementVNode("div",eO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${A.uniqueId}`,name:`vue-ui-xy-option-title_${A.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=i=>A.mutableConfig.titleInside=i)},null,8,tO),[[o.vModelCheckbox,A.mutableConfig.titleInside]]),o.createElementVNode("label",{for:`vue-ui-xy-option-title_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.titleInside),9,rO)]),o.createElementVNode("div",nO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${A.uniqueId}`,name:`vue-ui-xy-option-legend_${A.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=i=>A.mutableConfig.legendInside=i)},null,8,AO),[[o.vModelCheckbox,A.mutableConfig.legendInside]]),o.createElementVNode("label",{for:`vue-ui-xy-option-legend_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.legendInside),9,aO)]),o.createElementVNode("div",iO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${A.uniqueId}`,name:`vue-ui-xy-option-table_${A.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=i=>A.mutableConfig.showTable=i)},null,8,oO),[[o.vModelCheckbox,A.mutableConfig.showTable]]),o.createElementVNode("label",{for:`vue-ui-xy-option-table_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.showTable),9,sO)]),o.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...i)=>a.generatePdf&&a.generatePdf(...i)),disabled:A.isPrinting,style:o.normalizeStyle(`margin-top: 12px; background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[A.isPrinting?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:a.chartConfig.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uO,8,cO)):(o.openBlock(),o.createElementBlock("span",hO,"PDF"))],12,lO),o.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...i)=>a.generateXls&&a.generateXls(...i)),style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)}," XLSX ",4)],4)],4)):o.createCommentVNode("",!0),(o.openBlock(),o.createElementBlock("svg",{width:"100%",viewBox:a.viewBox,class:"vue-ui-xy-svg",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color}; font-family:${a.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[o.createElementVNode("g",dO,[o.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-linecap":"round"},null,8,gO),o.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.right,y1:a.zero,y2:a.zero,"stroke-linecap":"round"},null,8,pO),a.chartConfig.chart.grid.showVerticalLines?(o.openBlock(),o.createElementBlock("g",mO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.maxSeries+1,(i,s)=>(o.openBlock(),o.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,x2:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-width":"0.5",stroke:a.chartConfig.chart.grid.stroke},null,8,vO))),128))])):o.createCommentVNode("",!0)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_rect_${s}`},[o.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${A.uniqueId}`,x2:"0%",y2:"100%"},[o.createElementVNode("stop",{offset:"0%","stop-color":i.color},null,8,wO),o.createElementVNode("stop",{offset:"62%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,BO),o.createElementVNode("stop",{offset:"100%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,xO)],8,yO),o.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${A.uniqueId}`,x2:"0%",y2:"100%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,CO),o.createElementVNode("stop",{offset:"38%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,EO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,FO)],8,bO)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_plot_${s}`},[o.createElementVNode("radialGradient",{id:`plotGradient_${s}_${A.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,SO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,kO)],8,_O)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_line_${s}`},[o.createElementVNode("radialGradient",{id:`lineGradient_${s}_${A.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,NO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,LO)],8,TO)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_bar_${s}`,class:o.normalizeClass(`serie_bar_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`bar_plot_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("rect",{key:0,x:a.calcRectX(l),y:a.calcRectY(l),height:a.calcRectHeight(l),width:a.calcRectWidth(),fill:a.chartConfig.bar.useGradient?l.value>=0?`url(#rectGradient_pos_${s}_${A.uniqueId})`:`url(#rectGradient_neg_${s}_${A.uniqueId})`:i.color},null,8,UO)):o.createCommentVNode("",!0)]))),128))],2))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_plot_${s}`,class:o.normalizeClass(`serie_plot_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`circle_plot_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:a.chartConfig.plot.radius,fill:a.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${A.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,IO)):o.createCommentVNode("",!0)]))),128))],2))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_line_${s}`,class:o.normalizeClass(`serie_line_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`line_${s}_${c}`},[c<i.plots.length-1&&a.canShowValue(l.value)&&a.canShowValue(i.plots[c+1].value)?(o.openBlock(),o.createElementBlock("line",{key:0,x1:l.x,x2:i.plots[c+1].x,y1:l.y,y2:i.plots[c+1].y,stroke:i.color,"stroke-width":a.chartConfig.line.strokeWidth},null,8,QO)):o.createCommentVNode("",!0)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`circle_line_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:a.chartConfig.line.radius,fill:a.chartConfig.line.useGradient?`url(#lineGradient_${s}_${A.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,DO)):o.createCommentVNode("",!0)]))),128))],2))),128)),a.chartConfig.bar.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",OO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_bar_${s}`,class:o.normalizeClass(`xLabel_bar_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_bar_${s}_${c}`},[o.createElementVNode("text",{x:l.x+a.calcRectWidth(),y:l.y+a.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.bar.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.bar.labels.rounding):""),9,PO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.plot.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",MO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_plot_${s}`,class:o.normalizeClass(`xLabel_plot_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_plot_${s}_${c}`},[o.createElementVNode("text",{x:l.x,y:l.y+a.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.plot.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.plot.labels.rounding):""),9,RO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.line.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",HO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_line_${s}`,class:o.normalizeClass(`xLabel_line_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_line_${s}_${c}`},[o.createElementVNode("text",{x:l.x,y:l.y+a.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.line.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.line.labels.rounding):""),9,VO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.show?(o.openBlock(),o.createElementBlock("g",$O,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.yLabels,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`yLabel_${s}`},[i.value>=a.min&&i.value<=a.max?(o.openBlock(),o.createElementBlock("line",{key:0,x1:a.drawingArea.left,x2:a.drawingArea.left-5,y1:i.y,y2:i.y,stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,zO)):o.createCommentVNode("",!0),i.value>=a.min&&i.value<=a.max?(o.openBlock(),o.createElementBlock("text",{key:1,x:a.drawingArea.left-5,y:i.y+a.chartConfig.chart.labels.fontSize/3,"font-size":a.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:a.chartConfig.chart.grid.labels.color},o.toDisplayString(a.canShowValue(i.value)?i.value.toFixed(0):""),9,KO)):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("g",null,[a.chartConfig.chart.grid.labels.axis.yLabel?(o.openBlock(),o.createElementBlock("text",{key:0,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},o.toDisplayString(a.chartConfig.chart.grid.labels.axis.yLabel),9,GO)):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.axis.xLabel?(o.openBlock(),o.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.chartConfig.chart.width/2,y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.axis.fontSize+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color},o.toDisplayString(a.chartConfig.chart.grid.labels.axis.xLabel),9,jO)):o.createCommentVNode("",!0)]),a.chartConfig.chart.title.show&&A.mutableConfig.titleInside&&!A.isPrinting?(o.openBlock(),o.createElementBlock("g",WO,[(o.openBlock(),o.createElementBlock("foreignObject",XO,[o.createElementVNode("div",{class:"vue-ui-xy-title",style:o.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[o.createElementVNode("div",{class:"vue-ui-xy-title-main",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize*.6}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},o.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${a.chartConfig.chart.title.subtitle.color}`)},o.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)]))])):o.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&A.mutableConfig.legendInside&&!A.isPrinting?(o.openBlock(),o.createElementBlock("g",qO,[(o.openBlock(),o.createElementBlock("foreignObject",{x:"0",y:a.drawingArea.bottom+a.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:o.normalizeStyle(`overflow:visible; font-size:${a.chartConfig.chart.legend.fontSize*.6}px`)},[o.createElementVNode("div",JO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.absoluteDataset,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>a.segregate(i),class:o.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":A.segregatedSeries.includes(i.id)})},[["plot"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle(`color:${i.color}`)},"●",4)):o.createCommentVNode("",!0),["line"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:1,style:o.normalizeStyle(`color:${i.color}`)},"▬",4)):o.createCommentVNode("",!0),["bar"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:2,style:o.normalizeStyle(`color:${i.color}`)},"◼",4)):o.createCommentVNode("",!0),o.createElementVNode("span",{style:o.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},o.toDisplayString(i.name),5)],10,ZO))),128))])],12,YO))])):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.xAxisLabels.show?(o.openBlock(),o.createElementBlock("g",e7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.timeLabels,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`time_label_${s}`},[i&&!a.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast||i&&a.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===a.timeLabels.length-1)?(o.openBlock(),o.createElementBlock("text",{key:0,"text-anchor":"middle",y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s+a.drawingArea.width/a.maxSeries/2,"font-size":a.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:a.chartConfig.chart.grid.labels.xAxisLabels.color},o.toDisplayString(i||""),9,t7)):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show?(o.openBlock(),o.createElementBlock("g",r7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.maxSeries,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`tooltip_trap_${s}`},[o.createElementVNode("rect",{x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s,y:a.drawingArea.top,height:a.drawingArea.height,width:a.drawingArea.width/a.maxSeries,fill:A.selectedSerieIndex===s||A.selectedRowIndex===s?`${a.chartConfig.chart.highlighter.color}${A.opacity[a.chartConfig.chart.highlighter.opacity]}`:"transparent",onMouseenter:l=>a.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=l=>a.toggleTooltip(!1)),onClick:l=>a.selectX(s)},null,40,n7)]))),128))])):o.createCommentVNode("",!0)],12,fO)),a.chartConfig.chart.zoom.show?(o.openBlock(),o.createElementBlock("div",A7,[o.createElementVNode("div",a7,[o.createElementVNode("label",{for:`start_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[A.slicer.start]),9,i7),o.withDirectives(o.createElementVNode("input",{id:`start_${A.uniqueId}`,type:"range",style:o.normalizeStyle(`accent-color:${a.chartConfig.chart.zoom.color}`),min:0,max:Math.floor(A.maxX/2),"onUpdate:modelValue":e[8]||(e[8]=i=>A.slicer.start=i)},null,12,o7),[[o.vModelText,A.slicer.start]])]),o.createElementVNode("div",s7,[o.createElementVNode("label",{for:`end_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[A.slicer.end-1]),9,l7),o.withDirectives(o.createElementVNode("input",{id:`end_${A.uniqueId}`,type:"range",style:o.normalizeStyle(`accent-color:${a.chartConfig.chart.zoom.color}`),min:Math.ceil(A.maxX/2),max:A.maxX,"onUpdate:modelValue":e[9]||(e[9]=i=>A.slicer.end=i)},null,12,c7),[[o.vModelText,A.slicer.end]])])])):o.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&(!A.mutableConfig.legendInside||A.isPrinting)?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vue-ui-xy-legend",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.legend.fontSize}px`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.absoluteDataset,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>a.segregate(i),class:o.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":A.segregatedSeries.includes(i.id)})},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${i.color}`),innerHTML:A.icons[i.type]},null,12,h7),o.createElementVNode("span",{style:o.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},o.toDisplayString(i.name),5)],10,u7))),128))],4)):o.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show&&A.isTooltip?(o.openBlock(),o.createElementBlock("div",{key:4,class:"vue-ui-xy-tooltip",ref:"tooltip",style:o.normalizeStyle(`top:${a.tooltipPosition.top}px;left:${a.tooltipPosition.left}px; background-color:${a.chartConfig.chart.tooltip.backgroundColor};color:${a.chartConfig.chart.tooltip.color}`),innerHTML:a.tooltipContent},null,12,f7)):o.createCommentVNode("",!0),a.chartConfig.showTable&&A.mutableConfig.showTable?(o.openBlock(),o.createElementBlock("div",{key:5,class:o.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":A.isPrinting}),onClick:e[11]||(e[11]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[o.createElementVNode("table",d7,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},null,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.head,(i,s)=>(o.openBlock(),o.createElementBlock("th",{key:`th_${s}`,style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},[o.createElementVNode("div",g7,[o.createElementVNode("span",{style:o.normalizeStyle(`color:${i.color}; margin-right:3px`)},o.toDisplayString(A.icons[i.type]),5),o.createTextVNode(o.toDisplayString(i.label),1)])],4))),128))]),o.createElementVNode("tr",null,[o.createElementVNode("th",{align:"right",style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},p7,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.head,(i,s)=>(o.openBlock(),o.createElementBlock("th",{align:"right",key:`th_sum_${s}`,style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color};padding-right:6px`)},o.toDisplayString(r.dataset[s].series.slice(A.slicer.start,A.slicer.end).reduce((l,c)=>l+c,0).toFixed(a.chartConfig.table.rounding)),5))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.body,(i,s)=>(o.openBlock(),o.createElementBlock("tr",{key:`tr_${s}`,class:o.normalizeClass({"vue-ui-xy-table-tr-selected":A.selectedSerieIndex===s||A.selectedRowIndex===s}),onMouseover:l=>A.selectedRowIndex=s,onMouseleave:e[10]||(e[10]=l=>A.selectedRowIndex=null)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i,(l,c)=>(o.openBlock(),o.createElementBlock("td",{key:`td_${s}_${c}`,style:o.normalizeStyle(`background:${a.chartConfig.table.td.backgroundColor};color:${a.chartConfig.table.td.color};padding-right:6px;`)},o.toDisplayString(l),5))),128))],42,m7))),128))])])],2)):o.createCommentVNode("",!0)],12,qD)}const y7=Ya(WD,[["render",v7],["__scopeId","data-v-b0d1b95b"]]),bAe="",w7={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:Rt,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
|
|
360
|
+
'${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{checkNaN:VD,isSafeValue:HD,treeShake:Ea,shiftHue:Ns,pdf:Ti,convertColorToHex:An,convertConfigColors:Fa,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let n;return t<0,n=Math.round(t/r)*r,n},ratioToMax(t){return t/this.absoluteMax},selectX(t){this.$emit("selectX",{dataset:this.relativeDataset.map(e=>({name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type})),index:t,indexLabel:this.chartConfig.chart.grid.labels.xAxisLabels.values[t]})},getData(){return this.absoluteDataset.map(t=>({values:t.absoluteValues,color:t.color,name:t.name,type:t.type}))},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}this.$emit("selectLegend",this.relativeDataset.map(e=>({name:e.name,values:e.absoluteValues,color:e.color,type:e.type})))},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){this.isPrinting=!0,this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.chartConfig.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(u=>u.label)],r=this.table.body,n=t.concat([e]).concat(r);function A(u){let p=new ArrayBuffer(u.length),h=new Uint8Array(p);for(let d=0;d<u.length;d++)h[d]=u.charCodeAt(d)&255;return p}const a=Er.book_new(),i=Er.aoa_to_sheet(n);Er.book_append_sheet(a,i,"Sheet1");const s=qa(a,{bookType:"xlsx",type:"binary"}),l=new Blob([A(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,c.click(),window.URL.revokeObjectURL(c.href)}}},XD=t=>(o.pushScopeId("data-v-df19898b"),t=t(),o.popScopeId(),t),qD=["id"],YD={class:"vue-ui-xy-user-option-item"},JD=["id","name"],ZD=["for"],eO={class:"vue-ui-xy-user-option-item"},tO=["id","name"],rO=["for"],nO={class:"vue-ui-xy-user-option-item"},AO=["id","name"],aO=["for"],iO={class:"vue-ui-xy-user-option-item"},oO=["id","name"],sO=["for"],lO=["disabled"],cO=["stroke"],uO=[o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-df19898b></path><path d="M18 16v.01" data-v-df19898b></path><path d="M6 16v.01" data-v-df19898b></path><path d="M12 5v.01" data-v-df19898b></path><path d="M12 12v.01" data-v-df19898b></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-df19898b></path>',6)],hO={key:1},fO=["viewBox"],dO={class:"vue-ui-xy-grid"},gO=["stroke","x1","x2","y1","y2"],pO=["stroke","x1","x2","y1","y2"],mO={key:0},vO=["x1","x2","y1","y2","stroke"],yO=["id"],wO=["stop-color"],BO=["stop-color"],xO=["stop-color"],bO=["id"],CO=["stop-color"],EO=["stop-color"],FO=["stop-color"],_O=["id"],SO=["stop-color"],kO=["stop-color"],TO=["id"],NO=["stop-color"],LO=["stop-color"],UO=["x","y","height","width","fill"],IO=["cx","cy","r","fill","stroke"],QO=["x1","x2","y1","y2","stroke","stroke-width"],DO=["cx","cy","r","fill","stroke"],OO={key:0},PO=["x","y","font-size","fill"],MO={key:1},RO=["x","y","font-size","fill"],HO={key:2},VO=["x","y","font-size","fill"],$O={key:3},zO=["x1","x2","y1","y2","stroke"],KO=["x","y","font-size","fill"],GO=["font-size","fill"],jO=["x","y","font-size","fill"],WO={key:4},XO={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},qO={key:5},YO=["y"],JO={class:"vue-ui-xy-legend"},ZO=["onClick"],e7={key:6},t7=["y","x","font-size","fill"],r7={key:7},n7=["x","y","height","width","fill","onMouseenter","onClick"],A7={key:2,class:"vue-ui-xy-range-slider","data-html2canvas-ignore":""},a7={class:"vue-ui-xy-slider--left"},i7=["for"],o7=["id","max"],s7={class:"vue-ui-xy-slider--right"},l7=["for"],c7=["id","max"],u7=["onClick"],h7=["innerHTML"],f7=["innerHTML"],d7={class:"vue-ui-xy-table"},g7={style:{"max-width":"200px",margin:"0 auto","text-align":"center"}},p7=[XD(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],m7=["onMouseover"];function v7(t,e,r,n,A,a){return o.openBlock(),o.createElementBlock("div",{id:`vue-ui-xy_${A.uniqueId}`,class:"vue-ui-xy",ref:"chart",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color};width:100%`)},[a.chartConfig.chart.title.show&&(!A.mutableConfig.titleInside||A.isPrinting)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:o.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[o.createElementVNode("div",{class:"vue-ui-xy-title-main",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},o.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize}px; color:${a.chartConfig.chart.title.subtitle.color}`)},o.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),a.chartConfig.chart.userOptions.show?(o.openBlock(),o.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[o.createElementVNode("summary",{style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},o.toDisplayString(a.chartConfig.chart.userOptions.title),5),o.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[o.createElementVNode("div",YD,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${A.uniqueId}`,name:`vue-ui-xy-option-datalabels_${A.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=i=>A.mutableConfig.dataLabels.show=i)},null,8,JD),[[o.vModelCheckbox,A.mutableConfig.dataLabels.show]]),o.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.dataLabels),9,ZD)]),o.createElementVNode("div",eO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${A.uniqueId}`,name:`vue-ui-xy-option-title_${A.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=i=>A.mutableConfig.titleInside=i)},null,8,tO),[[o.vModelCheckbox,A.mutableConfig.titleInside]]),o.createElementVNode("label",{for:`vue-ui-xy-option-title_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.titleInside),9,rO)]),o.createElementVNode("div",nO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${A.uniqueId}`,name:`vue-ui-xy-option-legend_${A.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=i=>A.mutableConfig.legendInside=i)},null,8,AO),[[o.vModelCheckbox,A.mutableConfig.legendInside]]),o.createElementVNode("label",{for:`vue-ui-xy-option-legend_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.legendInside),9,aO)]),o.createElementVNode("div",iO,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${A.uniqueId}`,name:`vue-ui-xy-option-table_${A.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=i=>A.mutableConfig.showTable=i)},null,8,oO),[[o.vModelCheckbox,A.mutableConfig.showTable]]),o.createElementVNode("label",{for:`vue-ui-xy-option-table_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.userOptions.labels.showTable),9,sO)]),o.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...i)=>a.generatePdf&&a.generatePdf(...i)),disabled:A.isPrinting,style:o.normalizeStyle(`margin-top: 12px; background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[A.isPrinting?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:a.chartConfig.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uO,8,cO)):(o.openBlock(),o.createElementBlock("span",hO,"PDF"))],12,lO),o.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...i)=>a.generateXls&&a.generateXls(...i)),style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)}," XLSX ",4)],4)],4)):o.createCommentVNode("",!0),(o.openBlock(),o.createElementBlock("svg",{width:"100%",viewBox:a.viewBox,class:"vue-ui-xy-svg",style:o.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color}; font-family:${a.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[o.createElementVNode("g",dO,[o.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-linecap":"round"},null,8,gO),o.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.right,y1:a.zero,y2:a.zero,"stroke-linecap":"round"},null,8,pO),a.chartConfig.chart.grid.showVerticalLines?(o.openBlock(),o.createElementBlock("g",mO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.maxSeries+1,(i,s)=>(o.openBlock(),o.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,x2:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-width":"0.5",stroke:a.chartConfig.chart.grid.stroke},null,8,vO))),128))])):o.createCommentVNode("",!0)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_rect_${s}`},[o.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${A.uniqueId}`,x2:"0%",y2:"100%"},[o.createElementVNode("stop",{offset:"0%","stop-color":i.color},null,8,wO),o.createElementVNode("stop",{offset:"62%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,BO),o.createElementVNode("stop",{offset:"100%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,xO)],8,yO),o.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${A.uniqueId}`,x2:"0%",y2:"100%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,CO),o.createElementVNode("stop",{offset:"38%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,EO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,FO)],8,bO)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_plot_${s}`},[o.createElementVNode("radialGradient",{id:`plotGradient_${s}_${A.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,SO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,kO)],8,_O)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("defs",{key:`def_line_${s}`},[o.createElementVNode("radialGradient",{id:`lineGradient_${s}_${A.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[o.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,NO),o.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,LO)],8,TO)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_bar_${s}`,class:o.normalizeClass(`serie_bar_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`bar_plot_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("rect",{key:0,x:a.calcRectX(l),y:a.calcRectY(l),height:a.calcRectHeight(l),width:a.calcRectWidth(),fill:a.chartConfig.bar.useGradient?l.value>=0?`url(#rectGradient_pos_${s}_${A.uniqueId})`:`url(#rectGradient_neg_${s}_${A.uniqueId})`:i.color},null,8,UO)):o.createCommentVNode("",!0)]))),128))],2))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_plot_${s}`,class:o.normalizeClass(`serie_plot_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`circle_plot_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:a.chartConfig.plot.radius,fill:a.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${A.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,IO)):o.createCommentVNode("",!0)]))),128))],2))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`serie_line_${s}`,class:o.normalizeClass(`serie_line_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`line_${s}_${c}`},[c<i.plots.length-1&&a.canShowValue(l.value)&&a.canShowValue(i.plots[c+1].value)?(o.openBlock(),o.createElementBlock("line",{key:0,x1:l.x,x2:i.plots[c+1].x,y1:l.y,y2:i.plots[c+1].y,stroke:i.color,"stroke-width":a.chartConfig.line.strokeWidth},null,8,QO)):o.createCommentVNode("",!0)]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`circle_line_${s}_${c}`},[a.canShowValue(l.value)?(o.openBlock(),o.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:a.chartConfig.line.radius,fill:a.chartConfig.line.useGradient?`url(#lineGradient_${s}_${A.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,DO)):o.createCommentVNode("",!0)]))),128))],2))),128)),a.chartConfig.bar.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",OO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.barSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_bar_${s}`,class:o.normalizeClass(`xLabel_bar_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_bar_${s}_${c}`},[o.createElementVNode("text",{x:l.x+a.calcRectWidth(),y:l.y+a.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.bar.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.bar.labels.rounding):""),9,PO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.plot.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",MO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.plotSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_plot_${s}`,class:o.normalizeClass(`xLabel_plot_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_plot_${s}_${c}`},[o.createElementVNode("text",{x:l.x,y:l.y+a.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.plot.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.plot.labels.rounding):""),9,RO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.line.labels.show&&A.mutableConfig.dataLabels.show?(o.openBlock(),o.createElementBlock("g",HO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.lineSet,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_line_${s}`,class:o.normalizeClass(`xLabel_line_${s}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.plots,(l,c)=>(o.openBlock(),o.createElementBlock("g",{key:`xLabel_line_${s}_${c}`},[o.createElementVNode("text",{x:l.x,y:l.y+a.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.line.labels.color},o.toDisplayString(a.canShowValue(l.value)?l.value.toFixed(a.chartConfig.line.labels.rounding):""),9,VO)]))),128))],2))),128))])):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.show?(o.openBlock(),o.createElementBlock("g",$O,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.yLabels,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`yLabel_${s}`},[i.value>=a.min&&i.value<=a.max?(o.openBlock(),o.createElementBlock("line",{key:0,x1:a.drawingArea.left,x2:a.drawingArea.left-5,y1:i.y,y2:i.y,stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,zO)):o.createCommentVNode("",!0),i.value>=a.min&&i.value<=a.max?(o.openBlock(),o.createElementBlock("text",{key:1,x:a.drawingArea.left-5,y:i.y+a.chartConfig.chart.labels.fontSize/3,"font-size":a.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:a.chartConfig.chart.grid.labels.color},o.toDisplayString(a.canShowValue(i.value)?i.value.toFixed(0):""),9,KO)):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("g",null,[a.chartConfig.chart.grid.labels.axis.yLabel?(o.openBlock(),o.createElementBlock("text",{key:0,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},o.toDisplayString(a.chartConfig.chart.grid.labels.axis.yLabel),9,GO)):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.axis.xLabel?(o.openBlock(),o.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.chartConfig.chart.width/2,y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.axis.fontSize+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color},o.toDisplayString(a.chartConfig.chart.grid.labels.axis.xLabel),9,jO)):o.createCommentVNode("",!0)]),a.chartConfig.chart.title.show&&A.mutableConfig.titleInside&&!A.isPrinting?(o.openBlock(),o.createElementBlock("g",WO,[(o.openBlock(),o.createElementBlock("foreignObject",XO,[o.createElementVNode("div",{class:"vue-ui-xy-title",style:o.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[o.createElementVNode("div",{class:"vue-ui-xy-title-main",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize*.6}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},o.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${a.chartConfig.chart.title.subtitle.color}`)},o.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)]))])):o.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&A.mutableConfig.legendInside&&!A.isPrinting?(o.openBlock(),o.createElementBlock("g",qO,[(o.openBlock(),o.createElementBlock("foreignObject",{x:"0",y:a.drawingArea.bottom+a.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:o.normalizeStyle(`overflow:visible; font-size:${a.chartConfig.chart.legend.fontSize*.6}px`)},[o.createElementVNode("div",JO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.absoluteDataset,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>a.segregate(i),class:o.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":A.segregatedSeries.includes(i.id)})},[["plot"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle(`color:${i.color}`)},"●",4)):o.createCommentVNode("",!0),["line"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:1,style:o.normalizeStyle(`color:${i.color}`)},"▬",4)):o.createCommentVNode("",!0),["bar"].includes(i.type)?(o.openBlock(),o.createElementBlock("span",{key:2,style:o.normalizeStyle(`color:${i.color}`)},"◼",4)):o.createCommentVNode("",!0),o.createElementVNode("span",{style:o.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},o.toDisplayString(i.name),5)],10,ZO))),128))])],12,YO))])):o.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.xAxisLabels.show?(o.openBlock(),o.createElementBlock("g",e7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.timeLabels,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`time_label_${s}`},[i&&!a.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast||i&&a.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===a.timeLabels.length-1)?(o.openBlock(),o.createElementBlock("text",{key:0,"text-anchor":"middle",y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s+a.drawingArea.width/a.maxSeries/2,"font-size":a.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:a.chartConfig.chart.grid.labels.xAxisLabels.color},o.toDisplayString(i||""),9,t7)):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show?(o.openBlock(),o.createElementBlock("g",r7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.maxSeries,(i,s)=>(o.openBlock(),o.createElementBlock("g",{key:`tooltip_trap_${s}`},[o.createElementVNode("rect",{x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s,y:a.drawingArea.top,height:a.drawingArea.height,width:a.drawingArea.width/a.maxSeries,fill:A.selectedSerieIndex===s||A.selectedRowIndex===s?`${a.chartConfig.chart.highlighter.color}${A.opacity[a.chartConfig.chart.highlighter.opacity]}`:"transparent",onMouseenter:l=>a.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=l=>a.toggleTooltip(!1)),onClick:l=>a.selectX(s)},null,40,n7)]))),128))])):o.createCommentVNode("",!0)],12,fO)),a.chartConfig.chart.zoom.show?(o.openBlock(),o.createElementBlock("div",A7,[o.createElementVNode("div",a7,[o.createElementVNode("label",{for:`start_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[A.slicer.start]),9,i7),o.withDirectives(o.createElementVNode("input",{id:`start_${A.uniqueId}`,type:"range",style:o.normalizeStyle(`accent-color:${a.chartConfig.chart.zoom.color}`),min:0,max:A.maxX,"onUpdate:modelValue":e[8]||(e[8]=i=>A.slicer.start=i)},null,12,o7),[[o.vModelText,A.slicer.start]])]),o.createElementVNode("div",s7,[o.createElementVNode("label",{for:`end_${A.uniqueId}`},o.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[A.slicer.end-1]),9,l7),o.withDirectives(o.createElementVNode("input",{id:`end_${A.uniqueId}`,type:"range",style:o.normalizeStyle(`accent-color:${a.chartConfig.chart.zoom.color}`),min:0,max:A.maxX,"onUpdate:modelValue":e[9]||(e[9]=i=>A.slicer.end=i)},null,12,c7),[[o.vModelText,A.slicer.end]])])])):o.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&(!A.mutableConfig.legendInside||A.isPrinting)?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vue-ui-xy-legend",style:o.normalizeStyle(`font-size:${a.chartConfig.chart.legend.fontSize}px`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.absoluteDataset,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>a.segregate(i),class:o.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":A.segregatedSeries.includes(i.id)})},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${i.color}`),innerHTML:A.icons[i.type]},null,12,h7),o.createElementVNode("span",{style:o.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},o.toDisplayString(i.name),5)],10,u7))),128))],4)):o.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show&&A.isTooltip?(o.openBlock(),o.createElementBlock("div",{key:4,class:"vue-ui-xy-tooltip",ref:"tooltip",style:o.normalizeStyle(`top:${a.tooltipPosition.top}px;left:${a.tooltipPosition.left}px; background-color:${a.chartConfig.chart.tooltip.backgroundColor};color:${a.chartConfig.chart.tooltip.color}`),innerHTML:a.tooltipContent},null,12,f7)):o.createCommentVNode("",!0),a.chartConfig.showTable&&A.mutableConfig.showTable?(o.openBlock(),o.createElementBlock("div",{key:5,class:o.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":A.isPrinting}),onClick:e[11]||(e[11]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[o.createElementVNode("table",d7,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},null,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.head,(i,s)=>(o.openBlock(),o.createElementBlock("th",{key:`th_${s}`,style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},[o.createElementVNode("div",g7,[o.createElementVNode("span",{style:o.normalizeStyle(`color:${i.color}; margin-right:3px`)},o.toDisplayString(A.icons[i.type]),5),o.createTextVNode(o.toDisplayString(i.label),1)])],4))),128))]),o.createElementVNode("tr",null,[o.createElementVNode("th",{align:"right",style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},p7,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.head,(i,s)=>(o.openBlock(),o.createElementBlock("th",{align:"right",key:`th_sum_${s}`,style:o.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color};padding-right:6px`)},o.toDisplayString(r.dataset[s].series.slice(A.slicer.start,A.slicer.end).reduce((l,c)=>l+c,0).toFixed(a.chartConfig.table.rounding)),5))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.table.body,(i,s)=>(o.openBlock(),o.createElementBlock("tr",{key:`tr_${s}`,class:o.normalizeClass({"vue-ui-xy-table-tr-selected":A.selectedSerieIndex===s||A.selectedRowIndex===s}),onMouseover:l=>A.selectedRowIndex=s,onMouseleave:e[10]||(e[10]=l=>A.selectedRowIndex=null)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i,(l,c)=>(o.openBlock(),o.createElementBlock("td",{key:`td_${s}_${c}`,style:o.normalizeStyle(`background:${a.chartConfig.table.td.backgroundColor};color:${a.chartConfig.table.td.color};padding-right:6px;`)},o.toDisplayString(l),5))),128))],42,m7))),128))])])],2)):o.createCommentVNode("",!0)],12,qD)}const y7=Ya(WD,[["render",v7],["__scopeId","data-v-df19898b"]]),bAe="",w7={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:Rt,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
|
|
361
361
|
Provide an array of objects of type:
|
|
362
362
|
{
|
|
363
363
|
name: string;
|
|
@@ -375,7 +375,7 @@ Provide an array of objects of type:
|
|
|
375
375
|
C${Z.x1-20},${Z.y1+Fe}
|
|
376
376
|
${Z.x1-80},${Z.y1+Fe}
|
|
377
377
|
${k(Z).x+k(Z).r/2}, ${k(Z).y}
|
|
378
|
-
`,stroke:`${Z.color}${o.unref(gr)[h.value.style.chart.layout.links.opacity]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:o.normalizeStyle(`opacity:${he(Z)?1:0}`),onClick:ce},null,12,b$))),256))]))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("circle",{cx:Z.x,cy:Z.y,r:Z.r,fill:h.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`)},null,12,C$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("circle",{cx:Z.x,cy:Z.y,r:Z.r,fill:h.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${A.value}_${Z.rootIndex})`:Z.color,stroke:h.value.style.chart.layout.roots.stroke,"stroke-width":h.value.style.chart.layout.roots.strokeWidth,style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>Ue(Z)},null,12,E$))),256)),h.value.style.chart.layout.roots.labels.show?(o.openBlock(),o.createElementBlock("g",F$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("text",{x:Z.x,y:Z.y+h.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":h.value.style.chart.layout.roots.labels.fontSize,fill:h.value.style.chart.layout.roots.labels.adaptColorToBackground?o.unref(rx)(Z.color):h.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>Ue(Z)},o.toDisplayString(h.value.style.chart.layout.roots.labels.prefix)+" "+o.toDisplayString(Z.total.toFixed(h.value.style.chart.layout.roots.labels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.roots.labels.suffix),13,_$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[L.value&&Z.rootIndex===L.value.rootIndex||X.value&&Z.rootIndex===X.value.rootIndex||se.value&&Z.rootIndex===se.value.rootIndex?(o.openBlock(),o.createElementBlock("g",S$,[o.createElementVNode("text",{x:Z.x,y:Z.y+Z.r+24,"text-anchor":"middle",fill:h.value.style.chart.layout.roots.labels.name.color,"font-size":h.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":h.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:ce},o.toDisplayString(Z.name),9,k$)])):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("rect",{x:Z.x1,y:Z.y1,height:y.value.branchSize,width:Z.x2-Z.x1,fill:h.value.style.chart.layout.branches.underlayerColor,rx:h.value.style.chart.layout.branches.borderRadius,stroke:"none",style:o.normalizeStyle(`opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},null,12,T$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("rect",{x:Z.x1,y:Z.y1,height:y.value.branchSize,width:Z.x2-Z.x1,fill:h.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${A.value}_${Z.rootIndex})`:Z.color,rx:h.value.style.chart.layout.branches.borderRadius,stroke:h.value.style.chart.layout.branches.stroke,"stroke-width":h.value.style.chart.layout.branches.strokeWidth,style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},null,12,N$))),256)),h.value.style.chart.layout.branches.labels.dataLabels.show?(o.openBlock(),o.createElementBlock("g",L$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[Z.proportionToRoot*100>h.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(o.openBlock(),o.createElementBlock("text",{key:0,x:Z.x1+6,y:Z.y1+y.value.branchSize/1.5,"text-anchor":"start",fill:o.unref(rx)(Z.color),"font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),13,U$)):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Gh)({series:Z.breakdown,base:1},Z.x2+24+h.value.style.chart.layout.nuts.offsetX,Z.y1+y.value.branchSize/2,y.value.branchSize/3,y.value.branchSize/3),(Ce,Fe)=>(o.openBlock(),o.createElementBlock("path",{d:Ce.path,stroke:Ce.color,"stroke-width":10,fill:"none",style:o.normalizeStyle(`opacity:${he(Z)?1:.1}`)},null,12,I$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Ce=>(o.openBlock(),o.createElementBlock("circle",{cx:Ce.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Ce.y1+y.value.branchSize/2,r:6,fill:h.value.style.chart.backgroundColor,onClick:Fe=>ge(Ce),style:{cursor:"pointer"}},null,8,Q$))),256)),o.createElementVNode("circle",{fill:h.value.style.chart.layout.nuts.useGradient?`url(#nut_${A.value})`:"transparent",cx:Z.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Z.y1+y.value.branchSize/2,r:y.value.branchSize/2+2,onClick:Ce=>ge(Z),style:o.normalizeStyle(`cursor:pointer;opacity:${he(Z)?1:.1}`)},null,12,D$)]))),256)),h.value.style.chart.layout.branches.labels.show&&!X.value?(o.openBlock(),o.createElementBlock("g",O$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("text",{x:Z.x2+y.value.branchSize+24+h.value.style.chart.layout.nuts.offsetX,y:Z.y1+y.value.branchSize/2+5,"font-size":h.value.style.chart.layout.branches.labels.fontSize,"font-weight":h.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:h.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:o.normalizeStyle(`opacity:${he(Z)?1:.1}`)},o.toDisplayString(Z.name),13,P$))),256))])):o.createCommentVNode("",!0),o.createElementVNode("line",{x1:256+y.value.padding.left,x2:256+y.value.padding.left,y1:g.value.top,y2:g.value.bottom,stroke:h.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":h.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,M$),!L.value&&!X.value?(o.openBlock(),o.createElementBlock("foreignObject",{key:5,x:0,y:g.value.bottom,height:y.value.height-g.value.bottom,width:y.value.width,style:{overflow:"visible"},onClick:ce},[o.createElementVNode("div",H$,[o.createElementVNode("div",V$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(o.openBlock(),o.createElementBlock("svg",$$,[o.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:Z.color,stroke:"none"},null,8,z$)])),o.createElementVNode("span",null,o.toDisplayString(Z.name),1),o.createTextVNode(" : "),o.createElementVNode("b",null,o.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+o.toDisplayString(Z.total.toFixed(h.value.style.chart.layout.legend.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.legend.suffix),1),o.createTextVNode("("+o.toDisplayString((Z.total/m.value*100).toFixed(h.value.style.chart.layout.legend.roundingPercentage))+"%) ",1)],4))),256))])])],8,R$)):o.createCommentVNode("",!0),L.value&&V.value?(o.openBlock(),o.createElementBlock("g",K$,[(o.openBlock(),o.createElementBlock("foreignObject",{x:0,y:b(),height:y.value.height-g.value.bottom,width:y.value.width,style:{overflow:"visible"},onClick:ce},[o.createElementVNode("div",j$,[o.createElementVNode("b",null,o.toDisplayString(L.value.name),1),o.createElementVNode("div",W$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(L.value.breakdown,(Z,Ce)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(o.openBlock(),o.createElementBlock("svg",X$,[o.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:Z.color,stroke:"none"},null,8,q$)])),o.createElementVNode("span",null,[o.createTextVNode(o.toDisplayString(Z.name)+" : ",1),o.createElementVNode("b",null,o.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.legend.suffix),1),o.createTextVNode(" ("+o.toDisplayString((Z.proportionToBranch*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,G$)),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${A.value})`,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Y$),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:118,fill:h.value.style.chart.backgroundColor,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,J$),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,Z=>(o.openBlock(),o.createElementBlock("path",{d:Z.path,stroke:Z.color,"stroke-width":64,fill:"none",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Z$))),256)),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:100,fill:`url(#nutpick_${A.value})`,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,ez),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:48,fill:h.value.style.chart.backgroundColor,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,tz),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("path",{key:0,d:E(Z),stroke:Z.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,rz)):o.createCommentVNode("",!0)]))),256)),o.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+8,fill:h.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(h.value.translations.total),11,nz),o.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+36,fill:h.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.prefix)+" "+o.toDisplayString(L.value.value.toFixed(h.value.style.chart.layout.nuts.selected.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.suffix),11,Az),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,(Z,Ce)=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("text",{key:0,x:x(Z).x,"text-anchor":x(Z).anchor,y:F(Z),fill:Z.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,az)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:1,x:x(Z,!0).x,"text-anchor":x(Z,!0).anchor,y:F(Z),fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(L.value.breakdown[Ce].name),15,iz)):o.createCommentVNode("",!0)]))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,(Z,Ce)=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("text",{key:0,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].value/L.value.value*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(L.value.breakdown[Ce].branchName)+" ("+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix)+" "+o.toDisplayString(L.value.breakdown[Ce].value)+" "+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix)+") ",15,oz)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:1,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].proportionToRoot*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(L.value.breakdown[Ce].rootName),15,sz)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:2,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].proportionToTree*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.proportionToTree),15,lz)):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:0,x:Z.x1+6,y:Z.y1+y.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString(Z.name)+" : "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),9,cz)):o.createCommentVNode("",!0),X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:1,x:Z.x1+6,y:Z.y1+y.value.branchSize+48,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString((Z.proportionToRoot*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(Z.rootName),9,uz)):o.createCommentVNode("",!0),X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:2,x:Z.x1+6,y:Z.y1+y.value.branchSize+72,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString((Z.value/m.value*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.proportionToTree),9,hz)):o.createCommentVNode("",!0)]))),256))],12,JV)):o.createCommentVNode("",!0),d.value.showTable?(o.openBlock(),o.createElementBlock("div",{key:2,onClick:Be,class:"vue-ui-chestnut-table",style:"width:100%;overflow-x:auto"},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[h.value.style.chart.layout.title.text?(o.openBlock(),o.createElementBlock("tr",fz,[o.createElementVNode("th",{colspan:"12",style:o.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},[o.createElementVNode("span",null,o.toDisplayString(h.value.style.chart.layout.title.text),1),h.value.style.chart.layout.title.subtitle.text?(o.openBlock(),o.createElementBlock("span",dz," : "+o.toDisplayString(h.value.style.chart.layout.title.subtitle.text),1)):o.createCommentVNode("",!0)],4)])):o.createCommentVNode("",!0),o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te.value.head,Z=>(o.openBlock(),o.createElementBlock("th",{style:o.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},o.toDisplayString(Z),5))),256))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te.value.body,(Z,Ce)=>(o.openBlock(),o.createElementBlock("tr",null,[o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",gz)):(o.openBlock(),o.createElementBlock("span",pz,o.toDisplayString(Z.rootName),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",mz)):(o.openBlock(),o.createElementBlock("span",vz,o.toDisplayString(Z.rootValue.toFixed(h.value.table.td.roundingValue)),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",yz)):(o.openBlock(),o.createElementBlock("span",wz,o.toDisplayString((Z.rootToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",Bz)):(o.openBlock(),o.createElementBlock("span",xz,o.toDisplayString(Z.branchName),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",bz)):(o.openBlock(),o.createElementBlock("span",Cz,o.toDisplayString(Z.branchValue.toFixed(h.value.table.td.roundingValue)),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",Ez)):(o.openBlock(),o.createElementBlock("span",Fz,o.toDisplayString((Z.branchToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",_z)):(o.openBlock(),o.createElementBlock("span",Sz,o.toDisplayString((Z.branchToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString(Z.nutName),5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString(Z.nutValue.toFixed(h.value.table.td.roundingValue)),5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToBranch*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5)]))),256))])])])):o.createCommentVNode("",!0)],12,zV))}},[["__scopeId","data-v-bb11d54e"]]),zAe="",Tz=["id"],Nz={class:"vue-ui-onion-user-option-item"},Lz=["id","name"],Uz=["for"],Iz={class:"vue-ui-onion-user-option-item"},Qz=["id","name"],Dz=["for"],Oz=["disabled"],Pz=["stroke"],Mz=[o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3ee4c8c6></path><path d="M18 16v.01" data-v-3ee4c8c6></path><path d="M6 16v.01" data-v-3ee4c8c6></path><path d="M12 5v.01" data-v-3ee4c8c6></path><path d="M12 12v.01" data-v-3ee4c8c6></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-3ee4c8c6></path>',6)],Rz={key:1},Hz=["viewBox"],Vz=["id"],$z=["stop-color"],zz=["stop-color"],Kz=["stop-color"],Gz={key:0},jz=["font-size","fill","x","y"],Wz=["font-size","fill","x","y"],Xz=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],qz=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Yz={key:1},Jz=["cx","cy","r","fill"],Zz={key:2},eK=["x","y","font-size","fill","font-weight"],tK=["y","height"],rK=["onClick"],nK=["onClick"],AK={key:0},aK={key:0},iK=["colspan"],oK=Ya({__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,A=o.ref(`vue-ui-onion-${Math.random()}`),a=o.ref({style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",useGradient:!1,gradientIntensity:20,layout:{useDiv:!0,gutter:{color:"#e1e5e8",width:.62},track:{width:.62},labels:{show:!0,fontSize:14,color:"#2D353C",roundingValue:0,roundingPercentage:0,bold:!0,offsetY:0,offsetX:0,value:{show:!0},percentage:{show:!0}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}}),i=o.ref(!1),s=o.ref(null),l=o.ref(null),c=o.computed(()=>{if(!Object.keys(n.config||{}).length)return a.value;const P=Ea({defaultConfig:a.value,userConfig:n.config});return Fa(P)}),u=o.ref({inside:!c.value.style.chart.layout.useDiv,showTable:c.value.table.show}),p=o.computed(()=>{const P=u.value.inside?80:64;return{height:512,width:512,padding:{top:P,left:P,right:P,bottom:P}}}),h=o.computed(()=>({top:p.value.padding.top,left:p.value.padding.left,right:p.value.width-p.value.padding.right,bottom:p.value.height-p.value.padding.bottom,centerX:p.value.width/2,centerY:p.value.height/2,width:p.value.width-p.value.padding.right-p.value.padding.left,height:p.value.height-p.value.padding.bottom-p.value.padding.top,minRadius:64,maxRadius:p.value.width-p.value.padding.right-p.value.padding.left})),d=o.computed(()=>n.dataset.map((P,Y)=>({...P,color:An(P.color)||Rt[Y],id:`onion_serie_${Y}_${A.value}`}))),y=o.ref([]),g=o.computed(()=>d.value.filter(P=>!y.value.includes(P.id)).length),m=o.computed(()=>({gutter:h.value.width/2/g.value*c.value.style.chart.layout.gutter.width,track:h.value.width/2/g.value*c.value.style.chart.layout.track.width})),w=o.computed(()=>d.value.filter(P=>!y.value.includes(P.id)).map((P,Y)=>{const k=(h.value.maxRadius-m.value.track)/g.value/2*(1+Y);return{...P,radius:k,path:_(k,P.percentage)}}));function _(P,Y){const k=P*(1.5+(Y/100>.3333333333333333?0:1-Y/100))*Math.PI,L=P*1.5*Math.PI;return{bgDashArray:`${L} ${L}`,bgDashOffset:L-Y/100*L,dashArray:`${k} ${k}`,dashOffset:k-Y/100*k,fullOffset:0,active:`M${h.value.centerX},${h.value.centerY} A ${P},${P} 0 0 0 ${h.value.right},${h.value.top}`}}function N(P){y.value.includes(P)?y.value=y.value.filter(Y=>Y!==P):y.value.push(P),r("selectLegend",w.value)}function Q(){return w.value}e({getData:Q});const W=o.computed(()=>{const P=[c.value.table.translations.serie,c.value.table.translations.percentage,c.value.table.translations.value],Y=w.value.map(k=>[k.name,k.percentage,k.value]);return{head:P,body:Y}});function z(){i.value=!0,o.nextTick(()=>{Ti({domElement:document.getElementById(`vue-ui-onion_${A.value}`),fileName:c.value.style.chart.title.text||"vue-ui-onion"}).finally(()=>{i.value=!1})})}function I(){o.nextTick(()=>{const P=[[c.value.style.chart.title.text],[c.value.style.chart.title.subtitle.text],[""]],Y=W.value.head,k=W.value.body,L=P.concat([Y]).concat(k);function V(fe){let ye=new ArrayBuffer(fe.length),Ue=new Uint8Array(ye);for(let x=0;x<fe.length;x++)Ue[x]=fe.charCodeAt(x)&255;return ye}const X=Er.book_new(),se=Er.aoa_to_sheet(L);Er.book_append_sheet(X,se,"Sheet1");const ce=qa(X,{bookType:"xlsx",type:"binary"}),he=new Blob([V(ce)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),ge=document.createElement("a");ge.href=window.URL.createObjectURL(he),ge.download=`${c.value.style.chart.title.text.replaceAll(" ","_")||"vue-ui-onion"}.xlsx`,ge.click(),window.URL.revokeObjectURL(ge.href)})}function U(){l.value&&l.value.removeAttribute("open")}return(P,Y)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion",ref_key:"onionChart",ref:s,id:`vue-ui-onion_${A.value}`,style:o.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center`)},[(!u.value.inside||i.value)&&c.value.style.chart.title.text?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor}`)},[o.createElementVNode("div",{style:o.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.color};font-size:${c.value.style.chart.title.fontSize}px;font-weight:${c.value.style.chart.title.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.text),5),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.subtitle.color};font-size:${c.value.style.chart.title.subtitle.fontSize}px;font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),c.value.userOptions.show?(o.openBlock(),o.createElementBlock("details",{key:1,class:"vue-ui-onion-user-options",style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:l},[o.createElementVNode("summary",{style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},o.toDisplayString(c.value.userOptions.title),5),o.createElementVNode("div",{class:"vue-ui-onion-user-options-items",style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[o.createElementVNode("div",Nz,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-title_${A.value}`,name:`vue-ui-onion-option-title_${A.value}`,"onUpdate:modelValue":Y[0]||(Y[0]=k=>u.value.inside=k)},null,8,Lz),[[o.vModelCheckbox,u.value.inside]]),o.createElementVNode("label",{for:`vue-ui-onion-option-title_${A.value}`},o.toDisplayString(c.value.userOptions.labels.useDiv),9,Uz)]),o.createElementVNode("div",Iz,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-table_${A.value}`,name:`vue-ui-onion-option-table_${A.value}`,"onUpdate:modelValue":Y[1]||(Y[1]=k=>u.value.showTable=k)},null,8,Qz),[[o.vModelCheckbox,u.value.showTable]]),o.createElementVNode("label",{for:`vue-ui-onion-option-table_${A.value}`},o.toDisplayString(c.value.userOptions.labels.showTable),9,Dz)]),o.createElementVNode("button",{class:"vue-ui-onion-button",onClick:z,disabled:i.value,style:o.normalizeStyle([{"margin-top":"12px"},`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`])},[i.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-onion-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Mz,8,Pz)):(o.openBlock(),o.createElementBlock("span",Rz,"PDF"))],12,Oz),o.createElementVNode("button",{class:"vue-ui-onion-button",onClick:I,style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)}," XLSX ",4)],4)],4)):o.createCommentVNode("",!0),(o.openBlock(),o.createElementBlock("svg",{viewBox:`0 0 ${p.value.width} ${p.value.height}`,style:o.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),onClick:U},[o.createElementVNode("defs",null,[o.createElementVNode("radialGradient",{id:`onion_gradient_${A.value}`},[o.createElementVNode("stop",{offset:"0%","stop-color":`${o.unref(An)(c.value.style.chart.backgroundColor)}00`},null,8,$z),o.createElementVNode("stop",{offset:"90%","stop-color":"#FFFFFF"+o.unref(gr)[c.value.style.chart.gradientIntensity]},null,8,zz),o.createElementVNode("stop",{offset:"100%","stop-color":`${o.unref(An)(c.value.style.chart.backgroundColor)}00`},null,8,Kz)],8,Vz)]),c.value.style.chart.title.text&&u.value.inside&&!i.value?(o.openBlock(),o.createElementBlock("g",Gz,[o.createElementVNode("text",{"font-size":c.value.style.chart.title.fontSize,fill:c.value.style.chart.title.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize,"text-anchor":"middle",style:o.normalizeStyle(`font-weight:${c.value.style.chart.title.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.text),13,jz),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("text",{key:0,"font-size":c.value.style.chart.title.subtitle.fontSize,fill:c.value.style.chart.title.subtitle.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:o.normalizeStyle(`font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.subtitle.text),13,Wz)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius,stroke:c.value.style.chart.layout.gutter.color,"stroke-width":m.value.gutter,fill:"none","stroke-dasharray":k.path.bgDashArray,"stroke-dashoffset":k.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Xz))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius,stroke:`${k.color}`,"stroke-width":m.value.track,fill:"none","stroke-dasharray":k.path.dashArray,"stroke-dashoffset":k.path.dashOffset,class:"vue-ui-onion-path","stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,qz))),256)),c.value.style.chart.useGradient?(o.openBlock(),o.createElementBlock("g",Yz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius*1.1,stroke:"none",fill:`url(#onion_gradient_${A.value})`,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Jz))),256))])):o.createCommentVNode("",!0),c.value.style.chart.layout.labels.show?(o.openBlock(),o.createElementBlock("g",Zz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("text",{x:p.value.width/2-m.value.gutter*.8+c.value.style.chart.layout.labels.offsetX,y:k.radius+h.value.top-m.value.gutter+c.value.style.chart.layout.labels.fontSize/2+c.value.style.chart.layout.labels.offsetY,"text-anchor":"end","font-size":c.value.style.chart.layout.labels.fontSize,fill:c.value.style.chart.layout.labels.color,"font-weight":c.value.style.chart.layout.labels.bold?"bold":"normal"},o.toDisplayString(k.name)+" "+o.toDisplayString(c.value.style.chart.layout.labels.percentage.show?` : ${k.percentage.toFixed(c.value.style.chart.layout.labels.roundingPercentage)}%`:"")+" "+o.toDisplayString(!c.value.style.chart.layout.labels.percentage.show&&c.value.style.chart.layout.labels.value.show?` : ${k.value?`${k.prefix}${k.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${k.suffix}`:""}`:`${c.value.style.chart.layout.labels.value.show&&k.value?`(${k.prefix}${k.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${k.suffix})`:""}`),9,eK))),256))])):o.createCommentVNode("",!0),c.value.style.chart.legend.show&&u.value.inside&&!i.value?(o.openBlock(),o.createElementBlock("foreignObject",{key:3,x:0,y:h.value.bottom,width:"100%",height:p.value.height-h.value.bottom,style:{overflow:"visible"}},[o.createElementVNode("div",{class:"vue-ui-onion-legend",style:o.normalizeStyle(`color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(k,L)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:V=>N(k.id),style:o.normalizeStyle(`opacity:${y.value.includes(k.id)?.5:1}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),o.createElementVNode("span",null,o.toDisplayString(k.name)+" : ",1),o.createElementVNode("span",null,o.toDisplayString(k.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,rK))),256))],4)],8,tK)):o.createCommentVNode("",!0)],12,Hz)),c.value.style.chart.legend.show&&(!u.value.inside||i.value)?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vue-ui-onion-legend",style:o.normalizeStyle(`background:${c.value.style.chart.legend.backgroundColor};color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(k,L)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:V=>N(k.id),style:o.normalizeStyle(`opacity:${y.value.includes(k.id)?.5:1}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),o.createElementVNode("span",null,o.toDisplayString(k.name)+" : ",1),o.createElementVNode("span",null,o.toDisplayString(k.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,nK))),256))],4)):o.createCommentVNode("",!0),u.value.showTable?(o.openBlock(),o.createElementBlock("div",{key:3,onClick:U,class:"vue-ui-onion-table",style:o.normalizeStyle(`width:100%;margin-top:${u.value.inside?"48px":""}`)},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[c.value.style.chart.title.text?(o.openBlock(),o.createElementBlock("tr",AK,[o.createElementVNode("th",{colspan:"3",style:o.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},[o.createElementVNode("span",null,o.toDisplayString(c.value.style.chart.title.text),1),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("span",aK," : "+o.toDisplayString(c.value.style.chart.title.subtitle.text),1)):o.createCommentVNode("",!0)],4)])):o.createCommentVNode("",!0),o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(W.value.head,k=>(o.openBlock(),o.createElementBlock("th",{colspan:k.color?2:1,style:o.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},o.toDisplayString(k),13,iK))),256))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("tr",null,[o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color}`)}," ⬤ ",4),o.createTextVNode(" "+o.toDisplayString(k.name),1)],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},o.toDisplayString(isNaN(k.percentage)?"":k.percentage.toFixed(c.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},o.toDisplayString(k.prefix)+o.toDisplayString(isNaN(k.value)?"":k.value.toFixed(c.value.table.td.roundingValue))+o.toDisplayString(k.suffix),5)]))),256))])])],4)):o.createCommentVNode("",!0)],12,Tz))}},[["__scopeId","data-v-3ee4c8c6"]]);/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Pi(t){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(t)}function U1(t,e){return U1=Object.setPrototypeOf||function(n,A){return n.__proto__=A,n},U1(t,e)}function sK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xh(t,e,r){return sK()?Xh=Reflect.construct:Xh=function(A,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(A,s),c=new l;return i&&U1(c,i.prototype),c},Xh.apply(null,arguments)}function JA(t){return lK(t)||cK(t)||uK(t)||hK()}function lK(t){if(Array.isArray(t))return I1(t)}function cK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uK(t,e){if(t){if(typeof t=="string")return I1(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I1(t,e)}}function I1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
378
|
+
`,stroke:`${Z.color}${o.unref(gr)[h.value.style.chart.layout.links.opacity]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:o.normalizeStyle(`opacity:${he(Z)?1:0}`),onClick:ce},null,12,b$))),256))]))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("circle",{cx:Z.x,cy:Z.y,r:Z.r,fill:h.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`)},null,12,C$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("circle",{cx:Z.x,cy:Z.y,r:Z.r,fill:h.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${A.value}_${Z.rootIndex})`:Z.color,stroke:h.value.style.chart.layout.roots.stroke,"stroke-width":h.value.style.chart.layout.roots.strokeWidth,style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>Ue(Z)},null,12,E$))),256)),h.value.style.chart.layout.roots.labels.show?(o.openBlock(),o.createElementBlock("g",F$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("text",{x:Z.x,y:Z.y+h.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":h.value.style.chart.layout.roots.labels.fontSize,fill:h.value.style.chart.layout.roots.labels.adaptColorToBackground?o.unref(rx)(Z.color):h.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>Ue(Z)},o.toDisplayString(h.value.style.chart.layout.roots.labels.prefix)+" "+o.toDisplayString(Z.total.toFixed(h.value.style.chart.layout.roots.labels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.roots.labels.suffix),13,_$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[L.value&&Z.rootIndex===L.value.rootIndex||X.value&&Z.rootIndex===X.value.rootIndex||se.value&&Z.rootIndex===se.value.rootIndex?(o.openBlock(),o.createElementBlock("g",S$,[o.createElementVNode("text",{x:Z.x,y:Z.y+Z.r+24,"text-anchor":"middle",fill:h.value.style.chart.layout.roots.labels.name.color,"font-size":h.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":h.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:ce},o.toDisplayString(Z.name),9,k$)])):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("rect",{x:Z.x1,y:Z.y1,height:y.value.branchSize,width:Z.x2-Z.x1,fill:h.value.style.chart.layout.branches.underlayerColor,rx:h.value.style.chart.layout.branches.borderRadius,stroke:"none",style:o.normalizeStyle(`opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},null,12,T$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("rect",{x:Z.x1,y:Z.y1,height:y.value.branchSize,width:Z.x2-Z.x1,fill:h.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${A.value}_${Z.rootIndex})`:Z.color,rx:h.value.style.chart.layout.branches.borderRadius,stroke:h.value.style.chart.layout.branches.stroke,"stroke-width":h.value.style.chart.layout.branches.strokeWidth,style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},null,12,N$))),256)),h.value.style.chart.layout.branches.labels.dataLabels.show?(o.openBlock(),o.createElementBlock("g",L$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[Z.proportionToRoot*100>h.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(o.openBlock(),o.createElementBlock("text",{key:0,x:Z.x1+6,y:Z.y1+y.value.branchSize/1.5,"text-anchor":"start",fill:o.unref(rx)(Z.color),"font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:o.normalizeStyle(`cursor:pointer; opacity:${he(Z)?1:.05}`),onClick:Ce=>ye(Z)},o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),13,U$)):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Gh)({series:Z.breakdown,base:1},Z.x2+24+h.value.style.chart.layout.nuts.offsetX,Z.y1+y.value.branchSize/2,y.value.branchSize/3,y.value.branchSize/3),(Ce,Fe)=>(o.openBlock(),o.createElementBlock("path",{d:Ce.path,stroke:Ce.color,"stroke-width":10,fill:"none",style:o.normalizeStyle(`opacity:${he(Z)?1:.1}`)},null,12,I$))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Ce=>(o.openBlock(),o.createElementBlock("circle",{cx:Ce.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Ce.y1+y.value.branchSize/2,r:6,fill:h.value.style.chart.backgroundColor,onClick:Fe=>ge(Ce),style:{cursor:"pointer"}},null,8,Q$))),256)),o.createElementVNode("circle",{fill:h.value.style.chart.layout.nuts.useGradient?`url(#nut_${A.value})`:"transparent",cx:Z.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Z.y1+y.value.branchSize/2,r:y.value.branchSize/2+2,onClick:Ce=>ge(Z),style:o.normalizeStyle(`cursor:pointer;opacity:${he(Z)?1:.1}`)},null,12,D$)]))),256)),h.value.style.chart.layout.branches.labels.show&&!X.value?(o.openBlock(),o.createElementBlock("g",O$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("text",{x:Z.x2+y.value.branchSize+24+h.value.style.chart.layout.nuts.offsetX,y:Z.y1+y.value.branchSize/2+5,"font-size":h.value.style.chart.layout.branches.labels.fontSize,"font-weight":h.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:h.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:o.normalizeStyle(`opacity:${he(Z)?1:.1}`)},o.toDisplayString(Z.name),13,P$))),256))])):o.createCommentVNode("",!0),o.createElementVNode("line",{x1:256+y.value.padding.left,x2:256+y.value.padding.left,y1:g.value.top,y2:g.value.bottom,stroke:h.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":h.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,M$),!L.value&&!X.value?(o.openBlock(),o.createElementBlock("foreignObject",{key:5,x:0,y:g.value.bottom,height:y.value.height-g.value.bottom,width:y.value.width,style:{overflow:"visible"},onClick:ce},[o.createElementVNode("div",H$,[o.createElementVNode("div",V$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,Z=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(o.openBlock(),o.createElementBlock("svg",$$,[o.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:Z.color,stroke:"none"},null,8,z$)])),o.createElementVNode("span",null,o.toDisplayString(Z.name),1),o.createTextVNode(" : "),o.createElementVNode("b",null,o.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+o.toDisplayString(Z.total.toFixed(h.value.style.chart.layout.legend.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.legend.suffix),1),o.createTextVNode("("+o.toDisplayString((Z.total/m.value*100).toFixed(h.value.style.chart.layout.legend.roundingPercentage))+"%) ",1)],4))),256))])])],8,R$)):o.createCommentVNode("",!0),L.value&&V.value?(o.openBlock(),o.createElementBlock("g",K$,[(o.openBlock(),o.createElementBlock("foreignObject",{x:0,y:b(),height:y.value.height-g.value.bottom,width:y.value.width,style:{overflow:"visible"},onClick:ce},[o.createElementVNode("div",j$,[o.createElementVNode("b",null,o.toDisplayString(L.value.name),1),o.createElementVNode("div",W$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(L.value.breakdown,(Z,Ce)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(o.openBlock(),o.createElementBlock("svg",X$,[o.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:Z.color,stroke:"none"},null,8,q$)])),o.createElementVNode("span",null,[o.createTextVNode(o.toDisplayString(Z.name)+" : ",1),o.createElementVNode("b",null,o.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.legend.suffix),1),o.createTextVNode(" ("+o.toDisplayString((Z.proportionToBranch*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,G$)),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${A.value})`,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Y$),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:118,fill:h.value.style.chart.backgroundColor,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,J$),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,Z=>(o.openBlock(),o.createElementBlock("path",{d:Z.path,stroke:Z.color,"stroke-width":64,fill:"none",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Z$))),256)),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:100,fill:`url(#nutpick_${A.value})`,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,ez),o.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+y.value.branchSize/2,r:48,fill:h.value.style.chart.backgroundColor,onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,tz),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("path",{key:0,d:E(Z),stroke:Z.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,rz)):o.createCommentVNode("",!0)]))),256)),o.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+8,fill:h.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(h.value.translations.total),11,nz),o.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+36,fill:h.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:fe,class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.prefix)+" "+o.toDisplayString(L.value.value.toFixed(h.value.style.chart.layout.nuts.selected.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.suffix),11,Az),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,(Z,Ce)=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("text",{key:0,x:x(Z).x,"text-anchor":x(Z).anchor,y:F(Z),fill:Z.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,az)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:1,x:x(Z,!0).x,"text-anchor":x(Z,!0).anchor,y:F(Z),fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString(L.value.breakdown[Ce].name),15,iz)):o.createCommentVNode("",!0)]))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(V.value,(Z,Ce)=>(o.openBlock(),o.createElementBlock("g",null,[T(Z)?(o.openBlock(),o.createElementBlock("text",{key:0,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].value/L.value.value*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(L.value.breakdown[Ce].branchName)+" ("+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix)+" "+o.toDisplayString(L.value.breakdown[Ce].value)+" "+o.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix)+") ",15,oz)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:1,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].proportionToRoot*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(L.value.breakdown[Ce].rootName),15,sz)):o.createCommentVNode("",!0),T(Z)?(o.openBlock(),o.createElementBlock("text",{key:2,x:x(Z,!0).x,"text-anchor":x(Z).anchor,y:F(Z)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:o.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:o.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},o.toDisplayString((L.value.breakdown[Ce].proportionToTree*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.proportionToTree),15,lz)):o.createCommentVNode("",!0)]))),256))])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,Z=>(o.openBlock(),o.createElementBlock("g",null,[X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:0,x:Z.x1+6,y:Z.y1+y.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString(Z.name)+" : "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+o.toDisplayString(Z.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+o.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),9,cz)):o.createCommentVNode("",!0),X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:1,x:Z.x1+6,y:Z.y1+y.value.branchSize+48,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString((Z.proportionToRoot*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.of)+" "+o.toDisplayString(Z.rootName),9,uz)):o.createCommentVNode("",!0),X.value&&X.value.id===Z.id&&!L.value?(o.openBlock(),o.createElementBlock("text",{key:2,x:Z.x1+6,y:Z.y1+y.value.branchSize+72,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:ce},o.toDisplayString((Z.value/m.value*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+o.toDisplayString(h.value.translations.proportionToTree),9,hz)):o.createCommentVNode("",!0)]))),256))],12,JV)):o.createCommentVNode("",!0),d.value.showTable?(o.openBlock(),o.createElementBlock("div",{key:2,onClick:Be,class:"vue-ui-chestnut-table",style:"width:100%;overflow-x:auto"},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[h.value.style.chart.layout.title.text?(o.openBlock(),o.createElementBlock("tr",fz,[o.createElementVNode("th",{colspan:"12",style:o.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},[o.createElementVNode("span",null,o.toDisplayString(h.value.style.chart.layout.title.text),1),h.value.style.chart.layout.title.subtitle.text?(o.openBlock(),o.createElementBlock("span",dz," : "+o.toDisplayString(h.value.style.chart.layout.title.subtitle.text),1)):o.createCommentVNode("",!0)],4)])):o.createCommentVNode("",!0),o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te.value.head,Z=>(o.openBlock(),o.createElementBlock("th",{style:o.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},o.toDisplayString(Z),5))),256))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te.value.body,(Z,Ce)=>(o.openBlock(),o.createElementBlock("tr",null,[o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",gz)):(o.openBlock(),o.createElementBlock("span",pz,o.toDisplayString(Z.rootName),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",mz)):(o.openBlock(),o.createElementBlock("span",vz,o.toDisplayString(Z.rootValue.toFixed(h.value.table.td.roundingValue)),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].rootName===Z.rootName?(o.openBlock(),o.createElementBlock("span",yz)):(o.openBlock(),o.createElementBlock("span",wz,o.toDisplayString((Z.rootToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",Bz)):(o.openBlock(),o.createElementBlock("span",xz,o.toDisplayString(Z.branchName),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",bz)):(o.openBlock(),o.createElementBlock("span",Cz,o.toDisplayString(Z.branchValue.toFixed(h.value.table.td.roundingValue)),1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",Ez)):(o.openBlock(),o.createElementBlock("span",Fz,o.toDisplayString((Z.branchToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[te.value.body[Ce-1]&&te.value.body[Ce-1].branchName===Z.branchName?(o.openBlock(),o.createElementBlock("span",_z)):(o.openBlock(),o.createElementBlock("span",Sz,o.toDisplayString((Z.branchToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString(Z.nutName),5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString(Z.nutValue.toFixed(h.value.table.td.roundingValue)),5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToBranch*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},o.toDisplayString((Z.nutToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5)]))),256))])])])):o.createCommentVNode("",!0)],12,zV))}},[["__scopeId","data-v-bb11d54e"]]),zAe="",Tz=["id"],Nz={class:"vue-ui-onion-user-option-item"},Lz=["id","name"],Uz=["for"],Iz={class:"vue-ui-onion-user-option-item"},Qz=["id","name"],Dz=["for"],Oz=["disabled"],Pz=["stroke"],Mz=[o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1bfaa13f></path><path d="M18 16v.01" data-v-1bfaa13f></path><path d="M6 16v.01" data-v-1bfaa13f></path><path d="M12 5v.01" data-v-1bfaa13f></path><path d="M12 12v.01" data-v-1bfaa13f></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-1bfaa13f></path>',6)],Rz={key:1},Hz=["viewBox"],Vz=["id"],$z=["stop-color"],zz=["stop-color"],Kz=["stop-color"],Gz={key:0},jz=["font-size","fill","x","y"],Wz=["font-size","fill","x","y"],Xz=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],qz=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Yz={key:1},Jz=["cx","cy","r","fill"],Zz={key:2},eK=["x","y","font-size","fill","font-weight"],tK=["y","height"],rK=["onClick"],nK=["onClick"],AK={key:0},aK={key:0},iK=["colspan"],oK=Ya({__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,A=o.ref(`vue-ui-onion-${Math.random()}`),a=o.ref({style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",useGradient:!1,gradientIntensity:20,layout:{useDiv:!0,gutter:{color:"#e1e5e8",width:.62},track:{width:.62},labels:{show:!0,fontSize:14,color:"#2D353C",roundingValue:0,roundingPercentage:0,bold:!0,offsetY:0,offsetX:0,value:{show:!0},percentage:{show:!0}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}}),i=o.ref(!1),s=o.ref(null),l=o.ref(null),c=o.computed(()=>{if(!Object.keys(n.config||{}).length)return a.value;const P=Ea({defaultConfig:a.value,userConfig:n.config});return Fa(P)}),u=o.ref({inside:!c.value.style.chart.layout.useDiv,showTable:c.value.table.show}),p=o.computed(()=>{const P=u.value.inside?80:64;return{height:512,width:512,padding:{top:P,left:P,right:P,bottom:P}}}),h=o.computed(()=>({top:p.value.padding.top,left:p.value.padding.left,right:p.value.width-p.value.padding.right,bottom:p.value.height-p.value.padding.bottom,centerX:p.value.width/2,centerY:p.value.height/2,width:p.value.width-p.value.padding.right-p.value.padding.left,height:p.value.height-p.value.padding.bottom-p.value.padding.top,minRadius:64,maxRadius:p.value.width-p.value.padding.right-p.value.padding.left})),d=o.computed(()=>n.dataset.map((P,Y)=>({...P,color:An(P.color)||Rt[Y],id:`onion_serie_${Y}_${A.value}`}))),y=o.ref([]),g=o.computed(()=>d.value.filter(P=>!y.value.includes(P.id)).length),m=o.computed(()=>({gutter:h.value.width/2/g.value*c.value.style.chart.layout.gutter.width,track:h.value.width/2/g.value*c.value.style.chart.layout.track.width})),w=o.computed(()=>d.value.filter(P=>!y.value.includes(P.id)).map((P,Y)=>{const k=(h.value.maxRadius-m.value.track)/g.value/2*(1+Y),L=h.value.centerY-(h.value.centerY-h.value.top-c.value.style.chart.layout.labels.fontSize)/g.value*(Y+1);return{...P,labelY:L,radius:k,path:_(k,P.percentage)}}));function _(P,Y){const k=P*(1.5+(Y/100>.3333333333333333?0:1-Y/100))*Math.PI,L=P*1.5*Math.PI;return{bgDashArray:`${L} ${L}`,bgDashOffset:L-Y/100*L,dashArray:`${k} ${k}`,dashOffset:k-Y/100*k,fullOffset:0,active:`M${h.value.centerX},${h.value.centerY} A ${P},${P} 0 0 0 ${h.value.right},${h.value.top}`}}function N(P){y.value.includes(P)?y.value=y.value.filter(Y=>Y!==P):y.value.push(P),r("selectLegend",w.value)}function Q(){return w.value}e({getData:Q});const W=o.computed(()=>{const P=[c.value.table.translations.serie,c.value.table.translations.percentage,c.value.table.translations.value],Y=w.value.map(k=>[k.name,k.percentage,k.value]);return{head:P,body:Y}});function z(){i.value=!0,o.nextTick(()=>{Ti({domElement:document.getElementById(`vue-ui-onion_${A.value}`),fileName:c.value.style.chart.title.text||"vue-ui-onion"}).finally(()=>{i.value=!1})})}function I(){o.nextTick(()=>{const P=[[c.value.style.chart.title.text],[c.value.style.chart.title.subtitle.text],[""]],Y=W.value.head,k=W.value.body,L=P.concat([Y]).concat(k);function V(fe){let ye=new ArrayBuffer(fe.length),Ue=new Uint8Array(ye);for(let x=0;x<fe.length;x++)Ue[x]=fe.charCodeAt(x)&255;return ye}const X=Er.book_new(),se=Er.aoa_to_sheet(L);Er.book_append_sheet(X,se,"Sheet1");const ce=qa(X,{bookType:"xlsx",type:"binary"}),he=new Blob([V(ce)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),ge=document.createElement("a");ge.href=window.URL.createObjectURL(he),ge.download=`${c.value.style.chart.title.text.replaceAll(" ","_")||"vue-ui-onion"}.xlsx`,ge.click(),window.URL.revokeObjectURL(ge.href)})}function U(){l.value&&l.value.removeAttribute("open")}return(P,Y)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion",ref_key:"onionChart",ref:s,id:`vue-ui-onion_${A.value}`,style:o.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center`)},[(!u.value.inside||i.value)&&c.value.style.chart.title.text?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor}`)},[o.createElementVNode("div",{style:o.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.color};font-size:${c.value.style.chart.title.fontSize}px;font-weight:${c.value.style.chart.title.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.text),5),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.subtitle.color};font-size:${c.value.style.chart.title.subtitle.fontSize}px;font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.subtitle.text),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),c.value.userOptions.show?(o.openBlock(),o.createElementBlock("details",{key:1,class:"vue-ui-onion-user-options",style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:l},[o.createElementVNode("summary",{style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},o.toDisplayString(c.value.userOptions.title),5),o.createElementVNode("div",{class:"vue-ui-onion-user-options-items",style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[o.createElementVNode("div",Nz,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-title_${A.value}`,name:`vue-ui-onion-option-title_${A.value}`,"onUpdate:modelValue":Y[0]||(Y[0]=k=>u.value.inside=k)},null,8,Lz),[[o.vModelCheckbox,u.value.inside]]),o.createElementVNode("label",{for:`vue-ui-onion-option-title_${A.value}`},o.toDisplayString(c.value.userOptions.labels.useDiv),9,Uz)]),o.createElementVNode("div",Iz,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-table_${A.value}`,name:`vue-ui-onion-option-table_${A.value}`,"onUpdate:modelValue":Y[1]||(Y[1]=k=>u.value.showTable=k)},null,8,Qz),[[o.vModelCheckbox,u.value.showTable]]),o.createElementVNode("label",{for:`vue-ui-onion-option-table_${A.value}`},o.toDisplayString(c.value.userOptions.labels.showTable),9,Dz)]),o.createElementVNode("button",{class:"vue-ui-onion-button",onClick:z,disabled:i.value,style:o.normalizeStyle([{"margin-top":"12px"},`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`])},[i.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-onion-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Mz,8,Pz)):(o.openBlock(),o.createElementBlock("span",Rz,"PDF"))],12,Oz),o.createElementVNode("button",{class:"vue-ui-onion-button",onClick:I,style:o.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)}," XLSX ",4)],4)],4)):o.createCommentVNode("",!0),(o.openBlock(),o.createElementBlock("svg",{viewBox:`0 0 ${p.value.width} ${p.value.height}`,style:o.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),onClick:U},[o.createElementVNode("defs",null,[o.createElementVNode("radialGradient",{id:`onion_gradient_${A.value}`},[o.createElementVNode("stop",{offset:"0%","stop-color":`${o.unref(An)(c.value.style.chart.backgroundColor)}00`},null,8,$z),o.createElementVNode("stop",{offset:"90%","stop-color":"#FFFFFF"+o.unref(gr)[c.value.style.chart.gradientIntensity]},null,8,zz),o.createElementVNode("stop",{offset:"100%","stop-color":`${o.unref(An)(c.value.style.chart.backgroundColor)}00`},null,8,Kz)],8,Vz)]),c.value.style.chart.title.text&&u.value.inside&&!i.value?(o.openBlock(),o.createElementBlock("g",Gz,[o.createElementVNode("text",{"font-size":c.value.style.chart.title.fontSize,fill:c.value.style.chart.title.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize,"text-anchor":"middle",style:o.normalizeStyle(`font-weight:${c.value.style.chart.title.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.text),13,jz),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("text",{key:0,"font-size":c.value.style.chart.title.subtitle.fontSize,fill:c.value.style.chart.title.subtitle.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:o.normalizeStyle(`font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},o.toDisplayString(c.value.style.chart.title.subtitle.text),13,Wz)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius,stroke:c.value.style.chart.layout.gutter.color,"stroke-width":m.value.gutter,fill:"none","stroke-dasharray":k.path.bgDashArray,"stroke-dashoffset":k.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Xz))),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius,stroke:`${k.color}`,"stroke-width":m.value.track,fill:"none","stroke-dasharray":k.path.dashArray,"stroke-dashoffset":k.path.dashOffset,class:"vue-ui-onion-path","stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,qz))),256)),c.value.style.chart.useGradient?(o.openBlock(),o.createElementBlock("g",Yz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:k.radius*1.1,stroke:"none",fill:`url(#onion_gradient_${A.value})`,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Jz))),256))])):o.createCommentVNode("",!0),c.value.style.chart.layout.labels.show?(o.openBlock(),o.createElementBlock("g",Zz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("g",null,[y.value.includes(k.id)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("text",{key:0,x:p.value.width/2-m.value.gutter*.8+c.value.style.chart.layout.labels.offsetX,y:k.labelY,"text-anchor":"end","font-size":c.value.style.chart.layout.labels.fontSize,fill:c.value.style.chart.layout.labels.color,"font-weight":c.value.style.chart.layout.labels.bold?"bold":"normal"},o.toDisplayString(k.name)+" "+o.toDisplayString(c.value.style.chart.layout.labels.percentage.show?` : ${k.percentage.toFixed(c.value.style.chart.layout.labels.roundingPercentage)}%`:"")+" "+o.toDisplayString(!c.value.style.chart.layout.labels.percentage.show&&c.value.style.chart.layout.labels.value.show?` : ${k.value?`${k.prefix}${k.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${k.suffix}`:""}`:`${c.value.style.chart.layout.labels.value.show&&k.value?`(${k.prefix}${k.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${k.suffix})`:""}`),9,eK))]))),256))])):o.createCommentVNode("",!0),c.value.style.chart.legend.show&&u.value.inside&&!i.value?(o.openBlock(),o.createElementBlock("foreignObject",{key:3,x:0,y:h.value.bottom,width:"100%",height:p.value.height-h.value.bottom,style:{overflow:"visible"}},[o.createElementVNode("div",{class:"vue-ui-onion-legend",style:o.normalizeStyle(`color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(k,L)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:V=>N(k.id),style:o.normalizeStyle(`opacity:${y.value.includes(k.id)?.5:1}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),o.createElementVNode("span",null,o.toDisplayString(k.name)+" : ",1),o.createElementVNode("span",null,o.toDisplayString(k.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,rK))),256))],4)],8,tK)):o.createCommentVNode("",!0)],12,Hz)),c.value.style.chart.legend.show&&(!u.value.inside||i.value)?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vue-ui-onion-legend",style:o.normalizeStyle(`background:${c.value.style.chart.legend.backgroundColor};color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(k,L)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:V=>N(k.id),style:o.normalizeStyle(`opacity:${y.value.includes(k.id)?.5:1}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),o.createElementVNode("span",null,o.toDisplayString(k.name)+" : ",1),o.createElementVNode("span",null,o.toDisplayString(k.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,nK))),256))],4)):o.createCommentVNode("",!0),u.value.showTable?(o.openBlock(),o.createElementBlock("div",{key:3,onClick:U,class:"vue-ui-onion-table",style:o.normalizeStyle(`width:100%;margin-top:${u.value.inside?"48px":""}`)},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[c.value.style.chart.title.text?(o.openBlock(),o.createElementBlock("tr",AK,[o.createElementVNode("th",{colspan:"3",style:o.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},[o.createElementVNode("span",null,o.toDisplayString(c.value.style.chart.title.text),1),c.value.style.chart.title.subtitle.text?(o.openBlock(),o.createElementBlock("span",aK," : "+o.toDisplayString(c.value.style.chart.title.subtitle.text),1)):o.createCommentVNode("",!0)],4)])):o.createCommentVNode("",!0),o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(W.value.head,k=>(o.openBlock(),o.createElementBlock("th",{colspan:k.color?2:1,style:o.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},o.toDisplayString(k),13,iK))),256))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,k=>(o.openBlock(),o.createElementBlock("tr",null,[o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},[o.createElementVNode("span",{style:o.normalizeStyle(`color:${k.color}`)}," ⬤ ",4),o.createTextVNode(" "+o.toDisplayString(k.name),1)],4),o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},o.toDisplayString(isNaN(k.percentage)?"":k.percentage.toFixed(c.value.table.td.roundingPercentage))+"% ",5),o.createElementVNode("td",{style:o.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},o.toDisplayString(k.prefix)+o.toDisplayString(isNaN(k.value)?"":k.value.toFixed(c.value.table.td.roundingValue))+o.toDisplayString(k.suffix),5)]))),256))])])],4)):o.createCommentVNode("",!0)],12,Tz))}},[["__scopeId","data-v-1bfaa13f"]]);/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Pi(t){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(t)}function U1(t,e){return U1=Object.setPrototypeOf||function(n,A){return n.__proto__=A,n},U1(t,e)}function sK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xh(t,e,r){return sK()?Xh=Reflect.construct:Xh=function(A,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(A,s),c=new l;return i&&U1(c,i.prototype),c},Xh.apply(null,arguments)}function JA(t){return lK(t)||cK(t)||uK(t)||hK()}function lK(t){if(Array.isArray(t))return I1(t)}function cK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uK(t,e){if(t){if(typeof t=="string")return I1(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I1(t,e)}}function I1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
379
379
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var fK=Object.hasOwnProperty,nx=Object.setPrototypeOf,dK=Object.isFrozen,gK=Object.getPrototypeOf,pK=Object.getOwnPropertyDescriptor,Xn=Object.freeze,ZA=Object.seal,mK=Object.create,Ax=typeof Reflect<"u"&&Reflect,qh=Ax.apply,Q1=Ax.construct;qh||(qh=function(e,r,n){return e.apply(r,n)}),Xn||(Xn=function(e){return e}),ZA||(ZA=function(e){return e}),Q1||(Q1=function(e,r){return Xh(e,JA(r))});var vK=UA(Array.prototype.forEach),ax=UA(Array.prototype.pop),lc=UA(Array.prototype.push),Yh=UA(String.prototype.toLowerCase),D1=UA(String.prototype.toString),yK=UA(String.prototype.match),ea=UA(String.prototype.replace),wK=UA(String.prototype.indexOf),BK=UA(String.prototype.trim),qn=UA(RegExp.prototype.test),O1=xK(TypeError);function UA(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),A=1;A<r;A++)n[A-1]=arguments[A];return qh(t,e,n)}}function xK(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Q1(t,r)}}function Dt(t,e,r){var n;r=(n=r)!==null&&n!==void 0?n:Yh,nx&&nx(t,null);for(var A=e.length;A--;){var a=e[A];if(typeof a=="string"){var i=r(a);i!==a&&(dK(e)||(e[A]=i),a=i)}t[a]=!0}return t}function _o(t){var e=mK(null),r;for(r in t)qh(fK,t,[r])===!0&&(e[r]=t[r]);return e}function Jh(t,e){for(;t!==null;){var r=pK(t,e);if(r){if(r.get)return UA(r.get);if(typeof r.value=="function")return UA(r.value)}t=gK(t)}function n(A){return console.warn("fallback value for",A),null}return n}var ix=Xn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P1=Xn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M1=Xn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bK=Xn(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R1=Xn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),CK=Xn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ox=Xn(["#text"]),sx=Xn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H1=Xn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lx=Xn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zh=Xn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),EK=ZA(/\{\{[\w\W]*|[\w\W]*\}\}/gm),FK=ZA(/<%[\w\W]*|[\w\W]*%>/gm),_K=ZA(/\${[\w\W]*}/gm),SK=ZA(/^data-[\-\w.\u00B7-\uFFFF]/),kK=ZA(/^aria-[\-\w]+$/),TK=ZA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NK=ZA(/^(?:\w+script|data):/i),LK=ZA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UK=ZA(/^html$/i),IK=function(){return typeof window>"u"?null:window},QK=function(e,r){if(Pi(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,A="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(A)&&(n=r.currentScript.getAttribute(A));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function cx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IK(),e=function(G){return cx(G)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,A=t.DocumentFragment,a=t.HTMLTemplateElement,i=t.Node,s=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,p=t.HTMLFormElement,h=t.DOMParser,d=t.trustedTypes,y=s.prototype,g=Jh(y,"cloneNode"),m=Jh(y,"nextSibling"),w=Jh(y,"childNodes"),_=Jh(y,"parentNode");if(typeof a=="function"){var N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}var Q=QK(d,r),W=Q?Q.createHTML(""):"",z=n,I=z.implementation,U=z.createNodeIterator,P=z.createDocumentFragment,Y=z.getElementsByTagName,k=r.importNode,L={};try{L=_o(n).documentMode?n.documentMode:{}}catch{}var V={};e.isSupported=typeof _=="function"&&I&&I.createHTMLDocument!==void 0&&L!==9;var X=EK,se=FK,ce=_K,he=SK,ge=kK,fe=NK,ye=LK,Ue=TK,x=null,F=Dt({},[].concat(JA(ix),JA(P1),JA(M1),JA(R1),JA(ox))),b=null,E=Dt({},[].concat(JA(sx),JA(H1),JA(lx),JA(Zh))),T=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,te=null,ue=!0,Be=!0,le=!1,be=!0,Z=!1,Ce=!1,Fe=!1,re=!1,Pe=!1,tt=!1,Ve=!1,qe=!0,Re=!1,Ge="user-content-",it=!0,nt=!1,ft={},vt=null,St=Dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Tt=null,dt=Dt({},["audio","video","img","source","image","track"]),xt=null,rt=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ar="http://www.w3.org/1998/Math/MathML",Nt="http://www.w3.org/2000/svg",hr="http://www.w3.org/1999/xhtml",It=hr,zt=!1,Jr=null,Pt=Dt({},[ar,Nt,hr],D1),_r,qt=["application/xhtml+xml","text/html"],on="text/html",Et,Kt=null,bt=n.createElement("form"),Vt=function(G){return G instanceof RegExp||G instanceof Function},wA=function(G){Kt&&Kt===G||((!G||Pi(G)!=="object")&&(G={}),G=_o(G),_r=qt.indexOf(G.PARSER_MEDIA_TYPE)===-1?_r=on:_r=G.PARSER_MEDIA_TYPE,Et=_r==="application/xhtml+xml"?D1:Yh,x="ALLOWED_TAGS"in G?Dt({},G.ALLOWED_TAGS,Et):F,b="ALLOWED_ATTR"in G?Dt({},G.ALLOWED_ATTR,Et):E,Jr="ALLOWED_NAMESPACES"in G?Dt({},G.ALLOWED_NAMESPACES,D1):Pt,xt="ADD_URI_SAFE_ATTR"in G?Dt(_o(rt),G.ADD_URI_SAFE_ATTR,Et):rt,Tt="ADD_DATA_URI_TAGS"in G?Dt(_o(dt),G.ADD_DATA_URI_TAGS,Et):dt,vt="FORBID_CONTENTS"in G?Dt({},G.FORBID_CONTENTS,Et):St,j="FORBID_TAGS"in G?Dt({},G.FORBID_TAGS,Et):{},te="FORBID_ATTR"in G?Dt({},G.FORBID_ATTR,Et):{},ft="USE_PROFILES"in G?G.USE_PROFILES:!1,ue=G.ALLOW_ARIA_ATTR!==!1,Be=G.ALLOW_DATA_ATTR!==!1,le=G.ALLOW_UNKNOWN_PROTOCOLS||!1,be=G.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=G.SAFE_FOR_TEMPLATES||!1,Ce=G.WHOLE_DOCUMENT||!1,Pe=G.RETURN_DOM||!1,tt=G.RETURN_DOM_FRAGMENT||!1,Ve=G.RETURN_TRUSTED_TYPE||!1,re=G.FORCE_BODY||!1,qe=G.SANITIZE_DOM!==!1,Re=G.SANITIZE_NAMED_PROPS||!1,it=G.KEEP_CONTENT!==!1,nt=G.IN_PLACE||!1,Ue=G.ALLOWED_URI_REGEXP||Ue,It=G.NAMESPACE||hr,T=G.CUSTOM_ELEMENT_HANDLING||{},G.CUSTOM_ELEMENT_HANDLING&&Vt(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(T.tagNameCheck=G.CUSTOM_ELEMENT_HANDLING.tagNameCheck),G.CUSTOM_ELEMENT_HANDLING&&Vt(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(T.attributeNameCheck=G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),G.CUSTOM_ELEMENT_HANDLING&&typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(T.allowCustomizedBuiltInElements=G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(Be=!1),tt&&(Pe=!0),ft&&(x=Dt({},JA(ox)),b=[],ft.html===!0&&(Dt(x,ix),Dt(b,sx)),ft.svg===!0&&(Dt(x,P1),Dt(b,H1),Dt(b,Zh)),ft.svgFilters===!0&&(Dt(x,M1),Dt(b,H1),Dt(b,Zh)),ft.mathMl===!0&&(Dt(x,R1),Dt(b,lx),Dt(b,Zh))),G.ADD_TAGS&&(x===F&&(x=_o(x)),Dt(x,G.ADD_TAGS,Et)),G.ADD_ATTR&&(b===E&&(b=_o(b)),Dt(b,G.ADD_ATTR,Et)),G.ADD_URI_SAFE_ATTR&&Dt(xt,G.ADD_URI_SAFE_ATTR,Et),G.FORBID_CONTENTS&&(vt===St&&(vt=_o(vt)),Dt(vt,G.FORBID_CONTENTS,Et)),it&&(x["#text"]=!0),Ce&&Dt(x,["html","head","body"]),x.table&&(Dt(x,["tbody"]),delete j.tbody),Xn&&Xn(G),Kt=G)},Ir=Dt({},["mi","mo","mn","ms","mtext"]),Jn=Dt({},["foreignobject","desc","title","annotation-xml"]),iA=Dt({},["title","style","font","a","script"]),gt=Dt({},P1);Dt(gt,M1),Dt(gt,bK);var _n=Dt({},R1);Dt(_n,CK);var Mn=function(G){var we=_(G);(!we||!we.tagName)&&(we={namespaceURI:It,tagName:"template"});var Le=Yh(G.tagName),je=Yh(we.tagName);return Jr[G.namespaceURI]?G.namespaceURI===Nt?we.namespaceURI===hr?Le==="svg":we.namespaceURI===ar?Le==="svg"&&(je==="annotation-xml"||Ir[je]):!!gt[Le]:G.namespaceURI===ar?we.namespaceURI===hr?Le==="math":we.namespaceURI===Nt?Le==="math"&&Jn[je]:!!_n[Le]:G.namespaceURI===hr?we.namespaceURI===Nt&&!Jn[je]||we.namespaceURI===ar&&!Ir[je]?!1:!_n[Le]&&(iA[Le]||!gt[Le]):!!(_r==="application/xhtml+xml"&&Jr[G.namespaceURI]):!1},mr=function(G){lc(e.removed,{element:G});try{G.parentNode.removeChild(G)}catch{try{G.outerHTML=W}catch{G.remove()}}},xr=function(G,we){try{lc(e.removed,{attribute:we.getAttributeNode(G),from:we})}catch{lc(e.removed,{attribute:null,from:we})}if(we.removeAttribute(G),G==="is"&&!b[G])if(Pe||tt)try{mr(we)}catch{}else try{we.setAttribute(G,"")}catch{}},br=function(G){var we,Le;if(re)G="<remove></remove>"+G;else{var je=yK(G,/^[\r\n\t ]+/);Le=je&&je[0]}_r==="application/xhtml+xml"&&It===hr&&(G='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+G+"</body></html>");var Ke=Q?Q.createHTML(G):G;if(It===hr)try{we=new h().parseFromString(Ke,_r)}catch{}if(!we||!we.documentElement){we=I.createDocument(It,"template",null);try{we.documentElement.innerHTML=zt?W:Ke}catch{}}var Je=we.body||we.documentElement;return G&&Le&&Je.insertBefore(n.createTextNode(Le),Je.childNodes[0]||null),It===hr?Y.call(we,Ce?"html":"body")[0]:Ce?we.documentElement:Je},M=function(G){return U.call(G.ownerDocument||G,G,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ae=function(G){return G instanceof p&&(typeof G.nodeName!="string"||typeof G.textContent!="string"||typeof G.removeChild!="function"||!(G.attributes instanceof u)||typeof G.removeAttribute!="function"||typeof G.setAttribute!="function"||typeof G.namespaceURI!="string"||typeof G.insertBefore!="function"||typeof G.hasChildNodes!="function")},J=function(G){return Pi(i)==="object"?G instanceof i:G&&Pi(G)==="object"&&typeof G.nodeType=="number"&&typeof G.nodeName=="string"},ee=function(G,we,Le){V[G]&&vK(V[G],function(je){je.call(e,we,Le,Kt)})},Ae=function(G){var we;if(ee("beforeSanitizeElements",G,null),ae(G)||qn(/[\u0080-\uFFFF]/,G.nodeName))return mr(G),!0;var Le=Et(G.nodeName);if(ee("uponSanitizeElement",G,{tagName:Le,allowedTags:x}),G.hasChildNodes()&&!J(G.firstElementChild)&&(!J(G.content)||!J(G.content.firstElementChild))&&qn(/<[/\w]/g,G.innerHTML)&&qn(/<[/\w]/g,G.textContent)||Le==="select"&&qn(/<template/i,G.innerHTML))return mr(G),!0;if(!x[Le]||j[Le]){if(!j[Le]&&ke(Le)&&(T.tagNameCheck instanceof RegExp&&qn(T.tagNameCheck,Le)||T.tagNameCheck instanceof Function&&T.tagNameCheck(Le)))return!1;if(it&&!vt[Le]){var je=_(G)||G.parentNode,Ke=w(G)||G.childNodes;if(Ke&&je)for(var Je=Ke.length,ut=Je-1;ut>=0;--ut)je.insertBefore(g(Ke[ut],!0),m(G))}return mr(G),!0}return G instanceof s&&!Mn(G)||(Le==="noscript"||Le==="noembed"||Le==="noframes")&&qn(/<\/no(script|embed|frames)/i,G.innerHTML)?(mr(G),!0):(Z&&G.nodeType===3&&(we=G.textContent,we=ea(we,X," "),we=ea(we,se," "),we=ea(we,ce," "),G.textContent!==we&&(lc(e.removed,{element:G.cloneNode()}),G.textContent=we)),ee("afterSanitizeElements",G,null),!1)},ie=function(G,we,Le){if(qe&&(we==="id"||we==="name")&&(Le in n||Le in bt))return!1;if(!(Be&&!te[we]&&qn(he,we))){if(!(ue&&qn(ge,we))){if(!b[we]||te[we]){if(!(ke(G)&&(T.tagNameCheck instanceof RegExp&&qn(T.tagNameCheck,G)||T.tagNameCheck instanceof Function&&T.tagNameCheck(G))&&(T.attributeNameCheck instanceof RegExp&&qn(T.attributeNameCheck,we)||T.attributeNameCheck instanceof Function&&T.attributeNameCheck(we))||we==="is"&&T.allowCustomizedBuiltInElements&&(T.tagNameCheck instanceof RegExp&&qn(T.tagNameCheck,Le)||T.tagNameCheck instanceof Function&&T.tagNameCheck(Le))))return!1}else if(!xt[we]){if(!qn(Ue,ea(Le,ye,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&G!=="script"&&wK(Le,"data:")===0&&Tt[G])){if(!(le&&!qn(fe,ea(Le,ye,"")))){if(Le)return!1}}}}}}return!0},ke=function(G){return G.indexOf("-")>0},Ie=function(G){var we,Le,je,Ke;ee("beforeSanitizeAttributes",G,null);var Je=G.attributes;if(Je){var ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};for(Ke=Je.length;Ke--;){we=Je[Ke];var $t=we,Ct=$t.name,Fr=$t.namespaceURI;if(Le=Ct==="value"?we.value:BK(we.value),je=Et(Ct),ut.attrName=je,ut.attrValue=Le,ut.keepAttr=!0,ut.forceKeepAttr=void 0,ee("uponSanitizeAttribute",G,ut),Le=ut.attrValue,!ut.forceKeepAttr&&(xr(Ct,G),!!ut.keepAttr)){if(!be&&qn(/\/>/i,Le)){xr(Ct,G);continue}Z&&(Le=ea(Le,X," "),Le=ea(Le,se," "),Le=ea(Le,ce," "));var oA=Et(G.nodeName);if(ie(oA,je,Le)){if(Re&&(je==="id"||je==="name")&&(xr(Ct,G),Le=Ge+Le),Q&&Pi(d)==="object"&&typeof d.getAttributeType=="function"&&!Fr)switch(d.getAttributeType(oA,je)){case"TrustedHTML":{Le=Q.createHTML(Le);break}case"TrustedScriptURL":{Le=Q.createScriptURL(Le);break}}try{Fr?G.setAttributeNS(Fr,Ct,Le):G.setAttribute(Ct,Le),ax(e.removed)}catch{}}}}ee("afterSanitizeAttributes",G,null)}},Se=function de(G){var we,Le=M(G);for(ee("beforeSanitizeShadowDOM",G,null);we=Le.nextNode();)ee("uponSanitizeShadowNode",we,null),!Ae(we)&&(we.content instanceof A&&de(we.content),Ie(we));ee("afterSanitizeShadowDOM",G,null)};return e.sanitize=function(de){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we,Le,je,Ke,Je;if(zt=!de,zt&&(de="<!-->"),typeof de!="string"&&!J(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw O1("dirty is not a string, aborting")}else throw O1("toString is not a function");if(!e.isSupported){if(Pi(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof de=="string")return t.toStaticHTML(de);if(J(de))return t.toStaticHTML(de.outerHTML)}return de}if(Fe||wA(G),e.removed=[],typeof de=="string"&&(nt=!1),nt){if(de.nodeName){var ut=Et(de.nodeName);if(!x[ut]||j[ut])throw O1("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof i)we=br("<!---->"),Le=we.ownerDocument.importNode(de,!0),Le.nodeType===1&&Le.nodeName==="BODY"||Le.nodeName==="HTML"?we=Le:we.appendChild(Le);else{if(!Pe&&!Z&&!Ce&&de.indexOf("<")===-1)return Q&&Ve?Q.createHTML(de):de;if(we=br(de),!we)return Pe?null:Ve?W:""}we&&re&&mr(we.firstChild);for(var $t=M(nt?de:we);je=$t.nextNode();)je.nodeType===3&&je===Ke||Ae(je)||(je.content instanceof A&&Se(je.content),Ie(je),Ke=je);if(Ke=null,nt)return de;if(Pe){if(tt)for(Je=P.call(we.ownerDocument);we.firstChild;)Je.appendChild(we.firstChild);else Je=we;return(b.shadowroot||b.shadowrootmod)&&(Je=k.call(r,Je,!0)),Je}var Ct=Ce?we.outerHTML:we.innerHTML;return Ce&&x["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&qn(UK,we.ownerDocument.doctype.name)&&(Ct="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
|
|
380
380
|
`+Ct),Z&&(Ct=ea(Ct,X," "),Ct=ea(Ct,se," "),Ct=ea(Ct,ce," ")),Q&&Ve?Q.createHTML(Ct):Ct},e.setConfig=function(de){wA(de),Fe=!0},e.clearConfig=function(){Kt=null,Fe=!1},e.isValidAttribute=function(de,G,we){Kt||wA({});var Le=Et(de),je=Et(G);return ie(Le,je,we)},e.addHook=function(de,G){typeof G=="function"&&(V[de]=V[de]||[],lc(V[de],G))},e.removeHook=function(de){if(V[de])return ax(V[de])},e.removeHooks=function(de){V[de]&&(V[de]=[])},e.removeAllHooks=function(){V={}},e}var DK=cx();const OK=Object.freeze(Object.defineProperty({__proto__:null,default:DK},Symbol.toStringTag,{value:"Module"}));var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ux(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ef=function(t){return t&&t.Math==Math&&t},an=ef(typeof globalThis=="object"&&globalThis)||ef(typeof window=="object"&&window)||ef(typeof self=="object"&&self)||ef(typeof cc=="object"&&cc)||function(){return this}()||cc||Function("return this")(),Ls={},Vr=function(t){try{return!!t()}catch{return!0}},PK=Vr,_a=!PK(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),MK=Vr,tf=!MK(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),RK=tf,rf=Function.prototype.call,Fn=RK?rf.bind(rf):function(){return rf.apply(rf,arguments)},hx={},fx={}.propertyIsEnumerable,dx=Object.getOwnPropertyDescriptor,HK=dx&&!fx.call({1:2},1);hx.f=HK?function(e){var r=dx(this,e);return!!r&&r.enumerable}:fx;var nf=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},gx=tf,px=Function.prototype,V1=px.call,VK=gx&&px.bind.bind(V1,V1),$r=gx?VK:function(t){return function(){return V1.apply(t,arguments)}},mx=$r,$K=mx({}.toString),zK=mx("".slice),So=function(t){return zK($K(t),8,-1)},KK=$r,GK=Vr,jK=So,$1=Object,WK=KK("".split),vx=GK(function(){return!$1("z").propertyIsEnumerable(0)})?function(t){return jK(t)=="String"?WK(t,""):$1(t)}:$1,ko=function(t){return t==null},XK=ko,qK=TypeError,Sa=function(t){if(XK(t))throw qK("Can't call method on "+t);return t},YK=vx,JK=Sa,uc=function(t){return YK(JK(t))},z1=typeof document=="object"&&document.all,ZK=typeof z1>"u"&&z1!==void 0,yx={all:z1,IS_HTMLDDA:ZK},wx=yx,eG=wx.all,Lr=wx.IS_HTMLDDA?function(t){return typeof t=="function"||t===eG}:function(t){return typeof t=="function"},Bx=Lr,xx=yx,tG=xx.all,Ja=xx.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Bx(t)||t===tG}:function(t){return typeof t=="object"?t!==null:Bx(t)},K1=an,rG=Lr,nG=function(t){return rG(t)?t:void 0},To=function(t,e){return arguments.length<2?nG(K1[t]):K1[t]&&K1[t][e]},AG=$r,Af=AG({}.isPrototypeOf),af=typeof navigator<"u"&&String(navigator.userAgent)||"",bx=an,G1=af,Cx=bx.process,Ex=bx.Deno,Fx=Cx&&Cx.versions||Ex&&Ex.version,_x=Fx&&Fx.v8,ta,of;_x&&(ta=_x.split("."),of=ta[0]>0&&ta[0]<4?1:+(ta[0]+ta[1])),!of&&G1&&(ta=G1.match(/Edge\/(\d+)/),(!ta||ta[1]>=74)&&(ta=G1.match(/Chrome\/(\d+)/),ta&&(of=+ta[1])));var j1=of,Sx=j1,aG=Vr,iG=an,oG=iG.String,kx=!!Object.getOwnPropertySymbols&&!aG(function(){var t=Symbol();return!oG(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Sx&&Sx<41}),sG=kx,Tx=sG&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lG=To,cG=Lr,uG=Af,hG=Tx,fG=Object,Nx=hG?function(t){return typeof t=="symbol"}:function(t){var e=lG("Symbol");return cG(e)&&uG(e.prototype,fG(t))},dG=String,sf=function(t){try{return dG(t)}catch{return"Object"}},gG=Lr,pG=sf,mG=TypeError,Za=function(t){if(gG(t))return t;throw mG(pG(t)+" is not a function")},vG=Za,yG=ko,Us=function(t,e){var r=t[e];return yG(r)?void 0:vG(r)},W1=Fn,X1=Lr,q1=Ja,wG=TypeError,BG=function(t,e){var r,n;if(e==="string"&&X1(r=t.toString)&&!q1(n=W1(r,t))||X1(r=t.valueOf)&&!q1(n=W1(r,t))||e!=="string"&&X1(r=t.toString)&&!q1(n=W1(r,t)))return n;throw wG("Can't convert object to primitive value")},Lx={exports:{}},Ux=an,xG=Object.defineProperty,Y1=function(t,e){try{xG(Ux,t,{value:e,configurable:!0,writable:!0})}catch{Ux[t]=e}return e},bG=an,CG=Y1,Ix="__core-js_shared__",EG=bG[Ix]||CG(Ix,{}),J1=EG,Qx=J1;(Lx.exports=function(t,e){return Qx[t]||(Qx[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Z1=Lx.exports,FG=Sa,_G=Object,lf=function(t){return _G(FG(t))},SG=$r,kG=lf,TG=SG({}.hasOwnProperty),ra=Object.hasOwn||function(e,r){return TG(kG(e),r)},NG=$r,LG=0,UG=Math.random(),IG=NG(1 .toString),Dx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+IG(++LG+UG,36)},QG=an,DG=Z1,Ox=ra,OG=Dx,PG=kx,MG=Tx,Is=QG.Symbol,eg=DG("wks"),RG=MG?Is.for||Is:Is&&Is.withoutSetter||OG,dn=function(t){return Ox(eg,t)||(eg[t]=PG&&Ox(Is,t)?Is[t]:RG("Symbol."+t)),eg[t]},HG=Fn,Px=Ja,Mx=Nx,VG=Us,$G=BG,zG=dn,KG=TypeError,GG=zG("toPrimitive"),jG=function(t,e){if(!Px(t)||Mx(t))return t;var r=VG(t,GG),n;if(r){if(e===void 0&&(e="default"),n=HG(r,t,e),!Px(n)||Mx(n))return n;throw KG("Can't convert object to primitive value")}return e===void 0&&(e="number"),$G(t,e)},WG=jG,XG=Nx,tg=function(t){var e=WG(t,"string");return XG(e)?e:e+""},qG=an,Rx=Ja,rg=qG.document,YG=Rx(rg)&&Rx(rg.createElement),cf=function(t){return YG?rg.createElement(t):{}},JG=_a,ZG=Vr,ej=cf,Hx=!JG&&!ZG(function(){return Object.defineProperty(ej("div"),"a",{get:function(){return 7}}).a!=7}),tj=_a,rj=Fn,nj=hx,Aj=nf,aj=uc,ij=tg,oj=ra,sj=Hx,Vx=Object.getOwnPropertyDescriptor;Ls.f=tj?Vx:function(e,r){if(e=aj(e),r=ij(r),sj)try{return Vx(e,r)}catch{}if(oj(e,r))return Aj(!rj(nj.f,e,r),e[r])};var ka={},lj=_a,cj=Vr,$x=lj&&cj(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),uj=Ja,hj=String,fj=TypeError,On=function(t){if(uj(t))return t;throw fj(hj(t)+" is not an object")},dj=_a,gj=Hx,pj=$x,uf=On,zx=tg,mj=TypeError,ng=Object.defineProperty,vj=Object.getOwnPropertyDescriptor,Ag="enumerable",ag="configurable",ig="writable";ka.f=dj?pj?function(e,r,n){if(uf(e),r=zx(r),uf(n),typeof e=="function"&&r==="prototype"&&"value"in n&&ig in n&&!n[ig]){var A=vj(e,r);A&&A[ig]&&(e[r]=n.value,n={configurable:ag in n?n[ag]:A[ag],enumerable:Ag in n?n[Ag]:A[Ag],writable:!1})}return ng(e,r,n)}:ng:function(e,r,n){if(uf(e),r=zx(r),uf(n),gj)try{return ng(e,r,n)}catch{}if("get"in n||"set"in n)throw mj("Accessors not supported");return"value"in n&&(e[r]=n.value),e};var yj=_a,wj=ka,Bj=nf,hc=yj?function(t,e,r){return wj.f(t,e,Bj(1,r))}:function(t,e,r){return t[e]=r,t},Kx={exports:{}},og=_a,xj=ra,Gx=Function.prototype,bj=og&&Object.getOwnPropertyDescriptor,sg=xj(Gx,"name"),Cj=sg&&(function(){}).name==="something",Ej=sg&&(!og||og&&bj(Gx,"name").configurable),hf={EXISTS:sg,PROPER:Cj,CONFIGURABLE:Ej},Fj=$r,_j=Lr,lg=J1,Sj=Fj(Function.toString);_j(lg.inspectSource)||(lg.inspectSource=function(t){return Sj(t)});var cg=lg.inspectSource,kj=an,Tj=Lr,jx=kj.WeakMap,Nj=Tj(jx)&&/native code/.test(String(jx)),Lj=Z1,Uj=Dx,Wx=Lj("keys"),ug=function(t){return Wx[t]||(Wx[t]=Uj(t))},hg={},Ij=Nj,Xx=an,Qj=Ja,Dj=hc,fg=ra,dg=J1,Oj=ug,Pj=hg,qx="Object already initialized",gg=Xx.TypeError,Mj=Xx.WeakMap,ff,fc,df,Rj=function(t){return df(t)?fc(t):ff(t,{})},Hj=function(t){return function(e){var r;if(!Qj(e)||(r=fc(e)).type!==t)throw gg("Incompatible receiver, "+t+" required");return r}};if(Ij||dg.state){var Ta=dg.state||(dg.state=new Mj);Ta.get=Ta.get,Ta.has=Ta.has,Ta.set=Ta.set,ff=function(t,e){if(Ta.has(t))throw gg(qx);return e.facade=t,Ta.set(t,e),e},fc=function(t){return Ta.get(t)||{}},df=function(t){return Ta.has(t)}}else{var Qs=Oj("state");Pj[Qs]=!0,ff=function(t,e){if(fg(t,Qs))throw gg(qx);return e.facade=t,Dj(t,Qs,e),e},fc=function(t){return fg(t,Qs)?t[Qs]:{}},df=function(t){return fg(t,Qs)}}var gf={set:ff,get:fc,has:df,enforce:Rj,getterFor:Hj},pg=$r,Vj=Vr,$j=Lr,pf=ra,mg=_a,zj=hf.CONFIGURABLE,Kj=cg,Yx=gf,Gj=Yx.enforce,jj=Yx.get,Jx=String,mf=Object.defineProperty,Wj=pg("".slice),Xj=pg("".replace),qj=pg([].join),Yj=mg&&!Vj(function(){return mf(function(){},"length",{value:8}).length!==8}),Jj=String(String).split("String"),Zj=Kx.exports=function(t,e,r){Wj(Jx(e),0,7)==="Symbol("&&(e="["+Xj(Jx(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!pf(t,"name")||zj&&t.name!==e)&&(mg?mf(t,"name",{value:e,configurable:!0}):t.name=e),Yj&&r&&pf(r,"arity")&&t.length!==r.arity&&mf(t,"length",{value:r.arity});try{r&&pf(r,"constructor")&&r.constructor?mg&&mf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=Gj(t);return pf(n,"source")||(n.source=qj(Jj,typeof e=="string"?e:"")),t};Function.prototype.toString=Zj(function(){return $j(this)&&jj(this).source||Kj(this)},"toString");var Zx=Kx.exports,eW=Lr,tW=ka,rW=Zx,nW=Y1,No=function(t,e,r,n){n||(n={});var A=n.enumerable,a=n.name!==void 0?n.name:e;if(eW(r)&&rW(r,a,n),n.global)A?t[e]=r:nW(e,r);else{try{n.unsafe?t[e]&&(A=!0):delete t[e]}catch{}A?t[e]=r:tW.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},e5={},AW=Math.ceil,aW=Math.floor,iW=Math.trunc||function(e){var r=+e;return(r>0?aW:AW)(r)},oW=iW,vf=function(t){var e=+t;return e!==e||e===0?0:oW(e)},sW=vf,lW=Math.max,cW=Math.min,t5=function(t,e){var r=sW(t);return r<0?lW(r+e,0):cW(r,e)},uW=vf,hW=Math.min,Ds=function(t){return t>0?hW(uW(t),9007199254740991):0},fW=Ds,yf=function(t){return fW(t.length)},dW=uc,gW=t5,pW=yf,r5=function(t){return function(e,r,n){var A=dW(e),a=pW(A),i=gW(n,a),s;if(t&&r!=r){for(;a>i;)if(s=A[i++],s!=s)return!0}else for(;a>i;i++)if((t||i in A)&&A[i]===r)return t||i||0;return!t&&-1}},n5={includes:r5(!0),indexOf:r5(!1)},mW=$r,vg=ra,vW=uc,yW=n5.indexOf,wW=hg,A5=mW([].push),a5=function(t,e){var r=vW(t),n=0,A=[],a;for(a in r)!vg(wW,a)&&vg(r,a)&&A5(A,a);for(;e.length>n;)vg(r,a=e[n++])&&(~yW(A,a)||A5(A,a));return A},yg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BW=a5,xW=yg,bW=xW.concat("length","prototype");e5.f=Object.getOwnPropertyNames||function(e){return BW(e,bW)};var i5={};i5.f=Object.getOwnPropertySymbols;var CW=To,EW=$r,FW=e5,_W=i5,SW=On,kW=EW([].concat),TW=CW("Reflect","ownKeys")||function(e){var r=FW.f(SW(e)),n=_W.f;return n?kW(r,n(e)):r},o5=ra,NW=TW,LW=Ls,UW=ka,IW=function(t,e,r){for(var n=NW(e),A=UW.f,a=LW.f,i=0;i<n.length;i++){var s=n[i];!o5(t,s)&&!(r&&o5(r,s))&&A(t,s,a(e,s))}},QW=Vr,DW=Lr,OW=/#|\.prototype\./,dc=function(t,e){var r=MW[PW(t)];return r==HW?!0:r==RW?!1:DW(e)?QW(e):!!e},PW=dc.normalize=function(t){return String(t).replace(OW,".").toLowerCase()},MW=dc.data={},RW=dc.NATIVE="N",HW=dc.POLYFILL="P",s5=dc,wg=an,VW=Ls.f,$W=hc,zW=No,KW=Y1,GW=IW,jW=s5,Yn=function(t,e){var r=t.target,n=t.global,A=t.stat,a,i,s,l,c,u;if(n?i=wg:A?i=wg[r]||KW(r,{}):i=(wg[r]||{}).prototype,i)for(s in e){if(c=e[s],t.dontCallGetSet?(u=VW(i,s),l=u&&u.value):l=i[s],a=jW(n?s:r+(A?".":"#")+s,t.forced),!a&&l!==void 0){if(typeof c==typeof l)continue;GW(c,l)}(t.sham||l&&l.sham)&&$W(c,"sham",!0),zW(i,s,c,t)}},WW=So,gc=typeof process<"u"&&WW(process)=="process",XW=$r,qW=Za,YW=function(t,e,r){try{return XW(qW(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},JW=Lr,ZW=String,eX=TypeError,tX=function(t){if(typeof t=="object"||JW(t))return t;throw eX("Can't set "+ZW(t)+" as a prototype")},rX=YW,nX=On,AX=tX,l5=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=rX(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(A,a){return nX(A),AX(a),t?r(A,a):A.__proto__=a,A}}():void 0),aX=ka.f,iX=ra,oX=dn,c5=oX("toStringTag"),Bg=function(t,e,r){t&&!r&&(t=t.prototype),t&&!iX(t,c5)&&aX(t,c5,{configurable:!0,value:e})},u5=Zx,sX=ka,lX=function(t,e,r){return r.get&&u5(r.get,e,{getter:!0}),r.set&&u5(r.set,e,{setter:!0}),sX.f(t,e,r)},cX=To,uX=lX,hX=dn,fX=_a,h5=hX("species"),dX=function(t){var e=cX(t);fX&&e&&!e[h5]&&uX(e,h5,{configurable:!0,get:function(){return this}})},gX=Af,pX=TypeError,mX=function(t,e){if(gX(e,t))return t;throw pX("Incorrect invocation")},vX=dn,yX=vX("toStringTag"),f5={};f5[yX]="z";var wX=String(f5)==="[object z]",BX=wX,xX=Lr,wf=So,bX=dn,CX=bX("toStringTag"),EX=Object,FX=wf(function(){return arguments}())=="Arguments",_X=function(t,e){try{return t[e]}catch{}},xg=BX?wf:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=_X(e=EX(t),CX))=="string"?r:FX?wf(e):(n=wf(e))=="Object"&&xX(e.callee)?"Arguments":n},SX=$r,kX=Vr,d5=Lr,TX=xg,NX=To,LX=cg,g5=function(){},UX=[],p5=NX("Reflect","construct"),bg=/^\s*(?:class|function)\b/,IX=SX(bg.exec),QX=!bg.exec(g5),pc=function(e){if(!d5(e))return!1;try{return p5(g5,UX,e),!0}catch{return!1}},m5=function(e){if(!d5(e))return!1;switch(TX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QX||!!IX(bg,LX(e))}catch{return!0}};m5.sham=!0;var DX=!p5||kX(function(){var t;return pc(pc.call)||!pc(Object)||!pc(function(){t=!0})||t})?m5:pc,OX=DX,PX=sf,MX=TypeError,RX=function(t){if(OX(t))return t;throw MX(PX(t)+" is not a constructor")},v5=On,HX=RX,VX=ko,$X=dn,zX=$X("species"),y5=function(t,e){var r=v5(t).constructor,n;return r===void 0||VX(n=v5(r)[zX])?e:HX(n)},KX=tf,w5=Function.prototype,B5=w5.apply,x5=w5.call,Cg=typeof Reflect=="object"&&Reflect.apply||(KX?x5.bind(B5):function(){return x5.apply(B5,arguments)}),GX=So,jX=$r,mc=function(t){if(GX(t)==="Function")return jX(t)},b5=mc,WX=Za,XX=tf,qX=b5(b5.bind),Eg=function(t,e){return WX(t),e===void 0?t:XX?qX(t,e):function(){return t.apply(e,arguments)}},YX=To,C5=YX("document","documentElement"),JX=$r,ZX=JX([].slice),eq=TypeError,tq=function(t,e){if(t<e)throw eq("Not enough arguments");return t},rq=af,E5=/(?:ipad|iphone|ipod).*applewebkit/i.test(rq),yA=an,nq=Cg,Aq=Eg,F5=Lr,aq=ra,_5=Vr,S5=C5,iq=ZX,k5=cf,oq=tq,sq=E5,lq=gc,Fg=yA.setImmediate,_g=yA.clearImmediate,cq=yA.process,Sg=yA.Dispatch,uq=yA.Function,T5=yA.MessageChannel,hq=yA.String,kg=0,vc={},N5="onreadystatechange",yc,Lo,Tg,Ng;_5(function(){yc=yA.location});var Lg=function(t){if(aq(vc,t)){var e=vc[t];delete vc[t],e()}},Ug=function(t){return function(){Lg(t)}},L5=function(t){Lg(t.data)},U5=function(t){yA.postMessage(hq(t),yc.protocol+"//"+yc.host)};(!Fg||!_g)&&(Fg=function(e){oq(arguments.length,1);var r=F5(e)?e:uq(e),n=iq(arguments,1);return vc[++kg]=function(){nq(r,void 0,n)},Lo(kg),kg},_g=function(e){delete vc[e]},lq?Lo=function(t){cq.nextTick(Ug(t))}:Sg&&Sg.now?Lo=function(t){Sg.now(Ug(t))}:T5&&!sq?(Tg=new T5,Ng=Tg.port2,Tg.port1.onmessage=L5,Lo=Aq(Ng.postMessage,Ng)):yA.addEventListener&&F5(yA.postMessage)&&!yA.importScripts&&yc&&yc.protocol!=="file:"&&!_5(U5)?(Lo=U5,yA.addEventListener("message",L5,!1)):N5 in k5("script")?Lo=function(t){S5.appendChild(k5("script"))[N5]=function(){S5.removeChild(this),Lg(t)}}:Lo=function(t){setTimeout(Ug(t),0)});var I5={set:Fg,clear:_g},Q5=function(){this.head=null,this.tail=null};Q5.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var D5=Q5,fq=af,dq=/ipad|iphone|ipod/i.test(fq)&&typeof Pebble<"u",gq=af,pq=/web0s(?!.*chrome)/i.test(gq),Uo=an,O5=Eg,mq=Ls.f,Ig=I5.set,vq=D5,yq=E5,wq=dq,Bq=pq,Qg=gc,P5=Uo.MutationObserver||Uo.WebKitMutationObserver,M5=Uo.document,R5=Uo.process,Bf=Uo.Promise,H5=mq(Uo,"queueMicrotask"),Dg=H5&&H5.value,Os,Og,Pg,xf,V5;if(!Dg){var bf=new vq,Cf=function(){var t,e;for(Qg&&(t=R5.domain)&&t.exit();e=bf.get();)try{e()}catch(r){throw bf.head&&Os(),r}t&&t.enter()};!yq&&!Qg&&!Bq&&P5&&M5?(Og=!0,Pg=M5.createTextNode(""),new P5(Cf).observe(Pg,{characterData:!0}),Os=function(){Pg.data=Og=!Og}):!wq&&Bf&&Bf.resolve?(xf=Bf.resolve(void 0),xf.constructor=Bf,V5=O5(xf.then,xf),Os=function(){V5(Cf)}):Qg?Os=function(){R5.nextTick(Cf)}:(Ig=O5(Ig,Uo),Os=function(){Ig(Cf)}),Dg=function(t){bf.head||Os(),bf.add(t)}}var xq=Dg,bq=function(t,e){try{arguments.length==1?console.error(t):console.error(t,e)}catch{}},Mg=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Cq=an,Ef=Cq.Promise,$5=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Eq=$5,Fq=gc,_q=!Eq&&!Fq&&typeof window=="object"&&typeof document=="object",Sq=an,wc=Ef,kq=Lr,Tq=s5,Nq=cg,Lq=dn,Uq=_q,Iq=$5,Rg=j1;wc&&wc.prototype;var Qq=Lq("species"),Hg=!1,z5=kq(Sq.PromiseRejectionEvent),Dq=Tq("Promise",function(){var t=Nq(wc),e=t!==String(wc);if(!e&&Rg===66)return!0;if(!Rg||Rg<51||!/native code/.test(t)){var r=new wc(function(a){a(1)}),n=function(a){a(function(){},function(){})},A=r.constructor={};if(A[Qq]=n,Hg=r.then(function(){})instanceof n,!Hg)return!0}return!e&&(Uq||Iq)&&!z5}),Bc={CONSTRUCTOR:Dq,REJECTION_EVENT:z5,SUBCLASSING:Hg},Ps={},K5=Za,Oq=TypeError,Pq=function(t){var e,r;this.promise=new t(function(n,A){if(e!==void 0||r!==void 0)throw Oq("Bad Promise constructor");e=n,r=A}),this.resolve=K5(e),this.reject=K5(r)};Ps.f=function(t){return new Pq(t)};var Mq=Yn,Ff=gc,Mi=an,Ms=Fn,G5=No,j5=l5,Rq=Bg,Hq=dX,Vq=Za,_f=Lr,$q=Ja,zq=mX,Kq=y5,W5=I5.set,Vg=xq,Gq=bq,jq=Mg,Wq=D5,X5=gf,Sf=Ef,$g=Bc,q5=Ps,kf="Promise",Y5=$g.CONSTRUCTOR,Xq=$g.REJECTION_EVENT,qq=$g.SUBCLASSING,zg=X5.getterFor(kf),Yq=X5.set,Rs=Sf&&Sf.prototype,Io=Sf,Tf=Rs,J5=Mi.TypeError,Kg=Mi.document,Gg=Mi.process,jg=q5.f,Jq=jg,Zq=!!(Kg&&Kg.createEvent&&Mi.dispatchEvent),Z5="unhandledrejection",eY="rejectionhandled",eb=0,tb=1,tY=2,Wg=1,rb=2,Nf,nb,rY,Ab,ab=function(t){var e;return $q(t)&&_f(e=t.then)?e:!1},ib=function(t,e){var r=e.value,n=e.state==tb,A=n?t.ok:t.fail,a=t.resolve,i=t.reject,s=t.domain,l,c,u;try{A?(n||(e.rejection===rb&&AY(e),e.rejection=Wg),A===!0?l=r:(s&&s.enter(),l=A(r),s&&(s.exit(),u=!0)),l===t.promise?i(J5("Promise-chain cycle")):(c=ab(l))?Ms(c,l,a,i):a(l)):i(r)}catch(p){s&&!u&&s.exit(),i(p)}},ob=function(t,e){t.notified||(t.notified=!0,Vg(function(){for(var r=t.reactions,n;n=r.get();)ib(n,t);t.notified=!1,e&&!t.rejection&&nY(t)}))},sb=function(t,e,r){var n,A;Zq?(n=Kg.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),Mi.dispatchEvent(n)):n={promise:e,reason:r},!Xq&&(A=Mi["on"+t])?A(n):t===Z5&&Gq("Unhandled promise rejection",r)},nY=function(t){Ms(W5,Mi,function(){var e=t.facade,r=t.value,n=lb(t),A;if(n&&(A=jq(function(){Ff?Gg.emit("unhandledRejection",r,e):sb(Z5,e,r)}),t.rejection=Ff||lb(t)?rb:Wg,A.error))throw A.value})},lb=function(t){return t.rejection!==Wg&&!t.parent},AY=function(t){Ms(W5,Mi,function(){var e=t.facade;Ff?Gg.emit("rejectionHandled",e):sb(eY,e,t.value)})},Hs=function(t,e,r){return function(n){t(e,n,r)}},Vs=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=tY,ob(t,!0))},Xg=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw J5("Promise can't be resolved itself");var n=ab(e);n?Vg(function(){var A={done:!1};try{Ms(n,e,Hs(Xg,A,t),Hs(Vs,A,t))}catch(a){Vs(A,a,t)}}):(t.value=e,t.state=tb,ob(t,!1))}catch(A){Vs({done:!1},A,t)}}};if(Y5&&(Io=function(e){zq(this,Tf),Vq(e),Ms(Nf,this);var r=zg(this);try{e(Hs(Xg,r),Hs(Vs,r))}catch(n){Vs(r,n)}},Tf=Io.prototype,Nf=function(e){Yq(this,{type:kf,done:!1,notified:!1,parent:!1,reactions:new Wq,rejection:!1,state:eb,value:void 0})},Nf.prototype=G5(Tf,"then",function(e,r){var n=zg(this),A=jg(Kq(this,Io));return n.parent=!0,A.ok=_f(e)?e:!0,A.fail=_f(r)&&r,A.domain=Ff?Gg.domain:void 0,n.state==eb?n.reactions.add(A):Vg(function(){ib(A,n)}),A.promise}),nb=function(){var t=new Nf,e=zg(t);this.promise=t,this.resolve=Hs(Xg,e),this.reject=Hs(Vs,e)},q5.f=jg=function(t){return t===Io||t===rY?new nb(t):Jq(t)},_f(Sf)&&Rs!==Object.prototype)){Ab=Rs.then,qq||G5(Rs,"then",function(e,r){var n=this;return new Io(function(A,a){Ms(Ab,n,A,a)}).then(e,r)},{unsafe:!0});try{delete Rs.constructor}catch{}j5&&j5(Rs,Tf)}Mq({global:!0,constructor:!0,wrap:!0,forced:Y5},{Promise:Io}),Rq(Io,kf,!1),Hq(kf);var xc={},aY=dn,iY=xc,oY=aY("iterator"),sY=Array.prototype,lY=function(t){return t!==void 0&&(iY.Array===t||sY[oY]===t)},cY=xg,cb=Us,uY=ko,hY=xc,fY=dn,dY=fY("iterator"),ub=function(t){if(!uY(t))return cb(t,dY)||cb(t,"@@iterator")||hY[cY(t)]},gY=Fn,pY=Za,mY=On,vY=sf,yY=ub,wY=TypeError,BY=function(t,e){var r=arguments.length<2?yY(t):e;if(pY(r))return mY(gY(r,t));throw wY(vY(t)+" is not iterable")},xY=Fn,hb=On,bY=Us,CY=function(t,e,r){var n,A;hb(t);try{if(n=bY(t,"return"),!n){if(e==="throw")throw r;return r}n=xY(n,t)}catch(a){A=!0,n=a}if(e==="throw")throw r;if(A)throw n;return hb(n),r},EY=Eg,FY=Fn,_Y=On,SY=sf,kY=lY,TY=yf,fb=Af,NY=BY,LY=ub,db=CY,UY=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},gb=Lf.prototype,pb=function(t,e,r){var n=r&&r.that,A=!!(r&&r.AS_ENTRIES),a=!!(r&&r.IS_RECORD),i=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=EY(e,n),c,u,p,h,d,y,g,m=function(_){return c&&db(c,"normal",_),new Lf(!0,_)},w=function(_){return A?(_Y(_),s?l(_[0],_[1],m):l(_[0],_[1])):s?l(_,m):l(_)};if(a)c=t.iterator;else if(i)c=t;else{if(u=LY(t),!u)throw UY(SY(t)+" is not iterable");if(kY(u)){for(p=0,h=TY(t);h>p;p++)if(d=w(t[p]),d&&fb(gb,d))return d;return new Lf(!1)}c=NY(t,u)}for(y=a?t.next:c.next;!(g=FY(y,c)).done;){try{d=w(g.value)}catch(_){db(c,"throw",_)}if(typeof d=="object"&&d&&fb(gb,d))return d}return new Lf(!1)},IY=dn,mb=IY("iterator"),vb=!1;try{var QY=0,yb={next:function(){return{done:!!QY++}},return:function(){vb=!0}};yb[mb]=function(){return this},Array.from(yb,function(){throw 2})}catch{}var DY=function(t,e){if(!e&&!vb)return!1;var r=!1;try{var n={};n[mb]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},OY=Ef,PY=DY,MY=Bc.CONSTRUCTOR,wb=MY||!PY(function(t){OY.all(t).then(void 0,function(){})}),RY=Yn,HY=Fn,VY=Za,$Y=Ps,zY=Mg,KY=pb,GY=wb;RY({target:"Promise",stat:!0,forced:GY},{all:function(e){var r=this,n=$Y.f(r),A=n.resolve,a=n.reject,i=zY(function(){var s=VY(r.resolve),l=[],c=0,u=1;KY(e,function(p){var h=c++,d=!1;u++,HY(s,r,p).then(function(y){d||(d=!0,l[h]=y,--u||A(l))},a)}),--u||A(l)});return i.error&&a(i.value),n.promise}});var jY=Yn,WY=Bc.CONSTRUCTOR,qg=Ef,XY=To,qY=Lr,YY=No,Bb=qg&&qg.prototype;if(jY({target:"Promise",proto:!0,forced:WY,real:!0},{catch:function(t){return this.then(void 0,t)}}),qY(qg)){var xb=XY("Promise").prototype.catch;Bb.catch!==xb&&YY(Bb,"catch",xb,{unsafe:!0})}var JY=Yn,ZY=Fn,eJ=Za,tJ=Ps,rJ=Mg,nJ=pb,AJ=wb;JY({target:"Promise",stat:!0,forced:AJ},{race:function(e){var r=this,n=tJ.f(r),A=n.reject,a=rJ(function(){var i=eJ(r.resolve);nJ(e,function(s){ZY(i,r,s).then(n.resolve,A)})});return a.error&&A(a.value),n.promise}});var aJ=Yn,iJ=Fn,oJ=Ps,sJ=Bc.CONSTRUCTOR;aJ({target:"Promise",stat:!0,forced:sJ},{reject:function(e){var r=oJ.f(this);return iJ(r.reject,void 0,e),r.promise}});var lJ=On,cJ=Ja,uJ=Ps,hJ=function(t,e){if(lJ(t),cJ(e)&&e.constructor===t)return e;var r=uJ.f(t),n=r.resolve;return n(e),r.promise},fJ=Yn,dJ=To,gJ=Bc.CONSTRUCTOR,pJ=hJ;dJ("Promise"),fJ({target:"Promise",stat:!0,forced:gJ},{resolve:function(e){return pJ(this,e)}});function bb(t,e,r,n,A,a,i){try{var s=t[a](i),l=s.value}catch(c){r(c);return}s.done?e(l):Promise.resolve(l).then(n,A)}function ei(t){return function(){var e=this,r=arguments;return new Promise(function(n,A){var a=t.apply(e,r);function i(l){bb(a,n,A,i,s,"next",l)}function s(l){bb(a,n,A,i,s,"throw",l)}i(void 0)})}}var mJ=xg,vJ=String,Na=function(t){if(mJ(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vJ(t)},yJ=On,Cb=function(){var t=yJ(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Yg=Vr,wJ=an,Jg=wJ.RegExp,Zg=Yg(function(){var t=Jg("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),BJ=Zg||Yg(function(){return!Jg("a","y").sticky}),xJ=Zg||Yg(function(){var t=Jg("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),Eb={BROKEN_CARET:xJ,MISSED_STICKY:BJ,UNSUPPORTED_Y:Zg},Fb={},bJ=a5,CJ=yg,EJ=Object.keys||function(e){return bJ(e,CJ)},FJ=_a,_J=$x,SJ=ka,kJ=On,TJ=uc,NJ=EJ;Fb.f=FJ&&!_J?Object.defineProperties:function(e,r){kJ(e);for(var n=TJ(r),A=NJ(r),a=A.length,i=0,s;a>i;)SJ.f(e,s=A[i++],n[s]);return e};var LJ=On,UJ=Fb,_b=yg,IJ=hg,QJ=C5,DJ=cf,OJ=ug,Sb=">",kb="<",ep="prototype",tp="script",Tb=OJ("IE_PROTO"),rp=function(){},Nb=function(t){return kb+tp+Sb+t+kb+"/"+tp+Sb},Lb=function(t){t.write(Nb("")),t.close();var e=t.parentWindow.Object;return t=null,e},PJ=function(){var t=DJ("iframe"),e="java"+tp+":",r;return t.style.display="none",QJ.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(Nb("document.F=Object")),r.close(),r.F},Uf,If=function(){try{Uf=new ActiveXObject("htmlfile")}catch{}If=typeof document<"u"?document.domain&&Uf?Lb(Uf):PJ():Lb(Uf);for(var t=_b.length;t--;)delete If[ep][_b[t]];return If()};IJ[Tb]=!0;var np=Object.create||function(e,r){var n;return e!==null?(rp[ep]=LJ(e),n=new rp,rp[ep]=null,n[Tb]=e):n=If(),r===void 0?n:UJ.f(n,r)},MJ=Vr,RJ=an,HJ=RJ.RegExp,VJ=MJ(function(){var t=HJ(".","s");return!(t.dotAll&&t.exec(`
|
|
381
381
|
`)&&t.flags==="s")}),$J=Vr,zJ=an,KJ=zJ.RegExp,GJ=$J(function(){var t=KJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$s=Fn,Qf=$r,jJ=Na,WJ=Cb,XJ=Eb,qJ=Z1,YJ=np,JJ=gf.get,ZJ=VJ,eZ=GJ,tZ=qJ("native-string-replace",String.prototype.replace),Df=RegExp.prototype.exec,Ap=Df,rZ=Qf("".charAt),nZ=Qf("".indexOf),AZ=Qf("".replace),ap=Qf("".slice),ip=function(){var t=/a/,e=/b*/g;return $s(Df,t,"a"),$s(Df,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),Ub=XJ.BROKEN_CARET,op=/()??/.exec("")[1]!==void 0,aZ=ip||op||Ub||ZJ||eZ;aZ&&(Ap=function(e){var r=this,n=JJ(r),A=jJ(e),a=n.raw,i,s,l,c,u,p,h;if(a)return a.lastIndex=r.lastIndex,i=$s(Ap,a,A),r.lastIndex=a.lastIndex,i;var d=n.groups,y=Ub&&r.sticky,g=$s(WJ,r),m=r.source,w=0,_=A;if(y&&(g=AZ(g,"y",""),nZ(g,"g")===-1&&(g+="g"),_=ap(A,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&rZ(A,r.lastIndex-1)!==`
|
package/package.json
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-data-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A user-empowering data visualization Vue components library",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"Vue",
|
|
9
|
+
"data visualization",
|
|
10
|
+
"chart",
|
|
11
|
+
"donut",
|
|
12
|
+
"waffle",
|
|
13
|
+
"radar",
|
|
14
|
+
"gauge",
|
|
15
|
+
"accelerometer",
|
|
16
|
+
"quadrant",
|
|
17
|
+
"line",
|
|
18
|
+
"table"
|
|
19
|
+
],
|
|
8
20
|
"author": "Alec Lloyd Probert",
|
|
9
21
|
"repository": {
|
|
10
22
|
"type": "git",
|
|
@@ -12,25 +24,29 @@
|
|
|
12
24
|
},
|
|
13
25
|
"homepage": "https://vue-data-ui.graphieros.com/",
|
|
14
26
|
"license": "MIT",
|
|
15
|
-
"files": [
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
16
30
|
"main": "./dist/vue-data-ui.umd.cjs",
|
|
17
31
|
"module": "./dist/vue-data-ui.js",
|
|
18
32
|
"exports": {
|
|
19
33
|
".": {
|
|
20
|
-
"import"
|
|
34
|
+
"import": "./dist/vue-data-ui.js",
|
|
21
35
|
"export": "./dist/vue-data-ui.umd.cjs"
|
|
22
36
|
},
|
|
23
|
-
"./style.css"
|
|
37
|
+
"./style.css": "./dist/style.css"
|
|
24
38
|
},
|
|
25
39
|
"scripts": {
|
|
26
40
|
"dev": "vite",
|
|
27
41
|
"build": "vite build",
|
|
28
|
-
"preview": "vite preview"
|
|
42
|
+
"preview": "vite preview",
|
|
43
|
+
"test": "vitest"
|
|
29
44
|
},
|
|
30
45
|
"dependencies": {
|
|
31
46
|
},
|
|
32
47
|
"devDependencies": {
|
|
33
48
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
34
|
-
"vite": "^4.4.5"
|
|
49
|
+
"vite": "^4.4.5",
|
|
50
|
+
"vitest": "^0.34.1"
|
|
35
51
|
}
|
|
36
52
|
}
|