import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as _, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ht, withCtx as z, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as S, createTextVNode as dt } from "vue";
import { u as yt, c as De, o as gt, e as Ee, g as bt, t as ft, a as mt, p as oe, K as He, b as pt, d as xt, a1 as se, Z as Be, B as We, X as kt, l as wt, E as Xe, f as E, w as Ue, x as Ye, i as Ge, y as Ct, q as _t, r as zt } from "./index-CguVaFlt.js";
import { u as Je } from "./useNestedProp-BbEbJmgv.js";
import { t as Lt, u as St } from "./useResponsive-NZB-WLRF.js";
import { u as $t, U as Mt } from "./usePrinter-ClsMRVJG.js";
import { S as Tt } from "./Slicer-BBKMtMzF.js";
import { _ as Nt } from "./Tooltip-u79R5W5y.js";
import { _ as Ot } from "./Title-DbTGPg4G.js";
import { L as Pt } from "./Legend-CsVEDSh6.js";
import Rt from "./vue-ui-accordion-w15FGKRN.js";
import { D as It } from "./DataTable-BwHWRlRZ.js";
import Vt from "./vue-ui-skeleton-ChHLL5Hw.js";
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Xt = ["stop-color"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], qt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["transform", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, la = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x", "y", "font-size", "fill", "font-weight"], oa = { key: 0 }, sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "font-size", "font-weight", "fill"], na = ["x1", "x2", "y1", "y2", "stroke"], ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], va = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ha = ["font-size", "font-weight", "fill", "x", "y"], da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ya = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ga = {
  key: 3,
  class: "vue-data-ui-watermark"
}, ba = ["onClick"], fa = ["innerHTML"], ma = {
  __name: "vue-ui-stackbar",
  props: {
    config: {
      type: Object,
      default() {
        return {};
      }
    },
    dataset: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  emits: ["selectDatapoint", "selectLegend"],
  setup(he, { expose: Ze, emit: de }) {
    const k = he, { vue_ui_stackbar: qe } = yt(), H = p({
      get() {
        return !!k.dataset && k.dataset.length;
      },
      set(a) {
        return a;
      }
    }), X = f(null), ie = f(De()), j = f(!1), ye = f(null), ue = f(""), L = f([]), ge = f(0), be = f(null), fe = f(null), me = f(null), pe = f(0), ne = f(!1), U = f(null), Y = f(!1);
    Ae(() => {
      gt(k.dataset) ? Ee({
        componentName: "VueUiStackbar",
        type: "dataset"
      }) : k.dataset.forEach((a, r) => {
        bt({
          datasetObject: a,
          requiredAttributes: ["name", "series"]
        }).forEach((t) => {
          H.value = !1, Ee({
            componentName: "VueUiStackbar",
            type: "datasetSerieAttribute",
            property: t,
            index: r
          });
        });
      }), setTimeout(() => {
        Y.value = !0;
      }, 10);
    });
    const e = p(() => {
      const a = Je({
        userConfig: k.config,
        defaultConfig: qe
      });
      let r = {};
      return a.theme ? r = {
        ...Je({
          userConfig: ft.vue_ui_stackbar[a.theme] || k.config,
          defaultConfig: a
        }),
        customPalette: mt[a.theme] || oe
      } : r = a, k.config && He(k.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = k.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, k.config && He(k.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = k.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, r;
    }), C = f({
      dataLabels: {
        show: e.value.style.chart.bars.dataLabels.show
      },
      showTable: e.value.table.show,
      showTooltip: e.value.style.chart.tooltip.show
    }), { isPrinting: xe, isImaging: ke, generatePdf: we, generateImage: Ce } = $t({
      elementId: `stackbar_${ie.value}`,
      fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
    }), ee = f({
      width: e.value.style.chart.width,
      height: e.value.style.chart.height,
      paddingRatio: {
        top: e.value.style.chart.padding.top / e.value.style.chart.height,
        right: e.value.style.chart.padding.right / e.value.style.chart.width,
        bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
        left: e.value.style.chart.padding.left / e.value.style.chart.width
      }
    }), Ke = p(() => pt(e.value.customPalette)), _e = f(null), ze = f(null);
    Ae(() => {
      if (e.value.responsive) {
        const a = Lt(() => {
          Y.value = !1;
          const { width: r, height: t } = St({
            chart: X.value,
            title: e.value.style.chart.title.text ? be.value : null,
            legend: e.value.style.chart.legend.show ? fe.value : null,
            slicer: e.value.style.chart.zoom.show && R.value > 1 ? me.value : null
          });
          ee.value.width = r, ee.value.height = t, clearTimeout(ze.value), ze.value = setTimeout(() => {
            Y.value = !0;
          }, 10);
        });
        _e.value = new ResizeObserver(a), _e.value.observe(X.value.parentNode);
      }
    });
    const o = p(() => {
      const { height: a, width: r } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = r - r * t, n = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, I = r - w - r * t, V = a - l - e.value.style.chart.padding.bottom;
      return {
        chartHeight: a,
        chartWidth: r,
        top: l,
        right: i,
        bottom: n,
        left: w,
        width: I,
        height: V < 0 ? 0 : V
      };
    }), P = p(() => k.dataset.map((a, r) => {
      const t = xt(a.color) || Ke.value[r] || oe[r] || oe[r % oe.length];
      return {
        ...a,
        // In distributed mode, all values are converted to positive
        series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
        // Store signs to manage display of neg values in distributed mode
        signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
        absoluteIndex: r,
        id: De(),
        color: t
      };
    })), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = f({
      start: 0,
      end: Math.max(...k.dataset.map((a) => a.series.length))
    });
    function Qe() {
      c.value = {
        start: 0,
        end: Math.max(...k.dataset.map((a) => a.series.length))
      }, pe.value += 1;
    }
    const d = p(() => {
      let a;
      return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
    }), G = p(() => se(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), je = p(() => se(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
      ...a,
      series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
    }))).slice(c.value.start, c.value.end)), te = p(() => {
      const a = P.value.filter((r) => !L.value.includes(r.id));
      return {
        positive: se(a.map((r) => ({
          ...r,
          series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
        }))),
        negative: se(a.map((r) => ({
          ...r,
          series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
        })))
      };
    }), N = p(() => {
      const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : We(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
      return l.ticks.map((i) => ({
        zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
        y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
        x: o.value.left - 8,
        horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
        horizontal_x: o.value.left + o.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
        horizontal_y: o.value.bottom - 8,
        value: i
      }));
    }), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
      if (!H.value) return [];
      let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
      const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : We(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: Z } = I, F = Z + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, Ve = N.value[0] ? N.value[0].zero : o.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
      return P.value.filter((q) => !L.value.includes(q.id)).map((q) => {
        const O = q.series.slice(c.value.start, c.value.end), rt = q.signedSeries.slice(c.value.start, c.value.end), ot = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), st = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), it = O.map((y, g) => {
          const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
          let A, T;
          return y > 0 ? (T = $ * M, A = Ve - T - a[g], a[g] += T) : (T = $ * M, A = Ve + t[g], t[g] += Math.abs(T)), A;
        }), ut = O.map((y, g) => {
          const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
          let A, T;
          return y > 0 ? (T = re * M, A = Fe + r[g], r[g] += T) : (T = re * M, A = Fe - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
        }), nt = O.map((y, g) => {
          const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
          return y > 0 ? $ * M : $ * Math.abs(M);
        }), ct = O.map((y, g) => {
          const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
          return y > 0 ? re * M : re * Math.abs(M);
        }), vt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
        return {
          ...q,
          proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / vt),
          series: O,
          signedSeries: rt,
          x: ot,
          y: it,
          height: nt,
          horizontal_width: ct,
          horizontal_y: st,
          horizontal_x: ut
        };
      });
    }), Le = p(() => je.value.map((a, r) => ({
      value: a,
      sign: a >= 0 ? 1 : -1
    })));
    function ae(a, r, t, l, i) {
      const n = i === -1 && a >= 0 ? -a : a;
      return Ge(
        e.value.style.chart.bars.dataLabels.formatter,
        n,
        E({
          p: e.value.style.chart.bars.dataLabels.prefix,
          v: n,
          s: e.value.style.chart.bars.dataLabels.suffix,
          r: e.value.style.chart.bars.dataLabels.rounding
        }),
        { datapoint: r, seriesIndex: t, datapointIndex: l }
      );
    }
    function Se(a, r, t, l) {
      return Ge(
        e.value.style.chart.bars.dataLabels.formatter,
        a,
        E({
          v: a,
          s: "%",
          r: e.value.style.chart.bars.dataLabels.rounding
        }),
        { datapoint: r, seriesIndex: t, datapointIndex: l }
      );
    }
    function $e(a) {
      const r = JSON.parse(JSON.stringify(m.value)).map((t) => ({
        name: t.name,
        value: t.series[a] === 0 ? 0 : t.series[a] || null,
        proportion: t.proportions[a] || null,
        color: t.color,
        id: t.id
      }));
      de("selectDatapoint", { datapoint: r, period: J.value[a] });
    }
    function Me(a) {
      U.value = a, j.value = !0;
      const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
        name: i.name,
        value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
        proportion: i.proportions[a] || null,
        color: i.color,
        id: i.id
      })), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
      if (Ye(r) && Ct(() => r({
        seriesIndex: a,
        datapoint: t,
        series: m.value,
        config: e.value
      })))
        ue.value = r({
          seriesIndex: a,
          datapoint: t,
          series: m.value,
          config: e.value
        });
      else {
        const {
          showValue: i,
          showPercentage: n,
          borderColor: w,
          roundingValue: I,
          roundingPercentage: V
        } = e.value.style.chart.tooltip;
        let Z = "";
        J.value[a] && (Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
        const F = [
          i && n ? "(" : "",
          i && n ? ")" : ""
        ];
        t.reverse().forEach(($) => {
          Z += `
                <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
                    <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
                    ${$.name}${i || n ? ":" : ""} ${i ? E({
            p: e.value.style.chart.bars.dataLabels.prefix,
            v: $.value,
            s: e.value.style.chart.bars.dataLabels.suffix,
            r: I
          }) : ""} ${F[0]}${n ? E({
            v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
            // Negs are absed to show relative proportion to absolute total. It's opinionated.
            s: "%",
            r: V
          }) : ""}${F[1]}
                </div>
            `;
        }), ue.value = `<div>${Z}</div>`;
      }
    }
    function et(a) {
      ne.value = a, ge.value += 1;
    }
    function Te() {
      C.value.showTable = !C.value.showTable;
    }
    function Ne() {
      C.value.dataLabels.show = !C.value.dataLabels.show;
    }
    function Oe() {
      C.value.showTooltip = !C.value.showTooltip;
    }
    function tt() {
      return m.value;
    }
    const Pe = p(() => {
      if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
      const a = m.value.map(({ name: t, color: l }) => ({
        label: t,
        color: l
      })), r = [];
      for (let t = c.value.start; t < c.value.end; t += 1) {
        const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
        P.value.forEach((i) => {
          l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
        }), r.push(l);
      }
      return { head: a, body: r };
    });
    function Re() {
      const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Pe.value.head.map((n) => n.label)], t = Pe.value.body, l = a.concat([r]).concat(t), i = _t(l);
      zt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
    }
    const le = p(() => {
      const a = [""].concat(m.value.map((i) => i.name)).concat(' <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"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
      let r = [];
      for (let i = 0; i < R.value; i += 1) {
        const n = m.value.map((w) => w.series[i] ?? 0).reduce((w, I) => w + I, 0);
        r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
      }
      const t = {
        th: {
          backgroundColor: e.value.table.th.backgroundColor,
          color: e.value.table.th.color,
          outline: e.value.table.th.outline
        },
        td: {
          backgroundColor: e.value.table.td.backgroundColor,
          color: e.value.table.td.color,
          outline: e.value.table.td.outline
        },
        breakpoint: e.value.table.responsiveBreakpoint
      }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
      return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
    });
    function at(a, r) {
      if (de("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
        L.value = L.value.filter((t) => t !== r.id);
      else {
        if (L.value.length === P.value.length - 1) return;
        L.value.push(r.id);
      }
    }
    const Ie = p(() => P.value.map((a, r) => ({
      ...a,
      shape: "square"
    })).map((a) => ({
      ...a,
      opacity: L.value.includes(a.id) ? 0.5 : 1,
      segregate: () => at(a.absoluteIndex, a),
      isSegregated: L.value.includes(a.id)
    }))), lt = p(() => ({
      cy: "stackbar-legend",
      backgroundColor: e.value.style.chart.legend.backgroundColor,
      color: e.value.style.chart.legend.color,
      fontSize: e.value.style.chart.legend.fontSize,
      paddingBottom: 12,
      fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
    }));
    return Ze({
      getData: tt,
      generatePdf: we,
      generateCsv: Re,
      generateImage: Ce,
      toggleTable: Te,
      toggleLabels: Ne,
      toggleTooltip: Oe
    }), (a, r) => (s(), u("div", {
      id: `stackbar_${ie.value}`,
      ref_key: "stackbarChart",
      ref: X,
      class: ce({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
      style: K(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
    }, [
      _(a.$slots, "userConfig", {}, void 0, !0),
      e.value.style.chart.title.text ? (s(), u("div", {
        key: 0,
        ref_key: "chartTitle",
        ref: be,
        style: K(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
      }, [
        ve(Ot, {
          config: {
            title: {
              cy: "stackbar-title",
              ...e.value.style.chart.title
            },
            subtitle: {
              cy: "stackbar-subtitle",
              ...e.value.style.chart.title.subtitle
            }
          }
        }, null, 8, ["config"])
      ], 4)) : v("", !0),
      e.value.userOptions.show && H.value ? (s(), Q(Mt, {
        ref: "details",
        key: `user_option_${ge.value}`,
        backgroundColor: e.value.style.chart.backgroundColor,
        color: e.value.style.chart.color,
        isPrinting: x(xe),
        isImaging: x(ke),
        uid: ie.value,
        hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
        hasPdf: e.value.userOptions.buttons.pdf,
        hasImg: e.value.userOptions.buttons.img,
        hasXls: e.value.userOptions.buttons.csv,
        hasTable: e.value.userOptions.buttons.table,
        hasLabel: e.value.userOptions.buttons.labels,
        hasFullscreen: e.value.userOptions.buttons.fullscreen,
        isFullscreen: ne.value,
        chartElement: X.value,
        isTooltip: C.value.showTooltip,
        titles: { ...e.value.userOptions.buttonTitles },
        onToggleFullscreen: et,
        onGeneratePdf: x(we),
        onGenerateCsv: Re,
        onGenerateImage: x(Ce),
        onToggleTable: Te,
        onToggleLabels: Ne,
        onToggleTooltip: Oe
      }, ht({ _: 2 }, [
        a.$slots.optionTooltip ? {
          name: "optionTooltip",
          fn: z(() => [
            _(a.$slots, "optionTooltip", {}, void 0, !0)
          ]),
          key: "0"
        } : void 0,
        a.$slots.optionPdf ? {
          name: "optionPdf",
          fn: z(() => [
            _(a.$slots, "optionPdf", {}, void 0, !0)
          ]),
          key: "1"
        } : void 0,
        a.$slots.optionCsv ? {
          name: "optionCsv",
          fn: z(() => [
            _(a.$slots, "optionCsv", {}, void 0, !0)
          ]),
          key: "2"
        } : void 0,
        a.$slots.optionImg ? {
          name: "optionImg",
          fn: z(() => [
            _(a.$slots, "optionImg", {}, void 0, !0)
          ]),
          key: "3"
        } : void 0,
        a.$slots.optionTable ? {
          name: "optionTable",
          fn: z(() => [
            _(a.$slots, "optionTable", {}, void 0, !0)
          ]),
          key: "4"
        } : void 0,
        a.$slots.optionLabels ? {
          name: "optionLabels",
          fn: z(() => [
            _(a.$slots, "optionLabels", {}, void 0, !0)
          ]),
          key: "5"
        } : void 0,
        a.$slots.optionFullscreen ? {
          name: "optionFullscreen",
          fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
            _(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
          ]),
          key: "6"
        } : void 0
      ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
      H.value ? (s(), u("svg", {
        key: 2,
        xmlns: x(kt),
        viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
        style: K(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
      }, [
        e.value.style.chart.bars.gradient.show ? (s(), u("defs", Et, [
          (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("linearGradient", {
            id: `gradient_${t.id}`,
            x1: "0%",
            y1: "0%",
            x2: "0%",
            y2: "100%"
          }, [
            D("stop", {
              offset: "0%",
              "stop-color": t.color
            }, null, 8, Bt),
            D("stop", {
              offset: "61.8%",
              "stop-color": x(wt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
            }, null, 8, Wt),
            D("stop", {
              offset: "100%",
              "stop-color": t.color
            }, null, 8, Xt)
          ], 8, Ht))), 256))
        ])) : v("", !0),
        e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 }, b(N.value, (t, l) => (s(), u("line", {
          x1: o.value.left,
          x2: o.value.right,
          y1: t.y,
          y2: t.y,
          stroke: e.value.style.chart.grid.x.axisColor,
          "stroke-width": 1,
          "stroke-linecap": "round"
        }, null, 8, Ut))), 256)) : v("", !0),
        e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
          x1: o.value.left,
          x2: o.value.right,
          y1: o.value.top + d.value * l,
          y2: o.value.top + d.value * l,
          stroke: e.value.style.chart.grid.y.axisColor,
          "stroke-width": 1,
          "stroke-linecap": "round"
        }, null, 8, Yt))), 256)) : v("", !0),
        e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
          x1: o.value.left + d.value * l,
          x2: o.value.left + d.value * l,
          y1: o.value.top,
          y2: o.value.bottom,
          stroke: e.value.style.chart.grid.y.axisColor,
          "stroke-width": 1,
          "stroke-linecap": "round"
        }, null, 8, Gt))), 256)) : v("", !0),
        e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 }, b(N.value, (t, l) => (s(), u("line", {
          x1: t.horizontal_x,
          x2: t.horizontal_x,
          y1: o.value.top,
          y2: o.value.bottom,
          stroke: e.value.style.chart.grid.x.axisColor,
          "stroke-width": 1,
          "stroke-linecap": "round"
        }, null, 8, Jt))), 256)) : v("", !0),
        (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
          e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, b(t.x, (i, n) => (s(), u("rect", {
            x: i,
            y: t.y[n] < 0 ? 0 : t.y[n],
            height: t.height[n] < 0 ? 1e-4 : t.height[n],
            rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
            width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
            fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
            stroke: e.value.style.chart.backgroundColor,
            "stroke-width": e.value.style.chart.bars.strokeWidth,
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
            class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
          }, null, 10, Zt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
            x: i,
            y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
            width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
            rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
            height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
            fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
            stroke: e.value.style.chart.backgroundColor,
            "stroke-width": e.value.style.chart.bars.strokeWidth,
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
            class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
          }, null, 10, qt))), 256))
        ]))), 256)),
        e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
          key: 5,
          x1: o.value.left,
          x2: o.value.right,
          y1: o.value.bottom,
          y2: o.value.bottom,
          stroke: e.value.style.chart.grid.x.axisColor,
          "stroke-width": e.value.style.chart.grid.x.axisThickness,
          "stroke-linecap": "round",
          "stroke-linejoin": "round"
        }, null, 8, Kt)) : v("", !0),
        e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
          key: 6,
          x1: o.value.left,
          x2: o.value.left,
          y1: o.value.top,
          y2: o.value.bottom,
          stroke: e.value.style.chart.grid.y.axisColor,
          "stroke-width": e.value.style.chart.grid.y.axisThickness,
          "stroke-linecap": "round",
          "stroke-linejoin": "round"
        }, null, 8, Qt)) : v("", !0),
        e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
          key: 7,
          x: o.value.left + o.value.width / 2,
          y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
          "font-size": e.value.style.chart.grid.x.axisName.fontSize,
          fill: e.value.style.chart.grid.x.axisName.color,
          "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
          "text-anchor": "middle"
        }, S(e.value.style.chart.grid.x.axisName.text), 9, jt)) : v("", !0),
        e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
          key: 8,
          transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
          "font-size": e.value.style.chart.grid.y.axisName.fontSize,
          fill: e.value.style.chart.grid.y.axisName.color,
          "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
          "text-anchor": "middle"
        }, S(e.value.style.chart.grid.y.axisName.text), 9, ea)) : v("", !0),
        C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
          (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
            (s(!0), u(h, null, b(t.x, (i, n) => (s(), u("text", {
              x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
              y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
              "font-size": e.value.style.chart.bars.dataLabels.fontSize,
              fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
              "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
              "text-anchor": "middle"
            }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ta))), 256))
          ]))), 256)),
          e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", aa, [
            (s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
              x: o.value.left + d.value * l + d.value / 2,
              y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
              "text-anchor": "middle",
              "font-size": e.value.style.chart.bars.totalValues.fontSize,
              "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
              fill: e.value.style.chart.bars.totalValues.color
            }, S(ae(t.value, t, l, t.sign)), 9, la))), 256))
          ])) : v("", !0)
        ], 64)) : v("", !0),
        C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
          (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
            (s(!0), u(h, null, b(t.horizontal_x, (i, n) => (s(), u("text", {
              x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
              y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
              "font-size": e.value.style.chart.bars.dataLabels.fontSize,
              fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
              "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
              "text-anchor": "middle"
            }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ra))), 256))
          ]))), 256)),
          e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", oa, [
            (s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
              x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
              y: o.value.top + d.value * l + d.value / 2,
              "text-anchor": "start",
              "font-size": e.value.style.chart.bars.totalValues.fontSize,
              "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
              fill: e.value.style.chart.bars.totalValues.color
            }, S(ae(t.value, t, l, t.sign)), 9, sa))), 256))
          ])) : v("", !0)
        ], 64)) : v("", !0),
        e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
          (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
            x1: o.value.left,
            x2: o.value.left - 6,
            y1: t.y,
            y2: t.y,
            stroke: e.value.style.chart.grid.x.axisColor,
            "stroke-width": 1
          }, null, 8, ia))), 256)),
          (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
            x: t.x,
            y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
            "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
            "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
            fill: e.value.style.chart.grid.y.axisLabels.color,
            "text-anchor": "end"
          }, S(x(E)({
            p: e.value.style.chart.bars.dataLabels.prefix,
            v: t.value,
            s: e.value.style.chart.bars.dataLabels.suffix,
            r: e.value.style.chart.grid.y.axisLabels.rounding
          })), 9, ua))), 256))
        ], 64)) : v("", !0),
        e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
          (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
            x1: t.horizontal_x,
            x2: t.horizontal_x,
            y1: o.value.bottom,
            y2: o.value.bottom + 6,
            stroke: e.value.style.chart.grid.x.axisColor,
            "stroke-width": 1,
            "stroke-linecap": "round"
          }, null, 8, na))), 256)),
          (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
            "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
            "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
            fill: e.value.style.chart.grid.y.axisLabels.color,
            "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
            transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
          }, S(x(E)({
            p: e.value.style.chart.bars.dataLabels.prefix,
            v: t.value,
            s: e.value.style.chart.bars.dataLabels.suffix,
            r: e.value.style.chart.grid.y.axisLabels.rounding
          })), 9, ca))), 256))
        ], 64)) : v("", !0),
        e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 }, b(J.value, (t, l) => (s(), u("text", {
          "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
          "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
          "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
          fill: e.value.style.chart.grid.x.timeLabels.color,
          transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
        }, S(t), 9, va))), 256)) : v("", !0),
        e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 }, b(J.value, (t, l) => (s(), u("text", {
          "text-anchor": "end",
          "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
          "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
          fill: e.value.style.chart.grid.y.axisLabels.color,
          x: o.value.left - 8,
          y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
        }, S(t), 9, ha))), 256)) : v("", !0),
        C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
          x: o.value.left + l * d.value,
          y: o.value.top,
          width: d.value,
          height: o.value.height < 0 ? 0 : o.value.height,
          onClick: (i) => $e(l),
          onMouseenter: (i) => Me(l),
          onMouseleave: r[0] || (r[0] = (i) => {
            U.value = null, j.value = !1;
          }),
          fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
        }, null, 40, da))), 256)) : v("", !0),
        C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
          x: o.value.left,
          y: o.value.top + l * d.value,
          width: o.value.width < 0 ? 0 : o.value.width,
          height: d.value,
          onClick: (i) => $e(l),
          onMouseenter: (i) => Me(l),
          onMouseleave: r[1] || (r[1] = (i) => {
            U.value = null, j.value = !1;
          }),
          fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
        }, null, 40, ya))), 256)) : v("", !0),
        _(a.$slots, "svg", B(W({ ...o.value })), void 0, !0)
      ], 12, Dt)) : v("", !0),
      a.$slots.watermark ? (s(), u("div", ga, [
        _(a.$slots, "watermark", B(W({ isPrinting: x(xe) || x(ke) })), void 0, !0)
      ])) : v("", !0),
      H.value ? v("", !0) : (s(), Q(Vt, {
        key: 4,
        config: {
          type: "bar",
          style: {
            backgroundColor: e.value.style.chart.backgroundColor,
            bar: {
              axis: {
                color: "#CCCCCC"
              },
              color: "#CCCCCC"
            }
          }
        }
      }, null, 8, ["config"])),
      D("div", {
        ref_key: "chartSlicer",
        ref: me,
        style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
        "data-html2canvas-ignore": ""
      }, [
        e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(Tt, {
          key: `slicer_${pe.value}`,
          background: e.value.style.chart.zoom.color,
          borderColor: e.value.style.chart.backgroundColor,
          fontSize: e.value.style.chart.zoom.fontSize,
          useResetSlot: e.value.style.chart.zoom.useResetSlot,
          labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
          labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
          textColor: e.value.style.chart.color,
          inputColor: e.value.style.chart.zoom.color,
          selectColor: e.value.style.chart.zoom.highlightColor,
          max: Math.max(...he.dataset.map((t) => t.series.length)),
          min: 0,
          valueStart: c.value.start,
          valueEnd: c.value.end,
          start: c.value.start,
          "onUpdate:start": r[2] || (r[2] = (t) => c.value.start = t),
          end: c.value.end,
          "onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
          onReset: Qe
        }, {
          "reset-action": z(({ reset: t }) => [
            _(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
          ]),
          _: 3
        }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
      ], 4),
      ve(Nt, {
        show: C.value.showTooltip && j.value,
        backgroundColor: e.value.style.chart.tooltip.backgroundColor,
        color: e.value.style.chart.tooltip.color,
        fontSize: e.value.style.chart.tooltip.fontSize,
        borderRadius: e.value.style.chart.tooltip.borderRadius,
        borderColor: e.value.style.chart.tooltip.borderColor,
        borderWidth: e.value.style.chart.tooltip.borderWidth,
        backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
        position: e.value.style.chart.tooltip.position,
        offsetY: e.value.style.chart.tooltip.offsetY,
        parent: X.value,
        content: ue.value,
        isCustom: x(Ye)(e.value.style.chart.tooltip.customFormat)
      }, {
        "tooltip-before": z(() => [
          _(a.$slots, "tooltip-before", B(W({ ...ye.value })), void 0, !0)
        ]),
        "tooltip-after": z(() => [
          _(a.$slots, "tooltip-after", B(W({ ...ye.value })), void 0, !0)
        ]),
        _: 3
      }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
      D("div", {
        ref_key: "chartLegend",
        ref: fe
      }, [
        e.value.style.chart.legend.show && H.value ? (s(), Q(Pt, {
          key: 0,
          legendSet: Ie.value,
          config: lt.value,
          onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
        }, {
          item: z(({ legend: t }) => [
            D("div", {
              onClick: (l) => t.segregate(),
              style: K(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
            }, S(t.name), 13, ba)
          ]),
          _: 1
        }, 8, ["legendSet", "config"])) : _(a.$slots, "legend", {
          key: 1,
          legend: Ie.value
        }, void 0, !0)
      ], 512),
      c.value.end - c.value.start < 200 ? (s(), Q(Rt, {
        key: 5,
        hideDetails: "",
        config: {
          open: C.value.showTable,
          maxHeight: 1e4,
          body: {
            backgroundColor: e.value.style.chart.backgroundColor,
            color: e.value.style.chart.color
          },
          head: {
            backgroundColor: e.value.style.chart.backgroundColor,
            color: e.value.style.chart.color
          }
        }
      }, {
        content: z(() => [
          ve(It, {
            colNames: le.value.colNames,
            head: le.value.head,
            body: le.value.body,
            config: le.value.config,
            title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
            onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
          }, {
            th: z(({ th: t }) => [
              D("div", { innerHTML: t }, null, 8, fa)
            ]),
            td: z(({ td: t }) => [
              dt(S(isNaN(Number(t)) ? t : x(E)({
                p: e.value.style.chart.bars.dataLabels.prefix,
                v: t,
                s: e.value.style.chart.bars.dataLabels.suffix,
                r: e.value.table.td.roundingValue
              })), 1)
            ]),
            _: 1
          }, 8, ["colNames", "head", "body", "config", "title"])
        ]),
        _: 1
      }, 8, ["config"])) : v("", !0)
    ], 14, At));
  }
}, Oa = /* @__PURE__ */ Ft(ma, [["__scopeId", "data-v-6f134df9"]]);
export {
  Oa as default
};
