import { g as ae } from "./index-DPCO-fqK.js";
function ie(S, N) {
  for (var w = 0; w < N.length; w++) {
    const x = N[w];
    if (typeof x != "string" && !Array.isArray(x)) {
      for (const E in x)
        if (E !== "default" && !(E in S)) {
          const F = Object.getOwnPropertyDescriptor(x, E);
          F && Object.defineProperty(S, E, F.get ? F : {
            enumerable: !0,
            get: () => x[E]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }));
}
var U = { exports: {} }, le = U.exports, T;
function se() {
  return T || (T = 1, function(S, N) {
    /**
    * Highcharts JS v12.5.0 (2026-01-12)
    * @module highcharts/modules/offline-exporting
    * @requires highcharts
    * @requires highcharts/modules/exporting
    *
    * Client side exporting module
    *
    * (c) 2015-2026 Highsoft AS
    * Author: Torstein Honsi / Oystein Moseng
    *
    * A commercial license may be required depending on use.
    * See www.highcharts.com/license
    */
    (function(w, x) {
      S.exports = x(w._Highcharts, w._Highcharts.AST, w._Highcharts.Chart);
    })("u" < typeof window ? le : window, (w, x, E) => (() => {
      var F, G = { 660: (e) => {
        e.exports = x;
      }, 944: (e) => {
        e.exports = w;
      }, 960: (e) => {
        e.exports = E;
      } }, P = {};
      function s(e) {
        var o = P[e];
        if (o !== void 0) return o.exports;
        var a = P[e] = { exports: {} };
        return G[e](a, a.exports, s), a.exports;
      }
      s.n = (e) => {
        var o = e && e.__esModule ? () => e.default : () => e;
        return s.d(o, { a: o }), o;
      }, s.d = (e, o) => {
        for (var a in o) s.o(o, a) && !s.o(e, a) && Object.defineProperty(e, a, { enumerable: !0, get: o[a] });
      }, s.o = (e, o) => Object.prototype.hasOwnProperty.call(e, o);
      var R = {};
      s.d(R, { default: () => ne });
      var V = s(944), b = s.n(V);
      let { isSafari: I, win: f, win: { document: j } } = b(), { error: z } = b(), _ = f.URL || f.webkitURL || f;
      function H(e) {
        let o = e.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
        if (o && o.length > 3 && f.atob && f.ArrayBuffer && f.Uint8Array && f.Blob && _.createObjectURL) {
          let a = f.atob(o[3]), h = new f.ArrayBuffer(a.length), t = new f.Uint8Array(h);
          for (let r = 0; r < t.length; ++r) t[r] = a.charCodeAt(r);
          return _.createObjectURL(new f.Blob([t], { type: o[1] }));
        }
      }
      function $(e, o) {
        let a = f.navigator, h = j.createElement("a");
        if (typeof e != "string" && !(e instanceof String) && a.msSaveOrOpenBlob) return void a.msSaveOrOpenBlob(e, o);
        if (e = "" + e, a.userAgent.length > 1e3) throw Error("Input too long");
        let t = /Edge\/\d+/.test(a.userAgent);
        if ((I && typeof e == "string" && e.indexOf("data:application/pdf") === 0 || t || e.length > 2e6) && !(e = H(e) || "")) throw Error("Failed to convert to blob");
        if (h.download !== void 0) h.href = e, h.download = o, j.body.appendChild(h), h.click(), j.body.removeChild(h);
        else try {
          if (!f.open(e, "chart")) throw Error("Failed to open window");
        } catch {
          f.location.href = e;
        }
      }
      function q(e) {
        return new Promise((o, a) => {
          let h = j.getElementsByTagName("head")[0], t = j.createElement("script");
          t.type = "text/javascript", t.src = e, t.onload = () => {
            o();
          }, t.onerror = () => {
            let r = `Error loading script ${e}`;
            z(r), a(Error(r));
          }, h.appendChild(t);
        });
      }
      var M = s(660), Z = s.n(M), J = s(960), K = s.n(J);
      let Q = { exporting: {} }, { getOptions: W, setOptions: X } = b(), { composed: Y, doc: ee, win: C } = b(), { addEvent: te, extend: oe, pushUnique: re } = b();
      (function(e) {
        async function o(t, r, y, d) {
          var p, i;
          let u, n, c, l, v, L = (p = t, i = d, c = ee.createElement("div"), Z().setElementHTML(c, p), l = c.getElementsByTagName("text"), v = function(g, m) {
            let O = g;
            for (; O && O !== c; ) {
              if (O.style[m]) {
                let B = O.style[m];
                m === "fontSize" && /em$/.test(B) && (B = Math.round(16 * parseFloat(B)) + "px"), g.style[m] = B;
                break;
              }
              O = O.parentNode;
            }
          }, [].forEach.call(l, function(g) {
            for (["fontFamily", "fontSize"].forEach((m) => {
              v(g, m);
            }), g.style.fontFamily = i?.normal ? "HighchartsFont" : String(g.style.fontFamily && g.style.fontFamily.split(" ").splice(-1)), u = g.getElementsByTagName("title"), [].forEach.call(u, function(m) {
              g.removeChild(m);
            }), n = g.getElementsByClassName("highcharts-text-outline"); n.length > 0; ) {
              let m = n[0];
              m.parentNode && m.parentNode.removeChild(m);
            }
          }), c.querySelector("svg"));
          L && (await a(L, d), $(await h(L, 0, r), y));
        }
        async function a(t, r) {
          let y, d, p = (i, u) => {
            C.jspdf.jsPDF.API.events.push(["initialized", function() {
              this.addFileToVFS(i, u), this.addFont(i, "HighchartsFont", i), this.getFontList()?.HighchartsFont || this.setFont("HighchartsFont");
            }]);
          };
          for (let i of (r && (d = t.textContent || "", !/[^\u0000-\u007F\u200B]+/.test(d)) && (r = void 0), ["normal", "italic", "bold", "bolditalic"])) {
            let u = r?.[i];
            if (u) try {
              let n = await C.fetch(u);
              if (!n.ok) throw Error(`Failed to fetch font: ${u}`);
              let c = await n.blob(), l = new FileReader(), v = await new Promise((L, g) => {
                l.onloadend = () => {
                  typeof l.result == "string" ? L(l.result.split(",")[1]) : g(Error("Failed to read font as base64"));
                }, l.onerror = g, l.readAsDataURL(c);
              });
              p(i, v), i === "normal" && (y = v);
            } catch {
            }
            else y && p(i, y);
          }
        }
        async function h(t, r, y) {
          let d = (Number(t.getAttribute("width")) + 2 * r) * y, p = (Number(t.getAttribute("height")) + 2 * r) * y, i = new C.jspdf.jsPDF(p > d ? "p" : "l", "pt", [d, p]);
          [].forEach.call(t.querySelectorAll('*[visibility="hidden"]'), function(n) {
            n.parentNode.removeChild(n);
          });
          let u = t.querySelectorAll("linearGradient");
          for (let n = 0; n < u.length; n++) {
            let c = u[n].querySelectorAll("stop"), l = 0;
            for (; l < c.length && c[l].getAttribute("offset") === "0" && c[l + 1].getAttribute("offset") === "0"; ) c[l].remove(), l++;
          }
          return [].forEach.call(t.querySelectorAll("tspan"), (n) => {
            n.textContent === "​" && (n.textContent = " ", n.setAttribute("dx", -5));
          }), await i.svg(t, { x: 0, y: 0, width: d, height: p, removeInvalid: !0 }), i.output("datauristring");
        }
        e.compose = function(t) {
          if (te(t, "downloadSVG", async function(y) {
            let { svg: d, exportingOptions: p, exporting: i, preventDefault: u } = y;
            if (p?.type === "application/pdf") {
              u?.();
              try {
                let { type: n, filename: c, scale: l, libURL: v } = b().Exporting.prepareImageOptions(p);
                n === "application/pdf" && (C.jspdf?.jsPDF || (await q(`${v}jspdf.js`), await q(`${v}svg2pdf.js`)), await o(d, l, c, p?.pdfFont));
              } catch (n) {
                await i?.fallbackToServer(p, n);
              }
            }
          }), !re(Y, "OfflineExporting")) return;
          oe(K().prototype, { exportChartLocal: async function(y, d) {
            await this.exporting?.exportChart(y, d);
          } }), X(Q);
          let r = W().exporting?.buttons?.contextButton?.menuItems;
          r && r.push("downloadPDF");
        }, e.downloadSVGLocal = async function(t, r) {
          await b().Exporting.prototype.downloadSVG.call(void 0, t, r);
        };
      })(F || (F = {}));
      let D = F, A = b();
      A.dataURLtoBlob = A.dataURLtoBlob || H, A.downloadSVGLocal = D.downloadSVGLocal, A.downloadURL = A.downloadURL || $, D.compose(A.Exporting);
      let ne = b();
      return R.default;
    })());
  }(U)), U.exports;
}
var k = se();
const fe = /* @__PURE__ */ ae(k), ce = /* @__PURE__ */ ie({
  __proto__: null,
  default: fe
}, [k]);
export {
  ce as o
};
