1!/** 2 * Highcharts JS v13.0.0 (2026-06-11) 3 * @module highcharts/modules/export-data 4 * @requires highcharts 5 * @requires highcharts/modules/exporting 6 * 7 * Export data module 8 * 9 * (c) 2010-2026 Highsoft AS 10 * Author: Torstein Hønsi 11 * 12 * A commercial license may be required depending on use, 13 * see www.highcharts.com/license 14 */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/export-data",["highcharts/highcharts"],function(t){return e(t,t.AST,t.Chart)}):"object"==typeof exports?exports["highcharts/modules/export-data"]=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,a)=>(()=>{"use strict";var o,n={660:t=>{t.exports=e},944:e=>{e.exports=t},960:t=>{t.exports=a}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var a=i[t]={exports:{}};return n[t](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var a in e)r.o(e,a)&&!r.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};r.d(l,{default:()=>k});var s=r(944),h=r.n(s);let{isSafari:c,win:d,win:{document:p}}=h(),u=d.URL||d.webkitURL||d;function g(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&d.atob&&d.ArrayBuffer&&d.Uint8Array&&d.Blob&&u.createObjectURL){let t=d.atob(e[3]),a=new d.ArrayBuffer(t.length),o=new d.Uint8Array(a);for(let e=0;e<o.length;++e)o[e]=t.charCodeAt(e);return u.createObjectURL(new d.Blob([o],{type:e[1]}))}}function f(t,e){let a=d.navigator,o=p.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&a.msSaveOrOpenBlob)return void a.msSaveOrOpenBlob(t,e);if(t=""+t,a.userAgent.length>1e3)throw Error("Input too long");let n=/Edge\/\d+/.test(a.userAgent);if((c&&"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!==o.download)o.href=t,o.download=e,p.body.appendChild(o),o.click(),p.body.removeChild(o);else try{if(!d.open(t,"chart"))throw Error("Failed to open window")}catch{d.location.href=t}}function m(t,e){let a=d.navigator,o=d.URL||d.webkitURL||d;try{if(a.msSaveOrOpenBlob&&d.MSBlobBuilder){let e=new d.MSBlobBuilder;return e.append(t),e.getBlob("image/svg+xml")}return o.createObjectURL(new d.Blob(["\uFEFF"+t],{type:e}))}catch(t){}}var x=r(660),b=r.n(x),y=r(960),w=r.n(y);let T={exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:"\n"},menuItemDefinitions:{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.exporting?.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.exporting?.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){this.exporting?.wrapLoading(this.exporting.toggleDataTable)}}},showExportInProgress:!0,showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table",exportInProgress:"Exporting..."}},{getOptions:v,setOptions:D}=h(),{composed:S,doc:E,win:C}=h();!function(t){function e(){this.wrapLoading(()=>{let t=this.getCSV(!0);f(m(t,"text/csv")||"data:text/csv,\uFEFF"+encodeURIComponent(t),this.getFilename()+".csv")})}function a(){this.wrapLoading(()=>{let t='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e<style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+this.getTable(!0)+"</body></html>";f(m(t,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+C.btoa(unescape(encodeURIComponent(t))),this.getFilename()+".xls")})}function o(t){let e="",a=this.getDataRows(),o=this.options?.csv,n=(0,s.pick)(o?.decimalPoint,o?.itemDelimiter!==","&&t?1.1.toLocaleStr
14ing()[1]:"."),i=(0,s.pick)(o?.itemDelimiter,","===n?";":","),r=o?.lineDelimiter;return a.forEach((t,o)=>{let l="",s=t.length;for(;s--;)"string"==typeof(l=t[s])&&(l=`"${l}"`),"number"==typeof l&&"."!==n&&(l=l.toString().replace(".",n)),t[s]=l;t.length=a.length?a[0].length:0,e+=t.join(i),o<a.length-1&&(e+=r)}),e}function n(t){let e,a,o=this.chart,n=o.hasParallelCoordinates,i=o.time,r=this.options?.csv||{},l=o.xAxis,h={},c=[],d=[],p=[],u=o.options.lang.exportData,g=u?.categoryHeader,f=u?.categoryDatetimeHeader,m=function(e,a,o){if(r.columnHeaderFormatter){let t=r.columnHeaderFormatter(e,a,o);if(!1!==t)return t}return!e&&g?g:!e.bindAxes&&f&&g?e.options.title&&e.options.title.text||(e.dateTime?f:g):t?{columnTitle:((o||0)>1?a:e.name)||"",topLevelColumnTitle:e.name}:e.name+((o||0)>1?" ("+a+")":"")},x=function(t,e,a){let o={},n={};return e.forEach(function(e){let i=(t.keyToAxis&&t.keyToAxis[e]||e)+"Axis",r=(0,s.isNumber)(a)?t.chart[i][a]:t[i];o[e]=r&&r.categories||[],n[e]=r&&r.dateTime}),{categoryMap:o,dateTimeValueAxisMap:n}},b=function(t,e){let a=t.pointArrayMap||["y"];return t.data.some(t=>void 0!==t.y&&t.name)&&e&&!e.categories&&"name"!==t.exportKey?["x",...a]:a},y=[],w,T,v,D=0,S,E;for(S in o.series.forEach(function(e){let a=e.options.keys,o=e.xAxis,c=a||b(e,o),u=c.length,g=!e.requireSorting&&{},f=l.indexOf(o),w=x(e,c),T,S;if(!1!==e.options.includeInDataExport&&!e.options.isInternal&&!1!==e.visible){for((0,s.find)(y,function(t){return t[0]===f})||y.push([f,D]),S=0;S<u;)v=m(e,c[S],c.length),p.push(v.columnTitle||v),t&&d.push(v.topLevelColumnTitle||v),S++;T={chart:e.chart,autoIncrement:e.autoIncrement,options:e.options,pointArrayMap:e.pointArrayMap,index:e.index,xAxis:e.xAxis};let a=Array(e.dataTable.rowCount).fill(void 0).map((t,a)=>e.dataTable.getRowObject(a)),l=e.getColumn("x");(a||[]).forEach(function(t,a){let d,p,m,b={series:T};n&&(w=x(e,c,a)),e.pointClass.prototype.applyOptions.call(b,t,l[a]);let y=e.data[a]&&e.data[a].name;if(d=(b.x??"")+","+y,S=0,(!o||"name"===e.exportKey||!n&&o&&o.hasNames&&y)&&(d=y),g&&(g[d]&&(d+="|"+a),g[d]=!0),h[d]){let t=`${d},${h[d].pointers[e.index]}`,a=d;h[d].pointers[e.index]&&(h[t]||(h[t]=[],h[t].xValues=[],h[t].pointers=[]),d=t),h[a].pointers[e.index]+=1}else{h[d]=[],h[d].xValues=[];let t=[];for(let a=0;a<e.chart.series.length;a++)t[a]=0;h[d].pointers=t,h[d].pointers[e.index]=1}for(h[d].x=b.x,h[d].name=y,h[d].xValues[f]=b.x;S<u;)p=c[S],m=e.pointClass.prototype.getNestedProperty.apply(b,[p]),h[d][D+S]=(0,s.pick)(w.categoryMap[p][m],w.dateTimeValueAxisMap[p]?i.dateFormat(r.dateFormat,m):null,m),S++}),D+=S}}),h)Object.hasOwnProperty.call(h,S)&&c.push(h[S]);for(T=t?[d,p]:[p],D=y.length;D--;)e=y[D][0],a=y[D][1],w=l[e],c.sort(function(t,a){return t.xValues[e]-a.xValues[e]}),E=m(w),T[0].splice(a,0,E),t&&T[1]&&T[1].splice(a,0,E),c.forEach(function(t){let e=t.name;w&&!(0,s.defined)(e)&&(w.dateTime?(t.x instanceof Date&&(t.x=t.x.getTime()),e=i.dateFormat(r.dateFormat,t.x)):e=w.categories?(0,s.pick)(w.names[t.x],w.categories[t.x],t.x):t.x),t.splice(a,0,e)});return T=T.concat(c),(0,s.fireEvent)(o,"exportData",{dataRows:T}),T}function i(t){let e=t=>{if(!t.tagName||"#text"===t.tagName)return t.textContent||"";let a=t.attributes,o=`<${t.tagName}`;return a&&Object.keys(a).forEach(t=>{let e=a[t];o+=` ${t}="${e}"`}),o+=">",o+=t.textContent||"",(t.children||[]).forEach(t=>{o+=e(t)}),o+=`</${t.tagName}>`};return e(this.getTableAST(t))}function r(t){let e=0,a=[],o=this,n=o.chart,i=n.options,r=t?1.1.toLocaleString()[1]:".",l=(0,s.pick)(o.options.useMultiLevelHeaders,!0),h=o.getDataRows(l),c=l?h.shift():null,d=h.shift(),p=function(t,e){let a=t.length;if(e.length!==a)return!1;for(;a--;)if(t[a]!==e[a])return!1;return!0},u=function(t,e,a,o){let i=[],l=(0,s.pick)(o,""),h="highcharts-text"+(e?" "+e:"");"number"==typeof l?(l=n.numberFormatter(l,-1,r,"th"===t?"":void 0),h="highcharts-number"):o||(h="highcharts-empty"),"th"===t&&"col"===a.scope&&i.push({tagName:"button",textContent:l,style:{color:"inherit",borderWidth:0,backgroundColor:"transparent",cursor:"pointer",padding:0,fontSize:"inherit",fontWeight:"inherit"}});let c={tagName:t,attributes:a=(0,s.extend)({class:h},a)};return i.length>0?c.children=i:c.textContent=l,c},{tableCaption:g}=o.options||{};!1!==g&&a.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:"string"==typeof g?g:i.title?.text||i.lang.chartTitle});for(let t=0,a=h.length;t<a;++t)h[t].length>e&&(e=h[t].length);a.push(function(t,e,a){let n=[],i=0,r=a||e&&e.length,s,h=0,c;if(l&&t&&e&&!p(t,e)){let a=[];for(;i<r;++i)if((s=t[i])===t[i+1])++h;else if(h)a.push(u("th","highcharts-table-topheading",{scope:"col",colspan:h+1},s)),h=0;else{s===e[i]?o.options.useRowspanHeaders?(c=2,delete e[i]):(c=1,e[i]=""):c=1;let t=u("th","highcharts-table-topheading",{scope:"col"},s);c>1&&t.attributes&&(t.attributes.valign="top",t.attributes.rowspan=c),a.push(t)}n.push({tagName:"tr",children:a})}if(e){let t=[];for(i=0,r=e.length;i<r;++i)void 0!==e[i]&&t.push(u("th",null,{scope:"col"},e[i]));n.push({tagName:"tr",children:t})}return{tagName:"thead",children:n}}(c,d||[],Math.max(e,d?.length||0)));let f=[];h.forEach(function(t){let a=[];for(let o=0;o<e;o++)a.push(u(o?"td":"th",null,o?{}:{scope:"row"},t[o]));f.push({tagName:"tr",children:a})}),a.push({tagName:"tbody",children:f});let m={tree:{tagName:"table",id:`highcharts-data-table-${n.index}`,children:a}};return(0,s.fireEvent)(n,"afterGetTableAST",m),m.tree}function l(){this.toggleDataTable(!1)}function h(t){let e=this.chart,a=(t=(0,s.pick)(t,!this.isDataTableVisible))&&!this.dataTableDiv;if(a&&(this.dataTableDiv=E.createElement("div"),this.dataTableDiv.className="highcharts-data-table",e.renderTo.parentNode.insertBefore(this.dataTableDiv,e.renderTo.nextSibling)),this.dataTableDiv){let o=this.dataTableDiv.style,n=o.display;o.display=t?"block":"none",t?(this.dataTableDiv.innerHTML=b().emptyHTML,new(b())([this.getTableAST()]).addToDOM(this.dataTableDiv),(0,s.fireEvent)(e,"afterViewData",{element:this.dataTableDiv,wasHidden:a||n!==o.display})):(0,s.fireEvent)(e,"afterHideData")}this.isDataTableVisible=t;let o=this.divElements,n=this.options,i=n.buttons?.contextButton.menuItems,r=e.options.lang;
14if(n&&n.menuItemDefinitions&&r&&r.viewData&&r.hideData&&i&&o){let t=o[i.indexOf("viewData")];t&&b().setElementHTML(t,this.isDataTableVisible?r.hideData:r.viewData)}}function c(){this.toggleDataTable(!0)}function d(t){let e=this.chart,a=!!this.options.showExportInProgress,o=C.requestAnimationFrame||setTimeout;o(()=>{a&&e.showLoading(e.options.lang.exportInProgress),o(()=>{try{t.call(this)}finally{a&&e.hideLoading()}})})}function p(){let t=this.exporting,e=t?.dataTableDiv,a=this.options.lang,o=a?.decimalPoint||".",n=a?.thousandsSep||",",i=(t,e)=>t.children[e].textContent||"",r=t=>{if(!t)return null;let e=t;n&&(e=e.split(n).join(""));let a=Number(e=e.replace(o,"."));return(0,s.isNumber)(a)?a:null};if(e&&t.options.allowTableSorting){let a=e.querySelector("thead tr");a&&a.childNodes.forEach(a=>{let o=e.querySelector("tbody");a.addEventListener("click",function(){let n=[...e.querySelectorAll("tr:not(thead tr)")],l=[...a.parentNode.children];if(t){let e,s;n.sort((e=l.indexOf(a),s=t.ascendingOrderInTable=!t.ascendingOrderInTable,(t,a)=>{let o=i(s?t:a,e),n=i(s?a:t,e),l=r(o),h=r(n);return null!==l&&null!==h?l-h:o.localeCompare(n)})).forEach(t=>{o?.appendChild(t)}),l.forEach(t=>{["highcharts-sort-ascending","highcharts-sort-descending"].forEach(e=>{t.classList.contains(e)&&t.classList.remove(e)}),t!==a&&t.removeAttribute("aria-sort")}),a.classList.add(t.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending"),a.setAttribute("aria-sort",t.ascendingOrderInTable?"ascending":"descending")}})})}}function u(){this.options?.exporting?.showTable&&!this.options.chart.forExport&&this.exporting?.viewData()}function g(){this.exporting?.dataTableDiv?.remove()}t.compose=function(t,f,m){if(!(0,s.pushUnique)(S,"ExportData"))return;(0,s.extend)(w().prototype,{downloadCSV:function(){return this.exporting?.downloadCSV()},downloadXLS:function(){return this.exporting?.downloadXLS()},getCSV:function(t){return this.exporting?.getCSV(t)},getDataRows:function(t){return this.exporting?.getDataRows(t)},getTable:function(t){return this.exporting?.getTable(t)},getTableAST:function(t){return this.exporting?.getTableAST(t)},hideData:function(){return this.exporting?.hideData()},toggleDataTable:function(t){return this.exporting?.toggleDataTable(t)},viewData:function(){return this.exporting?.viewData()}});let x=f.prototype;if(!x.downloadCSV){(0,s.addEvent)(t,"afterViewData",p),(0,s.addEvent)(t,"render",u),(0,s.addEvent)(t,"destroy",g),x.downloadCSV=e,x.downloadXLS=a,x.getCSV=o,x.getDataRows=n,x.getTable=i,x.getTableAST=r,x.hideData=l,x.toggleDataTable=h,x.wrapLoading=d,x.viewData=c,D(T);let f=v().exporting?.buttons?.contextButton?.menuItems;f&&f.push("separator","downloadCSV","downloadXLS","viewData");let{arearange:b,gantt:y,map:w,mapbubble:S,treemap:E,xrange:C}=m.types;b&&(b.prototype.keyToAxis={low:"y",high:"y"}),y&&(y.prototype.exportKey="name",y.prototype.keyToAxis={start:"x",end:"x"}),w&&(w.prototype.exportKey="name"),S&&(S.prototype.exportKey="name"),E&&(E.prototype.exportKey="name"),C&&(C.prototype.keyToAxis={x2:"x"})}}}(o||(o={}));let A=o,L=h();L.dataURLtoBlob=L.dataURLtoBlob||g,L.downloadURL=L.downloadURL||f,A.compose(L.Chart,L.Exporting,L.Series);let k=h();return l.default})());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.