!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/exporting
 * @requires highcharts
 *
 * Exporting module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.AST,e._Highcharts.Chart):"function"==typeof define&&define.amd?define("highcharts/modules/exporting",["highcharts/highcharts"],function(e){return t(e,e.AST,e.Chart)}):"object"==typeof exports?exports["highcharts/modules/exporting"]=t(e._Highcharts,e._Highcharts.AST,e._Highcharts.Chart):e.Highcharts=t(e.Highcharts,e.Highcharts.AST,e.Highcharts.Chart)}("u"<typeof window?this:window,function(e,t,n){return function(){"use strict";var r,o,i,a,l={660:function(e){e.exports=t},944:function(t){t.exports=e},960:function(e){e.exports=n}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return l[e](n,n.exports,c),n.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var u={};c.d(u,{default:function(){return ef}});var p=c(944),h=c.n(p),d=c(660),f=c.n(d),v=c(960),g=c.n(v);(r=i||(i={})).compose=function(e){return e.navigation||(e.navigation=new o(e)),e},r.Additions=o=function(){function e(e){this.updates=[],this.chart=e}return e.prototype.addUpdate=function(e){this.chart.navigation.updates.push(e)},e.prototype.update=function(e,t){var n=this;this.updates.forEach(function(r){r.call(n.chart,e,t)})},e}();var y=i,m=h().isSafari,b=h().win,x=h().win.document,w=b.URL||b.webkitURL||b;function S(e,t){var n=b.navigator,r=x.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");var o=/Edge\/\d+/.test(n.userAgent);if((m&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){var t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&w.createObjectURL){for(var n=b.atob(t[3]),r=new b.ArrayBuffer(n.length),o=new b.Uint8Array(r),i=0;i<o.length;++i)o[i]=n.charCodeAt(i);return w.createObjectURL(new b.Blob([o],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=e,r.download=t,x.body.appendChild(r),r.click(),x.body.removeChild(r);else try{if(!b.open(e,"chart"))throw Error("Failed to open window")}catch(t){b.location.href=e}}var E=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},O=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},C=h().isTouchDevice,T={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.6.0/lib/",local:!0,type:"image/png",url:"https://export-svg.highcharts.com?v=".concat(h().version),pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){var e;null==(e=this.fullscreen)||e.toggle()}},printChart:{textKey:"printChart",onclick:function(){var e;null==(e=this.exporting)||e.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){return E(this,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart()];case 1:return t.sent(),[2]}})})}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){return E(this,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"image/jpeg"})];case 1:return t.sent(),[2]}})})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){return E(this,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"application/pdf"})];case 1:return t.sent(),[2]}})})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){return E(this,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"image/svg+xml"})];case 1:return t.sent(),[2]}})})}}}},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"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:C?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(e){var t=[];function n(e,t,n,r){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+r/2+.5],["L",e+n,t+r/2+.5],["M",e,t+r-1.5],["L",e+n,t+r-1.5]]}function r(e,t,n,r){var o=r/3-2,i=[];return i.concat(this.circle(n-o,t,o,o),this.circle(n-o,t+o+4,o,o),this.circle(n-o,t+2*(o+4),o,o))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);var o=e.prototype.symbols;o.menu=n,o.menuball=r.bind(o)}}}(a||(a={}));var k=a,P=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},F=h().doc;function N(e,t,n,r){void 0===r&&(r={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});var i=o.hcEvents;h().Point&&e instanceof h().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener;a&&a.call(e,t,n,!!h().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);var l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort(function(e,t){return e.order-t.order}),function(){z(e,t,n)}}function R(e,t,n,r,o){var i=F.createElement(e);return t&&L(i,t),o&&A(i,{padding:"0",border:"none",margin:"0"}),n&&A(i,n),r&&r.appendChild(i),i}function A(e,t){L(e.style,t)}function j(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function L(e,t){var n;for(n in e||(e={}),t)e[n]=t[n];return e}function D(e,t,n,r){if(n=n||{},(null==F?void 0:F.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==h())){var o=F.createEvent("Events");o.initEvent(t,!0,!0),n=L(o,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||L(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});for(var i=[],a=e,l=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[t]&&(i.length&&(l=!0),i.unshift.apply(i,a.hcEvents[t])),a=Object.getPrototypeOf(a);l&&i.sort(function(e,t){return e.order-t.order}),i.forEach(function(t){!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}h().win;var M=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function H(e){null!=e&&clearTimeout(e)}function I(e){return G(e)&&"number"==typeof e.nodeType}function U(e){var t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function G(e,t){return!!e&&"object"==typeof e&&(!t||!U(e))}function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=P([e],t,!0),i={},a=function(e,t){return"object"!=typeof e&&(e={}),V(t,function(n,r){if("__proto__"!==r&&"constructor"!==r){var o;!G(n,!0)||(o=null==n?void 0:n.constructor,G(n,!0)&&!I(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||I(n)?e[r]=t[r]:e[r]=a(e[r]||{},n)}}),e};!0===e&&(i=o[1],o=Array.prototype.slice.call(o,2));var l=o.length;for(r=0;r<l;r++)i=a(i,o[r]);return i}function V(e,t,n){for(var r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function W(){for(var e=arguments,t=e.length,n=0;n<t;n++){var r=e[n];if(null!=r)return r}}function q(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function z(e,t,n){function r(t,n){var r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){var o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,V(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}var i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){var a=i.hcEvents;if(t){var l=a[t]||[];n?(a[t]=l.filter(function(e){return n!==e.fn}),r(t,n)):(o(a),a[t]=[])}else o(a),delete i.hcEvents}}var $=h().composed;function K(){this.fullscreen=new _(this)}var _=function(){function e(e){this.chart=e,this.isOpen=!1;var t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return e.compose=function(e){q($,"Fullscreen")&&N(e,"beforeRender",K)},e.prototype.close=function(){var e=this,t=e.chart,n=t.options.chart;D(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})},e.prototype.open=function(){var e=this,t=e.chart,n=t.options.chart;D(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){var r=N(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),o=N(t,"destroy",r);e.unbindFullscreenEvent=function(){r(),o()};var i=t.renderTo[e.browserProps.requestFullscreen]();i&&i.catch(function(){alert("Full screen is not supported inside a frame.")})}})},e.prototype.setButtonText=function(){var e,t,n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,a=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==a?void 0:a.exitFullscreen)&&a.viewFullscreen&&i&&r){var l=r[i.indexOf("viewFullscreen")];l&&f().setElementHTML(l,this.isOpen?a.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.textKey)||a.viewFullscreen)}},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e}(),J=function(){return(J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},Y=h().win,Z={ajax:function(e){var t,n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function o(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;r.open((e.type||"get").toUpperCase(),e.url,!0),(null==(t=e.headers)?void 0:t["Content-Type"])||r.setRequestHeader("Content-Type",n[e.dataType||"json"]||n.text),V(e.headers,function(e,t){r.setRequestHeader(t,e)}),e.responseType&&(r.responseType=e.responseType),r.onreadystatechange=function(){var t,n;if(4===r.readyState){if(200===r.status){if("blob"!==e.responseType&&(n=r.responseText,"json"===e.dataType))try{n=JSON.parse(n)}catch(e){if(e instanceof Error)return o(r,e)}return null==(t=e.success)?void 0:t.call(e,n,r)}o(r,r.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),r.send(e.data)},getJSON:function(e,t){Z.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};Z.post=function(e,t,n){var r,o,i,a;return r=this,o=void 0,i=void 0,a=function(){var r,o,i,a;return X(this,function(l){switch(l.label){case 0:return r=new Y.FormData,V(t,function(e,t){r.append(t,e)}),r.append("b64","true"),[4,Y.fetch(e,J({method:"POST",body:r},n))];case 1:if(!(o=l.sent()).ok)return[3,3];return[4,o.text()];case 2:i=l.sent(),(a=document.createElement("a")).href="data:".concat(t.type,";base64,").concat(i),a.download=t.filename,a.click(),j(a),l.label=3;case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,l)}s((a=a.apply(r,o||[])).next())})};var Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ee=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},et=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},en=h().defaultOptions,er=h().setOptions,eo=h().composed,ei=h().doc,ea=h().isFirefox,el=h().isMS,es=h().isSafari,ec=h().SVG_NS,eu=h().win;f().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),f().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");var ep=eu.URL||eu.webkitURL||eu,eh=function(){function e(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}return e.hyphenate=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},e.imageToDataURL=function(t,n,r){return ee(this,void 0,void 0,function(){var o,i,a;return et(this,function(l){switch(l.label){case 0:return[4,e.loadImage(t)];case 1:if(o=l.sent(),a=null==(i=ei.createElement("canvas"))?void 0:i.getContext("2d"))return i.height=o.height*n,i.width=o.width*n,a.drawImage(o,0,0,i.width,i.height),[2,i.toDataURL(r)];throw Error("No canvas found!")}})})},e.fetchCSS=function(e){return ee(this,void 0,void 0,function(){var t,n;return et(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,r.sent().text()];case 2:return t=r.sent(),(n=new CSSStyleSheet).replaceSync(t),[2,n];case 3:return r.sent(),(0,p.error)("Warning: Failed to fetch CSS from ".concat(e),!1),[3,4];case 4:return[2]}})})},e.handleStyleSheet=function(t,n){return ee(this,void 0,void 0,function(){var r,o,i,a,l;return et(this,function(s){switch(s.label){case 0:s.trys.push([0,5,,9]),r=function(r){var o,i,a,l;return et(this,function(s){switch(s.label){case 0:if(!(r instanceof CSSImportRule))return[3,3];return[4,e.fetchCSS(r.href)];case 1:if(!(o=s.sent()))return[3,3];return[4,e.handleStyleSheet(o,n)];case 2:s.sent(),s.label=3;case 3:return r instanceof CSSFontFaceRule&&(i=r.cssText,t.href&&(a=t.href,l=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi,i=i.replace(l,function(e,t,n){var r=new URL(n,a).href;return"url(".concat(t).concat(r).concat(t,")")})),n.push(i)),[2]}})},o=0,i=Array.from(t.cssRules),s.label=1;case 1:if(!(o<i.length))return[3,4];return a=i[o],[5,r(a)];case 2:s.sent(),s.label=3;case 3:return o++,[3,1];case 4:return[3,9];case 5:if(s.sent(),!t.href)return[3,8];return[4,e.fetchCSS(t.href)];case 6:if(!(l=s.sent()))return[3,8];return[4,e.handleStyleSheet(l,n)];case 7:s.sent(),s.label=8;case 8:return[3,9];case 9:return[2]}})})},e.fetchStyleSheets=function(){return ee(this,void 0,void 0,function(){var t,n,r,o;return et(this,function(i){switch(i.label){case 0:t=[],n=0,r=Array.from(ei.styleSheets),i.label=1;case 1:if(!(n<r.length))return[3,4];return o=r[n],[4,e.handleStyleSheet(o,t)];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2,t]}})})},e.inlineFonts=function(t){return ee(this,void 0,void 0,function(){var n,r,o,i,a,l,s,c,u,p,h,d,f,v,g,y;return et(this,function(m){switch(m.label){case 0:return[4,e.fetchStyleSheets()];case 1:for(n=m.sent(),r=/url\(([^)]+)\)/g,o=[],i=n.join("\n");a=r.exec(i);)l=a[1].replace(/['"]/g,""),o.includes(l)||o.push(l);s=function(e){for(var t="",n=new Uint8Array(e),r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)},c={},u=0,p=o,m.label=2;case 2:if(!(u<p.length))return[3,8];h=p[u],m.label=3;case 3:return m.trys.push([3,6,,7]),[4,fetch(h)];case 4:return f=(d=m.sent()).headers.get("Content-Type")||"",g=s,[4,d.arrayBuffer()];case 5:return v=g.apply(void 0,[m.sent()]),c[h]="data:".concat(f,";base64,").concat(v),[3,7];case 6:return m.sent(),[3,7];case 7:return u++,[3,2];case 8:return i=i.replace(r,function(e,t){var n=t.replace(/['"]/g,"");return"url(".concat(c[n]||n,")")}),(y=document.createElementNS("http://www.w3.org/2000/svg","style")).textContent=i,t.append(y),[2,t]}})})},e.loadImage=function(t){return new Promise(function(n,r){var o=new eu.Image;o.crossOrigin="Anonymous",o.onload=function(){setTimeout(function(){n(o)},e.loadEventDeferDelay)},o.onerror=function(e){r(e)},o.src=t})},e.prepareImageOptions=function(e){var t,n=(null==e?void 0:e.type)||"image/png",r=(null==e?void 0:e.libURL)||(null==(t=en.exporting)?void 0:t.libURL);return{type:n,filename:((null==e?void 0:e.filename)||"chart")+"."+("image/svg+xml"===n?"svg":n.split("/")[1]),scale:(null==e?void 0:e.scale)||1,libURL:(null==r?void 0:r.slice(-1))!=="/"?r+"/":r}},e.sanitizeSVG=function(e,t){var n,r=e.indexOf("</svg>")+6,o=e.indexOf("<foreignObject")>-1,i=e.substr(r);return e=e.substr(0,r),o?e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">'):i&&(null==(n=null==t?void 0:t.exporting)?void 0:n.allowHTML)&&(i='<foreignObject x="0" y="0" width="'+t.chart.width+'" height="'+t.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">')+"</body></foreignObject>",e=e.replace("</svg>",i+"</svg>")),e=e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/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\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/&nbsp;/g,"\xa0").replace(/&shy;/g,"\xad")},e.svgToDataURL=function(e){var t=eu.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return ep.createObjectURL(new eu.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch(e){}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)},e.prototype.addButton=function(e){var t,n,r=this,o=r.chart,i=o.renderer,a=B(null==(t=o.options.navigation)?void 0:t.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1!==a.enabled&&a.theme){var u=o.styledMode?{}:a.theme,p=function(){};l?p=function(e){e&&e.stopPropagation(),l.call(o,e,o)}:s&&(p=function(e){e&&e.stopPropagation(),r.contextMenu(h.menuClassName,s,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),a.text&&a.symbol?u.paddingLeft=W(u.paddingLeft,30):a.text||L(u,{width:a.width,height:a.height,padding:0});var h=i.button(a.text||"",0,0,p,u,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:W(o.options.lang[a._titleKey||a.titleKey],"")});h.menuClassName=e.menuClassName||"highcharts-menu-"+r.btnCount++,a.symbol&&(n=i.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),o.styledMode||n.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),h.add(r.group).align(L(a,{width:h.width,x:W(a.x,r.buttonOffset)}),!0,"spacingBox"),r.buttonOffset+=((h.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),r.svgElements.push(h,n)}},e.prototype.afterPrint=function(){var t=this.chart;if(this.printReverseInfo){var n=this.printReverseInfo,r=n.childNodes,o=n.origDisplay,i=n.resetParams;this.moveContainers(t.renderTo),[].forEach.call(r,function(e,t){1===e.nodeType&&(e.style.display=o[t]||"")}),this.isPrinting=!1,i&&t.setSize.apply(t,i),delete this.printReverseInfo,e.printingChart=void 0,D(t,"afterPrint")}},e.prototype.beforePrint=function(){var e,t=this.chart,n=ei.body,r=this.options.printMaxWidth,o={childNodes:n.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,null==(e=t.pointer)||e.reset(void 0,0),D(t,"beforePrint"),r&&t.chartWidth>r&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(r,void 0,!1)),[].forEach.call(o.childNodes,function(e,t){1===e.nodeType&&(o.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(n),this.printReverseInfo=o},e.prototype.contextMenu=function(e,t,n,r,o,i,a){var l,s,c,u,p=this,h=p.chart,d=h.options.navigation,v=h.chartWidth,g=h.chartHeight,y="cache-"+e,m=Math.max(o,i),b=h[y];b||(p.contextMenuEl=h[y]=b=R("div",{className:e},Q({position:"absolute",zIndex:1e3,padding:m+"px",pointerEvents:"auto"},h.renderer.style),(null==(l=h.scrollablePlotArea)?void 0:l.fixedDiv)||h.container),u=R("ul",{className:"highcharts-menu"},h.styledMode?{}:{listStyle:"none",margin:0,padding:0},b),h.styledMode||A(u,L({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(null==d?void 0:d.menuStyle)||{})),b.hideMenu=function(){A(b,{display:"none"}),a&&a.setState(0),h.exporting&&(h.exporting.openMenu=!1),A(h.renderTo,{overflow:"hidden"}),A(h.container,{overflow:"hidden"}),H(b.hideTimer),D(h,"exportMenuHidden")},null==(s=p.events)||s.push(N(b,"mouseleave",function(){b.hideTimer=eu.setTimeout(b.hideMenu,500)}),N(b,"mouseenter",function(){H(b.hideTimer)}),N(ei,"mouseup",function(t){var n;(null==(n=h.pointer)?void 0:n.inClass(t.target,e))||b.hideMenu()}),N(b,"click",function(){var e;(null==(e=h.exporting)?void 0:e.openMenu)&&b.hideMenu()})),t.forEach(function(e){var t;if("string"==typeof e&&(null==(t=p.options.menuItemDefinitions)?void 0:t[e])&&(e=p.options.menuItemDefinitions[e]),G(e,!0)){var n=void 0;e.separator?n=R("hr",void 0,void 0,u):("viewData"===e.textKey&&p.isDataTableVisible&&(e.textKey="hideData"),n=R("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),b.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(h,arguments)}},void 0,u),f().setElementHTML(n,e.text||h.options.lang[e.textKey]),h.styledMode||(n.onmouseover=function(){A(this,(null==d?void 0:d.menuItemHoverStyle)||{})},n.onmouseout=function(){A(this,(null==d?void 0:d.menuItemStyle)||{})},A(n,L({cursor:"pointer"},(null==d?void 0:d.menuItemStyle)||{})))),p.divElements.push(n)}}),p.divElements.push(u,b),p.menuHeight=b.offsetHeight,p.menuWidth=b.offsetWidth);var x={display:"block"};n+(p.menuWidth||0)>v?x.right=v-n-o-m+"px":x.left=n-m+"px",r+i+(p.menuHeight||0)>g&&(null==(c=a.alignOptions)?void 0:c.verticalAlign)!=="top"?x.bottom=g-r-m+"px":x.top=r+i-m+"px",A(b,x),A(h.renderTo,{overflow:""}),A(h.container,{overflow:""}),h.exporting&&(h.exporting.openMenu=!0),D(h,"exportMenuShown")},e.prototype.destroy=function(e){var t,n=e?e.target:this.chart,r=this.divElements,o=this.events,i=this.svgElements;i.forEach(function(e,r){e&&(e.onclick=e.ontouchstart=null,n[t="cache-"+e.menuClassName]&&delete n[t],i[r]=e.destroy())}),i.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&(H(e.hideTimer),z(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,j(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)},e.prototype.downloadSVG=function(t,n){return ee(this,void 0,void 0,function(){var r,o,i,a,l,s,c,u,h,d,f,v,g,y,m,b;return et(this,function(w){switch(w.label){case 0:if(r={svg:t,exportingOptions:n,exporting:this},D(e.prototype,"downloadSVG",r),r.defaultPrevented)return[2];if(i=(o=e.prepareImageOptions(n)).type,a=o.filename,l=o.scale,s=o.libURL,"application/pdf"!==i)return[3,1];throw Error("Offline exporting logic for PDF type is not found.");case 1:if("image/svg+xml"!==i)return[3,2];return void 0!==eu.MSBlobBuilder?((u=new eu.MSBlobBuilder).append(t),c=u.getBlob("image/svg+xml")):c=e.svgToDataURL(t),S(c,a),[3,10];case 2:c=e.svgToDataURL(t),w.label=3;case 3:return w.trys.push([3,5,9,10]),e.objectURLRevoke=!0,[4,e.imageToDataURL(c,l,i)];case 4:return S(w.sent(),a),[3,10];case 5:var E;if("No canvas found!"===(h=w.sent()).message)throw h;if(t.length>1e8)throw Error("Input too long");if(f=(d=ei.createElement("canvas")).getContext("2d"),v=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),g=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),!(f&&v&&g))return[3,8];if(y=v[1]*l,m=g[1]*l,b=function(){eu.canvg.Canvg.fromString(f,t).start(),S(eu.navigator.msSaveOrOpenBlob?d.msToBlob():d.toDataURL(i),a)},d.width=y,d.height=m,eu.canvg)return[3,7];return e.objectURLRevoke=!0,[4,(E=s+"canvg.js",new Promise(function(e,t){var n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=E,r.onload=function(){e()},r.onerror=function(){var e="Error loading script ".concat(E);(0,p.error)(e),t(Error(e))},n.appendChild(r)}))];case 6:w.sent(),w.label=7;case 7:b(),w.label=8;case 8:return[3,10];case 9:if(e.objectURLRevoke)try{ep.revokeObjectURL(c)}catch(e){}return[7];case 10:return[2]}})})},e.prototype.exportChart=function(e,t){return ee(this,void 0,void 0,function(){var n;return et(this,function(r){switch(r.label){case 0:if(!(e=B(this.options,e)).local)return[3,2];return[4,this.localExport(e,t||{})];case 1:return r.sent(),[3,5];case 2:return[4,this.getSVGForExport(e,t)];case 3:if(n=r.sent(),!e.url)return[3,5];return[4,Z.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},e.prototype.fallbackToServer=function(e,t){return ee(this,void 0,void 0,function(){return et(this,function(n){switch(n.label){case 0:if(!1!==e.fallbackToExportServer)return[3,1];return e.error?e.error(e,t):(0,p.error)(28,!0),[3,3];case 1:if("application/pdf"!==e.type)return[3,3];return e.local=!1,[4,this.exportChart(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getChartHTML=function(e){var t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),t.container.querySelectorAll("canvas").forEach(function(e){var n=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(n,0,0,e.width,e.height);A(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML},e.prototype.getFilename=function(){var e,t=null==(e=this.chart.userOptions.title)?void 0:e.text,n=this.options.filename;return n?n.replace(/\//g,"-"):("string"==typeof t&&(n=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!n||n.length<5)&&(n="chart"),n)},e.prototype.getSVG=function(t,n){var r,o,i,a,l=this,s=this.chart,c=B(s.options,t);c.plotOptions=B(s.userOptions.plotOptions,null==t?void 0:t.plotOptions),c.time=B(s.userOptions.time,null==t?void 0:t.time);var u=R("div",void 0,{position:"absolute",top:"-9999em",width:s.chartWidth+"px",height:s.chartHeight+"px"},ei.body),h=s.renderTo.style.width,d=s.renderTo.style.height,f=(null==(r=c.exporting)?void 0:r.sourceWidth)||c.chart.width||/px$/.test(h)&&parseInt(h,10)||(c.isGantt?800:600),v=(null==(o=c.exporting)?void 0:o.sourceHeight)||c.chart.height||/px$/.test(d)&&parseInt(d,10)||400;L(c.chart,{animation:!1,renderTo:u,forExport:!0,renderer:"SVGRenderer",width:f,height:v}),c.exporting&&(c.exporting.enabled=!1),delete c.data,c.series=[],s.series.forEach(function(e){var t;(a=B(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||null==(t=null==c?void 0:c.series)||t.push(a)});var g={};s.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,p.uniqueKey)()),c&&!e.options.isInternal&&(g[e.coll]||(g[e.coll]=!0,c[e.coll]=[]),c[e.coll].push(B(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),c.colorAxis=s.userOptions.colorAxis;var y=function(n){t&&["xAxis","yAxis","series"].forEach(function(e){var r;t[e]&&n.update(((r={})[e]=t[e],r))}),s.axes.forEach(function(e){var r=M(n.axes,function(t){return t.options.internalKey===e.userOptions.internalKey});if(r){var o,i=e.getExtremes(),a=(U(o=(null==t?void 0:t[e.coll])||{})?o:[o])[0],l="min"in a?a.min:i.userMin,s="max"in a?a.max:i.userMax;(void 0!==l&&l!==r.min||void 0!==s&&s!==r.max)&&r.setExtremes(null!=l?l:void 0,null!=s?s:void 0,!0,!1)}});var r,o=n.exporting;return(null==o?void 0:o.options.applyStyleSheets)&&l.applyShadowDOMStyles(n),i=(null==o?void 0:o.getChartHTML(s.styledMode||(null==(r=null==c?void 0:c.exporting)?void 0:r.applyStyleSheets)))||"",D(s,"getSVG",{chartCopy:n}),i=e.sanitizeSVG(i,c),c=void 0,n.destroy(),j(u),i};return n?new Promise(function(e){return new s.constructor(c||{},function(t){var n;null==(n=s.callback)||n.call(this,t),e(y(this))})}):y(new s.constructor(c,s.callback))},e.prototype.applyShadowDOMStyles=function(e){for(var t,n=this.chart,r=[],o=n.container;o&&(!(t=o.getRootNode())||"object"!=typeof t.host);)o=o.parentNode,t=null;null==t||t.querySelectorAll("style").forEach(function(t){var n=t.cloneNode(!0);e.container.appendChild(n),r.push(n)}),N(n,"getSVG",function(){r.forEach(function(e){e.remove()})})},e.prototype.getSVGForExport=function(e,t){return ee(this,void 0,void 0,function(){var n;return et(this,function(r){switch(r.label){case 0:return n=this.options,[4,this.getSVG(B({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:(null==e?void 0:e.sourceWidth)||n.sourceWidth,sourceHeight:(null==e?void 0:e.sourceHeight)||n.sourceHeight}}),!0)];case 1:return[2,r.sent()]}})})},e.prototype.inlineStyles=function(){var t,n,r=e.inlineDenylist,o=e.inlineAllowlist,i={},a=R("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},ei.body),l=null==(t=a.contentWindow)?void 0:t.document;l&&l.body.appendChild(l.createElementNS(ec,"svg")),!function t(a){var s,c,u,p,h,d,f={};if(l&&1===a.nodeType&&-1===e.unstyledElements.indexOf(a.nodeName)){if(s=eu.getComputedStyle(a,null),c="svg"===a.nodeName?{}:eu.getComputedStyle(a.parentNode,null),!i[a.nodeName]){n=l.getElementsByTagName("svg")[0],u=l.createElementNS(a.namespaceURI,a.nodeName),n.appendChild(u);var v=eu.getComputedStyle(u,null),g={};for(var y in v)y.length<1e3&&"string"==typeof v[y]&&!/^\d+$/.test(y)&&(g[y]=v[y]);i[a.nodeName]=g,"text"===a.nodeName&&delete i.text.fill,n.removeChild(u)}for(var m in s)(ea||el||es||Object.hasOwnProperty.call(s,m))&&function(t,n){if(p=h=!1,o.length){for(d=o.length;d--&&!h;)h=o[d].test(n);p=!h}for("transform"===n&&"none"===t&&(p=!0),d=r.length;d--&&!p;){if(n.length>1e3)throw Error("Input too long");p=r[d].test(n)||"function"==typeof t}!p&&(c[n]!==t||"svg"===a.nodeName)&&i[a.nodeName][n]!==t&&(e.inlineToAttributes&&-1===e.inlineToAttributes.indexOf(n)?f[n]=t:t&&a.setAttribute(e.hyphenate(n),t))}(s[m],m);if(A(a,f),"svg"===a.nodeName&&a.setAttribute("stroke-width","1px"),"text"===a.nodeName)return;[].forEach.call(a.children||a.childNodes,t)}}(this.chart.container.querySelector("svg")),n.parentNode.removeChild(n),a.parentNode.removeChild(a)},e.prototype.localExport=function(t,n){return ee(this,void 0,void 0,function(){var r,o,i,a,l,s,c,u,p,h,d,f,v,g,y,m,b,x,w;return et(this,function(S){switch(S.label){case 0:if(r=this.chart,o=this,i=function(t){return e.sanitizeSVG(t||"",l)},s=null,el&&r.styledMode&&!e.inlineAllowlist.length&&e.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),!(el&&("application/pdf"===t.type||r.container.getElementsByTagName("image").length&&"image/svg+xml"!==t.type)||"application/pdf"===t.type&&[].some.call(r.container.getElementsByTagName("image"),function(e){var t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")})))return[3,2];return[4,this.fallbackToServer(t,Error("Image type not supported for this chart/browser."))];case 1:return S.sent(),[2];case 2:u=N(r,"getSVG",function(e){l=e.chartCopy.options,c=(a=e.chartCopy.container.cloneNode(!0))&&a.getElementsByTagName("image")||[]}),S.label=3;case 3:return S.trys.push([3,15,17,18]),[4,this.getSVGForExport(t,n)];case 4:S.sent(),p=c?Array.from(c):[],h=0,d=p,S.label=5;case 5:if(!(h<d.length))return[3,9];if(!(s=(f=d[h]).getAttributeNS("http://www.w3.org/1999/xlink","href")))return[3,7];return e.objectURLRevoke=!1,[4,e.imageToDataURL(s,(null==t?void 0:t.scale)||1,(null==t?void 0:t.type)||"image/png")];case 6:return v=S.sent(),f.setAttributeNS("http://www.w3.org/1999/xlink","href",v),[3,8];case 7:f.parentNode.removeChild(f),S.label=8;case 8:return h++,[3,5];case 9:if(!((g=null==a?void 0:a.querySelector("svg"))&&!(null==(w=null==(x=null==(b=t.chartOptions)?void 0:b.chart)?void 0:x.style)?void 0:w.fontFamily)))return[3,11];return[4,e.inlineFonts(g)];case 10:S.sent(),S.label=11;case 11:if(!((y=i(null==a?void 0:a.innerHTML)).indexOf("<foreignObject")>-1&&"image/svg+xml"!==t.type&&(el||"application/pdf"===t.type)))return[3,12];throw Error("Image type not supported for charts with embedded HTML");case 12:return[4,o.downloadSVG(y,L({filename:o.getFilename()},t))];case 13:S.sent(),S.label=14;case 14:return[2,y];case 15:return m=S.sent(),[4,this.fallbackToServer(t,m)];case 16:return S.sent(),[3,18];case 17:return u(),[7];case 18:return[2]}})})},e.prototype.moveContainers=function(e){var t=this.chart,n=t.scrollablePlotArea;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})},e.prototype.print=function(){var t=this.chart;this.isPrinting||(e.printingChart=t,es||this.beforePrint(),setTimeout(function(){eu.focus(),eu.print(),es||setTimeout(function(){var e;null==(e=t.exporting)||e.afterPrint()},1e3)},1))},e.prototype.render=function(){var e=this,t=e.chart,n=e.options,r=(null==e?void 0:e.isDirty)||!(null==e?void 0:e.svgElements.length);e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==n.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),V(null==n?void 0:n.buttons,function(t){e.addButton(t)}),e.isDirty=!1)},e.prototype.resolveCSSVariables=function(){Array.from(this.chart.container.querySelectorAll("*")).forEach(function(e){["color","fill","stop-color","stroke"].forEach(function(t){var n,r=e.getAttribute(t);(null==r?void 0:r.includes("var("))&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));var o=null==(n=e.style)?void 0:n[t];(null==o?void 0:o.includes("var("))&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})},e.prototype.update=function(e,t){this.isDirty=!0,B(!0,this.options,e),W(t,!0)&&this.chart.redraw()},e.inlineAllowlist=[],e.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],e.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],e.loadEventDeferDelay=150*!!el,e.unstyledElements=["clipPath","defs","desc"],e}();!function(e){function t(e){var t=e.exporting;t&&(t.render(),N(e,"redraw",function(){var e;null==(e=this.exporting)||e.render()}),N(e,"destroy",function(){var e;null==(e=this.exporting)||e.destroy()}))}function n(){var t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),y.compose(t).navigation.addUpdate(function(e,n){t.exporting&&(t.exporting.isDirty=!0,B(!0,t.options.navigation,e),W(n,!0)&&t.redraw())}))}function r(e){var t,n,r,o,i=e.alignTo,a=e.key,l=e.textPxLength,s=this.options.exporting,c=B(null==(t=this.options.navigation)?void 0:t.buttonOptions,null==(n=null==s?void 0:s.buttons)?void 0:n.contextButton),u=c.align,p=c.buttonSpacing,h=c.verticalAlign,d=c.width,f=i.width-l,v=(void 0===d?0:d)+(void 0===p?0:p);(null==(r=null==s?void 0:s.enabled)||r)&&"title"===a&&"right"===u&&"top"===h&&f<2*v&&(f<v?i.width-=v:(null==(o=this.title)?void 0:o.alignValue)!=="left"&&(i.x-=v-f/2))}e.compose=function(o,i){k.compose(i),_.compose(o),q(eo,"Exporting")&&(L(g().prototype,{exportChart:function(e,t){return ee(this,void 0,void 0,function(){var n;return et(this,function(r){switch(r.label){case 0:return[4,null==(n=this.exporting)?void 0:n.exportChart(e,t)];case 1:return r.sent(),[2]}})})},getChartHTML:function(e){var t;return null==(t=this.exporting)?void 0:t.getChartHTML(e)},getFilename:function(){var e;return null==(e=this.exporting)?void 0:e.getFilename()},getSVG:function(e){var t;return null==(t=this.exporting)?void 0:t.getSVG(e,!1)},print:function(){var e;return null==(e=this.exporting)?void 0:e.print()}}),o.prototype.callbacks.push(t),N(o,"afterInit",n),N(o,"layOutTitle",r),es&&eu.matchMedia("print").addListener(function(t){var n,r;e.printingChart&&(t.matches?null==(n=e.printingChart.exporting)||n.beforePrint():null==(r=e.printingChart.exporting)||r.afterPrint())}),er(T))}}(eh||(eh={}));var ed=h();ed.Exporting=eh,ed.HttpUtilities=ed.HttpUtilities||Z,ed.ajax=ed.HttpUtilities.ajax,ed.getJSON=ed.HttpUtilities.getJSON,ed.post=ed.HttpUtilities.post,eh.compose(ed.Chart,ed.Renderer);var ef=h();return u.default}()});