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