!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/offline-exporting
 * @requires highcharts
 * @requires highcharts/modules/exporting
 *
 * Client side exporting module
 *
 * (c) 2015-2026 Highsoft AS
 * Author: Torstein Honsi / Oystein Moseng
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.AST,t._Highcharts.Chart):"function"==typeof define&&define.amd?define("highcharts/modules/offline-exporting",["highcharts/highcharts"],function(t){return e(t,t.AST,t.Chart)}):"object"==typeof exports?exports["highcharts/modules/offline-exporting"]=e(t._Highcharts,t._Highcharts.AST,t._Highcharts.Chart):t.Highcharts=e(t.Highcharts,t.Highcharts.AST,t.Highcharts.Chart)}("u"<typeof window?this:window,(t,e,o)=>(()=>{"use strict";var r,n={660:t=>{t.exports=e},944:e=>{e.exports=t},960:t=>{t.exports=o}},a={};function i(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={exports:{}};return n[t](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};i.d(l,{default:()=>N});var s=i(944),c=i.n(s);let{isSafari:d,win:f,win:{document:h}}=c(),{error:p}=c(),u=f.URL||f.webkitURL||f;function g(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&f.atob&&f.ArrayBuffer&&f.Uint8Array&&f.Blob&&u.createObjectURL){let t=f.atob(e[3]),o=new f.ArrayBuffer(t.length),r=new f.Uint8Array(o);for(let e=0;e<r.length;++e)r[e]=t.charCodeAt(e);return u.createObjectURL(new f.Blob([r],{type:e[1]}))}}function y(t,e){let o=f.navigator,r=h.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&o.msSaveOrOpenBlob)return void o.msSaveOrOpenBlob(t,e);if(t=""+t,o.userAgent.length>1e3)throw Error("Input too long");let n=/Edge\/\d+/.test(o.userAgent);if((d&&"string"==typeof t&&0===t.indexOf("data:application/pdf")||n||t.length>2e6)&&!(t=g(t)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=t,r.download=e,h.body.appendChild(r),r.click(),h.body.removeChild(r);else try{if(!f.open(t,"chart"))throw Error("Failed to open window")}catch{f.location.href=t}}function m(t){return new Promise((e,o)=>{let r=h.getElementsByTagName("head")[0],n=h.createElement("script");n.type="text/javascript",n.src=t,n.onload=()=>{e()},n.onerror=()=>{let e=`Error loading script ${t}`;p(e),o(Error(e))},r.appendChild(n)})}var w=i(660),b=i.n(w),v=i(960),x=i.n(v);let E={exporting:{}},{getOptions:F,setOptions:A}=c(),{composed:S,doc:j,win:C}=c(),{addEvent:H,extend:L,pushUnique:B}=c();!function(t){async function e(t,e,n,a){var i,l;let s,c,d,f,h,p=(i=t,l=a,d=j.createElement("div"),b().setElementHTML(d,i),f=d.getElementsByTagName("text"),h=function(t,e){let o=t;for(;o&&o!==d;){if(o.style[e]){let r=o.style[e];"fontSize"===e&&/em$/.test(r)&&(r=Math.round(16*parseFloat(r))+"px"),t.style[e]=r;break}o=o.parentNode}},[].forEach.call(f,function(t){for(["fontFamily","fontSize"].forEach(e=>{h(t,e)}),t.style.fontFamily=l?.normal?"HighchartsFont":String(t.style.fontFamily&&t.style.fontFamily.split(" ").splice(-1)),s=t.getElementsByTagName("title"),[].forEach.call(s,function(e){t.removeChild(e)}),c=t.getElementsByClassName("highcharts-text-outline");c.length>0;){let t=c[0];t.parentNode&&t.parentNode.removeChild(t)}}),d.querySelector("svg"));p&&(await o(p,a),y(await r(p,0,e),n))}async function o(t,e){let o,r,n=(t,e)=>{C.jspdf.jsPDF.API.events.push(["initialized",function(){this.addFileToVFS(t,e),this.addFont(t,"HighchartsFont",t),this.getFontList()?.HighchartsFont||this.setFont("HighchartsFont")}])};for(let a of(e&&(r=t.textContent||"",!/[^\u0000-\u007F\u200B]+/.test(r))&&(e=void 0),["normal","italic","bold","bolditalic"])){let t=e?.[a];if(t)try{let e=await C.fetch(t);if(!e.ok)throw Error(`Failed to fetch font: ${t}`);let r=await e.blob(),i=new FileReader,l=await new Promise((t,e)=>{i.onloadend=()=>{"string"==typeof i.result?t(i.result.split(",")[1]):e(Error("Failed to read font as base64"))},i.onerror=e,i.readAsDataURL(r)});n(a,l),"normal"===a&&(o=l)}catch{}else o&&n(a,o)}}async function r(t,e,o){let r=(Number(t.getAttribute("width"))+2*e)*o,n=(Number(t.getAttribute("height"))+2*e)*o,a=new C.jspdf.jsPDF(n>r?"p":"l","pt",[r,n]);[].forEach.call(t.querySelectorAll('*[visibility="hidden"]'),function(t){t.parentNode.removeChild(t)});let i=t.querySelectorAll("linearGradient");for(let t=0;t<i.length;t++){let e=i[t].querySelectorAll("stop"),o=0;for(;o<e.length&&"0"===e[o].getAttribute("offset")&&"0"===e[o+1].getAttribute("offset");)e[o].remove(),o++}return[].forEach.call(t.querySelectorAll("tspan"),t=>{"​"===t.textContent&&(t.textContent=" ",t.setAttribute("dx",-5))}),await a.svg(t,{x:0,y:0,width:r,height:n,removeInvalid:!0}),a.output("datauristring")}t.compose=function(t){if(H(t,"downloadSVG",async function(t){let{svg:o,exportingOptions:r,exporting:n,preventDefault:a}=t;if(r?.type==="application/pdf"){a?.();try{let{type:t,filename:n,scale:a,libURL:i}=c().Exporting.prepareImageOptions(r);"application/pdf"===t&&(C.jspdf?.jsPDF||(await m(`${i}jspdf.js`),await m(`${i}svg2pdf.js`)),await e(o,a,n,r?.pdfFont))}catch(t){await n?.fallbackToServer(r,t)}}}),!B(S,"OfflineExporting"))return;L(x().prototype,{exportChartLocal:async function(t,e){await this.exporting?.exportChart(t,e)}}),A(E);let o=F().exporting?.buttons?.contextButton?.menuItems;o&&o.push("downloadPDF")},t.downloadSVGLocal=async function(t,e){await c().Exporting.prototype.downloadSVG.call(void 0,t,e)}}(r||(r={}));let O=r,U=c();U.dataURLtoBlob=U.dataURLtoBlob||g,U.downloadSVGLocal=O.downloadSVGLocal,U.downloadURL=U.downloadURL||y,O.compose(U.Exporting);let N=c();return l.default})());