import{M as K}from"./entry.783d4ced.js";function Q(I,v){for(var n=0;n<v.length;n++){const b=v[n];if(typeof b!="string"&&!Array.isArray(b)){for(const h in b)if(h!=="default"&&!(h in I)){const p=Object.getOwnPropertyDescriptor(b,h);p&&Object.defineProperty(I,h,p.get?p:{enumerable:!0,get:()=>b[h]})}}}return Object.freeze(Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(I){(function(v){I.exports?(v.default=v,I.exports=v):v(typeof Highcharts<"u"?Highcharts:void 0)})(function(v){var n=v?v._modules:{};function b(h,p,k,L){h.hasOwnProperty(p)||(h[p]=L.apply(null,k),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:h[p]}})))}b(n,"Series/Funnel3D/SVGElement3DFunnel.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(h,p,k,L){let{parse:C}=h,{charts:z}=p,{Element3D:x}=k.getRendererType().prototype,{merge:B}=L;return class extends x{constructor(){super(...arguments),this.mainParts=["top","bottom"],this.parts=["top","bottom","frontUpper","backUpper","frontLower","backLower","rightUpper","rightLower"],this.sideGroups=["upperGroup","lowerGroup"],this.sideParts={upperGroup:["frontUpper","backUpper","rightUpper"],lowerGroup:["frontLower","backLower","rightLower"]},this.pathType="funnel3d"}opacitySetter(d,o,f){let e=parseFloat(d),t=this.parts,r=z[this.renderer.chartIndex],i="group-opacity-"+e+"-"+r.index;if(this.parts=this.mainParts,this.singleSetterForParts("opacity",e),this.parts=t,!r.renderer.filterId){for(let a of(r.renderer.definition({tagName:"filter",attributes:{id:i},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"table",tableValues:"0 "+e}}]}]}),this.sideGroups))this[a].attr({filter:"url(#"+i+")"});if(this.renderer.styledMode)for(let a of(r.renderer.definition({tagName:"style",textContent:".highcharts-"+i+" {filter:url(#"+i+")}"}),this.sideGroups))this[a].addClass("highcharts-"+i)}return this}fillSetter(d){let o=C(d),f=o.rgba[3],e={top:C(d).brighten(.1).get(),bottom:C(d).brighten(-.2).get()};if(f<1?(o.rgba[3]=1,o=o.get("rgb"),this.attr({opacity:f})):o=d,o.linearGradient||o.radialGradient||!this.gradientForSides||(o={linearGradient:{x1:0,x2:1,y1:1,y2:1},stops:[[0,C(d).brighten(-.2).get()],[.5,d],[1,C(d).brighten(-.2).get()]]}),o.linearGradient)for(let t of this.sideGroups){let r=this[t].gradientBox,i=o.linearGradient,a=B(o,{linearGradient:{x1:r.x+i.x1*r.width,y1:r.y+i.y1*r.height,x2:r.x+i.x2*r.width,y2:r.y+i.y2*r.height}});for(let j of this.sideParts[t])e[j]=a}else if(B(!0,e,{frontUpper:o,backUpper:o,rightUpper:o,frontLower:o,backLower:o,rightLower:o}),o.radialGradient)for(let t of this.sideGroups){let r=this[t].gradientBox,i=r.x+r.width/2,a=r.y+r.height/2,j=Math.min(r.width,r.height);for(let m of this.sideParts[t])this[m].setRadialReference([i,a,j])}if(this.singleSetterForParts("fill",null,e),this.color=this.fill=d,o.linearGradient)for(let t of[this.frontLower,this.frontUpper]){let r=t.element,i=r&&this.renderer.gradients[r.gradient];i&&i.attr("gradientUnits")!=="userSpaceOnUse"&&i.attr({gradientUnits:"userSpaceOnUse"})}return this}adjustForGradient(){let d;for(let o of this.sideGroups){let f={x:Number.MAX_VALUE,y:Number.MAX_VALUE},e={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};for(let t of this.sideParts[o])d=this[t].getBBox(!0),f={x:Math.min(f.x,d.x),y:Math.min(f.y,d.y)},e={x:Math.max(e.x,d.x+d.width),y:Math.max(e.y,d.y+d.height)};this[o].gradientBox={x:f.x,width:e.x-f.x,y:f.y,height:e.y-f.y}}}zIndexSetter(){return this.finishedOnAdd&&this.adjustForGradient(),this.renderer.Element.prototype.zIndexSetter.apply(this,arguments)}onAdd(){this.adjustForGradient(),this.finishedOnAdd=!0}}}),b(n,"Series/Funnel3D/Funnel3DComposition.js",[n["Series/Funnel3D/SVGElement3DFunnel.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(h,p,k){let{charts:L}=p,{error:C,extend:z,merge:x,pushUnique:B}=k,d=[];function o(e){let t=this.element3d("funnel3d",e),r=this.styledMode,i={"stroke-width":1,stroke:"none"};for(let a of(t.upperGroup=this.g("funnel3d-upper-group").attr({zIndex:t.frontUpper.zIndex}).add(t),[t.frontUpper,t.backUpper,t.rightUpper]))r||a.attr(i),a.add(t.upperGroup);for(let a of(t.lowerGroup=this.g("funnel3d-lower-group").attr({zIndex:t.frontLower.zIndex}).add(t),[t.frontLower,t.backLower,t.rightLower]))r||a.attr(i),a.add(t.lowerGroup);return t.gradientForSides=e.gradientForSides,t}function f(e){this.getCylinderEnd||C("A required Highcharts module is missing: cylinder.js",!0,L[this.chartIndex]);let t=L[this.chartIndex],r=e.alphaCorrection=90-Math.abs(t.options.chart.options3d.alpha%180-90),i=this.cuboidPath.call(this,x(e,{depth:e.width,width:(e.width+e.bottom.width)/2})),a=i.isTop,j=!i.isFront,m=!!e.middle,w=this.getCylinderEnd(t,x(e,{x:e.x-e.width/2,z:e.z-e.width/2,alphaCorrection:r})),l=e.bottom.width,U=x(e,{width:l,x:e.x-l/2,z:e.z-l/2,alphaCorrection:r}),F=this.getCylinderEnd(t,U,!0),c=l,S=U,s=F,G=F,D;m&&(c=e.middle.width,S=x(e,{y:e.y+e.middle.fraction*e.height,width:c,x:e.x-c/2,z:e.z-c/2}),s=this.getCylinderEnd(t,S,!1),G=this.getCylinderEnd(t,S,!1));let u={top:w,bottom:F,frontUpper:this.getCylinderFront(w,s),zIndexes:{group:i.zIndexes.group,top:a!==0?0:3,bottom:a!==1?0:3,frontUpper:j?2:1,backUpper:j?1:2,rightUpper:j?2:1}};return u.backUpper=this.getCylinderBack(w,s),D=Math.min(c,e.width)/Math.max(c,e.width)!=1,u.rightUpper=this.getCylinderFront(this.getCylinderEnd(t,x(e,{x:e.x-e.width/2,z:e.z-e.width/2,alphaCorrection:D?-r:0}),!1),this.getCylinderEnd(t,x(S,{alphaCorrection:D?-r:0}),!m)),m&&(D=Math.min(c,l)/Math.max(c,l)!=1,x(!0,u,{frontLower:this.getCylinderFront(G,F),backLower:this.getCylinderBack(G,F),rightLower:this.getCylinderFront(this.getCylinderEnd(t,x(U,{alphaCorrection:D?-r:0}),!0),this.getCylinderEnd(t,x(S,{alphaCorrection:D?-r:0}),!1)),zIndexes:{frontLower:j?2:1,backLower:j?1:2,rightLower:j?1:2}})),u}return{compose:function(e){if(B(d,e)){let t=e.prototype;t.Element3D.types.funnel3d=h,z(t,{funnel3d:o,funnel3dPath:f})}}}}),b(n,"Series/Funnel3D/Funnel3DSeriesDefaults.js",[],function(){return{center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,gradientForSides:!0,animation:!1,edgeWidth:0,colorByPoint:!0,showInLegend:!1,dataLabels:{align:"right",crop:!1,inside:!1,overflow:"allow"}}}),b(n,"Series/Funnel3D/Funnel3DPoint.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(h,p){let{seriesTypes:{column:k}}=h,{extend:L}=p;class C extends k.prototype.pointClass{constructor(){super(...arguments),this.dlBoxRaw=void 0,this.options=void 0,this.series=void 0,this.y=void 0}}return L(C.prototype,{shapeType:"funnel3d"}),C}),b(n,"Series/Funnel3D/Funnel3DSeries.js",[n["Series/Funnel3D/Funnel3DComposition.js"],n["Series/Funnel3D/Funnel3DSeriesDefaults.js"],n["Series/Funnel3D/Funnel3DPoint.js"],n["Core/Globals.js"],n["Core/Math3D.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(h,p,k,L,C,z,x){let{noop:B}=L,{perspective:d}=C,{series:o,seriesTypes:{column:f}}=z,{extend:e,merge:t,pick:r,relativeLength:i}=x;class a extends f{constructor(){super(...arguments),this.center=void 0,this.data=void 0,this.options=void 0,this.points=void 0}alignDataLabel(m,w,l){let U=m.dlBoxRaw,F=this.chart.inverted,c=m.plotY>r(this.translatedThreshold,this.yAxis.len),S=r(l.inside,!!this.options.stacking),s={x:U.x,y:U.y,height:0};l.align=r(l.align,!F||S?"center":c?"right":"left"),l.verticalAlign=r(l.verticalAlign,F||S?"middle":c?"top":"bottom"),l.verticalAlign!=="top"&&(s.y+=U.bottom/(l.verticalAlign==="bottom"?1:2)),s.width=this.getWidthAt(s.y),this.options.reversed&&(s.width=U.fullWidth-s.width),S?s.x-=s.width/2:l.align==="left"?(l.align="right",s.x-=1.5*s.width):l.align==="right"?(l.align="left",s.x+=s.width/2):s.x-=s.width/2,m.dlBox=s,f.prototype.alignDataLabel.apply(this,arguments)}bindAxes(){o.prototype.bindAxes.apply(this,arguments),e(this.xAxis.options,{gridLineWidth:0,lineWidth:0,title:void 0,tickPositions:[]}),t(!0,this.yAxis.options,{gridLineWidth:0,title:void 0,labels:{enabled:!1}})}translate(){o.prototype.translate.apply(this,arguments);let m=this.chart,w=this.options,l=w.reversed,U=w.ignoreHiddenPoint,F=m.plotWidth,c=m.plotHeight,S=w.center,s=i(S[0],F),G=i(S[1],c),D=i(w.width,F),u=i(w.height,c),_=i(w.neckWidth,F),N=i(w.neckHeight,c),O=G-u/2+u-N,X=this.data,H=0,W=0,A,M,P,V,E,R,Y,T,y;for(let g of(this.getWidthAt=M=function(q){return q>O||u===N?_:_+(D-_)*(1-(q-(G-u/2))/(u-N))},this.center=[s,G,u],this.centerX=s,X))U&&g.visible===!1||(H+=g.y);for(let g of X)Y=null,P=H?g.y/H:0,R=(E=G-u/2+W*u)+P*u,A=M(E),T=R-E,y={gradientForSides:r(g.options.gradientForSides,w.gradientForSides),x:s,y:E,height:T,width:A,z:1,top:{width:A}},A=M(R),y.bottom={fraction:P,width:A},E>=O?y.isCylinder=!0:R>O&&(Y=R,A=M(O),R=O,y.bottom.width=A,y.middle={fraction:T?(O-E)/T:0,width:A}),l&&(y.y=E=G+u/2-(W+P)*u,y.middle&&(y.middle.fraction=1-(T?y.middle.fraction:0)),A=y.width,y.width=y.bottom.width,y.bottom.width=A),g.shapeArgs=e(g.shapeArgs,y),g.percentage=100*P,g.plotX=s,l?g.plotY=G+u/2-(W+P/2)*u:g.plotY=(E+(Y||R))/2,V=d([{x:s,y:g.plotY,z:l?-(D-M(g.plotY))/2:-M(g.plotY)/2}],m,!0)[0],g.tooltipPos=[V.x,V.y],g.dlBoxRaw={x:s,width:M(g.plotY),y:E,bottom:y.height||0,fullWidth:D},U&&g.visible===!1||(W+=P)}}return a.compose=h.compose,a.defaultOptions=t(f.defaultOptions,p),e(a.prototype,{pointClass:k,translate3dShapes:B}),z.registerSeriesType("funnel3d",a),a}),b(n,"masters/modules/funnel3d.src.js",[n["Core/Renderer/RendererRegistry.js"],n["Series/Funnel3D/Funnel3DSeries.js"]],function(h,p){return p.compose(h.getRendererType()),p})})})($);var J=$.exports;const Z=K(J),te=Q({__proto__:null,default:Z},[J]);export{te as f};
