@turquoisehealth/pit-viper 2.55.3-dev.0 → 2.55.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/vue/charts/pv-components-charts.js +1 -1
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +2 -1
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +1 -1
- package/pv-components/dist/vue/tables/pv-components-tables.js +1 -1
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +2 -1
- package/pv-components/dist/vue/tables/pv-components-tables.umd.js +1 -1
|
@@ -18,7 +18,7 @@ ${n.join(`
|
|
|
18
18
|
`);let n;if(e===Qn.Y)n=yp(i,i.fontSize)*(s?.length??1);else{const r=i.getFont();n=(s??t.map(l=>Dm(this,this.labelDatum(i,l))??"")).reduce((l,c)=>{const{width:d}=Yde.measureText(c,{font:r});return Math.max(l,d)},0)}return o*(i.spacing+n)}get hasData(){return!0}nodeFactory(){const e=new qde;return e.crisp=!0,e}markerFactory(){return new Jde}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){const{axes:t,horizontal:i}=this,o=i?t[Qn.X]:t[Qn.Y];return dV(e,o)}createLinearGradient(e,t){const{properties:i,originX:o,originY:s,horizontal:n,axes:r}=this,{thickness:a,defaultColorRange:l}=i,c=n?r[Qn.X]:r[Qn.Y],{domain:d,range:u}=c.scale,h=u[1]-u[0],p=tue(e,l,d,t);return new Qde("oklch",p,n?90:0,new $g(o,s,n?h:a,n?a:h))}getTargets(){const{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(i=>{const{text:o=t.text,value:s=t.value??0,shape:n=t.shape??"triangle",rotation:r=t.rotation??0,strokeWidth:a=t.strokeWidth??0,placement:l=t.placement??"middle",spacing:c=t.spacing??0,size:d=t.size??0,fill:u=t.fill??"black",fillOpacity:h=t.fillOpacity??1,stroke:p=t.stroke??"black",strokeOpacity:g=t.strokeOpacity??1,lineDash:f=t.lineDash??[0],lineDashOffset:v=t.lineDashOffset??0}=i,{enabled:y=t.label.enabled,color:C=t.label.color??"black",fontStyle:S=t.label.fontStyle??"normal",fontWeight:x=t.label.fontWeight??"normal",fontSize:D=t.label.fontSize,fontFamily:A=t.label.fontFamily,spacing:k=t.label.spacing??0}=i.label;return{text:o,value:s,shape:n,placement:l,spacing:c,size:d,rotation:r,fill:u,fillOpacity:h,stroke:p,strokeWidth:a,strokeOpacity:g,lineDash:f,lineDashOffset:v,label:{enabled:y,color:C,fontStyle:S,fontWeight:x,fontSize:D,fontFamily:A,spacing:k}}})}getTargetPoint(e){const t=this.axes[Qn.X],i=this.axes[Qn.Y];if(t==null||i==null)return{x:0,y:0};const{properties:o,originX:s,originY:n,horizontal:r}=this,{thickness:a}=o,{value:l,placement:c,spacing:d,size:u}=e,h=r?t:i,p=h.scale.convert(l)-h.scale.range[0];let g;switch(c){case"before":g=-(d+u/2);break;case"after":g=a+d+u/2;break;default:g=a/2;break}return{x:s+t.range[0]+(r?p:g),y:n+i.range[0]+(r?g:p)}}getTargetLabel(e){const{size:t,placement:i,label:o}=e,{spacing:s,color:n,fontStyle:r,fontWeight:a,fontSize:l,fontFamily:c}=o,d=void 0,u=t/2+s;let h,p,g=0,f=0;return this.horizontal?(h="center",i==="after"?(p="top",f=u):(p="bottom",f=-u)):(p="middle",i==="before"?(h="right",g=-u):(h="left",g=u)),{offsetX:g,offsetY:f,fill:n,textAlign:h,textBaseline:p,fontStyle:r,fontWeight:a,fontSize:l,fontFamily:c,lineHeight:d}}labelDatum(e,t){const{placement:i,avoidCollisions:o,spacing:s,text:n,color:r,fontSize:a,minimumFontSize:l,fontStyle:c,fontWeight:d,fontFamily:u,lineHeight:h,wrapping:p,overflowStrategy:g,formatter:f=v=>this.formatLabel(v.value)}=e;return{placement:i,avoidCollisions:o,spacing:s,text:n,value:t,fill:r,fontSize:a,minimumFontSize:l,fontStyle:c,fontWeight:d,fontFamily:u,lineHeight:h,wrapping:p,overflowStrategy:g,formatter:f}}createNodeData(){const{id:e,properties:t,originX:i,originY:o,horizontal:s}=this;if(!t.isValid())return;const{value:n,segmentation:r,thickness:a,cornerRadius:l,cornerMode:c,bar:d,scale:u,label:h}=t,p=this.getTargets(),g=this.axes[Qn.X],f=this.axes[Qn.Y];if(g==null||f==null)return;const v=s?g:f,y=g.scale,C=f.scale,S=v.scale;let{domain:x}=v.scale;v.isReversed()&&(x=x.slice().reverse());const D=[],A=[],k=[],w=[],[M,R]=S.range,L=Math.abs(R-M);let[P,N]=g.range;g.isReversed()&&([N,P]=[P,N]);let[O,F]=f.range;f.isReversed()&&([F,O]=[O,F]);const z=s?y.convert(n):N,_=s?F:C.convert(n),V=r.enabled?r.spacing/2:0,G=s?V:0,H=s?0:V,B=Math.min(d.thickness??Math.round(d.thicknessRatio*a),a),W=-(a-B)/2,j=s?0:W,U=s?W:0,ee=c==="item",q=Math.ceil(L);let te=r.enabled?r.interval.getSegments(S,q):void 0;const se=d.fill??this.createLinearGradient(d.fills,d.fillMode),Z=u.fill??(d.enabled&&u.fills.length===0?u.defaultFill:void 0)??this.createLinearGradient(u.fills,u.fillMode);if(te==null&&ee){const X=Math.min(...x),ne=Math.max(...x),re={value:n,segmentStart:X,segmentEnd:ne};if(d.enabled){const Y=Math.min(l,B/2,L/2)*(v.isReversed()?-1:1),$=s?Y:0,Q=s?0:Y;D.push({series:this,itemId:"value",datum:re,datumIndex:{type:0},type:0,x0:i+P-$-j,y0:o+O-Q-U,x1:i+z+$+j,y1:o+_+Q+U,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:se,horizontalInset:G,verticalInset:H})}const le=Math.min(l,a/2,L/2)*(v.isReversed()?-1:1),me=s?le:0,Me=s?0:le;w.push({series:this,itemId:"scale",datum:re,datumIndex:{type:0},type:0,x0:i+P-me,y0:o+O-Me,x1:i+N+me,y1:o+F+Me,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:Z,horizontalInset:G,verticalInset:H})}else{te??(te=x);const X=i+P-j,ne=o+O-U,re=i+z+j,ue=o+_+U;for(let le=0;le<te.length-1;le+=1){const me=te[le+0],Me=te[le+1],pe={value:n,segmentStart:me,segmentEnd:Me},Y=le===0,$=le===te.length-2,Q=S.convert(me),ae=S.convert(Me),ye=ee||Y?l:0,we=ee||$?l:0,De=s?ye:we,K=we,ce=s?we:ye,Ie=ye;d.enabled&&D.push({series:this,itemId:`value-${le}`,datum:pe,datumIndex:{type:0},type:0,x0:i+(s?Q:P),y0:o+(s?O:Q),x1:i+(s?ae:N),y1:o+(s?F:ae),clipX0:X,clipY0:ne,clipX1:re,clipY1:ue,topLeftCornerRadius:De,topRightCornerRadius:K,bottomRightCornerRadius:ce,bottomLeftCornerRadius:Ie,fill:se,horizontalInset:G,verticalInset:H}),w.push({series:this,itemId:`scale-${le}`,datum:pe,datumIndex:{type:0},type:0,x0:i+(s?Q:P),y0:o+(s?O:Q),x1:i+(s?ae:N),y1:o+(s?F:ae),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:De,topRightCornerRadius:K,bottomRightCornerRadius:ce,bottomLeftCornerRadius:Ie,fill:Z,horizontalInset:G,verticalInset:H})}}h.enabled&&k.push(this.labelDatum(h,n));const ie=s?iue:oue;for(let X=0;X<p.length;X+=1){const ne=p[X],{value:re,text:ue,shape:le,size:me,fill:Me,fillOpacity:pe,stroke:Y,strokeWidth:$,strokeOpacity:Q,lineDash:ae,lineDashOffset:ye}=ne,we=this.getTargetPoint(ne),De=Xde(ne.rotation+ie[ne.placement]);A.push({series:this,itemId:`target-${X}`,midPoint:we,datum:{value:re},datumIndex:{type:1,index:X},type:1,value:re,text:ue,x:we.x,y:we.y,shape:le,size:me,rotation:De,fill:Me,fillOpacity:pe,stroke:Y,strokeOpacity:Q,strokeWidth:$,lineDash:ae,lineDashOffset:ye,label:this.getTargetLabel(ne)})}return{itemId:e,nodeData:D,targetData:A,labelData:k,scaleData:w}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){const{datumSelection:t,labelSelection:i,targetSelection:o,targetLabelSelection:s,scaleSelection:n,highlightTargetSelection:r}=this,a=this.checkResize(e);this.updateSelections(a),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const l=this.contextNodeData?.nodeData??[],c=this.contextNodeData?.labelData??[],d=this.contextNodeData?.targetData??[],u=this.contextNodeData?.scaleData??[],h=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:u,scaleSelection:n}),this.updateScaleNodes({scaleSelection:n}),this.targetSelection=this.updateTargetSelection({targetData:d,targetSelection:o}),this.updateTargetNodes({targetSelection:o,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:d,targetLabelSelection:s}),this.updateTargetLabelNodes({targetLabelSelection:s}),this.datumSelection=this.updateDatumSelection({nodeData:l,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:c,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:h!=null?[h]:[],targetSelection:r}),this.updateTargetNodes({targetSelection:r,isHighlight:!0}),a&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>VN(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s}=o,{fillOpacity:n,stroke:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=s,d=this.getStrokeWidth(s.strokeWidth),u=i.animationManager.isSkipped();t.each((h,p)=>{const{topLeftCornerRadius:g,topRightCornerRadius:f,bottomRightCornerRadius:v,bottomLeftCornerRadius:y,fill:C}=p;h.fill=C,h.fillOpacity=n,h.stroke=r,h.strokeOpacity=a,h.strokeWidth=d,h.lineDash=l,h.lineDashOffset=c,h.topLeftCornerRadius=g,h.topRightCornerRadius=f,h.bottomRightCornerRadius=v,h.bottomLeftCornerRadius=y,h.pointerEvents=this.properties.bar.enabled?E.PointerEvents.All:E.PointerEvents.None,(u||h.previousDatum==null)&&h.setProperties($b(h,p))}),this.datumUnion.update(t,this.itemGroup,E.Rect,(h,p,g)=>{h.pointerEvents=E.PointerEvents.None,h.clipBBox??(h.clipBBox=new $g(NaN,NaN,NaN,NaN)),h.x=p.x,h.y=p.y,h.clipBBox.x=p.clipBBox?.x??p.x,h.clipBBox.y=p.clipBBox?.y??p.y,this.properties.direction==="horizontal"?(h.height=h.clipBBox.height=g.height,h.width=g===p?g.width:g.x+g.width,h.clipBBox.width=h.width-(g.width-(g.clipBBox?.width??g.width)),h.topLeftCornerRadius=p.topLeftCornerRadius,h.bottomLeftCornerRadius=p.bottomLeftCornerRadius,h.topRightCornerRadius=g.topRightCornerRadius,h.bottomRightCornerRadius=g.bottomRightCornerRadius):(h.width=h.clipBBox.width=g.width,h.height=g===p?g.height:g.x+g.height,h.clipBBox.height=h.height-(g.height-(g.clipBBox?.height??g.height)),h.topLeftCornerRadius=p.topLeftCornerRadius,h.topRightCornerRadius=p.topRightCornerRadius,h.bottomLeftCornerRadius=g.bottomLeftCornerRadius,h.bottomRightCornerRadius=g.bottomRightCornerRadius)})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>VN(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i}=this.properties,{fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=i;t.each((c,d)=>{const{topLeftCornerRadius:u,topRightCornerRadius:h,bottomRightCornerRadius:p,bottomLeftCornerRadius:g,fill:f}=d;c.fill=f,c.fillOpacity=o,c.stroke=s,c.strokeOpacity=n,c.strokeWidth=r,c.lineDash=a,c.lineDashOffset=l,c.topLeftCornerRadius=u,c.topRightCornerRadius=h,c.bottomRightCornerRadius=p,c.bottomLeftCornerRadius=g,c.setProperties($b(c,d))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e,o=i?this.properties.highlightStyle.item:void 0;t.each((s,n)=>{const{x:r,y:a,shape:l,size:c,rotation:d,fill:u,fillOpacity:h,stroke:p,strokeOpacity:g,strokeWidth:f,lineDash:v,lineDashOffset:y}=n;s.size=c,s.shape=l==="line"?uV:l,s.fill=o?.fill??u,s.fillOpacity=o?.fillOpacity??h,s.stroke=o?.stroke??p,s.strokeOpacity=o?.strokeOpacity??g,s.strokeWidth=o?.strokeWidth??f,s.lineDash=o?.lineDash??v,s.lineDashOffset=o?.lineDashOffset??y,s.translationX=r,s.translationY=a,s.rotation=d})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{x:s,y:n,text:r}=o,{offsetX:a,offsetY:l,fill:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p,textAlign:g,textBaseline:f}=o.label;i.visible=!0,i.x=s+a,i.y=n+l,i.text=r,i.fill=c,i.fontStyle=d,i.fontWeight=u,i.fontSize=h,i.fontFamily=p,i.textAlign=g,i.textBaseline=f})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>"primary")}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){const{labelSelection:t,horizontal:i,axes:o}=this,s=o[Qn.X],n=o[Qn.Y];if(s==null||n==null)return;const[r,a]=s.range,[l,c]=n.range,d=this.originX+Math.min(r,a),u=this.originY+Math.min(l,c),h=Math.abs(a-r),p=Math.abs(c-l),g=e?.label??this.properties.value;let f;if(i){const C=s.scale.convert(g);f=new $g(d,u,C-d,p)}else{const C=n.scale.convert(g);f=new $g(d,C,h,p-C)}const v={scale:new $g(d,u,h,p),bar:f},{margin:y}=this.properties;$de(this,t,{padding:y,horizontal:i},v,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),Ude([this.datumSelection],$b),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i=0,o=0;if(this.labelSelection.each((s,n)=>{s.opacity=1,i=s.previousDatum?.value??e.from??n.value,o=n.value}),!this.labelsHaveExplicitText())if(i===o)this.formatLabelText({label:o});else{const s=`${this.id}_labels`;t.animate({id:s,groupId:"label",from:{label:i},to:{label:o},phase:e.phase??"update",ease:eue.easeOut,onUpdate:n=>this.formatLabelText(n)})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=zN(!0,this.horizontal);gM(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),gM(this.id,"label",e,[this.labelSelection],cV,()=>"primary"),this.animateLabelText({from:0,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=zN(!1,this.horizontal);gM(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[0,1]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;if(!i.isValid())return;const{value:s=i.value,text:n=i.label.text}=mV(e);return o.formatTooltip({data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return hV(this,e)}pickFocus(e){return pV(this,e)}getCaptionText(){return this.formatLabel(this.properties.value)}};sT.className="LinearGaugeSeries";sT.type="linear-gauge";var{ThemeSymbols:{DEFAULT_HIERARCHY_FILLS:sue,DEFAULT_GAUGE_SERIES_COLOR_RANGE:nue},ThemeConstants:{CARTESIAN_AXIS_TYPE:fM}}=E,rue={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"linear-gauge",moduleFactory:e=>new sT(e),tooltipDefaults:{range:10},defaultAxes:[{type:fM.NUMBER,line:{enabled:!1}},{type:fM.NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{thickness:50,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:1},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"after",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},label:{enabled:!1,placement:"inside-start",fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},fontSize:{$rem:[2]},minimumFontSize:12,spacing:18,color:{$ref:"backgroundColor"}},margin:4},axes:{[fM.NUMBER]:{line:{enabled:!1},gridLine:{enabled:!1}}}},paletteFactory(e){const{takeColors:t,colorsCount:i,userPalette:o,themeTemplateParameters:s}=e,{fills:n}=t(i),r=s.get(nue),a=s.get(sue),l=o==="inbuilt"?r:[n[0],n[1]];return{scale:{defaultFill:a?.[1],stroke:a?.[2]},defaultColorRange:aV(l)}}},$y={zoom:{axes:"xy",anchorPointX:"pointer",anchorPointY:"pointer",buttons:{anchorPointX:"middle",anchorPointY:"middle"}},legend:{enabled:!1},gradientLegend:{enabled:!1},tooltip:{range:"exact"}},aue=1e-9;function SV(e,t,i,o){const[s,n]=e,[r,a]=t,l=r-s,c=a-n,d=l*l+c*c;let u,h;if(Math.abs(d)<aue)u=s,h=n;else{let f=((i-s)*l+(o-n)*c)/d;f=Math.max(0,Math.min(1,f)),u=s+f*(r-s),h=n+f*(a-n)}const p=i-u,g=o-h;return p*p+g*g}function WN(e,t,i){let o=1/0,s=e[e.length-1];for(const n of e)o=Math.min(o,SV(s,n,t,i)),s=n;return Math.sqrt(o)}function CD(e){let[t,i]=e[0],o=0;for(let s=1;s<e.length;s+=1){const[n,r]=e[s],a=Math.hypot(n-t,r-i);o+=a,t=n,i=r}return o}function YC(e){if(e.length===0)return;const t=CD(e)/2;let[i,o]=e[0],s=0;for(let n=1;n<e.length;n+=1){const[r,a]=e[n],l=Math.hypot(r-i,a-o),c=s+l;if(c>t){const d=(t-s)/l,u=[i+(r-i)*d,o+(a-o)*d],h=Math.atan2(a-o,r-i);return{point:u,angle:h}}s=c,i=r,o=a}}var{LonLatBBox:lue}=E;function Rf(e,t,i,o,s){return e==null?e=new lue(t,i,o,s):(e.lon0=Math.min(e.lon0,t),e.lat0=Math.min(e.lat0,i),e.lon1=Math.max(e.lon1,o),e.lat1=Math.max(e.lat1,s)),e}function eu(e,t){return e.forEach(i=>{const[o,s]=i;t=Rf(t,o,s,o,s)}),t}function cue(e){if(e.length===0)return;let t=0,i=0,o=0,[s,n]=e[e.length-1];for(const[r,a]of e){const l=s*a-r*n;o+=l,t+=(s+r)*l,i+=(n+a)*l,s=r,n=a}return o*=3,[t/o,i/o]}function XC(e,t,i){let o=!1,s=1/0;for(const n of e){let r=n[n.length-1],[a,l]=r;for(const c of n){const[d,u]=c;u>i!=l>i&&t<(a-d)*(i-u)/(l-u)+d&&(o=!o),s=Math.min(s,SV(r,c,t,i)),r=c,a=d,l=u}}return(o?-1:1)*Math.sqrt(s)}var{Path:due,ExtendedPath2D:uue,BBox:hue,ScenePathChangeDetection:xV}=E,mg=class extends due{constructor(){super(...arguments),this.projectedGeometry=void 0,this.renderMode=3,this.strokePath=new uue}computeBBox(){return(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),this.bbox?.clone()}updatePath(){const{projectedGeometry:e}=this;this.strokePath.clear(),this.path.clear(),this.bbox=e!=null?this.drawGeometry(e,void 0):void 0}drawPath(e){super.drawPath(e),this.renderStroke(e,this.strokePath.getPath2D())}containsPoint(e,t){const{projectedGeometry:i}=this;return i==null||!this.getBBox().containsPoint(e,t)?!1:this.geometryDistance(i,e,t)<=0}distanceSquared(e,t){const{projectedGeometry:i}=this;if(i==null)return 1/0;const o=this.geometryDistance(i,e,t);return o>0?o*o:0}geometryDistance(e,t,i){const{renderMode:o,strokeWidth:s}=this,n=(o&1)!==0,r=(o&2)!==0,a=Math.max(s/2,1)+1;switch(e.type){case"GeometryCollection":return e.geometries.reduce((l,c)=>Math.min(l,this.geometryDistance(c,t,i)),1/0);case"MultiPolygon":return n?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(XC(c,t,i),0)),1/0):1/0;case"Polygon":return n?Math.max(XC(e.coordinates,t,i),0):1/0;case"MultiLineString":return r?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(WN(c,t,i)-a,0)),1/0):1/0;case"LineString":return r?Math.max(WN(e.coordinates,t,i)-a,0):1/0;case"MultiPoint":case"Point":default:return 1/0}}drawGeometry(e,t){const{renderMode:i,path:o,strokePath:s}=this,n=(i&1)!==0,r=(i&2)!==0;switch(e.type){case"GeometryCollection":e.geometries.forEach(a=>{t=this.drawGeometry(a,t)});break;case"MultiPolygon":n&&e.coordinates.forEach(a=>{t=this.drawPolygon(o,a,t)});break;case"Polygon":n&&(t=this.drawPolygon(o,e.coordinates,t));break;case"LineString":r&&(t=this.drawLineString(s,e.coordinates,t,!1));break;case"MultiLineString":r&&e.coordinates.forEach(a=>{t=this.drawLineString(s,a,t,!1)});break}return t}drawPolygon(e,t,i){if(t.length<1)return i;i=this.drawLineString(e,t[0],i,!0);for(let o=1;o<t.length;o+=1){const s=t[o];this.drawLineString(e,s,void 0,!0)}return i}drawLineString(e,t,i,o){if(t.length<2)return i;const s=o?t.length-1:t.length;for(let n=0;n<s;n+=1){const[r,a]=t[n];if(n===0?e.moveTo(r,a):e.lineTo(r,a),i==null)i=new hue(r,a,0,0);else{const{x:l,y:c}=i,d=l+i.width,u=c+i.height;i.x=Math.min(l,r),i.y=Math.min(c,a),i.width=Math.max(d,r)-i.x,i.height=Math.max(u,a)-i.y}}return o&&e.closePath(),i}};b([xV()],mg.prototype,"projectedGeometry");b([xV()],mg.prototype,"renderMode");function yg(e,t){if(e.bbox!=null){const[i,o,s,n]=e.bbox;return t=Rf(t,i,o,s,n),t}switch(e.type){case"GeometryCollection":e.geometries.forEach(i=>{t=yg(i,t)});break;case"MultiPolygon":e.coordinates.forEach(i=>{i.length>0&&(t=eu(i[0],t))});break;case"Polygon":e.coordinates.length>0&&(t=eu(e.coordinates[0],t));break;case"MultiLineString":e.coordinates.forEach(i=>{t=eu(i,t)});break;case"LineString":t=eu(e.coordinates,t);break;case"MultiPoint":e.coordinates.forEach(i=>{const[o,s]=i;t=Rf(t,o,s,o,s)});break;case"Point":{const[i,o]=e.coordinates;t=Rf(t,i,o,i,o);break}}return t}function ZC(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=ZC(o);if(s==null)return;const n=eu(s[0],void 0);if(n==null)return;const r=Math.abs(n.lat1-n.lat0)*Math.abs(n.lon1-n.lon0);(t==null||r>t)&&(t=r,i=s)}),i}case"MultiPolygon":{let t,i;return e.coordinates.forEach(o=>{const s=eu(o[0],void 0);if(s==null)return;const n=Math.abs(s.lat1-s.lat0)*Math.abs(s.lon1-s.lon0);(t==null||n>t)&&(t=n,i=o)}),i}case"Polygon":return e.coordinates;case"MultiLineString":case"LineString":case"MultiPoint":case"Point":return}}function qC(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=qC(o);if(s==null)return;const n=CD(s);n!=null&&(t==null||n>t)&&(t=n,i=s)}),i}case"MultiLineString":{let t=0,i;return e.coordinates.forEach(o=>{const s=CD(o);s>t&&(t=s,i=o)}),i}case"LineString":return e.coordinates;case"MultiPolygon":case"Polygon":case"MultiPoint":case"Point":return}}function nT(e,t){if(e==null)return!1;switch(e.type){case"GeometryCollection":return e.geometries.some(i=>nT(i,t));case"MultiPolygon":case"Polygon":return(t&1)!==0;case"MultiLineString":case"LineString":return(t&2)!==0;case"MultiPoint":case"Point":return(t&4)!==0}}function _c(e,t){switch(e.type){case"GeometryCollection":return{type:"GeometryCollection",geometries:e.geometries.map(i=>_c(i,t))};case"Polygon":return{type:"Polygon",coordinates:SD(e.coordinates,t)};case"MultiPolygon":return{type:"MultiPolygon",coordinates:pue(e.coordinates,t)};case"MultiLineString":return{type:"MultiLineString",coordinates:SD(e.coordinates,t)};case"LineString":return{type:"LineString",coordinates:xD(e.coordinates,t)};case"MultiPoint":return{type:"MultiPoint",coordinates:xD(e.coordinates,t)};case"Point":return{type:"Point",coordinates:t.convert(e.coordinates)}}}function pue(e,t){return e.map(i=>SD(i,t))}function SD(e,t){return e.map(i=>xD(i,t))}function xD(e,t){return e.map(i=>t.convert(i))}(class extends E.SeriesProperties{});var Uy=class extends E.DataModelSeries{addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",e=>{this.onLegendItemClick(e)}),this.ctx.chartEventManager.addListener("legend-item-double-click",e=>{this.onLegendItemDoubleClick(e)}))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}};function wV(e){return Array.isArray(e)&&e.length>=2&&e.every(Mc)}function Ub(e){return Array.isArray(e)&&e.length>=2&&e.every(wV)}var jN=.001;function gue(e){return Math.abs(e[0][0]-e[e.length-1][0])<jN&&Math.abs(e[0][1]-e[e.length-1][1])<jN}function $N(e){return Array.isArray(e)&&e.every(Ub)&&e.every(gue)}function MV(e){if(e===null)return!0;if(typeof e!="object"||e.type==null)return!1;const{type:t,coordinates:i}=e;switch(t){case"GeometryCollection":return Array.isArray(e.geometries)&&e.geometries.every(MV);case"MultiPolygon":return Array.isArray(i)&&i.every($N);case"Polygon":return $N(i);case"MultiLineString":return Array.isArray(i)&&i.every(Ub);case"LineString":return Ub(i);case"MultiPoint":return Ub(i);case"Point":return wV(i)}}function fue(e){return e!==null&&typeof e=="object"&&e.type==="Feature"&&MV(e.geometry)}function mue(e){return e!==null&&typeof e=="object"&&e.type==="FeatureCollection"&&Array.isArray(e.features)&&e.features.every(fue)}var Ra=E.predicateWithMessage(mue,"a GeoJSON object"),{COLOR_STRING:yue,LINE_DASH:vue,OBJECT:bue,POSITIVE_NUMBER:DV,RATIO:Cue,Validate:Ju,SeriesProperties:Sue,SeriesTooltip:xue}=E,ud=class extends Sue{constructor(){super(...arguments),this.topology=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new xue}};b([Ju(Ra,{optional:!0})],ud.prototype,"topology");b([Ju(yue)],ud.prototype,"stroke");b([Ju(Cue)],ud.prototype,"strokeOpacity");b([Ju(DV)],ud.prototype,"strokeWidth");b([Ju(vue)],ud.prototype,"lineDash");b([Ju(DV)],ud.prototype,"lineDashOffset");b([Ju(bue)],ud.prototype,"tooltip");var{createDatumId:wue,SeriesNodePickMode:Mue,Validate:Due,Group:kue,Selection:Iue,PointerEvents:Aue}=E,Sx=class extends Uy{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Mue.EXACT_SHAPE_MATCH]}),this.properties=new ud,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new kue({name:"itemGroup"})),this.datumSelection=Iue.select(this.itemGroup,()=>this.nodeFactory())}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){const e=new mg;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e.pointerEvents=Aue.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:yg(o,t)},void 0),e==null&&at.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?_c(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>wue(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{stroke:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=t,a=this.getStrokeWidth(t.strokeWidth);i.each((l,c)=>{const{projectedGeometry:d}=c;if(d==null){l.visible=!1,l.projectedGeometry=void 0;return}l.visible=!0,l.projectedGeometry=d,l.stroke=o,l.strokeWidth=a,l.strokeOpacity=s,l.lineDash=n,l.lineDashOffset=r})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}computeFocusBounds(e){}};Sx.className="MapLineBackgroundSeries";Sx.type="map-line-background";b([Due(Ra,{optional:!0,property:"topology"})],Sx.prototype,"_chartTopology");var{DEFAULT_HIERARCHY_STROKES:Rue}=E.ThemeSymbols,Tue={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line-background",moduleFactory:e=>new Sx(e),tooltipDefaults:{range:"exact"},themeTemplate:{...$y,series:{strokeWidth:1,lineDash:[0],lineDashOffset:0}},paletteFactory:({themeTemplateParameters:e})=>({stroke:e.get(Rue)?.[1]})};function Lue(){return{fromFn:(i,o,s)=>s==="removed"?{scalingX:1,scalingY:1}:i.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:i.scalingX,scalingY:i.scalingY},toFn:(i,o,s)=>s==="removed"?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}}function kV(e,t){const i=e.contextNodeData?.nodeData[t.datumIndex];if(i!==void 0){for(const o of e.datumSelection.nodes())if(o.datum===i)return o}}var{AND:Eue,ARRAY:Pue,COLOR_STRING:Nue,COLOR_STRING_ARRAY:Oue,FUNCTION:Fue,LINE_DASH:Bue,NUMBER_ARRAY:Gue,OBJECT:IV,POSITIVE_NUMBER:rT,RATIO:zue,STRING:Lr,Validate:Jt,SeriesProperties:_ue,SeriesTooltip:Vue,Label:Hue}=E,Vt=class extends _ue{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.topologyIdKey="name",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.maxStrokeWidth=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.label=new Hue,this.tooltip=new Vue}};b([Jt(Ra,{optional:!0})],Vt.prototype,"topology");b([Jt(Lr,{optional:!0})],Vt.prototype,"title");b([Jt(Lr,{optional:!0})],Vt.prototype,"legendItemName");b([Jt(Lr)],Vt.prototype,"idKey");b([Jt(Lr)],Vt.prototype,"topologyIdKey");b([Jt(Lr,{optional:!0})],Vt.prototype,"idName");b([Jt(Lr,{optional:!0})],Vt.prototype,"labelKey");b([Jt(Lr,{optional:!0})],Vt.prototype,"labelName");b([Jt(Lr,{optional:!0})],Vt.prototype,"sizeKey");b([Jt(Lr,{optional:!0})],Vt.prototype,"sizeName");b([Jt(Lr,{optional:!0})],Vt.prototype,"colorKey");b([Jt(Lr,{optional:!0})],Vt.prototype,"colorName");b([Jt(Gue,{optional:!0})],Vt.prototype,"sizeDomain");b([Jt(Eue(Oue,Pue.restrict({minLength:1})),{optional:!0})],Vt.prototype,"colorRange");b([Jt(rT,{optional:!0})],Vt.prototype,"maxStrokeWidth");b([Jt(Nue)],Vt.prototype,"stroke");b([Jt(zue)],Vt.prototype,"strokeOpacity");b([Jt(rT)],Vt.prototype,"strokeWidth");b([Jt(Bue)],Vt.prototype,"lineDash");b([Jt(rT)],Vt.prototype,"lineDashOffset");b([Jt(Fue,{optional:!0})],Vt.prototype,"itemStyler");b([Jt(IV)],Vt.prototype,"label");b([Jt(IV)],Vt.prototype,"tooltip");var{getMissCount:Wue,createDatumId:UN,SeriesNodePickMode:KN,valueProperty:Ug,CachedTextMeasurerPool:jue,Validate:$ue,ColorScale:Uue,LinearScale:Kue,Selection:mM,Text:Yue,Transformable:Xue}=E,xx=class extends Uy{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[KN.EXACT_SHAPE_MATCH,KN.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new Vt,this._chartTopology=void 0,this.colorScale=new Uue,this.sizeScale=new Kue,this.datumSelection=mM.select(this.contentGroup,()=>this.nodeFactory()),this.labelSelection=mM.select(this.labelGroup,Yue),this.highlightDatumSelection=mM.select(this.highlightNode,()=>this.nodeFactory()),this._previousDatumMidPoint=void 0}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new mg;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e}async processData(e){if(this.data==null||!this.properties.isValid())return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,sizeKey:a,colorKey:l,labelKey:c,sizeDomain:d,colorRange:u}=this.properties,h=new Map;i?.features.forEach(S=>{const x=S.properties?.[n];x==null||!nT(S.geometry,2)||h.set(x,S)});const p=this.sizeScale.type,g=this.colorScale.type,f=this.scale?.type,{dataModel:v,processedData:y}=await this.requestDataModel(e,t,{props:[Ug(r,f,{id:"idValue",includeProperty:!1}),Ug(r,f,{id:"featureValue",includeProperty:!1,processor:()=>S=>h.get(S)}),...c!=null?[Ug(c,"band",{id:"labelValue"})]:[],...a!=null?[Ug(a,p,{id:"sizeValue"})]:[],...l!=null?[Ug(l,g,{id:"colorValue"})]:[]]}),C=v.resolveColumnById(this,"featureValue",y);if(this.topologyBounds=C.reduce((S,x)=>{const D=x?.geometry;return D==null?S:yg(D,S)},void 0),a!=null){const S=v.resolveProcessedDataIndexById(this,"sizeValue"),x=y.domain.values[S]??[];o.domain=d??x}if(u!=null&&this.isColorScaleValid()){const S=v.resolveProcessedDataIndexById(this,"colorValue");s.domain=y.domain.values[S],s.range=u,s.update()}i==null&&at.warnOnce("no topology was provided for [MapLineSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=Wue(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o){if(t==null||i==null)return;const s=qC(i);if(s==null)return;const{idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h,label:p}=this.properties,g=this.getLabelText(p,{value:t,datum:e,idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h});if(g==null)return;const f=jue.measureText(String(g),{font:o}),v=YC(s);if(v==null)return;const[y,C]=v.point,{width:S,height:x}=f;return{point:{x:y,y:C,size:0},label:{width:S,height:x,text:g},anchor:void 0,placement:void 0}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,sizeKey:a,colorKey:l,labelKey:c,label:d}=s;if(t==null||i==null)return;const u=t.resolveColumnById(this,"idValue",i),h=t.resolveColumnById(this,"featureValue",i),p=c!=null?t.resolveColumnById(this,"labelValue",i):void 0,g=a!=null?t.resolveColumnById(this,"sizeValue",i):void 0,f=l!=null?t.resolveColumnById(this,"colorValue",i):void 0,v=s.maxStrokeWidth??s.strokeWidth;o.range=[Math.min(s.strokeWidth,v),v];const y=d.getFont(),C=new Map;i.dataSources.get(this.id)?.forEach((w,M)=>{const R=u[M],L=h[M]?.geometry??void 0,P=L!=null&&n!=null?_c(L,n):void 0;R!=null&&P!=null&&C.set(R,P)});const S=[],x=[],D=[];(i.dataSources.get(this.id)??[]).forEach((w,M)=>{const R=u[M],L=f?.[M],P=g?.[M],N=p?.[M],O=C.get(R);O==null&&D.push(R);const F=this.getLabelDatum(w,N,O,y);F!=null&&x.push(F),S.push({series:this,itemId:r,datum:w,datumIndex:M,idValue:R,labelValue:N,colorValue:L,sizeValue:P,projectedGeometry:O})});const k=10;if(D.length>k){const w=D.length-k;D.length=k,D.push(`(+${w} more)`)}return D.length>0&&at.warnOnce("some data items do not have matches in the provided topology",D),{itemId:e,nodeData:S,labelData:x}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,highlightDatumSelection:t}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let i=this.ctx.highlightManager?.getActiveHighlight();i!=null&&(i.series!==this||i.datum==null)&&(i=void 0);const o=this.contextNodeData?.nodeData??[];this.datumSelection=this.updateDatumSelection({nodeData:o,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:i!=null?[i]:[],datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>UN(t.idValue))}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{stroke:i?.stroke??t.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset}}getItemStyleOverrides(e,t,i,o,s,n){const{id:r,properties:a,colorScale:l,sizeScale:c}=this,{colorRange:d,itemStyler:u}=a;let h;if(!n&&i!=null&&(h??(h={}),h.stroke=this.isColorScaleValid()?l.convert(i):d?.[0]??a.stroke),o!=null&&(h??(h={}),h.strokeWidth=c.convert(o,!0)),u!=null){const p=this.cachedDatumCallback(UN(e,n?"highlight":"node"),()=>u({seriesId:r,datum:t,highlighted:n,...s,...h}));h??(h={}),Object.assign(h,p)}return h}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getItemBaseStyle(i);t.each((s,n)=>{const{datum:r,datumIndex:a,colorValue:l,sizeValue:c,projectedGeometry:d}=n;if(d==null){s.visible=!1,s.projectedGeometry=void 0;return}const u=this.getItemStyleOverrides(String(a),r,l,c,o,i);s.visible=!0,s.projectedGeometry=d,s.stroke=u?.stroke??o.stroke,s.strokeWidth=u?.strokeWidth??o.strokeWidth,s.strokeOpacity=u?.strokeOpacity??o.strokeOpacity,s.lineDash=u?.lineDash??o.lineDash,s.lineDashOffset=u?.lineDashOffset??o.lineDashOffset})}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=E.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){const{labelSelection:t}=e,{color:i,fontStyle:o,fontWeight:s,fontSize:n,fontFamily:r}=this.properties.label;t.each((a,{x:l,y:c,width:d,height:u,text:h})=>{a.visible=!0,a.x=l+d/2,a.y=c+u/2,a.text=h,a.fill=i,a.fontStyle=o,a.fontWeight=s,a.fontSize=n,a.fontFamily=r,a.textAlign="center",a.textBaseline="middle"})}resetAnimation(){}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?qC(i):void 0,s=o!=null?YC(o)?.point:void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{strokeWidth:s,strokeOpacity:n,lineDash:r}=o;let{stroke:a}=o;if(e!=null&&this.isColorScaleValid()){const c=t.resolveColumnById(this,"colorValue",i)[e];a=this.colorScale.convert(c)}return{marker:{fill:void 0,fillOpacity:0,stroke:void 0,strokeWidth:0,strokeOpacity:0,lineDash:[0],lineDashOffset:0,enabled:!1},line:{stroke:a,strokeWidth:s,strokeOpacity:n,lineDash:r}}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorName:d,colorRange:u,showInLegend:h}=this.properties;if(e==="gradient"&&c!=null&&u!=null){const p=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,colorName:d,colorRange:u,colorDomain:p}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!h}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{idKey:n,idName:r,colorKey:a,colorName:l,sizeKey:c,sizeName:d,labelKey:u,labelName:h,title:p,legendItemName:g,tooltip:f}=s;if(!i||!o)return;const{datumIndex:v}=e,y=o.dataSources.get(this.id)?.[v],C=i.resolveColumnById(this,"idValue",o),S=[],x=c!=null?i.resolveColumnById(this,"sizeValue",o)[v]:void 0,D=a!=null?i.resolveColumnById(this,"colorValue",o)[v]:void 0;if(c!=null&&S.push({label:d,fallbackLabel:c,value:String(x)}),a!=null&&S.push({label:l,fallbackLabel:a,value:String(D)}),u!=null&&u!==n){const k=i.resolveColumnById(this,"labelValue",o)[v];S.push({label:h,fallbackLabel:u,value:k})}const A=this.getItemBaseStyle(!1);return Object.assign(A,this.getItemStyleOverrides(String(v),v,D,x,A,!1)),f.formatTooltip({heading:C[v],title:p??g,symbol:this.legendItemSymbol(v),data:S},{seriesId:t,datum:y,title:p,idKey:n,idName:r,colorKey:a,colorName:l,sizeKey:c,sizeName:d,labelKey:u,labelName:h,...A})}computeFocusBounds(e){const t=kV(this,e);return t?Xue.toCanvas(this.contentGroup,t.getBBox()):void 0}};xx.className="MapLineSeries";xx.type="map-line";b([$ue(Ra,{optional:!0,property:"topology"})],xx.prototype,"_chartTopology");var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Zue}=E.ThemeSymbols,que={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line",moduleFactory:e=>new xx(e),tooltipDefaults:{range:"exact"},themeTemplate:{...$y,series:{strokeWidth:1,maxStrokeWidth:3,lineDash:[0],lineDashOffset:0,label:{enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}}}},paletteFactory:e=>{const{takeColors:t,colorsCount:i,userPalette:o,themeTemplateParameters:s}=e,{fill:n}=E.singleSeriesPaletteFactory(e),r=s.get(Zue),{fills:a}=t(i);return{colorRange:o==="inbuilt"?r:[a[0],a[1]],stroke:n}}},Que=(e,t,i)=>{let o=e,s=o;for(const n of t)if(o==null||i(o.value,n)>0)o={value:n,next:o},s=o;else{for(s=s;s.next!=null&&i(s.next.value,n)<=0;)s=s.next;s.next={value:n,next:s.next}}return o};function AV(e,t,i){const o=eu(e[0],void 0);if(o==null)return;const s=(o.lon0+o.lon1)/2,n=(o.lat0+o.lat1)/2,r=Math.abs(o.lon1-o.lon0),a=Math.abs(o.lat1-o.lat0),l=cue(e[0]),[c,d]=l,u=-XC(e,c,d);let h;const p=(D,A)=>{const w=Math.max(A-u,0);return D-.5*w},g=(D,A,k)=>{const{distance:w,maxDistance:M}=i(e,D,A,k),R=Math.hypot(c-D,d-A),L=Math.min(Math.max(c,D-k/2),D+k/2),P=Math.min(Math.max(d,A-k/2),A+k/2),N=Math.hypot(c-L,d-P),O=p(w,R),F=p(M,N);return{distance:w,maxDistance:M,value:O,maxValue:F,x:D,y:A,stride:k}},f=(D,A,k,w)=>{const M=g(A,k,w);M.maxDistance>=0&&D.push(M)},v=Math.min(r,a)/2;let y={value:g(s,n,v),next:null};for(;y!=null;){const D=y.value,{distance:A,value:k,maxValue:w,x:M,y:R,stride:L}=D;if(y=y.next,A>0&&(h==null||k>h.value)&&(h=D),h!=null&&w-h.value<=t)continue;const P=L/2,N=[];f(N,M-P,R-P,P),f(N,M+P,R-P,P),f(N,M-P,R+P,P),f(N,M+P,R+P,P),N.sort(YN),y=Que(y,N,YN)}if(h==null)return;const{distance:C,x:S,y:x}=h;return{x:S,y:x,distance:C}}var YN=(e,t)=>t.maxValue-e.maxValue;function wD(e,t){const i=AV(e,t,(n,r,a,l)=>{const c=-XC(n,r,a),d=c+l*Math.SQRT2;return{distance:c,maxDistance:d}});if(i==null)return;const{x:o,y:s}=i;return[o,s]}function RV(e,t){let i;switch(e.type){case"GeometryCollection":return e.geometries.flatMap(o=>RV(o,t));case"MultiPoint":return e.coordinates;case"Point":return[e.coordinates];case"MultiPolygon":{const o=ZC(e);i=o!=null?wD(o,t):void 0;break}case"Polygon":{const o=e.coordinates;i=o!=null?wD(o,t):void 0;break}case"MultiLineString":{const o=qC(e);i=o!=null?YC(o)?.point:void 0;break}case"LineString":{const o=e.coordinates;i=YC(o)?.point;break}}return i!=null?[i]:[]}var{AND:Jue,ARRAY:ehe,COLOR_STRING:TV,COLOR_STRING_ARRAY:the,FUNCTION:ihe,NUMBER_ARRAY:ohe,OBJECT:LV,POSITIVE_NUMBER:wx,RATIO:EV,STRING:Vo,MARKER_SHAPE:she,LINE_DASH:nhe,Validate:gt,SeriesProperties:rhe,SeriesTooltip:ahe,Label:lhe}=E,PV=class extends lhe{constructor(){super(...arguments),this.placement="bottom"}};b([gt(Vo)],PV.prototype,"placement");var ft=class extends rhe{constructor(){super(...arguments),this.topology=void 0,this.idKey=void 0,this.topologyIdKey="name",this.idName=void 0,this.latitudeKey=void 0,this.latitudeName=void 0,this.longitudeKey=void 0,this.longitudeName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.shape="circle",this.size=6,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.label=new PV,this.tooltip=new ahe}isValid(){const e=super.isValid(),t=this.idKey!=null,i=this.latitudeKey!=null&&this.longitudeKey!=null;return!t&&!i?(at.warnOnce("Either both [topology] and [idKey] or both [latitudeKey] and [longitudeKey] must be set to render a map marker series."),!1):e}};b([gt(Ra,{optional:!0})],ft.prototype,"topology");b([gt(Vo,{optional:!0})],ft.prototype,"title");b([gt(Vo,{optional:!0})],ft.prototype,"legendItemName");b([gt(Vo,{optional:!0})],ft.prototype,"idKey");b([gt(Vo)],ft.prototype,"topologyIdKey");b([gt(Vo,{optional:!0})],ft.prototype,"idName");b([gt(Vo,{optional:!0})],ft.prototype,"latitudeKey");b([gt(Vo,{optional:!0})],ft.prototype,"latitudeName");b([gt(Vo,{optional:!0})],ft.prototype,"longitudeKey");b([gt(Vo,{optional:!0})],ft.prototype,"longitudeName");b([gt(Vo,{optional:!0})],ft.prototype,"labelKey");b([gt(Vo,{optional:!0})],ft.prototype,"labelName");b([gt(Vo,{optional:!0})],ft.prototype,"sizeKey");b([gt(Vo,{optional:!0})],ft.prototype,"sizeName");b([gt(Vo,{optional:!0})],ft.prototype,"colorKey");b([gt(Vo,{optional:!0})],ft.prototype,"colorName");b([gt(Jue(the,ehe.restrict({minLength:1})),{optional:!0})],ft.prototype,"colorRange");b([gt(she)],ft.prototype,"shape");b([gt(wx)],ft.prototype,"size");b([gt(wx,{optional:!0})],ft.prototype,"maxSize");b([gt(ohe,{optional:!0})],ft.prototype,"sizeDomain");b([gt(TV)],ft.prototype,"fill");b([gt(EV)],ft.prototype,"fillOpacity");b([gt(TV)],ft.prototype,"stroke");b([gt(wx)],ft.prototype,"strokeWidth");b([gt(EV)],ft.prototype,"strokeOpacity");b([gt(nhe)],ft.prototype,"lineDash");b([gt(wx)],ft.prototype,"lineDashOffset");b([gt(ihe,{optional:!0})],ft.prototype,"itemStyler");b([gt(LV)],ft.prototype,"label");b([gt(LV)],ft.prototype,"tooltip");var{CachedTextMeasurerPool:che,Validate:dhe,fromToMotion:uhe,StateMachine:hhe,getMissCount:phe,createDatumId:XN,SeriesNodePickMode:ZN,valueProperty:Nd,computeMarkerFocusBounds:ghe,ColorScale:fhe,LinearScale:mhe,Group:yhe,Selection:yM,Text:vhe,Marker:vM,applyShapeStyle:bhe}=E,Mx=class extends Uy{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[ZN.EXACT_SHAPE_MATCH,ZN.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new ft,this._chartTopology=void 0,this.colorScale=new fhe,this.sizeScale=new mhe,this.markerGroup=this.contentGroup.appendChild(new yhe({name:"markerGroup"})),this.labelSelection=yM.select(this.labelGroup,vhe,!1),this.markerSelection=yM.select(this.markerGroup,vM,!1),this.highlightMarkerSelection=yM.select(this.highlightNode,vM),this.animationState=new hhe("empty",{empty:{update:{target:"ready",action:()=>this.animateMarkers()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.resetAllAnimation(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateMarkers()},resize:{target:"ready",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){const e=this.properties.latitudeKey!=null&&this.properties.longitudeKey!=null;return super.hasData&&(this.topology!=null||e)}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[3,e],this.highlightGroup.zIndex=[4,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}async processData(e){if(this.data==null||!this.properties.isValid())return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,sizeDomain:h,colorRange:p}=this.properties,g=new Map;i?.features.forEach(w=>{const M=w.properties?.[n];M!=null&&g.set(M,w)});const f=this.sizeScale.type,v=this.colorScale.type,y=this.scale?.type,C=a!=null&&l!=null,{dataModel:S,processedData:x}=await this.requestDataModel(e,t,{props:[...r!=null?[Nd(r,y,{id:"idValue",includeProperty:!1}),Nd(r,y,{id:"featureValue",includeProperty:!1,processor:()=>w=>g.get(w)})]:[],...C?[Nd(a,y,{id:"latValue"}),Nd(l,y,{id:"lonValue"})]:[],...u?[Nd(u,"band",{id:"labelValue"})]:[],...c?[Nd(c,f,{id:"sizeValue"})]:[],...d?[Nd(d,v,{id:"colorValue"})]:[]]}),D=r!=null?S.resolveColumnById(this,"featureValue",x):void 0,A=C?S.resolveColumnById(this,"latValue",x):void 0,k=C?S.resolveColumnById(this,"lonValue",x):void 0;if(this.topologyBounds=x.dataSources.get(this.id)?.reduce((w,M,R)=>{const P=D?.[R]?.geometry;if(P!=null&&(w=yg(P,w)),A!=null&&k!=null){const N=k[R],O=A[R];w=Rf(w,N,O,N,O)}return w},void 0),c!=null){const w=S.resolveProcessedDataIndexById(this,"sizeValue"),M=x.domain.values[w]??[];o.domain=h??M}if(p!=null&&this.isColorScaleValid()){const w=S.resolveProcessedDataIndexById(this,"colorValue");s.domain=x.domain.values[w],s.range=p,s.update()}this.animationState.transition("updateData")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=phe(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o,s,n){if(t==null)return;const{idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:v,labelName:y,label:C,shape:S}=this.properties,{placement:x}=C,D=this.getLabelText(C,{value:t,datum:e,idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:v,labelName:y});if(D==null)return;const{width:A,height:k}=che.measureText(String(D),{font:n}),w=vM.anchor(S);return{point:{x:i,y:o,size:s},label:{width:A,height:k,text:D},anchor:w,placement:x}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,label:h}=s;if(t==null||i==null||n==null)return;const p=a!=null&&l!=null,g=r!=null?t.resolveColumnById(this,"idValue",i):void 0,f=r!=null?t.resolveColumnById(this,"featureValue",i):void 0,v=p?t.resolveColumnById(this,"latValue",i):void 0,y=p?t.resolveColumnById(this,"lonValue",i):void 0,C=u!=null?t.resolveColumnById(this,"labelValue",i):void 0,S=c!=null?t.resolveColumnById(this,"sizeValue",i):void 0,x=d!=null?t.resolveColumnById(this,"colorValue",i):void 0,D=s.maxSize??s.size;o.range=[Math.min(s.size,D),D];const A=h.getFont();let k;g!=null&&f!=null&&(k=new Map,i.dataSources.get(this.id)?.forEach((N,O)=>{const F=g[O],z=f[O]?.geometry??void 0,_=z!=null&&n!=null?_c(z,n):void 0;F!=null&&_!=null&&k.set(F,_)}));const w=[],M=[],R=[];(i.dataSources.get(this.id)??[]).forEach((N,O)=>{const F=g?.[O],z=y?.[O],_=v?.[O],V=x?.[O],G=S?.[O],H=C?.[O],B=G!=null?o.convert(G,!0):s.size,W=F!=null?k?.get(F):void 0;if(F!=null&&_c==null&&R.push(F),z!=null&&_!=null){const[j,U]=n.convert([z,_]),ee=this.getLabelDatum(N,H,j,U,B,A);ee&&M.push(ee),w.push({series:this,itemId:a,datum:N,datumIndex:O,index:-1,idValue:F,lonValue:z,latValue:_,labelValue:H,sizeValue:G,colorValue:V,point:{x:j,y:U,size:B},midPoint:{x:j,y:U}})}else W!=null&&RV(W,1).forEach(([j,U],ee)=>{const q=this.getLabelDatum(N,H,j,U,B,A);q&&M.push(q),w.push({series:this,itemId:a,datum:N,datumIndex:O,index:ee,idValue:F,lonValue:z,latValue:_,labelValue:H,sizeValue:G,colorValue:V,point:{x:j,y:U,size:B},midPoint:{x:j,y:U}})})});const P=10;if(R.length>P){const N=R.length-P;R.length=P,R.push(`(+${N} more)`)}return R.length>0&&at.warnOnce("some data items do not have matches in the provided topology",R),{itemId:e,nodeData:w,labelData:M}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}checkScaleChange(){return this.previousScale===this.scale?!1:(this.previousScale=this.scale,!0)}update({seriesRect:e}){const t=this.checkResize(e),i=this.checkScaleChange(),{markerSelection:o,highlightMarkerSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=this.ctx.highlightManager?.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);const r=this.contextNodeData?.nodeData??[];this.markerSelection=this.updateMarkerSelection({markerData:r,markerSelection:o}),this.updateMarkerNodes({markerSelection:o,isHighlight:!1,highlightedDatum:n}),this.highlightMarkerSelection=this.updateMarkerSelection({markerData:n!=null?[n]:[],markerSelection:s}),this.updateMarkerNodes({markerSelection:s,isHighlight:!0,highlightedDatum:n}),(i||t)&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=E.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){const{labelSelection:t}=e,{color:i,fontStyle:o,fontWeight:s,fontSize:n,fontFamily:r}=this.properties.label;t.each((a,{x:l,y:c,width:d,height:u,text:h})=>{a.visible=!0,a.x=l+d/2,a.y=c+u/2,a.text=h,a.fill=i,a.fontStyle=o,a.fontWeight=s,a.fontSize=n,a.fontFamily=r,a.textAlign="center",a.textBaseline="middle"})}updateMarkerSelection(e){const{markerData:t,markerSelection:i}=e;return i.update(t,void 0,o=>XN([o.index,o.idValue,o.lonValue,o.latValue]))}getMarkerItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{shape:t.shape,size:t.size,fill:i?.fill??t.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke??t.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset}}getMarkerItemStyleOverrides(e,t,i,o,s,n){const{id:r,properties:a,colorScale:l,sizeScale:c}=this,{colorRange:d,itemStyler:u}=a;let h;if(!n&&i!=null&&(h??(h={}),h.fill=this.isColorScaleValid()?l.convert(i):d?.[0]??a.fill),o!=null&&(h??(h={}),h.size=c.convert(o,!0)),u!=null){const p=this.cachedDatumCallback(XN(e,n?"highlight":"node"),()=>u({seriesId:r,datum:t,highlighted:n,...s,...h}));h??(h={}),Object.assign(h,p)}return h}updateMarkerNodes(e){const{markerSelection:t,isHighlight:i,highlightedDatum:o}=e,s=this.getMarkerItemBaseStyle(i);t.each((n,r)=>{const{datumIndex:a,datum:l,point:c,colorValue:d,sizeValue:u}=r,h=this.getMarkerItemStyleOverrides(String(a),l,d,u,s,i);n.shape=h?.shape??s.shape,n.size=h?.size??s.size,bhe(n,s,h),n.translationX=c.x,n.translationY=c.y,n.zIndex=!i&&o!=null&&l===o.datum?1:0})}isProcessedDataAnimatable(){return!0}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),this.ctx.animationManager.skipCurrentBatch(),this.labelSelection.cleanup(),this.markerSelection.cleanup(),this.highlightMarkerSelection.cleanup()}animateMarkers(){const{animationManager:e}=this.ctx,t=Lue();uhe(this.id,"markers",e,[this.markerSelection,this.highlightMarkerSelection],t)}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum(e){const{x:t,y:i}=e;let o=1/0,s;return this.contextNodeData?.nodeData.forEach(n=>{const{x:r,y:a,size:l}=n.point,c=Math.max(Math.abs(r-t)-l,0),d=Math.max(Math.abs(a-i)-l,0),u=c*c+d*d;u<o&&(o=u,s=n)}),s!=null?{datum:s,distance:Math.sqrt(o)}:void 0}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{shape:s,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d}=o;let{fill:u}=o;if(e!=null&&this.isColorScaleValid()){const p=t.resolveColumnById(this,"colorValue",i)[e];u=this.colorScale.convert(p)}return{marker:{shape:s,fill:u,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d}}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idName:a,idKey:l,colorKey:c,colorName:d,colorRange:u,showInLegend:h}=this.properties;if(e==="gradient"&&c!=null&&u!=null){const p=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,colorName:d,colorRange:u,colorDomain:p}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??a??l??o},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!h}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{idKey:n,idName:r,latitudeKey:a,latitudeName:l,longitudeKey:c,longitudeName:d,colorKey:u,colorName:h,sizeKey:p,sizeName:g,labelKey:f,labelName:v,title:y,legendItemName:C,tooltip:S}=s;if(!i||!o)return;const{datumIndex:x}=e,D=o.dataSources.get(this.id)?.[x],A=p!=null?i.resolveColumnById(this,"sizeValue",o)[x]:void 0,k=u!=null?i.resolveColumnById(this,"colorValue",o)[x]:void 0,w=[];if(A!=null&&w.push({label:g,fallbackLabel:p,value:String(A)}),k!=null&&w.push({label:h,fallbackLabel:u,value:String(k)}),f!=null&&f!==n){const L=i.resolveColumnById(this,"labelValue",o)[x];w.push({label:v,fallbackLabel:f,value:L})}let M;if(n!=null)M=i.resolveColumnById(this,"idValue",o)[x];else if(a!=null&&c!=null){const L=i.resolveColumnById(this,"latValue",o)[x],P=i.resolveColumnById(this,"lonValue",o)[x];M=`${Math.abs(L).toFixed(4)}° ${L>=0?"N":"S"}, ${Math.abs(P).toFixed(4)}° ${P>=0?"W":"E"}`}const R=this.getMarkerItemBaseStyle(!1);return Object.assign(R,this.getMarkerItemStyleOverrides(String(x),x,k,A,R,!1)),S.formatTooltip({heading:M,title:y??C,symbol:this.legendItemSymbol(x),data:w},{seriesId:t,datum:D,title:y,idKey:n,idName:r,latitudeKey:a,latitudeName:l,longitudeKey:c,longitudeName:d,colorKey:u,colorName:h,sizeKey:p,sizeName:g,labelKey:f,labelName:v,...R})}getFormattedMarkerStyle(e){const{datumIndex:t,colorValue:i,sizeValue:o}=e,s=this.getMarkerItemBaseStyle(!1);return Object.assign(s,this.getMarkerItemStyleOverrides(String(t),t,i,o,s,!1)),{size:s.size}}computeFocusBounds(e){return ghe(this,e)}};Mx.className="MapMarkerSeries";Mx.type="map-marker";b([dhe(Ra,{optional:!0,property:"topology"})],Mx.prototype,"_chartTopology");var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Che}=E.ThemeSymbols,She={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-marker",moduleFactory:e=>new Mx(e),tooltipDefaults:{range:"exact"},themeTemplate:{...$y,series:{shape:"circle",maxSize:30,fillOpacity:.5,label:{color:{$ref:"textColor"}}}},paletteFactory:e=>{const{takeColors:t,colorsCount:i,userPalette:o,themeTemplateParameters:s}=e,{fill:n,stroke:r}=E.singleSeriesPaletteFactory(e),a=s.get(Che),{fills:l}=t(i);return{fill:n,stroke:r,colorRange:o==="inbuilt"?a:[l[0],l[1]]}}},{COLOR_STRING:NV,LINE_DASH:xhe,OBJECT:whe,POSITIVE_NUMBER:OV,RATIO:FV,Validate:Hl,SeriesProperties:Mhe,SeriesTooltip:Dhe}=E,Ta=class extends Mhe{constructor(){super(...arguments),this.topology=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new Dhe}};b([Hl(Ra,{optional:!0})],Ta.prototype,"topology");b([Hl(NV)],Ta.prototype,"fill");b([Hl(FV)],Ta.prototype,"fillOpacity");b([Hl(NV)],Ta.prototype,"stroke");b([Hl(FV)],Ta.prototype,"strokeOpacity");b([Hl(OV)],Ta.prototype,"strokeWidth");b([Hl(xhe)],Ta.prototype,"lineDash");b([Hl(OV)],Ta.prototype,"lineDashOffset");b([Hl(whe)],Ta.prototype,"tooltip");var{createDatumId:khe,SeriesNodePickMode:Ihe,Validate:Ahe,Selection:Rhe,Group:The,PointerEvents:Lhe}=E,Dx=class extends Uy{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Ihe.EXACT_SHAPE_MATCH]}),this.properties=new Ta,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new The({name:"itemGroup"})),this.datumSelection=Rhe.select(this.itemGroup,()=>this.nodeFactory())}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}getNodeData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){const e=new mg;return e.renderMode=1,e.lineJoin="round",e.pointerEvents=Lhe.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:yg(o,t)},void 0),e==null&&at.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?_c(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>khe(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{fill:o,fillOpacity:s,stroke:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}=t,c=this.getStrokeWidth(t.strokeWidth);i.each((d,u)=>{const{projectedGeometry:h}=u;if(h==null){d.visible=!1,d.projectedGeometry=void 0;return}d.visible=!0,d.projectedGeometry=h,d.fill=o,d.fillOpacity=s,d.stroke=n,d.strokeWidth=c,d.strokeOpacity=r,d.lineDash=a,d.lineDashOffset=l})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}pickFocus(){}computeFocusBounds(e){}};Dx.className="MapShapeBackgroundSeries";Dx.type="map-shape-background";b([Ahe(Ra,{optional:!0,property:"topology"})],Dx.prototype,"_chartTopology");var{DEFAULT_HIERARCHY_FILLS:Ehe}=E.ThemeSymbols,Phe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape-background",moduleFactory:e=>new Dx(e),tooltipDefaults:{range:"exact"},themeTemplate:{...$y,series:{stroke:{$ref:"backgroundColor"},strokeWidth:1}},paletteFactory:({themeTemplateParameters:e})=>({fill:e.get(Ehe)?.[1]})};function Nhe(e,{aspectRatio:t,precision:i}){const o=AV(e,i,(l,c,d,u)=>{const h=Fhe(l,c,d,t),p=h+2*u*t,g=h*Math.SQRT2,f=p*Math.SQRT2;return{distance:g,maxDistance:f}});if(o==null)return;const{x:s,y:n,distance:r}=o,a=r/Math.SQRT2;return{x:s,y:n,maxWidth:a}}function Ohe(e,t,i,o,s){const[n,r]=e,[a,l]=t,c=1/s,d=a-n,u=l-r,[h,p]=r<=l?e:t,[g,f]=n<=a?e:t,[v,y]=r<=l?t:e,[C,S]=n<=a?t:e;let x=1/0;if(d!==0){const R=u/d;for(let L=0;L<=1;L+=1){const P=L===0?c:-c,N=(R*n-r-P*i+o)/(R-P);if(N>=g&&N<=C){const O=Math.abs(i-N)*2;x=Math.min(x,O)}}}else for(let R=0;R<=1;R+=1){const P=(R===0?c:-c)*(n-i)+o;if(P>=p&&P<=y){const O=Math.abs(o-P)*2*s;x=Math.min(x,O)}}const D=s,A=Math.abs((h-i)/(p-o)),k=Math.abs((v-i)/(y-o));if(y<o&&k<D){const L=Math.abs(o-y)*2*s;x=Math.min(x,L)}else if(p>o&&A<D){const L=Math.abs(o-p)*2*s;x=Math.min(x,L)}const w=Math.abs((f-o)/(g-i)),M=Math.abs((S-o)/(C-i));if(C<i&&M<c){const R=Math.abs(i-C)*2;x=Math.min(x,R)}else if(g>i&&w<c){const R=Math.abs(i-g)*2;x=Math.min(x,R)}return x}function Fhe(e,t,i,o){let s=!1,n=1/0;for(const r of e){let a=r[r.length-1],[l,c]=a;for(const d of r){const[u,h]=d;h>i!=c>i&&t<(l-u)*(i-h)/(c-h)+u&&(s=!s);const p=Ohe(a,d,t,i,o);n=Math.min(n,p),a=d,l=u,c=h}}return(s?1:-1)*n}function ib(e,t,i){i>=t&&(e.maxX=Math.min(e.maxX,i-t)),i<=t&&(e.minX=Math.max(e.minX,i-t))}function Bhe(e,t,i,o,s,n){const r=s-n/2,a=s+n/2,[l,c]=t,[d,u]=i,h=d-l,p=u-c,[g,f]=l<=d?t:i,[v,y]=l<=d?i:t;if(h!==0){const C=p/h;for(let S=0;S<=1;S+=1){const D=((S===0?r:a)-c)/C+l;D>=g&&D<=v&&ib(e,o,D)}}else Math.max(r,Math.min(c,u))<=Math.min(a,Math.max(c,u))&&ib(e,o,l);return v<o&&y>=r&&y<=a?ib(e,o,v):g>o&&f>=r&&f<=a&&ib(e,o,g),e}function Ghe(e,t,i,o){const s={minX:-1/0,maxX:1/0};for(const a of e){let l=a[a.length-1];for(const c of a)Bhe(s,l,c,t,i,o),l=c}const{minX:n,maxX:r}=s;return Number.isFinite(n)&&Number.isFinite(r)?{x:t+(n+r)/2,width:r-n}:{x:t,width:0}}var{AND:zhe,ARRAY:_he,COLOR_STRING:BV,COLOR_STRING_ARRAY:Vhe,FUNCTION:Hhe,LINE_DASH:Whe,OBJECT:GV,POSITIVE_NUMBER:aT,RATIO:zV,STRING:Wl,Validate:si,SeriesProperties:jhe,SeriesTooltip:$he}=E,ei=class extends jhe{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.idName=void 0,this.topologyIdKey="name",this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.padding=0,this.label=new Wy,this.tooltip=new $he}};b([si(Ra,{optional:!0})],ei.prototype,"topology");b([si(Wl,{optional:!0})],ei.prototype,"title");b([si(Wl,{optional:!0})],ei.prototype,"legendItemName");b([si(Wl)],ei.prototype,"idKey");b([si(Wl,{optional:!0})],ei.prototype,"idName");b([si(Wl)],ei.prototype,"topologyIdKey");b([si(Wl,{optional:!0})],ei.prototype,"labelKey");b([si(Wl,{optional:!0})],ei.prototype,"labelName");b([si(Wl,{optional:!0})],ei.prototype,"colorKey");b([si(Wl,{optional:!0})],ei.prototype,"colorName");b([si(zhe(Vhe,_he.restrict({minLength:1})),{optional:!0})],ei.prototype,"colorRange");b([si(BV)],ei.prototype,"fill");b([si(zV)],ei.prototype,"fillOpacity");b([si(BV)],ei.prototype,"stroke");b([si(zV)],ei.prototype,"strokeOpacity");b([si(aT)],ei.prototype,"strokeWidth");b([si(Whe)],ei.prototype,"lineDash");b([si(aT)],ei.prototype,"lineDashOffset");b([si(aT)],ei.prototype,"padding");b([si(Hhe,{optional:!0})],ei.prototype,"itemStyler");b([si(GV)],ei.prototype,"label");b([si(GV)],ei.prototype,"tooltip");var{getMissCount:Uhe,createDatumId:qN,SeriesNodePickMode:QN,valueProperty:ob,Validate:Khe,CachedTextMeasurerPool:Yhe,TextUtils:JN,ColorScale:Xhe,Group:eO,Selection:bM,Text:Zhe,PointerEvents:qhe,applyShapeStyle:Qhe}=E,tO=E.MercatorScale.fixedScale(),kx=class extends Uy{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[QN.EXACT_SHAPE_MATCH,QN.NEAREST_NODE]}),this.properties=new ei,this._chartTopology=void 0,this.colorScale=new Xhe,this.itemGroup=this.contentGroup.appendChild(new eO({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new eO({name:"itemLabelGroup"})),this.datumSelection=bM.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=bM.select(this.itemLabelGroup,Zhe),this.highlightDatumSelection=bM.select(this.highlightNode,()=>this.nodeFactory()),this.previousLabelLayouts=void 0,this._previousDatumMidPoint=void 0,this.itemLabelGroup.pointerEvents=qhe.None}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new mg;return e.renderMode=1,e.lineJoin="round",e}async processData(e){if(this.data==null||!this.properties.isValid())return;const{data:t,topology:i,colorScale:o}=this,{topologyIdKey:s,idKey:n,colorKey:r,labelKey:a,colorRange:l}=this.properties,c=new Map;i?.features.forEach(f=>{const v=f.properties?.[s];v==null||!nT(f.geometry,1)||c.set(v,f)});const d=this.colorScale.type,u=this.scale?.type,{dataModel:h,processedData:p}=await this.requestDataModel(e,t,{props:[ob(n,u,{id:"idValue",includeProperty:!1}),ob(n,u,{id:"featureValue",includeProperty:!1,processor:()=>f=>c.get(f)}),...a?[ob(a,"band",{id:"labelValue"})]:[],...r?[ob(r,d,{id:"colorValue"})]:[]]}),g=h.resolveColumnById(this,"featureValue",p);if(this.topologyBounds=g.reduce((f,v)=>{const y=v?.geometry;return y==null?f:yg(y,f)},void 0),l!=null&&this.isColorScaleValid()){const f=h.resolveProcessedDataIndexById(this,"colorValue");o.domain=p.domain.values[f],o.range=l,o.update()}i==null&&at.warnOnce("no topology was provided for [MapShapeSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=Uhe(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelLayout(e,t,i,o,s){if(t==null||o==null)return;const{idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d,padding:u,label:h}=this.properties,p=this.getLabelText(h,{value:t,datum:e,idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d});if(p==null)return;const g=Yhe.measureText(String(p),{font:i}),f=p.split(`
|
|
19
19
|
`).length,v=(g.width+2*u)/(f*JN.getLineHeight(h.fontSize)+2*u);if(s?.geometry===o&&s?.labelText===p&&s?.aspectRatio===v)return s;const y=_c(o,tO),C=ZC(y);if(C==null)return;const S=Nhe(C,{aspectRatio:v,precision:.001});if(S==null)return;const{x,y:D,maxWidth:A}=S;return{geometry:o,labelText:p,aspectRatio:v,x,y:D,maxWidth:A,fixedPolygon:C}}getLabelDatum(e,t){const{scale:i}=this;if(i==null)return;const{padding:o,label:s}=this.properties,{labelText:n,aspectRatio:r,x:a,y:l,maxWidth:c,fixedPolygon:d}=e,u={width:Math.ceil(c*t),height:Math.ceil(c*t/r),meta:a},h=Mm(n,s,{padding:o},(x,D)=>{if(!D)return u;const A=Ghe(d,a,l,x/t);return{width:A.width*t,height:x,meta:A.x}});if(h==null)return;const[{text:p,fontSize:g,lineHeight:f,width:v},y]=h;if(p===JN.EllipsisChar)return;const C=v<u.width?a:y,S=this.scale.convert(tO.invert([C,l]));return{x:S[0],y:S[1],text:p,fontSize:g,lineHeight:f}}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,scale:s,previousLabelLayouts:n}=this,{idKey:r,colorKey:a,labelKey:l,label:c}=o;if(t==null||i==null)return;const d=s!=null?(s.range[1][0]-s.range[0][0])/s.bounds.width:NaN,u=t.resolveColumnById(this,"idValue",i),h=t.resolveColumnById(this,"featureValue",i),p=l!=null?t.resolveColumnById(this,"labelValue",i):void 0,g=a!=null?t.resolveColumnById(this,"colorValue",i):void 0,f=c.getFont(),v=new Map;this.previousLabelLayouts=v;const y=[],C=[],S=[];(i.dataSources.get(this.id)??[]).forEach((A,k)=>{const w=u[k],M=g?.[k],R=p?.[k],L=h[k]?.geometry??void 0;L==null&&S.push(w);const P=this.getLabelLayout(A,R,f,L,n?.get(w));P!=null&&v.set(w,P);const N=P!=null&&s!=null?this.getLabelDatum(P,d):void 0;N!=null&&C.push(N);const O=L!=null&&s!=null?_c(L,s):void 0;y.push({series:this,itemId:r,datum:A,datumIndex:k,idValue:w,colorValue:M,labelValue:R,projectedGeometry:O})});const D=10;if(S.length>D){const A=S.length-D;S.length=D,S.push(`(+${A} more)`)}return S.length>0&&at.warnOnce("some data items do not have matches in the provided topology",S),{itemId:e,nodeData:y,labelData:C}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,labelSelection:t,highlightDatumSelection:i}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let o=this.ctx.highlightManager?.getActiveHighlight();o!=null&&(o.series!==this||o.datum==null)&&(o=void 0);const s=this.contextNodeData?.nodeData??[],n=this.contextNodeData?.labelData??[];this.datumSelection=this.updateDatumSelection({nodeData:s,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:n,labelSelection:t}),this.updateLabelNodes({labelSelection:t}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:o!=null?[o]:[],datumSelection:i}),this.updateDatumNodes({datumSelection:i,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>qN(t.idValue))}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{fill:i?.fill??t.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke??t.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset}}getItemStyleOverrides(e,t,i,o,s){const{id:n,properties:r,colorScale:a}=this,{colorRange:l,itemStyler:c}=r;let d;if(!s&&i!=null&&(d??(d={}),d.fill=this.isColorScaleValid()?a.convert(i):l?.[0]??r.fill),c!=null){const u=this.cachedDatumCallback(qN(e,s?"highlight":"node"),()=>c({seriesId:n,datum:t,highlighted:s,...o,...d}));d??(d={}),Object.assign(d,u)}return d}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getItemBaseStyle(i);t.each((s,n)=>{const{datum:r,datumIndex:a,colorValue:l,projectedGeometry:c}=n;if(c==null){s.visible=!1,s.projectedGeometry=void 0;return}const d=this.getItemStyleOverrides(String(a),r,l,o,i);s.visible=!0,s.projectedGeometry=c,Qhe(s,o,d)})}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){const{labelSelection:t}=e,{color:i,fontStyle:o,fontWeight:s,fontFamily:n}=this.properties.label;t.each((r,{x:a,y:l,text:c,fontSize:d,lineHeight:u})=>{r.visible=!0,r.x=a,r.y=l,r.text=c,r.fill=i,r.fontStyle=o,r.fontWeight=s,r.fontSize=d,r.lineHeight=u,r.fontFamily=n,r.textAlign="center",r.textBaseline="middle"})}resetAnimation(){}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?ZC(i):void 0,s=o!=null?wD(o,2):void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=o;let{fill:d}=o;if(e!=null&&this.isColorScaleValid()){const h=t.resolveColumnById(this,"colorValue",i)[e];d=this.colorScale.convert(h)}return{marker:{fill:d,fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorName:d,colorRange:u,showInLegend:h}=this.properties;if(e==="gradient"&&c!=null&&u!=null){const p=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,colorName:d,colorRange:u,colorDomain:p}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!h}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d,legendItemName:u,title:h,tooltip:p}=s;if(!i||!o)return;const{datumIndex:g}=e,f=o.dataSources.get(this.id)?.[g],v=i.resolveColumnById(this,"idValue",o)[g],y=a!=null?i.resolveColumnById(this,"colorValue",o)[g]:void 0,C=[];if(y!=null&&C.push({label:l,fallbackLabel:a,value:String(y)}),c!=null&&c!==n){const x=i.resolveColumnById(this,"labelValue",o)[g];C.push({label:d,fallbackLabel:c,value:x})}const S=this.getItemBaseStyle(!1);return Object.assign(S,this.getItemStyleOverrides(String(g),g,y,S,!1)),p.formatTooltip({heading:v,title:h??u,symbol:this.legendItemSymbol(g),data:C},{seriesId:t,datum:f,title:h,idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d,...S})}computeFocusBounds(e){return kV(this,e)}};kx.className="MapShapeSeries";kx.type="map-shape";b([Khe(Ra,{optional:!0,property:"topology"})],kx.prototype,"_chartTopology");var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Jhe,DEFAULT_BACKGROUND_COLOUR:epe}=E.ThemeSymbols,tpe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape",moduleFactory:e=>new kx(e),tooltipDefaults:{range:"exact"},themeTemplate:{...$y,series:{fillOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,padding:2,label:{color:{$ref:"backgroundColor"},fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:"bold",overflowStrategy:"hide"}}},paletteFactory:e=>{const{takeColors:t,colorsCount:i,userPalette:o,themeTemplateParameters:s}=e,{fill:n}=E.singleSeriesPaletteFactory(e),r=s.get(Jhe),{fills:a}=t(i);return{fill:n,stroke:s.get(epe),colorRange:o==="inbuilt"?r:[a[0],a[1]]}}},{ChartAxisDirection:Ga,PolarAxis:ipe,diff:ope,fixNumericExtent:spe,groupAccumulativeValueProperty:iO,keyProperty:npe,normaliseGroupTo:rpe,resetLabelFn:ape,seriesLabelFadeInAnimation:lpe,seriesLabelFadeOutAnimation:cpe,valueProperty:dpe,animationValidation:upe,createDatumId:oO,SeriesNodePickMode:sO,normalizeAngle360:nO,CategoryScale:hpe,motion:rO,applyShapeStyle:ppe}=E,gpe=class extends E.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},_V=class extends E.PolarSeries{constructor(e,{animationResetFns:t}){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,pickModes:[sO.NEAREST_NODE,sO.EXACT_SHAPE_MATCH],animationResetFns:{...t,label:ape}}),this.NodeEvent=gpe,this.groupScale=new hpe,this.circleCache={r:0,cx:0,cy:0}}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===Ga.X)return t.getDomain(this,"angleValue","key",i);{const o=t.getDomain(this,"radiusValue-end","value",i),s=Number.isFinite(o[1]-o[0])?[o[0]>0?0:o[0],o[1]<0?0:o[1]]:[];return spe(s)}}async processData(e){const{visible:t}=this,{angleKey:i,radiusKey:o,normalizedTo:s}=this.properties,n=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;const r=this.getStackId(),a=`${r}-trailing`,l=[];ho(s)&&l.push(rpe([r,a],Math.abs(s))),n&&this.processedData&&l.push(ope(this.id,this.processedData)),n&&l.push(upe());const c=t||!n?{}:{forceValue:0},d=this.axes[Ga.Y]?.scale.type,u=this.axes[Ga.X]?.scale.type;await this.requestDataModel(e,this.data,{props:[npe(i,u,{id:"angleValue"}),dpe(o,d,{id:"radiusValue-raw",invalidValue:null,...c}),...iO(o,"normal","current",{id:"radiusValue-end",rangeId:"radiusValue-range",invalidValue:null,groupId:r,separateNegative:!0,...c},d),...iO(o,"trailing","current",{id:"radiusValue-start",invalidValue:null,groupId:a,separateNegative:!0,...c},d),...l],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e!==o.r||t!==o.cx||i!==o.cy?(this.circleCache={r:e,cx:t,cy:i},!0):!1}isRadiusAxisReversed(){return this.axes[Ga.Y]?.isReversed()}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[Ga.Y];return e instanceof ipe?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t,groupScale:i}=this;if(!t||!e||e.type!=="grouped"||!this.properties.isValid())return;const o=this.axes[Ga.X],s=this.axes[Ga.Y],n=o?.scale,r=s?.scale;if(!n||!r)return;const a=t.resolveKeysById(this,"angleValue",e),l=t.resolveColumnById(this,"radiusValue-start",e),c=t.resolveColumnById(this,"radiusValue-end",e),d=t.resolveColumnById(this,"radiusValue-raw",e),u=t.resolveProcessedDataIndexById(this,"radiusValue-range");let h=0,p=0;o instanceof Bu&&(h=o.groupPaddingInner,p=o.paddingInner);const f=(n.bandwidth??0)*(1-p),{index:v,visibleGroupCount:y}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);i.domain=Array.from({length:y}).map((z,_)=>String(_)),i.range=[-f/2,f/2],i.paddingInner=y>1?h:0;const C=this.isRadiusAxisReversed(),S=C?this.radius:this.getAxisInnerRadius(),x=C?this.getAxisInnerRadius():this.radius,D=x+S,{angleKey:A,radiusKey:k,angleName:w,radiusName:M,label:R}=this.properties,L=(z,_,V,G)=>{const H=this.getLabelText(R,{value:_,datum:z,angleKey:A,radiusKey:k,angleName:w,radiusName:M});if(H)return{x:V,y:G,text:H,textAlign:"center",textBaseline:"middle"}},P=[],N={itemId:k,nodeData:P,labelData:P};if(!this.visible)return N;const{dataSources:O}=e,F=O.get(this.id)??[];for(const{datumIndex:z,group:_}of t.forEachGroupDatum(this,e)){const V=F[z],G=a[z];if(G==null)return;const H=d[z],B=H>=0&&!Object.is(H,-0),W=l[z],j=c[z],U=_.aggregation[u][B?1:0]??0,ee=B===C;if(W===void 0||j===void 0)return;let q,te;if(F.length===1)q=-.5*Math.PI,te=1.5*Math.PI;else{const pe=n.convert(G);q=nO(pe+i.convert(String(v))),te=nO(q+i.bandwidth)}const se=q+i.bandwidth/2,Z=D-r.convert(W),ie=D-r.convert(j),X=(Z+ie)/2,ne=D-r.convert(0),re=D-r.convert(U),ue=Math.cos(se)*X,le=Math.sin(se)*X,me=this.properties.label.enabled?L(V,H,ue,le):void 0,Me=this.getColumnWidth(q,te);P.push({series:this,datum:V,datumIndex:z,point:{x:ue,y:le,size:0},midPoint:{x:ue,y:le},label:me,angleValue:G,radiusValue:H,negative:ee,innerRadius:Z,outerRadius:ie,stackInnerRadius:ne,stackOuterRadius:re,startAngle:q,endAngle:te,axisInnerRadius:S,axisOuterRadius:x,columnWidth:Me,index:z})}return{itemId:k,nodeData:P,labelData:P}}getColumnWidth(e,t){return NaN}update({seriesRect:e}){const t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{fill:i?.fill??t.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke??t.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,i,o){const{id:s,properties:n}=this,{angleKey:r,radiusKey:a,itemStyler:l}=n;if(l!=null)return this.cachedDatumCallback(oO(e,o?"highlight":"node"),()=>l({seriesId:s,datum:t,highlighted:o,angleKey:r,radiusKey:a,...i}))}updateSectorSelection(e,t){let i=[];if(t){const s=this.ctx.highlightManager?.getActiveHighlight();s?.datum&&s.series===this&&i.push(s)}else i=this.nodeData;const o=this.getItemBaseStyle(t);e.update(i,void 0,s=>this.getDatumId(s)).each((s,n)=>{const{datum:r,datumIndex:a}=n,l=this.getItemStyleOverrides(String(a),r,o,t);this.updateItemPath(s,n,t),ppe(s,o,l),s.cornerRadius=l?.cornerRadius??o.cornerRadius,s.lineJoin="round"})}updateLabels(){const{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,i)=>{e.enabled&&i.label?(t.x=i.label.x,t.y=i.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=i.label.text,t.textAlign=i.label.textAlign,t.textBaseline=i.label.textBaseline,t.visible=!0):t.visible=!1})}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getColumnTransitionFunctions();rO.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),lpe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getColumnTransitionFunctions();rO.fromToMotion(this.id,"datums",t,[e],i),cpe(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[Ga.X],h=s[Ga.Y];if(!i||!o||!u||!h)return;const{datumIndex:p}=e,g=o.dataSources.get(this.id)?.[p],f=i.resolveKeysById(this,"angleValue",o)[p],v=i.resolveColumnById(this,"radiusValue-raw",o)[p];if(f==null)return;const y=this.getItemBaseStyle(!1);return Object.assign(y,this.getItemStyleOverrides(String(p),p,y,!1)),d.formatTooltip({heading:u.formatDatum(f),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:h.formatDatum(v)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...y})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r}=this.properties;return{marker:{fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];const{id:t,visible:i}=this,{radiusKey:o,radiusName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return oO(e.angleValue)}computeLabelsBBox(){return null}},{SeriesProperties:fpe,SeriesTooltip:mpe,Validate:no,COLOR_STRING:VV,NUMBER:HV,FUNCTION:ype,LINE_DASH:vpe,OBJECT:WV,POSITIVE_NUMBER:lT,RATIO:jV,STRING:Ky,Label:bpe}=E,Oi=class extends fpe{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new bpe,this.tooltip=new mpe}};b([no(Ky)],Oi.prototype,"angleKey");b([no(Ky,{optional:!0})],Oi.prototype,"angleName");b([no(Ky)],Oi.prototype,"radiusKey");b([no(Ky,{optional:!0})],Oi.prototype,"radiusName");b([no(VV)],Oi.prototype,"fill");b([no(jV)],Oi.prototype,"fillOpacity");b([no(VV)],Oi.prototype,"stroke");b([no(lT)],Oi.prototype,"strokeWidth");b([no(jV)],Oi.prototype,"strokeOpacity");b([no(vpe)],Oi.prototype,"lineDash");b([no(lT)],Oi.prototype,"lineDashOffset");b([no(lT)],Oi.prototype,"cornerRadius");b([no(ype,{optional:!0})],Oi.prototype,"itemStyler");b([no(HV)],Oi.prototype,"rotation");b([no(Ky,{optional:!0})],Oi.prototype,"stackGroup");b([no(HV,{optional:!0})],Oi.prototype,"normalizedTo");b([no(WV)],Oi.prototype,"label");b([no(WV)],Oi.prototype,"tooltip");var{motion:Cpe}=E;function $V(){const e={startAngle:new Map,endAngle:new Map},t=["startAngle","endAngle"],i=(r,a,l)=>{t.forEach(c=>{const d=e[c];let u=(l==="removed"||l==="updated"?r:a)[c],h=(l==="removed"?r:a)[c];isNaN(h)&&(h=r.previousDatum?.[c]??NaN);const p=u-h;Math.abs(p)>Math.PI&&(u-=Math.sign(p)*2*Math.PI),d.set(a,{from:u,to:h})})},o=(r,a)=>({startAngle:e.startAngle.get(r)[a],endAngle:e.endAngle.get(r)[a]});return{calculate:i,from:r=>o(r,"from"),to:r=>o(r,"to")}}function UV(e,t,i){if(i==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.startAngle)||isNaN(e.previousDatum.endAngle))return"added";if(isNaN(t.startAngle)||isNaN(t.endAngle))return"removed"}return i==="added"&&e.previousDatum!=null?"updated":i}function Spe(e){const t=$V();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u,h,p;return r==="removed"?(c=s.innerRadius,d=s.innerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=isNaN(n.innerRadius)?e:n.innerRadius,d=isNaN(n.outerRadius)?e:n.outerRadius,u=isNaN(n.columnWidth)?s.columnWidth:n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius),{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l}},fromFn:(s,n,r)=>{r=UV(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u,h,p;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=e,d=e,u=n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius);const g=Cpe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l,phase:g}}}}function xpe(e,{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}){return{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}}var{SectorBox:Kb,motion:wpe}=E;function cT(e){const{negative:t,innerRadius:i,outerRadius:o,stackInnerRadius:s,stackOuterRadius:n}=e;return{innerRadius:t?n:s,outerRadius:t?s:n,clipInnerRadius:t?o:i,clipOuterRadius:t?i:o}}function Mpe(e){const t=$V();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u;if(r==="removed")c=e,d=e,u=new Kb(a,l,c,d);else{let h,p;({innerRadius:c,outerRadius:d,clipInnerRadius:h,clipOuterRadius:p}=cT(n)),isNaN(c)&&(c=e),isNaN(d)&&(d=e),isNaN(h)&&(h=e),isNaN(p)&&(p=e),u=new Kb(a,l,h,p)}return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u}},fromFn:(s,n,r)=>{r=UV(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.clipSector):(c=e,d=e),u??(u=new Kb(a,l,c,d));const h=wpe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u,phase:h}}}}function Dpe(e,t){const{startAngle:i,endAngle:o}=t,{innerRadius:s,outerRadius:n,clipInnerRadius:r,clipOuterRadius:a}=cT(t),l=new Kb(i,o,r,a);return{innerRadius:s,outerRadius:n,startAngle:i,endAngle:o,clipSector:l}}var{Sector:kpe,SectorBox:Ipe,PolarZIndexMap:CM}=E,dT=class extends _V{constructor(e){super(e,{animationResetFns:{item:Dpe}}),this.properties=new Oi}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,CM.FOREGROUND,e],this.highlightGroup.zIndex=[0,CM.HIGHLIGHT,e],this.labelGroup.zIndex=[0,CM.LABEL,e],!0):!1}getStackId(){return`nightingale-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new kpe}updateItemPath(e,t,i){const{negative:o}=t;if(e.centerX=0,e.centerY=0,e.startOuterCornerRadius=o?0:this.properties.cornerRadius,e.endOuterCornerRadius=o?0:this.properties.cornerRadius,e.startInnerCornerRadius=o?this.properties.cornerRadius:0,e.endInnerCornerRadius=o?this.properties.cornerRadius:0,i){const{startAngle:s,endAngle:n}=t,{innerRadius:r,outerRadius:a,clipInnerRadius:l,clipOuterRadius:c}=cT(t);e.innerRadius=r,e.outerRadius=a,e.startAngle=s,e.endAngle=n,e.clipSector=new Ipe(s,n,l,c)}}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return Mpe(e)}};dT.className="NightingaleSeries";dT.type="nightingale";var{ThemeConstants:{POLAR_AXIS_TYPE:aO,POLAR_AXIS_SHAPE:lO}}=E,Ape={series:{strokeWidth:1,label:{enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}}},axes:{[aO.ANGLE_CATEGORY]:{shape:lO.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[aO.RADIUS_NUMBER]:{shape:lO.CIRCLE}}},{ThemeSymbols:{DEFAULT_POLAR_SERIES_STROKE:Rpe},ThemeConstants:{POLAR_AXIS_TYPE:cO}}=E,Tpe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"nightingale",moduleFactory:e=>new dT(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:cO.ANGLE_CATEGORY},{type:cO.RADIUS_NUMBER}],themeTemplate:Ape,paletteFactory({takeColors:e,userPalette:t}){const{fills:[i],strokes:[o]}=e(1);return{fill:i,stroke:t!=="inbuilt"?o:Rpe}},stackable:!0,groupable:!0,stackedByDefault:!0},{createDatumId:Lpe}=E,uT=class extends N8{constructor(){super(...arguments),this.properties=new px}nodeFactory(){return new lle}updateDatumNodes({datumSelection:e,isHighlight:t}){const{id:i,properties:o}=this,{xKey:s,highKey:n,lowKey:r,openKey:a,closeKey:l,item:c,itemStyler:d}=o,{up:u,down:h}=c,{stroke:p,strokeWidth:g,strokeOpacity:f,lineDash:v,lineDashOffset:y}=u,{stroke:C,strokeWidth:S,strokeOpacity:x,lineDash:D,lineDashOffset:A}=h,k=t?o.highlightStyle.item:void 0;e.each((w,M)=>{const{isRising:R,centerX:L,width:P,y:N,height:O,yOpen:F,yClose:z,crisp:_}=M;let V;if(d!=null){const{stroke:G,strokeWidth:H,strokeOpacity:B,lineDash:W,lineDashOffset:j}=R?u:h;V=this.cachedDatumCallback(Lpe(this.getDatumId(M),t?"highlight":"node"),()=>d({seriesId:i,itemId:M.itemId,xKey:s,highKey:n,lowKey:r,openKey:a,closeKey:l,datum:M.datum,strokeOpacity:B,stroke:G,strokeWidth:H,lineDash:W,lineDashOffset:j,highlighted:t}))}w.centerX=L,w.width=P,w.y=N,w.height=O,w.yOpen=F,w.yClose=z,w.crisp=_,w.stroke=k?.stroke??V?.stroke??(R?p:C),w.strokeWidth=k?.strokeWidth??V?.strokeWidth??(R?g:S),w.strokeOpacity=k?.strokeOpacity??V?.strokeOpacity??(R?f:x),w.lineDash=k?.lineDash??V?.lineDash??(R?v:D),w.lineDashOffset=k?.lineDashOffset??V?.lineDashOffset??(R?y:A),w.strokeAlignment=(V?.strokeWidth??(R?g:S))/2})}getLegendData(e){const{id:t,data:i,ctx:{legendManager:o},visible:s}=this,{xKey:n,yName:r,item:{up:a,down:l},showInLegend:c,legendItemName:d}=this.properties;if(!i?.length||!n||e!=="category")return[];const u=new E.LinearGradient("rgb",[{color:a.stroke,offset:0},{color:a.stroke,offset:.5},{color:l.stroke,offset:.5}],90);return[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:s&&o.getItemEnabled({seriesId:t,itemId:t}),label:{text:d??r??t},symbol:{marker:{fill:u,fillOpacity:a.strokeOpacity,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0}},legendItemName:d,hideInLegend:!c}]}};uT.className="ohlc";uT.type="ohlc";var{CARTESIAN_AXIS_TYPE:sb,CARTESIAN_POSITION:dO}=E.ThemeConstants,Epe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"ohlc",moduleFactory:e=>new uT(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:sb.NUMBER,position:dO.LEFT},{type:sb.ORDINAL_TIME,position:dO.BOTTOM}],themeTemplate:{animation:{enabled:!1},axes:{[sb.NUMBER]:{crosshair:{snap:!1}},[sb.ORDINAL_TIME]:{groupPaddingInner:0,crosshair:{enabled:!0}}}},groupable:!1,paletteFactory:({takeColors:e,colorsCount:t,userPalette:i,palette:o})=>{if(i==="user-indexed"){const[s]=e(t).strokes;return{item:{up:{stroke:s},down:{stroke:s}}}}return{item:{up:{stroke:o.up.stroke},down:{stroke:o.down.stroke}}}}},{SeriesProperties:Ppe,SeriesTooltip:Npe,Validate:Fi,UNION:Ope,COLOR_STRING_ARRAY:KV,FUNCTION:Fpe,DIRECTION:Bpe,BOOLEAN:Gpe,LINE_DASH:zpe,OBJECT:Ix,NUMBER:_pe,POSITIVE_NUMBER:Ax,RATIO:YV,STRING:XV,Label:ZV,DropShadow:Vpe}=E,Hpe=class extends ZV{},hT=class extends ZV{constructor(){super(...arguments),this.spacing=0}};b([Fi(_pe)],hT.prototype,"spacing");b([Fi(Ope(["before","after"],"a placement"))],hT.prototype,"placement");var Ki=class extends Ppe{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.direction="vertical",this.reverse=void 0,this.spacing=0,this.aspectRatio=void 0,this.shadow=new Vpe().set({enabled:!1}),this.label=new Hpe,this.stageLabel=new hT,this.tooltip=new Npe}};b([Fi(XV)],Ki.prototype,"stageKey");b([Fi(XV)],Ki.prototype,"valueKey");b([Fi(KV)],Ki.prototype,"fills");b([Fi(YV)],Ki.prototype,"fillOpacity");b([Fi(KV)],Ki.prototype,"strokes");b([Fi(Ax)],Ki.prototype,"strokeWidth");b([Fi(YV)],Ki.prototype,"strokeOpacity");b([Fi(zpe)],Ki.prototype,"lineDash");b([Fi(Ax)],Ki.prototype,"lineDashOffset");b([Fi(Bpe)],Ki.prototype,"direction");b([Fi(Gpe,{optional:!0})],Ki.prototype,"reverse");b([Fi(Ax)],Ki.prototype,"spacing");b([Fi(Ax,{optional:!0})],Ki.prototype,"aspectRatio");b([Fi(Fpe,{optional:!0})],Ki.prototype,"itemStyler");b([Fi(Ix)],Ki.prototype,"shadow");b([Fi(Ix)],Ki.prototype,"label");b([Fi(Ix)],Ki.prototype,"stageLabel");b([Fi(Ix)],Ki.prototype,"tooltip");var{valueProperty:uO,SeriesNodePickMode:hO,CachedTextMeasurerPool:Wpe,TextUtils:jpe,createDatumId:$pe,BBox:SM,Group:xM,Selection:nb,Text:pO,PointerEvents:gO,applyShapeStyle:Upe}=E,pT=class extends E.DataModelSeries{constructor(e){super({moduleCtx:e,pickModes:[hO.EXACT_SHAPE_MATCH,hO.NEAREST_NODE]}),this.properties=new Ki,this.itemGroup=this.contentGroup.appendChild(new xM({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new xM({name:"itemLabelGroup"})),this.stageLabelGroup=this.contentGroup.appendChild(new xM({name:"stageLabelGroup"})),this.datumSelection=nb.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=nb.select(this.itemLabelGroup,pO),this.stageLabelSelection=nb.select(this.stageLabelGroup,pO),this.highlightDatumSelection=nb.select(this.highlightNode,()=>this.nodeFactory()),this.itemLabelGroup.pointerEvents=gO.None,this.stageLabelGroup.pointerEvents=gO.None}addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager?.addListener("legend-item-click",e=>this.onLegendItemClick(e)))}nodeFactory(){return new Ia}getNodeData(){return this.contextNodeData?.nodeData}async processData(e){if(this.data==null||!this.properties.isValid())return;const{id:t,visible:i,ctx:{legendManager:o}}=this,{stageKey:s,valueKey:n}=this.properties,r="band",a="number",l=(d,u,h)=>i&&o.getItemEnabled({seriesId:t,itemId:h}),c=this.visible?{}:{forceValue:0};await this.requestDataModel(e,this.data,{props:[uO(s,r,{id:"xValue"}),uO(n,a,{id:"yValue",...c,validation:l,invalidValue:0})]})}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,visible:s,ctx:{legendManager:n}}=this,{stageKey:r,valueKey:a,direction:l,reverse:c=l==="horizontal",spacing:d,aspectRatio:u,label:h,stageLabel:p}=o;if(t==null||i==null)return;const g=l==="horizontal",f=t.resolveColumnById(this,"xValue",i),v=t.resolveColumnById(this,"yValue",i),y=Wpe.getMeasurer({font:p.getFont()});let C,S;g?(C="center",S=p.placement==="before"?"bottom":"top"):(C=p.placement==="after"?"left":"right",S="middle");const x=p.enabled?[]:void 0;let D=0,A=0,k=0;const w=i.dataSources.get(this.id)??[];w.forEach((H,B)=>{const W=f[B],j=v[B],U=s&&n.getItemEnabled({seriesId:e,itemId:B});if(k+=j,x==null)return;const ee=this.getLabelText(this.properties.stageLabel,{datum:H,value:W,stageKey:r,valueKey:a}),{width:q}=y.measureText(ee),te=ee.split(`
|
|
20
20
|
`).length*jpe.getLineHeight(h.fontSize);D=Math.max(D,q),A=Math.max(A,te),x.push({x:NaN,y:NaN,text:ee,textAlign:C,textBaseline:S,visible:U})});const M=this._nodeDataDependencies?.seriesRectWidth??0,R=this._nodeDataDependencies?.seriesRectHeight??0,L=d*(i.input.count-1);let P;if(g){const H=A+p.spacing;P=new SM(0,p.placement==="before"?H:0,M,R-H)}else{const H=D+p.spacing;P=new SM(p.placement==="after"?0:H,0,M-H,R)}if(u!=null&&u!==0){const H=l==="horizontal"?1/u:u,B=Math.min(P.width,P.height*H),W=B/H;P=new SM(P.x+(P.width-B)/2,P.y+(P.height-W)/2,B,W)}let N,O;g?O=p.placement==="before"?P.y-p.spacing:P.y+P.height+p.spacing:N=p.placement==="after"?P.x+P.width+p.spacing:P.x-p.spacing;const F=P.width-(g?L:0),z=P.height-(g?0:L);if(F<0||z<0)return;const _=[],V=[];let G=0;return w.forEach((H,B)=>{const W=f[B],j=v[B],U=s&&n.getItemEnabled({seriesId:e,itemId:B}),ee=G+j,q=(G+ee)/(2*k),te=(ee-G)/k,se=g?F*q+d*B:F*.5,Z=g?z*.5:z*q+d*B,ie=P.x+se,X=P.y+Z;if(x!=null){const pe=x[B];pe.x=N??ie,pe.y=O??X}let ne,re,ue,le;if(g){const pe=F*te;ne=pe,ue=pe;const Y=(se+pe/2)*(z/P.width),$=(se-pe/2)*(z/P.width);re=c?P.height-Y:Y,le=c?P.height-$:$}else{const pe=z*te;re=pe,le=pe;const Y=(Z-pe/2)*(F/P.height),$=(Z+pe/2)*(F/P.height);ne=c?P.width-Y:Y,ue=c?P.width-$:$}const me=this.getLabelText(h,{datum:H,value:j,stageKey:r,valueKey:a}),Me={x:ie,y:X,text:me,textAlign:"center",textBaseline:"middle",visible:U};V.push(Me),_.push({series:this,itemId:a,datum:H,datumIndex:B,index:B,xValue:W,yValue:j,x:ie,y:X,top:ne,right:re,bottom:ue,left:le,label:Me,enabled:U,midPoint:{x:ie,y:X}}),G=ee}),{itemId:e,nodeData:_,labelData:V,stageLabelData:x}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update({seriesRect:e}){this.checkResize(e);const{datumSelection:t,labelSelection:i,stageLabelSelection:o,highlightDatumSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=this.ctx.highlightManager?.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);const r=this.contextNodeData?.nodeData??[],a=this.contextNodeData?.labelData??[],l=this.contextNodeData?.stageLabelData??[];this.datumSelection=this.updateDatumSelection({nodeData:r,datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:a,labelSelection:i}),this.updateLabelNodes({labelSelection:i,labelProperties:this.properties.label}),this.stageLabelSelection=this.updateStageLabelSelection({stageLabelData:l,stageLabelSelection:o}),this.updateLabelNodes({labelSelection:o,labelProperties:this.properties.stageLabel}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:n!=null?[n]:[],datumSelection:s}),this.updateDatumNodes({datumSelection:s,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData)}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{fill:i?.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset}}getItemStyleOverrides(e,t,i,o,s){const{id:n,properties:r}=this,{fills:a,strokes:l,stageKey:c,valueKey:d,itemStyler:u}=r,h=o.fill??a[i%a.length],p=o.stroke??l[i%l.length],g={};if(s||(g.fill=h,g.stroke=p),u!=null){const f=this.cachedDatumCallback($pe(e,s?"highlight":"node"),()=>u({seriesId:n,datum:t,stageKey:c,valueKey:d,highlighted:s,fill:h,stroke:p,...o}));Object.assign(g,f)}return g}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,{properties:o}=this,{shadow:s}=o,n=this.getItemBaseStyle(i);t.each((r,a)=>{const{datumIndex:l,datum:c,x:d,y:u,top:h,right:p,bottom:g,left:f}=a,v=this.getItemStyleOverrides(String(l),c,l,n,i);r.x0=d-h/2,r.x1=d+h/2,r.x2=d+g/2,r.x3=d-g/2,r.y0=u-f/2,r.y1=u-p/2,r.y2=u+p/2,r.y3=u+f/2,Upe(r,n,v),r.fillShadow=s})}updateLabelSelection(e){return e.labelSelection.update(this.properties.label.enabled?e.labelData:[])}updateStageLabelSelection(e){return e.stageLabelSelection.update(e.stageLabelData)}updateLabelNodes(e){const{labelSelection:t,labelProperties:i}=e,{color:o,fontSize:s,fontStyle:n,fontWeight:r,fontFamily:a}=i;t.each((l,{visible:c,x:d,y:u,text:h,textAlign:p,textBaseline:g})=>{l.visible=c,l.x=d,l.y=u,l.text=h,l.fill=o,l.fontStyle=n,l.fontWeight=r,l.fontSize=s,l.fontFamily=a,l.textAlign=p,l.textBaseline=g})}resetAnimation(e){}computeFocusBounds(e){const t=this.getNodeData()?.[e.datumIndex];if(t!==void 0){for(const i of this.datumSelection)if(i.datum===t)return i.node}}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{stageKey:n,valueKey:r,tooltip:a}=s;if(!i||!o)return;const{datumIndex:l}=e,c=o.dataSources.get(this.id)?.[l],d=i.resolveColumnById(this,"xValue",o)[l],u=i.resolveColumnById(this,"yValue",o)[l];if(d==null)return;const h=this.getLabelText(this.properties.stageLabel,{datum:o.dataSources.get(this.id)?.[l],value:u,stageKey:n,valueKey:r}),p=this.getItemBaseStyle(!1);return Object.assign(p,this.getItemStyleOverrides(String(l),l,l,p,!1)),a.formatTooltip({symbol:this.legendItemSymbol(l),data:[{label:String(d),value:h}]},{seriesId:t,datum:c,title:void 0,stageKey:n,valueKey:r,...p})}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}legendItemSymbol(e){const{fills:t,strokes:i,strokeWidth:o,fillOpacity:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=this.properties,l=t[e%t.length]??"black",c=i[e%i.length]??"black";return{marker:{fill:l,fillOpacity:s,stroke:c,strokeWidth:o,strokeOpacity:n,lineDash:r,lineDashOffset:a}}}getLegendData(e){const{processedData:t,dataModel:i,id:o,ctx:{legendManager:s},visible:n}=this;if(!i||!t||e!=="category"||!this.properties.isValid())return[];const{showInLegend:r}=this.properties,a=[],l=i.resolveColumnById(this,"xValue",t);return(t.dataSources.get(this.id)??[]).forEach((d,u)=>{const h=l[u];a.push({legendType:"category",id:o,itemId:u,seriesId:o,enabled:n&&s.getItemEnabled({seriesId:o,itemId:u}),label:{text:h},symbol:this.legendItemSymbol(u),hideInLegend:!r})}),a}};pT.className="PyramidSeries";pT.type="pyramid";var{ThemeSymbols:{DEFAULT_SHADOW_COLOUR:Kpe}}=E,Ype={series:{direction:"vertical",strokeWidth:0,spacing:2,label:{enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"backgroundColor"}},stageLabel:{enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:12},shadow:{enabled:!1,color:Kpe,xOffset:3,yOffset:3,blur:5}}},Xpe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"pyramid",moduleFactory:e=>new pT(e),solo:!0,tooltipDefaults:{range:"exact"},themeTemplate:Ype,paletteFactory:({takeColors:e,colorsCount:t})=>{const{fills:i,strokes:o}=e(t);return{fills:i,strokes:o}}},{ThemeConstants:{POLAR_AXIS_TYPE:Zpe}}=E,qV={series:{label:{enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},marker:{enabled:!0,fillOpacity:1,shape:"circle",size:6,strokeOpacity:1,strokeWidth:0}},axes:{[Zpe.ANGLE_CATEGORY]:{label:{spacing:10}}}},qpe=E.mergeDefaults({series:{strokeWidth:2}},qV),Qpe=E.mergeDefaults({series:{fillOpacity:.8,strokeWidth:2,marker:{enabled:!1}}},qV),{Label:Jpe,SeriesMarker:ege,SeriesProperties:tge,SeriesTooltip:ige,Validate:Fs,BOOLEAN:oge,COLOR_STRING:sge,NUMBER:nge,LINE_DASH:rge,OBJECT:gT,POSITIVE_NUMBER:QV,RATIO:age,STRING:Rx}=E,Ho=class extends tge{constructor(){super(...arguments),this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.rotation=0,this.marker=new ege,this.label=new Jpe,this.tooltip=new ige,this.connectMissingData=!1}};b([Fs(Rx)],Ho.prototype,"angleKey");b([Fs(Rx)],Ho.prototype,"radiusKey");b([Fs(Rx,{optional:!0})],Ho.prototype,"angleName");b([Fs(Rx,{optional:!0})],Ho.prototype,"radiusName");b([Fs(sge)],Ho.prototype,"stroke");b([Fs(QV)],Ho.prototype,"strokeWidth");b([Fs(age)],Ho.prototype,"strokeOpacity");b([Fs(rge)],Ho.prototype,"lineDash");b([Fs(QV)],Ho.prototype,"lineDashOffset");b([Fs(nge)],Ho.prototype,"rotation");b([Fs(gT)],Ho.prototype,"marker");b([Fs(gT)],Ho.prototype,"label");b([Fs(gT)],Ho.prototype,"tooltip");b([Fs(oge)],Ho.prototype,"connectMissingData");var{ChartAxisDirection:Jn,PolarAxis:lge,SeriesNodePickMode:fO,valueProperty:mO,fixNumericExtent:cge,seriesLabelFadeInAnimation:dge,markerFadeInAnimation:uge,resetMarkerFn:hge,animationValidation:pge,computeMarkerFocusBounds:gge,extent:fge,isNumberEqual:yO,createDatumId:mge,BBox:yge,Group:vge,Path:bge,PointerEvents:Cge,Selection:vO,Text:Sge,Marker:xge,applyShapeStyle:wge}=E,Mge=class extends E.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},fT=class extends E.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[fO.NEAREST_NODE,fO.EXACT_SHAPE_MATCH],canHaveAxes:!0,animationResetFns:{item:hge}}),this.clipFocusBox=!1,this.properties=new Ho,this.NodeEvent=Mge,this.lineGroup=this.contentGroup.appendChild(new vge({name:"radar-line",zIndex:E.SeriesZIndexMap.ANY_CONTENT})),this.lineSelection=vO.select(this.lineGroup,bge),this.resetInvalidToZero=!1,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){return new xge}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.lineGroup.zIndex=[E.SeriesZIndexMap.ANY_CONTENT,e,E.SeriesContentZIndexMap.FOREGROUND,1],!0):!1}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===Jn.X)return t.getDomain(this,"angleValue","value",i);{const o=t.getDomain(this,"radiusValue","value",i),s=fge(o.length===0?o:[0].concat(o));return cge(s)}}async processData(e){if(!this.properties.isValid())return;const{angleKey:t,radiusKey:i}=this.properties,o=[];this.ctx.animationManager.isSkipped()||o.push(pge());const s=this.axes[Jn.Y]?.scale.type,n=this.axes[Jn.X]?.scale.type;await this.requestDataModel(e,this.data,{props:[mO(t,n,{id:"angleValue"}),mO(i,s,{id:"radiusValue",invalidValue:void 0}),...o]}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}getAxisInnerRadius(){const e=this.axes[Jn.Y];return e instanceof lge?this.radius*e.innerRadiusRatio:0}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}createNodeData(){const{processedData:e,dataModel:t}=this;if(!e||!t||!this.properties.isValid())return;const{angleKey:i,radiusKey:o,angleName:s,radiusName:n,marker:r,label:a}=this.properties,l=this.axes[Jn.X]?.scale,c=this.axes[Jn.Y]?.scale;if(!l||!c)return;const d=t.resolveColumnById(this,"angleValue",e),u=t.resolveColumnById(this,"radiusValue",e),h=this.getAxisInnerRadius(),g=(e.dataSources.get(this.id)??[]).map((f,v)=>{const y=d[v],C=u[v],S=l.convert(y),x=this.radius+h-c.convert(C),D=Math.cos(S),A=Math.sin(S),k=D*x,w=A*x;let M;if(a.enabled){const R=this.getLabelText(a,{value:C,datum:f,angleKey:i,radiusKey:o,angleName:s,radiusName:n});if(R){let L="right";yO(D,0)?L="center":D>0&&(L="left");let P="bottom";yO(A,0)?P="middle":A>0&&(P="top"),M={x:k+D*r.size,y:w+A*r.size,text:R,textAlign:L,textBaseline:P}}}return{series:this,datum:f,datumIndex:v,index:v,point:{x:k,y:w,size:r.size},midPoint:{x:k,y:w},label:M,angleValue:y,radiusValue:C,missing:!Mc(S)||!Mc(x)}});return{itemId:o,nodeData:g,labelData:g}}update({seriesRect:e}){const t=this.checkResize(e),i=!this.ctx.animationManager.isSkipped(),{series:o}=this.ctx.highlightManager?.getActiveHighlight()??{};this.highlightGroup.visible=(i||this.visible)&&o===this,this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updatePathSelections(),this.updateMarkerSelection(),this.updateMarkers(this.itemSelection,!1),this.updateMarkers(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePathSelections(){const e=this.visible?[!0]:[];this.lineSelection.update(e)}updateMarkerSelection(){this.properties.marker.isDirty()&&(this.itemSelection.clear(),this.itemSelection.cleanup(),this.itemSelection=vO.select(this.itemGroup,()=>this.nodeFactory(),!1)),this.itemSelection.update(this.properties.marker.enabled?this.nodeData:[])}getMarkerFill(e){return e?.fill??this.properties.marker.fill}getMarkerItemBaseStyle(e){const{properties:t}=this,{marker:i}=t,o=e?t.highlightStyle.item:void 0;return{shape:i.shape,size:i.size,fill:o?.fill??i.fill,fillOpacity:o?.fillOpacity??i.fillOpacity,stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??this.getStrokeWidth(i.strokeWidth),strokeOpacity:o?.strokeOpacity??i.strokeOpacity,lineDash:o?.lineDash??i.lineDash,lineDashOffset:o?.lineDashOffset??i.lineDashOffset}}getMarkerItemStyleOverrides(e,t,i,o){const{id:s,properties:n}=this,{angleKey:r,radiusKey:a,marker:l}=n,{itemStyler:c}=l;if(c!=null)return this.cachedDatumCallback(mge(e,o?"highlight":"node"),()=>c({seriesId:s,datum:t,angleKey:r,radiusKey:a,highlighted:o,...i}))}updateMarkers(e,t){const{visible:i}=this,{marker:o}=this.properties;let s=[];if(i&&o.shape&&o.enabled)if(t){const r=this.ctx.highlightManager?.getActiveHighlight();r?.datum&&(s=[r])}else s=this.nodeData;const n=this.getMarkerItemBaseStyle(t);e.update(s).each((r,a)=>{const{datum:l,datumIndex:c,point:d}=a,u=this.getMarkerItemStyleOverrides(String(c),l,n,t);wge(r,n,u),r.shape=u?.shape??n.shape,r.size=u?.size??n.size;const{x:h,y:p}=d;r.x=h,r.y=p,r.visible=i&&r.size>0&&!isNaN(h)&&!isNaN(p)})}updateLabels(){const{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,i)=>{e.enabled&&i.label?(t.x=i.label.x,t.y=i.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=i.label.text,t.textAlign=i.label.textAlign,t.textBaseline=i.label.textBaseline,t.visible=!0):t.visible=!1})}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[Jn.X],h=s[Jn.Y];if(!i||!o||!u||!h)return;const{datumIndex:p}=e,g=o.dataSources.get(this.id)?.[p],f=i.resolveColumnById(this,"angleValue",o)[p],v=i.resolveColumnById(this,"radiusValue",o)[p];if(f==null)return;const y=this.getMarkerItemBaseStyle(!1);return Object.assign(y,this.getMarkerItemStyleOverrides(String(p),p,y,!1)),d.formatTooltip({heading:u.formatDatum(f),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:h.formatDatum(v)}]},{seriesId:t,datum:g,title:a,angleKey:r,radiusKey:l,angleName:a,radiusName:c,...y})}legendItemSymbol(){const{stroke:e,strokeWidth:t,strokeOpacity:i,lineDash:o,marker:s}=this.properties;return{marker:{shape:s.shape,fill:this.getMarkerFill()??s.stroke??e??"rgba(0, 0, 0, 0)",stroke:s.stroke??e??"rgba(0, 0, 0, 0)",fillOpacity:s.fillOpacity,strokeOpacity:s.strokeOpacity,strokeWidth:s.strokeWidth,lineDash:s.lineDash,lineDashOffset:s.lineDashOffset,enabled:s.enabled||t<=0},line:{stroke:e,strokeOpacity:i,strokeWidth:t,lineDash:o}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];const{id:t,ctx:{legendManager:i},visible:o}=this,{radiusKey:s,radiusName:n,showInLegend:r}=this.properties;return[{legendType:"category",id:t,itemId:s,seriesId:t,enabled:o&&i.getItemEnabled({seriesId:t,itemId:s}),label:{text:n??s},symbol:this.legendItemSymbol(),hideInLegend:!r}]}pickNodeClosestDatum(e){const{nodeData:t,centerX:i,centerY:o}=this,{x:s,y:n}=e,r=this.radius;if(Math.sqrt((s-i)**2+(n-o)**2)>r+this.properties.marker.size)return;let l=1/0,c;for(const d of t){const{point:{x:u=NaN,y:h=NaN}={}}=d;if(isNaN(u)||isNaN(h))continue;const p=Math.sqrt((e.x-u-i)**2+(e.y-h-o)**2);p<l&&(l=p,c=d)}if(c){const d=Math.max(l-(c.point?.size??0),0);return{datum:c,distance:d}}}computeLabelsBBox(){const{label:e}=this.properties;this.maybeRefreshNodeData();const t=[],i=new Sge;return this.nodeData.forEach(o=>{if(!e.enabled||!o.label)return;i.text=o.label.text,i.x=o.label.x,i.y=o.label.y,i.setFont(e),i.setAlign(o.label);const s=i.getBBox();t.push(s)}),t.length===0?null:yge.merge(t)}getLineNode(){return this.lineSelection?.at(0)}beforePathAnimation(){const e=this.getLineNode();e&&(e.fill=void 0,e.lineJoin="round",e.lineCap="round",e.pointerEvents=Cge.None,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset)}getLinePoints(){const{nodeData:e,resetInvalidToZero:t}=this,{connectMissingData:i}=this.properties;if(e.length===0)return[];const o=this.axes[Jn.Y],n=this.axes[Jn.X]?.isReversed(),a=o?.isReversed()&&!n?[...e].reverse():e,l=[];let c=!1,d;return a.forEach((u,h)=>{let{x:p,y:g}=u.point;const f=isNaN(p)||isNaN(g);f||(d??(d=u)),f&&!i&&(p=0,g=0);const v=h===0||!t&&!i&&(f||c);l.push({x:p,y:g,moveTo:v}),c=f}),d!==void 0&&l.push({x:d.point.x,y:d.point.y,moveTo:!1}),l}animateSinglePath(e,t,i){const{path:o}=e;o.clear(!0);const s=this.getAxisInnerRadius(),n=this.axes[Jn.Y],a=n?.isReversed()?this.radius+s-n?.scale.convert(0):s;t.forEach(l=>{const{x:c,y:d,arc:u,radius:h=0,startAngle:p=0,endAngle:g=0,moveTo:f}=l,v=Math.atan2(d,c),y=a*Math.cos(v),C=a*Math.sin(v),S=i,x=y*(1-S)+c*S,D=C*(1-S)+d*S;u?o.arc(c,d,h,p,g):f?o.moveTo(x,D):o.lineTo(x,D)}),e.checkPathDirty()}animatePaths(e){const t=this.getLinePoints(),i=this.getLineNode();i&&this.animateSinglePath(i,t,e)}animateEmptyUpdateReady(){const{itemSelection:e,labelSelection:t}=this,{animationManager:i}=this.ctx;this.beforePathAnimation(),i.animate({id:`${this.id}_'path`,groupId:this.id,from:0,to:1,phase:"initial",collapsable:!1,onUpdate:o=>this.animatePaths(o),onStop:()=>this.animatePaths(1)}),uge(this,i,"added",e),dge(this,"labels",i,t)}animateWaitingUpdateReady(e){super.animateWaitingUpdateReady(e),this.resetPaths()}animateReadyResize(e){super.animateReadyResize(e),this.resetPaths()}resetPaths(){const e=this.getLineNode();if(e){const{path:t}=e,i=this.getLinePoints();e.fill=void 0,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,t.clear(!0);for(const{x:o,y:s,moveTo:n}of i)n?t.moveTo(o,s):t.lineTo(o,s);e.checkPathDirty()}}getFormattedMarkerStyle(e){const{angleKey:t,radiusKey:i}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,angleKey:t,radiusKey:i,highlighted:!0})}computeFocusBounds(e){return gge(this,e)}};fT.className="RadarSeries";var{RATIO:Dge,COLOR_STRING:kge,Validate:JV}=E,mT=class extends Ho{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1}};b([JV(kge)],mT.prototype,"fill");b([JV(Dge)],mT.prototype,"fillOpacity");var{Group:Ige,Path:Age,PointerEvents:Rge,Selection:Tge,ChartAxisDirection:bO}=E,yT=class extends fT{constructor(e){super(e),this.properties=new mT,this.resetInvalidToZero=!0;const t=new Ige;this.contentGroup.append(t),this.areaSelection=Tge.select(t,Age)}updatePathSelections(){const e=this.visible?[!0]:[];this.areaSelection.update(e),super.updatePathSelections()}getAreaNode(){return this.areaSelection.at(0)}getMarkerFill(e){return e?.fill??this.properties.marker.fill??this.properties.fill}beforePathAnimation(){super.beforePathAnimation();const e=this.getAreaNode();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.pointerEvents=Rge.None,e.stroke=void 0}animatePaths(e){super.animatePaths(e),this.animateSinglePath(this.getAreaNode(),this.getAreaPoints(),e)}getAreaPoints(){const e=this.getLinePoints(),t=r=>{const a=this.axes[r];return a instanceof E.PolarAxis?a:void 0},i=t(bO.Y),o=t(bO.X);if(!i?.isReversed())return e;const n=o?.getAxisLinePoints()?.points??[];return e.concat(...n)}resetPaths(){super.resetPaths();const e=this.getAreaNode();if(e){const{path:t}=e,i=this.getAreaPoints();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.stroke=void 0,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,e.lineJoin=e.lineCap="round",t.clear(!0),i.forEach(({x:o,y:s,moveTo:n,arc:r,radius:a=0,startAngle:l=0,endAngle:c=0})=>{r?t.arc(o,s,a,l,c):n?t.moveTo(o,s):t.lineTo(o,s)}),t.closePath(),e.checkPathDirty()}}};yT.className="RadarAreaSeries";yT.type="radar-area";var{markerPaletteFactory:Lge,ThemeConstants:{POLAR_AXIS_TYPE:CO}}=E,Ege={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-area",moduleFactory:e=>new yT(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:CO.ANGLE_CATEGORY},{type:CO.RADIUS_NUMBER}],themeTemplate:Qpe,paletteFactory:e=>{const{marker:t}=Lge(e);return{stroke:t.stroke,fill:t.fill,marker:t}}},vT=class extends fT{updatePathSelections(){this.lineSelection.update(this.visible?[!0]:[])}};vT.className="RadarLineSeries";vT.type="radar-line";var{POLAR_AXIS_TYPE:SO}=E.ThemeConstants,Pge={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-line",moduleFactory:e=>new vT(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:SO.ANGLE_CATEGORY},{type:SO.RADIUS_NUMBER}],themeTemplate:qpe,paletteFactory:({takeColors:e})=>{const{fills:[t],strokes:[i]}=e(1);return{stroke:t,marker:{fill:t,stroke:i}}}},{SeriesProperties:Nge,SeriesTooltip:Oge,Validate:ro,COLOR_STRING:e9,NUMBER:t9,FUNCTION:Fge,LINE_DASH:Bge,OBJECT:i9,POSITIVE_NUMBER:bT,RATIO:o9,STRING:Yy,Label:Gge}=E,Yi=class extends Nge{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new Gge,this.tooltip=new Oge}};b([ro(Yy)],Yi.prototype,"angleKey");b([ro(Yy)],Yi.prototype,"radiusKey");b([ro(Yy,{optional:!0})],Yi.prototype,"angleName");b([ro(Yy,{optional:!0})],Yi.prototype,"radiusName");b([ro(e9)],Yi.prototype,"fill");b([ro(o9)],Yi.prototype,"fillOpacity");b([ro(e9)],Yi.prototype,"stroke");b([ro(bT)],Yi.prototype,"strokeWidth");b([ro(o9)],Yi.prototype,"strokeOpacity");b([ro(Bge)],Yi.prototype,"lineDash");b([ro(bT)],Yi.prototype,"lineDashOffset");b([ro(bT)],Yi.prototype,"cornerRadius");b([ro(Fge,{optional:!0})],Yi.prototype,"itemStyler");b([ro(t9)],Yi.prototype,"rotation");b([ro(Yy,{optional:!0})],Yi.prototype,"stackGroup");b([ro(t9,{optional:!0})],Yi.prototype,"normalizedTo");b([ro(i9)],Yi.prototype,"label");b([ro(i9)],Yi.prototype,"tooltip");var{SectorBox:xO,motion:zge}=E;function _ge(e,t,i){if(i==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.innerRadius)||isNaN(e.previousDatum.outerRadius))return"added";if(isNaN(t.innerRadius)||isNaN(t.outerRadius))return"removed"}return i==="added"&&e.previousDatum!=null?"updated":i}function wO(e){return{toFn:(o,s,n)=>{let r,a,l,c,d;return n==="removed"?(r=e,a=e,l=s.innerRadius,c=s.outerRadius,d=new xO(r,a,l,c)):(r=s.startAngle,a=s.endAngle,l=isNaN(s.innerRadius)?o.innerRadius:s.innerRadius,c=isNaN(s.outerRadius)?o.outerRadius:s.outerRadius,d=s.clipSector),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d}},fromFn:(o,s,n)=>{n=_ge(o,s,n);let r,a,l,c,d;n==="removed"||n==="updated"?(r=o.startAngle,a=o.endAngle,l=o.innerRadius,c=o.outerRadius,d=o.clipSector):(r=e,a=e,l=s.innerRadius,c=s.outerRadius),d??(d=new xO(r,a,l,c));const u=zge.NODE_UPDATE_STATE_TO_PHASE_MAPPING[n];return{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d,phase:u}}}}function Vge(e,t){return{centerX:0,centerY:0,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,clipSector:t.clipSector}}var{ChartAxisDirection:za,PolarAxis:Hge,diff:Wge,groupAccumulativeValueProperty:MO,keyProperty:jge,normaliseGroupTo:$ge,valueProperty:Uge,fixNumericExtent:Kge,resetLabelFn:Yge,seriesLabelFadeInAnimation:Xge,seriesLabelFadeOutAnimation:Zge,animationValidation:qge,angleBetween:Qge,createDatumId:DO,CategoryScale:Jge,Sector:efe,SectorBox:tfe,motion:kO,applyShapeStyle:ife}=E,ofe=class extends E.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},CT=class extends E.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,animationResetFns:{item:Vge,label:Yge}}),this.properties=new Yi,this.NodeEvent=ofe,this.groupScale=new Jge,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){return new efe}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===za.X){const o=t.getDomain(this,"angleValue-end","value",i),s=[o[0]>0?0:o[0],o[1]<0?0:o[1]];return Kge(s)}else return t.getDomain(this,"radiusValue","key",i)}async processData(e){const{visible:t}=this,{angleKey:i,radiusKey:o,normalizedTo:s}=this.properties,n=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;const r=this.getStackId(),a=`${r}-trailing`,l=[];ho(s)&&l.push($ge([r,a],Math.abs(s))),n&&(this.processedData&&l.push(Wge(this.id,this.processedData)),l.push(qge()));const c=t||!n?{}:{forceValue:0},d=this.axes[za.Y]?.scale.type,u=this.axes[za.X]?.scale.type;await this.requestDataModel(e,this.data,{props:[jge(o,d,{id:"radiusValue"}),Uge(i,u,{id:"angleValue-raw",invalidValue:null,...c}),...MO(i,"normal","current",{id:"angleValue-end",rangeId:"angleValue-range",invalidValue:null,groupId:r,separateNegative:!0,...c},u),...MO(i,"trailing","current",{id:"angleValue-start",invalidValue:null,groupId:a,separateNegative:!0,...c},u),...l],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[za.Y];return e instanceof Hge?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t}=this;if(!t||!e||e.type!=="grouped"||!this.properties.isValid())return;const i=this.axes[za.X],o=this.axes[za.Y],s=i?.scale,n=o?.scale;if(!s||!n)return;const r=t.resolveKeysById(this,"radiusValue",e),a=t.resolveColumnById(this,"angleValue-start",e),l=t.resolveColumnById(this,"angleValue-end",e),c=t.resolveColumnById(this,"angleValue-raw",e),d=t.resolveProcessedDataIndexById(this,"angleValue-range");let u=0;o instanceof Gu&&(u=o.groupPaddingInner);const{groupScale:h}=this,{index:p,visibleGroupCount:g}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);h.domain=Array.from({length:g}).map((F,z)=>String(z)),h.range=[0,Math.abs(n.bandwidth??0)],h.paddingInner=g>1?u:0;const f=h.bandwidth>=1?h.bandwidth:h.rawBandwidth,v=i.isReversed(),y=o.isReversed(),C=y?this.radius:this.getAxisInnerRadius(),x=(y?this.getAxisInnerRadius():this.radius)+C,{angleKey:D,radiusKey:A,angleName:k,radiusName:w,label:M}=this.properties,R=(F,z,_,V)=>{const G=this.getLabelText(M,{value:z,datum:F,angleKey:D,radiusKey:A,angleName:k,radiusName:w});if(G)return{x:_,y:V,text:G,textAlign:"center",textBaseline:"middle"}},L=[],P={itemId:A,nodeData:L,labelData:L};if(!this.visible)return P;const{dataSources:N}=e,O=N.get(this.id)??[];for(const{datumIndex:F,group:z}of t.forEachGroupDatum(this,e)){const _=O[F],V=r[F];if(V==null)return;const G=c[F],H=a[F],B=l[F],W=G>=0&&!Object.is(G,-0),j=z.aggregation[d][W?1:0],U=W===v;let ee=s.convert(H,!0),q=s.convert(B,!0),te=s.convert(0,!0),se=s.convert(j,!0);U&&([te,se]=[se,te],[ee,q]=[q,ee]);const ie=x-n.convert(V)+h.convert(String(p)),X=ie+f,ne=(ie+X)/2,re=ee+Qge(ee,q)/2,ue=Math.cos(re)*ne,le=Math.sin(re)*ne,me=this.properties.label.enabled?R(_,G,ue,le):void 0,Me=new tfe(ee,q,ie,X);L.push({series:this,datum:_,datumIndex:F,point:{x:ue,y:le,size:0},midPoint:{x:ue,y:le},label:me,angleValue:G,radiusValue:V,innerRadius:ie,outerRadius:X,startAngle:te,endAngle:se,clipSector:Me,reversed:U,index:F})}return P}update({seriesRect:e}){const t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle.item:void 0;return{fill:i?.fill??t.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke??t.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity,lineDash:i?.lineDash??t.lineDash,lineDashOffset:i?.lineDashOffset??t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,i,o){const{id:s,properties:n}=this,{angleKey:r,radiusKey:a,itemStyler:l}=n;if(l!=null)return this.cachedDatumCallback(DO(e,o?"highlight":"node"),()=>l({seriesId:s,datum:t,highlighted:o,angleKey:r,radiusKey:a,...i}))}updateSectorSelection(e,t){let i=[];if(t){const s=this.ctx.highlightManager?.getActiveHighlight();s?.datum&&s.series===this&&i.push(s)}else i=this.nodeData;const o=this.getItemBaseStyle(t);e.update(i,void 0,s=>this.getDatumId(s)).each((s,n)=>{const{datum:r,datumIndex:a}=n,l=this.getItemStyleOverrides(String(a),r,o,t),c=l?.cornerRadius??o.cornerRadius;ife(s,o,l),s.lineJoin="round",s.inset=s.stroke!=null?s.strokeWidth/2:0,s.startInnerCornerRadius=r.reversed?c:0,s.startOuterCornerRadius=r.reversed?c:0,s.endInnerCornerRadius=r.reversed?0:c,s.endOuterCornerRadius=r.reversed?0:c,t&&(s.startAngle=n.startAngle,s.endAngle=n.endAngle,s.clipSector=n.clipSector,s.innerRadius=n.innerRadius,s.outerRadius=n.outerRadius)})}updateLabels(){const{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,i)=>{e.enabled&&i.label?(t.x=i.label.x,t.y=i.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=i.label.text,t.textAlign=i.label.textAlign,t.textBaseline=i.label.textBaseline,t.visible=!0):t.visible=!1})}getBarTransitionFunctions(){const e=this.axes[za.X]?.scale;let t=0;if(!e)return wO(t);const i=Math.min(e.domain[0],e.domain[1]),o=Math.max(e.domain[0],e.domain[1]);return i<=0&&o>=0&&(t=e.convert(0)),wO(t)}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getBarTransitionFunctions();kO.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),Xge(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getBarTransitionFunctions();kO.fromToMotion(this.id,"datums",t,[e],i),Zge(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[za.X],h=s[za.Y];if(!i||!o||!u||!h)return;const{datumIndex:p}=e,g=o.dataSources.get(this.id)?.[p],f=i.resolveKeysById(this,"radiusValue",o)[p],v=i.resolveColumnById(this,"angleValue-raw",o)[p];if(f==null)return;const y=this.getItemBaseStyle(!1);return Object.assign(y,this.getItemStyleOverrides(String(p),p,y,!1)),d.formatTooltip({heading:h.formatDatum(f),symbol:this.legendItemSymbol(),data:[{label:a,fallbackLabel:r,value:u.formatDatum(v)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...y})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r}=this.properties;return{marker:{fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];const{id:t,visible:i}=this,{angleKey:o,angleName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return DO(e.radiusValue)}computeLabelsBBox(){return null}getStackId(){return`radialBar-stack-${this.seriesGrouping?.groupIndex??this.id}-xValues`}};CT.className="RadialBarSeries";CT.type="radial-bar";var{ThemeConstants:{POLAR_AXIS_TYPE:sfe}}=E,nfe={series:{strokeWidth:0,label:{enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"backgroundColor"}}},axes:{[sfe.RADIUS_CATEGORY]:{innerRadiusRatio:.2,groupPaddingInner:.2,paddingInner:.2,paddingOuter:.1}}},{POLAR_AXIS_TYPE:IO}=E.ThemeConstants,rfe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-bar",moduleFactory:e=>new CT(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:IO.ANGLE_NUMBER},{type:IO.RADIUS_CATEGORY}],themeTemplate:nfe,paletteFactory:({takeColors:e})=>{const{fills:[t],strokes:[i]}=e(1);return{fill:t,stroke:i}},stackable:!0,groupable:!0},{Validate:s9,RATIO:n9}=E,ST=class extends Oi{};b([s9(n9,{optional:!0})],ST.prototype,"columnWidthRatio");b([s9(n9,{optional:!0})],ST.prototype,"maxColumnWidthRatio");var{ChartAxisDirection:afe,PolarAxis:lfe,RadialColumnShape:cfe,getRadialColumnWidth:dfe}=E,xT=class extends _V{constructor(e){super(e,{animationResetFns:{item:xpe}}),this.properties=new ST}getStackId(){return`radarColumn-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new cfe}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return Spe(e)}isRadiusAxisCircle(){const e=this.axes[afe.Y];return e instanceof lfe?e.shape==="circle":!1}updateItemPath(e,t,i){e.isBeveled=this.isRadiusAxisCircle(),e.isRadiusAxisReversed=this.isRadiusAxisReversed(),i&&(e.innerRadius=t.innerRadius,e.outerRadius=t.outerRadius,e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.columnWidth=t.columnWidth,e.axisInnerRadius=t.axisInnerRadius,e.axisOuterRadius=t.axisOuterRadius)}getColumnWidth(e,t){const{columnWidthRatio:i=.5,maxColumnWidthRatio:o=.5}=this.properties;return dfe(e,t,this.radius,i,o)}};xT.className="RadialColumnSeries";xT.type="radial-column";var{ThemeConstants:{POLAR_AXIS_TYPE:AO,POLAR_AXIS_SHAPE:RO}}=E,ufe={series:{columnWidthRatio:.5,maxColumnWidthRatio:.5,strokeWidth:0,label:{enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}}},axes:{[AO.ANGLE_CATEGORY]:{shape:RO.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[AO.RADIUS_NUMBER]:{shape:RO.CIRCLE,innerRadiusRatio:.5}}},{POLAR_AXIS_TYPE:TO}=E.ThemeConstants,hfe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-column",moduleFactory:e=>new xT(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:TO.ANGLE_CATEGORY},{type:TO.RADIUS_NUMBER}],themeTemplate:ufe,paletteFactory:({takeColors:e})=>{const{fills:[t],strokes:[i]}=e(1);return{fill:t,stroke:i}},stackable:!0,groupable:!0},{SvgPath:pfe,Rotatable:gfe,Translatable:ffe,Scalable:mfe}=E,MD=class extends gfe(mfe(ffe(pfe))){constructor(){super(...arguments),this.scalingCenterX=.5,this.scalingCenterY=.5,this.rotationCenterX=.5,this.rotationCenterY=.5}};MD.defaultPathData="M0.50245 0.53745C0.481767 0.53745 0.465 0.520683 0.465 0.5C0.465 0.479317 0.481767 0.46255 0.50245 0.46255L1 0.500012L0.50245 0.53745Z";var{BaseProperties:Tx,SeriesTooltip:yfe,SeriesProperties:vfe,PropertiesArray:wT,Validate:Ae,BOOLEAN:r9,COLOR_STRING:jl,COLOR_STRING_ARRAY:bfe,FUNCTION:Cfe,LINE_DASH:Lx,NUMBER:eh,OBJECT_ARRAY:MT,OBJECT:$l,POSITIVE_NUMBER:Vn,RATIO:Er,STRING:DT,UNION:Sfe,Label:xfe}=E,wfe=Sfe(["inside","outside","middle"],"a placement"),a9=class extends xfe{};b([Ae(eh,{optional:!0})],a9.prototype,"spacing");var yo=class extends Tx{constructor(){super(...arguments),this.label=new a9}};b([Ae(DT,{optional:!0})],yo.prototype,"text");b([Ae(eh,{optional:!0})],yo.prototype,"value");b([Ae(gV,{optional:!0})],yo.prototype,"shape");b([Ae(wfe,{optional:!0})],yo.prototype,"placement");b([Ae(eh,{optional:!0})],yo.prototype,"spacing");b([Ae(Vn,{optional:!0})],yo.prototype,"size");b([Ae(eh,{optional:!0})],yo.prototype,"rotation");b([Ae(jl,{optional:!0})],yo.prototype,"fill");b([Ae(Er,{optional:!0})],yo.prototype,"fillOpacity");b([Ae(jl,{optional:!0})],yo.prototype,"stroke");b([Ae(Vn,{optional:!0})],yo.prototype,"strokeWidth");b([Ae(Er,{optional:!0})],yo.prototype,"strokeOpacity");b([Ae(Lx,{optional:!0})],yo.prototype,"lineDash");b([Ae(Vn,{optional:!0})],yo.prototype,"lineDashOffset");b([Ae($l)],yo.prototype,"label");var Pr=class extends Tx{constructor(){super(...arguments),this.enabled=!0,this.fills=new wT(E.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};b([Ae(r9)],Pr.prototype,"enabled");b([Ae(MT)],Pr.prototype,"fills");b([Ae(vx)],Pr.prototype,"fillMode");b([Ae(jl,{optional:!0})],Pr.prototype,"fill");b([Ae(Er)],Pr.prototype,"fillOpacity");b([Ae(jl,{optional:!0})],Pr.prototype,"stroke");b([Ae(Vn,{optional:!0})],Pr.prototype,"strokeWidth");b([Ae(Er)],Pr.prototype,"strokeOpacity");b([Ae(Lx)],Pr.prototype,"lineDash");b([Ae(Vn)],Pr.prototype,"lineDashOffset");var Nr=class extends Tx{constructor(){super(...arguments),this.fills=new wT(E.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black"}};b([Ae(MT)],Nr.prototype,"fills");b([Ae(vx)],Nr.prototype,"fillMode");b([Ae(jl,{optional:!0})],Nr.prototype,"fill");b([Ae(Er)],Nr.prototype,"fillOpacity");b([Ae(jl)],Nr.prototype,"stroke");b([Ae(Vn)],Nr.prototype,"strokeWidth");b([Ae(Er)],Nr.prototype,"strokeOpacity");b([Ae(Lx)],Nr.prototype,"lineDash");b([Ae(Vn)],Nr.prototype,"lineDashOffset");b([Ae(jl)],Nr.prototype,"defaultFill");var Or=class extends Tx{constructor(){super(...arguments),this.enabled=!0,this.spacing=0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};b([Ae(r9)],Or.prototype,"enabled");b([Ae(Er,{optional:!0})],Or.prototype,"radiusRatio");b([Ae(eh)],Or.prototype,"spacing");b([Ae(jl)],Or.prototype,"fill");b([Ae(Er)],Or.prototype,"fillOpacity");b([Ae(jl)],Or.prototype,"stroke");b([Ae(Vn)],Or.prototype,"strokeWidth");b([Ae(Er)],Or.prototype,"strokeOpacity");b([Ae(Lx)],Or.prototype,"lineDash");b([Ae(Vn)],Or.prototype,"lineDashOffset");var l9=class extends da{};b([Ae(DT,{optional:!0})],l9.prototype,"text");var c9=class extends Wy{};b([Ae(DT,{optional:!0})],c9.prototype,"text");var Bi=class extends vfe{constructor(){super(...arguments),this.segmentation=new jy,this.defaultColorRange=[],this.targets=new wT(yo),this.defaultTarget=new yo,this.outerRadiusRatio=1,this.innerRadiusRatio=1,this.cornerRadius=0,this.cornerMode="container",this.spacing=0,this.scale=new Nr,this.bar=new Pr,this.needle=new Or,this.label=new l9,this.secondaryLabel=new c9,this.tooltip=new yfe}isValid(e){if(!super.isValid(e))return!1;const{outerRadius:t,innerRadius:i}=this;return t==null!=(i==null)?(at.warnOnce("Either [innerRadius] and [outerRadius] must both be set, or neither can be set."),!1):!0}};b([Ae(eh)],Bi.prototype,"value");b([Ae($l)],Bi.prototype,"segmentation");b([Ae(bfe)],Bi.prototype,"defaultColorRange");b([Ae(MT)],Bi.prototype,"targets");b([Ae($l)],Bi.prototype,"defaultTarget");b([Ae(Er)],Bi.prototype,"outerRadiusRatio");b([Ae(Er)],Bi.prototype,"innerRadiusRatio");b([Ae(Vn,{optional:!0})],Bi.prototype,"outerRadius");b([Ae(Vn,{optional:!0})],Bi.prototype,"innerRadius");b([Ae(Vn)],Bi.prototype,"cornerRadius");b([Ae(fV)],Bi.prototype,"cornerMode");b([Ae(eh)],Bi.prototype,"spacing");b([Ae($l)],Bi.prototype,"scale");b([Ae($l)],Bi.prototype,"bar");b([Ae($l)],Bi.prototype,"needle");b([Ae(Cfe,{optional:!0})],Bi.prototype,"itemStyler");b([Ae($l)],Bi.prototype,"label");b([Ae($l)],Bi.prototype,"secondaryLabel");b([Ae($l)],Bi.prototype,"tooltip");var{SectorBox:kT}=E;function Mfe(e){const{startAngle:t,endAngle:i,clipStartAngle:o,clipEndAngle:s,innerRadius:n,outerRadius:r}=e;if(!(o==null||s==null))return new kT(Math.max(o,t),Math.min(s,i),n,r)}function d9(e,t,i){return Math.max(e,i.startAngle)<=Math.min(t,i.endAngle)}function wM(e){return e.clipStartAngle!=null&&e.clipEndAngle!=null}function MM(e,t){const{clipStartAngle:i,clipEndAngle:o,innerRadius:s,outerRadius:n}=e;return new kT(i,t?i:o,s,n)}function LO(e,t){const i=e?"initial":"update";return{node:{fromFn(n,r){const a=n.previousDatum;let{startAngle:l,endAngle:c}=a??r;const d=a!=null&&wM(a)?MM(a,e):void 0,u=wM(r)?MM(r,e):void 0;let h;return d!=null&&u!=null?h=d:d==null&&u!=null?(h=u,l=r.startAngle,c=r.endAngle):d!=null&&u==null?(h=void 0,l=r.startAngle,c=r.endAngle):e&&(c=l),{startAngle:l,endAngle:c,clipSector:h,phase:i}},toFn(n,r){const{startAngle:a,endAngle:l}=r;let c;return wM(r)&&(c=MM(r,!1)),{startAngle:a,endAngle:l,clipSector:c}},applyFn(n,r){const{startAngle:a,endAngle:l}=r;let{clipSector:c}=r;c!=null&&(c=new kT(Math.max(a,c.startAngle),Math.min(l,c.endAngle),c.innerRadius,c.outerRadius));const d=c==null||d9(a,l,c);n.startAngle=a,n.endAngle=l,n.clipSector=c,n.visible=d}},needle:{fromFn(n){let{angle:r}=n.previousDatum??n.datum;return e&&(r=t),{rotation:r,phase:i}},toFn(n,r){const{angle:a}=r;return{rotation:a}}}}}function DM(e,t){const{startAngle:i,endAngle:o}=t,s=Mfe(t),n=s==null||d9(i,o,s);return{startAngle:i,endAngle:o,clipSector:s,visible:n}}function EO(e,t){const{angle:i}=t;return{rotation:i}}var Dfe={top:0,middle:.5,bottom:1};function kfe(e,t,i,o,s){const{padding:n,textAlign:r,verticalAlign:a}=i;let l,c;if(t.each((x,D)=>{D.label==="primary"?l=D:D.label==="secondary"&&(c=D)}),l==null)return;const d=Dm(e,l,s?.label);if(d==null)return;const u=c!=null?Dm(e,c,s?.secondaryLabel):void 0,h={padding:n},p=r==="center"?2:1,g=a==="middle"?2:1,f=x=>({width:Math.sqrt(Math.max(o**2-(x/g)**2,0))*p,height:Math.min(x,g*o),meta:null});let v,y,C;if(c!=null&&u!=null){const x=oV(d,l,u,c,h,f);v=x?.label,y=x?.secondaryLabel,C=x?.height??0}else{const x=Mm(d,l,h,f);v=x?.[0],y=void 0,C=x?.[0].height??0}const S=C*Dfe[a];t.each((x,D)=>{let A;if(D.label==="primary"?A=v:D.label==="secondary"&&(A=y),A==null){x.visible=!1;return}x.visible=!0,x.text=A.text,x.fontSize=A.fontSize,x.lineHeight=A.lineHeight,x.textAlign=r,x.textBaseline="middle";const k=D.label==="primary"?A.height/2:C-A.height/2;x.y=D.centerY+k-S,x.x=D.centerX})}var{fromToMotion:Kg,resetMotion:PO,SeriesNodePickMode:NO,StateMachine:Ife,createDatumId:kM,ChartAxisDirection:ic,normalizeAngle360:OO,normalizeAngle360Inclusive:FO,toDegrees:Afe,toRadians:Rfe,BBox:Tfe,Group:Od,PointerEvents:Lfe,Selection:Fd,Sector:Efe,SectorBox:Pfe,Text:BO,ConicGradient:Nfe,Marker:Ofe,getColorStops:Ffe}=E,Bfe={inside:90,middle:0,outside:-90},Gfe=[{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"},{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"}],zfe=[{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"},{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"}],IT=class extends E.Series{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[NO.EXACT_SHAPE_MATCH,NO.NEAREST_NODE]}),this.canHaveAxes=!0,this.properties=new Bi,this.centerX=0,this.centerY=0,this.radius=0,this.textAlign="center",this.verticalAlign="middle",this.scaleGroup=this.contentGroup.appendChild(new Od({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new Od({name:"itemGroup"})),this.itemNeedleGroup=this.contentGroup.appendChild(new Od({name:"itemNeedleGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new Od({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new Od({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new Od({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new Od({name:"itemTargetLabelGroup"})),this.scaleSelection=Fd.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=Fd.select(this.itemGroup,()=>this.nodeFactory()),this.needleSelection=Fd.select(this.itemNeedleGroup,MD),this.targetSelection=Fd.select(this.itemTargetGroup,()=>this.markerFactory()),this.targetLabelSelection=Fd.select(this.itemTargetLabelGroup,BO),this.labelSelection=Fd.select(this.itemLabelGroup,BO),this.highlightTargetSelection=Fd.select(this.highlightTargetGroup,()=>this.markerFactory()),this.datumUnion=new lV,this.animationState=new Ife("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.animateReadyResize(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateWaitingUpdateReady()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty"},reset:"empty",skip:"ready"}}),this.scaleGroup.pointerEvents=Lfe.None}get maximumRadius(){return this.properties.outerRadius}get minimumRadius(){return this.properties.outerRadius}get hasData(){return this.properties.value!=null}nodeFactory(){return new Efe}markerFactory(){const e=new Ofe;return e.size=1,e}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){return dV(e,this.axes[ic.X])}createConicGradient(e,t){const{centerX:i,centerY:o,radius:s}=this,{domain:n,range:r}=this.axes[ic.X].scale,[a,l]=r,{defaultColorRange:c}=this.properties,d=OO((a+l)/2+Math.PI),u=FO(l-a),h=Ffe(e,c,n,t).map(({color:p,offset:g})=>(g=Math.min(Math.max(g,0),1),g=(a+u*g-d)/(2*Math.PI),g=(g%1+1)%1,{offset:g,color:p}));return new Nfe("oklch",h,Afe(d)-90,new Tfe(i-s,o-s,2*s,2*s))}getTargets(){const{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(i=>{const{text:o=t.text,value:s=t.value??0,shape:n=t.shape??"triangle",rotation:r=t.rotation??0,strokeWidth:a=t.strokeWidth??0,placement:l=t.placement??"middle",spacing:c=t.spacing??0,size:d=t.size??0,fill:u=t.fill??"black",fillOpacity:h=t.fillOpacity??1,stroke:p=t.stroke??"black",strokeOpacity:g=t.strokeOpacity??1,lineDash:f=t.lineDash??[0],lineDashOffset:v=t.lineDashOffset??0}=i,{enabled:y=t.label.enabled,color:C=t.label.color??"black",fontStyle:S=t.label.fontStyle??"normal",fontWeight:x=t.label.fontWeight??"normal",fontSize:D=t.label.fontSize,fontFamily:A=t.label.fontFamily,spacing:k=t.label.spacing??0}=i.label;return{text:o,value:s,shape:n,placement:l,spacing:c,size:d,rotation:r,fill:u,fillOpacity:h,stroke:p,strokeWidth:a,strokeOpacity:g,lineDash:f,lineDashOffset:v,label:{enabled:y,color:C,fontStyle:S,fontWeight:x,fontSize:D,fontFamily:A,spacing:k}}})}getTargetRadius(e){const{radius:t,properties:i}=this,{innerRadiusRatio:o,outerRadiusRatio:s}=i,{placement:n,spacing:r,size:a}=e,l=t*s,c=t*o;switch(n){case"inside":return Math.max(c-r-a/2,0);case"outside":return l+r+a/2;default:return(c+l)/2}}getTargetLabel(e){const i=this.axes[ic.X].scale,{value:o,size:s,placement:n,label:r}=e,{spacing:a,color:l,fontStyle:c,fontWeight:d,fontSize:u,fontFamily:h}=r,p=void 0,g=i.convert(o),f=OO(g)/(Math.PI/2)|0,v=s/2+a;let y,C,S,x;switch(n){case"outside":({textAlign:y,textBaseline:C}=Gfe[f]),S=v*Math.cos(g),x=v*Math.sin(g);break;case"inside":({textAlign:y,textBaseline:C}=zfe[f]),S=-v*Math.cos(g),x=-v*Math.sin(g);break;default:y="center",C="bottom",S=0,x=-v;break}return{offsetX:S,offsetY:x,fill:l,textAlign:y,textBaseline:C,fontStyle:c,fontWeight:d,fontSize:u,fontFamily:h,lineHeight:p}}createNodeData(){const{id:e,properties:t,radius:i,centerX:o,centerY:s}=this;if(!t.isValid())return;const n=this.axes[ic.X];if(n==null)return;const{value:r,innerRadiusRatio:a,outerRadiusRatio:l,segmentation:c,cornerRadius:d,cornerMode:u,needle:h,bar:p,scale:g,label:f,secondaryLabel:v}=t,{outerRadius:y=i*l,innerRadius:C=i*a}=t,S=this.getTargets(),{domain:x}=n.scale,D=[],A=[],k=[],w=[],M=[],[R,L]=n.range,P=n.scale,N=u==="item",O=P.convert(x[0]),F=P.convert(r),z=Math.ceil(FO(F-O)*i);let _=c.enabled?c.interval.getSegments(n.scale,z):void 0;const V=p.enabled?p.fill??this.createConicGradient(p.fills,p.fillMode):"rgba(0,0,0,0)",G=g.fill??(p.enabled&&g.fills.length===0?g.defaultFill:void 0)??this.createConicGradient(g.fills,g.fillMode);if(_==null&&N){const[H,B]=x,W={value:r,segmentStart:H,segmentEnd:B},U=Math.min(d,(y-C)/2)/((C+y)/2);D.push({series:this,itemId:"value",datum:W,datumIndex:{type:0},type:0,centerX:o,centerY:s,outerRadius:y,innerRadius:C,startAngle:O-U,endAngle:F+U,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:d,endCornerRadius:d,fill:V}),M.push({series:this,itemId:"scale",datum:W,datumIndex:{type:0},type:0,centerX:o,centerY:s,outerRadius:y,innerRadius:C,startAngle:R-U,endAngle:L+U,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:d,endCornerRadius:d,fill:G})}else{_??(_=x);for(let H=0;H<_.length-1;H++){const B=_[H],W=_[H+1],j={value:r,segmentStart:B,segmentEnd:W},U=H===0,ee=H===_.length-2,q=P.convert(B),te=P.convert(W);D.push({series:this,itemId:`value-${H}`,datum:j,datumIndex:{type:0},type:0,centerX:o,centerY:s,outerRadius:y,innerRadius:C,startAngle:q,endAngle:te,clipStartAngle:O,clipEndAngle:F,startCornerRadius:N||U?d:0,endCornerRadius:N||ee?d:0,fill:V}),M.push({series:this,itemId:`scale-${H}`,datum:j,datumIndex:{type:0},type:0,centerX:o,centerY:s,outerRadius:y,innerRadius:C,startAngle:q,endAngle:te,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:N||U?d:0,endCornerRadius:N||ee?d:0,fill:G})}}if(!h.enabled&&f.enabled){const{text:H,color:B,fontSize:W,minimumFontSize:j,fontStyle:U,fontWeight:ee,fontFamily:q,lineHeight:te,formatter:se=Z=>this.formatLabel(Z.value)}=f;w.push({label:"primary",centerX:o,centerY:s,text:H,value:r,fill:B,fontSize:W,minimumFontSize:j,fontStyle:U,fontWeight:ee,fontFamily:q,lineHeight:te,formatter:se})}if(!h.enabled&&v.enabled){const{text:H,color:B,fontSize:W,minimumFontSize:j,fontStyle:U,fontWeight:ee,fontFamily:q,lineHeight:te,formatter:se}=v;w.push({label:"secondary",centerX:o,centerY:s,text:H,value:r,fill:B,fontSize:W,minimumFontSize:j,fontStyle:U,fontWeight:ee,fontFamily:q,lineHeight:te,formatter:se})}if(h.enabled){let H=h.radiusRatio!=null?i*h.radiusRatio:C;H=Math.max(H-h.spacing,0);const B=P.convert(r);k.push({centerX:o,centerY:s,radius:H,angle:B,series:this})}for(let H=0;H<S.length;H+=1){const B=S[H],{value:W,text:j,size:U,shape:ee,fill:q,fillOpacity:te,stroke:se,strokeWidth:Z,strokeOpacity:ie,lineDash:X,lineDashOffset:ne}=B;if(W<Math.min(...x)||W>Math.max(...x))continue;const re=this.getTargetRadius(B),ue=P.convert(W),le=Rfe(B.rotation+Bfe[B.placement]);A.push({series:this,itemId:`target-${H}`,midPoint:{x:re*Math.cos(ue)+o,y:re*Math.sin(ue)+s},datum:{value:W},datumIndex:{type:1,index:H},type:1,value:W,text:j,centerX:o,centerY:s,shape:ee,radius:re,angle:ue,rotation:le,size:U,fill:q,fillOpacity:te,stroke:se,strokeOpacity:ie,strokeWidth:Z,lineDash:X,lineDashOffset:ne,label:this.getTargetLabel(B)})}return{itemId:e,nodeData:D,needleData:k,targetData:A,labelData:w,scaleData:M}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){const{datumSelection:t,labelSelection:i,needleSelection:o,targetSelection:s,targetLabelSelection:n,scaleSelection:r,highlightTargetSelection:a}=this,l=this.checkResize(e);this.updateSelections(l),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const c=this.contextNodeData?.nodeData??[],d=this.contextNodeData?.labelData??[],u=this.contextNodeData?.needleData??[],h=this.contextNodeData?.targetData??[],p=this.contextNodeData?.scaleData??[],g=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:p,scaleSelection:r}),this.updateScaleNodes({scaleSelection:r}),this.needleSelection=this.updateNeedleSelection({needleData:u,needleSelection:o}),this.updateNeedleNodes({needleSelection:o}),this.targetSelection=this.updateTargetSelection({targetData:h,targetSelection:s}),this.updateTargetNodes({targetSelection:s,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:h,targetLabelSelection:n}),this.updateTargetLabelNodes({targetLabelSelection:n}),this.datumSelection=this.updateDatumSelection({nodeData:c,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:d,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:g!=null?[g]:[],targetSelection:a}),this.updateTargetNodes({targetSelection:a,isHighlight:!0}),l&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>kM(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s,segmentation:n}=o,r=n.spacing??0,{fillOpacity:a,stroke:l,strokeOpacity:c,lineDash:d,lineDashOffset:u}=s,h=this.getStrokeWidth(s.strokeWidth),p=i.animationManager.isSkipped();t.each((g,f)=>{const{centerX:v,centerY:y,innerRadius:C,outerRadius:S,startCornerRadius:x,endCornerRadius:D,fill:A}=f;g.centerX=v,g.centerY=y,g.innerRadius=C,g.outerRadius=S,g.pointerEvents=this.properties.bar.enabled?E.PointerEvents.All:E.PointerEvents.None,g.fill=A,g.fillOpacity=a,g.stroke=l,g.strokeOpacity=c,g.strokeWidth=h,g.lineDash=d,g.lineDashOffset=u,g.startOuterCornerRadius=x,g.startInnerCornerRadius=x,g.endOuterCornerRadius=D,g.endInnerCornerRadius=D,g.radialEdgeInset=(r+g.strokeWidth)/2,g.concentricEdgeInset=g.strokeWidth/2,(p||g.previousDatum==null)&&g.setProperties(DM(g,f))}),this.datumUnion.update(t,this.itemGroup,E.Sector,(g,f,v)=>{g.clipSector??(g.clipSector=new Pfe(NaN,NaN,NaN,NaN)),g.centerX=f.centerX,g.centerY=f.centerY,g.outerRadius=g.clipSector.outerRadius=f.outerRadius,g.innerRadius=g.clipSector.innerRadius=f.innerRadius,g.startAngle=g.clipSector.startAngle=f.startAngle,g.startInnerCornerRadius=f.startInnerCornerRadius,g.startOuterCornerRadius=f.startOuterCornerRadius,g.endAngle=v.endAngle,g.clipSector.endAngle=v.clipSector?.endAngle??v.endAngle,g.endInnerCornerRadius=v.endInnerCornerRadius,g.endOuterCornerRadius=v.endOuterCornerRadius,g.pointerEvents=E.PointerEvents.None})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>kM(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i,segmentation:o}=this.properties,s=o.spacing??0,{fillOpacity:n,stroke:r,strokeOpacity:a,strokeWidth:l,lineDash:c,lineDashOffset:d}=i;t.each((u,h)=>{const{centerX:p,centerY:g,innerRadius:f,outerRadius:v,startCornerRadius:y,endCornerRadius:C,fill:S}=h;u.centerX=p,u.centerY=g,u.innerRadius=f,u.outerRadius=v,u.fill=S,u.fillOpacity=n,u.stroke=r,u.strokeOpacity=a,u.strokeWidth=l,u.lineDash=c,u.lineDashOffset=d,u.startOuterCornerRadius=y,u.startInnerCornerRadius=y,u.endOuterCornerRadius=C,u.endInnerCornerRadius=C,u.radialEdgeInset=(s+u.strokeWidth)/2,u.concentricEdgeInset=u.strokeWidth/2,u.setProperties(DM(u,h))})}updateNeedleSelection(e){return e.needleSelection.update(e.needleData,void 0,()=>kM([]))}updateNeedleNodes(e){const{needleSelection:t}=e,{fill:i,fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=this.properties.needle,c=this.ctx.animationManager.isSkipped();t.each((d,u)=>{const{centerX:h,centerY:p,radius:g}=u,f=g*2;d.d=MD.defaultPathData,d.fill=i,d.fillOpacity=o,d.stroke=s,d.strokeOpacity=n,d.strokeWidth=r/f,d.lineDash=a.map(v=>v/f),d.lineDashOffset=l/f,d.translationX=h,d.translationY=p,d.scalingX=f,d.scalingY=f,c&&d.setProperties(EO(d,u))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e,o=i?this.properties.highlightStyle.item:void 0;t.each((s,n)=>{const{centerX:r,centerY:a,angle:l,radius:c,shape:d,size:u,rotation:h,fill:p,fillOpacity:g,stroke:f,strokeOpacity:v,strokeWidth:y,lineDash:C,lineDashOffset:S}=n;s.shape=d==="line"?uV:d,s.size=u,s.fill=o?.fill??p,s.fillOpacity=o?.fillOpacity??g,s.stroke=o?.stroke??f,s.strokeOpacity=o?.strokeOpacity??v,s.strokeWidth=o?.strokeWidth??y,s.lineDash=o?.lineDash??C,s.lineDashOffset=o?.lineDashOffset??S,s.translationX=r+c*Math.cos(l),s.translationY=a+c*Math.sin(l),s.rotation=l+h})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{centerX:s,centerY:n,radius:r,angle:a,text:l}=o,{offsetX:c,offsetY:d,fill:u,fontStyle:h,fontWeight:p,fontSize:g,fontFamily:f,textAlign:v,textBaseline:y}=o.label;if(l==null){i.visible=!1;return}i.visible=!0,i.x=s+r*Math.cos(a)+c,i.y=n+r*Math.sin(a)+d,i.text=l,i.fill=u,i.fontStyle=h,i.fontWeight=p,i.fontSize=g,i.fontFamily=f,i.textAlign=v,i.textBaseline=y})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>t.label)}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){if(this.axes[ic.X]==null)return;const{labelSelection:i,radius:o,textAlign:s,verticalAlign:n}=this,{spacing:r,innerRadiusRatio:a}=this.properties;kfe(this,i,{padding:r,textAlign:s,verticalAlign:n},o*a,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),PO([this.datumSelection],DM),PO([this.needleSelection],EO),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i,o,s,n;if(this.labelSelection.each((r,a)=>{r.opacity=1,a.label==="primary"?(i=r.previousDatum?.value??e.from??a.value,o=a.value):a.label==="secondary"&&(s=r.previousDatum?.value??e.from??a.value,n=a.value)}),!this.labelsHaveExplicitText())if(o==null||n==null)this.formatLabelText();else if(i===o&&s===n)this.formatLabelText({label:o,secondaryLabel:n});else{const r=`${this.id}_labels`;t.animate({id:r,groupId:"label",from:{label:i,secondaryLabel:s},to:{label:o,secondaryLabel:n},phase:e.phase??"update",onUpdate:a=>this.formatLabelText(a)})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=LO(!0,this.axes[ic.X]?.range[0]??0);Kg(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Kg(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),Kg(this.id,"label",e,[this.labelSelection],cV,(o,s)=>s.label),this.animateLabelText({from:this.axes[ic.X]?.scale.domain[0]??0,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=LO(!1,this.axes[ic.X]?.range[0]??0);Kg(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Kg(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;if(!i.isValid())return;const{value:s=i.value,text:n=i.label.text}=mV(e);return o.formatTooltip({data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return hV(this,e)}pickFocus(e){return pV(this,e)}getCaptionText(){const{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),this.labelSelection.each((i,o)=>{const s=Dm(this,o);s!=null&&t.push(s)}),t.join(". ")}};IT.className="RadialGaugeSeries";IT.type="radial-gauge";var{FONT_SIZE_RATIO:_fe,ThemeSymbols:{DEFAULT_HIERARCHY_FILLS:Vfe,DEFAULT_GAUGE_SERIES_COLOR_RANGE:Hfe},ThemeConstants:{POLAR_AXIS_TYPE:IM}}=E,Wfe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"radial-gauge",moduleFactory:e=>new IT(e),tooltipDefaults:{range:10},defaultAxes:[{type:IM.ANGLE_NUMBER,line:{enabled:!1}},{type:IM.RADIUS_NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{outerRadiusRatio:1,innerRadiusRatio:.8,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:2},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"outside",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},needle:{enabled:!1,fill:{$ref:"foregroundColor"},spacing:10},label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:56,minimumFontSize:18/56,fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"}},secondaryLabel:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:[_fe.LARGE]},minimumFontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"subtleTextColor"}}},axes:{[IM.ANGLE_NUMBER]:{startAngle:270,endAngle:450,nice:!1,line:{enabled:!1}}}},paletteFactory(e){const{takeColors:t,colorsCount:i,userPalette:o,themeTemplateParameters:s}=e,{fills:n}=t(i),r=s.get(Hfe),a=s.get(Vfe),l=o==="inbuilt"?r:[n[0],n[1]];return{scale:{defaultFill:a?.[1],stroke:a?.[2]},defaultColorRange:aV(l)}}},jfe=1e3;function GO(e,t,i,o,s,n){const r=e[n];if(r==null)return!1;const a=lx(r,t,i),l=cx(a,s);return n===o[l+Cs]}function zO(e,t,i,o,s,n){const r=e[n];if(r==null)return!1;const a=lx(r,t,i),l=cx(a,s);return n===o[l+bs]}function $fe(e,t,i,o){if(e.length<jfe)return;const[s,n]=Ey(o);let r=Ly(e);const{indexData:a,valueData:l}=Py(e,t,i,s,n,r);let c=[],d=[];for(let h=0;h<e.length;h+=1)GO(e,s,n,a,r,h)&&c.push(h),zO(e,s,n,a,r,h)&&d.push(h);const u=[{maxRange:r,topIndices:c,bottomIndices:d}];for(;r>64;)({maxRange:r}=Ny(a,l,r,{inPlace:!0})),c=c.filter(GO.bind(null,e,s,n,a,r)),d=d.filter(zO.bind(null,e,s,n,a,r)),u.push({maxRange:r,topIndices:c,bottomIndices:d});return u.reverse(),u}var{CartesianSeriesProperties:Ufe,InterpolationProperties:Kfe,SeriesMarker:Yfe,SeriesTooltip:Xfe,Validate:ni,BOOLEAN:Zfe,COLOR_STRING:u9,LINE_DASH:qfe,OBJECT:Xy,PLACEMENT:Qfe,POSITIVE_NUMBER:AT,RATIO:h9,STRING:th,DropShadow:Jfe,Label:eme}=E,RT=class extends eme{constructor(){super(...arguments),this.placement="outside",this.padding=6}};b([ni(Qfe)],RT.prototype,"placement");b([ni(AT)],RT.prototype,"padding");var Si=class extends Ufe{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new Kfe,this.shadow=new Jfe().set({enabled:!1}),this.marker=new Yfe,this.label=new RT,this.tooltip=new Xfe,this.connectMissingData=!1}};b([ni(th)],Si.prototype,"xKey");b([ni(th)],Si.prototype,"yLowKey");b([ni(th)],Si.prototype,"yHighKey");b([ni(th,{optional:!0})],Si.prototype,"xName");b([ni(th,{optional:!0})],Si.prototype,"yName");b([ni(th,{optional:!0})],Si.prototype,"yLowName");b([ni(th,{optional:!0})],Si.prototype,"yHighName");b([ni(u9)],Si.prototype,"fill");b([ni(h9)],Si.prototype,"fillOpacity");b([ni(u9)],Si.prototype,"stroke");b([ni(AT)],Si.prototype,"strokeWidth");b([ni(h9)],Si.prototype,"strokeOpacity");b([ni(qfe)],Si.prototype,"lineDash");b([ni(AT)],Si.prototype,"lineDashOffset");b([ni(Xy)],Si.prototype,"interpolation");b([ni(Xy)],Si.prototype,"shadow");b([ni(Xy)],Si.prototype,"marker");b([ni(Xy)],Si.prototype,"label");b([ni(Xy)],Si.prototype,"tooltip");b([ni(Zfe)],Si.prototype,"connectMissingData");var{CollapseMode:rb,isScaleValid:_O,pairUpSpans:ab,prepareAreaFillAnimationFns:tme,plotInterpolatedLinePathStroke:Mh,prepareLinePathPropertyAnimation:ime,areScalingEqual:VO}=E;function ome(e,t,i,o){const s=(l,c)=>{Mh(l,c,t.removed),Mh(l,c,i.removed)},n=(l,c)=>{Mh(l,c,t.moved),Mh(l,c,i.moved)},r=(l,c)=>{Mh(l,c,t.added),Mh(l,c,i.added)},a=ime(e,o);return{status:e,path:{addPhaseFn:r,updatePhaseFn:n,removePhaseFn:s},pathProperties:a}}function sme(e,t,i){const o=e.scales.x?.type==="category",s=t.scales.x?.type==="category";if(o!==s||!_O(e.scales.x)||!_O(t.scales.x))return;let n="updated";t.visible&&!e.visible?n="removed":!t.visible&&e.visible&&(n="added");const r=ab({scales:e.scales,data:e.fillData.spans},{scales:t.scales,data:t.fillData.spans},rb.Split);if(r==null)return;const a=ab({scales:e.scales,data:e.fillData.phantomSpans},{scales:t.scales,data:t.fillData.phantomSpans},rb.Split);if(a==null)return;const l=ab({scales:e.scales,data:e.highStrokeData.spans},{scales:t.scales,data:t.highStrokeData.spans},rb.Split);if(l==null)return;const c=ab({scales:e.scales,data:e.lowStrokeData.spans},{scales:t.scales,data:t.lowStrokeData.spans},rb.Split);if(c==null)return;const d="fade",u=tme(n,r,a,d),h=ome(n,l,c,d),p=(i?.changed??!0)||!VO(e.scales.x,t.scales.x)||!VO(e.scales.y,t.scales.y)||n!=="updated";return{status:n,fill:u,stroke:h,hasMotion:p}}var{valueProperty:HO,keyProperty:nme,ChartAxisDirection:xo,mergeDefaults:rme,updateLabelNode:ame,fixNumericExtent:WO,buildResetPathFn:lme,resetLabelFn:cme,resetMarkerFn:dme,resetMarkerPositionFn:jO,pathSwipeInAnimation:ume,resetMotion:hme,markerSwipeScaleInAnimation:pme,seriesLabelFadeInAnimation:AM,animationValidation:gme,diff:fme,updateClipPath:$O,computeMarkerFocusBounds:UO,plotAreaPathFill:mme,plotLinePathStroke:KO,interpolatePoints:YO,pathFadeInAnimation:XO,markerFadeInAnimation:ZO,fromToMotion:qO,pathMotion:QO,extent:yme,createDatumId:vme,PointerEvents:RM,Group:bme,BBox:Cme,ContinuousScale:Sme,OrdinalTimeScale:xme,findMinMax:wme}=E,Mme=class extends E.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.xKey=o.properties.xKey,this.yLowKey=o.properties.yLowKey,this.yHighKey=o.properties.yHighKey}},TT=class extends E.CartesianSeries{constructor(e){super({moduleCtx:e,hasMarkers:!0,pathsPerSeries:["fill","stroke"],pickModes:[E.SeriesNodePickMode.AXIS_ALIGNED],directionKeys:{[xo.X]:["xKey"],[xo.Y]:["yLowKey","yHighKey"]},directionNames:{[xo.X]:["xName"],[xo.Y]:["yLowName","yHighName","yName"]},animationResetFns:{path:lme({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:cme,marker:(t,i)=>({...dme(t),...jO(t,i)})}}),this.properties=new Si,this.NodeEvent=Mme,this.dataAggregationFilters=void 0}async processData(e){if(!this.properties.isValid())return;const{xKey:t,yLowKey:i,yHighKey:o}=this.properties,s=this.axes[xo.X]?.scale,n=this.axes[xo.Y]?.scale,{xScaleType:r,yScaleType:a}=this.getScaleInformation({xScale:s,yScale:n}),l=[],c=!this.ctx.animationManager.isSkipped();!this.ctx.animationManager.isSkipped()&&this.processedData&&l.push(fme(this.id,this.processedData)),c&&l.push(gme());const{dataModel:d,processedData:u}=await this.requestDataModel(e,this.data,{props:[nme(t,r,{id:"xValue"}),HO(i,a,{id:"yLowValue"}),HO(o,a,{id:"yHighValue"}),...l]});this.dataAggregationFilters=this.aggregateData(d,u),this.animationState.transition("updateData")}aggregateData(e,t){const i=this.axes[xo.X];if(i==null||!(Sme.is(i.scale)||xme.is(i.scale)))return;const o=e.resolveKeysById(this,"xValue",t),s=e.resolveColumnById(this,"yHighValue",t),n=e.resolveColumnById(this,"yLowValue",t),{index:r}=e.resolveProcessedDataDefById(this,"xValue"),a=t.domain.keys[r];return $fe(o,s,n,a)}xCoordinateRange(e){const t=this.axes[xo.X].scale.convert(e);return[t,t]}yCoordinateRange(e){const t=this.axes[xo.Y].scale.convert(e[0]);return[t,t]}getSeriesDomain(e){const{processedData:t,dataModel:i}=this;if(!(t&&i))return[];const{domain:{keys:[o]}}=t;if(e===xo.X){const s=i.resolveProcessedDataDefById(this,"xValue");return s?.def.type==="key"&&s.def.valueType==="category"?o:WO(yme(o))}else{const s=this.domainForClippedRange(xo.Y,["yHighValue","yLowValue"],"xValue",!0),n=wme(s);return WO(n)}}getSeriesRange(e,t){return this.domainForVisibleRange(xo.Y,["yHighValue","yLowValue"],"xValue",t,!0)}createNodeData(){const{data:e,dataModel:t,processedData:i,axes:o}=this,s=o[xo.X],n=o[xo.Y];if(!(e&&s&&n&&t&&i))return;const r=s.scale,a=n.scale,{xKey:l,yLowKey:c,yHighKey:d,connectMissingData:u,marker:h,interpolation:p}=this.properties,g=i.dataSources.get(this.id)??[],f=(r.bandwidth??0)/2,v=t.resolveKeysById(this,"xValue",i),y=t.resolveColumnById(this,"yHighValue",i),C=t.resolveColumnById(this,"yLowValue",i),S=H=>r.convert(v[H])+f,x=[],D=[],A=[],k=(H,B,W)=>{const j=g[H],U=v[H];if(U==null)return;const ee=A[A.length-1];if(Number.isFinite(B)&&Number.isFinite(W)){const q=(re,ue,le)=>{D.push({index:H,series:this,itemId:re,datum:j,datumIndex:H,midPoint:{x:se,y:le},yHighValue:B,yLowValue:W,xValue:U,xKey:l,yLowKey:c,yHighKey:d,point:{x:se,y:le,size:X},enabled:!0});const me=this.createLabelData({datumIndex:H,point:{x:se,y:le},value:ue,yLowValue:W,yHighValue:B,itemId:re,inverted:te,datum:j,series:this});x.push(me)},te=W>B,se=S(H),Z=a.convert(B),ie=a.convert(W),{size:X}=h;q("high",B,Z),q("low",W,ie);const ne={high:{point:{x:se,y:Z},xDatum:U,yDatum:B},low:{point:{x:se,y:ie},xDatum:U,yDatum:W}};Array.isArray(ee)?ee.push(ne):ee!=null?(ee.skip+=1,A.push([ne])):A.push([ne])}else u||(Array.isArray(ee)||ee==null?A.push({skip:0}):ee.skip+=1)},{dataAggregationFilters:w}=this,[M,R]=r.range,L=R-M,P=w?.find(H=>H.maxRange>L),N=P?.topIndices,O=P?.bottomIndices;let[F,z]=this.visibleRange("xValue",s.range,N);F=Math.max(F-1,0),z=Math.min(z+1,N?.length??v.length),i.input.count<1e3&&(F=0,z=i.input.count);for(let H=F;H<z;H+=1){const B=N?.[H]??H,W=O?.[H]??H;k(B,y[B],C[W])}const _=A.flatMap(H=>{if(!Array.isArray(H))return[];const B=H.map(W=>W.high);return YO(B,p)}),V=A.flatMap(H=>{if(!Array.isArray(H))return[];const B=H.map(W=>W.low);return YO(B,p)});return{itemId:`${c}-${d}`,labelData:x,nodeData:D,fillData:{itemId:"high",spans:_,phantomSpans:V},highStrokeData:{itemId:"high",spans:_},lowStrokeData:{itemId:"low",spans:V},scales:this.calculateScaling(),visible:this.visible}}createLabelData({datumIndex:e,point:t,value:i,itemId:o,inverted:s,datum:n,series:r}){const{xKey:a,yLowKey:l,yHighKey:c,xName:d,yName:u,yLowName:h,yHighName:p,label:g}=this.properties,{placement:f,padding:v=10}=g;let y=o;s&&(y=o==="low"?"high":"low");const C=f==="outside"&&y==="high"||f==="inside"&&y==="low"?-1:1;return{x:t.x,y:t.y+v*C,series:r,itemId:o,datum:n,datumIndex:e,text:this.getLabelText(g,{value:i,datum:n,itemId:o,xKey:a,yLowKey:l,yHighKey:c,xName:d,yLowName:h,yHighName:p,yName:u}),textAlign:"center",textBaseline:C===-1?"bottom":"top"}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}updatePathNodes(e){const{opacity:t,visible:i,animationEnabled:o}=e,[s,n]=e.paths,r=this.getStrokeWidth(this.properties.strokeWidth);n.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:RM.None,stroke:this.properties.stroke,strokeWidth:r,strokeOpacity:this.properties.strokeOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:t,visible:i||o}),s.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:RM.None,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,strokeOpacity:this.properties.strokeOpacity,fillShadow:this.properties.shadow,strokeWidth:r,opacity:t,visible:i||o}),$O(this,n),$O(this,s)}updatePaths(e){this.updateAreaPaths(e.paths,e.contextData)}updateAreaPaths(e,t){for(const i of e)i.visible=t.visible;if(t.visible)this.updateFillPath(e,t),this.updateStrokePath(e,t);else for(const i of e)i.path.clear(),i.markDirty()}updateFillPath(e,t){const[i]=e;i.path.clear(),mme(i,t.fillData),i.markDirty()}updateStrokePath(e,t){const[,i]=e;i.path.clear(),KO(i,t.highStrokeData.spans),KO(i,t.lowStrokeData.spans),i.markDirty()}updateMarkerSelection(e){const{nodeData:t,markerSelection:i}=e;return this.properties.marker.isDirty()&&(i.clear(),i.cleanup()),i.update(this.properties.marker.enabled?t:[])}getMarkerItemBaseStyle(e){const{properties:t}=this,{marker:i}=t,o=e?t.highlightStyle.item:void 0;return{shape:i.shape,size:i.size,fill:o?.fill??i.fill,fillOpacity:o?.fillOpacity??i.fillOpacity,stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??this.getStrokeWidth(i.strokeWidth),strokeOpacity:o?.strokeOpacity??i.strokeOpacity,lineDash:o?.lineDash??i.lineDash,lineDashOffset:o?.lineDashOffset??i.lineDashOffset}}getMarkerItemStyleOverrides(e,t,i,o){const{id:s,properties:n}=this,{xKey:r,yHighKey:a,yLowKey:l,marker:c}=n,{itemStyler:d}=c;if(d!=null)return this.cachedDatumCallback(vme(e,o?"highlight":"node"),()=>d({seriesId:s,datum:t,xKey:r,yHighKey:a,yLowKey:l,highlighted:o,...i}))}updateMarkerNodes(e){const{markerSelection:t,isHighlight:i}=e,{xKey:o,yLowKey:s,yHighKey:n,marker:r,fill:a,stroke:l,strokeWidth:c,fillOpacity:d,strokeOpacity:u}=this.properties,h=rme(i&&this.properties.highlightStyle.item,r.getStyle(),{fill:a,fillOpacity:d,stroke:l,strokeWidth:c,strokeOpacity:u});t.each((p,g)=>{this.updateMarkerStyle(p,r,{datum:g,highlighted:i,xKey:o,yHighKey:n,yLowKey:s},h)}),i||this.properties.marker.markClean()}updateLabelSelection(e){const{labelData:t,labelSelection:i}=e;return i.update(t,o=>{o.pointerEvents=RM.None})}updateLabelNodes(e){e.labelSelection.each((t,i)=>{ame(t,this.properties.label,i)})}getHighlightLabelData(e,t){const i=e.filter(o=>o.datum===t.datum);return i.length>0?i:void 0}getHighlightData(e,t){const i=e.filter(o=>o.datum===t.datum);return i.length>0?i:void 0}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{xName:r,yName:a,yLowKey:l,yLowName:c,xKey:d,yHighKey:u,yHighName:h,tooltip:p}=n,g=s[xo.X],f=s[xo.Y];if(!i||!o||!g||!f)return;const{datumIndex:v}=e,y=o.dataSources.get(this.id)?.[v],C=i.resolveKeysById(this,"xValue",o)[v],S=i.resolveColumnById(this,"yHighValue",o)[v],x=i.resolveColumnById(this,"yLowValue",o)[v];if(C==null)return;const D=this.getMarkerItemBaseStyle(!1);Object.assign(D,this.getMarkerItemStyleOverrides(String(v),v,D,!1));const A=`${f.formatDatum(x)} - ${f.formatDatum(S)}`;return p.formatTooltip({heading:g.formatDatum(C),symbol:this.legendItemSymbol(),data:[{label:a,fallbackLabel:`${c??l} - ${h??u}`,value:A}]},{seriesId:t,datum:y,title:a,itemId:e.itemId,xName:r,yName:a,yLowKey:l,yLowName:c,xKey:d,yHighKey:u,yHighName:h,...D})}legendItemSymbol(){const{fill:e,stroke:t,strokeWidth:i,strokeOpacity:o,lineDash:s,marker:n}=this.properties;return{marker:{shape:n.shape,fill:n.fill??e,stroke:n.stroke??t,fillOpacity:n.fillOpacity,strokeOpacity:n.strokeOpacity,strokeWidth:n.strokeWidth,lineDash:n.lineDash,lineDashOffset:n.lineDashOffset},line:{stroke:t,strokeOpacity:o,strokeWidth:i,lineDash:s}}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{yLowKey:o,yHighKey:s,yName:n,yLowName:r,yHighName:a,showInLegend:l}=this.properties,c=n??`${r??o} - ${a??s}`,d=`${o}-${s}`;return[{legendType:"category",id:t,itemId:d,seriesId:t,enabled:i,label:{text:`${c}`},symbol:this.legendItemSymbol(),hideInLegend:!l}]}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}nodeFactory(){return new bme}animateEmptyUpdateReady(e){const{markerSelection:t,labelSelection:i,contextData:o,paths:s}=e,{animationManager:n}=this.ctx;this.updateAreaPaths(s,o),ume(this,n,...s),hme([t],jO),pme(this,n,t),AM(this,"labels",n,i)}animateReadyResize(e){const{contextData:t,paths:i}=e;this.updateAreaPaths(i,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){const{animationManager:t}=this.ctx,{markerSelection:i,labelSelection:o,contextData:s,paths:n,previousContextData:r}=e,[a,l]=n;if(a==null&&l==null)return;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);const c=()=>{this.resetPathAnimation(e),this.updateAreaPaths(n,s)},d=()=>{t.skipCurrentBatch(),c()};if(s==null||r==null){c(),ZO(this,t,"added",i),XO(this,"fill_path_properties",t,"add",a),XO(this,"stroke_path_properties",t,"add",l),AM(this,"labels",t,o);return}const u=sme(s,r,this.processedData?.reduced?.diff?.[this.id]);if(u===void 0){d();return}else if(u.status==="no-op")return;qO(this.id,"fill_path_properties",t,[a],u.fill.pathProperties),qO(this.id,"stroke_path_properties",t,[l],u.stroke.pathProperties),u.status==="added"?this.updateAreaPaths(n,s):u.status==="removed"?this.updateAreaPaths(n,r):(QO(this.id,"fill_path_update",t,[a],u.fill.path),QO(this.id,"stroke_path_update",t,[l],u.stroke.path)),u.hasMotion&&(ZO(this,t,void 0,i),AM(this,"labels",t,o)),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(n,s)})}getFormattedMarkerStyle(e){const{xKey:t,yLowKey:i,yHighKey:o}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yLowKey:i,yHighKey:o,highlighted:!0})}computeFocusBounds(e){const t=UO(this,e),i=UO(this,{...e,datumIndex:e.datumIndex+1});if(t&&i)return Cme.merge([t,i])}computeFocusDatumIndex(e,t){const i={...e,datumIndex:e.datumIndex+e.datumIndexDelta,datumIndexDelta:e.datumIndexDelta*2};return super.computeFocusDatumIndex(i,t)}};TT.className="RangeAreaSeries";TT.type="range-area";var Dme={series:{fillOpacity:.7,nodeClickRange:"nearest",marker:{enabled:!1,size:6,strokeWidth:2},label:{enabled:!1,placement:"outside",padding:10,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},interpolation:{type:"linear",tension:1,position:"end"}},axes:{[E.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{markerPaletteFactory:kme,ThemeConstants:{CARTESIAN_AXIS_TYPE:JO,CARTESIAN_POSITION:eF}}=E,Ime={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-area",moduleFactory:e=>new TT(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:JO.NUMBER,position:eF.LEFT},{type:JO.CATEGORY,position:eF.BOTTOM}],themeTemplate:Dme,paletteFactory:e=>{const{marker:t}=kme(e);return{fill:t.fill,stroke:t.stroke,marker:t}}},Ame=1e3,Rme=5;function Tme(e,t,i,o){if(e.length<Ame)return;const[s,n]=Ey(o);let r=Ly(e,Rme),{indexData:a,valueData:l}=Py(e,t,i,s,n,r);const c=[{maxRange:r,indexData:a}];for(;r>64;)({indexData:a,valueData:l,maxRange:r}=Ny(a,l,r)),c.push({maxRange:r,indexData:a});return c.reverse(),c}var{AbstractBarSeriesProperties:Lme,SeriesTooltip:Eme,Validate:ri,COLOR_STRING:p9,FUNCTION:Pme,LINE_DASH:Nme,OBJECT:LT,PLACEMENT:Ome,POSITIVE_NUMBER:Ex,RATIO:g9,STRING:ih,BOOLEAN:Fme,DropShadow:Bme,Label:Gme}=E,ET=class extends Gme{constructor(){super(...arguments),this.placement="inside",this.padding=6}};b([ri(Ome)],ET.prototype,"placement");b([ri(Ex)],ET.prototype,"padding");var xi=class extends Lme{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.shadow=new Bme().set({enabled:!1}),this.label=new ET,this.tooltip=new Eme,this.fastDataProcessing=!1}};b([ri(ih)],xi.prototype,"xKey");b([ri(ih)],xi.prototype,"yLowKey");b([ri(ih)],xi.prototype,"yHighKey");b([ri(ih,{optional:!0})],xi.prototype,"xName");b([ri(ih,{optional:!0})],xi.prototype,"yName");b([ri(ih,{optional:!0})],xi.prototype,"yLowName");b([ri(ih,{optional:!0})],xi.prototype,"yHighName");b([ri(p9)],xi.prototype,"fill");b([ri(g9)],xi.prototype,"fillOpacity");b([ri(p9)],xi.prototype,"stroke");b([ri(Ex)],xi.prototype,"strokeWidth");b([ri(g9)],xi.prototype,"strokeOpacity");b([ri(Nme)],xi.prototype,"lineDash");b([ri(Ex)],xi.prototype,"lineDashOffset");b([ri(Ex)],xi.prototype,"cornerRadius");b([ri(Pme,{optional:!0})],xi.prototype,"itemStyler");b([ri(LT)],xi.prototype,"shadow");b([ri(LT)],xi.prototype,"label");b([ri(LT)],xi.prototype,"tooltip");b([ri(Fme)],xi.prototype,"fastDataProcessing");var{SeriesNodePickMode:tF,valueProperty:iF,keyProperty:zme,ChartAxisDirection:Yg,checkCrisp:_me,updateLabelNode:Vme,SMALLEST_KEY_INTERVAL:Hme,LARGEST_KEY_INTERVAL:Wme,diff:jme,prepareBarAnimationFunctions:oF,midpointStartingBarPosition:sF,resetBarSelectionsFn:$me,fixNumericExtent:Ume,seriesLabelFadeInAnimation:nF,resetLabelFn:Kme,animationValidation:Yme,computeBarFocusBounds:Xme,visibleRangeIndices:rF,createDatumId:Zme,ContinuousScale:aF,OrdinalTimeScale:qme,Rect:Qme,PointerEvents:Jme,motion:lF,applyShapeStyle:eye,findMinMax:tye}=E,iye=class extends E.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.xKey=o.properties.xKey,this.yLowKey=o.properties.yLowKey,this.yHighKey=o.properties.yHighKey}},PT=class extends E.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[tF.AXIS_ALIGNED,tF.EXACT_SHAPE_MATCH],hasHighlightedLabels:!0,directionKeys:{x:["xKey"],y:["yLowKey","yHighKey"]},directionNames:{x:["xName"],y:["yLowName","yHighName","yName"]},datumSelectionGarbageCollection:!1,animationResetFns:{datum:$me,label:Kme}}),this.properties=new xi,this.dataAggregationFilters=void 0,this.NodeEvent=iye}async processData(e){if(!this.properties.isValid())return;const{xKey:t,yLowKey:i,yHighKey:o,fastDataProcessing:s}=this.properties,n=!s,r=this.getCategoryAxis()?.scale,a=this.getValueAxis()?.scale,{isContinuousX:l,xScaleType:c,yScaleType:d}=this.getScaleInformation({xScale:r,yScale:a}),u=[];this.ctx.animationManager.isSkipped()||(this.processedData&&u.push(jme(this.id,this.processedData)),u.push(Yme()));const h=this.visible?{}:{forceValue:0},{dataModel:p,processedData:g}=await this.requestDataModel(e,this.data,{props:[zme(t,c,{id:"xValue"}),iF(i,d,{id:"yLowValue",invalidValue:null,...h}),iF(o,d,{id:"yHighValue",invalidValue:null,...h}),...l?[Hme,Wme]:[],...u],groupByKeys:n});this.smallestDataInterval=g.reduced?.smallestKeyInterval,this.largestDataInterval=g.reduced?.largestKeyInterval,this.dataAggregationFilters=this.aggregateData(p,g),this.animationState.transition("updateData")}aggregateData(e,t){if(t.type!=="grouped")return;const i=this.axes[Yg.X];if(i==null||!(aF.is(i.scale)||qme.is(i.scale)))return;const o=e.resolveKeysById(this,"xValue",t),s=e.resolveColumnById(this,"yHighValue",t),n=e.resolveColumnById(this,"yLowValue",t),{index:r}=e.resolveProcessedDataDefById(this,"xValue"),a=t.domain.keys[r];return Tme(o,s,n,a)}getSeriesDomain(e){const{processedData:t,dataModel:i}=this;if(!t||!i)return[];const{keys:[o]}=t.domain;if(e===this.getCategoryDirection()){const s=i.resolveProcessedDataDefById(this,"xValue");return s?.def.type==="key"&&s?.def.valueType==="category"?o:this.padBandExtent(o)}else{const s=this.domainForClippedRange(Yg.Y,["yHighValue","yLowValue"],"xValue",!0),n=tye(s);return Ume(n)}}getSeriesRange(e,t){return this.domainForVisibleRange(Yg.Y,["yHighValue","yLowValue"],"xValue",t,!0)}createNodeData(){const{data:e,dataModel:t,groupScale:i,processedData:o,visible:s}=this,n=this.getCategoryAxis(),r=this.getValueAxis();if(!(e&&n&&r&&t&&o?.dataSources))return;const a=n.scale,l=r.scale,c=this.getBarDirection()===Yg.X,{xKey:d,yLowKey:u,yHighKey:h,strokeWidth:p}=this.properties,g=`${u}-${h}`,f={itemId:g,nodeData:[],labelData:[],scales:this.calculateScaling(),visible:this.visible};if(!s)return f;const v=o.dataSources.get(this.id)??[],y=t.resolveKeysById(this,"xValue",o),C=t.resolveColumnById(this,"yLowValue",o),S=t.resolveColumnById(this,"yHighValue",o),{barWidth:x,groupIndex:D}=this.updateGroupScale(n),A=aF.is(a)?x*-.5:0,k=i.convert(String(D)),w=_me(n?.scale,n?.visibleRange,this.smallestDataInterval,this.largestDataInterval),M=z=>Math.round(a.convert(y[z]))+k+A,R=(z,_,V,G,H,B,W)=>{const j=v[z],U=y[z];if(U==null)return;const ee=C[z],q=S[z];if(!Number.isFinite(ee?.valueOf())||!Number.isFinite(q?.valueOf()))return;const[te,se]=ee<q?[ee,q]:[q,ee],Z=Math.round(l.convert(B)),ie=Math.round(l.convert(H)),X=Math.max(p,Math.abs(ie-Z)),ne={x:c?Math.min(Z,ie):V,y:c?V:Math.min(Z,ie),width:c?X:G,height:c?G:X},re={x:ne.x+ne.width/2,y:ne.y+ne.height/2},ue=this.createLabelData({datumIndex:z,rect:ne,barAlongX:c,yLowValue:te,yHighValue:se,datum:j,series:this}),le={index:_,valueIndex:z,series:this,itemId:g,datum:j,datumIndex:z,xValue:U,yLowValue:ee,yHighValue:q,yLowKey:u,yHighKey:h,xKey:d,x:ne.x,y:ne.y,width:ne.width,height:ne.height,midPoint:re,crisp:W,labels:ue};f.nodeData.push(le),f.labelData.push(...ue)},{dataAggregationFilters:L}=this,[P,N]=a.range,O=N-P,F=L?.find(z=>z.maxRange>O);if(F!=null){const{maxRange:z,indexData:_}=F,[V,G]=rF(z,n.range,H=>{const B=H*Us,W=_[B+po],j=_[B+Jo];if(W===-1)return;const U=(W+j)/2|0;return[M(U),M(j)+x]});for(let H=V;H<G;H+=1){const B=H*Us,W=_[B+po],j=_[B+Jo],U=_[B+bs],ee=_[B+Cs];if(W===-1)continue;const q=(W+j)/2|0;if(y[q]==null)continue;const se=M(q),Z=Math.abs(M(W)-M(j))+x,ie=C[U],X=S[ee];R(q,0,se,Z,ie,X,!1)}}else if(o.type==="ungrouped"){let[z,_]=rF(v.length,n.range,V=>[M(V),x]);o.input.count<1e3&&(z=0,_=o.input.count);for(let V=z;V<_;V+=1){const G=M(V),H=x,B=C[V],W=S[V];R(V,0,G,H,B,W,w)}}else for(const{datumIndex:z,groupIndex:_}of t.forEachGroupDatum(this,o)){const V=M(z),G=x,H=C[z],B=S[z];R(z,_,V,G,H,B,w)}return f}createLabelData({datumIndex:e,rect:t,barAlongX:i,yLowValue:o,yHighValue:s,datum:n,series:r}){const{xKey:a,yLowKey:l,yHighKey:c,xName:d,yLowName:u,yHighName:h,yName:p,label:g}=this.properties,f={datum:n,xKey:a,yLowKey:l,yHighKey:c,xName:d,yLowName:u,yHighName:h,yName:p},{placement:v,padding:y}=g,S=y*(v==="outside"?1:-1),x={datumIndex:e,x:t.x+(i?-S:t.width/2),y:t.y+(i?t.height/2:t.height+S),textAlign:i?"left":"center",textBaseline:i?"middle":"bottom",text:this.getLabelText(g,{itemId:"low",value:o,...f}),itemId:"low",datum:n,series:r},D={datumIndex:e,x:t.x+(i?t.width+S:t.width/2),y:t.y+(i?t.height/2:-S),textAlign:i?"right":"center",textBaseline:i?"middle":"top",text:this.getLabelText(g,{itemId:"high",value:s,...f}),itemId:"high",datum:n,series:r};return v==="outside"&&(x.textAlign=i?"right":"center",x.textBaseline=i?"middle":"top",D.textAlign=i?"left":"center",D.textBaseline=i?"middle":"bottom"),[x,D]}nodeFactory(){return new Qme}updateDatumSelection(e){const{nodeData:t,datumSelection:i}=e,o=t??[];return i.update(o,void 0,s=>this.getDatumId(s))}getItemBaseStyle(e){const{properties:t}=this,{cornerRadius:i}=t,o=e?t.highlightStyle.item:void 0;return{fill:o?.fill??t.fill,fillOpacity:o?.fillOpacity??t.fillOpacity,stroke:o?.stroke??t.stroke,strokeWidth:o?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:o?.strokeOpacity??t.strokeOpacity,lineDash:o?.lineDash??t.lineDash??[],lineDashOffset:o?.lineDashOffset??t.lineDashOffset,cornerRadius:i}}getItemStyleOverrides(e,t,i,o){const{id:s,properties:n}=this,{xKey:r,yHighKey:a,yLowKey:l,itemStyler:c}=n;if(c!=null)return this.cachedDatumCallback(Zme(e,o?"highlight":"node"),()=>c({seriesId:s,datum:t,xKey:r,yHighKey:a,yLowKey:l,highlighted:o,...i}))}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getCategoryDirection()===Yg.X,s=this.getItemBaseStyle(i);t.each((n,r)=>{const a=this.getItemStyleOverrides(String(r.datumIndex),r.datum,s,i);eye(n,s,a),n.cornerRadius=a?.cornerRadius??s.cornerRadius,n.visible=o?r.width>0:r.height>0,n.crisp=r.crisp})}getHighlightLabelData(e,t){const i=e.filter(o=>o.datum===t.datum);return i.length>0?i:void 0}updateLabelSelection(e){const t=this.properties.label.enabled?e.labelData:[];return e.labelSelection.update(t,i=>{i.pointerEvents=Jme.None})}updateLabelNodes(e){e.labelSelection.each((t,i)=>{Vme(t,this.properties.label,i)})}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{xKey:n,xName:r,yName:a,yLowKey:l,yHighKey:c,yLowName:d,yHighName:u,tooltip:h}=s,p=this.getCategoryAxis(),g=this.getValueAxis();if(!i||!o||!p||!g)return;const{datumIndex:f}=e,v=o.dataSources.get(this.id)?.[f],y=i.resolveKeysById(this,"xValue",o)[f],C=i.resolveColumnById(this,"yHighValue",o)[f],S=i.resolveColumnById(this,"yLowValue",o)[f];if(y==null)return;const x=this.getItemBaseStyle(!1);Object.assign(x,this.getItemStyleOverrides(String(f),v,x,!1));const D=`${g.formatDatum(S)} - ${g.formatDatum(C)}`;return h.formatTooltip({heading:p.formatDatum(y),symbol:this.legendItemSymbol(),data:[{label:a,fallbackLabel:`${d??l} - ${u??c}`,value:D}]},{seriesId:t,datum:v,title:a,xKey:n,xName:r,yName:a,yLowKey:l,yHighKey:c,yLowName:d,yHighName:u,...x})}legendItemSymbol(){const{fill:e,stroke:t,strokeWidth:i,fillOpacity:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=this.properties;return{marker:{fill:e,stroke:t,fillOpacity:o,strokeOpacity:s,strokeWidth:i,lineDash:n,lineDashOffset:r}}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{yName:o,yLowName:s,yHighName:n,yLowKey:r,yHighKey:a,showInLegend:l}=this.properties,c=o??`${s??r} - ${n??a}`,d=`${r}-${a}`;return[{legendType:"category",id:t,itemId:d,seriesId:t,enabled:i,label:{text:`${c}`},symbol:this.legendItemSymbol(),hideInLegend:!l}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t}){const i=oF(sF(this.isVertical(),"normal"));lF.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],i),nF(this,"labels",this.ctx.animationManager,t)}animateWaitingUpdateReady(e){const{datumSelection:t,labelSelection:i}=e,{processedData:o}=this,s=o?.reduced?.diff?.[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);const n=oF(sF(this.isVertical(),"fade"));lF.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],n,(r,a)=>this.getDatumId(a),s),nF(this,"labels",this.ctx.animationManager,i)}getDatumId(e){return`${e.xValue}-${e.valueIndex}`}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){return Xme(this,this.contextNodeData?.nodeData[e])}};PT.className="RangeBarSeries";PT.type="range-bar";var oye={series:{direction:"vertical",strokeWidth:0,label:{enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"backgroundColor"},placement:"inside"}},axes:{[E.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{CARTESIAN_AXIS_TYPE:cF,CARTESIAN_POSITION:dF}=E.ThemeConstants,sye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-bar",moduleFactory:e=>new PT(e),tooltipDefaults:{range:"exact"},defaultAxes:E.swapAxisCondition([{type:cF.NUMBER,position:dF.LEFT},{type:cF.CATEGORY,position:dF.BOTTOM}],e=>e?.direction==="horizontal"),themeTemplate:oye,paletteFactory:({takeColors:e})=>{const{fills:[t],strokes:[i]}=e(1);return{fill:t,stroke:i}},groupable:!0};function f9(e){e.nodes.sort((t,i)=>Math.round((t.datum.y-i.datum.y)*100)/100||-(t.datum.size-i.datum.size))}function nye({nodes:e,size:t},{seriesRectHeight:i,nodeSpacing:o,sizeScale:s}){const n=i*t*s;let r=(i-(n+o*(e.length-1)))/2;e.forEach(({datum:a})=>{const l=i*a.size*s;a.y=r,a.height=l,r+=l+o})}function rye(e,t){const{nodes:i}=e,{seriesRectHeight:o,nodeSpacing:s}=t;f9(e);let n=0,r=0;for(const{datum:c}of i){const d=Math.max(r-c.y,0);c.y+=d,n+=d,r=c.y+c.height+s}if(r-s<o)return n>0;let l=o;for(let c=i.length-1;c>=0;c-=1){const{datum:d}=i[c],u=d.y+d.height,h=Math.min(l-u,0);d.y+=h,n+=h,l=d.y-s}return!0}function TM(e,t,i,o,s,n,r,a){const l=(i-e)/(o-t),c=(r-s)/(a-n),d=((n-t)*(l*c)+e*c-s*l)/(c-l);return e<i?d>e&&d<Math.min(i,r):d<e&&d>Math.max(i,r)}function uF(e,t){let i=!1;const o=e.nodes.filter(n=>t(n).length===1);let s=!0;for(let n=0;s&&n<o.length;n+=1){s=!1;for(let r=0;r<o.length-1;r+=1){const{datum:a}=o[r],l=t(o[r])[0].node.datum,{datum:c}=o[r+1],d=t(o[r+1])[0].node.datum;if(!(TM(a.x,a.y,l.x,l.y,c.x,c.y,d.x,d.y)||TM(a.x,a.y+a.height/2,l.x,l.y+l.height/2,c.x,c.y+c.height/2,d.x,d.y+d.height/2)||TM(a.x,a.y+a.height,l.x,l.y+l.height,c.x,c.y+c.height,d.x,d.y+d.height)))continue;const h=o[r];o[r]=o[r+1],o[r+1]=h;const p=a.y;a.y=c.y+c.height-a.height,c.y=p,i=!0,s=!0}}return i}function aye(e){let t=!1;return f9(e),t=uF(e,i=>i.linksBefore)||t,t=uF(e,i=>i.linksAfter)||t,t}function lye(e){if(e.length===0)return;let t=0,i=0;for(const{node:{datum:o}}of e)t+=o.y*o.size,i+=o.size;return t/i}function m9(e,t,i,o){return e.nodes.forEach(({datum:s,linksBefore:n,linksAfter:r})=>{const a=o===1?n:r,l=o===1?r:n,c=lye(a);if(c!=null){const d=l.length!==0?i:1;s.y=s.y+(c-s.y)*d}}),rye(e,t)}function hF(e,t,i){let o=!1;for(const s of e)o=m9(s,t,i,1)||o;return o}function cye(e,t,i){let o=!1;for(let s=e.length-1;s>=0;s-=1)o=m9(e[s],t,i,-1)||o;return o}function pF(e){let t=!1;for(let i=e.length-1;i>=0;i-=1)t=aye(e[i])||t;return t}function dye(e,t){e.forEach(o=>{nye(o,t)});let i=!1;for(let o=0;o<6;o+=1){const s=hF(e,t,1);i=cye(e,t,.5);const n=pF(e);if(!s&&!i&&!n)break}i&&(hF(e,t,1),pF(e))}var{BBox:uye,Path:hye,ScenePathChangeDetection:vg,splitBezier:pye}=E;function lb(e,t,i,o,s,n,r,a,l,c){let d,u;if(s!==i&&l!==r){const A=-(o-t)/(s-i),k=-(a-n)/(l-r);d=(r-i+A*t-k*n)/(A-k),u=A*(d-t)+i}else if(s===i&&l!==r)d=t,u=-(a-n)/(l-r)*(d-a)+l;else if(s!==i&&l===r)d=a,u=-(o-t)/(s-i)*(d-t)+i;else throw new Error("Offsetting flat bezier curve");const h=Math.hypot(i-u,t-d),p=(h+c)/h,g=Math.hypot(l-u,a-d),f=(g+c)/g,v=d+(o-d)*p,y=u+(s-u)*p,C=d+(n-d)*f,S=u+(r-u)*f,x=d+(a-d)*f,D=u+(l-u)*f;e.cubicCurveTo(v,y,C,S,x,D)}var oh=class extends hye{constructor(){super(...arguments),this.x1=0,this.x2=0,this.y1=0,this.y2=0,this.height=0,this.inset=0}computeBBox(){const e=Math.min(this.x1,this.x2),t=Math.max(this.x1,this.x2)-e,i=Math.min(this.y1,this.y2),o=Math.max(this.y1,this.y2)-i+this.height;return new uye(e,i,t,o)}updatePath(){const{path:e,inset:t}=this;e.clear();const i=this.x1+t,o=this.x2-t,s=this.y1+t,n=this.y2+t,r=this.height-2*t;if(r<0||i>o)return;const a=i,l=s+r/2,c=(i+o)/2,d=s+r/2,u=(i+o)/2,h=n+r/2,p=o,g=n+r/2;if(e.moveTo(a,l-r/2),Math.abs(this.y2-this.y1)<1||this.x2-this.x1<this.height*Math.SQRT2)e.cubicCurveTo(c,d-r/2,u,h-r/2,p,g-r/2),e.lineTo(p,g+r/2),e.cubicCurveTo(u,h+r/2,c,d+r/2,a,l+r/2);else{const[f,v]=pye(a,l,c,d,u,h,p,g,.5),y=(n>s?1:-1)*r/2;lb(e,f[0].x,f[0].y,f[1].x,f[1].y,f[2].x,f[2].y,f[3].x,f[3].y,y),lb(e,v[0].x,v[0].y,v[1].x,v[1].y,v[2].x,v[2].y,v[3].x,v[3].y,-y),e.lineTo(p,g+r/2),lb(e,v[3].x,v[3].y,v[2].x,v[2].y,v[1].x,v[1].y,v[0].x,v[0].y,y),lb(e,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y,-y)}e.closePath()}};b([vg()],oh.prototype,"x1");b([vg()],oh.prototype,"x2");b([vg()],oh.prototype,"y1");b([vg()],oh.prototype,"y2");b([vg()],oh.prototype,"height");b([vg()],oh.prototype,"inset");var{BaseProperties:y9,SeriesTooltip:gye,SeriesProperties:fye,ARRAY:mye,COLOR_STRING:Px,COLOR_STRING_ARRAY:v9,FUNCTION:b9,LINE_DASH:C9,OBJECT:Nx,POSITIVE_NUMBER:sh,RATIO:Ox,STRING:hd,UNION:yye,Validate:rt,Label:vye}=E,bye=yye(["left","right","center","justify"],"a justification value"),S9=class extends vye{constructor(){super(...arguments),this.spacing=1}};b([rt(sh)],S9.prototype,"spacing");var Ul=class extends y9{constructor(){super(...arguments),this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};b([rt(Px,{optional:!0})],Ul.prototype,"fill");b([rt(Ox)],Ul.prototype,"fillOpacity");b([rt(Px,{optional:!0})],Ul.prototype,"stroke");b([rt(Ox)],Ul.prototype,"strokeOpacity");b([rt(sh)],Ul.prototype,"strokeWidth");b([rt(C9)],Ul.prototype,"lineDash");b([rt(sh)],Ul.prototype,"lineDashOffset");b([rt(b9,{optional:!0})],Ul.prototype,"itemStyler");var Hn=class extends y9{constructor(){super(...arguments),this.spacing=1,this.width=1,this.alignment="justify",this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};b([rt(sh)],Hn.prototype,"spacing");b([rt(sh)],Hn.prototype,"width");b([rt(bye)],Hn.prototype,"alignment");b([rt(Px,{optional:!0})],Hn.prototype,"fill");b([rt(Ox)],Hn.prototype,"fillOpacity");b([rt(Px,{optional:!0})],Hn.prototype,"stroke");b([rt(Ox)],Hn.prototype,"strokeOpacity");b([rt(sh)],Hn.prototype,"strokeWidth");b([rt(C9)],Hn.prototype,"lineDash");b([rt(sh)],Hn.prototype,"lineDashOffset");b([rt(b9,{optional:!0})],Hn.prototype,"itemStyler");var Wo=class extends fye{constructor(){super(...arguments),this.nodes=void 0,this.idKey="",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.sizeKey=void 0,this.sizeName=void 0,this.fills=[],this.strokes=[],this.label=new S9,this.link=new Ul,this.node=new Hn,this.tooltip=new gye}};b([rt(mye,{optional:!0})],Wo.prototype,"nodes");b([rt(hd)],Wo.prototype,"fromKey");b([rt(hd)],Wo.prototype,"toKey");b([rt(hd)],Wo.prototype,"idKey");b([rt(hd,{optional:!0})],Wo.prototype,"idName");b([rt(hd,{optional:!0})],Wo.prototype,"labelKey");b([rt(hd,{optional:!0})],Wo.prototype,"labelName");b([rt(hd,{optional:!0})],Wo.prototype,"sizeKey");b([rt(hd,{optional:!0})],Wo.prototype,"sizeName");b([rt(v9)],Wo.prototype,"fills");b([rt(v9)],Wo.prototype,"strokes");b([rt(Nx)],Wo.prototype,"label");b([rt(Nx)],Wo.prototype,"link");b([rt(Nx)],Wo.prototype,"node");b([rt(Nx)],Wo.prototype,"tooltip");var{Transformable:Cye,applyShapeStyle:gF,SeriesNodePickMode:fF,CachedTextMeasurerPool:Sye,TextWrapper:mF,TextUtils:yF,createDatumId:cb,Rect:vF,BBox:xye}=E,NT=class extends _R{constructor(e){super({moduleCtx:e,pickModes:[fF.NEAREST_NODE,fF.EXACT_SHAPE_MATCH]}),this.properties=new Wo}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new oh}nodeFactory(){return new vF}createNodeData(){const{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:i}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:o,toKey:s,sizeKey:n,label:{spacing:r},node:{spacing:a,width:l,alignment:c}}=this.properties,{nodeGraph:d,links:u,maxPathLength:h}=this.getNodeGraph(k=>({...k,x:NaN,y:NaN,width:l,height:NaN}),k=>({...k,x1:NaN,x2:NaN,y1:NaN,y2:NaN,height:NaN}),{includeCircularReferences:!1}),p=d,g=this.isLabelEnabled()?(t-l)*(1-h/(h+1)):0,f=(t-l-2*g)/(h-1),v=[];for(let k=0;k<h;k+=1){const w=g+k*f;v.push({index:k,size:0,nodes:[],x:w})}p.forEach(k=>{const{datum:w,linksBefore:M,linksAfter:R,maxPathLengthBefore:L,maxPathLengthAfter:P}=k,N=Math.max(M.reduce((z,{link:_})=>z+_.size,0),R.reduce((z,{link:_})=>z+_.size,0));if(M.length===0&&R.length===0||N===0){k.columnIndex=-1;return}let O;switch(c){case"left":O=v[L];break;case"right":O=v[h-1-P];break;case"center":{if(M.length!==0)O=v[L];else if(R.length!==0){const z=R.reduce((_,V)=>Math.min(_,V.node.maxPathLengthBefore),h)-1;O=v[z]}else O=v[0];break}case"justify":{O=R.length===0?v[h-1]:v[L];break}}w.x=O.x,w.size=N;const F=this.getLabelText(this.properties.label,{datum:w.datum,value:w.label,fromKey:o,toKey:s,sizeKey:n,size:N});w.label=String(F),O.nodes.push(k),O.size+=N,k.columnIndex=O.index}),p.forEach(k=>{let w=1/0,M=0;k.linksAfter.forEach(R=>{const L=R.node,{columnIndex:P}=L;P<w?(w=P,M=L.datum.size):P===w&&(M=Math.max(M,L.datum.size))}),k.closestColumnIndex=w,k.maxSizeOfClosestNodesAfter=M});const y=v.reduce((k,{size:w,nodes:M})=>{const R=(1-(M.length-1)*(a/i))/w;return Math.min(k,R)},1/0);for(let k=v.length-1;k>=0;k-=1)v[k].nodes.sort((M,R)=>M.closestColumnIndex-R.closestColumnIndex||M.maxSizeOfClosestNodesAfter-R.maxSizeOfClosestNodesAfter||M.datum.size-R.datum.size);dye(v,{seriesRectHeight:i,nodeSpacing:a,sizeScale:y});let C=!1;if(p.forEach(({datum:k,linksBefore:w,linksAfter:M})=>{C||(C=k.height<0);const R=k.y+k.height,L=O=>O.sort((F,z)=>{const _=F.node.datum,V=z.node.datum,G=_.y+_.height,H=V.y+V.height,B=Math.atan2(_.y-k.y,Math.abs(_.x-k.x))-Math.atan2(V.y-k.y,Math.abs(V.x-k.x)),W=Math.atan2(G-R,Math.abs(_.x-k.x))-Math.atan2(H-R,Math.abs(V.x-k.x));return B+W});let P=k.y;L(w).forEach(({link:O})=>{O.y2=P,P+=O.size*i*y});let N=k.y;L(M).forEach(({link:O})=>{O.y1=N,N+=O.size*i*y})}),C){at.warnOnce("There was insufficient space to display the Sankey Series. Reduce the node spacing, or provide a larger container.");return}const S=[],x=[],{fontSize:D}=this.properties.label,A=this.properties.label.getFont();return v.forEach((k,w)=>{const M=w===0,R=w===v.length-1;let L=-1/0;k.nodes.sort((P,N)=>P.datum.y-N.datum.y),k.nodes.forEach(({datum:P})=>{if(P.midPoint={x:P.x+P.width/2,y:P.y+P.height/2},S.push(P),P.label==null)return;const N=M?P.x-r:P.x+P.width+r,O=P.y+P.height/2;let F;if(!M&&!R){const G=O-yF.getLineHeight(D),H=O+yF.getLineHeight(D);let B=t;p.forEach(({datum:j})=>{j.x>P.x&&Math.max(j.y,G)<=Math.min(j.y+j.height,H)&&(B=Math.min(B,j.x-r))});const W=B-P.x-2*r;F=mF.wrapText(P.label,{maxWidth:W,maxHeight:P.height,font:this.properties.label,textWrap:"never",overflow:"hide"})}if(F==null||F===""){const G=M||R?r:r*2;F=mF.wrapText(P.label,{maxWidth:f-G,maxHeight:P.height,font:this.properties.label,textWrap:"never"})}if(F==="")return;const{height:z}=Sye.measureText(F,{font:A,textAlign:"left",textBaseline:"middle"}),_=O-z/2,V=O+z/2;_>=L&&(x.push({x:N,y:O,leading:M,text:F}),L=V)})}),u.forEach(k=>{const{fromNode:w,toNode:M,size:R}=k;k.height=i*R*y,k.x1=w.x+l,k.x2=M.x,k.midPoint={x:(k.x1+k.x2)/2,y:(k.y1+k.y2)/2+k.height/2},S.push(k)}),{itemId:e,nodeData:S,labelData:x}}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){const{labelSelection:t}=e,{color:i,fontStyle:o,fontWeight:s,fontSize:n,fontFamily:r}=this.properties.label;t.each((a,{x:l,y:c,leading:d,text:u})=>{a.visible=!0,a.x=l,a.y=c,a.text=u,a.fill=i,a.fontStyle=o,a.fontWeight=s,a.fontSize=n,a.fontFamily=r,a.textAlign=d?"right":"left",a.textBaseline="middle"})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>cb([t.type,t.id]))}getBaseNodeStyle(e){const{properties:t}=this,{fill:i,fillOpacity:o,stroke:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=t.node,l=e?t.highlightStyle.item:void 0;return{fill:l?.fill??i,fillOpacity:l?.fillOpacity??o,stroke:l?.stroke??s,strokeOpacity:l?.strokeOpacity??n,strokeWidth:l?.strokeWidth??this.getStrokeWidth(t.node.strokeWidth),lineDash:l?.lineDash??r,lineDashOffset:l?.lineDashOffset??a}}getNodeStyleOverrides(e,t,i,o,s,n,r){const{id:a,properties:l}=this,{fills:c,strokes:d}=l,{itemStyler:u}=l.node,h=n.fill??c[i%c.length],p=n.stroke??d[i%d.length],g={};if(r||(g.fill=h,g.stroke=p),u!=null){const f=this.cachedDatumCallback(cb(e,r?"highlight":"node"),()=>{const{fillOpacity:v=1,strokeOpacity:y=1,strokeWidth:C=0,lineDash:S=[],lineDashOffset:x=0}=n;return u({seriesId:a,datum:t,highlighted:r,label:s,size:o,fill:h,fillOpacity:v,stroke:p,strokeOpacity:y,strokeWidth:C,lineDash:S,lineDashOffset:x})});Object.assign(g,f)}return g}updateNodeNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getBaseNodeStyle(i);t.each((s,n)=>{const{datumIndex:r,size:a,label:l}=n,c=this.getNodeStyleOverrides(String(r),n,r.index,a,l,o,i);s.x=n.x,s.y=n.y,s.width=Math.max(n.width,0),s.height=Math.max(n.height,0),gF(s,o,c)})}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>cb([t.type,t.index,t.fromNode.id,t.toNode.id]))}getBaseLinkStyle(e){const{properties:t}=this,{fill:i,fillOpacity:o,stroke:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=t.link,l=e?t.highlightStyle.item:void 0;return{fill:l?.fill??i,fillOpacity:l?.fillOpacity??o,stroke:l?.stroke??s,strokeOpacity:l?.strokeOpacity??n,strokeWidth:l?.strokeWidth??this.getStrokeWidth(t.link.strokeWidth),lineDash:l?.lineDash??r,lineDashOffset:l?.lineDashOffset??a}}getLinkStyleOverrides(e,t,i,o,s){const{id:n,properties:r}=this,{fills:a,strokes:l}=r,{itemStyler:c}=r.link,d=o.fill??a[i%a.length],u=o.stroke??l[i%l.length],h={};if(s||(h.fill=d,h.stroke=u),c!=null){const p=this.cachedDatumCallback(cb(e,s?"highlight":"node"),()=>{const{fillOpacity:g=1,strokeOpacity:f=1,strokeWidth:v=0,lineDash:y=[],lineDashOffset:C=0}=o;return c({seriesId:n,datum:t,highlighted:s,fill:d,fillOpacity:g,stroke:u,strokeOpacity:f,strokeWidth:v,lineDash:y,lineDashOffset:C})});Object.assign(h,p)}return h}updateLinkNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getBaseLinkStyle(i);t.each((s,n)=>{const{datumIndex:r}=n,a=n.fromNode.datumIndex,l=this.getLinkStyleOverrides(String(r),n,a.index,o,i);s.x1=n.x1,s.y1=n.y1,s.x2=n.x2,s.y2=n.y2,s.height=n.height,gF(s,o,l),s.inset=s.strokeWidth/2})}getTooltipContent(e){const{id:t,linksProcessedData:i,nodesProcessedData:o,properties:s}=this,{fromKey:n,toKey:r,sizeKey:a,sizeName:l,tooltip:c}=s,{datumIndex:d}=e,u=e.type===0?e.fromNode.index:e.index,h=e.type===0?`${e.fromNode.label} - ${e.toNode.label}`:e.label,p=d.type===0?i?.dataSources.get(this.id)?.[d.index]:o?.dataSources.get(this.id)?.[d.index],g=e.size;let f;if(e.type===0){const v=e.fromNode.datumIndex,y=this.getBaseLinkStyle(!1);Object.assign(y,this.getLinkStyleOverrides(String(d),p,v.index,y,!1)),f=y}else{const v=e.label,y=this.getBaseNodeStyle(!1);Object.assign(y,this.getNodeStyleOverrides(String(d),p,d.index,g,v,y,!1)),f=y}return c.formatTooltip({title:h,symbol:this.legendItemSymbol(e.type,u,f),data:a!=null?[{label:l,fallbackLabel:a,value:String(g)}]:[]},{seriesId:t,datum:p,title:h,fromKey:n,toKey:r,sizeKey:a,sizeName:l,size:g,...f})}computeFocusBounds(e){if(e instanceof vF){const{x:t,y:i,width:o,height:s}=e,n=new xye(t,i,o,s);return Cye.toCanvas(this.contentGroup,n)}return e}};NT.className="SankeySeries";NT.type="sankey";var wye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["flow-proportion"],solo:!0,identifier:"sankey",moduleFactory:e=>new NT(e),tooltipDefaults:{range:"exact"},themeTemplate:{seriesArea:{padding:{top:10,bottom:10}},series:{highlightStyle:{series:{dimOpacity:.2}},label:{fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:10},node:{spacing:20,width:10,strokeWidth:0},link:{fillOpacity:.5,strokeWidth:0}},legend:{enabled:!1,toggleSeries:!1}},paletteFactory({takeColors:e,colorsCount:t}){return e(t)}},{HierarchySeriesProperties:Mye,HighlightStyle:Dye,SeriesTooltip:kye,Validate:wi,COLOR_STRING:Iye,FUNCTION:Aye,NUMBER:x9,OBJECT:bg,POSITIVE_NUMBER:OT,RATIO:Fx,STRING:Bx}=E,pd=class extends Dye{constructor(){super(...arguments),this.label=new da,this.secondaryLabel=new da}};b([wi(Bx,{optional:!0})],pd.prototype,"fill");b([wi(Fx,{optional:!0})],pd.prototype,"fillOpacity");b([wi(Iye,{optional:!0})],pd.prototype,"stroke");b([wi(OT,{optional:!0})],pd.prototype,"strokeWidth");b([wi(Fx,{optional:!0})],pd.prototype,"strokeOpacity");b([wi(bg)],pd.prototype,"label");b([wi(bg)],pd.prototype,"secondaryLabel");var cs=class extends Mye{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=0,this.strokeOpacity=1,this.cornerRadius=0,this.highlightStyle=new pd,this.label=new da,this.secondaryLabel=new Wy,this.tooltip=new kye}};b([wi(Bx,{optional:!0})],cs.prototype,"sizeName");b([wi(Bx,{optional:!0})],cs.prototype,"labelKey");b([wi(Bx,{optional:!0})],cs.prototype,"secondaryLabelKey");b([wi(Fx)],cs.prototype,"fillOpacity");b([wi(OT)],cs.prototype,"strokeWidth");b([wi(Fx)],cs.prototype,"strokeOpacity");b([wi(OT)],cs.prototype,"cornerRadius");b([wi(x9,{optional:!0})],cs.prototype,"sectorSpacing");b([wi(x9,{optional:!0})],cs.prototype,"padding");b([wi(Aye,{optional:!0})],cs.prototype,"itemStyler");b([wi(bg)],cs.prototype,"highlightStyle");b([wi(bg)],cs.prototype,"label");b([wi(bg)],cs.prototype,"secondaryLabel");b([wi(bg)],cs.prototype,"tooltip");var{fromToMotion:Rye,normalizeAngle360:Tye,createDatumId:Lye,Sector:LM,Group:db,ScalableGroup:Eye,Selection:EM,TransformableText:PM,applyShapeStyle:Pye}=E,Nye=class extends E.HierarchyNode{constructor(){super(...arguments),this.label=void 0,this.secondaryLabel=void 0,this.contentHeight=0,this.bbox=void 0,this.startAngle=0,this.endAngle=0}};function w9(e,t=0,i=2*Math.PI/e.sumSize){for(const o of e.children){const s=t+o.sumSize*i;o.startAngle=t,o.endAngle=s,w9(o,t,i),t=s}}var FT=class extends E.HierarchySeries{constructor(){super(...arguments),this.NodeClass=Nye,this.properties=new cs,this.scalingGroup=this.contentGroup.appendChild(new Eye),this.sectorGroup=this.scalingGroup.appendChild(new db),this.sectorLabelGroup=this.scalingGroup.appendChild(new db),this.highlightSectorGroup=this.scalingGroup.appendChild(new db),this.datumSelection=EM.select(this.sectorGroup,LM),this.labelSelection=EM.select(this.sectorLabelGroup,db),this.highlightSelection=EM.select(this.highlightSectorGroup,LM)}processData(){super.processData(),w9(this.rootNode)}updateSelections(){const e=this.ctx.highlightManager?.getActiveHighlight();if(this.highlightSelection.update(e!=null?[e]:[],void 0,n=>this.getDatumId(n)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{chart:t}=this;if(t==null||t.seriesRect==null)return;const o=Array.from(this.rootNode),s=n=>{n.append([new PM({tag:0}),new PM({tag:1})])};this.datumSelection.update(o,void 0,n=>this.getDatumId(n)),this.labelSelection.update(o,s,n=>this.getDatumId(n))}getItemBaseStyle(e){const{properties:t}=this,i=e?t.highlightStyle:void 0;return{fill:i?.fill,fillOpacity:i?.fillOpacity??t.fillOpacity,stroke:i?.stroke,strokeWidth:i?.strokeWidth??this.getStrokeWidth(t.strokeWidth),strokeOpacity:i?.strokeOpacity??t.strokeOpacity}}getItemStyleOverrides(e,t,i,o,s,n){const{id:r,properties:a,colorScale:l}=this,{fills:c,strokes:d,itemStyler:u}=a,h=e[0],p=s.fill??c[h%c.length],g=s.stroke??d[h%d.length],f={};if(n||(f.fill=o!=null?l.convert(o):p,f.stroke=g),u!=null){const v=this.cachedDatumCallback(Lye(e.join(":"),n?"highlight":"node"),()=>u({seriesId:r,datum:t,depth:i,highlighted:n,fill:p,stroke:g,...s}));Object.assign(f,v)}return f}updateNodes(){const{chart:e,data:t,maxDepth:i}=this;if(e==null||t==null)return;const{width:o,height:s}=e.seriesRect,{sectorSpacing:n=0,padding:r=0,cornerRadius:a,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g}=this.properties;this.contentGroup.translationX=o/2,this.contentGroup.translationY=s/2;const f=n*.5,y=Math.min(o,s)/2/(i+1),C=-Math.PI/2;this.rootNode?.walk(w=>{const{startAngle:M,endAngle:R}=w;if(w.depth!=null){const L=(M+R)/2+C,P=(w.depth+.5)*y;w.midPoint.x=Math.cos(L)*P,w.midPoint.y=Math.sin(L)*P}}),this.rootNode?.walk(w=>{const{datum:M,depth:R,startAngle:L,endAngle:P,parent:N,sumSize:O}=w;w.label=void 0,w.secondaryLabel=void 0,w.contentHeight=0;let F;if(M!=null&&R!=null&&u!=null){const Y=M[u];F=this.getLabelText(this.properties.label,{depth:R,datum:M,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:Y})}F===""&&(F=void 0);let z;if(M!=null&&R!=null&&h!=null){const Y=M[h];z=this.getLabelText(this.properties.secondaryLabel,{depth:R,datum:M,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:Y})}if(z===""&&(z=void 0),R==null)return;const _=R*y+f,V=(R+1)*y-f,G=_>f?f/_:f,H=V>f?f/V:f,B=L+G,j=P+G-B,U=L+H,q=P+H-U,te=Y=>{if(R===0&&N?.sumSize===O)return{width:2*Math.sqrt(V**2-(Y*.5)**2),height:Y,meta:0};const Q=Y,ae=2*Math.sqrt(V**2-(_+Q)**2),ye=j<Math.PI?2*_*Math.tan(j*.5):1/0,we=Math.min(ae,ye),De=Math.PI/4;let K,ce;return R===0?(K=Y,ce=Math.sqrt(V**2-(K/2)**2)-Y/(2*Math.tan(q*.5))):Tye(j)<De?(K=2*_*Math.tan(j*.5),ce=Math.sqrt(V**2-(K/2)**2)-_):(ce=0,K=0),we>=ce?{width:we,height:Q,meta:1}:{width:ce,height:K,meta:2}},se=YR(F,this.properties.label,z,this.properties.secondaryLabel,{padding:r},te);if(se==null)return;const{width:Z,height:ie,meta:X,label:ne,secondaryLabel:re}=se,ue=C+(L+P)/2,le=Math.sin(ue)>=0,me=Math.cos(ue)>=0,Me=(le?3:12)&(me?6:9);let pe;switch(X){case 0:pe=0;break;case 1:{const $=V-(y-ie)*.58,Q=Math.sqrt((V-r)**2-(Z/2)**2);pe=Math.min($,Q);break}case 2:if(R===0){const Y=ie/(2*Math.tan(j*.5))+Z*.5,$=Math.sqrt(V**2-(ie*.5)**2)-Z*.5;pe=(Y+$)*.5}else pe=(_+V)*.5;break}if(ne!=null){const{fontStyle:Y="normal",fontFamily:$,fontWeight:Q="normal",color:ae="black"}=this.properties.label;w.label={...ne,fontStyle:Y,fontFamily:$,fontWeight:Q,color:ae,labelPlacement:X,circleQuarter:Me,radius:pe,theta:ue}}if(re!=null){const{fontStyle:Y="normal",fontFamily:$,fontWeight:Q="normal",color:ae="black"}=this.properties.secondaryLabel;w.secondaryLabel={...re,fontStyle:Y,fontFamily:$,fontWeight:Q,color:ae,labelPlacement:X,circleQuarter:Me,radius:pe,theta:ue}}w.contentHeight=se.height});const S=(w,M,R,L)=>{const{datum:P,datumIndex:N,depth:O,colorValue:F,startAngle:z,endAngle:_}=w;if(O==null){M.visible=!1;return}M.visible=!0;const V=this.getItemStyleOverrides(N,P,O,F,R,L),G=V.strokeWidth??R.strokeWidth;Pye(M,R,V),M.centerX=0,M.centerY=0,M.innerRadius=O*y,M.outerRadius=(O+1)*y,M.startAngle=z+C,M.endAngle=_+C,M.inset=f+G*.5,M.cornerRadius=a},x=this.getItemBaseStyle(!1);this.datumSelection.each((w,M)=>{S(M,w,x,!1)});const D=this.getItemBaseStyle(!0);this.highlightSelection.each((w,M)=>{S(M,w,D,!0)});const A=(w,M,R,L)=>{const{depth:P,contentHeight:N}=w,O=R===0,F=O?w.label:w.secondaryLabel;if(P==null||F==null){M.visible=!1;return}const{labelPlacement:z,circleQuarter:_,radius:V,theta:G}=F;let H;switch(L&&(H=(O?this.properties.highlightStyle.label:this.properties.highlightStyle.secondaryLabel).color),M.text=F.text,M.fontSize=F.fontSize,M.lineHeight=F.lineHeight,M.fontStyle=F.fontStyle,M.fontFamily=F.fontFamily,M.fontWeight=F.fontWeight,M.fill=H??F.color,z){case 0:M.textAlign="center",M.textBaseline="top",M.translationX=0,M.translationY=(O?0:N-F.height)-N*.5,M.rotation=0;break;case 1:{const B=(_&3)!==0,W=O===!B?V:V-(N-F.height);M.textAlign="center",M.textBaseline=B?"bottom":"top",M.translationX=Math.cos(G)*W,M.translationY=Math.sin(G)*W,M.rotation=B?G-Math.PI*.5:G+Math.PI*.5;break}case 2:{const B=(_&6)!==0,W=O===!B?(N-F.height)*.5:(F.height-N)*.5;M.textAlign="center",M.textBaseline="middle",M.translationX=Math.cos(G)*V+Math.cos(G+Math.PI/2)*W,M.translationY=Math.sin(G)*V+Math.sin(G+Math.PI/2)*W,M.rotation=B?G:G+Math.PI;break}}M.visible=!0},k=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(PM).forEach(w=>{A(w.datum,w,w.tag,w.datum===k)})}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,{datum:u,datumIndex:h,depth:p}=e;if(u==null||p==null)return;const g=[],f=r!=null?u[r]:void 0;f!=null&&g.push({label:a,fallbackLabel:r,value:f});const v=l!=null?u[l]:void 0;v!=null&&g.push({label:c,fallbackLabel:l,value:v});const y=this.getItemBaseStyle(!1);Object.assign(y,this.getItemStyleOverrides(h,u,p,v,y,!1));const C=y.fill;return d.formatTooltip({title:o!=null?u[o]:void 0,symbol:{marker:{shape:"square",fill:C,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0}},data:g},{seriesId:t,datum:u,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...y})}createNodeData(){}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.datumSelection.selectByClass(LM))}animateEmptyUpdateReady(){Rye(this.id,"nodes",this.ctx.animationManager,[this.scalingGroup],{toFn(){return{scalingX:1,scalingY:1}},fromFn(){return{scalingX:0,scalingY:0}}})}computeFocusBounds(e){return e}};FT.className="SunburstSeries";FT.type="sunburst";var{FONT_SIZE_RATIO:bF,ThemeSymbols:{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Oye}}=E,Fye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"sunburst",moduleFactory:e=>new FT(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{label:{fontFamily:{$ref:"fontFamily"},fontSize:{$rem:[bF.LARGE]},minimumFontSize:{$round:[{$mul:[{$ref:"fontSize"},9/12]}]},fontWeight:{$ref:"fontWeight"},color:{$ref:"backgroundColor"},overflowStrategy:"ellipsis",wrapping:"never",spacing:2},secondaryLabel:{fontFamily:{$ref:"fontFamily"},fontSize:{$rem:[bF.SMALLEST]},minimumFontSize:{$round:[{$mul:[{$ref:"fontSize"},7/12]}]},fontWeight:{$ref:"fontWeight"},color:{$ref:"backgroundColor"},overflowStrategy:"ellipsis",wrapping:"never"},sectorSpacing:2,padding:3,highlightStyle:{label:{color:{$ref:"backgroundColor"}},secondaryLabel:{color:{$ref:"backgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:i})=>{const{fills:o,strokes:s}=e(t),n=i.get(Oye);return{fills:o,strokes:s,colorRange:n}}},{BaseProperties:Gx,HierarchySeriesProperties:Bye,HighlightStyle:Gye,SeriesTooltip:zye,Validate:Oe,BOOLEAN:_ye,COLOR_STRING:zx,FUNCTION:Vye,NUMBER:Hye,OBJECT:Wn,POSITIVE_NUMBER:La,RATIO:gd,STRING:nh,STRING_ARRAY:M9,TEXT_ALIGN:D9,VERTICAL_ALIGN:Wye,Label:jye}=E,k9=class extends jye{constructor(){super(...arguments),this.spacing=0}};b([Oe(Hye)],k9.prototype,"spacing");var jn=class extends Gx{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.gap=0,this.padding=0,this.interactive=!0,this.label=new k9}};b([Oe(nh,{optional:!0})],jn.prototype,"fill");b([Oe(gd)],jn.prototype,"fillOpacity");b([Oe(zx,{optional:!0})],jn.prototype,"stroke");b([Oe(La)],jn.prototype,"strokeWidth");b([Oe(gd)],jn.prototype,"strokeOpacity");b([Oe(La)],jn.prototype,"cornerRadius");b([Oe(D9)],jn.prototype,"textAlign");b([Oe(La)],jn.prototype,"gap");b([Oe(La)],jn.prototype,"padding");b([Oe(_ye)],jn.prototype,"interactive");b([Oe(Wn)],jn.prototype,"label");var ln=class extends Gx{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.verticalAlign="middle",this.gap=0,this.padding=0,this.label=new da,this.secondaryLabel=new Wy}};b([Oe(nh,{optional:!0})],ln.prototype,"fill");b([Oe(gd)],ln.prototype,"fillOpacity");b([Oe(zx,{optional:!0})],ln.prototype,"stroke");b([Oe(La,{optional:!0})],ln.prototype,"strokeWidth");b([Oe(gd)],ln.prototype,"strokeOpacity");b([Oe(La)],ln.prototype,"cornerRadius");b([Oe(D9)],ln.prototype,"textAlign");b([Oe(Wye)],ln.prototype,"verticalAlign");b([Oe(La)],ln.prototype,"gap");b([Oe(La)],ln.prototype,"padding");b([Oe(Wn)],ln.prototype,"label");b([Oe(Wn)],ln.prototype,"secondaryLabel");var rh=class extends Gx{constructor(){super(...arguments),this.label=new da}};b([Oe(nh,{optional:!0})],rh.prototype,"fill");b([Oe(gd,{optional:!0})],rh.prototype,"fillOpacity");b([Oe(zx,{optional:!0})],rh.prototype,"stroke");b([Oe(La,{optional:!0})],rh.prototype,"strokeWidth");b([Oe(gd,{optional:!0})],rh.prototype,"strokeOpacity");b([Oe(Wn)],rh.prototype,"label");var fd=class extends Gx{constructor(){super(...arguments),this.label=new da,this.secondaryLabel=new Wy}};b([Oe(nh,{optional:!0})],fd.prototype,"fill");b([Oe(gd,{optional:!0})],fd.prototype,"fillOpacity");b([Oe(zx,{optional:!0})],fd.prototype,"stroke");b([Oe(La,{optional:!0})],fd.prototype,"strokeWidth");b([Oe(gd,{optional:!0})],fd.prototype,"strokeOpacity");b([Oe(Wn)],fd.prototype,"label");b([Oe(Wn)],fd.prototype,"secondaryLabel");var BT=class extends Gye{constructor(){super(...arguments),this.group=new rh,this.tile=new fd}};b([Oe(Wn)],BT.prototype,"group");b([Oe(Wn)],BT.prototype,"tile");var Fr=class extends Bye{constructor(){super(...arguments),this.highlightStyle=new BT,this.tooltip=new zye,this.group=new jn,this.tile=new ln,this.undocumentedGroupFills=[],this.undocumentedGroupStrokes=[]}};b([Oe(nh,{optional:!0})],Fr.prototype,"sizeName");b([Oe(nh,{optional:!0})],Fr.prototype,"labelKey");b([Oe(nh,{optional:!0})],Fr.prototype,"secondaryLabelKey");b([Oe(Vye,{optional:!0})],Fr.prototype,"itemStyler");b([Oe(Wn)],Fr.prototype,"highlightStyle");b([Oe(Wn)],Fr.prototype,"tooltip");b([Oe(Wn)],Fr.prototype,"group");b([Oe(Wn)],Fr.prototype,"tile");b([Oe(M9)],Fr.prototype,"undocumentedGroupFills");b([Oe(M9)],Fr.prototype,"undocumentedGroupStrokes");var{TextUtils:$ye,TextWrapper:Uye,isNumberEqual:Kye,createDatumId:CF,Rect:SF,Group:xF,BBox:ub,Selection:NM,Text:Yb,Transformable:Yye,applyShapeStyle:Xye}=E,Zye=class extends E.HierarchyNode{constructor(){super(...arguments),this.labelValue=void 0,this.secondaryLabelValue=void 0,this.label=void 0,this.secondaryLabel=void 0,this.bbox=void 0,this.padding=void 0}},wF=new Yb;function qye(e,t){const{fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n}=t;wF.setProperties({text:e,fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n,textAlign:"left",textBaseline:"top"});const{width:r,height:a}=wF.getBBox();return{width:r,height:a}}function oc(e){return e.children.length>0?e.sumSize-e.sizeValue:e.sizeValue}var MF={left:0,center:.5,right:1},Qye={top:0,middle:.5,bottom:1};(class extends E.Group{distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}});var GT=class extends E.HierarchySeries{constructor(){super(...arguments),this.NodeClass=Zye,this.properties=new Fr,this.rectGroup=this.contentGroup.appendChild(new xF),this.datumSelection=NM.select(this.rectGroup,SF),this.labelSelection=NM.select(this.labelGroup,xF),this.highlightSelection=NM.select(this.rectGroup,SF)}groupTitleHeight(e,t){const{labelValue:i}=e,{label:o}=this.properties.group,s=3;if(i!=null){if(o.fontSize>t.width/s||o.fontSize>t.height/s)return;{const{height:n}=qye(i,o);return Math.max(n,o.fontSize)}}}getNodePadding(e,t){if(e.parent==null)return{top:0,right:0,bottom:0,left:0};if(e.children.length===0){const{padding:r}=this.properties.tile;return{top:r,right:r,bottom:r,left:r}}const{label:{spacing:i},padding:o}=this.properties.group,s=this.groupTitleHeight(e,t),n=s!=null?s+i:0;return{top:o+n,right:o,bottom:o,left:o}}sortChildren({children:e}){const t=Array.from(e,(o,s)=>s).filter(o=>oc(e[o])>0).sort((o,s)=>oc(e[s])-oc(e[o]));return{sortedChildrenIndices:t,childAt:o=>{const s=t[o];return e[s]}}}squarify(e,t){const{datum:i,children:o}=e;if(t.width<=0||t.height<=0){e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN;return}const s=i!=null?this.getNodePadding(e,t):{top:0,right:0,bottom:0,left:0};e.parent==null?(e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN):(e.bbox=t,e.padding=s,e.midPoint.x=t.x+t.width/2,e.midPoint.y=t.y);const{sortedChildrenIndices:n,childAt:r}=this.sortChildren(e),a=n.every(D=>o[D].children.length===0),l=1,c=t.width-s.left-s.right,d=t.height-s.top-s.bottom;if(c<=0||d<=0)return;const u=n.length;let h=0,p=0,g=1/0,f=n.reduce((D,A)=>D+oc(o[A]),0);const v=new ub(t.x+s.left,t.y+s.top,c,d),y=v.clone();let C=0;for(;C<u;){const D=oc(r(C)),A=oc(r(p)),k=y.width<y.height;h+=D;const w=k?y.height:y.width,M=k?y.width:y.height,R=M*A/h;let L=w*h/f;const P=Math.max(R,L)/Math.min(R,L),N=Math.abs(l-P);if(N<g){g=N,C++;continue}h-=D,L=w*h/f;let O=k?y.x:y.y;for(let F=p;F<C;F++){const z=r(F),_=oc(z),V=k?O:y.x,G=k?y.y:O,H=M*_/h,B=k?H:L,W=k?L:H,j=new ub(V,G,B,W);this.applyGap(v,j,a),this.squarify(z,j),f-=_,O+=H}k?(y.y+=L,y.height-=L):(y.x+=L,y.width-=L),p=C,h=0,g=1/0}const S=y.width<y.height;let x=S?y.x:y.y;for(let D=p;D<u;D++){const A=r(D),k=S?x:y.x,w=S?y.y:x,M=oc(A)/f,R=y.width*(S?M:1),L=y.height*(S?1:M),P=new ub(k,w,R,L);this.applyGap(v,P,a),this.squarify(A,P),x+=S?R:L}}applyGap(e,t,i){const o=i?this.properties.tile.gap*.5:this.properties.group.gap*.5,s=l=>({left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height}),n=s(e),r=s(t);["top","right","bottom","left"].forEach(l=>{Kye(n[l],r[l])||t.shrink(o,l)})}createNodeData(){}getGroupBaseStyle(e){const{properties:t}=this,{group:i}=t,o=e?t.highlightStyle.group:void 0;return{fill:o?.fill??i.fill,fillOpacity:o?.fillOpacity??i.fillOpacity,stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??i.strokeWidth,strokeOpacity:o?.strokeOpacity??i.strokeOpacity}}getGroupStyleOverrides(e,t,i,o,s){const{id:n,properties:r}=this,{undocumentedGroupFills:a,undocumentedGroupStrokes:l,itemStyler:c}=r,d=o.fill??a[Math.min(i??0,a.length)],u=o.stroke??l[Math.min(i??0,l.length)],h={};if(s||(h.fill=d,h.stroke=u),c!=null){const p=this.cachedDatumCallback(CF(e.join(":"),s?"highlight":"node"),()=>c({seriesId:n,datum:t,depth:i,highlighted:s,fill:d,stroke:u,...o}));Object.assign(h,p)}return h}getTileBaseStyle(e){const{properties:t}=this,{tile:i}=t,o=e?t.highlightStyle.tile:void 0;return{fill:o?.fill??i.fill,fillOpacity:o?.fillOpacity??i.fillOpacity,stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??i.strokeWidth,strokeOpacity:o?.strokeOpacity??i.strokeOpacity}}getTileStyleOverrides(e,t,i,o,s,n){const{id:r,properties:a,colorScale:l}=this,{fills:c,strokes:d,itemStyler:u}=a,h=e[0],p=s.fill??c[h%c.length],g=s.stroke??d[h%d.length],f={};if(n||(f.fill=o!=null?l.convert(o):p,f.stroke=g),u!=null){const v=this.cachedDatumCallback(CF(e.join(":"),n?"highlight":"node"),()=>u({seriesId:r,datum:t,depth:i,highlighted:n,fill:p,stroke:g,...s}));Object.assign(f,v)}return f}updateSelections(){let e=this.ctx.highlightManager?.getActiveHighlight();if(e!=null&&!this.properties.group.interactive&&e.children.length!==0&&(e=void 0),this.highlightSelection.update(e!=null?[e]:[],void 0,s=>this.getDatumId(s)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{seriesRect:t}=this.chart??{};if(!t)return;const i=Array.from(this.rootNode),o=s=>{s.append([new Yb({tag:0}),new Yb({tag:1})])};this.datumSelection.update(i,void 0,s=>this.getDatumId(s)),this.labelSelection.update(i,o,s=>this.getDatumId(s))}updateNodes(){const{rootNode:e,data:t}=this,{childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,highlightStyle:c,tile:d,group:u}=this.properties,{seriesRect:h}=this.chart??{};if(!h||!t)return;this.rootNode?.walk(A=>{const{datum:k,depth:w,children:M}=A,R=M.length===0,L=R?d.label:u.label;let P;if(k!=null&&w!=null&&n!=null){const O=k[n];P=this.getLabelText(L,{depth:w,datum:k,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:O})}P===""&&(P=void 0);let N;if(R&&k!=null&&w!=null&&r!=null){const O=k[r];N=this.getLabelText(d.secondaryLabel,{depth:w,datum:k,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:O})}N===""&&(N=void 0),A.labelValue=P,A.secondaryLabelValue=N});const{width:p,height:g}=h;this.squarify(e,new ub(0,0,p,g)),this.rootNode?.walk(A=>{const{bbox:k,children:w,labelValue:M,secondaryLabelValue:R}=A;if(A.label=void 0,A.secondaryLabel=void 0,k!=null)if(w.length===0){const L={width:k.width,height:k.height,meta:null},P=YR(M,this.properties.tile.label,R,this.properties.tile.secondaryLabel,{padding:d.padding},()=>L);if(P==null)return;const{height:N,label:O,secondaryLabel:F}=P,{textAlign:z,verticalAlign:_,padding:V}=d,G=MF[z]??.5,H=k.x+V+(k.width-2*V)*G,B=Qye[_]??.5,W=k.y+V+N*.5+(k.height-2*V-N)*B;if(O!=null){const{fontStyle:j="normal",fontFamily:U,fontWeight:ee="normal",color:q="black"}=this.properties.tile.label;A.label={text:O.text,fontSize:O.fontSize,lineHeight:O.lineHeight,fontStyle:j,fontFamily:U,fontWeight:ee,color:q,textAlign:z,verticalAlign:"middle",x:H,y:W-(N-O.height)*.5}}if(F!=null){const{fontStyle:j="normal",fontFamily:U,fontWeight:ee="normal",color:q="black"}=this.properties.tile.secondaryLabel;A.secondaryLabel={text:F.text,fontSize:F.fontSize,lineHeight:F.fontSize,fontStyle:j,fontFamily:U,fontWeight:ee,color:q,textAlign:z,verticalAlign:"middle",x:H,y:W+(N-F.height)*.5}}}else{if(M==null)return;{const{padding:L,textAlign:P}=u,N=this.groupTitleHeight(A,k);if(N==null)return;const O=k.width-2*L,F=Uye.wrapText(M,{maxWidth:k.width-2*L,font:u.label,textWrap:"never"}),z=MF[P]??.5,{fontStyle:_="normal",fontFamily:V,fontWeight:G="normal",color:H="black"}=this.properties.group.label;A.label={text:F,fontSize:u.label.fontSize,lineHeight:$ye.getLineHeight(u.label.fontSize),fontStyle:_,fontFamily:V,fontWeight:G,color:H,textAlign:P,verticalAlign:"middle",x:k.x+L+O*z,y:k.y+L+N*.5}}}});const f=(A,k,w,M,R)=>{const{bbox:L}=A;if(L==null){k.visible=!1;return}const{datum:P,depth:N=-1,datumIndex:O,colorValue:F}=A,z=A.children.length===0,_=z?M:w,V=z?this.getTileStyleOverrides(O,P,N,F,_,R):this.getGroupStyleOverrides(O,P,N,_,R);k.crisp=!0,Xye(k,_,V),k.cornerRadius=z?d.cornerRadius:u.cornerRadius,k.zIndex=[0,N,R?1:0];const G=A.parent?.children.every(W=>W.children.length===0),H=A.parent!=null?A.parent.bbox:void 0,B=A.parent!=null?A.parent.padding:void 0;G===!0&&H!=null&&B!=null?(k.clipBBox=L,k.x=H.x+B.left,k.y=H.y+B.top,k.width=H.width-(B.left+B.right),k.height=H.height-(B.top+B.bottom)):(k.clipBBox=void 0,k.x=L.x,k.y=L.y,k.width=L.width,k.height=L.height),k.visible=!0},v=this.getGroupBaseStyle(!1),y=this.getTileBaseStyle(!1);this.datumSelection.each((A,k)=>f(k,A,v,y,!1));const C=this.getGroupBaseStyle(!0),S=this.getTileBaseStyle(!0);this.highlightSelection.each((A,k)=>{f(k,A,C,S,!0)});const x=(A,k,w,M)=>{const R=A.children.length===0,L=w===0?A.label:A.secondaryLabel;if(L==null){k.visible=!1;return}let P;if(M){const{tile:N,group:O}=c;P=N.secondaryLabel.color,R?w===0&&(P=N.label.color):P=O.label.color}k.text=L.text,k.fontSize=L.fontSize,k.lineHeight=L.lineHeight,k.fontStyle=L.fontStyle,k.fontFamily=L.fontFamily,k.fontWeight=L.fontWeight,k.fill=P??L.color,k.textAlign=L.textAlign,k.textBaseline=L.verticalAlign,k.x=L.x,k.y=L.y,k.visible=!0,k.zIndex=1},D=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(Yb).forEach(A=>{x(A.datum,A,A.tag,A.datum===D)})}pickNodeClosestDatum(e){const t=this.pickNodeExactShape(e);return t!==void 0?t:this.pickNodeNearestDistantObject(e,this.datumSelection.nodes())}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,{datum:u,datumIndex:h,depth:p,children:g}=e;if(u==null||p==null)return;const f=g.length===0,v=[],y=r!=null?u[r]:void 0;y!=null&&v.push({label:a,fallbackLabel:r,value:y});const C=l!=null?u[l]:void 0;C!=null&&v.push({label:c,fallbackLabel:l,value:C});let S;f?(S=this.getTileBaseStyle(!1),Object.assign(S,this.getTileStyleOverrides(h,u,p,C,S,!1))):(S=this.getGroupBaseStyle(!1),Object.assign(S,this.getGroupStyleOverrides(h,u,p,S,!1)));const x=S.fill,D=f?{marker:{shape:"square",fill:x,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0}}:void 0;return d.formatTooltip({title:o!=null?u[o]:void 0,symbol:D,data:v},{seriesId:t,datum:u,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...S})}computeFocusBounds(e){return Yye.toCanvas(this.contentGroup,e.getBBox())}};GT.className="TreemapSeries";GT.type="treemap";var{FONT_SIZE_RATIO:DF,ThemeSymbols:{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Jye,DEFAULT_HIERARCHY_FILLS:eve,DEFAULT_HIERARCHY_STROKES:tve}}=E,ive={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"treemap",moduleFactory:e=>new GT(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{group:{label:{enabled:!0,color:{$ref:"textColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},spacing:4},fill:void 0,stroke:void 0,strokeWidth:1,padding:4,gap:2,textAlign:"left"},tile:{label:{enabled:!0,color:{$ref:"backgroundColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:[1.5]},minimumFontSize:{$rem:[DF.SMALLER]},fontFamily:{$ref:"fontFamily"},wrapping:"on-space",overflowStrategy:"ellipsis",spacing:2},secondaryLabel:{enabled:!0,color:{$ref:"backgroundColor"},fontStyle:void 0,fontWeight:void 0,fontSize:{$ref:"fontSize"},minimumFontSize:{$rem:[DF.SMALLER]},fontFamily:{$ref:"fontFamily"},wrapping:"never",overflowStrategy:"ellipsis"},fill:void 0,stroke:void 0,strokeWidth:0,padding:3,gap:1},highlightStyle:{group:{label:{color:{$ref:"textColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2},tile:{label:{color:{$ref:"backgroundColor"}},secondaryLabel:{color:{$ref:"backgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:i})=>{const{fills:o,strokes:s}=e(t),n=i.get(Jye),r=i.get(eve),a=i.get(tve);return{fills:o,strokes:s,colorRange:n,undocumentedGroupFills:r,undocumentedGroupStrokes:a}}},{AbstractBarSeriesProperties:ove,BaseProperties:Zy,PropertiesArray:sve,SeriesTooltip:nve,Validate:ot,BOOLEAN:rve,COLOR_STRING:zT,FUNCTION:I9,LINE_DASH:A9,NUMBER:ave,OBJECT:Kl,OBJECT_ARRAY:lve,POSITIVE_NUMBER:Cg,RATIO:_T,STRING:Sg,UNION:R9,DropShadow:cve,Label:dve}=E,_x=class extends Zy{};b([ot(R9(["subtotal","total"],"a total type"))],_x.prototype,"totalType");b([ot(ave)],_x.prototype,"index");b([ot(Sg)],_x.prototype,"axisLabel");var T9=class extends Zy{};b([ot(I9,{optional:!0})],T9.prototype,"renderer");var VT=class extends dve{constructor(){super(...arguments),this.placement="outside-end",this.padding=6}};b([ot(R9(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],VT.prototype,"placement");b([ot(Cg)],VT.prototype,"padding");var To=class extends Zy{constructor(){super(...arguments),this.fill="#c16068",this.stroke="#c16068",this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=1,this.cornerRadius=0,this.shadow=new cve().set({enabled:!1}),this.label=new VT,this.tooltip=new T9}};b([ot(Sg,{optional:!0})],To.prototype,"name");b([ot(zT)],To.prototype,"fill");b([ot(zT)],To.prototype,"stroke");b([ot(_T)],To.prototype,"fillOpacity");b([ot(_T)],To.prototype,"strokeOpacity");b([ot(A9)],To.prototype,"lineDash");b([ot(Cg)],To.prototype,"lineDashOffset");b([ot(Cg)],To.prototype,"strokeWidth");b([ot(Cg)],To.prototype,"cornerRadius");b([ot(I9,{optional:!0})],To.prototype,"itemStyler");b([ot(Kl)],To.prototype,"shadow");b([ot(Kl)],To.prototype,"label");b([ot(Kl)],To.prototype,"tooltip");var ah=class extends Zy{constructor(){super(...arguments),this.enabled=!0,this.stroke="black",this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=2}};b([ot(rve)],ah.prototype,"enabled");b([ot(zT)],ah.prototype,"stroke");b([ot(_T)],ah.prototype,"strokeOpacity");b([ot(A9)],ah.prototype,"lineDash");b([ot(Cg)],ah.prototype,"lineDashOffset");b([ot(Cg)],ah.prototype,"strokeWidth");var Vx=class extends Zy{constructor(){super(...arguments),this.positive=new To,this.negative=new To,this.total=new To}};b([ot(Kl)],Vx.prototype,"positive");b([ot(Kl)],Vx.prototype,"negative");b([ot(Kl)],Vx.prototype,"total");var Yl=class extends ove{constructor(){super(...arguments),this.item=new Vx,this.totals=new sve(_x),this.line=new ah,this.tooltip=new nve}};b([ot(Sg)],Yl.prototype,"xKey");b([ot(Sg)],Yl.prototype,"yKey");b([ot(Sg,{optional:!0})],Yl.prototype,"xName");b([ot(Sg,{optional:!0})],Yl.prototype,"yName");b([ot(Kl)],Yl.prototype,"item");b([ot(lve)],Yl.prototype,"totals");b([ot(Kl)],Yl.prototype,"line");b([ot(Kl)],Yl.prototype,"tooltip");var{adjustLabelPlacement:uve,SeriesNodePickMode:kF,fixNumericExtent:hve,valueProperty:IF,keyProperty:pve,accumulativeValueProperty:hb,trailingAccumulatedValueProperty:gve,ChartAxisDirection:OM,createDatumId:fve,checkCrisp:mve,updateLabelNode:yve,prepareBarAnimationFunctions:vve,collapsedStartingBarPosition:bve,resetBarSelectionsFn:Cve,seriesLabelFadeInAnimation:Sve,resetLabelFn:xve,animationValidation:wve,DEFAULT_CARTESIAN_DIRECTION_KEYS:Mve,DEFAULT_CARTESIAN_DIRECTION_NAMES:Dve,computeBarFocusBounds:kve,isContinuous:AF,Rect:Ive,motion:Ave,applyShapeStyle:Rve}=E,HT=class extends E.AbstractBarSeries{constructor(e){super({moduleCtx:e,directionKeys:Mve,directionNames:Dve,pickModes:[kF.NEAREST_NODE,kF.EXACT_SHAPE_MATCH],pathsPerSeries:["connector"],hasHighlightedLabels:!0,pathsZIndexSubOrderOffset:[-1,-1],animationResetFns:{datum:Cve,label:xve}}),this.properties=new Yl,this.seriesItemTypes=new Set(["positive","negative","total"])}async processData(e){const{xKey:t,yKey:i,totals:o}=this.properties,{data:s=[]}=this;if(!this.properties.isValid()||!this.visible)return;const n=C=>AF(C)&&Number(C)>=0,r=C=>AF(C)&&Number(C)>=0,a=C=>C==="total"||C==="subtotal",l={missingValue:void 0,invalidValue:void 0},c=[],d=o.reduce((C,S)=>{const x=C.get(S.index);return x?x.push(S):C.set(S.index,[S]),C},new Map);s.forEach((C,S)=>{c.push(C),d.get(S)?.forEach(x=>c.push({...x.toJson(),[t]:x.axisLabel}))});const u=[];this.ctx.animationManager.isSkipped()||u.push(wve());const h=this.getCategoryAxis()?.scale,p=this.getValueAxis()?.scale,{isContinuousX:g,xScaleType:f,yScaleType:v}=this.getScaleInformation({xScale:h,yScale:p}),{processedData:y}=await this.requestDataModel(e,c,{props:[pve(t,f,{id:"xValue"}),hb(i,v,{...l,id:"yCurrent"}),hb(i,v,{...l,missingValue:0,id:"yCurrentTotal"}),hb(i,v,{...l,id:"yCurrentPositive",validation:n}),hb(i,v,{...l,id:"yCurrentNegative",validation:r}),gve(i,v,{...l,id:"yPrevious"}),IF(i,v,{id:"yRaw"}),IF("totalType","band",{id:"totalTypeValue",missingValue:void 0,validation:a}),...g?[E.SMALLEST_KEY_INTERVAL,E.LARGEST_KEY_INTERVAL]:[],...u]});this.smallestDataInterval=y.reduced?.smallestKeyInterval,this.largestDataInterval=y.reduced?.largestKeyInterval,this.updateSeriesItemTypes(),this.animationState.transition("updateData")}getSeriesDomain(e){const{processedData:t,dataModel:i}=this;if(!t||!i)return[];const{keys:[o],values:s}=t.domain;if(e===this.getCategoryDirection()){const n=i.resolveProcessedDataDefById(this,"xValue");if(n?.def.type==="key"&&n?.def.valueType==="category")return o;const r=e===OM.Y,a=this.getCategoryAxis().isReversed();return this.padBandExtent(o,a!==r)}else{const n=i.resolveProcessedDataIndexById(this,"yCurrent"),r=s[n],a=[Math.min(0,r[0]),Math.max(0,r[1])];return hve(a)}}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){const{data:e,dataModel:t,processedData:i}=this,o=this.getCategoryAxis(),s=this.getValueAxis();if(!e||!o||!s||!t||!i)return;const{line:n}=this.properties,r=o.scale,a=s.scale,l=this.getBarDirection()===OM.X,c=this.getBandwidth(o)??10,d=o.isReversed(),u=s.isReversed();if(i.type!=="ungrouped")return;const h={itemId:this.properties.yKey,nodeData:[],labelData:[],pointData:[],scales:this.calculateScaling(),visible:this.visible};if(!this.visible)return h;const p=[],g=t.resolveKeysById(this,"xValue",i),f=t.resolveColumnById(this,"yRaw",i),v=t.resolveColumnById(this,"totalTypeValue",i),y=t.resolveColumnById(this,"yCurrent",i),C=t.resolveColumnById(this,"yPrevious",i),S=t.resolveColumnById(this,"yCurrentTotal",i),x=mve(o?.scale,o?.visibleRange,this.smallestDataInterval,this.largestDataInterval);function D(O,F,z){return O||F?{cumulativeValue:S[z],trailingValue:F?k:0}:{cumulativeValue:y[z],trailingValue:C[z]}}function A(O,F,z,_,V){return O?_:F?(_??0)-(V??0):z}let k=0;const{xKey:w,yKey:M,xName:R,yName:L}=this.properties;(i.dataSources.get(this.id)??[]).forEach((O,F)=>{const z=v[F],_=this.isSubtotal(z),V=this.isTotal(z),G=V||_,H=g[F];if(H==null)return;const B=Math.round(r.convert(H)),W=f[F],{cumulativeValue:j,trailingValue:U}=D(V,_,F);G&&(k=j??0);const ee=Math.round(a.convert(j)),q=Math.round(a.convert(U)),te=A(V,_,W,j,U),se=(te??0)>=0,Z=this.getSeriesItemType(se,z),{strokeWidth:ie,label:X}=this.getItemConfig(Z),ne=se?ee:q,re=se?q:ee,ue=Math.max(ie,Math.abs(re-ne)),le={x:l?Math.min(ne,re):B,y:l?B:Math.min(ne,re),width:l?ue:c,height:l?c:ue},me={x:le.x+le.width/2,y:le.y+le.height/2},Me=G?ee:q,pe=Math.floor(n.strokeWidth)%2/2,Y=d?ee:Me,$=d?Me:ee;let Q,ae;l?(Q={x:Y+pe,y:le.y},ae={x:$+pe,y:le.y+le.height}):(Q={x:le.x,y:Y+pe},ae={x:le.x+le.width,y:$+pe});const ye={x:d?ae.x:Q.x,y:d?ae.y:Q.y,x2:d?Q.x:ae.x,y2:d?Q.y:ae.y,size:0};p.push(ye);const we=Z==="subtotal"?"total":Z,De=this.getLabelText(X,{itemId:we,value:te,datum:O,xKey:w,yKey:M,xName:R,yName:L}),K={index:F,series:this,itemId:Z,datum:O,datumIndex:F,cumulativeValue:j??0,xValue:H,yValue:te,yKey:M,xKey:w,x:le.x,y:le.y,width:le.width,height:le.height,midPoint:me,crisp:x,label:{text:De,...uve({isUpward:(te??-1)>=0!==u,isVertical:!l,placement:X.placement,padding:X.padding,rect:le})}};h.nodeData.push(K),h.labelData.push(K)});const N=this.properties.line.enabled;return y!=null&&N&&(h.pointData=p),h}updateSeriesItemTypes(){const{dataModel:e,seriesItemTypes:t,processedData:i}=this;if(!e||!i)return;t.clear();const o=e.resolveProcessedDataIndexById(this,"yCurrentPositive"),s=e.resolveProcessedDataIndexById(this,"yCurrentNegative"),n=e.resolveProcessedDataIndexById(this,"totalTypeValue"),r=i.domain.values[o]??[],a=i.domain.values[s]??[];r.length>0&&t.add("positive"),a.length>0&&t.add("negative");const l=i?.domain.values[n];l&&l.forEach(c=>{(c==="total"||c==="subtotal")&&t.add("total")})}isSubtotal(e){return e==="subtotal"}isTotal(e){return e==="total"}nodeFactory(){return new Ive}getSeriesItemType(e,t){return t??(e?"positive":"negative")}getItemConfig(e){switch(e){case"positive":return this.properties.item.positive;case"negative":return this.properties.item.negative;case"subtotal":case"total":return this.properties.item.total}}updateDatumSelection(e){const{nodeData:t,datumSelection:i}=e,o=t??[];return i.update(o)}getItemStyle(e,t,i,o){const{id:s,properties:n}=this,r=n.item[i==="subtotal"?"total":i],a=o?n.highlightStyle.item:void 0,{itemStyler:l}=r,{xKey:c,yKey:d}=n,u={fill:a?.fill??r.fill,fillOpacity:a?.fillOpacity??r.fillOpacity,stroke:a?.stroke??r.stroke,strokeWidth:a?.strokeWidth??r.strokeWidth,strokeOpacity:a?.strokeOpacity??r.strokeOpacity,lineDash:a?.lineDash??r.lineDash??[],lineDashOffset:a?.lineDashOffset??r.lineDashOffset,cornerRadius:r.cornerRadius};if(l!=null){const h=this.cachedDatumCallback(fve(e,o?"highlight":"node"),()=>l({seriesId:s,itemId:i,datum:t,xKey:c,yKey:d,highlighted:o,...u}));Object.assign(u,h)}return u}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getCategoryDirection()===OM.X;t.each((s,n)=>{const r=n.itemId,a=this.getItemStyle(String(n.datumIndex),n.datum,r,i);Rve(s,a),s.visible=o?n.width>0:n.height>0,s.crisp=n.crisp})}updateLabelSelection(e){const{labelData:t,labelSelection:i}=e;if(t.length===0)return i.update([]);const o=t.filter(s=>{const{label:n}=this.getItemConfig(s.itemId);return n.enabled});return i.update(o)}updateLabelNodes(e){e.labelSelection.each((t,i)=>{yve(t,this.getItemConfig(i.itemId).label,i.label)})}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{xKey:n,xName:r,yKey:a,yName:l,tooltip:c}=s,d=this.getCategoryAxis(),u=this.getValueAxis();if(!i||!o||!d||!u)return;const{datumIndex:h}=e,p=o.dataSources.get(this.id)?.[h],g=i.resolveKeysById(this,"xValue",o)[h],f=i.resolveColumnById(this,"yRaw",o)[h],v=i.resolveColumnById(this,"yCurrentTotal",o),y=i.resolveColumnById(this,"totalTypeValue",o);if(g==null)return;const C=y[h],S=(f??0)>=0,x=this.getSeriesItemType(S,C);let D;if(this.isTotal(C))D=v[h];else if(this.isSubtotal(C)){D=v[h];for(let k=h-1;k>=0;k-=1)if(this.isSubtotal(y[k])){D=D-v[k];break}}else D=f;const A=this.getItemStyle(String(h),p,x,!1);return c.formatTooltip({heading:d.formatDatum(g),symbol:this.legendItemSymbol(x),data:[{label:l,fallbackLabel:a,value:u.formatDatum(D)}]},{seriesId:t,datum:p,title:l,itemId:x,xKey:n,xName:r,yKey:a,yName:l,...A})}legendItemSymbol(e){const{fill:t,stroke:i,fillOpacity:o,strokeOpacity:s,strokeWidth:n,lineDash:r,lineDashOffset:a}=this.getItemConfig(e);return{marker:{fill:t,stroke:i,fillOpacity:o,strokeOpacity:s,strokeWidth:n,lineDash:r,lineDashOffset:a}}}getLegendData(e){if(e!=="category")return[];const{id:t,seriesItemTypes:i}=this,o=[],s=r=>r.charAt(0).toUpperCase()+r.substring(1),{showInLegend:n}=this.properties;return i.forEach(r=>{const{name:a}=this.getItemConfig(r);o.push({legendType:"category",id:t,itemId:r,seriesId:t,enabled:!0,label:{text:a??s(r)},symbol:this.legendItemSymbol(r),hideInLegend:!n,isFixed:!0})}),o}toggleSeriesItem(){}animateEmptyUpdateReady({datumSelection:e,labelSelection:t,contextData:i,paths:o}){const s=vve(bve(this.isVertical(),this.axes,"normal"));Ave.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],s),Sve(this,"labels",this.ctx.animationManager,t);const{pointData:n}=i;if(!n)return;const[r]=o;this.isVertical()?this.animateConnectorLinesVertical(r,n):this.animateConnectorLinesHorizontal(r,n)}animateConnectorLinesHorizontal(e,t){const{path:i}=e;this.updateLineNode(e);const o=this.getValueAxis(),s=o?.isReversed(),n=s?(c,d)=>c<d:(c,d)=>c>d,r=o?.scale.convert(0),a=t.reduce((c,d)=>(n(d.x,c)&&(c=d.x),c),s?1/0:0),l=(c,d,u,h,p)=>(c-d)/(u-d)*(p-h)+h;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:r,to:a,ease:E.Motion.easeOut,collapsable:!1,onUpdate(c){i.clear(!0),t.forEach((d,u)=>{const h=l(c,r,a,r,d.x),p=l(c,r,a,r,d.x2);u!==0&&i.lineTo(h,d.y),i.moveTo(p,d.y2)}),e.checkPathDirty()}})}animateConnectorLinesVertical(e,t){const{path:i}=e;this.updateLineNode(e);const o=this.getValueAxis(),s=o?.isReversed(),n=s?(c,d)=>c>d:(c,d)=>c<d,r=o?.scale.convert(0),a=t.reduce((c,d)=>(n(d.y,c)&&(c=d.y),c),s?0:1/0),l=(c,d,u,h,p)=>(c-d)/(u-d)*(p-h)+h;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:r,to:a,ease:E.Motion.easeOut,collapsable:!1,onUpdate(c){i.clear(!0),t.forEach((d,u)=>{const h=l(c,r,a,r,d.y),p=l(c,r,a,r,d.y2);u!==0&&i.lineTo(d.x,h),i.moveTo(d.x2,p)}),e.checkPathDirty()}})}animateReadyResize(e){super.animateReadyResize(e),this.resetConnectorLinesPath(e)}updatePaths(e){this.resetConnectorLinesPath({contextData:e.contextData,paths:e.paths})}resetConnectorLinesPath({contextData:e,paths:t}){if(t.length===0)return;const[i]=t;this.updateLineNode(i);const{path:o}=i;o.clear(!0);const{pointData:s}=e;s&&(s.forEach((n,r)=>{r!==0&&o.lineTo(n.x,n.y),o.moveTo(n.x2,n.y2)}),i.checkPathDirty())}updateLineNode(e){const{stroke:t,strokeWidth:i,strokeOpacity:o,lineDash:s,lineDashOffset:n}=this.properties.line;e.setProperties({fill:void 0,stroke:t,strokeWidth:this.getStrokeWidth(i),strokeOpacity:o,lineDash:s,lineDashOffset:n,lineJoin:"round",pointerEvents:E.PointerEvents.None})}isLabelEnabled(){const{positive:e,negative:t,total:i}=this.properties.item;return e.label.enabled||t.label.enabled||i.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){return kve(this,this.contextNodeData?.nodeData[e])}};HT.className="WaterfallSeries";HT.type="waterfall";var FM={strokeWidth:0,label:{enabled:!1,fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},formatter:void 0,placement:"outside-end"}},Tve={series:{item:{positive:FM,negative:FM,total:FM},line:{stroke:E.ThemeSymbols.PALETTE_NEUTRAL_STROKE,strokeOpacity:1,lineDash:[0],lineDashOffset:0,strokeWidth:2}},legend:{enabled:!0,toggleSeries:!1}},{ThemeConstants:pb}=E,Lve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"waterfall",solo:!0,moduleFactory:e=>new HT(e),tooltipDefaults:{range:"exact"},defaultAxes:E.swapAxisCondition([{type:pb.CARTESIAN_AXIS_TYPE.NUMBER,position:pb.CARTESIAN_POSITION.LEFT},{type:pb.CARTESIAN_AXIS_TYPE.CATEGORY,position:pb.CARTESIAN_POSITION.BOTTOM}],e=>e?.direction==="horizontal"),themeTemplate:Tve,paletteFactory:({takeColors:e,colorsCount:t,userPalette:i,palette:o})=>{if(i==="user-indexed"){const{fills:s,strokes:n}=e(t);return{line:{stroke:o.neutral.stroke},item:{positive:{fill:s[0],stroke:n[0]},negative:{fill:s[1],stroke:n[1]},total:{fill:s[2],stroke:n[2]}}}}return{line:{stroke:o.neutral.stroke},item:{positive:{fill:o.altUp.fill,stroke:o.altUp.stroke,label:{color:{$ref:"textColor"}}},negative:{fill:o.altDown.fill,stroke:o.altDown.stroke,label:{color:{$ref:"textColor"}}},total:{fill:o.neutral.fill,stroke:o.neutral.stroke,label:{color:{$ref:"textColor"}}}}}}},Eve=`.ag-watermark{position:absolute;bottom:20px;right:25px;font-weight:700;font-family:Impact,sans-serif;font-size:19px;opacity:.7;animation:1s ease-out 3s ag-watermark-fadeout;color:#9b9b9b;pointer-events:none;&:before{content:"";display:block;height:40px;width:170px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU4IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMjU4IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMjUuNzc5IDI4LjY1N0gxMy4zNTlMMTEuMTczIDM0LjAxMkg1LjY3Mjk3TDE3LjE4MiA3LjA1OTk5SDIxLjk1M0wzMy40NjIgMzQuMDEySDI3Ljk2MkwyNS43NzYgMjguNjU3SDI1Ljc3OVpNMjQuMDY4IDI0LjM5N0wxOS41ODggMTMuNDM0TDE1LjEwNyAyNC4zOTdIMjQuMDY4Wk02Mi4wOTIgMTguODIzSDQ5LjgxN1YyMy4wODZINTYuNzc1QzU2LjU1NSAyNS4yMjIgNTUuNzU1IDI2LjkyNyA1NC4zNzIgMjguMjAyQzUyLjk4OSAyOS40NzYgNTEuMTY2IDMwLjExNSA0OC45MDkgMzAuMTE1QzQ3LjYyMiAzMC4xMTUgNDYuNDUgMjkuODg1IDQ1LjM5MyAyOS40MjNDNDQuMzU4MyAyOC45NzgxIDQzLjQzMjYgMjguMzEzOCA0Mi42OCAyNy40NzZDNDEuOTI3IDI2LjYzOSA0MS4zNDQgMjUuNjMxIDQwLjkzMSAyNC40NTNDNDAuNTE5IDIzLjI3NSA0MC4zMTEgMjEuOTcgNDAuMzExIDIwLjUzN0M0MC4zMTEgMTkuMTA1IDQwLjUxNiAxNy44IDQwLjkzMSAxNi42MjFDNDEuMzQ0IDE1LjQ0MyA0MS45MjcgMTQuNDM2IDQyLjY4IDEzLjU5OEM0My40Mzc2IDEyLjc1NzcgNDQuMzY5NiAxMi4wOTMyIDQ1LjQxMSAxMS42NTFDNDYuNDc4IDExLjE4OSA0Ny42NTYgMTAuOTYgNDguOTQ2IDEwLjk2QzUxLjYxMiAxMC45NiA1My42MzcgMTEuNjAyIDU1LjAyIDEyLjg4NUw1OC4zIDkuNjA0OTlDNTUuODE3IDcuNjY5OTkgNTIuNjc2IDYuNjk5OTkgNDguODcyIDYuNjk5OTlDNDYuNzYgNi42OTk5OSA0NC44NTMgNy4wMzQ5OSA0My4xNTQgNy43MDA5OUM0MS40NTUgOC4zNjc5OSAzOS45OTggOS4zMDM5OSAzOC43ODMgMTAuNTA0QzM3LjU2NyAxMS43MDcgMzYuNjM0IDEzLjE1OCAzNS45NzcgMTQuODU3QzM1LjMxOSAxNi41NTYgMzQuOTk0IDE4LjQ1MSAzNC45OTQgMjAuNTRDMzQuOTk0IDIyLjYzIDM1LjMyOSAyNC40OTQgMzUuOTk1IDI2LjIwNUMzNi42NjIgMjcuOTE2IDM3LjYwNSAyOS4zNzQgMzguODE3IDMwLjU3N0M0MC4wMzIgMzEuNzggNDEuNDg2IDMyLjcxMyA0My4xODggMzMuMzgzQzQ0Ljg4OCAzNC4wNDkgNDYuNzgyIDM0LjM4NCA0OC44NzIgMzQuMzg0QzUwLjk2MSAzNC4zODQgNTIuNzUgMzQuMDQ5IDU0LjM5IDMzLjM4M0M1Ni4wMzEgMzIuNzE2IDU3LjQyNiAzMS43OCA1OC41NzkgMzAuNTc3QzU5LjczMyAyOS4zNzQgNjAuNjE5IDI3LjkxNiA2MS4yMzkgMjYuMjA1QzYxLjg2IDI0LjQ5NCA2Mi4xNyAyMi42MDUgNjIuMTcgMjAuNTRDNjIuMTY5NiAxOS45Njg4IDYyLjE0NDUgMTkuMzk4IDYyLjA5NSAxOC44MjlMNjIuMDkyIDE4LjgyM1pNMTUxLjgxIDE2Ljk4MUMxNTMuNDEgMTQuNjA5IDE1Ny40MTkgMTQuMzU4IDE1OS4wMjIgMTQuMzU4VjE4LjkxQzE1Ni45NTcgMTguOTEgMTU0Ljk4NSAxOC45OTYgMTUzLjc1NyAxOS44OTJDMTUyLjUyOSAyMC43OTIgMTUxLjkxOSAyMS45ODIgMTUxLjkxOSAyMy40NjRWMzMuOTlIMTQ2Ljk2NFYxNC4zNThIMTUxLjczNkwxNTEuODEgMTYuOTgxWk0xNDMuMDExIDE0LjM2MVYzNC4wMzFIMTM4LjI0TDEzOC4xMzEgMzEuMDQ1QzEzNy40NjYgMzIuMDc2IDEzNi41NTEgMzIuOTIxOSAxMzUuNDcxIDMzLjUwNEMxMzQuMzc2IDM0LjA5OSAxMzMuMDY4IDM0LjM5NiAxMzEuNTM2IDM0LjM5NkMxMzAuMiAzNC4zOTYgMTI4Ljk2MyAzNC4xNTIgMTI3LjgyMiAzMy42NjhDMTI2LjcgMzMuMTk2NCAxMjUuNjg5IDMyLjQ5NSAxMjQuODU1IDMxLjYwOUMxMjQuMDE4IDMwLjcyMiAxMjMuMzU0IDI5LjY2MiAxMjIuODcxIDI4LjQyMkMxMjIuMzg0IDI3LjE4NSAxMjIuMTQyIDI1LjgxMSAxMjIuMTQyIDI0LjMwNEMxMjIuMTQyIDIyLjc5OCAxMjIuMzg0IDIxLjM3OCAxMjIuODcxIDIwLjExNkMxMjMuMzU3IDE4Ljg1NCAxMjQuMDE4IDE3Ljc3MiAxMjQuODU1IDE2Ljg3M0MxMjUuNjg4IDE1Ljk3NjQgMTI2LjY5OCAxNS4yNjM2IDEyNy44MjIgMTQuNzhDMTI4Ljk2MyAxNC4yODEgMTMwLjIwMyAxNC4wMzMgMTMxLjUzNiAxNC4wMzNDMTMzLjA0MyAxNC4wMzMgMTM0LjMzIDE0LjMxOCAxMzUuMzk3IDE0Ljg4OEMxMzYuNDYyIDE1LjQ1ODkgMTM3LjM3NSAxNi4yNzggMTM4LjA1NyAxNy4yNzZWMTQuMzYxSDE0My4wMTFaTTEzMi42MzEgMzAuMTMzQzEzNC4yNTYgMzAuMTMzIDEzNS41NjcgMjkuNTk0IDEzNi41NjUgMjguNTEyQzEzNy41NjEgMjcuNDMgMTM4LjA2IDI1Ljk5MSAxMzguMDYgMjQuMTk2QzEzOC4wNiAyMi40MDEgMTM3LjU2MSAyMC45OSAxMzYuNTY1IDE5Ljg5OUMxMzUuNTcgMTguODA3IDEzNC4yNTkgMTguMjU4IDEzMi42MzEgMTguMjU4QzEzMS4wMDMgMTguMjU4IDEyOS43MjkgMTguODA0IDEyOC43MzQgMTkuODk5QzEyNy43MzggMjAuOTkzIDEyNy4yMzkgMjIuNDM4IDEyNy4yMzkgMjQuMjMzQzEyNy4yMzkgMjYuMDI4IDEyNy43MzUgMjcuNDMzIDEyOC43MzQgMjguNTE1QzEyOS43MjkgMjkuNTk0IDEzMS4wMjggMzAuMTM2IDEzMi42MzEgMzAuMTM2VjMwLjEzM1pNOTMuNjk4IDI3Ljg3NkM5My41Nzk1IDI4LjAwMjUgOTMuNDU2NCAyOC4xMjQ2IDkzLjMyOSAyOC4yNDJDOTEuOTQ3IDI5LjUxNiA5MC4xMjMgMzAuMTU1IDg3Ljg2NiAzMC4xNTVDODYuNTggMzAuMTU1IDg1LjQwOCAyOS45MjYgODQuMzUgMjkuNDY0QzgzLjMxNTUgMjkuMDE4OSA4Mi4zODk4IDI4LjM1NDYgODEuNjM3IDI3LjUxN0M4MC44ODQgMjYuNjc5IDgwLjMwMSAyNS42NzIgNzkuODg5IDI0LjQ5NEM3OS40NzYgMjMuMzE1IDc5LjI2OSAyMi4wMSA3OS4yNjkgMjAuNTc4Qzc5LjI2OSAxOS4xNDUgNzkuNDczIDE3Ljg0IDc5Ljg4OSAxNi42NjJDODAuMzAxIDE1LjQ4NCA4MC44ODQgMTQuNDc2IDgxLjYzNyAxMy42MzlDODIuMzk0OSAxMi43OTg3IDgzLjMyNzMgMTIuMTM0MiA4NC4zNjkgMTEuNjkyQzg1LjQzNiAxMS4yMyA4Ni42MTQgMTEgODcuOTAzIDExQzkwLjU3IDExIDkyLjU5NSAxMS42NDIgOTMuOTc3IDEyLjkyNkw5Ny4yNTggOS42NDQ5OUM5NC43NzQgNy43MTA5OSA5MS42MzMgNi43Mzk5OSA4Ny44MjkgNi43Mzk5OUM4NS43MTggNi43Mzk5OSA4My44MTEgNy4wNzQ5OSA4Mi4xMTIgNy43NDE5OUM4MC40MTMgOC40MDc5OSA3OC45NTYgOS4zNDQ5OSA3Ny43NCAxMC41NDVDNzYuNTI1IDExLjc0NyA3NS41OTIgMTMuMTk5IDc0LjkzNCAxNC44OThDNzQuMjc3IDE2LjU5NyA3My45NTEgMTguNDkxIDczLjk1MSAyMC41ODFDNzMuOTUxIDIyLjY3IDc0LjI4NiAyNC41MzQgNzQuOTUzIDI2LjI0NUM3NS42MTkgMjcuOTU3IDc2LjU2MiAyOS40MTQgNzcuNzc0IDMwLjYxN0M3OC45OSAzMS44MiA4MC40NDQgMzIuNzUzIDgyLjE0NiAzMy40MjNDODMuODQ1IDM0LjA5IDg1LjczOSAzNC40MjQgODcuODI5IDM0LjQyNEM4OS45MTkgMzQuNDI0IDkxLjcwOCAzNC4wOSA5My4zNDggMzMuNDIzQzk0LjcxOCAzMi44NjUgOTUuOTE4IDMyLjEyMSA5Ni45NDggMzEuMTkxQzk3LjE0OSAzMS4wMDggOTcuMzQ4IDMwLjgxNSA5Ny41MzcgMzAuNjJMOTMuNzAxIDI3Ljg4NUw5My42OTggMjcuODc2Wk0xMTAuODAyIDE0LjAxNUMxMDkuMTk5IDE0LjAxNSAxMDYuODM2IDE0LjQ3MSAxMDUuNjExIDE2LjE1OEwxMDUuNTM3IDYuMDE1OTlIMTAwLjc2NVYzMy45MzlIMTA1LjcyVjIyLjY0MUMxMDUuNzcxIDIxLjQ2MDcgMTA2LjI4OCAyMC4zNDg4IDEwNy4xNTcgMTkuNTQ4OUMxMDguMDI3IDE4Ljc0OTEgMTA5LjE3OCAxOC4zMjY2IDExMC4zNTggMTguMzc0QzExMy4zOTcgMTguMzc0IDExNC4yNjggMjEuMTU5IDExNC4yNjggMjIuNjQxVjMzLjkzOUgxMTkuMjIzVjIxLjA1OUMxMTkuMjIzIDIxLjA1OSAxMTkuMTQyIDE0LjAxNSAxMTAuODAyIDE0LjAxNVpNMTczLjc2MyAxNC4zNThIMTY5Ljk5OVY4LjcxNDk5SDE2NS4wNDhWMTQuMzU4SDE2MS4yODRWMTguOTE2SDE2NS4wNDhWMzQuMDAzSDE2OS45OTlWMTguOTE2SDE3My43NjNWMTQuMzU4Wk0xOTAuNzg3IDI1LjI2MkMxOTAuMTI5IDI0LjUwMTQgMTg5LjMwNyAyMy44OTk0IDE4OC4zODQgMjMuNTAxQzE4Ny40ODggMjMuMTE3IDE4Ni4zMzEgMjIuNzMyIDE4NC45NDggMjIuMzY0QzE4NC4xNjUgMjIuMTQzOSAxODMuMzkgMjEuODk3OCAxODIuNjIzIDIxLjYyNkMxODIuMTYzIDIxLjQ2MjEgMTgxLjc0MSAyMS4yMDY2IDE4MS4zODMgMjAuODc1QzE4MS4yMzUgMjAuNzQyMSAxODEuMTE4IDIwLjU3ODkgMTgxLjAzOSAyMC4zOTY0QzE4MC45NjEgMjAuMjE0IDE4MC45MjIgMjAuMDE2NiAxODAuOTI3IDE5LjgxOEMxODAuOTI3IDE5LjI3MiAxODEuMTU2IDE4Ljg0NCAxODEuNjI1IDE4LjUxQzE4Mi4xMjEgMTguMTU2IDE4Mi44NjIgMTcuOTc2IDE4My44MjYgMTcuOTc2QzE4NC43OSAxNy45NzYgMTg1LjU4NyAxOC4yMDkgMTg2LjE0OCAxOC42NjhDMTg2LjcwNiAxOS4xMjQgMTg3LjAwNyAxOS43MjUgMTg3LjA3MiAyMC41TDE4Ny4wOTQgMjAuNzgySDE5MS42MzNMMTkxLjYxNyAyMC40NkMxOTEuNTIxIDE4LjQ4NSAxOTAuNzcxIDE2LjkgMTg5LjM4NSAxNS43NUMxODguMDEyIDE0LjYxMiAxODYuMTg1IDE0LjAzMyAxODMuOTYyIDE0LjAzM0MxODIuNDc3IDE0LjAzMyAxODEuMTQxIDE0LjI4NyAxNzkuOTk0IDE0Ljc4NkMxNzguODMxIDE1LjI5MSAxNzcuOTI2IDE1Ljk5NSAxNzcuMjk2IDE2Ljg4MkMxNzYuNjczIDE3Ljc0NTUgMTc2LjMzOCAxOC43ODQgMTc2LjM0MSAxOS44NDlDMTc2LjM0MSAyMS4xNjcgMTc2LjY5OCAyMi4yNDkgMTc3LjM5OSAyMy4wNjRDMTc4LjA2IDIzLjg0MzIgMTc4Ljg5OCAyNC40NTM0IDE3OS44NDIgMjQuODQ0QzE4MC43NDQgMjUuMjE2IDE4MS45MjggMjUuNjA3IDE4My4zNjEgMjZDMTg0LjgwNiAyNi40MSAxODUuODcyIDI2Ljc4NSAxODYuNTMgMjcuMTIzQzE4Ny4xIDI3LjQxNCAxODcuMzc5IDI3Ljg0NSAxODcuMzc5IDI4LjQ0NEMxODcuMzc5IDI5LjA0MiAxODcuMTIyIDI5LjQ2NyAxODYuNTk1IDI5LjgzOUMxODYuMDQzIDMwLjIyNiAxODUuMjM3IDMwLjQyNSAxODQuMjAxIDMwLjQyNUMxODMuMTY2IDMwLjQyNSAxODIuMzk0IDMwLjE3NCAxODEuNzQ5IDI5LjY3NEMxODEuMTEzIDI5LjE4MSAxODAuNzcyIDI4LjU4OSAxODAuNzEgMjcuODY0TDE4MC42ODUgMjcuNTgySDE3Ni4wMTNMMTc2LjAyNSAyNy45MDFDMTc2LjA2NyAyOS4wOTU1IDE3Ni40NzIgMzAuMjQ4NyAxNzcuMTg4IDMxLjIwNkMxNzcuOTA3IDMyLjE4IDE3OC44OTMgMzIuOTU4IDE4MC4xMTggMzMuNTE5QzE4MS4zMzYgMzQuMDc3IDE4Mi43MzIgMzQuMzYyIDE4NC4yNjYgMzQuMzYyQzE4NS44MDEgMzQuMzYyIDE4Ny4xMDkgMzQuMTA4IDE4OC4yMzggMzMuNjA5QzE4OS4zNzYgMzMuMTA0IDE5MC4yNzIgMzIuMzk0IDE5MC45MDEgMzEuNDk0QzE5MS41MzQgMzAuNTkyIDE5MS44NTMgMjkuNTU0IDE5MS44NTMgMjguNDAzQzE5MS44MjggMjcuMTEgMTkxLjQ2NiAyNi4wNTMgMTkwLjc3NyAyNS4yNjJIMTkwLjc4N1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTI0MS45ODIgMjUuNjU4MlYxNy43MTE3SDIyOC40NDFMMjIwLjQ5NCAyNS42NTgySDI0MS45ODJaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNTcuMjM5IDUuOTUwODFIMjQwLjI2NUwyMzIuMjU1IDEzLjg5NzNIMjU3LjIzOVY1Ljk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjEyLjYxMSAzMy42MDQ4TDIxNi42OCAyOS41MzYxSDIzMC40MTJWMzcuNDgyN0gyMTIuNjExVjMzLjYwNDhaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yMTUuNTk5IDIxLjc4MDNIMjI0LjM3MkwyMzIuMzgyIDEzLjgzMzdIMjE1LjU5OVYyMS43ODAzWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjA2IDMzLjYwNDdIMjEyLjYxMUwyMjAuNDk0IDI1LjY1ODJIMjA2VjMzLjYwNDdaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNDAuMjY1IDUuOTUwODFMMjM2LjE5NyAxMC4wMTk0SDIxMC4yNTlWMi4wNzI4OEgyNDAuMjY1VjUuOTUwODFaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-size:170px 40px}>span{padding-left:.7rem}}@keyframes ag-watermark-fadeout{0%{opacity:.5}to{opacity:0}}.ag-charts-dialog{display:flex;flex-direction:column;font-size:var(--ag-charts-chrome-font-size-large)}.ag-charts-dialog__tabs{display:flex;flex-direction:column}.ag-charts-dialog__header{border-bottom:1px solid var(--ag-charts-border-color);display:flex}.ag-charts-dialog__tab-list{display:flex;gap:calc(var(--ag-charts-spacing) * 2)}.ag-charts-dialog__drag-handle{align-items:center;color:inherit;cursor:grab;display:flex;padding:1px 6px;text-align:center}.ag-charts-dialog__drag-handle--dragging{cursor:grabbing}.ag-charts-dialog__tab-button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ag-charts-chrome-subtle-text-color);margin-bottom:-1px;padding:var(--input-padding) calc(var(--input-padding) / 2)}.ag-charts-dialog__tab-button:hover{background:none}.ag-charts-dialog__tab-button--active{border-color:var(--ag-charts-accent-color);color:inherit}.ag-charts-dialog__drag-handle+.ag-charts-dialog__tab-button{margin-left:calc(var(--ag-charts-spacing) * -2)}.ag-charts-button.ag-charts-dialog__close-button{background:none;border:0;margin-left:auto;padding:1px 6px}.ag-charts-dialog__close-button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-dialog__tab-panel{display:none;flex-direction:column;gap:calc(var(--ag-charts-spacing) * 4);margin:0 calc(var(--ag-charts-spacing) * 4);padding:calc(var(--ag-charts-spacing) * 4) 0}.ag-charts-dialog__tab-panel--active{display:flex}.ag-charts-dialog__input-group-line{display:flex;gap:16px 18px;flex-wrap:wrap}.ag-charts-dialog__input-group{align-items:center;display:flex;font-size:var(--ag-charts-chrome-font-size)}.ag-charts-dialog__input-group-label{color:var(--ag-charts-chrome-subtle-text-color);margin-right:5px}.ag-charts-dialog__input-group-label[for]{cursor:pointer}.ag-charts-dialog__button{border-radius:0;margin-right:-1px}.ag-charts-dialog__button.ag-charts-dialog__button--active{background:var(--ag-charts-button-focus-background-color);border-color:var(--ag-charts-input-focus-border-color);color:var(--ag-charts-input-focus-text-color);z-index:var(--input-layer-active)}.ag-charts-dialog__button:first-child,.ag-charts-dialog__input-group-label+.ag-charts-dialog__button{border-bottom-left-radius:var(--ag-charts-input-border-radius);border-top-left-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__button:last-child{border-bottom-right-radius:var(--ag-charts-input-border-radius);border-top-right-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__color-picker-button{--color: #000;background:var(--color);border:none;color:transparent;height:26px;width:26px}.ag-charts-dialog__color-picker-button:hover{background:var(--color)}.ag-charts-dialog__color-picker-button--multi-color,.ag-charts-dialog__color-picker-button--multi-color:hover{background:linear-gradient(135deg,red 0%,#ff0 calc(100% * 1 / 6),#0f0 calc(100% * 2 / 6),#0ff 50%,#00f calc(100% * 4 / 6),#f0f calc(100% * 5 / 6),red 100%)}.ag-charts-color-picker{width:190px;padding:8px;--h: 0;--s: 0;--v: 0;--a: 0;--color: #000;--color-a: #000;--thumb-size: 18px;--inner-width: 172px;--track-height: 12px;--palette-height: 136px;--checker: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>');--multi-color: linear-gradient( 135deg, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-color-picker__content{display:flex;flex-direction:column}.ag-charts-color-picker__palette{position:relative;width:100%;height:var(--palette-height);margin-bottom:8px;background:linear-gradient(to bottom,#0000,#000),linear-gradient(to right,#fff,#fff0) hsl(var(--h),100%,50%);border-radius:calc(var(--ag-charts-border-radius) * 1.5);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__palette:after{content:"";position:absolute;display:block;top:calc(var(--thumb-size) * -.5 + (1 - var(--v)) * 100%);left:calc(var(--thumb-size) * -.5 + var(--s) * 100%);background:var(--color);width:var(--thumb-size);height:var(--thumb-size);border-radius:calc(var(--ag-charts-border-radius) * 99);box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038}.ag-charts-color-picker__palette:focus-visible:after{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),0 0 0 2px #fff8,var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-row{display:flex;gap:8px;align-items:center;margin-bottom:4px;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input,.ag-charts-color-picker__alpha-input{-webkit-appearance:none;display:block;position:relative;padding:0;margin:0 calc(var(--inset) * -1);border:0;height:var(--thumb-size);width:auto;background:transparent;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{-webkit-appearance:none;width:var(--thumb-size);height:var(--thumb-size);border-radius:calc(var(--ag-charts-border-radius) * 99);box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038;transform:translateZ(0)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{background:transparent}.ag-charts-color-picker__alpha-input--opaque::-webkit-slider-thumb{background:var(--color)}.ag-charts-color-picker__hue-input:focus-visible::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input:focus-visible::-webkit-slider-thumb{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__hue-input:before,.ag-charts-color-picker__alpha-input:before{position:absolute;content:"";display:block;top:calc(50% - var(--track-height) / 2);left:var(--inset);right:var(--inset);height:var(--track-height);border-radius:calc(var(--ag-charts-border-radius) * 99);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button{width:36px;margin-left:var(--inset);height:var(--track-height);border-radius:calc(var(--ag-charts-border-radius) * 99);border:0;background:var(--multi-color);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button--hidden{display:none}.ag-charts-color-picker__multi-color-button--active{box-shadow:inset 0 0 0 1px #0003;outline-offset:1px;outline:2px solid #2196f3}.ag-charts-color-picker__hue-input{flex:1 0 0}.ag-charts-color-picker__hue-input:before{background:linear-gradient(to right,red,red calc((100% - var(--track-height)) * 0 / 6 + var(--track-height) / 2),#ff0 calc((100% - var(--track-height)) * 1 / 6 + var(--track-height) / 2),#0f0 calc((100% - var(--track-height)) * 2 / 6 + var(--track-height) / 2),#0ff calc((100% - var(--track-height)) * 3 / 6 + var(--track-height) / 2),#00f calc((100% - var(--track-height)) * 4 / 6 + var(--track-height) / 2),#f0f calc((100% - var(--track-height)) * 5 / 6 + var(--track-height) / 2),red calc((100% - var(--track-height)) * 6 / 6 + var(--track-height) / 2))}.ag-charts-color-picker__alpha-input{margin-bottom:7px}.ag-charts-color-picker__alpha-input:before{background:linear-gradient(to right,transparent,var(--color)),var(--checker) top left / 4px 4px}.ag-charts-color-picker__color-field{display:flex;border:var(--ag-charts-border);background:var(--ag-charts-background-color);border-radius:var(--ag-charts-border-radius);overflow:hidden}.ag-charts-color-picker__color-field:has(:focus-visible){border-color:var(--ag-charts-accent-color);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-label{width:16px;height:16px;margin:7px 0 7px 7px;color:transparent;background:linear-gradient(to right,var(--color-a),var(--color-a)),var(--checker) top left / 4px 4px;border-radius:calc(var(--ag-charts-border-radius) / 2);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__color-label--multi-color{background:var(--multi-color)}.ag-charts-color-picker__color-input{flex:1;min-width:0;padding:7px 7px 7px 8px;border:0;margin:0;color:inherit;background:transparent;font-variant:tabular-nums}.ag-charts-color-picker__color-input:focus-visible{border:none;outline:none}.ag-charts-annotations__line-stroke-width-menu,.ag-charts-annotations__line-style-type-menu,.ag-charts-annotations__text-size-menu{.ag-charts-menu__row:first-child{border-radius:0}}.ag-charts-annotations__text-size-menu{--item-padding: 4px 8px;border-top-left-radius:0;border-top-right-radius:0;min-width:34px;text-align:center}.ag-charts-annotations__line-stroke-width-menu{--item-padding: 6px;column-gap:6px}.ag-charts-annotations__line-style-type-menu{--item-padding: 6px;column-gap:0}.ag-charts-annotations__stroke-width-button:before{background:var(--ag-charts-foreground-color);content:"";margin-right:var(--toolbar-button-padding);height:min(var(--stroke-width),20px);width:12px}.ag-charts-annotations__stroke-width-button[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-annotations__color-picker-button{--emblem: var(--color)}.ag-charts-annotations__color-picker-button--multi-color{--emblem: linear-gradient( to right, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-annotations__color-picker-button:after{content:"";display:block;position:absolute;bottom:3px;left:5px;right:5px;height:4px;border-radius:99px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ag-charts-foreground-color) 10%,transparent);background:var(--emblem)}.ag-charts-annotations__color-picker-button[aria-disabled=true]:after{filter:grayscale(1);opacity:.5}.ag-charts-annotations__toolbar-menu{min-width:200px}.ag-charts-annotations__axis-button--hidden{display:none}.ag-charts-annotations__axis-button{background-color:var(--ag-charts-crosshair-label-background-color);border-radius:calc(var(--ag-charts-border-radius) / 2);border:none;box-sizing:border-box;color:var(--ag-charts-crosshair-label-text-color);cursor:pointer;font-family:var(--ag-charts-chrome-font-family);font-size:var(--ag-charts-chrome-font-size);font-weight:var(--ag-charts-chrome-font-weight);left:0;line-height:16px;overflow:hidden;padding:0;position:absolute;top:0;user-select:none;white-space:nowrap;z-index:var(--ag-charts-layer-annotations)}.ag-charts-annotations__axis-button:hover{opacity:.8;color:var(--ag-charts-background-color)}.ag-charts-dialog--annotation-settings{min-height:233px;width:289px}.ag-charts-dialog--annotation-settings .ag-charts-textarea{height:calc(10px * 2 + var(--textarea-line-height) * 1em * 3 + 2px);overflow-y:auto;resize:vertical}.ag-charts-context-menu{background:var(--ag-charts-chrome-background-color);border:var(--ag-charts-border);border-radius:var(--ag-charts-border-radius);box-shadow:var(--ag-charts-shadow);color:var(--ag-charts-chrome-text-color);font-family:var(--ag-charts-chrome-font-family);font-size:calc(var(--ag-charts-chrome-font-size) * (13 / 12));font-weight:var(--ag-charts-chrome-font-weight);transition:transform .1s ease;white-space:nowrap;z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-context-menu__cover{position:fixed;left:0;top:0}.ag-charts-context-menu__menu{display:flex;flex-direction:column;padding:.5em 0}.ag-charts-context-menu__menu:focus{outline:none}.ag-charts-context-menu__item{background:none;border:none;box-sizing:border-box;color:inherit;font:inherit;padding:.5em 1em;text-align:left;-webkit-appearance:none;-moz-appearance:none}.ag-charts-context-menu__item:focus,.ag-charts-context-menu__item:active{background:var(--ag-charts-focus-color)}.ag-charts-context-menu__item[data-focus-visible-override=true]:focus,.ag-charts-context-menu__item:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-context-menu__item[data-focus-visible-override=false]{outline:inherit;box-shadow:inherit;z-index:inherit}.ag-charts-context-menu__item[aria-disabled=true]{border:none;opacity:.5;text-align:left}.ag-charts-context-menu__item[aria-disabled=true]:focus{background:inherit;cursor:inherit}.ag-charts-context-menu__divider{margin:5px 0;background:#babfc7;height:1px}.ag-charts-context-menu__divider.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-crosshair-label{position:absolute;left:0;top:0;user-select:none;pointer-events:none;font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-font-size);font-weight:var(--ag-charts-font-weight);overflow:hidden;white-space:nowrap;z-index:var(--ag-charts-layer-crosshair);box-sizing:border-box}.ag-charts-crosshair-label-content{padding:0 8px;border-radius:calc(var(--ag-charts-border-radius) / 2);line-height:calc(var(--ag-charts-font-size) + 8px);background-color:var(--ag-charts-crosshair-label-background-color);color:var(--ag-charts-crosshair-label-text-color)}.ag-charts-crosshair-label--hidden{visibility:hidden!important}.ag-charts-text-input{position:absolute}.ag-charts-text-input__textarea{--placeholder-text-color: var(--ag-charts-input-placeholder-text-color);display:block;height:100%;width:100%;border:0;background:none;line-height:1.38;outline:none;transform:translateY(.09em)}.ag-charts-text-input__textarea[placeholder]:empty:before{content:attr(placeholder);color:var(--placeholder-text-color);font-weight:400}.ag-charts-text-input__textarea[placeholder]:not(:empty):before{content:""}.ag-charts-chart-toolbar__menu{min-width:200px}.ag-charts-range-buttons .ag-charts-toolbar__button{padding:var(--toolbar-button-padding) calc(var(--toolbar-button-padding) * 1.5)}.ag-charts-zoom-buttons{align-items:center;display:flex;height:44px;justify-content:center;overflow:hidden;padding-bottom:10px;pointer-events:none;width:100%;.ag-charts-toolbar{--toolbar-size: 24px;--toolbar-button-padding: 1px;display:flex;font-size:var(--ag-charts-chrome-font-size);height:var(--toolbar-size);justify-content:center;opacity:1;pointer-events:auto;transition:opacity .2s ease-in-out,transform .4s ease-in-out;.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-border-radius);border-top-left-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-border-radius);border-top-right-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__label{padding-left:var(--ag-charts-spacing);padding-right:var(--ag-charts-spacing)}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{padding-left:0}.ag-charts-toolbar__button--gap{margin-left:var(--toolbar-gap)}.ag-charts-zoom-buttons__toolbar--hidden{opacity:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out}}}.ag-charts-shared-toolbar{gap:var(--toolbar-gap);.ag-charts-toolbar__button{border-radius:var(--ag-charts-border-radius);margin:0}}
|
|
21
|
-
`;E.ModuleRegistry.registerMany([eee,Cee,wee,kee,Ree]);function Pve(){E.moduleRegistry.register(lJ,vJ,Eee,fse,Dse,Mae,bne,$ae,Cle,Vle,Cce,Bce,Epe,Lse,Ose,Xse,Qse,pne,rue,xde,que,Tue,She,tpe,Phe,Gne,hre,pae,gde,Tpe,CJ,Ege,Pge,rfe,hfe,$J,Wfe,ZJ,sye,Ime,qne,Xpe,wye,Jne,Fye,yre,ive,Lve,eae),E.enterpriseModule.isEnterprise=!0,E.enterpriseModule.styles=Eve,E.enterpriseModule.licenseManager=e=>new _h(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),E.enterpriseModule.injectWatermark=gae}Pve();var Nve={setLicenseKey(e){_h.setLicenseKey(e)}};An.create.bind(An),An.__createSparkline.bind(An),_h.setGridContext.bind(_h),_h.setLicenseKey.bind(_h);function WT(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function jT(e,t){return e.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t})}function L9(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function E9(e,t){const i=WT(e);return i===""?"":"$"+jT(i,L9(t))}function Ove(e,t){return WT(e)===""?"":jT(e.value*100,L9(t))+"%"}function Fve(e){const t=WT(e);return t===""?"":jT(t,0)}function Bve(e,t){return e.value}const Gve={key:0,class:"pv-flex pv-chart-loading"},zve=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;Nve.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:h=>{s("series-visibility-change",h)}},a=m.ref(null),l=m.computed(()=>(u.value?.series||[]).some(p=>p.type==="map-shape")),c=m.computed(()=>{const h=u.value?.series||[];let p=!1;return h.forEach(g=>{g.type==="bar"&&g.direction==="horizontal"&&(p=!0)}),p}),d=m.computed(()=>{if(o.seriesFormatType==="currency")return E9;if(o.seriesFormatType==="percent")return 0}),u=m.computed(()=>{const h={...o.options};return h.theme||(h.theme=wQ),h.overlays||(h.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),h.axes||(h.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:d.value}}]),h.contextMenu||(h.contextMenu={enabled:!1}),h.listeners={...h.listeners||{},...r},h});return t({getChartImageDataURL:h=>a.value?.chart?.getImageDataURL({width:h?.width,height:h?.height})}),(h,p)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(bQ),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":"min-height: 450px"]),options:u.value},null,8,["style","options"]),h.isLoading?(m.openBlock(),m.createElementBlock("div",Gve,[m.createVNode(Wi,{class:"pv-margin-auto pv-chart-loading-icon",name:l.value?"map":"chart-column",size:32},null,8,["name"])])):m.createCommentVNode("",!0)]))}}),Ea=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},$T=Ea(zve,[["__scopeId","data-v-2f5dcc04"]]);var ml=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function _ve(e,t){return t}function UT(e){return e?.getLocaleTextFunc()??_ve}function $n(e,t,i){i==null||typeof i=="string"&&i==""?KT(e,t):Un(e,t,i)}function Un(e,t,i){e.setAttribute(P9(t),i.toString())}function KT(e,t){e.removeAttribute(P9(t))}function P9(e){return`aria-${e}`}function os(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Vve(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Hve(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Wve(e){return e.getAttribute("aria-label")}function Xs(e,t){$n(e,"label",t)}function vp(e,t){$n(e,"labelledby",t)}function YT(e,t){$n(e,"describedby",t)}function N9(e,t){$n(e,"live",t)}function jve(e,t){$n(e,"atomic",t)}function $ve(e,t){$n(e,"relevant",t)}function O9(e,t){$n(e,"level",t)}function F9(e,t){$n(e,"disabled",t)}function B9(e,t){$n(e,"hidden",t)}function yl(e,t){Un(e,"expanded",t)}function Uve(e){KT(e,"expanded")}function G9(e,t){Un(e,"setsize",t)}function z9(e,t){Un(e,"posinset",t)}function Kve(e,t){Un(e,"multiselectable",t)}function Yve(e,t){Un(e,"rowcount",t)}function _9(e,t){Un(e,"rowindex",t)}function Xve(e,t){Un(e,"colcount",t)}function V9(e,t){Un(e,"colindex",t)}function Zve(e,t){Un(e,"colspan",t)}function qve(e,t){Un(e,"sort",t)}function Qve(e){KT(e,"sort")}function DD(e,t){$n(e,"selected",t)}function H9(e,t){Un(e,"checked",t===void 0?"mixed":t)}function Jve(e,t){$n(e,"controls",t.id),vp(t,e.id)}function ebe(e,t){$n(e,"haspopup",t===!1?null:t)}function W9(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var BM,GM,zM,_M,kD,ID,VM;function Hx(){return BM===void 0&&(BM=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),BM}function XT(){return GM===void 0&&(GM=/(firefox)/i.test(navigator.userAgent)),GM}function j9(){return zM===void 0&&(zM=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),zM}function au(){return _M===void 0&&(_M=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),_M}function RF(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!XT())?null:t.toString()}function tbe(){if(VM!==void 0)return VM;if(!document.body)return-1;let e=1e6;const t=XT()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),VM=e,e}function ibe(){return ID==null&&$9(),ID}function $9(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(ID=i,kD=i===0)}function U9(){return kD==null&&$9(),kD}function TF(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var obe="[tabindex], input, select, button, textarea, [href]",K9="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function ZT(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,K9),n=Zs(e);return o&&!s&&n}function $e(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||B9(e,!t)}function sbe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||B9(e,!t)}function qT(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function lu(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function xg(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function Wx(e){const t=xg(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function km(e){const t=xg(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Y9(e){const{height:t,marginBottom:i,marginTop:o}=xg(e);return Math.floor(t+i+o)}function QC(e){const{width:t,marginLeft:i,marginRight:o}=xg(e);return Math.floor(t+i+o)}function X9(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=xg(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function JC(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function e0(e,t,i){i&&(t*=-1),e.scrollLeft=t}function Ys(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Qr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Z9(e){return!!e.offsetParent}function Zs(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Z9(e)||window.getComputedStyle(e).visibility!=="visible")}function jx(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function q9(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Q9(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function nbe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function qy(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=nbe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function rbe(e){return e.clientWidth<e.scrollWidth}function abe(e){return e.clientHeight<e.scrollHeight}function t0(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):na(e,t)}function na(e,t){t=QT(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Tf(e,t){t=QT(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function QT(e){return typeof e=="number"?`${e}px`:e}function $x(e){return e instanceof Node||e instanceof HTMLElement}function Jh(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function md(e,t,i){const s=c6(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function lbe(e){const t=Cp(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function J9(e,t){if(!e.gos.get("enableCellTextSelection")||!XT()&&!Hx())return t();const{selection:o,ranges:s}=lbe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function xr(e,t){const i=c6(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var e6="data-ref",HM;function LF(){return HM??(HM=document.createTextNode(" ")),HM.cloneNode()}function It(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(e6,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(LF()),l=!1),a.append(It(c)),a.appendChild(LF())))}return a}function ks(e){return e==null||e===""?null:e}function Ce(e){return e!=null&&e!==""}function wt(e){return!Ce(e)}function al(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Im(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function Xb(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var t6="https://www.ag-grid.com",EF={};function JT(e,t){EF[t]||(e(),EF[t]=!0)}function Am(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Lf(e,...t){JT(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function ep(e,...t){JT(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var cbe={pending:!1,funcs:[]},dbe={pending:!1,funcs:[]};function AD(e,t="setTimeout",i){const o=t==="raf"?dbe:cbe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?xr(i,s):window.setTimeout(s,0)}function xs(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function PF(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function i6(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var He="33.2.4",NF=2e3,OF=100,o6="_version_",s6=null,cu=`${t6}/javascript-data-grid`;function ube(e){s6=e}function hbe(e){cu=e}function n6(e,t,i){return s6?.getConsoleMessage(e,t)??[mbe(e,t,i)]}function eL(e,t,i,o){e(`error #${t}`,...n6(t,i,o))}function pbe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function gbe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=pbe(e)),t}function i0(e){return e===void 0?"undefined":e===null?"null":e}function RD(e,t){return`${e}?${t.toString()}`}function fbe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=RD(e,t);for(const[n,r]of o){if(n===o6)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>OF?r.slice(0,r.length-c)+l:r.slice(0,OF)+l;t.set(n,d),s=RD(e,t)}return s}function r6(e,t){const i=new URLSearchParams;if(i.append(o6,He),t)for(const n of Object.keys(t))i.append(n,gbe(t[n]));const o=`${cu}/errors/${e}`,s=RD(o,i);return s.length<=NF?s:fbe(o,i,NF)}var mbe=(e,t,i)=>{const o=r6(e,t);return`${i?i+`
|
|
21
|
+
`;E.ModuleRegistry.registerMany([eee,Cee,wee,kee,Ree]);function Pve(){E.moduleRegistry.register(lJ,vJ,Eee,fse,Dse,Mae,bne,$ae,Cle,Vle,Cce,Bce,Epe,Lse,Ose,Xse,Qse,pne,rue,xde,que,Tue,She,tpe,Phe,Gne,hre,pae,gde,Tpe,CJ,Ege,Pge,rfe,hfe,$J,Wfe,ZJ,sye,Ime,qne,Xpe,wye,Jne,Fye,yre,ive,Lve,eae),E.enterpriseModule.isEnterprise=!0,E.enterpriseModule.styles=Eve,E.enterpriseModule.licenseManager=e=>new _h(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),E.enterpriseModule.injectWatermark=gae}Pve();var Nve={setLicenseKey(e){_h.setLicenseKey(e)}};An.create.bind(An),An.__createSparkline.bind(An),_h.setGridContext.bind(_h),_h.setLicenseKey.bind(_h);function WT(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function jT(e,t){const i=Number(e);return isFinite(i)?String(e):i.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t})}function L9(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function E9(e,t){const i=WT(e);return i===""?"":"$"+jT(i,L9(t))}function Ove(e,t){return WT(e)===""?"":jT(e.value*100,L9(t))+"%"}function Fve(e){const t=WT(e);return t===""?"":jT(t,0)}function Bve(e,t){return e.value}const Gve={key:0,class:"pv-flex pv-chart-loading"},zve=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;Nve.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:h=>{s("series-visibility-change",h)}},a=m.ref(null),l=m.computed(()=>(u.value?.series||[]).some(p=>p.type==="map-shape")),c=m.computed(()=>{const h=u.value?.series||[];let p=!1;return h.forEach(g=>{g.type==="bar"&&g.direction==="horizontal"&&(p=!0)}),p}),d=m.computed(()=>{if(o.seriesFormatType==="currency")return E9;if(o.seriesFormatType==="percent")return 0}),u=m.computed(()=>{const h={...o.options};return h.theme||(h.theme=wQ),h.overlays||(h.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),h.axes||(h.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:d.value}}]),h.contextMenu||(h.contextMenu={enabled:!1}),h.listeners={...h.listeners||{},...r},h});return t({getChartImageDataURL:h=>a.value?.chart?.getImageDataURL({width:h?.width,height:h?.height})}),(h,p)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(bQ),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":"min-height: 450px"]),options:u.value},null,8,["style","options"]),h.isLoading?(m.openBlock(),m.createElementBlock("div",Gve,[m.createVNode(Wi,{class:"pv-margin-auto pv-chart-loading-icon",name:l.value?"map":"chart-column",size:32},null,8,["name"])])):m.createCommentVNode("",!0)]))}}),Ea=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},$T=Ea(zve,[["__scopeId","data-v-2f5dcc04"]]);var ml=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function _ve(e,t){return t}function UT(e){return e?.getLocaleTextFunc()??_ve}function $n(e,t,i){i==null||typeof i=="string"&&i==""?KT(e,t):Un(e,t,i)}function Un(e,t,i){e.setAttribute(P9(t),i.toString())}function KT(e,t){e.removeAttribute(P9(t))}function P9(e){return`aria-${e}`}function os(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Vve(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Hve(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Wve(e){return e.getAttribute("aria-label")}function Xs(e,t){$n(e,"label",t)}function vp(e,t){$n(e,"labelledby",t)}function YT(e,t){$n(e,"describedby",t)}function N9(e,t){$n(e,"live",t)}function jve(e,t){$n(e,"atomic",t)}function $ve(e,t){$n(e,"relevant",t)}function O9(e,t){$n(e,"level",t)}function F9(e,t){$n(e,"disabled",t)}function B9(e,t){$n(e,"hidden",t)}function yl(e,t){Un(e,"expanded",t)}function Uve(e){KT(e,"expanded")}function G9(e,t){Un(e,"setsize",t)}function z9(e,t){Un(e,"posinset",t)}function Kve(e,t){Un(e,"multiselectable",t)}function Yve(e,t){Un(e,"rowcount",t)}function _9(e,t){Un(e,"rowindex",t)}function Xve(e,t){Un(e,"colcount",t)}function V9(e,t){Un(e,"colindex",t)}function Zve(e,t){Un(e,"colspan",t)}function qve(e,t){Un(e,"sort",t)}function Qve(e){KT(e,"sort")}function DD(e,t){$n(e,"selected",t)}function H9(e,t){Un(e,"checked",t===void 0?"mixed":t)}function Jve(e,t){$n(e,"controls",t.id),vp(t,e.id)}function ebe(e,t){$n(e,"haspopup",t===!1?null:t)}function W9(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var BM,GM,zM,_M,kD,ID,VM;function Hx(){return BM===void 0&&(BM=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),BM}function XT(){return GM===void 0&&(GM=/(firefox)/i.test(navigator.userAgent)),GM}function j9(){return zM===void 0&&(zM=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),zM}function au(){return _M===void 0&&(_M=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),_M}function RF(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!XT())?null:t.toString()}function tbe(){if(VM!==void 0)return VM;if(!document.body)return-1;let e=1e6;const t=XT()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),VM=e,e}function ibe(){return ID==null&&$9(),ID}function $9(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(ID=i,kD=i===0)}function U9(){return kD==null&&$9(),kD}function TF(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var obe="[tabindex], input, select, button, textarea, [href]",K9="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function ZT(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,K9),n=Zs(e);return o&&!s&&n}function $e(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||B9(e,!t)}function sbe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||B9(e,!t)}function qT(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function lu(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function xg(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function Wx(e){const t=xg(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function km(e){const t=xg(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Y9(e){const{height:t,marginBottom:i,marginTop:o}=xg(e);return Math.floor(t+i+o)}function QC(e){const{width:t,marginLeft:i,marginRight:o}=xg(e);return Math.floor(t+i+o)}function X9(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=xg(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function JC(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function e0(e,t,i){i&&(t*=-1),e.scrollLeft=t}function Ys(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Qr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Z9(e){return!!e.offsetParent}function Zs(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Z9(e)||window.getComputedStyle(e).visibility!=="visible")}function jx(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function q9(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Q9(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function nbe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function qy(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=nbe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function rbe(e){return e.clientWidth<e.scrollWidth}function abe(e){return e.clientHeight<e.scrollHeight}function t0(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):na(e,t)}function na(e,t){t=QT(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Tf(e,t){t=QT(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function QT(e){return typeof e=="number"?`${e}px`:e}function $x(e){return e instanceof Node||e instanceof HTMLElement}function Jh(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function md(e,t,i){const s=c6(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function lbe(e){const t=Cp(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function J9(e,t){if(!e.gos.get("enableCellTextSelection")||!XT()&&!Hx())return t();const{selection:o,ranges:s}=lbe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function xr(e,t){const i=c6(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var e6="data-ref",HM;function LF(){return HM??(HM=document.createTextNode(" ")),HM.cloneNode()}function It(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(e6,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(LF()),l=!1),a.append(It(c)),a.appendChild(LF())))}return a}function ks(e){return e==null||e===""?null:e}function Ce(e){return e!=null&&e!==""}function wt(e){return!Ce(e)}function al(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Im(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function Xb(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var t6="https://www.ag-grid.com",EF={};function JT(e,t){EF[t]||(e(),EF[t]=!0)}function Am(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Lf(e,...t){JT(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function ep(e,...t){JT(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var cbe={pending:!1,funcs:[]},dbe={pending:!1,funcs:[]};function AD(e,t="setTimeout",i){const o=t==="raf"?dbe:cbe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?xr(i,s):window.setTimeout(s,0)}function xs(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function PF(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function i6(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var He="33.2.4",NF=2e3,OF=100,o6="_version_",s6=null,cu=`${t6}/javascript-data-grid`;function ube(e){s6=e}function hbe(e){cu=e}function n6(e,t,i){return s6?.getConsoleMessage(e,t)??[mbe(e,t,i)]}function eL(e,t,i,o){e(`error #${t}`,...n6(t,i,o))}function pbe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function gbe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=pbe(e)),t}function i0(e){return e===void 0?"undefined":e===null?"null":e}function RD(e,t){return`${e}?${t.toString()}`}function fbe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=RD(e,t);for(const[n,r]of o){if(n===o6)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>OF?r.slice(0,r.length-c)+l:r.slice(0,OF)+l;t.set(n,d),s=RD(e,t)}return s}function r6(e,t){const i=new URLSearchParams;if(i.append(o6,He),t)for(const n of Object.keys(t))i.append(n,gbe(t[n]));const o=`${cu}/errors/${e}`,s=RD(o,i);return s.length<=NF?s:fbe(o,i,NF)}var mbe=(e,t,i)=>{const o=r6(e,t);return`${i?i+`
|
|
22
22
|
`:""}Visit ${o}${i?"":`
|
|
23
23
|
Alternatively register the ValidationModule to see the full message in the console.`}`};function he(...e){eL(Lf,e[0],e[1])}function We(...e){eL(ep,e[0],e[1])}function TD(e,t,i){eL(ep,e,t,i)}function ybe(e,t){const i=t[0];return`error #${i} `+n6(i,t[1],e).join(" ")}function Bc(...e){return ybe(void 0,e)}function a6(e,t){return e.get("rowModelType")===t}function Br(e,t){return a6(e,"clientSide")}function qs(e,t){return a6(e,"serverSide")}function Lo(e,t){return e.get("domLayout")===t}function Jr(e){return s0(e)!==void 0}function tL(e){return typeof e.get("getRowHeight")=="function"}function vbe(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Mn(e,t,i=!1,o){const{gos:s,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),tL(s)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},c=s.getCallback("getRowHeight")(l);if(LD(c))return c===0&&he(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&s.get("masterDetail"))return bbe(s);const r=s.get("rowHeight");return{height:r&&LD(r)?r:o,estimated:!1}}function bbe(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return LD(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Vc(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||wt(o))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return s!==-1?s:(he(24),t.getDefaultRowHeight())}function LD(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function l6(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function bp(e,t,i,o){const s=e.getDomDataKey();let n=t[s];wt(n)&&(n={},t[s]=n),n[i]=o}function Yt(e){const{gos:t,eGridDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&Ce(s)?o=s():i&&(o=i.ownerDocument),o&&Ce(o)?o:document}function c6(e){return Yt(e).defaultView||window}function Cp(e){return e.eGridDiv.getRootNode()}function Tt(e){return Cp(e).activeElement}function iL(e){let t=null,i=null;try{t=Yt(e).fullscreenElement}catch{}finally{t||(t=Cp(e));const o=t.querySelector("body");o?i=o:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function Cbe(e){return iL(e)?.clientWidth??(window.innerHeight||-1)}function Sbe(e){return iL(e)?.clientHeight??(window.innerHeight||-1)}function xbe(e,t,i){const s=e.getBoundingClientRect().height,n=Cbe(i)-2,r=Sbe(i)-2;if(!e.offsetParent)return;const l=X9(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-s/2,h=d-l.left-10;const p=Yt(i),g=p.defaultView||window,f=g.pageYOffset||p.documentElement.scrollTop,v=g.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+v&&(h=n+v-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}function o0(e){const t=Yt(e),i=Tt(e);return i===null||i===t.body}function tp(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Ux(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Lo(e,"print"))}function cr(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Rm(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function oL(e){return e.get("grandTotalRow")}function Sp(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function sL(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function Kx(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Tm(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let o=t(i);return typeof o!="string"&&(he(25,{id:o}),o=String(o)),o}}function wbe(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Mbe(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function Dbe(e,t){const i=e.get("suppressGroupChangesColumnVisibility");if(i===!0||t&&i==="suppressHideOnGroup"||!t&&i==="suppressShowOnUngroup")return!1;const o=e.get("suppressRowGroupHidesColumns");if(t&&o===!0)return!1;const s=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&s===!0)}function du(e){return e?.checkboxes??!0}function Zb(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Lm(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function WM(e){return e?.hideDisabledCheckboxes??!1}function d6(e){return typeof e.get("rowSelection")!="string"}function wu(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function u6(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return i&&o?!1:i?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function kbe(e){const t=u6(e);return t===!0||t==="enableSelection"}function Ibe(e){const t=u6(e);return t===!0||t==="enableDeselection"}function ED(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function s0(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Mu(e){return s0(e)==="multiRow"}function Abe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function h6(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function p6(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function Em(e){const t=h6(e);return t==="descendants"||t==="filteredDescendants"}function jM(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Qi(e){return e.get("columnMenu")==="legacy"}function g6(e){return!Qi(e)}function nL(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Rbe(e,t,i){typeof e!="object"&&(e={});const o={...e};return i.forEach(s=>{const n=t[s];typeof n<"u"&&(o[s]=n)}),o}function Tbe(e,t){if(!e)return;const i={};let o=!1;if(Object.keys(e).forEach(r=>{i[r]=e[r],o=!0}),!o)return;const s={type:"gridOptionsChanged",options:i};t.dispatchEvent(s);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function Le(e,t){return e.addGridCommonParams(t)}function f6(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}var m6="__ag_Grid_Stop_Propagation",Lbe=["touchstart","touchend","touchmove","touchcancel","scroll"],Ebe=["wheel"],$M={};function vl(e){e[m6]=!0}function mr(e){return e[m6]===!0}var y6=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof $M[i]=="boolean")return $M[i];const o=document.createElement(e[i]||"div");return i="on"+i,$M[i]=i in o}})();function v6(e,t,i){let o=t;for(;o;){const s=l6(e,o,i);if(s)return s;o=o.parentElement}return null}function PD(e,t){return!t||!e?!1:Nbe(t).indexOf(e)>=0}function Pbe(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function Nbe(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Pbe(t)}function Obe(e,t,i,o){const s=b6(i);let n;s!=null&&(n={passive:s}),e&&e.addEventListener&&e.addEventListener(t,i,o,n)}var b6=e=>{const t=Lbe.includes(e),i=Ebe.includes(e);if(t)return!0;if(i)return!1},oe=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new ml),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const o of Object.keys(t)){const s=t[o];s&&i.push(this._setupListener(e,o,s))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;return Fbe(e)?(e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null)):(e instanceof HTMLElement?Obe(this.beans.frameworkOverrides,e,t,i):e.addEventListener(t,i),o=()=>(e.removeEventListener(t,i),null)),this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}setupGridOptionListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=s.changeSet.id}const n={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};t(n)};e.forEach(s=>this.setupGridOptionListener(s,o))}getLocaleTextFunc(){return UT(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function Fbe(e){return e.__addEventListener!==void 0}var C6=new Set(["__proto__","constructor","prototype"]);function Bbe(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e))t(i,e[i])}}function Eo(e,t,i=!0,o=!1){Ce(t)&&Bbe(t,(s,n)=>{if(C6.has(s))return;let r=e[s];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[s]=r),FF(n)&&FF(r)&&!Array.isArray(r)?Eo(r,n,i,o):(i||n!==void 0)&&(e[s]=n))})}function Ef(e,t,i){if(!t||!e)return;if(!i)return e[t];const o=t.split(".");let s=e;for(let n=0;n<o.length;n++){if(s==null)return;s=s[o[n]]}return s}function FF(e){return typeof e=="object"&&e!==null}var Gbe=/[&<>"']/g,zbe={"&":"&","<":"<",">":">",'"':""","'":"'"};function En(e,t){if(e==null)return null;const i=e.toString().toString();return t?i:i.replace(Gbe,o=>zbe[o])}var _be={resizable:!0,sortable:!0},Vbe=0;function S6(){return Vbe++}function ua(e){return e instanceof Yx}var Yx=class extends oe{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=S6(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new ml,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=En(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const s=e.hide;s!==void 0?this.visible=!s:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ce(t)&&t.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=Ce(i)&&i.indexOf(".")>=0&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const i=e.width,o=e.initialWidth;return i!=null?t=i:o!=null?t=o:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return Le(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable(this,e)??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??_be[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return Le(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return wt(this.sort)}isSorting(){return Ce(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return he(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const i=e===!0;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Le(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(wt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(wt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,i){const o=this.createColumnEvent(e,t);i&&Eo(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function zi(e){return e instanceof Pf}var Pf=class extends oe{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=S6(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{ua(t)?e.push(t):zi(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const s=e&&t&&i;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{i.forEach(o=>{zi(o)&&o.isPadding()?t(o.children):e.push(o)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Hbe={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Wbe=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=al(e);let i=0;for(;;){let o=e??t;if(o?i!==0&&(o+="_"+i):o=i,!this.existingKeys[o])return this.existingKeys[o]=!0,String(o);i++}}},ND=Object.freeze([]);function et(e){if(e?.length)return e[e.length-1]}function yr(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((o,s)=>i?i(o,t[s]):t[s]===o)}function gb(e,t){if(e)for(const i of e)t(i)}function As(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function BF(e,t,i){for(let o=0;o<t.length;o++)As(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}var Du="ag-Grid-AutoColumn",x6="ag-Grid-SelectionColumn",jbe="ag-Grid-RowNumbersColumn";function rL(e){const t=[],i=o=>{for(let s=0;s<o.length;s++){const n=o[s];ua(n)?t.push(n):zi(n)&&i(n.getChildren())}};return i(e),t}function Dh(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function Hc(e,t,i){const o={};if(!t)return;ll(null,t,n=>{o[n.getInstanceId()]=n}),i&&ll(null,i,n=>{o[n.getInstanceId()]=null});const s=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(s)}function Xx(e){return e.getId().startsWith(Du)}function bl(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(x6)??!1}function Pm(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(jbe)??!1}function n0(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function w6(e,t){return yr(e,t,(i,o)=>i.getColId()===o.getColId())}function M6(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function uu(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function aL(e,t){const i=e===t,o=e.getColDef()===t,s=e.getColId()==t;return i||o||s}var $be=(e,t)=>(i,o)=>{const s={value1:void 0,value2:void 0};let n=!1;return e&&(e[i]!==void 0&&(s.value1=e[i],n=!0),Ce(o)&&e[o]!==void 0&&(s.value2=e[o],n=!0)),!n&&t&&(t[i]!==void 0&&(s.value1=t[i]),Ce(o)&&t[o]!==void 0&&(s.value2=t[o])),s};function D6(e,t=null,i,o,s){const n=new Wbe,{existingCols:r,existingGroups:a,existingColKeys:l}=Ube(o);n.addExistingKeys(l);const c=k6(e,t,0,i,r,n,a,s),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return ll(null,h,(g,f)=>{zi(g)&&g.setupExpandable(),g.originalParent=f}),{columnTree:h,treeDept:u}}function Ube(e){const t=[],i=[],o=[];return e&&ll(null,e,s=>{if(zi(s)){const n=s;i.push(n)}else{const n=s;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}function k6(e,t,i,o,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&Qbe(u)?c[d]=l.createProvidedColumnGroup(o,u,i,s,n,r,a):c[d]=Kbe(e,o,u,s,n,a)}return c}function Kbe(e,t,i,o,s,n){const r=Xbe(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=r0(e,i,a.getColId());a.setColDef(l,i,n),Ybe(e,a,l,n)}else{const l=s.getUniqueKey(i.colId,i.field),c=r0(e,i,l);a=new Yx(c,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function I6(e,t,i,o,s,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),s!==void 0&&l.setColSortIndex(t,s)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function Ybe(e,t,i,o){I6(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const s=t.getFlex();if(!(s!=null&&s>0))if(i.width!=null)t.setActualWidth(i.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function Xbe(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}function r0(e,t,i,o){const{gos:s,dataTypeSvc:n,validation:r}=e,a={},l=s.get("defaultColDef");Eo(a,l,!1,!0);const c=Zbe(e,a,t,i);c&&qbe(e,c,a),Eo(a,t,!1,!0);const d=s.get("autoGroupColumnDef"),u=cr(s);return t.rowGroup&&d&&u&&Eo(a,{sort:d.sort,initialSort:d.initialSort},!1,!0),n?.validateColDef(a),r?.validateColDef(a,i,o),a}function Zbe(e,t,i,o){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),n=i.type??s??t.type;return t.type=n,n?n0(n):void 0}function qbe(e,t,i){if(!t.length)return;const o=Object.assign({},Hbe),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const r=s[n];n in o?he(34,{key:n}):(r.type&&he(35),o[n]=r)}t.forEach(n=>{const r=o[n.trim()];r?Eo(i,r,!1,!0):he(36,{t:n})})}function Qbe(e){return e.children!==void 0}function ll(e,t,i){if(t)for(let o=0;o<t.length;o++){const s=t[o];zi(s)&&ll(s,s.getChildren(),i),i(s,e)}}function A6(e,t){const i=[],o=[],s=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?s.push(r):a==="left"||a===!0?i.push(r):o.push(r)}),t.get("enableRtl")?[...s,...o,...i]:[...i,...o,...s]}function R6(e,t){let i=!0;return ll(null,t,o=>{if(!zi(o))return;const s=o,n=s.getColGroupDef();if(!(n&&n.marryChildren))return;const a=[];s.getLeafColumns().forEach(h=>{const p=e.indexOf(h);a.push(p)});const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=s.getLeafColumns().length-1;d>u&&(i=!1)}),i}function T6(e,t){if(!e||e.length==0)return;const i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function L6(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=T6(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:s??null,columns:t,column:o,source:i})}function Jbe(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=T6(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:o,source:i})}function E6(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&i.length==1?i[0]:null,source:o})}function a0(e,t,i,o,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:s,finished:i,source:o})}function Is(e,t,i){const{colModel:o,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:p,gos:g}=e,f=o.getColDefCols()||[];if(!f?.length)return!1;if(t?.state&&!t.state.forEach)return he(32),!1;const v=(x,D,A,k,w)=>{if(!x)return;const M=$be(D,t.defaultState),R=M("flex").value1;if(I6(e,x,M("hide").value1,M("sort").value1,M("sortIndex").value1,M("pinned").value1,R,i),R==null){const L=M("width").value1;if(L!=null){const P=x.getColDef().minWidth??u.getDefaultColumnMinWidth();P!=null&&L>=P&&x.setActualWidth(L,i)}}w||!x.isPrimary()||(h?.syncColumnWithState(x,i,M),s?.syncColumnWithState(x,i,M,A),n?.syncColumnWithState(x,i,M,k))},y=(x,D,A)=>{const k=N6(e,i),w=D.slice(),M={},R={},L=[],P=[],N=[];let O=0;const F=s?.columns.slice()??[],z=n?.columns.slice()??[];x.forEach(G=>{const H=G.colId;if(H.startsWith(Du)){L.push(G),N.push(G);return}if(bl(H)){P.push(G),N.push(G);return}const W=A(H);W?(v(W,G,M,R,!1),As(w,W)):(N.push(G),O+=1)});const _=G=>v(G,null,M,R,!1);w.forEach(_),s?.sortColumns(GF.bind(s,M,F)),n?.sortColumns(GF.bind(n,R,z)),o.refreshCols(!1);const V=(G,H,B=[])=>{H.forEach(W=>{const j=G(W.colId);As(B,j),v(j,W,null,null,!0)}),B.forEach(_)};return V(G=>r?.getColumn(G)??null,L,r?.getColumns()?.slice()),V(G=>a?.getColumn(G)??null,P,a?.getColumns()?.slice()),eCe(t,o,g),c.refresh(i),p.dispatchEvent({type:"columnEverythingChanged",source:i}),k(),{unmatchedAndAutoStates:N,unmatchedCount:O}};l?.start();let{unmatchedAndAutoStates:C,unmatchedCount:S}=y(t.state||[],f,x=>o.getColDefCol(x));if(C.length>0||Ce(t.defaultState)){const x=d?.getPivotResultCols()?.list??[];S=y(C,x,D=>d?.getPivotResultCol(D)??null).unmatchedCount}return l?.finish(),S===0}function P6(e,t){const{colModel:i,autoColSvc:o,selectionColSvc:s}=e,n=i.getColDefCols();if(!n?.length)return;const r=i.getColDefColTree(),a=rL(r),l=[];let c=1e3,d=1e3;const u=v=>{const y=O6(v);wt(y.rowGroupIndex)&&y.rowGroup&&(y.rowGroupIndex=c++),wt(y.pivotIndex)&&y.pivot&&(y.pivotIndex=d++),l.push(y)};o?.getColumns()?.forEach(u),s?.getColumns()?.forEach(u),a?.forEach(u),Is(e,{state:l},t);const h=o?.getColumns()??[],f=[...s?.getColumns()??[],...h,...n].map(v=>({colId:v.colId}));Is(e,{state:f,applyOrder:!0},t)}function N6(e,t){const{rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:i?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},c=Nm(e),d={};return c.forEach(u=>{d[u.colId]=u}),()=>{const u=(A,k,w,M)=>{const R=k.map(M),L=w.map(M);if(yr(R,L))return;const N=new Set(k);w.forEach(F=>{N.delete(F)||N.add(F)});const O=[...N];a.dispatchEvent({type:A,columns:O,column:O.length===1?O[0]:null,source:t})},h=A=>{const k=[];return n.forAllCols(w=>{const M=d[w.getColId()];M&&A(M,w)&&k.push(w)}),k},p=A=>A.getColId();u("columnRowGroupChanged",l.rowGroupColumns,i?.columns??[],p),u("columnPivotChanged",l.pivotColumns,o?.columns??[],p);const f=h((A,k)=>{const w=A.aggFunc!=null,M=w!=k.isValueActive(),R=w&&A.aggFunc!=k.getAggFunc();return M||R});f.length>0&&E6(a,"columnValueChanged",f,t),a0(a,h((A,k)=>A.width!=k.getActualWidth()),!0,t),L6(a,h((A,k)=>A.pinned!=k.getPinned()),t),Jbe(a,h((A,k)=>A.hide==k.isVisible()),t);const x=h((A,k)=>A.sort!=k.getSort()||A.sortIndex!=k.getSortIndex());x.length>0&&r?.dispatchSortChangedEvents(t,x);const D=Nm(e);iCe(c,D,t,n,a)}}function Nm(e){const{colModel:t,rowGroupColsSvc:i,pivotColsSvc:o}=e,s=t.getColDefCols();if(wt(s)||!t.isAlive())return[];const n=i?.columns,r=o?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,p=d.isValueActive()?d.getAggFunc():null,g=d.getSort()!=null?d.getSort():null,f=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:g,sortIndex:f,aggFunc:p,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,p=c.has(u.colId)?c.get(u.colId):-1;return h-p}),a}function O6(e){const t=(g,f)=>g??f??null,i=e.getColDef(),o=t(i.sort,i.initialSort),s=t(i.sortIndex,i.initialSortIndex),n=t(i.hide,i.initialHide),r=t(i.pinned,i.initialPinned),a=t(i.width,i.initialWidth),l=t(i.flex,i.initialFlex);let c=t(i.rowGroupIndex,i.initialRowGroupIndex),d=t(i.rowGroup,i.initialRowGroup);c==null&&(d==null||d==!1)&&(c=null,d=null);let u=t(i.pivotIndex,i.initialPivotIndex),h=t(i.pivot,i.initialPivot);u==null&&(h==null||h==!1)&&(u=null,h=null);const p=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:s,hide:n,pinned:r,width:a,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:p}}function eCe(e,t,i){if(!e.applyOrder||!e.state)return;const o=[];e.state.forEach(s=>{s.colId!=null&&o.push(s.colId)}),tCe(t.cols,o,t,i)}function tCe(e,t,i,o){if(e==null)return;let s=[];const n={};t.forEach(a=>{if(n[a])return;const l=e.map[a];l&&(s.push(l),n[a]=!0)});let r=0;if(e.list.forEach(a=>{const l=a.getColId();if(n[l]!=null)return;l.startsWith(Du)?s.splice(r++,0,a):s.push(a)}),s=A6(s,o),!R6(s,i.getColTree())){he(39);return}e.list=s}function iCe(e,t,i,o,s){const n={};t.forEach(d=>n[d.colId]=d);const r={};e.forEach(d=>{n[d.colId]&&(r[d.colId]=!0)});const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a&&a[u];if(h&&h.colId!==d.colId){const p=o.getCol(h.colId);p&&c.push(p)}}),c.length&&s.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:i})}var GF=(e,t,i,o)=>{const s=e[i.getId()],n=e[o.getId()],r=s!=null,a=n!=null;if(r&&a)return s-n;if(r)return-1;if(a)return 1;const l=t.indexOf(i),c=t.indexOf(o),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},oCe=class extends oe{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],e=>this.refreshAll(uu(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),uu(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:i,colAutosize:o,rowGroupColsSvc:s,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,colViewport:l,eventSvc:c}=t,d=this.colDefs?N6(t,e):void 0;i?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=D6(t,this.colDefs,!0,h,e);Hc(t,this.colDefCols?.tree,p.columnTree);const g=p.columnTree,f=p.treeDept,v=rL(g),y={};v.forEach(C=>y[C.getId()]=C),this.colDefCols={tree:g,treeDepth:f,list:v,map:y},s?.extractCols(e,u),n?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&o?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:s,quickFilter:n,pivotResultCols:r,showRowGroupCols:a,rowAutoHeight:l,visibleCols:c,colViewport:d,eventSvc:u}=this.beans,h=this.selectCols(r,this.colDefCols);this.createColumnsForService([i,o,s],h);const p=vbe(this.gos,this.showingPivotResult);(!e||p)&&this.restoreColOrder(h),this.positionLockedCols(h),a?.refresh(),n?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(h),c.clear(),d.clear(),!yr(t,this.cols.tree)&&u.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)}),i.addColumns(t))}selectCols(e,t){const i=e?.getPivotResultCols()??null;this.showingPivotResult=i!=null;const{map:o,list:s,tree:n,treeDepth:r}=i??t;return this.cols={list:s.slice(),map:{...o},tree:n.slice(),treeDepth:r},i&&(i.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter(o=>{const s=Xx(o);if(e){const n=t?.includes(o);return s||n}else return s||o.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){Is(this.beans,{state:e.map(o=>({colId:typeof o=="string"?o:o.getColId(),hide:!t}))},i)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const i=new Map(t.map((c,d)=>[c,d]));if(!e.list.some(c=>i.has(c)))return;const s=new Map(e.list.map(c=>[c,!0])),n=t.filter(c=>s.has(c)),r=new Map(n.map(c=>[c,!0])),a=e.list.filter(c=>!r.has(c)),l=n.slice();a.forEach(c=>{let d=c.getOriginalParent();if(!d){l.push(c);return}const u=[];for(;!u.length&&d;)d.getLeafColumns().forEach(f=>{const v=l.indexOf(f)>=0,y=u.indexOf(f)<0;v&&y&&u.push(f)}),d=d.getOriginalParent();if(!u.length){l.push(c);return}const h=u.map(g=>l.indexOf(g)),p=Math.max(...h);l.splice(p+1,0,c)}),e.list=l}positionLockedCols(e){e.list=A6(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:i,eventSvc:o}=this.beans;i.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=uu(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Hc(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:i,selectionColSvc:o}=this.beans;gb(this.colDefCols?.list,e),gb(i?.columns?.list,e),gb(o?.columns?.list,e),gb(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){if(t==null)return null;const{map:i,list:o}=t;if(typeof e=="string"&&i[e])return i[e];for(let s=0;s<o.length;s++)if(aL(o[s],e))return o[s];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},lL=class extends oe{constructor(){super(...arguments),this.dispatchColumnChangedEvent=E6,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols}sortColumns(e){this.columns.sort(e),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,i,o,s,n,r){const a=this.colModel.getCols();if(!a||a.length===0)return;const l=new Map;t.forEach((d,u)=>l.set(d,u)),t.length=0,Ce(e)&&e.forEach(d=>{const u=this.colModel.getColDefCol(d);u&&t.push(u)}),t.forEach((d,u)=>{const h=l.get(d);if(h===void 0){l.set(d,0);return}o&&h!==u||l.delete(d)}),this.updateIndexMap(),(this.colModel.getColDefCols()||[]).forEach(d=>{const u=t.indexOf(d)>=0;n(d,u,r)}),s&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r),this.dispatchColumnChangedEvent(this.eventSvc,i,[...l.keys()],r)}updateColList(e=[],t,i,o,s,n,r){if(!e||e.length===0)return;let a=!1;const l=new Set;if(e.forEach(d=>{if(!d)return;const u=this.colModel.getColDefCol(d);if(u){if(l.add(u),i){if(t.indexOf(u)>=0)return;t.push(u)}else{const h=t.indexOf(u);if(h<0)return;for(let p=h+1;p<t.length;p++)l.add(t[p]);As(t,u)}s(u,i,r),a=!0}}),!a)return;this.updateIndexMap(),o&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r);const c=Array.from(l);this.eventSvc.dispatchEvent({type:n,columns:c,column:c.length===1?c[0]:null,source:r})}extractCols(e,t=[]){const i=this.columns,o=[],s=[],{setFlagFunc:n,getIndexFunc:r,getInitialIndexFunc:a,getValueFunc:l,getInitialValueFunc:c}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(p=>{const g=t.indexOf(p)<0,f=p.getColDef(),v=l(f),y=c(f),C=r(f),S=a(f);let x;v!==void 0?x=v:C!==void 0?C===null?x=!1:x=C>=0:g?y!==void 0?x=y:S!==void 0?x=S!=null&&S>=0:x=!1:x=i.indexOf(p)>=0,x&&((g?C!=null||S!=null:C!=null)?o.push(p):s.push(p))});const u=p=>{const g=r(p.getColDef()),f=a(p.getColDef());return g??f};o.sort((p,g)=>{const f=u(p),v=u(g);return f===v?0:f<v?-1:1});const h=[].concat(o);return i.forEach(p=>{s.indexOf(p)>=0&&h.push(p)}),s.forEach(p=>{h.indexOf(p)<0&&h.push(p)}),i.forEach(p=>{h.indexOf(p)<0&&n(p,!1,e)}),h.forEach(p=>{i.indexOf(p)<0&&n(p,!0,e)}),this.columns=h,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const i=this.columns,o=this.colModel.getColDefCols();if(!i.length||!o)return e;const s=Object.keys(t),n=new Set(s),r=new Set(s),a=new Set(i.map(S=>{const x=S.getColId();return r.delete(x),x}).concat(s)),l=[],c={};let d=0;for(let S=0;S<o.length;S++){const x=o[S].getColId();a.has(x)&&(l.push(x),c[x]=d++)}let u=1e3,h=!1,p=0;const g=this.columnOrdering.enableProp,f=this.columnOrdering.initialEnableProp,v=this.columnOrdering.indexProp,y=this.columnOrdering.initialIndexProp,C=S=>{const x=c[S];for(let D=p;D<x;D++){const A=l[D];r.has(A)&&(t[A][v]=u++,r.delete(A))}p=x};return i.forEach(S=>{const x=S.getColId();if(n.has(x))C(x),t[x][v]=u++;else{const D=S.getColDef();(D[v]===null||D[v]===void 0&&D[y]==null)&&(h||(D[g]||D[g]===void 0&&D[f]?C(x):(r.forEach(w=>{t[w][v]=u+c[w]}),u+=l.length,h=!0)),e[x]||(e[x]={colId:x}),e[x][v]=u++)}}),e}},F6=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let i;return typeof t!="number"?i=0:i=t+1,this.existingIds[e]=i,i}};function Qy(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var B6=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){this.addOrRemoveCssClass(e,!0)}removeCssClass(e){this.addOrRemoveCssClass(e,!1)}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1){o.forEach(s=>this.addOrRemoveCssClass(s,t));return}}if(this.cssClassStates[e]!==t&&e.length){const o=this.getGui();o&&o.classList.toggle(e,t),this.cssClassStates[e]=t}}},sCe=0,de=null,Ue=class extends oe{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=sCe++,this.cssClassManager=new B6(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach(t=>this.beans.environment.addGlobalCSS(t,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(e6):null}applyElementsToComponent(e,t,i,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const s=this[t];if(s===de)this[t]=o??e;else{const n=i&&i[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${s}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const o of e.childNodes??[])i.push(o);i.forEach(o=>{if(!(o instanceof HTMLElement))return;const s=this.createComponentFromElement(o,n=>{const r=n.getGui();if(r)for(const a of o.attributes??[])r.setAttribute(a.name,a.value)},t);if(s){if(s.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const n=Array.prototype.slice.call(o.children);s.addItems(n)}this.swapComponentForNode(s,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)})}createComponentFromElement(e,t,i){const o=e.nodeName,s=this.getDataRefAttribute(e),n=o.indexOf("AG-")===0,r=n?this.componentSelectors.get(o):null;let a=null;if(r){const l=i&&s?i[s]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,s,i,a),a}swapComponentForNode(e,t,i){const o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(i=>i.setAttribute("tabindex",t.toString()))}setTemplate(e,t,i){let o;typeof e=="string"||e==null?o=jx(e):o=It(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let s=0;s<t.length;s++){const n=t[s];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return e==null?null:(i||(i=this.eGui),$x(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.insertAdjacentElement("afterbegin",i)}appendChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;sbe(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;$e(this.eGui,e,{skipAriaHidden:i});const o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},Ct=class df{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new df(i=>{let o=t.length;const s=new Array(o);t.forEach((n,r)=>{n.then(a=>{s[r]=a,o--,o===0&&i(s)})})}):df.resolve()}static resolve(t=null){return new df(i=>i(t))}then(t){return new df(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(o=>i(t(o)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(i=>i(t))}onReject(t){}};function nCe(e){return e?e.prototype&&"getGui"in e.prototype:!1}function G6(e,t,i,o){const{name:s}=i;let n,r,a,l,c,d;if(t){const u=t,h=u[s+"Selector"],p=h?h(o):null,g=f=>{typeof f=="string"?n=f:f!=null&&f!==!0&&(e.isFrameworkComponent(f)?a=f:r=f)};p?(g(p.component),l=p.params,c=p.popup,d=p.popupPosition):g(u[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var rCe=class extends oe{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,i,o=!1){return this.getCompDetails(this.gridOptions,e,t,i,o)}getCompDetails(e,t,i,o,s=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=G6(this.beans.frameworkOverrides,e,t,o),p;const g=C=>{const S=this.registry.getUserComponent(n,C);S&&(l=S.componentFromFramework?void 0:S.component,c=S.componentFromFramework?S.component:void 0,p=S.params)};if(a!=null&&g(a),l==null&&c==null&&i!=null&&g(i),l&&r&&!nCe(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:C}=this.beans;s&&(a!==i||!i)?a?C?.isProvidedUserComp(a)||We(50,{compName:a}):i?C||We(260,{...this.gos.getModuleErrorParams(),propName:n,compName:i}):We(216,{name:n}):i&&!C&&We(146,{comp:i});return}const f=this.mergeParams(e,t,o,d,p),v=l==null,y=l??c;return{componentFromFramework:v,componentClass:y,params:f,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(y,v,f,t)}}newAgStackInstance(e,t,i,o){const s=!t;let n;s?n=new e:n=this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o),this.createBean(n);const r=n.init?.(i);return r==null?Ct.resolve(n):r.then(()=>n)}mergeParams(e,t,i,o=null,s){const n={...i,...s},r=e,a=r&&r[t.name+"Params"];if(typeof a=="function"){const l=a(i);Eo(n,l)}else typeof a=="object"&&Eo(n,a);return Eo(n,o),n}},aCe={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},lCe={name:"headerComponent",optionalMethods:["refresh"]},cCe={name:"innerHeaderComponent"},dCe={name:"innerHeaderGroupComponent"},uCe={name:"headerGroupComponent"},hCe={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},pCe={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},gCe={name:"loadingCellRenderer",cellRenderer:!0},fCe={name:"loadingOverlayComponent",optionalMethods:["refresh"]},mCe={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},yCe={name:"tooltipComponent"},cL={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},vCe={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},bCe={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},CCe={name:"loadingCellRenderer",cellRenderer:!0},SCe={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},xCe={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function wCe(e,t){return e.getCompDetailsFromGridOptions(aCe,"agDragAndDropImage",t,!0)}function fb(e,t,i){return e.getCompDetails(t,hCe,void 0,i)}function MCe(e,t,i){return e.getCompDetails(t,lCe,"agColumnHeader",i)}function DCe(e,t,i){return e.getCompDetails(t,cCe,void 0,i)}function kCe(e,t){const i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,uCe,"agColumnGroupHeader",t)}function ICe(e,t,i){return e.getCompDetails(t,dCe,void 0,i)}function ACe(e,t){return e.getCompDetailsFromGridOptions(bCe,void 0,t,!0)}function RCe(e,t){return e.getCompDetailsFromGridOptions(CCe,"agLoadingCellRenderer",t,!0)}function TCe(e,t){return e.getCompDetailsFromGridOptions(SCe,"agGroupRowRenderer",t,!0)}function LCe(e,t){return e.getCompDetailsFromGridOptions(xCe,"agDetailCellRenderer",t,!0)}function xp(e,t,i){return e.getCompDetails(t,pCe,void 0,i)}function ECe(e,t,i){return e.getCompDetails(t,gCe,"agSkeletonCellRenderer",i,!0)}function PCe(e,t,i,o){return e.getCompDetails(t,cL,o,i,!0)}function NCe(e,t){return e.getCompDetailsFromGridOptions(fCe,"agLoadingOverlay",t,!0)}function OCe(e,t){return e.getCompDetailsFromGridOptions(mCe,"agNoRowsOverlay",t,!0)}function FCe(e,t){return e.getCompDetails(t.colDef,yCe,"agTooltipComponent",t,!0)}function BCe(e,t,i,o){return e.getCompDetails(t,vCe,o,i)}function GCe(e,t){return G6(e,t,cL)}function zCe(e,t,i){return e.mergeParams(t,cL,i)}function zF(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var z6=new Set,l0={},ip={},qb,_6=!1,_Ce=!1;function VCe(e){const[t,i]=e.version.split(".")||[],[o,s]=qb.split(".")||[];return t===o&&i===s}function HCe(e){qb||(qb=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;if(e.version?VCe(e)||ep(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${qb}.`)):ep(t(`'${e.moduleName}' is incompatible.`)),e.validate){const i=e.validate();i.isValid||ep(`${i.message}`)}}function Om(e,t){HCe(e);const i=e.rowModels??["all"];z6.add(e);let o;t!==void 0?(_6=!0,ip[t]===void 0&&(ip[t]={}),o=ip[t]):o=l0,i.forEach(s=>{o[s]===void 0&&(o[s]={}),o[s][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(s=>Om(s,t))}function WCe(e){delete ip[e]}function V6(e,t,i){const o=s=>!!l0[s]?.[e]||!!ip[t]?.[s]?.[e];return o(i)||o("all")}function dL(){return _6}function jCe(e,t){const i=ip[e]??{};return[...Object.values(l0.all??{}),...Object.values(i.all??{}),...Object.values(l0[t]??{}),...Object.values(i[t]??{})]}function $Ce(){return new Set(z6)}function UCe(){return _Ce}var H6=class{static register(e){Om(e,void 0)}static registerModules(e){e.forEach(t=>Om(t,void 0))}},KCe=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach(t=>{const i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}),e.derivedBeans?.forEach(t=>{const{beanName:i,bean:o}=t(this);this.beans[i]=o,this.createdBeans.push(o)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(i=>{i.preWireBeans?.(this.beans),i.wireBeans?.(this.beans)}),e.forEach(i=>i.preConstruct?.()),t&&e.forEach(t),e.forEach(i=>i.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},YCe=class extends KCe{init(e){this.gridId=e.gridId,this.beans.context=this,this.destroyCallback=e.destroyCallback,super.init(e)}destroy(){super.destroy(),WCe(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}},XCe="ag-column-first",ZCe="ag-column-last";function W6(e,t,i,o){return wt(e)?[]:U6(e.headerClass,e,t,i,o)}function j6(e,t,i,o){return wt(e)?[]:U6(e.toolPanelClass,e,t,i,o)}function $6(e,t,i){e.addOrRemoveCssClass(XCe,i.isColAtEdge(t,"first")),e.addOrRemoveCssClass(ZCe,i.isColAtEdge(t,"last"))}function qCe(e,t,i,o){return Le(t,{colDef:e,column:i,columnGroup:o})}function U6(e,t,i,o,s){if(wt(e))return[];let n;if(typeof e=="function"){const r=qCe(t,i,o,s);n=e(r)}else n=e;return typeof n=="string"?[n]:Array.isArray(n)?[...n]:[]}var J={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},OD=!1,c0=0;function QCe(e){c0>0||(e.addEventListener("keydown",d0),e.addEventListener("mousedown",d0))}function JCe(e){c0>0||(e.removeEventListener("keydown",d0),e.removeEventListener("mousedown",d0))}function d0(e){const t=OD,i=e.type==="keydown";i&&(e.ctrlKey||e.metaKey||e.altKey)||t!==i&&(OD=i)}function e0e(e){const t=Yt(e);return QCe(t),c0++,()=>{c0--,JCe(t)}}function K6(){return OD}function t0e(e,t,i){t.addManagedElementListeners(i,{keydown:o=>{if(!o.defaultPrevented&&o.key===J.TAB){const s=o.shiftKey;Pa(e,i,!1,s)||ku(e,s)&&o.preventDefault()}}})}function hu(e,t,i=!1){const o=obe;let s=K9;t&&(s+=", "+t),i&&(s+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(o)).filter(l=>Zs(l)),r=Array.prototype.slice.apply(e.querySelectorAll(s));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function wr(e,t=!1,i=!1,o=!1){const s=hu(e,o?".ag-tab-guard":null,i),n=t?et(s):s[0];return n?(n.focus({preventScroll:!0}),!0):!1}function Pa(e,t,i,o){const s=hu(t,i?':not([tabindex="-1"])':null),n=Tt(e);let r;i?r=s.findIndex(l=>l.contains(n)):r=s.indexOf(n);const a=r+(o?-1:1);return a<0||a>=s.length?null:s[a]}function uL(e,t=5){let i=0;for(;e&&RF(e)===null&&++i<=t;)e=e.parentElement;return RF(e)===null?null:e}function i0e(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function pu(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function hL(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function ku(e,t,i=!1){const o=e.ctrlsSvc.get("gridCtrl");return!i&&o.focusNextInnerContainer(t)?!0:((i||!t&&!o.isDetailGrid())&&o.forceFocusOutOfContainer(t),!1)}function o0e(e,t=!1){return e===J.DELETE?!0:!t&&e===J.BACKSPACE?j9():!1}var s0e=class extends oe{constructor(e,t,i,o){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=o,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case J.ENTER:this.onEnterKeyDown(e);break;case J.F2:this.onF2KeyDown(e);break;case J.ESCAPE:this.onEscapeKeyDown(e);break;case J.TAB:this.onTabKeyDown(e);break;case J.BACKSPACE:case J.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case J.DOWN:case J.UP:case J.RIGHT:case J.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){if(!this.cellCtrl.editing){if(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const i=this.cellCtrl.getFocusedCellPosition();this.beans.navigation?.navigateToNextCell(e,t,i,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:i}=this.beans;if(!t)return;const o=t.extendLatestRangeInDirection(e);o&&i?.ensureCellVisible(o)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:i,beans:o,rowNode:s}=this,{gos:n,rangeSvc:r,eventSvc:a}=o;if(!i.editing){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),o0e(e,n.get("enableCellEditingOnBackspace"))){if(r&&wu(n))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const{column:l}=i,c=this.beans.valueSvc.getDeleteValue(l,s);s.setDataValue(l,c,"cellClear")}}else o.editSvc?.startRowOrCellEdit(i,e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){const{cellCtrl:t,beans:i}=this;if(t.editing||this.rowCtrl.editing)this.beans.editSvc?.stopRowOrCellEdit(t,!1,!1,e.shiftKey);else if(i.gos.get("enterNavigatesVertically")){const o=e.shiftKey?J.UP:J.DOWN;i.navigation?.navigateToNextCell(null,o,t.cellPosition,!1)}else i.editSvc?.startRowOrCellEdit(t,J.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing||i.editSvc?.startRowOrCellEdit(t,J.F2,e)}onEscapeKeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing&&i.editSvc?.stopRowOrCellEdit(t,!0)}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.editing)return;const o=e.key;o===J.SPACE?this.onSpaceKeyDown(e):this.beans.editSvc?.startRowOrCellEdit(this.cellCtrl,o,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;!this.cellCtrl.editing&&Jr(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"spaceKey"),e.preventDefault()}destroy(){super.destroy()}},n0e=class extends oe{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!mr(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:i,gos:o,editSvc:s}=this.beans,n=e.ctrlKey||e.metaKey;i&&n&&i.getCellRangeCount(this.cellCtrl.cellPosition)>1&&i.intersectLastRange(!0);const r=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(r);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(r)})},0),(o.get("singleClickEdit")||a.singleClickEdit)&&!o.get("suppressClickEdit")&&!(e.shiftKey&&i?.getCellRanges().length!=0)&&s?.startRowOrCellEdit(this.cellCtrl,void 0,e)}onCellDoubleClicked(e){const{column:t,beans:i,cellCtrl:o}=this,{eventSvc:s,frameworkOverrides:n,gos:r,editSvc:a}=i,l=t.getColDef(),c=o.createEvent(e,"cellDoubleClicked");s.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{n.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!r.get("singleClickEdit")&&!r.get("suppressClickEdit")&&a?.startRowOrCellEdit(o,null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:i,shiftKey:o}=e,s=e.target,{cellCtrl:n,beans:r}=this,{eventSvc:a,rangeSvc:l,rowNumbersSvc:c,focusSvc:d,gos:u}=r;if(this.isRightClickInExistingRange(e))return;const h=l&&!l.isEmpty(),p=this.containsWidget(s),{cellPosition:g}=n,f=Pm(g.column);if(c&&f&&!c.handleMouseDownOnCell(g,e)){l&&e.preventDefault(),e.stopImmediatePropagation();return}if(!o||!h){const y=u.get("enableCellTextSelection")&&e.defaultPrevented,C=(Hx()||y)&&!n.editing&&!ZT(s)&&!p;n.focusCell(C)}if(o&&h&&!d.isCellFocused(g)){e.preventDefault();const v=d.getFocusedCell();if(v){const{column:y,rowIndex:C,rowPinned:S}=v,D=r.rowRenderer.getRowByPosition({rowIndex:C,rowPinned:S})?.getCellCtrl(y);D?.editing&&D.stopEditing(),d.setFocusedCell({column:y,rowIndex:C,rowPinned:S,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!p){if(l)if(f&&e.preventDefault(),o)l.extendLatestRangeToCell(g);else{const v=t||i;l.setRangeToCell(g,v)}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const i=t.isCellInAnyRange(this.cellCtrl.cellPosition),o=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(i&&o)return!0}return!1}containsWidget(e){return lu(e,"ag-selection-checkbox",3)||lu(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,i=t.contains(e.target),o=t.contains(e.relatedTarget);return i&&o}destroy(){super.destroy()}},r0e=class extends oe{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e&&(this.refreshSpanHeight(e),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:this.refreshSpanHeight.bind(this,e),recalculateRowBounds:this.refreshSpanHeight.bind(this,e)}))}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();yr(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,i=e.getColSpan(t),o=[];if(i===1)o.push(e);else{let s=e;const n=e.getPinned();for(let r=0;s&&r<i&&(o.push(s),s=this.beans.visibleCols.getColAfter(s),!(!s||wt(s)||n!==s.getPinned()));r++);}return o}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=et(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,i=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const o=t.bodyWidth;return i+o+(e||0)}return i+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const i=Vc(this.beans)*this.rowSpan;this.eContent.style.height=`${i}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},a0e="ag-cell",l0e="ag-cell-auto-height",c0e="ag-cell-normal-height",d0e="ag-cell-focus",u0e="ag-cell-first-right-pinned",h0e="ag-cell-last-left-pinned",p0e="ag-cell-not-inline-editing",g0e="ag-cell-wrap-text",u0="cellCtrl";function Y6(e,t){return v6(e,t,u0)}var f0e=0,Qb=class extends oe{constructor(e,t,i,o){super(),this.column=e,this.rowNode=t,this.rowCtrl=o,this.rangeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.beans=i;const{colId:s,colIdSanitised:n}=e;this.instanceId=s+"-"+f0e++,this.colIdSanitised=n,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new r0e(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.mouseListener=new n0e(this,e,this.column),this.keyboardListener=new s0e(this,e,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();const{rangeSvc:t}=e;t&&wu(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(e,t,i,o,s,n,r){this.comp=e,this.eGui=t,this.printLayout=s,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),n&&this.isCellEditable()?this.beans.editSvc?.startEditing(this):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(a=>a()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e,t){const{beans:i,column:o,rowNode:s,rangeFeature:n}=this,{userCompFactory:r}=i,a=this.getValueToDisplay();let l;const c=s.stub&&s.groupData?.[o.getId()]==null,d=o.getColDef();if(c||this.isCellRenderer()){const u=this.createCellRendererParams();!c||Pm(o)?l=xp(r,d,u):l=ECe(r,d,u)}if(!l&&!c&&i.findSvc?.isMatch(s,o)){const u=this.createCellRendererParams();l=xp(r,{...o.getColDef(),cellRenderer:"agFindCellRenderer"},u)}this.comp.setRenderDetails(l,a,e),!t&&n&&xr(i,()=>n?.refreshHandle())}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e)),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e){return this.rowNode.rowPinned!=null?!1:typeof e=="function"||e===!0}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,o=Lm(t),s=bl(this.column);return i==="custom"&&o!=="selectionColumn"&&s?!1:e.checkboxSelection||s&&typeof t=="object"&&du(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e)),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource),s=this.isAutoHeight!=this.column.isAutoHeight();return t||i||o||s}onPopupEditorClosed(){this.editing&&this.beans.editSvc?.stopRowOrCellEdit(this)}stopEditing(e=!1){return this.beans.editSvc?.stopEditing(this,e)??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:i,rowNode:o,comp:s,eGui:n,beans:{valueSvc:r,gos:a}}=this;return Le(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay(i,o),setValue:c=>r.setValue(o,i,c),formatValue:this.formatValue.bind(this),data:o.data,node:o,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:s.getParentOfValue(),registerRowDragger:(c,d,u,h)=>this.registerRowDragger(c,d,h),setTooltip:(c,d)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,d),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell(e){if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),i=e!=null&&!!e.newData,o=e!=null&&!!e.suppressFlash,s=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,n=e&&e.forceRefresh||s||i,r=!!this.comp,a=this.updateAndFormatValue(r),l=n||a;if(r){if(l){this.showValue(i,!1);const c=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!o&&!c&&t.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,i=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i:!0}valuesAreEqual(e,t){const i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){const t=this.eGui;bp(this.beans.gos,t,u0,this),e.addDestroyFunc(()=>bp(this.beans.gos,t,u0,null))}createEvent(e,t){const{rowNode:i,column:o,value:s,beans:n}=this;return Le(n.gos,{type:t,node:i,data:i.data,value:s,column:o,colDef:o.getColDef(),rowPinned:i.rowPinned,event:e,rowIndex:i.rowIndex})}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:i}=this;$6(e,t,i.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);V9(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e})}restoreFocus(e=!1){if(!this.comp||this.editing||!this.isCellFocused()||!this.beans.focusSvc.shouldTakeFocus())return;const t=()=>{if(!this.isAlive())return;const i=this.comp.getFocusableElement();this.isCellFocused()&&i.focus({preventScroll:!0})};if(e){setTimeout(t,0);return}t()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(Pm(this.column)&&(e=!0),Jh(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(u0e,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(h0e,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(hL(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const i=this.isCellFocused();if(this.comp.addOrRemoveCssClass(d0e,i),i&&e&&e.forceBrowserFocus){let s=this.comp.getFocusableElement();if(this.editing){const n=hu(s,null,!0);n.length&&(s=n[0])}s.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const o=t.gos.get("editType")==="fullRow";!i&&!o&&this.editing&&t.editSvc?.stopRowOrCellEdit(this),i&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:ks(t),column:this.column}}setInlineEditingCss(){this.beans.editSvc?.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.addOrRemoveCssClass(a0e,!0),e.addOrRemoveCssClass(p0e,!0);const t=this.column.isAutoHeight()==!0;e.addOrRemoveCssClass(l0e,t),e.addOrRemoveCssClass(c0e,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(g0e,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:o}=this;o.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{o.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(Tt(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,i){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const o=this.createRowDragComp(e,t,i);o&&(this.customRowDragComp=o,this.addDestroyFunc(()=>{this.beans.context.destroyBean(o),this.customRowDragComp=null}))}createRowDragComp(e,t,i){const o=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(o)return this.beans.context.createBean(o),o}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},X6="__ag_grid_instance";function Z6(e,t){t[X6]=e.gridInstanceId}function Fm(e,t){return m0e(e,t.target)}function m0e(e,t){let i=t;for(;i;){const o=i[X6];if(Ce(o))return o===e.gridInstanceId;i=i.parentElement}return!1}function y0e(e,t){return Y6(e,t.target)?.getFocusedCellPosition()??null}var Zx=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(Zx||{}),v0e=class extends oe{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const i={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:i,dragSource:e}),this.dragSvc.addDragSource(i)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:i}=this,o=t.find(s=>s.dragSource===e);o&&(i.removeDragSource(o.params),As(t,o))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:i}=this;e.forEach(o=>t.removeDragSource(o.params)),e.length=0,i.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const i=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){const i=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const s=this.dropTargets.filter(d=>this.isMouseOnDropTarget(e,d)),n=this.findCurrentDropTarget(e,s),{lastDropTarget:r,dragSource:a,dragAndDropImageComp:l,dragItem:c}=this;if(n!==r){if(this.leaveLastTargetIfExists(e,i,o,t),r!==null&&n===null&&a?.onGridExit?.(c),r===null&&n!==null&&a?.onGridEnter?.(c),this.enterDragTargetIfExists(n,e,i,o,t),n&&l){const{comp:d,promise:u}=l;d?d.setIcon(n.getIconName?n.getIconName():null,!1):u.then(h=>{h&&h.setIcon(n.getIconName?n.getIconName():null,!1)})}this.lastDropTarget=n}else if(n&&n.onDragging){const d=this.createDropTargetEvent(n,e,i,o,t);n.onDragging(d)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,i=[[e.getContainer()]];return t?i.concat(t):i}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let o=!1;const s=(a,l)=>{for(const c of l){const{width:d,height:u,left:h,right:p,top:g,bottom:f}=c.getBoundingClientRect();if(d===0||u===0)return!1;const v=a.clientX>=h&&a.clientX<p,y=a.clientY>=g&&a.clientY<f;if(!v||!y)return!1}return!0};for(const a of i)if(s(e,a)){o=!0;break}const{eElement:n,type:r}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(n)?!1:o&&t.isInterestedIn(r,n)}findCurrentDropTarget(e,t){const i=t.length;if(i===0)return null;if(i===1)return t[0];const s=Cp(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const n of s)for(const r of t)if(this.getAllContainersFromDropTarget(r).flatMap(l=>l).indexOf(n)!==-1)return r;return null}enterDragTargetIfExists(e,t,i,o,s){if(e&&e.onDragEnter){const n=this.createDropTargetEvent(e,t,i,o,s);e.onDragEnter(n)}}leaveLastTargetIfExists(e,t,i,o){const{lastDropTarget:s}=this;if(!s)return;if(s.onDragLeave){const r=this.createDropTargetEvent(s,e,t,i,o);s.onDragLeave(r)}const n=this.getDragAndDropImageComponent();n&&n.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(i=>i.external).find(i=>i.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const i=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:o}=e;return i.contains(o)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,i=e.clientX;return t===i?null:t>i?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,i=e.clientY;return t===i?null:t>i?"up":"down"}createDropTargetEvent(e,t,i,o,s){const n=e.getContainer(),r=n.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:c}=this,d=t.clientX-r.left,u=t.clientY-r.top;return Le(c,{event:t,x:d,y:u,vDirection:o,hDirection:i,dragSource:l,fromNudge:s,dragItem:a,dropZoneTarget:n})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&xbe(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const i=t.getGui();this.dragAndDropImageParent?.removeChild(i),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:i}=this;if(!e)return;const o=wCe(i,Le(t,{dragSource:e}));if(!o)return;const s=o.newAgStackInstance();this.dragAndDropImageComp={promise:s},s.then(n=>{!n||!this.isAlive()||(this.processDragAndDropImageComponent(n),this.dragAndDropImageComp.comp=n)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:i}=this;if(!t)return;const o=e.getGui();o.style.setProperty("position","absolute"),o.style.setProperty("z-index","9999"),Z6(this.gos,o),i.applyThemeClasses(o),e.setIcon(null,!1);let{dragItemName:s}=t;typeof s=="function"&&(s=s()),e.setLabel(s||""),o.style.top="20px",o.style.left="20px";const n=iL(this.beans);this.dragAndDropImageParent=n,n?n.appendChild(o):he(54)}registerGridDropTarget(e,t){const i={getContainer:e,isInterestedIn:o=>o===1||o===0,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}},b0e=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;const o=this.scrollContainer.getBoundingClientRect(),s=this.scrollByTick;this.tickLeft=e.clientX<o.left+s,this.tickRight=e.clientX>o.right-s,this.tickUp=e.clientY<o.top+s&&!i,this.tickDown=e.clientY>o.bottom-s&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function C0e(e,t){const i=e.column===t.column,o=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return i&&o&&s}function S0e(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Ce(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function x0e(e){let t=0,i;const{pinnedRowModel:o,rowModel:s,pageBounds:n}=e;return o?.getPinnedTopRowCount()?i="top":s.getRowCount()?(i=null,t=n.getFirstRow()):o?.getPinnedBottomRowCount()&&(i="bottom"),i===void 0?null:{rowIndex:t,rowPinned:i}}function w0e(e){let t,i=null;const{pinnedRowModel:o,pageBounds:s}=e,n=o?.getPinnedBottomRowCount(),r=o?.getPinnedTopRowCount();return n?(i="bottom",t=n-1):e.rowModel.getRowCount()?(i=null,t=s.getLastRow()):r&&(i="top",t=r-1),t===void 0?null:{rowIndex:t,rowPinned:i}}function pL(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function mb(e,t){const i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;const o=e.rowRenderer.getRowByPosition(t);return o?o.getCellCtrl(t.column):null}function h0(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(i===0)return o==="top"?null:o==="bottom"&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null;const a=o?void 0:r.getRow(i);return q6(e,a,!0)??{rowIndex:i-1,rowPinned:o}}function _F(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(M0e(e,t))return o==="bottom"?null:o==="top"&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;const a=o?void 0:r.getRow(i);return q6(e,a)??{rowIndex:i+1,rowPinned:o}}function q6(e,t,i){const{gos:o,rowRenderer:s}=e;if(!t?.sticky||!Ux(o))return;const n=i?s.getStickyTopRowCtrls():s.getStickyBottomRowCtrls();let r;for(let a=0;a<n.length;a++)if(n[a].rowNode.rowIndex===t.rowIndex){r=n[a+(i?-1:1)];break}return r?{rowIndex:r.rowNode.rowIndex,rowPinned:null}:void 0}function M0e(e,t){const{rowPinned:i,rowIndex:o}=t,{pinnedRowModel:s,pageBounds:n}=e;return i==="top"?(s?.getPinnedTopRowCount()??0)-1<=o:i==="bottom"?(s?.getPinnedBottomRowCount()??0)-1<=o:n.getLastRow()<=o}function Q6(e,t,i){if(i===0)return!1;const o=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(o,s)<=i}var D0e=class extends oe{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,i=e.mouseDownListener;if(t.removeEventListener("mousedown",i),e.touchEnabled){const o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,i=t.find(o=>o.dragSource===e);i&&(this.removeListener(i),As(t,i))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:i,includeTouch:o,stopPropagationForTouch:s}=e;i.addEventListener("mousedown",t);let n=null;const r=this.gos.get("suppressTouch");o&&!r&&(n=a=>{ZT(a.target)||(s&&a.stopPropagation(),this.onTouchStart(e,a))},i.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:n,touchEnabled:!!o})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const i=t.touches[0];this.touchLastTime=i,this.touchStart=i;const o=l=>this.onTouchMove(l,e.eElement),s=l=>this.onTouchUp(l,e.eElement),n=l=>{l.cancelable&&l.preventDefault()},r=t.target,a=[{target:Cp(this.beans),type:"touchmove",listener:n,options:{passive:!1}},{target:r,type:"touchmove",listener:o,options:{passive:!0}},{target:r,type:"touchend",listener:s,options:{passive:!0}},{target:r,type:"touchcancel",listener:s,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)}onMouseDown(e,t){const i=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const o=c=>this.onMouseMove(c,e.eElement),s=c=>this.onMouseUp(c,e.eElement),n=c=>c.preventDefault(),r=c=>{c.key===J.ESCAPE&&this.cancelDrag(e.eElement)},a=Cp(this.beans),l=[{target:a,type:"mousemove",listener:o},{target:a,type:"mouseup",listener:s},{target:a,type:"contextmenu",listener:n},{target:a,type:"keydown",listener:r}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.addEventListener(o,s,n)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.removeEventListener(o,s,n)})})}isEventNearStartEvent(e,t){const{dragStartPixels:i}=this.currentDragParams,o=Ce(i)?i:4;return Q6(e,t,o)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,i){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:i}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const i=this.getFirstActiveTouch(e.touches);i&&this.onCommonMove(i,this.touchStart,t)}onMouseMove(e,t){Hx()&&Yt(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,i=t.get("enableCellTextSelection"),o=e.type==="mousemove",s=n=>!!n.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button");return i&&o&&e.cancelable&&Fm(t,e)&&!s(e)}onTouchUp(e,t){let i=this.getFirstActiveTouch(e.changedTouches);i||(i=this.touchLastTime),this.onUpCommon(i,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function J6(e,t){return e+"_"+t}function $t(e){return e instanceof eH}var eH=class extends oe{constructor(e,t,i,o){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=o,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return J6(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{$t(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=et(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{ua(t)?e.push(t):$t(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{ua(t)?e.push(t):$t(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(i=>{if($t(i)&&(!i.displayedChildren||!i.displayedChildren.length))return;switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},p0="row-group-",k0e="t-",I0e="b-",A0e=0,lh=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=A0e++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:i,selectionSvc:o,eventSvc:s}=this.beans,n=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),o?.updateRowSelectable(this),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,n,t);this.__localEventService?.dispatchEvent(r),s.dispatchEvent({type:"rowNodeDataChanged",node:this})}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return this.rowIndex==null?(We(13),null):this.rowPinned==="top"?k0e+this.rowIndex:this.rowPinned==="bottom"?I0e+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:i}=this.beans,o=i?.createDaemonNode?.(this),s=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,o));const n=this.createDataChangedEvent(e,s,!1);this.__localEventService?.dispatchEvent(n)}setId(e){const t=Tm(this.beans.gos);if(t)if(this.data){const i=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(p0)&&We(14,{groupPrefix:p0})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){const{colModel:o,valueSvc:s,gos:n,selectionSvc:r}=this.beans,a=typeof e!="string"?e:o.getCol(e)??o.getColDefCol(e);if(!a)return!1;const l=s.getValueForDisplay(a,this);if(n.get("readOnlyEdit")){const{beans:{eventSvc:d},data:u,rowIndex:h,rowPinned:p}=this;return d.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:h,rowPinned:p,column:a,colDef:a.colDef,data:u,node:this,oldValue:l,newValue:t,value:t,source:i}),!1}const c=s.setValue(this,a,t,i);return this.dispatchCellChangedEvent(a,t,l),r?.updateRowSelectable(this),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){const o={type:"cellChanged",node:this,column:e,newValue:t,oldValue:i};this.__localEventService?.dispatchEvent(o)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach(t=>t.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new ml),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new ml),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const i=this.frameworkEventListenerService?.wrap(t)??t;this.__localEventService.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(he(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}};function tH(e,t,i){return Le(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var R0e={tag:"div",cls:"ag-filter"},iH=class extends Ue{constructor(e,t){super(R0e),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??Ct.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:i}=this;this.filterWrapper=this.beans.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(o=>{const s=o.getGui();Ce(s)||he(69,{guiFromFilter:s}),this.appendChild(s),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Ys(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},oH="ag-resizer-wrapper",sc=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),T0e={tag:"div",cls:oH,children:[sc("eTopLeft","topLeft"),sc("eTop","top"),sc("eTopRight","topRight"),sc("eRight","right"),sc("eBottomRight","bottomRight"),sc("eBottom","bottom"),sc("eBottomLeft","bottomLeft"),sc("eLeft","left")]},gL=class extends oe{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,i=t/2-this.getWidth()/2,o=e/2-this.getHeight()/2;this.offsetElement(i,o)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:i,width:o,minHeight:s,height:n,x:r,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const d=Zs(this.element);if(d){const u=this.findBoundaryElement(),h=window.getComputedStyle(u);if(h.minWidth!=null){const p=u.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=u.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-p}}if(this.minHeight=s||l,this.minWidth=i||c,o&&this.setWidth(o),n&&this.setHeight(n),(!o||!n)&&this.refreshSize(),e)this.center();else if(r||a)this.offsetElement(r,a);else if(d&&t){let u=this.boundaryEl,h=!0;if(u||(u=this.findBoundaryElement(),h=!1),u){const p=parseFloat(u.style.top),g=parseFloat(u.style.left);h?this.offsetElement(isNaN(g)?0:g,isNaN(p)?0:p):this.setPosition(g,p)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const o=!!e[t],s=this.getResizerElement(t),n={dragStartPixels:0,eElement:s,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),s.style.pointerEvents="all"):s.style.pointerEvents="none",this.resizable[t]=o)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,i=this.element;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Tf(i,e),e=Y9(i),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(o?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?Tf(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:i}=this.offsetParent;if(!i)return null;const o=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:o.top,r=e?0:s.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();a=d-o.bottom}}return i+r-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:i}=this.config;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)na(t,e),e=QC(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:s}=this.offsetParent,n=i?this.position.x:this.element.getBoundingClientRect().left;s&&e+n>s&&(e=s-n)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?na(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:i}=this.config,o=i?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=md(this.beans,this.popupSvc?.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:i,isTop:o,anywhereWithin:s,topBuffer:n}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!i,!!s,r)?0:r,c=this.shouldSkipY(t,!!o,n,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,i,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:s.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=r.right;return l?!0:(t?l=o<0&&e.clientX>a+n.left||o>0&&e.clientX<a+n.left:i?l=o<0&&e.clientX>r.right||o>0&&e.clientX<a+n.left:l=o<0&&e.clientX>r.right||o>0&&e.clientX<r.right,l)}shouldSkipY(e,t,i=0,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:s.top;let l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=r.bottom;return l?!0:(t?l=o<0&&e.clientY>a+n.top+i||o>0&&e.clientY<a+n.top:l=o<0&&e.clientY>r.bottom||o>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(It(T0e)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${oH}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:i,forcePopupParentAsOffsetParent:o}=this.config;!i&&!o&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,i=0;for(let o=0;o<e.length;o++){const s=e[o],n=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s===this.element)continue;let r=this.minHeight||0,a=this.minWidth||0;if(n){const l=window.getComputedStyle(s);l.minHeight&&(r=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else r=s.offsetHeight,a=s.offsetWidth;t+=r,i+=a}return{height:t,width:i}}applySizeToSiblings(e){let t=null;const i=this.getSiblings();if(i){for(let o=0;o<i.length;o++){const s=i[o];s!==t&&(e?s.style.height=`${s.offsetHeight}px`:s.style.width=`${s.offsetWidth}px`,s.style.flex="0 0 auto",s===this.element&&(t=i[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:o,isRight:s,isBottom:n,isLeft:r}=this.currentResizer,a=s||r,l=n||o,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:r,isTop:o}),u=this.position.x,h=this.position.y;let p=0,g=0;if(a&&c){const f=r?-1:1,v=this.getWidth(),y=v+c*f;let C=!1;r&&(p=v-y,(u+p<=0||y<=this.minWidth)&&(C=!0,p=0)),C||this.setWidth(y)}if(l&&d){const f=o?-1:1,v=this.getHeight(),y=v+d*f;let C=!1;o?(g=v-y,(h+g<=0||y<=this.minHeight)&&(C=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&v<y&&this.getMinSizeOfSiblings().height+y>this.element.parentElement.offsetHeight&&(C=!0),C||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&p||g)&&this.offsetElement(u+p,h+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:i}=this.position;let o;this.config.calculateTopBuffer&&(o=this.config.calculateTopBuffer());const{movementX:s,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:o});this.offsetElement(t+s,i+n),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},sH="ag-focus-managed",wg=class extends oe{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Pa(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add(sH),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||mr(t))return;const{callbacks:i}=this;if(i.shouldStopEventPropagation(t)){vl(t);return}t.key===J.TAB?i.onTabKeyDown(t):i.handleKeyDown&&i.handleKeyDown(t)}})}},L0e={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function E0e(e,t){const{debounceMs:i}=e;return FD(e)?(i!=null&&he(71),0):i??t}function FD(e){return(e.buttons?.indexOf("apply")??-1)>=0}var P0e=class extends Ue{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=de,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new wg(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new gL(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t?.removeEventListener("submit",this.onFormSubmit);const i={tag:"form",cls:"ag-filter-wrapper",children:[{tag:"div",ref:"eFilterBody",cls:`ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper`,children:[this.createBodyTemplate()]}]};this.setTemplate(i,this.getAgComponents(),e),t=this.getGui(),t?.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=FD(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=FD(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:i,readOnly:o}=t??{},{buttons:s,readOnly:n}=e;if(o===n&&Im(i,s))return;const r=s&&s.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Ys(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):r&&(this.eButtonsPanel=It({tag:"div",cls:"ag-filter-apply-panel"})),!r){this.eButtonsPanel&&Qr(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=c=>{let d;const u=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":d=g=>this.onBtApply(!1,!1,g);break;case"clear":d=()=>this.onBtClear();break;case"reset":d=()=>this.onBtReset();break;case"cancel":d=g=>{this.onBtCancel(g)};break;default:he(75);return}const p=jx(`<button
|
|
24
24
|
type="${c==="apply"?"submit":"button"}"
|