@moderneinc/react-charts 1.2.0-next.73a364 → 1.2.0-next.867ab1

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.
Files changed (40) hide show
  1. package/dist/components/chrono-chart/chrono-chart.component.d.ts +10 -0
  2. package/dist/components/chrono-chart/chrono-chart.types.d.ts +112 -0
  3. package/dist/components/chrono-chart/components/category-table.component.d.ts +13 -0
  4. package/dist/components/chrono-chart/components/category-table.types.d.ts +42 -0
  5. package/dist/components/chrono-chart/utils/data-transformer.d.ts +41 -0
  6. package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
  7. package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +89 -0
  8. package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +34 -0
  9. package/dist/components/morph-chart/hooks/shared/computations.d.ts +29 -0
  10. package/dist/components/morph-chart/hooks/shared/types.d.ts +24 -0
  11. package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +87 -0
  12. package/dist/components/morph-chart/index.d.ts +2 -0
  13. package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
  14. package/dist/components/morph-chart/morph-chart.types.d.ts +158 -0
  15. package/dist/components/morph-chart/utils/accordion-generator.d.ts +102 -0
  16. package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
  17. package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
  18. package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
  19. package/dist/components/morph-chart/utils/area-renderer.d.ts +24 -0
  20. package/dist/components/morph-chart/utils/bar-renderer.d.ts +19 -0
  21. package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +291 -0
  22. package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
  23. package/dist/components/morph-chart/utils/parliament-renderer.d.ts +23 -0
  24. package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
  25. package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
  26. package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
  27. package/dist/components/morph-chart/utils/slinky-3d-generator.d.ts +35 -0
  28. package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
  29. package/dist/components/morph-chart/utils/svg-slinky-generator.d.ts +25 -0
  30. package/dist/components/parliament-chart/hooks/use-parliament-chart.hook.d.ts +5 -1
  31. package/dist/components/parliament-chart/parliament-chart.types.d.ts +5 -0
  32. package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
  33. package/dist/components/stacked-area-chart/utils/color.utils.d.ts +0 -5
  34. package/dist/components/timeline-chart/timeline-chart.types.d.ts +30 -0
  35. package/dist/index.cjs +109 -71
  36. package/dist/index.d.ts +7 -0
  37. package/dist/index.js +23966 -16093
  38. package/dist/theme/default-colors.d.ts +0 -4
  39. package/dist/theme/timeline-defaults.d.ts +33 -1
  40. package/package.json +30 -10
package/dist/index.cjs CHANGED
@@ -1,4 +1,42 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react/jsx-runtime"),O1=require("@mui/icons-material"),re=require("@mui/material"),O=require("react");function _1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const yt=_1(O),A1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ki{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Ki.prototype.normal={};Ki.prototype.property={};Ki.prototype.space=void 0;function jx(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Ki(r,n,t)}function ci(e){return e.toLowerCase()}class it{constructor(t,r){this.attribute=r,this.property=t}}it.prototype.attribute="";it.prototype.booleanish=!1;it.prototype.boolean=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.commaSeparated=!1;it.prototype.defined=!1;it.prototype.mustUseProperty=!1;it.prototype.number=!1;it.prototype.overloadedBoolean=!1;it.prototype.property="";it.prototype.spaceSeparated=!1;it.prototype.space=void 0;let P1=0;const ce=Ir(),$e=Ir(),Af=Ir(),G=Ir(),Ae=Ir(),Kr=Ir(),at=Ir();function Ir(){return 2**++P1}const Pf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ce,booleanish:$e,commaOrSpaceSeparated:at,commaSeparated:Kr,number:G,overloadedBoolean:Af,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),ou=Object.keys(Pf);class Jd extends it{constructor(t,r,n,i){let a=-1;if(super(t,r),oh(this,"space",i),typeof n=="number")for(;++a<ou.length;){const o=ou[a];oh(this,ou[a],(n&Pf[o])===Pf[o])}}}Jd.prototype.defined=!0;function oh(e,t,r){r&&(e[t]=r)}function En(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Jd(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[ci(n)]=n,r[ci(a.attribute)]=n}return new Ki(t,r,e.space)}const Ix=En({properties:{ariaActiveDescendant:null,ariaAtomic:$e,ariaAutoComplete:null,ariaBusy:$e,ariaChecked:$e,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:$e,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:$e,ariaFlowTo:Ae,ariaGrabbed:$e,ariaHasPopup:null,ariaHidden:$e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:G,ariaLive:null,ariaModal:$e,ariaMultiLine:$e,ariaMultiSelectable:$e,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:$e,ariaReadOnly:$e,ariaRelevant:null,ariaRequired:$e,ariaRoleDescription:Ae,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:$e,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $x(e,t){return t in e?e[t]:t}function kx(e,t){return $x(e,t.toLowerCase())}const E1=En({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kr,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:Ae,autoFocus:ce,autoPlay:ce,blocking:Ae,capture:null,charSet:null,checked:ce,cite:null,className:Ae,cols:G,colSpan:null,content:null,contentEditable:$e,controls:ce,controlsList:Ae,coords:G|Kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:Af,draggable:$e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:Ae,height:G,hidden:Af,high:G,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:ce,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ce,optimum:G,pattern:null,ping:Ae,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:Ae,required:ce,reversed:ce,rows:G,rowSpan:G,sandbox:Ae,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:$e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:$e,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:$e,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:kx}),T1=En({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:at,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:Ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kr,g2:Kr,glyphName:Kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$x}),Rx=En({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Dx=En({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kx}),Nx=En({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),C1=/[A-Z]/g,uh=/-[a-z]/g,M1=/^data[-\w.:]+$/i;function Lx(e,t){const r=ci(t);let n=t,i=it;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&M1.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(uh,I1);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!uh.test(a)){let o=a.replace(C1,j1);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jd}return new i(n,t)}function j1(e){return"-"+e.toLowerCase()}function I1(e){return e.charAt(1).toUpperCase()}const qx=jx([Ix,E1,Rx,Dx,Nx],"html"),Qd=jx([Ix,T1,Rx,Dx,Nx],"svg"),sh={}.hasOwnProperty;function $1(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const u=n.handlers;if(i&&sh.call(i,e)){const s=String(i[e]);o=sh.call(u,s)?u[s]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const k1=/["&'<>`]/g,R1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,N1=/[|\\{}()[\]^$+*?.]/g,lh=new WeakMap;function L1(e,t){if(e=e.replace(t.subset?q1(t.subset):k1,n),t.subset||t.escapeOnly)return e;return e.replace(R1,r).replace(D1,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function q1(e){let t=lh.get(e);return t||(t=B1(e),lh.set(e,t)),t}function B1(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(N1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const F1=/[\dA-Fa-f]/;function z1(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!F1.test(String.fromCharCode(t))?n:n+";"}const U1=/\d/;function W1(e,t,r){const n="&#"+String(e);return r&&t&&!U1.test(String.fromCharCode(t))?n:n+";"}const H1=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],uu={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},G1=["cent","copy","divide","gt","lt","not","para","times"],Bx={}.hasOwnProperty,Ef={};let na;for(na in uu)Bx.call(uu,na)&&(Ef[uu[na]]=na);const K1=/[^\dA-Za-z]/;function V1(e,t,r,n){const i=String.fromCharCode(e);if(Bx.call(Ef,i)){const a=Ef[i],o="&"+a;return r&&H1.includes(a)&&!G1.includes(a)&&(!n||t&&t!==61&&K1.test(String.fromCharCode(t)))?o:o+";"}return""}function Y1(e,t,r){let n=z1(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=V1(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=W1(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Vr(e,t){return L1(e,Object.assign({format:Y1},t))}const X1=/^>|^->|<!--|-->|--!>|<!-$/g,Z1=[">"],J1=["<",">"];function Q1(e,t,r,n){return n.settings.bogusComments?"<?"+Vr(e.value,Object.assign({},n.settings.characterReferences,{subset:Z1}))+">":"<!--"+e.value.replace(X1,i)+"-->";function i(a){return Vr(a,Object.assign({},n.settings.characterReferences,{subset:J1}))}}function e_(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function ch(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function fh(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function t_(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function dh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function r_(e){return e.join(" ").trim()}const n_=/[ \t\n\f\r]/g;function ep(e){return typeof e=="object"?e.type==="text"?ph(e.value):!1:ph(e)}function ph(e){return e.replace(n_,"")===""}const Be=zx(1),Fx=zx(-1),i_=[];function zx(e){return t;function t(r,n,i){const a=r?r.children:i_;let o=(n||0)+e,u=a[o];if(!i)for(;u&&ep(u);)o+=e,u=a[o];return u}}const a_={}.hasOwnProperty;function Ux(e){return t;function t(r,n,i){return a_.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const tp=Ux({body:u_,caption:su,colgroup:su,dd:f_,dt:c_,head:su,html:o_,li:l_,optgroup:d_,option:p_,p:s_,rp:hh,rt:hh,tbody:v_,td:vh,tfoot:y_,th:vh,thead:h_,tr:m_});function su(e,t,r){const n=Be(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ep(n.value.charAt(0)))}function o_(e,t,r){const n=Be(r,t);return!n||n.type!=="comment"}function u_(e,t,r){const n=Be(r,t);return!n||n.type!=="comment"}function s_(e,t,r){const n=Be(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function l_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&n.tagName==="li"}function c_(e,t,r){const n=Be(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function f_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function hh(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function d_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function p_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function h_(e,t,r){const n=Be(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function v_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function y_(e,t,r){return!Be(r,t)}function m_(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function vh(e,t,r){const n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const g_=Ux({body:w_,colgroup:S_,head:x_,html:b_,tbody:O_});function b_(e){const t=Be(e,-1);return!t||t.type!=="comment"}function x_(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function w_(e){const t=Be(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ep(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function S_(e,t,r){const n=Fx(r,t),i=Be(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&tp(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function O_(e,t,r){const n=Fx(r,t),i=Be(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&tp(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ia={name:[[`
1
+ "use strict";var hk=Object.defineProperty;var pk=(e,t,r)=>t in e?hk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),Q=require("@mui/material"),O=require("react"),WO=require("@mui/icons-material");function dk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const qr=dk(O);function mk(e){return e}var gf=1,vf=2,Jm=3,is=4,L0=1e-6;function yk(e){return"translate("+e+",0)"}function gk(e){return"translate(0,"+e+")"}function vk(e){return t=>+e(t)}function bk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function _k(){return!this.__axis}function HO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===gf||e===is?-1:1,c=e===is||e===vf?"x":"y",f=e===gf||e===Jm?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),d=Math.max(a,0)+s,v=t.range(),w=+v[0]+l,b=+v[v.length-1]+l,_=(t.bandwidth?bk:vk)(t.copy(),l),g=p.selection?p.selection():p,x=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),k=S.select("line"),P=S.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),k=k.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===gf?"0em":e===Jm?"0.71em":"0.32em")),p!==g&&(x=x.transition(p),S=S.transition(p),k=k.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",L0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",L0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:_(E))+l)})),A.remove(),x.attr("d",e===is||e===vf?o?"M"+u*o+","+w+"H"+l+"V"+b+"H"+u*o:"M"+l+","+w+"V"+b:o?"M"+w+","+u*o+"V"+l+"H"+b+"V"+u*o:"M"+w+","+l+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),k.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===vf?"start":e===is?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function Es(e){return HO(Jm,e)}function Cs(e){return HO(is,e)}var xk={value:()=>{}};function Jg(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new nu(r)}function nu(e){this._=e}function wk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}nu.prototype=Jg.prototype={constructor:nu,on:function(e,t){var r=this._,n=wk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=Sk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=B0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=B0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new nu(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function Sk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function B0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=xk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var Qm="http://www.w3.org/1999/xhtml";const q0={svg:"http://www.w3.org/2000/svg",xhtml:Qm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function wc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),q0.hasOwnProperty(t)?{space:q0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qm&&t.documentElement.namespaceURI===Qm?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function GO(e){var t=wc(e);return(t.local?Ok:Ak)(t)}function Tk(){}function Qg(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=Qg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new Or(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function KO(e){return e==null?Ck:function(){return this.querySelectorAll(e)}}function Mk(e){return function(){return Ek(e.apply(this,arguments))}}function kk(e){typeof e=="function"?e=Mk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new Or(n,i)}function XO(e){return function(){return this.matches(e)}}function YO(e){return function(t){return t.matches(e)}}var $k=Array.prototype.find;function jk(e){return function(){return $k.call(this.children,e)}}function Rk(){return this.firstElementChild}function Dk(e){return this.select(e==null?Rk:jk(typeof e=="function"?e:YO(e)))}var Ik=Array.prototype.filter;function Nk(){return Array.from(this.children)}function Lk(e){return function(){return Ik.call(this.children,e)}}function Bk(e){return this.selectAll(e==null?Nk:Lk(typeof e=="function"?e:YO(e)))}function qk(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Or(n,this._parents)}function VO(e){return new Array(e.length)}function Fk(){return new Or(this._enter||this._groups.map(VO),this._parents)}function cu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cu.prototype={constructor:cu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function zk(e){return function(){return e}}function Uk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new cu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Wk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new cu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function Hk(e){return e.__data__}function Gk(e,t){if(!arguments.length)return Array.from(this,Hk);var r=t?Wk:Uk,n=this._parents,i=this._groups;typeof e!="function"&&(e=zk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Kk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),v=l[u]=new Array(h);r(c,f,m,d,v,p,t);for(var w=0,b=0,_,g;w<y;++w)if(_=m[w]){for(w>=b&&(b=w+1);!(g=d[b])&&++b<y;);_._next=g||null}}return o=new Or(o,n),o._enter=s,o._exit=l,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xk(){return new Or(this._exit||this._groups.map(VO),this._parents)}function Yk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Vk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new Or(s,this._parents)}function Zk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Jk(e){e||(e=Qk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new Or(i,this._parents).order()}function Qk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function t2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function e2(){return Array.from(this)}function r2(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function n2(){let e=0;for(const t of this)++e;return e}function i2(){return!this.node()}function a2(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function o2(e){return function(){this.removeAttribute(e)}}function s2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l2(e,t){return function(){this.setAttribute(e,t)}}function u2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function f2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h2(e,t){var r=wc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?s2:o2:typeof t=="function"?r.local?f2:c2:r.local?u2:l2)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){return function(){this.style.setProperty(e,t,r)}}function m2(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function y2(e,t,r){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:d2)(e,t,r??"")):Xa(this.node(),e)}function Xa(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function g2(e){return function(){delete this[e]}}function v2(e,t){return function(){this[e]=t}}function b2(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _2(e,t){return arguments.length>1?this.each((t==null?g2:typeof t=="function"?b2:v2)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function tv(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){tT(this,e)}}function w2(e){return function(){eT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function A2(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=tv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?S2:t?x2:w2)(r,t))}function O2(){this.textContent=""}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function E2(e){return arguments.length?this.each(e==null?O2:(typeof e=="function"?P2:T2)(e)):this.node().textContent}function C2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function k2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $2(e){return arguments.length?this.each(e==null?C2:(typeof e=="function"?k2:M2)(e)):this.node().innerHTML}function j2(){this.nextSibling&&this.parentNode.appendChild(this)}function R2(){return this.each(j2)}function D2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I2(){return this.each(D2)}function N2(e){var t=typeof e=="function"?e:GO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function L2(){return null}function B2(e,t){var r=typeof e=="function"?e:GO(e),n=t==null?L2:typeof t=="function"?t:Qg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function q2(){var e=this.parentNode;e&&e.removeChild(this)}function F2(){return this.each(q2)}function z2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(e){return this.select(e?U2:z2)}function H2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function G2(e){return function(t){e.call(this,t,this.__data__)}}function K2(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function X2(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function Y2(e,t,r){return function(){var n=this.__on,i,a=G2(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function V2(e,t,r){var n=K2(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?Y2:X2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z2(e,t){return function(){return rT(this,e,t)}}function J2(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function Q2(e,t){return this.each((typeof t=="function"?J2:Z2)(e,t))}function*t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function Or(e,t){this._groups=e,this._parents=t}function Mo(){return new Or([[document.documentElement]],nT)}function e$(){return this}Or.prototype=Mo.prototype={constructor:Or,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Gk,enter:Fk,exit:Xk,join:Yk,merge:Vk,selection:e$,order:Zk,sort:Jk,call:t2,nodes:e2,node:r2,size:n2,empty:i2,each:a2,attr:h2,style:y2,property:_2,classed:A2,text:E2,html:$2,raise:R2,lower:I2,append:N2,insert:B2,remove:F2,clone:W2,datum:H2,on:V2,dispatch:Q2,[Symbol.iterator]:t$};function ee(e){return typeof e=="string"?new Or([[document.querySelector(e)]],[document.documentElement]):new Or([[e]],nT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ms(e,t){if(e=r$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ty={capture:!0,passive:!1};function ey(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",ey,ty);"onselectstart"in t?r.on("selectstart.drag",ey,ty):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",ey,ty),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ev(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xl(){}var ks=.7,fu=1/ks,Ba="\\s*([+-]?\\d+)\\s*",$s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${Ba},${Ba},${Ba}\\)$`),s$=new RegExp(`^rgb\\(${_n},${_n},${_n}\\)$`),l$=new RegExp(`^rgba\\(${Ba},${Ba},${Ba},${$s}\\)$`),u$=new RegExp(`^rgba\\(${_n},${_n},${_n},${$s}\\)$`),c$=new RegExp(`^hsl\\(${$s},${_n},${_n}\\)$`),f$=new RegExp(`^hsla\\(${$s},${_n},${_n},${$s}\\)$`),F0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ev(xl,ia,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z0,formatHex:z0,formatHex8:h$,formatHsl:p$,formatRgb:U0,toString:U0});function z0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return aT(this).formatHsl()}function U0(){return this.rgb().formatRgb()}function ia(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?W0(t):r===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Il(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Il(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o$.exec(e))?new nr(t[1],t[2],t[3],1):(t=s$.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=l$.exec(e))?Il(t[1],t[2],t[3],t[4]):(t=u$.exec(e))?Il(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?K0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?K0(t[1],t[2]/100,t[3]/100,t[4]):F0.hasOwnProperty(e)?W0(F0[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function W0(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function Il(e,t,r,n){return n<=0&&(e=t=r=NaN),new nr(e,t,r,n)}function d$(e){return e instanceof xl||(e=ia(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function ry(e,t,r,n){return arguments.length===1?d$(e):new nr(e,t,r,n??1)}function nr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ev(nr,ry,iT(xl,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(Vi(this.r),Vi(this.g),Vi(this.b),hu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H0,formatHex:H0,formatHex8:m$,formatRgb:G0,toString:G0}));function H0(){return`#${zi(this.r)}${zi(this.g)}${zi(this.b)}`}function m$(){return`#${zi(this.r)}${zi(this.g)}${zi(this.b)}${zi((isNaN(this.opacity)?1:this.opacity)*255)}`}function G0(){const e=hu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${e===1?")":`, ${e})`}`}function hu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zi(e){return e=Vi(e),(e<16?"0":"")+e.toString(16)}function K0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qr(e,t,r,n)}function aT(e){if(e instanceof Qr)return new Qr(e.h,e.s,e.l,e.opacity);if(e instanceof xl||(e=ia(e)),!e)return new Qr;if(e instanceof Qr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Qr(o,s,l,e.opacity)}function y$(e,t,r,n){return arguments.length===1?aT(e):new Qr(e,t,r,n??1)}function Qr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ev(Qr,y$,iT(xl,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new Qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new Qr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new nr(bf(e>=240?e-240:e+120,i,n),bf(e,i,n),bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Qr(X0(this.h),Nl(this.s),Nl(this.l),hu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hu(this.opacity);return`${e===1?"hsl(":"hsla("}${X0(this.h)}, ${Nl(this.s)*100}%, ${Nl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X0(e){return e=(e||0)%360,e<0?e+360:e}function Nl(e){return Math.max(0,Math.min(1,e||0))}function bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const rv=e=>()=>e;function g$(e,t){return function(r){return e+r*t}}function v$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function b$(e){return(e=+e)==1?oT:function(t,r){return r-t?v$(t,r,e):rv(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?g$(e,r):rv(isNaN(e)?t:e)}const pu=(function e(t){var r=b$(t);function n(i,a){var o=r((i=ry(i)).r,(a=ry(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=oT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function _$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function x$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=da(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function S$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Jr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function A$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=da(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ny=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_f=new RegExp(ny.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function sT(e,t){var r=ny.lastIndex=_f.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ny.exec(e))&&(i=_f.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Jr(n,i)})),r=_f.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?T$(l[0].x):O$(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function da(e,t){var r=typeof t,n;return t==null||r==="boolean"?rv(t):(r==="number"?Jr:r==="string"?(n=ia(t))?(t=n,pu):sT:t instanceof ia?pu:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:Jr)(e,t)}function nv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Y0=180/Math.PI,iy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Y0,skewX:Math.atan(l)*Y0,scaleX:o,scaleY:s}}var Ll;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?iy:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Ll||(Ll=document.createElementNS("http://www.w3.org/2000/svg","g")),Ll.setAttribute("transform",e),!(e=Ll.transform.baseVal.consolidate()))?iy:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function uT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Jr(u,f)},{i:m-2,x:Jr(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Jr(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Jr(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Jr(u,f)},{i:m-2,x:Jr(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var C$=uT(P$,"px, ","px)","deg)"),M$=uT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=da);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var Ya=0,as=0,Uo=0,cT=1e3,du,os,mu=0,aa=0,Sc=0,js=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iv(){return aa||(fT($$),aa=js.now()+Sc)}function $$(){aa=0}function yu(){this._call=this._time=this._next=null}yu.prototype=hT.prototype={constructor:yu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?iv():+r)+(t==null?0:+t),!this._next&&os!==this&&(os?os._next=this:du=this,os=this),this._call=e,this._time=r,ay()},stop:function(){this._call&&(this._call=null,this._time=1/0,ay())}};function hT(e,t,r){var n=new yu;return n.restart(e,t,r),n}function j$(){iv(),++Ya;for(var e=du,t;e;)(t=aa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ya}function V0(){aa=(mu=js.now())+Sc,Ya=as=0;try{j$()}finally{Ya=0,D$(),aa=0}}function R$(){var e=js.now(),t=e-mu;t>cT&&(Sc-=t,mu=e)}function D$(){for(var e,t=du,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:du=r);os=e,ay(n)}function ay(e){if(!Ya){as&&(as=clearTimeout(as));var t=e-aa;t>24?(e<1/0&&(as=setTimeout(V0,e-js.now()-Sc)),Uo&&(Uo=clearInterval(Uo))):(Uo||(mu=js.now(),Uo=setInterval(R$,cT)),Ya=1,fT(V0))}}function Z0(e,t,r){var n=new yu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=Jg("start","end","cancel","interrupt"),N$=[],pT=0,J0=1,oy=2,iu=3,Q0=4,sy=5,au=6;function Ac(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;L$(e,r,{name:t,index:n,group:i,on:I$,tween:N$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function av(e,t){var r=rn(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function On(e,t){var r=rn(e,t);if(r.state>iu)throw new Error("too late; already running");return r}function rn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function L$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(u){r.state=J0,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==J0)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===iu)return Z0(o);p.state===Q0?(p.state=au,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=au,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Z0(function(){r.state===iu&&(r.state=Q0,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=oy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oy){for(r.state=iu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=sy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===sy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=au,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function ly(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>oy&&n.state<sy,n.state=au,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function B$(e){return this.each(function(){ly(this,e)})}function q$(e,t){var r,n;return function(){var i=On(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function F$(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=On(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=rn(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?q$:F$)(r,e,t))}function ov(e,t,r){var n=e._id;return e.each(function(){var i=On(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return rn(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?Jr:t instanceof ia?pu:(r=ia(t))?(t=r,pu):sT)(e,t)}function U$(e){return function(){this.removeAttribute(e)}}function W$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function G$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function K$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function X$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Y$(e,t){var r=wc(e),n=r==="transform"?M$:dT;return this.attrTween(e,typeof t=="function"?(r.local?X$:K$)(r,n,ov(this,"attr."+e,t)):t==null?(r.local?W$:U$)(r):(r.local?G$:H$)(r,n,t))}function V$(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z$(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Z$(e,a)),r}return i._value=t,i}function Q$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&V$(e,a)),r}return i._value=t,i}function tj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=wc(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){av(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){av(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):rn(this.node(),t).delay}function ij(e,t){return function(){On(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){On(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):rn(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){On(this,e).ease=t}}function lj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):rn(this.node(),t).ease}function uj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;On(this,e).ease=r}}function cj(e){if(typeof e!="function")throw new Error;return this.each(uj(this._id,e))}function fj(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Hn(n,this._parents,this._name,this._id)}function hj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Hn(o,this._parents,this._name,this._id)}function pj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function dj(e,t,r){var n,i,a=pj(t)?av:On;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function mj(e,t){var r=this._id;return arguments.length<2?rn(this.node(),r).on.on(e):this.each(dj(r,e,t))}function yj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function gj(){return this.on("end.remove",yj(this._id))}function vj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qg(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Ac(u[h],t,r,h,u,rn(c,r)));return new Hn(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=rn(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Ac(p,t,r,m,h,y);a.push(h),o.push(c)}return new Hn(a,o,t,r)}var _j=Mo.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Xa(this,e),o=(this.style.removeProperty(e),Xa(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Xa(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Aj(e,t,r){var n,i,a;return function(){var o=Xa(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Xa(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function Oj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=On(this,e),u=l.on,c=l.value[a]==null?s||(s=mT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function Tj(e,t,r){var n=(e+="")=="transform"?C$:dT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,ov(this,"style."+e,t))).each(Oj(this._id,e)):this.styleTween(e,Sj(e,n,t),r).on("end.style."+e,null)}function Pj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Ej(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Pj(e,o,r)),n}return a._value=t,a}function Cj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Ej(e,t,r??""))}function Mj(e){return function(){this.textContent=e}}function kj(e){return function(){var t=e(this);this.textContent=t??""}}function $j(e){return this.tween("text",typeof e=="function"?kj(ov(this,"text",e)):Mj(e==null?"":e+""))}function jj(e){return function(t){this.textContent=e.call(this,t)}}function Rj(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&jj(i)),t}return n._value=e,n}function Dj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Rj(e))}function Ij(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=rn(l,t);Ac(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Hn(n,this._parents,e,r)}function Nj(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=On(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var Lj=0;function Hn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function sv(e){return Mo().transition(e)}function yT(){return++Lj}var jn=Mo.prototype;Hn.prototype=sv.prototype={constructor:Hn,select:vj,selectAll:bj,selectChild:jn.selectChild,selectChildren:jn.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:mj,attr:Y$,attrTween:tj,style:Tj,styleTween:Cj,text:$j,textTween:Dj,remove:gj,tween:z$,delay:nj,duration:oj,ease:lj,easeVarying:cj,end:Nj,[Symbol.iterator]:jn[Symbol.iterator]};function Bj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qj={time:null,delay:0,duration:250,ease:Bj};function Fj(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function zj(e){var t,r;e instanceof Hn?(t=e._id,e=e._name):(t=yT(),(r=qj).time=iv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Ac(l,e,t,u,o,r||Fj(l,t));return new Hn(n,this._parents,e,t)}Mo.prototype.interrupt=B$;Mo.prototype.transition=zj;const xf=e=>()=>e;function Uj(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Wj(e){e.stopImmediatePropagation()}function wf(e){e.preventDefault(),e.stopImmediatePropagation()}var tb={name:"drag"},Sf={name:"space"},Oa={name:"handle"},Ta={name:"center"};const{abs:eb,max:qe,min:Fe}=Math;function rb(e){return[+e[0],+e[1]]}function nb(e){return[rb(e[0]),rb(e[1])]}var ou={name:"x",handles:["w","e"].map(uy),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Af={},Rn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ib={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ab={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Hj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Gj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function uy(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Xj(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Yj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Vj(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Oc(){return Zj(ou)}function Zj(e){var t=Xj,r=Kj,n=Yj,i=!0,a=Jg("start","brush","end"),o=6,s;function l(d){var v=d.property("__brush",m).selectAll(".overlay").data([uy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Rn.overlay).merge(v).each(function(){var b=Of(this).extent;ee(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([uy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Rn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var w=d.selectAll(".handle").data(e.handles,function(b){return b.type});w.exit().remove(),w.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return Rn[b.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,v,w){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,_=b.__brush,g=c(b,arguments),x=_.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,_.extent),A=da(x,S);function T(k){_.selection=k===1&&S===null?null:A(k),u.call(b),g.brush()}return x!==null&&S!==null?T:T(1)}):d.each(function(){var b=this,_=arguments,g=b.__brush,x=e.input(typeof v=="function"?v.apply(b,_):v,g.extent),S=c(b,_).beforestart();ly(b),g.selection=x===null?null:x,u.call(b),S.start(w).brush(w).end(w)})},l.clear=function(d,v){l.move(d,null,v)};function u(){var d=ee(this),v=Of(this).selection;v?(d.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(w){return w.type[w.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(w){return w.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(w){return w.type==="n"||w.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(w){return w.type==="e"||w.type==="w"?v[1][1]-v[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,v,w){var b=d.__brush.emitter;return b&&(!w||!b.clean)?b:new f(d,v,w)}function f(d,v,w){this.that=d,this.args=v,this.state=d.__brush,this.active=0,this.clean=w}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,v){return this.starting?(this.starting=!1,this.emit("start",d,v)):this.emit("brush",d),this},brush:function(d,v){return this.emit("brush",d,v),this},end:function(d,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,v)),this},emit:function(d,v,w){var b=ee(this.that).datum();a.call(d,this.that,new Uj(d,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:w,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var v=this,w=d.target.__data__.type,b=(i&&d.metaKey?w="overlay":w)==="selection"?tb:i&&d.altKey?Ta:Oa,_=e===Af?null:Hj[w],g=e===ou?null:Gj[w],x=Of(v),S=x.extent,A=x.selection,T=S[0][0],k,P,E=S[0][1],C,M,R=S[1][0],$,L,F=S[1][1],q,I,j=0,N=0,z,H=_&&g&&i&&d.shiftKey,B,Z,V=Array.from(d.touches||[d],et=>{const ft=et.identifier;return et=Ms(et,v),et.point0=et.slice(),et.identifier=ft,et});ly(v);var G=c(v,arguments,!0).beforestart();if(w==="overlay"){A&&(z=!0);const et=[V[0],V[1]||V[0]];x.selection=A=[[k=e===Af?T:Fe(et[0][0],et[1][0]),C=e===ou?E:Fe(et[0][1],et[1][1])],[$=e===Af?R:qe(et[0][0],et[1][0]),q=e===ou?F:qe(et[0][1],et[1][1])]],V.length>1&&ot(d)}else k=A[0][0],C=A[0][1],$=A[1][0],q=A[1][1];P=k,M=C,L=$,I=q;var W=ee(v).attr("pointer-events","none"),Y=W.selectAll(".overlay").attr("cursor",Rn[w]);if(d.touches)G.moved=D,G.ended=U;else{var X=ee(d.view).on("mousemove.brush",D,!0).on("mouseup.brush",U,!0);i&&X.on("keydown.brush",ut,!0).on("keyup.brush",dt,!0),n$(d.view)}u.call(v),G.start(d,b.name);function D(et){for(const ft of et.changedTouches||[et])for(const Tt of V)Tt.identifier===ft.identifier&&(Tt.cur=Ms(ft,v));if(H&&!B&&!Z&&V.length===1){const ft=V[0];eb(ft.cur[0]-ft[0])>eb(ft.cur[1]-ft[1])?Z=!0:B=!0}for(const ft of V)ft.cur&&(ft[0]=ft.cur[0],ft[1]=ft.cur[1]);z=!0,wf(et),ot(et)}function ot(et){const ft=V[0],Tt=ft.point0;var at;switch(j=ft[0]-Tt[0],N=ft[1]-Tt[1],b){case Sf:case tb:{_&&(j=qe(T-k,Fe(R-$,j)),P=k+j,L=$+j),g&&(N=qe(E-C,Fe(F-q,N)),M=C+N,I=q+N);break}case Oa:{V[1]?(_&&(P=qe(T,Fe(R,V[0][0])),L=qe(T,Fe(R,V[1][0])),_=1),g&&(M=qe(E,Fe(F,V[0][1])),I=qe(E,Fe(F,V[1][1])),g=1)):(_<0?(j=qe(T-k,Fe(R-k,j)),P=k+j,L=$):_>0&&(j=qe(T-$,Fe(R-$,j)),P=k,L=$+j),g<0?(N=qe(E-C,Fe(F-C,N)),M=C+N,I=q):g>0&&(N=qe(E-q,Fe(F-q,N)),M=C,I=q+N));break}case Ta:{_&&(P=qe(T,Fe(R,k-j*_)),L=qe(T,Fe(R,$+j*_))),g&&(M=qe(E,Fe(F,C-N*g)),I=qe(E,Fe(F,q+N*g)));break}}L<P&&(_*=-1,at=k,k=$,$=at,at=P,P=L,L=at,w in ib&&Y.attr("cursor",Rn[w=ib[w]])),I<M&&(g*=-1,at=C,C=q,q=at,at=M,M=I,I=at,w in ab&&Y.attr("cursor",Rn[w=ab[w]])),x.selection&&(A=x.selection),B&&(P=A[0][0],L=A[1][0]),Z&&(M=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==M||A[1][0]!==L||A[1][1]!==I)&&(x.selection=[[P,M],[L,I]],u.call(v),G.brush(et,b.name))}function U(et){if(Wj(et),et.touches){if(et.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else i$(et.view,z),X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);W.attr("pointer-events","all"),Y.attr("cursor",Rn.overlay),x.selection&&(A=x.selection),Vj(A)&&(x.selection=null,u.call(v)),G.end(et,b.name)}function ut(et){switch(et.keyCode){case 16:{H=_&&g;break}case 18:{b===Oa&&(_&&($=L-j*_,k=P+j*_),g&&(q=I-N*g,C=M+N*g),b=Ta,ot(et));break}case 32:{(b===Oa||b===Ta)&&(_<0?$=L-j:_>0&&(k=P-j),g<0?q=I-N:g>0&&(C=M-N),b=Sf,Y.attr("cursor",Rn.selection),ot(et));break}default:return}wf(et)}function dt(et){switch(et.keyCode){case 16:{H&&(B=Z=H=!1,ot(et));break}case 18:{b===Ta&&(_<0?$=L:_>0&&(k=P),g<0?q=I:g>0&&(C=M),b=Oa,ot(et));break}case 32:{b===Sf&&(et.altKey?(_&&($=L-j*_,k=P+j*_),g&&(q=I-N*g,C=M+N*g),b=Ta):(_<0?$=L:_>0&&(k=P),g<0?q=I:g>0&&(C=M),b=Oa),Y.attr("cursor",Rn[w]),ot(et));break}default:return}wf(et)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=nb(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:xf(nb(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:xf(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:xf(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function mi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lv(e){let t,r,n;e.length!==2?(t=mi,r=(s,l)=>mi(e(s),l),n=(s,l)=>e(s)-l):(t=e===mi||e===Jj?e:Qj,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Qj(){return 0}function gT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=lv(mi),wl=eR.right;lv(gT).center;class ob extends Map{constructor(t,r=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(sb(this,t))}has(t){return super.has(sb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function sb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=mi){if(e===mi)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),lR=Math.sqrt(2);function gu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=oR?10:a>=sR?5:a>=lR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?gu(e,t,r*2):[s,l,u]}function cy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?gu(t,e,r):gu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function fy(e,t,r){return t=+t,e=+e,r=+r,gu(e,t,r)[2]}function hy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?fy(t,e,r):fy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function lb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ub(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:aR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Wo(e,r,t),i(e[n],a)>0&&Wo(e,r,n);o<s;){for(Wo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Wo(e,r,s):(++s,Wo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Wo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function uR(e,t,r){if(e=Float64Array.from(tR(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ub(e);if(t>=1)return lb(e);var n,i=(n-1)*t,a=Math.floor(i),o=lb(bT(e,a).subarray(0,a+1)),s=ub(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ur(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Zn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const py=Symbol("implicit");function uv(){var e=new ob,t=[],r=[],n=py;function i(a){let o=e.get(a);if(o===void 0){if(n!==py)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return uv(t,r).unknown(n)},Ur.apply(i,arguments),i}function Rs(){var e=uv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=fR(h).map(function(v){return y+a*v});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Rs(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Ur.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function hs(){return _T(Rs.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function vu(e){return+e}var cb=[0,1];function Je(e){return e}function dy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hR(isNaN(t)?NaN:.5)}function pR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function dR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=dy(i,n),a=r(o,a)):(n=dy(n,i),a=r(a,o)),function(s){return a(n(s))}}function mR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=dy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=wl(e,s,1,n)-1;return a[l](i[l](s))}}function Sl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tc(){var e=cb,t=cb,r=da,n,i,a,o=Je,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==Je&&(o=pR(e[0],e[h-1])),s=h>2?mR:dR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),Jr)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,vu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=nv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Je,c()):o!==Je},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function cv(){return Tc()(Je,Je)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Va(e){return e=bu(Math.abs(e)),e?e[1]:NaN}function gR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ds(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ds.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _R(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var xT;function xR(e,t){var r=bu(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(xT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+bu(e,Math.max(0,t+a-1))[0]}function fb(e,t){var r=bu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fb(e*100,t),r:fb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var db=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wR(e){var t=e.grouping===void 0||e.thousands===void 0?pb:gR(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:vR(db.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ds(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,v=f.width,w=f.comma,b=f.precision,_=f.trim,g=f.type;g==="n"?(w=!0,g="g"):hb[g]||(b===void 0&&(b=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var x=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=hb[g],T=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function k(P){var E=x,C=S,M,R,$;if(g==="c")C=A(P)+C,P="";else{P=+P;var L=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),b),_&&(P=_R(P)),L&&+P==0&&y!=="+"&&(L=!1),E=(L?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?mb[8+xT/3]:"")+C+(L&&y==="("?")":""),T){for(M=-1,R=P.length;++M<R;)if($=P.charCodeAt(M),48>$||$>57){C=($===46?i+P.slice(M+1):P.slice(M))+C,P=P.slice(0,M);break}}}w&&!d&&(P=t(P,1/0));var F=E.length+P.length+C.length,q=F<v?new Array(v-F+1).join(h):"";switch(w&&d&&(P=t(q+P,q.length?v-C.length:1/0),q=""),p){case"<":P=E+P+C+q;break;case"=":P=E+q+P+C;break;case"^":P=q.slice(0,F=q.length>>1)+E+P+C+q.slice(F);break;default:P=q+E+P+C;break}return a(P)}return k.toString=function(){return f+""},k}function c(f,h){var p=u((f=Ds(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Va(h)/3)))*3,m=Math.pow(10,-y),d=mb[8+y/3];return function(v){return p(m*v)+d}}return{format:u,formatPrefix:c}}var Bl,hv,wT;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return Bl=wR(e),hv=Bl.format,wT=Bl.formatPrefix,Bl}function AR(e){return Math.max(0,-Va(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Va(t)/3)))*3-Va(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Va(t)-Va(e))+1}function ST(e,t,r,n){var i=hy(e,t,r),a;switch(n=Ds(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=OR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=AR(i))&&(n.precision=a-(n.type==="%")*2);break}}return hv(n)}function _i(e){var t=e.domain;return e.ticks=function(r){var n=t();return cy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=fy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function oa(){var e=cv();return e.copy=function(){return Sl(e,oa())},Ur.apply(e,arguments),_i(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,vu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,vu):[0,1],_i(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function yb(e){return Math.log(e)}function gb(e){return Math.exp(e)}function PR(e){return-Math.log(-e)}function ER(e){return-Math.exp(-e)}function CR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MR(e){return e===10?CR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vb(e){return(t,r)=>-e(-t,r)}function pv(e){const t=e(yb,gb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=vb(i),a=vb(a),e(PR,ER)):e(yb,gb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let v=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}v.length*2<d&&(v=cy(u,c,d))}else v=cy(h,p,Math.min(p-h,d)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ds(l)).precision==null&&(l.trim=!0),l=hv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=pv(Tc()).domain([1,10]);return e.copy=()=>Sl(e,TT()).base(e.base()),Ur.apply(e,arguments),e}function bb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function dv(e){var t=1,r=e(bb(t),_b(t));return r.constant=function(n){return arguments.length?e(bb(t=+n),_b(t)):t},_i(r)}function PT(){var e=dv(Tc());return e.copy=function(){return Sl(e,PT()).constant(e.constant())},Ur.apply(e,arguments)}function xb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $R(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jR(e){return e<0?-e*e:e*e}function mv(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e($R,jR):e(xb(r),xb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},_i(t)}function yv(){var e=mv(Tc());return e.copy=function(){return Sl(e,yv()).exponent(e.exponent())},Ur.apply(e,arguments),e}function RR(){return yv.apply(null,arguments).exponent(.5)}function wb(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=cv(),t=[0,1],r=!1,n;function i(a){var o=DR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(wb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vu)).map(wb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ur.apply(i,arguments),_i(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[wl(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(mi),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},Ur.apply(a,arguments)}function MT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[wl(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return MT().domain([e,t]).range(i).unknown(a)},Ur.apply(_i(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Ur.apply(i,arguments)}const Tf=new Date,Pf=new Date;function Oe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Oe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Tf.setTime(+a),Pf.setTime(+o),e(Tf),e(Pf),Math.floor(r(Tf,Pf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const _u=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_u.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):_u);_u.range;const Bn=1e3,Ir=Bn*60,qn=Ir*60,Gn=qn*24,gv=Gn*7,Sb=Gn*30,Ef=Gn*365,Ui=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCSeconds());Ui.range;const vv=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getMinutes());vv.range;const bv=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCMinutes());bv.range;const _v=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn-e.getMinutes()*Ir)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getHours());_v.range;const xv=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getUTCHours());xv.range;const Al=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ir)/Gn,e=>e.getDate()-1);Al.range;const Pc=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>e.getUTCDate()-1);Pc.range;const $T=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>Math.floor(e/Gn));$T.range;function ma(e){return Oe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ir)/gv)}const Ec=ma(0),xu=ma(1),IR=ma(2),NR=ma(3),Za=ma(4),LR=ma(5),BR=ma(6);Ec.range;xu.range;IR.range;NR.range;Za.range;LR.range;BR.range;function ya(e){return Oe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/gv)}const Cc=ya(0),wu=ya(1),qR=ya(2),FR=ya(3),Ja=ya(4),zR=ya(5),UR=ya(6);Cc.range;wu.range;qR.range;FR.range;Ja.range;zR.range;UR.range;const wv=Oe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wv.range;const Sv=Oe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Sv.range;const Kn=Oe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Kn.range;const Xn=Oe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xn.range;function jT(e,t,r,n,i,a){const o=[[Ui,1,Bn],[Ui,5,5*Bn],[Ui,15,15*Bn],[Ui,30,30*Bn],[a,1,Ir],[a,5,5*Ir],[a,15,15*Ir],[a,30,30*Ir],[i,1,qn],[i,3,3*qn],[i,6,6*qn],[i,12,12*qn],[n,1,Gn],[n,2,2*Gn],[r,1,gv],[t,1,Sb],[t,3,3*Sb],[e,1,Ef]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=lv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(hy(u/Ef,c/Ef,f));if(p===0)return _u.every(Math.max(hy(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[WR,HR]=jT(Xn,Sv,Cc,$T,xv,bv),[GR,KR]=jT(Kn,wv,Ec,Al,_v,vv);function Cf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ho(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function XR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Go(i),c=Ko(i),f=Go(a),h=Ko(a),p=Go(o),y=Ko(o),m=Go(s),d=Ko(s),v=Go(l),w=Ko(l),b={a:L,A:F,b:q,B:I,c:null,d:Cb,e:Cb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:RT,m:vD,M:bD,p:j,q:N,Q:$b,s:jb,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":kb},_={a:z,A:H,b:B,B:Z,c:null,d:Mb,e:Mb,f:RD,g:WD,G:GD,H:kD,I:$D,j:jD,L:IT,m:DD,M:ID,p:V,q:G,Q:$b,s:jb,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:HD,Z:KD,"%":kb},g={a:k,A:P,b:E,B:C,c:M,d:Pb,e:Pb,f:cD,g:Tb,G:Ob,H:Eb,I:Eb,j:oD,L:uD,m:aD,M:sD,p:T,q:iD,Q:hD,s:pD,S:lD,u:QR,U:tD,V:eD,w:JR,W:rD,x:R,X:$,y:Tb,Y:Ob,Z:nD,"%":fD};b.x=x(r,b),b.X=x(n,b),b.c=x(t,b),_.x=x(r,_),_.X=x(n,_),_.c=x(t,_);function x(W,Y){return function(X){var D=[],ot=-1,U=0,ut=W.length,dt,et,ft;for(X instanceof Date||(X=new Date(+X));++ot<ut;)W.charCodeAt(ot)===37&&(D.push(W.slice(U,ot)),(et=Ab[dt=W.charAt(++ot)])!=null?dt=W.charAt(++ot):et=dt==="e"?" ":"0",(ft=Y[dt])&&(dt=ft(X,et)),D.push(dt),U=ot+1);return D.push(W.slice(U,ot)),D.join("")}}function S(W,Y){return function(X){var D=Ho(1900,void 0,1),ot=A(D,W,X+="",0),U,ut;if(ot!=X.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(Y&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(U=Mf(Ho(D.y,0,1)),ut=U.getUTCDay(),U=ut>4||ut===0?wu.ceil(U):wu(U),U=Pc.offset(U,(D.V-1)*7),D.y=U.getUTCFullYear(),D.m=U.getUTCMonth(),D.d=U.getUTCDate()+(D.w+6)%7):(U=Cf(Ho(D.y,0,1)),ut=U.getDay(),U=ut>4||ut===0?xu.ceil(U):xu(U),U=Al.offset(U,(D.V-1)*7),D.y=U.getFullYear(),D.m=U.getMonth(),D.d=U.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ut="Z"in D?Mf(Ho(D.y,0,1)).getUTCDay():Cf(Ho(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ut+5)%7:D.w+D.U*7-(ut+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Mf(D)):Cf(D)}}function A(W,Y,X,D){for(var ot=0,U=Y.length,ut=X.length,dt,et;ot<U;){if(D>=ut)return-1;if(dt=Y.charCodeAt(ot++),dt===37){if(dt=Y.charAt(ot++),et=g[dt in Ab?Y.charAt(ot++):dt],!et||(D=et(W,X,D))<0)return-1}else if(dt!=X.charCodeAt(D++))return-1}return D}function T(W,Y,X){var D=u.exec(Y.slice(X));return D?(W.p=c.get(D[0].toLowerCase()),X+D[0].length):-1}function k(W,Y,X){var D=p.exec(Y.slice(X));return D?(W.w=y.get(D[0].toLowerCase()),X+D[0].length):-1}function P(W,Y,X){var D=f.exec(Y.slice(X));return D?(W.w=h.get(D[0].toLowerCase()),X+D[0].length):-1}function E(W,Y,X){var D=v.exec(Y.slice(X));return D?(W.m=w.get(D[0].toLowerCase()),X+D[0].length):-1}function C(W,Y,X){var D=m.exec(Y.slice(X));return D?(W.m=d.get(D[0].toLowerCase()),X+D[0].length):-1}function M(W,Y,X){return A(W,t,Y,X)}function R(W,Y,X){return A(W,r,Y,X)}function $(W,Y,X){return A(W,n,Y,X)}function L(W){return o[W.getDay()]}function F(W){return a[W.getDay()]}function q(W){return l[W.getMonth()]}function I(W){return s[W.getMonth()]}function j(W){return i[+(W.getHours()>=12)]}function N(W){return 1+~~(W.getMonth()/3)}function z(W){return o[W.getUTCDay()]}function H(W){return a[W.getUTCDay()]}function B(W){return l[W.getUTCMonth()]}function Z(W){return s[W.getUTCMonth()]}function V(W){return i[+(W.getUTCHours()>=12)]}function G(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Y=x(W+="",b);return Y.toString=function(){return W},Y},parse:function(W){var Y=S(W+="",!1);return Y.toString=function(){return W},Y},utcFormat:function(W){var Y=x(W+="",_);return Y.toString=function(){return W},Y},utcParse:function(W){var Y=S(W+="",!0);return Y.toString=function(){return W},Y}}}var Ab={"-":"",_:" ",0:"0"},Ce=/^\s*\d+/,YR=/^%/,VR=/[\\^$*+?|[\]().{}]/g;function Et(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function ZR(e){return e.replace(VR,"\\$&")}function Go(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Ko(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=Ce.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iD(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pb(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Ce.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=Ce.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Ce.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fD(e,t,r){var n=YR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return Et(e.getDate(),t,2)}function dD(e,t){return Et(e.getHours(),t,2)}function mD(e,t){return Et(e.getHours()%12||12,t,2)}function yD(e,t){return Et(1+Al.count(Kn(e),e),t,3)}function RT(e,t){return Et(e.getMilliseconds(),t,3)}function gD(e,t){return RT(e,t)+"000"}function vD(e,t){return Et(e.getMonth()+1,t,2)}function bD(e,t){return Et(e.getMinutes(),t,2)}function _D(e,t){return Et(e.getSeconds(),t,2)}function xD(e){var t=e.getDay();return t===0?7:t}function wD(e,t){return Et(Ec.count(Kn(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?Za(e):Za.ceil(e)}function SD(e,t){return e=DT(e),Et(Za.count(Kn(e),e)+(Kn(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return Et(xu.count(Kn(e)-1,e),t,2)}function TD(e,t){return Et(e.getFullYear()%100,t,2)}function PD(e,t){return e=DT(e),Et(e.getFullYear()%100,t,2)}function ED(e,t){return Et(e.getFullYear()%1e4,t,4)}function CD(e,t){var r=e.getDay();return e=r>=4||r===0?Za(e):Za.ceil(e),Et(e.getFullYear()%1e4,t,4)}function MD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Et(t/60|0,"0",2)+Et(t%60,"0",2)}function Mb(e,t){return Et(e.getUTCDate(),t,2)}function kD(e,t){return Et(e.getUTCHours(),t,2)}function $D(e,t){return Et(e.getUTCHours()%12||12,t,2)}function jD(e,t){return Et(1+Pc.count(Xn(e),e),t,3)}function IT(e,t){return Et(e.getUTCMilliseconds(),t,3)}function RD(e,t){return IT(e,t)+"000"}function DD(e,t){return Et(e.getUTCMonth()+1,t,2)}function ID(e,t){return Et(e.getUTCMinutes(),t,2)}function ND(e,t){return Et(e.getUTCSeconds(),t,2)}function LD(e){var t=e.getUTCDay();return t===0?7:t}function BD(e,t){return Et(Cc.count(Xn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?Ja(e):Ja.ceil(e)}function qD(e,t){return e=NT(e),Et(Ja.count(Xn(e),e)+(Xn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return Et(wu.count(Xn(e)-1,e),t,2)}function UD(e,t){return Et(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=NT(e),Et(e.getUTCFullYear()%100,t,2)}function HD(e,t){return Et(e.getUTCFullYear()%1e4,t,4)}function GD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ja(e):Ja.ceil(e),Et(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function kb(){return"%"}function $b(e){return+e}function jb(e){return Math.floor(+e/1e3)}var Pa,LT,BT;XD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function XD(e){return Pa=XR(e),LT=Pa.format,Pa.parse,BT=Pa.utcFormat,Pa.utcParse,Pa}function YD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Av(e,t,r,n,i,a,o,s,l,u){var c=cv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),v=u("%a %d"),w=u("%b %d"),b=u("%B"),_=u("%Y");function g(x){return(l(x)<x?p:s(x)<x?y:o(x)<x?m:a(x)<x?d:n(x)<x?i(x)<x?v:w:r(x)<x?b:_)(x)}return c.invert=function(x){return new Date(f(x))},c.domain=function(x){return arguments.length?h(Array.from(x,VD)):h().map(YD)},c.ticks=function(x){var S=h();return e(S[0],S[S.length-1],x??10)},c.tickFormat=function(x,S){return S==null?g:u(S)},c.nice=function(x){var S=h();return(!x||typeof x.range!="function")&&(x=t(S[0],S[S.length-1],x??10)),x?h(OT(S,x)):c},c.copy=function(){return Sl(c,Av(e,t,r,n,i,a,o,s,l,u))},c}function Su(){return Ur.apply(Av(GR,KR,Kn,wv,Ec,Al,_v,vv,Ui,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Ur.apply(Av(WR,HR,Xn,Sv,Cc,Pc,xv,bv,Ui,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mc(){var e=0,t=1,r,n,i,a,o=Je,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(da),u.rangeRound=c(nv),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function xi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=_i(Mc()(Je));return e.copy=function(){return xi(e,qT())},Zn.apply(e,arguments)}function FT(){var e=pv(Mc()).domain([1,10]);return e.copy=function(){return xi(e,FT()).base(e.base())},Zn.apply(e,arguments)}function zT(){var e=dv(Mc());return e.copy=function(){return xi(e,zT()).constant(e.constant())},Zn.apply(e,arguments)}function Ov(){var e=mv(Mc());return e.copy=function(){return xi(e,Ov()).exponent(e.exponent())},Zn.apply(e,arguments)}function JD(){return Ov.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((wl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(mi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>uR(e,a/n))},r.copy=function(){return UT(t).domain(e)},Zn.apply(r,arguments)}function kc(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Je,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var v,w,b;return arguments.length?([v,w,b]=d,u=k$(m,[v,w,b]),p):[u(0),u(.5),u(1)]}}return p.range=y(da),p.rangeRound=y(nv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=_i(kc()(Je));return e.copy=function(){return xi(e,WT())},Zn.apply(e,arguments)}function HT(){var e=pv(kc()).domain([.1,1,10]);return e.copy=function(){return xi(e,HT()).base(e.base())},Zn.apply(e,arguments)}function GT(){var e=dv(kc());return e.copy=function(){return xi(e,GT()).constant(e.constant())},Zn.apply(e,arguments)}function Tv(){var e=mv(kc());return e.copy=function(){return xi(e,Tv()).exponent(e.exponent())},Zn.apply(e,arguments)}function QD(){return Tv.apply(null,arguments).exponent(.5)}function Vt(e){return function(){return e}}const KT=Math.cos,Au=Math.sin,nn=Math.sqrt,Rb=1e-12,Ou=Math.PI,$c=2*Ou,my=Math.PI,yy=2*my,Bi=1e-6,tI=yy-Bi;function XT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XT:eI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Bi)if(!(Math.abs(f*l-u*c)>Bi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,v=Math.sqrt(m),w=Math.sqrt(h),b=a*Math.tan((my-Math.acos((m+h-d)/(2*v*w)))/2),_=b/w,g=b/v;Math.abs(_-1)>Bi&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Bi||Math.abs(this._y1-c)>Bi)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%yy+yy),h>tI?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>Bi&&this._append`A${n},${n},0,${+(h>=my)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rI(t)}function Ev(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YT(e){this._context=e}YT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function sa(e){return new YT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function Cv(e,t){var r=Vt(!0),n=null,i=sa,a=null,o=Pv(s);e=typeof e=="function"?e:e===void 0?VT:Vt(e),t=typeof t=="function"?t:t===void 0?ZT:Vt(t);function s(l){var u,c=(l=Ev(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Vt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Vt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Vt(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Wi(e,t,r){var n=null,i=Vt(!0),a=null,o=sa,s=null,l=Pv(u);e=typeof e=="function"?e:e===void 0?VT:Vt(+e),t=typeof t=="function"?t:Vt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:Vt(+r);function u(f){var h,p,y,m=(f=Ev(f)).length,d,v=!1,w,b=new Array(m),_=new Array(m);for(a==null&&(s=o(w=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===v)if(v=!v)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],_[y]);s.lineEnd(),s.areaEnd()}v&&(b[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):_[h]))}if(w)return s=null,w+""||null}function c(){return Cv().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Vt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Vt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Vt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Vt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Vt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Vt(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Vt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nI(e){return new JT(e,!0)}function iI(e){return new JT(e,!1)}const Mv={draw(e,t){const r=nn(t/Ou);e.moveTo(r,0),e.arc(0,0,r,0,$c)}},aI={draw(e,t){const r=nn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=nn(1/3),oI=QT*2,sI={draw(e,t){const r=nn(t/oI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lI={draw(e,t){const r=nn(t),n=-r/2;e.rect(n,n,r,r)}},uI=.8908130915292852,tP=Au(Ou/10)/Au(7*Ou/10),cI=Au($c/10)*tP,fI=-KT($c/10)*tP,hI={draw(e,t){const r=nn(t*uI),n=cI*r,i=fI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=$c*a/5,s=KT(o),l=Au(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},kf=nn(3),pI={draw(e,t){const r=-nn(t/(kf*3));e.moveTo(0,r*2),e.lineTo(-kf*r,-r),e.lineTo(kf*r,-r),e.closePath()}},kr=-.5,$r=nn(3)/2,gy=1/nn(12),dI=(gy/2+1)*3,mI={draw(e,t){const r=nn(t/dI),n=r/2,i=r*gy,a=n,o=r*gy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(kr*n-$r*i,$r*n+kr*i),e.lineTo(kr*a-$r*o,$r*a+kr*o),e.lineTo(kr*s-$r*l,$r*s+kr*l),e.lineTo(kr*n+$r*i,kr*i-$r*n),e.lineTo(kr*a+$r*o,kr*o-$r*a),e.lineTo(kr*s+$r*l,kr*l-$r*s),e.closePath()}};function yI(e,t){let r=null,n=Pv(i);e=typeof e=="function"?e:Vt(e||Mv),t=typeof t=="function"?t:Vt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Vt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Vt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Tu(){}function Pu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Tu,areaEnd:Tu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new nP(e)}function Db(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function kv(e,t){this._context=e,this._k=(1-t)/6}kv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Db(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Db(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new kv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function _I(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Rb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Rb){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function iP(e,t){this._context=e,this._alpha=t}iP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_I(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xI=(function e(t){function r(n){return t?new iP(n,t):new kv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function aP(e){this._context=e}aP.prototype={areaStart:Tu,areaEnd:Tu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wI(e){return new aP(e)}function Ib(e){return e<0?-1:1}function Nb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ib(a)+Ib(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function $f(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Eu(e){this._context=e}Eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$f(this,this._t0,Lb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$f(this,Lb(this,r=Nb(this,e,t)),r);break;default:$f(this,this._t0,r=Nb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create(Eu.prototype)).point=function(e,t){Eu.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function SI(e){return new Eu(e)}function AI(e){return new oP(e)}function lP(e){this._context=e}lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bb(e),i=Bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function OI(e){return new lP(e)}function jc(e,t){this._context=e,this._t=t}jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function TI(e){return new jc(e,.5)}function PI(e){return new jc(e,0)}function EI(e){return new jc(e,1)}function Qa(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function vy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function CI(e,t){return e[t]}function MI(e){const t=[];return t.key=e,t}function Cu(){var e=Vt([]),t=vy,r=Qa,n=CI;function i(a){var o=Array.from(e.apply(this,arguments),MI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Ev(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Vt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Vt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?vy:typeof a=="function"?a:Vt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Qa,i):r},i}function kI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Qa(e,t)}}function $I(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Qa(e,t)}}function jI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,v=m[n-1][1]||0;p+=d-v}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Qa(e,t)}}function Nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
2
+ * GSAP 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
6
+ * Subject to the terms at https://gsap.com/standard-license
7
+ * @author: Jack Doyle, jack@greensock.com
8
+ */var Ar={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},to={duration:.5,overwrite:!1,delay:0},$v,Ne,te,Nr=1e8,Kt=1/Nr,by=Math.PI*2,RI=by/4,DI=0,cP=Math.sqrt,II=Math.cos,NI=Math.sin,Ee=function(t){return typeof t=="string"},se=function(t){return typeof t=="function"},Yn=function(t){return typeof t=="number"},jv=function(t){return typeof t>"u"},Sn=function(t){return typeof t=="object"},or=function(t){return t!==!1},Rv=function(){return typeof window<"u"},ql=function(t){return se(t)||Ee(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ke=Array.isArray,_y=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ra=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,jf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ne,dn,xy,Dv,Tr={},Mu={},mP,yP=function(t){return(Mu=eo(t,Tr))&&hr},Iv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Is=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Tr[t]=r)&&Mu&&(Mu[t]=r)||Tr},Ns=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},su={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Nv={},yi=[],wy={},vP,_r={},Rf={},qb=30,lu=[],Lv="",Bv=function(t){var r=t[0],n,i;if(Sn(r)||se(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=lu.length;i--&&!lu[i].targetTest(r););n=lu[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},Zi=function(t){return t._gsap||Bv(Lr(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&se(n)?t[r]():jv(n)&&t.getAttribute&&t.getAttribute(r)||n},sr=function(t,r){return(t=t.split(",")).forEach(r)||t},ce=function(t){return Math.round(t*1e5)/1e5||0},ge=function(t){return Math.round(t*1e7)/1e7||0},qa=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},FI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},ku=function(){var t=yi.length,r=yi.slice(0),n,i;for(wy={},yi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},qv=function(t){return!!(t._initted||t._startAt||t.add)},_P=function(t,r,n,i){yi.length&&!Ne&&ku(),t.render(r,n,!!(Ne&&r<0&&qv(t))),yi.length&&!Ne&&ku()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:Ee(t)?t.trim():t},wP=function(t){return t},Pr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},zI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},eo=function(t,r){for(var n in r)t[n]=r[n];return t},Fb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Sn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},$u=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},ps=function(t){var r=t.parent||ne,n=t.keyframes?zI(Ke(t.keyframes)):Pr;if(or(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},UI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},Rc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},vi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ji=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},WI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Sy=function(t,r,n,i){return t._startAt&&(Ne?t._startAt.revert(su):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},HI=function e(t){return!t||t._ts&&e(t.parent)},zb=function(t){return t._repeat?ro(t._tTime,t=t.duration()+t._rDelay)*t:0},ro=function(t,r){var n=Math.floor(t=ge(t/r));return t&&n===t?n-1:n},ju=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Dc=function(t){return t._end=ge(t._start+(t._tDur/Math.abs(t._ts||t._rts||Kt)||0))},Ic=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=ge(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Dc(t),n._dirty||Ji(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=ju(t.rawTime(),r),(!r._dur||Ol(0,r.totalDuration(),n)-r._tTime>Kt)&&r.render(n,!0)),Ji(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Kt}},yn=function(t,r,n,i){return r.parent&&vi(r),r._start=ge((Yn(n)?n:n||t!==ne?Rr(t,n,r):t._time)+r._delay),r._end=ge(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Ay(r)||(t._recent=r),i||AP(t,r),t._ts<0&&Ic(t,t._tTime),t},OP=function(t,r){return(Tr.ScrollTrigger||Iv("scrollTrigger",r))&&Tr.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(zv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Ne&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==xr.frame)return yi.push(t),t._lazy=[a,i],1},GI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ay=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},KI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&GI(t)&&!(!t._initted&&Ay(t))||(t._ts<0||t._dp._ts<0)&&!Ay(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=Ol(0,t._tDur,r),c=ro(l,s),t._yoyo&&c&1&&(o=1-o),c!==ro(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Ne||i||t._zTime===Kt||!r&&t._zTime){if(!t._initted&&TP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?Kt:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Sy(t,r,n,!0),t._onUpdate&&!n&&Sr(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Sr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&vi(t,1),!n&&!Ne&&(Sr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},XI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},no=function(t,r,n,i){var a=t._repeat,o=ge(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:ge(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Ic(t,t._tTime=t._tDur*s),t.parent&&Dc(t),n||Ji(t.parent,t),t},Ub=function(t){return t instanceof Ve?Ji(t):no(t,t._dur)},YI={_start:0,endTime:Ns,totalDuration:Ns},Rr=function e(t,r,n){var i=t.labels,a=t._recent||YI,o=t.duration()>=Nr?a.endTime(!1):t._dur,s,l,u;return Ee(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(Ke(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},ds=function(t,r,n){var i=Yn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=or(l.vars.inherit)&&l.parent;o.immediateRender=or(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new ye(r[0],o,r[a+1])},wi=function(t,r){return t||t===0?r(t):r},Ol=function(t,r,n){return n<t?t:n>r?r:n},Ge=function(t,r){return!Ee(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return wi(n,function(i){return Ol(t,r,i)})},Oy=[].slice,PP=function(t,r){return t&&Sn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&Sn(t[0]))&&!t.nodeType&&t!==dn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Ee(i)&&!r||PP(i,1)?(a=n).push.apply(a,Lr(i)):n.push(i)})||n},Lr=function(t,r,n){return te&&!r&&te.selector?te.selector(t):Ee(t)&&!n&&(xy||!io())?Oy.call((r||Dv).querySelectorAll(t),0):Ke(t)?ZI(t,n):PP(t)?Oy.call(t,0):t?[t]:[]},Ty=function(t){return t=Lr(t)[0]||Is("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Lr(r,n.querySelectorAll?n:n===t?Is("Invalid scope")||Dv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},CP=function(t){if(se(t))return t;var r=Sn(t)?t:{each:t},n=Qi(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return Ee(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],v,w,b,_,g,x,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Nr])[1],!T){for(S=-Nr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],v=l?Math.min(T,m)*c-.5:i%T,w=T===Nr?0:l?m*f/T-.5:i/T|0,S=0,A=Nr,x=0;x<m;x++)b=x%T-v,_=w-(x/T|0),d[x]=g=u?Math.abs(u==="y"?_:b):cP(b*b+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&EP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=Ge(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,ge(d.b+(n?n(m):m)*d.v)+d.u}},Py=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=ge(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Yn(n)?0:Ge(n))}},MP=function(t,r){var n=Ke(t),i,a;return!n&&Sn(t)&&(i=n=t.radius||Nr,t.values?(t=Lr(t.values),(a=!Yn(t[0]))&&(i*=i)):t=Py(t.increment)),wi(r,n?se(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Nr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||Yn(o)?c:c+Ge(o)}:Py(t))},kP=function(t,r,n,i){return wi(Ke(t)?!r:n===!0?!!(n=0):!i,function(){return Ke(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},JI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},QI=function(t,r){return function(n){return t(parseFloat(n))+(r||Ge(n))}},tN=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return wi(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return Ke(t)?$P(t,e(0,t.length),r):wi(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return Ke(t)?$P(t,e(0,t.length-1),r):wi(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Ls=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:_y),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return wi(a,function(l){return n+((l-t)/o*s||0)})},nN=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Ee(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ke(t)&&!Ke(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=eo(Ke(t)?[]:{},t));if(!c){for(l in r)Fv.call(s,t,l,"get",r[l]);a=function(y){return Hv(y,s)||(o?t.p:t)}}}return wi(n,a)},Wb=function(t,r,n){var i=t.labels,a=Nr,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},Sr=function(t,r,n){var i=t.vars,a=i[r],o=te,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&yi.length&&ku(),s&&(te=s),c=l?a.apply(u,l):a.call(u),te=o,c},ss=function(t){return vi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ne),t.progress()<1&&Sr(t,"onInterrupt"),t},Da,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Rv()||t.headless){var r=t.name,n=se(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Ns,render:Hv,add:Fv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Wv,aliases:{},register:0};if(io(),t!==i){if(_r[r])return;Pr(i,Pr($u(t,a),o)),eo(i.prototype,eo(a,$u(t,o))),_r[i.prop=r]=i,t.targetTest&&(lu.push(i),Nv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(hr,i,lr)}else RP.push(t)},Gt=255,ls={aqua:[0,Gt,Gt],lime:[0,Gt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Gt],navy:[0,0,128],white:[Gt,Gt,Gt],olive:[128,128,0],yellow:[Gt,Gt,0],orange:[Gt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Gt,0,0],pink:[Gt,192,203],cyan:[0,Gt,Gt],transparent:[Gt,Gt,Gt,0]},Df=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Gt+.5|0},IP=function(t,r,n){var i=t?Yn(t)?[t>>16,t>>8&Gt,t&Gt]:0:ls.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ls[t])i=ls[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Gt,i&Gt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Gt,t&Gt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(_y),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Df(l+1/3,a,o),i[1]=Df(l,a,o),i[2]=Df(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(_y)||ls.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Gt,o=i[1]/Gt,s=i[2]/Gt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},NP=function(t){var r=[],n=[],i=-1;return t.split(gi).forEach(function(a){var o=a.match(Ra)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Hb=function(t,r,n){var i="",a=(t+i).match(gi),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(gi,"1").split(Ra),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(gi),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},gi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ls)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(gi.lastIndex=0,gi.test(r))return n=iN.test(r),t[1]=Hb(t[1],n),t[0]=Hb(t[0],n,NP(t[1])),!0},Bs,xr=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var v=e()-i,w=d===!0,b,_,g,x;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||w)&&(x=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),_=1),w||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,x,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!xy&&Rv()&&(dn=xy=window,Dv=dn.document||{},Tr.gsap=hr,(dn.gsapVersions||(dn.gsapVersions=[])).push(hr.version),yP(Mu||dn.GreenSockGlobals||!dn.gsap&&dn||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Bs=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Bs=0,u=Ns},lagSmoothing:function(d,v){t=d||1/0,r=Math.min(v||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,v,w){var b=v?function(_,g,x,S){d(_,g,x,S),f.remove(b)}:d;return f.remove(d),s[w?"unshift":"push"](b),io(),b},remove:function(d,v){~(v=s.indexOf(d))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),io=function(){return!Bs&&xr.wake()},At={},aN=/^[\d.\-M][\d.\-,\s]/,oN=/["']/g,sN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(oN,"").trim():+u,i=l.substr(s+1).trim();return r},lN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},uN=function(t){var r=(t+"").split("("),n=At[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[sN(r[1])]:lN(t).split(",").map(xP)):At._CE&&aN.test(t)?At._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof Ve?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Qi=function(t,r){return t&&(se(t)?t:At[t]||uN(t))||r},ga=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return sr(t,function(s){At[s]=Tr[s]=a,At[o=s.toLowerCase()]=n;for(var l in a)At[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=At[s+"."+l]=a[l]}),a},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},If=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/by*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:FP(s);return a=by/a,l.config=function(u,c){return e(t,u,c)},l},Nf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};sr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;ga(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});At.Linear.easeNone=At.none=At.Linear.easeIn;ga("Elastic",If("in"),If("out"),If());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};ga("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);ga("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});ga("Circ",function(e){return-(cP(1-e*e)-1)});ga("Sine",function(e){return e===1?1:-II(e*RI)+1});ga("Back",Nf("in"),Nf("out"),Nf());At.SteppedEase=At.steps=Tr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Kt;return function(s){return((i*Ol(0,o,s)|0)+a)*n}}};to.ease=At["quad.out"];sr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Lv+=e+","+e+"Params,"});var zP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Wv},qs=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,no(this,+r.duration,1,1),this.data=r.data,te&&(this._ctx=te,te.data.push(this)),Bs||xr.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,no(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(io(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Ic(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&yn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Kt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),_P(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?ro(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Kt?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?ju(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Kt?0:this._rts,this.totalTime(Ol(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Dc(this),WI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(io(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Kt&&(this._tTime-=Kt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&yn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(or(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ju(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=qI);var i=Ne;return Ne=n,qv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Ne=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ub(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Ub(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Rr(this,n),or(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,or(i)),this._dur||(this._zTime=-Kt),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Kt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Kt,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Kt)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=se(n)?n:wP,s=function(){var u=i.then;i.then=null,se(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){ss(this)},e})();Pr(qs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Kt,_prom:0,_ps:!1,_rts:1});var Ve=(function(e){uP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=or(n.sortChildren),ne&&yn(n.parent||ne,Nn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(Nn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return ds(0,arguments,this),this},r.from=function(i,a,o){return ds(1,arguments,this),this},r.fromTo=function(i,a,o,s){return ds(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,ps(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new ye(i,a,Rr(this,o),1),this},r.call=function(i,a,o){return yn(this,ye.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new ye(i,o,Rr(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,ps(o).immediateRender=or(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,ps(s).immediateRender=or(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:ge(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,v,w,b,_,g,x,S;if(this!==ne&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,b=this._ts,v=!b,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=ge(c%d),c===l?(m=this._repeat,h=u):(g=ge(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=ro(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),x&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=x&&g&1,T=A===(x&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:ge(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&Sr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=XI(this,ge(s),ge(h)),w&&(c-=h-(h=w._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(Sr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=-Kt);break}}p=y}else{p=this._last;for(var k=i<0?i:h;p;){if(y=p._prev,(p._act||k<=p._end)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(k-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(k-p._start)*p._ts,a,o||Ne&&qv(p)),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=k?-Kt:Kt);break}}p=y}}if(w&&!a&&(this.pause(),w.render(h>=s?0:-Kt)._zTime=h>=s?1:-1,this._ts))return this._start=_,Dc(this),this.render(i,a,o);this._onUpdate&&!a&&Sr(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&vi(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(Sr(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Yn(a)||(a=Rr(this,a,i)),!(i instanceof qs)){if(Ke(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Ee(i))return this.addLabel(i,a);if(se(i))i=ye.delayedCall(0,i);else return this}return this!==i?yn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Nr);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof ye?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Ee(i)?this.removeLabel(i):se(i)?this.killTweensOf(i):(i.parent===this&&Rc(this,i),i===this._recent&&(this._recent=this._last),Ji(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(xr.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Rr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=ye.delayedCall(0,a||Ns,o);return s.data="isPause",this._hasPause=1,yn(this,s,Rr(this,i))},r.removePause=function(i){var a=this._first;for(i=Rr(this,i);a;)a._start===i&&a.data==="isPause"&&vi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)ui!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Lr(i),l=this._first,u=Yn(a),c;l;)l instanceof ye?FI(l._targets,s)&&(u?(!ui||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Rr(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=ye.to(o,Pr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Kt,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&no(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Pr({startAt:{time:Rr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Kt)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return Ji(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ji(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Nr,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,yn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;no(o,o===ne&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(ne._ts&&(_P(ne,ju(i,ne)),vP=xr.frame),xr.frame>=qb){qb+=Ar.autoSleep||120;var a=ne._first;if((!a||!a._ts)&&Ar.autoSleep&&xr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||xr.sleep()}}},t})(qs);Pr(Ve.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var l=new lr(this._pt,t,r,0,1,XP,null,a),u=0,c=0,f,h,p,y,m,d,v,w;for(l.b=n,l.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Ls(i)),o&&(w=[n,i],o(w,t,r),n=w[0],i=w[1]),h=n.match(jf)||[];f=jf.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?qa(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=jf.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(pP.test(i)||v)&&(l.e=0),this._pt=l,l},Fv=function(t,r,n,i,a,o,s,l,u,c){se(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:se(f)?u?t[r.indexOf("set")||!se(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=se(f)?u?mN:GP:Uv,y;if(Ee(i)&&(~i.indexOf("random(")&&(i=Ls(i)),i.charAt(1)==="="&&(y=qa(h,i)+(Ge(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Ey)return!isNaN(h*i)&&i!==""?(y=new lr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:KP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Iv(r,i),cN.call(this,t,r,h,i,p,l||Ar.stringFilter,u))},fN=function(t,r,n,i,a){if(se(t)&&(t=ms(t,a,r,n,i)),!Sn(t)||t.style&&t.nodeType||Ke(t)||fP(t))return Ee(t)?ms(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ms(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,l,u,c;if(_r[t]&&(s=new _r[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new lr(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==Da))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},ui,Ey,zv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,v=t.parent,w=v&&v.data==="nested"?v.vars.targets:d,b=t._overwrite==="auto"&&!$v,_=t.timeline,g,x,S,A,T,k,P,E,C,M,R,$,L;if(_&&(!h||!a)&&(a="none"),t._ease=Qi(a,to.ease),t._yEase=f?BP(Qi(f===!0?a:f,to.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?Zi(d[0]).harness:0,$=E&&i[E.prop],g=$u(i,Nv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?su:BI),m._lazy=0),o){if(vi(t._startAt=ye.set(d,Pr({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&or(l),startAt:null,delay:0,onUpdate:u&&function(){return Sr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ne||!s&&!p)&&t._startAt.revert(su),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Pr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&or(l),immediateRender:s,stagger:0,parent:v},g),$&&(S[E.prop]=$),vi(t._startAt=ye.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ne?t._startAt.revert(su):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Kt,Kt);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&or(l)||l&&!y,x=0;x<d.length;x++){if(T=d[x],P=T._gsap||Bv(d)[x]._gsap,t._ptLookup[x]=M={},wy[P.id]&&yi.length&&ku(),R=w===d?x:w.indexOf(T),E&&(C=new E).init(T,$||g,t,R,w)!==!1&&(t._pt=A=new lr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(F){M[F]=A}),C.priority&&(k=1)),!E||$)for(S in g)_r[S]&&(C=UP(S,g,t,R,T,w))?C.priority&&(k=1):M[S]=A=Fv.call(t,T,S,"get",g[S],R,w,0,i.stringFilter);t._op&&t._op[x]&&t.kill(T,t._op[x]),b&&t._pt&&(ui=t,ne.killTweensOf(T,M,t.globalTime(r)),L=!t.parent,ui=0),t._pt&&l&&(wy[P.id]=1)}k&&YP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!L,h&&r<=0&&_.render(Nr,!0,!0)},hN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Ey=1,t.vars[r]="+=0",zv(t,s),Ey=0,l?Is(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=ce(n)+Ge(f.e)),f.b&&(f.b=c.s+Ge(f.b))},pN=function(t,r){var n=t[0]?Zi(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=eo({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},dN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Ke(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},ms=function(t,r,n,i,a){return se(t)?t.call(r,n,i,a):Ee(t)&&~t.indexOf("random(")?Ls(t):t},WP=Lv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HP={};sr(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return HP[e]=1});var ye=(function(e){uP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:ps(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,v=l.yoyoEase,w=i.parent||ne,b=(Ke(n)||fP(n)?Yn(n[0]):"length"in i)?[n]:Lr(n),_,g,x,S,A,T,k,P;if(s._targets=b.length?Bv(b):Is("GSAP target "+n+" not found. https://gsap.com",!Ar.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||ql(u)||ql(c)){if(i=s.vars,_=s.timeline=new Ve({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:b}),_.kill(),_.parent=_._dp=Nn(s),_._start=0,h||ql(u)||ql(c)){if(S=b.length,k=h&&CP(h),Sn(h))for(A in h)~WP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)x=$u(i,HP),x.stagger=0,v&&(x.yoyoEase=v),P&&eo(x,P),T=b[g],x.duration=+ms(u,Nn(s),g,T,b),x.delay=(+ms(c,Nn(s),g,T,b)||0)-s._delay,!h&&S===1&&x.delay&&(s._delay=c=x.delay,s._start+=c,x.delay=0),_.to(T,x,k?k(g,T,b):0),_._ease=At.none;_.duration()?u=c=0:s.timeline=0}else if(y){ps(Pr(_.vars.defaults,{ease:"none"})),_._ease=Qi(y.ease||i.ease||"none");var E=0,C,M,R;if(Ke(y))y.forEach(function($){return _.to(b,$,">")}),_.duration();else{x={};for(A in y)A==="ease"||A==="easeEach"||dN(A,y[A],x,y.easeEach);for(A in x)for(C=x[A].sort(function($,L){return $.t-L.t}),E=0,g=0;g<C.length;g++)M=C[g],R={ease:M.e,duration:(M.t-(g?C[g-1].t:0))/100*u},R[A]=M.v,_.to(b,R,E),E+=R.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!$v&&(ui=Nn(s),ne.killTweensOf(b),ui=0),yn(w,Nn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===ge(w._time)&&or(f)&&HI(Nn(s))&&w.data!=="nested")&&(s._tTime=-Kt,s.render(Math.max(0,-c)||0)),d&&OP(Nn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-Kt&&!c?l:i<Kt?0:i,h,p,y,m,d,v,w,b,_;if(!u)KI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=ge(f%m),f===l?(y=this._repeat,h=u):(d=ge(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),v=this._yoyo&&y&1,v&&(_=this._yEase,h=u-h),d=ro(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&qP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(ge(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(_||this._ease)(h/u),this._from&&(this.ratio=w=1-w),!s&&f&&!a&&!d&&(Sr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(w,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Sy(this,i,a,o),Sr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&Sr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Sy(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&vi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(Sr(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Bs||xr.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||zv(this,u),c=this._ease(u/this._dur),hN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(Ic(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?ss(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ne),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,ui&&ui.vars.overwrite!==!0)._first||ss(this),this.parent&&o!==this.timeline.totalDuration()&&no(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?Lr(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,v;if((!a||a==="all")&&UI(s,l))return a==="all"&&(this._pt=0),ss(this);for(f=this._op=this._op||[],a!=="all"&&(Ee(a)&&(m={},sr(a,function(w){return m[w]=1}),a=m),a=pN(s,a)),v=s.length;v--;)if(~l.indexOf(s[v])){h=u[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&Rc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&ss(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return ds(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return ds(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return ne.killTweensOf(i,a,o)},t})(qs);Pr(ye.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});sr("staggerTo,staggerFrom,staggerFromTo",function(e){ye[e]=function(){var t=new Ve,r=Oy.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Uv=function(t,r,n){return t[r]=n},GP=function(t,r,n){return t[r](n)},mN=function(t,r,n,i){return t[r](i.fp,n)},yN=function(t,r,n){return t.setAttribute(r,n)},Wv=function(t,r){return se(t[r])?GP:jv(t[r])&&t.setAttribute?yN:Uv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},gN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},XP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Hv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},vN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},bN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Rc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},_N=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},YP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},lr=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||KP,this.d=l||this,this.set=u||Uv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=_N,this.m=n,this.mt=a,this.tween=i},e})();sr(Lv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Nv[e]=1});Tr.TweenMax=Tr.TweenLite=ye;Tr.TimelineLite=Tr.TimelineMax=Ve;ne=new Ve({sortChildren:!1,defaults:to,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ar.stringFilter=LP;var ta=[],uu={},xN=[],Gb=0,wN=0,Lf=function(t){return(uu[t]||xN).map(function(r){return r()})},Cy=function(){var t=Date.now(),r=[];t-Gb>2&&(Lf("matchMediaInit"),ta.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=dn.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),Lf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Gb=t,Lf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Ty(n),this.data=[],this._r=[],this.isReverted=!1,this.id=wN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){se(n)&&(a=i,i=n,n=se);var o=this,s=function(){var u=te,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=Ty(a)),te=o,f=i.apply(o,arguments),se(f)&&o._r.push(f),te=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===se?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=te;te=null,n(this),te=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof ye&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof Ve?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof ye)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=ta.length;o--;)ta[o].id===this.id&&ta.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,te&&te.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){Sn(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},l,u,c;te&&!o.selector&&(o.selector=te.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=dn.matchMedia(n[u]),l&&(ta.indexOf(o)<0&&ta.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(Cy):l.addEventListener("change",Cy)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),Ru={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new Ve(t)},getTweensOf:function(t,r){return ne.getTweensOf(t,r)},getProperty:function(t,r,n,i){Ee(t)&&(t=Lr(t)[0]);var a=Zi(t||{}).get,o=n?wP:xP;return n==="native"&&(n=""),t&&(r?o((_r[r]&&_r[r].get||a)(t,r,n,i)):function(s,l,u){return o((_r[s]&&_r[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=Lr(t),t.length>1){var i=t.map(function(c){return hr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=_r[r],s=Zi(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;Da._pt=0,f.init(t,n?c+n:c,Da,0,[t]),f.render(1,f),Da._pt&&Hv(1,Da)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=hr.to(t,Pr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return ne.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qi(t.ease,to.ease)),Fb(to,t||{})},config:function(t){return Fb(Ar,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!_r[s]&&!Tr[s]&&Is(r+" effect requires "+s+" plugin.")}),Rf[r]=function(s,l,u){return n(Lr(s),Pr(l||{},a),u)},o&&(Ve.prototype[r]=function(s,l,u){return this.add(Rf[r](s,Sn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){At[t]=Qi(r)},parseEase:function(t,r){return arguments.length?Qi(t,r):At},getById:function(t){return ne.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Ve(t),i,a;for(n.smoothChildTiming=or(t.smoothChildTiming),ne.remove(n),n._dp=0,n._time=n._tTime=ne._time,i=ne._first;i;)a=i._next,(r||!(!i._dur&&i instanceof ye&&i.vars.onComplete===i._targets[0]))&&yn(n,i,i._start-i._delay),i=a;return yn(ne,n,0),n},context:function(t,r){return t?new VP(t,r):te},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return ta.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Cy()},addEventListener:function(t,r){var n=uu[t]||(uu[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=uu[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:CP,random:kP,snap:MP,normalize:tN,getUnit:Ge,clamp:VI,splitColor:IP,toArray:Lr,selector:Ty,mapRange:jP,pipe:JI,unitize:QI,interpolate:nN,shuffle:EP},install:yP,effects:Rf,ticker:xr,updateRoot:Ve.updateRoot,plugins:_r,globalTimeline:ne,core:{PropTween:lr,globals:gP,Tween:ye,Timeline:Ve,Animation:qs,getCache:Zi,_removeLinkedListItem:Rc,reverting:function(){return Ne},context:function(t){return t&&te&&(te.data.push(t),t._ctx=te),te},suppressOverwrites:function(t){return $v=t}}};sr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Ru[e]=ye[e]});xr.add(Ve.updateRoot);Da=Ru.to({},{duration:0});var AN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},ON=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=AN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Bf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if(Ee(a)&&(l={},sr(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}ON(s,a)}}}},hr=Ru.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Ne?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},Bf("roundProps",Py),Bf("modifiers"),Bf("snap",MP))||Ru;ye.version=Ve.version=hr.version="3.13.0";mP=1;Rv()&&io();At.Power0;At.Power1;At.Power2;At.Power3;At.Power4;At.Linear;At.Quad;At.Cubic;At.Quart;At.Quint;At.Strong;At.Elastic;At.Back;At.SteppedEase;At.Bounce;At.Sine;At.Expo;At.Circ;/*!
9
+ * CSSPlugin 3.13.0
10
+ * https://gsap.com
11
+ *
12
+ * Copyright 2008-2025, GreenSock. All rights reserved.
13
+ * Subject to the terms at https://gsap.com/standard-license
14
+ * @author: Jack Doyle, jack@greensock.com
15
+ */var Kb,ci,Fa,Gv,Hi,Xb,Kv,TN=function(){return typeof window<"u"},Vn={},qi=180/Math.PI,za=Math.PI/180,Ea=Math.atan2,Yb=1e8,Xv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,gn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},My=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},CN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},MN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},kN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},$N=function(t,r,n){return t.style[r]=n},jN=function(t,r,n){return t.style.setProperty(r,n)},RN=function(t,r,n){return t._gsap[r]=n},DN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},IN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},NN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ie="transform",ur=ie+"Origin",LN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Vn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=gn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Ln(i,s)}):this.tfm[t]=o.x?o[t]:Ln(i,t),t===ur&&(this.tfm.zOrigin=o.zOrigin);else return gn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ie)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ur,r,"")),t=ie}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},BN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Xv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Kv(),(!a||!a.isStart)&&!n[ie]&&(QP(n),i.zOrigin&&n[ur]&&(n[ur]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||hr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,ky=function(t,r){var n=ci.createElementNS?ci.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ci.createElement(t);return n&&n.style?n:ci.createElement(t)},Br=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Xv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,ao(r)||r,1)||""},Vb="O,Moz,ms,Ms,Webkit".split(","),ao=function(t,r,n){var i=r||Hi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Vb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Vb[o]:"")+t},$y=function(){TN()&&window.document&&(Kb=window,ci=Kb.document,Fa=ci.documentElement,Hi=ky("div")||{style:{}},ky("div"),ie=ao(ie),ur=ie+"Origin",Hi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!ao("perspective"),Kv=hr.core.reverting,Gv=1)},Zb=function(t){var r=t.ownerSVGElement,n=ky("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Fa.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Fa.removeChild(n),a},Jb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Zb(t),n=1}return r&&(r.width||r.height)||n||(r=Zb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Jb(t,["x","cx","x1"])||0,y:+Jb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},la=function(t,r){if(r){var n=t.style,i;r in Vn&&r!==ur&&(r=ie),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Xv,"-$1").toLowerCase())):n.removeAttribute(r)}},fi=function(t,r,n,i,a,o){var s=new lr(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Qb={deg:1,rad:1,turn:1},qN={grid:1,flex:1},bi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Hi.style,l=PN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,v;if(i===o||!a||Qb[i]||Qb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&nE(t),(p||o==="%")&&(Vn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[l?"width":"height"]:t[c],ce(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===ci||!m.appendChild)&&(m=ci.body),d=m._gsap,d&&p&&d.width&&l&&d.time===xr.time&&!d.uncache)return ce(a/d.width*f);if(p&&(r==="height"||r==="width")){var w=t.style[r];t.style[r]=f+i,y=t[c],w?t.style[r]=w:la(t,r)}else(p||o==="%")&&!qN[Br(m,"display")]&&(s.position=Br(t,"position")),m===t&&(s.position="static"),m.appendChild(Hi),y=Hi[c],m.removeChild(Hi),s.position="absolute";return l&&p&&(d=Zi(m),d.time=xr.time,d.width=m[c]),ce(h?y*a/f:y&&a?f/y*a:0)},Ln=function(t,r,n,i){var a;return Gv||$y(),r in gn&&r!=="transform"&&(r=gn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Vn[r]&&r!=="transform"?(a=zs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Iu(Br(t,ur))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Du[r]&&Du[r](t,r,n)||Br(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?bi(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=ao(r,t,1),o=a&&Br(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Br(t,"borderTopColor"))}var s=new lr(this._pt,t.style,r,0,1,XP),l=0,u=0,c,f,h,p,y,m,d,v,w,b,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Br(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Br(t,r)||i,m?t.style[r]=m:la(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(Ra)||[],g=i.match(Ra)||[],g.length){for(;f=Ra.exec(i);)d=f[0],w=i.substring(l,f.index),y?y=(y+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=qa(p,d)+_),v=parseFloat(d),b=d.substr((v+"").length),l=Ra.lastIndex-b.length,b||(b=b||Ar.units[r]||_,l===i.length&&(i+=b,s.e+=b)),_!==b&&(p=bi(t,r,m,b)||0),s._pt={_next:s._pt,p:w||u===1?w:",",s:p,c:v-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},t_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},zN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=t_[n]||n,r[1]=t_[i]||i,r.join(" ")},UN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],Vn[s]&&(l=1,s=s==="transformOrigin"?ur:ie),la(n,s);l&&(la(n,ie),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",zs(n,1),o.uncache=1,QP(i)))}},Du={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new lr(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Fs=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},e_=function(t){var r=Br(t,ie);return aE(r)?Fs:r.substr(7).match(hP).map(ce)},Yv=function(t,r){var n=t._gsap||Zi(t),i=t.style,a=e_(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Fs:a):(a===Fs&&!t.offsetParent&&t!==Fa&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,Fa.appendChild(t)),a=e_(t),l?i.display=l:la(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):Fa.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},jy=function(t,r,n,i,a,o){var s=t._gsap,l=a||Yv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],v=l[4],w=l[5],b=r.split(" "),_=parseFloat(b[0])||0,g=parseFloat(b[1])||0,x,S,A,T;n?l!==Fs&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*w-d*v)/S,T=_*(-y/S)+g*(p/S)-(p*w-y*v)/S,_=A,g=T):(x=rE(t),_=x.x+(~b[0].indexOf("%")?_/100*x.width:_),g=x.y+(~(b[1]||b[0]).indexOf("%")?g/100*x.height:g)),i||i!==!1&&s.smooth?(v=_-u,w=g-c,s.xOffset=f+(v*p+w*m)-v,s.yOffset=h+(v*y+w*d)-w):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[ur]="0px 0px",o&&(fi(o,s,"xOrigin",u,_),fi(o,s,"yOrigin",c,g),fi(o,s,"xOffset",f,s.xOffset),fi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},zs=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=Br(t,ur)||"0",c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T,k,P,E,C,M,R,$,L,F,q,I,j,N,z,H,B;return c=f=h=m=d=v=w=b=_=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ie]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ie]!=="none"?l[ie]:"")),i.scale=i.rotate=i.translate="none"),S=Yv(t,n.svg),n.svg&&(n.uncache?(F=t.getBBox(),u=n.xOrigin-F.x+"px "+(n.yOrigin-F.y)+"px",L=""):L=!r&&t.getAttribute("data-svg-origin"),jy(t,L||u,!!L||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,x=n.yOrigin||0,S!==Fs&&(P=S[0],E=S[1],C=S[2],M=S[3],c=R=S[4],f=$=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt(M*M+C*C),m=P||E?Ea(E,P)*qi:0,w=C||M?Ea(C,M)*qi+m:0,w&&(y*=Math.abs(Math.cos(w*za))),n.svg&&(c-=g-(g*P+x*C),f-=x-(g*E+x*M))):(B=S[6],z=S[7],I=S[8],j=S[9],N=S[10],H=S[11],c=S[12],f=S[13],h=S[14],A=Ea(B,N),d=A*qi,A&&(T=Math.cos(-A),k=Math.sin(-A),L=R*T+I*k,F=$*T+j*k,q=B*T+N*k,I=R*-k+I*T,j=$*-k+j*T,N=B*-k+N*T,H=z*-k+H*T,R=L,$=F,B=q),A=Ea(-C,N),v=A*qi,A&&(T=Math.cos(-A),k=Math.sin(-A),L=P*T-I*k,F=E*T-j*k,q=C*T-N*k,H=M*k+H*T,P=L,E=F,C=q),A=Ea(E,P),m=A*qi,A&&(T=Math.cos(A),k=Math.sin(A),L=P*T+E*k,F=R*T+$*k,E=E*T-P*k,$=$*T-R*k,P=L,R=F),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,v=180-v),p=ce(Math.sqrt(P*P+E*E+C*C)),y=ce(Math.sqrt($*$+B*B)),A=Ea(R,$),w=Math.abs(A)>2e-4?A*qi:0,_=H?1/(H<0?-H:H):0),n.svg&&(L=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(Br(t,ie)),L&&t.setAttribute("transform",L))),Math.abs(w)>90&&Math.abs(w)<270&&(a?(p*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,w+=w<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=ce(p),n.scaleY=ce(y),n.rotation=ce(m)+s,n.rotationX=ce(d)+s,n.rotationY=ce(v)+s,n.skewX=w+s,n.skewY=b+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[ur]=Iu(u)),n.xOffset=n.yOffset=0,n.force3D=Ar.force3D,n.renderTransform=n.svg?HN:eE?oE:WN,n.uncache=0,n},Iu=function(t){return(t=t.split(" "))[0]+" "+t[1]},qf=function(t,r,n){var i=Ge(r);return ce(parseFloat(r)+parseFloat(bi(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},Ii="0deg",Xo="0px",Ni=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,v=n.force3D,w=n.target,b=n.zOrigin,_="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Ii||c!==Ii)){var x=parseFloat(c)*za,S=Math.sin(x),A=Math.cos(x),T;x=parseFloat(f)*za,T=Math.cos(x),o=qf(w,o,S*T*-b),s=qf(w,s,-Math.sin(x)*-b),l=qf(w,l,A*T*-b+b)}d!==Xo&&(_+="perspective("+d+Ni),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Xo||s!==Xo||l!==Xo)&&(_+=l!==Xo||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+Ni),u!==Ii&&(_+="rotate("+u+Ni),c!==Ii&&(_+="rotateY("+c+Ni),f!==Ii&&(_+="rotateX("+f+Ni),(h!==Ii||p!==Ii)&&(_+="skew("+h+", "+p+Ni),(y!==1||m!==1)&&(_+="scale("+y+", "+m+Ni),w.style[ie]=_||"translate(0, 0)"},HN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,v=n.yOffset,w=n.forceCSS,b=parseFloat(o),_=parseFloat(s),g,x,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=za,u*=za,g=Math.cos(l)*f,x=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=za,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,x*=T)),g=ce(g),x=ce(x),S=ce(S),A=ce(A)):(g=f,A=h,x=S=0),(b&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(b=bi(p,"x",o,"px"),_=bi(p,"y",s,"px")),(y||m||d||v)&&(b=ce(b+y-(y*g+m*S)+d),_=ce(_+m-(y*x+m*A)+v)),(i||a)&&(T=p.getBBox(),b=ce(b+i/100*T.width),_=ce(_+a/100*T.height)),T="matrix("+g+","+x+","+S+","+A+","+b+","+_+")",p.setAttribute("transform",T),w&&(p.style[ie]=T)},GN=function(t,r,n,i,a){var o=360,s=Ee(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?qi:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Yb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Yb)%o-~~(u/o)*o)),t._pt=h=new lr(t._pt,r,n,i,u,CN),h.e=c,h.u="deg",t._props.push(n),h},r_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=r_({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[ie]=r,s=zs(n,1),la(n,ie),n.setAttribute("transform",u)):(u=getComputedStyle(n)[ie],o[ie]=r,s=zs(n,1),o[ie]=u);for(l in Vn)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=Ge(u),y=Ge(c),f=p!==y?bi(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new lr(t._pt,s,l,f,h-f,My),t._pt.u=y||0,t._props.push(l));r_(s,i)};sr("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Du[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return Ln(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var sE={name:"css",register:$y,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A;Gv||$y(),this.styles=this.styles||tE(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(_r[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Du[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Ls(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",gi.lastIndex=0,gi.test(u)||(d=Ge(u),v=Ge(c)),v?d!==v&&(u=bi(t,m,u,v)+v):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],Ee(u)&&~u.indexOf("random(")&&(u=Ls(u)),Ge(u+"")||u==="auto"||(u+=Ar.units[m]||Ge(Ln(t,m))||""),(u+"").charAt(1)==="="&&(u=Ln(t,m))):u=Ln(t,m),h=parseFloat(u),w=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),f=parseFloat(c),m in gn&&(m==="autoAlpha"&&(h===1&&Ln(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),fi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=gn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Vn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Br(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||zs(t,r.parseTransform),x=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new lr(this._pt,s,ie,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new lr(this._pt,g,"scaleY",g.scaleY,(w?qa(g.scaleY,w+f):f)-g.scaleY||0,My),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(ur,0,s[ur]),c=zN(c),g.svg?jy(t,c,0,x,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&fi(this,g,"zOrigin",g.zOrigin,v),fi(this,s,m,Iu(u),Iu(c)));continue}else if(m==="svgOrigin"){jy(t,c,1,x,0,this);continue}else if(m in iE){GN(this,g,m,h,w?qa(h,w+c):c);continue}else if(m==="smoothOrigin"){fi(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){KN(this,c,t);continue}}else m in s||(m=ao(m)||m);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),v=Ge(c)||(m in Ar.units?Ar.units[m]:d),d!==v&&(h=bi(t,m,u,v)),this._pt=new lr(this._pt,b?g:s,m,h,(w?qa(h,w+f):f)-h,!b&&(v==="px"||m==="zIndex")&&r.autoRound!==!1?kN:My),this._pt.u=v||0,d!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=MN);else if(m in s)FN.call(this,t,m,u,w?w+c:c);else if(m in t)this.add(t,m,u||t[m],w?w+c:c,i,a);else if(m!=="parseTransform"){Iv(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&YP(this)},render:function(t,r){if(r.tween._time||!Kv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Ln,aliases:gn,getSetter:function(t,r,n){var i=gn[r];return i&&i.indexOf(",")<0&&(r=i),r in Vn&&r!==ur&&(t._gsap.x||Ln(t,"x"))?n&&Xb===n?r==="scale"?DN:RN:(Xb=n||{})&&(r==="scale"?IN:NN):t.style&&!jv(t.style[r])?$N:~r.indexOf("-")?jN:Wv(t,r)},core:{_removeProperty:la,_getMatrix:Yv}};hr.utils.checkPrefix=ao;hr.core.getStyleSaver=tE;(function(e,t,r,n){var i=sr(e+","+t+","+r,function(a){Vn[a]=1});sr(t,function(a){Ar.units[a]="deg",iE[a]=1}),gn[i[13]]=e+","+t,sr(n,function(a){var o=a.split(":");gn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");sr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Ar.units[e]="px"});hr.registerPlugin(sE);var Ry=hr.registerPlugin(sE)||hr;Ry.core.Tween;const Ca={IN_OUT:"power2.inOut",OUT:"power2.out"},Yo={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){zo(this,"timeline");zo(this,"currentStage","");zo(this,"callbacks");zo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ry.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:Ca.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:Ca.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:Ca.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:Ca.OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=Yo.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:Ca.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Ry.to(s,{attr:{d:u},duration:a,ease:Ca.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function XN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,C)=>E+C.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const C=E*Math.PI/180;for(let M=s;M>=o;M-=.1){const R=M*2,$=R*l,L=Math.floor((i-c)/$);for(let F=1;F<=Math.min(L,10);F++){let q=0;for(let I=0;I<F;I++){const j=c+(I+.5)*$,N=R*l/j,z=Math.floor(C/N);q+=z}if(q>=f){const I=f/q,j=(M-o)/(s-o),N=(q-f)/f,z=N<.15?1:N<.3?.7:N<.5?.4:.1,H=1-Math.abs(E-r)/n,B=z*.5+j*.3+I*.15+H*.05;B>h.score&&(h={seatSize:M,arcAngle:E,rings:F,score:B})}}}}const m=h.seatSize,d=h.arcAngle,v=d*Math.PI/180,w=m*2,b=w*l,_=Math.floor((i-c)/b),g=[],x=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let C=0;const M=[];for(let R=0;R<E;R++){const $=c+(R+.5)*b,L=w*l/$,F=Math.floor(v/L);M.push(F),C+=F}if(C>=f){A=E,T=M;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const C=c+(E+.5)*b,M=w*l/C,R=Math.floor(v/M);S.push(R)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*b,M=S[E]??0;if(M>0){const R=v/M;for(let $=0;$<M;$++){const L=x+($+.5)*R,F=Math.cos(L)*C,q=Math.sin(L)*C;g.push({ring:E,index:$,angle:L,x:F,y:q})}}}g.sort((E,C)=>{const M=E.angle-C.angle;return Math.abs(M)>.001?M:E.ring-C.ring});const k=[];let P=0;return e.forEach((E,C)=>{const M=Math.min(E.seats,g.length-P);for(let R=0;R<M&&P<g.length;R++){const $=g[P++];$&&k.push({x:$.x,y:$.y,category:E.name,categoryIndex:C,seatIndex:R,ring:$.ring,angle:$.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:k,totalSeats:f}}function YN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const cr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},ys=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],ir={greyHatch:{background:cr.neoGrey[200],lines:cr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function VN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",ir.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",ir.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",ir.greyHatch.lines).attr("stroke-width",.5)}function ZN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",ir.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",ir.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",ir.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",ir.dataMissingHatch.lines).attr("stroke-width",.5)}function JN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",ir.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",ir.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",ir.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",ir.noLstHatch.lines).attr("stroke-width",.5)}function Fl(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function n_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function uE(e){return e.includes("greyHatchPattern")?ir.greyHatch.lines:e.includes("dataMissingHatchPattern")?ir.dataMissingHatch.lines:e.includes("noLstHatchPattern")?ir.noLstHatch.lines:e}function Dy(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=Wi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(sa),u=Cv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(sa),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var v;const y=r[p];if(!y)return;const m=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,d=uE(y.color);if(m){const w=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}else{const w=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}})}function QN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Ue(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function cE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(v=>v.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const v=s?`seat seat-${s} seat-${Ue(p.category)}`:`seat seat-${Ue(p.category)}`;m.attr("class",v),d.attr("class",v)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function tL(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const v=u.get(h.category)??[],w=h.seatIndex,b=v.length;if(b===1)d=(y+m)/2;else{const _=w/(b-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function eL(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function rL(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Gi=new Map;ee.prototype.transition=sv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:v,onAnimationStateChange:w,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:g,hoveredCategory:x,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:T=!1,onTimeRangeChange:k,minAllowedTime:P,maxAllowedTime:E,showScaleIndicator:C=!1,reposPerSeat:M=1,timelineEvents:R=[],showTimeline:$=!1,timelineHeight:L=40,timelineOffset:F=35})=>{const[q,I]=O.useState("area"),[j,N]=O.useState(!1),[z,H]=O.useState(null),[B,Z]=O.useState(0),[V,G]=O.useState(null),[W,Y]=O.useState(null),[X,D]=O.useState([]),ot=O.useRef(null),U=O.useRef(n),ut=O.useRef(!0),dt=O.useRef(!1),et=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ft=O.useRef(void 0),Tt=O.useRef(s),at=O.useRef(v),ht=O.useRef(w),St=O.useRef(b),Ht=O.useRef(_),Zt=O.useRef(g);O.useEffect(()=>{at.current=v,ht.current=w,St.current=b,Ht.current=_,Zt.current=g},[v,w,b,_,g]),O.useEffect(()=>{if(e.current&&q==="parliament")if(x){const Bt=r.find(ae=>ae.dataKey===x);if(Bt){const ae=Bt.label;H(ae),vs(e.current,ae)}}else H(null),vs(e.current,null)},[x,q,r,t]);const Ct=i-o.left-o.right,Lt=a-o.top-o.bottom;return O.useEffect(()=>{var tt;if(!e.current||t.length===0||r.length===0||(ft.current&&(ft.current(),ft.current=void 0),dt.current))return;const Bt=ee(e.current),ae=n!==U.current;ut.current?(Bt.selectAll("*").remove(),Fl(Bt,et.current),ut.current=!1):ae||(Bt.selectAll("*").remove(),Fl(Bt,et.current));const on=t[t.length-1],Me=r.reduce((st,pt)=>st+(on.values[pt.dataKey]||0),0),Er=t.map(st=>{const pt={timestamp:st.timestamp};for(const xt of r)pt[xt.dataKey]=st.values[xt.dataKey]||0;return pt}),Wr=r.map(st=>st.dataKey),be=Cu().keys(Wr),tr=be(Er),dr=t.map(st=>st.timestamp),Tn=ae||!s?Math.min(...dr):s[0],Cr=ae||!s?Math.max(...dr):s[1],sn=[...dr].sort((st,pt)=>st-pt),Xe=[];for(let st=0;st<sn.length-1;st++)Xe.push(sn[st+1]-sn[st]);const ti=Xe.length>0?Xe.reduce((st,pt)=>st+pt,0)/Xe.length:0,ln=Cr+ti*1.15,er=Su().domain([new Date(Tn),new Date(ln)]).range([0,Ct]),Pn=Er.filter(st=>st.timestamp>=Tn&&st.timestamp<=Cr),Hr=be(Pn),ke=Hr.length>0?Math.max(...Hr[Hr.length-1].map(st=>st[1]??0)):0,Gr=oa().domain([0,ke*1.15]).range([Lt,0]),$e=r.map(st=>({...st,color:n_(st.color,et.current)})),un=$e.map(st=>({dataKey:st.dataKey,label:st.label,color:st.color,value:on.values[st.dataKey]||0})),Ei=YN(un,Me,S).reverse(),Ye=XN(Ei,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});ot.current=Ye;const cn=eL(Er,r),wa=tL(Ye,cn,er,Gr,Ct,Lt);if(ae&&!dt.current){dt.current=!0,N(!0),(tt=ht.current)==null||tt.call(ht,!0),G(null),D([]),Z(0);let st=Bt.select("g[transform]");if(st.empty()&&(st=Bt.select("g")),st.empty()){Bt.selectAll("*").remove(),Fl(Bt,et.current),Ff(Bt,n==="parliament"?"parliament":"area",tr,$e,Ye,er,Gr,Ct,Lt,o,l,u,c,f,T,k,et.current,h,s,D,G,R,$,L,F,Y,P,E),N(!1),I(n==="parliament"?"parliament":"area"),Z(n==="parliament"?1:0),U.current=n;return}const pt=setTimeout(()=>{dt.current=!1,N(!1),U.current=n},d*3);sL(Bt,n,tr,$e,Ye,wa,er,Gr,Ct,Lt,o,d,()=>{var xt,Mt;if(clearTimeout(pt),dt.current=!1,N(!1),I(n==="parliament"?"parliament":"area"),n==="parliament"&&Z(1),(xt=ht.current)==null||xt.call(ht,!1),(Mt=at.current)==null||Mt.call(at),U.current=n,n==="parliament"&&e.current&&Zt.current&&(ft.current=zf(e.current,$e,t,z,H,Zt.current,C,M,et.current)),n!=="parliament"&&e.current){const qt=ee(e.current),zt=qt.select(et.current?`.main-chart-group-${et.current}`:".main-chart-group");if($&&Y){const le=et.current?`.timeline-track-${et.current}`:".timeline-track",he=et.current?`.timeline-brush-${et.current}`:".timeline-brush";zt.select(le).remove(),zt.select(he).remove(),fE(qt,R,er,Lt,Ct,L,F,et.current,Y,T,k)}if(T&&k&&!$){const le=zt.select(et.current?`.chart-content-group-${et.current}`:".chart-content-group");iL(le,Ct,Lt,er,k,et.current,qt,P,E)}if(h.length>0&&D&&G&&s){const he=h.filter(kt=>kt.timestamp>=(s[0]??0)-1&&kt.timestamp<=(s[1]??1/0)+1).map(kt=>({...kt,x:er(new Date(kt.timestamp))}));if(D(he),he.length>0){aL(zt,he,Lt,Ct,T,G,et.current);const kt=zt.select(et.current?`.markers-${et.current}`:".markers");if(!kt.empty()){zt.selectAll(".marker-hover-overlay").remove();const Mr=zt.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",Ct).attr("height",Lt).attr("fill","none").attr("pointer-events","all");let Le=null;Mr.on("mousemove",function(Kr){const[En]=Ms(Kr,this);let Cn=null,ei=1/0;if(he.forEach(Mi=>{const kn=Math.abs(En-Mi.x);kn<ei&&(ei=kn,Cn=Mi)}),!Cn||ei>50){Le!==null&&(Le=null,kt.selectAll(".marker-line").attr("opacity",0),kt.selectAll(".marker-label").attr("opacity",0),G(null));return}const Mn=Cn;Le!==Mn.timestamp&&(Le=Mn.timestamp,kt.selectAll(".marker-line").attr("opacity",0),kt.selectAll(".marker-label").attr("opacity",0),kt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(Mn.timestamp)}).attr("opacity",.6),kt.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(Mn.timestamp)}).attr("opacity",1),G(Mn))}),Mr.on("mouseleave",function(){Le=null,kt.selectAll(".marker-line").attr("opacity",0),kt.selectAll(".marker-label").attr("opacity",0),G(null)})}}}}},u,c,f,St.current,(xt,Mt)=>{var qt;if(n==="parliament"&&xt>=.95){const zt=(xt-.95)/.05;Z(Math.min(zt,1))}(qt=Ht.current)==null||qt.call(Ht,xt,Mt)},A,et.current)}else U.current=n,n==="parliament"&&(G(null),D([])),Ff(Bt,n==="parliament"?"parliament":"area",tr,$e,Ye,er,Gr,Ct,Lt,o,l,u,c,f,T,k,et.current,h,s,D,G,R,$,L,F,Y,P,E),I(n==="parliament"?"parliament":"area"),Z(n==="parliament"?1:0),n==="parliament"&&e.current&&Zt.current&&(ft.current=zf(e.current,$e,t,z,H,Zt.current,C,M,et.current));return()=>{ft.current&&(ft.current(),ft.current=void 0)}},[n]),O.useEffect(()=>{var Pn,Hr;if(!e.current||t.length===0||dt.current)return;if(ut.current){Tt.current=s;return}if(!(s!==Tt.current&&((s==null?void 0:s[0])!==((Pn=Tt.current)==null?void 0:Pn[0])||(s==null?void 0:s[1])!==((Hr=Tt.current)==null?void 0:Hr[1]))))return;Tt.current=s;const ae=ee(e.current),on=t.map(ke=>{const Gr={timestamp:ke.timestamp};for(const $e of r)Gr[$e.dataKey]=ke.values[$e.dataKey]||0;return Gr}),Me=r.map(ke=>ke.dataKey),Wr=Cu().keys(Me)(on),be=t.map(ke=>ke.timestamp),tr=s?s[0]:Math.min(...be),dr=s?s[1]:Math.max(...be),Cr=(be.length>1?(be[be.length-1]-be[0])/(be.length-1):0)*.5,sn=Su().domain([new Date(tr-Cr),new Date(dr+Cr)]).range([0,i-o.left-o.right]),Xe=Math.max(...Wr[Wr.length-1].map(ke=>ke[1])),ti=oa().domain([0,Xe*1.1]).range([a-o.top-o.bottom,0]);if(!ot.current)return;const ln=ot.current,er=r.map(ke=>({...ke,color:n_(ke.color,et.current)}));ae.selectAll("*").remove(),Fl(ae,et.current),Ff(ae,q==="parliament"?"parliament":"area",Wr,er,ln,sn,ti,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,T,k,et.current,h,s,D,G,R,$,L,F,Y,P,E),q==="parliament"&&e.current&&Zt.current&&(ft.current=zf(e.current,er,t,z,H,Zt.current,C,M,et.current))},[s]),{isMorphing:j,currentMode:q,hoveredCategory:z,scaleIndicatorOpacity:B,visibleMarkers:X,hoveredMarker:V,setHoveredMarker:G,hoveredTimelineEvent:W,setHoveredTimelineEvent:Y}};function iL(e,t,r,n,i,a,o,s,l){const u=s,c=l,f=Oc().extent([[0,0],[t,r]]).on("start",p=>{if(!p.selection&&u!==void 0&&c!==void 0){const y=p.sourceEvent;if(y){const m=y.offsetX,d=+n.invert(m);if(d<u||d>c){o.select(".brush").call(f.move,null);return}}}}).on("brush",p=>{if(!p.selection)return;const[y,m]=p.selection;let d=+n.invert(y),v=+n.invert(m);u!==void 0&&(d=Math.max(d,u),v=Math.max(v,u)),c!==void 0&&(d=Math.min(d,c),v=Math.min(v,c));const w=n(new Date(d)),b=n(new Date(v));(w!==y||b!==m)&&o.select(".brush").call(f.move,[w,b])}).on("end",p=>{if(!p.selection)return;const[y,m]=p.selection,d=[+n.invert(y),+n.invert(m)];u!==void 0&&(d[0]=Math.max(d[0],u)),c!==void 0&&(d[1]=Math.min(d[1],c)),i(d),o.select(".brush").call(f.move,null)}),h=e.append("g").attr("class","brush").call(f);h.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),h.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),h.on("dblclick",()=>{const p=n.domain(),y=[+p[0],+p[1]];s!==void 0&&(y[0]=Math.max(y[0],s)),l!==void 0&&(y[1]=Math.min(y[1],l)),i(y)})}function aL(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",s);t.forEach(u=>{l.append("line").attr("class","marker-line").attr("data-timestamp",u.timestamp).attr("x1",u.x).attr("x2",u.x).attr("y1",0).attr("y2",r).attr("stroke",u.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),u.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",u.timestamp).attr("x",u.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",u.color??"#2F42FF").attr("opacity",0)})}function oL(e,t,r,n,i,a,o){let s=null,l;a?l=e.select(".brush .overlay"):l=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const u=c=>{let f=null,h=1/0;if(r.forEach(m=>{const d=Math.abs(c-m.x);d<h&&(h=d,f=m)}),!f||h>50)return s!==null&&(s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)),!1;const y=f;return s===y.timestamp||(s=y.timestamp,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),t.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};l.on("mousemove",function(c){const[f]=Ms(c,this);u(f)}),l.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Ff(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y=!1,m,d,v=[],w=[0,0],b,_,g=[],x=!1,S=40,A=15,T,k,P){const E=k,C=P;let M=null;const R=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",$=e.append("g").attr("class",R).attr("transform",`translate(${u.left},${u.top})`),L=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",L).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const F=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",q=$.append("g").attr("class",F).attr("clip-path",`url(#${L})`);if(c&&t!=="parliament"&&(q.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Es(a).ticks(6).tickSize(l).tickFormat(()=>"")),q.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Cs(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Dy(q,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),v.length>0)){const j=v.filter(N=>N.timestamp>=w[0]-1&&N.timestamp<=w[1]+1).map(N=>({...N,x:a(new Date(N.timestamp))}));M={markersGroup:null,visibleMarkers:j},b&&b(j)}if(t==="parliament"){const I=s/2,j=i.radius+10,N=l-i.radius*.3,z=Math.max(j,N);cE(q,i,n,{centerX:I,centerY:z,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const I=Es(a).ticks(6);h&&I.tickFormat(N=>h(+N)),$.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(I).selectAll("text").attr("font-size",14).attr("font-weight",500);const j=Cs(o).ticks(5);p&&j.tickFormat(N=>p(+N)),$.append("g").attr("class","axis axis-y").call(j).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const I=E,j=C,N=Oc().extent([[0,0],[s,l]]).on("start",H=>{if(!H.selection&&I!==void 0&&j!==void 0){const B=H.sourceEvent;if(B){const Z=B.offsetX-((u==null?void 0:u.left)||0),V=+a.invert(Z);if(V<I||V>j){e.select(".brush").call(N.move,null);return}}}}).on("brush",H=>{if(!H.selection)return;const[B,Z]=H.selection;let V=+a.invert(B),G=+a.invert(Z);I!==void 0&&(V=Math.max(V,I),G=Math.max(G,I)),j!==void 0&&(V=Math.min(V,j),G=Math.min(G,j));const W=a(new Date(V)),Y=a(new Date(G));(W!==B||Y!==Z)&&e.select(".brush").call(N.move,[W,Y])}).on("end",H=>{if(!H.selection)return;const[B,Z]=H.selection,V=[+a.invert(B),+a.invert(Z)];I!==void 0&&(V[0]=Math.max(V[0],I)),j!==void 0&&(V[1]=Math.min(V[1],j)),m(V),e.select(".brush").call(N.move,null)}),z=q.append("g").attr("class","brush").call(N);z.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),z.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),z.on("dblclick",()=>{const H=a.domain(),B=[+H[0],+H[1]];m(B)})}if(t==="area"&&M&&M.visibleMarkers.length>0){const I=$.append("g").attr("class","markers").attr("clip-path",`url(#${L})`);M.visibleMarkers.forEach(j=>{I.append("line").attr("class","marker-line").attr("data-timestamp",j.timestamp).attr("x1",j.x).attr("x2",j.x).attr("y1",0).attr("y2",l).attr("stroke",j.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),j.label&&I.append("text").attr("class","marker-label").attr("data-timestamp",j.timestamp).attr("x",j.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",j.color??"#2F42FF").attr("opacity",0)}),M.markersGroup=I}t==="area"&&x&&T&&fE(e,g,a,l,s,S,A,d,T,y,m,E,C),M&&M.visibleMarkers.length>0&&_&&t==="area"&&oL(q,M.markersGroup,M.visibleMarkers,s,l,y,_)}function fE(e,t,r,n,i,a,o,s,l,u=!1,c,f,h){const p=n+o,y=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),m=s?`timeline-track timeline-track-${s}`:"timeline-track",d=y.append("g").attr("class",m),v=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",v).append("rect").attr("x",0).attr("y",p).attr("width",i).attr("height",a),d.append("rect").attr("class","timeline-background").attr("x",0).attr("y",p).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const w=d.append("g").attr("clip-path",`url(#${v})`),b=3,_=w.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",x=>r(new Date(x.timestamp))-b/2).attr("y",p).attr("width",b).attr("height",a).attr("fill",x=>x.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",x=>x.timestamp).attr("data-event-name",x=>x.eventName),g=6;if(_.on("mouseenter",function(x,S){const A=ee(this),T=r(new Date(S.timestamp));A.transition().duration(150).attr("x",T-g/2).attr("width",g),l&&l({timestamp:S.timestamp,eventName:S.eventName,x:T})}).on("mouseleave",function(x,S){const A=ee(this),T=r(new Date(S.timestamp));A.transition().duration(150).attr("x",T-b/2).attr("width",b),l&&l(null)}),u&&c){const x=f,S=h,A=Oc().extent([[0,p],[i,p+a]]).on("start",P=>{if(!P.selection&&x!==void 0&&S!==void 0){const E=P.sourceEvent;if(E){const C=E.offsetX,M=+r.invert(C);if(M<x||M>S){const R=s?`.timeline-brush-${s}`:".timeline-brush";e.select(R).call(A.move,null);return}}}}).on("brush",P=>{if(!P.selection)return;const[E,C]=P.selection;let M=+r.invert(E),R=+r.invert(C);x!==void 0&&(M=Math.max(M,x),R=Math.max(R,x)),S!==void 0&&(M=Math.min(M,S),R=Math.min(R,S));const $=r(new Date(M)),L=r(new Date(R));if($!==E||L!==C){const F=s?`.timeline-brush-${s}`:".timeline-brush";e.select(F).call(A.move,[$,L])}}).on("end",P=>{if(!P.selection)return;const[E,C]=P.selection,M=[+r.invert(E),+r.invert(C)];x!==void 0&&(M[0]=Math.max(M[0],x)),S!==void 0&&(M[1]=Math.min(M[1],S)),c(M);const R=s?`.timeline-brush-${s}`:".timeline-brush";e.select(R).call(A.move,null)}),T=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",k=y.append("g").attr("class",T).call(A);k.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),k.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),k.on("dblclick",()=>{const P=r.domain(),E=[+P[0],+P[1]];c(E)})}}function sL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y,m,d,v,w,b){const _=e.select(b?`.main-chart-group-${b}`:".main-chart-group");_.selectAll(".markers").remove(),_.selectAll(".marker-hover-overlay").remove(),_.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?lL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b):uL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b)}function gs(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(x=>x.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,v=u[0],w=u[1],b=s?i:n(v),_=s?i:n(w),g=[];return g.push(`M ${m} ${b}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${b}`),g.push("Z"),g.join(" ")}function lL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var jl;const w=v?`.seat-${v}`:".seat",b=e.selectAll(w),_=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(_);if(g.empty()){const rt=e.attr("clip-path"),lt=rt?((jl=rt.match(/url\(#(.+)\)/))==null?void 0:jl[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,yt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",yt).attr("clip-path",`url(#${lt})`)}if(b.size()===0){Dy(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const x=rL(u),S=v?Gi.get(v):void 0;S&&(S.destroy(),v&&Gi.delete(v));const A=rt=>rt<.2?"seatsToRings":rt<.35?"ringsToBar":rt<.464?"axesReveal":rt<.6?"barSlide":rt<.82?"barsGrow":"barsToArea",T=new lE({seatsToRings:x.seatsToLines,ringsToBar:x.seatsToBar,axesReveal:x.barSlideToTimeline*.3,barSlide:x.barSlideToTimeline*.7,barsGrow:x.axesAndBarsGrow,barsToArea:x.barsToArea},{onStageComplete:rt=>{},onProgress:rt=>{if(m){const lt=A(rt);m(rt,lt)}},onComplete:()=>{c()}});v&&Gi.set(v,T),y&&y(T.getControls().getTimeline());const k=t[0].map(rt=>rt.data),P=QN(k,r),E=s/2,C=n.radius+10,M=l-n.radius*.3,R=Math.max(C,M),$=k.map(rt=>rt.timestamp),L=d??Math.max(...$),F=new Map,q=[];$.forEach((rt,lt)=>{const yt=a(new Date(rt)),Pt=$[lt+1];if(Pt){const Qt=a(new Date(Pt))-yt;q.push(Qt)}});const I=q.length>0?q.reduce((rt,lt)=>rt+lt,0)/q.length:30;$.forEach((rt,lt)=>{const yt=a(new Date(rt)),Pt=$[lt+1],Qt=lt===$.length-1?I:a(new Date(Pt))-yt;F.set(rt,{x:yt,width:Qt})});const j=P.filter(rt=>rt.timestamp===L),N=F.get(L),z=666,H=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",B=g.append("g").attr("class",H);j.sort((rt,lt)=>lt.y0-rt.y0),new Map().set(L,{x:z-N.width/2,width:N.width});const V=[],G=(n.radius-n.innerRadius)*.6,Y=l*.8,X=R,D=j.reduce((rt,lt)=>rt+(lt.y1-lt.y0),0);let ot=0;r.forEach(rt=>{const lt=j.find(Re=>Re.dataKey===rt.dataKey);if(!lt)return;const ue=(lt.y1-lt.y0)/D*Y,Qt=X-ot,Be=X-ot-ue,je=z-G/2,rr=`M ${je} ${Qt} L ${je} ${Be} L ${je+G} ${Be} L ${je+G} ${Qt} Z`;ot+=ue;const mr=B.append("path").attr("class",`parliament-bar-segment category-${Ue(lt.dataKey)}`).attr("d",rr).attr("fill",lt.color).style("opacity",0).node();mr&&V.push(mr)}),v&&(window.orchestratorMap=Gi);const U=T.getControls().getTimeline(),ut=x.seatsToLines/1e3,dt=x.seatsToBar/1e3;U.call(()=>{m==null||m(U.progress(),"seatsToRings")},[],"seatsToRings");const et=b.nodes(),ft=E,Tt=R,at=Math.max(...n.seats.map(rt=>rt.ring)),ht=n.seats.filter(rt=>rt.ring===at),St=e.append("g").attr("class",`seat-lines-${v||"default"}`),Ht=r.map(rt=>{const lt=b.filter(`.seat-${Ue(rt.dataKey)}`).size();return lt>0?{name:rt.dataKey,seatCount:lt,color:rt.color}:null}).filter(rt=>rt!==null).reverse(),Zt=Ht.reduce((rt,lt)=>rt+lt.seatCount,0),Ct=ht.length,Lt=n.radius-n.innerRadius,Bt=Lt*.6,ae=Bt/2,on=Lt*.6,Me=[];let Er=0;Ht.forEach(rt=>{const lt=Math.max(1,Math.round(rt.seatCount/Zt*Ct));for(let yt=0;yt<lt;yt++){const Pt=(Er+yt)/Ct,ue=n.arcAngle*Math.PI/180,Be=-ue/2-Math.PI/2+Pt*ue,je=(n.innerRadius+n.radius)/2,rr=ft+Math.cos(Be)*je,mr=Tt+Math.sin(Be)*je,Re=Math.cos(Be),ri=Math.sin(Be),$i=rr-ae*Re,Sa=mr-ae*ri,_e=rr+ae*Re,ni=mr+ae*ri,ii=St.append("line").attr("class","seat-line").attr("x1",$i).attr("y1",Sa).attr("x2",_e).attr("y2",ni).attr("stroke",rt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",Be*180/Math.PI).attr("data-center-x",rr).attr("data-center-y",mr).attr("data-initial-length",Bt).node();Me.push({element:ii,angle:Be})}Er+=lt});const Wr=()=>{St.remove()},be=ut*.5,tr=0,dr=[];if(dr.push(...et),dr.sort((rt,lt)=>{const yt=parseInt(rt.getAttribute("data-layout-index")||"-1",10),Pt=parseInt(lt.getAttribute("data-layout-index")||"-1",10);return yt-Pt}),dr.length>0&&Me.length>0){const rt=Me.map(lt=>lt.element);U.to(dr,{attr:{r:1.5},duration:be*.3,ease:"power2.in"},`seatsToRings+=${tr}`),rt.forEach(lt=>{const yt=lt.getAttribute("x1")||"0",Pt=lt.getAttribute("y1")||"0",ue=lt.getAttribute("x2")||"0",Qt=lt.getAttribute("y2")||"0";lt.setAttribute("data-final-x1",yt),lt.setAttribute("data-final-y1",Pt),lt.setAttribute("data-final-x2",ue),lt.setAttribute("data-final-y2",Qt),lt.setAttribute("x1",yt),lt.setAttribute("y1",Pt),lt.setAttribute("x2",yt),lt.setAttribute("y2",Pt)}),U.to(rt,{attr:{x2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-x2")||"0"),y2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:be*.6,ease:"power2.out"},`seatsToRings+=${tr+be*.2}`),U.to(dr,{opacity:0,duration:be*.3,ease:"power2.out"},`seatsToRings+=${tr+be*.3}`)}const Tn=ut*.05,Cr=ut*.7,sn=tr+be+Tn;if(Me.length>0){const rt=z,lt=R,Pt=l*.8/Me.length,ue=lt,Qt=[...Me].sort((rr,mr)=>mr.angle-rr.angle),je=.6/Qt.length;Qt.forEach((rr,mr)=>{const Re=rt,$i=ue-mr*Pt,Sa=je*mr*Cr,_e=rr.element,ni=parseFloat(_e.getAttribute("data-final-x1")||"0"),ii=parseFloat(_e.getAttribute("data-final-y1")||"0"),Fo=parseFloat(_e.getAttribute("data-final-x2")||"0"),Aa=parseFloat(_e.getAttribute("data-final-y2")||"0"),Rl=(ni+Fo)/2,fn=(ii+Aa)/2,ai=Math.atan2(Aa-ii,Fo-ni),ji=Math.sqrt(Math.pow(Fo-ni,2)+Math.pow(Aa-ii,2));U.to({progress:0},{progress:1,duration:Cr*.5,ease:"power2.inOut",delay:Sa,onUpdate:function(){const pe=this.progress(),pf=Rl+(Re-Rl)*pe,df=fn+($i-fn)*pe,hn=40*4*pe*(1-pe),Ri=pf,Di=df-hn,yf=0-ai,$n=ai+yf*pe*pe,Dl=(ji+(on-ji)*pe)/2,lk=Ri-Dl*Math.cos($n),uk=Di-Dl*Math.sin($n),ck=Ri+Dl*Math.cos($n),fk=Di+Dl*Math.sin($n);_e.setAttribute("x1",lk.toString()),_e.setAttribute("y1",uk.toString()),_e.setAttribute("x2",ck.toString()),_e.setAttribute("y2",fk.toString())},onComplete:function(){const pe=on/2;_e.setAttribute("x1",(Re-pe).toString()),_e.setAttribute("y1",$i.toString()),_e.setAttribute("x2",(Re+pe).toString()),_e.setAttribute("y2",$i.toString())}},`seatsToRings+=${sn}`),U.to(rr.element,{opacity:.95,duration:Cr*.3,ease:"power2.out",delay:Sa},`seatsToRings+=${sn}`)})}const Xe=St,ti=[];j.forEach((rt,lt)=>{const yt=b.filter(`.seat-${Ue(rt.category)}`),Pt=yt.size();if(Pt===0)return;const ue=o(rt.y1),Qt=o(rt.y0)-o(rt.y1),Be=yt.nodes().sort((fn,ai)=>{const ji=parseInt(fn.getAttribute("data-layout-index")||"-1",10),pe=parseInt(ai.getAttribute("data-layout-index")||"-1",10);return ji-pe}),je=Math.max(N.width,100),rr=Qt,mr=je/Math.max(rr,1),Re=Math.max(2,Math.ceil(Math.sqrt(Pt*mr))),ri=Math.ceil(Pt/Re),$i=je*.8,Sa=rr*.8,_e=Re>1?$i/(Re-1):0,ni=ri>1?Sa/(ri-1):0,ii=Re>1?(Re-1)*_e:0,Fo=ri>1?(ri-1)*ni:0,Aa=z-je/2+(je-ii)/2,Rl=ue+(rr-Fo)/2;Be.forEach((fn,ai)=>{const ji=parseInt(fn.getAttribute("data-layout-index")||"-1",10),pe=ji>=0?n.seats[ji]:void 0,pf=pe?E+pe.x:parseFloat(fn.getAttribute("cx")||"0"),df=pe?R+pe.y:parseFloat(fn.getAttribute("cy")||"0"),I0=(pe==null?void 0:pe.radius)||parseFloat(fn.getAttribute("r")||"4"),hn=Pt%Re;let Ri,Di;if(hn>0&&ai<hn)Di=0,Ri=ai;else{const $n=ai-(hn>0?hn:0);Ri=$n%Re,Di=Math.floor($n/Re)+(hn>0?1:0)}let mf=Aa+Ri*_e;if(hn>0&&Di===0){const $n=hn>1?(hn-1)*_e:0,N0=(ii-$n)/2;mf=Aa+N0+Ri*_e}const yf=Rl+Di*ni;ti.push({element:fn,startX:pf,startY:df,startRadius:I0,category:rt.dataKey,segmentIndex:lt,endY:yf,endX:mf})})});const ln=ti.map(rt=>{const lt=rt.startX-E,yt=rt.startY-R,Pt=Math.atan2(yt,lt);return{...rt,angle:Pt}});ln.sort((rt,lt)=>lt.angle-rt.angle);const er=dt*.8,Pn=.6,Hr=ln.length,Gr=er/Math.max(Hr,1)*(Hr-1)+Pn,$e=dt*.3,un=Gr;U.to(V,{opacity:1,duration:$e,ease:"power2.inOut"},`seatsToBar+=${un}`),Xe&&(U.to(Xe.selectAll(".seat-line").nodes(),{opacity:0,duration:$e,ease:"power2.inOut"},`seatsToBar+=${un}`),U.call(()=>{Wr()},[],`seatsToBar+=${un+$e}`));const Ei=x.barSlideToTimeline/1e3;let Ye=null,cn=null;if(f){const rt=Es(a).ticks(6);h&&rt.tickFormat(yt=>h(yt.getTime())),Ye=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),Ye.call(rt).selectAll("text").attr("font-size",14).attr("font-weight",500);const lt=Cs(o).ticks(5);p&&lt.tickFormat(yt=>p(yt)),cn=e.append("g").attr("class","axis axis-y").attr("opacity",0),cn.call(lt).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wa=x.crossFadePause/1e3,tt=un+$e+wa;V.forEach(rt=>{const lt=Array.from(rt.classList).find(Qt=>Qt.startsWith("category-"));if(!lt||!j.find(Qt=>Ue(Qt.dataKey)===lt.replace("category-","")))return;const Pt=r.findIndex(Qt=>Ue(Qt.dataKey)===lt.replace("category-",""));if(Pt===-1)return;const ue=gs(t,r,F,o,l,Pt,L,!1);ue&&U.to(rt,{attr:{d:ue},duration:Ei,ease:"power2.out"},`seatsToBar+=${tt}`)});const st=Wi().x(rt=>a(rt.data.timestamp)).y0(rt=>o(rt[0])).y1(rt=>o(rt[1])).curve(sa),pt=new Map;t.forEach((rt,lt)=>{const yt=r[lt];if(yt){const Pt=st(rt)||"";pt.set(yt.dataKey,Pt)}});const xt=tt+Ei;f&&Ye&&cn&&U.to([Ye.node(),cn.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${tt}`);const Mt=g.select(".grid-vertical"),qt=g.select(".grid-horizontal");if(!Mt.empty()||!qt.empty()){const lt=[];Mt.empty()||lt.push(Mt.node()),qt.empty()||lt.push(qt.node()),U.to(lt,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${tt}`)}const zt=x.axesAndBarsGrow/1e3,le=x.barsToArea/1e3,he=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",kt=g.append("g").attr("class",he);$.forEach(rt=>{if(rt===L)return;const lt=F.get(rt);lt&&r.forEach((yt,Pt)=>{const ue=gs(t,r,F,o,l,Pt,rt,!0),Qt=gs(t,r,F,o,l,Pt,rt,!1);if(!ue||!Qt)return;const Be=v?`histogram-path histogram-path-${v} category-${Ue(yt.dataKey)}`:`histogram-path category-${Ue(yt.dataKey)}`;kt.append("path").attr("class",Be).attr("d",ue).attr("fill",yt.color).attr("stroke",yt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",yt.dataKey).attr("data-timestamp",rt).attr("data-x-position",lt.x).attr("data-full-height-path",Qt)})});const Mr=v?`.histogram-path-${v}`:".histogram-path",Le=kt.selectAll(Mr);U.to(Le.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${xt}`);const Kr=N.x+N.width/2;Le.each(function(){var je;const rt=this.getAttribute("data-full-height-path");if(!rt)return;const lt=parseFloat(this.getAttribute("data-x-position")||"0"),yt=parseFloat(this.getAttribute("data-timestamp")||"0"),Pt=((je=F.get(yt))==null?void 0:je.width)||0,ue=lt+Pt/2,Be=Math.abs(ue-Kr)*8e-4;U.to(this,{attr:{d:rt},duration:zt,ease:"power2.out"},`seatsToBar+=${xt+Be}`)});const En=xt+zt,Cn=$[$.length-1],Ci=a(new Date(Cn))+I,Mi=a.invert(Ci).getTime(),kn=t.map(rt=>{const lt=rt[rt.length-1],yt={...lt,data:{...lt.data,timestamp:Mi}};return[...rt,yt]});Dy(e,kn,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const D0=v?`.area-${v}`:".area",ki=e.selectAll(D0);ki.attr("opacity",0),U.to(Le.nodes(),{opacity:0,duration:le,ease:"power2.inOut"},`seatsToBar+=${En}`);const $l=B.selectAll("path").nodes();$l.length>0&&U.to($l,{opacity:0,duration:le,ease:"power2.inOut"},`seatsToBar+=${En}`),U.to(ki.nodes(),{opacity:1,duration:le,ease:"power2.inOut"},`seatsToBar+=${En}`);const hf=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const rt=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(rt).remove();const lt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(lt).remove(),f&&(Ye&&Ye.attr("opacity",1),cn&&cn.attr("opacity",1)),hf()}),T.play()}function uL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var wa;const w=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(w);if(b.empty()){const tt=e.attr("clip-path"),st=tt?((wa=tt.match(/url\(#(.+)\)/))==null?void 0:wa[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,pt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",pt).attr("clip-path",`url(#${st})`)}const _=v?`.area-${v}`:".area",g=e.selectAll(_);if(g.size()===0){cL(e,r,n,s,l,v),c();return}const x={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},S=v?Gi.get(v):void 0;S&&(S.destroy(),v&&Gi.delete(v));const A=tt=>tt<.18?"areaToBar":tt<.4?"barsShrink":tt<.62?"barSlide":tt<.65?"axesHide":tt<.72?"barToRings":tt<.9?"ringsExpand":tt<.95?"ringsHold":"ringsToSeats",T=new lE({seatsToRings:x.ringsToSeats,ringsHold:x.ringsHold,ringsToBar:x.barToRings,axesReveal:x.axesHide,barSlide:x.barSlide,barsGrow:x.barsShrink,barsToArea:x.areaToBar},{onStageComplete:tt=>{},onProgress:tt=>{if(m){const st=A(tt);m(tt,st)}},onComplete:()=>{c()}});v&&Gi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(tt=>tt.data).map(tt=>tt.timestamp),E=d??Math.max(...P),C=new Map,M=[];P.forEach((tt,st)=>{const pt=a(new Date(tt)),xt=P[st+1];if(xt){const qt=a(new Date(xt))-pt;M.push(qt)}});const R=M.length>0?M.reduce((tt,st)=>tt+st,0)/M.length:30;P.forEach((tt,st)=>{const pt=a(new Date(tt)),xt=P[st+1],qt=st===P.length-1?R:a(new Date(xt))-pt;C.set(tt,{x:pt,width:qt})});const $=T.getControls().getTimeline(),L=x.areaToBar/1e3,F=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",q=b.append("g").attr("class",F);P.forEach(tt=>{const st=C.get(tt);st&&r.forEach((pt,xt)=>{const Mt=gs(t,r,C,o,l,xt,tt,!1);if(!Mt)return;const qt=v?`histogram-path histogram-path-${v} category-${Ue(pt.dataKey)}`:`histogram-path category-${Ue(pt.dataKey)}`;q.append("path").attr("class",qt).attr("d",Mt).attr("fill",pt.color).attr("stroke",pt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",pt.dataKey).attr("data-timestamp",tt).attr("data-x-position",st.x)})});const I=v?`.histogram-path-${v}`:".histogram-path",j=q.selectAll(I);$.to(g.nodes(),{opacity:0,duration:L,ease:"power2.inOut"},"areaToBar"),$.to(j.nodes(),{opacity:1,duration:L,ease:"power2.inOut"},"areaToBar");const N=x.barsShrink/1e3,z=L;j.each(function(){const tt=parseFloat(this.getAttribute("data-timestamp")||"0");if(tt===E)return;const st=r.find(Mt=>this.classList.contains(`category-${Ue(Mt.dataKey)}`));if(!st)return;const pt=r.indexOf(st),xt=gs(t,r,C,o,l,pt,tt,!0);xt&&$.to(this,{attr:{d:xt},duration:N,ease:"power2.in"},z)});const H=x.axesHide/1e3,B=z+N;if(f){const tt=e.select(".axis-x"),st=e.select(".axis-y");tt.empty()||$.to(tt.node(),{opacity:0,duration:H,ease:"power2.inOut"},B),st.empty()||$.to(st.node(),{opacity:0,duration:H,ease:"power2.inOut"},B)}const Z=b.select(".grid-vertical"),V=b.select(".grid-horizontal");Z.empty()||$.to(Z.node(),{opacity:0,duration:H,ease:"power2.inOut"},B),V.empty()||$.to(V.node(),{opacity:0,duration:H,ease:"power2.inOut"},B);const G=[];t.forEach((tt,st)=>{const pt=tt.find(Mt=>Mt.data.timestamp===E);if(!pt)return;const xt=r[st];xt&&G.push({category:xt.label,dataKey:xt.dataKey,color:xt.color,y0:pt[0],y1:pt[1]})}),G.sort((tt,st)=>st.y0-tt.y0);const W=G.reduce((tt,st)=>tt+(st.y1-st.y0),0),Y=n.radius-n.innerRadius,X=s/2,D=n.radius+10,ot=l-n.radius*.3,U=Math.max(D,ot),ut=Y*.6,et=l*.8,ft=U,Tt=x.barSlide/1e3,at=B+H,ht=666,St=j.nodes().filter(tt=>parseFloat(tt.getAttribute("data-timestamp")||"0")!==E);$.to(St,{opacity:0,duration:Tt*.2,ease:"power2.out"},at);const Ht=j.nodes().filter(tt=>parseFloat(tt.getAttribute("data-timestamp")||"0")===E);Ht.forEach(tt=>{const st=tt.getAttribute("data-category");if(!st)return;const pt=G.find(Le=>Le.dataKey===st);if(!pt)return;const qt=(pt.y1-pt.y0)/W*et;let zt=0;for(const Le of r){const Kr=G.find(ei=>ei.dataKey===Le.dataKey);if(!Kr)continue;if(Kr.dataKey===pt.dataKey)break;const Cn=(Kr.y1-Kr.y0)/W;zt+=Cn*et}const le=ft-zt,he=ft-zt-qt,kt=ht-ut/2,Mr=`M ${kt} ${le} L ${kt} ${he} L ${kt+ut} ${he} L ${kt+ut} ${le} Z`;$.to(tt,{attr:{d:Mr},duration:Tt,ease:"power2.inOut"},at)});const Zt=x.barToRings/1e3,Ct=at+Tt,Lt=x.ringsExpand/1e3,Bt=Ct+Zt,ae=x.ringsHold/1e3,on=Bt+Lt,Me=x.ringsToSeats/1e3,Er=on+ae,Wr=Math.max(...n.seats.map(tt=>tt.ring)),be=n.seats.filter(tt=>tt.ring===Wr),tr=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),dr=()=>{tr.remove()};be.forEach((tt,st)=>{const pt=r.find(xt=>xt.label===tt.category);pt&&tr.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",pt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",tt.category).attr("data-category-index",tt.categoryIndex).attr("data-ring-index",st).attr("data-seat-x",X+tt.x).attr("data-seat-y",U+tt.y).attr("data-seat-angle",Math.atan2(tt.y,tt.x)).style("opacity",0)});const Tn=tr.selectAll(".slinky-ring").nodes(),Cr=ht,sn=et/Tn.length,Xe=[...Tn].sort((tt,st)=>{const pt=parseFloat(tt.getAttribute("data-seat-angle")||"0");return parseFloat(st.getAttribute("data-seat-angle")||"0")-pt}),ti=ft;Xe.forEach((tt,st)=>{const pt=ti-st*sn,Mt=ut/2,qt=Cr-Mt,zt=Cr+Mt;tt.setAttribute("x1",qt.toString()),tt.setAttribute("y1",pt.toString()),tt.setAttribute("x2",zt.toString()),tt.setAttribute("y2",pt.toString()),tt.style.opacity="0"}),$.to(Ht,{opacity:0,duration:Zt*.7,ease:"power2.out"},Ct+Zt*.3),$.to(Xe,{opacity:1,duration:Zt,ease:"power2.in",stagger:.005},Ct);const ln=Y*.8;Xe.forEach((tt,st)=>{const pt=parseFloat(tt.getAttribute("data-seat-x")||"0"),xt=parseFloat(tt.getAttribute("data-seat-y")||"0"),Mt=parseFloat(tt.getAttribute("data-seat-angle")||"0"),qt=(Xe.length-1-st)/Xe.length*(Lt*.4),zt=parseFloat(tt.getAttribute("x1")||"0"),le=parseFloat(tt.getAttribute("y1")||"0"),he=parseFloat(tt.getAttribute("x2")||"0"),kt=parseFloat(tt.getAttribute("y2")||"0"),Mr=(zt+he)/2,Le=(le+kt)/2,Kr=Math.atan2(kt-le,he-zt),En=Math.sqrt(Math.pow(he-zt,2)+Math.pow(kt-le,2)),Cn=pt-ln/2*Math.cos(Mt),ei=xt-ln/2*Math.sin(Mt);$.to({progress:0},{progress:1,duration:Lt*.7,ease:"power2.out",onUpdate:function(){const Ci=this.progress(),Mn=Mr+(Cn-Mr)*Ci,Mi=Le+(ei-Le)*Ci,kn=Kr+(Mt-Kr)*Ci,ki=(En+(ln-En)*Ci)/2,$l=Mn-ki*Math.cos(kn),hf=Mi-ki*Math.sin(kn),jl=Mn+ki*Math.cos(kn),rt=Mi+ki*Math.sin(kn);tt.setAttribute("x1",$l.toString()),tt.setAttribute("y1",hf.toString()),tt.setAttribute("x2",jl.toString()),tt.setAttribute("y2",rt.toString())}},Bt+qt),$.to(tt,{opacity:.9,duration:Lt*.3,ease:"power2.in"},Bt+qt)}),$.call(()=>{m&&m($.progress(),"ringsHold")},[],on);const er=v?`parliament parliament-${v}`:"parliament",Pn=b.append("g").attr("class",er);n.seats.forEach((tt,st)=>{const pt=r.find(he=>he.label===tt.category);if(!pt)return;const xt=X+tt.x,Mt=U+tt.y;let qt,zt,le;tt.ring===Wr?(qt=xt,zt=Mt,le=2):(qt=xt,zt=Mt,le=tt.radius),Pn.append("circle").attr("cx",qt).attr("cy",zt).attr("r",le).attr("fill",pt.color).attr("stroke",pt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${Ue(tt.category)}`:`seat seat-${Ue(tt.category)}`).attr("data-layout-index",st).attr("data-ring",tt.ring).attr("data-final-x",xt).attr("data-final-y",Mt).attr("data-final-r",tt.radius)});const Hr=v?`.seat-${v}`:".seat",ke=Pn.selectAll(Hr);$.to(Tn,{opacity:0,duration:Me*.2,ease:"power3.out"},Er),$.to(ke.nodes(),{opacity:.8,duration:Me*.3,ease:"power2.in"},Er+Me*.25);const Gr=ke.nodes(),$e=[],un=[];Gr.forEach(tt=>{parseInt(tt.getAttribute("data-ring")||"0")===Wr?$e.push(tt):un.push(tt)});const Ei=Me*.2,Ye=Me*.7;$e.forEach(tt=>{const st=parseFloat(tt.getAttribute("data-final-r")||"4");$.to(tt,{attr:{r:st},opacity:1,duration:Ye*.6,ease:"power2.out"},Er+Ei)}),un.length>0&&$.to(un,{opacity:1,duration:Ye*.5,ease:"power2.in"},Er+Ei+Me*.15);const cn=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const tt=v?`.areas-${v}`:".areas",st=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(tt).remove(),e.selectAll(st).remove(),dr(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const pt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(pt).empty()){const Mt=s/2,qt=n.radius+10,zt=l-n.radius*.3,le=Math.max(qt,zt),he=v?`parliament-label parliament-label-${v}`:"parliament-label",kt=e.append("g").attr("class",he).attr("transform",`translate(${Mt},${le-n.radius*.15})`).style("opacity","0").style("pointer-events","none");kt.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),kt.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const Mr=kt.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Mr.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Mr.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}cn()}),T.play()}function cL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);cE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function i_(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function zf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=d[d.length-1];if(!v)return;const w=v.substring(5),b=t.find(g=>Ue(g.label)===w);if(!b)return;const _=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),x=uE(b.color),S={label:b.label,value:g,color:x};a&&a(S),i_(e,S,o??!1,s??1,l),vs(e,b.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),i_(e,null,!1,1,l),vs(e,null)};return e.addEventListener("mouseleave",h),n&&vs(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function vs(e,t){const r=e.querySelectorAll(".seat"),n=t?Ue(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const hE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,formatDate:u,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:_,hoveredCategory:g,maxSeats:x=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:T=!0,parliamentTimestamp:k,enableBrush:P=!1,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:M,timelineEvents:R=[],showTimeline:$=!1,timelineHeight:L=40,timelineOffset:F=35})=>{const q=O.useRef(null),I=O.useCallback(X=>{_&&_(X)},[_]),j=e[e.length-1],N=j?t.reduce((X,D)=>X+(j.values[D.dataKey]||0),0):0,z=N>x,H=z?Math.round(N/x):1,B=$&&r==="stacked-area"?i+L+F:i,{isMorphing:Z,currentMode:V,visibleMarkers:G,hoveredMarker:W,hoveredTimelineEvent:Y}=nL({containerRef:q,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,formatDate:u,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:I,hoveredCategory:g,maxSeats:x,parliamentTimestamp:k,enableBrush:P,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:M,showScaleIndicator:T&&z,reposPerSeat:H,timelineEvents:R,showTimeline:$,timelineHeight:L,timelineOffset:F});return K.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[K.jsx("svg",{ref:q,viewBox:`0 0 ${n} ${B}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),V==="area"&&G.map(X=>{const D=(X.x+a.left)/n*100,ot=a.top/i*100,U=new Date(X.timestamp),ut=u?u(X.timestamp):U.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),dt=K.jsxs(Q.Box,{children:[K.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:X.label?.5:0},children:ut}),X.label&&K.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:X.label})]});return K.jsx(Q.Tooltip,{title:dt,open:(W==null?void 0:W.timestamp)===X.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:K.jsx(Q.Box,{sx:{position:"absolute",left:`${D}%`,top:`${ot}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},X.timestamp)}),Y&&V==="area"&&K.jsx(Q.Tooltip,{title:K.jsxs(Q.Box,{children:[K.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:u?u(Y.timestamp):new Date(Y.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),K.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:Y.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:K.jsx(Q.Box,{sx:{position:"absolute",left:`${(Y.x+a.left)/n*100}%`,top:`${(i+F+L/2)/B*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),Z&&K.jsxs(Q.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",V," → ",r]})]})},pE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],Vv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Zv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Tl{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tl.prototype.normal={};Tl.prototype.property={};Tl.prototype.space=void 0;function dE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Tl(r,n,t)}function Us(e){return e.toLowerCase()}class pr{constructor(t,r){this.attribute=r,this.property=t}}pr.prototype.attribute="";pr.prototype.booleanish=!1;pr.prototype.boolean=!1;pr.prototype.commaOrSpaceSeparated=!1;pr.prototype.commaSeparated=!1;pr.prototype.defined=!1;pr.prototype.mustUseProperty=!1;pr.prototype.number=!1;pr.prototype.overloadedBoolean=!1;pr.prototype.property="";pr.prototype.spaceSeparated=!1;pr.prototype.space=void 0;let fL=0;const _t=va(),de=va(),Iy=va(),nt=va(),Yt=va(),Ua=va(),yr=va();function va(){return 2**++fL}const Ny=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:de,commaOrSpaceSeparated:yr,commaSeparated:Ua,number:nt,overloadedBoolean:Iy,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),Uf=Object.keys(Ny);class Jv extends pr{constructor(t,r,n,i){let a=-1;if(super(t,r),a_(this,"space",i),typeof n=="number")for(;++a<Uf.length;){const o=Uf[a];a_(this,Uf[a],(n&Ny[o])===Ny[o])}}}Jv.prototype.defined=!0;function a_(e,t,r){r&&(e[t]=r)}function ko(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Jv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Us(n)]=n,r[Us(a.attribute)]=n}return new Tl(t,r,e.space)}const mE=ko({properties:{ariaActiveDescendant:null,ariaAtomic:de,ariaAutoComplete:null,ariaBusy:de,ariaChecked:de,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:de,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:de,ariaFlowTo:Yt,ariaGrabbed:de,ariaHasPopup:null,ariaHidden:de,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:nt,ariaLive:null,ariaModal:de,ariaMultiLine:de,ariaMultiSelectable:de,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:de,ariaReadOnly:de,ariaRelevant:null,ariaRequired:de,ariaRoleDescription:Yt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:de,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yE(e,t){return t in e?e[t]:t}function gE(e,t){return yE(e,t.toLowerCase())}const hL=ko({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Yt,autoFocus:_t,autoPlay:_t,blocking:Yt,capture:null,charSet:null,checked:_t,cite:null,className:Yt,cols:nt,colSpan:null,content:null,contentEditable:de,controls:_t,controlsList:Yt,coords:nt|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:Iy,draggable:de,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Yt,height:nt,hidden:Iy,high:nt,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:_t,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:nt,pattern:null,ping:Yt,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Yt,required:_t,reversed:_t,rows:nt,rowSpan:nt,sandbox:Yt,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:de,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:de,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:de,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:gE}),pL=ko({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yr,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:yr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yr,rev:yr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yr,requiredFeatures:yr,requiredFonts:yr,requiredFormats:yr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:yr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yr,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=ko({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bE=ko({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=ko({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dL=/[A-Z]/g,o_=/-[a-z]/g,mL=/^data[-\w.:]+$/i;function xE(e,t){const r=Us(t);let n=t,i=pr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&mL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(o_,gL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!o_.test(a)){let o=a.replace(dL,yL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jv}return new i(n,t)}function yL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const wE=dE([mE,hL,vE,bE,_E],"html"),Qv=dE([mE,pL,vE,bE,_E],"svg");function s_(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function vL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l_=/[#.]/g;function bL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){l_.lastIndex=i;const s=l_.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function u_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _L(e){return e.join(" ").trim()}function SE(e,t,r){const n=r?AL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=bL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,xL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))wL(e,l.properties,f,h)}for(const u of s)Ly(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function xL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wL(e,t,r,n){const i=xE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=u_(n):i.commaSeparated?a=s_(n):i.commaOrSpaceSeparated?a=u_(s_(n).join(" ")):a=c_(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?SL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(c_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Ly(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ly(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ly(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Us(r)===Us(t)))return!0}return r}function SL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function AL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const OL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];SE(wE,"div");const Pl=SE(Qv,"g",OL),AE=(e=Pl)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:cr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:cr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:cr.neoGrey[400],"stroke-width":.5})]),OE=(e=Pl)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),TE=(e=Pl)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ut={greyHatch:{background:cr.neoGrey[200],lines:cr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},TL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>K.jsx(Q.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:K.jsxs(Q.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[K.jsx("thead",{children:K.jsxs(Q.TableRow,{children:[K.jsx(Q.TableCell,{}),K.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?K.jsxs(K.Fragment,{children:[K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):K.jsxs(K.Fragment,{children:[K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),K.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:a.color;return K.jsxs(Q.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[K.jsx(Q.TableCell,{align:"center",sx:{width:20},children:K.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
+ 0deg,
17
+ transparent,
18
+ transparent 3px,
19
+ ${Ut.greyHatch.lines} 3px,
20
+ ${Ut.greyHatch.lines} 4px
21
+ )`,borderRadius:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
+ 45deg,
23
+ transparent,
24
+ transparent 3px,
25
+ ${Ut.dataMissingHatch.lines} 3px,
26
+ ${Ut.dataMissingHatch.lines} 4px
27
+ )`,borderRadius:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
28
+ -45deg,
29
+ transparent,
30
+ transparent 3px,
31
+ ${Ut.noLstHatch.lines} 3px,
32
+ ${Ut.noLstHatch.lines} 4px
33
+ )`,borderRadius:"50%"}}}})}),K.jsx(Q.TableCell,{children:K.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[K.jsx("span",{children:a.label}),a.tooltip&&K.jsx(Q.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:K.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?K.jsxs(K.Fragment,{children:[K.jsx(Q.TableCell,{align:"right",children:a.value}),K.jsxs(Q.TableCell,{align:"right",children:[a.percentage,"%"]})]}):K.jsxs(K.Fragment,{children:[K.jsx(Q.TableCell,{align:"right",children:a.value}),K.jsx(Q.TableCell,{align:"right",children:a.max??"-"}),K.jsx(Q.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),f_={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},PL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:f_[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:f_[h.label]})}}}return[...u,...c]},EL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},CL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},PE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,minAllowedTime:u,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,enableAnimation:m=!0,animationDuration:d=5439,disableTimeline:v=!1,formatDate:w,formatValue:b,onAnimationStateChange:_,onTimelineReady:g,onAnimationProgress:x})=>{CL(e);const[S,A]=O.useState(null),[T,k]=O.useState(!0),P=O.useRef("historical"),E=O.useRef(void 0),C=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),M=O.useMemo(()=>{var D;let X;return t!==void 0&&e.timeSeries[t]?(X=e.timeSeries[t].timestamp,E.current=X):P.current==="point-in-time"&&C==="historical"&&E.current!==void 0?X=E.current:X=(D=e.timeSeries[e.timeSeries.length-1])==null?void 0:D.timestamp,P.current=C,X},[t,e.timeSeries,C]),R=e.timeSeries[0].timestamp,$=e.timeSeries[e.timeSeries.length-1].timestamp,[L,F]=O.useState([R,$]),q=s??L,I=O.useCallback(X=>{const D=[u!==void 0?Math.max(X[0],u):X[0],c!==void 0?Math.min(X[1],c):X[1]];l?l(D):F(D)},[l,u,c]);O.useEffect(()=>{A(null)},[C]);const j=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),N=O.useMemo(()=>EL(e),[e]),z=O.useMemo(()=>PL(e,C),[e,C]),H=O.useMemo(()=>{const X=e.timeSeries[e.timeSeries.length-1];return X?Object.values(X.values).reduce((D,ot)=>D+ot,0):0},[e.timeSeries]),B=O.useMemo(()=>Vv({repositoryCount:H}),[H]),Z=O.useMemo(()=>Zv({repositoryCount:H}),[H]),V=O.useMemo(()=>{const X=o-j.top-j.bottom;return Math.round(X*.9)},[o,j]),G=O.useMemo(()=>e.events?e.events.map(X=>({timestamp:X.timestamp,label:X.eventName,color:typeof X.color=="string"?X.color:"#2F42FF"})):[],[e.events]),W=O.useCallback(X=>{if(X){const D=e.categories.find(ot=>ot.label===X.label);A((D==null?void 0:D.id)??null)}else A(null)},[e.categories]),Y=O.useCallback(X=>{k(!X),_&&_(X)},[_]);return K.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&K.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&K.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&K.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),K.jsx(Q.Box,{sx:{position:"relative",width:"100%"},children:K.jsx(hE,{data:N.data,categories:N.categories,mode:C==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:q,onTimeRangeChange:I,minAllowedTime:u,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,margin:j,markers:G,formatDate:w,formatValue:b,animationDuration:d,onAnimationStateChange:Y,onTimelineReady:g,onAnimationProgress:x,onHoveredDataChange:W,hoveredCategory:S,arcAngle:B,parliamentRadius:V,seatSize:Z,parliamentTimestamp:M,timelineEvents:e.events??[],showTimeline:C==="historical"&&!v})}),K.jsx(TL,{categories:z,activeCategory:S,onCategoryHover:A,mode:C,visible:T})]})},ML=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const w=ee(e.current),b=n-a.left-a.right,_=i-a.top-a.bottom;w.selectAll("*").remove();const g=w.append("g").attr("transform",`translate(${a.left},${a.top})`),x=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;w.append("defs").append("clipPath").attr("id",x).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",_);const S=g.append("g").attr("clip-path",`url(#${x})`),A=r.map(j=>j.dataKey),T=Cu().keys(A),k=T(t),P=t.map(j=>j.timestamp),E=o?o[0]:Math.min(...P),C=o?o[1]:Math.max(...P),M=Su().domain([new Date(E),new Date(C)]).range([0,b]),R=t.filter(j=>j.timestamp>=E&&j.timestamp<=C),$=T(R),L=$.length>0?Math.max(...$[$.length-1].map(j=>j[1]??0)):0,F=oa().domain([0,L*1.1]).range([_,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Es(M).ticks(6).tickSize(_).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Cs(F).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=Wi().x(j=>M(new Date(j.data.timestamp))).y0(j=>F(j[0])).y1(j=>F(j[1])).curve(xI.alpha(.5)),I=S.append("g").attr("class","areas");if(k.forEach((j,N)=>{const z=r[N];if(!z)return;const H=I.append("path").datum(j).attr("class",`area area-${z.dataKey}`).attr("fill",z.color).attr("fill-opacity",z.fillOpacity??.7).attr("stroke",z.color).attr("stroke-width",z.strokeWidth??1.5).attr("d",q);z.strokeDasharray&&H.attr("stroke-dasharray",z.strokeDasharray)}),m.length>0){const j=S.append("g").attr("class","markers"),N=d==="hover"?0:.6,z=m.filter(H=>H.timestamp>=E&&H.timestamp<=C).map(H=>({...H,x:M(new Date(H.timestamp))}));if(z.forEach(H=>{const B=j.append("line").attr("class","marker-line").attr("data-timestamp",H.timestamp).attr("x1",H.x).attr("x2",H.x).attr("y1",0).attr("y2",_).attr("stroke",H.color??"#131E7A").attr("stroke-width",2).attr("opacity",N);H.strokeDasharray&&B.attr("stroke-dasharray",H.strokeDasharray),H.label&&j.append("text").attr("class","marker-label").attr("data-timestamp",H.timestamp).attr("x",H.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",H.color??"#131E7A").attr("opacity",N).text(H.label)}),d==="hover"&&z.length>0){const H=w.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),B=H.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),Z=H.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let V=null;const G=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",_).attr("fill","none").attr("pointer-events","all"),W=Y=>{let X=null,D=1/0;if(z.forEach(Zt=>{const Ct=Math.abs(Y-Zt.x);Ct<D&&(D=Ct,X=Zt)}),!X||D>50)return V!==null&&(V=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),H.style("display","none"),v==null||v(!1)),!1;const U=X;if(V===null&&(v==null||v(!0)),V===U.timestamp)return!0;V=U.timestamp,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),j.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",.6),j.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",1);const ut=new Date(U.timestamp),dt=p?p(U.timestamp):ut.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),et=U.label?`${U.label}: ${dt}`:dt;Z.text(et);const ft=Z.node().getBBox(),Tt=8,at=ft.width+Tt*2,ht=ft.height+Tt*2;B.attr("width",at).attr("height",ht);let St=U.x-at/2;const Ht=10;return St<0?St=0:St+at>b&&(St=b-at),H.attr("transform",`translate(${a.left+St},${a.top+Ht})`),Z.attr("x",at/2).attr("y",ht/2+4),H.style("display","block"),!0};G.on("mousemove",function(Y){const[X]=Ms(Y,this);W(X)&&Y.stopPropagation()}),G.on("mouseleave",function(){V=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),H.style("display","none"),v==null||v(!1)})}}if(l){const j=Es(M).ticks(6);p&&j.tickFormat(N=>p(+N)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${_})`).call(j).selectAll("text").attr("font-size",11)}if(u){const j=Cs(F).ticks(5);y&&j.tickFormat(N=>y(+N)),g.append("g").attr("class","axis axis-y").call(j).selectAll("text").attr("font-size",11)}if(c&&h){const j=Oc().extent([[0,0],[b,_]]).on("end",z=>{if(!z.selection)return;const[H,B]=z.selection,Z=[+M.invert(H),+M.invert(B)];h(Z),f&&w.select(".brush").call(j.move,null)}),N=S.append("g").attr("class","brush").call(j);N.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),N.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{w.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,v])},kL=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:v,enableBrush:w=!1,zoomToSelection:b=!1,markers:_=[],markerVisibilityMode:g="hover"})=>{const x=O.useRef(null),[S,A]=O.useState(null),[T,k]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),ML({containerRef:x,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:w,zoomToSelection:b,onTimeRangeChange:v,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:k});const C=R=>{if(!o||!x.current||T)return;const $=x.current.getBoundingClientRect(),L=R.clientX-$.left-u.left,F=R.clientY-$.top,q=s-u.left-u.right;if(L<0||L>q){A(null);return}const I=e.map(Y=>Y.timestamp),j=c?c[0]:Math.min(...I),N=c?c[1]:Math.max(...I),z=L/q*(N-j)+j,B=((Y,X)=>{let D=0,ot=Y.length;for(;D<ot;){const U=D+ot>>>1;Y[U]<X?D=U+1:ot=U}return D})(I,z),Z=e[B-1],V=e[B];let G=V;if(Z&&V?G=z-Z.timestamp>V.timestamp-z?V:Z:Z&&(G=Z),!G){A(null);return}const W=t.map(Y=>({label:Y.label,value:G[Y.dataKey]??0,color:Y.color}));A({visible:!0,x:R.clientX-$.left,y:F,timestamp:G.timestamp,values:W})},M=()=>{o&&A(null)};return K.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&K.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&K.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&K.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),K.jsxs(Q.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[K.jsx("svg",{ref:x,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:C,onMouseLeave:M}),o&&S&&S.visible&&K.jsxs(Q.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[K.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),K.jsx(Q.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(R=>K.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[K.jsxs(Q.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[K.jsx(Q.Box,{sx:{width:8,height:8,backgroundColor:R.color,borderRadius:"50%"}}),K.jsxs(Q.Typography,{variant:"caption",children:[R.label,":"]})]}),K.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(R.value):R.value})]},R.label))})]})]}),a&&K.jsx(Q.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(R=>K.jsxs(Q.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[K.jsx(Q.Box,{sx:{width:16,height:16,backgroundColor:R.color,opacity:R.fillOpacity??.7,border:`2px solid ${R.color}`,borderRadius:"2px",...R.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
+ 45deg,
35
+ transparent,
36
+ transparent 4px,
37
+ ${R.color} 4px,
38
+ ${R.color} 8px
39
+ )`}}}),K.jsx(Q.Typography,{variant:"body2",children:R.label})]},R.dataKey))})]})},$L=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h_={}.hasOwnProperty;function jL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&h_.call(i,e)){const l=String(i[e]);o=h_.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const RL=/["&'<>`]/g,DL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,NL=/[|\\{}()[\]^$+*?.]/g,p_=new WeakMap;function LL(e,t){if(e=e.replace(t.subset?BL(t.subset):RL,n),t.subset||t.escapeOnly)return e;return e.replace(DL,r).replace(IL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function BL(e){let t=p_.get(e);return t||(t=qL(e),p_.set(e,t)),t}function qL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(NL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const FL=/[\dA-Fa-f]/;function zL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!FL.test(String.fromCharCode(t))?n:n+";"}const UL=/\d/;function WL(e,t,r){const n="&#"+String(e);return r&&t&&!UL.test(String.fromCharCode(t))?n:n+";"}const HL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Wf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},GL=["cent","copy","divide","gt","lt","not","para","times"],EE={}.hasOwnProperty,By={};let zl;for(zl in Wf)EE.call(Wf,zl)&&(By[Wf[zl]]=zl);const KL=/[^\dA-Za-z]/;function XL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(By,i)){const a=By[i],o="&"+a;return r&&HL.includes(a)&&!GL.includes(a)&&(!n||t&&t!==61&&KL.test(String.fromCharCode(t)))?o:o+";"}return""}function YL(e,t,r){let n=zL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=XL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=WL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Wa(e,t){return LL(e,Object.assign({format:YL},t))}const VL=/^>|^->|<!--|-->|--!>|<!-$/g,ZL=[">"],JL=["<",">"];function QL(e,t,r,n){return n.settings.bogusComments?"<?"+Wa(e.value,Object.assign({},n.settings.characterReferences,{subset:ZL}))+">":"<!--"+e.value.replace(VL,i)+"-->";function i(a){return Wa(a,Object.assign({},n.settings.characterReferences,{subset:JL}))}}function tB(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function d_(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const eB=/[ \t\n\f\r]/g;function t0(e){return typeof e=="object"?e.type==="text"?m_(e.value):!1:m_(e)}function m_(e){return e.replace(eB,"")===""}const Te=ME(1),CE=ME(-1),rB=[];function ME(e){return t;function t(r,n,i){const a=r?r.children:rB;let o=(n||0)+e,s=a[o];if(!i)for(;s&&t0(s);)o+=e,s=a[o];return s}}const nB={}.hasOwnProperty;function kE(e){return t;function t(r,n,i){return nB.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const e0=kE({body:aB,caption:Hf,colgroup:Hf,dd:uB,dt:lB,head:Hf,html:iB,li:sB,optgroup:cB,option:fB,p:oB,rp:y_,rt:y_,tbody:pB,td:g_,tfoot:dB,th:g_,thead:hB,tr:mB});function Hf(e,t,r){const n=Te(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&t0(n.value.charAt(0)))}function iB(e,t,r){const n=Te(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=Te(r,t);return!n||n.type!=="comment"}function oB(e,t,r){const n=Te(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function sB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&n.tagName==="li"}function lB(e,t,r){const n=Te(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function uB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function y_(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function cB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function fB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hB(e,t,r){const n=Te(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function pB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function dB(e,t,r){return!Te(r,t)}function mB(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function g_(e,t,r){const n=Te(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const yB=kE({body:bB,colgroup:_B,head:vB,html:gB,tbody:xB});function gB(e){const t=Te(e,-1);return!t||t.type!=="comment"}function vB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function bB(e){const t=Te(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&t0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function _B(e,t,r){const n=CE(r,t),i=Te(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function xB(e,t,r){const n=CE(r,t),i=Te(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ul={name:[[`
2
40
  \f\r &/=>`.split(""),`
3
41
  \f\r "&'/=>\``.split("")],[`\0
4
42
  \f\r "&'/<=>`.split(""),`\0
@@ -6,25 +44,25 @@
6
44
  \f\r &>`.split(""),`\0
7
45
  \f\r "&'<=>\``.split("")],[`\0
8
46
  \f\r "&'<=>\``.split(""),`\0
9
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function __(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const u=[];let s;i.space==="html"&&e.tagName==="svg"&&(n.schema=Qd);const l=A_(n,e.properties),f=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,f&&(o=!1),(l||!a||!g_(e,t,r))&&(u.push("<",e.tagName,l?" "+l:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(s=l.charAt(l.length-1),(!n.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!o&&(!a||!tp(e,t,r))&&u.push("</"+e.tagName+">"),u.join("")}function A_(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=P_(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function P_(e,t,r){const n=Lx(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,u;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const s=Vr(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ia.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?t_:r_)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?s:(e.settings.preferUnquoted&&(u=Vr(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ia.unquoted[i][a]}))),u!==r&&(e.settings.quoteSmart&&ch(r,o)>ch(r,e.alternative)&&(o=e.alternative),u=o+Vr(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?ia.single:ia.double)[i][a],attribute:!0}))+o),s+(u&&"="+u))}const E_=["<","&"];function Wx(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Vr(e.value,Object.assign({},n.settings.characterReferences,{subset:E_}))}function T_(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Wx(e,t,r,n)}function C_(e,t,r,n){return n.all(e)}const M_=$1("type",{invalid:j_,unknown:I_,handlers:{comment:Q1,doctype:e_,element:__,raw:T_,root:C_,text:Wx}});function j_(e){throw new Error("Expected node, not `"+e+"`")}function I_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const $_={},k_={},R_=[];function D_(e,t){const r=$_,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:N_,all:L_,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||A1,characterReferences:r.characterReferences||k_,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Qd:qx,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function N_(e,t,r){return M_(e,t,r,this)}function L_(e){const t=[],r=e&&e.children||R_;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const mt={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},Qn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ze={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Yr={COMPLETED:mt.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},ei="N/A",ti="No LST",ri="Data Missing",yh=/[#.]/g;function q_(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){yh.lastIndex=i;const u=yh.exec(r),s=r.slice(i,u?u.index:r.length);s&&(a?a==="#"?n.id=s:Array.isArray(n.className)?n.className.push(s):n.className=[s]:o=s,i+=s.length),u&&(a=u[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function Hx(e,t,r){const n=r?U_(r):void 0;function i(a,o,...u){let s;if(a==null){s={type:"root",children:[]};const l=o;u.unshift(l)}else{s=q_(a,t);const l=s.tagName.toLowerCase(),f=n?n.get(l):void 0;if(s.tagName=f||l,B_(o))u.unshift(o);else for(const[c,d]of Object.entries(o))F_(e,s.properties,c,d)}for(const l of u)Tf(s.children,l);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return i}function B_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function F_(e,t,r,n){const i=Lx(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=dh(n):i.commaSeparated?a=fh(n):i.commaOrSpaceSeparated?a=dh(fh(n).join(" ")):a=mh(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?z_(n):String(n);if(Array.isArray(a)){const o=[];for(const u of a)o.push(mh(i,i.property,u));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Tf(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Tf(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Tf(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mh(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||ci(r)===ci(t)))return!0}return r}function z_(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function U_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const W_=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];Hx(qx,"div");const Vi=Hx(Qd,"g",W_);var aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu,gh;function Gx(){if(gh)return lu;gh=1;var e=typeof aa=="object"&&aa&&aa.Object===Object&&aa;return lu=e,lu}var cu,bh;function Mt(){if(bh)return cu;bh=1;var e=Gx(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return cu=r,cu}var fu,xh;function H_(){if(xh)return fu;xh=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return fu=t,fu}var du,wh;function G_(){if(wh)return du;wh=1;var e=H_(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return du=r,du}var pu,Sh;function ur(){if(Sh)return pu;Sh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return pu=e,pu}var hu,Oh;function Yi(){if(Oh)return hu;Oh=1;var e=Mt(),t=e.Symbol;return hu=t,hu}var vu,_h;function K_(){if(_h)return vu;_h=1;var e=Yi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var f=n.call(o);return l&&(u?o[i]=s:delete o[i]),f}return vu=a,vu}var yu,Ah;function V_(){if(Ah)return yu;Ah=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return yu=r,yu}var mu,Ph;function Zt(){if(Ph)return mu;Ph=1;var e=Yi(),t=K_(),r=V_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return mu=o,mu}var gu,Eh;function Jt(){if(Eh)return gu;Eh=1;function e(t){return t!=null&&typeof t=="object"}return gu=e,gu}var bu,Th;function Tn(){if(Th)return bu;Th=1;var e=Zt(),t=Jt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return bu=n,bu}var xu,Ch;function rp(){if(Ch)return xu;Ch=1;var e=G_(),t=ur(),r=Tn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=t(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e(l);var c=a.test(l);return c||o.test(l)?u(l.slice(2),c?2:8):i.test(l)?n:+l}return xu=s,xu}var wu,Mh;function Kx(){if(Mh)return wu;Mh=1;var e=rp(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return wu=n,wu}var Su,jh;function np(){if(jh)return Su;jh=1;var e=Kx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Su=t,Su}var Ou,Ih;function Oo(){if(Ih)return Ou;Ih=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Ou=e,Ou}var _u,$h;function Qe(){if($h)return _u;$h=1;var e=Array.isArray;return _u=e,_u}var Au,kh;function Y_(){if(kh)return Au;kh=1;var e=Yi(),t=Oo(),r=Qe(),n=Tn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Au=o,Au}var Pu,Rh;function ip(){if(Rh)return Pu;Rh=1;var e=Y_();function t(r){return r==null?"":e(r)}return Pu=t,Pu}var Eu,Dh;function X_(){if(Dh)return Eu;Dh=1;var e=Mt(),t=np(),r=rp(),n=ip(),i=e.isFinite,a=Math.min;function o(u){var s=Math[u];return function(l,f){if(l=r(l),f=f==null?0:a(t(f),292),f&&i(l)){var c=(n(l)+"e").split("e"),d=s(c[0]+"e"+(+c[1]+f));return c=(n(d)+"e").split("e"),+(c[0]+"e"+(+c[1]-f))}return s(l)}}return Eu=o,Eu}var Tu,Nh;function Z_(){if(Nh)return Tu;Nh=1;var e=X_(),t=e("round");return Tu=t,Tu}var J_=Z_();const Q_=Se(J_);var Cu,Lh;function Vx(){if(Lh)return Cu;Lh=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Cu=e,Cu}var Mu,qh;function eA(){if(qh)return Mu;qh=1;var e=Zt(),t=Jt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Mu=n,Mu}var ju,Bh;function ap(){if(Bh)return ju;Bh=1;var e=eA(),t=Jt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return ju=a,ju}var Iu,Fh;function tA(){if(Fh)return Iu;Fh=1;var e=Yi(),t=ap(),r=Qe(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Iu=i,Iu}var $u,zh;function Yx(){if(zh)return $u;zh=1;var e=Vx(),t=tA();function r(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=t),u||(u=[]);++s<l;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return $u=r,$u}var ku,Uh;function op(){if(Uh)return ku;Uh=1;var e=Qe(),t=Tn(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ku=i,ku}var Ru,Wh;function up(){if(Wh)return Ru;Wh=1;var e=Zt(),t=ur(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Ru=o,Ru}var Du,Hh;function rA(){if(Hh)return Du;Hh=1;var e=Mt(),t=e["__core-js_shared__"];return Du=t,Du}var Nu,Gh;function nA(){if(Gh)return Nu;Gh=1;var e=rA(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Nu=r,Nu}var Lu,Kh;function Xx(){if(Kh)return Lu;Kh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Lu=r,Lu}var qu,Vh;function iA(){if(Vh)return qu;Vh=1;var e=up(),t=nA(),r=ur(),n=Xx(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,f=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return qu=c,qu}var Bu,Yh;function aA(){if(Yh)return Bu;Yh=1;function e(t,r){return t==null?void 0:t[r]}return Bu=e,Bu}var Fu,Xh;function $r(){if(Xh)return Fu;Xh=1;var e=iA(),t=aA();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Fu=r,Fu}var zu,Zh;function _o(){if(Zh)return zu;Zh=1;var e=$r(),t=e(Object,"create");return zu=t,zu}var Uu,Jh;function oA(){if(Jh)return Uu;Jh=1;var e=_o();function t(){this.__data__=e?e(null):{},this.size=0}return Uu=t,Uu}var Wu,Qh;function uA(){if(Qh)return Wu;Qh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Wu=e,Wu}var Hu,ev;function sA(){if(ev)return Hu;ev=1;var e=_o(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Hu=i,Hu}var Gu,tv;function lA(){if(tv)return Gu;tv=1;var e=_o(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Gu=n,Gu}var Ku,rv;function cA(){if(rv)return Ku;rv=1;var e=_o(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Ku=r,Ku}var Vu,nv;function fA(){if(nv)return Vu;nv=1;var e=oA(),t=uA(),r=sA(),n=lA(),i=cA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vu=a,Vu}var Yu,iv;function dA(){if(iv)return Yu;iv=1;function e(){this.__data__=[],this.size=0}return Yu=e,Yu}var Xu,av;function sp(){if(av)return Xu;av=1;function e(t,r){return t===r||t!==t&&r!==r}return Xu=e,Xu}var Zu,ov;function Ao(){if(ov)return Zu;ov=1;var e=sp();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Zu=t,Zu}var Ju,uv;function pA(){if(uv)return Ju;uv=1;var e=Ao(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Ju=n,Ju}var Qu,sv;function hA(){if(sv)return Qu;sv=1;var e=Ao();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Qu=t,Qu}var es,lv;function vA(){if(lv)return es;lv=1;var e=Ao();function t(r){return e(this.__data__,r)>-1}return es=t,es}var ts,cv;function yA(){if(cv)return ts;cv=1;var e=Ao();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return ts=t,ts}var rs,fv;function Po(){if(fv)return rs;fv=1;var e=dA(),t=pA(),r=hA(),n=vA(),i=yA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,rs=a,rs}var ns,dv;function lp(){if(dv)return ns;dv=1;var e=$r(),t=Mt(),r=e(t,"Map");return ns=r,ns}var is,pv;function mA(){if(pv)return is;pv=1;var e=fA(),t=Po(),r=lp();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return is=n,is}var as,hv;function gA(){if(hv)return as;hv=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return as=e,as}var os,vv;function Eo(){if(vv)return os;vv=1;var e=gA();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return os=t,os}var us,yv;function bA(){if(yv)return us;yv=1;var e=Eo();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return us=t,us}var ss,mv;function xA(){if(mv)return ss;mv=1;var e=Eo();function t(r){return e(this,r).get(r)}return ss=t,ss}var ls,gv;function wA(){if(gv)return ls;gv=1;var e=Eo();function t(r){return e(this,r).has(r)}return ls=t,ls}var cs,bv;function SA(){if(bv)return cs;bv=1;var e=Eo();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return cs=t,cs}var fs,xv;function cp(){if(xv)return fs;xv=1;var e=mA(),t=bA(),r=xA(),n=wA(),i=SA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,fs=a,fs}var ds,wv;function Zx(){if(wv)return ds;wv=1;var e=cp(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,ds=r,ds}var ps,Sv;function OA(){if(Sv)return ps;Sv=1;var e=Zx(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return ps=r,ps}var hs,Ov;function _A(){if(Ov)return hs;Ov=1;var e=OA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,l){a.push(s?l.replace(r,"$1"):u||o)}),a});return hs=n,hs}var vs,_v;function Jx(){if(_v)return vs;_v=1;var e=Qe(),t=op(),r=_A(),n=ip();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return vs=i,vs}var ys,Av;function To(){if(Av)return ys;Av=1;var e=Tn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ys=t,ys}var ms,Pv;function fp(){if(Pv)return ms;Pv=1;var e=Jx(),t=To();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return ms=r,ms}var gs,Ev;function AA(){if(Ev)return gs;Ev=1;var e=Po();function t(){this.__data__=new e,this.size=0}return gs=t,gs}var bs,Tv;function PA(){if(Tv)return bs;Tv=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return bs=e,bs}var xs,Cv;function EA(){if(Cv)return xs;Cv=1;function e(t){return this.__data__.get(t)}return xs=e,xs}var ws,Mv;function TA(){if(Mv)return ws;Mv=1;function e(t){return this.__data__.has(t)}return ws=e,ws}var Ss,jv;function CA(){if(jv)return Ss;jv=1;var e=Po(),t=lp(),r=cp(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Ss=i,Ss}var Os,Iv;function Qx(){if(Iv)return Os;Iv=1;var e=Po(),t=AA(),r=PA(),n=EA(),i=TA(),a=CA();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Os=o,Os}var _s,$v;function MA(){if($v)return _s;$v=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return _s=t,_s}var As,kv;function jA(){if(kv)return As;kv=1;function e(t){return this.__data__.has(t)}return As=e,As}var Ps,Rv;function ew(){if(Rv)return Ps;Rv=1;var e=cp(),t=MA(),r=jA();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Ps=n,Ps}var Es,Dv;function tw(){if(Dv)return Es;Dv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Es=e,Es}var Ts,Nv;function rw(){if(Nv)return Ts;Nv=1;function e(t,r){return t.has(r)}return Ts=e,Ts}var Cs,Lv;function nw(){if(Lv)return Cs;Lv=1;var e=ew(),t=tw(),r=rw(),n=1,i=2;function a(o,u,s,l,f,c){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=c.get(o),h=c.get(u);if(v&&h)return v==u&&h==o;var b=-1,w=!0,g=s&i?new e:void 0;for(c.set(o,u),c.set(u,o);++b<p;){var S=o[b],m=u[b];if(l)var x=d?l(m,S,b,u,o,c):l(S,m,b,o,u,c);if(x!==void 0){if(x)continue;w=!1;break}if(g){if(!t(u,function(_,A){if(!r(g,A)&&(S===_||f(S,_,s,l,c)))return g.push(A)})){w=!1;break}}else if(!(S===m||f(S,m,s,l,c))){w=!1;break}}return c.delete(o),c.delete(u),w}return Cs=a,Cs}var Ms,qv;function IA(){if(qv)return Ms;qv=1;var e=Mt(),t=e.Uint8Array;return Ms=t,Ms}var js,Bv;function $A(){if(Bv)return js;Bv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return js=e,js}var Is,Fv;function dp(){if(Fv)return Is;Fv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Is=e,Is}var $s,zv;function kA(){if(zv)return $s;zv=1;var e=Yi(),t=IA(),r=sp(),n=nw(),i=$A(),a=dp(),o=1,u=2,s="[object Boolean]",l="[object Date]",f="[object Error]",c="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",g=e?e.prototype:void 0,S=g?g.valueOf:void 0;function m(x,_,A,E,M,P,T){switch(A){case w:if(x.byteLength!=_.byteLength||x.byteOffset!=_.byteOffset)return!1;x=x.buffer,_=_.buffer;case b:return!(x.byteLength!=_.byteLength||!P(new t(x),new t(_)));case s:case l:case d:return r(+x,+_);case f:return x.name==_.name&&x.message==_.message;case p:case v:return x==_+"";case c:var j=i;case y:var k=E&o;if(j||(j=a),x.size!=_.size&&!k)return!1;var $=T.get(x);if($)return $==_;E|=u,T.set(x,_);var R=n(j(x),j(_),E,M,P,T);return T.delete(x),R;case h:if(S)return S.call(x)==S.call(_)}return!1}return $s=m,$s}var ks,Uv;function RA(){if(Uv)return ks;Uv=1;var e=Vx(),t=Qe();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return ks=r,ks}var Rs,Wv;function DA(){if(Wv)return Rs;Wv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Rs=e,Rs}var Ds,Hv;function NA(){if(Hv)return Ds;Hv=1;function e(){return[]}return Ds=e,Ds}var Ns,Gv;function LA(){if(Gv)return Ns;Gv=1;var e=DA(),t=NA(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Ns=a,Ns}var Ls,Kv;function qA(){if(Kv)return Ls;Kv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ls=e,Ls}var Xn={exports:{}},qs,Vv;function BA(){if(Vv)return qs;Vv=1;function e(){return!1}return qs=e,qs}Xn.exports;var Yv;function iw(){return Yv||(Yv=1,(function(e,t){var r=Mt(),n=BA(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Xn,Xn.exports)),Xn.exports}var Bs,Xv;function pp(){if(Xv)return Bs;Xv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Bs=r,Bs}var Fs,Zv;function hp(){if(Zv)return Fs;Zv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Fs=t,Fs}var zs,Jv;function FA(){if(Jv)return zs;Jv=1;var e=Zt(),t=hp(),r=Jt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",f="[object Number]",c="[object Object]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",g="[object Float64Array]",S="[object Int8Array]",m="[object Int16Array]",x="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",E="[object Uint16Array]",M="[object Uint32Array]",P={};P[w]=P[g]=P[S]=P[m]=P[x]=P[_]=P[A]=P[E]=P[M]=!0,P[n]=P[i]=P[h]=P[a]=P[b]=P[o]=P[u]=P[s]=P[l]=P[f]=P[c]=P[d]=P[p]=P[y]=P[v]=!1;function T(j){return r(j)&&t(j.length)&&!!P[e(j)]}return zs=T,zs}var Us,Qv;function aw(){if(Qv)return Us;Qv=1;function e(t){return function(r){return t(r)}}return Us=e,Us}var Zn={exports:{}};Zn.exports;var ey;function zA(){return ey||(ey=1,(function(e,t){var r=Gx(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Zn,Zn.exports)),Zn.exports}var Ws,ty;function ow(){if(ty)return Ws;ty=1;var e=FA(),t=aw(),r=zA(),n=r&&r.isTypedArray,i=n?t(n):e;return Ws=i,Ws}var Hs,ry;function UA(){if(ry)return Hs;ry=1;var e=qA(),t=ap(),r=Qe(),n=iw(),i=pp(),a=ow(),o=Object.prototype,u=o.hasOwnProperty;function s(l,f){var c=r(l),d=!c&&t(l),p=!c&&!d&&n(l),y=!c&&!d&&!p&&a(l),v=c||d||p||y,h=v?e(l.length,String):[],b=h.length;for(var w in l)(f||u.call(l,w))&&!(v&&(w=="length"||p&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,b)))&&h.push(w);return h}return Hs=s,Hs}var Gs,ny;function WA(){if(ny)return Gs;ny=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Gs=t,Gs}var Ks,iy;function uw(){if(iy)return Ks;iy=1;function e(t,r){return function(n){return t(r(n))}}return Ks=e,Ks}var Vs,ay;function HA(){if(ay)return Vs;ay=1;var e=uw(),t=e(Object.keys,Object);return Vs=t,Vs}var Ys,oy;function GA(){if(oy)return Ys;oy=1;var e=WA(),t=HA(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Ys=i,Ys}var Xs,uy;function Xi(){if(uy)return Xs;uy=1;var e=up(),t=hp();function r(n){return n!=null&&t(n.length)&&!e(n)}return Xs=r,Xs}var Zs,sy;function Zi(){if(sy)return Zs;sy=1;var e=UA(),t=GA(),r=Xi();function n(i){return r(i)?e(i):t(i)}return Zs=n,Zs}var Js,ly;function KA(){if(ly)return Js;ly=1;var e=RA(),t=LA(),r=Zi();function n(i){return e(i,r,t)}return Js=n,Js}var Qs,cy;function VA(){if(cy)return Qs;cy=1;var e=KA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,l,f){var c=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!c)return!1;for(var h=p;h--;){var b=d[h];if(!(c?b in o:n.call(o,b)))return!1}var w=f.get(a),g=f.get(o);if(w&&g)return w==o&&g==a;var S=!0;f.set(a,o),f.set(o,a);for(var m=c;++h<p;){b=d[h];var x=a[b],_=o[b];if(s)var A=c?s(_,x,b,o,a,f):s(x,_,b,a,o,f);if(!(A===void 0?x===_||l(x,_,u,s,f):A)){S=!1;break}m||(m=b=="constructor")}if(S&&!m){var E=a.constructor,M=o.constructor;E!=M&&"constructor"in a&&"constructor"in o&&!(typeof E=="function"&&E instanceof E&&typeof M=="function"&&M instanceof M)&&(S=!1)}return f.delete(a),f.delete(o),S}return Qs=i,Qs}var el,fy;function YA(){if(fy)return el;fy=1;var e=$r(),t=Mt(),r=e(t,"DataView");return el=r,el}var tl,dy;function XA(){if(dy)return tl;dy=1;var e=$r(),t=Mt(),r=e(t,"Promise");return tl=r,tl}var rl,py;function sw(){if(py)return rl;py=1;var e=$r(),t=Mt(),r=e(t,"Set");return rl=r,rl}var nl,hy;function ZA(){if(hy)return nl;hy=1;var e=$r(),t=Mt(),r=e(t,"WeakMap");return nl=r,nl}var il,vy;function JA(){if(vy)return il;vy=1;var e=YA(),t=lp(),r=XA(),n=sw(),i=ZA(),a=Zt(),o=Xx(),u="[object Map]",s="[object Object]",l="[object Promise]",f="[object Set]",c="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),b=o(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=d||t&&w(new t)!=u||r&&w(r.resolve())!=l||n&&w(new n)!=f||i&&w(new i)!=c)&&(w=function(g){var S=a(g),m=S==s?g.constructor:void 0,x=m?o(m):"";if(x)switch(x){case p:return d;case y:return u;case v:return l;case h:return f;case b:return c}return S}),il=w,il}var al,yy;function QA(){if(yy)return al;yy=1;var e=Qx(),t=nw(),r=kA(),n=VA(),i=JA(),a=Qe(),o=iw(),u=ow(),s=1,l="[object Arguments]",f="[object Array]",c="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,b,w,g,S){var m=a(v),x=a(h),_=m?f:i(v),A=x?f:i(h);_=_==l?c:_,A=A==l?c:A;var E=_==c,M=A==c,P=_==A;if(P&&o(v)){if(!o(h))return!1;m=!0,E=!1}if(P&&!E)return S||(S=new e),m||u(v)?t(v,h,b,w,g,S):r(v,h,_,b,w,g,S);if(!(b&s)){var T=E&&p.call(v,"__wrapped__"),j=M&&p.call(h,"__wrapped__");if(T||j){var k=T?v.value():v,$=j?h.value():h;return S||(S=new e),g(k,$,b,w,S)}}return P?(S||(S=new e),n(v,h,b,w,g,S)):!1}return al=y,al}var ol,my;function vp(){if(my)return ol;my=1;var e=QA(),t=Jt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return ol=r,ol}var ul,gy;function eP(){if(gy)return ul;gy=1;var e=Qx(),t=vp(),r=1,n=2;function i(a,o,u,s){var l=u.length,f=l,c=!s;if(a==null)return!f;for(a=Object(a);l--;){var d=u[l];if(c&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<f;){d=u[l];var p=d[0],y=a[p],v=d[1];if(c&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var b=s(y,v,p,a,o,h);if(!(b===void 0?t(v,y,r|n,s,h):b))return!1}}return!0}return ul=i,ul}var sl,by;function lw(){if(by)return sl;by=1;var e=ur();function t(r){return r===r&&!e(r)}return sl=t,sl}var ll,xy;function tP(){if(xy)return ll;xy=1;var e=lw(),t=Zi();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return ll=r,ll}var cl,wy;function cw(){if(wy)return cl;wy=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return cl=e,cl}var fl,Sy;function rP(){if(Sy)return fl;Sy=1;var e=eP(),t=tP(),r=cw();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return fl=n,fl}var dl,Oy;function fw(){if(Oy)return dl;Oy=1;var e=fp();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return dl=t,dl}var pl,_y;function nP(){if(_y)return pl;_y=1;function e(t,r){return t!=null&&r in Object(t)}return pl=e,pl}var hl,Ay;function iP(){if(Ay)return hl;Ay=1;var e=Jx(),t=ap(),r=Qe(),n=pp(),i=hp(),a=To();function o(u,s,l){s=e(s,u);for(var f=-1,c=s.length,d=!1;++f<c;){var p=a(s[f]);if(!(d=u!=null&&l(u,p)))break;u=u[p]}return d||++f!=c?d:(c=u==null?0:u.length,!!c&&i(c)&&n(p,c)&&(r(u)||t(u)))}return hl=o,hl}var vl,Py;function aP(){if(Py)return vl;Py=1;var e=nP(),t=iP();function r(n,i){return n!=null&&t(n,i,e)}return vl=r,vl}var yl,Ey;function oP(){if(Ey)return yl;Ey=1;var e=vp(),t=fw(),r=aP(),n=op(),i=lw(),a=cw(),o=To(),u=1,s=2;function l(f,c){return n(f)&&i(c)?a(o(f),c):function(d){var p=t(d,f);return p===void 0&&p===c?r(d,f):e(c,p,u|s)}}return yl=l,yl}var ml,Ty;function Cn(){if(Ty)return ml;Ty=1;function e(t){return t}return ml=e,ml}var gl,Cy;function uP(){if(Cy)return gl;Cy=1;function e(t){return function(r){return r==null?void 0:r[t]}}return gl=e,gl}var bl,My;function sP(){if(My)return bl;My=1;var e=fp();function t(r){return function(n){return e(n,r)}}return bl=t,bl}var xl,jy;function lP(){if(jy)return xl;jy=1;var e=uP(),t=sP(),r=op(),n=To();function i(a){return r(a)?e(n(a)):t(a)}return xl=i,xl}var wl,Iy;function sr(){if(Iy)return wl;Iy=1;var e=rP(),t=oP(),r=Cn(),n=Qe(),i=lP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return wl=a,wl}var Sl,$y;function cP(){if($y)return Sl;$y=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var l=u[t?s:++a];if(n(o[l],l,o)===!1)break}return r}}return Sl=e,Sl}var Ol,ky;function fP(){if(ky)return Ol;ky=1;var e=cP(),t=e();return Ol=t,Ol}var _l,Ry;function dw(){if(Ry)return _l;Ry=1;var e=fP(),t=Zi();function r(n,i){return n&&e(n,i,t)}return _l=r,_l}var Al,Dy;function dP(){if(Dy)return Al;Dy=1;var e=Xi();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Al=t,Al}var Pl,Ny;function yp(){if(Ny)return Pl;Ny=1;var e=dw(),t=dP(),r=t(e);return Pl=r,Pl}var El,Ly;function pw(){if(Ly)return El;Ly=1;var e=yp(),t=Xi();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return El=r,El}var Tl,qy;function pP(){if(qy)return Tl;qy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Tl=e,Tl}var Cl,By;function hP(){if(By)return Cl;By=1;var e=Tn();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,l=n===null,f=n===n,c=e(n);if(!l&&!c&&!u&&r>n||u&&s&&f&&!l&&!c||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!c&&r<n||c&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!f)return-1}return 0}return Cl=t,Cl}var Ml,Fy;function vP(){if(Fy)return Ml;Fy=1;var e=hP();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=l)return f;var c=i[a];return f*(c=="desc"?-1:1)}}return r.index-n.index}return Ml=t,Ml}var jl,zy;function yP(){if(zy)return jl;zy=1;var e=Oo(),t=fp(),r=sr(),n=pw(),i=pP(),a=aw(),o=vP(),u=Cn(),s=Qe();function l(f,c,d){c.length?c=e(c,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):c=[u];var p=-1;c=e(c,a(r));var y=n(f,function(v,h,b){var w=e(c,function(g){return g(v)});return{criteria:w,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return jl=l,jl}var Il,Uy;function mP(){if(Uy)return Il;Uy=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Il=e,Il}var $l,Wy;function gP(){if(Wy)return $l;Wy=1;var e=mP(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(l),e(n,this,f)}}return $l=r,$l}var kl,Hy;function bP(){if(Hy)return kl;Hy=1;function e(t){return function(){return t}}return kl=e,kl}var Rl,Gy;function hw(){if(Gy)return Rl;Gy=1;var e=$r(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Rl=t,Rl}var Dl,Ky;function xP(){if(Ky)return Dl;Ky=1;var e=bP(),t=hw(),r=Cn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Dl=n,Dl}var Nl,Vy;function wP(){if(Vy)return Nl;Vy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Nl=n,Nl}var Ll,Yy;function SP(){if(Yy)return Ll;Yy=1;var e=xP(),t=wP(),r=t(e);return Ll=r,Ll}var ql,Xy;function OP(){if(Xy)return ql;Xy=1;var e=Cn(),t=gP(),r=SP();function n(i,a){return r(t(i,a,e),i+"")}return ql=n,ql}var Bl,Zy;function Ji(){if(Zy)return Bl;Zy=1;var e=sp(),t=Xi(),r=pp(),n=ur();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Bl=i,Bl}var Fl,Jy;function _P(){if(Jy)return Fl;Jy=1;var e=Yx(),t=yP(),r=OP(),n=Ji(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Fl=i,Fl}var AP=_P();const Co=Se(AP);var zl,Qy;function PP(){if(Qy)return zl;Qy=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return zl=e,zl}var EP=PP();const em=Se(EP);var Ul,tm;function TP(){if(tm)return Ul;tm=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),l=Array(s);s--;)l[o?s:++u]=n,n+=a;return l}return Ul=r,Ul}var Wl,rm;function CP(){if(rm)return Wl;rm=1;var e=TP(),t=Ji(),r=Kx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Wl=n,Wl}var Hl,nm;function MP(){if(nm)return Hl;nm=1;var e=CP(),t=e();return Hl=t,Hl}var jP=MP();const fi=Se(jP);var Gl,im;function IP(){if(im)return Gl;im=1;var e=Oo(),t=sr(),r=pw(),n=Qe();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Gl=i,Gl}var Kl,am;function $P(){if(am)return Kl;am=1;var e=Yx(),t=IP();function r(n,i){return e(t(n,i),1)}return Kl=r,Kl}var kP=$P();const vw=Se(kP);var Vl,om;function yw(){if(om)return Vl;om=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Vl=e,Vl}var Yl,um;function RP(){if(um)return Yl;um=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Yl=e,Yl}var Xl,sm;function DP(){if(sm)return Xl;sm=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Xl=r,Xl}var Zl,lm;function mw(){if(lm)return Zl;lm=1;var e=DP();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var u=e(i,o),s=r[u];r[u]=r[i],r[i]=s}return r.length=n,r}return Zl=t,Zl}var Jl,cm;function NP(){if(cm)return Jl;cm=1;var e=yw(),t=RP(),r=mw();function n(i,a){return r(t(i),e(a,0,i.length))}return Jl=n,Jl}var Ql,fm;function LP(){if(fm)return Ql;fm=1;var e=Oo();function t(r,n){return e(n,function(i){return r[i]})}return Ql=t,Ql}var ec,dm;function qP(){if(dm)return ec;dm=1;var e=LP(),t=Zi();function r(n){return n==null?[]:e(n,t(n))}return ec=r,ec}var tc,pm;function BP(){if(pm)return tc;pm=1;var e=yw(),t=mw(),r=qP();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return tc=n,tc}var rc,hm;function FP(){if(hm)return rc;hm=1;var e=NP(),t=BP(),r=Qe(),n=Ji(),i=np();function a(o,u,s){(s?n(o,u,s):u===void 0)?u=1:u=i(u);var l=r(o)?e:t;return l(o,u)}return rc=a,rc}var zP=FP();const UP=Se(zP),WP=e=>Q_(e,14),vm=e=>Object.values(e).reduce((t,r)=>t+r,0),HP=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=vm(e),a=em(Object.entries(e).map(([y,v])=>{const h=Math.max(t-Object.keys(e).length,0),b=Math.round(h*v/i);return[y,b]})),o=em(Object.entries(e).map(([y,v])=>{const h=t+Object.keys(e).length,b=Math.min(Math.round(h*v/i),t);return[y,b]})),u=vw(Object.entries(e).map(([y,v])=>{const h=a[y],b=o[y];return fi(h,b).map(w=>{const g=WP(v/(w+.5));return{party:y,quotient:g}})})),s=vm(a),l=t-s,f=Co(u,({quotient:y})=>-y),c=f[l-1].quotient,d=f.filter(({quotient:y})=>y>c),p=f.filter(({quotient:y})=>y===c);if(d.length+p.length===l)d.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");d.push(...UP(p,l-d.length))}return d.reduce((y,{party:v})=>(y[v]+=1,y),a)},gw=(e=Vi)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:mt.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:mt.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:mt.neoGrey[400],"stroke-width":.5})]),bw=(e=Vi)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),xw=(e=Vi)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ke={greyHatch:{background:mt.neoGrey[200],lines:mt.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},Sa=e=>Math.round(e*1e10)/1e10,GP=e=>e.reduce((t,r)=>t+r.seats,0),KP=e=>e.flat(),VP=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Sa(e*Math.cos(i)),y:Sa(e*Math.sin(i))}},ww=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Ln=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(ww(e,t,r,n)*t/r-i)},YP=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Ln(e,n,t,r),a=0;for(Ln(e,n+1,t,r)<i&&(a=1),Ln(e,n-1,t,r)<i&&n>1&&(a=-1);Ln(e,n+a,t,r)<i&&n>0;)i=Ln(e,n+a,t,r),n+=a;return n},XP=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Sa((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Sa((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},ZP=(e,t,r)=>{const n=GP(e),i=YP(n,t,r),a=ww(n,i,t,r);let o={};for(let d=1;d<=i;d++)o[d]=t-(d-1)*a;o=HP(o,n);const u=[];let s,l,f;for(let d=1;d<=i;d++){const p=[];s=t-(d-1)*a,l=r*s/((o[d]??1)-1||1);for(let y=0;y<=(o[d]??1)-1;y++)f={...VP(s,y*l,r),r:.4*a},p.push(f);u.push(p)}const c=Array(u.length).fill(0);for(const d of e)for(let p=0;p<d.seats;p++){const y=XP(u,c),v=u[y],h=c[y]??0,b=v==null?void 0:v[h];b&&(b.fill=d.colour,b.party=String(d.id)),c[y]=h+1}return KP(u)},JP=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),QP={seatCount:!1,arcAngle:180,hFunction:Vi},eE=(e,t={})=>{var h;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},QP,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,u=ZP(e,o,a),s=(((h=u[0])==null?void 0:h.r)??0)/.4||0,l=u.map(JP(i));r&&l.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(l.length)));const f=n<=180?o+s:o*(1+Math.sin((a-Math.PI)/2))+s,c=o+s,d=Math.max(f,c),p=n<=180?-o-s/2:-o*(1+Math.sin((a-Math.PI)/2))-s/2,y=i("defs",[gw(i),bw(i),xw(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,p,2*o+s,d].join(",")},[y,...l])},tE={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Vi},rE=(e,t={})=>{const r={...tE,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:u,maxSeatSize:s,spacing:l,innerRadiusRatio:f,showLabels:c,hFunction:d}=r,p=a*f,y=e.reduce((K,q)=>K+q.seats,0);let v={seatSize:o,arcAngle:n,score:-1};const h=n-i,b=n+i;for(let K=h;K<=b;K+=2.5){const q=K*Math.PI/180;for(let W=s;W>=u;W-=.1){const Z=W*2,C=Z*l,ae=Math.floor((a-p)/C);for(let U=1;U<=Math.min(ae,10);U++){let ue=0;for(let he=0;he<U;he++){const Ce=p+(he+.5)*C,Ge=Z*l/Ce,ct=Math.floor(q/Ge);ue+=ct}if(ue>=y){const he=y/ue,Ce=(W-u)/(s-u),Ge=(ue-y)/y,ct=Ge<.15?1:Ge<.3?.7:Ge<.5?.4:.1,te=1-Math.abs(K-n)/i,de=ct*.5+Ce*.3+he*.15+te*.05;de>v.score&&(v={seatSize:W,arcAngle:K,rings:U,score:de})}}}}const w=v.seatSize,g=v.arcAngle,S=g*Math.PI/180,m=w*2,x=m*l,_=Math.floor((a-p)/x),A=[],E=-S/2-Math.PI/2,M=[];let P=0,T=[];for(let K=1;K<=_;K++){let q=0;const W=[];for(let Z=0;Z<K;Z++){const C=p+(Z+.5)*x,ae=m*l/C,U=Math.floor(S/ae);W.push(U),q+=U}if(q>=y){P=K,T=W;break}}if(P>0)M.push(...T);else for(let K=0;K<_;K++){const q=p+(K+.5)*x,W=m*l/q,Z=Math.floor(S/W);M.push(Z)}for(let K=0;K<M.length;K++){const q=p+(K+.5)*x,W=M[K]??0;if(W>0){const Z=S/W;for(let C=0;C<W;C++){const ae=E+(C+.5)*Z,U=Math.cos(ae)*q,ue=Math.sin(ae)*q;A.push({ring:K,index:C,angle:ae,x:U,y:ue})}}}A.sort((K,q)=>{const W=K.angle-q.angle;return Math.abs(W)>.001?W:K.ring-q.ring});const j=[];let k=0;e.forEach(K=>{const q=[],W=Math.min(K.seats,A.length-k);let Z=1/0,C=-1/0;for(let U=0;U<W&&k<A.length;U++){const ue=A[k++];ue&&(Z=Math.min(Z,ue.angle),C=Math.max(C,ue.angle),Math.sqrt(ue.x*ue.x+ue.y*ue.y),q.push(d("circle",{fill:K.colour,stroke:K.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ue.x}, ${ue.y})`,r:w,"data-party":K.name,"data-party-id":String(K.id),style:"pointer-events: all; cursor: pointer;"})))}const ae=q;j.push(d("g",{className:"party-group","data-party":K.name,style:"opacity: 1; outline: none;"},ae))});const $=d("g",{className:"arc-bg"},[d("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),d("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),R=d("g",{className:"points-container"},j),B=c?d("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[d("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),d("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,D=d("defs",[d("radialGradient",{id:"label-gradient"},[d("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),d("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),d("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),d("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),d("mask",{id:"label-clip"},[d("circle",{fill:"url(#label-gradient)",r:p})]),gw(d),bw(d),xw(d)]),N=d("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[$,R,B].filter(Boolean)),z=S/2;let H;if(g<=180)H=a*Math.sin(z)+w;else{const K=z-Math.PI/2;H=a*(1+Math.sin(K))+w}const X=a+w,J=a*2,ee=Math.max(H,X);return d("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${J} ${ee}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[N,D])};function Sw(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Yr.COMPLETED:e.color==="url(#greyHatchPattern)"?Ke.greyHatch.lines:e.color}function Cf(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ze.animation.hoverOpacity.active:i.style.opacity=Ze.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Mf(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ze.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const nE=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:u,setActivePartyName:s,chartConfig:l,seatSize:f})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const c=r<=a?1:a/r,d=t.filter(g=>g.value>0).map(g=>{const S=r<=a?g.value:Math.max(1,Math.floor(g.value*c));return{id:String(g.id),name:g.label,seats:S,colour:g.color==="url(#hatchPattern)"?Yr.COMPLETED:g.color}}),p=i?rE(d,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:f,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):eE(d,{arcAngle:n});p.properties&&(p.properties.width="100%",p.properties.height="100%",p.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",p.properties.preserveAspectRatio="xMidYMid meet");const y=D_(p),b=new DOMParser().parseFromString(y,"image/svg+xml").documentElement;if(!b)return;b.setAttribute("width","100%"),b.setAttribute("height","100%"),b.style.width="100%",b.style.height="auto",b.style.display="block",i?iE(b,d,t,o,u,s):aE(b,d,t,o,u,s);const w=()=>{if(o(null),s(null),i)Cf(b,null);else{const g=b.querySelectorAll("circle");Mf(g,null)}};return b&&b.addEventListener("mouseleave",w),e.current.appendChild(b),()=>{if(b&&b.removeEventListener("mouseleave",w),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,u,s,e,l,f])};function iE(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),u=e.querySelectorAll(".party-group circle.seat-visual");u&&u.length>0&&u.forEach(s=>{if(s){const l=s;l.style.stroke=Ze.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ze.animation.transitionDuration} ease, stroke-opacity ${Ze.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(s=>{if(!s)return;const l=s.getAttribute("data-party"),f=s.getAttribute("data-party-id"),c=()=>{if(l&&l!==i){const d=t.find(p=>p.name===l||String(p.id)===f);if(d){const p=r.find(y=>y.label===d.name||String(y.id)===d.id);if(p){const y=Sw(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(d.name),Cf(e,d.name)}}}};s.addEventListener("mouseenter",c)}),i&&Cf(e,i)}function aE(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(u=>{if(u){const s=u;s.style.cursor="pointer",s.style.stroke=Ze.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${Ze.animation.transitionDuration} ease, stroke-opacity ${Ze.animation.transitionDuration} ease`}}),o.forEach(u=>{if(!u)return;const s=u.getAttribute("class")||"",l=parseInt(s,10),f=t[l],c=()=>{if(f){const d=f.name;if(d&&d!==i){const p=r.find(y=>y.label===f.name||String(y.id)===f.id);if(p){const y=Sw(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(d),Mf(o,s)}}}};u.addEventListener("mouseenter",c)})),i){const u=t.find(s=>s.name===i);if(u){const s=t.indexOf(u);Mf(o,String(s))}}}const Ow=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:18,maxSeatSize:18},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:14,maxSeatSize:14},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:10,maxSeatSize:10},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:7,maxSeatSize:7},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:5.5,maxSeatSize:5.5},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:5,maxSeatSize:5}],_w=({repositoryCount:e})=>{const t=Ow.find(u=>e>=u.minRepos&&e<u.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Aw=({repositoryCount:e})=>{const t=Ow.find(u=>e>=u.minRepos&&e<u.maxRepos);if(!t)return 5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10},nc=Qn,ym={[ei]:Yr.NOT_APPLICABLE,[ti]:Yr.NO_LST,[ri]:Yr.DATA_MISSING},qn=(e,t,r)=>{if(e in ym)return ym[e];const n=r-1-t,i=nc.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return nc[o]??nc[0]??"#000000"},Pw=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,v)=>([ei,ti,ri].includes(y.label)?p.special.push({...y,originalIndex:v}):p.regular.push({...y,originalIndex:v}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:qn(p.label,a.length-1-y,a.length)})),u=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:qn(p.label,y,i.length)})),s=n,l={id:"no-lst",label:ti,value:r,color:qn(ti,0,1)},f={id:"data-missing",label:ri,value:s,color:qn(ri,0,1)},c={id:"n/a",label:ei,value:t,color:qn(ei,0,1)},d=[...o,...u];return l.value>0&&d.push(l),f.value>0&&d.push(f),c.value>0&&d.push(c),d},mm={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},oE=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ze.useEnhanced})=>{const u=O.useRef(null),[s,l]=O.useState(null),[f,c]=O.useState(null),p=Pw({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(g=>{const S=typeof g.color=="function"?g.color("arc"):g.color,m=typeof g.label=="function"?g.label("arc"):g.label;return{...g,color:S,label:m}}),y=a??_w({repositoryCount:t}),v=Aw({repositoryCount:t});nE({containerRef:u,processedData:p,totalRepositories:t,arcAngle:y,useEnhanced:o,maxSeats:Ze.maxSeats,setHoveredData:l,activePartyName:f,setActivePartyName:c,chartConfig:Ze.chartConfig,seatSize:v});const h=p.map(g=>{const S=g.value/t*100,m=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(g.id),label:g.label,value:g.value,percentage:m,color:g.color}}),b=t>Ze.maxSeats,w=b?Math.round(t/Ze.maxSeats):1;return Y.jsxs(re.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[Y.jsxs(re.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[Y.jsx(re.Box,{className:"parliament-chart-svg-container",ref:u,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),Y.jsxs(re.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[s&&Y.jsxs(O.Fragment,{children:[Y.jsx(re.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:s.label}),Y.jsxs(re.Typography,{sx:{fontWeight:"bold",color:s.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[s.value," ",s.value>1?"repos":"repo"]})]}),b&&Y.jsxs(re.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:s?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[Y.jsx(re.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),Y.jsxs(re.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),Y.jsx(re.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{l(null),c(null)},children:Y.jsxs(re.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[Y.jsx("thead",{children:Y.jsxs(re.TableRow,{children:[Y.jsx(re.TableCell,{}),Y.jsx(re.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),Y.jsx(re.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),Y.jsx(re.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),Y.jsx("tbody",{children:h.map(g=>{const S=g.color==="url(#greyHatchPattern)"?Ke.greyHatch.lines:g.color==="url(#dataMissingHatchPattern)"?Ke.dataMissingHatch.lines:g.color==="url(#noLstHatchPattern)"?Ke.noLstHatch.lines:g.color;return Y.jsxs(re.TableRow,{onMouseEnter:()=>{c(g.label),l({label:g.label,value:g.value,color:g.color==="url(#greyHatchPattern)"?Ke.greyHatch.lines:g.color==="url(#dataMissingHatchPattern)"?Ke.dataMissingHatch.lines:g.color==="url(#noLstHatchPattern)"?Ke.noLstHatch.lines:g.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===g.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[Y.jsx(re.TableCell,{align:"center",sx:{width:20},children:Y.jsx(re.Box,{sx:{width:12,height:12,backgroundColor:g.color==="url(#greyHatchPattern)"?Ke.greyHatch.background:g.color==="url(#dataMissingHatchPattern)"?Ke.dataMissingHatch.background:g.color==="url(#noLstHatchPattern)"?Ke.noLstHatch.background:g.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===g.label?"scale(1.2)":"scale(1)",...g.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
47
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function wB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Qv);const u=SB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!yB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!e0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function SB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=AB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function AB(e,t,r){const n=xE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Wa(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Ul.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?vL:_L)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Wa(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ul.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&d_(r,o)>d_(r,e.alternative)&&(o=e.alternative),s=o+Wa(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Ul.single:Ul.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const OB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Wa(e.value,Object.assign({},n.settings.characterReferences,{subset:OB}))}function TB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$E(e,t,r,n)}function PB(e,t,r,n){return n.all(e)}const EB=jL("type",{invalid:CB,unknown:MB,handlers:{comment:QL,doctype:tB,element:wB,raw:TB,root:PB,text:$E}});function CB(e){throw new Error("Expected node, not `"+e+"`")}function MB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kB={},$B={},jB=[];function RB(e,t){const r=kB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:DB,all:IB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||$L,characterReferences:r.characterReferences||$B,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Qv:wE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function DB(e,t,r){return EB(e,t,r,this)}function IB(e){const t=[],r=e&&e.children||jB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Ze={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Ha={COMPLETED:cr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},bs="N/A",_s="No LST",xs="Data Missing";function NB(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=sv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(s)),ee(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=s+(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(l)),ee(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=l-(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf,v_;function jE(){if(v_)return Gf;v_=1;var e=typeof Wl=="object"&&Wl&&Wl.Object===Object&&Wl;return Gf=e,Gf}var Kf,b_;function an(){if(b_)return Kf;b_=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Kf=r,Kf}var Xf,__;function LB(){if(__)return Xf;__=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Xf=t,Xf}var Yf,x_;function BB(){if(x_)return Yf;x_=1;var e=LB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Yf=r,Yf}var Vf,w_;function Si(){if(w_)return Vf;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Vf=e,Vf}var Zf,S_;function El(){if(S_)return Zf;S_=1;var e=an(),t=e.Symbol;return Zf=t,Zf}var Jf,A_;function qB(){if(A_)return Jf;A_=1;var e=El(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return Jf=a,Jf}var Qf,O_;function FB(){if(O_)return Qf;O_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qf=r,Qf}var th,T_;function Jn(){if(T_)return th;T_=1;var e=El(),t=qB(),r=FB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return th=o,th}var eh,P_;function Qn(){if(P_)return eh;P_=1;function e(t){return t!=null&&typeof t=="object"}return eh=e,eh}var rh,E_;function $o(){if(E_)return rh;E_=1;var e=Jn(),t=Qn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return rh=n,rh}var nh,C_;function r0(){if(C_)return nh;C_=1;var e=BB(),t=Si(),r=$o(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return nh=l,nh}var ih,M_;function RE(){if(M_)return ih;M_=1;var e=r0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ih=n,ih}var ah,k_;function n0(){if(k_)return ah;k_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ah=t,ah}var oh,$_;function Nc(){if($_)return oh;$_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return oh=e,oh}var sh,j_;function Qe(){if(j_)return sh;j_=1;var e=Array.isArray;return sh=e,sh}var lh,R_;function zB(){if(R_)return lh;R_=1;var e=El(),t=Nc(),r=Qe(),n=$o(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return lh=o,lh}var uh,D_;function i0(){if(D_)return uh;D_=1;var e=zB();function t(r){return r==null?"":e(r)}return uh=t,uh}var ch,I_;function UB(){if(I_)return ch;I_=1;var e=an(),t=n0(),r=r0(),n=i0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return ch=o,ch}var fh,N_;function WB(){if(N_)return fh;N_=1;var e=UB(),t=e("round");return fh=t,fh}var HB=WB();const GB=Ft(HB);var hh,L_;function DE(){if(L_)return hh;L_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return hh=e,hh}var ph,B_;function KB(){if(B_)return ph;B_=1;var e=Jn(),t=Qn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ph=n,ph}var dh,q_;function a0(){if(q_)return dh;q_=1;var e=KB(),t=Qn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return dh=a,dh}var mh,F_;function XB(){if(F_)return mh;F_=1;var e=El(),t=a0(),r=Qe(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mh=i,mh}var yh,z_;function IE(){if(z_)return yh;z_=1;var e=DE(),t=XB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return yh=r,yh}var gh,U_;function o0(){if(U_)return gh;U_=1;var e=Qe(),t=$o(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return gh=i,gh}var vh,W_;function s0(){if(W_)return vh;W_=1;var e=Jn(),t=Si(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return vh=o,vh}var bh,H_;function YB(){if(H_)return bh;H_=1;var e=an(),t=e["__core-js_shared__"];return bh=t,bh}var _h,G_;function VB(){if(G_)return _h;G_=1;var e=YB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return _h=r,_h}var xh,K_;function NE(){if(K_)return xh;K_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return xh=r,xh}var wh,X_;function ZB(){if(X_)return wh;X_=1;var e=s0(),t=VB(),r=Si(),n=NE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return wh=f,wh}var Sh,Y_;function JB(){if(Y_)return Sh;Y_=1;function e(t,r){return t==null?void 0:t[r]}return Sh=e,Sh}var Ah,V_;function ba(){if(V_)return Ah;V_=1;var e=ZB(),t=JB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ah=r,Ah}var Oh,Z_;function Lc(){if(Z_)return Oh;Z_=1;var e=ba(),t=e(Object,"create");return Oh=t,Oh}var Th,J_;function QB(){if(J_)return Th;J_=1;var e=Lc();function t(){this.__data__=e?e(null):{},this.size=0}return Th=t,Th}var Ph,Q_;function tq(){if(Q_)return Ph;Q_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ph=e,Ph}var Eh,tx;function eq(){if(tx)return Eh;tx=1;var e=Lc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Eh=i,Eh}var Ch,ex;function rq(){if(ex)return Ch;ex=1;var e=Lc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ch=n,Ch}var Mh,rx;function nq(){if(rx)return Mh;rx=1;var e=Lc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Mh=r,Mh}var kh,nx;function iq(){if(nx)return kh;nx=1;var e=QB(),t=tq(),r=eq(),n=rq(),i=nq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,kh=a,kh}var $h,ix;function aq(){if(ix)return $h;ix=1;function e(){this.__data__=[],this.size=0}return $h=e,$h}var jh,ax;function l0(){if(ax)return jh;ax=1;function e(t,r){return t===r||t!==t&&r!==r}return jh=e,jh}var Rh,ox;function Bc(){if(ox)return Rh;ox=1;var e=l0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Rh=t,Rh}var Dh,sx;function oq(){if(sx)return Dh;sx=1;var e=Bc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Dh=n,Dh}var Ih,lx;function sq(){if(lx)return Ih;lx=1;var e=Bc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ih=t,Ih}var Nh,ux;function lq(){if(ux)return Nh;ux=1;var e=Bc();function t(r){return e(this.__data__,r)>-1}return Nh=t,Nh}var Lh,cx;function uq(){if(cx)return Lh;cx=1;var e=Bc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lh=t,Lh}var Bh,fx;function qc(){if(fx)return Bh;fx=1;var e=aq(),t=oq(),r=sq(),n=lq(),i=uq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bh=a,Bh}var qh,hx;function u0(){if(hx)return qh;hx=1;var e=ba(),t=an(),r=e(t,"Map");return qh=r,qh}var Fh,px;function cq(){if(px)return Fh;px=1;var e=iq(),t=qc(),r=u0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Fh=n,Fh}var zh,dx;function fq(){if(dx)return zh;dx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return zh=e,zh}var Uh,mx;function Fc(){if(mx)return Uh;mx=1;var e=fq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Uh=t,Uh}var Wh,yx;function hq(){if(yx)return Wh;yx=1;var e=Fc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Wh=t,Wh}var Hh,gx;function pq(){if(gx)return Hh;gx=1;var e=Fc();function t(r){return e(this,r).get(r)}return Hh=t,Hh}var Gh,vx;function dq(){if(vx)return Gh;vx=1;var e=Fc();function t(r){return e(this,r).has(r)}return Gh=t,Gh}var Kh,bx;function mq(){if(bx)return Kh;bx=1;var e=Fc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kh=t,Kh}var Xh,_x;function c0(){if(_x)return Xh;_x=1;var e=cq(),t=hq(),r=pq(),n=dq(),i=mq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Xh=a,Xh}var Yh,xx;function LE(){if(xx)return Yh;xx=1;var e=c0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Yh=r,Yh}var Vh,wx;function yq(){if(wx)return Vh;wx=1;var e=LE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Vh=r,Vh}var Zh,Sx;function gq(){if(Sx)return Zh;Sx=1;var e=yq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return Zh=n,Zh}var Jh,Ax;function BE(){if(Ax)return Jh;Ax=1;var e=Qe(),t=o0(),r=gq(),n=i0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Jh=i,Jh}var Qh,Ox;function zc(){if(Ox)return Qh;Ox=1;var e=$o();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qh=t,Qh}var tp,Tx;function f0(){if(Tx)return tp;Tx=1;var e=BE(),t=zc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return tp=r,tp}var ep,Px;function vq(){if(Px)return ep;Px=1;var e=qc();function t(){this.__data__=new e,this.size=0}return ep=t,ep}var rp,Ex;function bq(){if(Ex)return rp;Ex=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return rp=e,rp}var np,Cx;function _q(){if(Cx)return np;Cx=1;function e(t){return this.__data__.get(t)}return np=e,np}var ip,Mx;function xq(){if(Mx)return ip;Mx=1;function e(t){return this.__data__.has(t)}return ip=e,ip}var ap,kx;function wq(){if(kx)return ap;kx=1;var e=qc(),t=u0(),r=c0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return ap=i,ap}var op,$x;function qE(){if($x)return op;$x=1;var e=qc(),t=vq(),r=bq(),n=_q(),i=xq(),a=wq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,op=o,op}var sp,jx;function Sq(){if(jx)return sp;jx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return sp=t,sp}var lp,Rx;function Aq(){if(Rx)return lp;Rx=1;function e(t){return this.__data__.has(t)}return lp=e,lp}var up,Dx;function FE(){if(Dx)return up;Dx=1;var e=c0(),t=Sq(),r=Aq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,up=n,up}var cp,Ix;function zE(){if(Ix)return cp;Ix=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return cp=e,cp}var fp,Nx;function UE(){if(Nx)return fp;Nx=1;function e(t,r){return t.has(r)}return fp=e,fp}var hp,Lx;function WE(){if(Lx)return hp;Lx=1;var e=FE(),t=zE(),r=UE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var v=-1,w=!0,b=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var _=o[v],g=s[v];if(u)var x=h?u(g,_,v,s,o,f):u(_,g,v,o,s,f);if(x!==void 0){if(x)continue;w=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(_===S||c(_,S,l,u,f)))return b.push(A)})){w=!1;break}}else if(!(_===g||c(_,g,l,u,f))){w=!1;break}}return f.delete(o),f.delete(s),w}return hp=a,hp}var pp,Bx;function Oq(){if(Bx)return pp;Bx=1;var e=an(),t=e.Uint8Array;return pp=t,pp}var dp,qx;function Tq(){if(qx)return dp;qx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return dp=e,dp}var mp,Fx;function h0(){if(Fx)return mp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return mp=e,mp}var yp,zx;function Pq(){if(zx)return yp;zx=1;var e=El(),t=Oq(),r=l0(),n=WE(),i=Tq(),a=h0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",w="[object DataView]",b=e?e.prototype:void 0,_=b?b.valueOf:void 0;function g(x,S,A,T,k,P,E){switch(A){case w:if(x.byteLength!=S.byteLength||x.byteOffset!=S.byteOffset)return!1;x=x.buffer,S=S.buffer;case v:return!(x.byteLength!=S.byteLength||!P(new t(x),new t(S)));case l:case u:case h:return r(+x,+S);case c:return x.name==S.name&&x.message==S.message;case p:case m:return x==S+"";case f:var C=i;case y:var M=T&o;if(C||(C=a),x.size!=S.size&&!M)return!1;var R=E.get(x);if(R)return R==S;T|=s,E.set(x,S);var $=n(C(x),C(S),T,k,P,E);return E.delete(x),$;case d:if(_)return _.call(x)==_.call(S)}return!1}return yp=g,yp}var gp,Ux;function Eq(){if(Ux)return gp;Ux=1;var e=DE(),t=Qe();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return gp=r,gp}var vp,Wx;function Cq(){if(Wx)return vp;Wx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return vp=e,vp}var bp,Hx;function Mq(){if(Hx)return bp;Hx=1;function e(){return[]}return bp=e,bp}var _p,Gx;function kq(){if(Gx)return _p;Gx=1;var e=Cq(),t=Mq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return _p=a,_p}var xp,Kx;function $q(){if(Kx)return xp;Kx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return xp=e,xp}var us={exports:{}},wp,Xx;function jq(){if(Xx)return wp;Xx=1;function e(){return!1}return wp=e,wp}us.exports;var Yx;function HE(){return Yx||(Yx=1,(function(e,t){var r=an(),n=jq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(us,us.exports)),us.exports}var Sp,Vx;function p0(){if(Vx)return Sp;Vx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Sp=r,Sp}var Ap,Zx;function d0(){if(Zx)return Ap;Zx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ap=t,Ap}var Op,Jx;function Rq(){if(Jx)return Op;Jx=1;var e=Jn(),t=d0(),r=Qn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",w="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]",P={};P[w]=P[b]=P[_]=P[g]=P[x]=P[S]=P[A]=P[T]=P[k]=!0,P[n]=P[i]=P[d]=P[a]=P[v]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Op=E,Op}var Tp,Qx;function GE(){if(Qx)return Tp;Qx=1;function e(t){return function(r){return t(r)}}return Tp=e,Tp}var cs={exports:{}};cs.exports;var t1;function Dq(){return t1||(t1=1,(function(e,t){var r=jE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(cs,cs.exports)),cs.exports}var Pp,e1;function KE(){if(e1)return Pp;e1=1;var e=Rq(),t=GE(),r=Dq(),n=r&&r.isTypedArray,i=n?t(n):e;return Pp=i,Pp}var Ep,r1;function Iq(){if(r1)return Ep;r1=1;var e=$q(),t=a0(),r=Qe(),n=HE(),i=p0(),a=KE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],v=d.length;for(var w in u)(c||s.call(u,w))&&!(m&&(w=="length"||p&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,v)))&&d.push(w);return d}return Ep=l,Ep}var Cp,n1;function Nq(){if(n1)return Cp;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Cp=t,Cp}var Mp,i1;function XE(){if(i1)return Mp;i1=1;function e(t,r){return function(n){return t(r(n))}}return Mp=e,Mp}var kp,a1;function Lq(){if(a1)return kp;a1=1;var e=XE(),t=e(Object.keys,Object);return kp=t,kp}var $p,o1;function Bq(){if(o1)return $p;o1=1;var e=Nq(),t=Lq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return $p=i,$p}var jp,s1;function Cl(){if(s1)return jp;s1=1;var e=s0(),t=d0();function r(n){return n!=null&&t(n.length)&&!e(n)}return jp=r,jp}var Rp,l1;function Ml(){if(l1)return Rp;l1=1;var e=Iq(),t=Bq(),r=Cl();function n(i){return r(i)?e(i):t(i)}return Rp=n,Rp}var Dp,u1;function qq(){if(u1)return Dp;u1=1;var e=Eq(),t=kq(),r=Ml();function n(i){return e(i,r,t)}return Dp=n,Dp}var Ip,c1;function Fq(){if(c1)return Ip;c1=1;var e=qq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var v=h[d];if(!(f?v in o:n.call(o,v)))return!1}var w=c.get(a),b=c.get(o);if(w&&b)return w==o&&b==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){v=h[d];var x=a[v],S=o[v];if(l)var A=f?l(S,x,v,o,a,c):l(x,S,v,a,o,c);if(!(A===void 0?x===S||u(x,S,s,l,c):A)){_=!1;break}g||(g=v=="constructor")}if(_&&!g){var T=a.constructor,k=o.constructor;T!=k&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof k=="function"&&k instanceof k)&&(_=!1)}return c.delete(a),c.delete(o),_}return Ip=i,Ip}var Np,f1;function zq(){if(f1)return Np;f1=1;var e=ba(),t=an(),r=e(t,"DataView");return Np=r,Np}var Lp,h1;function Uq(){if(h1)return Lp;h1=1;var e=ba(),t=an(),r=e(t,"Promise");return Lp=r,Lp}var Bp,p1;function YE(){if(p1)return Bp;p1=1;var e=ba(),t=an(),r=e(t,"Set");return Bp=r,Bp}var qp,d1;function Wq(){if(d1)return qp;d1=1;var e=ba(),t=an(),r=e(t,"WeakMap");return qp=r,qp}var Fp,m1;function Hq(){if(m1)return Fp;m1=1;var e=zq(),t=u0(),r=Uq(),n=YE(),i=Wq(),a=Jn(),o=NE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),v=o(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=h||t&&w(new t)!=s||r&&w(r.resolve())!=u||n&&w(new n)!=c||i&&w(new i)!=f)&&(w=function(b){var _=a(b),g=_==l?b.constructor:void 0,x=g?o(g):"";if(x)switch(x){case p:return h;case y:return s;case m:return u;case d:return c;case v:return f}return _}),Fp=w,Fp}var zp,y1;function Gq(){if(y1)return zp;y1=1;var e=qE(),t=WE(),r=Pq(),n=Fq(),i=Hq(),a=Qe(),o=HE(),s=KE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,v,w,b,_){var g=a(m),x=a(d),S=g?c:i(m),A=x?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,k=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,v,w,b,_):r(m,d,S,v,w,b,_);if(!(v&l)){var E=T&&p.call(m,"__wrapped__"),C=k&&p.call(d,"__wrapped__");if(E||C){var M=E?m.value():m,R=C?d.value():d;return _||(_=new e),b(M,R,v,w,_)}}return P?(_||(_=new e),n(m,d,v,w,b,_)):!1}return zp=y,zp}var Up,g1;function m0(){if(g1)return Up;g1=1;var e=Gq(),t=Qn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Up=r,Up}var Wp,v1;function Kq(){if(v1)return Wp;v1=1;var e=qE(),t=m0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var v=l(y,m,p,a,o,d);if(!(v===void 0?t(m,y,r|n,l,d):v))return!1}}return!0}return Wp=i,Wp}var Hp,b1;function VE(){if(b1)return Hp;b1=1;var e=Si();function t(r){return r===r&&!e(r)}return Hp=t,Hp}var Gp,_1;function Xq(){if(_1)return Gp;_1=1;var e=VE(),t=Ml();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Gp=r,Gp}var Kp,x1;function ZE(){if(x1)return Kp;x1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Kp=e,Kp}var Xp,w1;function Yq(){if(w1)return Xp;w1=1;var e=Kq(),t=Xq(),r=ZE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Xp=n,Xp}var Yp,S1;function JE(){if(S1)return Yp;S1=1;var e=f0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Yp=t,Yp}var Vp,A1;function Vq(){if(A1)return Vp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Vp=e,Vp}var Zp,O1;function Zq(){if(O1)return Zp;O1=1;var e=BE(),t=a0(),r=Qe(),n=p0(),i=d0(),a=zc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return Zp=o,Zp}var Jp,T1;function Jq(){if(T1)return Jp;T1=1;var e=Vq(),t=Zq();function r(n,i){return n!=null&&t(n,i,e)}return Jp=r,Jp}var Qp,P1;function Qq(){if(P1)return Qp;P1=1;var e=m0(),t=JE(),r=Jq(),n=o0(),i=VE(),a=ZE(),o=zc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return Qp=u,Qp}var td,E1;function jo(){if(E1)return td;E1=1;function e(t){return t}return td=e,td}var ed,C1;function tF(){if(C1)return ed;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ed=e,ed}var rd,M1;function eF(){if(M1)return rd;M1=1;var e=f0();function t(r){return function(n){return e(n,r)}}return rd=t,rd}var nd,k1;function rF(){if(k1)return nd;k1=1;var e=tF(),t=eF(),r=o0(),n=zc();function i(a){return r(a)?e(n(a)):t(a)}return nd=i,nd}var id,$1;function Ai(){if($1)return id;$1=1;var e=Yq(),t=Qq(),r=jo(),n=Qe(),i=rF();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return id=a,id}var ad,j1;function nF(){if(j1)return ad;j1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ad=e,ad}var od,R1;function iF(){if(R1)return od;R1=1;var e=nF(),t=e();return od=t,od}var sd,D1;function QE(){if(D1)return sd;D1=1;var e=iF(),t=Ml();function r(n,i){return n&&e(n,i,t)}return sd=r,sd}var ld,I1;function aF(){if(I1)return ld;I1=1;var e=Cl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return ld=t,ld}var ud,N1;function y0(){if(N1)return ud;N1=1;var e=QE(),t=aF(),r=t(e);return ud=r,ud}var cd,L1;function tC(){if(L1)return cd;L1=1;var e=y0(),t=Cl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return cd=r,cd}var fd,B1;function oF(){if(B1)return fd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return fd=e,fd}var hd,q1;function sF(){if(q1)return hd;q1=1;var e=$o();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return hd=t,hd}var pd,F1;function lF(){if(F1)return pd;F1=1;var e=sF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return pd=t,pd}var dd,z1;function uF(){if(z1)return dd;z1=1;var e=Nc(),t=f0(),r=Ai(),n=tC(),i=oF(),a=GE(),o=lF(),s=jo(),l=Qe();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,v){var w=e(f,function(b){return b(m)});return{criteria:w,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return dd=u,dd}var md,U1;function cF(){if(U1)return md;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return md=e,md}var yd,W1;function fF(){if(W1)return yd;W1=1;var e=cF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return yd=r,yd}var gd,H1;function hF(){if(H1)return gd;H1=1;function e(t){return function(){return t}}return gd=e,gd}var vd,G1;function eC(){if(G1)return vd;G1=1;var e=ba(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return vd=t,vd}var bd,K1;function pF(){if(K1)return bd;K1=1;var e=hF(),t=eC(),r=jo(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return bd=n,bd}var _d,X1;function dF(){if(X1)return _d;X1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _d=n,_d}var xd,Y1;function mF(){if(Y1)return xd;Y1=1;var e=pF(),t=dF(),r=t(e);return xd=r,xd}var wd,V1;function yF(){if(V1)return wd;V1=1;var e=jo(),t=fF(),r=mF();function n(i,a){return r(t(i,a,e),i+"")}return wd=n,wd}var Sd,Z1;function kl(){if(Z1)return Sd;Z1=1;var e=l0(),t=Cl(),r=p0(),n=Si();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Sd=i,Sd}var Ad,J1;function gF(){if(J1)return Ad;J1=1;var e=IE(),t=uF(),r=yF(),n=kl(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ad=i,Ad}var vF=gF();const Uc=Ft(vF);var Od,Q1;function bF(){if(Q1)return Od;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Od=e,Od}var _F=bF();const tw=Ft(_F);var Td,ew;function xF(){if(ew)return Td;ew=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Td=r,Td}var Pd,rw;function wF(){if(rw)return Pd;rw=1;var e=xF(),t=kl(),r=RE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Pd=n,Pd}var Ed,nw;function SF(){if(nw)return Ed;nw=1;var e=wF(),t=e();return Ed=t,Ed}var AF=SF();const Ws=Ft(AF);var Cd,iw;function OF(){if(iw)return Cd;iw=1;var e=Nc(),t=Ai(),r=tC(),n=Qe();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Cd=i,Cd}var Md,aw;function TF(){if(aw)return Md;aw=1;var e=IE(),t=OF();function r(n,i){return e(t(n,i),1)}return Md=r,Md}var PF=TF();const rC=Ft(PF);var kd,ow;function nC(){if(ow)return kd;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return kd=e,kd}var $d,sw;function EF(){if(sw)return $d;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return $d=e,$d}var jd,lw;function CF(){if(lw)return jd;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return jd=r,jd}var Rd,uw;function iC(){if(uw)return Rd;uw=1;var e=CF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Rd=t,Rd}var Dd,cw;function MF(){if(cw)return Dd;cw=1;var e=nC(),t=EF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Dd=n,Dd}var Id,fw;function kF(){if(fw)return Id;fw=1;var e=Nc();function t(r,n){return e(n,function(i){return r[i]})}return Id=t,Id}var Nd,hw;function $F(){if(hw)return Nd;hw=1;var e=kF(),t=Ml();function r(n){return n==null?[]:e(n,t(n))}return Nd=r,Nd}var Ld,pw;function jF(){if(pw)return Ld;pw=1;var e=nC(),t=iC(),r=$F();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Ld=n,Ld}var Bd,dw;function RF(){if(dw)return Bd;dw=1;var e=MF(),t=jF(),r=Qe(),n=kl(),i=n0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return Bd=a,Bd}var DF=RF();const IF=Ft(DF),NF=e=>GB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),LF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),v=Math.round(d*m/i);return[y,v]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,v=Math.min(Math.round(d*m/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,m])=>{const d=a[y],v=o[y];return Ws(d,v).map(w=>{const b=NF(m/(w+.5));return{party:y,quotient:b}})})),l=mw(a),u=t-l,c=Uc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...IF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Nu=e=>Math.round(e*1e10)/1e10,BF=e=>e.reduce((t,r)=>t+r.seats,0),qF=e=>e.flat(),FF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Nu(e*Math.cos(i)),y:Nu(e*Math.sin(i))}},aC=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Vo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(aC(e,t,r,n)*t/r-i)},zF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Vo(e,n,t,r),a=0;for(Vo(e,n+1,t,r)<i&&(a=1),Vo(e,n-1,t,r)<i&&n>1&&(a=-1);Vo(e,n+a,t,r)<i&&n>0;)i=Vo(e,n+a,t,r),n+=a;return n},UF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Nu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Nu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},WF=(e,t,r)=>{const n=BF(e),i=zF(n,t,r),a=aC(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=LF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...FF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=UF(s,f),m=s[y],d=f[y]??0,v=m==null?void 0:m[d];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=d+1}return qF(s)},HF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),GF={seatCount:!1,arcAngle:180,hFunction:Pl},KF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},GF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=WF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(HF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[AE(i),OE(i),TE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},XF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Pl},YF=(e,t={})=>{const r={...XF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((G,W)=>G+W.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,v=n+i;for(let G=d;G<=v;G+=2.5){const W=G*Math.PI/180;for(let Y=l;Y>=s;Y-=.1){const X=Y*2,D=X*u,ot=Math.floor((a-p)/D);for(let U=1;U<=Math.min(ot,10);U++){let ut=0;for(let dt=0;dt<U;dt++){const et=p+(dt+.5)*D,ft=X*u/et,Tt=Math.floor(W/ft);ut+=Tt}if(ut>=y){const dt=y/ut,et=(Y-s)/(l-s),ft=(ut-y)/y,Tt=ft<.15?1:ft<.3?.7:ft<.5?.4:.1,at=1-Math.abs(G-n)/i,ht=Tt*.5+et*.3+dt*.15+at*.05;ht>m.score&&(m={seatSize:Y,arcAngle:G,rings:U,score:ht})}}}}const w=m.seatSize,b=m.arcAngle,_=b*Math.PI/180,g=w*2,x=g*u,S=Math.floor((a-p)/x),A=[],T=-_/2-Math.PI/2,k=[];let P=0,E=[];for(let G=1;G<=S;G++){let W=0;const Y=[];for(let X=0;X<G;X++){const D=p+(X+.5)*x,ot=g*u/D,U=Math.floor(_/ot);Y.push(U),W+=U}if(W>=y){P=G,E=Y;break}}if(P>0)k.push(...E);else for(let G=0;G<S;G++){const W=p+(G+.5)*x,Y=g*u/W,X=Math.floor(_/Y);k.push(X)}for(let G=0;G<k.length;G++){const W=p+(G+.5)*x,Y=k[G]??0;if(Y>0){const X=_/Y;for(let D=0;D<Y;D++){const ot=T+(D+.5)*X,U=Math.cos(ot)*W,ut=Math.sin(ot)*W;A.push({ring:G,index:D,angle:ot,x:U,y:ut})}}}A.sort((G,W)=>{const Y=G.angle-W.angle;return Math.abs(Y)>.001?Y:G.ring-W.ring});const C=[];let M=0;e.forEach(G=>{const W=[],Y=Math.min(G.seats,A.length-M);let X=1/0,D=-1/0;for(let U=0;U<Y&&M<A.length;U++){const ut=A[M++];ut&&(X=Math.min(X,ut.angle),D=Math.max(D,ut.angle),Math.sqrt(ut.x*ut.x+ut.y*ut.y),W.push(h("circle",{fill:G.colour,stroke:G.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ut.x}, ${ut.y})`,r:w,"data-party":G.name,"data-party-id":String(G.id),style:"pointer-events: all; cursor: pointer;"})))}const ot=W;C.push(h("g",{className:"party-group","data-party":G.name,style:"opacity: 1; outline: none;"},ot))});const R=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),$=h("g",{className:"points-container"},C),L=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,F=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),AE(h),OE(h),TE(h)]),j=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[R,$,L].filter(Boolean)),N=_/2;let z;if(b<=180)z=a*Math.sin(N)+w;else{const G=N-Math.PI/2;z=a*(1+Math.sin(G))+w}const H=a+w,B=a*2,Z=Math.max(z,H);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${B} ${Z}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[j,F])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Ha.COMPLETED:e.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:e.color}function qy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ze.animation.hoverOpacity.active:i.style.opacity=Ze.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Fy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ze.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const VF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(x=>x.value>0).map(x=>{const S=r<=a?x.value:Math.max(1,Math.floor(x.value*y));return{id:String(x.id),name:x.label,seats:S,colour:x.color==="url(#hatchPattern)"?Ha.COMPLETED:x.color}}),d=i?YF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):KF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const v=RB(d),_=new DOMParser().parseFromString(v,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?ZF(_,m,t,o,s,l):JF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)qy(_,null);else{const x=_.querySelectorAll("circle");Fy(x,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&NB(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function ZF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=Ze.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Ze.animation.transitionDuration} ease, stroke-opacity ${Ze.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),qy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&qy(e,i)}function JF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=Ze.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ze.animation.transitionDuration} ease, stroke-opacity ${Ze.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Fy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);Fy(o,String(l))}}}const qd=ys,yw={[bs]:Ha.NOT_APPLICABLE,[_s]:Ha.NO_LST,[xs]:Ha.DATA_MISSING},Zo=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=qd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return qd[o]??qd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([bs,_s,xs].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Zo(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:Zo(p.label,y,i.length)})),l=n,u={id:"no-lst",label:_s,value:r,color:Zo(_s,0,1)},c={id:"data-missing",label:xs,value:l,color:Zo(xs,0,1)},f={id:"n/a",label:bs,value:t,color:Zo(bs,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},QF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ze.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),v=sC({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),w=a??Vv({repositoryCount:t}),b=Zv({repositoryCount:t});VF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:w,useEnhanced:o,maxSeats:Ze.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Ze.chartConfig,seatSize:b,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=v.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>Ze.maxSeats,x=g?Math.round(t/Ze.maxSeats):1;return K.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[K.jsxs(Q.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[K.jsx(Q.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),K.jsxs(Q.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&K.jsxs(O.Fragment,{children:[K.jsx(Q.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),K.jsxs(Q.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&K.jsxs(Q.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[K.jsx(Q.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),K.jsxs(Q.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",x," repos"]})]})]})]}),s&&K.jsx(Q.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:K.jsxs(Q.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[K.jsx("thead",{children:K.jsxs(Q.TableRow,{children:[K.jsx(Q.TableCell,{}),K.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),K.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),K.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color;return K.jsxs(Q.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[K.jsx(Q.TableCell,{align:"center",sx:{width:20},children:K.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
10
48
  0deg,
11
49
  transparent,
12
50
  transparent 3px,
13
- ${Ke.greyHatch.lines} 3px,
14
- ${Ke.greyHatch.lines} 4px
15
- )`,borderRadius:"50%"}},...g.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
51
+ ${Ut.greyHatch.lines} 3px,
52
+ ${Ut.greyHatch.lines} 4px
53
+ )`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
54
  45deg,
17
55
  transparent,
18
56
  transparent 3px,
19
- ${Ke.dataMissingHatch.lines} 3px,
20
- ${Ke.dataMissingHatch.lines} 4px
21
- )`,borderRadius:"50%"}},...g.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
57
+ ${Ut.dataMissingHatch.lines} 3px,
58
+ ${Ut.dataMissingHatch.lines} 4px
59
+ )`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
60
  -45deg,
23
61
  transparent,
24
62
  transparent 3px,
25
- ${Ke.noLstHatch.lines} 3px,
26
- ${Ke.noLstHatch.lines} 4px
27
- )`,borderRadius:"50%"}}}})}),Y.jsx(re.TableCell,{children:Y.jsxs(re.Stack,{direction:"row",alignItems:"center",gap:.5,children:[Y.jsx("span",{children:g.label}),mm[g.label]&&Y.jsx(re.Tooltip,{title:mm[g.label],placement:"right",arrow:!0,children:Y.jsx(O1.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),Y.jsx(re.TableCell,{align:"right",children:g.value}),Y.jsxs(re.TableCell,{align:"right",children:[g.percentage,"%"]})]},g.id)})})]})})]})};function Ew(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Ew(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Ew(e))&&(n&&(n+=" "),n+=t);return n}var uE=fw();const gt=Se(uE);var ic,gm;function sE(){if(gm)return ic;gm=1;function e(t){return t==null}return ic=e,ic}var lE=sE();const oe=Se(lE);var ac,bm;function cE(){if(bm)return ac;bm=1;var e=Zt(),t=Qe(),r=Jt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return ac=i,ac}var fE=cE();const Er=Se(fE);var dE=up();const le=Se(dE);var pE=ur();const Mn=Se(pE);var oa={exports:{}},me={};/**
63
+ ${Ut.noLstHatch.lines} 3px,
64
+ ${Ut.noLstHatch.lines} 4px
65
+ )`,borderRadius:"50%"}}}})}),K.jsx(Q.TableCell,{children:K.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[K.jsx("span",{children:S.label}),gw[S.label]&&K.jsx(Q.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:K.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),K.jsx(Q.TableCell,{align:"right",children:S.value}),K.jsxs(Q.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function lC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=lC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=lC(e))&&(n&&(n+=" "),n+=t);return n}var t5=JE();const Fr=Ft(t5);var Fd,vw;function e5(){if(vw)return Fd;vw=1;function e(t){return t==null}return Fd=e,Fd}var r5=e5();const gt=Ft(r5);var zd,bw;function n5(){if(bw)return zd;bw=1;var e=Jn(),t=Qe(),r=Qn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return zd=i,zd}var i5=n5();const ua=Ft(i5);var a5=s0();const bt=Ft(a5);var o5=Si();const Ro=Ft(o5);var Hl={exports:{}},jt={};/**
28
66
  * @license React
29
67
  * react-is.production.min.js
30
68
  *
@@ -32,7 +70,7 @@
32
70
  *
33
71
  * This source code is licensed under the MIT license found in the
34
72
  * LICENSE file in the root directory of this source tree.
35
- */var xm;function hE(){if(xm)return me;xm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case i:case n:case l:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case c:case a:return h;default:return b}}case t:return b}}}return me.ContextConsumer=o,me.ContextProvider=a,me.Element=e,me.ForwardRef=s,me.Fragment=r,me.Lazy=d,me.Memo=c,me.Portal=t,me.Profiler=i,me.StrictMode=n,me.Suspense=l,me.SuspenseList=f,me.isAsyncMode=function(){return!1},me.isConcurrentMode=function(){return!1},me.isContextConsumer=function(h){return v(h)===o},me.isContextProvider=function(h){return v(h)===a},me.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},me.isForwardRef=function(h){return v(h)===s},me.isFragment=function(h){return v(h)===r},me.isLazy=function(h){return v(h)===d},me.isMemo=function(h){return v(h)===c},me.isPortal=function(h){return v(h)===t},me.isProfiler=function(h){return v(h)===i},me.isStrictMode=function(h){return v(h)===n},me.isSuspense=function(h){return v(h)===l},me.isSuspenseList=function(h){return v(h)===f},me.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===l||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===c||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},me.typeOf=v,me}var ge={};/**
73
+ */var _w;function s5(){if(_w)return jt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return v}}case t:return v}}}return jt.ContextConsumer=o,jt.ContextProvider=a,jt.Element=e,jt.ForwardRef=l,jt.Fragment=r,jt.Lazy=h,jt.Memo=f,jt.Portal=t,jt.Profiler=i,jt.StrictMode=n,jt.Suspense=u,jt.SuspenseList=c,jt.isAsyncMode=function(){return!1},jt.isConcurrentMode=function(){return!1},jt.isContextConsumer=function(d){return m(d)===o},jt.isContextProvider=function(d){return m(d)===a},jt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},jt.isForwardRef=function(d){return m(d)===l},jt.isFragment=function(d){return m(d)===r},jt.isLazy=function(d){return m(d)===h},jt.isMemo=function(d){return m(d)===f},jt.isPortal=function(d){return m(d)===t},jt.isProfiler=function(d){return m(d)===i},jt.isStrictMode=function(d){return m(d)===n},jt.isSuspense=function(d){return m(d)===u},jt.isSuspenseList=function(d){return m(d)===c},jt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},jt.typeOf=m,jt}var Rt={};/**
36
74
  * @license React
37
75
  * react-is.development.js
38
76
  *
@@ -40,83 +78,83 @@
40
78
  *
41
79
  * This source code is licensed under the MIT license found in the
42
80
  * LICENSE file in the root directory of this source tree.
43
- */var wm;function vE(){return wm||(wm=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,v=!1,h=!1,b=!1,w=!1,g;g=Symbol.for("react.module.reference");function S(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||w||U===n||U===l||U===f||b||U===p||y||v||h||typeof U=="object"&&U!==null&&(U.$$typeof===d||U.$$typeof===c||U.$$typeof===a||U.$$typeof===o||U.$$typeof===s||U.$$typeof===g||U.getModuleId!==void 0))}function m(U){if(typeof U=="object"&&U!==null){var ue=U.$$typeof;switch(ue){case e:var he=U.type;switch(he){case r:case i:case n:case l:case f:return he;default:var Ce=he&&he.$$typeof;switch(Ce){case u:case o:case s:case d:case c:case a:return Ce;default:return ue}}case t:return ue}}}var x=o,_=a,A=e,E=s,M=r,P=d,T=c,j=t,k=i,$=n,R=l,B=f,D=!1,F=!1;function I(U){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(U){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(U){return m(U)===o}function H(U){return m(U)===a}function X(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function J(U){return m(U)===s}function ee(U){return m(U)===r}function ne(U){return m(U)===d}function K(U){return m(U)===c}function q(U){return m(U)===t}function W(U){return m(U)===i}function Z(U){return m(U)===n}function C(U){return m(U)===l}function ae(U){return m(U)===f}ge.ContextConsumer=x,ge.ContextProvider=_,ge.Element=A,ge.ForwardRef=E,ge.Fragment=M,ge.Lazy=P,ge.Memo=T,ge.Portal=j,ge.Profiler=k,ge.StrictMode=$,ge.Suspense=R,ge.SuspenseList=B,ge.isAsyncMode=I,ge.isConcurrentMode=N,ge.isContextConsumer=z,ge.isContextProvider=H,ge.isElement=X,ge.isForwardRef=J,ge.isFragment=ee,ge.isLazy=ne,ge.isMemo=K,ge.isPortal=q,ge.isProfiler=W,ge.isStrictMode=Z,ge.isSuspense=C,ge.isSuspenseList=ae,ge.isValidElementType=S,ge.typeOf=m})()),ge}var Sm;function yE(){return Sm||(Sm=1,process.env.NODE_ENV==="production"?oa.exports=hE():oa.exports=vE()),oa.exports}var mE=yE(),oc,Om;function Tw(){if(Om)return oc;Om=1;var e=Zt(),t=Jt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return oc=n,oc}var uc,_m;function gE(){if(_m)return uc;_m=1;var e=Tw();function t(r){return e(r)&&r!=+r}return uc=t,uc}var bE=gE();const jn=Se(bE);var xE=Tw();const wE=Se(xE);var Tt=function(t){return t===0?0:t>0?1:-1},gr=function(t){return Er(t)&&t.indexOf("%")===t.length-1},V=function(t){return wE(t)&&!jn(t)},SE=function(t){return oe(t)},Le=function(t){return V(t)||Er(t)},OE=0,kr=function(t){var r=++OE;return"".concat(t||"").concat(r)},Tr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(t)&&!Er(t))return n;var a;if(gr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return jn(a)&&(a=n),i&&a>r&&(a=r),a},rr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},_E=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},je=function(t,r){return V(t)&&V(r)?function(n){return t+n*(r-t)}:function(){return r}};function Oa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):gt(n,t))===r})}var AE=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,u=1/0,s=-1/0,l=0,f=0,c=0;c<r;c++)l=t[c].cx||0,f=t[c].cy||0,n+=l,i+=f,a+=l*f,o+=l*l,u=Math.min(u,l),s=Math.max(s,l);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:u,xmax:s,a:d,b:(i-d*n)/r}},PE=function(t,r){return V(t)&&V(r)?t-r:Er(t)&&Er(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Xr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}var EE=["viewBox","children"],TE=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Am=["points","pathLength"],sc={svg:EE,polygon:Am,polyline:Am},mp=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_a=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!Mn(n))return null;var i={};return Object.keys(n).forEach(function(a){mp.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},CE=function(t,r,n){return function(i){return t(r,n,i),null}},di=function(t,r,n){if(!Mn(t)||jf(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];mp.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=CE(o,r,n))}),i},ME=["children"],jE=["children"];function Pm(e,t){if(e==null)return{};var r=IE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}var Em={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ht=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Tm=null,lc=null,gp=function e(t){if(t===Tm&&Array.isArray(lc))return lc;var r=[];return O.Children.forEach(t,function(n){oe(n)||(mE.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),lc=r,Tm=t,r};function nt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ht(i)}):n=[Ht(t)],gp(e).forEach(function(i){var a=gt(i,"type.displayName")||gt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function st(e,t){var r=nt(e,t);return r&&r[0]}var Cm=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!V(n)||n<=0||!V(i)||i<=0)},$E=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],kE=function(t){return t&&t.type&&Er(t.type)&&$E.indexOf(t.type)>=0},Cw=function(t){return t&&If(t)==="object"&&"clipDot"in t},RE=function(t,r,n,i){var a,o=(a=sc==null?void 0:sc[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!le(t)&&(i&&o.includes(r)||TE.includes(r))||n&&mp.includes(r)},se=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Mn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;RE((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},$f=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mm(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mm(a,o))return!1}return!0},Mm=function(t,r){if(oe(t)&&oe(r))return!0;if(!oe(t)&&!oe(r)){var n=t.props||{},i=n.children,a=Pm(n,ME),o=r.props||{},u=o.children,s=Pm(o,jE);return i&&u?Xr(a,s)&&$f(i,u):!i&&!u?Xr(a,s):!1}return!1},jm=function(t,r){var n=[],i={};return gp(t).forEach(function(a,o){if(kE(a))n.push(a);else if(a){var u=Ht(a.type),s=r[u]||{},l=s.handler,f=s.once;if(l&&(!f||!i[u])){var c=l(a,u,o);n.push(c),i[u]=!0}}}),n},DE=function(t){var r=t&&t.type;return r&&Em[r]?Em[r]:null},NE=function(t,r){return gp(r).indexOf(t)},LE=["children","width","height","viewBox","className","style","title","desc"];function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function qE(e,t){if(e==null)return{};var r=BE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Rf(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,l=qE(e,LE),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return O.createElement("svg",kf({},se(l,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),O.createElement("title",null,u),O.createElement("desc",null,s),t)}var FE=["children","className"];function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Df.apply(this,arguments)}function zE(e,t){if(e==null)return{};var r=UE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ye=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=zE(e,FE),a=fe("recharts-layer",n);return O.createElement("g",Df({className:a},se(i,!0),{ref:t}),r)}),WE=process.env.NODE_ENV!=="production",Gt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(WE&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},cc,Im;function HE(){if(Im)return cc;Im=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return cc=e,cc}var fc,$m;function GE(){if($m)return fc;$m=1;var e=HE();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return fc=t,fc}var dc,km;function Mw(){if(km)return dc;km=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(l){return u.test(l)}return dc=s,dc}var pc,Rm;function KE(){if(Rm)return pc;Rm=1;function e(t){return t.split("")}return pc=e,pc}var hc,Dm;function VE(){if(Dm)return hc;Dm=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",l="(?:"+u+"|"+s+")",f="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=l+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,c,d].join("|")+")"+v+y+")*",b=v+y+h,w="(?:"+[f+u+"?",u,c,d,o].join("|")+")",g=RegExp(s+"(?="+s+")|"+w+b,"g");function S(m){return m.match(g)||[]}return hc=S,hc}var vc,Nm;function YE(){if(Nm)return vc;Nm=1;var e=KE(),t=Mw(),r=VE();function n(i){return t(i)?r(i):e(i)}return vc=n,vc}var yc,Lm;function XE(){if(Lm)return yc;Lm=1;var e=GE(),t=Mw(),r=YE(),n=ip();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),l=u?e(u,1).join(""):o.slice(1);return s[a]()+l}}return yc=i,yc}var mc,qm;function ZE(){if(qm)return mc;qm=1;var e=XE(),t=e("toUpperCase");return mc=t,mc}var JE=ZE();const Mo=Se(JE);function Pe(e){return function(){return e}}const jw=Math.cos,Aa=Math.sin,jt=Math.sqrt,Pa=Math.PI,jo=2*Pa,Nf=Math.PI,Lf=2*Nf,yr=1e-6,QE=Lf-yr;function Iw(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eT(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Iw;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class tT{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Iw:eT(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,l=i-r,f=o-t,c=u-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>yr)if(!(Math.abs(c*s-l*f)>yr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+l*l,h=p*p+y*y,b=Math.sqrt(v),w=Math.sqrt(d),g=a*Math.tan((Nf-Math.acos((v+d-h)/(2*b*w)))/2),S=g/w,m=g/b;Math.abs(S-1)>yr&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=t+u,f=r+s,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>yr||Math.abs(this._y1-f)>yr)&&this._append`L${l},${f}`,n&&(d<0&&(d=d%Lf+Lf),d>QE?this._append`A${n},${n},0,1,${c},${t-u},${r-s}A${n},${n},0,1,${c},${this._x1=l},${this._y1=f}`:d>yr&&this._append`A${n},${n},0,${+(d>=Nf)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function bp(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new tT(t)}function xp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $w(e){this._context=e}$w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Io(e){return new $w(e)}function kw(e){return e[0]}function Rw(e){return e[1]}function Dw(e,t){var r=Pe(!0),n=null,i=Io,a=null,o=bp(u);e=typeof e=="function"?e:e===void 0?kw:Pe(e),t=typeof t=="function"?t:t===void 0?Rw:Pe(t);function u(s){var l,f=(s=xp(s)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=f;++l)!(l<f&&r(c=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,l,s),+t(c,l,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Pe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Pe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Pe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ua(e,t,r){var n=null,i=Pe(!0),a=null,o=Io,u=null,s=bp(l);e=typeof e=="function"?e:e===void 0?kw:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Rw:Pe(+r);function l(c){var d,p,y,v=(c=xp(c)).length,h,b=!1,w,g=new Array(v),S=new Array(v);for(a==null&&(u=o(w=s())),d=0;d<=v;++d){if(!(d<v&&i(h=c[d],d,c))===b)if(b=!b)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(g[y],S[y]);u.lineEnd(),u.areaEnd()}b&&(g[d]=+e(h,d,c),S[d]=+t(h,d,c),u.point(n?+n(h,d,c):g[d],r?+r(h,d,c):S[d]))}if(w)return u=null,w+""||null}function f(){return Dw().defined(i).curve(o).context(a)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),n=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),l):e},l.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Pe(+c),l):n},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),r=null,l):t},l.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),l):t},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(n).y(t)},l.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Pe(!!c),l):i},l.curve=function(c){return arguments.length?(o=c,a!=null&&(u=o(a)),l):o},l.context=function(c){return arguments.length?(c==null?a=u=null:u=o(a=c),l):a},l}class Nw{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function rT(e){return new Nw(e,!0)}function nT(e){return new Nw(e,!1)}const wp={draw(e,t){const r=jt(t/Pa);e.moveTo(r,0),e.arc(0,0,r,0,jo)}},iT={draw(e,t){const r=jt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Lw=jt(1/3),aT=Lw*2,oT={draw(e,t){const r=jt(t/aT),n=r*Lw;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},uT={draw(e,t){const r=jt(t),n=-r/2;e.rect(n,n,r,r)}},sT=.8908130915292852,qw=Aa(Pa/10)/Aa(7*Pa/10),lT=Aa(jo/10)*qw,cT=-jw(jo/10)*qw,fT={draw(e,t){const r=jt(t*sT),n=lT*r,i=cT*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=jo*a/5,u=jw(o),s=Aa(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},gc=jt(3),dT={draw(e,t){const r=-jt(t/(gc*3));e.moveTo(0,r*2),e.lineTo(-gc*r,-r),e.lineTo(gc*r,-r),e.closePath()}},ft=-.5,dt=jt(3)/2,qf=1/jt(12),pT=(qf/2+1)*3,hT={draw(e,t){const r=jt(t/pT),n=r/2,i=r*qf,a=n,o=r*qf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(ft*n-dt*i,dt*n+ft*i),e.lineTo(ft*a-dt*o,dt*a+ft*o),e.lineTo(ft*u-dt*s,dt*u+ft*s),e.lineTo(ft*n+dt*i,ft*i-dt*n),e.lineTo(ft*a+dt*o,ft*o-dt*a),e.lineTo(ft*u+dt*s,ft*s-dt*u),e.closePath()}};function vT(e,t){let r=null,n=bp(i);e=typeof e=="function"?e:Pe(e||wp),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ea(){}function Ta(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Bw(e){this._context=e}Bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ta(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yT(e){return new Bw(e)}function Fw(e){this._context=e}Fw.prototype={areaStart:Ea,areaEnd:Ea,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mT(e){return new Fw(e)}function zw(e){this._context=e}zw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gT(e){return new zw(e)}function Uw(e){this._context=e}Uw.prototype={areaStart:Ea,areaEnd:Ea,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bT(e){return new Uw(e)}function Bm(e){return e<0?-1:1}function Fm(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Bm(a)+Bm(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function bc(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ca(e){this._context=e}Ca.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:bc(this,this._t0,zm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,bc(this,zm(this,r=Fm(this,e,t)),r);break;default:bc(this,this._t0,r=Fm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Ww(e){this._context=new Hw(e)}(Ww.prototype=Object.create(Ca.prototype)).point=function(e,t){Ca.prototype.point.call(this,t,e)};function Hw(e){this._context=e}Hw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function xT(e){return new Ca(e)}function wT(e){return new Ww(e)}function Gw(e){this._context=e}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Um(e),i=Um(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Um(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function ST(e){return new Gw(e)}function $o(e,t){this._context=e,this._t=t}$o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function OT(e){return new $o(e,.5)}function _T(e){return new $o(e,0)}function AT(e){return new $o(e,1)}function Qr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Bf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function PT(e,t){return e[t]}function ET(e){const t=[];return t.key=e,t}function TT(){var e=Pe([]),t=Bf,r=Qr,n=PT;function i(a){var o=Array.from(e.apply(this,arguments),ET),u,s=o.length,l=-1,f;for(const c of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(c,o[u].key,l,a)]).data=c;for(u=0,f=xp(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Bf:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Qr,i):r},i}function CT(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Qr(e,t)}}function MT(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Qr(e,t)}}function jT(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var f=e[t[u]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,b=v[n-1][1]||0;p+=h-b}s+=c,l+=p*c}i[n-1][1]+=i[n-1][0]=r,s&&(r-=l/s)}i[n-1][1]+=i[n-1][0]=r,Qr(e,t)}}function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}var IT=["type","size","sizeType"];function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ff.apply(this,arguments)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wm(Object(r),!0).forEach(function(n){$T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $T(e,t,r){return t=kT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kT(e){var t=RT(e,"string");return pi(t)=="symbol"?t:t+""}function RT(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DT(e,t){if(e==null)return{};var r=NT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Kw={symbolCircle:wp,symbolCross:iT,symbolDiamond:oT,symbolSquare:uT,symbolStar:fT,symbolTriangle:dT,symbolWye:hT},LT=Math.PI/180,qT=function(t){var r="symbol".concat(Mo(t));return Kw[r]||wp},BT=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*LT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},FT=function(t,r){Kw["symbol".concat(Mo(t))]=r},ko=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=DT(t,IT),l=Hm(Hm({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=qT(n),b=vT().type(h).size(BT(a,u,n));return b()},c=l.className,d=l.cx,p=l.cy,y=se(l,!0);return d===+d&&p===+p&&a===+a?O.createElement("path",Ff({},y,{className:fe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};ko.registerSymbol=FT;function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zf.apply(this,arguments)}function Gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function HT(e,t,r){return t&&WT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GT(e,t,r){return t=Ma(t),KT(e,Vw()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function KT(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VT(e)}function VT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function YT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uf(e,t)}function Uf(e,t){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uf(e,t)}function hi(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=XT(e,"string");return en(t)=="symbol"?t:t+""}function XT(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pt=32,Sp=(function(e){function t(){return UT(this,t),GT(this,t,arguments)}return YT(t,e),HT(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=pt/2,o=pt/6,u=pt/3,s=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
44
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
45
- H`).concat(pt,"M").concat(2*u,",").concat(a,`
46
- A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(pt/8,"h").concat(pt,"v").concat(pt*3/4,"h").concat(-pt,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=zT({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(ko,{fill:s,cx:a,cy:a,size:pt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,l=i.inactiveColor,f={x:0,y:0,width:pt,height:pt},c={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=fe(hi(hi({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=le(p.value)?null:p.value;Gt(!le(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?l:p.color;return O.createElement("li",zf({className:h,style:c,key:"legend-item-".concat(y)},di(n.props,p,y)),O.createElement(Rf,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},v?v(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(O.PureComponent);hi(Sp,"displayName","Legend");hi(Sp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var xc,Km;function Xw(){if(Km)return xc;Km=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return xc=e,xc}var wc,Vm;function ZT(){if(Vm)return wc;Vm=1;function e(t){return t!==t}return wc=e,wc}var Sc,Ym;function JT(){if(Ym)return Sc;Ym=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Sc=e,Sc}var Oc,Xm;function QT(){if(Xm)return Oc;Xm=1;var e=Xw(),t=ZT(),r=JT();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Oc=n,Oc}var _c,Zm;function eC(){if(Zm)return _c;Zm=1;var e=QT();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return _c=t,_c}var Ac,Jm;function tC(){if(Jm)return Ac;Jm=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Ac=e,Ac}var Pc,Qm;function rC(){if(Qm)return Pc;Qm=1;function e(){}return Pc=e,Pc}var Ec,eg;function nC(){if(eg)return Ec;eg=1;var e=sw(),t=rC(),r=dp(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ec=i,Ec}var Tc,tg;function iC(){if(tg)return Tc;tg=1;var e=ew(),t=eC(),r=tC(),n=rw(),i=nC(),a=dp(),o=200;function u(s,l,f){var c=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var b=l?null:i(s);if(b)return a(b);y=!1,d=n,h=new e}else h=l?[]:v;e:for(;++c<p;){var w=s[c],g=l?l(w):w;if(w=f||w!==0?w:0,y&&g===g){for(var S=h.length;S--;)if(h[S]===g)continue e;l&&h.push(g),v.push(w)}else d(h,g,f)||(h!==v&&h.push(g),v.push(w))}return v}return Tc=u,Tc}var Cc,rg;function aC(){if(rg)return Cc;rg=1;var e=sr(),t=iC();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Cc=r,Cc}var oC=aC();const ng=Se(oC);function Zw(e,t,r){return t===!0?ng(e,r):le(t)?ng(e,t):e}function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}var uC=["ref"];function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qw(n.key),n)}}function lC(e,t,r){return t&&ag(e.prototype,t),r&&ag(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cC(e,t,r){return t=ja(t),fC(e,Jw()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function fC(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dC(e)}function dC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jw=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function pC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wf(e,t)}function Ro(e,t,r){return t=Qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qw(e){var t=hC(e,"string");return tn(t)=="symbol"?t:t+""}function hC(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vC(e,t){if(e==null)return{};var r=yC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mC(e){return e.value}function gC(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=vC(t,uC);return O.createElement(Sp,r)}var og=1,Or=(function(e){function t(){var r;sC(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cC(this,t,[].concat(i)),Ro(r,"lastBoundingBox",{width:-1,height:-1}),r}return pC(t,e),lC(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>og||Math.abs(i.height-this.lastBoundingBox.height)>og)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Bt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,l=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((l||0)-p.width)/2}}else c=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Bt(Bt({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,c=Bt(Bt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return O.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},gC(a,Bt(Bt({},this.props),{},{payload:Zw(f,l,mC)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Bt(Bt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&V(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Ro(Or,"displayName","Legend");Ro(Or,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(this,arguments)}function bC(e,t){return OC(e)||SC(e,t)||wC(e,t)||xC()}function xC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wC(e,t){if(e){if(typeof e=="string")return ug(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ug(e,t)}}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function OC(e){if(Array.isArray(e))return e}function sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){_C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _C(e,t,r){return t=AC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AC(e){var t=PC(e,"string");return vi(t)=="symbol"?t:t+""}function PC(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EC(e){return Array.isArray(e)&&Le(e[0])&&Le(e[1])?e.join(" ~ "):e}var TC=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,l=s===void 0?{}:s,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,b=t.accessibilityLayer,w=b===void 0?!1:b,g=function(){if(f&&f.length){var T={padding:0,margin:0},j=(d?Co(f,d):f).map(function(k,$){if(k.type==="none")return null;var R=Mc({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),B=k.formatter||c||EC,D=k.value,F=k.name,I=D,N=F;if(B&&I!=null&&N!=null){var z=B(D,F,k,$,f);if(Array.isArray(z)){var H=bC(z,2);I=H[0],N=H[1]}else I=z}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:R},Le(N)?O.createElement("span",{className:"recharts-tooltip-item-name"},N):null,Le(N)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:T},j)}return null},S=Mc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Mc({margin:0},l),x=!oe(v),_=x?v:"",A=fe("recharts-default-tooltip",p),E=fe("recharts-tooltip-label",y);x&&h&&f!==void 0&&f!==null&&(_=h(v,f));var M=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Hf({className:A,style:S},M),O.createElement("p",{className:E,style:m},O.isValidElement(_)?_:"".concat(_)),g())};function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function sa(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=MC(e,"string");return yi(t)=="symbol"?t:t+""}function MC(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bn="recharts-tooltip-wrapper",jC={visibility:"hidden"};function IC(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return fe(Bn,sa(sa(sa(sa({},"".concat(Bn,"-right"),V(r)&&t&&V(t.x)&&r>=t.x),"".concat(Bn,"-left"),V(r)&&t&&V(t.x)&&r<t.x),"".concat(Bn,"-bottom"),V(n)&&t&&V(t.y)&&n>=t.y),"".concat(Bn,"-top"),V(n)&&t&&V(t.y)&&n<t.y))}function lg(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(a&&V(a[n]))return a[n];var f=r[n]-u-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,p=s[n];return d<p?Math.max(c,s[n]):Math.max(f,s[n])}var y=c+u,v=s[n]+l;return y>v?Math.max(f,s[n]):Math.max(c,s[n])}function $C(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function kC(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,l,f,c;return o.height>0&&o.width>0&&r?(f=lg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),c=lg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),l=$C({translateX:f,translateY:c,useTranslate3d:u})):l=jC,{cssProperties:l,cssClasses:IC({translateX:f,translateY:c,coordinate:r})}}function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(r),!0).forEach(function(n){Kf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tS(n.key),n)}}function NC(e,t,r){return t&&DC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LC(e,t,r){return t=Ia(t),qC(e,eS()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function qC(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BC(e)}function BC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eS=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function FC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function Kf(e,t,r){return t=tS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tS(e){var t=zC(e,"string");return rn(t)=="symbol"?t:t+""}function zC(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dg=1,UC=(function(e){function t(){var r;RC(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=LC(this,t,[].concat(i)),Kf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Kf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,l,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(l=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&l!==void 0?l:0}})}}),r}return FC(t,e),NC(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>dg||Math.abs(n.height-this.state.lastBoundingBox.height)>dg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,b=i.viewBox,w=i.wrapperStyle,g=kC({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:b}),S=g.cssClasses,m=g.cssProperties,x=fg(fg({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:S,style:x,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),WC=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},lr={isSsr:WC()};function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){Op(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nS(n.key),n)}}function KC(e,t,r){return t&&GC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VC(e,t,r){return t=$a(t),YC(e,rS()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function YC(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XC(e)}function XC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rS=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function ZC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vf(e,t)}function Vf(e,t){return Vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vf(e,t)}function Op(e,t,r){return t=nS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nS(e){var t=JC(e,"string");return nn(t)=="symbol"?t:t+""}function JC(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QC(e){return e.dataKey}function eM(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(TC,t)}var $t=(function(e){function t(){return HC(this,t),VC(this,t,arguments)}return ZC(t,e),KC(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,b=i.reverseDirection,w=i.useTranslate3d,g=i.viewBox,S=i.wrapperStyle,m=y??[];c&&m.length&&(m=Zw(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,QC));var x=m.length>0;return O.createElement(UC,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:x,offset:p,position:h,reverseDirection:b,useTranslate3d:w,viewBox:g,wrapperStyle:S},eM(l,hg(hg({},this.props),{},{payload:m})))}}])})(O.PureComponent);Op($t,"displayName","Tooltip");Op($t,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!lr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var jc,vg;function tM(){if(vg)return jc;vg=1;var e=Mt(),t=function(){return e.Date.now()};return jc=t,jc}var Ic,yg;function rM(){if(yg)return Ic;yg=1;var e=ur(),t=tM(),r=rp(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,l){var f,c,d,p,y,v,h=0,b=!1,w=!1,g=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(l)&&(b=!!l.leading,w="maxWait"in l,d=w?i(r(l.maxWait)||0,s):d,g="trailing"in l?!!l.trailing:g);function S(j){var k=f,$=c;return f=c=void 0,h=j,p=u.apply($,k),p}function m(j){return h=j,y=setTimeout(A,s),b?S(j):p}function x(j){var k=j-v,$=j-h,R=s-k;return w?a(R,d-$):R}function _(j){var k=j-v,$=j-h;return v===void 0||k>=s||k<0||w&&$>=d}function A(){var j=t();if(_(j))return E(j);y=setTimeout(A,x(j))}function E(j){return y=void 0,g&&f?S(j):(f=c=void 0,p)}function M(){y!==void 0&&clearTimeout(y),h=0,f=v=c=y=void 0}function P(){return y===void 0?p:E(t())}function T(){var j=t(),k=_(j);if(f=arguments,c=this,v=j,k){if(y===void 0)return m(v);if(w)return clearTimeout(y),y=setTimeout(A,s),S(v)}return y===void 0&&(y=setTimeout(A,s)),p}return T.cancel=M,T.flush=P,T}return Ic=o,Ic}var $c,mg;function nM(){if(mg)return $c;mg=1;var e=rM(),t=ur(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return $c=n,$c}var iM=nM();const iS=Se(iM);function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function la(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){aM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aM(e,t,r){return t=oM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oM(e){var t=uM(e,"string");return mi(t)=="symbol"?t:t+""}function uM(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sM(e,t){return dM(e)||fM(e,t)||cM(e,t)||lM()}function lM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function dM(e){if(Array.isArray(e))return e}var pM=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,l=e.minWidth,f=l===void 0?0:l,c=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,b=e.className,w=e.onResize,g=e.style,S=g===void 0?{}:g,m=O.useRef(null),x=O.useRef();x.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=O.useState({containerWidth:i.width,containerHeight:i.height}),A=sM(_,2),E=A[0],M=A[1],P=O.useCallback(function(j,k){M(function($){var R=Math.round(j),B=Math.round(k);return $.containerWidth===R&&$.containerHeight===B?$:{containerWidth:R,containerHeight:B}})},[]);O.useEffect(function(){var j=function(F){var I,N=F[0].contentRect,z=N.width,H=N.height;P(z,H),(I=x.current)===null||I===void 0||I.call(x,z,H)};v>0&&(j=iS(j,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(j),$=m.current.getBoundingClientRect(),R=$.width,B=$.height;return P(R,B),k.observe(m.current),function(){k.disconnect()}},[P,v]);var T=O.useMemo(function(){var j=E.containerWidth,k=E.containerHeight;if(j<0||k<0)return null;Gt(gr(o)||gr(s),`The width(%s) and height(%s) are both fixed numbers,
49
- maybe you don't need to use a ResponsiveContainer.`,o,s),Gt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=gr(o)?j:o,R=gr(s)?k:s;r&&r>0&&($?R=$/r:R&&($=R*r),d&&R>d&&(R=d)),Gt($>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
81
+ */var xw;function l5(){return xw||(xw=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,v=!1,w=!1,b;b=Symbol.for("react.module.reference");function _(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||w||U===n||U===u||U===c||v||U===p||y||m||d||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===l||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var ut=U.$$typeof;switch(ut){case e:var dt=U.type;switch(dt){case r:case i:case n:case u:case c:return dt;default:var et=dt&&dt.$$typeof;switch(et){case s:case o:case l:case h:case f:case a:return et;default:return ut}}case t:return ut}}}var x=o,S=a,A=e,T=l,k=r,P=h,E=f,C=t,M=i,R=n,$=u,L=c,F=!1,q=!1;function I(U){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(U){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(U){return g(U)===o}function z(U){return g(U)===a}function H(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function B(U){return g(U)===l}function Z(U){return g(U)===r}function V(U){return g(U)===h}function G(U){return g(U)===f}function W(U){return g(U)===t}function Y(U){return g(U)===i}function X(U){return g(U)===n}function D(U){return g(U)===u}function ot(U){return g(U)===c}Rt.ContextConsumer=x,Rt.ContextProvider=S,Rt.Element=A,Rt.ForwardRef=T,Rt.Fragment=k,Rt.Lazy=P,Rt.Memo=E,Rt.Portal=C,Rt.Profiler=M,Rt.StrictMode=R,Rt.Suspense=$,Rt.SuspenseList=L,Rt.isAsyncMode=I,Rt.isConcurrentMode=j,Rt.isContextConsumer=N,Rt.isContextProvider=z,Rt.isElement=H,Rt.isForwardRef=B,Rt.isFragment=Z,Rt.isLazy=V,Rt.isMemo=G,Rt.isPortal=W,Rt.isProfiler=Y,Rt.isStrictMode=X,Rt.isSuspense=D,Rt.isSuspenseList=ot,Rt.isValidElementType=_,Rt.typeOf=g})()),Rt}var ww;function u5(){return ww||(ww=1,process.env.NODE_ENV==="production"?Hl.exports=s5():Hl.exports=l5()),Hl.exports}var c5=u5(),Ud,Sw;function uC(){if(Sw)return Ud;Sw=1;var e=Jn(),t=Qn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ud=n,Ud}var Wd,Aw;function f5(){if(Aw)return Wd;Aw=1;var e=uC();function t(r){return e(r)&&r!=+r}return Wd=t,Wd}var h5=f5();const Do=Ft(h5);var p5=uC();const d5=Ft(p5);var tn=function(t){return t===0?0:t>0?1:-1},Ki=function(t){return ua(t)&&t.indexOf("%")===t.length-1},it=function(t){return d5(t)&&!Do(t)},m5=function(t){return gt(t)},Se=function(t){return it(t)||ua(t)},y5=0,_a=function(t){var r=++y5;return"".concat(t||"").concat(r)},ca=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!it(t)&&!ua(t))return n;var a;if(Ki(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Do(a)&&(a=n),i&&a>r&&(a=r),a},li=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},g5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},fe=function(t,r){return it(t)&&it(r)?function(n){return t+n*(r-t)}:function(){return r}};function Lu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Fr(n,t))===r})}var v5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},b5=function(t,r){return it(t)&&it(r)?t-r:ua(t)&&ua(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ga(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}var _5=["viewBox","children"],x5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ow=["points","pathLength"],Hd={svg:_5,polygon:Ow,polyline:Ow},g0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Bu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!Ro(n))return null;var i={};return Object.keys(n).forEach(function(a){g0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},w5=function(t,r,n){return function(i){return t(r,n,i),null}},Hs=function(t,r,n){if(!Ro(t)||zy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];g0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=w5(o,r,n))}),i},S5=["children"],A5=["children"];function Tw(e,t){if(e==null)return{};var r=O5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}var Pw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},zn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Gd=null,v0=function e(t){if(t===Ew&&Array.isArray(Gd))return Gd;var r=[];return O.Children.forEach(t,function(n){gt(n)||(c5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gd=r,Ew=t,r};function fr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return zn(i)}):n=[zn(t)],v0(e).forEach(function(i){var a=Fr(i,"type.displayName")||Fr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function br(e,t){var r=fr(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!it(n)||n<=0||!it(i)||i<=0)},T5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],P5=function(t){return t&&t.type&&ua(t.type)&&T5.indexOf(t.type)>=0},cC=function(t){return t&&Uy(t)==="object"&&"clipDot"in t},E5=function(t,r,n,i){var a,o=(a=Hd==null?void 0:Hd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||x5.includes(r))||n&&g0.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Ro(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;E5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Wy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mw(a,o))return!1}return!0},Mw=function(t,r){if(gt(t)&&gt(r))return!0;if(!gt(t)&&!gt(r)){var n=t.props||{},i=n.children,a=Tw(n,S5),o=r.props||{},s=o.children,l=Tw(o,A5);return i&&s?Ga(a,l)&&Wy(i,s):!i&&!s?Ga(a,l):!1}return!1},kw=function(t,r){var n=[],i={};return v0(t).forEach(function(a,o){if(P5(a))n.push(a);else if(a){var s=zn(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},C5=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},M5=function(t,r){return v0(r).indexOf(t)},k5=["children","width","height","viewBox","className","style","title","desc"];function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}function $5(e,t){if(e==null)return{};var r=j5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=$5(e,k5),c=i||{width:r,height:n,x:0,y:0},f=wt("recharts-surface",a);return O.createElement("svg",Hy({},vt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var R5=["children","className"];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function D5(e,t){if(e==null)return{};var r=I5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var $t=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=D5(e,R5),a=wt("recharts-layer",n);return O.createElement("g",Ky({className:a},vt(i,!0),{ref:t}),r)}),N5=process.env.NODE_ENV!=="production",Un=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(N5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Kd,$w;function L5(){if($w)return Kd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Kd=e,Kd}var Xd,jw;function B5(){if(jw)return Xd;jw=1;var e=L5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Xd=t,Xd}var Yd,Rw;function fC(){if(Rw)return Yd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Yd=l,Yd}var Vd,Dw;function q5(){if(Dw)return Vd;Dw=1;function e(t){return t.split("")}return Vd=e,Vd}var Zd,Iw;function F5(){if(Iw)return Zd;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",v=m+y+d,w="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+w+v,"g");function _(g){return g.match(b)||[]}return Zd=_,Zd}var Jd,Nw;function z5(){if(Nw)return Jd;Nw=1;var e=q5(),t=fC(),r=F5();function n(i){return t(i)?r(i):e(i)}return Jd=n,Jd}var Qd,Lw;function U5(){if(Lw)return Qd;Lw=1;var e=B5(),t=fC(),r=z5(),n=i0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return Qd=i,Qd}var tm,Bw;function W5(){if(Bw)return tm;Bw=1;var e=U5(),t=e("toUpperCase");return tm=t,tm}var H5=W5();const Wc=Ft(H5);function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}var G5=["type","size","sizeType"];function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){K5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K5(e,t,r){return t=X5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Y5(e,"string");return Gs(t)=="symbol"?t:t+""}function Y5(e,t){if(Gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V5(e,t){if(e==null)return{};var r=Z5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hC={symbolCircle:Mv,symbolCross:aI,symbolDiamond:sI,symbolSquare:lI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},J5=Math.PI/180,Q5=function(t){var r="symbol".concat(Wc(t));return hC[r]||Mv},tz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*J5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},ez=function(t,r){hC["symbol".concat(Wc(t))]=r},Hc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=V5(t,G5),u=Fw(Fw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=Q5(n),v=yI().type(d).size(tz(a,s,n));return v()},f=u.className,h=u.cx,p=u.cy,y=vt(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Xy({},y,{className:wt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Hc.registerSymbol=ez;function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Ks(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function az(e,t,r){return t&&iz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oz(e,t,r){return t=qu(t),sz(e,pC()?Reflect.construct(t,r||[],qu(e).constructor):t.apply(e,r))}function sz(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lz(e)}function lz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qu(e)}function uz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function Ks(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=cz(e,"string");return oo(t)=="symbol"?t:t+""}function cz(e,t){if(oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jr=32,b0=(function(e){function t(){return nz(this,t),oz(this,t,arguments)}return uz(t,e),az(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=jr/2,o=jr/6,s=jr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:jr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
82
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
83
+ H`).concat(jr,"M").concat(2*s,",").concat(a,`
84
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(jr/8,"h").concat(jr,"v").concat(jr*3/4,"h").concat(-jr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=rz({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Hc,{fill:l,cx:a,cy:a,size:jr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:jr,height:jr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=wt(Ks(Ks({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=bt(p.value)?null:p.value;Un(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return O.createElement("li",Yy({className:d,style:f,key:"legend-item-".concat(y)},Hs(n.props,p,y)),O.createElement(Gy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(v,p,y):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Ks(b0,"displayName","Legend");Ks(b0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var em,Uw;function mC(){if(Uw)return em;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return em=e,em}var rm,Ww;function fz(){if(Ww)return rm;Ww=1;function e(t){return t!==t}return rm=e,rm}var nm,Hw;function hz(){if(Hw)return nm;Hw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return nm=e,nm}var im,Gw;function pz(){if(Gw)return im;Gw=1;var e=mC(),t=fz(),r=hz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return im=n,im}var am,Kw;function dz(){if(Kw)return am;Kw=1;var e=pz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return am=t,am}var om,Xw;function mz(){if(Xw)return om;Xw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return om=e,om}var sm,Yw;function yz(){if(Yw)return sm;Yw=1;function e(){}return sm=e,sm}var lm,Vw;function gz(){if(Vw)return lm;Vw=1;var e=YE(),t=yz(),r=h0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return lm=i,lm}var um,Zw;function vz(){if(Zw)return um;Zw=1;var e=FE(),t=dz(),r=mz(),n=UE(),i=gz(),a=h0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var v=u?null:i(l);if(v)return a(v);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var w=l[f],b=u?u(w):w;if(w=c||w!==0?w:0,y&&b===b){for(var _=d.length;_--;)if(d[_]===b)continue t;u&&d.push(b),m.push(w)}else h(d,b,c)||(d!==m&&d.push(b),m.push(w))}return m}return um=s,um}var cm,Jw;function bz(){if(Jw)return cm;Jw=1;var e=Ai(),t=vz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return cm=r,cm}var _z=bz();const Qw=Ft(_z);function yC(e,t,r){return t===!0?Qw(e,r):bt(t)?Qw(e,t):e}function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}var xz=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Gc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vC(n.key),n)}}function Sz(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e,t,r){return t=Fu(t),Oz(e,gC()?Reflect.construct(t,r||[],Fu(e).constructor):t.apply(e,r))}function Oz(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gC=function(){return!!e})()}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fu(e)}function Pz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Gc(e,t,r){return t=vC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vC(e){var t=Ez(e,"string");return so(t)=="symbol"?t:t+""}function Ez(e,t){if(so(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(so(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cz(e,t){if(e==null)return{};var r=Mz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kz(e){return e.value}function $z(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Cz(t,xz);return O.createElement(b0,r)}var rS=1,ea=(function(e){function t(){var r;wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Az(this,t,[].concat(i)),Gc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Pz(t,e),Sz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Dn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Dn(Dn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Dn(Dn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},$z(a,Dn(Dn({},this.props),{},{payload:yC(c,u,kz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Dn(Dn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&it(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Gc(ea,"displayName","Legend");Gc(ea,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function jz(e,t){return Nz(e)||Iz(e,t)||Dz(e,t)||Rz()}function Rz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dz(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Iz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nz(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){Lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lz(e,t,r){return t=Bz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bz(e){var t=qz(e,"string");return Xs(t)=="symbol"?t:t+""}function qz(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var zz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,v=t.accessibilityLayer,w=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Uc(c,h):c).map(function(M,R){if(M.type==="none")return null;var $=fm({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},s),L=M.formatter||f||Fz,F=M.value,q=M.name,I=F,j=q;if(L&&I!=null&&j!=null){var N=L(F,q,M,R,c);if(Array.isArray(N)){var z=jz(N,2);I=z[0],j=z[1]}else I=N}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:$},Se(j)?O.createElement("span",{className:"recharts-tooltip-item-name"},j):null,Se(j)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},_=fm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=fm({margin:0},u),x=!gt(m),S=x?m:"",A=wt("recharts-default-tooltip",p),T=wt("recharts-tooltip-label",y);x&&d&&c!==void 0&&c!==null&&(S=d(m,c));var k=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Jy({className:A,style:_},k),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),b())};function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function Gl(e,t,r){return t=Uz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uz(e){var t=Wz(e,"string");return Ys(t)=="symbol"?t:t+""}function Wz(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jo="recharts-tooltip-wrapper",Hz={visibility:"hidden"};function Gz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return wt(Jo,Gl(Gl(Gl(Gl({},"".concat(Jo,"-right"),it(r)&&t&&it(t.x)&&r>=t.x),"".concat(Jo,"-left"),it(r)&&t&&it(t.x)&&r<t.x),"".concat(Jo,"-bottom"),it(n)&&t&&it(t.y)&&n>=t.y),"".concat(Jo,"-top"),it(n)&&t&&it(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&it(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function Kz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Xz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=Kz({translateX:c,translateY:f,useTranslate3d:s})):u=Hz,{cssProperties:u,cssClasses:Gz({translateX:c,translateY:f,coordinate:r})}}function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){tg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_C(n.key),n)}}function Zz(e,t,r){return t&&Vz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jz(e,t,r){return t=zu(t),Qz(e,bC()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}function Qz(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t3(e)}function t3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bC=function(){return!!e})()}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zu(e)}function e3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function tg(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=r3(e,"string");return lo(t)=="symbol"?t:t+""}function r3(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lS=1,n3=(function(e){function t(){var r;Yz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Jz(this,t,[].concat(i)),tg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return e3(t,e),Zz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>lS||Math.abs(n.height-this.state.lastBoundingBox.height)>lS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,v=i.viewBox,w=i.wrapperStyle,b=Xz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:v}),_=b.cssClasses,g=b.cssProperties,x=sS(sS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:_,style:x,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),i3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Oi={isSsr:i3()};function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function uS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){_0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wC(n.key),n)}}function s3(e,t,r){return t&&o3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l3(e,t,r){return t=Uu(t),u3(e,xC()?Reflect.construct(t,r||[],Uu(e).constructor):t.apply(e,r))}function u3(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c3(e)}function c3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xC=function(){return!!e})()}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uu(e)}function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function _0(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=h3(e,"string");return uo(t)=="symbol"?t:t+""}function h3(e,t){if(uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p3(e){return e.dataKey}function d3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(zz,t)}var mn=(function(e){function t(){return a3(this,t),l3(this,t,arguments)}return f3(t,e),s3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,v=i.reverseDirection,w=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=yC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,p3));var x=g.length>0;return O.createElement(n3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:x,offset:p,position:d,reverseDirection:v,useTranslate3d:w,viewBox:b,wrapperStyle:_},d3(u,cS(cS({},this.props),{},{payload:g})))}}])})(O.PureComponent);_0(mn,"displayName","Tooltip");_0(mn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Oi.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var hm,fS;function m3(){if(fS)return hm;fS=1;var e=an(),t=function(){return e.Date.now()};return hm=t,hm}var pm,hS;function y3(){if(hS)return pm;hS=1;var e=Si(),t=m3(),r=r0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,v=!1,w=!1,b=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(v=!!u.leading,w="maxWait"in u,h=w?i(r(u.maxWait)||0,l):h,b="trailing"in u?!!u.trailing:b);function _(C){var M=c,R=f;return c=f=void 0,d=C,p=s.apply(R,M),p}function g(C){return d=C,y=setTimeout(A,l),v?_(C):p}function x(C){var M=C-m,R=C-d,$=l-M;return w?a($,h-R):$}function S(C){var M=C-m,R=C-d;return m===void 0||M>=l||M<0||w&&R>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,x(C))}function T(C){return y=void 0,b&&c?_(C):(c=f=void 0,p)}function k(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),M=S(C);if(c=arguments,f=this,m=C,M){if(y===void 0)return g(m);if(w)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=k,E.flush=P,E}return pm=o,pm}var dm,pS;function g3(){if(pS)return dm;pS=1;var e=y3(),t=Si(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return dm=n,dm}var v3=g3();const SC=Ft(v3);function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){b3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b3(e,t,r){return t=_3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _3(e){var t=x3(e,"string");return Vs(t)=="symbol"?t:t+""}function x3(e,t){if(Vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t){return T3(e)||O3(e,t)||A3(e,t)||S3()}function S3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function T3(e){if(Array.isArray(e))return e}var P3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,v=e.className,w=e.onResize,b=e.style,_=b===void 0?{}:b,g=O.useRef(null),x=O.useRef();x.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=w3(S,2),T=A[0],k=A[1],P=O.useCallback(function(C,M){k(function(R){var $=Math.round(C),L=Math.round(M);return R.containerWidth===$&&R.containerHeight===L?R:{containerWidth:$,containerHeight:L}})},[]);O.useEffect(function(){var C=function(q){var I,j=q[0].contentRect,N=j.width,z=j.height;P(N,z),(I=x.current)===null||I===void 0||I.call(x,N,z)};m>0&&(C=SC(C,m,{trailing:!0,leading:!1}));var M=new ResizeObserver(C),R=g.current.getBoundingClientRect(),$=R.width,L=R.height;return P($,L),M.observe(g.current),function(){M.disconnect()}},[P,m]);var E=O.useMemo(function(){var C=T.containerWidth,M=T.containerHeight;if(C<0||M<0)return null;Un(Ki(o)||Ki(l),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,l),Un(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=Ki(o)?C:o,$=Ki(l)?M:l;r&&r>0&&(R?$=R/r:$&&(R=$*r),h&&$>h&&($=h)),Un(R>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
50
88
  please check the style of container, or the props width(%s) and height(%s),
51
89
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
52
- height and width.`,$,R,o,s,f,c,r);var B=!Array.isArray(p)&&Ht(p.type).endsWith("Chart");return O.Children.map(p,function(D){return O.isValidElement(D)?O.cloneElement(D,la({width:$,height:R},B?{style:la({height:"100%",width:"100%",maxHeight:R,maxWidth:$},D.props.style)}:{})):D})},[r,p,s,d,c,f,E,o]);return O.createElement("div",{id:h?"".concat(h):void 0,className:fe("recharts-responsive-container",b),style:la(la({},S),{},{width:o,height:s,minWidth:f,minHeight:c,maxHeight:d}),ref:m},T)}),_p=function(t){return null};_p.displayName="Cell";function gi(e){"@babel/helpers - typeof";return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(e)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){hM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hM(e,t,r){return t=vM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vM(e){var t=yM(e,"string");return gi(t)=="symbol"?t:t+""}function yM(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qr={widthCache:{},cacheCount:0},mM=2e3,gM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},wg="recharts_measurement_span";function bM(e){var t=Yf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ni=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||lr.isSsr)return{width:0,height:0};var n=bM(r),i=JSON.stringify({text:t,copyStyle:n});if(qr.widthCache[i])return qr.widthCache[i];try{var a=document.getElementById(wg);a||(a=document.createElement("span"),a.setAttribute("id",wg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Yf(Yf({},gM),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return qr.widthCache[i]=s,++qr.cacheCount>mM&&(qr.cacheCount=0,qr.widthCache={}),s}catch{return{width:0,height:0}}},xM=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function ka(e,t){return _M(e)||OM(e,t)||SM(e,t)||wM()}function wM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SM(e,t){if(e){if(typeof e=="string")return Sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sg(e,t)}}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function _M(e){if(Array.isArray(e))return e}function AM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EM(n.key),n)}}function PM(e,t,r){return t&&Og(e.prototype,t),r&&Og(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EM(e){var t=TM(e,"string");return bi(t)=="symbol"?t:t+""}function TM(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _g=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ag=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CM=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,MM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,aS={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},jM=Object.keys(aS),Wr="NaN";function IM(e,t){return e*aS[t]}var ca=(function(){function e(t,r){AM(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!CM.test(r)&&(this.num=NaN,this.unit=""),jM.includes(r)&&(this.num=IM(t,r),this.unit="px")}return PM(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=MM.exec(r))!==null&&n!==void 0?n:[],a=ka(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function oS(e){if(e.includes(Wr))return Wr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_g.exec(t))!==null&&r!==void 0?r:[],i=ka(n,4),a=i[1],o=i[2],u=i[3],s=ca.parse(a??""),l=ca.parse(u??""),f=o==="*"?s.multiply(l):s.divide(l);if(f.isNaN())return Wr;t=t.replace(_g,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=Ag.exec(t))!==null&&c!==void 0?c:[],p=ka(d,4),y=p[1],v=p[2],h=p[3],b=ca.parse(y??""),w=ca.parse(h??""),g=v==="+"?b.add(w):b.subtract(w);if(g.isNaN())return Wr;t=t.replace(Ag,g.toString())}return t}var Pg=/\(([^()]*)\)/;function $M(e){for(var t=e;t.includes("(");){var r=Pg.exec(t),n=ka(r,2),i=n[1];t=t.replace(Pg,oS(i))}return t}function kM(e){var t=e.replace(/\s+/g,"");return t=$M(t),t=oS(t),t}function RM(e){try{return kM(e)}catch{return Wr}}function kc(e){var t=RM(e.slice(5,-1));return t===Wr?"":t}var DM=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],NM=["dx","dy","angle","className","breakAll"];function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xf.apply(this,arguments)}function Eg(e,t){if(e==null)return{};var r=LM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tg(e,t){return zM(e)||FM(e,t)||BM(e,t)||qM()}function qM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BM(e,t){if(e){if(typeof e=="string")return Cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cg(e,t)}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function zM(e){if(Array.isArray(e))return e}var uS=/[ \f\n\r\t\v\u2028\u2029]+/,sS=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];oe(r)||(n?a=r.toString().split(""):a=r.toString().split(uS));var o=a.map(function(s){return{word:s,width:ni(s,i).width}}),u=n?0:ni(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},UM=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,l=t.breakAll,f=V(o),c=u,d=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(R,B){var D=B.word,F=B.width,I=R[R.length-1];if(I&&(i==null||a||I.width+F+n<Number(i)))I.words.push(D),I.width+=F+n;else{var N={words:[D],width:F};R.push(N)}return R},[])},p=d(r),y=function($){return $.reduce(function(R,B){return R.width>B.width?R:B})};if(!f)return p;for(var v="…",h=function($){var R=c.slice(0,$),B=sS({breakAll:l,style:s,children:R+v}).wordsWithComputedWidth,D=d(B),F=D.length>o||y(D).width>Number(i);return[F,D]},b=0,w=c.length-1,g=0,S;b<=w&&g<=c.length-1;){var m=Math.floor((b+w)/2),x=m-1,_=h(x),A=Tg(_,2),E=A[0],M=A[1],P=h(m),T=Tg(P,1),j=T[0];if(!E&&!j&&(b=m+1),E&&j&&(w=m-1),!E&&j){S=M;break}g++}return S||p},Mg=function(t){var r=oe(t)?[]:t.toString().split(uS);return[{words:r}]},WM=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!lr.isSsr){var s,l,f=sS({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;s=c,l=d}else return Mg(i);return UM({breakAll:o,children:i,maxLines:u,style:a},s,l,r,n)}return Mg(i)},jg="#808080",Ra=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,l=s===void 0?"0.71em":s,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,b=h===void 0?jg:h,w=Eg(t,DM),g=O.useMemo(function(){return WM({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:c,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,c,w.style,w.width]),S=w.dx,m=w.dy,x=w.angle,_=w.className,A=w.breakAll,E=Eg(w,NM);if(!Le(n)||!Le(a))return null;var M=n+(V(S)?S:0),P=a+(V(m)?m:0),T;switch(v){case"start":T=kc("calc(".concat(l,")"));break;case"middle":T=kc("calc(".concat((g.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:T=kc("calc(".concat(g.length-1," * -").concat(u,")"));break}var j=[];if(c){var k=g[0].width,$=w.width;j.push("scale(".concat((V($)?$/k:1)/k,")"))}return x&&j.push("rotate(".concat(x,", ").concat(M,", ").concat(P,")")),j.length&&(E.transform=j.join(" ")),O.createElement("text",Xf({},se(E,!0),{x:M,y:P,className:fe("recharts-text",_),textAnchor:p,fill:b.includes("url")?jg:b}),g.map(function(R,B){var D=R.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:B===0?T:u,key:"".concat(D,"-").concat(B)},D)}))};function or(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function HM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ap(e){let t,r,n;e.length!==2?(t=or,r=(u,s)=>or(e(u),s),n=(u,s)=>e(u)-s):(t=e===or||e===HM?e:GM,r=e,n=e);function i(u,s,l=0,f=u.length){if(l<f){if(t(s,s)!==0)return f;do{const c=l+f>>>1;r(u[c],s)<0?l=c+1:f=c}while(l<f)}return l}function a(u,s,l=0,f=u.length){if(l<f){if(t(s,s)!==0)return f;do{const c=l+f>>>1;r(u[c],s)<=0?l=c+1:f=c}while(l<f)}return l}function o(u,s,l=0,f=u.length){const c=i(u,s,l,f-1);return c>l&&n(u[c-1],s)>-n(u[c],s)?c-1:c}return{left:i,center:o,right:a}}function GM(){return 0}function lS(e){return e===null?NaN:+e}function*KM(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const VM=Ap(or),Qi=VM.right;Ap(lS).center;class Ig extends Map{constructor(t,r=ZM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get($g(this,t))}has(t){return super.has($g(this,t))}set(t,r){return super.set(YM(this,t),r)}delete(t){return super.delete(XM(this,t))}}function $g({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function YM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function XM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function ZM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function JM(e=or){if(e===or)return cS;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function cS(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const QM=Math.sqrt(50),ej=Math.sqrt(10),tj=Math.sqrt(2);function Da(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=QM?10:a>=ej?5:a>=tj?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(e*l),s=Math.round(t*l),u/l<e&&++u,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*o,u=Math.round(e/l),s=Math.round(t/l),u*l<e&&++u,s*l>t&&--s),s<u&&.5<=r&&r<2?Da(e,t,r*2):[u,s,l]}function Zf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Da(t,e,r):Da(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let l=0;l<u;++l)s[l]=(a-l)/-o;else for(let l=0;l<u;++l)s[l]=(a-l)*o;else if(o<0)for(let l=0;l<u;++l)s[l]=(i+l)/-o;else for(let l=0;l<u;++l)s[l]=(i+l)*o;return s}function Jf(e,t,r){return t=+t,e=+e,r=+r,Da(e,t,r)[2]}function Qf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Jf(t,e,r):Jf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function kg(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Rg(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function fS(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?cS:JM(i);n>r;){if(n-r>600){const s=n-r+1,l=t-r+1,f=Math.log(s),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(s-c)/s)*(l-s/2<0?-1:1),p=Math.max(r,Math.floor(t-l*c/s+d)),y=Math.min(n,Math.floor(t+(s-l)*c/s+d));fS(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Fn(e,r,t),i(e[n],a)>0&&Fn(e,r,n);o<u;){for(Fn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Fn(e,r,u):(++u,Fn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Fn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function rj(e,t,r){if(e=Float64Array.from(KM(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Rg(e);if(t>=1)return kg(e);var n,i=(n-1)*t,a=Math.floor(i),o=kg(fS(e,a).subarray(0,a+1)),u=Rg(e.subarray(a+1));return o+(u-o)*(i-a)}}function nj(e,t,r=lS){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function ij(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Qt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const ed=Symbol("implicit");function Pp(){var e=new Ig,t=[],r=[],n=ed;function i(a){let o=e.get(a);if(o===void 0){if(n!==ed)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ig;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Pp(t,r).unknown(n)},xt.apply(i,arguments),i}function xi(){var e=Pp().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,l=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+l*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=ij(d).map(function(b){return y+a*b});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,c()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,l=+d),c()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),c()):s},e.paddingOuter=function(d){return arguments.length?(l=+d,c()):l},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return xi(t(),[n,i]).round(u).paddingInner(s).paddingOuter(l).align(f)},xt.apply(c(),arguments)}function dS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dS(t())},e}function ii(){return dS(xi.apply(null,arguments).paddingInner(1))}function Ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function pS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ea(){}var wi=.7,Na=1/wi,Zr="\\s*([+-]?\\d+)\\s*",Si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aj=/^#([0-9a-f]{3,8})$/,oj=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),uj=new RegExp(`^rgb\\(${Dt},${Dt},${Dt}\\)$`),sj=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Si}\\)$`),lj=new RegExp(`^rgba\\(${Dt},${Dt},${Dt},${Si}\\)$`),cj=new RegExp(`^hsl\\(${Si},${Dt},${Dt}\\)$`),fj=new RegExp(`^hsla\\(${Si},${Dt},${Dt},${Si}\\)$`),Dg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ep(ea,Oi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ng,formatHex:Ng,formatHex8:dj,formatHsl:pj,formatRgb:Lg,toString:Lg});function Ng(){return this.rgb().formatHex()}function dj(){return this.rgb().formatHex8()}function pj(){return hS(this).formatHsl()}function Lg(){return this.rgb().formatRgb()}function Oi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=aj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qg(t):r===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?fa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?fa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oj.exec(e))?new tt(t[1],t[2],t[3],1):(t=uj.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sj.exec(e))?fa(t[1],t[2],t[3],t[4]):(t=lj.exec(e))?fa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cj.exec(e))?zg(t[1],t[2]/100,t[3]/100,1):(t=fj.exec(e))?zg(t[1],t[2]/100,t[3]/100,t[4]):Dg.hasOwnProperty(e)?qg(Dg[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function qg(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function fa(e,t,r,n){return n<=0&&(e=t=r=NaN),new tt(e,t,r,n)}function hj(e){return e instanceof ea||(e=Oi(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function td(e,t,r,n){return arguments.length===1?hj(e):new tt(e,t,r,n??1)}function tt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ep(tt,td,pS(ea,{brighter(e){return e=e==null?Na:Math.pow(Na,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wi:Math.pow(wi,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(_r(this.r),_r(this.g),_r(this.b),La(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bg,formatHex:Bg,formatHex8:vj,formatRgb:Fg,toString:Fg}));function Bg(){return`#${br(this.r)}${br(this.g)}${br(this.b)}`}function vj(){return`#${br(this.r)}${br(this.g)}${br(this.b)}${br((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fg(){const e=La(this.opacity);return`${e===1?"rgb(":"rgba("}${_r(this.r)}, ${_r(this.g)}, ${_r(this.b)}${e===1?")":`, ${e})`}`}function La(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _r(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function br(e){return e=_r(e),(e<16?"0":"")+e.toString(16)}function zg(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Et(e,t,r,n)}function hS(e){if(e instanceof Et)return new Et(e.h,e.s,e.l,e.opacity);if(e instanceof ea||(e=Oi(e)),!e)return new Et;if(e instanceof Et)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Et(o,u,s,e.opacity)}function yj(e,t,r,n){return arguments.length===1?hS(e):new Et(e,t,r,n??1)}function Et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ep(Et,yj,pS(ea,{brighter(e){return e=e==null?Na:Math.pow(Na,e),new Et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wi:Math.pow(wi,e),new Et(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new tt(Rc(e>=240?e-240:e+120,i,n),Rc(e,i,n),Rc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Et(Ug(this.h),da(this.s),da(this.l),La(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=La(this.opacity);return`${e===1?"hsl(":"hsla("}${Ug(this.h)}, ${da(this.s)*100}%, ${da(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ug(e){return e=(e||0)%360,e<0?e+360:e}function da(e){return Math.max(0,Math.min(1,e||0))}function Rc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Tp=e=>()=>e;function mj(e,t){return function(r){return e+r*t}}function gj(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function bj(e){return(e=+e)==1?vS:function(t,r){return r-t?gj(t,r,e):Tp(isNaN(t)?r:t)}}function vS(e,t){var r=t-e;return r?mj(e,r):Tp(isNaN(e)?t:e)}const Wg=(function e(t){var r=bj(t);function n(i,a){var o=r((i=td(i)).r,(a=td(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),l=vS(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=l(f),i+""}}return n.gamma=e,n})(1);function xj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function wj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Sj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=In(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Oj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function qa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function _j(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=In(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var rd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dc=new RegExp(rd.source,"g");function Aj(e){return function(){return e}}function Pj(e){return function(t){return e(t)+""}}function Ej(e,t){var r=rd.lastIndex=Dc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=rd.exec(e))&&(i=Dc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:qa(n,i)})),r=Dc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?Pj(s[0].x):Aj(t):(t=s.length,function(l){for(var f=0,c;f<t;++f)u[(c=s[f]).i]=c.x(l);return u.join("")})}function In(e,t){var r=typeof t,n;return t==null||r==="boolean"?Tp(t):(r==="number"?qa:r==="string"?(n=Oi(t))?(t=n,Wg):Ej:t instanceof Oi?Wg:t instanceof Date?Oj:wj(t)?xj:Array.isArray(t)?Sj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_j:qa)(e,t)}function Cp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Tj(e,t){t===void 0&&(t=e,e=In);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Cj(e){return function(){return e}}function Ba(e){return+e}var Hg=[0,1];function Je(e){return e}function nd(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Cj(isNaN(t)?NaN:.5)}function Mj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function jj(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=nd(i,n),a=r(o,a)):(n=nd(n,i),a=r(a,o)),function(u){return a(n(u))}}function Ij(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=nd(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Qi(e,u,1,n)-1;return a[s](i[s](u))}}function ta(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Do(){var e=Hg,t=Hg,r=In,n,i,a,o=Je,u,s,l;function f(){var d=Math.min(e.length,t.length);return o!==Je&&(o=Mj(e[0],e[d-1])),u=d>2?Ij:jj,s=l=null,c}function c(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((l||(l=u(t,e.map(n),qa)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Ba),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Cp,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Je,f()):o!==Je},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function Mp(){return Do()(Je,Je)}function $j(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fa(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function an(e){return e=Fa(Math.abs(e)),e?e[1]:NaN}function kj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Rj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Dj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _i(e){if(!(t=Dj.exec(e)))throw new Error("invalid format: "+e);var t;return new jp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}_i.prototype=jp.prototype;function jp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}jp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Nj(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yS;function Lj(e,t){var r=Fa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Fa(e,Math.max(0,t+a-1))[0]}function Gg(e,t){var r=Fa(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Kg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$j,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gg(e*100,t),r:Gg,s:Lj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vg(e){return e}var Yg=Array.prototype.map,Xg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qj(e){var t=e.grouping===void 0||e.thousands===void 0?Vg:kj(Yg.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Vg:Rj(Yg.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function l(c){c=_i(c);var d=c.fill,p=c.align,y=c.sign,v=c.symbol,h=c.zero,b=c.width,w=c.comma,g=c.precision,S=c.trim,m=c.type;m==="n"?(w=!0,m="g"):Kg[m]||(g===void 0&&(g=12),S=!0,m="g"),(h||d==="0"&&p==="=")&&(h=!0,d="0",p="=");var x=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=Kg[m],E=/[defgprs%]/.test(m);g=g===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function M(P){var T=x,j=_,k,$,R;if(m==="c")j=A(P)+j,P="";else{P=+P;var B=P<0||1/P<0;if(P=isNaN(P)?s:A(Math.abs(P),g),S&&(P=Nj(P)),B&&+P==0&&y!=="+"&&(B=!1),T=(B?y==="("?y:u:y==="-"||y==="("?"":y)+T,j=(m==="s"?Xg[8+yS/3]:"")+j+(B&&y==="("?")":""),E){for(k=-1,$=P.length;++k<$;)if(R=P.charCodeAt(k),48>R||R>57){j=(R===46?i+P.slice(k+1):P.slice(k))+j,P=P.slice(0,k);break}}}w&&!h&&(P=t(P,1/0));var D=T.length+P.length+j.length,F=D<b?new Array(b-D+1).join(d):"";switch(w&&h&&(P=t(F+P,F.length?b-j.length:1/0),F=""),p){case"<":P=T+P+j+F;break;case"=":P=T+F+P+j;break;case"^":P=F.slice(0,D=F.length>>1)+T+P+j+F.slice(D);break;default:P=F+T+P+j;break}return a(P)}return M.toString=function(){return c+""},M}function f(c,d){var p=l((c=_i(c),c.type="f",c)),y=Math.max(-8,Math.min(8,Math.floor(an(d)/3)))*3,v=Math.pow(10,-y),h=Xg[8+y/3];return function(b){return p(v*b)+h}}return{format:l,formatPrefix:f}}var pa,Ip,mS;Bj({thousands:",",grouping:[3],currency:["$",""]});function Bj(e){return pa=qj(e),Ip=pa.format,mS=pa.formatPrefix,pa}function Fj(e){return Math.max(0,-an(Math.abs(e)))}function zj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(an(t)/3)))*3-an(Math.abs(e)))}function Uj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,an(t)-an(e))+1}function gS(e,t,r,n){var i=Qf(e,t,r),a;switch(n=_i(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=zj(i,o))&&(n.precision=a),mS(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Uj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Fj(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ip(n)}function cr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Zf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return gS(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,l,f=10;for(u<o&&(l=o,o=u,u=l,l=i,i=a,a=l);f-- >0;){if(l=Jf(o,u,r),l===s)return n[i]=o,n[a]=u,t(n);if(l>0)o=Math.floor(o/l)*l,u=Math.ceil(u/l)*l;else if(l<0)o=Math.ceil(o*l)/l,u=Math.floor(u*l)/l;else break;s=l}return e},e}function za(){var e=Mp();return e.copy=function(){return ta(e,za())},xt.apply(e,arguments),cr(e)}function bS(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ba),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return bS(e).unknown(t)},e=arguments.length?Array.from(e,Ba):[0,1],cr(r)}function xS(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Zg(e){return Math.log(e)}function Jg(e){return Math.exp(e)}function Wj(e){return-Math.log(-e)}function Hj(e){return-Math.exp(-e)}function Gj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Kj(e){return e===10?Gj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Vj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Qg(e){return(t,r)=>-e(-t,r)}function $p(e){const t=e(Zg,Jg),r=t.domain;let n=10,i,a;function o(){return i=Vj(n),a=Kj(n),r()[0]<0?(i=Qg(i),a=Qg(a),e(Wj,Hj)):e(Zg,Jg),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let l=s[0],f=s[s.length-1];const c=f<l;c&&([l,f]=[f,l]);let d=i(l),p=i(f),y,v;const h=u==null?10:+u;let b=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),l>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<l)){if(v>f)break;b.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<l)){if(v>f)break;b.push(v)}b.length*2<h&&(b=Zf(l,f,h))}else b=Zf(d,p,Math.min(p-d,h)).map(a);return c?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=_i(s)).precision==null&&(s.trim=!0),s=Ip(s)),u===1/0)return s;const l=Math.max(1,n*u/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=l?s(f):""}},t.nice=()=>r(xS(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function wS(){const e=$p(Do()).domain([1,10]);return e.copy=()=>ta(e,wS()).base(e.base()),xt.apply(e,arguments),e}function eb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function tb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kp(e){var t=1,r=e(eb(t),tb(t));return r.constant=function(n){return arguments.length?e(eb(t=+n),tb(t)):t},cr(r)}function SS(){var e=kp(Do());return e.copy=function(){return ta(e,SS()).constant(e.constant())},xt.apply(e,arguments)}function rb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Yj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Xj(e){return e<0?-e*e:e*e}function Rp(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e(Yj,Xj):e(rb(r),rb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},cr(t)}function Dp(){var e=Rp(Do());return e.copy=function(){return ta(e,Dp()).exponent(e.exponent())},xt.apply(e,arguments),e}function Zj(){return Dp.apply(null,arguments).exponent(.5)}function nb(e){return Math.sign(e)*e*e}function Jj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function OS(){var e=Mp(),t=[0,1],r=!1,n;function i(a){var o=Jj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(nb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ba)).map(nb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return OS(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},xt.apply(i,arguments),cr(i)}function _S(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=nj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Qi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(or),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return _S().domain(e).range(t).unknown(n)},xt.apply(a,arguments)}function AS(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Qi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var l=i.indexOf(s);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return AS().domain([e,t]).range(i).unknown(a)},xt.apply(cr(o),arguments)}function PS(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Qi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return PS().domain(e).range(t).unknown(r)},xt.apply(i,arguments)}const Nc=new Date,Lc=new Date;function Fe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let l;do s.push(l=new Date(+a)),t(a,u),e(a);while(l<a&&a<o);return s},i.filter=a=>Fe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Nc.setTime(+a),Lc.setTime(+o),e(Nc),e(Lc),Math.floor(r(Nc,Lc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ua=Fe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ua.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ua);Ua.range;const zt=1e3,vt=zt*60,Ut=vt*60,Vt=Ut*24,Np=Vt*7,ib=Vt*30,qc=Vt*365,xr=Fe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*zt)},(e,t)=>(t-e)/zt,e=>e.getUTCSeconds());xr.range;const Lp=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zt)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getMinutes());Lp.range;const qp=Fe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCMinutes());qp.range;const Bp=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zt-e.getMinutes()*vt)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getHours());Bp.range;const Fp=Fe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getUTCHours());Fp.range;const ra=Fe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vt)/Vt,e=>e.getDate()-1);ra.range;const No=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vt,e=>e.getUTCDate()-1);No.range;const ES=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vt,e=>Math.floor(e/Vt));ES.range;function Rr(e){return Fe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Np)}const Lo=Rr(0),Wa=Rr(1),Qj=Rr(2),eI=Rr(3),on=Rr(4),tI=Rr(5),rI=Rr(6);Lo.range;Wa.range;Qj.range;eI.range;on.range;tI.range;rI.range;function Dr(e){return Fe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Np)}const qo=Dr(0),Ha=Dr(1),nI=Dr(2),iI=Dr(3),un=Dr(4),aI=Dr(5),oI=Dr(6);qo.range;Ha.range;nI.range;iI.range;un.range;aI.range;oI.range;const zp=Fe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());zp.range;const Up=Fe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Up.range;const Yt=Fe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Yt.range;const Xt=Fe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xt.range;function TS(e,t,r,n,i,a){const o=[[xr,1,zt],[xr,5,5*zt],[xr,15,15*zt],[xr,30,30*zt],[a,1,vt],[a,5,5*vt],[a,15,15*vt],[a,30,30*vt],[i,1,Ut],[i,3,3*Ut],[i,6,6*Ut],[i,12,12*Ut],[n,1,Vt],[n,2,2*Vt],[r,1,Np],[t,1,ib],[t,3,3*ib],[e,1,qc]];function u(l,f,c){const d=f<l;d&&([l,f]=[f,l]);const p=c&&typeof c.range=="function"?c:s(l,f,c),y=p?p.range(l,+f+1):[];return d?y.reverse():y}function s(l,f,c){const d=Math.abs(f-l)/c,p=Ap(([,,h])=>h).right(o,d);if(p===o.length)return e.every(Qf(l/qc,f/qc,c));if(p===0)return Ua.every(Math.max(Qf(l,f,c),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[uI,sI]=TS(Xt,Up,qo,ES,Fp,qp),[lI,cI]=TS(Yt,zp,Lo,ra,Bp,Lp);function Bc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Fc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function zn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function fI(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,l=Un(i),f=Wn(i),c=Un(a),d=Wn(a),p=Un(o),y=Wn(o),v=Un(u),h=Wn(u),b=Un(s),w=Wn(s),g={a:B,A:D,b:F,B:I,c:null,d:cb,e:cb,f:kI,g:WI,G:GI,H:jI,I:II,j:$I,L:CS,m:RI,M:DI,p:N,q:z,Q:pb,s:hb,S:NI,u:LI,U:qI,V:BI,w:FI,W:zI,x:null,X:null,y:UI,Y:HI,Z:KI,"%":db},S={a:H,A:X,b:J,B:ee,c:null,d:fb,e:fb,f:ZI,g:u$,G:l$,H:VI,I:YI,j:XI,L:jS,m:JI,M:QI,p:ne,q:K,Q:pb,s:hb,S:e$,u:t$,U:r$,V:n$,w:i$,W:a$,x:null,X:null,y:o$,Y:s$,Z:c$,"%":db},m={a:M,A:P,b:T,B:j,c:k,d:sb,e:sb,f:EI,g:ub,G:ob,H:lb,I:lb,j:OI,L:PI,m:SI,M:_I,p:E,q:wI,Q:CI,s:MI,S:AI,u:yI,U:mI,V:gI,w:vI,W:bI,x:$,X:R,y:ub,Y:ob,Z:xI,"%":TI};g.x=x(r,g),g.X=x(n,g),g.c=x(t,g),S.x=x(r,S),S.X=x(n,S),S.c=x(t,S);function x(q,W){return function(Z){var C=[],ae=-1,U=0,ue=q.length,he,Ce,Ge;for(Z instanceof Date||(Z=new Date(+Z));++ae<ue;)q.charCodeAt(ae)===37&&(C.push(q.slice(U,ae)),(Ce=ab[he=q.charAt(++ae)])!=null?he=q.charAt(++ae):Ce=he==="e"?" ":"0",(Ge=W[he])&&(he=Ge(Z,Ce)),C.push(he),U=ae+1);return C.push(q.slice(U,ae)),C.join("")}}function _(q,W){return function(Z){var C=zn(1900,void 0,1),ae=A(C,q,Z+="",0),U,ue;if(ae!=Z.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(W&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(U=Fc(zn(C.y,0,1)),ue=U.getUTCDay(),U=ue>4||ue===0?Ha.ceil(U):Ha(U),U=No.offset(U,(C.V-1)*7),C.y=U.getUTCFullYear(),C.m=U.getUTCMonth(),C.d=U.getUTCDate()+(C.w+6)%7):(U=Bc(zn(C.y,0,1)),ue=U.getDay(),U=ue>4||ue===0?Wa.ceil(U):Wa(U),U=ra.offset(U,(C.V-1)*7),C.y=U.getFullYear(),C.m=U.getMonth(),C.d=U.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),ue="Z"in C?Fc(zn(C.y,0,1)).getUTCDay():Bc(zn(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ue+5)%7:C.w+C.U*7-(ue+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Fc(C)):Bc(C)}}function A(q,W,Z,C){for(var ae=0,U=W.length,ue=Z.length,he,Ce;ae<U;){if(C>=ue)return-1;if(he=W.charCodeAt(ae++),he===37){if(he=W.charAt(ae++),Ce=m[he in ab?W.charAt(ae++):he],!Ce||(C=Ce(q,Z,C))<0)return-1}else if(he!=Z.charCodeAt(C++))return-1}return C}function E(q,W,Z){var C=l.exec(W.slice(Z));return C?(q.p=f.get(C[0].toLowerCase()),Z+C[0].length):-1}function M(q,W,Z){var C=p.exec(W.slice(Z));return C?(q.w=y.get(C[0].toLowerCase()),Z+C[0].length):-1}function P(q,W,Z){var C=c.exec(W.slice(Z));return C?(q.w=d.get(C[0].toLowerCase()),Z+C[0].length):-1}function T(q,W,Z){var C=b.exec(W.slice(Z));return C?(q.m=w.get(C[0].toLowerCase()),Z+C[0].length):-1}function j(q,W,Z){var C=v.exec(W.slice(Z));return C?(q.m=h.get(C[0].toLowerCase()),Z+C[0].length):-1}function k(q,W,Z){return A(q,t,W,Z)}function $(q,W,Z){return A(q,r,W,Z)}function R(q,W,Z){return A(q,n,W,Z)}function B(q){return o[q.getDay()]}function D(q){return a[q.getDay()]}function F(q){return s[q.getMonth()]}function I(q){return u[q.getMonth()]}function N(q){return i[+(q.getHours()>=12)]}function z(q){return 1+~~(q.getMonth()/3)}function H(q){return o[q.getUTCDay()]}function X(q){return a[q.getUTCDay()]}function J(q){return s[q.getUTCMonth()]}function ee(q){return u[q.getUTCMonth()]}function ne(q){return i[+(q.getUTCHours()>=12)]}function K(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var W=x(q+="",g);return W.toString=function(){return q},W},parse:function(q){var W=_(q+="",!1);return W.toString=function(){return q},W},utcFormat:function(q){var W=x(q+="",S);return W.toString=function(){return q},W},utcParse:function(q){var W=_(q+="",!0);return W.toString=function(){return q},W}}}var ab={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,dI=/^%/,pI=/[\\^$*+?|[\]().{}]/g;function ve(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function hI(e){return e.replace(pI,"\\$&")}function Un(e){return new RegExp("^(?:"+e.map(hI).join("|")+")","i")}function Wn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function vI(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function yI(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function mI(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function gI(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function bI(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ob(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ub(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function xI(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function wI(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function SI(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function sb(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function OI(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function lb(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function _I(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function AI(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function PI(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function EI(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function TI(e,t,r){var n=dI.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function CI(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function MI(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function cb(e,t){return ve(e.getDate(),t,2)}function jI(e,t){return ve(e.getHours(),t,2)}function II(e,t){return ve(e.getHours()%12||12,t,2)}function $I(e,t){return ve(1+ra.count(Yt(e),e),t,3)}function CS(e,t){return ve(e.getMilliseconds(),t,3)}function kI(e,t){return CS(e,t)+"000"}function RI(e,t){return ve(e.getMonth()+1,t,2)}function DI(e,t){return ve(e.getMinutes(),t,2)}function NI(e,t){return ve(e.getSeconds(),t,2)}function LI(e){var t=e.getDay();return t===0?7:t}function qI(e,t){return ve(Lo.count(Yt(e)-1,e),t,2)}function MS(e){var t=e.getDay();return t>=4||t===0?on(e):on.ceil(e)}function BI(e,t){return e=MS(e),ve(on.count(Yt(e),e)+(Yt(e).getDay()===4),t,2)}function FI(e){return e.getDay()}function zI(e,t){return ve(Wa.count(Yt(e)-1,e),t,2)}function UI(e,t){return ve(e.getFullYear()%100,t,2)}function WI(e,t){return e=MS(e),ve(e.getFullYear()%100,t,2)}function HI(e,t){return ve(e.getFullYear()%1e4,t,4)}function GI(e,t){var r=e.getDay();return e=r>=4||r===0?on(e):on.ceil(e),ve(e.getFullYear()%1e4,t,4)}function KI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function fb(e,t){return ve(e.getUTCDate(),t,2)}function VI(e,t){return ve(e.getUTCHours(),t,2)}function YI(e,t){return ve(e.getUTCHours()%12||12,t,2)}function XI(e,t){return ve(1+No.count(Xt(e),e),t,3)}function jS(e,t){return ve(e.getUTCMilliseconds(),t,3)}function ZI(e,t){return jS(e,t)+"000"}function JI(e,t){return ve(e.getUTCMonth()+1,t,2)}function QI(e,t){return ve(e.getUTCMinutes(),t,2)}function e$(e,t){return ve(e.getUTCSeconds(),t,2)}function t$(e){var t=e.getUTCDay();return t===0?7:t}function r$(e,t){return ve(qo.count(Xt(e)-1,e),t,2)}function IS(e){var t=e.getUTCDay();return t>=4||t===0?un(e):un.ceil(e)}function n$(e,t){return e=IS(e),ve(un.count(Xt(e),e)+(Xt(e).getUTCDay()===4),t,2)}function i$(e){return e.getUTCDay()}function a$(e,t){return ve(Ha.count(Xt(e)-1,e),t,2)}function o$(e,t){return ve(e.getUTCFullYear()%100,t,2)}function u$(e,t){return e=IS(e),ve(e.getUTCFullYear()%100,t,2)}function s$(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function l$(e,t){var r=e.getUTCDay();return e=r>=4||r===0?un(e):un.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function c$(){return"+0000"}function db(){return"%"}function pb(e){return+e}function hb(e){return Math.floor(+e/1e3)}var Br,$S,kS;f$({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function f$(e){return Br=fI(e),$S=Br.format,Br.parse,kS=Br.utcFormat,Br.utcParse,Br}function d$(e){return new Date(e)}function p$(e){return e instanceof Date?+e:+new Date(+e)}function Wp(e,t,r,n,i,a,o,u,s,l){var f=Mp(),c=f.invert,d=f.domain,p=l(".%L"),y=l(":%S"),v=l("%I:%M"),h=l("%I %p"),b=l("%a %d"),w=l("%b %d"),g=l("%B"),S=l("%Y");function m(x){return(s(x)<x?p:u(x)<x?y:o(x)<x?v:a(x)<x?h:n(x)<x?i(x)<x?b:w:r(x)<x?g:S)(x)}return f.invert=function(x){return new Date(c(x))},f.domain=function(x){return arguments.length?d(Array.from(x,p$)):d().map(d$)},f.ticks=function(x){var _=d();return e(_[0],_[_.length-1],x??10)},f.tickFormat=function(x,_){return _==null?m:l(_)},f.nice=function(x){var _=d();return(!x||typeof x.range!="function")&&(x=t(_[0],_[_.length-1],x??10)),x?d(xS(_,x)):f},f.copy=function(){return ta(f,Wp(e,t,r,n,i,a,o,u,s,l))},f}function h$(){return xt.apply(Wp(lI,cI,Yt,zp,Lo,ra,Bp,Lp,xr,$S).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function v$(){return xt.apply(Wp(uI,sI,Xt,Up,qo,No,Fp,qp,xr,kS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bo(){var e=0,t=1,r,n,i,a,o=Je,u=!1,s;function l(c){return c==null||isNaN(c=+c)?s:o(i===0?.5:(c=(a(c)-r)*i,u?Math.max(0,Math.min(1,c)):c))}l.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(c){return arguments.length?(u=!!c,l):u},l.interpolator=function(c){return arguments.length?(o=c,l):o};function f(c){return function(d){var p,y;return arguments.length?([p,y]=d,o=c(p,y),l):[o(0),o(1)]}}return l.range=f(In),l.rangeRound=f(Cp),l.unknown=function(c){return arguments.length?(s=c,l):s},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),l}}function fr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function RS(){var e=cr(Bo()(Je));return e.copy=function(){return fr(e,RS())},Qt.apply(e,arguments)}function DS(){var e=$p(Bo()).domain([1,10]);return e.copy=function(){return fr(e,DS()).base(e.base())},Qt.apply(e,arguments)}function NS(){var e=kp(Bo());return e.copy=function(){return fr(e,NS()).constant(e.constant())},Qt.apply(e,arguments)}function Hp(){var e=Rp(Bo());return e.copy=function(){return fr(e,Hp()).exponent(e.exponent())},Qt.apply(e,arguments)}function y$(){return Hp.apply(null,arguments).exponent(.5)}function LS(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((Qi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(or),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>rj(e,a/n))},r.copy=function(){return LS(t).domain(e)},Qt.apply(r,arguments)}function Fo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,l=Je,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),l(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(l=v,p):l};function y(v){return function(h){var b,w,g;return arguments.length?([b,w,g]=h,l=Tj(v,[b,w,g]),p):[l(0),l(.5),l(1)]}}return p.range=y(In),p.rangeRound=y(Cp),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function qS(){var e=cr(Fo()(Je));return e.copy=function(){return fr(e,qS())},Qt.apply(e,arguments)}function BS(){var e=$p(Fo()).domain([.1,1,10]);return e.copy=function(){return fr(e,BS()).base(e.base())},Qt.apply(e,arguments)}function FS(){var e=kp(Fo());return e.copy=function(){return fr(e,FS()).constant(e.constant())},Qt.apply(e,arguments)}function Gp(){var e=Rp(Fo());return e.copy=function(){return fr(e,Gp()).exponent(e.exponent())},Qt.apply(e,arguments)}function m$(){return Gp.apply(null,arguments).exponent(.5)}const vb=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:xi,scaleDiverging:qS,scaleDivergingLog:BS,scaleDivergingPow:Gp,scaleDivergingSqrt:m$,scaleDivergingSymlog:FS,scaleIdentity:bS,scaleImplicit:ed,scaleLinear:za,scaleLog:wS,scaleOrdinal:Pp,scalePoint:ii,scalePow:Dp,scaleQuantile:_S,scaleQuantize:AS,scaleRadial:OS,scaleSequential:RS,scaleSequentialLog:DS,scaleSequentialPow:Hp,scaleSequentialQuantile:LS,scaleSequentialSqrt:y$,scaleSequentialSymlog:NS,scaleSqrt:Zj,scaleSymlog:SS,scaleThreshold:PS,scaleTime:h$,scaleUtc:v$,tickFormat:gS},Symbol.toStringTag,{value:"Module"}));var zc,yb;function zS(){if(yb)return zc;yb=1;var e=Tn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(l===void 0?s===s&&!e(s):i(s,l)))var l=s,f=u}return f}return zc=t,zc}var Uc,mb;function g$(){if(mb)return Uc;mb=1;function e(t,r){return t>r}return Uc=e,Uc}var Wc,gb;function b$(){if(gb)return Wc;gb=1;var e=zS(),t=g$(),r=Cn();function n(i){return i&&i.length?e(i,r,t):void 0}return Wc=n,Wc}var x$=b$();const nr=Se(x$);var Hc,bb;function w$(){if(bb)return Hc;bb=1;function e(t,r){return t<r}return Hc=e,Hc}var Gc,xb;function S$(){if(xb)return Gc;xb=1;var e=zS(),t=w$(),r=Cn();function n(i){return i&&i.length?e(i,r,t):void 0}return Gc=n,Gc}var O$=S$();const zo=Se(O$);var Kc,wb;function _$(){if(wb)return Kc;wb=1;var e=vp();function t(r,n){return e(r,n)}return Kc=t,Kc}var A$=_$();const Cr=Se(A$);var $n=1e9,P$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vp,Te=!0,bt="[DecimalError] ",Ar=bt+"Invalid argument: ",Kp=bt+"Exponent out of range: ",kn=Math.floor,mr=Math.pow,E$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lt,ze=1e7,Ee=7,US=9007199254740991,Ga=kn(US/Ee),Q={};Q.absoluteValue=Q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Q.comparedTo=Q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Q.decimalPlaces=Q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Q.dividedBy=Q.div=function(e){return Kt(this,new this.constructor(e))};Q.dividedToIntegerBy=Q.idiv=function(e){var t=this,r=t.constructor;return _e(Kt(t,new r(e),0,1),r.precision)};Q.equals=Q.eq=function(e){return!this.cmp(e)};Q.exponent=function(){return Re(this)};Q.greaterThan=Q.gt=function(e){return this.cmp(e)>0};Q.greaterThanOrEqualTo=Q.gte=function(e){return this.cmp(e)>=0};Q.isInteger=Q.isint=function(){return this.e>this.d.length-2};Q.isNegative=Q.isneg=function(){return this.s<0};Q.isPositive=Q.ispos=function(){return this.s>0};Q.isZero=function(){return this.s===0};Q.lessThan=Q.lt=function(e){return this.cmp(e)<0};Q.lessThanOrEqualTo=Q.lte=function(e){return this.cmp(e)<1};Q.logarithm=Q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(lt))throw Error(bt+"NaN");if(r.s<1)throw Error(bt+(r.s?"NaN":"-Infinity"));return r.eq(lt)?new n(0):(Te=!1,t=Kt(Ai(r,a),Ai(e,a),a),Te=!0,_e(t,i))};Q.minus=Q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?GS(t,e):WS(t,(e.s=-e.s,e))};Q.modulo=Q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(bt+"NaN");return r.s?(Te=!1,t=Kt(r,e,0,1).times(e),Te=!0,r.minus(t)):_e(new n(r),i)};Q.naturalExponential=Q.exp=function(){return HS(this)};Q.naturalLogarithm=Q.ln=function(){return Ai(this)};Q.negated=Q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Q.plus=Q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WS(t,e):GS(t,(e.s=-e.s,e))};Q.precision=Q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ar+e);if(t=Re(i)+1,n=i.d.length-1,r=n*Ee+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Q.squareRoot=Q.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(bt+"NaN")}for(e=Re(u),Te=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=kt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=kn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Kt(u,a,o+2)).times(.5),kt(a.d).slice(0,o)===(t=kt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(_e(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Te=!0,_e(n,r)};Q.times=Q.mul=function(e){var t,r,n,i,a,o,u,s,l,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,l=p.length,s<l&&(a=d,d=p,p=a,o=s,s=l,l=o),a=[],o=s+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%ze|0,t=u/ze|0;a[i]=(a[i]+t)%ze|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Te?_e(e,c.precision):e};Q.toDecimalPlaces=Q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(qt(e,0,$n),t===void 0?t=n.rounding:qt(t,0,8),_e(r,e+Re(r)+1,t))};Q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Mr(n,!0):(qt(e,0,$n),t===void 0?t=i.rounding:qt(t,0,8),n=_e(new i(n),e+1,t),r=Mr(n,!0,e+1)),r};Q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Mr(i):(qt(e,0,$n),t===void 0?t=a.rounding:qt(t,0,8),n=_e(new a(i),e+Re(i)+1,t),r=Mr(n.abs(),!1,e+Re(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Q.toInteger=Q.toint=function(){var e=this,t=e.constructor;return _e(new t(e),Re(e)+1,t.rounding)};Q.toNumber=function(){return+this};Q.toPower=Q.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,l=12,f=+(e=new s(e));if(!e.s)return new s(lt);if(u=new s(u),!u.s){if(e.s<1)throw Error(bt+"Infinity");return u}if(u.eq(lt))return u;if(n=s.precision,e.eq(lt))return _e(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=US){for(i=new s(lt),t=Math.ceil(n/Ee+4),Te=!1;r%2&&(i=i.times(u),Ob(i.d,t)),r=kn(r/2),r!==0;)u=u.times(u),Ob(u.d,t);return Te=!0,e.s<0?new s(lt).div(i):_e(i,n)}}else if(a<0)throw Error(bt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Te=!1,i=e.times(Ai(u,n+l)),Te=!0,i=HS(i),i.s=a,i};Q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Re(i),n=Mr(i,r<=a.toExpNeg||r>=a.toExpPos)):(qt(e,1,$n),t===void 0?t=a.rounding:qt(t,0,8),i=_e(new a(i),e,t),r=Re(i),n=Mr(i,e<=r||r<=a.toExpNeg,e)),n};Q.toSignificantDigits=Q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(qt(e,1,$n),t===void 0?t=n.rounding:qt(t,0,8)),_e(new n(r),e,t)};Q.toString=Q.valueOf=Q.val=Q.toJSON=Q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),r=e.constructor;return Mr(e,t<=r.toExpNeg||t>=r.toExpPos)};function WS(e,t){var r,n,i,a,o,u,s,l,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Te?_e(t,c):t;if(s=e.d,l=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=l.length):(n=l,i=o,u=s.length),o=Math.ceil(c/Ee),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=l.length,u-a<0&&(a=u,n=l,l=s,s=n),r=0;a;)r=(s[--a]=s[a]+l[a]+r)/ze|0,s[a]%=ze;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,Te?_e(t,c):t}function qt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ar+e)}function kt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ee-n.length,r&&(a+=tr(r)),a+=n;o=e[t],n=o+"",r=Ee-n.length,r&&(a+=tr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Kt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%ze|0,o=a/ze|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ze+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,l,f,c,d,p,y,v,h,b,w,g,S,m,x,_,A,E=n.constructor,M=n.s==i.s?1:-1,P=n.d,T=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(bt+"Division by zero");for(s=n.e-i.e,_=T.length,m=P.length,p=new E(M),y=p.d=[],l=0;T[l]==(P[l]||0);)++l;if(T[l]>(P[l]||0)&&--s,a==null?w=a=E.precision:o?w=a+(Re(n)-Re(i))+1:w=a,w<0)return new E(0);if(w=w/Ee+2|0,l=0,_==1)for(f=0,T=T[0],w++;(l<m||f)&&w--;l++)g=f*ze+(P[l]||0),y[l]=g/T|0,f=g%T|0;else{for(f=ze/(T[0]+1)|0,f>1&&(T=e(T,f),P=e(P,f),_=T.length,m=P.length),S=_,v=P.slice(0,_),h=v.length;h<_;)v[h++]=0;A=T.slice(),A.unshift(0),x=T[0],T[1]>=ze/2&&++x;do f=0,u=t(T,v,_,h),u<0?(b=v[0],_!=h&&(b=b*ze+(v[1]||0)),f=b/x|0,f>1?(f>=ze&&(f=ze-1),c=e(T,f),d=c.length,h=v.length,u=t(c,v,d,h),u==1&&(f--,r(c,_<d?A:T,d))):(f==0&&(u=f=1),c=T.slice()),d=c.length,d<h&&c.unshift(0),r(v,c,h),u==-1&&(h=v.length,u=t(T,v,_,h),u<1&&(f++,r(v,_<h?A:T,h))),h=v.length):u===0&&(f++,v=[0]),y[l++]=f,u&&v[0]?v[h++]=P[S]||0:(v=[P[S]],h=1);while((S++<m||v[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=s,_e(p,o?a+Re(p)+1:a)}})();function HS(e,t){var r,n,i,a,o,u,s=0,l=0,f=e.constructor,c=f.precision;if(Re(e)>16)throw Error(Kp+Re(e));if(!e.s)return new f(lt);for(Te=!1,u=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(mr(2,l))/Math.LN10*2+5|0,u+=n,r=i=a=new f(lt),f.precision=u;;){if(i=_e(i.times(e),u),r=r.times(++s),o=a.plus(Kt(i,r,u)),kt(o.d).slice(0,u)===kt(a.d).slice(0,u)){for(;l--;)a=_e(a.times(a),u);return f.precision=c,t==null?(Te=!0,_e(a,c)):a}a=o}}function Re(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function Vc(e,t,r){if(t>e.LN10.sd())throw Te=!0,r&&(e.precision=r),Error(bt+"LN10 precision limit exceeded");return _e(new e(e.LN10),t)}function tr(e){for(var t="";e--;)t+="0";return t}function Ai(e,t){var r,n,i,a,o,u,s,l,f,c=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(bt+(p.s?"NaN":"-Infinity"));if(p.eq(lt))return new v(0);if(t==null?(Te=!1,l=h):l=t,p.eq(10))return t==null&&(Te=!0),Vc(v,l);if(l+=d,v.precision=l,r=kt(y),n=r.charAt(0),a=Re(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=kt(p.d),n=r.charAt(0),c++;a=Re(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=Vc(v,l+2,h).times(a+""),p=Ai(new v(n+"."+r.slice(1)),l-d).plus(s),v.precision=h,t==null?(Te=!0,_e(p,h)):p;for(u=o=p=Kt(p.minus(lt),p.plus(lt),l),f=_e(p.times(p),l),i=3;;){if(o=_e(o.times(f),l),s=u.plus(Kt(o,new v(i),l)),kt(s.d).slice(0,l)===kt(u.d).slice(0,l))return u=u.times(2),a!==0&&(u=u.plus(Vc(v,l+2,h).times(a+""))),u=Kt(u,new v(c),l),v.precision=h,t==null?(Te=!0,_e(u,h)):u;u=s,i+=2}}function Sb(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=kn(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ee;n<i;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Te&&(e.e>Ga||e.e<-Ga))throw Error(Kp+r)}else e.s=0,e.e=0,e.d=[0];return e}function _e(e,t,r){var n,i,a,o,u,s,l,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ee,i=t,l=c[f=0];else{if(f=Math.ceil((n+1)/Ee),a=c.length,f>=a)return e;for(l=a=c[f],o=1;a>=10;a/=10)o++;n%=Ee,i=n-Ee+o}if(r!==void 0&&(a=mr(10,o-i-1),u=l/a%10|0,s=t<0||c[f+1]!==void 0||l%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?l/mr(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return s?(a=Re(e),c.length=1,t=t-a-1,c[0]=mr(10,(Ee-t%Ee)%Ee),e.e=kn(-t/Ee)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=mr(10,Ee-n),c[f]=i>0?(l/mr(10,o-i)%mr(10,i)|0)*a:0),s)for(;;)if(f==0){(c[0]+=a)==ze&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ze)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Te&&(e.e>Ga||e.e<-Ga))throw Error(Kp+Re(e));return e}function GS(e,t){var r,n,i,a,o,u,s,l,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Te?_e(t,p):t;if(s=e.d,c=t.d,n=t.e,l=e.e,s=s.slice(),o=l-n,o){for(f=o<0,f?(r=s,o=-o,u=c.length):(r=c,n=l,u=s.length),i=Math.max(Math.ceil(p/Ee),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=c.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=c[i]){f=s[i]<c[i];break}o=0}for(f&&(r=s,s=c,c=r,t.s=-t.s),u=s.length,i=c.length-u;i>0;--i)s[u++]=0;for(i=c.length;i>o;){if(s[--i]<c[i]){for(a=i;a&&s[--a]===0;)s[a]=ze-1;--s[a],s[i]+=ze}s[i]-=c[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,Te?_e(t,p):t):new d(0)}function Mr(e,t,r){var n,i=Re(e),a=kt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+tr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+tr(-i-1)+a,r&&(n=r-o)>0&&(a+=tr(n))):i>=o?(a+=tr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+tr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=tr(n))),e.s<0?"-"+a:a}function Ob(e,t){if(e.length>t)return e.length=t,!0}function KS(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ar+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sb(o,a.toString())}else if(typeof a!="string")throw Error(Ar+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,E$.test(a))Sb(o,a);else throw Error(Ar+a)}if(i.prototype=Q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=KS,i.config=i.set=T$,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function T$(e){if(!e||typeof e!="object")throw Error(bt+"Object expected");var t,r,n,i=["precision",1,$n,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(kn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ar+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ar+r+": "+n);return this}var Vp=KS(P$);lt=new Vp(1);const Oe=Vp;function C$(e){return $$(e)||I$(e)||j$(e)||M$()}function M$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$(e,t){if(e){if(typeof e=="string")return id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return id(e,t)}}function I$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $$(e){if(Array.isArray(e))return id(e)}function id(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k$=function(t){return t},VS={},YS=function(t){return t===VS},_b=function(t){return function r(){return arguments.length===0||arguments.length===1&&YS(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},R$=function e(t,r){return t===1?r:_b(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==VS}).length;return o>=t?r.apply(void 0,i):e(t-o,_b(function(){for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];var f=i.map(function(c){return YS(c)?s.shift():c});return r.apply(void 0,C$(f).concat(s))}))})},Uo=function(t){return R$(t.length,t)},ad=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},D$=Uo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),N$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return k$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},od=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},XS=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function L$(e){var t;return e===0?t=1:t=Math.floor(new Oe(e).abs().log(10).toNumber())+1,t}function q$(e,t,r){for(var n=new Oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var B$=Uo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),F$=Uo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),z$=Uo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Wo={rangeStep:q$,getDigitCount:L$,interpolateNumber:B$,uninterpolateNumber:F$,uninterpolateTruncation:z$};function ud(e){return H$(e)||W$(e)||ZS(e)||U$()}function U$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function H$(e){if(Array.isArray(e))return sd(e)}function Pi(e,t){return V$(e)||K$(e,t)||ZS(e,t)||G$()}function G$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZS(e,t){if(e){if(typeof e=="string")return sd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sd(e,t)}}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function V$(e){if(Array.isArray(e))return e}function JS(e){var t=Pi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function QS(e,t,r){if(e.lte(0))return new Oe(0);var n=Wo.getDigitCount(e.toNumber()),i=new Oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new Oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new Oe(Math.ceil(s))}function Y$(e,t,r){var n=1,i=new Oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Oe(10).pow(Wo.getDigitCount(e)-1),i=new Oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Oe(Math.floor(e)))}else e===0?i=new Oe(Math.floor((t-1)/2)):r||(i=new Oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=N$(D$(function(s){return i.add(new Oe(s-o).mul(n)).toNumber()}),ad);return u(0,t)}function eO(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Oe(0),tickMin:new Oe(0),tickMax:new Oe(0)};var a=QS(new Oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Oe(0):(o=new Oe(e).add(t).div(2),o=o.sub(new Oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new Oe(t).sub(o).div(a).toNumber()),l=u+s+1;return l>r?eO(e,t,r,n,i+1):(l<r&&(s=t>0?s+(r-l):s,u=t>0?u:u+(r-l)),{step:a,tickMin:o.sub(new Oe(u).mul(a)),tickMax:o.add(new Oe(s).mul(a))})}function X$(e){var t=Pi(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=JS([r,n]),s=Pi(u,2),l=s[0],f=s[1];if(l===-1/0||f===1/0){var c=f===1/0?[l].concat(ud(ad(0,i-1).map(function(){return 1/0}))):[].concat(ud(ad(0,i-1).map(function(){return-1/0})),[f]);return r>n?od(c):c}if(l===f)return Y$(l,i,a);var d=eO(l,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=Wo.rangeStep(y,v.add(new Oe(.1).mul(p)),p);return r>n?od(h):h}function Z$(e,t){var r=Pi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=JS([n,i]),u=Pi(o,2),s=u[0],l=u[1];if(s===-1/0||l===1/0)return[n,i];if(s===l)return[s];var f=Math.max(t,2),c=QS(new Oe(l).sub(s).div(f-1),a,0),d=[].concat(ud(Wo.rangeStep(new Oe(s),new Oe(l).sub(new Oe(.99).mul(c)),c)),[l]);return n>i?od(d):d}var J$=XS(X$),Q$=XS(Z$),ek=process.env.NODE_ENV==="production",Yc="Invariant failed";function rt(e,t){if(ek)throw new Error(Yc);var r=typeof t=="function"?t():t,n=r?"".concat(Yc,": ").concat(r):Yc;throw new Error(n)}var tk=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ka.apply(this,arguments)}function rk(e,t){return ok(e)||ak(e,t)||ik(e,t)||nk()}function nk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(e,t)}}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ak(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function ok(e){if(Array.isArray(e))return e}function uk(e,t){if(e==null)return{};var r=sk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nO(n.key),n)}}function fk(e,t,r){return t&&ck(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dk(e,t,r){return t=Va(t),pk(e,tO()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function pk(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hk(e)}function hk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tO=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function vk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ld(e,t)}function rO(e,t,r){return t=nO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nO(e){var t=yk(e,"string");return sn(t)=="symbol"?t:t+""}function yk(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rn=(function(e){function t(){return lk(this,t),dk(this,t,arguments)}return vk(t,e),fk(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,l=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=uk(n,tk),p=se(d,!1);this.props.direction==="x"&&f.type!=="number"&&(process.env.NODE_ENV!=="production"?rt(!1,'ErrorBar requires Axis type property to be "number".'):rt());var y=s.map(function(v){var h=l(v,u),b=h.x,w=h.y,g=h.value,S=h.errorVal;if(!S)return null;var m=[],x,_;if(Array.isArray(S)){var A=rk(S,2);x=A[0],_=A[1]}else x=_=S;if(a==="vertical"){var E=f.scale,M=w+i,P=M+o,T=M-o,j=E(g-x),k=E(g+_);m.push({x1:k,y1:P,x2:k,y2:T}),m.push({x1:j,y1:M,x2:k,y2:M}),m.push({x1:j,y1:P,x2:j,y2:T})}else if(a==="horizontal"){var $=c.scale,R=b+i,B=R-o,D=R+o,F=$(g-x),I=$(g+_);m.push({x1:B,y1:I,x2:D,y2:I}),m.push({x1:R,y1:F,x2:R,y2:I}),m.push({x1:B,y1:F,x2:D,y2:F})}return O.createElement(ye,Ka({className:"recharts-errorBar",key:"bar-".concat(m.map(function(N){return"".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))},p),m.map(function(N){return O.createElement("line",Ka({},N,{key:"line-".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))}))});return O.createElement(ye,{className:"recharts-errorBars"},y)}}])})(O.Component);rO(Rn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});rO(Rn,"displayName","ErrorBar");function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){mk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mk(e,t,r){return t=gk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gk(e){var t=bk(e,"string");return Ei(t)=="symbol"?t:t+""}function bk(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iO=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=st(r,Or);if(!o)return null;var u=Or.defaultProps,s=u!==void 0?vr(vr({},u),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):l=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?vr(vr({},d),c.props):{},y=p.dataKey,v=p.name,h=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:s.iconType||h||"square",color:Yp(c),value:v||y,payload:p}}),vr(vr(vr({},s),Or.getWithHeight(o,i)),{},{payload:l,item:o})};function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function Eb(e){return Ok(e)||Sk(e)||wk(e)||xk()}function xk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wk(e,t){if(e){if(typeof e=="string")return cd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cd(e,t)}}function Sk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ok(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tb(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jr(e,t,r){return t=_k(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _k(e){var t=Ak(e,"string");return Ti(t)=="symbol"?t:t+""}function Ak(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qe(e,t,r){return oe(e)||oe(t)?r:Le(t)?gt(e,t,r):le(t)?t(e):r}function ai(e,t,r,n){var i=vw(e,function(u){return qe(u,t)});if(r==="number"){var a=i.filter(function(u){return V(u)||parseFloat(u)});return a.length?[zo(a),nr(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!oe(u)}):i;return o.map(function(u){return Le(u)||u instanceof Date?u:""})}var Pk=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,l=0;l<u;l++){var f=l>0?i[l-1].coordinate:i[u-1].coordinate,c=i[l].coordinate,d=l>=u-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(Tt(c-f)!==Tt(d-c)){var y=[];if(Tt(d-c)===Tt(s[1]-s[0])){p=d;var v=c+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];y[0]=Math.min(c,(h+c)/2),y[1]=Math.max(c,(h+c)/2)}var b=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var w=Math.min(f,d),g=Math.max(f,d);if(t>(w+c)/2&&t<=(g+c)/2){o=i[l].index;break}}}else for(var S=0;S<u;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<u-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===u-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},Yp=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},Ek=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,l=u.length;s<l;s++)for(var f=a[u[s]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var y=f[c[d]],v=y.items,h=y.cateAxisId,b=v.filter(function(_){return Ht(_.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,g=w!==void 0?Me(Me({},w),b[0].props):b[0].props,S=g.barSize,m=g[h];o[m]||(o[m]=[]);var x=oe(S)?r:S;o[m].push({item:b[0],stackList:b.slice(1),barSize:oe(x)?void 0:Tr(x,n,0)})}}return o},Tk=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var l=Tr(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(S,m){return S+m.barSize||0},0);y+=(s-1)*l,y>=i&&(y-=(s-1)*l,l=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-l,size:0};f=o.reduce(function(S,m){var x={item:m.item,position:{offset:h.offset+h.size+l,size:d?p:m.barSize}},_=[].concat(Eb(S),[x]);return h=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:h})}),_},c)}else{var b=Tr(n,i,0,!0);i-2*b-(s-1)*l<=0&&(l=0);var w=(i-2*b-(s-1)*l)/s;w>1&&(w>>=0);var g=u===+u?Math.min(w,u):w;f=o.reduce(function(S,m,x){var _=[].concat(Eb(S),[{item:m.item,position:{offset:b+(w+l)*x+(w-g)/2,size:g}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},c)}return f},Ck=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),l=iO({children:a,legendWidth:s});if(l){var f=i||{},c=f.width,d=f.height,p=l.align,y=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&V(t[p]))return Me(Me({},t),{},Jr({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&V(t[y]))return Me(Me({},t),{},Jr({},y,t[y]+(d||0)))}return t},Mk=function(t,r,n){return oe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},aO=function(t,r,n,i,a){var o=r.props.children,u=nt(o,Rn).filter(function(l){return Mk(i,a,l.props.direction)});if(u&&u.length){var s=u.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var c=qe(f,n);if(oe(c))return l;var d=Array.isArray(c)?[zo(c),nr(c)]:[c,c],p=s.reduce(function(y,v){var h=qe(f,v,0),b=d[0]-Math.abs(Array.isArray(h)?h[0]:h),w=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(b,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},jk=function(t,r,n,i,a){var o=r.map(function(u){return aO(t,u,n,a,i)}).filter(function(u){return!oe(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},oO=function(t,r,n,i,a){var o=r.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&aO(t,s,l,i)||ai(t,l,n,a)});if(n==="number")return o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,l){for(var f=0,c=l.length;f<c;f++)u[l[f]]||(u[l[f]]=!0,s.push(l[f]));return s},[])},uO=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},sO=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Wt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(l=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Tt(u[0]-u[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+l,value:c,offset:l}});return f.filter(function(c){return!jn(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+l,value:c,index:d,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+l,value:c,offset:l}}):i.domain().map(function(c,d){return{coordinate:i(c)+l,value:a?a[c]:c,index:d,offset:l}})},Xc=new WeakMap,ha=function(t,r){if(typeof r!="function")return t;Xc.has(t)||Xc.set(t,new WeakMap);var n=Xc.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Ik=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:xi(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:za(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ii(),realScaleType:"point"}:a==="category"?{scale:xi(),realScaleType:"band"}:{scale:za(),realScaleType:"linear"};if(Er(i)){var s="scale".concat(Mo(i));return{scale:(vb[s]||ii)(),realScaleType:vb[s]?s:"point"}}return le(i)?{scale:i}:{scale:ii(),realScaleType:"point"}},Cb=1e-4,$k=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Cb,o=Math.max(i[0],i[1])+Cb,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},kk=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Rk=function(t,r){if(!r||r.length!==2||!V(r[0])||!V(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!V(t[0])||t[0]<n)&&(a[0]=n),(!V(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Dk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=jn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},Nk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=jn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Lk={sign:Dk,expand:CT,none:Qr,silhouette:MT,wiggle:jT,positive:Nk},qk=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Lk[n],o=TT().keys(i).value(function(u,s){return+qe(u,s,0)}).order(Bf).offset(a);return o(t)},Bk=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},l=u.reduce(function(c,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Me(Me({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return c;var b=y[n],w=c[b]||{hasStack:!1,stackGroups:{}};if(Le(v)){var g=w.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),w.hasStack=!0,w.stackGroups[v]=g}else w.stackGroups[kr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Me(Me({},c),{},Jr({},b,w))},s),f={};return Object.keys(l).reduce(function(c,d){var p=l[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var b=p.stackGroups[h];return Me(Me({},v),{},Jr({},h,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:qk(t,b.items,a)}))},y)}return Me(Me({},c),{},Jr({},d,p))},f)},Fk=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=J$(l,a,u);return t.domain([zo(f),nr(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=Q$(c,a,u);return{niceTicks:d}}return null};function ln(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var u=Oa(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=qe(i,oe(o)?t.dataKey:o);return oe(s)?null:t.scale(s)}var Mb=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=qe(o,r.dataKey,r.domain[u]);return oe(s)?null:r.scale(s)-a/2+i},zk=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},Uk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Le(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},Wk=function(t){return t.reduce(function(r,n){return[zo(n.concat([r[0]]).filter(V)),nr(n.concat([r[1]]).filter(V))]},[1/0,-1/0])},lO=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(l,f){var c=Wk(f.slice(r,n+1));return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},jb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ib=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fd=function(t,r,n){if(le(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(V(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(jb.test(t[0])){var a=+jb.exec(t[0])[1];i[0]=r[0]-a}else le(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(V(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ib.test(t[1])){var o=+Ib.exec(t[1])[1];i[1]=r[1]+o}else le(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ya=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Co(r,function(c){return c.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var l=a[u],f=a[u-1];o=Math.min((l.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},$b=function(t,r,n){return!t||!t.length||Cr(t,gt(n,"type.defaultProps.domain"))?r:t},cO=function(t,r){var n=t.type.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,l=n.chartType,f=n.hide;return Me(Me({},se(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Yp(t),value:qe(r,i),type:s,payload:r,chartType:l,hide:f})};function Ci(e){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(e)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Hk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hk(e,t,r){return t=Gk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gk(e){var t=Kk(e,"string");return Ci(t)=="symbol"?t:t+""}function Kk(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xa=Math.PI/180,Vk=function(t){return t*180/Math.PI},He=function(t,r,n,i){return{x:t+Math.cos(-Xa*i)*n,y:r+Math.sin(-Xa*i)*n}},Yk=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Xk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Yk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,l=Math.acos(s);return i>o&&(l=2*Math.PI-l),{radius:u,angle:Vk(l),angleInRadian:l}},Zk=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Jk=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Db=function(t,r){var n=t.x,i=t.y,a=Xk({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,l=r.outerRadius;if(o<s||o>l)return!1;if(o===0)return!0;var f=Zk(r),c=f.startAngle,d=f.endAngle,p=u,y;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;y=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=c}return y?Rb(Rb({},r),{},{radius:o,angle:Jk(p,r)}):null};function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}var Qk=["offset"];function eR(e){return iR(e)||nR(e)||rR(e)||tR()}function tR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rR(e,t){if(e){if(typeof e=="string")return dd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dd(e,t)}}function nR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iR(e){if(Array.isArray(e))return dd(e)}function dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aR(e,t){if(e==null)return{};var r=oR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nb(Object(r),!0).forEach(function(n){uR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uR(e,t,r){return t=sR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sR(e){var t=lR(e,"string");return Mi(t)=="symbol"?t:t+""}function lR(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ji.apply(this,arguments)}var cR=function(t){var r=t.value,n=t.formatter,i=oe(t.children)?r:t.children;return le(n)?n(i):i},fR=function(t,r){var n=Tt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},dR=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,l=s.cx,f=s.cy,c=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(c+d)/2,b=fR(p,y),w=b>=0?1:-1,g,S;i==="insideStart"?(g=p+w*o,S=v):i==="insideEnd"?(g=y-w*o,S=!v):i==="end"&&(g=y+w*o,S=v),S=b<=0?S:!S;var m=He(l,f,h,g),x=He(l,f,h,g+(S?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
61
- A`).concat(h,",").concat(h,",0,1,").concat(S?0:1,`,
62
- `).concat(x.x,",").concat(x.y),A=oe(t.id)?kr("recharts-radial-line-"):t.id;return O.createElement("text",ji({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",u)}),O.createElement("defs",null,O.createElement("path",{id:A,d:_})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},pR=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,l=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=He(o,u,l+n,d),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+l)/2,b=He(o,u,h,d),w=b.x,g=b.y;return{x:w,y:g,textAnchor:"middle",verticalAnchor:"middle"}},hR=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,l=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",y=c>0?"start":"end",v=l>=0?1:-1,h=v*i,b=v>0?"end":"start",w=v>0?"start":"end";if(a==="top"){var g={x:u+l/2,y:s-c*i,textAnchor:"middle",verticalAnchor:p};return Ne(Ne({},g),n?{height:Math.max(s-n.y,0),width:l}:{})}if(a==="bottom"){var S={x:u+l/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return Ne(Ne({},S),n?{height:Math.max(n.y+n.height-(s+f),0),width:l}:{})}if(a==="left"){var m={x:u-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return Ne(Ne({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var x={x:u+l+h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"};return Ne(Ne({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:f}:{})}var _=n?{width:l,height:f}:{};return a==="insideLeft"?Ne({x:u+h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"},_):a==="insideRight"?Ne({x:u+l-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?Ne({x:u+l/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Ne({x:u+l/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?Ne({x:u+h,y:s+d,textAnchor:w,verticalAnchor:y},_):a==="insideTopRight"?Ne({x:u+l-h,y:s+d,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?Ne({x:u+h,y:s+f-d,textAnchor:w,verticalAnchor:p},_):a==="insideBottomRight"?Ne({x:u+l-h,y:s+f-d,textAnchor:b,verticalAnchor:p},_):Mn(a)&&(V(a.x)||gr(a.x))&&(V(a.y)||gr(a.y))?Ne({x:u+Tr(a.x,l),y:s+Tr(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Ne({x:u+l/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},vR=function(t){return"cx"in t&&V(t.cx)};function Ye(e){var t=e.offset,r=t===void 0?5:t,n=aR(e,Qk),i=Ne({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,l=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||oe(u)&&oe(s)&&!O.isValidElement(l)&&!le(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(le(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=cR(i);var y=vR(a),v=se(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return dR(i,p,v);var h=y?pR(i):hR(i);return O.createElement(Ra,ji({className:fe("recharts-label",c)},v,h,{breakAll:d}),p)}Ye.displayName="Label";var fO=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,l=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,b=t.clockWise,w=t.labelViewBox;if(w)return w;if(V(v)&&V(h)){if(V(c)&&V(d))return{x:c,y:d,width:v,height:h};if(V(p)&&V(y))return{x:p,y,width:v,height:h}}return V(c)&&V(d)?{x:c,y:d,width:0,height:0}:V(r)&&V(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},yR=function(t,r){return t?t===!0?O.createElement(Ye,{key:"label-implicit",viewBox:r}):Le(t)?O.createElement(Ye,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Ye?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Ye,{key:"label-implicit",content:t,viewBox:r}):le(t)?O.createElement(Ye,{key:"label-implicit",content:t,viewBox:r}):Mn(t)?O.createElement(Ye,ji({viewBox:r},t,{key:"label-implicit"})):null:null},mR=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=fO(t),o=nt(i,Ye).map(function(s,l){return O.cloneElement(s,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var u=yR(t.label,r||a);return[u].concat(eR(o))};Ye.parseViewBox=fO;Ye.renderCallByParent=mR;var Zc,Lb;function gR(){if(Lb)return Zc;Lb=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Zc=e,Zc}var bR=gR();const xR=Se(bR);function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}var wR=["valueAccessor"],SR=["data","dataKey","clockWise","id","textBreakAll"];function OR(e){return ER(e)||PR(e)||AR(e)||_R()}function _R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AR(e,t){if(e){if(typeof e=="string")return pd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pd(e,t)}}function PR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ER(e){if(Array.isArray(e))return pd(e)}function pd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){TR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TR(e,t,r){return t=CR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(e){var t=MR(e,"string");return Ii(t)=="symbol"?t:t+""}function MR(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fb(e,t){if(e==null)return{};var r=jR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var IR=function(t){return Array.isArray(t.value)?xR(t.value):t.value};function Nt(e){var t=e.valueAccessor,r=t===void 0?IR:t,n=Fb(e,wR),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,l=Fb(n,SR);return!i||!i.length?null:O.createElement(ye,{className:"recharts-label-list"},i.map(function(f,c){var d=oe(a)?r(f,c):qe(f&&f.payload,a),p=oe(u)?{}:{id:"".concat(u,"-").concat(c)};return O.createElement(Ye,Za({},se(f,!0),l,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Ye.parseViewBox(oe(o)?f:Bb(Bb({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Nt.displayName="LabelList";function $R(e,t){return e?e===!0?O.createElement(Nt,{key:"labelList-implicit",data:t}):O.isValidElement(e)||le(e)?O.createElement(Nt,{key:"labelList-implicit",data:t,content:e}):Mn(e)?O.createElement(Nt,Za({data:t},e,{key:"labelList-implicit"})):null:null}function kR(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=nt(n,Nt).map(function(o,u){return O.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=$R(e.label,t);return[a].concat(OR(i))}Nt.renderCallByParent=kR;function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hd.apply(this,arguments)}function zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(r),!0).forEach(function(n){RR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RR(e,t,r){return t=DR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e){var t=NR(e,"string");return $i(t)=="symbol"?t:t+""}function NR(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LR=function(t,r){var n=Tt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},va=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,l=t.cornerIsExternal,f=s*(u?1:-1)+i,c=Math.asin(s/f)/Xa,d=l?a:a+o*c,p=He(r,n,f,d),y=He(r,n,i,d),v=l?a-o*c:a,h=He(r,n,f*Math.cos(c*Xa),v);return{center:p,circleTangency:y,lineTangency:h,theta:c}},dO=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=LR(o,u),l=o+s,f=He(r,n,a,o),c=He(r,n,a,l),d="M ".concat(f.x,",").concat(f.y,`
90
+ height and width.`,R,$,o,l,c,f,r);var L=!Array.isArray(p)&&zn(p.type).endsWith("Chart");return O.Children.map(p,function(F){return O.isValidElement(F)?O.cloneElement(F,Kl({width:R,height:$},L?{style:Kl({height:"100%",width:"100%",maxHeight:$,maxWidth:R},F.props.style)}:{})):F})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:wt("recharts-responsive-container",v),style:Kl(Kl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),x0=function(t){return null};x0.displayName="Cell";function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return t=C3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=M3(e,"string");return Zs(t)=="symbol"?t:t+""}function M3(e,t){if(Zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ma={widthCache:{},cacheCount:0},k3=2e3,$3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function j3(e){var t=rg({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ws=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Oi.isSsr)return{width:0,height:0};var n=j3(r),i=JSON.stringify({text:t,copyStyle:n});if(Ma.widthCache[i])return Ma.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=rg(rg({},$3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ma.widthCache[i]=l,++Ma.cacheCount>k3&&(Ma.cacheCount=0,Ma.widthCache={}),l}catch{return{width:0,height:0}}},R3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function Wu(e,t){return L3(e)||N3(e,t)||I3(e,t)||D3()}function D3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function L3(e){if(Array.isArray(e))return e}function B3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F3(n.key),n)}}function q3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F3(e){var t=z3(e,"string");return Js(t)=="symbol"?t:t+""}function z3(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,U3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,W3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,AC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},H3=Object.keys(AC),Ia="NaN";function G3(e,t){return e*AC[t]}var Xl=(function(){function e(t,r){B3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!U3.test(r)&&(this.num=NaN,this.unit=""),H3.includes(r)&&(this.num=G3(t,r),this.unit="px")}return q3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=W3.exec(r))!==null&&n!==void 0?n:[],a=Wu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(Ia))return Ia;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Wu(n,4),a=i[1],o=i[2],s=i[3],l=Xl.parse(a??""),u=Xl.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return Ia;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=xS.exec(t))!==null&&f!==void 0?f:[],p=Wu(h,4),y=p[1],m=p[2],d=p[3],v=Xl.parse(y??""),w=Xl.parse(d??""),b=m==="+"?v.add(w):v.subtract(w);if(b.isNaN())return Ia;t=t.replace(xS,b.toString())}return t}var wS=/\(([^()]*)\)/;function K3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Wu(r,2),i=n[1];t=t.replace(wS,OC(i))}return t}function X3(e){var t=e.replace(/\s+/g,"");return t=K3(t),t=OC(t),t}function Y3(e){try{return X3(e)}catch{return Ia}}function mm(e){var t=Y3(e.slice(5,-1));return t===Ia?"":t}var V3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Z3=["dx","dy","angle","className","breakAll"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=J3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return rU(e)||eU(e,t)||tU(e,t)||Q3()}function Q3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tU(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rU(e){if(Array.isArray(e))return e}var TC=/[ \f\n\r\t\v\u2028\u2029]+/,PC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];gt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(l){return{word:l,width:ws(l,i).width}}),s=n?0:ws(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},nU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=it(o),f=s,h=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function($,L){var F=L.word,q=L.width,I=$[$.length-1];if(I&&(i==null||a||I.width+q+n<Number(i)))I.words.push(F),I.width+=q+n;else{var j={words:[F],width:q};$.push(j)}return $},[])},p=h(r),y=function(R){return R.reduce(function($,L){return $.width>L.width?$:L})};if(!c)return p;for(var m="…",d=function(R){var $=f.slice(0,R),L=PC({breakAll:u,style:l,children:$+m}).wordsWithComputedWidth,F=h(L),q=F.length>o||y(F).width>Number(i);return[q,F]},v=0,w=f.length-1,b=0,_;v<=w&&b<=f.length-1;){var g=Math.floor((v+w)/2),x=g-1,S=d(x),A=AS(S,2),T=A[0],k=A[1],P=d(g),E=AS(P,1),C=E[0];if(!T&&!C&&(v=g+1),T&&C&&(w=g-1),!T&&C){_=k;break}b++}return _||p},TS=function(t){var r=gt(t)?[]:t.toString().split(TC);return[{words:r}]},iU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Oi.isSsr){var l,u,c=PC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return TS(i);return nU({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return TS(i)},PS="#808080",Hu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,v=d===void 0?PS:d,w=SS(t,V3),b=O.useMemo(function(){return iU({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),_=w.dx,g=w.dy,x=w.angle,S=w.className,A=w.breakAll,T=SS(w,Z3);if(!Se(n)||!Se(a))return null;var k=n+(it(_)?_:0),P=a+(it(g)?g:0),E;switch(m){case"start":E=mm("calc(".concat(u,")"));break;case"middle":E=mm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=mm("calc(".concat(b.length-1," * -").concat(s,")"));break}var C=[];if(f){var M=b[0].width,R=w.width;C.push("scale(".concat((it(R)?R/M:1)/M,")"))}return x&&C.push("rotate(".concat(x,", ").concat(k,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",ng({},vt(T,!0),{x:k,y:P,className:wt("recharts-text",S),textAnchor:p,fill:v.includes("url")?PS:v}),b.map(function($,L){var F=$.words.join(A?"":" ");return O.createElement("tspan",{x:k,dy:L===0?E:s,key:"".concat(F,"-").concat(L)},F)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Rs,scaleDiverging:WT,scaleDivergingLog:HT,scaleDivergingPow:Tv,scaleDivergingSqrt:QD,scaleDivergingSymlog:GT,scaleIdentity:AT,scaleImplicit:py,scaleLinear:oa,scaleLog:TT,scaleOrdinal:uv,scalePoint:hs,scalePow:yv,scaleQuantile:CT,scaleQuantize:MT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Ov,scaleSequentialQuantile:UT,scaleSequentialSqrt:JD,scaleSequentialSymlog:zT,scaleSqrt:RR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:Su,scaleUtc:ZD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var ym,CS;function EC(){if(CS)return ym;CS=1;var e=$o();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return ym=t,ym}var gm,MS;function aU(){if(MS)return gm;MS=1;function e(t,r){return t>r}return gm=e,gm}var vm,kS;function oU(){if(kS)return vm;kS=1;var e=EC(),t=aU(),r=jo();function n(i){return i&&i.length?e(i,r,t):void 0}return vm=n,vm}var sU=oU();const hi=Ft(sU);var bm,$S;function lU(){if($S)return bm;$S=1;function e(t,r){return t<r}return bm=e,bm}var _m,jS;function uU(){if(jS)return _m;jS=1;var e=EC(),t=lU(),r=jo();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var cU=uU();const Kc=Ft(cU);var xm,RS;function fU(){if(RS)return xm;RS=1;var e=m0();function t(r,n){return e(r,n)}return xm=t,xm}var hU=fU();const fa=Ft(hU);var Io=1e9,pU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},S0,re=!0,zr="[DecimalError] ",ra=zr+"Invalid argument: ",w0=zr+"Exponent out of range: ",No=Math.floor,Fi=Math.pow,dU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,wr,Pe=1e7,Jt=7,CC=9007199254740991,Gu=No(CC/Jt),ct={};ct.absoluteValue=ct.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ct.comparedTo=ct.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ct.decimalPlaces=ct.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Jt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ct.dividedBy=ct.div=function(e){return Wn(this,new this.constructor(e))};ct.dividedToIntegerBy=ct.idiv=function(e){var t=this,r=t.constructor;return Xt(Wn(t,new r(e),0,1),r.precision)};ct.equals=ct.eq=function(e){return!this.cmp(e)};ct.exponent=function(){return ve(this)};ct.greaterThan=ct.gt=function(e){return this.cmp(e)>0};ct.greaterThanOrEqualTo=ct.gte=function(e){return this.cmp(e)>=0};ct.isInteger=ct.isint=function(){return this.e>this.d.length-2};ct.isNegative=ct.isneg=function(){return this.s<0};ct.isPositive=ct.ispos=function(){return this.s>0};ct.isZero=function(){return this.s===0};ct.lessThan=ct.lt=function(e){return this.cmp(e)<0};ct.lessThanOrEqualTo=ct.lte=function(e){return this.cmp(e)<1};ct.logarithm=ct.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(wr))throw Error(zr+"NaN");if(r.s<1)throw Error(zr+(r.s?"NaN":"-Infinity"));return r.eq(wr)?new n(0):(re=!1,t=Wn(Qs(r,a),Qs(e,a),a),re=!0,Xt(t,i))};ct.minus=ct.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$C(t,e):MC(t,(e.s=-e.s,e))};ct.modulo=ct.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(zr+"NaN");return r.s?(re=!1,t=Wn(r,e,0,1).times(e),re=!0,r.minus(t)):Xt(new n(r),i)};ct.naturalExponential=ct.exp=function(){return kC(this)};ct.naturalLogarithm=ct.ln=function(){return Qs(this)};ct.negated=ct.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ct.plus=ct.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MC(t,e):$C(t,(e.s=-e.s,e))};ct.precision=ct.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=ve(i)+1,n=i.d.length-1,r=n*Jt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ct.squareRoot=ct.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(zr+"NaN")}for(e=ve(s),re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=vn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=No((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Wn(s,a,o+2)).times(.5),vn(a.d).slice(0,o)===(t=vn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Xt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return re=!0,Xt(n,r)};ct.times=ct.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Pe|0,t=s/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,re?Xt(e,f.precision):e};ct.toDecimalPlaces=ct.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(An(e,0,Io),t===void 0?t=n.rounding:An(t,0,8),Xt(r,e+ve(r)+1,t))};ct.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ha(n,!0):(An(e,0,Io),t===void 0?t=i.rounding:An(t,0,8),n=Xt(new i(n),e+1,t),r=ha(n,!0,e+1)),r};ct.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ha(i):(An(e,0,Io),t===void 0?t=a.rounding:An(t,0,8),n=Xt(new a(i),e+ve(i)+1,t),r=ha(n.abs(),!1,e+ve(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ct.toInteger=ct.toint=function(){var e=this,t=e.constructor;return Xt(new t(e),ve(e)+1,t.rounding)};ct.toNumber=function(){return+this};ct.toPower=ct.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(wr);if(s=new l(s),!s.s){if(e.s<1)throw Error(zr+"Infinity");return s}if(s.eq(wr))return s;if(n=l.precision,e.eq(wr))return Xt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=CC){for(i=new l(wr),t=Math.ceil(n/Jt+4),re=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=No(r/2),r!==0;)s=s.times(s),IS(s.d,t);return re=!0,e.s<0?new l(wr).div(i):Xt(i,n)}}else if(a<0)throw Error(zr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,re=!1,i=e.times(Qs(s,n+u)),re=!0,i=kC(i),i.s=a,i};ct.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ve(i),n=ha(i,r<=a.toExpNeg||r>=a.toExpPos)):(An(e,1,Io),t===void 0?t=a.rounding:An(t,0,8),i=Xt(new a(i),e,t),r=ve(i),n=ha(i,e<=r||r<=a.toExpNeg,e)),n};ct.toSignificantDigits=ct.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(An(e,1,Io),t===void 0?t=n.rounding:An(t,0,8)),Xt(new n(r),e,t)};ct.toString=ct.valueOf=ct.val=ct.toJSON=ct[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ve(e),r=e.constructor;return ha(e,t<=r.toExpNeg||t>=r.toExpPos)};function MC(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),re?Xt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Jt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/Pe|0,l[a]%=Pe;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,re?Xt(t,f):t}function An(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ra+e)}function vn(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Jt-n.length,r&&(a+=si(r)),a+=n;o=e[t],n=o+"",r=Jt-n.length,r&&(a+=si(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Wn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Pe|0,o=a/Pe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Pe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T=n.constructor,k=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(zr+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(k),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?w=a=T.precision:o?w=a+(ve(n)-ve(i))+1:w=a,w<0)return new T(0);if(w=w/Jt+2|0,u=0,S==1)for(c=0,E=E[0],w++;(u<g||c)&&w--;u++)b=c*Pe+(P[u]||0),y[u]=b/E|0,c=b%E|0;else{for(c=Pe/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),x=E[0],E[1]>=Pe/2&&++x;do c=0,s=t(E,m,S,d),s<0?(v=m[0],S!=d&&(v=v*Pe+(m[1]||0)),c=v/x|0,c>1?(c>=Pe&&(c=Pe-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=l,Xt(p,o?a+ve(p)+1:a)}})();function kC(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(ve(e)>16)throw Error(w0+ve(e));if(!e.s)return new c(wr);for(re=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Fi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(wr),c.precision=s;;){if(i=Xt(i.times(e),s),r=r.times(++l),o=a.plus(Wn(i,r,s)),vn(o.d).slice(0,s)===vn(a.d).slice(0,s)){for(;u--;)a=Xt(a.times(a),s);return c.precision=f,t==null?(re=!0,Xt(a,f)):a}a=o}}function ve(e){for(var t=e.e*Jt,r=e.d[0];r>=10;r/=10)t++;return t}function wm(e,t,r){if(t>e.LN10.sd())throw re=!0,r&&(e.precision=r),Error(zr+"LN10 precision limit exceeded");return Xt(new e(e.LN10),t)}function si(e){for(var t="";e--;)t+="0";return t}function Qs(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(zr+(p.s?"NaN":"-Infinity"));if(p.eq(wr))return new m(0);if(t==null?(re=!1,u=d):u=t,p.eq(10))return t==null&&(re=!0),wm(m,u);if(u+=h,m.precision=u,r=vn(y),n=r.charAt(0),a=ve(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=vn(p.d),n=r.charAt(0),f++;a=ve(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=wm(m,u+2,d).times(a+""),p=Qs(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(re=!0,Xt(p,d)):p;for(s=o=p=Wn(p.minus(wr),p.plus(wr),u),c=Xt(p.times(p),u),i=3;;){if(o=Xt(o.times(c),u),l=s.plus(Wn(o,new m(i),u)),vn(l.d).slice(0,u)===vn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(wm(m,u+2,d).times(a+""))),s=Wn(s,new m(f),u),m.precision=d,t==null?(re=!0,Xt(s,d)):s;s=l,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=No(r/Jt),e.d=[],n=(r+1)%Jt,r<0&&(n+=Jt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Jt;n<i;)e.d.push(+t.slice(n,n+=Jt));t=t.slice(n),n=Jt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),re&&(e.e>Gu||e.e<-Gu))throw Error(w0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Xt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Jt,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Jt),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Jt,i=n-Jt+o}if(r!==void 0&&(a=Fi(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Fi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=ve(e),f.length=1,t=t-a-1,f[0]=Fi(10,(Jt-t%Jt)%Jt),e.e=No(-t/Jt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Fi(10,Jt-n),f[c]=i>0?(u/Fi(10,o-i)%Fi(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Pe&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Pe)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(re&&(e.e>Gu||e.e<-Gu))throw Error(w0+ve(e));return e}function $C(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),re?Xt(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Jt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Pe-1;--l[a],l[i]+=Pe}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,re?Xt(t,p):t):new h(0)}function ha(e,t,r){var n,i=ve(e),a=vn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+si(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+si(-i-1)+a,r&&(n=r-o)>0&&(a+=si(n))):i>=o?(a+=si(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+si(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=si(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function jC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ra+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(ra+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,dU.test(a))DS(o,a);else throw Error(ra+a)}if(i.prototype=ct,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=jC,i.config=i.set=mU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mU(e){if(!e||typeof e!="object")throw Error(zr+"Object expected");var t,r,n,i=["precision",1,Io,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(No(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var S0=jC(pU);wr=new S0(1);const Wt=S0;function yU(e){return _U(e)||bU(e)||vU(e)||gU()}function gU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vU(e,t){if(e){if(typeof e=="string")return ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ig(e,t)}}function bU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _U(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xU=function(t){return t},RC={},DC=function(t){return t===RC},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&DC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},wU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RC}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return DC(f)?l.shift():f});return r.apply(void 0,yU(c).concat(l))}))})},Xc=function(t){return wU(t.length,t)},ag=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SU=Xc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),AU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return xU;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},og=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function OU(e){var t;return e===0?t=1:t=Math.floor(new Wt(e).abs().log(10).toNumber())+1,t}function TU(e,t,r){for(var n=new Wt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var PU=Xc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),EU=Xc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CU=Xc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Yc={rangeStep:TU,getDigitCount:OU,interpolateNumber:PU,uninterpolateNumber:EU,uninterpolateTruncation:CU};function sg(e){return $U(e)||kU(e)||NC(e)||MU()}function MU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $U(e){if(Array.isArray(e))return lg(e)}function tl(e,t){return DU(e)||RU(e,t)||NC(e,t)||jU()}function jU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lg(e,t)}}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function DU(e){if(Array.isArray(e))return e}function LC(e){var t=tl(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BC(e,t,r){if(e.lte(0))return new Wt(0);var n=Yc.getDigitCount(e.toNumber()),i=new Wt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Wt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Wt(Math.ceil(l))}function IU(e,t,r){var n=1,i=new Wt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Wt(10).pow(Yc.getDigitCount(e)-1),i=new Wt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Wt(Math.floor(e)))}else e===0?i=new Wt(Math.floor((t-1)/2)):r||(i=new Wt(Math.floor(e)));var o=Math.floor((t-1)/2),s=AU(SU(function(l){return i.add(new Wt(l-o).mul(n)).toNumber()}),ag);return s(0,t)}function qC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Wt(0),tickMin:new Wt(0),tickMax:new Wt(0)};var a=BC(new Wt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Wt(0):(o=new Wt(e).add(t).div(2),o=o.sub(new Wt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Wt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?qC(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Wt(s).mul(a)),tickMax:o.add(new Wt(l).mul(a))})}function NU(e){var t=tl(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=LC([r,n]),l=tl(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(sg(ag(0,i-1).map(function(){return 1/0}))):[].concat(sg(ag(0,i-1).map(function(){return-1/0})),[c]);return r>n?og(f):f}if(u===c)return IU(u,i,a);var h=qC(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Yc.rangeStep(y,m.add(new Wt(.1).mul(p)),p);return r>n?og(d):d}function LU(e,t){var r=tl(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=tl(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=BC(new Wt(u).sub(l).div(c-1),a,0),h=[].concat(sg(Yc.rangeStep(new Wt(l),new Wt(u).sub(new Wt(.99).mul(f)),f)),[u]);return n>i?og(h):h}var BU=IC(NU),qU=IC(LU),FU=process.env.NODE_ENV==="production",Sm="Invariant failed";function ar(e,t){if(FU)throw new Error(Sm);var r=typeof t=="function"?t():t,n=r?"".concat(Sm,": ").concat(r):Sm;throw new Error(n)}var zU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ku.apply(this,arguments)}function UU(e,t){return KU(e)||GU(e,t)||HU(e,t)||WU()}function WU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KU(e){if(Array.isArray(e))return e}function XU(e,t){if(e==null)return{};var r=YU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UC(n.key),n)}}function JU(e,t,r){return t&&ZU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QU(e,t,r){return t=Xu(t),tW(e,FC()?Reflect.construct(t,r||[],Xu(e).constructor):t.apply(e,r))}function tW(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eW(e)}function eW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xu(e)}function rW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ug(e,t)}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=nW(e,"string");return co(t)=="symbol"?t:t+""}function nW(e,t){if(co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lo=(function(e){function t(){return VU(this,t),QU(this,t,arguments)}return rW(t,e),JU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=XU(n,zU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?ar(!1,'ErrorBar requires Axis type property to be "number".'):ar());var y=l.map(function(m){var d=u(m,s),v=d.x,w=d.y,b=d.value,_=d.errorVal;if(!_)return null;var g=[],x,S;if(Array.isArray(_)){var A=UU(_,2);x=A[0],S=A[1]}else x=S=_;if(a==="vertical"){var T=c.scale,k=w+i,P=k+o,E=k-o,C=T(b-x),M=T(b+S);g.push({x1:M,y1:P,x2:M,y2:E}),g.push({x1:C,y1:k,x2:M,y2:k}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var R=f.scale,$=v+i,L=$-o,F=$+o,q=R(b-x),I=R(b+S);g.push({x1:L,y1:I,x2:F,y2:I}),g.push({x1:$,y1:q,x2:$,y2:I}),g.push({x1:L,y1:q,x2:F,y2:q})}return O.createElement($t,Ku({className:"recharts-errorBar",key:"bar-".concat(g.map(function(j){return"".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))},p),g.map(function(j){return O.createElement("line",Ku({},j,{key:"line-".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))}))});return O.createElement($t,{className:"recharts-errorBars"},y)}}])})(O.Component);zC(Lo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(Lo,"displayName","ErrorBar");function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(e,t,r){return t=aW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=oW(e,"string");return el(t)=="symbol"?t:t+""}function oW(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=br(r,ea);if(!o)return null;var s=ea.defaultProps,l=s!==void 0?Li(Li({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Li(Li({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:l.iconType||d||"square",color:A0(f),value:m||y,payload:p}}),Li(Li(Li({},l),ea.getWithHeight(o,i)),{},{payload:u,item:o})};function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function qS(e){return cW(e)||uW(e)||lW(e)||sW()}function sW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function uW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return cg(e)}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){Ka(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ka(e,t,r){return t=fW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=hW(e,"string");return rl(t)=="symbol"?t:t+""}function hW(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ae(e,t,r){return gt(e)||gt(t)?r:Se(t)?Fr(e,t,r):bt(t)?t(e):r}function Ss(e,t,r,n){var i=rC(e,function(s){return Ae(s,t)});if(r==="number"){var a=i.filter(function(s){return it(s)||parseFloat(s)});return a.length?[Kc(a),hi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!gt(s)}):i;return o.map(function(s){return Se(s)||s instanceof Date?s:""})}var pW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(tn(f-c)!==tn(h-f)){var y=[];if(tn(h-f)===tn(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var v=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>v[0]&&t<=v[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var w=Math.min(c,h),b=Math.max(c,h);if(t>(w+f)/2&&t<=(b+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},A0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?oe(oe({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},dW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,v=m.filter(function(S){return zn(S.type).indexOf("Bar")>=0});if(v&&v.length){var w=v[0].type.defaultProps,b=w!==void 0?oe(oe({},w),v[0].props):v[0].props,_=b.barSize,g=b[d];o[g]||(o[g]=[]);var x=gt(_)?r:_;o[g].push({item:v[0],stackList:v.slice(1),barSize:gt(x)?void 0:ca(x,n,0)})}}return o},mW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ca(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var x={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(qS(_),[x]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var v=ca(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var w=(i-2*v-(l-1)*u)/l;w>1&&(w>>=0);var b=s===+s?Math.min(w,s):w;c=o.reduce(function(_,g,x){var S=[].concat(qS(_),[{item:g.item,position:{offset:v+(w+u)*x+(w-b)/2,size:b}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},yW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=WC({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&it(t[p]))return oe(oe({},t),{},Ka({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&it(t[y]))return oe(oe({},t),{},Ka({},y,t[y]+(h||0)))}return t},gW=function(t,r,n){return gt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},HC=function(t,r,n,i,a){var o=r.props.children,s=fr(o,Lo).filter(function(u){return gW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Ae(c,n);if(gt(f))return u;var h=Array.isArray(f)?[Kc(f),hi(f)]:[f,f],p=l.reduce(function(y,m){var d=Ae(c,m,0),v=h[0]-Math.abs(Array.isArray(d)?d[0]:d),w=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(v,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},vW=function(t,r,n,i,a){var o=r.map(function(s){return HC(t,s,n,a,i)}).filter(function(s){return!gt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GC=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&HC(t,l,u,i)||Ss(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},KC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},XC=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Fn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?tn(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!Do(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Am=new WeakMap,Yl=function(t,r){if(typeof r!="function")return t;Am.has(t)||Am.set(t,new WeakMap);var n=Am.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},bW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Rs(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:oa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:hs(),realScaleType:"point"}:a==="category"?{scale:Rs(),realScaleType:"band"}:{scale:oa(),realScaleType:"linear"};if(ua(i)){var l="scale".concat(Wc(i));return{scale:(ES[l]||hs)(),realScaleType:ES[l]?l:"point"}}return bt(i)?{scale:i}:{scale:hs(),realScaleType:"point"}},zS=1e-4,_W=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},xW=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},wW=function(t,r){if(!r||r.length!==2||!it(r[0])||!it(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!it(t[0])||t[0]<n)&&(a[0]=n),(!it(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},SW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Do(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},AW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Do(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},OW={sign:SW,expand:kI,none:Qa,silhouette:$I,wiggle:jI,positive:AW},TW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=OW[n],o=Cu().keys(i).value(function(s,l){return+Ae(s,l,0)}).order(vy).offset(a);return o(t)},PW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?oe(oe({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var v=y[n],w=f[v]||{hasStack:!1,stackGroups:{}};if(Se(m)){var b=w.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),w.hasStack=!0,w.stackGroups[m]=b}else w.stackGroups[_a("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return oe(oe({},f),{},Ka({},v,w))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var v=p.stackGroups[d];return oe(oe({},m),{},Ka({},d,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:TW(t,v.items,a)}))},y)}return oe(oe({},f),{},Ka({},h,p))},c)},EW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=BU(u,a,s);return t.domain([Kc(c),hi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=qU(f,a,s);return{niceTicks:h}}return null};function fo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(i[t.dataKey])){var s=Lu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Ae(i,gt(o)?t.dataKey:o);return gt(l)?null:t.scale(l)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Ae(o,r.dataKey,r.domain[s]);return gt(l)?null:r.scale(l)-a/2+i},CW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},MW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?oe(oe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},kW=function(t){return t.reduce(function(r,n){return[Kc(n.concat([r[0]]).filter(it)),hi(n.concat([r[1]]).filter(it))]},[1/0,-1/0])},YC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=kW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fg=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(it(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(it(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];i[1]=r[1]+o}else bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Yu=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Uc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},GS=function(t,r,n){return!t||!t.length||fa(t,Fr(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?oe(oe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return oe(oe({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:A0(t),value:Ae(r,i),type:l,payload:r,chartType:u,hide:c})};function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){$W(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $W(e,t,r){return t=jW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jW(e){var t=RW(e,"string");return nl(t)=="symbol"?t:t+""}function RW(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vu=Math.PI/180,DW=function(t){return t*180/Math.PI},Ie=function(t,r,n,i){return{x:t+Math.cos(-Vu*i)*n,y:r+Math.sin(-Vu*i)*n}},IW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},NW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=IW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:DW(u),angleInRadian:u}},LW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},BW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},YS=function(t,r){var n=t.x,i=t.y,a=NW({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=LW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?XS(XS({},r),{},{radius:o,angle:BW(p,r)}):null};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}var qW=["offset"];function FW(e){return HW(e)||WW(e)||UW(e)||zW()}function zW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UW(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function WW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HW(e){if(Array.isArray(e))return hg(e)}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GW(e,t){if(e==null)return{};var r=KW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){XW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t,r){return t=YW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=VW(e,"string");return il(t)=="symbol"?t:t+""}function VW(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}var ZW=function(t){var r=t.value,n=t.formatter,i=gt(t.children)?r:t.children;return bt(n)?n(i):i},JW=function(t,r){var n=tn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},QW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,v=JW(p,y),w=v>=0?1:-1,b,_;i==="insideStart"?(b=p+w*o,_=m):i==="insideEnd"?(b=y-w*o,_=!m):i==="end"&&(b=y+w*o,_=m),_=v<=0?_:!_;var g=Ie(u,c,d,b),x=Ie(u,c,d,b+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
+ A`).concat(d,",").concat(d,",0,1,").concat(_?0:1,`,
100
+ `).concat(x.x,",").concat(x.y),A=gt(t.id)?_a("recharts-radial-line-"):t.id;return O.createElement("text",al({},n,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},t8=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Ie(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,v=Ie(o,s,d,h),w=v.x,b=v.y;return{x:w,y:b,textAnchor:"middle",verticalAnchor:"middle"}},e8=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,v=m>0?"end":"start",w=m>0?"start":"end";if(a==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return we(we({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return we(we({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return we(we({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var x={x:s+u+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return we(we({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?we({x:s+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},S):a==="insideRight"?we({x:s+u-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?we({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?we({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?we({x:s+d,y:l+h,textAnchor:w,verticalAnchor:y},S):a==="insideTopRight"?we({x:s+u-d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?we({x:s+d,y:l+c-h,textAnchor:w,verticalAnchor:p},S):a==="insideBottomRight"?we({x:s+u-d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):Ro(a)&&(it(a.x)||Ki(a.x))&&(it(a.y)||Ki(a.y))?we({x:s+ca(a.x,u),y:l+ca(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):we({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},r8=function(t){return"cx"in t&&it(t.cx)};function We(e){var t=e.offset,r=t===void 0?5:t,n=GW(e,qW),i=we({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||gt(s)&&gt(l)&&!O.isValidElement(u)&&!bt(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(bt(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=ZW(i);var y=r8(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return QW(i,p,m);var d=y?t8(i):e8(i);return O.createElement(Hu,al({className:wt("recharts-label",f)},m,d,{breakAll:h}),p)}We.displayName="Label";var ZC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,v=t.clockWise,w=t.labelViewBox;if(w)return w;if(it(m)&&it(d)){if(it(f)&&it(h))return{x:f,y:h,width:m,height:d};if(it(p)&&it(y))return{x:p,y,width:m,height:d}}return it(f)&&it(h)?{x:f,y:h,width:0,height:0}:it(r)&&it(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},n8=function(t,r){return t?t===!0?O.createElement(We,{key:"label-implicit",viewBox:r}):Se(t)?O.createElement(We,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===We?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(We,{key:"label-implicit",content:t,viewBox:r}):bt(t)?O.createElement(We,{key:"label-implicit",content:t,viewBox:r}):Ro(t)?O.createElement(We,al({viewBox:r},t,{key:"label-implicit"})):null:null},i8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=ZC(t),o=fr(i,We).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=n8(t.label,r||a);return[s].concat(FW(o))};We.parseViewBox=ZC;We.renderCallByParent=i8;var Om,ZS;function a8(){if(ZS)return Om;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Om=e,Om}var o8=a8();const s8=Ft(o8);function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}var l8=["valueAccessor"],u8=["data","dataKey","clockWise","id","textBreakAll"];function c8(e){return d8(e)||p8(e)||h8(e)||f8()}function f8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h8(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function p8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d8(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){m8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m8(e,t,r){return t=y8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y8(e){var t=g8(e,"string");return ol(t)=="symbol"?t:t+""}function g8(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t){if(e==null)return{};var r=v8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var b8=function(t){return Array.isArray(t.value)?s8(t.value):t.value};function xn(e){var t=e.valueAccessor,r=t===void 0?b8:t,n=tA(e,l8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=tA(n,u8);return!i||!i.length?null:O.createElement($t,{className:"recharts-label-list"},i.map(function(c,f){var h=gt(a)?r(c,f):Ae(c&&c.payload,a),p=gt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(We,Zu({},vt(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:We.parseViewBox(gt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}xn.displayName="LabelList";function _8(e,t){return e?e===!0?O.createElement(xn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||bt(e)?O.createElement(xn,{key:"labelList-implicit",data:t,content:e}):Ro(e)?O.createElement(xn,Zu({data:t},e,{key:"labelList-implicit"})):null:null}function x8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=fr(n,xn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=_8(e.label,t);return[a].concat(c8(i))}xn.renderCallByParent=x8;function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){w8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w8(e,t,r){return t=S8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=A8(e,"string");return sl(t)=="symbol"?t:t+""}function A8(e,t){if(sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O8=function(t,r){var n=tn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Vl=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/Vu,h=u?a:a+o*f,p=Ie(r,n,c,h),y=Ie(r,n,i,h),m=u?a-o*f:a,d=Ie(r,n,c*Math.cos(f*Vu),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=O8(o,s),u=o+l,c=Ie(r,n,a,o),f=Ie(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
64
102
  A `).concat(a,",").concat(a,`,0,
65
- `).concat(+(Math.abs(s)>180),",").concat(+(o>l),`,
66
- `).concat(c.x,",").concat(c.y,`
67
- `);if(i>0){var p=He(r,n,i,o),y=He(r,n,i,l);d+="L ".concat(y.x,",").concat(y.y,`
103
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
104
+ `).concat(f.x,",").concat(f.y,`
105
+ `);if(i>0){var p=Ie(r,n,i,o),y=Ie(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
68
106
  A `).concat(i,",").concat(i,`,0,
69
- `).concat(+(Math.abs(s)>180),",").concat(+(o<=l),`,
70
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},qR=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,c=Tt(f-l),d=va({cx:r,cy:n,radius:a,angle:l,sign:c,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=va({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:s}),b=h.circleTangency,w=h.lineTangency,g=h.theta,S=s?Math.abs(l-f):Math.abs(l-f)-v-g;if(S<0)return u?"M ".concat(y.x,",").concat(y.y,`
107
+ `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},T8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=tn(c-u),h=Vl({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=Vl({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),v=d.circleTangency,w=d.lineTangency,b=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-b;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
71
109
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
72
110
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
73
- `):dO({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
74
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
75
- A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(b.x,",").concat(b.y,`
76
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(w.x,",").concat(w.y,`
77
- `);if(i>0){var x=va({cx:r,cy:n,radius:i,angle:l,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,A=x.lineTangency,E=x.theta,M=va({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=M.circleTangency,T=M.lineTangency,j=M.theta,k=s?Math.abs(l-f):Math.abs(l-f)-E-j;if(k<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
78
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,`
79
- A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,`
80
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},BR={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},pO=function(t){var r=Ub(Ub({},BR),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,l=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var p=fe("recharts-sector",d),y=o-a,v=Tr(u,y,0,!0),h;return v>0&&Math.abs(f-c)<360?h=qR({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:f,endAngle:c}):h=dO({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),O.createElement("path",hd({},se(r,!0),{className:p,d:h,role:"img"}))};function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vd.apply(this,arguments)}function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){FR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FR(e,t,r){return t=zR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=UR(e,"string");return ki(t)=="symbol"?t:t+""}function UR(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gb={curveBasisClosed:mT,curveBasisOpen:gT,curveBasis:yT,curveBumpX:rT,curveBumpY:nT,curveLinearClosed:bT,curveLinear:Io,curveMonotoneX:xT,curveMonotoneY:wT,curveNatural:ST,curveStep:OT,curveStepAfter:AT,curveStepBefore:_T},ya=function(t){return t.x===+t.x&&t.y===+t.y},Hn=function(t){return t.x},Gn=function(t){return t.y},WR=function(t,r){if(le(t))return t;var n="curve".concat(Mo(t));return(n==="curveMonotone"||n==="curveBump")&&r?Gb["".concat(n).concat(r==="vertical"?"Y":"X")]:Gb[n]||Io},HR=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,l=s===void 0?!1:s,f=WR(n,u),c=l?a.filter(function(v){return ya(v)}):a,d;if(Array.isArray(o)){var p=l?o.filter(function(v){return ya(v)}):o,y=c.map(function(v,h){return Hb(Hb({},v),{},{base:p[h]})});return u==="vertical"?d=ua().y(Gn).x1(Hn).x0(function(v){return v.base.x}):d=ua().x(Hn).y1(Gn).y0(function(v){return v.base.y}),d.defined(ya).curve(f),d(y)}return u==="vertical"&&V(o)?d=ua().y(Gn).x1(Hn).x0(o):V(o)?d=ua().x(Hn).y1(Gn).y0(o):d=Dw().x(Hn).y(Gn),d.defined(ya).curve(f),d(c)},Pr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?HR(t):i;return yt.createElement("path",vd({},se(t,!1),_a(t),{className:fe("recharts-curve",r),d:o,ref:a}))},ma={exports:{}},ga={exports:{}},be={};/** @license React v16.13.1
111
+ `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
112
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
113
+ A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
115
+ `);if(i>0){var x=Vl({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=x.circleTangency,A=x.lineTangency,T=x.theta,k=Vl({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=k.circleTangency,E=k.lineTangency,C=k.theta,M=l?Math.abs(u-c):Math.abs(u-c)-T-C;if(M<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
+ A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},P8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QC=function(t){var r=rA(rA({},P8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=wt("recharts-sector",h),y=o-a,m=ca(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=T8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",dg({},vt(r,!0),{className:p,d,role:"img"}))};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){E8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E8(e,t,r){return t=C8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C8(e){var t=M8(e,"string");return ll(t)=="symbol"?t:t+""}function M8(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:sa,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Zl=function(t){return t.x===+t.x&&t.y===+t.y},Qo=function(t){return t.x},ts=function(t){return t.y},k8=function(t,r){if(bt(t))return t;var n="curve".concat(Wc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||sa},$8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=k8(n,s),f=u?a.filter(function(m){return Zl(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return Zl(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=Wi().y(ts).x1(Qo).x0(function(m){return m.base.x}):h=Wi().x(Qo).y1(ts).y0(function(m){return m.base.y}),h.defined(Zl).curve(c),h(y)}return s==="vertical"&&it(o)?h=Wi().y(ts).x1(Qo).x0(o):it(o)?h=Wi().x(Qo).y1(ts).y0(o):h=Cv().x(Qo).y(ts),h.defined(Zl).curve(c),h(f)},na=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?$8(t):i;return qr.createElement("path",mg({},vt(t,!1),Bu(t),{className:wt("recharts-curve",r),d:o,ref:a}))},Jl={exports:{}},Ql={exports:{}},Dt={};/** @license React v16.13.1
81
119
  * react-is.production.min.js
82
120
  *
83
121
  * Copyright (c) Facebook, Inc. and its affiliates.
84
122
  *
85
123
  * This source code is licensed under the MIT license found in the
86
124
  * LICENSE file in the root directory of this source tree.
87
- */var Kb;function GR(){if(Kb)return be;Kb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function g(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case t:switch(m=m.type,m){case s:case l:case n:case a:case i:case c:return m;default:switch(m=m&&m.$$typeof,m){case u:case f:case y:case p:case o:return m;default:return x}}case r:return x}}}function S(m){return g(m)===l}return be.AsyncMode=s,be.ConcurrentMode=l,be.ContextConsumer=u,be.ContextProvider=o,be.Element=t,be.ForwardRef=f,be.Fragment=n,be.Lazy=y,be.Memo=p,be.Portal=r,be.Profiler=a,be.StrictMode=i,be.Suspense=c,be.isAsyncMode=function(m){return S(m)||g(m)===s},be.isConcurrentMode=S,be.isContextConsumer=function(m){return g(m)===u},be.isContextProvider=function(m){return g(m)===o},be.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},be.isForwardRef=function(m){return g(m)===f},be.isFragment=function(m){return g(m)===n},be.isLazy=function(m){return g(m)===y},be.isMemo=function(m){return g(m)===p},be.isPortal=function(m){return g(m)===r},be.isProfiler=function(m){return g(m)===a},be.isStrictMode=function(m){return g(m)===i},be.isSuspense=function(m){return g(m)===c},be.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===l||m===a||m===i||m===c||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===o||m.$$typeof===u||m.$$typeof===f||m.$$typeof===h||m.$$typeof===b||m.$$typeof===w||m.$$typeof===v)},be.typeOf=g,be}var xe={};/** @license React v16.13.1
125
+ */var oA;function j8(){if(oA)return Dt;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return x}}case r:return x}}}function _(g){return b(g)===u}return Dt.AsyncMode=l,Dt.ConcurrentMode=u,Dt.ContextConsumer=s,Dt.ContextProvider=o,Dt.Element=t,Dt.ForwardRef=c,Dt.Fragment=n,Dt.Lazy=y,Dt.Memo=p,Dt.Portal=r,Dt.Profiler=a,Dt.StrictMode=i,Dt.Suspense=f,Dt.isAsyncMode=function(g){return _(g)||b(g)===l},Dt.isConcurrentMode=_,Dt.isContextConsumer=function(g){return b(g)===s},Dt.isContextProvider=function(g){return b(g)===o},Dt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Dt.isForwardRef=function(g){return b(g)===c},Dt.isFragment=function(g){return b(g)===n},Dt.isLazy=function(g){return b(g)===y},Dt.isMemo=function(g){return b(g)===p},Dt.isPortal=function(g){return b(g)===r},Dt.isProfiler=function(g){return b(g)===a},Dt.isStrictMode=function(g){return b(g)===i},Dt.isSuspense=function(g){return b(g)===f},Dt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===v||g.$$typeof===w||g.$$typeof===m)},Dt.typeOf=b,Dt}var It={};/** @license React v16.13.1
88
126
  * react-is.development.js
89
127
  *
90
128
  * Copyright (c) Facebook, Inc. and its affiliates.
91
129
  *
92
130
  * This source code is licensed under the MIT license found in the
93
131
  * LICENSE file in the root directory of this source tree.
94
- */var Vb;function KR(){return Vb||(Vb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===a||C===i||C===c||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===p||C.$$typeof===o||C.$$typeof===u||C.$$typeof===f||C.$$typeof===h||C.$$typeof===b||C.$$typeof===w||C.$$typeof===v)}function S(C){if(typeof C=="object"&&C!==null){var ae=C.$$typeof;switch(ae){case t:var U=C.type;switch(U){case s:case l:case n:case a:case i:case c:return U;default:var ue=U&&U.$$typeof;switch(ue){case u:case f:case y:case p:case o:return ue;default:return ae}}case r:return ae}}}var m=s,x=l,_=u,A=o,E=t,M=f,P=n,T=y,j=p,k=r,$=a,R=i,B=c,D=!1;function F(C){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(C)||S(C)===s}function I(C){return S(C)===l}function N(C){return S(C)===u}function z(C){return S(C)===o}function H(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function X(C){return S(C)===f}function J(C){return S(C)===n}function ee(C){return S(C)===y}function ne(C){return S(C)===p}function K(C){return S(C)===r}function q(C){return S(C)===a}function W(C){return S(C)===i}function Z(C){return S(C)===c}xe.AsyncMode=m,xe.ConcurrentMode=x,xe.ContextConsumer=_,xe.ContextProvider=A,xe.Element=E,xe.ForwardRef=M,xe.Fragment=P,xe.Lazy=T,xe.Memo=j,xe.Portal=k,xe.Profiler=$,xe.StrictMode=R,xe.Suspense=B,xe.isAsyncMode=F,xe.isConcurrentMode=I,xe.isContextConsumer=N,xe.isContextProvider=z,xe.isElement=H,xe.isForwardRef=X,xe.isFragment=J,xe.isLazy=ee,xe.isMemo=ne,xe.isPortal=K,xe.isProfiler=q,xe.isStrictMode=W,xe.isSuspense=Z,xe.isValidElementType=g,xe.typeOf=S})()),xe}var Yb;function hO(){return Yb||(Yb=1,process.env.NODE_ENV==="production"?ga.exports=GR():ga.exports=KR()),ga.exports}/*
132
+ */var sA;function R8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(D){return typeof D=="string"||typeof D=="function"||D===n||D===u||D===a||D===i||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===p||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===d||D.$$typeof===v||D.$$typeof===w||D.$$typeof===m)}function _(D){if(typeof D=="object"&&D!==null){var ot=D.$$typeof;switch(ot){case t:var U=D.type;switch(U){case l:case u:case n:case a:case i:case f:return U;default:var ut=U&&U.$$typeof;switch(ut){case s:case c:case y:case p:case o:return ut;default:return ot}}case r:return ot}}}var g=l,x=u,S=s,A=o,T=t,k=c,P=n,E=y,C=p,M=r,R=a,$=i,L=f,F=!1;function q(D){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(D)||_(D)===l}function I(D){return _(D)===u}function j(D){return _(D)===s}function N(D){return _(D)===o}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function H(D){return _(D)===c}function B(D){return _(D)===n}function Z(D){return _(D)===y}function V(D){return _(D)===p}function G(D){return _(D)===r}function W(D){return _(D)===a}function Y(D){return _(D)===i}function X(D){return _(D)===f}It.AsyncMode=g,It.ConcurrentMode=x,It.ContextConsumer=S,It.ContextProvider=A,It.Element=T,It.ForwardRef=k,It.Fragment=P,It.Lazy=E,It.Memo=C,It.Portal=M,It.Profiler=R,It.StrictMode=$,It.Suspense=L,It.isAsyncMode=q,It.isConcurrentMode=I,It.isContextConsumer=j,It.isContextProvider=N,It.isElement=z,It.isForwardRef=H,It.isFragment=B,It.isLazy=Z,It.isMemo=V,It.isPortal=G,It.isProfiler=W,It.isStrictMode=Y,It.isSuspense=X,It.isValidElementType=b,It.typeOf=_})()),It}var lA;function tM(){return lA||(lA=1,process.env.NODE_ENV==="production"?Ql.exports=j8():Ql.exports=R8()),Ql.exports}/*
95
133
  object-assign
96
134
  (c) Sindre Sorhus
97
135
  @license MIT
98
- */var Jc,Xb;function VR(){if(Xb)return Jc;Xb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(s.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jc=i()?Object.assign:function(a,o){for(var u,s=n(a),l,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var c in u)t.call(u,c)&&(s[c]=u[c]);if(e){l=e(u);for(var d=0;d<l.length;d++)r.call(u,l[d])&&(s[l[d]]=u[l[d]])}}return s},Jc}var Qc,Zb;function Xp(){if(Zb)return Qc;Zb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qc=e,Qc}var ef,Jb;function vO(){return Jb||(Jb=1,ef=Function.call.bind(Object.prototype.hasOwnProperty)),ef}var tf,Qb;function YR(){if(Qb)return tf;Qb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xp(),r={},n=vO();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,s,l){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var c;try{if(typeof a[f]!="function"){var d=Error((s||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=a[f](o,f,s,u,null,t)}catch(y){c=y}if(c&&!(c instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var p=l?l():"";e("Failed "+u+" type: "+c.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},tf=i,tf}var rf,e0;function XR(){if(e0)return rf;e0=1;var e=hO(),t=VR(),r=Xp(),n=vO(),i=YR(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return rf=function(u,s){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function c(I){var N=I&&(l&&I[l]||I[f]);if(typeof N=="function")return N}var d="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:g,element:S(),elementType:m(),instanceOf:x,node:M(),objectOf:A,oneOf:_,oneOfType:E,shape:T,exact:j};function y(I,N){return I===N?I!==0||1/I===1/N:I!==I&&N!==N}function v(I,N){this.message=I,this.data=N&&typeof N=="object"?N:{},this.stack=""}v.prototype=Error.prototype;function h(I){if(process.env.NODE_ENV!=="production")var N={},z=0;function H(J,ee,ne,K,q,W,Z){if(K=K||d,W=W||ne,Z!==r){if(s){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=K+":"+ne;!N[ae]&&z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ae]=!0,z++)}}return ee[ne]==null?J?ee[ne]===null?new v("The "+q+" `"+W+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new v("The "+q+" `"+W+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:I(ee,ne,K,q,W)}var X=H.bind(null,!1);return X.isRequired=H.bind(null,!0),X}function b(I){function N(z,H,X,J,ee,ne){var K=z[H],q=R(K);if(q!==I){var W=B(K);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+W+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return h(N)}function w(){return h(o)}function g(I){function N(z,H,X,J,ee){if(typeof I!="function")return new v("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ne=z[H];if(!Array.isArray(ne)){var K=R(ne);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+K+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<ne.length;q++){var W=I(ne,q,X,J,ee+"["+q+"]",r);if(W instanceof Error)return W}return null}return h(N)}function S(){function I(N,z,H,X,J){var ee=N[z];if(!u(ee)){var ne=R(ee);return new v("Invalid "+X+" `"+J+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return h(I)}function m(){function I(N,z,H,X,J){var ee=N[z];if(!e.isValidElementType(ee)){var ne=R(ee);return new v("Invalid "+X+" `"+J+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return h(I)}function x(I){function N(z,H,X,J,ee){if(!(z[H]instanceof I)){var ne=I.name||d,K=F(z[H]);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+K+"` supplied to `"+X+"`, expected ")+("instance of `"+ne+"`."))}return null}return h(N)}function _(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function N(z,H,X,J,ee){for(var ne=z[H],K=0;K<I.length;K++)if(y(ne,I[K]))return null;var q=JSON.stringify(I,function(Z,C){var ae=B(C);return ae==="symbol"?String(C):C});return new v("Invalid "+J+" `"+ee+"` of value `"+String(ne)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return h(N)}function A(I){function N(z,H,X,J,ee){if(typeof I!="function")return new v("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ne=z[H],K=R(ne);if(K!=="object")return new v("Invalid "+J+" `"+ee+"` of type "+("`"+K+"` supplied to `"+X+"`, expected an object."));for(var q in ne)if(n(ne,q)){var W=I(ne,q,X,J,ee+"."+q,r);if(W instanceof Error)return W}return null}return h(N)}function E(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var N=0;N<I.length;N++){var z=I[N];if(typeof z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D(z)+" at index "+N+"."),o}function H(X,J,ee,ne,K){for(var q=[],W=0;W<I.length;W++){var Z=I[W],C=Z(X,J,ee,ne,K,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&q.push(C.data.expectedType)}var ae=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new v("Invalid "+ne+" `"+K+"` supplied to "+("`"+ee+"`"+ae+"."))}return h(H)}function M(){function I(N,z,H,X,J){return k(N[z])?null:new v("Invalid "+X+" `"+J+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return h(I)}function P(I,N,z,H,X){return new v((I||"React class")+": "+N+" type `"+z+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function T(I){function N(z,H,X,J,ee){var ne=z[H],K=R(ne);if(K!=="object")return new v("Invalid "+J+" `"+ee+"` of type `"+K+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in I){var W=I[q];if(typeof W!="function")return P(X,J,ee,q,B(W));var Z=W(ne,q,X,J,ee+"."+q,r);if(Z)return Z}return null}return h(N)}function j(I){function N(z,H,X,J,ee){var ne=z[H],K=R(ne);if(K!=="object")return new v("Invalid "+J+" `"+ee+"` of type `"+K+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},z[H],I);for(var W in q){var Z=I[W];if(n(I,W)&&typeof Z!="function")return P(X,J,ee,W,B(Z));if(!Z)return new v("Invalid "+J+" `"+ee+"` key `"+W+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(z[H],null," ")+`
99
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var C=Z(ne,W,X,J,ee+"."+W,r);if(C)return C}return null}return h(N)}function k(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(k);if(I===null||u(I))return!0;var N=c(I);if(N){var z=N.call(I),H;if(N!==I.entries){for(;!(H=z.next()).done;)if(!k(H.value))return!1}else for(;!(H=z.next()).done;){var X=H.value;if(X&&!k(X[1]))return!1}}else return!1;return!0;default:return!1}}function $(I,N){return I==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function R(I){var N=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":$(N,I)?"symbol":N}function B(I){if(typeof I>"u"||I===null)return""+I;var N=R(I);if(N==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return N}function D(I){var N=B(I);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function F(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},rf}var nf,t0;function ZR(){if(t0)return nf;t0=1;var e=Xp();function t(){}function r(){}return r.resetWarningCache=t,nf=function(){function n(o,u,s,l,f,c){if(c!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},nf}var r0;function JR(){if(r0)return ma.exports;if(r0=1,process.env.NODE_ENV!=="production"){var e=hO(),t=!0;ma.exports=XR()(e.isElement,t)}else ma.exports=ZR()();return ma.exports}var QR=JR();const we=Se(QR);var eD=Object.getOwnPropertyNames,tD=Object.getOwnPropertySymbols,rD=Object.prototype.hasOwnProperty;function n0(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ba(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function nD(e){return e!=null?e[Symbol.toStringTag]:void 0}function i0(e){return eD(e).concat(tD(e))}var iD=Object.hasOwn||(function(e,t){return rD.call(e,t)});function Nr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var aD="__v",oD="__o",uD="_owner",a0=Object.getOwnPropertyDescriptor,o0=Object.keys;function sD(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function lD(e,t){return Nr(e.getTime(),t.getTime())}function cD(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function fD(e,t){return e===t}function u0(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var l=t.entries(),f=!1,c=0;(u=l.next())&&!u.done;){if(i[c]){c++;continue}var d=o.value,p=u.value;if(r.equals(d[0],p[0],s,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;s++}return!0}var dD=Nr;function pD(e,t,r){var n=o0(e),i=n.length;if(o0(t).length!==i)return!1;for(;i-- >0;)if(!yO(e,t,r,n[i]))return!1;return!0}function Kn(e,t,r){var n=i0(e),i=n.length;if(i0(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!yO(e,t,r,a)||(o=a0(e,a),u=a0(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function hD(e,t){return Nr(e.valueOf(),t.valueOf())}function vD(e,t){return e.source===t.source&&e.flags===t.flags}function s0(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),l=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1}return!0}function yD(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function mD(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function yO(e,t,r,n){return(n===uD||n===oD||n===aD)&&(e.$$typeof||t.$$typeof)?!0:iD(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var gD="[object Arguments]",bD="[object Boolean]",xD="[object Date]",wD="[object Error]",SD="[object Map]",OD="[object Number]",_D="[object Object]",AD="[object RegExp]",PD="[object Set]",ED="[object String]",TD="[object URL]",CD=Array.isArray,l0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,c0=Object.assign,MD=Object.prototype.toString.call.bind(Object.prototype.toString);function jD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual,p=e.unknownTagComparators;return function(v,h,b){if(v===h)return!0;if(v==null||h==null)return!1;var w=typeof v;if(w!==typeof h)return!1;if(w!=="object")return w==="number"?o(v,h,b):w==="function"?i(v,h,b):!1;var g=v.constructor;if(g!==h.constructor)return!1;if(g===Object)return u(v,h,b);if(CD(v))return t(v,h,b);if(l0!=null&&l0(v))return c(v,h,b);if(g===Date)return r(v,h,b);if(g===RegExp)return l(v,h,b);if(g===Map)return a(v,h,b);if(g===Set)return f(v,h,b);var S=MD(v);if(S===xD)return r(v,h,b);if(S===AD)return l(v,h,b);if(S===SD)return a(v,h,b);if(S===PD)return f(v,h,b);if(S===_D)return typeof v.then!="function"&&typeof h.then!="function"&&u(v,h,b);if(S===TD)return d(v,h,b);if(S===wD)return n(v,h,b);if(S===gD)return u(v,h,b);if(S===bD||S===OD||S===ED)return s(v,h,b);if(p){var m=p[S];if(!m){var x=nD(v);x&&(m=p[x])}if(m)return m(v,h,b)}return!1}}function ID(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Kn:sD,areDatesEqual:lD,areErrorsEqual:cD,areFunctionsEqual:fD,areMapsEqual:n?n0(u0,Kn):u0,areNumbersEqual:dD,areObjectsEqual:n?Kn:pD,arePrimitiveWrappersEqual:hD,areRegExpsEqual:vD,areSetsEqual:n?n0(s0,Kn):s0,areTypedArraysEqual:n?Kn:yD,areUrlsEqual:mD,unknownTagComparators:void 0};if(r&&(i=c0({},i,r(i))),t){var a=ba(i.areArraysEqual),o=ba(i.areMapsEqual),u=ba(i.areObjectsEqual),s=ba(i.areSetsEqual);i=c0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function $D(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function kD(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,l){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(s,l,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,l){return r(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,l){return r(s,l,o)}}var RD=dr();dr({strict:!0});dr({circular:!0});dr({circular:!0,strict:!0});dr({createInternalComparator:function(){return Nr}});dr({strict:!0,createInternalComparator:function(){return Nr}});dr({circular:!0,createInternalComparator:function(){return Nr}});dr({circular:!0,createInternalComparator:function(){return Nr},strict:!0});function dr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=ID(e),s=jD(u),l=n?n(s):$D(s);return kD({circular:r,comparator:s,createState:i,equals:l,strict:o})}function DD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function f0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):DD(i)};requestAnimationFrame(n)}function yd(e){"@babel/helpers - typeof";return yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yd(e)}function ND(e){return FD(e)||BD(e)||qD(e)||LD()}function LD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
100
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qD(e,t){if(e){if(typeof e=="string")return d0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d0(e,t)}}function d0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FD(e){if(Array.isArray(e))return e}function zD(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=ND(o),s=u[0],l=u.slice(1);if(typeof s=="number"){f0(i.bind(null,l),s);return}i(s),f0(i.bind(null,l));return}yd(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){mO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mO(e,t,r){return t=UD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UD(e){var t=WD(e,"string");return Ri(t)==="symbol"?t:String(t)}function WD(e,t){if(Ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ri(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},GD=function(t){return t},KD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},oi=function(t,r){return Object.keys(r).reduce(function(n,i){return h0(h0({},n),{},mO({},i,t(i,r[i])))},{})},v0=function(t,r,n){return t.map(function(i){return"".concat(KD(i)," ").concat(r,"ms ").concat(n)}).join(",")},VD=process.env.NODE_ENV!=="production",Ja=function(t,r,n,i,a,o,u,s){if(VD&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,a,o,u,s],f=0;console.warn(r.replace(/%s/g,function(){return l[f++]}))}};function YD(e,t){return JD(e)||ZD(e,t)||gO(e,t)||XD()}function XD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function JD(e){if(Array.isArray(e))return e}function QD(e){return rN(e)||tN(e)||gO(e)||eN()}function eN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
102
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gO(e,t){if(e){if(typeof e=="string")return md(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return md(e,t)}}function tN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rN(e){if(Array.isArray(e))return md(e)}function md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qa=1e-4,bO=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},xO=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},y0=function(t,r){return function(n){var i=bO(t,r);return xO(i,n)}},nN=function(t,r){return function(n){var i=bO(t,r),a=[].concat(QD(i.map(function(o,u){return o*u}).slice(1)),[0]);return xO(a,n)}},m0=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var l=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=YD(l,4);i=f[0],a=f[1],o=f[2],u=f[3]}else Ja(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Ja([i,o,a,u].every(function(h){return typeof h=="number"&&h>=0&&h<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var c=y0(i,o),d=y0(a,u),p=nN(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var w=b>1?1:b,g=w,S=0;S<8;++S){var m=c(g)-w,x=p(g);if(Math.abs(m-w)<Qa||x<Qa)return d(g);g=y(g-m/x)}return d(g)};return v.isStepper=!1,v},iN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,c,d){var p=-(f-c)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-c)<Qa&&Math.abs(v)<Qa?[c,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},aN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return m0(i);case"spring":return iN();default:if(i.split("(")[0]==="cubic-bezier")return m0(i);Ja(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Ja(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Di(e){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(e)}function g0(e){return sN(e)||uN(e)||wO(e)||oN()}function oN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sN(e){if(Array.isArray(e))return bd(e)}function b0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(r),!0).forEach(function(n){gd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gd(e,t,r){return t=lN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lN(e){var t=cN(e,"string");return Di(t)==="symbol"?t:String(t)}function cN(e,t){if(Di(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Di(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fN(e,t){return hN(e)||pN(e,t)||wO(e,t)||dN()}function dN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wO(e,t){if(e){if(typeof e=="string")return bd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bd(e,t)}}function bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function hN(e){if(Array.isArray(e))return e}var eo=function(t,r,n){return t+(r-t)*n},xd=function(t){var r=t.from,n=t.to;return r!==n},vN=function e(t,r,n){var i=oi(function(a,o){if(xd(o)){var u=t(o.from,o.to,o.velocity),s=fN(u,2),l=s[0],f=s[1];return We(We({},o),{},{from:l,velocity:f})}return o},r);return n<1?oi(function(a,o){return xd(o)?We(We({},o),{},{velocity:eo(o.velocity,i[a].velocity,n),from:eo(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const yN=(function(e,t,r,n,i){var a=HD(e,t),o=a.reduce(function(h,b){return We(We({},h),{},gd({},b,[e[b],t[b]]))},{}),u=a.reduce(function(h,b){return We(We({},h),{},gd({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,l,f,c=function(){return null},d=function(){return oi(function(b,w){return w.from},u)},p=function(){return!Object.values(u).filter(xd).length},y=function(b){l||(l=b);var w=b-l,g=w/r.dt;u=vN(r,u,g),i(We(We(We({},e),t),d())),l=b,p()||(s=requestAnimationFrame(c))},v=function(b){f||(f=b);var w=(b-f)/n,g=oi(function(m,x){return eo.apply(void 0,g0(x).concat([r(w)]))},o);if(i(We(We(We({},e),t),g)),w<1)s=requestAnimationFrame(c);else{var S=oi(function(m,x){return eo.apply(void 0,g0(x).concat([r(1)]))},o);i(We(We(We({},e),t),S))}};return c=r.isStepper?y:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(s)}}});function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}var mN=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function gN(e,t){if(e==null)return{};var r=bN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function af(e){return ON(e)||SN(e)||wN(e)||xN()}function xN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wN(e,t){if(e){if(typeof e=="string")return wd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wd(e,t)}}function SN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ON(e){if(Array.isArray(e))return wd(e)}function wd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){Jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jn(e,t,r){return t=SO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SO(n.key),n)}}function PN(e,t,r){return t&&AN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SO(e){var t=EN(e,"string");return cn(t)==="symbol"?t:String(t)}function EN(e,t){if(cn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sd(e,t)}function Sd(e,t){return Sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sd(e,t)}function CN(e){var t=MN();return function(){var n=to(e),i;if(t){var a=to(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Od(this,i)}}function Od(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _d(e)}function _d(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}var Ct=(function(e){TN(r,e);var t=CN(r);function r(n,i){var a;_N(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,l=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(_d(a)),a.changeStyle=a.changeStyle.bind(_d(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Od(a);if(c&&c.length)a.state={style:c[0].style};else if(l){if(typeof d=="function")return a.state={style:l},Od(a);a.state={style:s?Jn({},s,l):l}}else a.state={style:{}};return a}return PN(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,l=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(u){if(!o){var p={style:s?Jn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(RD(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||l?c:i.to;if(this.state&&d){var h={style:s?Jn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(Ot(Ot({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,l=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=yN(o,u,aN(l),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,l=o[0],f=l.style,c=l.duration,d=c===void 0?0:c,p=function(v,h,b){if(b===0)return v;var w=h.duration,g=h.easing,S=g===void 0?"ease":g,m=h.style,x=h.properties,_=h.onAnimationEnd,A=b>0?o[b-1]:h,E=x||Object.keys(m);if(typeof S=="function"||S==="spring")return[].concat(af(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:w,easing:S}),w]);var M=v0(E,w,S),P=Ot(Ot(Ot({},A.style),m),{},{transition:M});return[].concat(af(v),[P,w,_]).filter(GD)};return this.manager.start([s].concat(af(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=zD());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,l=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Jn({},u,s):s,h=v0(Object.keys(v),o,l);y.start([f,a,Ot(Ot({},v),{},{transition:h}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=gN(i,mN),l=O.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||l===0||o<=0)return a;var c=function(p){var y=p.props,v=y.style,h=v===void 0?{}:v,b=y.className,w=O.cloneElement(p,Ot(Ot({},s),{},{style:Ot(Ot({},h),f),className:b}));return w};return l===1?c(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(d){return c(d)}))}}]),r})(O.PureComponent);Ct.displayName="Animate";Ct.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ct.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};function Ni(e){"@babel/helpers - typeof";return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ro.apply(this,arguments)}function jN(e,t){return RN(e)||kN(e,t)||$N(e,t)||IN()}function IN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $N(e,t){if(e){if(typeof e=="string")return w0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w0(e,t)}}function w0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function RN(e){if(Array.isArray(e))return e}function S0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(r),!0).forEach(function(n){DN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DN(e,t,r){return t=NN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NN(e){var t=LN(e,"string");return Ni(t)=="symbol"?t:t+""}function LN(e,t){if(Ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _0=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(t+s*c[0],",").concat(r)),f+="L ".concat(t+n-s*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,`,
107
- `).concat(t+n,",").concat(r+u*c[1])),f+="L ".concat(t+n,",").concat(r+i-u*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,`,
108
- `).concat(t+n-s*c[2],",").concat(r+i)),f+="L ".concat(t+s*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,`,
109
- `).concat(t,",").concat(r+i-u*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
110
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+s*y,",").concat(r,`
111
- L `).concat(t+n-s*y,",").concat(r,`
112
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+u*y,`
113
- L `).concat(t+n,",").concat(r+i-u*y,`
114
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-s*y,",").concat(r+i,`
115
- L `).concat(t+s*y,",").concat(r+i,`
116
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},qN=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var l=Math.min(a,a+u),f=Math.max(a,a+u),c=Math.min(o,o+s),d=Math.max(o,o+s);return n>=l&&n<=f&&i>=c&&i<=d}return!1},BN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Zp=function(t){var r=O0(O0({},BN),t),n=O.useRef(),i=O.useState(-1),a=jN(i,2),o=a[0],u=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&u(S)}catch{}},[]);var s=r.x,l=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isAnimationActive,w=r.isUpdateAnimationActive;if(s!==+s||l!==+l||f!==+f||c!==+c||f===0||c===0)return null;var g=fe("recharts-rectangle",p);return w?O.createElement(Ct,{canBegin:o>0,from:{width:f,height:c,x:s,y:l},to:{width:f,height:c,x:s,y:l},duration:v,animationEasing:y,isActive:w},function(S){var m=S.width,x=S.height,_=S.x,A=S.y;return O.createElement(Ct,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:b,easing:y},O.createElement("path",ro({},se(r,!0),{className:g,d:_0(_,A,m,x,d),ref:n})))}):O.createElement("path",ro({},se(r,!0),{className:g,d:_0(s,l,f,c,d)}))};function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ad.apply(this,arguments)}var Ho=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=fe("recharts-dot",a);return r===+r&&n===+n&&i===+i?yt.createElement("circle",Ad({},se(t,!1),_a(t),{className:o,cx:r,cy:n,r:i})):null};function Li(e){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(e)}var FN=["x","y","top","left","width","height","className"];function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(this,arguments)}function A0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(r),!0).forEach(function(n){UN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UN(e,t,r){return t=WN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WN(e){var t=HN(e,"string");return Li(t)=="symbol"?t:t+""}function HN(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GN(e,t){if(e==null)return{};var r=KN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VN=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},YN=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,l=s===void 0?0:s,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=GN(t,FN),h=zN({x:n,y:a,top:u,left:l,width:c,height:p},v);return!V(n)||!V(a)||!V(c)||!V(p)||!V(u)||!V(l)?null:O.createElement("path",Pd({},se(h,!0),{className:fe("recharts-cross",y),d:VN(n,a,c,p,u,l)}))},of,P0;function XN(){if(P0)return of;P0=1;var e=uw(),t=e(Object.getPrototypeOf,Object);return of=t,of}var uf,E0;function ZN(){if(E0)return uf;E0=1;var e=Zt(),t=XN(),r=Jt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function l(f){if(!r(f)||e(f)!=n)return!1;var c=t(f);if(c===null)return!0;var d=u.call(c,"constructor")&&c.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return uf=l,uf}var JN=ZN();const QN=Se(JN);var sf,T0;function e2(){if(T0)return sf;T0=1;var e=Zt(),t=Jt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return sf=n,sf}var t2=e2();const r2=Se(t2);function qi(e){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(e)}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},no.apply(this,arguments)}function n2(e,t){return u2(e)||o2(e,t)||a2(e,t)||i2()}function i2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
117
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a2(e,t){if(e){if(typeof e=="string")return C0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C0(e,t)}}function C0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function u2(e){if(Array.isArray(e))return e}function M0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(r),!0).forEach(function(n){s2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s2(e,t,r){return t=l2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l2(e){var t=c2(e,"string");return qi(t)=="symbol"?t:t+""}function c2(e,t){if(qi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I0=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},f2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d2=function(t){var r=j0(j0({},f2),t),n=O.useRef(),i=O.useState(-1),a=n2(i,2),o=a[0],u=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var g=n.current.getTotalLength();g&&u(g)}catch{}},[]);var s=r.x,l=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||l!==+l||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var w=fe("recharts-trapezoid",p);return b?O.createElement(Ct,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:l},to:{upperWidth:f,lowerWidth:c,height:d,x:s,y:l},duration:v,animationEasing:y,isActive:b},function(g){var S=g.upperWidth,m=g.lowerWidth,x=g.height,_=g.x,A=g.y;return O.createElement(Ct,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},O.createElement("path",no({},se(r,!0),{className:w,d:I0(_,A,S,m,x),ref:n})))}):O.createElement("g",null,O.createElement("path",no({},se(r,!0),{className:w,d:I0(s,l,f,c,d)})))},p2=["option","shapeType","propTransformer","activeClassName","isActive"];function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function h2(e,t){if(e==null)return{};var r=v2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(r),!0).forEach(function(n){y2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y2(e,t,r){return t=m2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m2(e){var t=g2(e,"string");return Bi(t)=="symbol"?t:t+""}function g2(e,t){if(Bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b2(e,t){return io(io({},t),e)}function x2(e,t){return e==="symbols"}function k0(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(Zp,r);case"trapezoid":return O.createElement(d2,r);case"sector":return O.createElement(pO,r);case"symbols":if(x2(t))return O.createElement(ko,r);break;default:return null}}function w2(e){return O.isValidElement(e)?e.props:e}function Ed(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?b2:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=h2(e,p2),l;if(O.isValidElement(t))l=O.cloneElement(t,io(io({},s),w2(t)));else if(le(t))l=t(s);else if(QN(t)&&!r2(t)){var f=i(t,s);l=O.createElement(k0,{shapeType:r,elementProps:f})}else{var c=s;l=O.createElement(k0,{shapeType:r,elementProps:c})}return u?O.createElement(ye,{className:o},l):l}function Go(e,t){return t!=null&&"trapezoids"in e.props}function Ko(e,t){return t!=null&&"sectors"in e.props}function Fi(e,t){return t!=null&&"points"in e.props}function S2(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function O2(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function _2(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function A2(e,t){var r;return Go(e,t)?r=S2:Ko(e,t)?r=O2:Fi(e,t)&&(r=_2),r}function P2(e,t){var r;return Go(e,t)?r="trapezoids":Ko(e,t)?r="sectors":Fi(e,t)&&(r="points"),r}function E2(e,t){if(Go(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ko(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Fi(e,t)?t.payload:{}}function T2(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=P2(r,t),a=E2(r,t),o=n.filter(function(s,l){var f=Cr(a,s),c=r.props[i].filter(function(y){var v=A2(r,t);return v(y,t)}),d=r.props[i].indexOf(c[c.length-1]),p=l===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}function zi(e){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(e)}function R0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R0(Object(r),!0).forEach(function(n){OO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OO(e,t,r){return t=C2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C2(e){var t=M2(e,"string");return zi(t)=="symbol"?t:t+""}function M2(e,t){if(zi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j2=["Webkit","Moz","O","ms"],I2=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=j2.reduce(function(a,o){return D0(D0({},a),{},OO({},o+n,r))},{});return i[t]=r,i};function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ao.apply(this,arguments)}function N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){ut(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AO(n.key),n)}}function k2(e,t,r){return t&&L0(e.prototype,t),r&&L0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R2(e,t,r){return t=oo(t),D2(e,_O()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function D2(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N2(e)}function N2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_O=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function L2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Td(e,t)}function Td(e,t){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Td(e,t)}function ut(e,t,r){return t=AO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AO(e){var t=q2(e,"string");return fn(t)=="symbol"?t:t+""}function q2(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B2=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,l=ii().domain(fi(0,s)).range([a,a+o-u]),f=l.domain().map(function(c){return l(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:f}},q0=function(t){return t.changedTouches&&!!t.changedTouches.length},dn=(function(e){function t(r){var n;return $2(this,t),n=R2(this,t,[r]),ut(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ut(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ut(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),ut(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ut(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ut(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ut(n,"handleSlideDragStart",function(i){var a=q0(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return L2(t,e),k2(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,l=u.data,f=l.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=qe(a[n],u,n);return le(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,l=s.x,f=s.width,c=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,l+f-c-u,l+f-c-o):v<0&&(v=Math.max(v,l-o,l-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=q0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,l=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,b={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,c+d-p-l):w<0&&(w=Math.max(w,c-l)),b[o]=l+w;var g=this.getIndex(b),S=g.startIndex,m=g.endIndex,x=function(){var A=h.length-1;return o==="startX"&&(u>s?S%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:S%v===0)||u>s&&m===A};this.setState(ut(ut({},o,l+w),"brushMoveStartX",n.pageX),function(){y&&x()&&y(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,l=o.endX,f=this.state[i],c=u.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=l||i==="endX"&&p<=s||this.setState(ut({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,l=n.stroke;return O.createElement("rect",{stroke:l,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,l=n.children,f=n.padding,c=O.Children.only(l);return c?O.cloneElement(c,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,l=s.y,f=s.travellerWidth,c=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,b=Math.max(n,this.props.x),w=lf(lf({},se(this.props,!1)),{},{x:b,y:l,width:f,height:c}),g=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return O.createElement(ye,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,l=a.travellerWidth,f=Math.min(n,i)+l,c=Math.max(Math.abs(i-n)-l,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:c,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,l=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:l};return O.createElement(ye,{className:"recharts-brush-texts"},O.createElement(Ra,ao({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+u/2},y),this.getTextOfTick(i)),O.createElement(Ra,ao({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,l=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,b=d.isTravellerMoving,w=d.isTravellerFocused;if(!i||!i.length||!V(u)||!V(s)||!V(l)||!V(f)||l<=0||f<=0)return null;var g=fe("recharts-brush",a),S=O.Children.count(o)===1,m=I2("userSelect","none");return O.createElement(ye,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||b||w||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,l=Math.floor(a+u/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),O.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):le(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,l=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return lf({prevData:a,prevTravellerWidth:s,prevUpdateId:l,prevX:u,prevWidth:o},a&&a.length?B2({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:l,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(O.PureComponent);ut(dn,"displayName","Brush");ut(dn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var cf,B0;function F2(){if(B0)return cf;B0=1;var e=yp();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return cf=t,cf}var ff,F0;function z2(){if(F0)return ff;F0=1;var e=tw(),t=sr(),r=F2(),n=Qe(),i=Ji();function a(o,u,s){var l=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),l(o,t(u,3))}return ff=a,ff}var U2=z2();const W2=Se(U2);var Lt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},df,z0;function H2(){if(z0)return df;z0=1;var e=hw();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return df=t,df}var pf,U0;function G2(){if(U0)return pf;U0=1;var e=H2(),t=dw(),r=sr();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,l){e(o,s,a(u,s,l))}),o}return pf=n,pf}var K2=G2();const V2=Se(K2);var hf,W0;function Y2(){if(W0)return hf;W0=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return hf=e,hf}var vf,H0;function X2(){if(H0)return vf;H0=1;var e=yp();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return vf=t,vf}var yf,G0;function Z2(){if(G0)return yf;G0=1;var e=Y2(),t=X2(),r=sr(),n=Qe(),i=Ji();function a(o,u,s){var l=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),l(o,r(u,3))}return yf=a,yf}var J2=Z2();const PO=Se(J2);var Q2=["x","y"];function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cd.apply(this,arguments)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){eL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eL(e,t,r){return t=tL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tL(e){var t=rL(e,"string");return pn(t)=="symbol"?t:t+""}function rL(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nL(e,t){if(e==null)return{};var r=iL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aL(e,t){var r=e.x,n=e.y,i=nL(e,Q2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),l="".concat(t.height||i.height),f=parseInt(l,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Vn(Vn(Vn(Vn(Vn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function V0(e){return O.createElement(Ed,Cd({shapeType:"rectangle",propTransformer:aL,activeClassName:"recharts-active-bar"},e))}var oL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=V(n)||SE(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?rt(!1,"minPointSize callback function received a value with type of ".concat(pn(n),". Currently only numbers or null/undefined are supported.")):rt()),r)}},uL=["value","background"],EO;function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function sL(e,t){if(e==null)return{};var r=lL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uo.apply(this,arguments)}function Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(r),!0).forEach(function(n){ir(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CO(n.key),n)}}function fL(e,t,r){return t&&X0(e.prototype,t),r&&X0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dL(e,t,r){return t=so(t),pL(e,TO()?Reflect.construct(t,r||[],so(e).constructor):t.apply(e,r))}function pL(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hL(e)}function hL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TO=function(){return!!e})()}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},so(e)}function vL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Md(e,t)}function Md(e,t){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Md(e,t)}function ir(e,t,r){return t=CO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CO(e){var t=yL(e,"string");return hn(t)=="symbol"?t:t+""}function yL(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dn=(function(e){function t(){var r;cL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dL(this,t,[].concat(i)),ir(r,"state",{isAnimationFinished:!1}),ir(r,"id",kr("recharts-bar-")),ir(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),ir(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return vL(t,e),fL(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,l=a.activeBar,f=se(this.props,!1);return n&&n.map(function(c,d){var p=d===s,y=p?l:o,v=ke(ke(ke({},f),c),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(ye,uo({className:"recharts-bar-rectangle"},di(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),O.createElement(V0,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return O.createElement(Ct,{begin:s,duration:l,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,b){var w=d&&d[b];if(w){var g=je(w.x,h.x),S=je(w.y,h.y),m=je(w.width,h.width),x=je(w.height,h.height);return ke(ke({},h),{},{x:g(y),y:S(y),width:m(y),height:x(y)})}if(o==="horizontal"){var _=je(0,h.height),A=_(y);return ke(ke({},h),{},{y:h.y+h.height-A,height:A})}var E=je(0,h.width),M=E(y);return ke(ke({},h),{},{width:M})});return O.createElement(ye,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Cr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=se(this.props.background,!1);return a.map(function(l,f){l.value;var c=l.background,d=sL(l,uL);if(!c)return null;var p=ke(ke(ke(ke(ke({},d),{},{fill:"#eee"},c),s),di(n.props,l,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return O.createElement(V0,uo({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,l=a.layout,f=a.children,c=nt(f,Rn);if(!c)return null;var d=l==="vertical"?o[0].height/2:o[0].width/2,p=function(h,b){var w=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:w,errorVal:qe(h,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(ye,y,c.map(function(v){return O.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:l,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,l=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=fe("recharts-bar",o),w=u&&u.allowDataOverflow,g=s&&s.allowDataOverflow,S=w||g,m=oe(v)?this.id:v;return O.createElement(ye,{className:b},w||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(m)},O.createElement("rect",{x:w?l:l-c/2,y:g?f:f-d/2,width:w?c:c*2,height:g?d:d*2}))):null,O.createElement(ye,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,m),(!p||h)&&Nt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);EO=Dn;ir(Dn,"displayName","Bar");ir(Dn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!lr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ir(Dn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=kk(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?ke(ke({},v),r.props):r.props,b=h.dataKey,w=h.children,g=h.minPointSize,S=y==="horizontal"?o:a,m=l?S.scale.domain():null,x=zk({numericAxis:S}),_=nt(w,_p),A=c.map(function(E,M){var P,T,j,k,$,R;l?P=Rk(l[f+M],m):(P=qe(E,b),Array.isArray(P)||(P=[x,P]));var B=oL(g,EO.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var D,F=[o.scale(P[0]),o.scale(P[1])],I=F[0],N=F[1];T=Mb({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:E,index:M}),j=(D=N??I)!==null&&D!==void 0?D:void 0,k=p.size;var z=I-N;if($=Number.isNaN(z)?0:z,R={x:T,y:o.y,width:k,height:o.height},Math.abs(B)>0&&Math.abs($)<Math.abs(B)){var H=Tt($||B)*(Math.abs(B)-Math.abs($));j-=H,$+=H}}else{var X=[a.scale(P[0]),a.scale(P[1])],J=X[0],ee=X[1];if(T=J,j=Mb({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:E,index:M}),k=ee-J,$=p.size,R={x:a.x,y:j,width:a.width,height:$},Math.abs(B)>0&&Math.abs(k)<Math.abs(B)){var ne=Tt(k||B)*(Math.abs(B)-Math.abs(k));k+=ne}}return ke(ke(ke({},E),{},{x:T,y:j,width:k,height:$,value:l?P:P[1],payload:E,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[cO(r,E)],tooltipPosition:{x:T+k/2,y:j+$/2}})});return ke({data:A,layout:y},d)});function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function mL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MO(n.key),n)}}function gL(e,t,r){return t&&Z0(e.prototype,t),r&&Z0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(r),!0).forEach(function(n){Vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vo(e,t,r){return t=MO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MO(e){var t=bL(e,"string");return Ui(t)=="symbol"?t:t+""}function bL(e,t){if(Ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xL=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,l=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!st(l,Dn);return f.reduce(function(p,y){var v=r[y],h=v.orientation,b=v.domain,w=v.padding,g=w===void 0?{}:w,S=v.mirror,m=v.reversed,x="".concat(h).concat(S?"Mirror":""),_,A,E,M,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],j=1/0,k=v.categoricalDomain.sort(PE);if(k.forEach(function(X,J){J>0&&(j=Math.min((X||0)-(k[J-1]||0),j))}),Number.isFinite(j)){var $=j/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*R/2),v.padding==="no-gap"){var B=Tr(t.barCategoryGap,$*R),D=$*R/2;_=D-B-(D-B)/R*B}}}i==="xAxis"?A=[n.left+(g.left||0)+(_||0),n.left+n.width-(g.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(_||0),n.top+n.height-(g.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var F=Ik(v,a,d),I=F.scale,N=F.realScaleType;I.domain(b).range(A),$k(I);var z=Fk(I,At(At({},v),{},{realScaleType:N}));i==="xAxis"?(P=h==="top"&&!S||h==="bottom"&&S,E=n.left,M=c[x]-P*v.height):i==="yAxis"&&(P=h==="left"&&!S||h==="right"&&S,E=c[x]-P*v.width,M=n.top);var H=At(At(At({},v),z),{},{realScaleType:N,x:E,y:M,scale:I,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return H.bandSize=Ya(H,z),!v.hide&&i==="xAxis"?c[x]+=(P?-1:1)*H.height:v.hide||(c[x]+=(P?-1:1)*H.width),At(At({},p),{},Vo({},y,H))},{})},jO=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},wL=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return jO({x:r,y:n},{x:i,y:a})},IO=(function(){function e(t){mL(this,e),this.scale=t}return gL(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Vo(IO,"EPS",1e-4);var Jp=function(t){var r=Object.keys(t).reduce(function(n,i){return At(At({},n),{},Vo({},i,IO.create(t[i])))},{});return At(At({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return V2(i,function(s,l){return r[l].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return PO(i,function(a,o){return r[o].isInRange(a)})}})};function SL(e){return(e%180+180)%180}var OL=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=SL(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},mf,Q0;function _L(){if(Q0)return mf;Q0=1;var e=sr(),t=Xi(),r=Zi();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var l=e(o,3);a=r(a),o=function(c){return l(s[c],c,s)}}var f=i(a,o,u);return f>-1?s[l?a[f]:f]:void 0}}return mf=n,mf}var gf,ex;function AL(){if(ex)return gf;ex=1;var e=Xw(),t=sr(),r=np(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var l=u==null?0:r(u);return l<0&&(l=n(s+l,0)),e(a,t(o,3),l)}return gf=i,gf}var bf,tx;function PL(){if(tx)return bf;tx=1;var e=_L(),t=AL(),r=e(t);return bf=r,bf}var EL=PL();const TL=Se(EL);var CL=Zx();const ML=Se(CL);var jL=ML(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}var Qp=O.createContext(void 0),eh=O.createContext(void 0),$O=O.createContext(void 0),kO=O.createContext({}),RO=O.createContext(void 0),DO=O.createContext(0),NO=O.createContext(0),rx=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,l=t.height,f=jL(a);return O.createElement(Qp.Provider,{value:n},O.createElement(eh.Provider,{value:i},O.createElement(kO.Provider,{value:a},O.createElement($O.Provider,{value:f},O.createElement(RO.Provider,{value:o},O.createElement(DO.Provider,{value:l},O.createElement(NO.Provider,{value:s},u)))))))},IL=function(){return O.useContext(RO)};function LO(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var qO=function(t){var r=O.useContext(Qp);r==null&&(process.env.NODE_ENV!=="production"?rt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):rt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?rt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(lo(t),"]. ").concat(LO(r))):rt()),n},$L=function(){var t=O.useContext(Qp);return rr(t)},kL=function(){var t=O.useContext(eh),r=TL(t,function(n){return PO(n.domain,Number.isFinite)});return r||rr(t)},BO=function(t){var r=O.useContext(eh);r==null&&(process.env.NODE_ENV!=="production"?rt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):rt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?rt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(lo(t),"]. ").concat(LO(r))):rt()),n},RL=function(){var t=O.useContext($O);return t},DL=function(){return O.useContext(kO)},th=function(){return O.useContext(NO)},rh=function(){return O.useContext(DO)};function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function NL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zO(n.key),n)}}function qL(e,t,r){return t&&LL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BL(e,t,r){return t=co(t),FL(e,FO()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function FL(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zL(e)}function zL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FO=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function UL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jd(e,t)}function jd(e,t){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jd(e,t)}function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ix(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nh(e,t,r){return t=zO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e){var t=WL(e,"string");return vn(t)=="symbol"?t:t+""}function WL(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function HL(e,t){return YL(e)||VL(e,t)||KL(e,t)||GL()}function GL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
118
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KL(e,t){if(e){if(typeof e=="string")return ax(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ax(e,t)}}function ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function YL(e){if(Array.isArray(e))return e}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Id.apply(this,arguments)}var XL=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):le(t)?n=t(r):n=O.createElement("line",Id({},r,{className:"recharts-reference-line-line"})),n},ZL=function(t,r,n,i,a,o,u,s,l){var f=a.x,c=a.y,d=a.width,p=a.height;if(n){var y=l.y,v=t.y.apply(y,{position:o});if(Lt(l,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var b=l.x,w=t.x.apply(b,{position:o});if(Lt(l,"discard")&&!t.x.isInRange(w))return null;var g=[{x:w,y:c+p},{x:w,y:c}];return u==="top"?g.reverse():g}if(i){var S=l.segment,m=S.map(function(x){return t.apply(x,{position:o})});return Lt(l,"discard")&&W2(m,function(x){return!t.isInRange(x)})?null:m}return null};function JL(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,l=IL(),f=qO(i),c=BO(a),d=RL();if(!l||!d)return null;Gt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Jp({x:f.scale,y:c.scale}),y=Le(t),v=Le(r),h=n&&n.length===2,b=ZL(p,y,v,h,d,e.position,f.orientation,c.orientation,e);if(!b)return null;var w=HL(b,2),g=w[0],S=g.x,m=g.y,x=w[1],_=x.x,A=x.y,E=Lt(e,"hidden")?"url(#".concat(l,")"):void 0,M=ix(ix({clipPath:E},se(e,!0)),{},{x1:S,y1:m,x2:_,y2:A});return O.createElement(ye,{className:fe("recharts-reference-line",u)},XL(o,M),Ye.renderCallByParent(e,wL({x1:S,y1:m,x2:_,y2:A})))}var Yo=(function(e){function t(){return NL(this,t),BL(this,t,arguments)}return UL(t,e),qL(t,[{key:"render",value:function(){return O.createElement(JL,this.props)}}])})(O.Component);nh(Yo,"displayName","ReferenceLine");nh(Yo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d.apply(this,arguments)}function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){Xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WO(n.key),n)}}function tq(e,t,r){return t&&eq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rq(e,t,r){return t=fo(t),nq(e,UO()?Reflect.construct(t,r||[],fo(e).constructor):t.apply(e,r))}function nq(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iq(e)}function iq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UO=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fo(e)}function aq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kd(e,t)}function kd(e,t){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kd(e,t)}function Xo(e,t,r){return t=WO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WO(e){var t=oq(e,"string");return yn(t)=="symbol"?t:t+""}function oq(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Jp({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return Lt(t,"discard")&&!o.isInRange(u)?null:u},Zo=(function(e){function t(){return QL(this,t),rq(this,t,arguments)}return aq(t,e),tq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,l=Le(i),f=Le(a);if(Gt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!f)return null;var c=uq(this.props);if(!c)return null;var d=c.x,p=c.y,y=this.props,v=y.shape,h=y.className,b=Lt(this.props,"hidden")?"url(#".concat(s,")"):void 0,w=ux(ux({clipPath:b},se(this.props,!0)),{},{cx:d,cy:p});return O.createElement(ye,{className:fe("recharts-reference-dot",h)},t.renderDot(v,w),Ye.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);Xo(Zo,"displayName","ReferenceDot");Xo(Zo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Xo(Zo,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):le(e)?r=e(t):r=O.createElement(Ho,$d({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rd.apply(this,arguments)}function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sx(Object(r),!0).forEach(function(n){Jo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GO(n.key),n)}}function cq(e,t,r){return t&&lq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fq(e,t,r){return t=po(t),dq(e,HO()?Reflect.construct(t,r||[],po(e).constructor):t.apply(e,r))}function dq(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pq(e)}function pq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!e})()}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},po(e)}function hq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dd(e,t)}function Dd(e,t){return Dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dd(e,t)}function Jo(e,t,r){return t=GO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){var t=vq(e,"string");return mn(t)=="symbol"?t:t+""}function vq(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,l=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=Jp({x:f.scale,y:c.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(l,{position:"end"}):d.y.rangeMax};return Lt(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:jO(p,y)},Qo=(function(e){function t(){return sq(this,t),fq(this,t,arguments)}return hq(t,e),cq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,l=n.alwaysShow,f=n.clipPathId;Gt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Le(i),d=Le(a),p=Le(o),y=Le(u),v=this.props.shape;if(!c&&!d&&!p&&!y&&!v)return null;var h=yq(c,d,p,y,this.props);if(!h&&!v)return null;var b=Lt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return O.createElement(ye,{className:fe("recharts-reference-area",s)},t.renderRect(v,lx(lx({clipPath:b},se(this.props,!0)),h)),Ye.renderCallByParent(this.props,h))}}])})(O.Component);Jo(Qo,"displayName","ReferenceArea");Jo(Qo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jo(Qo,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):le(e)?r=e(t):r=O.createElement(Zp,Rd({},t,{className:"recharts-reference-area-rect"})),r});function KO(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function mq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return OL(n,r)}function gq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ho(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function bq(e,t){return KO(e,t+1)}function xq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,l=1,f=o,c=function(){var y=n==null?void 0:n[s];if(y===void 0)return{v:KO(n,l)};var v=s,h,b=function(){return h===void 0&&(h=r(y,v)),h},w=y.coordinate,g=s===0||ho(e,w,b,f,u);g||(s=0,f=o,l+=1),g&&(f=w+e*(b()/2+i),s+=l)},d;l<=a.length;)if(d=c(),d)return d.v;return[]}function Wi(e){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(e)}function cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cx(Object(r),!0).forEach(function(n){wq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wq(e,t,r){return t=Sq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sq(e){var t=Oq(e,"string");return Wi(t)=="symbol"?t:t+""}function Oq(e,t){if(Wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _q(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,l=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=Ve(Ve({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=Ve(Ve({},p),{},{tickCoord:p.coordinate});var b=ho(e,p.tickCoord,v,u,s);b&&(s=p.tickCoord-e*(v()/2+i),a[d]=Ve(Ve({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)l(f);return a}function Aq(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,l=t.end;if(a){var f=n[u-1],c=r(f,u-1),d=e*(f.coordinate+e*c/2-l);o[u-1]=f=Ve(Ve({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=ho(e,f.tickCoord,function(){return c},s,l);p&&(l=f.tickCoord-e*(c/2+i),o[u-1]=Ve(Ve({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(w){var g=o[w],S,m=function(){return S===void 0&&(S=r(g,w)),S};if(w===0){var x=e*(g.coordinate-e*m()/2-s);o[w]=g=Ve(Ve({},g),{},{tickCoord:x<0?g.coordinate-x*e:g.coordinate})}else o[w]=g=Ve(Ve({},g),{},{tickCoord:g.coordinate});var _=ho(e,g.tickCoord,m,s,l);_&&(s=g.tickCoord+e*(m()/2+i),o[w]=Ve(Ve({},g),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function ih(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,l=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(V(s)||lr.isSsr)return bq(i,typeof s=="number"&&V(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?ni(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(g,S){var m=le(l)?l(g.value,S):g.value;return p==="width"?mq(ni(m,{fontSize:t,letterSpacing:r}),y,c):ni(m,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?Tt(i[1].coordinate-i[0].coordinate):1,b=gq(a,h,p);return s==="equidistantPreserveStart"?xq(h,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Aq(h,b,v,i,o,s==="preserveStartEnd"):d=_q(h,b,v,i,o),d.filter(function(w){return w.isShow}))}var Pq=["viewBox"],Eq=["viewBox"],Tq=["ticks"];function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hr.apply(this,arguments)}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){ah(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xf(e,t){if(e==null)return{};var r=Cq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YO(n.key),n)}}function jq(e,t,r){return t&&dx(e.prototype,t),r&&dx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iq(e,t,r){return t=vo(t),$q(e,VO()?Reflect.construct(t,r||[],vo(e).constructor):t.apply(e,r))}function $q(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kq(e)}function kq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VO=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(e)}function Rq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nd(e,t)}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nd(e,t)}function ah(e,t,r){return t=YO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YO(e){var t=Dq(e,"string");return gn(t)=="symbol"?t:t+""}function Dq(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nn=(function(e){function t(r){var n;return Mq(this,t),n=Iq(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Rq(t,e),jq(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=xf(n,Pq),u=this.props,s=u.viewBox,l=xf(u,Eq);return!Xr(a,s)||!Xr(o,l)||!Xr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,l=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,y,v,h,b,w,g=c?-1:1,S=n.tickSize||f,m=V(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,h=o+ +!c*s,v=h-g*S,w=v-g*d,b=m;break;case"left":v=h=n.coordinate,y=a+ +!c*u,p=y-g*S,b=p-g*d,w=m;break;case"right":v=h=n.coordinate,y=a+ +c*u,p=y+g*S,b=p+g*d,w=m;break;default:p=y=n.coordinate,h=o+ +c*s,v=h+g*S,w=v+g*d,b=m;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:b,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,l=n.mirror,f=n.axisLine,c=De(De(De({},se(this.props,!1)),se(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!l||s==="bottom"&&l);c=De(De({},c),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!l||s==="right"&&l);c=De(De({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return O.createElement("line",Hr({},c,{className:fe("recharts-cartesian-axis-line",gt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,l=u.stroke,f=u.tick,c=u.tickFormatter,d=u.unit,p=ih(De(De({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=se(this.props,!1),b=se(f,!1),w=De(De({},h),{},{fill:"none"},se(s,!1)),g=p.map(function(S,m){var x=o.getTickLineCoord(S),_=x.line,A=x.tick,E=De(De(De(De({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:l},b),A),{},{index:m,payload:S,visibleTicksCount:p.length,tickFormatter:c});return O.createElement(ye,Hr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},di(o.props,S,m)),s&&O.createElement("line",Hr({},w,_,{className:fe("recharts-cartesian-axis-tick-line",gt(s,"className"))})),f&&t.renderTickItem(f,E,"".concat(le(c)?c(S.value,m):S.value).concat(d||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,l=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=xf(c,Tq),y=d;return le(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:O.createElement(ye,{className:fe("recharts-cartesian-axis",l),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ye.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=fe(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,De(De({},i),{},{className:u})):le(n)?o=n(De(De({},i),{},{className:u})):o=O.createElement(Ra,Hr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);ah(Nn,"displayName","CartesianAxis");ah(Nn,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Nq=["x1","y1","x2","y2","key"],Lq=["offset"];function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){qq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qq(e,t,r){return t=Bq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bq(e){var t=Fq(e,"string");return jr(t)=="symbol"?t:t+""}function Fq(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wr.apply(this,arguments)}function hx(e,t){if(e==null)return{};var r=zq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Uq=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return O.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function XO(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(le(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=hx(t,Nq),l=se(s,!1);l.offset;var f=hx(l,Lq);r=O.createElement("line",wr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Wq(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var l=Xe(Xe({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return XO(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Hq(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var l=Xe(Xe({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return XO(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Gq(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,l=s===void 0?!0:s;if(!l||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var y=!f[p+1],v=y?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Kq(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var f=l.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var y=!f[p+1],v=y?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Vq=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return sO(ih(Xe(Xe(Xe({},Nn.defaultProps),n),{},{ticks:Wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Yq=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return sO(ih(Xe(Xe(Xe({},Nn.defaultProps),n),{},{ticks:Wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Fr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ZO(e){var t,r,n,i,a,o,u=th(),s=rh(),l=DL(),f=Xe(Xe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Fr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Fr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Fr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Fr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Fr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Fr.verticalFill,x:V(e.x)?e.x:l.left,y:V(e.y)?e.y:l.top,width:V(e.width)?e.width:l.width,height:V(e.height)?e.height:l.height}),c=f.x,d=f.y,p=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,b=f.verticalValues,w=$L(),g=kL();if(!V(p)||p<=0||!V(y)||y<=0||!V(c)||c!==+c||!V(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||Vq,m=f.horizontalCoordinatesGenerator||Yq,x=f.horizontalPoints,_=f.verticalPoints;if((!x||!x.length)&&le(m)){var A=h&&h.length,E=m({yAxis:g?Xe(Xe({},g),{},{ticks:A?h:g.ticks}):void 0,width:u,height:s,offset:l},A?!0:v);Gt(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(jr(E),"]")),Array.isArray(E)&&(x=E)}if((!_||!_.length)&&le(S)){var M=b&&b.length,P=S({xAxis:w?Xe(Xe({},w),{},{ticks:M?b:w.ticks}):void 0,width:u,height:s,offset:l},M?!0:v);Gt(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(jr(P),"]")),Array.isArray(P)&&(_=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(Uq,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),O.createElement(Wq,wr({},f,{offset:l,horizontalPoints:x,xAxis:w,yAxis:g})),O.createElement(Hq,wr({},f,{offset:l,verticalPoints:_,xAxis:w,yAxis:g})),O.createElement(Gq,wr({},f,{horizontalPoints:x})),O.createElement(Kq,wr({},f,{verticalPoints:_})))}ZO.displayName="CartesianGrid";var Xq=["type","layout","connectNulls","ref"],Zq=["key"];function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function vx(e,t){if(e==null)return{};var r=Jq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ui.apply(this,arguments)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){Pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zr(e){return rB(e)||tB(e)||eB(e)||Qq()}function Qq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
119
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eB(e,t){if(e){if(typeof e=="string")return Ld(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ld(e,t)}}function tB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rB(e){if(Array.isArray(e))return Ld(e)}function Ld(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QO(n.key),n)}}function iB(e,t,r){return t&&mx(e.prototype,t),r&&mx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aB(e,t,r){return t=yo(t),oB(e,JO()?Reflect.construct(t,r||[],yo(e).constructor):t.apply(e,r))}function oB(e,t){if(t&&(bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uB(e)}function uB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JO=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yo(e)}function sB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qd(e,t)}function qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qd(e,t)}function Pt(e,t,r){return t=QO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QO(e){var t=lB(e,"string");return bn(t)=="symbol"?t:t+""}function lB(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eu=(function(e){function t(){var r;nB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aB(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!0,totalLength:0}),Pt(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Pt(r,"getStrokeDasharray",function(o,u,s){var l=s.reduce(function(b,w){return b+w});if(!l)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/l),c=o%l,d=u-o,p=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>c){p=[].concat(zr(s.slice(0,y)),[c-v]);break}var h=p.length%2===0?[0,d]:[d];return[].concat(zr(t.repeat(s,f)),zr(p),h).map(function(b){return"".concat(b,"px")}).join(", ")}),Pt(r,"id",kr("recharts-line-")),Pt(r,"pathRef",function(o){r.mainCurve=o}),Pt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Pt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return sB(t,e),iB(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,l=a.layout,f=a.children,c=nt(f,Rn);if(!c)return null;var d=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:qe(v.payload,h)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(ye,p,c.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:l,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,l=u.points,f=u.dataKey,c=se(this.props,!1),d=se(s,!0),p=l.map(function(v,h){var b=ot(ot(ot({key:"dot-".concat(h),r:3},c),d),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:l});return t.renderDotItem(s,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(ye,ui({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,l=u.layout,f=u.connectNulls;u.ref;var c=vx(u,Xq),d=ot(ot(ot({},se(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:l,connectNulls:f});return O.createElement(Pr,ui({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,l=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,h=o.height,b=this.state,w=b.prevPoints,g=b.totalLength;return O.createElement(Ct,{begin:f,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var m=S.t;if(w){var x=w.length/u.length,_=u.map(function(T,j){var k=Math.floor(j*x);if(w[k]){var $=w[k],R=je($.x,T.x),B=je($.y,T.y);return ot(ot({},T),{},{x:R(m),y:B(m)})}if(y){var D=je(v*2,T.x),F=je(h/2,T.y);return ot(ot({},T),{},{x:D(m),y:F(m)})}return ot(ot({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var A=je(0,g),E=A(m),M;if(s){var P="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});M=a.getStrokeDasharray(E,g,P)}else M=a.generateSimpleStrokeDasharray(g,E);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,l=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!l&&f>0||!Cr(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,l=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,w=u.length===1,g=fe("recharts-line",s),S=l&&l.allowDataOverflow,m=f&&f.allowDataOverflow,x=S||m,_=oe(h)?this.id:h,A=(n=se(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=A.r,M=E===void 0?3:E,P=A.strokeWidth,T=P===void 0?2:P,j=Cw(o)?o:{},k=j.clipDot,$=k===void 0?!0:k,R=M*2+T;return O.createElement(ye,{className:g},S||m?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(_)},O.createElement("rect",{x:S?d:d-p/2,y:m?c:c-y/2,width:S?p:p*2,height:m?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(_)},O.createElement("rect",{x:d-R/2,y:c-R/2,width:p+R,height:y+R}))):null,!w&&this.renderCurve(x,_),this.renderErrorBar(x,_),(w||o)&&this.renderDots(x,$,_),(!v||b)&&Nt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(zr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(zr(o),zr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(le(n))a=n(i);else{var o=i.key,u=vx(i,Zq),s=fe("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Ho,ui({key:o},u,{className:s}))}return a}}])})(O.PureComponent);Pt(eu,"displayName","Line");Pt(eu,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!lr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Pt(eu,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,l=e.offset,f=t.layout,c=s.map(function(d,p){var y=qe(d,o);return f==="horizontal"?{x:ln({axis:r,ticks:i,bandSize:u,entry:d,index:p}),y:oe(y)?null:n.scale(y),value:y,payload:d}:{x:oe(y)?null:r.scale(y),y:ln({axis:n,ticks:a,bandSize:u,entry:d,index:p}),value:y,payload:d}});return ot({points:c,layout:f},l)});var cB=["layout","type","stroke","connectNulls","isRange","ref"],fB=["key"],e1;function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function t1(e,t){if(e==null)return{};var r=dB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sr.apply(this,arguments)}function gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){Rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n1(n.key),n)}}function hB(e,t,r){return t&&bx(e.prototype,t),r&&bx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vB(e,t,r){return t=mo(t),yB(e,r1()?Reflect.construct(t,r||[],mo(e).constructor):t.apply(e,r))}function yB(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mB(e)}function mB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r1=function(){return!!e})()}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mo(e)}function gB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bd(e,t)}function Bd(e,t){return Bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bd(e,t)}function Rt(e,t,r){return t=n1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){var t=bB(e,"string");return xn(t)=="symbol"?t:t+""}function bB(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pr=(function(e){function t(){var r;pB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vB(this,t,[].concat(i)),Rt(r,"state",{isAnimationFinished:!0}),Rt(r,"id",kr("recharts-area-")),Rt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),le(o)&&o()}),Rt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),le(o)&&o()}),r}return gB(t,e),hB(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,l=s.dot,f=s.points,c=s.dataKey,d=se(this.props,!1),p=se(l,!0),y=f.map(function(h,b){var w=er(er(er({key:"dot-".concat(b),r:3},d),p),{},{index:b,cx:h.x,cy:h.y,dataKey:c,value:h.value,payload:h.payload,points:f});return t.renderDotItem(l,w)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(ye,Sr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,l=o[o.length-1].x,f=n*Math.abs(s-l),c=nr(o.map(function(d){return d.y||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(nr(a.map(function(d){return d.y||0})),c)),V(c)?O.createElement("rect",{x:s<l?s:s-f,y:0,width:f,height:Math.floor(c+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,l=o[o.length-1].y,f=n*Math.abs(s-l),c=nr(o.map(function(d){return d.x||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(nr(a.map(function(d){return d.x||0})),c)),V(c)?O.createElement("rect",{x:0,y:s<l?s:s-f,width:c+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,l=u.type,f=u.stroke,c=u.connectNulls,d=u.isRange;u.ref;var p=t1(u,cB);return O.createElement(ye,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Pr,Sr({},se(p,!0),{points:n,connectNulls:c,type:l,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&O.createElement(Pr,Sr({},se(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:c,fill:"none",points:n})),f!=="none"&&d&&O.createElement(Pr,Sr({},se(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,l=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return O.createElement(Ct,{begin:f,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var w=b.t;if(v){var g=v.length/u.length,S=u.map(function(A,E){var M=Math.floor(E*g);if(v[M]){var P=v[M],T=je(P.x,A.x),j=je(P.y,A.y);return er(er({},A),{},{x:T(w),y:j(w)})}return A}),m;if(V(s)&&typeof s=="number"){var x=je(h,s);m=x(w)}else if(oe(s)||jn(s)){var _=je(h,0);m=_(w)}else m=s.map(function(A,E){var M=Math.floor(E*g);if(h[M]){var P=h[M],T=je(P.x,A.x),j=je(P.y,A.y);return er(er({},A),{},{x:T(w),y:j(w)})}return A});return a.renderAreaStatically(S,m,n,i)}return O.createElement(ye,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement(ye,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,l=this.state,f=l.prevPoints,c=l.prevBaseLine,d=l.totalLength;return s&&o&&o.length&&(!f&&d>0||!Cr(f,o)||!Cr(c,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,l=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,w=u.length===1,g=fe("recharts-area",s),S=c&&c.allowDataOverflow,m=d&&d.allowDataOverflow,x=S||m,_=oe(h)?this.id:h,A=(n=se(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=A.r,M=E===void 0?3:E,P=A.strokeWidth,T=P===void 0?2:P,j=Cw(o)?o:{},k=j.clipDot,$=k===void 0?!0:k,R=M*2+T;return O.createElement(ye,{className:g},S||m?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(_)},O.createElement("rect",{x:S?f:f-p/2,y:m?l:l-y/2,width:S?p:p*2,height:m?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(_)},O.createElement("rect",{x:f-R/2,y:l-R/2,width:p+R,height:y+R}))):null,w?null:this.renderArea(x,_),(o||w)&&this.renderDots(x,$,_),(!v||b)&&Nt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);e1=pr;Rt(pr,"displayName","Area");Rt(pr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!lr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Rt(pr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(V(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,l=s.scale.domain();if(s.type==="number"){var f=Math.max(l[0],l[1]),c=Math.min(l[0],l[1]);return u==="dataMin"?c:u==="dataMax"||f<0?f:Math.max(Math.min(l[0],l[1]),0)}return u==="dataMin"?l[0]:u==="dataMax"?l[1]:l[0]});Rt(pr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,l=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,y=l&&l.length,v=e1.getBaseValue(t,r,n,i),h=p==="horizontal",b=!1,w=c.map(function(S,m){var x;y?x=l[f+m]:(x=qe(S,s),Array.isArray(x)?b=!0:x=[v,x]);var _=x[1]==null||y&&qe(S,s)==null;return h?{x:ln({axis:n,ticks:a,bandSize:u,entry:S,index:m}),y:_?null:i.scale(x[1]),value:x,payload:S}:{x:_?null:n.scale(x[1]),y:ln({axis:i,ticks:o,bandSize:u,entry:S,index:m}),value:x,payload:S}}),g;return y||b?g=w.map(function(S){var m=Array.isArray(S.value)?S.value[0]:null;return h?{x:S.x,y:m!=null&&S.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:S.y}}):g=h?i.scale(v):n.scale(v),er({points:w,baseLine:g,layout:p,isRange:b},d)});Rt(pr,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(le(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=t1(t,fB);r=O.createElement(Ho,Sr({},a,{key:i,className:n}))}return r});function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function xB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o1(n.key),n)}}function SB(e,t,r){return t&&wB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OB(e,t,r){return t=go(t),_B(e,i1()?Reflect.construct(t,r||[],go(e).constructor):t.apply(e,r))}function _B(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AB(e)}function AB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i1=function(){return!!e})()}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},go(e)}function PB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fd(e,t)}function Fd(e,t){return Fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fd(e,t)}function a1(e,t,r){return t=o1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1(e){var t=EB(e,"string");return wn(t)=="symbol"?t:t+""}function EB(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tu=(function(e){function t(){return xB(this,t),OB(this,t,arguments)}return PB(t,e),SB(t,[{key:"render",value:function(){return null}}])})(yt.Component);a1(tu,"displayName","ZAxis");a1(tu,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var TB=["option","isActive"];function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(this,arguments)}function CB(e,t){if(e==null)return{};var r=MB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jB(e){var t=e.option,r=e.isActive,n=CB(e,TB);return typeof t=="string"?yt.createElement(Ed,si({option:yt.createElement(ko,si({type:t},n)),isActive:r,shapeType:"symbols"},n)):yt.createElement(Ed,si({option:t,isActive:r,shapeType:"symbols"},n))}function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(this,arguments)}function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){ar(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s1(n.key),n)}}function $B(e,t,r){return t&&wx(e.prototype,t),r&&wx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kB(e,t,r){return t=bo(t),RB(e,u1()?Reflect.construct(t,r||[],bo(e).constructor):t.apply(e,r))}function RB(e,t){if(t&&(Sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DB(e)}function DB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u1=function(){return!!e})()}function bo(e){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bo(e)}function NB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zd(e,t)}function zd(e,t){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zd(e,t)}function ar(e,t,r){return t=s1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e){var t=LB(e,"string");return Sn(t)=="symbol"?t:t+""}function LB(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ru=(function(e){function t(){var r;IB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kB(this,t,[].concat(i)),ar(r,"state",{isAnimationFinished:!1}),ar(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),ar(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),ar(r,"id",kr("recharts-scatter-")),r}return NB(t,e),$B(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,s=a.activeIndex,l=se(this.props,!1);return n.map(function(f,c){var d=s===c,p=d?u:o,y=ht(ht({},l),f);return O.createElement(ye,li({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(c)},di(i.props,f,c),{role:"img"}),O.createElement(jB,li({option:p,isActive:d,key:"symbol-".concat(c)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,l=i.animationEasing,f=i.animationId,c=this.state.prevPoints;return O.createElement(Ct,{begin:u,duration:s,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var p=d.t,y=a.map(function(v,h){var b=c&&c[h];if(b){var w=je(b.cx,v.cx),g=je(b.cy,v.cy),S=je(b.size,v.size);return ht(ht({},v),{},{cx:w(p),cy:g(p),size:S(p)})}var m=je(0,v.size);return ht(ht({},v),{},{size:m(p)})});return O.createElement(ye,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Cr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,u=i.yAxis,s=i.children,l=nt(s,Rn);return l?l.map(function(f,c){var d=f.props,p=d.direction,y=d.dataKey;return O.cloneElement(f,{key:"".concat(p,"-").concat(y,"-").concat(a[c]),data:a,xAxis:o,yAxis:u,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(h,b){return{x:h.cx,y:h.cy,value:p==="x"?+h.node.x:+h.node.y,errorVal:qe(h,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,u=n.lineJointType,s=se(this.props,!1),l=se(a,!1),f,c;if(o==="joint")f=i.map(function(g){return{x:g.cx,y:g.cy}});else if(o==="fitting"){var d=AE(i),p=d.xmin,y=d.xmax,v=d.a,h=d.b,b=function(S){return v*S+h};f=[{x:p,y:b(p)},{x:y,y:b(y)}]}var w=ht(ht(ht({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:f});return O.isValidElement(a)?c=O.cloneElement(a,w):le(a)?c=a(w):c=O.createElement(Pr,li({},w,{type:u})),O.createElement(ye,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,u=n.className,s=n.xAxis,l=n.yAxis,f=n.left,c=n.top,d=n.width,p=n.height,y=n.id,v=n.isAnimationActive;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=fe("recharts-scatter",u),w=s&&s.allowDataOverflow,g=l&&l.allowDataOverflow,S=w||g,m=oe(y)?this.id:y;return O.createElement(ye,{className:b,clipPath:S?"url(#clipPath-".concat(m,")"):null},w||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(m)},O.createElement("rect",{x:w?f:f-d/2,y:g?c:c-p/2,width:w?d:d*2,height:g?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(ye,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||h)&&Nt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);ar(ru,"displayName","Scatter");ar(ru,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!lr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});ar(ru,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,u=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,f=nt(i.props.children,_p),c=oe(t.dataKey)?i.props.dataKey:t.dataKey,d=oe(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:tu.defaultProps.range,v=y&&y[0],h=t.scale.bandwidth?t.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(g,S){var m=qe(g,c),x=qe(g,d),_=!oe(p)&&qe(g,p)||"-",A=[{name:oe(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:m,payload:g,dataKey:c,type:l},{name:oe(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:x,payload:g,dataKey:d,type:l}];_!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:g,dataKey:p,type:l});var E=ln({axis:t,ticks:o,bandSize:h,entry:g,index:S,dataKey:c}),M=ln({axis:r,ticks:u,bandSize:b,entry:g,index:S,dataKey:d}),P=_!=="-"?n.scale(_):v,T=Math.sqrt(Math.max(P,0)/Math.PI);return ht(ht({},g),{},{cx:E,cy:M,x:E-T,y:M-T,xAxis:t,yAxis:r,zAxis:n,width:2*T,height:2*T,size:P,node:{x:m,y:x,z:_},tooltipPayload:A,tooltipPosition:{x:E,y:M},payload:g},f&&f[S]&&f[S].props)});return ht({points:w},s)});function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function qB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f1(n.key),n)}}function FB(e,t,r){return t&&BB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zB(e,t,r){return t=xo(t),UB(e,l1()?Reflect.construct(t,r||[],xo(e).constructor):t.apply(e,r))}function UB(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WB(e)}function WB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l1=function(){return!!e})()}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xo(e)}function HB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ud(e,t)}function Ud(e,t){return Ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ud(e,t)}function c1(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=GB(e,"string");return On(t)=="symbol"?t:t+""}function GB(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wd.apply(this,arguments)}function KB(e){var t=e.xAxisId,r=th(),n=rh(),i=qO(t);return i==null?null:yt.createElement(Nn,Wd({},i,{className:fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Wt(o,!0)}}))}var nu=(function(e){function t(){return qB(this,t),zB(this,t,arguments)}return HB(t,e),FB(t,[{key:"render",value:function(){return yt.createElement(KB,this.props)}}])})(yt.Component);c1(nu,"displayName","XAxis");c1(nu,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function VB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h1(n.key),n)}}function XB(e,t,r){return t&&YB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZB(e,t,r){return t=wo(t),JB(e,d1()?Reflect.construct(t,r||[],wo(e).constructor):t.apply(e,r))}function JB(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QB(e)}function QB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d1=function(){return!!e})()}function wo(e){return wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wo(e)}function eF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hd(e,t)}function Hd(e,t){return Hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hd(e,t)}function p1(e,t,r){return t=h1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h1(e){var t=tF(e,"string");return _n(t)=="symbol"?t:t+""}function tF(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gd.apply(this,arguments)}var rF=function(t){var r=t.yAxisId,n=th(),i=rh(),a=BO(r);return a==null?null:yt.createElement(Nn,Gd({},a,{className:fe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Wt(u,!0)}}))},iu=(function(e){function t(){return VB(this,t),ZB(this,t,arguments)}return eF(t,e),XB(t,[{key:"render",value:function(){return yt.createElement(rF,this.props)}}])})(yt.Component);p1(iu,"displayName","YAxis");p1(iu,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Sx(e){return oF(e)||aF(e)||iF(e)||nF()}function nF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
120
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iF(e,t){if(e){if(typeof e=="string")return Kd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kd(e,t)}}function aF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oF(e){if(Array.isArray(e))return Kd(e)}function Kd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Vd=function(t,r,n,i,a){var o=nt(t,Yo),u=nt(t,Zo),s=[].concat(Sx(o),Sx(u)),l=nt(t,Qo),f="".concat(i,"Id"),c=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&Lt(h.props,"extendDomain")&&V(h.props[c])){var b=h.props[c];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},d)),l.length){var p="".concat(c,"1"),y="".concat(c,"2");d=l.reduce(function(v,h){if(h.props[f]===n&&Lt(h.props,"extendDomain")&&V(h.props[p])&&V(h.props[y])){var b=h.props[p],w=h.props[y];return[Math.min(v[0],b,w),Math.max(v[1],b,w)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return V(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},wf={exports:{}},Ox;function uF(){return Ox||(Ox=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,l,f){this.fn=s,this.context=l,this.once=f||!1}function a(s,l,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||s,d),y=r?r+l:l;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,l){--s._eventsCount===0?s._events=new n:delete s._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],f,c;if(this._eventsCount===0)return l;for(c in f=this._events)t.call(f,c)&&l.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},u.prototype.listeners=function(l){var f=r?r+l:l,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,y=new Array(p);d<p;d++)y[d]=c[d].fn;return y},u.prototype.listenerCount=function(l){var f=r?r+l:l,c=this._events[f];return c?c.fn?1:c.length:0},u.prototype.emit=function(l,f,c,d,p,y){var v=r?r+l:l;if(!this._events[v])return!1;var h=this._events[v],b=arguments.length,w,g;if(h.fn){switch(h.once&&this.removeListener(l,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,c),!0;case 4:return h.fn.call(h.context,f,c,d),!0;case 5:return h.fn.call(h.context,f,c,d,p),!0;case 6:return h.fn.call(h.context,f,c,d,p,y),!0}for(g=1,w=new Array(b-1);g<b;g++)w[g-1]=arguments[g];h.fn.apply(h.context,w)}else{var S=h.length,m;for(g=0;g<S;g++)switch(h[g].once&&this.removeListener(l,h[g].fn,void 0,!0),b){case 1:h[g].fn.call(h[g].context);break;case 2:h[g].fn.call(h[g].context,f);break;case 3:h[g].fn.call(h[g].context,f,c);break;case 4:h[g].fn.call(h[g].context,f,c,d);break;default:if(!w)for(m=1,w=new Array(b-1);m<b;m++)w[m-1]=arguments[m];h[g].fn.apply(h[g].context,w)}}return!0},u.prototype.on=function(l,f,c){return a(this,l,f,c,!1)},u.prototype.once=function(l,f,c){return a(this,l,f,c,!0)},u.prototype.removeListener=function(l,f,c,d){var p=r?r+l:l;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!c||y.context===c)&&o(this,p);else{for(var v=0,h=[],b=y.length;v<b;v++)(y[v].fn!==f||d&&!y[v].once||c&&y[v].context!==c)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(l){var f;return l?(f=r?r+l:l,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(wf)),wf.exports}var sF=uF();const lF=Se(sF);var Sf=new lF,Of="recharts.syncMouseEvents";function Hi(e){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(e)}function cF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v1(n.key),n)}}function dF(e,t,r){return t&&fF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _f(e,t,r){return t=v1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v1(e){var t=pF(e,"string");return Hi(t)=="symbol"?t:t+""}function pF(e,t){if(Hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hF=(function(){function e(){cF(this,e),_f(this,"activeIndex",0),_f(this,"coordinateList",[]),_f(this,"layout","horizontal")}return dF(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,l=s===void 0?null:s,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=l??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+s+l,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])})();function vF(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&V(n)&&V(i))return!0}return!1}function yF(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function y1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=He(t,r,n,i),u=He(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function mF(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,l=t.innerRadius,f=t.outerRadius,c=t.angle,d=He(u,s,l,c),p=He(u,s,f,c);n=d.x,i=d.y,a=p.x,o=p.y}else return y1(t);return[{x:n,y:i},{x:a,y:o}]}function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){gF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gF(e,t,r){return t=bF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return Gi(t)=="symbol"?t:t+""}function xF(e,t){if(Gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wF(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,l=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=Pr;if(d==="ScatterChart")y=o,v=YN;else if(d==="BarChart")y=yF(c,o,s,f),v=Zp;else if(c==="radial"){var h=y1(o),b=h.cx,w=h.cy,g=h.radius,S=h.startAngle,m=h.endAngle;y={cx:b,cy:w,startAngle:S,endAngle:m,innerRadius:g,outerRadius:g},v=pO}else y={points:mF(c,o,s)},v=Pr;var x=xa(xa(xa(xa({stroke:"#ccc",pointerEvents:"none"},s),y),se(p,!1)),{},{payload:u,payloadIndex:l,className:fe("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,x):O.createElement(v,x)}var SF=["item"],OF=["children","className","width","height","style","compact","title","desc"];function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}function Ax(e,t){return PF(e)||AF(e,t)||g1(e,t)||_F()}function _F(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function PF(e){if(Array.isArray(e))return e}function Px(e,t){if(e==null)return{};var r=EF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b1(n.key),n)}}function MF(e,t,r){return t&&CF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jF(e,t,r){return t=So(t),IF(e,m1()?Reflect.construct(t,r||[],So(e).constructor):t.apply(e,r))}function IF(e,t){if(t&&(An(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $F(e)}function $F(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m1=function(){return!!e})()}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},So(e)}function kF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yd(e,t)}function Yd(e,t){return Yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yd(e,t)}function Pn(e){return NF(e)||DF(e)||g1(e)||RF()}function RF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g1(e,t){if(e){if(typeof e=="string")return Xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xd(e,t)}}function DF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NF(e){if(Array.isArray(e))return Xd(e)}function Xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){ie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ie(e,t,r){return t=b1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1(e){var t=LF(e,"string");return An(t)=="symbol"?t:t+""}function LF(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qF={xAxis:["bottom","top"],yAxis:["left","right"]},BF={width:"100%",height:"100%"},x1={x:0,y:0};function wa(e){return e}var FF=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},zF=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return L(L(L({},i),He(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,l=i.angle;return L(L(L({},i),He(i.cx,i.cy,s,l)),{},{angle:l,radius:s})}return x1},au=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var l=s.props.data;return l&&l.length?[].concat(Pn(u),Pn(l)):u},[]);return o.length>0?o:t&&t.length&&V(i)&&V(a)?t.slice(i,a+1):[]};function w1(e){return e==="number"?[0,"auto"]:void 0}var Zd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=au(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,l){var f,c=(f=l.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?u:c;d=Oa(p,o.dataKey,i)}else d=c&&c[n]||u[n];return d?[].concat(Pn(s),[cO(l,d)]):s},[])},Tx=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=FF(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,l=t.tooltipTicks,f=Pk(o,u,l,s);if(f>=0&&l){var c=l[f]&&l[f].value,d=Zd(t,r,f,c),p=zF(n,u,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},UF=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=uO(f,a);return n.reduce(function(y,v){var h,b=v.type.defaultProps!==void 0?L(L({},v.type.defaultProps),v.props):v.props,w=b.type,g=b.dataKey,S=b.allowDataOverflow,m=b.allowDuplicatedCategory,x=b.scale,_=b.ticks,A=b.includeHidden,E=b[o];if(y[E])return y;var M=au(t.data,{graphicalItems:i.filter(function(z){var H,X=o in z.props?z.props[o]:(H=z.type.defaultProps)===null||H===void 0?void 0:H[o];return X===E}),dataStartIndex:s,dataEndIndex:l}),P=M.length,T,j,k;vF(b.domain,S,w)&&(T=fd(b.domain,null,S),p&&(w==="number"||x!=="auto")&&(k=ai(M,g,"category")));var $=w1(w);if(!T||T.length===0){var R,B=(R=b.domain)!==null&&R!==void 0?R:$;if(g){if(T=ai(M,g,w),w==="category"&&p){var D=_E(T);m&&D?(j=T,T=fi(0,P)):m||(T=$b(B,T,v).reduce(function(z,H){return z.indexOf(H)>=0?z:[].concat(Pn(z),[H])},[]))}else if(w==="category")m?T=T.filter(function(z){return z!==""&&!oe(z)}):T=$b(B,T,v).reduce(function(z,H){return z.indexOf(H)>=0||H===""||oe(H)?z:[].concat(Pn(z),[H])},[]);else if(w==="number"){var F=jk(M,i.filter(function(z){var H,X,J=o in z.props?z.props[o]:(H=z.type.defaultProps)===null||H===void 0?void 0:H[o],ee="hide"in z.props?z.props.hide:(X=z.type.defaultProps)===null||X===void 0?void 0:X.hide;return J===E&&(A||!ee)}),g,a,f);F&&(T=F)}p&&(w==="number"||x!=="auto")&&(k=ai(M,g,"category"))}else p?T=fi(0,P):u&&u[E]&&u[E].hasStack&&w==="number"?T=d==="expand"?[0,1]:lO(u[E].stackGroups,s,l):T=oO(M,i.filter(function(z){var H=o in z.props?z.props[o]:z.type.defaultProps[o],X="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return H===E&&(A||!X)}),w,f,!0);if(w==="number")T=Vd(c,T,E,a,_),B&&(T=fd(B,T,S));else if(w==="category"&&B){var I=B,N=T.every(function(z){return I.indexOf(z)>=0});N&&(T=I)}}return L(L({},y),{},ie({},E,L(L({},b),{},{axisType:a,domain:T,categoricalDomain:k,duplicateDomain:j,originalDomain:(h=b.domain)!==null&&h!==void 0?h:$,isCategorical:p,layout:f})))},{})},WF=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=au(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,y=uO(f,a),v=-1;return n.reduce(function(h,b){var w=b.type.defaultProps!==void 0?L(L({},b.type.defaultProps),b.props):b.props,g=w[o],S=w1("number");if(!h[g]){v++;var m;return y?m=fi(0,p):u&&u[g]&&u[g].hasStack?(m=lO(u[g].stackGroups,s,l),m=Vd(c,m,g,a)):(m=fd(S,oO(d,n.filter(function(x){var _,A,E=o in x.props?x.props[o]:(_=x.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return E===g&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=Vd(c,m,g,a)),L(L({},h),{},ie({},g,L(L({axisType:a},i.defaultProps),{},{hide:!0,orientation:gt(qF,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:S,isCategorical:y,layout:f})))}return h},{})},HF=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=nt(f,a),p={};return d&&d.length?p=UF(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=WF(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:s,dataEndIndex:l})),p},GF=function(t){var r=rr(t),n=Wt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Co(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ya(r,n)}},Cx=function(t){var r=t.children,n=t.defaultShowTooltip,i=st(r,dn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},KF=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ht(r&&r.type);return n&&n.indexOf("Bar")>=0})},Mx=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},VF=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,l=n.width,f=n.height,c=n.children,d=n.margin||{},p=st(c,dn),y=st(c,Or),v=Object.keys(s).reduce(function(m,x){var _=s[x],A=_.orientation;return!_.mirror&&!_.hide?L(L({},m),{},ie({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(m,x){var _=o[x],A=_.orientation;return!_.mirror&&!_.hide?L(L({},m),{},ie({},A,gt(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),b=L(L({},h),v),w=b.bottom;p&&(b.bottom+=p.props.height||dn.defaultProps.height),y&&r&&(b=Ck(b,i,n,r));var g=l-b.left-b.right,S=f-b.top-b.bottom;return L(L({brushBottom:w},b),{},{width:Math.max(g,0),height:Math.max(S,0)})},YF=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},XF=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,l=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(b,w){var g=w.graphicalItems,S=w.stackGroups,m=w.offset,x=w.updateId,_=w.dataStartIndex,A=w.dataEndIndex,E=b.barSize,M=b.layout,P=b.barGap,T=b.barCategoryGap,j=b.maxBarSize,k=Mx(M),$=k.numericAxisName,R=k.cateAxisName,B=KF(g),D=[];return g.forEach(function(F,I){var N=au(b.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),z=F.type.defaultProps!==void 0?L(L({},F.type.defaultProps),F.props):F.props,H=z.dataKey,X=z.maxBarSize,J=z["".concat($,"Id")],ee=z["".concat(R,"Id")],ne={},K=s.reduce(function(de,Ie){var et,hr,wt=w["".concat(Ie.axisType,"Map")],St=z["".concat(Ie.axisType,"Id")];wt&&wt[St]||Ie.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?rt(!1,"Specifying a(n) ".concat(Ie.axisType,"Id requires a corresponding ").concat(Ie.axisType,"Id on the targeted graphical component ").concat((et=F==null||(hr=F.type)===null||hr===void 0?void 0:hr.displayName)!==null&&et!==void 0?et:"")):rt());var Lr=wt[St];return L(L({},de),{},ie(ie({},Ie.axisType,Lr),"".concat(Ie.axisType,"Ticks"),Wt(Lr)))},ne),q=K[R],W=K["".concat(R,"Ticks")],Z=S&&S[J]&&S[J].hasStack&&Uk(F,S[J].stackGroups),C=Ht(F.type).indexOf("Bar")>=0,ae=Ya(q,W),U=[],ue=B&&Ek({barSize:E,stackGroups:S,totalSize:YF(K,R)});if(C){var he,Ce,Ge=oe(X)?j:X,ct=(he=(Ce=Ya(q,W,!0))!==null&&Ce!==void 0?Ce:Ge)!==null&&he!==void 0?he:0;U=Tk({barGap:P,barCategoryGap:T,bandSize:ct!==ae?ct:ae,sizeList:ue[ee],maxBarSize:Ge}),ct!==ae&&(U=U.map(function(de){return L(L({},de),{},{position:L(L({},de.position),{},{offset:de.position.offset-ct/2})})}))}var te=F&&F.type&&F.type.getComposedData;te&&D.push({props:L(L({},te(L(L({},K),{},{displayedData:N,props:b,dataKey:H,item:F,bandSize:ae,barPosition:U,offset:m,stackedData:Z,layout:M,dataStartIndex:_,dataEndIndex:A}))),{},ie(ie(ie({key:F.key||"item-".concat(I)},$,K[$]),R,K[R]),"animationId",x)),childIndex:NE(F,b.children),item:F})}),D},p=function(b,w){var g=b.props,S=b.dataStartIndex,m=b.dataEndIndex,x=b.updateId;if(!Cm({props:g}))return null;var _=g.children,A=g.layout,E=g.stackOffset,M=g.data,P=g.reverseStackOrder,T=Mx(A),j=T.numericAxisName,k=T.cateAxisName,$=nt(_,n),R=Bk(M,$,"".concat(j,"Id"),"".concat(k,"Id"),E,P),B=s.reduce(function(z,H){var X="".concat(H.axisType,"Map");return L(L({},z),{},ie({},X,HF(g,L(L({},H),{},{graphicalItems:$,stackGroups:H.axisType===j&&R,dataStartIndex:S,dataEndIndex:m}))))},{}),D=VF(L(L({},B),{},{props:g,graphicalItems:$}),w==null?void 0:w.legendBBox);Object.keys(B).forEach(function(z){B[z]=f(g,B[z],D,z.replace("Map",""),r)});var F=B["".concat(k,"Map")],I=GF(F),N=d(g,L(L({},B),{},{dataStartIndex:S,dataEndIndex:m,updateId:x,graphicalItems:$,stackGroups:R,offset:D}));return L(L({formattedGraphicalItems:N,graphicalItems:$,offset:D,stackGroups:R},I),B)},y=(function(h){function b(w){var g,S,m;return TF(this,b),m=jF(this,b,[w]),ie(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ie(m,"accessibilityManager",new hF),ie(m,"handleLegendBBoxUpdate",function(x){if(x){var _=m.state,A=_.dataStartIndex,E=_.dataEndIndex,M=_.updateId;m.setState(L({legendBBox:x},p({props:m.props,dataStartIndex:A,dataEndIndex:E,updateId:M},L(L({},m.state),{},{legendBBox:x}))))}}),ie(m,"handleReceiveSyncEvent",function(x,_,A){if(m.props.syncId===x){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),ie(m,"handleBrushChange",function(x){var _=x.startIndex,A=x.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var E=m.state.updateId;m.setState(function(){return L({dataStartIndex:_,dataEndIndex:A},p({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:E},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),ie(m,"handleMouseEnter",function(x){var _=m.getMouseInfo(x);if(_){var A=L(L({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var E=m.props.onMouseEnter;le(E)&&E(A,x)}}),ie(m,"triggeredAfterMouseMove",function(x){var _=m.getMouseInfo(x),A=_?L(L({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var E=m.props.onMouseMove;le(E)&&E(A,x)}),ie(m,"handleItemMouseEnter",function(x){m.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),ie(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),ie(m,"handleMouseMove",function(x){x.persist(),m.throttleTriggeredAfterMouseMove(x)}),ie(m,"handleMouseLeave",function(x){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;le(A)&&A(_,x)}),ie(m,"handleOuterEvent",function(x){var _=DE(x),A=gt(m.props,"".concat(_));if(_&&le(A)){var E,M;/.*touch.*/i.test(_)?M=m.getMouseInfo(x.changedTouches[0]):M=m.getMouseInfo(x),A((E=M)!==null&&E!==void 0?E:{},x)}}),ie(m,"handleClick",function(x){var _=m.getMouseInfo(x);if(_){var A=L(L({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var E=m.props.onClick;le(E)&&E(A,x)}}),ie(m,"handleMouseDown",function(x){var _=m.props.onMouseDown;if(le(_)){var A=m.getMouseInfo(x);_(A,x)}}),ie(m,"handleMouseUp",function(x){var _=m.props.onMouseUp;if(le(_)){var A=m.getMouseInfo(x);_(A,x)}}),ie(m,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),ie(m,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseDown(x.changedTouches[0])}),ie(m,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseUp(x.changedTouches[0])}),ie(m,"handleDoubleClick",function(x){var _=m.props.onDoubleClick;if(le(_)){var A=m.getMouseInfo(x);_(A,x)}}),ie(m,"handleContextMenu",function(x){var _=m.props.onContextMenu;if(le(_)){var A=m.getMouseInfo(x);_(A,x)}}),ie(m,"triggerSyncEvent",function(x){m.props.syncId!==void 0&&Sf.emit(Of,m.props.syncId,x,m.eventEmitterSymbol)}),ie(m,"applySyncEvent",function(x){var _=m.props,A=_.layout,E=_.syncMethod,M=m.state.updateId,P=x.dataStartIndex,T=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)m.setState(L({dataStartIndex:P,dataEndIndex:T},p({props:m.props,dataStartIndex:P,dataEndIndex:T,updateId:M},m.state)));else if(x.activeTooltipIndex!==void 0){var j=x.chartX,k=x.chartY,$=x.activeTooltipIndex,R=m.state,B=R.offset,D=R.tooltipTicks;if(!B)return;if(typeof E=="function")$=E(D,x);else if(E==="value"){$=-1;for(var F=0;F<D.length;F++)if(D[F].value===x.activeLabel){$=F;break}}var I=L(L({},B),{},{x:B.left,y:B.top}),N=Math.min(j,I.x+I.width),z=Math.min(k,I.y+I.height),H=D[$]&&D[$].value,X=Zd(m.state,m.props.data,$),J=D[$]?{x:A==="horizontal"?D[$].coordinate:N,y:A==="horizontal"?z:D[$].coordinate}:x1;m.setState(L(L({},x),{},{activeLabel:H,activeCoordinate:J,activePayload:X,activeTooltipIndex:$}))}else m.setState(x)}),ie(m,"renderCursor",function(x){var _,A=m.state,E=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,T=A.offset,j=A.activeTooltipIndex,k=A.tooltipAxisBandSize,$=m.getTooltipEventType(),R=(_=x.props.active)!==null&&_!==void 0?_:E,B=m.props.layout,D=x.key||"_recharts-cursor";return O.createElement(wF,{key:D,activeCoordinate:M,activePayload:P,activeTooltipIndex:j,chartName:r,element:x,isActive:R,layout:B,offset:T,tooltipAxisBandSize:k,tooltipEventType:$})}),ie(m,"renderPolarAxis",function(x,_,A){var E=gt(x,"type.axisType"),M=gt(m.state,"".concat(E,"Map")),P=x.type.defaultProps,T=P!==void 0?L(L({},P),x.props):x.props,j=M&&M[T["".concat(E,"Id")]];return O.cloneElement(x,L(L({},j),{},{className:fe(E,j.className),key:x.key||"".concat(_,"-").concat(A),ticks:Wt(j,!0)}))}),ie(m,"renderPolarGrid",function(x){var _=x.props,A=_.radialLines,E=_.polarAngles,M=_.polarRadius,P=m.state,T=P.radiusAxisMap,j=P.angleAxisMap,k=rr(T),$=rr(j),R=$.cx,B=$.cy,D=$.innerRadius,F=$.outerRadius;return O.cloneElement(x,{polarAngles:Array.isArray(E)?E:Wt($,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:Wt(k,!0).map(function(I){return I.coordinate}),cx:R,cy:B,innerRadius:D,outerRadius:F,key:x.key||"polar-grid",radialLines:A})}),ie(m,"renderLegend",function(){var x=m.state.formattedGraphicalItems,_=m.props,A=_.children,E=_.width,M=_.height,P=m.props.margin||{},T=E-(P.left||0)-(P.right||0),j=iO({children:A,formattedGraphicalItems:x,legendWidth:T,legendContent:l});if(!j)return null;var k=j.item,$=Px(j,SF);return O.cloneElement(k,L(L({},$),{},{chartWidth:E,chartHeight:M,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),ie(m,"renderTooltip",function(){var x,_=m.props,A=_.children,E=_.accessibilityLayer,M=st(A,$t);if(!M)return null;var P=m.state,T=P.isTooltipActive,j=P.activeCoordinate,k=P.activePayload,$=P.activeLabel,R=P.offset,B=(x=M.props.active)!==null&&x!==void 0?x:T;return O.cloneElement(M,{viewBox:L(L({},R),{},{x:R.left,y:R.top}),active:B,label:$,payload:B?k:[],coordinate:j,accessibilityLayer:E})}),ie(m,"renderBrush",function(x){var _=m.props,A=_.margin,E=_.data,M=m.state,P=M.offset,T=M.dataStartIndex,j=M.dataEndIndex,k=M.updateId;return O.cloneElement(x,{key:x.key||"_recharts-brush",onChange:ha(m.handleBrushChange,x.props.onChange),data:E,x:V(x.props.x)?x.props.x:P.left,y:V(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:V(x.props.width)?x.props.width:P.width,startIndex:T,endIndex:j,updateId:"brush-".concat(k)})}),ie(m,"renderReferenceElement",function(x,_,A){if(!x)return null;var E=m,M=E.clipPathId,P=m.state,T=P.xAxisMap,j=P.yAxisMap,k=P.offset,$=x.type.defaultProps||{},R=x.props,B=R.xAxisId,D=B===void 0?$.xAxisId:B,F=R.yAxisId,I=F===void 0?$.yAxisId:F;return O.cloneElement(x,{key:x.key||"".concat(_,"-").concat(A),xAxis:T[D],yAxis:j[I],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:M})}),ie(m,"renderActivePoints",function(x){var _=x.item,A=x.activePoint,E=x.basePoint,M=x.childIndex,P=x.isRange,T=[],j=_.props.key,k=_.item.type.defaultProps!==void 0?L(L({},_.item.type.defaultProps),_.item.props):_.item.props,$=k.activeDot,R=k.dataKey,B=L(L({index:M,dataKey:R,cx:A.x,cy:A.y,r:4,fill:Yp(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},se($,!1)),_a($));return T.push(b.renderActiveDot($,B,"".concat(j,"-activePoint-").concat(M))),E?T.push(b.renderActiveDot($,L(L({},B),{},{cx:E.x,cy:E.y}),"".concat(j,"-basePoint-").concat(M))):P&&T.push(null),T}),ie(m,"renderGraphicChild",function(x,_,A){var E=m.filterFormatItem(x,_,A);if(!E)return null;var M=m.getTooltipEventType(),P=m.state,T=P.isTooltipActive,j=P.tooltipAxis,k=P.activeTooltipIndex,$=P.activeLabel,R=m.props.children,B=st(R,$t),D=E.props,F=D.points,I=D.isRange,N=D.baseLine,z=E.item.type.defaultProps!==void 0?L(L({},E.item.type.defaultProps),E.item.props):E.item.props,H=z.activeDot,X=z.hide,J=z.activeBar,ee=z.activeShape,ne=!!(!X&&T&&B&&(H||J||ee)),K={};M!=="axis"&&B&&B.props.trigger==="click"?K={onClick:ha(m.handleItemMouseEnter,x.props.onClick)}:M!=="axis"&&(K={onMouseLeave:ha(m.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:ha(m.handleItemMouseEnter,x.props.onMouseEnter)});var q=O.cloneElement(x,L(L({},E.props),K));function W(Ie){return typeof j.dataKey=="function"?j.dataKey(Ie.payload):null}if(ne)if(k>=0){var Z,C;if(j.dataKey&&!j.allowDuplicatedCategory){var ae=typeof j.dataKey=="function"?W:"payload.".concat(j.dataKey.toString());Z=Oa(F,ae,$),C=I&&N&&Oa(N,ae,$)}else Z=F==null?void 0:F[k],C=I&&N&&N[k];if(ee||J){var U=x.props.activeIndex!==void 0?x.props.activeIndex:k;return[O.cloneElement(x,L(L(L({},E.props),K),{},{activeIndex:U})),null,null]}if(!oe(Z))return[q].concat(Pn(m.renderActivePoints({item:E,activePoint:Z,basePoint:C,childIndex:k,isRange:I})))}else{var ue,he=(ue=m.getItemByXY(m.state.activeCoordinate))!==null&&ue!==void 0?ue:{graphicalItem:q},Ce=he.graphicalItem,Ge=Ce.item,ct=Ge===void 0?x:Ge,te=Ce.childIndex,de=L(L(L({},E.props),K),{},{activeIndex:te});return[O.cloneElement(ct,de),null,null]}return I?[q,null,null]:[q,null]}),ie(m,"renderCustomized",function(x,_,A){return O.cloneElement(x,L(L({key:"recharts-customized-".concat(A)},m.props),m.state))}),ie(m,"renderMap",{CartesianGrid:{handler:wa,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:wa},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:wa},YAxis:{handler:wa},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((g=w.id)!==null&&g!==void 0?g:kr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=iS(m.triggeredAfterMouseMove,(S=w.throttleDelay)!==null&&S!==void 0?S:1e3/60),m.state={},m}return kF(b,h),MF(b,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,m=g.data,x=g.height,_=g.layout,A=st(S,$t);if(A){var E=A.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,P=Zd(this.state,m,E,M),T=this.state.tooltipTicks[E].coordinate,j=(this.state.offset.top+x)/2,k=_==="horizontal",$=k?{x:T,y:j}:{y:T,x:j},R=this.state.formattedGraphicalItems.find(function(D){var F=D.item;return F.type.name==="Scatter"});R&&($=L(L({},$),R.props.points[E].tooltipPosition),P=R.props.points[E].tooltipPayload);var B={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:$};this.setState(B),this.renderCursor(A),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var m,x;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(g){$f([st(g.children,$t)],[st(this.props.children,$t)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=st(this.props.children,$t);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return u.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,m=S.getBoundingClientRect(),x=xM(m),_={chartX:Math.round(g.pageX-x.left),chartY:Math.round(g.pageY-x.top)},A=m.width/S.offsetWidth||1,E=this.inRange(_.chartX,_.chartY,A);if(!E)return null;var M=this.state,P=M.xAxisMap,T=M.yAxisMap,j=this.getTooltipEventType(),k=Tx(this.state,this.props.data,this.props.layout,E);if(j!=="axis"&&P&&T){var $=rr(P).scale,R=rr(T).scale,B=$&&$.invert?$.invert(_.chartX):null,D=R&&R.invert?R.invert(_.chartY):null;return L(L({},_),{},{xValue:B,yValue:D},k)}return k?L(L({},_),k):null}},{key:"inRange",value:function(g,S){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,_=g/m,A=S/m;if(x==="horizontal"||x==="vertical"){var E=this.state.offset,M=_>=E.left&&_<=E.left+E.width&&A>=E.top&&A<=E.top+E.height;return M?{x:_,y:A}:null}var P=this.state,T=P.angleAxisMap,j=P.radiusAxisMap;if(T&&j){var k=rr(T);return Db({x:_,y:A},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),m=st(g,$t),x={};m&&S==="axis"&&(m.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=_a(this.props,this.handleOuterEvent);return L(L({},_),x)}},{key:"addListener",value:function(){Sf.on(Of,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Sf.removeListener(Of,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,m){for(var x=this.state.formattedGraphicalItems,_=0,A=x.length;_<A;_++){var E=x[_];if(E.item===g||E.props.key===g.key||S===Ht(E.item.type)&&m===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,m=S.left,x=S.top,_=S.height,A=S.width;return O.createElement("defs",null,O.createElement("clipPath",{id:g},O.createElement("rect",{x:m,y:x,height:_,width:A})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,m){var x=Ax(m,2),_=x[0],A=x[1];return L(L({},S),{},ie({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,m){var x=Ax(m,2),_=x[0],A=x[1];return L(L({},S),{},ie({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,m=S.formattedGraphicalItems,x=S.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var E=m[_],M=E.props,P=E.item,T=P.type.defaultProps!==void 0?L(L({},P.type.defaultProps),P.props):P.props,j=Ht(P.type);if(j==="Bar"){var k=(M.data||[]).find(function(D){return qN(g,D)});if(k)return{graphicalItem:E,payload:k}}else if(j==="RadialBar"){var $=(M.data||[]).find(function(D){return Db(g,D)});if($)return{graphicalItem:E,payload:$}}else if(Go(E,x)||Ko(E,x)||Fi(E,x)){var R=T2({graphicalItem:E,activeTooltipItem:x,itemData:T.data}),B=T.activeIndex===void 0?R:T.activeIndex;return{graphicalItem:L(L({},E),{},{childIndex:B}),payload:Fi(E,x)?T.data[R]:E.props.data[R]}}}return null}},{key:"render",value:function(){var g=this;if(!Cm(this))return null;var S=this.props,m=S.children,x=S.className,_=S.width,A=S.height,E=S.style,M=S.compact,P=S.title,T=S.desc,j=Px(S,OF),k=se(j,!1);if(M)return O.createElement(rx,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Rf,Gr({},k,{width:_,height:A,title:P,desc:T}),this.renderClipPath(),jm(m,this.renderMap)));if(this.props.accessibilityLayer){var $,R;k.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,k.role=(R=this.props.role)!==null&&R!==void 0?R:"application",k.onKeyDown=function(D){g.accessibilityManager.keyboardEvent(D)},k.onFocus=function(){g.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return O.createElement(rx,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Gr({className:fe("recharts-wrapper",x),style:L({position:"relative",cursor:"default",width:_,height:A},E)},B,{ref:function(F){g.container=F}}),O.createElement(Rf,Gr({},k,{width:_,height:A,title:P,desc:T,style:BF}),this.renderClipPath(),jm(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);ie(y,"displayName",r),ie(y,"defaultProps",L({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ie(y,"getDerivedStateFromProps",function(h,b){var w=h.dataKey,g=h.data,S=h.children,m=h.width,x=h.height,_=h.layout,A=h.stackOffset,E=h.margin,M=b.dataStartIndex,P=b.dataEndIndex;if(b.updateId===void 0){var T=Cx(h);return L(L(L({},T),{},{updateId:0},p(L(L({props:h},T),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:g,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:E,prevChildren:S})}if(w!==b.prevDataKey||g!==b.prevData||m!==b.prevWidth||x!==b.prevHeight||_!==b.prevLayout||A!==b.prevStackOffset||!Xr(E,b.prevMargin)){var j=Cx(h),k={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},$=L(L({},Tx(b,g,_)),{},{updateId:b.updateId+1}),R=L(L(L({},j),k),$);return L(L(L({},R),p(L({props:h},R),b)),{},{prevDataKey:w,prevData:g,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:E,prevChildren:S})}if(!$f(S,b.prevChildren)){var B,D,F,I,N=st(S,dn),z=N&&(B=(D=N.props)===null||D===void 0?void 0:D.startIndex)!==null&&B!==void 0?B:M,H=N&&(F=(I=N.props)===null||I===void 0?void 0:I.endIndex)!==null&&F!==void 0?F:P,X=z!==M||H!==P,J=!oe(g),ee=J&&!X?b.updateId:b.updateId+1;return L(L({updateId:ee},p(L(L({props:h},b),{},{updateId:ee,dataStartIndex:z,dataEndIndex:H}),b)),{},{prevChildren:S,dataStartIndex:z,dataEndIndex:H})}return null}),ie(y,"renderActiveDot",function(h,b,w){var g;return O.isValidElement(h)?g=O.cloneElement(h,b):le(h)?g=h(b):g=O.createElement(Ho,b),O.createElement(ye,{className:"recharts-active-dot",key:w},g)});var v=O.forwardRef(function(b,w){return O.createElement(y,Gr({},b,{ref:w}))});return v.displayName=y.displayName,v},ZF=XF({chartName:"ComposedChart",GraphicalChild:[eu,pr,Dn,ru],axisComponents:[{axisType:"xAxis",AxisComp:nu},{axisType:"yAxis",AxisComp:iu},{axisType:"zAxis",AxisComp:tu}],formatAxisMap:xL});const Yn=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},JF=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),QF=e=>new Intl.NumberFormat("en-US").format(e);function ez(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return Yn()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const d=[...t].sort((y,v)=>y.timestamp-v.timestamp);return d.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&Yn()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),d},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return Yn()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const d=r.filter(p=>!p.dataKey||!p.label||!p.color?(Yn()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(Yn()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),v=d.filter(h=>!y.has(h.dataKey));v.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",v.map(h=>h.dataKey))}}return d},[r,a]),{minTimestamp:u,maxTimestamp:s}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const d=a[0],p=a[a.length-1];return{minTimestamp:(d==null?void 0:d.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),l=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(d=>o.reduce((p,y)=>{const v=d[y.dataKey];return p+(typeof v=="number"?v:0)},0))),[a,o]),f=O.useMemo(()=>n||JF,[n]),c=O.useMemo(()=>i||QF,[i]);return{processedData:a,processedCategories:o,minTimestamp:u,maxTimestamp:s,maxTotalValue:l,dateFormatter:f,valueFormatter:c}}function tz(e,t){const r=t-1-e,n=Qn.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return Qn[a]??Qn[0]??"#000000"}function rz(e){return Array.from({length:e},(t,r)=>tz(r,e))}const Ur=rz(5),Ft={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:mt.neoDigitalGreen[600],inProgress:"#007bff",farthest:Ur[0],far:Ur[1],close:Ur[2],closest:Ur[3],completed:Ur[4],primary:"#007bff",secondary:"#6c757d",success:mt.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:mt.neoGrey[200],dark:"#343a40"},pe={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:mt.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:mt.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},nz={migration:Ur,severity:[Ft.critical,Ft.high,Ft.medium,Ft.low,Ft.info],status:[Ft.danger,Ft.warning,Ft.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},iz={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},az=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=pe.display.showHeader,height:o=pe.dimensions.height,width:u=pe.dimensions.width,showLegend:s=pe.display.showLegend,showTooltip:l=pe.display.showTooltip,showXAxis:f=pe.display.showXAxis,showYAxis:c=pe.display.showYAxis,showGrid:d=pe.display.showGrid,enableAnimation:p=pe.animation.enabled,animationDuration:y=pe.animation.duration,animationEasing:v=pe.animation.easing,formatDate:h,formatValue:b,tooltipFormatter:w,slotProps:g,margin:S=pe.margin,curveType:m=pe.curve.type,stackOffset:x=pe.stack.offset,timeRange:_,onTimeRangeChange:A,enableBrush:E=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:T,dateFormatter:j,valueFormatter:k}=ez({data:e,categories:t,formatDate:h,formatValue:b}),[$,R]=O.useState(null),[B,D]=O.useState(!1),[F,I]=O.useState(null),[N,z]=O.useState(null),H=O.useRef(null),X=_?[_[0],_[1]]:["dataMin","dataMax"],J=P.length>0?P[0].timestamp:0,ee=P.length>0?P[P.length-1].timestamp:0,ne=O.useCallback((te,de)=>{const Ie=te/de*100,et=ee-J;return J+Ie/100*et},[J,ee]),K=O.useCallback(te=>{const de=ee-J;return de===0?0:(te-J)/de*100},[J,ee]),q=O.useCallback(te=>{if(!E)return;const de=te.currentTarget.getBoundingClientRect(),Ie=te.clientX-de.left,et=ne(Ie,de.width);D(!0),I(et),z(et)},[E,ne]),W=O.useCallback(te=>{if(!H.current)return;const de=te.currentTarget.getBoundingClientRect(),Ie=te.clientX-de.left,et=de.width,hr=ne(Ie,et);if(B)F!==null&&z(hr);else{const St=r.find(Lr=>Math.abs(Lr.timestamp-hr)<2592e5);R((St==null?void 0:St.timestamp)??null)}},[B,F,ne,r]),Z=O.useCallback(()=>{if(B&&F!==null&&N!==null&&A){const te=Math.min(F,N),de=Math.max(F,N);te!==de&&A([te,de])}D(!1),I(null),z(null)},[B,F,N,A]),C=O.useCallback(()=>{Z(),R(null)},[Z]),U=(M?B:!0)&&B&&F!==null&&N!==null?{left:K(Math.min(F,N)),width:Math.abs(K(N)-K(F))}:null,he=(_?P.filter(te=>te.timestamp>=_[0]&&te.timestamp<=_[1]):P).map(te=>{const de=r.find(Ie=>Ie.timestamp===te.timestamp);return de&&de.label?{...te,__markerLabel:de.label}:te}),Ce=te=>j(te),Ge=te=>k(te),ct=({active:te,payload:de,label:Ie})=>{if(!te||!de||de.length===0)return null;const et=he.find(wt=>wt.timestamp===Ie);if(et&&"__markerLabel"in et){const St=String(et.__markerLabel).split(" - "),Lr=St[0]||"",S1=St[1]||"";return Y.jsxs(re.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[Y.jsx(re.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:S1}),Y.jsx(re.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Lr})]})}return Y.jsxs(re.Box,{sx:{backgroundColor:pe.tooltip.backgroundColor,border:`${pe.tooltip.borderWidth}px solid ${pe.tooltip.borderColor}`,borderRadius:pe.tooltip.borderRadius,padding:pe.tooltip.padding},children:[Y.jsx(re.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:j(Ie)}),de.map((wt,St)=>Y.jsxs(re.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[Y.jsx(re.Box,{sx:{width:10,height:10,backgroundColor:wt.color,borderRadius:"2px"}}),Y.jsxs(re.Typography,{sx:{fontSize:"14px"},children:[wt.name,": ",k(wt.value)]})]},`item-${St}`))]})};return Y.jsxs(re.Stack,{sx:{width:"100%",alignItems:"center"},...g==null?void 0:g.container,children:[a&&(n||i)&&Y.jsxs(re.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...g==null?void 0:g.header,children:[n&&Y.jsx(re.Typography,{variant:"h5",sx:{fontWeight:500},...g==null?void 0:g.title,children:n}),i&&Y.jsx(re.Typography,{variant:"body2",sx:{color:"text.secondary"},...g==null?void 0:g.subtitle,children:i})]}),Y.jsxs(re.Box,{ref:H,sx:{width:"100%",height:`${o}px`,minHeight:pe.dimensions.minHeight,position:"relative"},...g==null?void 0:g.chartContainer,children:[Y.jsx(pM,{width:u,height:"100%",children:Y.jsxs(ZF,{data:he,margin:S,stackOffset:x,children:[d&&Y.jsx(ZO,{strokeDasharray:"3 3",stroke:pe.axis.strokeColor,opacity:.3}),f&&Y.jsx(nu,{dataKey:"timestamp",type:"number",domain:X,tickFormatter:Ce,stroke:pe.axis.strokeColor,tick:{fill:pe.axis.tickColor},scale:"time"}),c&&Y.jsx(iu,{tickFormatter:Ge,stroke:pe.axis.strokeColor,tick:{fill:pe.axis.tickColor}}),l&&Y.jsx($t,{content:Y.jsx(ct,{})}),s&&Y.jsx(Or,{iconSize:pe.legend.iconSize,iconType:pe.legend.iconType,layout:pe.legend.layout,align:pe.legend.align,verticalAlign:pe.legend.verticalAlign}),T.map(te=>Y.jsx(pr,{type:m,dataKey:te.dataKey,name:te.label,stackId:"1",stroke:te.color,fill:te.strokeDasharray?"transparent":te.color,fillOpacity:te.strokeDasharray?0:te.fillOpacity??.7,strokeWidth:te.strokeWidth??2,strokeDasharray:te.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:v},te.dataKey)),r.filter(te=>$===null||te.timestamp===$).map((te,de)=>Y.jsx(Yo,{x:te.timestamp,stroke:te.color??pe.marker.strokeColor,strokeWidth:te.strokeWidth??pe.marker.strokeWidth,strokeDasharray:te.strokeDasharray??pe.marker.strokeDasharray,strokeOpacity:$===null?0:1},`marker-${te.timestamp}-${de}`))]},_?`${_[0]}-${_[1]}`:"default")}),E&&Y.jsxs(re.Box,{sx:{position:"absolute",top:S.top||0,left:S.left||0,right:S.right||0,bottom:S.bottom||0,cursor:B?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:q,onMouseMove:W,onMouseUp:Z,onMouseLeave:C,children:[U&&Y.jsx(re.Box,{sx:{position:"absolute",left:`${U.left}%`,width:`${U.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),$&&Y.jsx(Y.Fragment,{children:r.filter(te=>te.timestamp===$).map(te=>Y.jsx(re.Box,{sx:{position:"absolute",left:`${K(te.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:te.label||j(te.timestamp)},`tooltip-${te.timestamp}`))})]})]})]})},It={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},_t={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:It.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${It.dimensions.height}px`,backgroundColor:It.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${It.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${It.dimensions.eventWidth}px`,height:"100%",backgroundColor:It.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:It.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${It.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:It.colors.tooltipText,fontSize:"11px"}}},oz=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},uz=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{oz()&&e.length>1&&(e.every((F,I)=>I===0||F.timestamp>=e[I-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[u,s]=O.useState(!1),[l,f]=O.useState(null),[c,d]=O.useState({start:null,end:null}),[p,y]=O.useState({start:null,end:null}),[v,h]=O.useState(null),b=t??c,w=a??p,g=O.useMemo(()=>{var D;return e.length>0?((D=e[0])==null?void 0:D.timestamp)??0:0},[e]),S=O.useMemo(()=>{var D;return e.length>0?((D=e[e.length-1])==null?void 0:D.timestamp)??0:0},[e]),m=O.useMemo(()=>i&&w.start&&w.end?w.start:g,[i,w,g]),x=O.useMemo(()=>i&&w.start&&w.end?w.end:S,[i,w,S]),_=O.useMemo(()=>x-m,[x,m]),A=O.useCallback(D=>_===0?0:(D-m)/_*100,[m,_]),E=O.useCallback((D,F)=>{const I=D/F*100;return m+I/100*_},[m,_]),M=O.useCallback(D=>{t===void 0&&d(D),r==null||r(D)},[t,r]),P=O.useCallback(D=>{const F=D.currentTarget.getBoundingClientRect(),I=D.clientX-F.left,N=E(I,F.width);s(!0),f(N),M({start:N,end:N})},[E,M]),T=O.useCallback(D=>{if(!u||l===null)return;const F=D.currentTarget.getBoundingClientRect(),I=D.clientX-F.left,N=E(I,F.width);M({start:Math.min(l,N),end:Math.max(l,N)})},[u,l,E,M]),j=O.useCallback(()=>{const D=u;if(s(!1),D&&i&&b.start&&b.end&&b.start!==b.end){const F={start:b.start,end:b.end};a===void 0&&y(F),o==null||o(F)}},[u,i,b,a,o]),k=O.useCallback(D=>{if(D.preventDefault(),!n||!b.start||!b.end||_===0)return;const F=(b.start+b.end)/2,I=b.end-b.start,N=D.deltaY>0?1.1:.9,z=Math.max(I*N,_*.01),H=_*1.5,X=Math.min(z,H);let J=F-X/2,ee=F+X/2;J<m&&(J=m,ee=Math.min(m+X,x)),ee>x&&(ee=x,J=Math.max(x-X,m)),M({start:J,end:ee})},[n,b,_,m,x,M]),$=O.useCallback(()=>!b.start||!b.end?[]:e.filter(D=>D.timestamp>=b.start&&D.timestamp<=b.end),[e,b]),R=O.useCallback(()=>{const D={start:g,end:S};a===void 0&&y({start:null,end:null}),o==null||o(D)},[g,S,a,o]),B=O.useCallback(()=>{i&&R()},[i,R]);return{isDragging:u,dragStart:l,internalSelectedRange:b,internalVisibleRange:w,hoveredEvent:v,minDate:m,maxDate:x,timeSpan:_,getPositionFromTimestamp:A,getTimestampFromPosition:E,handleMouseDown:P,handleMouseMove:T,handleMouseUp:j,handleWheel:k,handleDoubleClick:B,setHoveredEvent:h,getEventsInRange:$,resetZoom:R}},sz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),lz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),cz=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},fz=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},dz=e=>({header:{..._t.header,...e==null?void 0:e.header},title:{..._t.title,...e==null?void 0:e.title},instructions:{..._t.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{..._t.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{..._t.monthLabel,...e==null?void 0:e.monthLabel},timeline:{..._t.timeline,...e==null?void 0:e.timeline},event:{..._t.event,...e==null?void 0:e.event},selection:{..._t.selection,...e==null?void 0:e.selection},tooltip:{..._t.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{..._t.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{..._t.tooltipDate,...e==null?void 0:e.tooltipDate}}),pz=({events:e,onSelectionChange:t,selectedRange:r,height:n=It.dimensions.height,formatDate:i=sz,formatMonthYear:a=lz,showMonthLabels:o=!0,monthLabelCount:u=6,enableZoom:s=!0,showHeader:l=!0,title:f="Event Timeline Selector",zoomToSelection:c=!1,visibleRange:d,onVisibleRangeChange:p,timeRange:y,onTimeRangeChange:v,slotProps:h})=>{const b=y?{start:y[0],end:y[1]}:d,w=v?D=>{D.start!==null&&D.end!==null&&v([D.start,D.end])}:p;fz()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const g=O.useMemo(()=>dz(h),[h]),{isDragging:S,internalSelectedRange:m,hoveredEvent:x,minDate:_,timeSpan:A,getPositionFromTimestamp:E,handleMouseDown:M,handleMouseMove:P,handleMouseUp:T,handleWheel:j,handleDoubleClick:k,setHoveredEvent:$,getEventsInRange:R}=uz({events:e,selectedRange:r,onSelectionChange:t,enableZoom:s,zoomToSelection:c,visibleRange:b,onVisibleRangeChange:w}),B=m.start&&m.end?`Selected: ${i(m.start)} - ${i(m.end)} (${R().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return Y.jsxs(re.Stack,{sx:{width:"100%"},children:[l&&Y.jsxs(re.Stack,{spacing:1,sx:{mb:3},...g.header,children:[Y.jsx(re.Typography,{variant:"h5",...g.title,children:f}),Y.jsx(re.Typography,{variant:"body2",...g.instructions,children:B})]}),o&&Y.jsx(re.Stack,{direction:"row",...g.monthLabelsContainer,children:Array.from({length:u},(D,F)=>{const I=_+A/(u-1)*F,N=cz(A);return Y.jsx(re.Typography,{variant:"caption",...g.monthLabel,children:N(I)},F)})}),Y.jsxs(re.Box,{...g.timeline,sx:{...g.timeline.sx,height:`${n}px`},children:[Y.jsx(re.Box,{sx:{position:"absolute",top:0,left:0,right:0,height:"100%"},children:e.map((D,F)=>{const I=E(D.timestamp);return Y.jsx(re.Box,{onMouseEnter:()=>$(D),onMouseLeave:()=>$(null),"aria-label":`Event: ${D.eventName} at ${i(D.timestamp)}`,...g.event,sx:{...g.event.sx,left:`${I}%`,transform:(x==null?void 0:x.timestamp)===D.timestamp?"scaleX(2)":"scaleX(1)"}},`${D.timestamp}-${F}`)})}),m.start&&m.end&&(!c||S)&&Y.jsx(re.Box,{...g.selection,sx:{...g.selection.sx,left:`${E(m.start)}%`,width:`${E(m.end)-E(m.start)}%`}}),Y.jsx(re.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":l?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:M,onMouseMove:P,onMouseUp:T,onMouseLeave:T,onWheel:j,onDoubleClick:k}),!l&&Y.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:B}),x&&Y.jsxs(re.Box,{role:"tooltip","aria-live":"polite",...g.tooltip,sx:{...g.tooltip.sx,left:`${E(x.timestamp)}%`,transform:"translateX(-50%)"},children:[Y.jsx(re.Typography,{variant:"body2",...g.tooltipEventName,children:x.eventName}),Y.jsx(re.Typography,{variant:"caption",...g.tooltipDate,children:i(x.timestamp)})]})]})]})},hz="#8b5cf6",vz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),yz=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=vz,primaryColor:i=hz})=>e.length===0?null:Y.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[Y.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),Y.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>Y.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[Y.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),Y.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=ri;exports.CAMPAIGN_NOT_APPLICABLE=ei;exports.CAMPAIGN_NO_LST=ti;exports.CATEGORY_LABELS=iz;exports.DEFAULT_CHART_COLORS=mt;exports.DEFAULT_CHART_CONFIG=Ze;exports.DEFAULT_STACKED_AREA_COLORS=Ft;exports.DEFAULT_STACKED_AREA_CONFIG=pe;exports.MEASURE_GRADIENT_COLORS=Qn;exports.MODERNE_VULNERABILITY_COLORS=Yr;exports.ParliamentChart=oE;exports.STACKED_AREA_PALETTES=nz;exports.StackedAreaChart=az;exports.TimelineChart=pz;exports.TimelineSelectedEvents=yz;exports.calculateDataSeries=Pw;exports.calculateOptimalArcAngle=_w;exports.calculateOptimalSeatSize=Aw;
136
+ */var Tm,uA;function D8(){if(uA)return Tm;uA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Tm}var Pm,cA;function O0(){if(cA)return Pm;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pm=e,Pm}var Em,fA;function eM(){return fA||(fA=1,Em=Function.call.bind(Object.prototype.hasOwnProperty)),Em}var Cm,hA;function I8(){if(hA)return Cm;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=O0(),r={},n=eM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Cm=i,Cm}var Mm,pA;function N8(){if(pA)return Mm;pA=1;var e=tM(),t=D8(),r=O0(),n=eM(),i=I8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Mm=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var j=I&&(u&&I[u]||I[c]);if(typeof j=="function")return j}var h="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:w(),arrayOf:b,element:_(),elementType:g(),instanceOf:x,node:k(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,j){return I===j?I!==0||1/I===1/j:I!==I&&j!==j}function m(I,j){this.message=I,this.data=j&&typeof j=="object"?j:{},this.stack=""}m.prototype=Error.prototype;function d(I){if(process.env.NODE_ENV!=="production")var j={},N=0;function z(B,Z,V,G,W,Y,X){if(G=G||h,Y=Y||V,X!==r){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ot=G+":"+V;!j[ot]&&N<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+G+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[ot]=!0,N++)}}return Z[V]==null?B?Z[V]===null?new m("The "+W+" `"+Y+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new m("The "+W+" `"+Y+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:I(Z,V,G,W,Y)}var H=z.bind(null,!1);return H.isRequired=z.bind(null,!0),H}function v(I){function j(N,z,H,B,Z,V){var G=N[z],W=$(G);if(W!==I){var Y=L(G);return new m("Invalid "+B+" `"+Z+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return d(j)}function w(){return d(o)}function b(I){function j(N,z,H,B,Z){if(typeof I!="function")return new m("Property `"+Z+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var V=N[z];if(!Array.isArray(V)){var G=$(V);return new m("Invalid "+B+" `"+Z+"` of type "+("`"+G+"` supplied to `"+H+"`, expected an array."))}for(var W=0;W<V.length;W++){var Y=I(V,W,H,B,Z+"["+W+"]",r);if(Y instanceof Error)return Y}return null}return d(j)}function _(){function I(j,N,z,H,B){var Z=j[N];if(!s(Z)){var V=$(Z);return new m("Invalid "+H+" `"+B+"` of type "+("`"+V+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return d(I)}function g(){function I(j,N,z,H,B){var Z=j[N];if(!e.isValidElementType(Z)){var V=$(Z);return new m("Invalid "+H+" `"+B+"` of type "+("`"+V+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return d(I)}function x(I){function j(N,z,H,B,Z){if(!(N[z]instanceof I)){var V=I.name||h,G=q(N[z]);return new m("Invalid "+B+" `"+Z+"` of type "+("`"+G+"` supplied to `"+H+"`, expected ")+("instance of `"+V+"`."))}return null}return d(j)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function j(N,z,H,B,Z){for(var V=N[z],G=0;G<I.length;G++)if(y(V,I[G]))return null;var W=JSON.stringify(I,function(X,D){var ot=L(D);return ot==="symbol"?String(D):D});return new m("Invalid "+B+" `"+Z+"` of value `"+String(V)+"` "+("supplied to `"+H+"`, expected one of "+W+"."))}return d(j)}function A(I){function j(N,z,H,B,Z){if(typeof I!="function")return new m("Property `"+Z+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var V=N[z],G=$(V);if(G!=="object")return new m("Invalid "+B+" `"+Z+"` of type "+("`"+G+"` supplied to `"+H+"`, expected an object."));for(var W in V)if(n(V,W)){var Y=I(V,W,H,B,Z+"."+W,r);if(Y instanceof Error)return Y}return null}return d(j)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var j=0;j<I.length;j++){var N=I[j];if(typeof N!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(N)+" at index "+j+"."),o}function z(H,B,Z,V,G){for(var W=[],Y=0;Y<I.length;Y++){var X=I[Y],D=X(H,B,Z,V,G,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&W.push(D.data.expectedType)}var ot=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new m("Invalid "+V+" `"+G+"` supplied to "+("`"+Z+"`"+ot+"."))}return d(z)}function k(){function I(j,N,z,H,B){return M(j[N])?null:new m("Invalid "+H+" `"+B+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return d(I)}function P(I,j,N,z,H){return new m((I||"React class")+": "+j+" type `"+N+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function E(I){function j(N,z,H,B,Z){var V=N[z],G=$(V);if(G!=="object")return new m("Invalid "+B+" `"+Z+"` of type `"+G+"` "+("supplied to `"+H+"`, expected `object`."));for(var W in I){var Y=I[W];if(typeof Y!="function")return P(H,B,Z,W,L(Y));var X=Y(V,W,H,B,Z+"."+W,r);if(X)return X}return null}return d(j)}function C(I){function j(N,z,H,B,Z){var V=N[z],G=$(V);if(G!=="object")return new m("Invalid "+B+" `"+Z+"` of type `"+G+"` "+("supplied to `"+H+"`, expected `object`."));var W=t({},N[z],I);for(var Y in W){var X=I[Y];if(n(I,Y)&&typeof X!="function")return P(H,B,Z,Y,L(X));if(!X)return new m("Invalid "+B+" `"+Z+"` key `"+Y+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(N[z],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(I),null," "));var D=X(V,Y,H,B,Z+"."+Y,r);if(D)return D}return null}return d(j)}function M(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(M);if(I===null||s(I))return!0;var j=f(I);if(j){var N=j.call(I),z;if(j!==I.entries){for(;!(z=N.next()).done;)if(!M(z.value))return!1}else for(;!(z=N.next()).done;){var H=z.value;if(H&&!M(H[1]))return!1}}else return!1;return!0;default:return!1}}function R(I,j){return I==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function $(I){var j=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":R(j,I)?"symbol":j}function L(I){if(typeof I>"u"||I===null)return""+I;var j=$(I);if(j==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return j}function F(I){var j=L(I);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function q(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Mm}var km,dA;function L8(){if(dA)return km;dA=1;var e=O0();function t(){}function r(){}return r.resetWarningCache=t,km=function(){function n(o,s,l,u,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},km}var mA;function B8(){if(mA)return Jl.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Jl.exports=N8()(e.isElement,t)}else Jl.exports=L8()();return Jl.exports}var q8=B8();const Nt=Ft(q8);var F8=Object.getOwnPropertyNames,z8=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function tu(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function W8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return F8(e).concat(z8(e))}var H8=Object.hasOwn||(function(e,t){return U8.call(e,t)});function xa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G8="__v",K8="__o",X8="_owner",vA=Object.getOwnPropertyDescriptor,bA=Object.keys;function Y8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function V8(e,t){return xa(e.getTime(),t.getTime())}function Z8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function J8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var Q8=xa;function tH(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function es(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function eH(e,t){return xa(e.valueOf(),t.valueOf())}function rH(e,t){return e.source===t.source&&e.flags===t.flags}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function nH(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function iH(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function rM(e,t,r,n){return(n===X8||n===K8||n===G8)&&(e.$$typeof||t.$$typeof)?!0:H8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var aH="[object Arguments]",oH="[object Boolean]",sH="[object Date]",lH="[object Error]",uH="[object Map]",cH="[object Number]",fH="[object Object]",hH="[object RegExp]",pH="[object Set]",dH="[object String]",mH="[object URL]",yH=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,gH=Object.prototype.toString.call.bind(Object.prototype.toString);function vH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,v){if(m===d)return!0;if(m==null||d==null)return!1;var w=typeof m;if(w!==typeof d)return!1;if(w!=="object")return w==="number"?o(m,d,v):w==="function"?i(m,d,v):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,v);if(yH(m))return t(m,d,v);if(wA!=null&&wA(m))return f(m,d,v);if(b===Date)return r(m,d,v);if(b===RegExp)return u(m,d,v);if(b===Map)return a(m,d,v);if(b===Set)return c(m,d,v);var _=gH(m);if(_===sH)return r(m,d,v);if(_===hH)return u(m,d,v);if(_===uH)return a(m,d,v);if(_===pH)return c(m,d,v);if(_===fH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,v);if(_===mH)return h(m,d,v);if(_===lH)return n(m,d,v);if(_===aH)return s(m,d,v);if(_===oH||_===cH||_===dH)return l(m,d,v);if(p){var g=p[_];if(!g){var x=W8(m);x&&(g=p[x])}if(g)return g(m,d,v)}return!1}}function bH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?es:Y8,areDatesEqual:V8,areErrorsEqual:Z8,areFunctionsEqual:J8,areMapsEqual:n?yA(_A,es):_A,areNumbersEqual:Q8,areObjectsEqual:n?es:tH,arePrimitiveWrappersEqual:eH,areRegExpsEqual:rH,areSetsEqual:n?yA(xA,es):xA,areTypedArraysEqual:n?es:nH,areUrlsEqual:iH,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=tu(i.areArraysEqual),o=tu(i.areMapsEqual),s=tu(i.areObjectsEqual),l=tu(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function _H(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function xH(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var wH=Ti();Ti({strict:!0});Ti({circular:!0});Ti({circular:!0,strict:!0});Ti({createInternalComparator:function(){return xa}});Ti({strict:!0,createInternalComparator:function(){return xa}});Ti({circular:!0,createInternalComparator:function(){return xa}});Ti({circular:!0,createInternalComparator:function(){return xa},strict:!0});function Ti(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=bH(e),l=vH(s),u=n?n(l):_H(l);return xH({circular:r,comparator:l,createState:i,equals:u,strict:o})}function SH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):SH(i)};requestAnimationFrame(n)}function yg(e){"@babel/helpers - typeof";return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(e)}function AH(e){return EH(e)||PH(e)||TH(e)||OH()}function OH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TH(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EH(e){if(Array.isArray(e))return e}function CH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=AH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){AA(i.bind(null,u),l);return}i(l),AA(i.bind(null,u));return}yg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=MH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=kH(e,"string");return ul(t)==="symbol"?t:String(t)}function kH(e,t){if(ul(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $H=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},jH=function(t){return t},RH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},As=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},nM({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(RH(i)," ").concat(r,"ms ").concat(n)}).join(",")},DH=process.env.NODE_ENV!=="production",Ju=function(t,r,n,i,a,o,s,l){if(DH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function IH(e,t){return BH(e)||LH(e,t)||iM(e,t)||NH()}function NH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function BH(e){if(Array.isArray(e))return e}function qH(e){return UH(e)||zH(e)||iM(e)||FH()}function FH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function zH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UH(e){if(Array.isArray(e))return gg(e)}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qu=1e-4,aM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=aM(t,r);return oM(i,n)}},WH=function(t,r){return function(n){var i=aM(t,r),a=[].concat(qH(i.map(function(o,s){return o*s}).slice(1)),[0]);return oM(a,n)}},MA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=IH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Ju(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Ju([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=WH(i,o),y=function(v){return v>1?1:v<0?0:v},m=function(v){for(var w=v>1?1:v,b=w,_=0;_<8;++_){var g=f(b)-w,x=p(b);if(Math.abs(g-w)<Qu||x<Qu)return h(b);b=y(b-g/x)}return h(b)};return m.isStepper=!1,m},HH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<Qu&&Math.abs(m)<Qu?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},GH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MA(i);case"spring":return HH();default:if(i.split("(")[0]==="cubic-bezier")return MA(i);Ju(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Ju(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function kA(e){return YH(e)||XH(e)||sM(e)||KH()}function KH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YH(e){if(Array.isArray(e))return bg(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vg(e,t,r){return t=VH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VH(e){var t=ZH(e,"string");return cl(t)==="symbol"?t:String(t)}function ZH(e,t){if(cl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JH(e,t){return e6(e)||t6(e,t)||sM(e,t)||QH()}function QH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function e6(e){if(Array.isArray(e))return e}var tc=function(t,r,n){return t+(r-t)*n},_g=function(t){var r=t.from,n=t.to;return r!==n},r6=function e(t,r,n){var i=As(function(a,o){if(_g(o)){var s=t(o.from,o.to,o.velocity),l=JH(s,2),u=l[0],c=l[1];return De(De({},o),{},{from:u,velocity:c})}return o},r);return n<1?As(function(a,o){return _g(o)?De(De({},o),{},{velocity:tc(o.velocity,i[a].velocity,n),from:tc(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const n6=(function(e,t,r,n,i){var a=$H(e,t),o=a.reduce(function(d,v){return De(De({},d),{},vg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(d,v){return De(De({},d),{},vg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return As(function(v,w){return w.from},s)},p=function(){return!Object.values(s).filter(_g).length},y=function(v){u||(u=v);var w=v-u,b=w/r.dt;s=r6(r,s,b),i(De(De(De({},e),t),h())),u=v,p()||(l=requestAnimationFrame(f))},m=function(v){c||(c=v);var w=(v-c)/n,b=As(function(g,x){return tc.apply(void 0,kA(x).concat([r(w)]))},o);if(i(De(De(De({},e),t),b)),w<1)l=requestAnimationFrame(f);else{var _=As(function(g,x){return tc.apply(void 0,kA(x).concat([r(1)]))},o);i(De(De(De({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}var i6=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function a6(e,t){if(e==null)return{};var r=o6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o6(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function $m(e){return c6(e)||u6(e)||l6(e)||s6()}function s6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l6(e,t){if(e){if(typeof e=="string")return xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xg(e,t)}}function u6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c6(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){fs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fs(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lM(n.key),n)}}function p6(e,t,r){return t&&h6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lM(e){var t=d6(e,"string");return ho(t)==="symbol"?t:String(t)}function d6(e,t){if(ho(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wg(e,t)}function y6(e){var t=g6();return function(){var n=ec(e),i;if(t){var a=ec(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Sg(this,i)}}function Sg(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ag(e)}function Ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ec(e){return ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ec(e)}var en=(function(e){m6(r,e);var t=y6(r);function r(n,i){var a;f6(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ag(a)),a.changeStyle=a.changeStyle.bind(Ag(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Sg(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Sg(a);a.state={style:l?fs({},l,u):u}}else a.state={style:{}};return a}return p6(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?fs({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(wH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?fs({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(Xr(Xr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=n6(o,s,GH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,v){if(v===0)return m;var w=d.duration,b=d.easing,_=b===void 0?"ease":b,g=d.style,x=d.properties,S=d.onAnimationEnd,A=v>0?o[v-1]:d,T=x||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat($m(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:w,easing:_}),w]);var k=EA(T,w,_),P=Xr(Xr(Xr({},A.style),g),{},{transition:k});return[].concat($m(m),[P,w,S]).filter(jH)};return this.manager.start([l].concat($m(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?fs({},s,l):l,d=EA(Object.keys(m),o,u);y.start([c,a,Xr(Xr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=a6(i,i6),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,v=y.className,w=O.cloneElement(p,Xr(Xr({},l),{},{style:Xr(Xr({},d),c),className:v}));return w};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);en.displayName="Animate";en.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};en.propTypes={from:Nt.oneOfType([Nt.object,Nt.string]),to:Nt.oneOfType([Nt.object,Nt.string]),attributeName:Nt.string,duration:Nt.number,begin:Nt.number,easing:Nt.oneOfType([Nt.string,Nt.func]),steps:Nt.arrayOf(Nt.shape({duration:Nt.number.isRequired,style:Nt.object.isRequired,easing:Nt.oneOfType([Nt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Nt.func]),properties:Nt.arrayOf("string"),onAnimationEnd:Nt.func})),children:Nt.oneOfType([Nt.node,Nt.func]),isActive:Nt.bool,canBegin:Nt.bool,onAnimationEnd:Nt.func,shouldReAnimate:Nt.bool,onAnimationStart:Nt.func,onAnimationReStart:Nt.func};function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function v6(e,t){return w6(e)||x6(e,t)||_6(e,t)||b6()}function b6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _6(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function w6(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){S6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S6(e,t,r){return t=A6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=O6(e,"string");return fl(t)=="symbol"?t:t+""}function O6(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
145
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
146
+ `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
147
+ `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
148
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
149
+ L `).concat(t+n-l*y,",").concat(r,`
150
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
151
+ L `).concat(t+n,",").concat(r+i-s*y,`
152
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
153
+ L `).concat(t+l*y,",").concat(r+i,`
154
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},T6=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},P6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},T0=function(t){var r=IA(IA({},P6),t),n=O.useRef(),i=O.useState(-1),a=v6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=wt("recharts-rectangle",p);return w?O.createElement(en,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:w},function(_){var g=_.width,x=_.height,S=_.x,A=_.y;return O.createElement(en,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:v,easing:y},O.createElement("path",rc({},vt(r,!0),{className:b,d:NA(S,A,g,x,h),ref:n})))}):O.createElement("path",rc({},vt(r,!0),{className:b,d:NA(l,u,c,f,h)}))};function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(this,arguments)}var Vc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=wt("recharts-dot",a);return r===+r&&n===+n&&i===+i?qr.createElement("circle",Og({},vt(t,!1),Bu(t),{className:o,cx:r,cy:n,r:i})):null};function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}var E6=["x","y","top","left","width","height","className"];function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){M6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M6(e,t,r){return t=k6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k6(e){var t=$6(e,"string");return hl(t)=="symbol"?t:t+""}function $6(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j6(e,t){if(e==null)return{};var r=R6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var D6=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},I6=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=j6(t,E6),d=C6({x:n,y:a,top:s,left:u,width:f,height:p},m);return!it(n)||!it(a)||!it(f)||!it(p)||!it(s)||!it(u)?null:O.createElement("path",Tg({},vt(d,!0),{className:wt("recharts-cross",y),d:D6(n,a,f,p,s,u)}))},jm,BA;function N6(){if(BA)return jm;BA=1;var e=XE(),t=e(Object.getPrototypeOf,Object);return jm=t,jm}var Rm,qA;function L6(){if(qA)return Rm;qA=1;var e=Jn(),t=N6(),r=Qn(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Rm=u,Rm}var B6=L6();const q6=Ft(B6);var Dm,FA;function F6(){if(FA)return Dm;FA=1;var e=Jn(),t=Qn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Dm=n,Dm}var z6=F6();const U6=Ft(z6);function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}function W6(e,t){return X6(e)||K6(e,t)||G6(e,t)||H6()}function H6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function X6(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){Y6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y6(e,t,r){return t=V6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V6(e){var t=Z6(e,"string");return pl(t)=="symbol"?t:t+""}function Z6(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},J6={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q6=function(t){var r=WA(WA({},J6),t),n=O.useRef(),i=O.useState(-1),a=W6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var w=wt("recharts-trapezoid",p);return v?O.createElement(en,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(b){var _=b.upperWidth,g=b.lowerWidth,x=b.height,S=b.x,A=b.y;return O.createElement(en,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",nc({},vt(r,!0),{className:w,d:HA(S,A,_,g,x),ref:n})))}):O.createElement("g",null,O.createElement("path",nc({},vt(r,!0),{className:w,d:HA(l,u,c,f,h)})))},tG=["option","shapeType","propTransformer","activeClassName","isActive"];function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function eG(e,t){if(e==null)return{};var r=rG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ic(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){nG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nG(e,t,r){return t=iG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iG(e){var t=aG(e,"string");return dl(t)=="symbol"?t:t+""}function aG(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oG(e,t){return ic(ic({},t),e)}function sG(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(T0,r);case"trapezoid":return O.createElement(Q6,r);case"sector":return O.createElement(QC,r);case"symbols":if(sG(t))return O.createElement(Hc,r);break;default:return null}}function lG(e){return O.isValidElement(e)?e.props:e}function Pg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?oG:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=eG(e,tG),u;if(O.isValidElement(t))u=O.cloneElement(t,ic(ic({},l),lG(t)));else if(bt(t))u=t(l);else if(q6(t)&&!U6(t)){var c=i(t,l);u=O.createElement(KA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(KA,{shapeType:r,elementProps:f})}return s?O.createElement($t,{className:o},u):u}function Zc(e,t){return t!=null&&"trapezoids"in e.props}function Jc(e,t){return t!=null&&"sectors"in e.props}function ml(e,t){return t!=null&&"points"in e.props}function uG(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function cG(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function fG(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function hG(e,t){var r;return Zc(e,t)?r=uG:Jc(e,t)?r=cG:ml(e,t)&&(r=fG),r}function pG(e,t){var r;return Zc(e,t)?r="trapezoids":Jc(e,t)?r="sectors":ml(e,t)&&(r="points"),r}function dG(e,t){if(Zc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Jc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ml(e,t)?t.payload:{}}function mG(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=pG(r,t),a=dG(r,t),o=n.filter(function(l,u){var c=fa(a,l),f=r.props[i].filter(function(y){var m=hG(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){uM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uM(e,t,r){return t=yG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yG(e){var t=gG(e,"string");return yl(t)=="symbol"?t:t+""}function gG(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vG=["Webkit","Moz","O","ms"],bG=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=vG.reduce(function(a,o){return YA(YA({},a),{},uM({},o+n,r))},{});return i[t]=r,i};function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ac.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){vr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function xG(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wG(e,t,r){return t=oc(t),SG(e,cM()?Reflect.construct(t,r||[],oc(e).constructor):t.apply(e,r))}function SG(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AG(e)}function AG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oc(e)}function OG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eg(e,t)}function vr(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=TG(e,"string");return po(t)=="symbol"?t:t+""}function TG(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PG=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=hs().domain(Ws(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},mo=(function(e){function t(r){var n;return _G(this,t),n=wG(this,t,[r]),vr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),vr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),vr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),vr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),vr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),vr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),vr(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return OG(t,e),xG(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Ae(a[n],s,n);return bt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,v={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,f+h-p-u):w<0&&(w=Math.max(w,f-u)),v[o]=u+w;var b=this.getIndex(v),_=b.startIndex,g=b.endIndex,x=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(vr(vr({},o,u+w),"brushMoveStartX",n.pageX),function(){y&&x()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(vr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,v=Math.max(n,this.props.x),w=Im(Im({},vt(this.props,!1)),{},{x:v,y:u,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement($t,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement($t,{className:"recharts-brush-texts"},O.createElement(Hu,ac({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Hu,ac({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,v=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!it(s)||!it(l)||!it(u)||!it(c)||u<=0||c<=0)return null;var b=wt("recharts-brush",a),_=O.Children.count(o)===1,g=bG("userSelect","none");return O.createElement($t,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||v||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Im({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?PG({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);vr(mo,"displayName","Brush");vr(mo,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Nm,QA;function EG(){if(QA)return Nm;QA=1;var e=y0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Nm=t,Nm}var Lm,tO;function CG(){if(tO)return Lm;tO=1;var e=zE(),t=Ai(),r=EG(),n=Qe(),i=kl();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return Lm=a,Lm}var MG=CG();const kG=Ft(MG);var wn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Bm,eO;function $G(){if(eO)return Bm;eO=1;var e=eC();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Bm=t,Bm}var qm,rO;function jG(){if(rO)return qm;rO=1;var e=$G(),t=QE(),r=Ai();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return qm=n,qm}var RG=jG();const DG=Ft(RG);var Fm,nO;function IG(){if(nO)return Fm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Fm=e,Fm}var zm,iO;function NG(){if(iO)return zm;iO=1;var e=y0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zm=t,zm}var Um,aO;function LG(){if(aO)return Um;aO=1;var e=IG(),t=NG(),r=Ai(),n=Qe(),i=kl();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Um=a,Um}var BG=LG();const hM=Ft(BG);var qG=["x","y"];function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){FG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FG(e,t,r){return t=zG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zG(e){var t=UG(e,"string");return yo(t)=="symbol"?t:t+""}function UG(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WG(e,t){if(e==null)return{};var r=HG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GG(e,t){var r=e.x,n=e.y,i=WG(e,qG),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return rs(rs(rs(rs(rs({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return O.createElement(Pg,Cg({shapeType:"rectangle",propTransformer:GG,activeClassName:"recharts-active-bar"},e))}var KG=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=it(n)||m5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?ar(!1,"minPointSize callback function received a value with type of ".concat(yo(n),". Currently only numbers or null/undefined are supported.")):ar()),r)}},XG=["value","background"],pM;function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function YG(e,t){if(e==null)return{};var r=VG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mM(n.key),n)}}function JG(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QG(e,t,r){return t=lc(t),t4(e,dM()?Reflect.construct(t,r||[],lc(e).constructor):t.apply(e,r))}function t4(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e4(e)}function e4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lc(e)}function r4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mg(e,t)}function pi(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=n4(e,"string");return go(t)=="symbol"?t:t+""}function n4(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bo=(function(e){function t(){var r;ZG(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=QG(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!1}),pi(r,"id",_a("recharts-bar-")),pi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),pi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return r4(t,e),JG(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=me(me(me({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement($t,sc({className:"recharts-bar-rectangle"},Hs(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(en,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,v){var w=h&&h[v];if(w){var b=fe(w.x,d.x),_=fe(w.y,d.y),g=fe(w.width,d.width),x=fe(w.height,d.height);return me(me({},d),{},{x:b(y),y:_(y),width:g(y),height:x(y)})}if(o==="horizontal"){var S=fe(0,d.height),A=S(y);return me(me({},d),{},{y:d.y+d.height-A,height:A})}var T=fe(0,d.width),k=T(y);return me(me({},d),{},{width:k})});return O.createElement($t,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!fa(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=vt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=YG(u,XG);if(!f)return null;var p=me(me(me(me(me({},h),{},{fill:"#eee"},f),l),Hs(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(sO,sc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=fr(c,Lo);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,v){var w=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:w,errorVal:Ae(d,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement($t,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=wt("recharts-bar",o),w=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,_=w||b,g=gt(m)?this.id:m;return O.createElement($t,{className:v},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?u:u-f/2,y:b?c:c-h/2,width:w?f:f*2,height:b?h:h*2}))):null,O.createElement($t,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&xn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);pM=Bo;pi(Bo,"displayName","Bar");pi(Bo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});pi(Bo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=xW(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?me(me({},m),r.props):r.props,v=d.dataKey,w=d.children,b=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,x=CW({numericAxis:_}),S=fr(w,x0),A=f.map(function(T,k){var P,E,C,M,R,$;u?P=wW(u[c+k],g):(P=Ae(T,v),Array.isArray(P)||(P=[x,P]));var L=KG(b,pM.defaultProps.minPointSize)(P[1],k);if(y==="horizontal"){var F,q=[o.scale(P[0]),o.scale(P[1])],I=q[0],j=q[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:k}),C=(F=j??I)!==null&&F!==void 0?F:void 0,M=p.size;var N=I-j;if(R=Number.isNaN(N)?0:N,$={x:E,y:o.y,width:M,height:o.height},Math.abs(L)>0&&Math.abs(R)<Math.abs(L)){var z=tn(R||L)*(Math.abs(L)-Math.abs(R));C-=z,R+=z}}else{var H=[a.scale(P[0]),a.scale(P[1])],B=H[0],Z=H[1];if(E=B,C=US({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:k}),M=Z-B,R=p.size,$={x:a.x,y:C,width:a.width,height:R},Math.abs(L)>0&&Math.abs(M)<Math.abs(L)){var V=tn(M||L)*(Math.abs(L)-Math.abs(M));M+=V}}return me(me(me({},T),{},{x:E,y:C,width:M,height:R,value:u?P:P[1],payload:T,background:$},S&&S[k]&&S[k].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+M/2,y:C+R/2}})});return me({data:A,layout:y},h)});function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function i4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function a4(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){Qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qc(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=o4(e,"string");return gl(t)=="symbol"?t:t+""}function o4(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!br(u,Bo);return c.reduce(function(p,y){var m=r[y],d=m.orientation,v=m.domain,w=m.padding,b=w===void 0?{}:w,_=m.mirror,g=m.reversed,x="".concat(d).concat(_?"Mirror":""),S,A,T,k,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=v[1]-v[0],C=1/0,M=m.categoricalDomain.sort(b5);if(M.forEach(function(H,B){B>0&&(C=Math.min((H||0)-(M[B-1]||0),C))}),Number.isFinite(C)){var R=C/E,$=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=R*$/2),m.padding==="no-gap"){var L=ca(t.barCategoryGap,R*$),F=R*$/2;S=F-L-(F-L)/$*L}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var q=bW(m,a,h),I=q.scale,j=q.realScaleType;I.domain(v).range(A),_W(I);var N=EW(I,Vr(Vr({},m),{},{realScaleType:j}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,k=f[x]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[x]-P*m.width,k=n.top);var z=Vr(Vr(Vr({},m),N),{},{realScaleType:j,x:T,y:k,scale:I,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return z.bandSize=Yu(z,N),!m.hide&&i==="xAxis"?f[x]+=(P?-1:1)*z.height:m.hide||(f[x]+=(P?-1:1)*z.width),Vr(Vr({},p),{},Qc({},y,z))},{})},gM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},l4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gM({x:r,y:n},{x:i,y:a})},vM=(function(){function e(t){i4(this,e),this.scale=t}return a4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Qc(vM,"EPS",1e-4);var P0=function(t){var r=Object.keys(t).reduce(function(n,i){return Vr(Vr({},n),{},Qc({},i,vM.create(t[i])))},{});return Vr(Vr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return DG(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return hM(i,function(a,o){return r[o].isInRange(a)})}})};function u4(e){return(e%180+180)%180}var c4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=u4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Wm,hO;function f4(){if(hO)return Wm;hO=1;var e=Ai(),t=Cl(),r=Ml();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Wm=n,Wm}var Hm,pO;function h4(){if(pO)return Hm;pO=1;var e=mC(),t=Ai(),r=n0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Hm=i,Hm}var Gm,dO;function p4(){if(dO)return Gm;dO=1;var e=f4(),t=h4(),r=e(t);return Gm=r,Gm}var d4=p4();const m4=Ft(d4);var y4=LE();const g4=Ft(y4);var v4=g4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}var E0=O.createContext(void 0),C0=O.createContext(void 0),bM=O.createContext(void 0),_M=O.createContext({}),xM=O.createContext(void 0),wM=O.createContext(0),SM=O.createContext(0),mO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=v4(a);return O.createElement(E0.Provider,{value:n},O.createElement(C0.Provider,{value:i},O.createElement(_M.Provider,{value:a},O.createElement(bM.Provider,{value:c},O.createElement(xM.Provider,{value:o},O.createElement(wM.Provider,{value:u},O.createElement(SM.Provider,{value:l},s)))))))},b4=function(){return O.useContext(xM)};function AM(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var OM=function(t){var r=O.useContext(E0);r==null&&(process.env.NODE_ENV!=="production"?ar(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ar());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ar(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(uc(t),"]. ").concat(AM(r))):ar()),n},_4=function(){var t=O.useContext(E0);return li(t)},x4=function(){var t=O.useContext(C0),r=m4(t,function(n){return hM(n.domain,Number.isFinite)});return r||li(t)},TM=function(t){var r=O.useContext(C0);r==null&&(process.env.NODE_ENV!=="production"?ar(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ar());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ar(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(uc(t),"]. ").concat(AM(r))):ar()),n},w4=function(){var t=O.useContext(bM);return t},S4=function(){return O.useContext(_M)},M0=function(){return O.useContext(SM)},k0=function(){return O.useContext(wM)};function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function A4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EM(n.key),n)}}function T4(e,t,r){return t&&O4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P4(e,t,r){return t=cc(t),E4(e,PM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function E4(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C4(e)}function C4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PM=function(){return!!e})()}function cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(e)}function M4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $0(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=k4(e,"string");return vo(t)=="symbol"?t:t+""}function k4(e,t){if(vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $4(e,t){return I4(e)||D4(e,t)||R4(e,t)||j4()}function j4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R4(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function I4(e){if(Array.isArray(e))return e}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(this,arguments)}var N4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):bt(t)?n=t(r):n=O.createElement("line",$g({},r,{className:"recharts-reference-line-line"})),n},L4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(wn(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var v=u.x,w=t.x.apply(v,{position:o});if(wn(u,"discard")&&!t.x.isInRange(w))return null;var b=[{x:w,y:f+p},{x:w,y:f}];return s==="top"?b.reverse():b}if(i){var _=u.segment,g=_.map(function(x){return t.apply(x,{position:o})});return wn(u,"discard")&&kG(g,function(x){return!t.isInRange(x)})?null:g}return null};function B4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=b4(),c=OM(i),f=TM(a),h=w4();if(!u||!h)return null;Un(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=P0({x:c.scale,y:f.scale}),y=Se(t),m=Se(r),d=n&&n.length===2,v=L4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var w=$4(v,2),b=w[0],_=b.x,g=b.y,x=w[1],S=x.x,A=x.y,T=wn(e,"hidden")?"url(#".concat(u,")"):void 0,k=gO(gO({clipPath:T},vt(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement($t,{className:wt("recharts-reference-line",s)},N4(o,k),We.renderCallByParent(e,l4({x1:_,y1:g,x2:S,y2:A})))}var tf=(function(e){function t(){return A4(this,t),P4(this,t,arguments)}return M4(t,e),T4(t,[{key:"render",value:function(){return O.createElement(B4,this.props)}}])})(O.Component);$0(tf,"displayName","ReferenceLine");$0(tf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){ef(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function z4(e,t,r){return t&&F4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U4(e,t,r){return t=fc(t),W4(e,CM()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function W4(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H4(e)}function H4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CM=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function G4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function ef(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=K4(e,"string");return bo(t)=="symbol"?t:t+""}function K4(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var X4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=P0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return wn(t,"discard")&&!o.isInRange(s)?null:s},rf=(function(e){function t(){return q4(this,t),U4(this,t,arguments)}return G4(t,e),z4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=Se(i),c=Se(a);if(Un(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=X4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,v=wn(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=_O(_O({clipPath:v},vt(this.props,!0)),{},{cx:h,cy:p});return O.createElement($t,{className:wt("recharts-reference-dot",d)},t.renderDot(m,w),We.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);ef(rf,"displayName","ReferenceDot");ef(rf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ef(rf,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(Vc,jg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dg.apply(this,arguments)}function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$M(n.key),n)}}function Z4(e,t,r){return t&&V4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J4(e,t,r){return t=hc(t),Q4(e,kM()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}function Q4(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tK(e)}function tK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kM=function(){return!!e})()}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(e)}function eK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ig(e,t)}function nf(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=rK(e,"string");return _o(t)=="symbol"?t:t+""}function rK(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nK=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=P0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return wn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},af=(function(e){function t(){return Y4(this,t),J4(this,t,arguments)}return eK(t,e),Z4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Un(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Se(i),h=Se(a),p=Se(o),y=Se(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=nK(f,h,p,y,this.props);if(!d&&!m)return null;var v=wn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement($t,{className:wt("recharts-reference-area",l)},t.renderRect(m,wO(wO({clipPath:v},vt(this.props,!0)),d)),We.renderCallByParent(this.props,d))}}])})(O.Component);nf(af,"displayName","ReferenceArea");nf(af,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});nf(af,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(T0,Dg({},t,{className:"recharts-reference-area-rect"})),r});function jM(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function iK(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return c4(n,r)}function aK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function pc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function oK(e,t){return jM(e,t+1)}function sK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:jM(n,u)};var m=l,d,v=function(){return d===void 0&&(d=r(y,m)),d},w=y.coordinate,b=l===0||pc(e,w,v,c,s);b||(l=0,c=o,u+=1),b&&(c=w+e*(v()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){lK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lK(e,t,r){return t=uK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uK(e){var t=cK(e,"string");return vl(t)=="symbol"?t:t+""}function cK(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=ze(ze({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=ze(ze({},p),{},{tickCoord:p.coordinate});var v=pc(e,p.tickCoord,m,s,l);v&&(l=p.tickCoord-e*(m()/2+i),a[h]=ze(ze({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function hK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=ze(ze({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=pc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=ze(ze({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(w){var b=o[w],_,g=function(){return _===void 0&&(_=r(b,w)),_};if(w===0){var x=e*(b.coordinate-e*g()/2-l);o[w]=b=ze(ze({},b),{},{tickCoord:x<0?b.coordinate-x*e:b.coordinate})}else o[w]=b=ze(ze({},b),{},{tickCoord:b.coordinate});var S=pc(e,b.tickCoord,g,l,u);S&&(l=b.tickCoord+e*(g()/2+i),o[w]=ze(ze({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function j0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(it(l)||Oi.isSsr)return oK(i,typeof l=="number"&&it(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?ws(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,_){var g=bt(u)?u(b.value,_):b.value;return p==="width"?iK(ws(g,{fontSize:t,letterSpacing:r}),y,f):ws(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?tn(i[1].coordinate-i[0].coordinate):1,v=aK(a,d,p);return l==="equidistantPreserveStart"?sK(d,v,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=hK(d,v,m,i,o,l==="preserveStartEnd"):h=fK(d,v,m,i,o),h.filter(function(w){return w.isShow}))}var pK=["viewBox"],dK=["viewBox"],mK=["ticks"];function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Km(e,t){if(e==null)return{};var r=yK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DM(n.key),n)}}function vK(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bK(e,t,r){return t=dc(t),_K(e,RM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function _K(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xK(e)}function xK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function wK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function R0(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=SK(e,"string");return xo(t)=="symbol"?t:t+""}function SK(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qo=(function(e){function t(r){var n;return gK(this,t),n=bK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return wK(t,e),vK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Km(n,pK),s=this.props,l=s.viewBox,u=Km(s,dK);return!Ga(a,l)||!Ga(o,u)||!Ga(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,v,w,b=f?-1:1,_=n.tickSize||c,g=it(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-b*_,w=m-b*h,v=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*_,v=p-b*h,w=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*_,v=p+b*h,w=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+b*_,w=m+b*h,v=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:v,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=xe(xe(xe({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=xe(xe({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=xe(xe({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Na({},f,{className:wt("recharts-cartesian-axis-line",Fr(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=j0(xe(xe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),v=vt(c,!1),w=xe(xe({},d),{},{fill:"none"},vt(l,!1)),b=p.map(function(_,g){var x=o.getTickLineCoord(_),S=x.line,A=x.tick,T=xe(xe(xe(xe({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},v),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement($t,Na({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Hs(o.props,_,g)),l&&O.createElement("line",Na({},w,S,{className:wt("recharts-cartesian-axis-tick-line",Fr(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(bt(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Km(f,mK),y=h;return bt(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement($t,{className:wt("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),We.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=wt(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,xe(xe({},i),{},{className:s})):bt(n)?o=n(xe(xe({},i),{},{className:s})):o=O.createElement(Hu,Na({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);R0(qo,"displayName","CartesianAxis");R0(qo,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var AK=["x1","y1","x2","y2","key"],OK=["offset"];function pa(e){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){TK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TK(e,t,r){return t=PK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PK(e){var t=EK(e,"string");return pa(t)=="symbol"?t:t+""}function EK(e,t){if(pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=CK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var MK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function IM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=PO(t,AK),u=vt(l,!1);u.offset;var c=PO(u,OK);r=O.createElement("line",Xi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function kK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=He(He({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function $K(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=He(He({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function jK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function RK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var DK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return XC(j0(He(He(He({},qo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},IK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return XC(j0(He(He(He({},qo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ka={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=M0(),l=k0(),u=S4(),c=He(He({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ka.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ka.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ka.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ka.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ka.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ka.verticalFill,x:it(e.x)?e.x:u.left,y:it(e.y)?e.y:u.top,width:it(e.width)?e.width:u.width,height:it(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,v=c.verticalValues,w=_4(),b=x4();if(!it(p)||p<=0||!it(y)||y<=0||!it(f)||f!==+f||!it(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||DK,g=c.horizontalCoordinatesGenerator||IK,x=c.horizontalPoints,S=c.verticalPoints;if((!x||!x.length)&&bt(g)){var A=d&&d.length,T=g({yAxis:b?He(He({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Un(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(pa(T),"]")),Array.isArray(T)&&(x=T)}if((!S||!S.length)&&bt(_)){var k=v&&v.length,P=_({xAxis:w?He(He({},w),{},{ticks:k?v:w.ticks}):void 0,width:s,height:l,offset:u},k?!0:m);Un(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(pa(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(MK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(kK,Xi({},c,{offset:u,horizontalPoints:x,xAxis:w,yAxis:b})),O.createElement($K,Xi({},c,{offset:u,verticalPoints:S,xAxis:w,yAxis:b})),O.createElement(jK,Xi({},c,{horizontalPoints:x})),O.createElement(RK,Xi({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var NK=["type","layout","connectNulls","ref"],LK=["key"];function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function EO(e,t){if(e==null)return{};var r=BK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){Zr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $a(e){return UK(e)||zK(e)||FK(e)||qK()}function qK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FK(e,t){if(e){if(typeof e=="string")return Lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lg(e,t)}}function zK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UK(e){if(Array.isArray(e))return Lg(e)}function Lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BM(n.key),n)}}function HK(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GK(e,t,r){return t=mc(t),KK(e,LM()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function KK(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XK(e)}function XK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function YK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bg(e,t)}function Zr(e,t,r){return t=BM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=VK(e,"string");return wo(t)=="symbol"?t:t+""}function VK(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var of=(function(e){function t(){var r;WK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=GK(this,t,[].concat(i)),Zr(r,"state",{isAnimationFinished:!0,totalLength:0}),Zr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Zr(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(v,w){return v+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat($a(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat($a(t.repeat(l,c)),$a(p),d).map(function(v){return"".concat(v,"px")}).join(", ")}),Zr(r,"id",_a("recharts-line-")),Zr(r,"pathRef",function(o){r.mainCurve=o}),Zr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Zr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return YK(t,e),HK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=fr(c,Lo);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:Ae(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement($t,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(l,!0),p=u.map(function(m,d){var v=gr(gr(gr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement($t,Os({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=EO(s,NK),h=gr(gr(gr({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(na,Os({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,v=this.state,w=v.prevPoints,b=v.totalLength;return O.createElement(en,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(w){var x=w.length/s.length,S=s.map(function(E,C){var M=Math.floor(C*x);if(w[M]){var R=w[M],$=fe(R.x,E.x),L=fe(R.y,E.y);return gr(gr({},E),{},{x:$(g),y:L(g)})}if(y){var F=fe(m*2,E.x),q=fe(d/2,E.y);return gr(gr({},E),{},{x:F(g),y:q(g)})}return gr(gr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=fe(0,b),T=A(g),k;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});k=a.getStrokeDasharray(T,b,P)}else k=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!fa(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=wt("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,k=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},M=C.clipDot,R=M===void 0?!0:M,$=k*2+E;return O.createElement($t,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!R&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-$/2,y:f-$/2,width:p+$,height:y+$}))):null,!w&&this.renderCurve(x,S),this.renderErrorBar(x,S),(w||o)&&this.renderDots(x,R,S),(!m||v)&&xn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat($a(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat($a(o),$a(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=EO(i,LK),l=wt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Vc,Os({key:o},s,{className:l}))}return a}}])})(O.PureComponent);Zr(of,"displayName","Line");Zr(of,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Oi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Zr(of,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=Ae(h,o);return c==="horizontal"?{x:fo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:gt(y)?null:n.scale(y),value:y,payload:h}:{x:gt(y)?null:r.scale(y),y:fo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return gr({points:f,layout:c},u)});var ZK=["layout","type","stroke","connectNulls","isRange","ref"],JK=["key"],qM;function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function FM(e,t){if(e==null)return{};var r=QK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yi.apply(this,arguments)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){bn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UM(n.key),n)}}function eX(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rX(e,t,r){return t=yc(t),nX(e,zM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function nX(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iX(e)}function iX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function aX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function bn(e,t,r){return t=UM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(e){var t=oX(e,"string");return So(t)=="symbol"?t:t+""}function oX(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pi=(function(e){function t(){var r;tX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rX(this,t,[].concat(i)),bn(r,"state",{isAnimationFinished:!0}),bn(r,"id",_a("recharts-area-")),bn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),bn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return aX(t,e),eX(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=vt(this.props,!1),p=vt(u,!0),y=c.map(function(d,v){var w=oi(oi(oi({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,w)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement($t,Yi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=hi(o.map(function(h){return h.y||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(hi(a.map(function(h){return h.y||0})),f)),it(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=hi(o.map(function(h){return h.x||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(hi(a.map(function(h){return h.x||0})),f)),it(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=FM(s,ZK);return O.createElement($t,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(na,Yi({},vt(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(na,Yi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(na,Yi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(en,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var w=v.t;if(m){var b=m.length/s.length,_=s.map(function(A,T){var k=Math.floor(T*b);if(m[k]){var P=m[k],E=fe(P.x,A.x),C=fe(P.y,A.y);return oi(oi({},A),{},{x:E(w),y:C(w)})}return A}),g;if(it(l)&&typeof l=="number"){var x=fe(d,l);g=x(w)}else if(gt(l)||Do(l)){var S=fe(d,0);g=S(w)}else g=l.map(function(A,T){var k=Math.floor(T*b);if(d[k]){var P=d[k],E=fe(P.x,A.x),C=fe(P.y,A.y);return oi(oi({},A),{},{x:E(w),y:C(w)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement($t,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement($t,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!fa(c,o)||!fa(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=wt("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,k=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},M=C.clipDot,R=M===void 0?!0:M,$=k*2+E;return O.createElement($t,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!R&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-$/2,y:u-$/2,width:p+$,height:y+$}))):null,w?null:this.renderArea(x,S),(o||w)&&this.renderDots(x,R,S),(!m||v)&&xn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);qM=Pi;bn(Pi,"displayName","Area");bn(Pi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});bn(Pi,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(it(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});bn(Pi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=qM.getBaseValue(t,r,n,i),d=p==="horizontal",v=!1,w=f.map(function(_,g){var x;y?x=u[c+g]:(x=Ae(_,l),Array.isArray(x)?v=!0:x=[m,x]);var S=x[1]==null||y&&Ae(_,l)==null;return d?{x:fo({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(x[1]),value:x,payload:_}:{x:S?null:n.scale(x[1]),y:fo({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:x,payload:_}}),b;return y||v?b=w.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):b=d?i.scale(m):n.scale(m),oi({points:w,baseLine:b,layout:p,isRange:v},h)});bn(Pi,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=wt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,JK);r=O.createElement(Vc,Yi({},a,{key:i,className:n}))}return r});function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GM(n.key),n)}}function uX(e,t,r){return t&&lX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,r){return t=gc(t),fX(e,WM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function fX(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hX(e)}function hX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function pX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function HM(e,t,r){return t=GM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GM(e){var t=dX(e,"string");return Ao(t)=="symbol"?t:t+""}function dX(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sf=(function(e){function t(){return sX(this,t),cX(this,t,arguments)}return pX(t,e),uX(t,[{key:"render",value:function(){return null}}])})(qr.Component);HM(sf,"displayName","ZAxis");HM(sf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var mX=["option","isActive"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ts.apply(this,arguments)}function yX(e,t){if(e==null)return{};var r=gX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vX(e){var t=e.option,r=e.isActive,n=yX(e,mX);return typeof t=="string"?qr.createElement(Pg,Ts({option:qr.createElement(Hc,Ts({type:t},n)),isActive:r,shapeType:"symbols"},n)):qr.createElement(Pg,Ts({option:t,isActive:r,shapeType:"symbols"},n))}function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){di(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XM(n.key),n)}}function _X(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(e,t,r){return t=vc(t),wX(e,KM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function wX(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SX(e)}function SX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KM=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function AX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zg(e,t)}function di(e,t,r){return t=XM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e){var t=OX(e,"string");return Oo(t)=="symbol"?t:t+""}function OX(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lf=(function(e){function t(){var r;bX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xX(this,t,[].concat(i)),di(r,"state",{isAnimationFinished:!1}),di(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),di(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),di(r,"id",_a("recharts-scatter-")),r}return AX(t,e),_X(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=vt(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=Dr(Dr({},u),c);return O.createElement($t,Ps({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Hs(i.props,c,f),{role:"img"}),O.createElement(vX,Ps({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(en,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var v=f&&f[d];if(v){var w=fe(v.cx,m.cx),b=fe(v.cy,m.cy),_=fe(v.size,m.size);return Dr(Dr({},m),{},{cx:w(p),cy:b(p),size:_(p)})}var g=fe(0,m.size);return Dr(Dr({},m),{},{size:g(p)})});return O.createElement($t,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!fa(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=fr(l,Lo);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:Ae(d,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=vt(this.props,!1),u=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=v5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,v=function(_){return m*_+d};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var w=Dr(Dr(Dr({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,w):bt(a)?f=a(w):f=O.createElement(na,Ps({},w,{type:s})),O.createElement($t,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=wt("recharts-scatter",s),w=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,_=w||b,g=gt(y)?this.id:y;return O.createElement($t,{className:v,clipPath:_?"url(#clipPath-".concat(g,")"):null},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?c:c-h/2,y:b?f:f-p/2,width:w?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement($t,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&xn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);di(lf,"displayName","Scatter");di(lf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});di(lf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=fr(i.props.children,x0),f=gt(t.dataKey)?i.props.dataKey:t.dataKey,h=gt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:sf.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(b,_){var g=Ae(b,f),x=Ae(b,h),S=!gt(p)&&Ae(b,p)||"-",A=[{name:gt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:u},{name:gt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:x,payload:b,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:u});var T=fo({axis:t,ticks:o,bandSize:d,entry:b,index:_,dataKey:f}),k=fo({axis:r,ticks:s,bandSize:v,entry:b,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Dr(Dr({},b),{},{cx:T,cy:k,x:T-E,y:k-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:x,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:k},payload:b},c&&c[_]&&c[_].props)});return Dr({points:w},l)});function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZM(n.key),n)}}function EX(e,t,r){return t&&PX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CX(e,t,r){return t=bc(t),MX(e,YM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function MX(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kX(e)}function kX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function $X(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function VM(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=jX(e,"string");return To(t)=="symbol"?t:t+""}function jX(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function RX(e){var t=e.xAxisId,r=M0(),n=k0(),i=OM(t);return i==null?null:qr.createElement(qo,Wg({},i,{className:wt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Fn(o,!0)}}))}var uf=(function(e){function t(){return TX(this,t),CX(this,t,arguments)}return $X(t,e),EX(t,[{key:"render",value:function(){return qr.createElement(RX,this.props)}}])})(qr.Component);VM(uf,"displayName","XAxis");VM(uf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function DX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tk(n.key),n)}}function NX(e,t,r){return t&&IX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LX(e,t,r){return t=_c(t),BX(e,JM()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function BX(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qX(e)}function qX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JM=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function FX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hg(e,t)}function QM(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=zX(e,"string");return Po(t)=="symbol"?t:t+""}function zX(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gg.apply(this,arguments)}var UX=function(t){var r=t.yAxisId,n=M0(),i=k0(),a=TM(r);return a==null?null:qr.createElement(qo,Gg({},a,{className:wt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Fn(s,!0)}}))},cf=(function(e){function t(){return DX(this,t),LX(this,t,arguments)}return FX(t,e),NX(t,[{key:"render",value:function(){return qr.createElement(UX,this.props)}}])})(qr.Component);QM(cf,"displayName","YAxis");QM(cf,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return KX(e)||GX(e)||HX(e)||WX()}function WX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HX(e,t){if(e){if(typeof e=="string")return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kg(e,t)}}function GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KX(e){if(Array.isArray(e))return Kg(e)}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xg=function(t,r,n,i,a){var o=fr(t,tf),s=fr(t,rf),l=[].concat(DO(o),DO(s)),u=fr(t,af),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&wn(d.props,"extendDomain")&&it(d.props[f])){var v=d.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&wn(d.props,"extendDomain")&&it(d.props[p])&&it(d.props[y])){var v=d.props[p],w=d.props[y];return[Math.min(m[0],v,w),Math.max(m[1],v,w)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return it(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Xm={exports:{}},IO;function XX(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],v=arguments.length,w,b;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,w=new Array(v-1);b<v;b++)w[b-1]=arguments[b];d.fn.apply(d.context,w)}else{var _=d.length,g;for(b=0;b<_;b++)switch(d[b].once&&this.removeListener(u,d[b].fn,void 0,!0),v){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!w)for(g=1,w=new Array(v-1);g<v;g++)w[g-1]=arguments[g];d[b].fn.apply(d[b].context,w)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],v=y.length;m<v;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Xm)),Xm.exports}var YX=XX();const VX=Ft(YX);var Ym=new VX,Vm="recharts.syncMouseEvents";function bl(e){"@babel/helpers - typeof";return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function ZX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ek(n.key),n)}}function QX(e,t,r){return t&&JX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=tY(e,"string");return bl(t)=="symbol"?t:t+""}function tY(e,t){if(bl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eY=(function(){function e(){ZX(this,e),Zm(this,"activeIndex",0),Zm(this,"coordinateList",[]),Zm(this,"layout","horizontal")}return QX(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function rY(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&it(n)&&it(i))return!0}return!1}function nY(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function rk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ie(t,r,n,i),s=Ie(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function iY(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=Ie(s,l,u,f),p=Ie(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return rk(t);return[{x:n,y:i},{x:a,y:o}]}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){aY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aY(e,t,r){return t=oY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oY(e){var t=sY(e,"string");return _l(t)=="symbol"?t:t+""}function sY(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=na;if(h==="ScatterChart")y=o,m=I6;else if(h==="BarChart")y=nY(f,o,l,c),m=T0;else if(f==="radial"){var d=rk(o),v=d.cx,w=d.cy,b=d.radius,_=d.startAngle,g=d.endAngle;y={cx:v,cy:w,startAngle:_,endAngle:g,innerRadius:b,outerRadius:b},m=QC}else y={points:iY(f,o,l)},m=na;var x=eu(eu(eu(eu({stroke:"#ccc",pointerEvents:"none"},l),y),vt(p,!1)),{},{payload:s,payloadIndex:u,className:wt("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,x):O.createElement(m,x)}var uY=["item"],cY=["children","className","width","height","style","compact","title","desc"];function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},La.apply(this,arguments)}function LO(e,t){return pY(e)||hY(e,t)||ik(e,t)||fY()}function fY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function pY(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=dY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ak(n.key),n)}}function gY(e,t,r){return t&&yY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vY(e,t,r){return t=xc(t),bY(e,nk()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function bY(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Y(e)}function _Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nk=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function xY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yg(e,t)}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yg(e,t)}function Co(e){return AY(e)||SY(e)||ik(e)||wY()}function wY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vg(e,t)}}function SY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AY(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mt(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=OY(e,"string");return Eo(t)=="symbol"?t:t+""}function OY(e,t){if(Eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TY={xAxis:["bottom","top"],yAxis:["left","right"]},PY={width:"100%",height:"100%"},ok={x:0,y:0};function ru(e){return e}var EY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},CY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return J(J(J({},i),Ie(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return J(J(J({},i),Ie(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ok},ff=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Co(s),Co(u)):s},[]);return o.length>0?o:t&&t.length&&it(i)&&it(a)?t.slice(i,a+1):[]};function sk(e){return e==="number"?[0,"auto"]:void 0}var Zg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=ff(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Lu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Co(l),[VC(u,h)]):l},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=EY(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=pW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=Zg(t,r,c,f),p=CY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},MY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=KC(c,a);return n.reduce(function(y,m){var d,v=m.type.defaultProps!==void 0?J(J({},m.type.defaultProps),m.props):m.props,w=v.type,b=v.dataKey,_=v.allowDataOverflow,g=v.allowDuplicatedCategory,x=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var k=ff(t.data,{graphicalItems:i.filter(function(N){var z,H=o in N.props?N.props[o]:(z=N.type.defaultProps)===null||z===void 0?void 0:z[o];return H===T}),dataStartIndex:l,dataEndIndex:u}),P=k.length,E,C,M;rY(v.domain,_,w)&&(E=fg(v.domain,null,_),p&&(w==="number"||x!=="auto")&&(M=Ss(k,b,"category")));var R=sk(w);if(!E||E.length===0){var $,L=($=v.domain)!==null&&$!==void 0?$:R;if(b){if(E=Ss(k,b,w),w==="category"&&p){var F=g5(E);g&&F?(C=E,E=Ws(0,P)):g||(E=GS(L,E,m).reduce(function(N,z){return N.indexOf(z)>=0?N:[].concat(Co(N),[z])},[]))}else if(w==="category")g?E=E.filter(function(N){return N!==""&&!gt(N)}):E=GS(L,E,m).reduce(function(N,z){return N.indexOf(z)>=0||z===""||gt(z)?N:[].concat(Co(N),[z])},[]);else if(w==="number"){var q=vW(k,i.filter(function(N){var z,H,B=o in N.props?N.props[o]:(z=N.type.defaultProps)===null||z===void 0?void 0:z[o],Z="hide"in N.props?N.props.hide:(H=N.type.defaultProps)===null||H===void 0?void 0:H.hide;return B===T&&(A||!Z)}),b,a,c);q&&(E=q)}p&&(w==="number"||x!=="auto")&&(M=Ss(k,b,"category"))}else p?E=Ws(0,P):s&&s[T]&&s[T].hasStack&&w==="number"?E=h==="expand"?[0,1]:YC(s[T].stackGroups,l,u):E=GC(k,i.filter(function(N){var z=o in N.props?N.props[o]:N.type.defaultProps[o],H="hide"in N.props?N.props.hide:N.type.defaultProps.hide;return z===T&&(A||!H)}),w,c,!0);if(w==="number")E=Xg(f,E,T,a,S),L&&(E=fg(L,E,_));else if(w==="category"&&L){var I=L,j=E.every(function(N){return I.indexOf(N)>=0});j&&(E=I)}}return J(J({},y),{},mt({},T,J(J({},v),{},{axisType:a,domain:E,categoricalDomain:M,duplicateDomain:C,originalDomain:(d=v.domain)!==null&&d!==void 0?d:R,isCategorical:p,layout:c})))},{})},kY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=ff(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=KC(c,a),m=-1;return n.reduce(function(d,v){var w=v.type.defaultProps!==void 0?J(J({},v.type.defaultProps),v.props):v.props,b=w[o],_=sk("number");if(!d[b]){m++;var g;return y?g=Ws(0,p):s&&s[b]&&s[b].hasStack?(g=YC(s[b].stackGroups,l,u),g=Xg(f,g,b,a)):(g=fg(_,GC(h,n.filter(function(x){var S,A,T=o in x.props?x.props[o]:(S=x.type.defaultProps)===null||S===void 0?void 0:S[o],k="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!k}),"number",c),i.defaultProps.allowDataOverflow),g=Xg(f,g,b,a)),J(J({},d),{},mt({},b,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:Fr(TY,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},$Y=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=fr(c,a),p={};return h&&h.length?p=MY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=kY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},jY=function(t){var r=li(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Uc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yu(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=br(r,mo),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},RY=function(t){return!t||!t.length?!1:t.some(function(r){var n=zn(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},DY=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=br(f,mo),y=br(f,ea),m=Object.keys(l).reduce(function(g,x){var S=l[x],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},mt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,x){var S=o[x],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},mt({},A,Fr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=J(J({},d),m),w=v.bottom;p&&(v.bottom+=p.props.height||mo.defaultProps.height),y&&r&&(v=yW(v,i,n,r));var b=u-v.left-v.right,_=c-v.top-v.bottom;return J(J({brushBottom:w},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},IY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},NY=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(v,w){var b=w.graphicalItems,_=w.stackGroups,g=w.offset,x=w.updateId,S=w.dataStartIndex,A=w.dataEndIndex,T=v.barSize,k=v.layout,P=v.barGap,E=v.barCategoryGap,C=v.maxBarSize,M=UO(k),R=M.numericAxisName,$=M.cateAxisName,L=RY(b),F=[];return b.forEach(function(q,I){var j=ff(v.data,{graphicalItems:[q],dataStartIndex:S,dataEndIndex:A}),N=q.type.defaultProps!==void 0?J(J({},q.type.defaultProps),q.props):q.props,z=N.dataKey,H=N.maxBarSize,B=N["".concat(R,"Id")],Z=N["".concat($,"Id")],V={},G=l.reduce(function(ht,St){var Ht,Zt,Ct=w["".concat(St.axisType,"Map")],Lt=N["".concat(St.axisType,"Id")];Ct&&Ct[Lt]||St.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?ar(!1,"Specifying a(n) ".concat(St.axisType,"Id requires a corresponding ").concat(St.axisType,"Id on the targeted graphical component ").concat((Ht=q==null||(Zt=q.type)===null||Zt===void 0?void 0:Zt.displayName)!==null&&Ht!==void 0?Ht:"")):ar());var Bt=Ct[Lt];return J(J({},ht),{},mt(mt({},St.axisType,Bt),"".concat(St.axisType,"Ticks"),Fn(Bt)))},V),W=G[$],Y=G["".concat($,"Ticks")],X=_&&_[B]&&_[B].hasStack&&MW(q,_[B].stackGroups),D=zn(q.type).indexOf("Bar")>=0,ot=Yu(W,Y),U=[],ut=L&&dW({barSize:T,stackGroups:_,totalSize:IY(G,$)});if(D){var dt,et,ft=gt(H)?C:H,Tt=(dt=(et=Yu(W,Y,!0))!==null&&et!==void 0?et:ft)!==null&&dt!==void 0?dt:0;U=mW({barGap:P,barCategoryGap:E,bandSize:Tt!==ot?Tt:ot,sizeList:ut[Z],maxBarSize:ft}),Tt!==ot&&(U=U.map(function(ht){return J(J({},ht),{},{position:J(J({},ht.position),{},{offset:ht.position.offset-Tt/2})})}))}var at=q&&q.type&&q.type.getComposedData;at&&F.push({props:J(J({},at(J(J({},G),{},{displayedData:j,props:v,dataKey:z,item:q,bandSize:ot,barPosition:U,offset:g,stackedData:X,layout:k,dataStartIndex:S,dataEndIndex:A}))),{},mt(mt(mt({key:q.key||"item-".concat(I)},R,G[R]),$,G[$]),"animationId",x)),childIndex:M5(q,v.children),item:q})}),F},p=function(v,w){var b=v.props,_=v.dataStartIndex,g=v.dataEndIndex,x=v.updateId;if(!Cw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,k=b.data,P=b.reverseStackOrder,E=UO(A),C=E.numericAxisName,M=E.cateAxisName,R=fr(S,n),$=PW(k,R,"".concat(C,"Id"),"".concat(M,"Id"),T,P),L=l.reduce(function(N,z){var H="".concat(z.axisType,"Map");return J(J({},N),{},mt({},H,$Y(b,J(J({},z),{},{graphicalItems:R,stackGroups:z.axisType===C&&$,dataStartIndex:_,dataEndIndex:g}))))},{}),F=DY(J(J({},L),{},{props:b,graphicalItems:R}),w==null?void 0:w.legendBBox);Object.keys(L).forEach(function(N){L[N]=c(b,L[N],F,N.replace("Map",""),r)});var q=L["".concat(M,"Map")],I=jY(q),j=h(b,J(J({},L),{},{dataStartIndex:_,dataEndIndex:g,updateId:x,graphicalItems:R,stackGroups:$,offset:F}));return J(J({formattedGraphicalItems:j,graphicalItems:R,offset:F,stackGroups:$},I),L)},y=(function(d){function v(w){var b,_,g;return mY(this,v),g=vY(this,v,[w]),mt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),mt(g,"accessibilityManager",new eY),mt(g,"handleLegendBBoxUpdate",function(x){if(x){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,k=S.updateId;g.setState(J({legendBBox:x},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:k},J(J({},g.state),{},{legendBBox:x}))))}}),mt(g,"handleReceiveSyncEvent",function(x,S,A){if(g.props.syncId===x){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),mt(g,"handleBrushChange",function(x){var S=x.startIndex,A=x.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return J({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),mt(g,"handleMouseEnter",function(x){var S=g.getMouseInfo(x);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;bt(T)&&T(A,x)}}),mt(g,"triggeredAfterMouseMove",function(x){var S=g.getMouseInfo(x),A=S?J(J({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;bt(T)&&T(A,x)}),mt(g,"handleItemMouseEnter",function(x){g.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),mt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),mt(g,"handleMouseMove",function(x){x.persist(),g.throttleTriggeredAfterMouseMove(x)}),mt(g,"handleMouseLeave",function(x){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;bt(A)&&A(S,x)}),mt(g,"handleOuterEvent",function(x){var S=C5(x),A=Fr(g.props,"".concat(S));if(S&&bt(A)){var T,k;/.*touch.*/i.test(S)?k=g.getMouseInfo(x.changedTouches[0]):k=g.getMouseInfo(x),A((T=k)!==null&&T!==void 0?T:{},x)}}),mt(g,"handleClick",function(x){var S=g.getMouseInfo(x);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;bt(T)&&T(A,x)}}),mt(g,"handleMouseDown",function(x){var S=g.props.onMouseDown;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),mt(g,"handleMouseUp",function(x){var S=g.props.onMouseUp;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),mt(g,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),mt(g,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseDown(x.changedTouches[0])}),mt(g,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseUp(x.changedTouches[0])}),mt(g,"handleDoubleClick",function(x){var S=g.props.onDoubleClick;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),mt(g,"handleContextMenu",function(x){var S=g.props.onContextMenu;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),mt(g,"triggerSyncEvent",function(x){g.props.syncId!==void 0&&Ym.emit(Vm,g.props.syncId,x,g.eventEmitterSymbol)}),mt(g,"applySyncEvent",function(x){var S=g.props,A=S.layout,T=S.syncMethod,k=g.state.updateId,P=x.dataStartIndex,E=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)g.setState(J({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:k},g.state)));else if(x.activeTooltipIndex!==void 0){var C=x.chartX,M=x.chartY,R=x.activeTooltipIndex,$=g.state,L=$.offset,F=$.tooltipTicks;if(!L)return;if(typeof T=="function")R=T(F,x);else if(T==="value"){R=-1;for(var q=0;q<F.length;q++)if(F[q].value===x.activeLabel){R=q;break}}var I=J(J({},L),{},{x:L.left,y:L.top}),j=Math.min(C,I.x+I.width),N=Math.min(M,I.y+I.height),z=F[R]&&F[R].value,H=Zg(g.state,g.props.data,R),B=F[R]?{x:A==="horizontal"?F[R].coordinate:j,y:A==="horizontal"?N:F[R].coordinate}:ok;g.setState(J(J({},x),{},{activeLabel:z,activeCoordinate:B,activePayload:H,activeTooltipIndex:R}))}else g.setState(x)}),mt(g,"renderCursor",function(x){var S,A=g.state,T=A.isTooltipActive,k=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,M=A.tooltipAxisBandSize,R=g.getTooltipEventType(),$=(S=x.props.active)!==null&&S!==void 0?S:T,L=g.props.layout,F=x.key||"_recharts-cursor";return O.createElement(lY,{key:F,activeCoordinate:k,activePayload:P,activeTooltipIndex:C,chartName:r,element:x,isActive:$,layout:L,offset:E,tooltipAxisBandSize:M,tooltipEventType:R})}),mt(g,"renderPolarAxis",function(x,S,A){var T=Fr(x,"type.axisType"),k=Fr(g.state,"".concat(T,"Map")),P=x.type.defaultProps,E=P!==void 0?J(J({},P),x.props):x.props,C=k&&k[E["".concat(T,"Id")]];return O.cloneElement(x,J(J({},C),{},{className:wt(T,C.className),key:x.key||"".concat(S,"-").concat(A),ticks:Fn(C,!0)}))}),mt(g,"renderPolarGrid",function(x){var S=x.props,A=S.radialLines,T=S.polarAngles,k=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,M=li(E),R=li(C),$=R.cx,L=R.cy,F=R.innerRadius,q=R.outerRadius;return O.cloneElement(x,{polarAngles:Array.isArray(T)?T:Fn(R,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(k)?k:Fn(M,!0).map(function(I){return I.coordinate}),cx:$,cy:L,innerRadius:F,outerRadius:q,key:x.key||"polar-grid",radialLines:A})}),mt(g,"renderLegend",function(){var x=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,k=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=WC({children:A,formattedGraphicalItems:x,legendWidth:E,legendContent:u});if(!C)return null;var M=C.item,R=BO(C,uY);return O.cloneElement(M,J(J({},R),{},{chartWidth:T,chartHeight:k,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),mt(g,"renderTooltip",function(){var x,S=g.props,A=S.children,T=S.accessibilityLayer,k=br(A,mn);if(!k)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,M=P.activePayload,R=P.activeLabel,$=P.offset,L=(x=k.props.active)!==null&&x!==void 0?x:E;return O.cloneElement(k,{viewBox:J(J({},$),{},{x:$.left,y:$.top}),active:L,label:R,payload:L?M:[],coordinate:C,accessibilityLayer:T})}),mt(g,"renderBrush",function(x){var S=g.props,A=S.margin,T=S.data,k=g.state,P=k.offset,E=k.dataStartIndex,C=k.dataEndIndex,M=k.updateId;return O.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Yl(g.handleBrushChange,x.props.onChange),data:T,x:it(x.props.x)?x.props.x:P.left,y:it(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:it(x.props.width)?x.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat(M)})}),mt(g,"renderReferenceElement",function(x,S,A){if(!x)return null;var T=g,k=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,M=P.offset,R=x.type.defaultProps||{},$=x.props,L=$.xAxisId,F=L===void 0?R.xAxisId:L,q=$.yAxisId,I=q===void 0?R.yAxisId:q;return O.cloneElement(x,{key:x.key||"".concat(S,"-").concat(A),xAxis:E[F],yAxis:C[I],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:k})}),mt(g,"renderActivePoints",function(x){var S=x.item,A=x.activePoint,T=x.basePoint,k=x.childIndex,P=x.isRange,E=[],C=S.props.key,M=S.item.type.defaultProps!==void 0?J(J({},S.item.type.defaultProps),S.item.props):S.item.props,R=M.activeDot,$=M.dataKey,L=J(J({index:k,dataKey:$,cx:A.x,cy:A.y,r:4,fill:A0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt(R,!1)),Bu(R));return E.push(v.renderActiveDot(R,L,"".concat(C,"-activePoint-").concat(k))),T?E.push(v.renderActiveDot(R,J(J({},L),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(k))):P&&E.push(null),E}),mt(g,"renderGraphicChild",function(x,S,A){var T=g.filterFormatItem(x,S,A);if(!T)return null;var k=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,M=P.activeTooltipIndex,R=P.activeLabel,$=g.props.children,L=br($,mn),F=T.props,q=F.points,I=F.isRange,j=F.baseLine,N=T.item.type.defaultProps!==void 0?J(J({},T.item.type.defaultProps),T.item.props):T.item.props,z=N.activeDot,H=N.hide,B=N.activeBar,Z=N.activeShape,V=!!(!H&&E&&L&&(z||B||Z)),G={};k!=="axis"&&L&&L.props.trigger==="click"?G={onClick:Yl(g.handleItemMouseEnter,x.props.onClick)}:k!=="axis"&&(G={onMouseLeave:Yl(g.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:Yl(g.handleItemMouseEnter,x.props.onMouseEnter)});var W=O.cloneElement(x,J(J({},T.props),G));function Y(St){return typeof C.dataKey=="function"?C.dataKey(St.payload):null}if(V)if(M>=0){var X,D;if(C.dataKey&&!C.allowDuplicatedCategory){var ot=typeof C.dataKey=="function"?Y:"payload.".concat(C.dataKey.toString());X=Lu(q,ot,R),D=I&&j&&Lu(j,ot,R)}else X=q==null?void 0:q[M],D=I&&j&&j[M];if(Z||B){var U=x.props.activeIndex!==void 0?x.props.activeIndex:M;return[O.cloneElement(x,J(J(J({},T.props),G),{},{activeIndex:U})),null,null]}if(!gt(X))return[W].concat(Co(g.renderActivePoints({item:T,activePoint:X,basePoint:D,childIndex:M,isRange:I})))}else{var ut,dt=(ut=g.getItemByXY(g.state.activeCoordinate))!==null&&ut!==void 0?ut:{graphicalItem:W},et=dt.graphicalItem,ft=et.item,Tt=ft===void 0?x:ft,at=et.childIndex,ht=J(J(J({},T.props),G),{},{activeIndex:at});return[O.cloneElement(Tt,ht),null,null]}return I?[W,null,null]:[W,null]}),mt(g,"renderCustomized",function(x,S,A){return O.cloneElement(x,J(J({key:"recharts-customized-".concat(A)},g.props),g.state))}),mt(g,"renderMap",{CartesianGrid:{handler:ru,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:ru},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:ru},YAxis:{handler:ru},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:_a("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(_=w.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return xY(v,d),gY(v,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,_=b.children,g=b.data,x=b.height,S=b.layout,A=br(_,mn);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Zg(this.state,g,T,k),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+x)/2,M=S==="horizontal",R=M?{x:E,y:C}:{y:E,x:C},$=this.state.formattedGraphicalItems.find(function(F){var q=F.item;return q.type.name==="Scatter"});$&&(R=J(J({},R),$.props.points[T].tooltipPosition),P=$.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:k,activePayload:P,activeCoordinate:R};this.setState(L),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var g,x;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(b){Wy([br(b.children,mn)],[br(this.props.children,mn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=br(this.props.children,mn);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),x=R3(g),S={chartX:Math.round(b.pageX-x.left),chartY:Math.round(b.pageY-x.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var k=this.state,P=k.xAxisMap,E=k.yAxisMap,C=this.getTooltipEventType(),M=FO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var R=li(P).scale,$=li(E).scale,L=R&&R.invert?R.invert(S.chartX):null,F=$&&$.invert?$.invert(S.chartY):null;return J(J({},S),{},{xValue:L,yValue:F},M)}return M?J(J({},S),M):null}},{key:"inRange",value:function(b,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=b/g,A=_/g;if(x==="horizontal"||x==="vertical"){var T=this.state.offset,k=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return k?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var M=li(E);return YS({x:S,y:A},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),g=br(b,mn),x={};g&&_==="axis"&&(g.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Bu(this.props,this.handleOuterEvent);return J(J({},S),x)}},{key:"addListener",value:function(){Ym.on(Vm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ym.removeListener(Vm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,g){for(var x=this.state.formattedGraphicalItems,S=0,A=x.length;S<A;S++){var T=x[S];if(T.item===b||T.props.key===b.key||_===zn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,g=_.left,x=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:g,y:x,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return J(J({},_),{},mt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return J(J({},_),{},mt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,g=_.formattedGraphicalItems,x=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],k=T.props,P=T.item,E=P.type.defaultProps!==void 0?J(J({},P.type.defaultProps),P.props):P.props,C=zn(P.type);if(C==="Bar"){var M=(k.data||[]).find(function(F){return T6(b,F)});if(M)return{graphicalItem:T,payload:M}}else if(C==="RadialBar"){var R=(k.data||[]).find(function(F){return YS(b,F)});if(R)return{graphicalItem:T,payload:R}}else if(Zc(T,x)||Jc(T,x)||ml(T,x)){var $=mG({graphicalItem:T,activeTooltipItem:x,itemData:E.data}),L=E.activeIndex===void 0?$:E.activeIndex;return{graphicalItem:J(J({},T),{},{childIndex:L}),payload:ml(T,x)?E.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var b=this;if(!Cw(this))return null;var _=this.props,g=_.children,x=_.className,S=_.width,A=_.height,T=_.style,k=_.compact,P=_.title,E=_.desc,C=BO(_,cY),M=vt(C,!1);if(k)return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Gy,La({},M,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var R,$;M.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,M.role=($=this.props.role)!==null&&$!==void 0?$:"application",M.onKeyDown=function(F){b.accessibilityManager.keyboardEvent(F)},M.onFocus=function(){b.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",La({className:wt("recharts-wrapper",x),style:J({position:"relative",cursor:"default",width:S,height:A},T)},L,{ref:function(q){b.container=q}}),O.createElement(Gy,La({},M,{width:S,height:A,title:P,desc:E,style:PY}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);mt(y,"displayName",r),mt(y,"defaultProps",J({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),mt(y,"getDerivedStateFromProps",function(d,v){var w=d.dataKey,b=d.data,_=d.children,g=d.width,x=d.height,S=d.layout,A=d.stackOffset,T=d.margin,k=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=zO(d);return J(J(J({},E),{},{updateId:0},p(J(J({props:d},E),{},{updateId:0}),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(w!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||x!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Ga(T,v.prevMargin)){var C=zO(d),M={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},R=J(J({},FO(v,b,S)),{},{updateId:v.updateId+1}),$=J(J(J({},C),M),R);return J(J(J({},$),p(J({props:d},$),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Wy(_,v.prevChildren)){var L,F,q,I,j=br(_,mo),N=j&&(L=(F=j.props)===null||F===void 0?void 0:F.startIndex)!==null&&L!==void 0?L:k,z=j&&(q=(I=j.props)===null||I===void 0?void 0:I.endIndex)!==null&&q!==void 0?q:P,H=N!==k||z!==P,B=!gt(b),Z=B&&!H?v.updateId:v.updateId+1;return J(J({updateId:Z},p(J(J({props:d},v),{},{updateId:Z,dataStartIndex:N,dataEndIndex:z}),v)),{},{prevChildren:_,dataStartIndex:N,dataEndIndex:z})}return null}),mt(y,"renderActiveDot",function(d,v,w){var b;return O.isValidElement(d)?b=O.cloneElement(d,v):bt(d)?b=d(v):b=O.createElement(Vc,v),O.createElement($t,{className:"recharts-active-dot",key:w},b)});var m=O.forwardRef(function(v,w){return O.createElement(y,La({},v,{ref:w}))});return m.displayName=y.displayName,m},LY=NY({chartName:"ComposedChart",GraphicalChild:[of,Pi,Bo,lf],axisComponents:[{axisType:"xAxis",AxisComp:uf},{axisType:"yAxis",AxisComp:cf},{axisType:"zAxis",AxisComp:sf}],formatAxisMap:s4});const ns=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},BY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qY=e=>new Intl.NumberFormat("en-US").format(e);function FY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return ns()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ns()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return ns()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(ns()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(ns()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||BY,[n]),f=O.useMemo(()=>i||qY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function zY(e,t){const r=t-1-e,n=ys.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return ys[a]??ys[0]??"#000000"}function UY(e){return Array.from({length:e},(t,r)=>zY(r,e))}const ja=UY(5),In={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:cr.neoDigitalGreen[600],inProgress:"#007bff",farthest:ja[0],far:ja[1],close:ja[2],closest:ja[3],completed:ja[4],primary:"#007bff",secondary:"#6c757d",success:cr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:cr.neoGrey[200],dark:"#343a40"},Ot={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:cr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:cr.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},WY={migration:ja,severity:[In.critical,In.high,In.medium,In.low,In.info],status:[In.danger,In.warning,In.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},HY={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},GY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Ot.display.showHeader,height:o=Ot.dimensions.height,width:s=Ot.dimensions.width,showLegend:l=Ot.display.showLegend,showTooltip:u=Ot.display.showTooltip,showXAxis:c=Ot.display.showXAxis,showYAxis:f=Ot.display.showYAxis,showGrid:h=Ot.display.showGrid,enableAnimation:p=Ot.animation.enabled,animationDuration:y=Ot.animation.duration,animationEasing:m=Ot.animation.easing,formatDate:d,formatValue:v,tooltipFormatter:w,slotProps:b,margin:_=Ot.margin,curveType:g=Ot.curve.type,stackOffset:x=Ot.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:k=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:M}=FY({data:e,categories:t,formatDate:d,formatValue:v}),[R,$]=O.useState(null),[L,F]=O.useState(!1),[q,I]=O.useState(null),[j,N]=O.useState(null),z=O.useRef(null),H=S?[S[0],S[1]]:["dataMin","dataMax"],B=P.length>0?P[0].timestamp:0,Z=P.length>0?P[P.length-1].timestamp:0,V=O.useCallback((at,ht)=>{const St=at/ht*100,Ht=Z-B;return B+St/100*Ht},[B,Z]),G=O.useCallback(at=>{const ht=Z-B;return ht===0?0:(at-B)/ht*100},[B,Z]),W=O.useCallback(at=>{if(!T)return;const ht=at.currentTarget.getBoundingClientRect(),St=at.clientX-ht.left,Ht=V(St,ht.width);F(!0),I(Ht),N(Ht)},[T,V]),Y=O.useCallback(at=>{if(!z.current)return;const ht=at.currentTarget.getBoundingClientRect(),St=at.clientX-ht.left,Ht=ht.width,Zt=V(St,Ht);if(L)q!==null&&N(Zt);else{const Lt=r.find(Bt=>Math.abs(Bt.timestamp-Zt)<2592e5);$((Lt==null?void 0:Lt.timestamp)??null)}},[L,q,V,r]),X=O.useCallback(()=>{if(L&&q!==null&&j!==null&&A){const at=Math.min(q,j),ht=Math.max(q,j);at!==ht&&A([at,ht])}F(!1),I(null),N(null)},[L,q,j,A]),D=O.useCallback(()=>{X(),$(null)},[X]),U=(k?L:!0)&&L&&q!==null&&j!==null?{left:G(Math.min(q,j)),width:Math.abs(G(j)-G(q))}:null,dt=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const ht=r.find(St=>St.timestamp===at.timestamp);return ht&&ht.label?{...at,__markerLabel:ht.label}:at}),et=at=>C(at),ft=at=>M(at),Tt=({active:at,payload:ht,label:St})=>{if(!at||!ht||ht.length===0)return null;const Ht=dt.find(Ct=>Ct.timestamp===St);if(Ht&&"__markerLabel"in Ht){const Lt=String(Ht.__markerLabel).split(" - "),Bt=Lt[0]||"",ae=Lt[1]||"";return K.jsxs(Q.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[K.jsx(Q.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:ae}),K.jsx(Q.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Bt})]})}return K.jsxs(Q.Box,{sx:{backgroundColor:Ot.tooltip.backgroundColor,border:`${Ot.tooltip.borderWidth}px solid ${Ot.tooltip.borderColor}`,borderRadius:Ot.tooltip.borderRadius,padding:Ot.tooltip.padding},children:[K.jsx(Q.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(St)}),ht.map((Ct,Lt)=>K.jsxs(Q.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[K.jsx(Q.Box,{sx:{width:10,height:10,backgroundColor:Ct.color,borderRadius:"2px"}}),K.jsxs(Q.Typography,{sx:{fontSize:"14px"},children:[Ct.name,": ",M(Ct.value)]})]},`item-${Lt}`))]})};return K.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&K.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&K.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&K.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),K.jsxs(Q.Box,{ref:z,sx:{width:"100%",height:`${o}px`,minHeight:Ot.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[K.jsx(P3,{width:s,height:"100%",children:K.jsxs(LY,{data:dt,margin:_,stackOffset:x,children:[h&&K.jsx(NM,{strokeDasharray:"3 3",stroke:Ot.axis.strokeColor,opacity:.3}),c&&K.jsx(uf,{dataKey:"timestamp",type:"number",domain:H,tickFormatter:et,stroke:Ot.axis.strokeColor,tick:{fill:Ot.axis.tickColor},scale:"time"}),f&&K.jsx(cf,{tickFormatter:ft,stroke:Ot.axis.strokeColor,tick:{fill:Ot.axis.tickColor}}),u&&K.jsx(mn,{content:K.jsx(Tt,{})}),l&&K.jsx(ea,{iconSize:Ot.legend.iconSize,iconType:Ot.legend.iconType,layout:Ot.legend.layout,align:Ot.legend.align,verticalAlign:Ot.legend.verticalAlign}),E.map((at,ht)=>K.jsx(Pi,{type:g,dataKey:at.dataKey,name:at.label,stackId:"1",stroke:at.color,fill:at.strokeDasharray?"transparent":at.color,fillOpacity:at.strokeDasharray?0:at.fillOpacity??.7,strokeWidth:at.strokeWidth??2,strokeDasharray:at.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-ht)*100:0},at.dataKey)),r.filter(at=>R===null||at.timestamp===R).map((at,ht)=>K.jsx(tf,{x:at.timestamp,stroke:at.color??Ot.marker.strokeColor,strokeWidth:at.strokeWidth??Ot.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Ot.marker.strokeDasharray,strokeOpacity:R===null?0:1},`marker-${at.timestamp}-${ht}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&K.jsxs(Q.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:L?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:W,onMouseMove:Y,onMouseUp:X,onMouseLeave:D,children:[U&&K.jsx(Q.Box,{sx:{position:"absolute",left:`${U.left}%`,width:`${U.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),R&&K.jsx(K.Fragment,{children:r.filter(at=>at.timestamp===R).map(at=>K.jsx(Q.Box,{sx:{position:"absolute",left:`${G(at.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:at.label||C(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},pn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},KY=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),Yr={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:pn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${pn.dimensions.height}px`,backgroundColor:pn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${pn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${pn.dimensions.eventWidth}px`,height:"100%",backgroundColor:pn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:pn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${pn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:pn.colors.tooltipText,fontSize:"11px"}}},XY=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),YY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},VY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{YY()&&e.length>1&&(e.every((Z,V)=>V===0||Z.timestamp>=e[V-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[v,w]=O.useState(null),b=O.useRef(null),_=t??p,g=a??m,x=O.useMemo(()=>{var B;return e.length>0?((B=e[0])==null?void 0:B.timestamp)??0:0},[e]),S=O.useMemo(()=>{var B;return e.length>0?((B=e[e.length-1])==null?void 0:B.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:x,[i,g,x]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),k=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(B=>k===0?0:(B-A)/k*100,[A,k]),C=O.useCallback((B,Z)=>{const V=B/Z*100;return A+V/100*k},[A,k]),M=O.useCallback(B=>{t===void 0&&y(B),r==null||r(B)},[t,r]),R=O.useCallback(B=>{const Z=B.currentTarget.getBoundingClientRect(),V=B.clientX-Z.left,G=C(V,Z.width);l(!0),c(G),M({start:G,end:G})},[C,M]),$=O.useCallback(B=>{if(!s||u===null)return;const Z=B.currentTarget.getBoundingClientRect(),V=B.clientX-Z.left,G=C(V,Z.width);if(f==="start"){const W=Math.min(G,_.end-k*.01);M({start:Math.max(W,A),end:_.end})}else if(f==="end"){const W=Math.max(G,_.start+k*.01);M({start:_.start,end:Math.min(W,T)})}else if(f==="body"){const W=G-u,Y=_.end-_.start;let X=_.start+W,D=_.end+W;X<A&&(X=A,D=A+Y),D>T&&(D=T,X=T-Y),M({start:X,end:D}),c(G)}else M({start:Math.min(u,G),end:Math.max(u,G)})},[s,u,f,_,k,A,T,C,M]),L=O.useCallback(()=>{const B=s;if(l(!1),h(null),B&&i&&_.start&&_.end&&_.start!==_.end){const Z={start:_.start,end:_.end};a===void 0&&d(Z),o==null||o(Z)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!b.current)return;const B=V=>{const G=b.current;if(!G)return;const W=G.getBoundingClientRect(),Y=V.clientX-W.left,X=C(Y,W.width);if(f==="start"){const D=Math.min(X,_.end-k*.01);M({start:Math.max(D,A),end:_.end})}else if(f==="end"){const D=Math.max(X,_.start+k*.01);M({start:_.start,end:Math.min(D,T)})}else if(f==="body"){const D=X-u,ot=_.end-_.start;let U=_.start+D,ut=_.end+D;U<A&&(U=A,ut=A+ot),ut>T&&(ut=T,U=T-ot),M({start:U,end:ut}),c(X)}else M({start:Math.min(u,X),end:Math.max(u,X)})},Z=()=>{L()};return document.addEventListener("mousemove",B),document.addEventListener("mouseup",Z),()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",Z)}},[s,u,f,_,k,A,T,C,M,L]);const F=O.useCallback(B=>{B.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),q=O.useCallback(B=>{B.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),I=O.useCallback(B=>{B.stopPropagation();const Z=b.current;if(!Z)return;const V=Z.getBoundingClientRect(),G=B.clientX-V.left,W=C(G,V.width);l(!0),c(W),h("body")},[C]),j=O.useCallback(B=>{if(B.cancelable&&n&&B.preventDefault(),!n||!_.start||!_.end||k===0)return;const Z=(_.start+_.end)/2,V=_.end-_.start,G=B.deltaY>0?1.1:.9,W=Math.max(V*G,k*.01),Y=k*1.5,X=Math.min(W,Y);let D=Z-X/2,ot=Z+X/2;D<A&&(D=A,ot=Math.min(A+X,T)),ot>T&&(ot=T,D=Math.max(T-X,A)),M({start:D,end:ot})},[n,_,k,A,T,M]),N=O.useCallback(()=>!_.start||!_.end?[]:e.filter(B=>B.timestamp>=_.start&&B.timestamp<=_.end),[e,_]),z=O.useCallback(()=>{const B={start:x,end:S};a===void 0&&d({start:null,end:null}),o==null||o(B)},[x,S,a,o]),H=O.useCallback(()=>{i&&z()},[i,z]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:k,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:R,handleMouseMove:$,handleMouseUp:L,handleWheel:j,handleDoubleClick:H,handleStartHandleMouseDown:F,handleEndHandleMouseDown:q,handleSelectionBodyMouseDown:I,setHoveredEvent:w,getEventsInRange:N,resetZoom:z,showHandles:P}},ZY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),JY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),QY=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},tV=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},eV=(e,t="arrow",r)=>{const n=t==="grip"?XY(r||"#9CA3AF"):KY(r||"#4B5563");return{header:{...Yr.header,...e==null?void 0:e.header},title:{...Yr.title,...e==null?void 0:e.title},instructions:{...Yr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Yr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Yr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Yr.timeline,...e==null?void 0:e.timeline},event:{...Yr.event,...e==null?void 0:e.event},selection:{...Yr.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...Yr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Yr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Yr.tooltipDate,...e==null?void 0:e.tooltipDate}}},rV=({events:e,onSelectionChange:t,selectedRange:r,height:n=pn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=ZY,formatMonthYear:o=JY,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:v,onTimeRangeChange:w,slotProps:b})=>{const _=v?{start:v[0],end:v[1]}:m,g=w?B=>{B.start!==null&&B.end!==null&&w([B.start,B.end])}:d;tV()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=O.useMemo(()=>eV(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:k,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:M,handleMouseDown:R,handleWheel:$,handleDoubleClick:L,handleStartHandleMouseDown:F,handleEndHandleMouseDown:q,handleSelectionBodyMouseDown:I,setHoveredEvent:j,getEventsInRange:N,showHandles:z}=VY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),H=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${N().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return K.jsxs(Q.Stack,{sx:{width:"100%"},children:[h&&K.jsxs(Q.Stack,{spacing:1,sx:{mb:3},...x.header,children:[K.jsx(Q.Typography,{variant:"h5",...x.title,children:p}),K.jsx(Q.Typography,{variant:"body2",...x.instructions,children:H})]}),s&&K.jsx(Q.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(B,Z)=>{const V=P+E/(l-1)*Z,G=QY(E);return K.jsx(Q.Typography,{variant:"caption",...x.monthLabel,children:G(V)},Z)})}),K.jsxs(Q.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[K.jsx(Q.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((B,Z)=>{const V=M(B.timestamp);return K.jsx(Q.Box,{onMouseEnter:()=>j(B),onMouseLeave:()=>j(null),"aria-label":`Event: ${B.eventName} at ${a(B.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${V}%`,transform:(k==null?void 0:k.timestamp)===B.timestamp?"scaleX(2)":"scaleX(1)"}},`${B.timestamp}-${Z}`)})}),T.start&&T.end&&(!y||S)&&K.jsx(Q.Box,{...x.selection,onMouseDown:z&&!S?I:void 0,sx:{...x.selection.sx,left:`${M(T.start)}%`,width:`${M(T.end)-M(T.start)}%`,pointerEvents:z?"all":"none",zIndex:2,cursor:z&&!S?A==="body"?"grabbing":"grab":"default"},children:z&&!(S&&A===null)&&K.jsxs(K.Fragment,{children:[K.jsx(Q.Box,{...x.startHandle,onMouseDown:F,sx:{...x.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),K.jsx(Q.Box,{...x.endHandle,onMouseDown:q,sx:{...x.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),K.jsx(Q.Box,{ref:C,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:R,onWheel:$,onDoubleClick:L}),!h&&K.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:H}),k&&K.jsxs(Q.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${M(k.timestamp)}%`,transform:"translateX(-50%)"},children:[K.jsx(Q.Typography,{variant:"body2",...x.tooltipEventName,children:k.eventName}),K.jsx(Q.Typography,{variant:"caption",...x.tooltipDate,children:a(k.timestamp)})]})]})]})},nV="#8b5cf6",iV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),aV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=iV,primaryColor:i=nV})=>e.length===0?null:K.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[K.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),K.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>K.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[K.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),K.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=xs;exports.CAMPAIGN_NOT_APPLICABLE=bs;exports.CAMPAIGN_NO_LST=_s;exports.CATEGORY_LABELS=HY;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=kL;exports.DEFAULT_CHART_COLORS=cr;exports.DEFAULT_CHART_CONFIG=Ze;exports.DEFAULT_STACKED_AREA_COLORS=In;exports.DEFAULT_STACKED_AREA_CONFIG=Ot;exports.MEASURE_GRADIENT_COLORS=ys;exports.MODERNE_VULNERABILITY_COLORS=Ha;exports.MorphChart=hE;exports.ParliamentChart=QF;exports.STACKED_AREA_PALETTES=WY;exports.StackedAreaChart=GY;exports.TimelineChart=rV;exports.TimelineSelectedEvents=aV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Vv;exports.calculateOptimalSeatSize=Zv;