import { g as Ge } from "./index-KdycyCO9.js";
function ze(G, le) {
  for (var R = 0; R < le.length; R++) {
    const k = le[R];
    if (typeof k != "string" && !Array.isArray(k)) {
      for (const M in k)
        if (M !== "default" && !(M in G)) {
          const P = Object.getOwnPropertyDescriptor(k, M);
          P && Object.defineProperty(G, M, P.get ? P : {
            enumerable: !0,
            get: () => k[M]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty(G, Symbol.toStringTag, { value: "Module" }));
}
var ie = { exports: {} }, Ye = ie.exports, we;
function Ze() {
  return we || (we = 1, function(G, le) {
    /**
    * Highcharts JS v12.3.0 (2025-06-21)
    * @module highcharts/modules/export-data
    * @requires highcharts
    * @requires highcharts/modules/exporting
    *
    * Export data module
    *
    * (c) 2010-2025 Torstein Honsi
    *
    * License: www.highcharts.com/license
    */
    (function(R, k) {
      G.exports = k(R._Highcharts, R._Highcharts.AST, R._Highcharts.Chart);
    })(typeof window > "u" ? Ye : window, (R, k, M) => (() => {
      var P, ve = { 660: (r) => {
        r.exports = k;
      }, 944: (r) => {
        r.exports = R;
      }, 960: (r) => {
        r.exports = M;
      } }, ue = {};
      function T(r) {
        var g = ue[r];
        if (g !== void 0) return g.exports;
        var y = ue[r] = { exports: {} };
        return ve[r](y, y.exports, T), y.exports;
      }
      T.n = (r) => {
        var g = r && r.__esModule ? () => r.default : () => r;
        return T.d(g, { a: g }), g;
      }, T.d = (r, g) => {
        for (var y in g) T.o(g, y) && !T.o(r, y) && Object.defineProperty(r, y, { enumerable: !0, get: g[y] });
      }, T.o = (r, g) => Object.prototype.hasOwnProperty.call(r, g);
      var ge = {};
      T.d(ge, { default: () => Ie });
      var Te = T(944), j = T.n(Te);
      let { isSafari: Se, win: S, win: { document: se } } = j(), { error: Qe } = j(), fe = S.URL || S.webkitURL || S;
      function xe(r) {
        let g = r.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
        if (g && g.length > 3 && S.atob && S.ArrayBuffer && S.Uint8Array && S.Blob && fe.createObjectURL) {
          let y = S.atob(g[3]), A = new S.ArrayBuffer(y.length), K = new S.Uint8Array(A);
          for (let q = 0; q < K.length; ++q) K[q] = y.charCodeAt(q);
          return fe.createObjectURL(new S.Blob([K], { type: g[1] }));
        }
      }
      let de = { dataURLtoBlob: xe, downloadURL: function(r, g) {
        let y = S.navigator, A = se.createElement("a");
        if (typeof r != "string" && !(r instanceof String) && y.msSaveOrOpenBlob) return void y.msSaveOrOpenBlob(r, g);
        if (r = "" + r, y.userAgent.length > 1e3) throw Error("Input too long");
        let K = /Edge\/\d+/.test(y.userAgent);
        if ((Se && typeof r == "string" && r.indexOf("data:application/pdf") === 0 || K || r.length > 2e6) && !(r = xe(r) || "")) throw Error("Failed to convert to blob");
        if (A.download !== void 0) A.href = r, A.download = g, se.body.appendChild(A), A.click(), se.body.removeChild(A);
        else try {
          if (!S.open(r, "chart")) throw Error("Failed to open window");
        } catch {
          S.location.href = r;
        }
      } };
      var Le = T(660), ce = T.n(Le), Ee = T(960), Ce = T.n(Ee);
      let Ae = { exporting: { csv: { annotations: { itemDelimiter: "; ", join: !1 }, columnHeaderFormatter: null, dateFormat: "%Y-%m-%d %H:%M:%S", decimalPoint: null, itemDelimiter: null, lineDelimiter: `
` }, menuItemDefinitions: { downloadCSV: { textKey: "downloadCSV", onclick: function() {
        this.exporting?.downloadCSV();
      } }, downloadXLS: { textKey: "downloadXLS", onclick: function() {
        this.exporting?.downloadXLS();
      } }, viewData: { textKey: "viewData", onclick: function() {
        this.exporting?.wrapLoading(this.exporting.toggleDataTable);
      } } }, showTable: !1, useMultiLevelHeaders: !0, useRowspanHeaders: !0, showExportInProgress: !0 }, lang: { downloadCSV: "Download CSV", downloadXLS: "Download XLS", exportData: { annotationHeader: "Annotations", categoryHeader: "Category", categoryDatetimeHeader: "DateTime" }, viewData: "View data table", hideData: "Hide data table", exportInProgress: "Exporting..." } }, { getOptions: Oe, setOptions: Re } = j(), { downloadURL: me } = de, { composed: ke, doc: Ve, win: V } = j(), { addEvent: pe, defined: Ne, extend: be, find: He, fireEvent: te, isNumber: Ue, pick: $, pushUnique: Fe } = j();
      (function(r) {
        function g() {
          this.wrapLoading(() => {
            let n = this.getCSV(!0);
            me(A(n, "text/csv") || "data:text/csv,\uFEFF" + encodeURIComponent(n), this.getFilename() + ".csv");
          });
        }
        function y() {
          this.wrapLoading(() => {
            let n = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>' + this.getTable(!0) + "</body></html>";
            me(A(n, "application/vnd.ms-excel") || "data:application/vnd.ms-excel;base64," + V.btoa(unescape(encodeURIComponent(n))), this.getFilename() + ".xls");
          });
        }
        function A(n, l) {
          let i = V.navigator, a = V.URL || V.webkitURL || V;
          try {
            if (i.msSaveOrOpenBlob && V.MSBlobBuilder) {
              let t = new V.MSBlobBuilder();
              return t.append(n), t.getBlob("image/svg+xml");
            }
            return a.createObjectURL(new V.Blob(["\uFEFF" + n], { type: l }));
          } catch {
          }
        }
        function K(n) {
          let l = "", i = this.getDataRows(), a = this.options?.csv, t = $(a?.decimalPoint, a?.itemDelimiter !== "," && n ? 1.1.toLocaleString()[1] : "."), s = $(a?.itemDelimiter, t === "," ? ";" : ","), h = a?.lineDelimiter;
          return i.forEach((c, o) => {
            let d = "", w = c.length;
            for (; w--; ) typeof (d = c[w]) == "string" && (d = `"${d}"`), typeof d == "number" && t !== "." && (d = d.toString().replace(".", t)), c[w] = d;
            c.length = i.length ? i[0].length : 0, l += c.join(s), o < i.length - 1 && (l += h);
          }), l;
        }
        function q(n) {
          let l, i, a = this.chart, t = a.hasParallelCoordinates, s = a.time, h = this.options?.csv || {}, c = a.xAxis, o = {}, d = [], w = [], z = [], X = a.options.lang.exportData, H = X?.categoryHeader, Y = X?.categoryDatetimeHeader, Z = function(e, f, D) {
            if (h.columnHeaderFormatter) {
              let v = h.columnHeaderFormatter(e, f, D);
              if (v !== !1) return v;
            }
            return !e && H ? H : !e.bindAxes && Y && H ? e.options.title && e.options.title.text || (e.dateTime ? Y : H) : n ? { columnTitle: ((D || 0) > 1 ? f : e.name) || "", topLevelColumnTitle: e.name } : e.name + ((D || 0) > 1 ? " (" + f + ")" : "");
          }, m = function(e, f, D) {
            let v = {}, J = {};
            return f.forEach(function(F) {
              let W = (e.keyToAxis && e.keyToAxis[F] || F) + "Axis", B = Ue(D) ? e.chart[W][D] : e[W];
              v[F] = B && B.categories || [], J[F] = B && B.dateTime;
            }), { categoryMap: v, dateTimeValueAxisMap: J };
          }, u = function(e, f) {
            let D = e.pointArrayMap || ["y"];
            return e.data.some((v) => v.y !== void 0 && v.name) && f && !f.categories && e.exportKey !== "name" ? ["x", ...D] : D;
          }, x = [], L, p, E, C = 0, U, N;
          for (U in a.series.forEach(function(e) {
            let f = e.options.keys, D = e.xAxis, v = f || u(e, D), J = v.length, F = !e.requireSorting && {}, W = c.indexOf(D), B = m(e, v), ye, O;
            if (e.options.includeInDataExport !== !1 && !e.options.isInternal && e.visible !== !1) {
              for (He(x, function(he) {
                return he[0] === W;
              }) || x.push([W, C]), O = 0; O < J; ) E = Z(e, v[O], v.length), z.push(E.columnTitle || E), n && w.push(E.topLevelColumnTitle || E), O++;
              ye = { chart: e.chart, autoIncrement: e.autoIncrement, options: e.options, pointArrayMap: e.pointArrayMap, index: e.index }, e.options.data?.forEach(function(he, ae) {
                let b, oe, ne, Q = { series: ye };
                t && (B = m(e, v, ae)), e.pointClass.prototype.applyOptions.apply(Q, [he]);
                let re = e.data[ae] && e.data[ae].name;
                if (b = (Q.x ?? "") + "," + re, O = 0, (!D || e.exportKey === "name" || !t && D && D.hasNames && re) && (b = re), F && (F[b] && (b += "|" + ae), F[b] = !0), o[b]) {
                  let I = `${b},${o[b].pointers[e.index]}`, ee = b;
                  o[b].pointers[e.index] && (o[I] || (o[I] = [], o[I].xValues = [], o[I].pointers = []), b = I), o[ee].pointers[e.index] += 1;
                } else {
                  o[b] = [], o[b].xValues = [];
                  let I = [];
                  for (let ee = 0; ee < e.chart.series.length; ee++) I[ee] = 0;
                  o[b].pointers = I, o[b].pointers[e.index] = 1;
                }
                for (o[b].x = Q.x, o[b].name = re, o[b].xValues[W] = Q.x; O < J; ) oe = v[O], ne = e.pointClass.prototype.getNestedProperty.apply(Q, [oe]), o[b][C + O] = $(B.categoryMap[oe][ne], B.dateTimeValueAxisMap[oe] ? s.dateFormat(h.dateFormat, ne) : null, ne), O++;
              }), C += O;
            }
          }), o) Object.hasOwnProperty.call(o, U) && d.push(o[U]);
          for (p = n ? [w, z] : [z], C = x.length; C--; ) l = x[C][0], i = x[C][1], L = c[l], d.sort(function(e, f) {
            return e.xValues[l] - f.xValues[l];
          }), N = Z(L), p[0].splice(i, 0, N), n && p[1] && p[1].splice(i, 0, N), d.forEach(function(e) {
            let f = e.name;
            L && !Ne(f) && (L.dateTime ? (e.x instanceof Date && (e.x = e.x.getTime()), f = s.dateFormat(h.dateFormat, e.x)) : f = L.categories ? $(L.names[e.x], L.categories[e.x], e.x) : e.x), e.splice(i, 0, f);
          });
          return te(a, "exportData", { dataRows: p = p.concat(d) }), p;
        }
        function Me(n) {
          let l = (i) => {
            if (!i.tagName || i.tagName === "#text") return i.textContent || "";
            let a = i.attributes, t = `<${i.tagName}`;
            return a && Object.keys(a).forEach((s) => {
              let h = a[s];
              t += ` ${s}="${h}"`;
            }), t += ">", t += i.textContent || "", (i.children || []).forEach((s) => {
              t += l(s);
            }), t += `</${i.tagName}>`;
          };
          return l(this.getTableAST(n));
        }
        function Pe(n) {
          let l = 0, i = [], a = this, t = a.chart, s = t.options, h = n ? 1.1.toLocaleString()[1] : ".", c = $(a.options.useMultiLevelHeaders, !0), o = a.getDataRows(c), d = c ? o.shift() : null, w = o.shift(), z = function(m, u) {
            let x = m.length;
            if (u.length !== x) return !1;
            for (; x--; ) if (m[x] !== u[x]) return !1;
            return !0;
          }, X = function(m, u, x, L) {
            let p = $(L, ""), E = "highcharts-text" + (u ? " " + u : "");
            return typeof p == "number" ? (p = p.toString(), h === "," && (p = p.replace(".", h)), E = "highcharts-number") : L || (E = "highcharts-empty"), { tagName: m, attributes: x = be({ class: E }, x), textContent: p };
          }, { tableCaption: H } = a.options || {};
          H !== !1 && i.push({ tagName: "caption", attributes: { class: "highcharts-table-caption" }, textContent: typeof H == "string" ? H : s.title?.text || s.lang.chartTitle });
          for (let m = 0, u = o.length; m < u; ++m) o[m].length > l && (l = o[m].length);
          i.push(function(m, u, x) {
            let L = [], p = 0, E = x || u && u.length, C, U = 0, N;
            if (c && m && u && !z(m, u)) {
              let e = [];
              for (; p < E; ++p) if ((C = m[p]) === m[p + 1]) ++U;
              else if (U) e.push(X("th", "highcharts-table-topheading", { scope: "col", colspan: U + 1 }, C)), U = 0;
              else {
                C === u[p] ? a.options.useRowspanHeaders ? (N = 2, delete u[p]) : (N = 1, u[p] = "") : N = 1;
                let f = X("th", "highcharts-table-topheading", { scope: "col" }, C);
                N > 1 && f.attributes && (f.attributes.valign = "top", f.attributes.rowspan = N), e.push(f);
              }
              L.push({ tagName: "tr", children: e });
            }
            if (u) {
              let e = [];
              for (p = 0, E = u.length; p < E; ++p) u[p] !== void 0 && e.push(X("th", null, { scope: "col" }, u[p]));
              L.push({ tagName: "tr", children: e });
            }
            return { tagName: "thead", children: L };
          }(d, w || [], Math.max(l, w?.length || 0)));
          let Y = [];
          o.forEach(function(m) {
            let u = [];
            for (let x = 0; x < l; x++) u.push(X(x ? "td" : "th", null, x ? {} : { scope: "row" }, m[x]));
            Y.push({ tagName: "tr", children: u });
          }), i.push({ tagName: "tbody", children: Y });
          let Z = { tree: { tagName: "table", id: `highcharts-data-table-${t.index}`, children: i } };
          return te(t, "afterGetTableAST", Z), Z.tree;
        }
        function je() {
          this.toggleDataTable(!1);
        }
        function $e(n) {
          let l = this.chart, i = (n = $(n, !this.isDataTableVisible)) && !this.dataTableDiv;
          if (i && (this.dataTableDiv = Ve.createElement("div"), this.dataTableDiv.className = "highcharts-data-table", l.renderTo.parentNode.insertBefore(this.dataTableDiv, l.renderTo.nextSibling)), this.dataTableDiv) {
            let c = this.dataTableDiv.style, o = c.display;
            c.display = n ? "block" : "none", n ? (this.dataTableDiv.innerHTML = ce().emptyHTML, new (ce())([this.getTableAST()]).addToDOM(this.dataTableDiv), te(l, "afterViewData", { element: this.dataTableDiv, wasHidden: i || o !== c.display })) : te(l, "afterHideData");
          }
          this.isDataTableVisible = n;
          let a = this.divElements, t = this.options, s = t.buttons?.contextButton.menuItems, h = l.options.lang;
          if (t && t.menuItemDefinitions && h && h.viewData && h.hideData && s && a) {
            let c = a[s.indexOf("viewData")];
            c && ce().setElementHTML(c, this.isDataTableVisible ? h.hideData : h.viewData);
          }
        }
        function _e() {
          this.toggleDataTable(!0);
        }
        function Ke(n) {
          let l = this.chart, i = !!this.options.showExportInProgress, a = V.requestAnimationFrame || setTimeout;
          a(() => {
            i && l.showLoading(l.options.lang.exportInProgress), a(() => {
              try {
                n.call(this);
              } finally {
                i && l.hideLoading();
              }
            });
          });
        }
        function Xe() {
          let n = this.exporting, l = n?.dataTableDiv, i = (t, s) => t.children[s].textContent, a = (t, s) => (h, c) => {
            let o, d;
            return o = i(s ? h : c, t), d = i(s ? c : h, t), o === "" || d === "" || isNaN(o) || isNaN(d) ? o.toString().localeCompare(d) : o - d;
          };
          if (l && n.options.allowTableSorting) {
            let t = l.querySelector("thead tr");
            t && t.childNodes.forEach((s) => {
              let h = l.querySelector("tbody");
              s.addEventListener("click", function() {
                let c = [...l.querySelectorAll("tr:not(thead tr)")], o = [...s.parentNode.children];
                n && (c.sort(a(o.indexOf(s), n.ascendingOrderInTable = !n.ascendingOrderInTable)).forEach((d) => {
                  h?.appendChild(d);
                }), o.forEach((d) => {
                  ["highcharts-sort-ascending", "highcharts-sort-descending"].forEach((w) => {
                    d.classList.contains(w) && d.classList.remove(w);
                  });
                }), s.classList.add(n.ascendingOrderInTable ? "highcharts-sort-ascending" : "highcharts-sort-descending"));
              });
            });
          }
        }
        function qe() {
          this.options?.exporting?.showTable && !this.options.chart.forExport && this.exporting?.viewData();
        }
        function We() {
          this.exporting?.dataTableDiv?.remove();
        }
        r.compose = function(n, l, i) {
          if (!Fe(ke, "ExportData")) return;
          be(Ce().prototype, { downloadCSV: function() {
            return this.exporting?.downloadCSV();
          }, downloadXLS: function() {
            return this.exporting?.downloadXLS();
          }, getCSV: function(t) {
            return this.exporting?.getCSV(t);
          }, getDataRows: function(t) {
            return this.exporting?.getDataRows(t);
          }, getTable: function(t) {
            return this.exporting?.getTable(t);
          }, getTableAST: function(t) {
            return this.exporting?.getTableAST(t);
          }, hideData: function() {
            return this.exporting?.hideData();
          }, toggleDataTable: function(t) {
            return this.exporting?.toggleDataTable(t);
          }, viewData: function() {
            return this.exporting?.viewData();
          } });
          let a = l.prototype;
          if (!a.downloadCSV) {
            pe(n, "afterViewData", Xe), pe(n, "render", qe), pe(n, "destroy", We), a.downloadCSV = g, a.downloadXLS = y, a.getCSV = K, a.getDataRows = q, a.getTable = Me, a.getTableAST = Pe, a.hideData = je, a.toggleDataTable = $e, a.wrapLoading = Ke, a.viewData = _e, Re(Ae);
            let t = Oe().exporting?.buttons?.contextButton?.menuItems;
            t && t.push("separator", "downloadCSV", "downloadXLS", "viewData");
            let { arearange: s, gantt: h, map: c, mapbubble: o, treemap: d, xrange: w } = i.types;
            s && (s.prototype.keyToAxis = { low: "y", high: "y" }), h && (h.prototype.exportKey = "name", h.prototype.keyToAxis = { start: "x", end: "x" }), c && (c.prototype.exportKey = "name"), o && (o.prototype.exportKey = "name"), d && (d.prototype.exportKey = "name"), w && (w.prototype.keyToAxis = { x2: "x" });
          }
        };
      })(P || (P = {}));
      let Be = P, _ = j();
      _.dataURLtoBlob = _.dataURLtoBlob || de.dataURLtoBlob, _.downloadURL = _.downloadURL || de.downloadURL, Be.compose(_.Chart, _.Exporting, _.Series);
      let Ie = j();
      return ge.default;
    })());
  }(ie)), ie.exports;
}
var De = Ze();
const Je = /* @__PURE__ */ Ge(De), tt = /* @__PURE__ */ ze({
  __proto__: null,
  default: Je
}, [De]);
export {
  tt as e
};
