/** * Highcharts JS v11.2.0 (2023-10-30) * * (c) 2009-2021 Torstein Honsi * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/series-label",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function r(t,e,r,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}r(e,"Extensions/SeriesLabel/SeriesLabelDefaults.js",[],function(){return{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,format:void 0,formatter:void 0,minFontSize:null,maxFontSize:null,onArea:null,style:{fontSize:"0.8em",fontWeight:"bold"},useHTML:!1,boxesToAvoid:[]}}),r(e,"Extensions/SeriesLabel/SeriesLabelUtilities.js",[],function(){function t(t,e,r,o,a,i){var n=(i-e)*(r-t)-(o-e)*(a-t);return n>0||!(n<0)}function e(e,r,o,a,i,n,s,h){return t(e,r,i,n,s,h)!==t(o,a,i,n,s,h)&&t(e,r,o,a,i,n)!==t(e,r,o,a,s,h)}return{boxIntersectLine:function(t,r,o,a,i,n,s,h){return e(t,r,t+o,r,i,n,s,h)||e(t+o,r,t+o,r+a,i,n,s,h)||e(t,r+a,t+o,r+a,i,n,s,h)||e(t,r,t,r+a,i,n,s,h)},intersectRect:function(t,e){return!(e.left>t.right||e.rightt.bottom||e.bottom=e-16&&w[f-1].chartX<=e+o.width+16){if(p(e,r,o.width,o.height,w[f-1].chartX,w[f-1].chartY,w[f].chartX,w[f].chartY))return!1;t===A&&!h&&a&&(h=p(e-16,r-16,o.width+32,o.height+32,w[f-1].chartX,w[f-1].chartY,w[f].chartX,w[f].chartY))}(y||h)&&(t!==A||g)&&(Y=Math.min(Y,(l=e+o.width/2-w[f].chartX)*l+(c=r+o.height/2-w[f].chartY)*c))}if(!g&&y&&t===A&&(a&&!h||Y16)for(i=1,a=Math.ceil(r/16);i0;s-=1)L?N(a=S[s].chartX-o.width/2,i=(S[s].chartCenterY||0)-o.height/2,o)&&(c=v(t,a,i,o)):(N(a=S[s].chartX+3,i=S[s].chartY-o.height-3,o)&&(c=v(t,a,i,o,!0)),c&&E.push(c),N(a=S[s].chartX+3,i=S[s].chartY+3,o)&&(c=v(t,a,i,o,!0)),c&&E.push(c),N(a=S[s].chartX-o.width-3,i=S[s].chartY+3,o)&&(c=v(t,a,i,o,!0)),c&&E.push(c),N(a=S[s].chartX-o.width-3,i=S[s].chartY-o.height-3,o)&&(c=v(t,a,i,o,!0))),c&&E.push(c);if(r.connectorAllowed&&!E.length&&!L)for(a=X+w-o.width;a>=X;a-=16)for(i=A;io&&t<=a-r.width&&e>=A&&e<=A+M-r.height}function F(){C&&(t.labelBySeries=C.destroy())}}),x(e,"afterDrawSeriesLabels")}},e.renderer.forExport||!r?0:r)}}function X(t,e,r,o,a){var i,n,s=a&&a.anchorX,h=a&&a.anchorY,l=r/2;return b(s)&&b(h)&&(i=[["M",s,h]],(n=e-h)<0&&(n=-o-n),ne+o?i.push(["L",t+l,e+o]):ht+r&&i.push(["L",t+r,e+o/2])),i||[]}return{compose:function(t,r){n.pushUnique(y,t)&&(d(e,"load",Y),d(e,"redraw",Y)),n.pushUnique(y,r)&&(r.prototype.symbols.connector=X),n.pushUnique(y,c)&&c({plotOptions:{series:{label:a}}})}}}),r(e,"masters/modules/series-label.src.js",[e["Core/Globals.js"],e["Extensions/SeriesLabel/SeriesLabel.js"]],function(t,e){e.compose(t.Chart,t.SVGRenderer)})});//# sourceMappingURL=series-label.js.map