PageSourceSearch

https://www.annualreport.sandvik/en/2025/_assets/js/exporting.chunk.js?h=d0Wm_4De

js annualreport.sandvik collected 2026-10-02 17:38:45 UTC 28,823 bytes, 2 lines download raw bytes

1import{g as qt}from"./main.js";function Wt($,X){for(var P=0;P<X.length;P++){const N=X[P];if(typeof N!="string"&&!Array.isArray(N)){for(const D in N)if(D!=="default"&&!(D in $)){const A=Object.getOwnPropertyDescriptor(N,D);A&&Object.defineProperty($,D,A.get?A:{enumerable:!0,get:()=>N[D]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}var J={exports:{}},zt=J.exports,dt;function Kt(){return dt||(dt=1,(function($,X){(function(P,N){$.exports=N(P._Highcharts,P._Highcharts.AST,P._Highcharts.Chart)})("u"<typeof window?zt:window,(P,N,D)=>(()=>{var A,Y,ft={660:s=>{s.exports=N},944:s=>{s.exports=P},960:s=>{s.exports=D}},tt={};function E(s){var t=tt[s];if(t!==void 0)return t.exports;var e=tt[s]={exports:{}};return ft[s](e,e.exports,E),e.exports}E.n=s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return E.d(t,{a:t}),t},E.d=(s,t)=>{for(var e in t)E.o(t,e)&&!E.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},E.o=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var et={};E.d(et,{default:()=>Vt});var mt=E(944),O=E.n(mt),yt=E(660),W=E.n(yt),xt=E(960),wt=E.n(xt),nt=A||(A={});nt.compose=function(s){return s.navigation||(s.navigation=new it(s)),s};class it{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}nt.Additions=it;let vt=A,{isSafari:bt,win:C,win:{document:G}}=O(),{error:St}=O(),ot=C.URL||C.webkitURL||C;function Z(s,t){let e=C.navigator,i=G.createElement("a");if(typeof s!="string"&&!(s instanceof String)&&e.msSaveOrOpenBlob)return void e.msSaveOrOpenBlob(s,t);if(s=""+s,e.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(e.userAgent);if((bt&&typeof s=="string"&&s.indexOf("data:application/pdf")===0||o||s.length>2e6)&&!(s=(function(n){let r=n.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(r&&r.length>3&&C.atob&&C.ArrayBuffer&&C.Uint8Array&&C.Blob&&ot.createObjectURL){let a=C.atob(r[3]),c=new C.ArrayBuffer(a.length),l=new C.Uint8Array(c);for(let p=0;p<l.length;++p)l[p]=a.charCodeAt(p);return ot.createObjectURL(new C.Blob([l],{type:r[1]}))}})(s)||""))throw Error("Failed to convert to blob");if(i.download!==void 0)i.href=s,i.download=t,G.body.appendChild(i),i.click(),G.body.removeChild(i);else try{if(!C.open(s,"chart"))throw Error("Failed to open window")}catch{C.location.href=s}}let{isTouchDevice:Et}=O(),Ct={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.5.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${O().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 s;(s=this.fullscreen)==null||s.toggle()}},printChart:{textKey:"printChart",onclick:function(){var s;(s=this.exporting)==null||s.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){var s;await((s=this.exporting)==null?void 0:s.exportChart())}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){var s;await((s=this.exporting)==null?void 0:s.exportChart({type:"image/jpeg"}))}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){var s;await((s=this.exporting)==null?void 0:s.exportChart({type:"application/pdf"}))}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){var s;await((s=this.exporting)==null?void 0:s.exportChart({type:"image/svg+xml"}))}}}},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:Et?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};(function(s){let t=[];function e(o,n,r,a){return[["M",o,n+2.5],["L",o+r,n+2.5],["M",o,n+a/2+.5],["L",o+r,n+a/2+.5],["M",o,n+a-1.5],["L",o+r,n+a-1.5]]}function i(o,n,r,a){let c=a/3-2;return[].concat(this.circle(r-c,n,c,c),this.circle(r-c,n+c+4,c,c),this.circle(r-c,n+2*(c+4),c,c))}
1s.compose=function(o){if(t.indexOf(o)===-1){t.push(o);let n=o.prototype.symbols;n.menu=e,n.menuball=i.bind(n)}}})(Y||(Y={}));let Ot=Y,{composed:Tt}=O(),{addEvent:Q,fireEvent:rt,pushUnique:kt}=O();function Ft(){this.fullscreen=new st(this)}class st{static compose(t){kt(Tt,"Fullscreen")&&Q(t,"beforeRender",Ft)}constructor(t){this.chart=t,this.isOpen=!1;const e=t.renderTo;!this.browserProps&&(typeof e.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:e.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:e.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:e.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let t=this,e=t.chart,i=e.options.chart;rt(e,"fullscreenClose",void 0,function(){t.isOpen&&t.browserProps&&e.container.ownerDocument instanceof Document&&e.container.ownerDocument[t.browserProps.exitFullscreen](),t.unbindFullscreenEvent&&(t.unbindFullscreenEvent=t.unbindFullscreenEvent()),e.setSize(t.origWidth,t.origHeight,!1),t.origWidth=void 0,t.origHeight=void 0,i.width=t.origWidthOption,i.height=t.origHeightOption,t.origWidthOption=void 0,t.origHeightOption=void 0,t.isOpen=!1,t.setButtonText()})}open(){let t=this,e=t.chart,i=e.options.chart;rt(e,"fullscreenOpen",void 0,function(){if(i&&(t.origWidthOption=i.width,t.origHeightOption=i.height),t.origWidth=e.chartWidth,t.origHeight=e.chartHeight,t.browserProps){let o=Q(e.container.ownerDocument,t.browserProps.fullscreenChange,function(){t.isOpen?(t.isOpen=!1,t.close()):(e.setSize(null,null,!1),t.isOpen=!0,t.setButtonText())}),n=Q(e,"destroy",o);t.unbindFullscreenEvent=()=>{o(),n()};let r=e.renderTo[t.browserProps.requestFullscreen]();r&&r.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){var r,a;let t=this.chart,e=(r=t.exporting)==null?void 0:r.divElements,i=t.options.exporting,o=i&&i.buttons&&i.buttons.contextButton.menuItems,n=t.options.lang;if(i!=null&&i.menuItemDefinitions&&(n!=null&&n.exitFullscreen)&&n.viewFullscreen&&o&&e){let c=e[o.indexOf("viewFullscreen")];c&&W().setElementHTML(c,this.isOpen?n.exitFullscreen:((a=i.menuItemDefinitions.viewFullscreen)==null?void 0:a.textKey)||n.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:at}=O(),{discardElement:Rt,objectEach:lt}=O(),z={ajax:function(s){var o;let t={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},e=new XMLHttpRequest;function i(n,r){s.error&&s.error(n,r)}if(!s.url)return!1;e.open((s.type||"get").toUpperCase(),s.url,!0),(o=s.headers)!=null&&o["Content-Type"]||e.setRequestHeader("Content-Type",t[s.dataType||"json"]||t.text),lt(s.headers,function(n,r){e.setRequestHeader(r,n)}),s.responseType&&(e.responseType=s.responseType),e.onreadystatechange=function(){var r;let n;if(e.readyState===4){if(e.status===200){if(s.responseType!=="blob"&&(n=e.responseText,s.dataType==="json"))try{n=JSON.parse(n)}catch(a){if(a instanceof Error)return i(e,a)}return(r=s.success)==null?void 0:r.call(s,n,e)}i(e,e.responseText)}},s.data&&typeof s.data!="string"&&(s.data=JSON.stringify(s.data)),e.send(s.data)},getJSON:function(s,t){z.ajax({url:s,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};z.post=async function(s,t,e){let i=new at.FormData;lt(t,function(n,r){i.append(r,n)}),i.append("b64","true");let o=await at.fetch(s,{method:"POST",body:i,...e});if(o.ok){let n=await o.text(),r=document.createElement("a");r.href=`data:${t.type};base64,${n}`,r.download=t.filename,r.click(),Rt(r)}};let{defaultOptions:Pt,setOptions:Nt}=O(),{composed:Lt,doc:H,isFirefox:Mt,isMS:V,isSafari:K,SVG_NS:Dt,win:S}=O(),{addEvent:L,clearTimeout:_,createElement:I,css:k,discardElement:ct,error:At,extend:U,find:Ht,fireEvent:B,isObject:Ut,merge:F,objectEach:jt,pick:q,pushUnique:It,removeEvent:Bt,splat:$t,uniqueKey:Gt}=O();W().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"),W().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let pt=S.URL||S.webkitURL||S;class u{constructor(t,e){this.options={},this.chart=t,this.options=e,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(t){return t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(t,e,i){let o=await u.loadImage(t),n=H.createElement("canvas"),r=n==null?void 0:n.getContext("2d");if(r)return n.height=o.height*e,n.width=o.width*e,r.drawImage(o,0,0,n.width,n.height),n.toDataURL(i);throw Error("No canvas found!")}static async fetchCSS(t){let e=await fetch(t).then(o=>o.text()),i=new CSSStyleSheet;return i.replaceSync(e),i}static async handleStyleSheet(t,e){try{for(let i of Array.from(t.cssRules)){if(i instanceof CSSImportRule){let o=await u.fetchCSS(i.href);await u.handleStyleSheet(o,e)}if(i instanceof CSSFontFaceRule){let o=i.cssText;if(t.href){let n=t.href,r=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;o=o.replace(r,(a,c,l)=>{let p=new URL(l,n).href;return`url(${c}${p}${c})`})}
1e.push(o)}}}catch{if(t.href){let i=await u.fetchCSS(t.href);await u.handleStyleSheet(i,e)}}}static async fetchStyleSheets(){let t=[];for(let e of Array.from(H.styleSheets))await u.handleStyleSheet(e,t);return t}static async inlineFonts(t){let e=await u.fetchStyleSheets(),i=/url\(([^)]+)\)/g,o=[],n=e.join(`
2`),r;for(;r=i.exec(n);){let p=r[1].replace(/['"]/g,"");o.includes(p)||o.push(p)}let a=p=>{let m="",h=new Uint8Array(p);for(let g=0;g<h.byteLength;g++)m+=String.fromCharCode(h[g]);return btoa(m)},c={};for(let p of o)try{let m=await fetch(p),h=m.headers.get("Content-Type")||"",g=a(await m.arrayBuffer());c[p]=`data:${h};base64,${g}`}catch{}n=n.replace(i,(p,m)=>{let h=m.replace(/['"]/g,"");return`url(${c[h]||h})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=n,t.append(l),t}static loadImage(t){return new Promise((e,i)=>{let o=new S.Image;o.crossOrigin="Anonymous",o.onload=()=>{setTimeout(()=>{e(o)},u.loadEventDeferDelay)},o.onerror=n=>{i(n)},o.src=t})}static prepareImageOptions(t){var o;let e=(t==null?void 0:t.type)||"image/png",i=(t==null?void 0:t.libURL)||((o=Pt.exporting)==null?void 0:o.libURL);return{type:e,filename:((t==null?void 0:t.filename)||"chart")+"."+(e==="image/svg+xml"?"svg":e.split("/")[1]),scale:(t==null?void 0:t.scale)||1,libURL:(i==null?void 0:i.slice(-1))!=="/"?i+"/":i}}static sanitizeSVG(t,e){var r;let i=t.indexOf("</svg>")+6,o=t.indexOf("<foreignObject")>-1,n=t.substr(i);return t=t.substr(0,i),o?t=t.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />"):n&&((r=e==null?void 0:e.exporting)!=null&&r.allowHTML)&&(n='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+n.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"</body></foreignObject>",t=t.replace("</svg>",n+"</svg>")),t=t.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(/\n+/g," ").replace(/&nbsp;/g," ").replace(/&shy;/g,"­")}static svgToDataURL(t){let e=S.navigator.userAgent,i=e.indexOf("WebKit")>-1&&0>e.indexOf("Chrome");try{if(!i&&t.indexOf("<foreignObject")===-1)return pt.createObjectURL(new S.Blob([t],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}addButton(t){var g;let e,i=this,o=i.chart,n=o.renderer,r=F((g=o.options.navigation)==null?void 0:g.buttonOptions,t),a=r.onclick,c=r.menuItems,l=r.symbolSize||12;if(r.enabled===!1||!r.theme)return;let p=o.styledMode?{}:r.theme,m=()=>{};a?m=function(y){y&&y.stopPropagation(),a.call(o,y)}:c&&(m=function(y){y&&y.stopPropagation(),i.contextMenu(h.menuClassName,c,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),r.text&&r.symbol?p.paddingLeft=q(p.paddingLeft,30):r.text||U(p,{width:r.width,height:r.height,padding:0});let h=n.button(r.text||"",0,0,m,p,void 0,void 0,void 0,void 0,r.useHTML).addClass(t.className||"").attr({title:q(o.options.lang[r._titleKey||r.titleKey],"")});h.menuClassName=t.menuClassName||"highcharts-menu-"+i.btnCount++,r.symbol&&(e=n.symbol(r.symbol,Math.round((r.symbolX||0)-l/2),Math.round((r.symbolY||0)-l/2),l,l,{width:l,height:l}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),o.styledMode||e.attr({stroke:r.symbolStroke,fill:r.symbolFill,"stroke-width":r.symbolStrokeWidth||1})),h.add(i.group).align(U(r,{width:h.width,x:q(r.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=((h.width||0)+(r.buttonSpacing||0))*(r.align==="right"?-1:1),i.svgElements.push(h,e)}afterPrint(){let t=this.chart;if(!this.printReverseInfo)return;let{childNodes:e,origDisplay:i,resetParams:o}=this.printReverseInfo;this.moveContainers(t.renderTo),[].forEach.call(e,function(n,r){n.nodeType===1&&(n.style.display=i[r]||"")}),this.isPrinting=!1,o&&t.setSize.apply(t,o),delete this.printReverseInfo,u.printingChart=void 0,B(t,"afterPrint")}beforePrint(){var n;let t=this.chart,e=H.body,i=this.options.printMaxWidth,o={childNodes:e.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,(n=t.pointer)==null||n.reset(void 0,0),B(t,"beforePrint"),i&&t.chartWidth>i&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(i,void 0,!1)),[].forEach.call(o.childNodes,function(r,a){r.nodeType===1&&(o.origDisplay[a]=r.style.display,r.style.display="none")}),this.moveContainers(e),this.printReverseInfo=o}contextMenu(t,e,i,o,n,r,a){var b,w,T;
2let c=this,l=c.chart,p=l.options.navigation,m=l.chartWidth,h=l.chartHeight,g="cache-"+t,y=Math.max(n,r),x,f=l[g];f||(c.contextMenuEl=l[g]=f=I("div",{className:t},{position:"absolute",zIndex:1e3,padding:y+"px",pointerEvents:"auto",...l.renderer.style},((b=l.scrollablePlotArea)==null?void 0:b.fixedDiv)||l.container),x=I("ul",{className:"highcharts-menu"},l.styledMode?{}:{listStyle:"none",margin:0,padding:0},f),l.styledMode||k(x,U({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(p==null?void 0:p.menuStyle)||{})),f.hideMenu=function(){k(f,{display:"none"}),a&&a.setState(0),l.exporting&&(l.exporting.openMenu=!1),k(l.renderTo,{overflow:"hidden"}),k(l.container,{overflow:"hidden"}),_(f.hideTimer),B(l,"exportMenuHidden")},(w=c.events)==null||w.push(L(f,"mouseleave",function(){f.hideTimer=S.setTimeout(f.hideMenu,500)}),L(f,"mouseenter",function(){_(f.hideTimer)}),L(H,"mouseup",function(v){var M;(M=l.pointer)!=null&&M.inClass(v.target,t)||f.hideMenu()}),L(f,"click",function(){var v;(v=l.exporting)!=null&&v.openMenu&&f.hideMenu()})),e.forEach(function(v){var M;if(typeof v=="string"&&((M=c.options.menuItemDefinitions)!=null&&M[v])&&(v=c.options.menuItemDefinitions[v]),Ut(v,!0)){let j;v.separator?j=I("hr",void 0,void 0,x):(v.textKey==="viewData"&&c.isDataTableVisible&&(v.textKey="hideData"),j=I("li",{className:"highcharts-menu-item",onclick:function(ut){ut&&ut.stopPropagation(),f.hideMenu(),typeof v!="string"&&v.onclick&&v.onclick.apply(l,arguments)}},void 0,x),W().setElementHTML(j,v.text||l.options.lang[v.textKey]),l.styledMode||(j.onmouseover=function(){k(this,(p==null?void 0:p.menuItemHoverStyle)||{})},j.onmouseout=function(){k(this,(p==null?void 0:p.menuItemStyle)||{})},k(j,U({cursor:"pointer"},(p==null?void 0:p.menuItemStyle)||{})))),c.divElements.push(j)}}),c.divElements.push(x,f),c.menuHeight=f.offsetHeight,c.menuWidth=f.offsetWidth);let d={display:"block"};i+(c.menuWidth||0)>m?d.right=m-i-n-y+"px":d.left=i-y+"px",o+r+(c.menuHeight||0)>h&&((T=a.alignOptions)==null?void 0:T.verticalAlign)!=="top"?d.bottom=h-o-y+"px":d.top=o+r-y+"px",k(f,d),k(l.renderTo,{overflow:""}),k(l.container,{overflow:""}),l.exporting&&(l.exporting.openMenu=!0),B(l,"exportMenuShown")}destroy(t){let e,i=t?t.target:this.chart,{divElements:o,events:n,svgElements:r}=this;r.forEach((a,c)=>{a&&(a.onclick=a.ontouchstart=null,i[e="cache-"+a.menuClassName]&&delete i[e],r[c]=a.destroy())}),r.length=0,this.group&&(this.group.destroy(),delete this.group),o.forEach(function(a,c){a&&(_(a.hideTimer),Bt(a,"mouseleave"),o[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null,ct(a))}),o.length=0,n&&(n.forEach(function(a){a()}),n.length=0)}async downloadSVG(t,e){let i,o={svg:t,exportingOptions:e,exporting:this};if(B(u.prototype,"downloadSVG",o),o.defaultPrevented)return;let{type:n,filename:r,scale:a,libURL:c}=u.prepareImageOptions(e);if(n==="application/pdf")throw Error("Offline exporting logic for PDF type is not found.");if(n==="image/svg+xml"){if(S.MSBlobBuilder!==void 0){let p=new S.MSBlobBuilder;p.append(t),i=p.getBlob("image/svg+xml")}else i=u.svgToDataURL(t);Z(i,r)}else{i=u.svgToDataURL(t);try{u.objectURLRevoke=!0;let p=await u.imageToDataURL(i,a,n);Z(p,r)}catch(p){if(p.message==="No canvas found!")throw p;if(t.length>1e8)throw Error("Input too long");let m=H.createElement("canvas"),h=m.getContext("2d"),g=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),y=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(h&&g&&y){let x=g[1]*a,f=y[1]*a;if(m.width=x,m.height=f,!S.canvg){var l;u.objectURLRevoke=!0,await(l=c+"canvg.js",new Promise((d,b)=>{let w=G.getElementsByTagName("head")[0],T=G.createElement("script");T.type="text/javascript",T.src=l,T.onload=()=>{d()},T.onerror=()=>{let v=`Error loading script ${l}`;St(v),b(Error(v))},w.appendChild(T)}))}S.canvg.Canvg.fromString(h,t).start(),Z(S.navigator.msSaveOrOpenBlob?m.msToBlob():m.toDataURL(n),r)}}finally{if(u.objectURLRevoke)try{pt.revokeObjectURL(i)}catch{}}}}async exportChart(t,e){if((t=F(this.options,t)).local)await this.localExport(t,e||{});else{let i=this.getSVGForExport(t,e);t.url&&await z.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width,scale:t.scale,svg:i},t.fetchOptions)}}async fallbackToServer(t,e){t.fallbackToExportServer===!1?t.error?t.error(t,e):At(28,!0):t.type==="application/pdf"&&(t.local=!1,await this.exportChart(t))}getChartHTML(t){let e=this.chart;return t&&this.inlineStyles(),this.resolveCSSVariables(),e.container.innerHTML}getFilename(){var i;let t=(i=this.chart.userOptions.title)==null?void 0:i.text,e=this.options.filename;return e?e.replace(/\//g,"-"):(typeof t=="string"&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||e.length<5)&&(e="chart"),e)}getSVG(t){var g,y,x,f;let e=this.chart,i,o,n=F(e.options,t);n.plotOptions=F(e.userOptions.plotOptions,t==null?void 0:t.plotOptions),n.time=F(e.userOptions.time,t==null?void 0:t.t
2ime);let r=I("div",void 0,{position:"absolute",top:"-9999em",width:e.chartWidth+"px",height:e.chartHeight+"px"},H.body),a=e.renderTo.style.width,c=e.renderTo.style.height,l=((g=n.exporting)==null?void 0:g.sourceWidth)||n.chart.width||/px$/.test(a)&&parseInt(a,10)||(n.isGantt?800:600),p=((y=n.exporting)==null?void 0:y.sourceHeight)||n.chart.height||/px$/.test(c)&&parseInt(c,10)||400;U(n.chart,{animation:!1,renderTo:r,forExport:!0,renderer:"SVGRenderer",width:l,height:p}),n.exporting&&(n.exporting.enabled=!1),delete n.data,n.series=[],e.series.forEach(function(d){var b;(o=F(d.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:d.visible})).isInternal||((b=n==null?void 0:n.series)==null||b.push(o))});let m={};e.axes.forEach(function(d){d.userOptions.internalKey||(d.userOptions.internalKey=Gt()),n&&!d.options.isInternal&&(m[d.coll]||(m[d.coll]=!0,n[d.coll]=[]),n[d.coll].push(F(d.userOptions,{visible:d.visible,type:d.type,uniqueNames:d.uniqueNames})))}),n.colorAxis=e.userOptions.colorAxis;let h=new e.constructor(n,e.callback);return t&&["xAxis","yAxis","series"].forEach(function(d){t[d]&&h.update({[d]:t[d]})}),e.axes.forEach(function(d){let b=Ht(h.axes,w=>w.options.internalKey===d.userOptions.internalKey);if(b){let w=d.getExtremes(),T=$t((t==null?void 0:t[d.coll])||{})[0],v="min"in T?T.min:w.userMin,M="max"in T?T.max:w.userMax;(v!==void 0&&v!==b.min||M!==void 0&&M!==b.max)&&b.setExtremes(v??void 0,M??void 0,!0,!1)}}),i=((f=h.exporting)==null?void 0:f.getChartHTML(e.styledMode||((x=n.exporting)==null?void 0:x.applyStyleSheets)))||"",B(e,"getSVG",{chartCopy:h}),i=u.sanitizeSVG(i,n),n=void 0,h.destroy(),ct(r),i}getSVGForExport(t,e){let i=this.options;return this.getSVG(F({chart:{borderRadius:0}}
2,i.chartOptions,e,{exporting:{sourceWidth:(t==null?void 0:t.sourceWidth)||i.sourceWidth,sourceHeight:(t==null?void 0:t.sourceHeight)||i.sourceHeight}}))}inlineStyles(){var a;let t,e=u.inlineDenylist,i=u.inlineAllowlist,o={},n=I("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},H.body),r=(a=n.contentWindow)==null?void 0:a.document;r&&r.body.appendChild(r.createElementNS(Dt,"svg")),(function c(l){let p,m,h,g,y,x,f={};if(r&&l.nodeType===1&&u.unstyledElements.indexOf(l.nodeName)===-1){if(p=S.getComputedStyle(l,null),m=l.nodeName==="svg"?{}:S.getComputedStyle(l.parentNode,null),!o[l.nodeName]){t=r.getElementsByTagName("svg")[0],h=r.createElementNS(l.namespaceURI,l.nodeName),t.appendChild(h);let d=S.getComputedStyle(h,null),b={};for(let w in d)w.length<1e3&&typeof d[w]=="string"&&!/^\d+$/.test(w)&&(b[w]=d[w]);o[l.nodeName]=b,l.nodeName==="text"&&delete o.text.fill,t.removeChild(h)}for(let d in p)(Mt||V||K||Object.hasOwnProperty.call(p,d))&&(function(b,w){if(g=y=!1,i.length){for(x=i.length;x--&&!y;)y=i[x].test(w);g=!y}for(w==="transform"&&b==="none"&&(g=!0),x=e.length;x--&&!g;){if(w.length>1e3)throw Error("Input too long");g=e[x].test(w)||typeof b=="function"}!g&&(m[w]!==b||l.nodeName==="svg")&&o[l.nodeName][w]!==b&&(u.inlineToAttributes&&u.inlineToAttributes.indexOf(w)===-1?f[w]=b:b&&l.setAttribute(u.hyphenate(w),b))})(p[d],d);if(k(l,f),l.nodeName==="svg"&&l.setAttribute("stroke-width","1px"),l.nodeName==="text")return;[].forEach.call(l.children||l.childNodes,c)}})(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),n.parentNode.removeChild(n)}async localExport(t,e){var l,p,m;let i=this.chart,o,n,r=null,a;if(V&&i.styledMode&&!u.inlineAllowlist.length&&u.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$/),V&&(t.type==="application/pdf"||i.container.getElementsByTagName("image").length&&t.type!=="image/svg+xml")||t.type==="application/pdf"&&[].some.call(i.container.getElementsByTagName("image"),function(h){let g=h.getAttribute("href");return g!==""&&typeof g=="string"&&g.indexOf("data:")!==0}))return void await this.fallbackToServer(t,Error("Image type not supported for this chart/browser."));let c=L(i,"getSVG",h=>{n=h.chartCopy.options,a=(o=h.chartCopy.container.cloneNode(!0))&&o.getElementsByTagName("image")||[]});try{let h;for(let x of(this.getSVGForExport(t,e),a?Array.from(a):[]))if(r=x.getAttributeNS("http://www.w3.org/1999/xlink","href")){u.objectURLRevoke=!1;let f=await u.imageToDataURL(r,(t==null?void 0:t.scale)||1,(t==null?void 0:t.type)||"image/png");x.setAttributeNS("http://www.w3.org/1999/xlink","href",f)}else x.parentNode.removeChild(x);let g=o==null?void 0:o.querySelector("svg");g&&!((m=(p=(l=t.chartOptions)==null?void 0:l.chart)==null?void 0:p.style)!=null&&m.fontFamily)&&await u.inlineFonts(g);let y=(h=o==null?void 0:o.innerHTML,u.sanitizeSVG(h||"",n));if(y.indexOf("<foreignObject")>-1&&t.type!=="image/svg+xml"&&(V||t.type==="application/pdf"))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(y,U({filename:this.getFilename()},t)),y}catch(h){await this.fallbackToServer(t,h)}finally{c()}}moveContainers(t){let e=this.chart,{scrollablePlotArea:i}=e;(i?[i.fixedDiv,i.scrollingContainer]:[e.container]).forEach(function(o){t.appendChild(o)})}print(){let t=this.chart;this.isPrinting||(u.printingChart=t,K||this.beforePrint(),setTimeout(()=>{S.focus(),S.print(),K||setTimeout(()=>{var e;(e=t.exporting)==null||e.afterPrint()},1e3)},1))}render(){let t=this,{chart:e,options:i}=t,o=(t==null?void 0:t.isDirty)||!(t!=null&&t.svgElements.length);t.buttonOffset=0,t.isDirty&&t.destroy(),o&&i.enabled!==!1&&(t.events=[],t.group||(t.group=e.renderer.g("exporting-group").attr({zIndex:3}).add()),jt(i==null?void 0:i.buttons,function(n){t.addButton(n)}),t.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEac
2h(t=>{["color","fill","stop-color","stroke"].forEach(e=>{var n;let i=t.getAttribute(e);i!=null&&i.includes("var(")&&t.setAttribute(e,getComputedStyle(t).getPropertyValue(e));let o=(n=t.style)==null?void 0:n[e];o!=null&&o.includes("var(")&&(t.style[e]=getComputedStyle(t).getPropertyValue(e))})})}update(t,e){this.isDirty=!0,F(!0,this.options,t),q(e,!0)&&this.chart.redraw()}}u.inlineAllowlist=[],u.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],u.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],u.loadEventDeferDelay=150*!!V,u.unstyledElements=["clipPath","defs","desc"],(function(s){function t(o){let n=o.exporting;n&&(n.render(),L(o,"redraw",function(){var r;(r=this.exporting)==null||r.render()}),L(o,"destroy",function(){var r;(r=this.exporting)==null||r.destroy()}))}function e(){let o=this;o.options.exporting&&(o.exporting=new s(o,o.options.exporting),vt.compose(o).navigation.addUpdate((n,r)=>{o.exporting&&(o.exporting.isDirty=!0,F(!0,o.options.navigation,n),q(r,!0)&&o.redraw())}))}function i({alignTo:o,key:n,textPxLength:r}){var y,x,f;let a=this.options.exporting,{align:c,buttonSpacing:l=0,verticalAlign:p,width:m=0}=F((y=this.options.navigation)==null?void 0:y.buttonOptions,(x=a==null?void 0:a.buttons)==null?void 0:x.contextButton),h=o.width-r,g=m+l;((a==null?void 0:a.enabled)??!0)&&n==="title"&&c==="right"&&p==="top"&&h<2*g&&(h<g?o.width-=g:((f=this.title)==null?void 0:f.alignValue)!=="left"&&(o.x-=g-h/2))}s.compose=function(o,n){Ot.compose(n),st.compose(o),It(Lt,"Exporting")&&(U(wt().prototype,{exportChart:async function(r,a){var c;await((c=this.exporting)==null?void 0:c.exportChart(r,a))},getChartHTML:function(r){var a;return(a=this.exporting)==null?void 0:a.getChartHTML(r)},getFilename:function(){var r;return(r=this.exporting)==null?void 0:r.getFilename()},getSVG:function(r){var a;return(a=this.exporting)==null?void 0:a.getSVG(r)},print:function(){var r;return(r=this.exporting)==null?void 0:r.print()}}),o.prototype.callbacks.push(t),L(o,"afterInit",e),L(o,"layOutTitle",i),K&&S.matchMedia("print").addListener(function(r){var a,c;s.printingChart&&(r.matches?(a=s.printingChart.exporting)==null||a.beforePrint():(c=s.printingChart.exporting)==null||c.afterPrint())}),Nt(Ct))}})(u||(u={}));let ht=u,R=O();R.Exporting=ht,R.HttpUtilities=R.HttpUtilities||z,R.ajax=R.HttpUtilities.ajax,R.getJSON=R.HttpUtilities.getJSON,R.post=R.HttpUtilities.post,ht.compose(R.Chart,R.Renderer);let Vt=O();return et.default})())})(J)),J.exports}var gt=Kt();const Jt=qt(gt),Yt=Wt({__proto__:null,default:Jt},[gt]);export{Yt as e};

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.