@moderneinc/react-charts 1.1.0-next.203e4f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),Cs=require("@mui/icons-material"),T=require("@mui/material"),D=require("react"),qs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Oe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Oe.prototype.normal={};Oe.prototype.property={};Oe.prototype.space=void 0;function El(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Oe(n,r,t)}function Me(e){return e.toLowerCase()}class W{constructor(t,n){this.attribute=n,this.property=t}}W.prototype.attribute="";W.prototype.booleanish=!1;W.prototype.boolean=!1;W.prototype.commaOrSpaceSeparated=!1;W.prototype.commaSeparated=!1;W.prototype.defined=!1;W.prototype.mustUseProperty=!1;W.prototype.number=!1;W.prototype.overloadedBoolean=!1;W.prototype.property="";W.prototype.spaceSeparated=!1;W.prototype.space=void 0;let Rs=0;const R=se(),k=se(),Jn=se(),g=se(),I=se(),he=se(),X=se();function se(){return 2**++Rs}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:k,commaOrSpaceSeparated:X,commaSeparated:he,number:g,overloadedBoolean:Jn,spaceSeparated:I},Symbol.toStringTag,{value:"Module"})),Qe=Object.keys(Qn);class aa extends W{constructor(t,n,r,a){let i=-1;if(super(t,n),va(this,"space",a),typeof r=="number")for(;++i<Qe.length;){const o=Qe[i];va(this,Qe[i],(r&Qn[o])===Qn[o])}}}aa.prototype.defined=!0;function va(e,t,n){n&&(e[t]=n)}function me(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new aa(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Me(r)]=r,n[Me(i.attribute)]=r}return new Oe(t,n,e.space)}const Dl=me({properties:{ariaActiveDescendant:null,ariaAtomic:k,ariaAutoComplete:null,ariaBusy:k,ariaChecked:k,ariaColCount:g,ariaColIndex:g,ariaColSpan:g,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:k,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:k,ariaFlowTo:I,ariaGrabbed:k,ariaHasPopup:null,ariaHidden:k,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:g,ariaLive:null,ariaModal:k,ariaMultiLine:k,ariaMultiSelectable:k,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:g,ariaPressed:k,ariaReadOnly:k,ariaRelevant:null,ariaRequired:k,ariaRoleDescription:I,ariaRowCount:g,ariaRowIndex:g,ariaRowSpan:g,ariaSelected:k,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 Il(e,t){return t in e?e[t]:t}function Pl(e,t){return Il(e,t.toLowerCase())}const ws=me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:he,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:I,autoFocus:R,autoPlay:R,blocking:I,capture:null,charSet:null,checked:R,cite:null,className:I,cols:g,colSpan:null,content:null,contentEditable:k,controls:R,controlsList:I,coords:g|he,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Jn,draggable:k,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:I,height:g,hidden:Jn,high:g,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:I,itemRef:I,itemScope:R,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:g,pattern:null,ping:I,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:I,required:R,reversed:R,rows:g,rowSpan:g,sandbox:I,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:k,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:R,useMap:null,value:k,width:g,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,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:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:k,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:R,disableRemotePlayback:R,prefix:null,property:null,results:g,security:null,unselectable:null},space:"html",transform:Pl}),Ts=me({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:X,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:I,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:R,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:he,g2:he,glyphName:he,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:X,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:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:g,pointsAtY:g,pointsAtZ:g,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:X,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:X,rev:X,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:X,requiredFeatures:X,requiredFonts:X,requiredFormats:X,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:X,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:X,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:X,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:Il}),Ll=me({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()}}),kl=me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pl}),Nl=me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ms=/[A-Z]/g,ba=/-[a-z]/g,Os=/^data[-\w.:]+$/i;function Fl(e,t){const n=Me(t);let r=t,a=W;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Os.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ba,Ds);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ba.test(i)){let o=i.replace(Ms,Es);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=aa}return new a(r,t)}function Es(e){return"-"+e.toLowerCase()}function Ds(e){return e.charAt(1).toUpperCase()}const jl=El([Dl,ws,Ll,kl,Nl],"html"),ia=El([Dl,Ts,Ll,kl,Nl],"svg"),_a={}.hasOwnProperty;function Is(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const l=r.handlers;if(a&&_a.call(a,e)){const s=String(a[e]);o=_a.call(l,s)?l[s]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Ps=/["&'<>`]/g,Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ks=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ns=/[|\\{}()[\]^$+*?.]/g,Sa=new WeakMap;function Fs(e,t){if(e=e.replace(t.subset?js(t.subset):Ps,r),t.subset||t.escapeOnly)return e;return e.replace(Ls,n).replace(ks,r);function n(a,i,o){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),t)}function r(a,i,o){return t.format(a.charCodeAt(0),o.charCodeAt(i+1),t)}}function js(e){let t=Sa.get(e);return t||(t=Bs(e),Sa.set(e,t)),t}function Bs(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Ns,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Hs=/[\dA-Fa-f]/;function zs(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Hs.test(String.fromCharCode(t))?r:r+";"}const Us=/\d/;function Gs(e,t,n){const r="&#"+String(e);return n&&t&&!Us.test(String.fromCharCode(t))?r:r+";"}const $s=["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"],et={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:"€"},Ks=["cent","copy","divide","gt","lt","not","para","times"],Bl={}.hasOwnProperty,ea={};let Fe;for(Fe in et)Bl.call(et,Fe)&&(ea[et[Fe]]=Fe);const Ws=/[^\dA-Za-z]/;function Ys(e,t,n,r){const a=String.fromCharCode(e);if(Bl.call(ea,a)){const i=ea[a],o="&"+i;return n&&$s.includes(i)&&!Ks.includes(i)&&(!r||t&&t!==61&&Ws.test(String.fromCharCode(t)))?o:o+";"}return""}function Vs(e,t,n){let r=zs(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Ys(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Gs(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function pe(e,t){return Fs(e,Object.assign({format:Vs},t))}const Xs=/^>|^->|<!--|-->|--!>|<!-$/g,Zs=[">"],Js=["<",">"];function Qs(e,t,n,r){return r.settings.bogusComments?"<?"+pe(e.value,Object.assign({},r.settings.characterReferences,{subset:Zs}))+">":"<!--"+e.value.replace(Xs,a)+"-->";function a(i){return pe(i,Object.assign({},r.settings.characterReferences,{subset:Js}))}}function eu(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xa(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Aa(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function tu(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ca(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ru(e){return e.join(" ").trim()}const nu=/[ \t\n\f\r]/g;function oa(e){return typeof e=="object"?e.type==="text"?qa(e.value):!1:qa(e)}function qa(e){return e.replace(nu,"")===""}const j=zl(1),Hl=zl(-1),au=[];function zl(e){return t;function t(n,r,a){const i=n?n.children:au;let o=(r||0)+e,l=i[o];if(!a)for(;l&&oa(l);)o+=e,l=i[o];return l}}const iu={}.hasOwnProperty;function Ul(e){return t;function t(n,r,a){return iu.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const la=Ul({body:lu,caption:tt,colgroup:tt,dd:fu,dt:cu,head:tt,html:ou,li:uu,optgroup:du,option:hu,p:su,rp:Ra,rt:Ra,tbody:gu,td:wa,tfoot:mu,th:wa,thead:pu,tr:yu});function tt(e,t,n){const r=j(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&oa(r.value.charAt(0)))}function ou(e,t,n){const r=j(n,t);return!r||r.type!=="comment"}function lu(e,t,n){const r=j(n,t);return!r||r.type!=="comment"}function su(e,t,n){const r=j(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function uu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="li"}function cu(e,t,n){const r=j(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function fu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ra(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function du(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function hu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function pu(e,t,n){const r=j(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function gu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function mu(e,t,n){return!j(n,t)}function yu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function wa(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const vu=Ul({body:Su,colgroup:xu,head:_u,html:bu,tbody:Au});function bu(e){const t=j(e,-1);return!t||t.type!=="comment"}function _u(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Su(e){const t=j(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&oa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function xu(e,t,n){const r=Hl(n,t),a=j(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&la(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Au(e,t,n){const r=Hl(n,t),a=j(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&la(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const je={name:[[`
2
+ \f\r &/=>`.split(""),`
3
+ \f\r "&'/=>\``.split("")],[`\0
4
+ \f\r "&'/<=>`.split(""),`\0
5
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
6
+ \f\r &>`.split(""),`\0
7
+ \f\r "&'<=>\``.split("")],[`\0
8
+ \f\r "&'<=>\``.split(""),`\0
9
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Cu(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let o=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let s;a.space==="html"&&e.tagName==="svg"&&(r.schema=ia);const u=qu(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(o=!1),(u||!i||!vu(e,t,n))&&(l.push("<",e.tagName,u?" "+u:""),o&&(a.space==="svg"||r.settings.closeSelfClosing)&&(s=u.charAt(u.length-1),(!r.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!o&&(!i||!la(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function qu(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=Ru(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function Ru(e,t,n){const r=Fl(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let o=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const s=pe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:je.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?tu:ru)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(l=pe(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:je.unquoted[a][i]}))),l!==n&&(e.settings.quoteSmart&&xa(n,o)>xa(n,e.alternative)&&(o=e.alternative),l=o+pe(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?je.single:je.double)[a][i],attribute:!0}))+o),s+(l&&"="+l))}const wu=["<","&"];function Gl(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:pe(e.value,Object.assign({},r.settings.characterReferences,{subset:wu}))}function Tu(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Gl(e,t,n,r)}function Mu(e,t,n,r){return r.all(e)}const Ou=Is("type",{invalid:Eu,unknown:Du,handlers:{comment:Qs,doctype:eu,element:Cu,raw:Tu,root:Mu,text:Gl}});function Eu(e){throw new Error("Expected node, not `"+e+"`")}function Du(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Iu={},Pu={},Lu=[];function ku(e,t){const n=Iu,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Nu,all:Fu,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||qs,characterReferences:n.characterReferences||Pu,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?ia:jl,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Nu(e,t,n){return Ou(e,t,n,this)}function Fu(e){const t=[],n=e&&e.children||Lu;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const le={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},K={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}},ge={COMPLETED:le.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Re="N/A",we="No LST",Te="Data Missing",Ta=/[#.]/g;function ju(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){Ta.lastIndex=a;const l=Ta.exec(n),s=n.slice(a,l?l.index:n.length);s&&(i?i==="#"?r.id=s:Array.isArray(r.className)?r.className.push(s):r.className=[s]:o=s,a+=s.length),l&&(i=l[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function $l(e,t,n){const r=n?Uu(n):void 0;function a(i,o,...l){let s;if(i==null){s={type:"root",children:[]};const u=o;l.unshift(u)}else{s=ju(i,t);const u=s.tagName.toLowerCase(),f=r?r.get(u):void 0;if(s.tagName=f||u,Bu(o))l.unshift(o);else for(const[d,c]of Object.entries(o))Hu(e,s.properties,d,c)}for(const u of l)ta(s.children,u);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function Bu(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hu(e,t,n,r){const a=Fl(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=Ca(r):a.commaSeparated?i=Aa(r):a.commaOrSpaceSeparated?i=Ca(Aa(r).join(" ")):i=Ma(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?zu(r):String(r);if(Array.isArray(i)){const o=[];for(const l of i)o.push(Ma(a,a.property,l));i=o}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function ta(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 n of t)ta(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ta(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ma(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Me(n)===Me(t)))return!0}return n}function zu(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Uu(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Gu=["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"];$l(jl,"div");const Ee=$l(ia,"g",Gu);var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rt,Oa;function Kl(){if(Oa)return rt;Oa=1;var e=typeof Be=="object"&&Be&&Be.Object===Object&&Be;return rt=e,rt}var nt,Ea;function ie(){if(Ea)return nt;Ea=1;var e=Kl(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return nt=n,nt}var at,Da;function $u(){if(Da)return at;Da=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return at=t,at}var it,Ia;function Ku(){if(Ia)return it;Ia=1;var e=$u(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return it=n,it}var ot,Pa;function De(){if(Pa)return ot;Pa=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ot=e,ot}var lt,La;function Ie(){if(La)return lt;La=1;var e=ie(),t=e.Symbol;return lt=t,lt}var st,ka;function Wu(){if(ka)return st;ka=1;var e=Ie(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function i(o){var l=n.call(o,a),s=o[a];try{o[a]=void 0;var u=!0}catch{}var f=r.call(o);return u&&(l?o[a]=s:delete o[a]),f}return st=i,st}var ut,Na;function Yu(){if(Na)return ut;Na=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ut=n,ut}var ct,Fa;function Pe(){if(Fa)return ct;Fa=1;var e=Ie(),t=Wu(),n=Yu(),r="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?a:r:i&&i in Object(l)?t(l):n(l)}return ct=o,ct}var ft,ja;function Le(){if(ja)return ft;ja=1;function e(t){return t!=null&&typeof t=="object"}return ft=e,ft}var dt,Ba;function ke(){if(Ba)return dt;Ba=1;var e=Pe(),t=Le(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return dt=r,dt}var ht,Ha;function Wl(){if(Ha)return ht;Ha=1;var e=Ku(),t=De(),n=ke(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function s(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=t(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=e(u);var d=i.test(u);return d||o.test(u)?l(u.slice(2),d?2:8):a.test(u)?r:+u}return ht=s,ht}var pt,za;function Yl(){if(za)return pt;za=1;var e=Wl(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*n}return a===a?a:0}return pt=r,pt}var gt,Ua;function Vl(){if(Ua)return gt;Ua=1;var e=Yl();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return gt=t,gt}var mt,Ga;function ze(){if(Ga)return mt;Ga=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=Array(a);++r<a;)i[r]=n(t[r],r,t);return i}return mt=e,mt}var yt,$a;function Q(){if($a)return yt;$a=1;var e=Array.isArray;return yt=e,yt}var vt,Ka;function Vu(){if(Ka)return vt;Ka=1;var e=Ie(),t=ze(),n=Q(),r=ke(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return i?i.call(l):"";var s=l+"";return s=="0"&&1/l==-1/0?"-0":s}return vt=o,vt}var bt,Wa;function Xl(){if(Wa)return bt;Wa=1;var e=Vu();function t(n){return n==null?"":e(n)}return bt=t,bt}var _t,Ya;function Xu(){if(Ya)return _t;Ya=1;var e=ie(),t=Vl(),n=Wl(),r=Xl(),a=e.isFinite,i=Math.min;function o(l){var s=Math[l];return function(u,f){if(u=n(u),f=f==null?0:i(t(f),292),f&&a(u)){var d=(r(u)+"e").split("e"),c=s(d[0]+"e"+(+d[1]+f));return d=(r(c)+"e").split("e"),+(d[0]+"e"+(+d[1]-f))}return s(u)}}return _t=o,_t}var St,Va;function Zu(){if(Va)return St;Va=1;var e=Xu(),t=e("round");return St=t,St}var Ju=Zu();const Qu=ye(Ju);var xt,Xa;function Zl(){if(Xa)return xt;Xa=1;function e(t,n){for(var r=-1,a=n.length,i=t.length;++r<a;)t[i+r]=n[r];return t}return xt=e,xt}var At,Za;function ec(){if(Za)return At;Za=1;var e=Pe(),t=Le(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return At=r,At}var Ct,Ja;function sa(){if(Ja)return Ct;Ja=1;var e=ec(),t=Le(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&r.call(o,"callee")&&!a.call(o,"callee")};return Ct=i,Ct}var qt,Qa;function tc(){if(Qa)return qt;Qa=1;var e=Ie(),t=sa(),n=Q(),r=e?e.isConcatSpreadable:void 0;function a(i){return n(i)||t(i)||!!(r&&i&&i[r])}return qt=a,qt}var Rt,ei;function Jl(){if(ei)return Rt;ei=1;var e=Zl(),t=tc();function n(r,a,i,o,l){var s=-1,u=r.length;for(i||(i=t),l||(l=[]);++s<u;){var f=r[s];a>0&&i(f)?a>1?n(f,a-1,i,o,l):e(l,f):o||(l[l.length]=f)}return l}return Rt=n,Rt}var wt,ti;function ua(){if(ti)return wt;ti=1;var e=Q(),t=ke(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(i,o){if(e(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||o!=null&&i in Object(o)}return wt=a,wt}var Tt,ri;function Ql(){if(ri)return Tt;ri=1;var e=Pe(),t=De(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var s=e(l);return s==r||s==a||s==n||s==i}return Tt=o,Tt}var Mt,ni;function rc(){if(ni)return Mt;ni=1;var e=ie(),t=e["__core-js_shared__"];return Mt=t,Mt}var Ot,ai;function nc(){if(ai)return Ot;ai=1;var e=rc(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Ot=n,Ot}var Et,ii;function es(){if(ii)return Et;ii=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Et=n,Et}var Dt,oi;function ac(){if(oi)return Dt;oi=1;var e=Ql(),t=nc(),n=De(),r=es(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,s=o.toString,u=l.hasOwnProperty,f=RegExp("^"+s.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(c){if(!n(c)||t(c))return!1;var h=e(c)?f:i;return h.test(r(c))}return Dt=d,Dt}var It,li;function ic(){if(li)return It;li=1;function e(t,n){return t==null?void 0:t[n]}return It=e,It}var Pt,si;function ue(){if(si)return Pt;si=1;var e=ac(),t=ic();function n(r,a){var i=t(r,a);return e(i)?i:void 0}return Pt=n,Pt}var Lt,ui;function Ue(){if(ui)return Lt;ui=1;var e=ue(),t=e(Object,"create");return Lt=t,Lt}var kt,ci;function oc(){if(ci)return kt;ci=1;var e=Ue();function t(){this.__data__=e?e(null):{},this.size=0}return kt=t,kt}var Nt,fi;function lc(){if(fi)return Nt;fi=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Nt=e,Nt}var Ft,di;function sc(){if(di)return Ft;di=1;var e=Ue(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return r.call(o,i)?o[i]:void 0}return Ft=a,Ft}var jt,hi;function uc(){if(hi)return jt;hi=1;var e=Ue(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var i=this.__data__;return e?i[a]!==void 0:n.call(i,a)}return jt=r,jt}var Bt,pi;function cc(){if(pi)return Bt;pi=1;var e=Ue(),t="__lodash_hash_undefined__";function n(r,a){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&a===void 0?t:a,this}return Bt=n,Bt}var Ht,gi;function fc(){if(gi)return Ht;gi=1;var e=oc(),t=lc(),n=sc(),r=uc(),a=cc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,Ht=i,Ht}var zt,mi;function dc(){if(mi)return zt;mi=1;function e(){this.__data__=[],this.size=0}return zt=e,zt}var Ut,yi;function ca(){if(yi)return Ut;yi=1;function e(t,n){return t===n||t!==t&&n!==n}return Ut=e,Ut}var Gt,vi;function Ge(){if(vi)return Gt;vi=1;var e=ca();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Gt=t,Gt}var $t,bi;function hc(){if(bi)return $t;bi=1;var e=Ge(),t=Array.prototype,n=t.splice;function r(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():n.call(i,o,1),--this.size,!0}return $t=r,$t}var Kt,_i;function pc(){if(_i)return Kt;_i=1;var e=Ge();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Kt=t,Kt}var Wt,Si;function gc(){if(Si)return Wt;Si=1;var e=Ge();function t(n){return e(this.__data__,n)>-1}return Wt=t,Wt}var Yt,xi;function mc(){if(xi)return Yt;xi=1;var e=Ge();function t(n,r){var a=this.__data__,i=e(a,n);return i<0?(++this.size,a.push([n,r])):a[i][1]=r,this}return Yt=t,Yt}var Vt,Ai;function $e(){if(Ai)return Vt;Ai=1;var e=dc(),t=hc(),n=pc(),r=gc(),a=mc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,Vt=i,Vt}var Xt,Ci;function fa(){if(Ci)return Xt;Ci=1;var e=ue(),t=ie(),n=e(t,"Map");return Xt=n,Xt}var Zt,qi;function yc(){if(qi)return Zt;qi=1;var e=fc(),t=$e(),n=fa();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Zt=r,Zt}var Jt,Ri;function vc(){if(Ri)return Jt;Ri=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Jt=e,Jt}var Qt,wi;function Ke(){if(wi)return Qt;wi=1;var e=vc();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Qt=t,Qt}var er,Ti;function bc(){if(Ti)return er;Ti=1;var e=Ke();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return er=t,er}var tr,Mi;function _c(){if(Mi)return tr;Mi=1;var e=Ke();function t(n){return e(this,n).get(n)}return tr=t,tr}var rr,Oi;function Sc(){if(Oi)return rr;Oi=1;var e=Ke();function t(n){return e(this,n).has(n)}return rr=t,rr}var nr,Ei;function xc(){if(Ei)return nr;Ei=1;var e=Ke();function t(n,r){var a=e(this,n),i=a.size;return a.set(n,r),this.size+=a.size==i?0:1,this}return nr=t,nr}var ar,Di;function da(){if(Di)return ar;Di=1;var e=yc(),t=bc(),n=_c(),r=Sc(),a=xc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,ar=i,ar}var ir,Ii;function Ac(){if(Ii)return ir;Ii=1;var e=da(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,l=a?a.apply(this,o):o[0],s=i.cache;if(s.has(l))return s.get(l);var u=r.apply(this,o);return i.cache=s.set(l,u)||s,u};return i.cache=new(n.Cache||e),i}return n.Cache=e,ir=n,ir}var or,Pi;function Cc(){if(Pi)return or;Pi=1;var e=Ac(),t=500;function n(r){var a=e(r,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return or=n,or}var lr,Li;function qc(){if(Li)return lr;Li=1;var e=Cc(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,l,s,u){i.push(s?u.replace(n,"$1"):l||o)}),i});return lr=r,lr}var sr,ki;function ts(){if(ki)return sr;ki=1;var e=Q(),t=ua(),n=qc(),r=Xl();function a(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}return sr=a,sr}var ur,Ni;function We(){if(Ni)return ur;Ni=1;var e=ke();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Fi;function ha(){if(Fi)return cr;Fi=1;var e=ts(),t=We();function n(r,a){a=e(a,r);for(var i=0,o=a.length;r!=null&&i<o;)r=r[t(a[i++])];return i&&i==o?r:void 0}return cr=n,cr}var fr,ji;function Rc(){if(ji)return fr;ji=1;var e=$e();function t(){this.__data__=new e,this.size=0}return fr=t,fr}var dr,Bi;function wc(){if(Bi)return dr;Bi=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return dr=e,dr}var hr,Hi;function Tc(){if(Hi)return hr;Hi=1;function e(t){return this.__data__.get(t)}return hr=e,hr}var pr,zi;function Mc(){if(zi)return pr;zi=1;function e(t){return this.__data__.has(t)}return pr=e,pr}var gr,Ui;function Oc(){if(Ui)return gr;Ui=1;var e=$e(),t=fa(),n=da(),r=200;function a(i,o){var l=this.__data__;if(l instanceof e){var s=l.__data__;if(!t||s.length<r-1)return s.push([i,o]),this.size=++l.size,this;l=this.__data__=new n(s)}return l.set(i,o),this.size=l.size,this}return gr=a,gr}var mr,Gi;function rs(){if(Gi)return mr;Gi=1;var e=$e(),t=Rc(),n=wc(),r=Tc(),a=Mc(),i=Oc();function o(l){var s=this.__data__=new e(l);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=a,o.prototype.set=i,mr=o,mr}var yr,$i;function Ec(){if($i)return yr;$i=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return yr=t,yr}var vr,Ki;function Dc(){if(Ki)return vr;Ki=1;function e(t){return this.__data__.has(t)}return vr=e,vr}var br,Wi;function Ic(){if(Wi)return br;Wi=1;var e=da(),t=Ec(),n=Dc();function r(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,br=r,br}var _r,Yi;function Pc(){if(Yi)return _r;Yi=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return _r=e,_r}var Sr,Vi;function Lc(){if(Vi)return Sr;Vi=1;function e(t,n){return t.has(n)}return Sr=e,Sr}var xr,Xi;function ns(){if(Xi)return xr;Xi=1;var e=Ic(),t=Pc(),n=Lc(),r=1,a=2;function i(o,l,s,u,f,d){var c=s&r,h=o.length,m=l.length;if(h!=m&&!(c&&m>h))return!1;var v=d.get(o),_=d.get(l);if(v&&_)return v==l&&_==o;var p=-1,b=!0,y=s&a?new e:void 0;for(d.set(o,l),d.set(l,o);++p<h;){var S=o[p],q=l[p];if(u)var C=c?u(q,S,p,l,o,d):u(S,q,p,o,l,d);if(C!==void 0){if(C)continue;b=!1;break}if(y){if(!t(l,function(A,E){if(!n(y,E)&&(S===A||f(S,A,s,u,d)))return y.push(E)})){b=!1;break}}else if(!(S===q||f(S,q,s,u,d))){b=!1;break}}return d.delete(o),d.delete(l),b}return xr=i,xr}var Ar,Zi;function kc(){if(Zi)return Ar;Zi=1;var e=ie(),t=e.Uint8Array;return Ar=t,Ar}var Cr,Ji;function Nc(){if(Ji)return Cr;Ji=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,i){r[++n]=[i,a]}),r}return Cr=e,Cr}var qr,Qi;function Fc(){if(Qi)return qr;Qi=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return qr=e,qr}var Rr,eo;function jc(){if(eo)return Rr;eo=1;var e=Ie(),t=kc(),n=ca(),r=ns(),a=Nc(),i=Fc(),o=1,l=2,s="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Map]",c="[object Number]",h="[object RegExp]",m="[object Set]",v="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",b="[object DataView]",y=e?e.prototype:void 0,S=y?y.valueOf:void 0;function q(C,A,E,P,L,w,z){switch(E){case b:if(C.byteLength!=A.byteLength||C.byteOffset!=A.byteOffset)return!1;C=C.buffer,A=A.buffer;case p:return!(C.byteLength!=A.byteLength||!w(new t(C),new t(A)));case s:case u:case c:return n(+C,+A);case f:return C.name==A.name&&C.message==A.message;case h:case v:return C==A+"";case d:var N=a;case m:var B=P&o;if(N||(N=i),C.size!=A.size&&!B)return!1;var Y=z.get(C);if(Y)return Y==A;P|=l,z.set(C,A);var ee=r(N(C),N(A),P,L,w,z);return z.delete(C),ee;case _:if(S)return S.call(C)==S.call(A)}return!1}return Rr=q,Rr}var wr,to;function Bc(){if(to)return wr;to=1;var e=Zl(),t=Q();function n(r,a,i){var o=a(r);return t(r)?o:e(o,i(r))}return wr=n,wr}var Tr,ro;function Hc(){if(ro)return Tr;ro=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=0,o=[];++r<a;){var l=t[r];n(l,r,t)&&(o[i++]=l)}return o}return Tr=e,Tr}var Mr,no;function zc(){if(no)return Mr;no=1;function e(){return[]}return Mr=e,Mr}var Or,ao;function Uc(){if(ao)return Or;ao=1;var e=Hc(),t=zc(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(l){return r.call(o,l)}))}:t;return Or=i,Or}var Er,io;function Gc(){if(io)return Er;io=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return Er=e,Er}var Ce={exports:{}},Dr,oo;function $c(){if(oo)return Dr;oo=1;function e(){return!1}return Dr=e,Dr}Ce.exports;var lo;function as(){return lo||(lo=1,(function(e,t){var n=ie(),r=$c(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Ce,Ce.exports)),Ce.exports}var Ir,so;function pa(){if(so)return Ir;so=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var i=typeof r;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Ir=n,Ir}var Pr,uo;function ga(){if(uo)return Pr;uo=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Pr=t,Pr}var Lr,co;function Kc(){if(co)return Lr;co=1;var e=Pe(),t=ga(),n=Le(),r="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",s="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",c="[object RegExp]",h="[object Set]",m="[object String]",v="[object WeakMap]",_="[object ArrayBuffer]",p="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",S="[object Int8Array]",q="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",P="[object Uint16Array]",L="[object Uint32Array]",w={};w[b]=w[y]=w[S]=w[q]=w[C]=w[A]=w[E]=w[P]=w[L]=!0,w[r]=w[a]=w[_]=w[i]=w[p]=w[o]=w[l]=w[s]=w[u]=w[f]=w[d]=w[c]=w[h]=w[m]=w[v]=!1;function z(N){return n(N)&&t(N.length)&&!!w[e(N)]}return Lr=z,Lr}var kr,fo;function is(){if(fo)return kr;fo=1;function e(t){return function(n){return t(n)}}return kr=e,kr}var qe={exports:{}};qe.exports;var ho;function Wc(){return ho||(ho=1,(function(e,t){var n=Kl(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=(function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(qe,qe.exports)),qe.exports}var Nr,po;function os(){if(po)return Nr;po=1;var e=Kc(),t=is(),n=Wc(),r=n&&n.isTypedArray,a=r?t(r):e;return Nr=a,Nr}var Fr,go;function Yc(){if(go)return Fr;go=1;var e=Gc(),t=sa(),n=Q(),r=as(),a=pa(),i=os(),o=Object.prototype,l=o.hasOwnProperty;function s(u,f){var d=n(u),c=!d&&t(u),h=!d&&!c&&r(u),m=!d&&!c&&!h&&i(u),v=d||c||h||m,_=v?e(u.length,String):[],p=_.length;for(var b in u)(f||l.call(u,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||a(b,p)))&&_.push(b);return _}return Fr=s,Fr}var jr,mo;function Vc(){if(mo)return jr;mo=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return jr=t,jr}var Br,yo;function Xc(){if(yo)return Br;yo=1;function e(t,n){return function(r){return t(n(r))}}return Br=e,Br}var Hr,vo;function Zc(){if(vo)return Hr;vo=1;var e=Xc(),t=e(Object.keys,Object);return Hr=t,Hr}var zr,bo;function Jc(){if(bo)return zr;bo=1;var e=Vc(),t=Zc(),n=Object.prototype,r=n.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var l in Object(i))r.call(i,l)&&l!="constructor"&&o.push(l);return o}return zr=a,zr}var Ur,_o;function Ye(){if(_o)return Ur;_o=1;var e=Ql(),t=ga();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ur=n,Ur}var Gr,So;function Ve(){if(So)return Gr;So=1;var e=Yc(),t=Jc(),n=Ye();function r(a){return n(a)?e(a):t(a)}return Gr=r,Gr}var $r,xo;function Qc(){if(xo)return $r;xo=1;var e=Bc(),t=Uc(),n=Ve();function r(a){return e(a,n,t)}return $r=r,$r}var Kr,Ao;function ef(){if(Ao)return Kr;Ao=1;var e=Qc(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(i,o,l,s,u,f){var d=l&t,c=e(i),h=c.length,m=e(o),v=m.length;if(h!=v&&!d)return!1;for(var _=h;_--;){var p=c[_];if(!(d?p in o:r.call(o,p)))return!1}var b=f.get(i),y=f.get(o);if(b&&y)return b==o&&y==i;var S=!0;f.set(i,o),f.set(o,i);for(var q=d;++_<h;){p=c[_];var C=i[p],A=o[p];if(s)var E=d?s(A,C,p,o,i,f):s(C,A,p,i,o,f);if(!(E===void 0?C===A||u(C,A,l,s,f):E)){S=!1;break}q||(q=p=="constructor")}if(S&&!q){var P=i.constructor,L=o.constructor;P!=L&&"constructor"in i&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof L=="function"&&L instanceof L)&&(S=!1)}return f.delete(i),f.delete(o),S}return Kr=a,Kr}var Wr,Co;function tf(){if(Co)return Wr;Co=1;var e=ue(),t=ie(),n=e(t,"DataView");return Wr=n,Wr}var Yr,qo;function rf(){if(qo)return Yr;qo=1;var e=ue(),t=ie(),n=e(t,"Promise");return Yr=n,Yr}var Vr,Ro;function nf(){if(Ro)return Vr;Ro=1;var e=ue(),t=ie(),n=e(t,"Set");return Vr=n,Vr}var Xr,wo;function af(){if(wo)return Xr;wo=1;var e=ue(),t=ie(),n=e(t,"WeakMap");return Xr=n,Xr}var Zr,To;function of(){if(To)return Zr;To=1;var e=tf(),t=fa(),n=rf(),r=nf(),a=af(),i=Pe(),o=es(),l="[object Map]",s="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",c="[object DataView]",h=o(e),m=o(t),v=o(n),_=o(r),p=o(a),b=i;return(e&&b(new e(new ArrayBuffer(1)))!=c||t&&b(new t)!=l||n&&b(n.resolve())!=u||r&&b(new r)!=f||a&&b(new a)!=d)&&(b=function(y){var S=i(y),q=S==s?y.constructor:void 0,C=q?o(q):"";if(C)switch(C){case h:return c;case m:return l;case v:return u;case _:return f;case p:return d}return S}),Zr=b,Zr}var Jr,Mo;function lf(){if(Mo)return Jr;Mo=1;var e=rs(),t=ns(),n=jc(),r=ef(),a=of(),i=Q(),o=as(),l=os(),s=1,u="[object Arguments]",f="[object Array]",d="[object Object]",c=Object.prototype,h=c.hasOwnProperty;function m(v,_,p,b,y,S){var q=i(v),C=i(_),A=q?f:a(v),E=C?f:a(_);A=A==u?d:A,E=E==u?d:E;var P=A==d,L=E==d,w=A==E;if(w&&o(v)){if(!o(_))return!1;q=!0,P=!1}if(w&&!P)return S||(S=new e),q||l(v)?t(v,_,p,b,y,S):n(v,_,A,p,b,y,S);if(!(p&s)){var z=P&&h.call(v,"__wrapped__"),N=L&&h.call(_,"__wrapped__");if(z||N){var B=z?v.value():v,Y=N?_.value():_;return S||(S=new e),y(B,Y,p,b,S)}}return w?(S||(S=new e),r(v,_,p,b,y,S)):!1}return Jr=m,Jr}var Qr,Oo;function ls(){if(Oo)return Qr;Oo=1;var e=lf(),t=Le();function n(r,a,i,o,l){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,i,o,n,l)}return Qr=n,Qr}var en,Eo;function sf(){if(Eo)return en;Eo=1;var e=rs(),t=ls(),n=1,r=2;function a(i,o,l,s){var u=l.length,f=u,d=!s;if(i==null)return!f;for(i=Object(i);u--;){var c=l[u];if(d&&c[2]?c[1]!==i[c[0]]:!(c[0]in i))return!1}for(;++u<f;){c=l[u];var h=c[0],m=i[h],v=c[1];if(d&&c[2]){if(m===void 0&&!(h in i))return!1}else{var _=new e;if(s)var p=s(m,v,h,i,o,_);if(!(p===void 0?t(v,m,n|r,s,_):p))return!1}}return!0}return en=a,en}var tn,Do;function ss(){if(Do)return tn;Do=1;var e=De();function t(n){return n===n&&!e(n)}return tn=t,tn}var rn,Io;function uf(){if(Io)return rn;Io=1;var e=ss(),t=Ve();function n(r){for(var a=t(r),i=a.length;i--;){var o=a[i],l=r[o];a[i]=[o,l,e(l)]}return a}return rn=n,rn}var nn,Po;function us(){if(Po)return nn;Po=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return nn=e,nn}var an,Lo;function cf(){if(Lo)return an;Lo=1;var e=sf(),t=uf(),n=us();function r(a){var i=t(a);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return an=r,an}var on,ko;function ff(){if(ko)return on;ko=1;var e=ha();function t(n,r,a){var i=n==null?void 0:e(n,r);return i===void 0?a:i}return on=t,on}var ln,No;function df(){if(No)return ln;No=1;function e(t,n){return t!=null&&n in Object(t)}return ln=e,ln}var sn,Fo;function hf(){if(Fo)return sn;Fo=1;var e=ts(),t=sa(),n=Q(),r=pa(),a=ga(),i=We();function o(l,s,u){s=e(s,l);for(var f=-1,d=s.length,c=!1;++f<d;){var h=i(s[f]);if(!(c=l!=null&&u(l,h)))break;l=l[h]}return c||++f!=d?c:(d=l==null?0:l.length,!!d&&a(d)&&r(h,d)&&(n(l)||t(l)))}return sn=o,sn}var un,jo;function pf(){if(jo)return un;jo=1;var e=df(),t=hf();function n(r,a){return r!=null&&t(r,a,e)}return un=n,un}var cn,Bo;function gf(){if(Bo)return cn;Bo=1;var e=ls(),t=ff(),n=pf(),r=ua(),a=ss(),i=us(),o=We(),l=1,s=2;function u(f,d){return r(f)&&a(d)?i(o(f),d):function(c){var h=t(c,f);return h===void 0&&h===d?n(c,f):e(d,h,l|s)}}return cn=u,cn}var fn,Ho;function Xe(){if(Ho)return fn;Ho=1;function e(t){return t}return fn=e,fn}var dn,zo;function mf(){if(zo)return dn;zo=1;function e(t){return function(n){return n==null?void 0:n[t]}}return dn=e,dn}var hn,Uo;function yf(){if(Uo)return hn;Uo=1;var e=ha();function t(n){return function(r){return e(r,n)}}return hn=t,hn}var pn,Go;function vf(){if(Go)return pn;Go=1;var e=mf(),t=yf(),n=ua(),r=We();function a(i){return n(i)?e(r(i)):t(i)}return pn=a,pn}var gn,$o;function cs(){if($o)return gn;$o=1;var e=cf(),t=gf(),n=Xe(),r=Q(),a=vf();function i(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):a(o)}return gn=i,gn}var mn,Ko;function bf(){if(Ko)return mn;Ko=1;function e(t){return function(n,r,a){for(var i=-1,o=Object(n),l=a(n),s=l.length;s--;){var u=l[t?s:++i];if(r(o[u],u,o)===!1)break}return n}}return mn=e,mn}var yn,Wo;function _f(){if(Wo)return yn;Wo=1;var e=bf(),t=e();return yn=t,yn}var vn,Yo;function Sf(){if(Yo)return vn;Yo=1;var e=_f(),t=Ve();function n(r,a){return r&&e(r,a,t)}return vn=n,vn}var bn,Vo;function xf(){if(Vo)return bn;Vo=1;var e=Ye();function t(n,r){return function(a,i){if(a==null)return a;if(!e(a))return n(a,i);for(var o=a.length,l=r?o:-1,s=Object(a);(r?l--:++l<o)&&i(s[l],l,s)!==!1;);return a}}return bn=t,bn}var _n,Xo;function Af(){if(Xo)return _n;Xo=1;var e=Sf(),t=xf(),n=t(e);return _n=n,_n}var Sn,Zo;function fs(){if(Zo)return Sn;Zo=1;var e=Af(),t=Ye();function n(r,a){var i=-1,o=t(r)?Array(r.length):[];return e(r,function(l,s,u){o[++i]=a(l,s,u)}),o}return Sn=n,Sn}var xn,Jo;function Cf(){if(Jo)return xn;Jo=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return xn=e,xn}var An,Qo;function qf(){if(Qo)return An;Qo=1;var e=ke();function t(n,r){if(n!==r){var a=n!==void 0,i=n===null,o=n===n,l=e(n),s=r!==void 0,u=r===null,f=r===r,d=e(r);if(!u&&!d&&!l&&n>r||l&&s&&f&&!u&&!d||i&&s&&f||!a&&f||!o)return 1;if(!i&&!l&&!d&&n<r||d&&a&&o&&!i&&!l||u&&a&&o||!s&&o||!f)return-1}return 0}return An=t,An}var Cn,el;function Rf(){if(el)return Cn;el=1;var e=qf();function t(n,r,a){for(var i=-1,o=n.criteria,l=r.criteria,s=o.length,u=a.length;++i<s;){var f=e(o[i],l[i]);if(f){if(i>=u)return f;var d=a[i];return f*(d=="desc"?-1:1)}}return n.index-r.index}return Cn=t,Cn}var qn,tl;function wf(){if(tl)return qn;tl=1;var e=ze(),t=ha(),n=cs(),r=fs(),a=Cf(),i=is(),o=Rf(),l=Xe(),s=Q();function u(f,d,c){d.length?d=e(d,function(v){return s(v)?function(_){return t(_,v.length===1?v[0]:v)}:v}):d=[l];var h=-1;d=e(d,i(n));var m=r(f,function(v,_,p){var b=e(d,function(y){return y(v)});return{criteria:b,index:++h,value:v}});return a(m,function(v,_){return o(v,_,c)})}return qn=u,qn}var Rn,rl;function Tf(){if(rl)return Rn;rl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Rn=e,Rn}var wn,nl;function Mf(){if(nl)return wn;nl=1;var e=Tf(),t=Math.max;function n(r,a,i){return a=t(a===void 0?r.length-1:a,0),function(){for(var o=arguments,l=-1,s=t(o.length-a,0),u=Array(s);++l<s;)u[l]=o[a+l];l=-1;for(var f=Array(a+1);++l<a;)f[l]=o[l];return f[a]=i(u),e(r,this,f)}}return wn=n,wn}var Tn,al;function Of(){if(al)return Tn;al=1;function e(t){return function(){return t}}return Tn=e,Tn}var Mn,il;function Ef(){if(il)return Mn;il=1;var e=ue(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Mn=t,Mn}var On,ol;function Df(){if(ol)return On;ol=1;var e=Of(),t=Ef(),n=Xe(),r=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:n;return On=r,On}var En,ll;function If(){if(ll)return En;ll=1;var e=800,t=16,n=Date.now;function r(a){var i=0,o=0;return function(){var l=n(),s=t-(l-o);if(o=l,s>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return En=r,En}var Dn,sl;function Pf(){if(sl)return Dn;sl=1;var e=Df(),t=If(),n=t(e);return Dn=n,Dn}var In,ul;function Lf(){if(ul)return In;ul=1;var e=Xe(),t=Mf(),n=Pf();function r(a,i){return n(t(a,i,e),a+"")}return In=r,In}var Pn,cl;function ma(){if(cl)return Pn;cl=1;var e=ca(),t=Ye(),n=pa(),r=De();function a(i,o,l){if(!r(l))return!1;var s=typeof o;return(s=="number"?t(l)&&n(o,l.length):s=="string"&&o in l)?e(l[o],i):!1}return Pn=a,Pn}var Ln,fl;function kf(){if(fl)return Ln;fl=1;var e=Jl(),t=wf(),n=Lf(),r=ma(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&r(i,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Ln=a,Ln}var Nf=kf();const Ff=ye(Nf);var kn,dl;function jf(){if(dl)return kn;dl=1;function e(t){for(var n=-1,r=t==null?0:t.length,a={};++n<r;){var i=t[n];a[i[0]]=i[1]}return a}return kn=e,kn}var Bf=jf();const hl=ye(Bf);var Nn,pl;function Hf(){if(pl)return Nn;pl=1;var e=Math.ceil,t=Math.max;function n(r,a,i,o){for(var l=-1,s=t(e((a-r)/(i||1)),0),u=Array(s);s--;)u[o?s:++l]=r,r+=i;return u}return Nn=n,Nn}var Fn,gl;function zf(){if(gl)return Fn;gl=1;var e=Hf(),t=ma(),n=Yl();function r(a){return function(i,o,l){return l&&typeof l!="number"&&t(i,o,l)&&(o=l=void 0),i=n(i),o===void 0?(o=i,i=0):o=n(o),l=l===void 0?i<o?1:-1:n(l),e(i,o,l,a)}}return Fn=r,Fn}var jn,ml;function Uf(){if(ml)return jn;ml=1;var e=zf(),t=e();return jn=t,jn}var Gf=Uf();const $f=ye(Gf);var Bn,yl;function Kf(){if(yl)return Bn;yl=1;var e=ze(),t=cs(),n=fs(),r=Q();function a(i,o){var l=r(i)?e:n;return l(i,t(o,3))}return Bn=a,Bn}var Hn,vl;function Wf(){if(vl)return Hn;vl=1;var e=Jl(),t=Kf();function n(r,a){return e(t(r,a),1)}return Hn=n,Hn}var Yf=Wf();const Vf=ye(Yf);var zn,bl;function ds(){if(bl)return zn;bl=1;function e(t,n,r){return t===t&&(r!==void 0&&(t=t<=r?t:r),n!==void 0&&(t=t>=n?t:n)),t}return zn=e,zn}var Un,_l;function Xf(){if(_l)return Un;_l=1;function e(t,n){var r=-1,a=t.length;for(n||(n=Array(a));++r<a;)n[r]=t[r];return n}return Un=e,Un}var Gn,Sl;function Zf(){if(Sl)return Gn;Sl=1;var e=Math.floor,t=Math.random;function n(r,a){return r+e(t()*(a-r+1))}return Gn=n,Gn}var $n,xl;function hs(){if(xl)return $n;xl=1;var e=Zf();function t(n,r){var a=-1,i=n.length,o=i-1;for(r=r===void 0?i:r;++a<r;){var l=e(a,o),s=n[l];n[l]=n[a],n[a]=s}return n.length=r,n}return $n=t,$n}var Kn,Al;function Jf(){if(Al)return Kn;Al=1;var e=ds(),t=Xf(),n=hs();function r(a,i){return n(t(a),e(i,0,a.length))}return Kn=r,Kn}var Wn,Cl;function Qf(){if(Cl)return Wn;Cl=1;var e=ze();function t(n,r){return e(r,function(a){return n[a]})}return Wn=t,Wn}var Yn,ql;function ed(){if(ql)return Yn;ql=1;var e=Qf(),t=Ve();function n(r){return r==null?[]:e(r,t(r))}return Yn=n,Yn}var Vn,Rl;function td(){if(Rl)return Vn;Rl=1;var e=ds(),t=hs(),n=ed();function r(a,i){var o=n(a);return t(o,e(i,0,o.length))}return Vn=r,Vn}var Xn,wl;function rd(){if(wl)return Xn;wl=1;var e=Jf(),t=td(),n=Q(),r=ma(),a=Vl();function i(o,l,s){(s?r(o,l,s):l===void 0)?l=1:l=a(l);var u=n(o)?e:t;return u(o,l)}return Xn=i,Xn}var nd=rd();const ad=ye(nd),id=e=>Qu(e,14),Tl=e=>Object.values(e).reduce((t,n)=>t+n,0),od=(e,t,n={})=>{const r=Object.assign({draw:!1},n);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(m=>typeof m=="number"&&m>=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 r.draw!="boolean")throw new Error("opt.draw must be a boolean");const a=Tl(e),i=hl(Object.entries(e).map(([m,v])=>{const _=Math.max(t-Object.keys(e).length,0),p=Math.round(_*v/a);return[m,p]})),o=hl(Object.entries(e).map(([m,v])=>{const _=t+Object.keys(e).length,p=Math.min(Math.round(_*v/a),t);return[m,p]})),l=Vf(Object.entries(e).map(([m,v])=>{const _=i[m],p=o[m];return $f(_,p).map(b=>{const y=id(v/(b+.5));return{party:m,quotient:y}})})),s=Tl(i),u=t-s,f=Ff(l,({quotient:m})=>-m),d=f[u-1].quotient,c=f.filter(({quotient:m})=>m>d),h=f.filter(({quotient:m})=>m===d);if(c.length+h.length===u)c.push(...h);else{if(!r.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");c.push(...ad(h,u-c.length))}return c.reduce((m,{party:v})=>(m[v]+=1,m),i)},ps=(e=Ee)=>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:le.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:le.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:le.neoGrey[400],"stroke-width":.5})]),gs=(e=Ee)=>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})]),ms=(e=Ee)=>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})]),$={greyHatch:{background:le.neoGrey[200],lines:le.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},He=e=>Math.round(e*1e10)/1e10,ld=e=>e.reduce((t,n)=>t+n.seats,0),sd=e=>e.flat(),ud=(e,t,n)=>{const r=(Math.PI-n)/2,a=t/e+r-Math.PI;return{x:He(e*Math.cos(a)),y:He(e*Math.sin(a))}},ys=(e,t,n,r)=>{const a=r*t*n/(e-t),i=1+r*(t-1)*t/2/(e-t);return a/i},xe=(e,t,n,r)=>{const a=r/Math.PI*.7142857142857143;return Math.abs(ys(e,t,n,r)*t/n-a)},cd=(e,t,n)=>{let r=Math.floor(Math.log(e)/Math.log(2))||1,a=xe(e,r,t,n),i=0;for(xe(e,r+1,t,n)<a&&(i=1),xe(e,r-1,t,n)<a&&r>1&&(i=-1);xe(e,r+i,t,n)<a&&r>0;)a=xe(e,r+i,t,n),r+=i;return r},fd=(e,t)=>{var a,i;let n,r;for(let o=0;o<e.length;o++)r=He((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),(!n||r<n)&&(n=r);for(let o=0;o<e.length;o++)if(r=He((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),r===n)return o;return 0},dd=(e,t,n)=>{const r=ld(e),a=cd(r,t,n),i=ys(r,a,t,n);let o={};for(let c=1;c<=a;c++)o[c]=t-(c-1)*i;o=od(o,r);const l=[];let s,u,f;for(let c=1;c<=a;c++){const h=[];s=t-(c-1)*i,u=n*s/((o[c]??1)-1||1);for(let m=0;m<=(o[c]??1)-1;m++)f={...ud(s,m*u,n),r:.4*i},h.push(f);l.push(h)}const d=Array(l.length).fill(0);for(const c of e)for(let h=0;h<c.seats;h++){const m=fd(l,d),v=l[m],_=d[m]??0,p=v==null?void 0:v[_];p&&(p.fill=c.colour,p.party=String(c.id)),d[m]=_+1}return sd(l)},hd=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),pd={seatCount:!1,arcAngle:180,hFunction:Ee},gd=(e,t={})=>{var _;const{seatCount:n,arcAngle:r,hFunction:a}=Object.assign({},pd,t);if(typeof n!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof a!="function")throw new Error("`hFunction` option must be a function");if(typeof r!="number"||r<=0||r>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const i=r*Math.PI/180,o=20,l=dd(e,o,i),s=(((_=l[0])==null?void 0:_.r)??0)/.4||0,u=l.map(hd(a));n&&u.push(a("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const f=r<=180?o+s:o*(1+Math.sin((i-Math.PI)/2))+s,d=o+s,c=Math.max(f,d),h=r<=180?-o-s/2:-o*(1+Math.sin((i-Math.PI)/2))-s/2,m=a("defs",[ps(a),gs(a),ms(a)]);return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,h,2*o+s,c].join(",")},[m,...u])},md={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Ee},yd=(e,t={})=>{const n={...md,...t},{arcAngle:r,arcAngleFlexibility:a,radius:i,seatSize:o,minSeatSize:l,maxSeatSize:s,spacing:u,innerRadiusRatio:f,showLabels:d,hFunction:c}=n,h=i*f,m=e.reduce((M,H)=>M+H.seats,0);let v={seatSize:o,arcAngle:r,score:-1};const _=r-a,p=r+a;for(let M=_;M<=p;M+=2.5){const H=M*Math.PI/180;for(let F=s;F>=l;F-=.1){const V=F*2,Z=V*u,oe=Math.floor((i-h)/Z);for(let J=1;J<=Math.min(oe,10);J++){let G=0;for(let _e=0;_e<J;_e++){const Ze=h+(_e+.5)*Z,Se=V*u/Ze,Je=Math.floor(H/Se);G+=Je}if(G>=m){const _e=m/G,Ze=(F-l)/(s-l),Se=(G-m)/m,Je=Se<.15?1:Se<.3?.7:Se<.5?.4:.1,As=1-Math.abs(M-r)/a,ya=Je*.5+Ze*.3+_e*.15+As*.05;ya>v.score&&(v={seatSize:F,arcAngle:M,rings:J,score:ya})}}}}const b=v.seatSize,y=v.arcAngle,S=y*Math.PI/180,q=b*2,C=q*u,A=Math.floor((i-h)/C),E=[],P=-S/2-Math.PI/2,L=[];let w=0,z=[];for(let M=1;M<=A;M++){let H=0;const F=[];for(let V=0;V<M;V++){const Z=h+(V+.5)*C,oe=q*u/Z,J=Math.floor(S/oe);F.push(J),H+=J}if(H>=m){w=M,z=F;break}}if(w>0)L.push(...z);else for(let M=0;M<A;M++){const H=h+(M+.5)*C,F=q*u/H,V=Math.floor(S/F);L.push(V)}for(let M=0;M<L.length;M++){const H=h+(M+.5)*C,F=L[M]??0;if(F>0){const V=S/F;for(let Z=0;Z<F;Z++){const oe=P+(Z+.5)*V,J=Math.cos(oe)*H,G=Math.sin(oe)*H;E.push({ring:M,index:Z,angle:oe,x:J,y:G})}}}E.sort((M,H)=>{const F=M.angle-H.angle;return Math.abs(F)>.001?F:M.ring-H.ring});const N=[];let B=0;e.forEach(M=>{const H=[],F=Math.min(M.seats,E.length-B);let V=1/0,Z=-1/0;for(let J=0;J<F&&B<E.length;J++){const G=E[B++];G&&(V=Math.min(V,G.angle),Z=Math.max(Z,G.angle),Math.sqrt(G.x*G.x+G.y*G.y),H.push(c("circle",{fill:M.colour,stroke:M.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${G.x}, ${G.y})`,r:b,"data-party":M.name,"data-party-id":String(M.id),style:"pointer-events: all; cursor: pointer;"})))}const oe=H;N.push(c("g",{className:"party-group","data-party":M.name,style:"opacity: 1; outline: none;"},oe))});const Y=c("g",{className:"arc-bg"},[c("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:i}),c("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:h})]),ee=c("g",{className:"points-container"},N),ve=d?c("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[c("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);"}),c("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,O=c("defs",[c("radialGradient",{id:"label-gradient"},[c("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),c("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),c("mask",{id:"label-clip"},[c("circle",{fill:"url(#label-gradient)",r:h})]),ps(c),gs(c),ms(c)]),ne=c("g",{className:"arc-container",transform:`translate(${i}, ${i})`},[Y,ee,ve].filter(Boolean)),Ne=S/2;let be;if(y<=180)be=i*Math.sin(Ne)+b;else{const M=Ne-Math.PI/2;be=i*(1+Math.sin(M))+b}const ce=i+b,fe=i*2,de=Math.max(be,ce);return c("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${fe} ${de}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[ne,O])};function vs(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?ge.COMPLETED:e.color==="url(#greyHatchPattern)"?$.greyHatch.lines:e.color}function ra(e,t){if(!e)return;const n=e.querySelectorAll(".party-group");n&&n.length>0&&n.forEach(r=>{if(!r)return;const a=r,i=a.getAttribute("data-party");t?i===t?a.style.opacity=K.animation.hoverOpacity.active:a.style.opacity=K.animation.hoverOpacity.dimmed:a.style.opacity="1"})}function na(e,t){e.forEach(n=>{const r=n,a=n.getAttribute("class")||"";t?a===t?(r.setAttribute("fill-opacity","1"),r.setAttribute("stroke-opacity","1")):(r.setAttribute("fill-opacity",K.animation.hoverOpacity.dimmed),r.setAttribute("stroke-opacity","0.2")):(r.setAttribute("fill-opacity","1"),r.setAttribute("stroke-opacity","1"))})}const vd=({containerRef:e,processedData:t,totalRepositories:n,arcAngle:r,useEnhanced:a,maxSeats:i,setHoveredData:o,activePartyName:l,setActivePartyName:s,chartConfig:u,seatSize:f})=>{D.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const d=n<=i?1:i/n,c=t.filter(y=>y.value>0).map(y=>{const S=n<=i?y.value:Math.max(1,Math.floor(y.value*d));return{id:String(y.id),name:y.label,seats:S,colour:y.color==="url(#hatchPattern)"?ge.COMPLETED:y.color}}),h=a?yd(c,{arcAngle:r,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:f,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):gd(c,{arcAngle:r});h.properties&&(h.properties.width="100%",h.properties.height="100%",h.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",h.properties.preserveAspectRatio="xMidYMid meet");const m=ku(h),p=new DOMParser().parseFromString(m,"image/svg+xml").documentElement;if(!p)return;p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.style.width="100%",p.style.height="auto",p.style.display="block",a?bd(p,c,t,o,l,s):_d(p,c,t,o,l,s);const b=()=>{if(o(null),s(null),a)ra(p,null);else{const y=p.querySelectorAll("circle");na(y,null)}};return p&&p.addEventListener("mouseleave",b),e.current.appendChild(p),()=>{if(p&&p.removeEventListener("mouseleave",b),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,n,r,a,i,o,l,s,e,u,f])};function bd(e,t,n,r,a,i){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),l=e.querySelectorAll(".party-group circle.seat-visual");l&&l.length>0&&l.forEach(s=>{if(s){const u=s;u.style.stroke=K.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${K.animation.transitionDuration} ease, stroke-opacity ${K.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(s=>{if(!s)return;const u=s.getAttribute("data-party"),f=s.getAttribute("data-party-id"),d=()=>{if(u&&u!==a){const c=t.find(h=>h.name===u||String(h.id)===f);if(c){const h=n.find(m=>m.label===c.name||String(m.id)===c.id);if(h){const m=vs(h);r({label:h.label||"Unknown",value:h.value||0,color:m}),i(c.name),ra(e,c.name)}}}};s.addEventListener("mouseenter",d)}),a&&ra(e,a)}function _d(e,t,n,r,a,i){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(l=>{if(l){const s=l;s.style.cursor="pointer",s.style.stroke=K.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${K.animation.transitionDuration} ease, stroke-opacity ${K.animation.transitionDuration} ease`}}),o.forEach(l=>{if(!l)return;const s=l.getAttribute("class")||"",u=parseInt(s,10),f=t[u],d=()=>{if(f){const c=f.name;if(c&&c!==a){const h=n.find(m=>m.label===f.name||String(m.id)===f.id);if(h){const m=vs(h);r({label:h.label||"Unknown",value:h.value||0,color:m}),i(c),na(o,s)}}}};l.addEventListener("mouseenter",d)})),a){const l=t.find(s=>s.name===a);if(l){const s=t.indexOf(l);na(o,String(s))}}}const bs=[{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}],_s=({repositoryCount:e})=>{const t=bs.find(l=>e>=l.minRepos&&e<l.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const n=t.maxRepos-t.minRepos,a=(e-t.minRepos)/n,i=t.maxArc-t.minArc,o=t.minArc+i*a;return Math.round(o)},Ss=({repositoryCount:e})=>{const t=bs.find(l=>e>=l.minRepos&&e<l.maxRepos);if(!t)return 5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const n=t.maxRepos-t.minRepos,a=(e-t.minRepos)/n,i=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+i*a;return Math.round(o*10)/10},Zn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ml={[Re]:ge.NOT_APPLICABLE,[we]:ge.NO_LST,[Te]:ge.DATA_MISSING},Ae=(e,t,n)=>{if(e in Ml)return Ml[e];const r=n-1-t,a=Zn.length,i=Math.floor(r/Math.max(1,n-1)*(a-1)),o=Math.min(Math.max(0,i),a-1);return Zn[o]??Zn[0]??"#000000"},xs=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:n,unavailableRepositories:r})=>{const{special:a,regular:i}=e.reduce((h,m,v)=>([Re,we,Te].includes(m.label)?h.special.push({...m,originalIndex:v}):h.regular.push({...m,originalIndex:v}),h),{special:[],regular:[]}),o=i.reverse().map((h,m)=>({id:`measure-${m}`,label:h.label,value:h.value,color:Ae(h.label,i.length-1-m,i.length)})),l=a.map((h,m)=>({id:h.label.toLowerCase().replace(" ","-"),label:h.label,value:h.value,color:Ae(h.label,m,a.length)})),s=r,u={id:"no-lst",label:we,value:n,color:Ae(we,0,1)},f={id:"data-missing",label:Te,value:s,color:Ae(Te,0,1)},d={id:"n/a",label:Re,value:t,color:Ae(Re,0,1)},c=[...o,...l];return u.value>0&&c.push(u),f.value>0&&c.push(f),d.value>0&&c.push(d),c},Ol={"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."},Sd=({dataSeries:e,totalRepositories:t,notApplicableRepositories:n,noLstRepositories:r,unavailableRepositories:a,arcAngle:i,useEnhanced:o=K.useEnhanced})=>{const l=D.useRef(null),[s,u]=D.useState(null),[f,d]=D.useState(null),h=xs({dataSeries:e,notApplicableRepositories:n,noLstRepositories:r,unavailableRepositories:a}).map(y=>{const S=typeof y.color=="function"?y.color("arc"):y.color,q=typeof y.label=="function"?y.label("arc"):y.label;return{...y,color:S,label:q}}),m=i??_s({repositoryCount:t}),v=Ss({repositoryCount:t});vd({containerRef:l,processedData:h,totalRepositories:t,arcAngle:m,useEnhanced:o,maxSeats:K.maxSeats,setHoveredData:u,activePartyName:f,setActivePartyName:d,chartConfig:K.chartConfig,seatSize:v});const _=h.map(y=>{const S=y.value/t*100,q=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(y.id),label:y.label,value:y.value,percentage:q,color:y.color}}),p=t>K.maxSeats,b=p?Math.round(t/K.maxSeats):1;return x.jsxs(T.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:[x.jsxs(T.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:[x.jsx(T.Box,{className:"parliament-chart-svg-container",ref:l,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"}}}}),x.jsxs(T.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&&x.jsxs(D.Fragment,{children:[x.jsx(T.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}),x.jsxs(T.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"]})]}),p&&x.jsxs(T.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:[x.jsx(T.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),x.jsxs(T.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",b," repos"]})]})]})]}),x.jsx(T.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:()=>{u(null),d(null)},children:x.jsxs(T.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:[x.jsx("thead",{children:x.jsxs(T.TableRow,{children:[x.jsx(T.TableCell,{}),x.jsx(T.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),x.jsx(T.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),x.jsx(T.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),x.jsx("tbody",{children:_.map(y=>{const S=y.color==="url(#greyHatchPattern)"?$.greyHatch.lines:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.lines:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.lines:y.color;return x.jsxs(T.TableRow,{onMouseEnter:()=>{d(y.label),u({label:y.label,value:y.value,color:y.color==="url(#greyHatchPattern)"?$.greyHatch.lines:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.lines:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.lines:y.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===y.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[x.jsx(T.TableCell,{align:"center",sx:{width:20},children:x.jsx(T.Box,{sx:{width:12,height:12,backgroundColor:y.color==="url(#greyHatchPattern)"?$.greyHatch.background:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.background:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.background:y.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===y.label?"scale(1.2)":"scale(1)",...y.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
10
+ 0deg,
11
+ transparent,
12
+ transparent 3px,
13
+ ${$.greyHatch.lines} 3px,
14
+ ${$.greyHatch.lines} 4px
15
+ )`,borderRadius:"50%"}},...y.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
+ 45deg,
17
+ transparent,
18
+ transparent 3px,
19
+ ${$.dataMissingHatch.lines} 3px,
20
+ ${$.dataMissingHatch.lines} 4px
21
+ )`,borderRadius:"50%"}},...y.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
+ -45deg,
23
+ transparent,
24
+ transparent 3px,
25
+ ${$.noLstHatch.lines} 3px,
26
+ ${$.noLstHatch.lines} 4px
27
+ )`,borderRadius:"50%"}}}})}),x.jsx(T.TableCell,{children:x.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:.5,children:[x.jsx("span",{children:y.label}),Ol[y.label]&&x.jsx(T.Tooltip,{title:Ol[y.label],placement:"right",arrow:!0,children:x.jsx(Cs.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),x.jsx(T.TableCell,{align:"right",children:y.value}),x.jsxs(T.TableCell,{align:"right",children:[y.percentage,"%"]})]},y.id)})})]})})]})},ae={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},re={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:ae.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${ae.dimensions.height}px`,backgroundColor:ae.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${ae.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${ae.dimensions.eventWidth}px`,height:"100%",backgroundColor:ae.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:ae.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 ${ae.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:ae.colors.tooltipText,fontSize:"11px"}}},xd=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},Ad=({events:e,selectedRange:t,onSelectionChange:n,enableZoom:r,zoomToSelection:a,visibleRange:i,onVisibleRangeChange:o})=>{xd()&&e.length>1&&(e.every((U,te)=>te===0||U.timestamp>=e[te-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[l,s]=D.useState(!1),[u,f]=D.useState(null),[d,c]=D.useState({start:null,end:null}),[h,m]=D.useState({start:null,end:null}),[v,_]=D.useState(null),p=t??d,b=i??h,y=D.useMemo(()=>{var O;return e.length>0?((O=e[0])==null?void 0:O.timestamp)??0:0},[e]),S=D.useMemo(()=>{var O;return e.length>0?((O=e[e.length-1])==null?void 0:O.timestamp)??0:0},[e]),q=D.useMemo(()=>a&&b.start&&b.end?b.start:y,[a,b,y]),C=D.useMemo(()=>a&&b.start&&b.end?b.end:S,[a,b,S]),A=D.useMemo(()=>C-q,[C,q]),E=D.useCallback(O=>A===0?0:(O-q)/A*100,[q,A]),P=D.useCallback((O,U)=>{const te=O/U*100;return q+te/100*A},[q,A]),L=D.useCallback(O=>{t===void 0&&c(O),n==null||n(O)},[t,n]),w=D.useCallback(O=>{const U=O.currentTarget.getBoundingClientRect(),te=O.clientX-U.left,ne=P(te,U.width);s(!0),f(ne),L({start:ne,end:ne})},[P,L]),z=D.useCallback(O=>{if(!l||u===null)return;const U=O.currentTarget.getBoundingClientRect(),te=O.clientX-U.left,ne=P(te,U.width);L({start:Math.min(u,ne),end:Math.max(u,ne)})},[l,u,P,L]),N=D.useCallback(()=>{const O=l;if(s(!1),O&&a&&p.start&&p.end&&p.start!==p.end){const U={start:p.start,end:p.end};i===void 0&&m(U),o==null||o(U)}},[l,a,p,i,o]),B=D.useCallback(O=>{if(O.preventDefault(),!r||!p.start||!p.end||A===0)return;const U=(p.start+p.end)/2,te=p.end-p.start,ne=O.deltaY>0?1.1:.9,Ne=Math.max(te*ne,A*.01),be=A*1.5,ce=Math.min(Ne,be);let fe=U-ce/2,de=U+ce/2;fe<q&&(fe=q,de=Math.min(q+ce,C)),de>C&&(de=C,fe=Math.max(C-ce,q)),L({start:fe,end:de})},[r,p,A,q,C,L]),Y=D.useCallback(()=>!p.start||!p.end?[]:e.filter(O=>O.timestamp>=p.start&&O.timestamp<=p.end),[e,p]),ee=D.useCallback(()=>{const O={start:y,end:S};i===void 0&&m({start:null,end:null}),o==null||o(O)},[y,S,i,o]),ve=D.useCallback(()=>{a&&ee()},[a,ee]);return{isDragging:l,dragStart:u,internalSelectedRange:p,internalVisibleRange:b,hoveredEvent:v,minDate:q,maxDate:C,timeSpan:A,getPositionFromTimestamp:E,getTimestampFromPosition:P,handleMouseDown:w,handleMouseMove:z,handleMouseUp:N,handleWheel:B,handleDoubleClick:ve,setHoveredEvent:_,getEventsInRange:Y,resetZoom:ee}},Cd=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qd=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),Rd=e=>{const t=e/864e5;return t>60?n=>new Date(n).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"}):n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},wd=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},Td=e=>({header:{...re.header,...e==null?void 0:e.header},title:{...re.title,...e==null?void 0:e.title},instructions:{...re.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...re.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...re.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...re.timeline,...e==null?void 0:e.timeline},event:{...re.event,...e==null?void 0:e.event},selection:{...re.selection,...e==null?void 0:e.selection},tooltip:{...re.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...re.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...re.tooltipDate,...e==null?void 0:e.tooltipDate}}),Md=({events:e,onSelectionChange:t,selectedRange:n,height:r=ae.dimensions.height,formatDate:a=Cd,formatMonthYear:i=qd,showMonthLabels:o=!0,monthLabelCount:l=6,enableZoom:s=!0,showHeader:u=!0,title:f="Event Timeline Selector",zoomToSelection:d=!1,visibleRange:c,onVisibleRangeChange:h,slotProps:m})=>{wd()&&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 v=D.useMemo(()=>Td(m),[m]),{isDragging:_,internalSelectedRange:p,hoveredEvent:b,minDate:y,timeSpan:S,getPositionFromTimestamp:q,handleMouseDown:C,handleMouseMove:A,handleMouseUp:E,handleWheel:P,handleDoubleClick:L,setHoveredEvent:w,getEventsInRange:z}=Ad({events:e,selectedRange:n,onSelectionChange:t,enableZoom:s,zoomToSelection:d,visibleRange:c,onVisibleRangeChange:h}),N=p.start&&p.end?`Selected: ${a(p.start)} - ${a(p.end)} (${z().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return x.jsxs(T.Stack,{sx:{width:"100%"},children:[u&&x.jsxs(T.Stack,{spacing:1,sx:{mb:3},...v.header,children:[x.jsx(T.Typography,{variant:"h5",...v.title,children:f}),x.jsx(T.Typography,{variant:"body2",...v.instructions,children:N})]}),o&&x.jsx(T.Stack,{direction:"row",...v.monthLabelsContainer,children:Array.from({length:l},(B,Y)=>{const ee=y+S/(l-1)*Y,ve=Rd(S);return x.jsx(T.Typography,{variant:"caption",...v.monthLabel,children:ve(ee)},Y)})}),x.jsxs(T.Box,{...v.timeline,sx:{...v.timeline.sx,height:`${r}px`},children:[x.jsx(T.Box,{sx:{position:"absolute",top:0,left:0,right:0,height:"100%"},children:e.map((B,Y)=>{const ee=q(B.timestamp);return x.jsx(T.Box,{onMouseEnter:()=>w(B),onMouseLeave:()=>w(null),"aria-label":`Event: ${B.eventName} at ${a(B.timestamp)}`,...v.event,sx:{...v.event.sx,left:`${ee}%`,transform:(b==null?void 0:b.timestamp)===B.timestamp?"scaleX(2)":"scaleX(1)"}},`${B.timestamp}-${Y}`)})}),p.start&&p.end&&(!d||_)&&x.jsx(T.Box,{...v.selection,sx:{...v.selection.sx,left:`${q(p.start)}%`,width:`${q(p.end)-q(p.start)}%`}}),x.jsx(T.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":u?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:C,onMouseMove:A,onMouseUp:E,onMouseLeave:E,onWheel:P,onDoubleClick:L}),!u&&x.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:N}),b&&x.jsxs(T.Box,{role:"tooltip","aria-live":"polite",...v.tooltip,sx:{...v.tooltip.sx,left:`${q(b.timestamp)}%`,transform:"translateX(-50%)"},children:[x.jsx(T.Typography,{variant:"body2",...v.tooltipEventName,children:b.eventName}),x.jsx(T.Typography,{variant:"caption",...v.tooltipDate,children:a(b.timestamp)})]})]})]})},Od="#8b5cf6",Ed=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Dd=({events:e,title:t="Events in Selected Range",maxHeight:n="200px",formatDate:r=Ed,primaryColor:a=Od})=>e.length===0?null:x.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[x.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),x.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:n,overflowY:"auto"},children:e.map((i,o)=>x.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[x.jsx("div",{style:{fontWeight:500,color:a},children:i.eventName}),x.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:r(i.timestamp)})]},`${i.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Te;exports.CAMPAIGN_NOT_APPLICABLE=Re;exports.CAMPAIGN_NO_LST=we;exports.DEFAULT_CHART_COLORS=le;exports.DEFAULT_CHART_CONFIG=K;exports.MODERNE_VULNERABILITY_COLORS=ge;exports.ParliamentChart=Sd;exports.TimelineChart=Md;exports.TimelineSelectedEvents=Dd;exports.calculateDataSeries=xs;exports.calculateOptimalArcAngle=_s;exports.calculateOptimalSeatSize=Ss;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @moderneinc/react-charts
3
+ * Chart visualization library for React
4
+ */
5
+ export { ParliamentChart } from './components/parliament-chart/parliament-chart.component';
6
+ export { CAMPAIGN_DATA_MISSING, CAMPAIGN_NO_LST, CAMPAIGN_NOT_APPLICABLE, DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS } from './components/parliament-chart/parliament-chart.constants';
7
+ export type { ChartConfig, HoveredData, ParliamentChartProps, ProcessedDataItem } from './components/parliament-chart/parliament-chart.types';
8
+ export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
9
+ export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
10
+ export { TimelineChart } from './components/timeline-chart/timeline-chart.component';
11
+ export type { TimelineChartProps, TimelineEvent, TimelineSelectedEventsProps, TimelineSelection } from './components/timeline-chart/timeline-chart.types';
12
+ export { TimelineSelectedEvents } from './components/timeline-chart/timeline-selected-events.component';
13
+ export type { ParliamentChartColors, ParliamentChartTheme } from './theme/default-colors';
14
+ export { DEFAULT_CHART_COLORS } from './theme/default-colors';