text: (function(e){'object'===typeof module&&module.exports?(e['default']=e,module.exports=e):'function'===typeof define&&define.amd?define('highcharts/modules/exporting',['highcharts'],function(t){e(t);e.Highcharts=t;return e}):e('undefined'!==typeof Highcharts?Highcharts:void 0)})(function(e){function t(e,t,n,i){e.hasOwnProperty(t)||(e[t]=i.apply(null,n))};e=e?e._modules:{};t(e,'modules/full-screen.src.js',[e['parts/Globals.js']],function(e){e.FullScreen=function(e){this.init(e.parentNode)};e.FullScreen.prototype={init:function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}});t(e,'mixins/navigation.js',[],function(){return{initUpdate:function(e){e.navigation||(e.navigation={updates:[],update:function(e,t){this.updates.forEach(function(n){n.update.call(n.context,e,t)})}})},addUpdate:function(e,t){t.navigation||this.initUpdate(t);t.navigation.updates.push({update:e,context:t})}}});t(e,'modules/exporting.src.js',[e['parts/Globals.js'],e['mixins/navigation.js']],function(e,t){var l=e.defaultOptions,c=e.doc,d=e.Chart,o=e.addEvent,y=e.removeEvent,p=e.fireEvent,r=e.createElement,h=e.discardElement,s=e.css,n=e.merge,i=e.pick,g=e.objectEach,a=e.extend,v=e.isTouchDevice,u=e.win,f=u.navigator.userAgent,x=e.SVGRenderer,m=e.Renderer.prototype.symbols,b=/Edge\/|Trident\/|MSIE /.test(f),w=/firefox/i.test(f);a(l.lang,{viewFullscreen:'View in full screen',printChart:'Print chart',downloadPNG:'Download PNG image',downloadJPEG:'Download JPEG image',downloadPDF:'Download PDF document',downloadSVG:'Download SVG vector image',contextButtonTitle:'Chart context menu'});l.navigation||(l.navigation={});n(!0,l.navigation,{buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:'right',buttonSpacing:3,height:22,verticalAlign:'top',width:24}});n(!0,l.navigation,{menuStyle:{border:'1px solid #999999',background:'#ffffff',padding:'5px 0'},menuItemStyle:{padding:'0.5em 1em',color:'#333333',background:'none',fontSize:v?'14px':'11px',transition:'background 250ms, color 250ms'},menuItemHoverStyle:{background:'#335cad',color:'#ffffff'},buttonOptions:{symbolFill:'#666666',symbolStroke:'#666666',symbolStrokeWidth:3,theme:{padding:5}}});l.exporting={type:'image/png',url:'https://export.highcharts.com/',printMaxWidth:780,scale:2,buttons:{contextButton:{className:'highcharts-contextbutton',menuClassName:'highcharts-contextmenu',symbol:'menu',titleKey:'contextButtonTitle',menuItems:'viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG'.split(' ')}},menuItemDefinitions:{viewFullscreen:{textKey:'viewFullscreen',onclick:function(){this.fullscreen=new e.FullScreen(this.container)}},printChart:{textKey:'printChart',onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:'downloadPNG',onclick:function(){this.exportChart()}},downloadJPEG:{textKey:'downloadJPEG',onclick:function(){this.exportChart({type:'image/jpeg'})}},downloadPDF:{textKey:'downloadPDF',onclick:function(){this.exportChart({type:'application/pdf'})}},downloadSVG:{textKey:'downloadSVG',onclick:function(){this.exportChart({type:'image/svg+xml'})}}}};e.post=function(e,t,i){var o=r('form',n({method:'post',action:e,enctype:'multipart/form-data'},i),{display:'none'},c.body);g(t,function(e,t){r('input',{type:'hidden',name:t,value:e},null,o)});o.submit();h(o)};a(d.prototype,{sanitizeSVG:function(e,t){var i=e.indexOf('\x3c/svg\x3e')+6,n=e.substr(i);e=e.substr(0,i);t&&t.exporting&&t.exporting.allowHTML&&n&&(n='\x3cforeignObject x\x3d"0" y\x3d"0" width\x3d"'+t.chart.width+'" height\x3d"'+t.chart.height+'"\x3e\x3cbody xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e'+n+'\x3c/body\x3e\x3c/foreignObject\x3e',e=e.replace('\x3c/svg\x3e',n+'\x3c/svg\x3e'));e=e.replace(/zIndex="[^"]+"/g,'').replace(/symbolName="[^"]+"/g,'').replace(/jQuery[0-9]+="[^"]+"/g,'').replace(/url\(("|&quot;)(\S+)("|&quot;)\)/g,'url($2)').replace(/url\([^#]+#/g,'url(#').replace(/<svg /,'\x3csvg xmlns:xlink\x3d"http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+\:)href=/g,' xlink:href\x3d').replace(/\n/,' ').replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1\x3d"rgb($2)" $1-opacity\x3d"$3"').replace(/&nbsp;/g,'\u00a0').replace(/&shy;/g,'\u00ad');this.ieSanitizeSVG&&(e=this.ieSanitizeSVG(e));return e},getChartHTML:function(){this.styledMode&&this.inlineStyles();return this.container.innerHTML},getSVG:function(t){var s,u,o,d,l,i=n(this.options,t);u=r('div',null,{position:'absolute',top:'-9999em',width:this.chartWidth+'px',height:this.chartHeight+'px'},c.body);o=this.renderTo.style.width;l=this.renderTo.style.height;o=i.exporting.sourceWidth||i.chart.width||/px$/.test(o)&&parseInt(o,10)||(i.isGantt?800:600);l=i.exporting.sourceHeight||i.chart.height||/px$/.test(l)&&parseInt(l,10)||400;a(i.chart,{animation:!1,renderTo:u,forExport:!0,renderer:'SVGRenderer',width:o,height:l});i.exporting.enabled=!1;delete i.data;i.series=[];this.series.forEach(function(e){d=n(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible});d.isInternal||i.series.push(d)});this.axes.forEach(function(t){t.userOptions.internalKey||(t.userOptions.internalKey=e.uniqueKey())});s=new e.Chart(i,this.callback);t&&['xAxis','yAxis','series'].forEach(function(e){var n={};t[e]&&(n[e]=t[e],s.update(n))});this.axes.forEach(function(t){var i=e.find(s.axes,function(e){return e.options.internalKey===t.userOptions.internalKey}),n=t.getExtremes(),o=n.userMin,n=n.userMax;i&&(void 0!==o&&o!==i.min||void 0!==n&&n!==i.max)&&i.setExtremes(o,n,!0,!1)});o=s.getChartHTML();p(this,'getSVG',{chartCopy:s});o=this.sanitizeSVG(o,i);i=null;s.destroy();h(u);return o},getSVGForExport:function(e,t){var i=this.options.exporting;return this.getSVG(n({chart:{borderRadius:0}},i.chartOptions,t,{exporting:{sourceWidth:e&&e.sourceWidth||i.sourceWidth,sourceHeight:e&&e.sourceHeight||i.sourceHeight}}))},getFilename:function(){var t=this.userOptions.title&&this.userOptions.title.text,e=this.options.exporting.filename;if(e)return e;'string'===typeof t&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,'').replace(/[\s_]+/g,'-').replace(/[^a-z0-9\-]/g,'').replace(/^[\-]+/g,'').replace(/[\-]+/g,'-').substr(0,24).replace(/[\-]+$/g,''));if(!e||5>e.length)e='chart';return e},exportChart:function(t,i){i=this.getSVGForExport(t,i);t=n(this.options.exporting,t);e.post(t.url,{filename:t.filename||this.getFilename(),type:t.type,width:t.width||0,scale:t.scale,svg:i},t.formAttributes)},print:function(){function a(t){(e.fixedDiv?[e.fixedDiv,e.scrollingContainer]:[e.container]).forEach(function(e){t.appendChild(e)})};var e=this,n=[],i=c.body,o=i.childNodes,t=e.options.exporting.printMaxWidth,r,s;if(!e.isPrinting){e.isPrinting=!0;e.pointer.reset(null,0);p(e,'beforePrint');if(s=t&&e.chartWidth>t)r=[e.options.chart.width,void 0,!1],e.setSize(t,void 0,!1);[].forEach.call(o,function(e,t){1===e.nodeType&&(n[t]=e.style.display,e.style.display='none')});a(i);setTimeout(function(){u.focus();u.print();setTimeout(function(){a(e.renderTo);[].forEach.call(o,function(e,t){1===e.nodeType&&(e.style.display=n[t])});e.isPrinting=!1;s&&e.setSize.apply(e,r);p(e,'afterPrint')},1E3)},1)}},contextMenu:function(t,n,u,d,y,f,m){var i=this,x=i.options.navigation,v=i.chartWidth,b=i.chartHeight,w='cache-'+t,l=i[w],h=Math.max(y,f),g;l||(i.exportContextMenu=i[w]=l=r('div',{className:t},{position:'absolute',zIndex:1E3,padding:h+'px',pointerEvents:'auto'},i.fixedDiv||i.container),g=r('div',{className:'highcharts-menu'},null,l),i.styledMode||s(g,a({MozBoxShadow:'3px 3px 10px #888',WebkitBoxShadow:'3px 3px 10px #888',boxShadow:'3px 3px 10px #888'},x.menuStyle)),l.hideMenu=function(){s(l,{display:'none'});m&&m.setState(0);i.openMenu=!1;e.clearTimeout(l.hideTimer);p(i,'exportMenuHidden')},i.exportEvents.push(o(l,'mouseleave',function(){l.hideTimer=setTimeout(l.hideMenu,500)}),o(l,'mouseenter',function(){e.clearTimeout(l.hideTimer)}),o(c,'mouseup',function(e){i.pointer.inClass(e.target,t)||l.hideMenu()}),o(l,'click',function(){i.openMenu&&l.hideMenu()})),n.forEach(function(t){'string'===typeof t&&(t=i.options.exporting.menuItemDefinitions[t]);if(e.isObject(t,!0)){var n;t.separator?n=r('hr',null,null,g):(n=r('div',{className:'highcharts-menu-item',onclick:function(e){e&&e.stopPropagation();l.hideMenu();t.onclick&&t.onclick.apply(i,arguments)},innerHTML:t.text||i.options.lang[t.textKey]},null,g),i.styledMode||(n.onmouseover=function(){s(this,x.menuItemHoverStyle)},n.onmouseout=function(){s(this,x.menuItemStyle)},s(n,a({cursor:'pointer'},x.menuItemStyle))));i.exportDivElements.push(n)}}),i.exportDivElements.push(g,l),i.exportMenuWidth=l.offsetWidth,i.exportMenuHeight=l.offsetHeight);n={display:'block'};u+i.exportMenuWidth>v?n.right=v-u-y-h+'px':n.left=u-h+'px';d+f+i.exportMenuHeight>b&&'top'!==m.alignOptions.verticalAlign?n.bottom=b-d-h+'px':n.top=d+f-h+'px';s(l,n);i.openMenu=!0},addButton:function(e){var o=this,p=o.renderer,t=n(o.options.navigation.buttonOptions,e),h=t.onclick,g=t.menuItems,d,s,c=t.symbolSize||12;o.btnCount||(o.btnCount=0);o.exportDivElements||(o.exportDivElements=[],o.exportSVGElements=[]);if(!1!==t.enabled){var r=t.theme,l=r.states,x=l&&l.hover,l=l&&l.select,u;o.styledMode||(r.fill=i(r.fill,'#ffffff'),r.stroke=i(r.stroke,'none'));delete r.states;h?u=function(e){e&&e.stopPropagation();h.call(o,e)}:g&&(u=function(e){e&&e.stopPropagation();o.contextMenu(s.menuClassName,g,s.translateX,s.translateY,s.width,s.height,s);s.setState(2)});t.text&&t.symbol?r.paddingLeft=i(r.paddingLeft,25):t.text||a(r,{width:t.width,height:t.height,padding:0});o.styledMode||(r['stroke-linecap']='round',r.fill=i(r.fill,'#ffffff'),r.stroke=i(r.stroke,'none'));s=p.button(t.text,0,0,u,r,x,l).addClass(e.className).attr({title:i(o.options.lang[t._titleKey||t.titleKey],'')});s.menuClassName=e.menuClassName||'highcharts-menu-'+o.btnCount++;t.symbol&&(d=p.symbol(t.symbol,t.symbolX-c/2,t.symbolY-c/2,c,c,{width:c,height:c}).addClass('highcharts-button-symbol').attr({zIndex:1}).add(s),o.styledMode||d.attr({stroke:t.symbolStroke,fill:t.symbolFill,'stroke-width':t.symbolStrokeWidth||1}));s.add(o.exportingGroup).align(a(t,{width:s.width,x:i(t.x,o.buttonOffset)}),!0,'spacingBox');o.buttonOffset+=(s.width+t.buttonSpacing)*('right'===t.align?-1:1);o.exportSVGElements.push(s,d)}},destroyExport:function(t){var n=t?t.target:this;t=n.exportSVGElements;var i=n.exportDivElements,o=n.exportEvents,r;t&&(t.forEach(function(e,t){e&&(e.onclick=e.ontouchstart=null,r='cache-'+e.menuClassName,n[r]&&delete n[r],n.exportSVGElements[t]=e.destroy())}),t.length=0);n.exportingGroup&&(n.exportingGroup.destroy(),delete n.exportingGroup);i&&(i.forEach(function(t,i){e.clearTimeout(t.hideTimer);y(t,'mouseleave');n.exportDivElements[i]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null;h(t)}),i.length=0);o&&(o.forEach(function(e){e()}),o.length=0)}});x.prototype.inlineToAttributes='fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y'.split(' ');x.prototype.inlineBlacklist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/];x.prototype.unstyledElements=['clipPath','defs','desc'];d.prototype.inlineStyles=function(){function l(e){return e.replace(/([A-Z])/g,function(e,t){return'-'+t.toLowerCase()})};function d(e){function S(t,n){c=m=!1;if(r){for(x=r.length;x--&&!m;)m=r[x].test(n);c=!m};'transform'===n&&'none'===t&&(c=!0);for(x=a.length;x--&&!c;)c=a[x].test(n)||'function'===typeof t;c||E[n]===t&&'svg'!==e.nodeName||o[e.nodeName][n]===t||(-1!==p.indexOf(n)?e.setAttribute(l(n),t):y+=l(n)+':'+t+';')};var s,E,y='',f,c,m,x;if(1===e.nodeType&&-1===h.indexOf(e.nodeName)){s=u.getComputedStyle(e,null);E='svg'===e.nodeName?{}:u.getComputedStyle(e.parentNode,null);o[e.nodeName]||(i=t.getElementsByTagName('svg')[0],f=t.createElementNS(e.namespaceURI,e.nodeName),i.appendChild(f),o[e.nodeName]=n(u.getComputedStyle(f,null)),'text'===e.nodeName&&delete o.text.fill,i.removeChild(f));if(w||b)for(var v in s)S(s[v],v);else g(s,S);y&&(s=e.getAttribute('style'),e.setAttribute('style',(s?s+';':'')+y));'svg'===e.nodeName&&e.setAttribute('stroke-width','1px');'text'!==e.nodeName&&[].forEach.call(e.children||e.childNodes,d)}};var e=this.renderer,p=e.inlineToAttributes,a=e.inlineBlacklist,r=e.inlineWhitelist,h=e.unstyledElements,o={},i,t,e=c.createElement('iframe');s(e,{width:'1px',height:'1px',visibility:'hidden'});c.body.appendChild(e);t=e.contentWindow.document;t.open();t.write('\x3csvg xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3c/svg\x3e');t.close();d(this.container.querySelector('svg'));i.parentNode.removeChild(i)};m.menu=function(e,t,n,i){return['M',e,t+2.5,'L',e+n,t+2.5,'M',e,t+i/2+.5,'L',e+n,t+i/2+.5,'M',e,t+i-1.5,'L',e+n,t+i-1.5]};m.menuball=function(e,t,i,n){e=[];n=n/3-2;return e=e.concat(this.circle(i-n,t,n,n),this.circle(i-n,t+n+4,n,n),this.circle(i-n,t+2*(n+4),n,n))};d.prototype.renderExporting=function(){var e=this,t=e.options.exporting,n=t.buttons,i=e.isDirtyExporting||!e.exportSVGElements;e.buttonOffset=0;e.isDirtyExporting&&e.destroyExport();i&&!1!==t.enabled&&(e.exportEvents=[],e.exportingGroup=e.exportingGroup||e.renderer.g('exporting-group').attr({zIndex:3}).add(),g(n,function(t){e.addButton(t)}),e.isDirtyExporting=!1);o(e,'destroy',e.destroyExport)};o(d,'init',function(){var e=this;e.exporting={update:function(t,o){e.isDirtyExporting=!0;n(!0,e.options.exporting,t);i(o,!0)&&e.redraw()}};t.addUpdate(function(t,o){e.isDirtyExporting=!0;n(!0,e.options.navigation,t);i(o,!0)&&e.redraw()},e)});d.prototype.callbacks.push(function(e){e.renderExporting();o(e,'redraw',e.renderExporting)})});t(e,'masters/modules/exporting.src.js',[],function(){})});