/* Highcharts JS v10.3.3 (2023-01-20) Accessibility module (c) 2010-2021 Highsoft AS Author: Oystein Moseng License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/accessibility",["CDAtest/_static/CDAstatic/highcharts/highcharts"],function(A){a(A);a.Highcharts=A;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function A(a, h, l, x){a.hasOwnProperty(h)||(a[h]=x.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}a=a?a._modules:{}; A(a,"Accessibility/Utils/HTMLUtilities.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,h){function l(a){if("function"===typeof p.MouseEvent)return new p.MouseEvent(a.type,a);if(m.createEvent){var g=m.createEvent("MouseEvent");if(g.initMouseEvent)return g.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view||p,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget),g}return x(a.type)}function x(a,k,w){k=k||{x:0,y:0};return"function"=== typeof p.MouseEvent?new p.MouseEvent(a,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:w||z,view:p,detail:"click"===a?1:0,screenX:k.x,screenY:k.y,clientX:k.x,clientY:k.y}):m.createEvent&&(w=m.createEvent("MouseEvent"),w.initMouseEvent)?(w.initMouseEvent(a,!0,!0,p,"click"===a?1:0,k.x,k.y,k.x,k.y,!1,!1,!1,!1,0,null),w):{type:a}}var m=a.doc,p=a.win,u=h.css,z=p.EventTarget&&new p.EventTarget||"none";return{addClass:function(a,k){a.classList?a.classList.add(k):0>a.className.indexOf(k)&& (a.className+=" "+k)},cloneMouseEvent:l,cloneTouchEvent:function(a){var g=function(a){for(var f=[],d=0;d/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(a){return m.getElementById(a)},getFakeMouseEvent:x,getHeadingTagNameForElement:function(a){var g=function(f){f=parseInt(f.slice(1),10);return"h"+Math.min(6,f+1)},w=function(f){var d; a:{for(d=f;d=d.previousSibling;){var b=d.tagName||"";if(/H[1-6]/.test(b)){d=b;break a}}d=""}if(d)return g(d);f=f.parentElement;if(!f)return"p";d=f.tagName;return/H[1-6]/.test(d)?g(d):w(f)};return w(a)},removeChildNodes:function(a){for(;a.lastChild;)a.removeChild(a.lastChild)},removeClass:function(a,k){a.classList?a.classList.remove(k):a.className=a.className.replace(new RegExp(k,"g"),"")},removeElement:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},reverseChildNodes:function(a){for(var g= a.childNodes.length;g--;)a.appendChild(a.childNodes[g])},simulatedEventTarget:z,stripHTMLTagsFromString:function(a){return"string"===typeof a?a.replace(/<\/?[^>]+(>|$)/g,""):a},visuallyHideElement:function(a){u(a,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}});A(a,"Accessibility/A11yI18n.js",[a["Core/FormatUtilities.js"], a["Core/Utilities.js"]],function(a,h){var l=a.format,x=h.getNestedProperty,m=h.pick,p;(function(a){function z(a,d){var b=a.indexOf("#each("),c=a.indexOf("#plural("),e=a.indexOf("["),r=a.indexOf("]");if(-1b?d.length+b:Math.min(b,d.length),r=0;re?(a=d[d.length+e],"undefined"===typeof a&&(a=d[0])):(a=d[e],"undefined"===typeof a&&(a=d[d.length-1]))),"undefined"!==typeof a?a:""):"{"+a+"}"}function g(a,d,b){var c=function(c,b){c=c.slice(b||0); var e=c.indexOf("{"),d=c.indexOf("}");if(-1e)return{statement:c.substring(e+1,d),begin:b+e+1,end:b+d}},e=[],r=0;do{var f=c(a,r);var g=a.substring(r,f&&f.begin-1);g.length&&e.push({value:g,type:"constant"});f&&e.push({value:f.statement,type:"statement"});r=f?f.end+1:r+1}while(f);e.forEach(function(c){"statement"===c.type&&(c.value=z(c.value,d))});return l(e.reduce(function(c,b){return c+b.value},""),d,b)}function k(a,d){a=a.split(".");for(var b=this.options.lang,c=0;c".concat(a,""):""})}var p=a.escapeStringForHTML,K=a.stripHTMLTagsFromString;return{getAnnotationsInfoHTML:function(a){var g=a.annotations;if(!g||!g.length)return"";a=m(a);return'
    '.concat(a.join(" "),"
")},getAnnotationLabelDescription:u,getAnnotationListItems:m,getPointAnnotationTexts:function(a){var g=h(a.series.chart).filter(function(k){return-1< k.points.indexOf(a)});return g.length?g.map(function(a){return"".concat(l(a))}):[]}}});A(a,"Accessibility/Components/InfoRegionsComponent.js",[a["Accessibility/A11yI18n.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/Announcer.js"],a["Accessibility/Components/AnnotationsA11y.js"],a["Core/Renderer/HTML/AST.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a, h,l,x,m,p,K,z,g,k){function w(a,b){var c=b[0],e=a.series&&a.series[0]||{};e={numSeries:a.series.length,numPoints:e.points&&e.points.length,chart:a,mapTitle:a.mapView&&a.mapView.geoMap&&a.mapView.geoMap.title};if(!c)return a.langFormat("accessibility.chartTypes.emptyChart",e);if("map"===c)return e.mapTitle?a.langFormat("accessibility.chartTypes.mapTypeDescription",e):a.langFormat("accessibility.chartTypes.unknownMap",e);if(1a.series.length?"Single":"Multiple";return(a.langFormat("accessibility.chartTypes."+b+d,e)||a.langFormat("accessibility.chartTypes.default"+d,e))+(c?" "+c:"")}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor= b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),d=x.getAnnotationsInfoHTML,b=p.getAxisDescription,c=p.getAxisRangeDescription,e=p.getChartTitle,r=p.unhideChartElementFromAT,E=K.format,I=z.doc,u=g.addClass,B=g.getElement,H=g.getHeadingTagNameForElement,C=g.stripHTMLTagsFromString,v=g.visuallyHideElement,n=k.attr,q=k.pick;return function(D){function y(){var a=null!==D&&D.apply(this,arguments)||this;a.announcer=void 0;a.screenReaderSections={};return a}f(y,D);y.prototype.init= function(){var a=this.chart,b=this;this.initRegionsDefinitions();this.addEvent(a,"aftergetTableAST",function(a){b.onDataTableCreated(a)});this.addEvent(a,"afterViewData",function(a){a.wasHidden&&(b.dataTableDiv=a.element,setTimeout(function(){b.focusDataTable()},300))});this.announcer=new l(a,"assertive")};y.prototype.initRegionsDefinitions=function(){var a=this;this.screenReaderSections={before:{element:null,buildContent:function(b){var c=b.options.accessibility.screenReaderSection.beforeChartFormatter; return c?c(b):a.defaultBeforeChartFormatter(b)},insertIntoDOM:function(a,b){b.renderTo.insertBefore(a,b.renderTo.firstChild)},afterInserted:function(){"undefined"!==typeof a.sonifyButtonId&&a.initSonifyButton(a.sonifyButtonId);"undefined"!==typeof a.dataTableButtonId&&a.initDataTableButton(a.dataTableButtonId)}},after:{element:null,buildContent:function(b){var c=b.options.accessibility.screenReaderSection.afterChartFormatter;return c?c(b):a.defaultAfterChartFormatter()},insertIntoDOM:function(a,b){b.renderTo.insertBefore(a, b.container.nextSibling)},afterInserted:function(){a.chart.accessibility&&a.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}};y.prototype.onChartRender=function(){var a=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement();this.setLinkedDescriptionAttrs();Object.keys(this.screenReaderSections).forEach(function(b){a.updateScreenReaderSection(b)})};y.prototype.getLinkedDescriptionElement=function(){var a=this.chart.options.accessibility.linkedDescription;if(a){if("string"!== typeof a)return a;a=E(a,this.chart);a=I.querySelectorAll(a);if(1===a.length)return a[0]}};y.prototype.setLinkedDescriptionAttrs=function(){var a=this.linkedDescriptionElement;a&&(a.setAttribute("aria-hidden","true"),u(a,"highcharts-linked-description"))};y.prototype.updateScreenReaderSection=function(a){var b=this.chart,c=this.screenReaderSections[a],e=c.buildContent(b),d=c.element=c.element||this.createElement("div"),n=d.firstChild||this.createElement("div");e?(this.setScreenReaderSectionAttribs(d, a),m.setElementHTML(n,e),d.appendChild(n),c.insertIntoDOM(d,b),b.styledMode?u(n,"highcharts-visually-hidden"):v(n),r(b,n),c.afterInserted&&c.afterInserted()):(d.parentNode&&d.parentNode.removeChild(d),c.element=null)};y.prototype.setScreenReaderSectionAttribs=function(a,b){var c=this.chart,d=c.langFormat("accessibility.screenReaderSection."+b+"RegionLabel",{chart:c,chartTitle:e(c)});b="highcharts-screen-reader-region-".concat(b,"-").concat(c.index);n(a,{id:b,"aria-label":d||void 0});a.style.position= "relative";d&&a.setAttribute("role","all"===c.options.accessibility.landmarkVerbosity?"region":"group")};y.prototype.defaultBeforeChartFormatter=function(){var b=this.chart,c=b.options.accessibility.screenReaderSection.beforeChartFormat;if(!c)return"";var n=this.getAxesDescription(),q=b.sonify&&b.options.sonification&&b.options.sonification.enabled,y="highcharts-a11y-sonify-data-btn-"+b.index,f="hc-linkto-highcharts-data-table-"+b.index,r=d(b),v=b.langFormat("accessibility.screenReaderSection.annotations.heading", {chart:b});n={headingTagName:H(b.renderTo),chartTitle:e(b),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:n.xAxis,yAxisDescription:n.yAxis,playAsSoundButton:q?this.getSonifyButtonText(y):"",viewTableButton:b.getCSV?this.getDataTableButtonText(f):"",annotationsTitle:r?v:"",annotationsList:r};b=a.i18nFormat(c,n,b);this.dataTableButtonId=f;this.sonifyButtonId=y;return b.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")};y.prototype.defaultAfterChartFormatter= function(){var b=this.chart,c=b.options.accessibility.screenReaderSection.afterChartFormat;if(!c)return"";var e={endOfChartMarker:this.getEndOfChartMarkerText()};return a.i18nFormat(c,e,b).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")};y.prototype.getLinkedDescription=function(){var a=this.linkedDescriptionElement;return C(a&&a.innerHTML||"")};y.prototype.getLongdescText=function(){var a=this.chart.options,b=a.caption;b=b&&b.text;var c=this.getLinkedDescription();return a.accessibility.description||c||b|| ""};y.prototype.getTypeDescriptionText=function(){var a=this.chart;return a.types?a.options.accessibility.typeDescription||w(a,a.types):""};y.prototype.getDataTableButtonText=function(a){var b=this.chart;b=b.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:b,chartTitle:e(b)});return'"};y.prototype.getSonifyButtonText=function(a){var b=this.chart;if(b.options.sonification&&!1===b.options.sonification.enabled)return"";b=b.langFormat("accessibility.sonification.playAsSoundButtonText", {chart:b,chartTitle:e(b)});return'"};y.prototype.getSubtitleText=function(){var a=this.chart.options.subtitle;return C(a&&a.text||"")};y.prototype.getEndOfChartMarkerText=function(){var a=this.chart,b=a.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:a});return'
'+b+"
"};y.prototype.onDataTableCreated=function(a){var b=this.chart;if(b.options.accessibility.enabled){this.viewDataTableButton&& this.viewDataTableButton.setAttribute("aria-expanded","true");var c=a.tree.attributes||{};c.tabindex=-1;c.summary=b.langFormat("accessibility.table.tableSummary",{chart:b});a.tree.attributes=c}};y.prototype.focusDataTable=function(){var a=this.dataTableDiv;(a=a&&a.getElementsByTagName("table")[0])&&a.focus&&a.focus()};y.prototype.initSonifyButton=function(a){var b=this,c=this.sonifyButton=B(a),e=this.chart,d=function(a){c&&(c.setAttribute("aria-hidden","true"),c.setAttribute("aria-label",""));a.preventDefault(); a.stopPropagation();a=e.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:e});b.announcer.announce(a);setTimeout(function(){c&&(c.removeAttribute("aria-hidden"),c.removeAttribute("aria-label"));e.sonify&&e.sonify()},1E3)};c&&e&&(c.setAttribute("tabindex",-1),c.onclick=function(a){(e.options.accessibility&&e.options.accessibility.screenReaderSection.onPlayAsSoundClick||d).call(this,a,e)})};y.prototype.initDataTableButton=function(a){var b=this.viewDataTableButton=B(a),c=this.chart; a=a.replace("hc-linkto-","");b&&(n(b,{tabindex:-1,"aria-expanded":!!B(a)}),b.onclick=c.options.accessibility.screenReaderSection.onViewDataTableClick||function(){c.viewData()})};y.prototype.getAxesDescription=function(){var a=this.chart,b=function(b,c){b=a[b];return 1a.types.indexOf("map")&&0>a.types.indexOf("treemap")&&0>a.types.indexOf("tilemap"),e=!!a.hasCartesianSeries,d=b("xAxis",!a.angular&& e&&c);b=b("yAxis",e&&c);c={};d&&(c.xAxis=this.getAxisDescriptionText("xAxis"));b&&(c.yAxis=this.getAxisDescriptionText("yAxis"));return c};y.prototype.getAxisDescriptionText=function(a){var e=this.chart,d=e[a];return e.langFormat("accessibility.axis."+a+"Description"+(1e||n!==c-1);q?a.styledMode?B(y,"highcharts-a11y-invisible"):y.style.visibility="hidden": (H(y,"highcharts-a11y-invisible"),y.style.visibility="")}})};b.prototype.onChartRender=function(){g(this.chart)||this.removeProxies()};b.prototype.highlightAdjacentLegendPage=function(a){var b=this.chart,c=b.legend;a=(c.currentPage||1)+a;var e=c.pages||[];if(0/g," "));a=a.langFormat("accessibility.legend.legendLabel"+(b?"":"NoTitle"),{chart:a,legendTitle:b,chartTitle:u(a)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":a})};b.prototype.addLegendProxyGroup=function(){this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})};b.prototype.proxyLegendItems=function(){var a=this,b;((this.chart.legend|| {}).allItems||[]).forEach(function(c){b=c.legendItem||{};b.label&&b.label.element&&a.proxyLegendItem(c)})};b.prototype.proxyLegendItem=function(a){var b=a.legendItem||{};if(b.label&&b.group){var c=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:J(a.name),item:a});a.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:b.label,visual:(b.group.div?b.label:b.group).element},{tabindex:-1,"aria-pressed":a.visible,"aria-label":c})}};b.prototype.getKeyboardNavigation= function(){var a=this.keyCodes,b=this,c=this.chart;return new p(c,{keyCodeMap:[[[a.left,a.right,a.up,a.down],function(a){return b.onKbdArrowKey(this,a)}],[[a.enter,a.space],function(){return b.onKbdClick(this)}],[[a.pageDown,a.pageUp],function(c){b.highlightAdjacentLegendPage(c===a.pageDown?1:-1);return this.response.success}]],validate:function(){return b.shouldHaveLegendNavigation()},init:function(){c.highlightLegendItem(0);b.highlightedLegendItemIx=0},terminate:function(){b.highlightedLegendItemIx= -1;c.legend.allItems.forEach(function(a){return k(!1,a)})}})};b.prototype.onKbdArrowKey=function(a,b){var c=this.keyCodes,e=a.response,d=this.chart,n=d.options.accessibility,f=d.legend.allItems.length;b=b===c.left||b===c.up?-1:1;if(d.highlightLegendItem(this.highlightedLegendItemIx+b))return this.highlightedLegendItemIx+=b,e.success;1 b&&a.graphic&&a.graphic.element)})||null:null}function u(a){var b=a.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==b&&a.points&&a.points.length>=b)}function z(a){var b=a.options.accessibility||{};return!u(a)&&!b.exposeAsGroupOnly}function g(a){var b=a.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!a.points||!(a.points.length"," ");D=F(a.id)&&0>(""+ a.id).indexOf("highcharts-");t="x, "+a.x;q=a.name||q||v||(D?a.id:t)}else q="";v=F(a.index)?a.index+1:"";D=a.series;var g=D.chart.options.accessibility.point||{},E=D.chart.options.accessibility&&D.chart.options.accessibility.point||{},h=D.tooltipOptions||{};t=E.valuePrefix||g.valuePrefix||h.valuePrefix||"";g=E.valueSuffix||g.valueSuffix||h.valueSuffix||"";E=k(a,a["undefined"!==typeof a.value?"value":"y"]);D=a.isNull?D.chart.langFormat("accessibility.series.nullPointValue",{point:a}):D.pointArrayMap? d(a,t,g):t+E+g;n=H(f,{point:a,index:v,xDescription:q,value:D,separator:e?", ":""},n);f=(f=a.options&&a.options.accessibility&&a.options.accessibility.description)?" "+f:"";b=c?" "+b.name+".":"";c=a.series.chart;e=r(a);q={point:a,annotations:e};c=e.length?c.langFormat("accessibility.series.pointAnnotationsDescription",q):"";a.accessibility=a.accessibility||{};a.accessibility.valueDescription=n;return n+f+b+(c?" "+c:"")}function c(a){var c=z(a),e=g(a),d=a.chart.options.accessibility.point.describeNull; (c||e)&&a.points.forEach(function(e){var f;if(!(f=e.graphic&&e.graphic.element)){var t=e.series;f=t&&t.chart;t=t&&t.is("sunburst");f=f&&f.options.accessibility.point.describeNull;if(f=e.isNull&&!t&&f){t=e.series;var q=p(e);t=(f=q&&q.graphic)?f.parentGroup:t.graph||t.group;q=q?{x:y(e.plotX,q.plotX,0),y:y(e.plotY,q.plotY,0)}:{x:y(e.plotX,0),y:y(e.plotY,0)};q=e.series.chart.renderer.rect(q.x,q.y,1,1);q.attr({"class":"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}); t&&t.element?(e.graphic=q,e.hasMockGraphic=!0,q.add(t),t.element.insertBefore(q.element,f?f.element:null),f=q.element):f=void 0}}t=e.options&&e.options.accessibility&&!1===e.options.accessibility.enabled;f&&(e.isNull&&!d?f.setAttribute("aria-hidden",!0):(f.setAttribute("tabindex","-1"),a.chart.styledMode||(f.style.outline="none"),c&&!t?(q=e.series,t=q.chart.options.accessibility.point||{},q=q.options.accessibility&&q.options.accessibility.point||{},e=n(q.descriptionFormatter&&q.descriptionFormatter(e)|| t.descriptionFormatter&&t.descriptionFormatter(e)||b(e)),f.setAttribute("role","img"),f.setAttribute("aria-label",e)):f.setAttribute("aria-hidden",!0)))})}function e(a){var b=a.chart,c=b.types||[],e=w(a),d=function(c){return b[c]&&1h-k,L=t=864E5*{month:28,year:365}[q]*y-F&&e-36E5<=864E5*{month:31,year:366}[q]*y+F?t=!0:"ytd"===q?(t=G-v+F===e,u=!D):"all"===q&&(t=d.max-d.min>=h-k,C=!D&&w&&t);q=!p&&(r||L||C||f);y=D&&t||t&&!w&&!u||D&&a.frozenStates;q?b=3:y&&(w=!0,b=2);g.state!== b&&(g.setState(b),c&&(c.options[n+1].disabled=q,2===b&&(c.selectedIndex=n+1)),0===b&&l===n&&a.setSelected())})};v.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=B(a.offsetMin,0);a._offsetMax=B(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};v.prototype.getInputValue=function(a){a="min"===a?this.minInput: this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};v.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time");n=f(n)?Number(n):void 0;f(b)&&(f(n)&&e.setAttribute("data-hc-time-previous",n),e.setAttribute("data-hc-time",b),n=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]|| c.inputEditDateFormat,n);a&&a.attr({text:d.dateFormat(c.inputDateFormat,n)})}};v.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};v.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,d=this.inputGroup,e= d.translateX;d=d.translateY;var f=this.options.inputBoxWidth;w(a,{width:c?b.width+(f?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&f?w(a,{left:e+b.x+"px",top:d+"px"}):w(a,{left:Math.min(Math.round(b.x+e-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:d-(a.offsetHeight-b.height)/2+"px"})}};v.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&w(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};v.prototype.defaultInputDateParser= function(a,b,c){var d=a.split("/").join("-").split(" ").join("T");-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=l.isSafari)e=d,e=!(6=e?"+".concat(A(-e),":00"):"-".concat(A(e),":00"))}d=Date.parse(d);r(d)||(a=a.split("-"),d=Date.UTC(H(a[0]),H(a[1])-1,H(a[2])));c&&b&&r(d)&&(d+=c.getTimezoneOffset(d));return d};v.prototype.drawInput=function(a){function b(){var b= n.maxInput,c=n.minInput,e=d.xAxis[0],f=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:e,t=f.dataMin;f=f.dataMax;var q=n.getInputValue(a);q!==Number(m.getAttribute("data-hc-time-previous"))&&r(q)&&(m.setAttribute("data-hc-time-previous",q),p&&b&&r(t)?q>Number(b.getAttribute("data-hc-time"))?q=void 0:qf&&(q=f)),"undefined"!==typeof q&&e.setExtremes(p?q:e.min,p?e.max:q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart, e=this.div,f=this.inputGroup,n=this,g=d.renderer.style||{},h=d.renderer,v=d.options.rangeSelector,p="min"===a,G=z.lang[p?"rangeSelectorFrom":"rangeSelectorTo"]||"";G=h.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?v.inputBoxHeight:0}).add(f);h=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:v.inputBoxWidth,height:v.inputBoxHeight,"text-align":"center"}).on("click",function(){n.showInput(a);n[a+"Input"].focus()});d.styledMode||h.attr({stroke:v.inputBoxBorderColor, "stroke-width":1});h.add(f);var m=k("input",{name:a,className:"highcharts-range-selector"},void 0,e);m.setAttribute("type",u(v.inputDateFormat||"%b %e, %Y"));d.styledMode||(G.css(E(g,v.labelStyle)),h.css(E({color:"#333333"},g,v.inputStyle)),w(m,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g.fontSize,fontFamily:g.fontFamily,top:"-9999em"},v.inputStyle)));m.onfocus=function(){n.showInput(a)};m.onblur=function(){m=== l.doc.activeElement&&b();n.hideInput(a);n.setInputValue(a);m.blur()};var C=!1;m.onchange=function(){C||(b(),n.hideInput(a),m.blur())};m.onkeypress=function(a){13===a.keyCode&&b()};m.onkeydown=function(a){C=!0;38!==a.keyCode&&40!==a.keyCode||b()};m.onkeyup=function(){C=!1};return{dateBox:h,input:m,label:G}};v.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y- 10}};v.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};v.prototype.render=function(a,b){var c=this.chart,d=c.renderer,e=c.container,n=c.options,q=n.rangeSelector,g=B(n.chart.style&&n.chart.style.zIndex,0)+1;n=q.inputEnabled;if(!1!==q.enabled){this.rendered||(this.group=d.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0, {position:"relative",height:0,zIndex:g}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),n&&(this.inputGroup=d.g("input-group").add(this.group),d=this.drawInput("min"),this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input,d=this.drawInput("max"),this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input));if(n&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]|| {},f(a.dataMin)&&f(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:h}),h+=b+q.inputSpacing)}})}this.alignElements();this.rendered=!0}};v.prototype.renderButtons=function(){var a=this,b= this.buttons,c=this.options,d=z.lang,f=this.chart.renderer,t=E(c.buttonTheme),h=t&&t.states,v=t.width||28;delete t.width;delete t.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var r=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);g(r,"touchstart",function(){r.style.fontSize="16px"});[[l.isMS?"mouseover":"mouseenter"],[l.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d= c[0],f=c[1];g(r,d,function(){var c=b[a.currentButtonIndex()];c&&e(c.element,f||d)})});this.zoomText=f.label(d&&d.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),t["stroke-width"]=B(t["stroke-width"],0));k("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,r);this.buttonOptions.forEach(function(c,d){k("option",{textContent:c.title||c.text}, void 0,r);b[d]=f.button(c.text,0,0,function(b){var e=c.events&&c.events.click,f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},t,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:v}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};v.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons,d=this.chart,e=this.group,f=this.inputGroup,g=this.options,h=this.zoomText,k=d.options,v=k.exporting&&!1!==k.exporting.enabled&&k.navigation&&k.navigation.buttonOptions; k=g.buttonPosition;var r=g.inputPosition,l=g.verticalAlign,m=function(b,c){return v&&a.titleCollision(d)&&"top"===l&&"right"===c.align&&c.y-b.getBBox().height-12<(v.y||0)+(v.height||0)+d.spacing[0]?-40:0},p=d.plotLeft;if(e&&k&&r){var w=k.x-d.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var C=0;h&&(C+=h.getBBox().width+5);c.forEach(function(a,b){C+=a.width;b!==c.length-1&&(C+=g.buttonSpacing)});this.initialButtonGroupWidth=C}p-=d.spacing[3];this.updateButtonStates();h= m(b,k);this.alignButtonGroup(h);e.placed=b.placed=d.hasLoaded}b=0;f&&(b=m(f,r),"left"===r.align?w=p:"right"===r.align&&(w=-Math.max(d.axisOffset[1],-b)),f.align({y:r.y,width:f.getBBox().width,align:r.align,x:r.x+w-2},!0,d.spacingBox),f.placed=d.hasLoaded);this.handleCollision(b);e.align({verticalAlign:l},!0,d.spacingBox);f=e.alignAttr.translateY;b=e.getBBox().height+20;m=0;"bottom"===l&&(m=(m=d.legend&&d.legend.options)&&"bottom"===m.verticalAlign&&m.enabled&&!m.floating?d.legend.legendHeight+B(m.margin, 10):0,b=b+m-20,m=f-b-(g.floating?0:g.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===l)g.floating&&(m=0),d.titleOffset&&d.titleOffset[0]&&(m=d.titleOffset[0]),m+=d.margin[0]-d.spacing[0]||0;else if("middle"===l)if(r.y===k.y)m=f;else if(r.y||k.y)m=0>r.y||0>k.y?m-Math.min(r.y,k.y):f-b;e.translate(g.x,g.y+Math.floor(m));k=this.minInput;r=this.maxInput;f=this.dropdown;g.inputEnabled&&k&&r&&(k.style.marginTop=e.translateY+"px",r.style.marginTop=e.translateY+"px");f&&(f.style.marginTop=e.translateY+ "px")}};v.prototype.alignButtonGroup=function(a,b){var c=this.chart,d=this.buttonGroup,e=this.options.buttonPosition,f=c.plotLeft-c.spacing[3],n=e.x-c.spacing[3];"right"===e.align?n+=a-f:"center"===e.align&&(n-=f/2);d&&d.align({y:e.y,width:B(b,this.initialButtonGroupWidth),align:e.align,x:n},!0,c.spacingBox)};v.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,c=this.options,d=this.zoomText,e=b.hasLoaded?"animate":"attr",f=c.buttonPosition,g=b=b.plotLeft;d&&"hidden"!==d.visibility&& (d[e]({x:B(b+f.x,b)}),g+=f.x+d.getBBox().width+5);d=0;for(f=this.buttonOptions.length;da&&(a=b.width)});return a};var h=function(b){if(e&&d){var c=e.alignAttr.translateX+ e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,g=d.alignAttr.translateX+d.getBBox().x;return g+b>c&&c+f>g&&n.y=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===g){this.collapseButtons(a);h(f())&&r();return}"never"===g&&this.expandButtons()}e&&d?k.align===n.align||h(this.initialButtonGroupWidth+20)?"responsive"===g?(this.collapseButtons(a), h(f())&&r()):r():"responsive"===g&&this.expandButtons():d&&"responsive"===g&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};v.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,d=this.chart,e=this.dropdown,f=this.options,n=this.zoomText,g=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?""+a+" \u25be":"\u25be",width:"auto",paddingLeft:B(f.buttonTheme.paddingLeft,g.padding,8),paddingRight:B(f.buttonTheme.paddingRight, g.padding,8)}};n&&n.hide();var h=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),h=!0)});h||(e&&(e.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};v.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,d=this.zoomText;this.hideDropdown(); d&&d.show();b.forEach(function(b,d){d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:B(c.buttonTheme.paddingLeft,"unset"),paddingRight:B(c.buttonTheme.paddingRight,"unset")});2>d.state&&d.setState(0)});this.positionButtons()};v.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0 e&&0>d||0f?b.accessibility&&(b.accessibility.keyboardNavigation.tabindexContainer.focus(),b.accessibility.keyboardNavigation.move(a)):d&&(a=d[f?"maxDateBox":"minDateBox"],d=d[f?"maxInput":"minInput"],a&&d&&b.setFocusToElement(a,d))};d.prototype.onInputNavInit=function(a){var b=this,d=this,f=this.chart,g=0=g&&a||0<=g&&!a||5>h||w(f))&&h{chartTitle}
{typeDescription}
{chartSubtitle}
{chartLongdesc}
{playAsSoundButton}
{viewTableButton}
{xAxisDescription}
{yAxisDescription}
{annotationsTitle}{annotationsList}
", afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad", lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5E3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}});A(a,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.", svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"}, endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"}, table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.", arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.", funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.", defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.", barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.", bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.", timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{"default":"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.", defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.", splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.", barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.", scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.", bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.", maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."}, description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}});A(a,"Accessibility/Options/DeprecatedOptions.js",[a["Core/Utilities.js"]],function(a){function h(a,h,l){for(var f,d=0;d