@carbon/charts 1.14.5 → 1.14.6

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.
@@ -1,4 +1,4 @@
1
- import { L as Ys, h as Ba, o as qs, a4 as Ha, p as Ks, B as $a, a5 as Ua, a6 as za, a7 as Fa, m as v, n as we, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as Me, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as Re, aa as bt, ab as Ve, Q as Be, X as Ge, ac as Xa, J as ot, i as Za, Z as te, S as Ae, ad as ye, ae as Ya, a as qa, Y as pe, U as ft, C as Mt, af as Qt, v as Ka, ag as ps, _ as Fe } from "./color-scale-utils-XZIkoI99.mjs";
1
+ import { L as Ys, h as Ba, o as qs, a4 as Ha, p as Ks, B as $a, a5 as Ua, a6 as za, a7 as Fa, m as v, n as we, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as Me, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as ke, aa as bt, ab as Ve, Q as Be, X as Ge, ac as Xa, J as ot, i as Za, Z as te, S as Ae, ad as ye, ae as Ya, a as qa, Y as pe, U as ft, C as Mt, af as Qt, v as Ka, ag as ps, _ as Fe } from "./color-scale-utils-XZIkoI99.mjs";
2
2
  import { select as x, pointer as Ft, brushX as Qs, scaleTime as Ja, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ea, axisTop as Qa, axisRight as ei, scaleLinear as Ze, arc as xt, easeLinear as ti, path as Gn, interpolateNumber as ta, quantize as ni, scaleBand as Bn, hierarchy as Hn, pack as si, pie as ai, interpolate as ii, interpolateRound as ri, min as fn, max as gs, lineRadial as oi, curveLinearClosed as li, cluster as ci, tree as di, linkHorizontal as hi, treemap as ui, hsl as na, color as sa, geoPath as pi, geoNaturalEarth1 as gi, geoMercator as mi, geoEquirectangular as fi, geoConicEquidistant as vi, geoConicEqualArea as yi, geoAlbers as Ei, geoEqualEarth as bi } from "d3";
3
3
  import { t as en, D as S, c as vn, G as ms, a as Si, p as oe, r as fs, b as Oi } from "./angle-utils-0zbAbkd9.mjs";
4
4
  import { y as W, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as F, s as We, V as lt, S as ue, e as G, Z as nt, i as xe, f as vs, J as tn, d as Ti, F as wt, n as nn, H as sn, C as an, p as Ct, b as ys, D as rn, Q as Li, x as je, $ as _t, N as on } from "./enums-lWSDG4ik.mjs";
@@ -6,13 +6,13 @@ import { sankey as Ai, sankeyLinkHorizontal as Mi, sankeyJustify as wi, sankeyLe
6
6
  import { R as X } from "./a11y-SOU26cr5.mjs";
7
7
  import { b as aa } from "./_baseEach-OI3ptUEq.mjs";
8
8
  import Ii from "d3-cloud";
9
- function Ri(o, e, t, n) {
9
+ function ki(o, e, t, n) {
10
10
  var s = -1, a = o == null ? 0 : o.length;
11
11
  for (n && a && (t = o[++s]); ++s < a; )
12
12
  t = e(t, o[s], s, o);
13
13
  return t;
14
14
  }
15
- function ki(o) {
15
+ function Ri(o) {
16
16
  return function(e) {
17
17
  return o == null ? void 0 : o[e];
18
18
  };
@@ -210,7 +210,7 @@ var Di = {
210
210
  œ: "oe",
211
211
  ʼn: "'n",
212
212
  ſ: "s"
213
- }, Ni = ki(Di);
213
+ }, Ni = Ri(Di);
214
214
  const Pi = Ni;
215
215
  var Vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gi = "\\u0300-\\u036f", Bi = "\\ufe20-\\ufe2f", Hi = "\\u20d0-\\u20ff", $i = Gi + Bi + Hi, Ui = "[" + $i + "]", zi = RegExp(Ui, "g");
216
216
  function Fi(o) {
@@ -243,7 +243,7 @@ function yr(o, e, t) {
243
243
  var Er = "['’]", br = RegExp(Er, "g");
244
244
  function Sr(o) {
245
245
  return function(e) {
246
- return Ri(yr(Fi(e).replace(br, "")), o, "");
246
+ return ki(yr(Fi(e).replace(br, "")), o, "");
247
247
  };
248
248
  }
249
249
  function Or(o, e, t) {
@@ -360,7 +360,7 @@ const {
360
360
  } = Object;
361
361
  let {
362
362
  freeze: Ee,
363
- seal: ke,
363
+ seal: Re,
364
364
  create: Sa
365
365
  } = Object, {
366
366
  apply: yn,
@@ -369,7 +369,7 @@ let {
369
369
  Ee || (Ee = function(e) {
370
370
  return e;
371
371
  });
372
- ke || (ke = function(e) {
372
+ Re || (Re = function(e) {
373
373
  return e;
374
374
  });
375
375
  yn || (yn = function(e, t, n) {
@@ -378,7 +378,7 @@ yn || (yn = function(e, t, n) {
378
378
  En || (En = function(e, t) {
379
379
  return new e(...t);
380
380
  });
381
- const It = _e(Array.prototype.forEach), Ts = _e(Array.prototype.pop), vt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), ln = _e(String.prototype.toString), Rr = _e(String.prototype.match), yt = _e(String.prototype.replace), kr = _e(String.prototype.indexOf), Dr = _e(String.prototype.trim), Oe = _e(RegExp.prototype.test), Et = Nr(TypeError);
381
+ const It = _e(Array.prototype.forEach), Ts = _e(Array.prototype.pop), vt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), ln = _e(String.prototype.toString), kr = _e(String.prototype.match), yt = _e(String.prototype.replace), Rr = _e(String.prototype.indexOf), Dr = _e(String.prototype.trim), Oe = _e(RegExp.prototype.test), Et = Nr(TypeError);
382
382
  function _e(o) {
383
383
  return function(e) {
384
384
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
@@ -418,7 +418,7 @@ function Xe(o) {
418
418
  $n(o, t) !== void 0 && (Array.isArray(n) ? e[t] = Pr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Xe(n) : e[t] = n);
419
419
  return e;
420
420
  }
421
- function Rt(o, e) {
421
+ function kt(o, e) {
422
422
  for (; o !== null; ) {
423
423
  const n = $n(o, e);
424
424
  if (n) {
@@ -434,13 +434,13 @@ function Rt(o, e) {
434
434
  }
435
435
  return t;
436
436
  }
437
- const Ls = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Vr = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), Ms = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ws = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), kt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = ke(/<%[\w\W]*|[\w\W]*%>/gm), $r = ke(/\${[\w\W]*}/gm), Ur = ke(/^data-[\-\w.\u00B7-\uFFFF]/), zr = ke(/^aria-[\-\w]+$/), Oa = ke(
437
+ const Ls = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Vr = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), Ms = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ws = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Rt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = Re(/<%[\w\W]*|[\w\W]*%>/gm), $r = Re(/\${[\w\W]*}/gm), Ur = Re(/^data-[\-\w.\u00B7-\uFFFF]/), zr = Re(/^aria-[\-\w]+$/), Oa = Re(
438
438
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
439
439
  // eslint-disable-line no-useless-escape
440
- ), Fr = ke(/^(?:\w+script|data):/i), Wr = ke(
440
+ ), Fr = Re(/^(?:\w+script|data):/i), Wr = Re(
441
441
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
442
442
  // eslint-disable-line no-control-regex
443
- ), xa = ke(/^html$/i);
443
+ ), xa = Re(/^html$/i);
444
444
  var Cs = /* @__PURE__ */ Object.freeze({
445
445
  __proto__: null,
446
446
  MUSTACHE_EXPR: Br,
@@ -493,7 +493,7 @@ function Ta() {
493
493
  HTMLFormElement: p,
494
494
  DOMParser: h,
495
495
  trustedTypes: u
496
- } = o, g = l.prototype, m = Rt(g, "cloneNode"), E = Rt(g, "nextSibling"), O = Rt(g, "childNodes"), T = Rt(g, "parentNode");
496
+ } = o, g = l.prototype, m = kt(g, "cloneNode"), E = kt(g, "nextSibling"), O = kt(g, "childNodes"), T = kt(g, "parentNode");
497
497
  if (typeof i == "function") {
498
498
  const $ = t.createElement("template");
499
499
  $.content && $.content.ownerDocument && (t = $.content.ownerDocument);
@@ -503,11 +503,11 @@ function Ta() {
503
503
  implementation: M,
504
504
  createNodeIterator: L,
505
505
  createDocumentFragment: I,
506
- getElementsByTagName: D
506
+ getElementsByTagName: N
507
507
  } = t, {
508
508
  importNode: j
509
509
  } = n;
510
- let k = {};
510
+ let D = {};
511
511
  e.isSupported = typeof ba == "function" && typeof T == "function" && M && M.createHTMLDocument !== void 0;
512
512
  const {
513
513
  MUSTACHE_EXPR: C,
@@ -523,7 +523,7 @@ function Ta() {
523
523
  } = Cs, Z = null;
524
524
  const ut = Y({}, [...Ls, ...cn, ...dn, ...hn, ...As]);
525
525
  let le = null;
526
- const Ye = Y({}, [...Ms, ...un, ...ws, ...kt]);
526
+ const Ye = Y({}, [...Ms, ...un, ...ws, ...Rt]);
527
527
  let se = Object.seal(Sa(null, {
528
528
  tagNameCheck: {
529
529
  writable: !0,
@@ -543,7 +543,7 @@ function Ta() {
543
543
  enumerable: !0,
544
544
  value: !1
545
545
  }
546
- })), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1, N = !1, P = !1, Le = !1, Tt = !1, jn = !0, Xn = !1;
546
+ })), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1, R = !1, P = !1, Le = !1, Tt = !1, jn = !0, Xn = !1;
547
547
  const _a = "user-content-";
548
548
  let Xt = !0, pt = !1, Ke = {}, Je = null;
549
549
  const Zn = Y({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -554,7 +554,7 @@ function Ta() {
554
554
  let Qe = Ne, Yt = !1, qt = null;
555
555
  const Ia = Y({}, [Lt, At, Ne], ln);
556
556
  let gt = null;
557
- const Ra = ["application/xhtml+xml", "text/html"], ka = "text/html";
557
+ const ka = ["application/xhtml+xml", "text/html"], Ra = "text/html";
558
558
  let he = null, et = null;
559
559
  const Da = t.createElement("form"), Jn = function(b) {
560
560
  return b instanceof RegExp || b instanceof Function;
@@ -562,7 +562,7 @@ function Ta() {
562
562
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
563
563
  if (!(et && et === b)) {
564
564
  if ((!b || typeof b != "object") && (b = {}), b = Xe(b), gt = // eslint-disable-next-line unicorn/prefer-includes
565
- Ra.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? ka : b.PARSER_MEDIA_TYPE, he = gt === "application/xhtml+xml" ? ln : Nt, Z = "ALLOWED_TAGS" in b ? Y({}, b.ALLOWED_TAGS, he) : ut, le = "ALLOWED_ATTR" in b ? Y({}, b.ALLOWED_ATTR, he) : Ye, qt = "ALLOWED_NAMESPACES" in b ? Y({}, b.ALLOWED_NAMESPACES, ln) : Ia, Zt = "ADD_URI_SAFE_ATTR" in b ? Y(
565
+ ka.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Ra : b.PARSER_MEDIA_TYPE, he = gt === "application/xhtml+xml" ? ln : Nt, Z = "ALLOWED_TAGS" in b ? Y({}, b.ALLOWED_TAGS, he) : ut, le = "ALLOWED_ATTR" in b ? Y({}, b.ALLOWED_ATTR, he) : Ye, qt = "ALLOWED_NAMESPACES" in b ? Y({}, b.ALLOWED_NAMESPACES, ln) : Ia, Zt = "ADD_URI_SAFE_ATTR" in b ? Y(
566
566
  Xe(Kn),
567
567
  // eslint-disable-line indent
568
568
  b.ADD_URI_SAFE_ATTR,
@@ -576,7 +576,7 @@ function Ta() {
576
576
  // eslint-disable-line indent
577
577
  he
578
578
  // eslint-disable-line indent
579
- ) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, N = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, pt = b.IN_PLACE || !1, H = b.ALLOWED_URI_REGEXP || Oa, Qe = b.NAMESPACE || Ne, se = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), Le && (P = !0), Ke && (Z = Y({}, As), le = [], Ke.html === !0 && (Y(Z, Ls), Y(le, Ms)), Ke.svg === !0 && (Y(Z, cn), Y(le, un), Y(le, kt)), Ke.svgFilters === !0 && (Y(Z, dn), Y(le, un), Y(le, kt)), Ke.mathMl === !0 && (Y(Z, hn), Y(le, ws), Y(le, kt))), b.ADD_TAGS && (Z === ut && (Z = Xe(Z)), Y(Z, b.ADD_TAGS, he)), b.ADD_ATTR && (le === Ye && (le = Xe(le)), Y(le, b.ADD_ATTR, he)), b.ADD_URI_SAFE_ATTR && Y(Zt, b.ADD_URI_SAFE_ATTR, he), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Y(Je, b.FORBID_CONTENTS, he)), Xt && (Z["#text"] = !0), Te && Y(Z, ["html", "head", "body"]), Z.table && (Y(Z, ["tbody"]), delete Ie.tbody), b.TRUSTED_TYPES_POLICY) {
579
+ ) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, R = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, pt = b.IN_PLACE || !1, H = b.ALLOWED_URI_REGEXP || Oa, Qe = b.NAMESPACE || Ne, se = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), Le && (P = !0), Ke && (Z = Y({}, As), le = [], Ke.html === !0 && (Y(Z, Ls), Y(le, Ms)), Ke.svg === !0 && (Y(Z, cn), Y(le, un), Y(le, Rt)), Ke.svgFilters === !0 && (Y(Z, dn), Y(le, un), Y(le, Rt)), Ke.mathMl === !0 && (Y(Z, hn), Y(le, ws), Y(le, Rt))), b.ADD_TAGS && (Z === ut && (Z = Xe(Z)), Y(Z, b.ADD_TAGS, he)), b.ADD_ATTR && (le === Ye && (le = Xe(le)), Y(le, b.ADD_ATTR, he)), b.ADD_URI_SAFE_ATTR && Y(Zt, b.ADD_URI_SAFE_ATTR, he), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Y(Je, b.FORBID_CONTENTS, he)), Xt && (Z["#text"] = !0), Te && Y(Z, ["html", "head", "body"]), Z.table && (Y(Z, ["tbody"]), delete Ie.tbody), b.TRUSTED_TYPES_POLICY) {
580
580
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
581
581
  throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
582
582
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -587,13 +587,13 @@ function Ta() {
587
587
  Ee && Ee(b), et = b;
588
588
  }
589
589
  }, Qn = Y({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Y({}, ["foreignobject", "desc", "title", "annotation-xml"]), Na = Y({}, ["title", "style", "font", "a", "script"]), ts = Y({}, [...cn, ...dn, ...Vr]), ns = Y({}, [...hn, ...Gr]), Pa = function(b) {
590
- let R = T(b);
591
- (!R || !R.tagName) && (R = {
590
+ let k = T(b);
591
+ (!k || !k.tagName) && (k = {
592
592
  namespaceURI: Qe,
593
593
  tagName: "template"
594
594
  });
595
- const B = Nt(b.tagName), ee = Nt(R.tagName);
596
- return qt[b.namespaceURI] ? b.namespaceURI === At ? R.namespaceURI === Ne ? B === "svg" : R.namespaceURI === Lt ? B === "svg" && (ee === "annotation-xml" || Qn[ee]) : !!ts[B] : b.namespaceURI === Lt ? R.namespaceURI === Ne ? B === "math" : R.namespaceURI === At ? B === "math" && es[ee] : !!ns[B] : b.namespaceURI === Ne ? R.namespaceURI === At && !es[ee] || R.namespaceURI === Lt && !Qn[ee] ? !1 : !ns[B] && (Na[B] || !ts[B]) : !!(gt === "application/xhtml+xml" && qt[b.namespaceURI]) : !1;
595
+ const B = Nt(b.tagName), ee = Nt(k.tagName);
596
+ return qt[b.namespaceURI] ? b.namespaceURI === At ? k.namespaceURI === Ne ? B === "svg" : k.namespaceURI === Lt ? B === "svg" && (ee === "annotation-xml" || Qn[ee]) : !!ts[B] : b.namespaceURI === Lt ? k.namespaceURI === Ne ? B === "math" : k.namespaceURI === At ? B === "math" && es[ee] : !!ns[B] : b.namespaceURI === Ne ? k.namespaceURI === At && !es[ee] || k.namespaceURI === Lt && !Qn[ee] ? !1 : !ns[B] && (Na[B] || !ts[B]) : !!(gt === "application/xhtml+xml" && qt[b.namespaceURI]) : !1;
597
597
  }, Ue = function(b) {
598
598
  vt(e.removed, {
599
599
  element: b
@@ -603,53 +603,53 @@ function Ta() {
603
603
  } catch {
604
604
  b.remove();
605
605
  }
606
- }, Jt = function(b, R) {
606
+ }, Jt = function(b, k) {
607
607
  try {
608
608
  vt(e.removed, {
609
- attribute: R.getAttributeNode(b),
610
- from: R
609
+ attribute: k.getAttributeNode(b),
610
+ from: k
611
611
  });
612
612
  } catch {
613
613
  vt(e.removed, {
614
614
  attribute: null,
615
- from: R
615
+ from: k
616
616
  });
617
617
  }
618
- if (R.removeAttribute(b), b === "is" && !le[b])
618
+ if (k.removeAttribute(b), b === "is" && !le[b])
619
619
  if (P || Le)
620
620
  try {
621
- Ue(R);
621
+ Ue(k);
622
622
  } catch {
623
623
  }
624
624
  else
625
625
  try {
626
- R.setAttribute(b, "");
626
+ k.setAttribute(b, "");
627
627
  } catch {
628
628
  }
629
629
  }, ss = function(b) {
630
- let R = null, B = null;
631
- if (N)
630
+ let k = null, B = null;
631
+ if (R)
632
632
  b = "<remove></remove>" + b;
633
633
  else {
634
- const ve = Rr(b, /^[\r\n\t ]+/);
634
+ const ve = kr(b, /^[\r\n\t ]+/);
635
635
  B = ve && ve[0];
636
636
  }
637
637
  gt === "application/xhtml+xml" && Qe === Ne && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
638
638
  const ee = y ? y.createHTML(b) : b;
639
639
  if (Qe === Ne)
640
640
  try {
641
- R = new h().parseFromString(ee, gt);
641
+ k = new h().parseFromString(ee, gt);
642
642
  } catch {
643
643
  }
644
- if (!R || !R.documentElement) {
645
- R = M.createDocument(Qe, "template", null);
644
+ if (!k || !k.documentElement) {
645
+ k = M.createDocument(Qe, "template", null);
646
646
  try {
647
- R.documentElement.innerHTML = Yt ? A : ee;
647
+ k.documentElement.innerHTML = Yt ? A : ee;
648
648
  } catch {
649
649
  }
650
650
  }
651
- const fe = R.body || R.documentElement;
652
- return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? D.call(R, Te ? "html" : "body")[0] : Te ? R.documentElement : fe;
651
+ const fe = k.body || k.documentElement;
652
+ return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? N.call(k, Te ? "html" : "body")[0] : Te ? k.documentElement : fe;
653
653
  }, as = function(b) {
654
654
  return L.call(
655
655
  b.ownerDocument || b,
@@ -662,12 +662,12 @@ function Ta() {
662
662
  return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
663
663
  }, is = function(b) {
664
664
  return typeof r == "function" && b instanceof r;
665
- }, Pe = function(b, R, B) {
666
- k[b] && It(k[b], (ee) => {
667
- ee.call(e, R, B, et);
665
+ }, Pe = function(b, k, B) {
666
+ D[b] && It(D[b], (ee) => {
667
+ ee.call(e, k, B, et);
668
668
  });
669
669
  }, rs = function(b) {
670
- let R = null;
670
+ let k = null;
671
671
  if (Pe("beforeSanitizeElements", b, null), Va(b))
672
672
  return Ue(b), !0;
673
673
  const B = he(b.nodeName);
@@ -689,29 +689,29 @@ function Ta() {
689
689
  }
690
690
  return Ue(b), !0;
691
691
  }
692
- return b instanceof l && !Pa(b) || (B === "noscript" || B === "noembed" || B === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (ce && b.nodeType === 3 && (R = b.textContent, It([C, V, z], (ee) => {
693
- R = yt(R, ee, " ");
694
- }), b.textContent !== R && (vt(e.removed, {
692
+ return b instanceof l && !Pa(b) || (B === "noscript" || B === "noembed" || B === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (ce && b.nodeType === 3 && (k = b.textContent, It([C, V, z], (ee) => {
693
+ k = yt(k, ee, " ");
694
+ }), b.textContent !== k && (vt(e.removed, {
695
695
  element: b.cloneNode()
696
- }), b.textContent = R)), Pe("afterSanitizeElements", b, null), !1);
697
- }, os = function(b, R, B) {
698
- if (jn && (R === "id" || R === "name") && (B in t || B in Da))
696
+ }), b.textContent = k)), Pe("afterSanitizeElements", b, null), !1);
697
+ }, os = function(b, k, B) {
698
+ if (jn && (k === "id" || k === "name") && (B in t || B in Da))
699
699
  return !1;
700
- if (!(J && !qe[R] && Oe(w, R))) {
701
- if (!(U && Oe(Q, R))) {
702
- if (!le[R] || qe[R]) {
700
+ if (!(J && !qe[k] && Oe(w, k))) {
701
+ if (!(U && Oe(Q, k))) {
702
+ if (!le[k] || qe[k]) {
703
703
  if (
704
704
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
705
705
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
706
706
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
707
- !(ls(b) && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, b) || se.tagNameCheck instanceof Function && se.tagNameCheck(b)) && (se.attributeNameCheck instanceof RegExp && Oe(se.attributeNameCheck, R) || se.attributeNameCheck instanceof Function && se.attributeNameCheck(R)) || // Alternative, second condition checks if it's an `is`-attribute, AND
707
+ !(ls(b) && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, b) || se.tagNameCheck instanceof Function && se.tagNameCheck(b)) && (se.attributeNameCheck instanceof RegExp && Oe(se.attributeNameCheck, k) || se.attributeNameCheck instanceof Function && se.attributeNameCheck(k)) || // Alternative, second condition checks if it's an `is`-attribute, AND
708
708
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
709
- R === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, B) || se.tagNameCheck instanceof Function && se.tagNameCheck(B)))
709
+ k === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, B) || se.tagNameCheck instanceof Function && se.tagNameCheck(B)))
710
710
  )
711
711
  return !1;
712
- } else if (!Zt[R]) {
712
+ } else if (!Zt[k]) {
713
713
  if (!Oe(H, yt(B, K, ""))) {
714
- if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && kr(B, "data:") === 0 && Yn[b])) {
714
+ if (!((k === "src" || k === "xlink:href" || k === "href") && b !== "script" && Rr(B, "data:") === 0 && Yn[b])) {
715
715
  if (!(ae && !Oe(me, yt(B, K, "")))) {
716
716
  if (B)
717
717
  return !1;
@@ -727,9 +727,9 @@ function Ta() {
727
727
  }, cs = function(b) {
728
728
  Pe("beforeSanitizeAttributes", b, null);
729
729
  const {
730
- attributes: R
730
+ attributes: k
731
731
  } = b;
732
- if (!R)
732
+ if (!k)
733
733
  return;
734
734
  const B = {
735
735
  attrName: "",
@@ -737,9 +737,9 @@ function Ta() {
737
737
  keepAttr: !0,
738
738
  allowedAttributes: le
739
739
  };
740
- let ee = R.length;
740
+ let ee = k.length;
741
741
  for (; ee--; ) {
742
- const fe = R[ee], {
742
+ const fe = k[ee], {
743
743
  name: ve,
744
744
  namespaceURI: be,
745
745
  value: ze
@@ -775,14 +775,14 @@ function Ta() {
775
775
  }
776
776
  Pe("afterSanitizeAttributes", b, null);
777
777
  }, Ga = function $(b) {
778
- let R = null;
778
+ let k = null;
779
779
  const B = as(b);
780
- for (Pe("beforeSanitizeShadowDOM", b, null); R = B.nextNode(); )
781
- Pe("uponSanitizeShadowNode", R, null), !rs(R) && (R.content instanceof a && $(R.content), cs(R));
780
+ for (Pe("beforeSanitizeShadowDOM", b, null); k = B.nextNode(); )
781
+ Pe("uponSanitizeShadowNode", k, null), !rs(k) && (k.content instanceof a && $(k.content), cs(k));
782
782
  Pe("afterSanitizeShadowDOM", b, null);
783
783
  };
784
784
  return e.sanitize = function($) {
785
- let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = null, B = null, ee = null, fe = null;
785
+ let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, B = null, ee = null, fe = null;
786
786
  if (Yt = !$, Yt && ($ = "<!-->"), typeof $ != "string" && !is($))
787
787
  if (typeof $.toString == "function") {
788
788
  if ($ = $.toString(), typeof $ != "string")
@@ -798,30 +798,30 @@ function Ta() {
798
798
  throw Et("root node is forbidden and cannot be sanitized in-place");
799
799
  }
800
800
  } else if ($ instanceof r)
801
- R = ss("<!---->"), B = R.ownerDocument.importNode($, !0), B.nodeType === 1 && B.nodeName === "BODY" || B.nodeName === "HTML" ? R = B : R.appendChild(B);
801
+ k = ss("<!---->"), B = k.ownerDocument.importNode($, !0), B.nodeType === 1 && B.nodeName === "BODY" || B.nodeName === "HTML" ? k = B : k.appendChild(B);
802
802
  else {
803
803
  if (!P && !ce && !Te && // eslint-disable-next-line unicorn/prefer-includes
804
804
  $.indexOf("<") === -1)
805
805
  return y && Tt ? y.createHTML($) : $;
806
- if (R = ss($), !R)
806
+ if (k = ss($), !k)
807
807
  return P ? null : Tt ? A : "";
808
808
  }
809
- R && N && Ue(R.firstChild);
810
- const ve = as(pt ? $ : R);
809
+ k && R && Ue(k.firstChild);
810
+ const ve = as(pt ? $ : k);
811
811
  for (; ee = ve.nextNode(); )
812
812
  rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
813
813
  if (pt)
814
814
  return $;
815
815
  if (P) {
816
816
  if (Le)
817
- for (fe = I.call(R.ownerDocument); R.firstChild; )
818
- fe.appendChild(R.firstChild);
817
+ for (fe = I.call(k.ownerDocument); k.firstChild; )
818
+ fe.appendChild(k.firstChild);
819
819
  else
820
- fe = R;
820
+ fe = k;
821
821
  return (le.shadowroot || le.shadowrootmode) && (fe = j.call(n, fe, !0)), fe;
822
822
  }
823
- let be = Te ? R.outerHTML : R.innerHTML;
824
- return Te && Z["!doctype"] && R.ownerDocument && R.ownerDocument.doctype && R.ownerDocument.doctype.name && Oe(xa, R.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + R.ownerDocument.doctype.name + `>
823
+ let be = Te ? k.outerHTML : k.innerHTML;
824
+ return Te && Z["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && Oe(xa, k.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
825
825
  ` + be), ce && It([C, V, z], (ze) => {
826
826
  be = yt(be, ze, " ");
827
827
  }), y && Tt ? y.createHTML(be) : be;
@@ -830,19 +830,19 @@ function Ta() {
830
830
  Kt($), _ = !0;
831
831
  }, e.clearConfig = function() {
832
832
  et = null, _ = !1;
833
- }, e.isValidAttribute = function($, b, R) {
833
+ }, e.isValidAttribute = function($, b, k) {
834
834
  et || Kt({});
835
835
  const B = he($), ee = he(b);
836
- return os(B, ee, R);
836
+ return os(B, ee, k);
837
837
  }, e.addHook = function($, b) {
838
- typeof b == "function" && (k[$] = k[$] || [], vt(k[$], b));
838
+ typeof b == "function" && (D[$] = D[$] || [], vt(D[$], b));
839
839
  }, e.removeHook = function($) {
840
- if (k[$])
841
- return Ts(k[$]);
840
+ if (D[$])
841
+ return Ts(D[$]);
842
842
  }, e.removeHooks = function($) {
843
- k[$] && (k[$] = []);
843
+ D[$] && (D[$] = []);
844
844
  }, e.removeAllHooks = function() {
845
- k = {};
845
+ D = {};
846
846
  }, e;
847
847
  }
848
848
  var Un = Ta();
@@ -1323,14 +1323,14 @@ var Yr = {
1323
1323
  iframe, object, embed, *[tabindex], *[contenteditable=true]
1324
1324
  `
1325
1325
  }, pn = Yr;
1326
- function Rs(o, e) {
1326
+ function ks(o, e) {
1327
1327
  for (var t = 0; t < e.length; t++) {
1328
1328
  var n = e[t];
1329
1329
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1330
1330
  }
1331
1331
  }
1332
1332
  function qr(o, e, t) {
1333
- return e && Rs(o.prototype, e), t && Rs(o, t), Object.defineProperty(o, "prototype", {
1333
+ return e && ks(o.prototype, e), t && ks(o, t), Object.defineProperty(o, "prototype", {
1334
1334
  writable: !1
1335
1335
  }), o;
1336
1336
  }
@@ -1399,14 +1399,14 @@ function ao(o, e) {
1399
1399
  if (!(o instanceof e))
1400
1400
  throw new TypeError("Cannot call a class as a function");
1401
1401
  }
1402
- function ks(o, e) {
1402
+ function Rs(o, e) {
1403
1403
  for (var t = 0; t < e.length; t++) {
1404
1404
  var n = e[t];
1405
1405
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1406
1406
  }
1407
1407
  }
1408
1408
  function io(o, e, t) {
1409
- return e && ks(o.prototype, e), t && ks(o, t), Object.defineProperty(o, "prototype", {
1409
+ return e && Rs(o.prototype, e), t && Rs(o, t), Object.defineProperty(o, "prototype", {
1410
1410
  writable: !1
1411
1411
  }), o;
1412
1412
  }
@@ -1724,7 +1724,7 @@ function Mn(o, e) {
1724
1724
  }, Mn(o, e);
1725
1725
  }
1726
1726
  function Co(o) {
1727
- var e = Ro();
1727
+ var e = ko();
1728
1728
  return function() {
1729
1729
  var n = Gt(o), s;
1730
1730
  if (e) {
@@ -1747,7 +1747,7 @@ function Io(o) {
1747
1747
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1748
1748
  return o;
1749
1749
  }
1750
- function Ro() {
1750
+ function ko() {
1751
1751
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1752
1752
  return !1;
1753
1753
  if (typeof Proxy == "function")
@@ -1764,7 +1764,7 @@ function Gt(o) {
1764
1764
  return t.__proto__ || Object.getPrototypeOf(t);
1765
1765
  }, Gt(o);
1766
1766
  }
1767
- function ko(o) {
1767
+ function Ro(o) {
1768
1768
  var e = /* @__PURE__ */ function(t) {
1769
1769
  wo(s, t);
1770
1770
  var n = Co(s);
@@ -1993,7 +1993,7 @@ function $o(o) {
1993
1993
  }(o);
1994
1994
  return e;
1995
1995
  }
1996
- var Uo = [ko, $o];
1996
+ var Uo = [Ro, $o];
1997
1997
  const zo = Uo;
1998
1998
  function Fo(o) {
1999
1999
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
@@ -2060,12 +2060,12 @@ function Yo(o, e) {
2060
2060
  }
2061
2061
  }), Object.defineProperty(o, "prototype", {
2062
2062
  writable: !1
2063
- }), e && Rn(o, e);
2063
+ }), e && kn(o, e);
2064
2064
  }
2065
- function Rn(o, e) {
2066
- return Rn = Object.setPrototypeOf || function(n, s) {
2065
+ function kn(o, e) {
2066
+ return kn = Object.setPrototypeOf || function(n, s) {
2067
2067
  return n.__proto__ = s, n;
2068
- }, Rn(o, e);
2068
+ }, kn(o, e);
2069
2069
  }
2070
2070
  function qo(o) {
2071
2071
  var e = Qo();
@@ -2170,13 +2170,13 @@ function el(o) {
2170
2170
  }(o);
2171
2171
  return e;
2172
2172
  }
2173
- function kn(o) {
2173
+ function Rn(o) {
2174
2174
  "@babel/helpers - typeof";
2175
- return kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2175
+ return Rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2176
2176
  return typeof e;
2177
2177
  } : function(e) {
2178
2178
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2179
- }, kn(o);
2179
+ }, Rn(o);
2180
2180
  }
2181
2181
  function tl(o, e) {
2182
2182
  if (!(o instanceof e))
@@ -2224,7 +2224,7 @@ function al(o) {
2224
2224
  };
2225
2225
  }
2226
2226
  function il(o, e) {
2227
- if (e && (kn(e) === "object" || typeof e == "function"))
2227
+ if (e && (Rn(e) === "object" || typeof e == "function"))
2228
2228
  return e;
2229
2229
  if (e !== void 0)
2230
2230
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -2400,29 +2400,29 @@ class hh extends q {
2400
2400
  getModalHTML() {
2401
2401
  const e = this.services.domUtils.getChartID(), t = this.model.getOptions(), { title: n, downloadAsCSV: s } = v(t, "locale", "translations", "tabularRep"), a = v(t, "style", "prefix"), i = this.model.getTabularDataArray();
2402
2402
  return `
2403
- <div class="cds--modal-container cds--modal-container">
2404
- <div class="cds--modal-header cds--modal-header">
2403
+ <div class="cds--modal-container">
2404
+ <div class="cds--modal-header">
2405
2405
 
2406
- <p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
2406
+ <p class="cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
2407
2407
 
2408
- <p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${De(
2408
+ <p class="cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${De(
2409
2409
  t.title
2410
2410
  )}</p>
2411
2411
 
2412
- <button class="cds--modal-close cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
2413
- <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon cds--modal-close__icon">
2412
+ <button class="cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
2413
+ <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon">
2414
2414
  <path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>
2415
2415
  </svg>
2416
2416
  </button>
2417
2417
  </div>
2418
2418
 
2419
- <div class="cds--modal-content cds--modal-content">
2420
- <table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">
2419
+ <div class="cds--modal-content">
2420
+ <table class="cds--data-table cds--data-table--no-border">
2421
2421
  <thead>
2422
2422
  <tr>
2423
2423
  ${ne(i, 0).map(
2424
2424
  (r) => `<th scope="col">
2425
- <div class="cds--table-header-label cds--table-header-label">${De(r)}</div>
2425
+ <div class="cds--table-header-label">${De(r)}</div>
2426
2426
  </th>`
2427
2427
  ).join("")}
2428
2428
  </tr>
@@ -2438,9 +2438,9 @@ class hh extends q {
2438
2438
  </table>
2439
2439
  </div>
2440
2440
 
2441
- <div class="cds--modal-footer cds--modal-footer">
2441
+ <div class="cds--modal-footer">
2442
2442
  <div class="${we}--${a}-modal-footer-spacer"></div>
2443
- <button class="cds--btn cds--btn--primary cds--btn cds--btn--primary" type="button" data-modal-primary-focus>${s}</button>
2443
+ <button class="cds--btn cds--btn--primary" type="button" data-modal-primary-focus>${s}</button>
2444
2444
  </div>
2445
2445
  </div>`;
2446
2446
  }
@@ -2576,15 +2576,15 @@ class hl extends q {
2576
2576
  y.exit().remove();
2577
2577
  const A = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
2578
2578
  "aria-labelledby",
2579
- (I, D) => this.services.domUtils.generateElementIDString(
2580
- `legend-datagroup-${E.size() + D}-title`
2579
+ (I, N) => this.services.domUtils.generateElementIDString(
2580
+ `legend-datagroup-${E.size() + N}-title`
2581
2581
  )
2582
2582
  );
2583
2583
  A.selectAll("*").remove();
2584
2584
  let M, L = 1;
2585
2585
  A.append("svg").classed("icon", !0).each(function(I) {
2586
- const D = x(this);
2587
- !M || M != I.type ? (M = I.type, L = 1) : L++, T.addAdditionalItem(D, I, L);
2586
+ const N = x(this);
2587
+ !M || M != I.type ? (M = I.type, L = 1) : L++, T.addAdditionalItem(N, I, L);
2588
2588
  }), A.append("p").merge(A.select("p")), this.truncateLegendText();
2589
2589
  }
2590
2590
  p.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), u && h.size() > 1 && this.addEventListeners();
@@ -3008,17 +3008,17 @@ const ct = class ct extends q {
3008
3008
  const m = (M) => {
3009
3009
  const L = M[1] - M[0];
3010
3010
  let I = "0," + L.toString();
3011
- const D = Math.floor(l / ct.DASH_LENGTH), j = D * ct.DASH_LENGTH;
3012
- for (let k = 0; k < D; k++)
3011
+ const N = Math.floor(l / ct.DASH_LENGTH), j = N * ct.DASH_LENGTH;
3012
+ for (let D = 0; D < N; D++)
3013
3013
  I += "," + ct.DASH_LENGTH;
3014
- I += "," + (l - j), D % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
3014
+ I += "," + (l - j), N % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
3015
3015
  }, E = (M) => {
3016
3016
  const L = M.selection;
3017
3017
  L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
3018
3018
  }, O = (M, L) => {
3019
3019
  const I = Ja().range([0, r]).domain(g);
3020
- let D = [I.invert(M), I.invert(L)];
3021
- D[0].valueOf() === D[1].valueOf() && (D = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== D[0].valueOf() || g[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D);
3020
+ let N = [I.invert(M), I.invert(L)];
3021
+ N[0].valueOf() === N[1].valueOf() && (N = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== N[0].valueOf() || g[1].valueOf() !== N[1].valueOf()) && this.services.zoom.handleDomainChange(N);
3022
3022
  };
3023
3023
  let T;
3024
3024
  const y = (M) => {
@@ -3033,10 +3033,10 @@ const ct = class ct extends q {
3033
3033
  s.on("click", function(M) {
3034
3034
  if (M.shiftKey) {
3035
3035
  const L = this.services.domUtils.getHolder(), I = Ft(a.node(), L)[0];
3036
- let D = I - r * A / 2;
3037
- D < 0 && (D = 0);
3036
+ let N = I - r * A / 2;
3037
+ N < 0 && (N = 0);
3038
3038
  let j = I + r * A / 2;
3039
- j > r && (j = r), O(D, j);
3039
+ j > r && (j = r), O(N, j);
3040
3040
  }
3041
3041
  });
3042
3042
  }
@@ -3106,17 +3106,17 @@ class ph extends q {
3106
3106
  ), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Wt(E, (L) => L.value));
3107
3107
  const A = this.model.get("zoomDomain");
3108
3108
  if (a === nt.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
3109
- const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, D = i.color, j = i.labelMapsTo;
3110
- i.data.forEach((k, C) => {
3111
- S.appendOrSelect(p, `rect.highlight-${C}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[L])).attr(
3109
+ const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, N = i.color, j = i.labelMapsTo;
3110
+ i.data.forEach((D, C) => {
3111
+ S.appendOrSelect(p, `rect.highlight-${C}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(D[L])).attr(
3112
3112
  "width",
3113
- this.xScale(k[I]) - this.xScale(k[L])
3113
+ this.xScale(D[I]) - this.xScale(D[L])
3114
3114
  ).style(
3115
3115
  "fill",
3116
- D && D.scale[k[j]] ? D.scale[k[j]] : null
3116
+ N && N.scale[D[j]] ? N.scale[D[j]] : null
3117
3117
  ).style("fill-opacity", 0.1).style(
3118
3118
  "stroke",
3119
- D && D.scale[k[j]] ? D.scale[k[j]] : null
3119
+ N && N.scale[D[j]] ? N.scale[D[j]] : null
3120
3120
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
3121
3121
  });
3122
3122
  }
@@ -3272,8 +3272,8 @@ class gh extends q {
3272
3272
  ), g = p.services.cartesianScales.getScaleTypeByPosition(h);
3273
3273
  let m = null, E = null;
3274
3274
  h === G.LEFT || h === G.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
3275
- const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), D = (z) => L.getDomainValue(z), j = (z) => L.getRangeValue(z), [k, C] = He(
3276
- D,
3275
+ const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), N = (z) => L.getDomainValue(z), j = (z) => L.getRangeValue(z), [D, C] = He(
3276
+ N,
3277
3277
  j,
3278
3278
  I
3279
3279
  ), V = x(this);
@@ -3285,11 +3285,11 @@ class gh extends q {
3285
3285
  })
3286
3286
  ).attr("y1", M).attr("y2", A).attr(
3287
3287
  "x1",
3288
- ({ datum: z }) => k(z) + (O ? u.step() / 2 : 0)
3288
+ ({ datum: z }) => D(z) + (O ? u.step() / 2 : 0)
3289
3289
  ).attr(
3290
3290
  "x2",
3291
- ({ datum: z }) => k(z) + (O ? u.step() / 2 : 0)
3292
- ).style("stroke", ({ fillColor: z }) => z), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: z }) => -k(z)).attr("width", Math.abs(A - M)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3291
+ ({ datum: z }) => D(z) + (O ? u.step() / 2 : 0)
3292
+ ).style("stroke", ({ fillColor: z }) => z), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: z }) => -D(z)).attr("width", Math.abs(A - M)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3293
3293
  (z) => p.services.transitions.setupTransition({
3294
3294
  transition: z,
3295
3295
  name: "threshold-line-update",
@@ -3407,30 +3407,30 @@ class mh extends q {
3407
3407
  c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
3408
3408
  const p = this;
3409
3409
  r.each(function({ axisPosition: h }) {
3410
- const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, D] = He(
3410
+ const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (D) => y.getDomainValue(D), L = (D) => y.getRangeValue(D), [I, N] = He(
3411
3411
  M,
3412
3412
  L,
3413
3413
  A
3414
3414
  ), j = x(this);
3415
3415
  h === G.TOP || h === G.BOTTOM ? j.selectAll("rect.highlight-bar").transition().call(
3416
- (k) => p.services.transitions.setupTransition({
3417
- transition: k,
3416
+ (D) => p.services.transitions.setupTransition({
3417
+ transition: D,
3418
3418
  name: "highlight-bar-update",
3419
3419
  animate: e
3420
3420
  })
3421
- ).attr("y", Math.max(T + p.highlightStrokeWidth, 0)).attr("height", Math.max(O - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...C }) => I(C[k])).attr(
3421
+ ).attr("y", Math.max(T + p.highlightStrokeWidth, 0)).attr("height", Math.max(O - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: D, ...C }) => I(C[D])).attr(
3422
3422
  "width",
3423
- ({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(I(V[C]) - I(V[k]), 0)
3424
- ).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null) : j.selectAll("rect.highlight-bar").transition().call(
3425
- (k) => p.services.transitions.setupTransition({
3426
- transition: k,
3423
+ ({ highlightStartMapsTo: D, highlightEndMapsTo: C, ...V }) => Math.max(I(V[C]) - I(V[D]), 0)
3424
+ ).style("stroke", ({ color: D, labelMapsTo: C, ...V }) => D && D.scale[V[C]] ? D.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: D, labelMapsTo: C, ...V }) => D && D.scale[V[C]] ? D.scale[V[C]] : null) : j.selectAll("rect.highlight-bar").transition().call(
3425
+ (D) => p.services.transitions.setupTransition({
3426
+ transition: D,
3427
3427
  name: "highlight-bar-update",
3428
3428
  animate: e
3429
3429
  })
3430
- ).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo: k, ...C }) => D(C[k])).attr(
3430
+ ).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo: D, ...C }) => N(C[D])).attr(
3431
3431
  "height",
3432
- ({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(D(V[k]) - D(V[C]), 0)
3433
- ).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null);
3432
+ ({ highlightStartMapsTo: D, highlightEndMapsTo: C, ...V }) => Math.max(N(V[D]) - N(V[C]), 0)
3433
+ ).style("stroke", ({ color: D, labelMapsTo: C, ...V }) => D && D.scale[V[C]] ? D.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: D, labelMapsTo: C, ...V }) => D && D.scale[V[C]] ? D.scale[V[C]] : null);
3434
3434
  });
3435
3435
  }
3436
3436
  }
@@ -3542,12 +3542,12 @@ class vh extends q {
3542
3542
  "gradient",
3543
3543
  "enabled"
3544
3544
  );
3545
- let l = Re.minNodePadding;
3546
- a.alluvial.nodePadding > Re.minNodePadding && (l = a.alluvial.nodePadding);
3545
+ let l = ke.minNodePadding;
3546
+ a.alluvial.nodePadding > ke.minNodePadding && (l = a.alluvial.nodePadding);
3547
3547
  const c = v(a, "alluvial", "nodeAlignment");
3548
3548
  let d = wi;
3549
3549
  c === Ce.LEFT ? d = Ci : c === Ce.RIGHT && (d = _i);
3550
- const p = Ai().nodeId((y) => y.name).nodeWidth(Re.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3550
+ const p = Ai().nodeId((y) => y.name).nodeWidth(ke.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3551
3551
  [2, 30],
3552
3552
  [n - 2, s]
3553
3553
  ]);
@@ -3591,7 +3591,11 @@ class vh extends q {
3591
3591
  classNameTypes: [F.STROKE],
3592
3592
  dataGroupName: y.source.index,
3593
3593
  originalClassName: "link"
3594
- })).style("stroke", (y) => r ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name)).attr("stroke-width", (y) => Math.max(1, y.width)).style("stroke-opacity", Re.opacity.default).attr(
3594
+ })).style("stroke", (y) => r ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name, null, {
3595
+ ...y,
3596
+ source: y.source.name,
3597
+ target: y.target.name
3598
+ })).attr("stroke-width", (y) => Math.max(1, y.width)).style("stroke-opacity", ke.opacity.default).attr(
3595
3599
  "aria-label",
3596
3600
  (y) => `${y.source.name} → ${y.target.name} (${y.value}${a.alluvial.units ? " " + a.alluvial.units : ""})`
3597
3601
  );
@@ -3620,8 +3624,8 @@ class vh extends q {
3620
3624
  ), { width: L } = S.getSVGElementSize(x(`text#${M}`), {
3621
3625
  useBBox: !0
3622
3626
  }), I = (y.y1 - y.y0) / 2 - 9;
3623
- let D = y.x1 - y.x0;
3624
- return y.x1 >= L ? D = D - (L + 16) : D += 4, `translate(${D}, ${I})`;
3627
+ let N = y.x1 - y.x0;
3628
+ return y.x1 >= L ? N = N - (L + 16) : N += 4, `translate(${N}, ${I})`;
3625
3629
  }), this.addLineEventListener(), this.addNodeEventListener();
3626
3630
  }
3627
3631
  addLineEventListener() {
@@ -3632,8 +3636,8 @@ class vh extends q {
3632
3636
  name: "alluvial-links-mouse-highlight"
3633
3637
  })
3634
3638
  );
3635
- r === "mouseout" ? (x(i).lower(), l.style("stroke-opacity", Re.opacity.default)) : l.style("stroke-opacity", function() {
3636
- return i === this ? (x(this).raise(), Re.opacity.selected) : Re.opacity.unfocus;
3639
+ r === "mouseout" ? (x(i).lower(), l.style("stroke-opacity", ke.opacity.default)) : l.style("stroke-opacity", function() {
3640
+ return i === this ? (x(this).raise(), ke.opacity.selected) : ke.opacity.unfocus;
3637
3641
  });
3638
3642
  }, 33);
3639
3643
  this.parent.selectAll("path.link").on("mouseover", function(i, r) {
@@ -3685,7 +3689,7 @@ class vh extends q {
3685
3689
  addNodeEventListener() {
3686
3690
  const e = this, t = vn((n = [], s = "mouseover") => {
3687
3691
  if (s === "mouseout" || n.length === 0) {
3688
- e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", Re.opacity.default);
3692
+ e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", ke.opacity.default);
3689
3693
  return;
3690
3694
  }
3691
3695
  e.parent.selectAll("path.link").transition().call(
@@ -3694,7 +3698,7 @@ class vh extends q {
3694
3698
  name: "alluvial-link-mouse-highlight"
3695
3699
  })
3696
3700
  ).style("stroke-opacity", function(i) {
3697
- return n.some((r) => r === i.index) ? (x(this).classed("link-hovered", !0).raise(), Re.opacity.selected) : Re.opacity.unfocus;
3701
+ return n.some((r) => r === i.index) ? (x(this).classed("link-hovered", !0).raise(), ke.opacity.selected) : ke.opacity.unfocus;
3698
3702
  });
3699
3703
  }, 66);
3700
3704
  e.parent.selectAll(".node-group").on("mouseover", function(n, s) {
@@ -3732,7 +3736,7 @@ class vh extends q {
3732
3736
  });
3733
3737
  }).on("mouseout", function(n, s) {
3734
3738
  const a = x(this), i = bt(a.attr("transform"));
3735
- if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", Re.nodeWidth), s.x0 - 2 === 0) {
3739
+ if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", ke.nodeWidth), s.x0 - 2 === 0) {
3736
3740
  const l = e.services.domUtils.generateElementIDString(
3737
3741
  `alluvial-node-title-${s.index}`
3738
3742
  ), c = e.parent.select(`g#${l}`), d = bt(c.attr("transform"));
@@ -3920,8 +3924,8 @@ class Eh extends q {
3920
3924
  else {
3921
3925
  const I = v(this.model.getOptions(), "color", "scale");
3922
3926
  if (I !== null) {
3923
- const D = Object.keys(I);
3924
- L = I[D[0]];
3927
+ const N = Object.keys(I);
3928
+ L = I[N[0]];
3925
3929
  }
3926
3930
  }
3927
3931
  ms.appendOrUpdateLinearGradient({
@@ -3962,7 +3966,7 @@ class Eh extends q {
3962
3966
  dataGroupName: M.name,
3963
3967
  originalClassName: "area"
3964
3968
  })
3965
- ).style("fill", (M) => y.model.getFillColor(M.name)).transition().call(
3969
+ ).style("fill", (M) => y.model.getFillColor(M.name, null, M.data)).transition().call(
3966
3970
  (M) => this.services.transitions.setupTransition({
3967
3971
  transition: M,
3968
3972
  name: "area-update-enter",
@@ -3971,7 +3975,7 @@ class Eh extends q {
3971
3975
  ).attr("opacity", d ? 1 : Be.opacity.selected).attr("d", (M) => {
3972
3976
  const { data: L } = M;
3973
3977
  return r(L);
3974
- }), d && A.attr("fill-opacity", Be.opacity.selected).style("stroke", (M) => y.model.getStrokeColor(M.name)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
3978
+ }), d && A.attr("fill-opacity", Be.opacity.selected).style("stroke", (M) => y.model.getStrokeColor(M.name, null, M.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
3975
3979
  }
3976
3980
  destroy() {
3977
3981
  const e = this.services.events;
@@ -4038,7 +4042,7 @@ class bh extends q {
4038
4042
  dataGroupName: g.name,
4039
4043
  originalClassName: "line"
4040
4044
  })
4041
- ).style("stroke", (g) => this.model.getStrokeColor(g.name)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (g) => {
4045
+ ).style("stroke", (g) => this.model.getStrokeColor(g.name, null, g.data)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (g) => {
4042
4046
  const { data: m } = g;
4043
4047
  return m.map((E) => {
4044
4048
  const O = this.services.cartesianScales.getRangeIdentifier(E);
@@ -4448,7 +4452,7 @@ class Ca extends q {
4448
4452
  g.attr("aria-hidden", !0);
4449
4453
  return;
4450
4454
  }
4451
- const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), D = v(E, "truncation", "type"), j = v(E, "truncation", "threshold"), k = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), z = S.appendOrSelect(m, "g.tick"), w = S.appendOrSelect(z, "text").text("0"), Q = S.getSVGElementSize(w.node(), {
4455
+ const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), N = v(E, "truncation", "type"), j = v(E, "truncation", "threshold"), D = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), z = S.appendOrSelect(m, "g.tick"), w = S.appendOrSelect(z, "text").text("0"), Q = S.getSVGElementSize(w.node(), {
4452
4456
  useBBox: !0
4453
4457
  }).height;
4454
4458
  z.remove();
@@ -4601,16 +4605,16 @@ class Ca extends q {
4601
4605
  this.getNumberOfFittingTicks(i, Q, ot.ticks.horizontalSpaceRatio)
4602
4606
  ), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
4603
4607
  }
4604
- if (M ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), D !== lt.NONE && A === ue.LABELS && !I) {
4608
+ if (M ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), N !== lt.NONE && A === ue.LABELS && !I) {
4605
4609
  const U = this.services.cartesianScales.getScaleDomain(t);
4606
4610
  if (U.length > 0) {
4607
4611
  const J = a.select(`g.axis.${t} g.ticks g.tick`).html();
4608
4612
  l.selectAll("g.ticks g.tick").html(J);
4609
4613
  const ae = this;
4610
4614
  l.selectAll("g.tick text").data(U).text(function(re) {
4611
- return re.length > j ? (ae.truncation[t] = !0, Ot(re, D, k)) : re;
4615
+ return re.length > j ? (ae.truncation[t] = !0, Ot(re, N, D)) : re;
4612
4616
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(U).text(function(re) {
4613
- return re.length > j ? Ot(re, D, k) : re;
4617
+ return re.length > j ? Ot(re, N, D) : re;
4614
4618
  }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(U);
4615
4619
  }
4616
4620
  }
@@ -4950,7 +4954,7 @@ class Oh extends q {
4950
4954
  m
4951
4955
  ), y = Math.floor((E ? h : u) / a.length), A = Math.min(y / 2, 16), M = this.model.getBoxplotData(), L = t.selectAll(".box-group").data(M);
4952
4956
  L.exit().remove();
4953
- const I = L.enter().append("g").attr("class", "box-group"), D = L.merge(I);
4957
+ const I = L.enter().append("g").attr("class", "box-group"), N = L.merge(I);
4954
4958
  I.append("path").merge(L.select("path.vertical-line.start")).attr(
4955
4959
  "class",
4956
4960
  () => this.model.getColorClassName({
@@ -5049,7 +5053,7 @@ class Oh extends q {
5049
5053
  const V = g.getDomainValue(C[s]) - A / 4, z = V + A / 2, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
5050
5054
  return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
5051
5055
  });
5052
- const j = D.selectAll("circle.outlier").data(
5056
+ const j = N.selectAll("circle.outlier").data(
5053
5057
  (C) => C.outliers.map((V) => ({
5054
5058
  min: C.whiskers.min,
5055
5059
  max: C.whiskers.max,
@@ -5058,8 +5062,8 @@ class Oh extends q {
5058
5062
  }))
5059
5063
  );
5060
5064
  j.exit().remove();
5061
- const k = j.enter().append("circle");
5062
- j.merge(k).attr("r", Ae.circle.radius).attr(
5065
+ const D = j.enter().append("circle");
5066
+ j.merge(D).attr("r", Ae.circle.radius).attr(
5063
5067
  "class",
5064
5068
  () => this.model.getColorClassName({
5065
5069
  classNameTypes: [F.FILL, F.STROKE],
@@ -5344,7 +5348,10 @@ class Lh extends q {
5344
5348
  dataGroupName: O[n],
5345
5349
  originalClassName: "bar"
5346
5350
  })
5347
- ).style("fill", (O) => this.model.getFillColor(O[n])).attr("d", (O) => {
5351
+ ).style("fill", (O) => {
5352
+ const T = this.services.cartesianScales.getDomainIdentifier(O);
5353
+ return this.model.getFillColor(O[n], O[T], O);
5354
+ }).attr("d", (O) => {
5348
5355
  const y = this.services.cartesianScales.getDomainValue(O) - 4, A = y + 8, M = this.services.cartesianScales.getRangeValue(0) + 1, L = this.services.cartesianScales.getRangeValue(O);
5349
5356
  return ye(
5350
5357
  { x0: y, x1: A, y0: M, y1: L },
@@ -5698,7 +5705,7 @@ class Ah extends wa {
5698
5705
  {
5699
5706
  label: ne(a, "locale.translations.total") || ne(a, "tooltip.totalLabel") || "Total",
5700
5707
  value: A.reduce(
5701
- (D, j) => D + parseFloat(ne(O, `data.${j}`)),
5708
+ (N, j) => N + parseFloat(ne(O, `data.${j}`)),
5702
5709
  0
5703
5710
  )
5704
5711
  }
@@ -5732,12 +5739,12 @@ const wh = (o, e) => {
5732
5739
  height: 8,
5733
5740
  width: 7.5,
5734
5741
  id: "arrowLeft"
5735
- }, Rh = {
5742
+ }, kh = {
5736
5743
  d: "M0 0v8l7-4z",
5737
5744
  height: 8,
5738
5745
  width: 7.5,
5739
5746
  id: "arrowRight"
5740
- }, kh = {
5747
+ }, Rh = {
5741
5748
  d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
5742
5749
  height: 10,
5743
5750
  width: 10,
@@ -5795,8 +5802,8 @@ class Vh extends hl {
5795
5802
  }
5796
5803
  const d = !Js(a), p = qa(this.model.getDisplayData()), h = !(s <= de.color.barWidth), u = h ? de.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
5797
5804
  if (l) {
5798
- const k = S.appendOrSelect(n, "g.legend-title");
5799
- S.appendOrSelect(k, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
5805
+ const D = S.appendOrSelect(n, "g.legend-title");
5806
+ S.appendOrSelect(D, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
5800
5807
  }
5801
5808
  const E = p[0] < 0 && p[1] > 0 ? "diverge" : "mono";
5802
5809
  (r < 1 && r > 4 && E === "mono" || r < 1 && r > 2 && E === "diverge") && (r = 1);
@@ -5805,12 +5812,12 @@ class Vh extends hl {
5805
5812
  if (d)
5806
5813
  O = a;
5807
5814
  else
5808
- for (let k = 1; k < T + 1; k++)
5815
+ for (let D = 1; D < T + 1; D++)
5809
5816
  O.push(
5810
- i === nn.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
5817
+ i === nn.LINEAR ? `stop-color-${E}-${r}-${D}` : `fill-${E}-${r}-${D}`
5811
5818
  );
5812
- const y = ta(p[0], p[1]), A = ni(y, 3), M = Ze().domain(p).range([0, u]), L = Vn(M).tickSize(0).tickValues(A), { code: I, number: D } = v(t, "locale");
5813
- L.tickFormat((k) => D(k, I));
5819
+ const y = ta(p[0], p[1]), A = ni(y, 3), M = Ze().domain(p).range([0, u]), L = Vn(M).tickSize(0).tickValues(A), { code: I, number: N } = v(t, "locale");
5820
+ L.tickFormat((D) => N(D, I));
5814
5821
  let j;
5815
5822
  switch (i) {
5816
5823
  case nn.LINEAR:
@@ -6022,7 +6029,7 @@ class Bh extends q {
6022
6029
  dataGroupName: m.data.dataGroupName,
6023
6030
  originalClassName: m.children ? `node ${E}` : `node node-leaf ${E}`
6024
6031
  });
6025
- }).style("fill", (m) => this.model.getFillColor(m.data.dataGroupName)).style("stroke", (m) => this.model.getFillColor(m.data.dataGroupName)).attr("cx", (m) => m.x).attr("cy", (m) => m.y).transition("circlepack-leaf-update-enter").call(
6032
+ }).style("fill", (m) => this.model.getFillColor(m.data.dataGroupName, null, m.data)).style("stroke", (m) => this.model.getFillColor(m.data.dataGroupName, null, m.data)).attr("cx", (m) => m.x).attr("cy", (m) => m.y).transition("circlepack-leaf-update-enter").call(
6026
6033
  (m) => this.services.transitions.setupTransition({
6027
6034
  transition: m,
6028
6035
  name: "circlepack-leaf-update-enter"
@@ -6032,7 +6039,7 @@ class Bh extends q {
6032
6039
  // turn off the highlight class on children circles
6033
6040
  unhighlightChildren(e) {
6034
6041
  const t = e.map((n) => n.data);
6035
- this.parent.selectAll("circle.node").filter((n) => t.some((s) => s === n.data) && n.depth > 1).style("stroke", (n) => this.model.getFillColor(n.data.dataGroupName));
6042
+ this.parent.selectAll("circle.node").filter((n) => t.some((s) => s === n.data) && n.depth > 1).style("stroke", (n) => this.model.getFillColor(n.data.dataGroupName, null, n.data));
6036
6043
  }
6037
6044
  // highlight the children circles with a stroke
6038
6045
  highlightChildren(e) {
@@ -6200,7 +6207,7 @@ class Al extends q {
6200
6207
  dataGroupName: w.data[a],
6201
6208
  originalClassName: "slice"
6202
6209
  })
6203
- ).style("fill", (w) => t.model.getFillColor(w.data[a])).attr("d", this.arc).transition().call(
6210
+ ).style("fill", (w) => t.model.getFillColor(w.data[a], null, w.data)).attr("d", this.arc).transition().call(
6204
6211
  (w) => this.services.transitions.setupTransition({
6205
6212
  transition: w,
6206
6213
  name: "pie_slice_enter_update",
@@ -6237,11 +6244,11 @@ class Al extends q {
6237
6244
  }
6238
6245
  return `translate(${w.xPosition}, ${w.yPosition})`;
6239
6246
  }), this.renderCallouts(L);
6240
- const I = v(s, "donut") ? "donut" : "pie", D = v(s, I, "alignment"), { width: j } = S.getSVGElementSize(this.getParent(), {
6247
+ const I = v(s, "donut") ? "donut" : "pie", N = v(s, I, "alignment"), { width: j } = S.getSVGElementSize(this.getParent(), {
6241
6248
  useAttrs: !0
6242
- }), k = O ? te.xOffset : 0, C = O ? te.yOffset : 0;
6243
- let V = l + k;
6244
- D === Ce.CENTER ? V = j / 2 : D === Ce.RIGHT && (V = j - l - te.xOffset);
6249
+ }), D = O ? te.xOffset : 0, C = O ? te.yOffset : 0;
6250
+ let V = l + D;
6251
+ N === Ce.CENTER ? V = j / 2 : N === Ce.RIGHT && (V = j - l - te.xOffset);
6245
6252
  let z = l + C;
6246
6253
  L.length > 0 && (z += te.yOffsetCallout), n.attr("x", V + 7).attr("y", z), this.addEventListeners();
6247
6254
  }
@@ -6453,10 +6460,10 @@ class $h extends q {
6453
6460
  const { width: y } = S.getSVGElementSize(
6454
6461
  S.appendOrSelect(e, "text.gauge-value-number"),
6455
6462
  { useBBox: !0 }
6456
- ), A = u / 2, M = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${A}px`).attr("x", y / 2).text(M), { width: I, height: D } = S.getSVGElementSize(L, {
6463
+ ), A = u / 2, M = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${A}px`).attr("x", y / 2).text(M), { width: I, height: N } = S.getSVGElementSize(L, {
6457
6464
  useBBox: !0
6458
6465
  });
6459
- L.attr("y", `-${D / 2}px`), g.attr("transform", `translate(-${I / 2}, 0)`);
6466
+ L.attr("y", `-${N / 2}px`), g.attr("transform", `translate(-${I / 2}, 0)`);
6460
6467
  }
6461
6468
  /**
6462
6469
  * adds the delta number for the gauge
@@ -6589,7 +6596,10 @@ class Uh extends Wn {
6589
6596
  dataGroupName: h[s],
6590
6597
  originalClassName: "bar"
6591
6598
  })
6592
- ).style("fill", (h) => this.model.getFillColor(h[s])).attr("d", (h) => {
6599
+ ).style("fill", (h) => {
6600
+ const u = this.services.cartesianScales.getDomainIdentifier(h);
6601
+ return this.model.getFillColor(h[s], h[u], h);
6602
+ }).attr("d", (h) => {
6593
6603
  const u = this.groupScale(h[s]), g = this.getBarWidth(), m = u, E = u + g, O = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), T = this.services.cartesianScales.getValueThroughAxisPosition(O, 0), y = this.services.cartesianScales.getRangeValue(h), A = this.services.cartesianScales.getDomainValue(h) - g / 2, M = A + g;
6594
6604
  if (!this.isOutsideZoomedDomain(A, M))
6595
6605
  return ye(
@@ -6772,7 +6782,10 @@ class zh extends q {
6772
6782
  value: m.value,
6773
6783
  originalClassName: `heat-${m.index}`
6774
6784
  })
6775
- ).classed("heat", !0).classed("null-state", (m) => m.index === -1 || m.value === null).attr("width", this.xBandwidth).attr("height", this.yBandwidth).style("fill", (m) => m.index === -1 || m.value === null ? `url(#${u})` : this.model.getFillColor(Number(m.value))).attr("aria-label", (m) => m.value);
6785
+ ).classed("heat", !0).classed("null-state", (m) => m.index === -1 || m.value === null).attr("width", this.xBandwidth).attr("height", this.yBandwidth).style("fill", (m) => {
6786
+ const E = this.services.cartesianScales.getDomainIdentifier(m);
6787
+ return m.index === -1 || m.value === null ? `url(#${u})` : this.model.getFillColor(Number(m.value), m[E], m);
6788
+ }).attr("aria-label", (m) => m.value);
6776
6789
  this.createOuterBox("g.cell-highlight", this.xBandwidth, this.yBandwidth), this.createOuterBox(
6777
6790
  "g.multi-cell.column-highlight",
6778
6791
  this.xBandwidth,
@@ -6903,7 +6916,7 @@ class Fh extends q {
6903
6916
  dataGroupName: d[a],
6904
6917
  originalClassName: "bar"
6905
6918
  })
6906
- ).style("fill", (d) => this.model.getFillColor(d[a])).attr("d", (d) => {
6919
+ ).style("fill", (d) => this.model.getFillColor(d[a], null, d)).attr("d", (d) => {
6907
6920
  const p = ne(d, "data");
6908
6921
  if (!p)
6909
6922
  return;
@@ -7078,7 +7091,7 @@ class jh extends q {
7078
7091
  name: "meter-bar-update",
7079
7092
  animate: e
7080
7093
  })
7081
- ).attr("width", (y) => y.value > d ? p(d) : y.width).style("fill", (y) => t.model.getFillColor(y[c])).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (y) => y.value), g.exit().remove();
7094
+ ).attr("width", (y) => y.value > d ? p(d) : y.width).style("fill", (y) => t.model.getFillColor(y[c], null, y)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (y) => y.value), g.exit().remove();
7082
7095
  const E = v(s, "meter", "peak");
7083
7096
  let O = E;
7084
7097
  E !== null && (E > d ? O = d : E < i[0].value && (O = i[0].value > d ? d : i[0].value));
@@ -7193,22 +7206,22 @@ class Xh extends q {
7193
7206
  const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), M = (Math.min(n, s) - T) / 2;
7194
7207
  if (M <= 0)
7195
7208
  return;
7196
- const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), D = Ze().domain([
7209
+ const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), N = Ze().domain([
7197
7210
  I >= 0 ? 0 : I,
7198
7211
  gs(this.fullDataNormalized.map((_) => _[p]))
7199
- ]).range([m, M]).nice(g), j = D.ticks(g), k = (_) => this.model.getFillColor(_), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => D(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
7200
- const N = this.getLabelDimensions(_).width, P = Si(
7212
+ ]).range([m, M]).nice(g), j = N.ticks(g), D = (_, R, P) => this.model.getFillColor(_, R, P), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => N(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
7213
+ const R = this.getLabelDimensions(_).width, P = Si(
7201
7214
  L(_),
7202
7215
  M
7203
7216
  );
7204
- return N + P;
7217
+ return R + P;
7205
7218
  }), w = {
7206
7219
  x: gs(V) + h,
7207
7220
  y: s / 2
7208
- }, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(j, (_) => _), K = (_) => this.uniqueKeys.map((N) => ({ [d]: N, [p]: _ }));
7221
+ }, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(j, (_) => _), K = (_) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: _ }));
7209
7222
  me.join(
7210
7223
  (_) => _.append("path").attr("opacity", 0).attr("transform", `translate(${w.x}, ${w.y})`).attr("fill", "none").call(
7211
- (N) => N.transition().call(
7224
+ (R) => R.transition().call(
7212
7225
  (P) => this.services.transitions.setupTransition({
7213
7226
  transition: P,
7214
7227
  name: "radar_y_axes_enter",
@@ -7217,7 +7230,7 @@ class Xh extends q {
7217
7230
  ).attr("opacity", 1).attr("d", (P) => C(K(P)))
7218
7231
  ),
7219
7232
  (_) => _.call(
7220
- (N) => N.transition().call(
7233
+ (R) => R.transition().call(
7221
7234
  (P) => this.services.transitions.setupTransition({
7222
7235
  transition: P,
7223
7236
  name: "radar_y_axes_update",
@@ -7226,7 +7239,7 @@ class Xh extends q {
7226
7239
  ).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(K(P)))
7227
7240
  ),
7228
7241
  (_) => _.call(
7229
- (N) => N.transition().call(
7242
+ (R) => R.transition().call(
7230
7243
  (P) => this.services.transitions.setupTransition({
7231
7244
  transition: P,
7232
7245
  name: "radar_y_axes_exit",
@@ -7235,26 +7248,26 @@ class Xh extends q {
7235
7248
  ).attr("d", (P) => C(K(P))).attr("opacity", 0).remove()
7236
7249
  )
7237
7250
  ), S.appendOrSelect(t, "g.x-axes").attr("role", X.GROUP).selectAll("line").data(this.uniqueKeys, (_) => _).join(
7238
- (_) => _.append("line").attr("opacity", 0).attr("class", (N) => `x-axis-${st(N)}`).attr("stroke-dasharray", "0").attr("x1", (N) => oe(L(N), 0, w).x).attr("y1", (N) => oe(L(N), 0, w).y).attr("x2", (N) => oe(L(N), 0, w).x).attr("y2", (N) => oe(L(N), 0, w).y).call(
7239
- (N) => N.transition().call(
7251
+ (_) => _.append("line").attr("opacity", 0).attr("class", (R) => `x-axis-${st(R)}`).attr("stroke-dasharray", "0").attr("x1", (R) => oe(L(R), 0, w).x).attr("y1", (R) => oe(L(R), 0, w).y).attr("x2", (R) => oe(L(R), 0, w).x).attr("y2", (R) => oe(L(R), 0, w).y).call(
7252
+ (R) => R.transition().call(
7240
7253
  (P) => this.services.transitions.setupTransition({
7241
7254
  transition: P,
7242
7255
  name: "radar_x_axes_enter",
7243
7256
  animate: e
7244
7257
  })
7245
- ).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], w).x).attr("y1", (P) => oe(L(P), D.range()[0], w).y).attr("x2", (P) => oe(L(P), D.range()[1], w).x).attr("y2", (P) => oe(L(P), D.range()[1], w).y)
7258
+ ).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
7246
7259
  ),
7247
7260
  (_) => _.call(
7248
- (N) => N.transition().call(
7261
+ (R) => R.transition().call(
7249
7262
  (P) => this.services.transitions.setupTransition({
7250
7263
  transition: P,
7251
7264
  name: "radar_x_axes_update",
7252
7265
  animate: e
7253
7266
  })
7254
- ).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], w).x).attr("y1", (P) => oe(L(P), D.range()[0], w).y).attr("x2", (P) => oe(L(P), D.range()[1], w).x).attr("y2", (P) => oe(L(P), D.range()[1], w).y)
7267
+ ).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
7255
7268
  ),
7256
7269
  (_) => _.call(
7257
- (N) => N.transition().call(
7270
+ (R) => R.transition().call(
7258
7271
  (P) => this.services.transitions.setupTransition({
7259
7272
  transition: P,
7260
7273
  name: "radar_x_axes_exit",
@@ -7263,17 +7276,17 @@ class Xh extends q {
7263
7276
  ).attr("opacity", 0).remove()
7264
7277
  )
7265
7278
  ), S.appendOrSelect(t, "g.x-labels").attr("role", X.GROUP).selectAll("text").data(this.uniqueKeys).join(
7266
- (_) => _.append("text").text((N) => N).attr("opacity", 0).attr(
7279
+ (_) => _.append("text").text((R) => R).attr("opacity", 0).attr(
7267
7280
  "x",
7268
- (N) => oe(L(N), D.range()[1] + h, w).x
7281
+ (R) => oe(L(R), N.range()[1] + h, w).x
7269
7282
  ).attr(
7270
7283
  "y",
7271
- (N) => oe(L(N), D.range()[1] + h, w).y
7272
- ).style("text-anchor", (N) => fs(L(N)).textAnchor).style(
7284
+ (R) => oe(L(R), N.range()[1] + h, w).y
7285
+ ).style("text-anchor", (R) => fs(L(R)).textAnchor).style(
7273
7286
  "dominant-baseline",
7274
- (N) => fs(L(N)).dominantBaseline
7287
+ (R) => fs(L(R)).dominantBaseline
7275
7288
  ).call(
7276
- (N) => N.transition().call(
7289
+ (R) => R.transition().call(
7277
7290
  (P) => this.services.transitions.setupTransition({
7278
7291
  transition: P,
7279
7292
  name: "radar_x_labels_enter",
@@ -7282,7 +7295,7 @@ class Xh extends q {
7282
7295
  ).attr("opacity", 1)
7283
7296
  ),
7284
7297
  (_) => _.call(
7285
- (N) => N.transition().call(
7298
+ (R) => R.transition().call(
7286
7299
  (P) => this.services.transitions.setupTransition({
7287
7300
  transition: P,
7288
7301
  name: "radar_x_labels_update",
@@ -7290,17 +7303,17 @@ class Xh extends q {
7290
7303
  })
7291
7304
  ).attr("opacity", 1).attr(
7292
7305
  "x",
7293
- (P) => oe(L(P), D.range()[1] + h, w).x
7306
+ (P) => oe(L(P), N.range()[1] + h, w).x
7294
7307
  ).attr(
7295
7308
  "y",
7296
- (P) => oe(L(P), D.range()[1] + h, w).y
7309
+ (P) => oe(L(P), N.range()[1] + h, w).y
7297
7310
  ).end().finally(() => {
7298
7311
  const P = v(r, "radar", "alignment"), Le = this.getAlignmentXOffset(P, t, this.getParent());
7299
7312
  t.attr("x", Le);
7300
7313
  })
7301
7314
  ),
7302
7315
  (_) => _.call(
7303
- (N) => N.transition().call(
7316
+ (R) => R.transition().call(
7304
7317
  (P) => this.services.transitions.setupTransition({
7305
7318
  transition: P,
7306
7319
  name: "radar_x_labels_exit",
@@ -7311,16 +7324,16 @@ class Xh extends q {
7311
7324
  ), S.appendOrSelect(t, "g.blobs").attr("role", X.GROUP).selectAll("path").data(this.groupedDataNormalized, (_) => _.name).join(
7312
7325
  (_) => _.append("path").attr(
7313
7326
  "class",
7314
- (N) => this.model.getColorClassName({
7327
+ (R) => this.model.getColorClassName({
7315
7328
  classNameTypes: [F.FILL, F.STROKE],
7316
- dataGroupName: N.name,
7329
+ dataGroupName: R.name,
7317
7330
  originalClassName: "blob"
7318
7331
  })
7319
- ).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (N) => N.name).attr("opacity", 0).attr(
7332
+ ).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (R) => R.name).attr("opacity", 0).attr(
7320
7333
  "transform",
7321
7334
  e ? () => `translate(${w.x}, ${w.y}) scale(${1 + Math.random() * 0.35})` : `translate(${w.x}, ${w.y})`
7322
- ).style("fill", (N) => k(N.name)).style("fill-opacity", Fe.opacity.selected).style("stroke", (N) => k(N.name)).call((N) => {
7323
- const P = N.transition().call(
7335
+ ).style("fill", (R) => D(R.name, null, R.data)).style("fill-opacity", Fe.opacity.selected).style("stroke", (R) => D(R.name, null, R.data)).call((R) => {
7336
+ const P = R.transition().call(
7324
7337
  (Le) => this.services.transitions.setupTransition({
7325
7338
  transition: Le,
7326
7339
  name: "radar_blobs_enter",
@@ -7331,13 +7344,13 @@ class Xh extends q {
7331
7344
  }),
7332
7345
  (_) => (_.attr(
7333
7346
  "class",
7334
- (N) => this.model.getColorClassName({
7347
+ (R) => this.model.getColorClassName({
7335
7348
  classNameTypes: [F.FILL, F.STROKE],
7336
- dataGroupName: N.name,
7349
+ dataGroupName: R.name,
7337
7350
  originalClassName: "blob"
7338
7351
  })
7339
- ).style("fill", (N) => k(N.name)).style("stroke", (N) => k(N.name)), _.call(
7340
- (N) => N.transition().call(
7352
+ ).style("fill", (R) => D(R.name, null, R.data)).style("stroke", (R) => D(R.name, null, R.data)), _.call(
7353
+ (R) => R.transition().call(
7341
7354
  (P) => this.services.transitions.setupTransition({
7342
7355
  transition: P,
7343
7356
  name: "radar_blobs_update",
@@ -7345,8 +7358,8 @@ class Xh extends q {
7345
7358
  })
7346
7359
  ).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(P.data))
7347
7360
  ), _),
7348
- (_) => _.call((N) => {
7349
- const P = N.transition().call(
7361
+ (_) => _.call((R) => {
7362
+ const P = R.transition().call(
7350
7363
  (Le) => this.services.transitions.setupTransition({
7351
7364
  transition: Le,
7352
7365
  name: "radar_blobs_exit",
@@ -7359,7 +7372,7 @@ class Xh extends q {
7359
7372
  ), P.attr("opacity", 0).remove();
7360
7373
  })
7361
7374
  ), S.appendOrSelect(t, "g.dots").attr("role", X.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((_) => v(_, p) !== null)).join(
7362
- (_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (N) => N[c]),
7375
+ (_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (R) => R[c]),
7363
7376
  (_) => _,
7364
7377
  (_) => _.remove()
7365
7378
  ).attr(
@@ -7369,18 +7382,18 @@ class Xh extends q {
7369
7382
  dataGroupName: _[l],
7370
7383
  originalClassName: st(_[d])
7371
7384
  })
7372
- ).attr("cx", (_) => oe(L(_[d]), D(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), D(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) => k(_[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", X.GROUP).selectAll("rect").data(this.uniqueKeys).join(
7385
+ ).attr("cx", (_) => oe(L(_[d]), N(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), N(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) => D(_[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", X.GROUP).selectAll("rect").data(this.uniqueKeys).join(
7373
7386
  (_) => _.append("rect"),
7374
7387
  (_) => _,
7375
7388
  (_) => _.remove()
7376
- ).attr("x", w.x).attr("y", w.y - E / 2).attr("width", D.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Oi(L(_))}, ${w.x}, ${w.y})`);
7389
+ ).attr("x", w.x).attr("y", w.y - E / 2).attr("width", N.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Oi(L(_))}, ${w.x}, ${w.y})`);
7377
7390
  const { code: ae, number: re } = v(r, "locale");
7378
7391
  S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Wt(j)).join(
7379
- (_) => _.append("text").attr("opacity", 0).text((N) => re(N, ae)).attr(
7392
+ (_) => _.append("text").attr("opacity", 0).text((R) => re(R, ae)).attr(
7380
7393
  "x",
7381
- (N) => oe(-Math.PI / 2, D(N), w).x + u
7382
- ).attr("y", (N) => oe(-Math.PI / 2, D(N), w).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
7383
- (N) => N.transition().call(
7394
+ (R) => oe(-Math.PI / 2, N(R), w).x + u
7395
+ ).attr("y", (R) => oe(-Math.PI / 2, N(R), w).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
7396
+ (R) => R.transition().call(
7384
7397
  (P) => this.services.transitions.setupTransition({
7385
7398
  transition: P,
7386
7399
  name: "radar_y_labels_enter",
@@ -7389,7 +7402,7 @@ class Xh extends q {
7389
7402
  ).attr("opacity", 1)
7390
7403
  ),
7391
7404
  (_) => _.call(
7392
- (N) => N.transition().call(
7405
+ (R) => R.transition().call(
7393
7406
  (P) => this.services.transitions.setupTransition({
7394
7407
  transition: P,
7395
7408
  name: "radar_y_labels_update",
@@ -7397,11 +7410,11 @@ class Xh extends q {
7397
7410
  })
7398
7411
  ).text((P) => P).attr("opacity", 1).attr(
7399
7412
  "x",
7400
- (P) => oe(-Math.PI / 2, D(P), w).x + u
7401
- ).attr("y", (P) => oe(-Math.PI / 2, D(P), w).y)
7413
+ (P) => oe(-Math.PI / 2, N(P), w).x + u
7414
+ ).attr("y", (P) => oe(-Math.PI / 2, N(P), w).y)
7402
7415
  ),
7403
7416
  (_) => _.call(
7404
- (N) => N.transition().call(
7417
+ (R) => R.transition().call(
7405
7418
  (P) => this.services.transitions.setupTransition({
7406
7419
  transition: P,
7407
7420
  name: "radar_y_labels_exit",
@@ -7450,7 +7463,7 @@ class Xh extends q {
7450
7463
  items: h.filter((u) => typeof u[p] == "number").map((u) => ({
7451
7464
  label: u[d],
7452
7465
  value: u[p],
7453
- color: e.model.getFillColor(u[d]),
7466
+ color: e.model.getFillColor(u[d], null, u),
7454
7467
  class: e.model.getColorClassName({
7455
7468
  classNameTypes: [F.TOOLTIP],
7456
7469
  dataGroupName: u[d]
@@ -7520,7 +7533,10 @@ class Zh extends Wn {
7520
7533
  dataGroupName: c[n],
7521
7534
  originalClassName: "bar"
7522
7535
  })
7523
- ).style("fill", (c) => this.model.getFillColor(c[n])).attr("d", (c) => {
7536
+ ).style("fill", (c) => {
7537
+ const d = this.services.cartesianScales.getDomainIdentifier(c);
7538
+ return this.model.getFillColor(c[n], c[d], c);
7539
+ }).attr("d", (c) => {
7524
7540
  const d = this.services.cartesianScales.getRangeIdentifier(), p = this.getBarWidth(), h = c[d], u = this.services.cartesianScales.getDomainValue(c) - p / 2, g = u + p;
7525
7541
  let m, E;
7526
7542
  if (Array.isArray(h) && h.length === 2)
@@ -7644,7 +7660,7 @@ class qh extends q {
7644
7660
  dataGroupName: v(g, 0, a),
7645
7661
  originalClassName: "area"
7646
7662
  })
7647
- ).style("fill", (g) => n.model.getFillColor(v(g, 0, a))).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (g) => v(g, 0, a)).transition().call(
7663
+ ).style("fill", (g) => n.model.getFillColor(v(g, 0, a), null, g)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (g) => v(g, 0, a)).transition().call(
7648
7664
  (g) => this.services.transitions.setupTransition({
7649
7665
  transition: g,
7650
7666
  name: "area-update-enter",
@@ -7699,7 +7715,10 @@ class Kh extends Wn {
7699
7715
  dataGroupName: c[s],
7700
7716
  originalClassName: "bar"
7701
7717
  })
7702
- ).style("fill", (c) => this.model.getFillColor(c[s])).attr("d", (c) => {
7718
+ ).style(
7719
+ "fill",
7720
+ (c) => this.model.getFillColor(c[s], c.data.sharedStackKey, c.data)
7721
+ ).attr("d", (c) => {
7703
7722
  const d = c.data.sharedStackKey, p = this.getBarWidth(), h = this.services.cartesianScales.getDomainValue(d) - p / 2, u = h + p, g = this.services.cartesianScales.getRangeValue(c[0]);
7704
7723
  let m = this.services.cartesianScales.getRangeValue(c[1]);
7705
7724
  if (!this.isOutsideZoomedDomain(h, u)) {
@@ -7867,12 +7886,12 @@ class Qh extends q {
7867
7886
  name: r,
7868
7887
  children: i
7869
7888
  }), u = 10, g = n / 6, m = (L) => {
7870
- const I = h.descendants().reverse(), D = h.links();
7871
- let j = h, k = h;
7889
+ const I = h.descendants().reverse(), N = h.links();
7890
+ let j = h, D = h;
7872
7891
  h.eachBefore((H) => {
7873
- H.x < j.x && (j = H), H.x > k.x && (k = H);
7892
+ H.x < j.x && (j = H), H.x > D.x && (D = H);
7874
7893
  });
7875
- const C = k.x - j.x, V = t.transition().call(
7894
+ const C = D.x - j.x, V = t.transition().call(
7876
7895
  (H) => this.services.transitions.setupTransition({
7877
7896
  transition: H,
7878
7897
  name: "tree-update-viewbox",
@@ -7901,7 +7920,7 @@ class Qh extends q {
7901
7920
  });
7902
7921
  });
7903
7922
  Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -it : it).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), z.merge(Q).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), z.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
7904
- const me = A.selectAll("path").data(D, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7923
+ const me = A.selectAll("path").data(N, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7905
7924
  const H = { x: L.x0, y: L.y0 };
7906
7925
  return y({ source: H, target: H });
7907
7926
  });
@@ -7925,12 +7944,12 @@ class Qh extends q {
7925
7944
  m(h);
7926
7945
  }
7927
7946
  }
7928
- var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", Rl = "#d2a106", kl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400", Gl = "#1c1500", Bl = {
7947
+ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", kl = "#d2a106", Rl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400", Gl = "#1c1500", Bl = {
7929
7948
  10: Cl,
7930
7949
  20: _l,
7931
7950
  30: Il,
7932
- 40: Rl,
7933
- 50: kl,
7951
+ 40: kl,
7952
+ 50: Rl,
7934
7953
  60: Dl,
7935
7954
  70: Nl,
7936
7955
  80: Pl,
@@ -7980,11 +7999,11 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
7980
7999
  80: Ac,
7981
8000
  90: Mc,
7982
8001
  100: wc
7983
- }, _c = "#edf5ff", Ic = "#d0e2ff", Rc = "#a6c8ff", kc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c", Gc = "#001d6c", Bc = "#001141", Hc = {
8002
+ }, _c = "#edf5ff", Ic = "#d0e2ff", kc = "#a6c8ff", Rc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c", Gc = "#001d6c", Bc = "#001141", Hc = {
7984
8003
  10: _c,
7985
8004
  20: Ic,
7986
- 30: Rc,
7987
- 40: kc,
8005
+ 30: kc,
8006
+ 40: Rc,
7988
8007
  50: Dc,
7989
8008
  60: Nc,
7990
8009
  70: Pc,
@@ -8035,10 +8054,10 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
8035
8054
  80: Md,
8036
8055
  90: wd,
8037
8056
  100: Cd
8038
- }, Id = "#f4f4f4", Rd = "#e0e0e0", kd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252", Gd = "#393939", Bd = "#262626", Hd = "#161616", $d = {
8057
+ }, Id = "#f4f4f4", kd = "#e0e0e0", Rd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252", Gd = "#393939", Bd = "#262626", Hd = "#161616", $d = {
8039
8058
  10: Id,
8040
- 20: Rd,
8041
- 30: kd,
8059
+ 20: kd,
8060
+ 30: Rd,
8042
8061
  40: Dd,
8043
8062
  50: Nd,
8044
8063
  60: Pd,
@@ -8166,7 +8185,7 @@ class eu extends q {
8166
8185
  ).attr("width", (m) => m.x1 - m.x0).attr("height", (m) => m.y1 - m.y0).style("fill", (m) => {
8167
8186
  for (; m.depth > 1; )
8168
8187
  m = m.parent;
8169
- return this.model.getFillColor(m.data.name);
8188
+ return this.model.getFillColor(m.data.name, null, m.data);
8170
8189
  }), h.selectAll("clipPath").data(
8171
8190
  (m) => m.data.showLabel !== !0 ? [] : [1],
8172
8191
  (m) => m
@@ -8224,7 +8243,7 @@ class eu extends q {
8224
8243
  name: "graph_element_mouseover_fill_update"
8225
8244
  })
8226
8245
  ).style("fill", (r) => {
8227
- const l = e.model.getFillColor(r.parent.data.name);
8246
+ const l = e.model.getFillColor(r.parent.data.name, null, r.data);
8228
8247
  return l && (a = l), sa(a).darker(0.7).toString();
8229
8248
  }), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
8230
8249
  event: t,
@@ -8271,7 +8290,7 @@ class eu extends q {
8271
8290
  transition: i,
8272
8291
  name: "graph_element_mouseout_fill_update"
8273
8292
  })
8274
- ).style("fill", (i) => e.model.getFillColor(i.parent.data.name)), e.services.events.dispatchEvent(f.Treemap.LEAF_MOUSEOUT, {
8293
+ ).style("fill", (i) => e.model.getFillColor(i.parent.data.name, null, i.data)), e.services.events.dispatchEvent(f.Treemap.LEAF_MOUSEOUT, {
8275
8294
  event: t,
8276
8295
  element: s,
8277
8296
  datum: n
@@ -8591,11 +8610,11 @@ export {
8591
8610
  Sh as b,
8592
8611
  ph as c,
8593
8612
  Ih as d,
8594
- Rh as e,
8613
+ kh as e,
8595
8614
  _h as f,
8596
8615
  Ch as g,
8597
8616
  wh as h,
8598
- kh as i,
8617
+ Rh as i,
8599
8618
  Dh as j,
8600
8619
  fh as k,
8601
8620
  uh as l,
@@ -8614,4 +8633,4 @@ export {
8614
8633
  Oh as y,
8615
8634
  Th as z
8616
8635
  };
8617
- //# sourceMappingURL=choropleth-o0OXZNlE.mjs.map
8636
+ //# sourceMappingURL=choropleth-WzFMZXLV.mjs.map