@dpuse/dpuse-tool-highcharts-visualiser 0.0.82 → 0.0.84

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.
Files changed (36) hide show
  1. package/README.md +34 -30
  2. package/dist/{AnimationUtilities-CJw-tdb_.js → AnimationUtilities-eb22eIjK.js} +84 -84
  3. package/dist/AnimationUtilities-eb22eIjK.js.map +1 -0
  4. package/dist/{BorderRadius-CqHYi9va.js → BorderRadius-Cois3N8q.js} +2 -2
  5. package/dist/{BorderRadius-CqHYi9va.js.map → BorderRadius-Cois3N8q.js.map} +1 -1
  6. package/dist/{CenteredUtilities-BTUT7_Ld.js → CenteredUtilities-WO6ukK5m.js} +305 -309
  7. package/dist/CenteredUtilities-WO6ukK5m.js.map +1 -0
  8. package/dist/{SVGElement-uTuGcjav.js → SVGElement-z7ENyQ6Y.js} +73 -73
  9. package/dist/SVGElement-z7ENyQ6Y.js.map +1 -0
  10. package/dist/{SeriesRegistry-CXsAINSj.js → SeriesRegistry-CDI1sm9L.js} +127 -126
  11. package/dist/SeriesRegistry-CDI1sm9L.js.map +1 -0
  12. package/dist/{TextPath-Coabnrz0.js → TextPath-CiV8mQgF.js} +1 -1
  13. package/dist/{TextPath-Coabnrz0.js.map → TextPath-CiV8mQgF.js.map} +1 -1
  14. package/dist/{dependency-wheel.src-ByNiAiZS.js → dependency-wheel.src-m4DwYrP7.js} +5 -5
  15. package/dist/{dependency-wheel.src-ByNiAiZS.js.map → dependency-wheel.src-m4DwYrP7.js.map} +1 -1
  16. package/dist/dpuse-tool-highcharts-visualiser.es.js +1423 -1413
  17. package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -1
  18. package/dist/{highchartsMoreCustom-Cm6MkFMu.js → highchartsMoreCustom-C7_1r-Ql.js} +328 -300
  19. package/dist/highchartsMoreCustom-C7_1r-Ql.js.map +1 -0
  20. package/dist/{pattern-fill.src-CGZp553r.js → pattern-fill.src-kXG__4iS.js} +43 -43
  21. package/dist/pattern-fill.src-kXG__4iS.js.map +1 -0
  22. package/dist/sankey.src-B-54oc-3.js +522 -0
  23. package/dist/sankey.src-B-54oc-3.js.map +1 -0
  24. package/dist/{streamgraph.src-DjMW1U2g.js → streamgraph.src-DLpEiTz6.js} +2 -2
  25. package/dist/streamgraph.src-DLpEiTz6.js.map +1 -0
  26. package/dist/types/eslint.config.d.ts +1 -1
  27. package/package.json +28 -17
  28. package/dist/AnimationUtilities-CJw-tdb_.js.map +0 -1
  29. package/dist/CenteredUtilities-BTUT7_Ld.js.map +0 -1
  30. package/dist/SVGElement-uTuGcjav.js.map +0 -1
  31. package/dist/SeriesRegistry-CXsAINSj.js.map +0 -1
  32. package/dist/highchartsMoreCustom-Cm6MkFMu.js.map +0 -1
  33. package/dist/pattern-fill.src-CGZp553r.js.map +0 -1
  34. package/dist/sankey.src-Buj1zAlU.js +0 -522
  35. package/dist/sankey.src-Buj1zAlU.js.map +0 -1
  36. package/dist/streamgraph.src-DjMW1U2g.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { A as e, C as t, G as n, H as r, I as i, J as a, K as o, M as s, O as c, Q as l, S as u, U as d, W as f, b as p, c as m, h, k as g, lt as _, ot as v, p as y, rt as b, t as x, tt as S, u as C, v as w, x as T, z as E } from "./AnimationUtilities-CJw-tdb_.js";
1
+ import { A as e, C as t, G as n, H as r, I as i, J as a, K as o, M as s, O as c, S as l, U as u, W as d, b as f, c as p, h as m, k as h, lt as g, ot as _, p as v, rt as y, t as b, tt as x, u as S, v as C, z as w } from "./AnimationUtilities-eb22eIjK.js";
2
2
  //#region node_modules/highcharts/es-modules/Core/Renderer/HTML/AST.js
3
- var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolicy) && k.createPolicy("highcharts", { createHTML: (e) => e }), j = A ? A.createHTML("") : "", M = class e {
3
+ var { SVG_NS: T, win: E } = g, { trustedTypes: D } = E, O = D && r(D.createPolicy) && D.createPolicy("highcharts", { createHTML: (e) => e }), k = O ? O.createHTML("") : "", A = class e {
4
4
  static filterUserAttributes(t) {
5
5
  return a(t, (r, i) => {
6
6
  let a = !0;
@@ -9,8 +9,9 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
9
9
  "dynsrc",
10
10
  "href",
11
11
  "lowsrc",
12
- "src"
13
- ].indexOf(i) !== -1 && (a = n(r) && e.allowedReferences.some((e) => r.indexOf(e) === 0)), a || (C(33, !1, void 0, { "Invalid attribute in config": `${i}` }), delete t[i]), n(r) && t[i] && (t[i] = r.replace(/</g, "&lt;"));
12
+ "src",
13
+ "xlink:href"
14
+ ].indexOf(i) !== -1 && (a = n(r) && e.allowedReferences.some((e) => r.indexOf(e) === 0)), a || (S(33, !1, void 0, { "Invalid attribute in config": `${i}` }), delete t[i]), n(r) && t[i] && (t[i] = r.replace(/</g, "&lt;"));
14
15
  }), t;
15
16
  }
16
17
  static parseStyle(e) {
@@ -28,16 +29,16 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
28
29
  addToDOM(n) {
29
30
  function r(n, i) {
30
31
  let o;
31
- return b(n).forEach(function(n) {
32
- let s = n.tagName, c = n.textContent ? _.doc.createTextNode(n.textContent) : void 0, l = e.bypassHTMLFiltering, u;
32
+ return y(n).forEach(function(n) {
33
+ let s = n.tagName, c = n.textContent ? g.doc.createTextNode(n.textContent) : void 0, l = e.bypassHTMLFiltering, u;
33
34
  if (s) {
34
35
  if (s === "#text") u = c;
35
36
  else if (e.allowedTags.indexOf(s) !== -1 || l) {
36
- let o = s === "svg" ? D : i.namespaceURI || D, d = _.doc.createElementNS(o, s), f = n.attributes || {};
37
+ let o = s === "svg" ? T : i.namespaceURI || T, d = g.doc.createElementNS(o, s), f = n.attributes || {};
37
38
  a(n, function(e, t) {
38
39
  t !== "tagName" && t !== "attributes" && t !== "children" && t !== "style" && t !== "textContent" && (f[t] = e);
39
- }), w(d, l ? f : e.filterUserAttributes(f)), n.style && t(d, n.style), c && d.appendChild(c), r(n.children || [], d), u = d;
40
- } else C(33, !1, void 0, { "Invalid tagName in config": s });
40
+ }), C(d, l ? f : e.filterUserAttributes(f)), n.style && t(d, n.style), c && d.appendChild(c), r(n.children || [], d), u = d;
41
+ } else S(33, !1, void 0, { "Invalid tagName in config": s });
41
42
  }
42
43
  u && i.appendChild(u), o = u;
43
44
  }), o;
@@ -49,12 +50,13 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
49
50
  t = t.trim().replace(/ style=(["'])/g, " data-style=$1");
50
51
  let r;
51
52
  try {
52
- r = new DOMParser().parseFromString(A ? A.createHTML(t) : t, "text/html");
53
- } catch {}
54
- if (!r) {
55
- let e = T("div");
56
- e.innerHTML = t, r = { body: e };
53
+ r = new DOMParser().parseFromString(O ? O.createHTML(t) : t, "text/html");
54
+ } catch {
55
+ try {
56
+ r = new DOMParser().parseFromString(t, "text/html");
57
+ } catch {}
57
58
  }
59
+ r || (r = g.doc.implementation.createHTMLDocument(""), r.body.innerHTML = t);
58
60
  let i = (t, n) => {
59
61
  let r = t.localName || t.nodeName.toLowerCase(), a = { tagName: r };
60
62
  r === "#text" && (a.textContent = t.textContent || "");
@@ -76,7 +78,7 @@ var { SVG_NS: D, win: O } = _, { trustedTypes: k } = O, A = k && r(k.createPolic
76
78
  return [].forEach.call(r.body.childNodes, (e) => i(e, n)), n;
77
79
  }
78
80
  };
79
- M.allowedAttributes = /* @__PURE__ */ "alt.aria-controls.aria-describedby.aria-expanded.aria-haspopup.aria-hidden.aria-label.aria-labelledby.aria-live.aria-pressed.aria-readonly.aria-roledescription.aria-selected.aria-sort.class.clip-path.color.colspan.cx.cy.d.disabled.dx.dy.fill.filterUnits.flood-color.flood-opacity.height.href.id.in.in2.markerHeight.markerWidth.offset.opacity.operator.orient.padding.paddingLeft.paddingRight.patternUnits.r.radius.refX.refY.result.role.rowspan.scope.slope.src.startOffset.stdDeviation.stop-color.stop-opacity.stroke-linecap.stroke-width.stroke.style.summary.tabindex.tableValues.target.text-align.text-anchor.textAnchor.textLength.title.type.valign.width.x.x1.x2.xlink:href.y.y1.y2.zIndex".split("."), M.allowedReferences = [
81
+ A.allowedAttributes = /* @__PURE__ */ "alt.aria-controls.aria-describedby.aria-expanded.aria-haspopup.aria-hidden.aria-label.aria-labelledby.aria-live.aria-pressed.aria-readonly.aria-roledescription.aria-selected.aria-sort.class.clip-path.color.colspan.cx.cy.d.disabled.dx.dy.fill.filterUnits.flood-color.flood-opacity.height.href.id.in.in2.markerHeight.markerWidth.offset.opacity.operator.orient.padding.paddingLeft.paddingRight.patternUnits.r.radius.refX.refY.result.role.rowspan.scope.slope.src.startOffset.stdDeviation.stop-color.stop-opacity.stroke-linecap.stroke-width.stroke.style.summary.tabindex.tableValues.target.text-align.text-anchor.textAnchor.textLength.title.type.valign.width.x.x1.x2.xlink:href.y.y1.y2.zIndex".split("."), A.allowedReferences = [
80
82
  "https://",
81
83
  "http://",
82
84
  "mailto:",
@@ -84,16 +86,16 @@ M.allowedAttributes = /* @__PURE__ */ "alt.aria-controls.aria-describedby.aria-e
84
86
  "../",
85
87
  "./",
86
88
  "#"
87
- ], M.allowedTags = /* @__PURE__ */ "#text.a.abbr.b.br.button.caption.circle.clipPath.code.dd.defs.div.dl.dt.em.feComponentTransfer.feComposite.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feMerge.feMergeNode.feMorphology.feOffset.filter.h1.h2.h3.h4.h5.h6.hr.i.img.li.linearGradient.marker.ol.p.path.pattern.pre.rect.small.span.stop.strong.style.sub.sup.svg.table.tbody.td.text.textPath.th.thead.title.tr.tspan.u.ul".split("."), M.emptyHTML = j, M.bypassHTMLFiltering = !1;
89
+ ], A.allowedTags = /* @__PURE__ */ "#text.a.abbr.b.br.button.caption.circle.clipPath.code.dd.defs.div.dl.dt.em.feComponentTransfer.feComposite.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feMerge.feMergeNode.feMorphology.feOffset.filter.h1.h2.h3.h4.h5.h6.hr.i.img.li.linearGradient.marker.ol.p.path.pattern.pre.rect.small.span.stop.strong.sub.sup.svg.table.tbody.td.text.textPath.th.thead.title.tr.tspan.u.ul".split("."), A.emptyHTML = k, A.bypassHTMLFiltering = !1;
88
90
  //#endregion
89
91
  //#region node_modules/highcharts/es-modules/Core/Templating.js
90
- var { defaultOptions: N, defaultTime: P } = m, { pageLang: F } = _, I = {
92
+ var { defaultOptions: j, defaultTime: M } = p, { pageLang: N } = g, P = {
91
93
  add: (e, t) => e + t,
92
- divide: (e, t) => t === 0 ? "" : p(e / t),
94
+ divide: (e, t) => t === 0 ? "" : f(e / t),
93
95
  eq: (e, t) => e == t,
94
96
  each: function(e) {
95
97
  let t = arguments[arguments.length - 1];
96
- return E(e) ? e.map((n, r) => B(t.body, g(f(n) ? n : { "@this": n }, {
98
+ return w(e) ? e.map((n, r) => R(t.body, h(d(n) ? n : { "@this": n }, {
97
99
  "@index": r,
98
100
  "@first": r === 0,
99
101
  "@last": r === e.length - 1
@@ -104,86 +106,86 @@ var { defaultOptions: N, defaultTime: P } = m, { pageLang: F } = _, I = {
104
106
  if: (e) => !!e,
105
107
  le: (e, t) => e <= t,
106
108
  lt: (e, t) => e < t,
107
- multiply: (e, t) => p(e * t, 15),
109
+ multiply: (e, t) => f(e * t, 15),
108
110
  ne: (e, t) => e != t,
109
111
  subtract: (e, t) => e - t,
110
- ucfirst: v,
112
+ ucfirst: _,
111
113
  unless: (e) => !e
112
- }, L = {}, R = (e) => /^["'].+["']$/.test(e);
113
- function z(e, t, n) {
114
- return P.dateFormat(e, t, n);
114
+ }, F = {}, I = (e) => /^["'].+["']$/.test(e);
115
+ function L(e, t, n) {
116
+ return M.dateFormat(e, t, n);
115
117
  }
116
- function B(e = "", t, r) {
117
- let a = /\{([^{}]+)\}/g, o = /\(([^()]+)\)/g, s = [], c = /f$/, u = /\.(\d)/, d = r?.options?.lang || N.lang, f = r?.time || P, p = r?.numberFormatter || V.bind(r), m = (e = "") => {
118
+ function R(e = "", t, r) {
119
+ let a = /\{([^{}]+)\}/g, o = /\(([^()]+)\)/g, s = [], c = /f$/, l = /\.(\d)/, u = r?.options?.lang || j.lang, d = r?.time || M, f = r?.numberFormatter || z.bind(r), p = (e = "") => {
118
120
  let n;
119
- return e === "true" ? !0 : e === "false" ? !1 : (n = Number(e)).toString() === e ? n : R(e) ? e.slice(1, -1) : i(e, t);
120
- }, h, g, _ = 0, v;
121
- for (; (h = a.exec(e)) !== null;) {
122
- let n = h, r = o.exec(h[1]);
123
- r && (h = r, v = !0), g?.isBlock || (g = {
121
+ return e === "true" ? !0 : e === "false" ? !1 : (n = Number(e)).toString() === e ? n : I(e) ? e.slice(1, -1) : i(e, t);
122
+ }, m, h, g = 0, _;
123
+ for (; (m = a.exec(e)) !== null;) {
124
+ let n = m, r = o.exec(m[1]);
125
+ r && (m = r, _ = !0), h?.isBlock || (h = {
124
126
  ctx: t,
125
- expression: h[1],
126
- find: h[0],
127
- isBlock: h[1].charAt(0) === "#",
128
- start: h.index,
129
- startInner: h.index + h[0].length,
130
- length: h[0].length
127
+ expression: m[1],
128
+ find: m[0],
129
+ isBlock: m[1].charAt(0) === "#",
130
+ start: m.index,
131
+ startInner: m.index + m[0].length,
132
+ length: m[0].length
131
133
  });
132
- let i = (g.isBlock ? n : h)[1].split(" ")[0].replace("#", "");
133
- I[i] && (g.isBlock && i === g.fn && _++, g.fn || (g.fn = i));
134
- let a = h[1] === "else";
135
- if (g.isBlock && g.fn && (h[1] === `/${g.fn}` || a)) {
136
- if (_) a || _--;
134
+ let i = (h.isBlock ? n : m)[1].split(" ")[0].replace("#", "");
135
+ P[i] && (h.isBlock && i === h.fn && g++, h.fn || (h.fn = i));
136
+ let a = m[1] === "else";
137
+ if (h.isBlock && h.fn && (m[1] === `/${h.fn}` || a)) {
138
+ if (g) a || g--;
137
139
  else {
138
- let t = g.startInner, n = e.substr(t, h.index - t);
139
- g.body === void 0 ? (g.body = n, g.startInner = h.index + h[0].length) : g.elseBody = n, g.find += n + h[0], a || (s.push(g), g = void 0);
140
+ let t = h.startInner, n = e.substr(t, m.index - t);
141
+ h.body === void 0 ? (h.body = n, h.startInner = m.index + m[0].length) : h.elseBody = n, h.find += n + m[0], a || (s.push(h), h = void 0);
140
142
  }
141
- } else g.isBlock || s.push(g);
142
- if (r && !g?.isBlock) break;
143
+ } else h.isBlock || s.push(h);
144
+ if (r && !h?.isBlock) break;
143
145
  }
144
146
  return s.forEach((i) => {
145
- let { body: a, elseBody: s, expression: h, fn: g } = i, _, v;
146
- if (g) {
147
- let e = [i], n = [], o = h.length, c = 0, l;
148
- for (v = 0; v <= o; v++) {
149
- let e = h.charAt(v);
150
- !l && (e === "\"" || e === "'") ? l = e : l === e && (l = ""), !l && (e === " " || v === o) && (n.push(h.substr(c, v - c)), c = v + 1);
147
+ let { body: a, elseBody: s, expression: m, fn: h } = i, g, _;
148
+ if (h) {
149
+ let e = [i], n = [], o = m.length, c = 0, l;
150
+ for (_ = 0; _ <= o; _++) {
151
+ let e = m.charAt(_);
152
+ !l && (e === "\"" || e === "'") ? l = e : l === e && (l = ""), !l && (e === " " || _ === o) && (n.push(m.substr(c, _ - c)), c = _ + 1);
151
153
  }
152
- for (v = I[g].length; v--;) e.unshift(m(n[v + 1]));
153
- _ = I[g].apply(t, e), i.isBlock && typeof _ == "boolean" && (_ = B(_ ? a : s, t, r));
154
+ for (_ = P[h].length; _--;) e.unshift(p(n[_ + 1]));
155
+ g = P[h].apply(t, e), i.isBlock && typeof g == "boolean" && (g = R(g ? a : s, t, r));
154
156
  } else {
155
- let e = R(h) ? [h] : h.split(":");
156
- if (_ = m(e.shift() || ""), e.length && typeof _ == "number") {
157
+ let e = I(m) ? [m] : m.split(":");
158
+ if (g = p(e.shift() || ""), e.length && typeof g == "number") {
157
159
  let t = e.join(":");
158
160
  if (c.test(t)) {
159
- let e = parseInt((t.match(u) || ["", "-1"])[1], 10);
160
- _ !== null && (_ = p(_, e, d.decimalPoint, t.indexOf(",") > -1 ? d.thousandsSep : ""));
161
- } else _ = f.dateFormat(t, _);
161
+ let e = parseInt((t.match(l) || ["", "-1"])[1], 10);
162
+ g !== null && (g = f(g, e, u.decimalPoint, t.indexOf(",") > -1 ? u.thousandsSep : ""));
163
+ } else g = d.dateFormat(t, g);
162
164
  }
163
- o.lastIndex = 0, o.test(i.find) && n(_) && (_ = `"${_}"`);
165
+ o.lastIndex = 0, o.test(i.find) && n(g) && (g = `"${g}"`);
164
166
  }
165
- e = e.replace(i.find, l(_, ""));
166
- }), v ? B(e, t, r) : e;
167
+ e = e.replace(i.find, g ?? "");
168
+ }), _ ? R(e, t, r) : e;
167
169
  }
168
- function V(e, t, n, r) {
170
+ function z(e, t, n, r) {
169
171
  e = +e || 0, t = +t;
170
- let i, a, [o, s] = e.toString().split("e").map(Number), c = this?.options?.lang || N.lang, l = (e.toString().split(".")[1] || "").split("e")[0].length, u = t, f = {};
171
- n ??= c.decimalPoint, r ??= c.thousandsSep, t === -1 ? t = Math.min(l, 20) : d(t) ? t && s < 0 && (a = t + s, a >= 0 ? (o = +o.toExponential(a).split("e")[0], t = a) : (o = Math.floor(o), e = t < 20 ? +(o * 10 ** s).toFixed(t) : 0, s = 0)) : t = 2, s && (t ??= 2, e = o), d(t) && t >= 0 && (f.minimumFractionDigits = t, f.maximumFractionDigits = t), r === "" && (f.useGrouping = !1);
172
- let p = r || n, m = p ? "en" : this?.locale || c.locale || F, h = JSON.stringify(f) + m;
173
- return i = (L[h] ?? (L[h] = new Intl.NumberFormat(m, f))).format(e), p && (i = i.replace(/([,\.])/g, "_$1").replace(/_\,/g, r ?? ",").replace("_.", n ?? ".")), (!t && +i == 0 || s < 0 && !u) && (i = "0"), s && +i != 0 && (i += "e" + (s < 0 ? "" : "+") + s), i;
172
+ let i, a, [o, s] = e.toString().split("e").map(Number), c = this?.options?.lang || j.lang, l = (e.toString().split(".")[1] || "").split("e")[0].length, d = t, f = {};
173
+ n ??= c.decimalPoint, r ??= c.thousandsSep, t === -1 ? t = Math.min(l, 20) : u(t) ? t && s < 0 && (a = t + s, a >= 0 ? (o = +o.toExponential(a).split("e")[0], t = a) : (o = Math.floor(o), e = t < 20 ? +(o * 10 ** s).toFixed(t) : 0, s = 0)) : t = 2, s && (t ??= 2, e = o), u(t) && t >= 0 && (f.minimumFractionDigits = t, f.maximumFractionDigits = t), r === "" && (f.useGrouping = !1);
174
+ let p = r || n, m = p ? "en" : this?.locale || c.locale || N, h = JSON.stringify(f) + m;
175
+ return i = (F[h] ?? (F[h] = new Intl.NumberFormat(m, f))).format(e), p && (i = i.replace(/([,\.])/g, "_$1").replace(/_\,/g, r ?? ",").replace("_.", n ?? ".")), (!t && +i == 0 || s < 0 && !d) && (i = "0"), s && +i != 0 && (i += "e" + (s < 0 ? "" : "+") + s), i;
174
176
  }
175
- var H = {
176
- dateFormat: z,
177
- format: B,
178
- helpers: I,
179
- numberFormat: V
180
- }, { defaultOptions: U } = m, { format: W } = H, G = class e {
177
+ var B = {
178
+ dateFormat: L,
179
+ format: R,
180
+ helpers: P,
181
+ numberFormat: z
182
+ }, { defaultOptions: V } = p, { format: H } = B, U = class e {
181
183
  constructor(e, t, n) {
182
- this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = e, this.applyOptions(t, n), this.id ??= y(), this.resolveColor(), this.dataLabelOnNull ??= e.options.nullInteraction, e.chart.pointCount++, this.category = e.xAxis?.categories?.[this.x] ?? this.x, this.key = this.name ?? this.category, s(this, "afterInit");
184
+ this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = e, this.applyOptions(t, n), this.id ??= v(), this.resolveColor(), this.dataLabelOnNull ??= e.options.nullInteraction, e.chart.pointCount++, this.category = e.xAxis?.categories?.[this.x] ?? this.x, this.key = this.name ?? this.category, s(this, "afterInit");
183
185
  }
184
186
  applyOptions(t, n, r) {
185
187
  let i = this, a = i.series, s = a.options.pointValKey || a.pointValKey;
186
- return t = e.prototype.optionsToObject.call(this, t), g(i, t), i.options = i.options ? a.chart.options.chart.allowMutatingData ? g(i.options, t) : o(i.options, t) : t, s && (i.y = e.prototype.getNestedProperty.call(i, s)), d(n) && (i.x = n), r || (i.selected && (i.state = "select"), t.group && delete i.group, t.dataLabels && delete i.dataLabels, i.isNull = i.isValid && !i.isValid(), i.formatPrefix = i.isNull ? "null" : "point"), i;
188
+ return t = e.prototype.optionsToObject.call(this, t), h(i, t), i.options = i.options ? a.chart.options.chart.allowMutatingData ? h(i.options, t) : o(i.options, t) : t, s && (i.y = e.prototype.getNestedProperty.call(i, s)), u(n) && (i.x = n), r || (i.selected && (i.state = "select"), t.group && delete i.group, t.dataLabels && delete i.dataLabels, i.isNull = i.isValid && !i.isValid(), i.formatPrefix = i.isNull ? "null" : "point"), i;
187
189
  }
188
190
  getOrigin({ x: e = 0, y: t = 0 }, n = {}) {
189
191
  let { graphic: r, series: i } = this;
@@ -197,8 +199,8 @@ var H = {
197
199
  }
198
200
  destroy(e) {
199
201
  if (!this.destroyed && !this.condemned) {
200
- let t = this, n = t.series, r = n.chart, i = r.hoverPoints, a = t.series.chart.renderer.globalAnimation, { duration: o } = x(a), s = () => {
201
- (t.graphic || t.graphics || t.dataLabel || t.dataLabels) && (S(t), t.destroyElements());
202
+ let t = this, n = t.series, r = n.chart, i = r.hoverPoints, a = t.series.chart.renderer.globalAnimation, { duration: o } = b(a), s = () => {
203
+ (t.graphic || t.graphics || t.dataLabel || t.dataLabels) && (x(t), t.destroyElements());
202
204
  for (let e in t) delete t[e];
203
205
  this.destroyed = !0;
204
206
  };
@@ -242,12 +244,12 @@ var H = {
242
244
  return (e.graphic && (e.graphic.symbolName || e.graphic.element.nodeName)) !== this.shapeType;
243
245
  }
244
246
  isValid() {
245
- return (d(this.x) || this.x instanceof Date) && d(this.y);
247
+ return (u(this.x) || this.x instanceof Date) && u(this.y);
246
248
  }
247
249
  optionsToObject(t) {
248
250
  let n = this.series, r = n.options.keys, i = r || n.pointArrayMap || ["y"], a = i.length, o = {}, s, c = 0, l = 0;
249
- if (d(t) || t === null) o[i[0]] = t;
250
- else if (E(t)) for (!r && t.length > a && (s = typeof t[0], s === "string" ? n.xAxis?.dateTime ? o.x = n.chart.time.parse(t[0]) : o[n.tupleKey || "name"] = t[0] : s === "number" && (o.x = t[0]), c++); l < a;) (!r || t[c] !== void 0) && (o[i[l]] = t[c]), c++, l++;
251
+ if (u(t) || t === null) o[i[0]] = t;
252
+ else if (w(t)) for (!r && t.length > a && (s = typeof t[0], s === "string" ? n.xAxis?.dateTime ? o.x = n.chart.time.parse(t[0]) : o[n.tupleKey || "name"] = t[0] : s === "number" && (o.x = t[0]), c++); l < a;) (!r || t[c] !== void 0) && (o[i[l]] = t[c]), c++, l++;
251
253
  else typeof t == "object" && (o = t, t.dataLabels && (n.hasDataLabels = () => !0), t.marker && (n._hasPointMarkers = !0));
252
254
  return (r || !n.options.data) && Object.keys(o).forEach((t) => {
253
255
  t.indexOf(".") > 0 && (e.prototype.setNestedProperty(o, o[t], t), delete o[t]);
@@ -255,7 +257,7 @@ var H = {
255
257
  }
256
258
  pos(e, t = this.plotX, n = this.plotY) {
257
259
  let { series: r } = this, { chart: i, xAxis: a, yAxis: o } = r || {}, s = 0, c = 0;
258
- if (i && d(t) && d(n)) return e && (s = a ? a.pos : i.plotLeft, c = o ? o.pos : i.plotTop), i.inverted && a && o ? [o.len - n + c, a.len - t + s] : [t + s, n + c];
260
+ if (i && u(t) && u(n)) return e && (s = a ? a.pos : i.plotLeft, c = o ? o.pos : i.plotTop), i.inverted && a && o ? [o.len - n + c, a.len - t + s] : [t + s, n + c];
259
261
  }
260
262
  resolveColor() {
261
263
  let { options: e, series: t } = this, n = t.chart, r = n.options.chart, i = n.styledMode, a, o = r.colorCount, s;
@@ -269,8 +271,9 @@ var H = {
269
271
  this.colorIndex = e.colorIndex ?? s, this.color = e.color ?? a;
270
272
  }
271
273
  setNestedProperty(e, t, n) {
272
- return n.split(".").reduce(function(e, n, r, i) {
273
- return e[n] = i.length - 1 === r ? t : f(e[n], !0) ? e[n] : {}, e[n];
274
+ let r = n.split(".");
275
+ return r.some((e) => e === "__proto__" || e === "constructor") || r.reduce(function(e, n, r, i) {
276
+ return e[n] = i.length - 1 === r ? t : d(e[n], !0) && Object.hasOwnProperty.call(e, n) ? e[n] : {}, e[n];
274
277
  }, e), e;
275
278
  }
276
279
  shouldDraw() {
@@ -280,25 +283,23 @@ var H = {
280
283
  let { chart: t, pointArrayMap: n = ["y"], tooltipOptions: r } = this.series, { valueDecimals: i = "", valuePrefix: a = "", valueSuffix: o = "" } = r;
281
284
  return t.styledMode && (e = t.tooltip?.styledModeFormat(e) || e), n.forEach((t) => {
282
285
  t = "{point." + t, (a || o) && (e = e.replace(RegExp(t + "}", "g"), a + t + "}" + o)), e = e.replace(RegExp(t + "}", "g"), t + ":,." + i + "f}");
283
- }), W(e, this, t);
286
+ }), H(e, this, t);
284
287
  }
285
288
  update(e, t = !0, r, i) {
286
289
  let a = this, o = a.series, s = a.graphic, c = o.chart, l = o.options, u = l.data;
287
- function d() {
288
- a.applyOptions(e);
289
- let i = s && a.hasMockGraphic, d = a.index, p = a.y === null ? !i : i;
290
- s && p && (a.graphic = s.destroy(), delete a.hasMockGraphic), f(e, !0) && (s?.element && e?.marker && e.marker.symbol !== void 0 && (a.graphic = s.destroy()), e?.dataLabels && a.dataLabel && (a.dataLabel = a.dataLabel.destroy()));
291
- let m = a.optionsToObject(e);
292
- o.hasProcessedDataTable || (o.dataTable.setRow(m, d), u && (u[d] = f(u[d], !0) || f(e, !0) ? a.options : e ?? u[d])), o.isDirty = o.isDirtyData = !0, "x" in m && (n(m.x) && (o.xColumnIsNumbers = void 0), a.x = o.getX(m.x), a.isNull = a.isValid && !a.isValid(), o.xColumn && (o.xColumn[d] = a.x)), !o.fixedBox && o.hasCartesianSeries && (c.isDirtyBox = !0), l.legendType === "point" && (c.isDirtyLegend = !0), t && c.redraw(r);
290
+ function f() {
291
+ a.applyOptions(e), s && a.y === null && !a.hasMockGraphic && (a.graphic = s.destroy()), d(e, !0) && (s?.element && e?.marker && e.marker.symbol !== void 0 && (a.graphic = s.destroy()), e?.dataLabels && a.dataLabel && (a.dataLabel = a.dataLabel.destroy()));
292
+ let i = a.index, f = a.optionsToObject(e);
293
+ o.hasProcessedDataTable || (o.dataTable.setRow(f, i), u && (u[i] = d(u[i], !0) || d(e, !0) ? a.options : e ?? u[i])), o.isDirty = o.isDirtyData = !0, "x" in f && (n(f.x) && (o.xColumnIsNumbers = void 0), a.x = o.getX(f.x), a.isNull = a.isValid && !a.isValid(), o.xColumn && (o.xColumn[i] = a.x)), !o.fixedBox && o.hasCartesianSeries && (c.isDirtyBox = !0), l.legendType === "point" && (c.isDirtyLegend = !0), t && c.redraw(r);
293
294
  }
294
- i === !1 ? d() : a.firePointEvent("update", { options: e }, d);
295
+ i === !1 ? f() : a.firePointEvent("update", { options: e }, f);
295
296
  }
296
297
  remove(e, t) {
297
298
  this.series.removePoint(this.series.data.indexOf(this), e, t);
298
299
  }
299
300
  select(e, t) {
300
301
  let n = this, r = n.series, i = r.chart;
301
- e = l(e, !n.selected), this.selectedStaging = e, n.firePointEvent(e ? "select" : "unselect", { accumulate: t }, function() {
302
+ e ??= !n.selected, this.selectedStaging = e, n.firePointEvent(e ? "select" : "unselect", { accumulate: t }, function() {
302
303
  n.selected = n.options.selected = e, r.options.data && (r.options.data[r.data.indexOf(n)] = n.options), n.setState(e && "select"), t || i.getSelectedPoints().forEach(function(e) {
303
304
  let t = e.series, r = t.options;
304
305
  e.selected && e !== n && (e.selected = e.options.selected = !1, r.data && (r.data[t.data.indexOf(e)] = e.options), e.setState(i.hoverPoints && r.inactiveOtherPoints ? "inactive" : ""), e.firePointEvent("unselect"));
@@ -319,58 +320,58 @@ var H = {
319
320
  }
320
321
  manageEvent(e) {
321
322
  let t = this, n = o(t.series.options.point, t.options).events?.[e];
322
- r(n) && (!t.hcEvents?.[e] || t.hcEvents?.[e]?.map((e) => e.fn).indexOf(n) === -1) ? (t.importedUserEvent?.(), t.importedUserEvent = h(t, e, n), t.hcEvents && (t.hcEvents[e].userEvent = !0)) : t.importedUserEvent && !n && t.hcEvents?.[e] && t.hcEvents?.[e].userEvent && (S(t, e), delete t.hcEvents[e], Object.keys(t.hcEvents) || delete t.importedUserEvent);
323
+ r(n) && (!t.hcEvents?.[e] || t.hcEvents?.[e]?.map((e) => e.fn).indexOf(n) === -1) ? (t.importedUserEvent?.(), t.importedUserEvent = m(t, e, n), t.hcEvents && (t.hcEvents[e].userEvent = !0)) : t.importedUserEvent && !n && t.hcEvents?.[e] && t.hcEvents?.[e].userEvent && (x(t, e), delete t.hcEvents[e], Object.keys(t.hcEvents) || delete t.importedUserEvent);
323
324
  }
324
325
  setState(e, t) {
325
- let n = this, r = n.series, i = n.state, a = r.options.states?.[e || "normal"] || {}, c = U.plotOptions?.[r.type]?.marker && r.options.marker, u = c?.enabled === !1, p = c?.states?.[e || "normal"] || {}, m = p.enabled === !1, h = n.marker || {}, _ = r.chart, v = c && r.markerAttribs, y = r.halo, b, x, S, C = r.stateMarkerGraphic, w;
326
- if (e ||= "", e === n.state && !t || n.selected && e !== "select" || a.enabled === !1 || e && (m || u && p.enabled === !1) || e && h.states?.[e]?.enabled === !1) return;
327
- if (n.state = e, v && (b = r.markerAttribs(n, e)), n.graphic && !n.hasMockGraphic) {
328
- if (i && n.graphic.removeClass("highcharts-point-" + i), e && n.graphic.addClass("highcharts-point-" + e), !_.styledMode) {
329
- x = r.pointAttribs(n, e), S = _.options.chart.animation ?? a.animation;
330
- let t = x.opacity;
331
- r.options.inactiveOtherPoints && d(t) && (n.dataLabels || []).forEach(function(e) {
332
- e && !e.hasClass("highcharts-data-label-hidden") && (e.animate({ opacity: t }, S), e.connector && e.connector.animate({ opacity: t }, S));
333
- }), n.graphic.animate(x, S);
326
+ let n = this, r = n.series, i = n.state, a = r.options.states?.[e || "normal"] || {}, c = V.plotOptions?.[r.type]?.marker && r.options.marker, l = c?.enabled === !1, f = c?.states?.[e || "normal"] || {}, p = f.enabled === !1, m = n.marker || {}, g = r.chart, _ = c && r.markerAttribs, v = r.halo, y, b, x, S = r.stateMarkerGraphic, C;
327
+ if (e ||= "", e === n.state && !t || n.selected && e !== "select" || a.enabled === !1 || e && (p || l && f.enabled === !1) || e && m.states?.[e]?.enabled === !1) return;
328
+ if (n.state = e, _ && (y = r.markerAttribs(n, e)), n.graphic && !n.hasMockGraphic) {
329
+ if (i && n.graphic.removeClass("highcharts-point-" + i), e && n.graphic.addClass("highcharts-point-" + e), !g.styledMode) {
330
+ b = r.pointAttribs(n, e), x = g.options.chart.animation ?? a.animation;
331
+ let t = b.opacity;
332
+ r.options.inactiveOtherPoints && u(t) && (n.dataLabels || []).forEach(function(e) {
333
+ e && !e.hasClass("highcharts-data-label-hidden") && (e.animate({ opacity: t }, x), e.connector && e.connector.animate({ opacity: t }, x));
334
+ }), n.graphic.animate(b, x);
334
335
  }
335
- b && n.graphic.animate(b, _.options.chart.animation ?? p.animation ?? c.animation), C && C.hide();
336
- } else e && p && (w = h.symbol || r.symbol, C && C.currentSymbol !== w && (C = C.destroy()), b && (C ? C[t ? "animate" : "attr"]({
337
- x: b.x,
338
- y: b.y
339
- }) : w && (r.stateMarkerGraphic = C = _.renderer.symbol(w, b.x, b.y, b.width, b.height, o(c, p)).add(r.markerGroup), C.currentSymbol = w)), !_.styledMode && C && n.state !== "inactive" && C.attr(r.pointAttribs(n, e))), C && (C[e && n.isInside ? "show" : "hide"](), C.element.point = n, C.addClass(n.getClassName(), !0));
340
- let T = f(a.halo) ? a.halo : {}, E = n.graphic || C, D = E?.visibility || "inherit";
341
- T.size && E && D !== "hidden" && !n.isCluster ? (y || (r.halo = y = _.renderer.path().add(E.parentGroup)), y.show()[t ? "animate" : "attr"]({ d: n.haloPath(T.size) }), y.attr({
342
- class: "highcharts-halo highcharts-color-" + l(n.colorIndex, r.colorIndex) + (n.className ? " " + n.className : ""),
343
- visibility: D,
336
+ y && n.graphic.animate(y, g.options.chart.animation ?? f.animation ?? c.animation), S && S.hide();
337
+ } else e && f && (C = m.symbol || r.symbol, S && S.currentSymbol !== C && (S = S.destroy()), y && (S ? S[t ? "animate" : "attr"]({
338
+ x: y.x,
339
+ y: y.y
340
+ }) : C && (r.stateMarkerGraphic = S = g.renderer.symbol(C, y.x, y.y, y.width, y.height, o(c, f)).add(r.markerGroup), S.currentSymbol = C)), !g.styledMode && S && n.state !== "inactive" && S.attr(r.pointAttribs(n, e))), S && (S[e && n.isInside ? "show" : "hide"](), S.element.point = n, S.addClass(n.getClassName(), !0));
341
+ let w = d(a.halo) ? a.halo : {}, T = n.graphic || S, E = T?.visibility || "inherit";
342
+ w.size && T && E !== "hidden" && !n.isCluster ? (v || (r.halo = v = g.renderer.path().add(T.parentGroup)), v.show()[t ? "animate" : "attr"]({ d: n.haloPath(w.size) }), v.attr({
343
+ class: "highcharts-halo highcharts-color-" + (n.colorIndex ?? r.colorIndex) + (n.className ? " " + n.className : ""),
344
+ visibility: E,
344
345
  zIndex: -1
345
- }), y.point = n, _.styledMode || y.attr(g({
346
+ }), v.point = n, g.styledMode || v.attr(h({
346
347
  fill: n.color || r.color,
347
- "fill-opacity": T.opacity
348
- }, M.filterUserAttributes(T.attributes || {})))) : y?.point?.haloPath && !y.point.destroyed && y.animate({ d: y.point.haloPath(0) }, null, y.hide), s(n, "afterSetState", { state: e });
348
+ "fill-opacity": w.opacity
349
+ }, A.filterUserAttributes(w.attributes || {})))) : v?.point?.haloPath && !v.point.destroyed && v.animate({ d: v.point.haloPath(0) }, null, v.hide), s(n, "afterSetState", { state: e });
349
350
  }
350
351
  haloPath(e) {
351
352
  let t = this.pos();
352
- return t ? this.series.chart.renderer.symbols.circle(u(t[0], 1) - e, t[1] - e, e * 2, e * 2) : [];
353
+ return t ? this.series.chart.renderer.symbols.circle(l(t[0], 1) - e, t[1] - e, e * 2, e * 2) : [];
353
354
  }
354
- }, { defaultOptions: K } = m, q;
355
+ }, { defaultOptions: W } = p, G;
355
356
  (function(t) {
356
- t.seriesTypes = _.seriesTypes;
357
+ t.seriesTypes = g.seriesTypes;
357
358
  function n(e, n) {
358
- let r = K.plotOptions || {}, i = n.defaultOptions, a = n.prototype;
359
- return a.type = e, a.pointClass ||= G, !t.seriesTypes[e] && (i && (r[e] = i), t.seriesTypes[e] = n, !0);
359
+ let r = W.plotOptions || {}, i = n.defaultOptions, a = n.prototype;
360
+ return a.type = e, a.pointClass ||= U, !t.seriesTypes[e] && (i && (r[e] = i), t.seriesTypes[e] = n, !0);
360
361
  }
361
362
  t.registerSeriesType = n;
362
363
  function r(r, i, a, s, c) {
363
- let l = K.plotOptions || {};
364
+ let l = W.plotOptions || {};
364
365
  i ||= "", l[r] = o(l[i], a), delete t.seriesTypes[r];
365
- let u = t.seriesTypes[i] || _.Series;
366
+ let u = t.seriesTypes[i] || g.Series;
366
367
  if (n(r, e(u, s)), t.seriesTypes[r].prototype.type = r, c) {
367
- class e extends G {}
368
- g(e.prototype, c), t.seriesTypes[r].prototype.pointClass = e;
368
+ class e extends U {}
369
+ h(e.prototype, c), t.seriesTypes[r].prototype.pointClass = e;
369
370
  }
370
371
  return t.seriesTypes[r];
371
372
  }
372
373
  t.seriesType = r;
373
- })(q ||= {});
374
- var J = q;
374
+ })(G ||= {});
375
+ var K = G;
375
376
  //#endregion
376
- export { M as i, G as n, H as r, J as t };
377
+ export { A as i, U as n, B as r, K as t };