!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,t.Clipboard=e()}}(function(){vare,t,n;returnfunctione(t,n,i){functiono(a,c){if(!n[a]){if(!t[a]){varl="function"==typeofrequire&&require;if(!c&&l)returnl(a,!0);if(r)returnr(a,!0);vars=newError("Cannot find module '"+a+"'");throws.code="MODULE_NOT_FOUND",s}varu=n[a]={exports:{}};t[a][0].call(u.exports,function(e){varn=t[a][1][e];returno(n?n:e)},u,u.exports,e,t,n,i)}returnn[a].exports}for(varr="function"==typeofrequire&&require,a=0;a<i.length;a++)o(i[a]);returno}({1:[function(e,t,n){functioni(e,t){for(;e&&e.nodeType!==o;){if(e.matches(t))returne;e=e.parentNode}}varo=9;if(Element&&!Element.prototype.matches){varr=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=i},{}],2:[function(e,t,n){functioni(e,t,n,i,r){vara=o.apply(this,arguments);returne.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}functiono(e,t,n,i){returnfunction(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}varr=e("./closest");t.exports=i},{"./closest":1}],3:[function(e,t,n){n.node=function(e){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},n.nodeList=function(e){vart=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"ine&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeofe||einstanceofString},n.fn=function(e){vart=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,n){functioni(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!c.string(t))thrownewTypeError("Second argument must be a String");if(!c.fn(n))thrownewTypeError("Third argument must be a Function");if(c.node(e))returno(e,t,n);if(c.nodeList(e))returnr(e,t,n);if(c.string(e))returna(e,t,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}functiono(e,t,n){returne.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}functionr(e,t,n){returnArray.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}functiona(e,t,n){returnl(document.body,e,t,n)}varc=e("./is"),l=e("delegate");t.exports=i},{"./is":3,delegate:2}],5:[function(e,t,n){functioni(e){vart;if("SELECT"===e.nodeName)e.focus(),t=e.value;elseif("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();varn=window.getSelection(),i=document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t=n.toString()}returnt}t.exports=i},{}],6:[function(e,t,n){functioni(){}i.prototype={on:function(e,t,n){vari=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){functioni(){o.off(e,i),t.apply(n,arguments)}varo=this;returni._=t,this.on(e,i,n)},emit:function(e){vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;for(i;i<o;i++)n[i].fn.apply(n[i].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(varr=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);returno.length?n[e]=o:deleten[e],this}},t.exports=i},{}],7:[function(t,n,i){!function(o,r){if("function"==typeofe&&e.amd)e(["module","select"],r);elseif("undefined"!=typeofi)r(n,t("select"));else{vara={exports:{}};r(a,o.select),o.clipboardAction=a.exports}}(this,function(e,t){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}varo=n(t),r="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},a=function(){functione(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}returnfunction(t,n,i){returnn&&e(t.prototype,n),i&&e(t,i),t}}(),c=function(){functione(t){i(this,e),this.resolveOptions(t),this.initSelection()}returna(e,[{key:"resolveOptions",value:functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action=t.action,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:functione(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:functione(){vart=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){returnt.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";vari=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,i)),this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:functione(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:functione(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:functione(){vart=void0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:functione(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:functione(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:functione(){this.removeFake()}},{key:"action",set:functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)thrownewError('Invalid "action" value, use either "copy" or "cut"')},get:functione(){returnthis._action}},{key:"target",set:functione(t){if(void0!==t){if(!t||"object"!==("undefined"==typeoft?"undefined":r(t))||1!==t.nodeType)thrownewError('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))thrownewError('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))thrownewError('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:functione(){returnthis._target}}]),e}();e.exports=c})},{select:5}],8:[function(t,n,i){!function(o,r){if("function"==typeofe&&e.amd)e(["module","./clipboard-action","tiny-emitter","good-listener"],r);elseif("undefined"!=typeofi)r(n,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{vara={exports:{}};r(a,o.clipboardAction,o.tinyEmitter,o.goodListener),o.clipboard=a.exports}}(this,function(e,t,n,i){"use strict";functiono(e){returne&&e.__esModule?e:{default:e}}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functionc(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}functionl(e,t){varn="data-clipboard-"+e;if(t.hasAttribute(n))returnt.getAttribute(n)}vars=o(t),u=o(n),f=o(i),d=function(){functione(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}returnfunction(t,n,i){returnn&&e(t.prototype,n),i&&e(t,i),t}}(),h=function(e){functiont(e,n){r(this,t);vari=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));returni.resolveOptions(n),i.listenClick(e),i}returnc(t,e),d(t,[{key:"resolveOptions",value:functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeoft.action?t.action:this.defaultAction,this.target="function"==typeoft.target?t.target:this.defaultTarget,this.text="function"==typeoft.text?t.text:this.defaultText}},{key:"listenClick",value:functione(t){varn=this;this.listener=(0,f.default)(t,"click",function(e){returnn.onClick(e)})}},{key:"onClick",value:functione(t){varn=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=news.default({action:this.action(n),target:this.target(n),text:this.text(n),trigger:n,emitter:this})}},{key:"defaultAction",value:functione(t){returnl("action",t)}},{key:"defaultTarget",value:functione(t){varn=l("target",t);if(n)returndocument.querySelector(n)}},{key:"defaultText",value:functione(t){returnl("text",t)}},{key:"destroy",value:functione(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}]),t}(u.default);e.exports=h})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
t.createElement("a"),b;if(u.msSaveOrOpenBlob)u.msSaveOrOpenBlob(d,a);elseif(void0!==c.download)c.href=d,c.download=a,c.target="_blank",t.body.appendChild(c),c.click(),t.body.removeChild(c);elsetry{if(b=e.open(d,"chart"),void0===b||null===b)throw"Failed to open window";}catch(v){e.location.href=d}};a.svgToDataUrl=function(d){vara=-1<u.userAgent.indexOf("WebKit")&&0>u.userAgent.indexOf("Chrome");try{if(!a&&0>u.userAgent.toLowerCase().indexOf("firefox"))returnA.createObjectURL(newe.Blob([d],{type:"image/svg+xml;charset-utf-16"}))}catch(c){}return"data:image/svg+xml;charset\x3dUTF-8,"+
b.fallbackToExportServer)if(b.error)b.error();elsethrow"Fallback to export server disabled";elsec.exportChart(b)};(B&&"image/svg+xml"!==b.type||"application/pdf"===b.type)&&c.container.getElementsByTagName("image").length?f():c.getSVGForLocalExport(b,e,f,function(c){-1<c.indexOf("\x3cforeignObject")&&"image/svg+xml"!==b.type?f():a.downloadSVGLocal(c,b,f)})};h(!0,a.getOptions().exporting,{libURL:"https://code.highcharts.com/5.0.6/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},