@patternfly-java/charts 0.0.9 → 0.0.10
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/charts.js +3 -3
- package/dist/charts.js.map +1 -1
- package/package.json +1 -1
- package/src/components/pfj-chart-bullet.js +3 -0
- package/src/react-wrapper.js +0 -13
package/dist/charts.js
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
`;constructor(){super(),this._root=null,this._container=null,this._observer=null,this._component=null,this._categories=void 0,this._data=void 0,this._height=void 0,this._labels=void 0,this.
|
|
26
|
+
`;constructor(){super(),this._root=null,this._container=null,this._observer=null,this._component=null,this._categories=void 0,this._data=void 0,this._height=void 0,this._labels=void 0,this._legendData=void 0,this._legendOrientation=void 0,this._legendPosition=void 0,this._padding=void 0,this._subTitle=void 0,this._subTitlePosition=void 0,this._themeColor=void 0,this._title=void 0,this._width=void 0}createRenderRoot(){return super.createRenderRoot()}render(){return K`
|
|
27
27
|
<div class="container"></div>
|
|
28
|
-
<slot style="display: none;"></slot>`}getReactComponent(){throw Error("getReactComponent() must be implemented by subclass")}_renderReact(){if(!this._root)return;let e=ey(this),t=this._commonProps(),[n,a={}]=this.getReactComponent(),i={...e,...t,...a};for(let e of Object.keys(i))ev.has(e)&&delete i[e];let o=this._getReactChildren();this._root.render(r(eh).createElement(n,i,...o))}_getReactChildren(){let e=this.renderRoot.querySelector("slot");if(!e)return[];let t=e.assignedElements(),n=[];for(let e of t)if(e instanceof ex){let t=ey(e),a=e._commonProps(),[i,o={}]=e.getReactComponent(),l={...t,...a,...o};for(let e of Object.keys(l))ev.has(e)&&delete l[e];n.push(r(eh).createElement(i,l))}return n}firstUpdated(e){if(this._container=this.renderRoot.querySelector(".container"),this._isSlottedChild())this._observer=new MutationObserver(()=>{let e=this.parentElement;e&&e instanceof ex&&e._renderReact&&e._renderReact()}),this._observer.observe(this,{attributes:!0});else{this._root=(0,eg.createRoot)(this._container),this._observer=new MutationObserver(()=>this._renderReact()),this._observer.observe(this,{attributes:!0,childList:!0,subtree:!0});let e=this.renderRoot.querySelector("slot");e&&e.addEventListener("slotchange",()=>this._renderReact()),this._renderReact()}}disconnectedCallback(){this._observer&&(this._observer.disconnect(),this._observer=null),this._root&&(this._root.unmount(),this._root=null),super.disconnectedCallback()}_isSlottedChild(){let e=this.parentElement;return e&&e instanceof ex}_notifyChange(){let e=this.parentElement;e&&e instanceof ex&&e._renderReact?e._renderReact():this._renderReact&&this._renderReact()}get categories(){return this._categories}set categories(e){this._categories=e,this._notifyChange()}get data(){return this._data}set data(e){this._data=e,this._notifyChange()}get height(){return this._height}set height(e){this._height=e,this._notifyChange()}get labels(){return this._labels}set labels(e){this._labels=e,this._notifyChange()}get legendAllowWrap(){return this._legendAllowWrap}set legendAllowWrap(e){this._legendAllowWrap=e,this._notifyChange()}get legendData(){return this._legendData}set legendData(e){this._legendData=e,this._notifyChange()}get legendOrientation(){return this._legendOrientation}set legendOrientation(e){this._legendOrientation=e,this._notifyChange()}get legendPosition(){return this._legendPosition}set legendPosition(e){this._legendPosition=e,this._notifyChange()}get padding(){return this._padding}set padding(e){this._padding=e,this._notifyChange()}get subTitle(){return this._subTitle}set subTitle(e){this._subTitle=e,this._notifyChange()}get subTitlePosition(){return this._subTitlePosition}set subTitlePosition(e){this._subTitlePosition=e,this._notifyChange()}get themeColor(){return this._themeColor}set themeColor(e){this._themeColor=e,this._notifyChange()}get title(){return this._title}set title(e){this._title=e,this._notifyChange()}get width(){return this._width}set width(e){this._width=e,this._notifyChange()}_commonProps(){let e={};return this._categories&&"string"!=typeof this._categories?e.categories=this._categories:this.getAttribute("categories")&&(e.categories=em("categories",this.getAttribute("categories"))),this._data&&"string"!=typeof this._data?e.data=this._data:this.getAttribute("data")&&(e.data=em("data",this.getAttribute("data"))),void 0!==this._height&&(e.height=Number(this._height)),void 0!==this._labels&&(e.labels=this._labels),void 0!==this._legendAllowWrap&&(e.legendAllowWrap=this._legendAllowWrap),this._legendData&&"string"!=typeof this._legendData?e.legendData=this._legendData:this.getAttribute("legend-data")&&(e.legendData=em("legend-data",this.getAttribute("legend-data"))),void 0!==this._legendOrientation&&(e.legendOrientation=this._legendOrientation),void 0!==this._legendPosition&&(e.legendPosition=this._legendPosition),void 0!==this._padding&&(e.padding=this._padding),void 0!==this._subTitle&&(e.subTitle=this._subTitle),void 0!==this._subTitlePosition&&(e.subTitlePosition=this._subTitlePosition),void 0!==this._themeColor&&(e.themeColor=this._themeColor),void 0!==this._title&&(e.title=this._title),void 0!==this._width&&(e.width=Number(this._width)),e}}"use strict";"use strict";"use strict";var e_={};e_=o("2kzMM");var eh=o("8NFma"),eO={},ew={};ew=o("cdwfJ");var eS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ek={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ej={};function eM(e){return ew.isMemo(e)?eP:ej[e.$$typeof]||eS}ej[ew.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ej[ew.Memo]=eP;var eC=Object.defineProperty,eE=Object.getOwnPropertyNames,eA=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,eD=Object.getPrototypeOf,eL=Object.prototype;eO=function e(t,n,r){if("string"!=typeof n){if(eL){var a=eD(n);a&&a!==eL&&e(t,a,r)}var i=eE(n);eA&&(i=i.concat(eA(n)));for(var o=eM(t),l=eM(n),s=0;s<i.length;++s){var u=i[s];if(!ek[u]&&!(r&&r[u])&&!(l&&l[u])&&!(o&&o[u])){var c=eT(n,u);try{eC(t,u,c)}catch(e){}}}}return t};var eh=o("8NFma"),e$={},eN={},ez={};ez=function(e){return e};var eF={},eR={};eR=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eI=Math.max;eF=function(e,t,n){return t=eI(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=eI(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),eR(e,this,l)}};var eW={},eU={},eq={};eq=function(e){return function(){return e}};var eB={},eV={},eH={},eY={},eG={},eK={},eX=o("eeOBM");eK=eX.Symbol;var eQ={},eJ=Object.prototype,eZ=eJ.hasOwnProperty,e0=eJ.toString,e5=eK?eK.toStringTag:void 0;eQ=function(e){var t=eZ.call(e,e5),n=e[e5];try{e[e5]=void 0;var r=!0}catch(e){}var a=e0.call(e);return r&&(t?e[e5]=n:delete e[e5]),a};var e1={},e2=Object.prototype.toString;e1=function(e){return e2.call(e)};var e6=eK?eK.toStringTag:void 0;eG=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":e6&&e6 in Object(e)?eQ(e):e1(e)};var e3={};e3=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},eY=function(e){if(!e3(e))return!1;var t=eG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var e7={},e4={},eX=o("eeOBM");e4=eX["__core-js_shared__"];var e8=(t=/[^.]+$/.exec(e4&&e4.keys&&e4.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";e7=function(e){return!!e8&&e8 in e};var e9={},te=Function.prototype.toString;e9=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var tt=/^\[object .+?Constructor\]$/,tn=Object.prototype,tr=Function.prototype.toString,ta=tn.hasOwnProperty,ti=RegExp("^"+tr.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");eH=function(e){return!(!e3(e)||e7(e))&&(eY(e)?ti:tt).test(e9(e))};var to={};to=function(e,t){return null==e?void 0:e[t]},eV=function(e,t){var n=to(e,t);return eH(n)?n:void 0};var tl=Date.now;eW=function(e){var t=0,n=0;return function(){var r=tl(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(eU=(eB=function(){try{var e=eV(Object,"defineProperty");return e({},"",{}),e}catch(e){}}())?function(e,t){return eB(e,"toString",{configurable:!0,enumerable:!1,value:eq(t),writable:!0})}:ez),eN=function(e,t){return eW(eF(e,t,ez),e+"")};var ts={};ts=function(e,t){return e===t||e!=e&&t!=t};var tu={},tc={},td={};td=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},tc=function(e){return null!=e&&td(e.length)&&!eY(e)};var tf={},tp=/^(?:0|[1-9]\d*)$/;tf=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&tp.test(e))&&e>-1&&e%1==0&&e<t},tu=function(e,t,n){if(!e3(n))return!1;var r=typeof t;return("number"==r?!!(tc(n)&&tf(t,n.length)):"string"==r&&t in n)&&ts(n[t],e)};var th={},tg={},tm={};tm=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var ty={},tb={},tv={};tv=function(e){return null!=e&&"object"==typeof e},tb=function(e){return tv(e)&&"[object Arguments]"==eG(e)};var tx=Object.prototype,t_=tx.hasOwnProperty,tO=tx.propertyIsEnumerable;ty=tb(function(){return arguments}())?tb:function(e){return tv(e)&&t_.call(e,"callee")&&!tO.call(e,"callee")};var tw={};tw=Array.isArray;var tS=o("9e2tS"),tk={},tP={},tj={};tj["[object Float32Array]"]=tj["[object Float64Array]"]=tj["[object Int8Array]"]=tj["[object Int16Array]"]=tj["[object Int32Array]"]=tj["[object Uint8Array]"]=tj["[object Uint8ClampedArray]"]=tj["[object Uint16Array]"]=tj["[object Uint32Array]"]=!0,tj["[object Arguments]"]=tj["[object Array]"]=tj["[object ArrayBuffer]"]=tj["[object Boolean]"]=tj["[object DataView]"]=tj["[object Date]"]=tj["[object Error]"]=tj["[object Function]"]=tj["[object Map]"]=tj["[object Number]"]=tj["[object Object]"]=tj["[object RegExp]"]=tj["[object Set]"]=tj["[object String]"]=tj["[object WeakMap]"]=!1,tP=function(e){return tv(e)&&td(e.length)&&!!tj[eG(e)]};var tM={};tM=function(e){return function(t){return e(t)}};var tC=o("fwpsA"),tE=tC&&tC.isTypedArray;tk=tE?tM(tE):tP;var tA=Object.prototype.hasOwnProperty;tg=function(e,t){var n=tw(e),r=!n&&ty(e),a=!n&&!r&&tS(e),i=!n&&!r&&!a&&tk(e),o=n||r||a||i,l=o?tm(e.length,String):[],s=l.length;for(var u in e)(t||tA.call(e,u))&&!(o&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tf(u,s)))&&l.push(u);return l};var tT={},tD={},tL=Object.prototype;tD=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tL)};var t$={};t$=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var tN=Object.prototype.hasOwnProperty;tT=function(e){if(!e3(e))return t$(e);var t=tD(e),n=[];for(var r in e)"constructor"==r&&(t||!tN.call(e,r))||n.push(r);return n},th=function(e){return tc(e)?tg(e,!0):tT(e)};var tz=Object.prototype,tF=tz.hasOwnProperty;e$=eN(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&tu(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],o=th(i),l=-1,s=o.length;++l<s;){var u=o[l],c=e[u];(void 0===c||ts(c,tz[u])&&!tF.call(e,u))&&(e[u]=i[u])}return e});var tR={},tI={},tW={},tU={};tW=(tU=function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);var tq=Object.prototype.hasOwnProperty;tI=function(e){if(!tD(e))return tW(e);var t=[];for(var n in Object(e))tq.call(e,n)&&"constructor"!=n&&t.push(n);return t};var tB={},tV={},eX=o("eeOBM");tV=eV(eX,"DataView");var tH={},eX=o("eeOBM");tH=eV(eX,"Map");var tY={},eX=o("eeOBM");tY=eV(eX,"Promise");var tG={},eX=o("eeOBM");tG=eV(eX,"Set");var tK={},eX=o("eeOBM");tK=eV(eX,"WeakMap");var tX="[object Map]",tQ="[object Promise]",tJ="[object Set]",tZ="[object WeakMap]",t0="[object DataView]",t5=e9(tV),t1=e9(tH),t2=e9(tY),t6=e9(tG),t3=e9(tK),t7=eG;(tV&&t7(new tV(new ArrayBuffer(1)))!=t0||tH&&t7(new tH)!=tX||tY&&t7(tY.resolve())!=tQ||tG&&t7(new tG)!=tJ||tK&&t7(new tK)!=tZ)&&(t7=function(e){var t=eG(e),n="[object Object]"==t?e.constructor:void 0,r=n?e9(n):"";if(r)switch(r){case t5:return t0;case t1:return tX;case t2:return tQ;case t6:return tJ;case t3:return tZ}return t}),tB=t7;var tS=o("9e2tS"),t4=Object.prototype.hasOwnProperty;tR=function(e){if(null==e)return!0;if(tc(e)&&(tw(e)||"string"==typeof e||"function"==typeof e.splice||tS(e)||tk(e)||ty(e)))return!e.length;var t=tB(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(tD(e))return!tI(e).length;for(var n in e)if(t4.call(e,n))return!1;return!0};var eh=o("8NFma"),t8={};e(t8,"degreesToRadians",()=>rc),e(t8,"getRadius",()=>rf),e(t8,"invert",()=>re),e(t8,"omit",()=>rt),e(t8,"getPoint",()=>rn),e(t8,"scalePoint",()=>rr),e(t8,"getPadding",()=>ra),e(t8,"isTooltip",()=>ri),e(t8,"getDefaultStyles",()=>ro),e(t8,"getStyles",()=>rl),e(t8,"evaluateProp",()=>rs),e(t8,"isFunction",()=>rm),e(t8,"evaluateStyle",()=>ru),e(t8,"radiansToDegrees",()=>rd),e(t8,"getPolarOrigin",()=>rp),e(t8,"getRange",()=>rh),e(t8,"isNil",()=>rg),e(t8,"createAccessor",()=>ry),e(t8,"modifyProps",()=>rb),e(t8,"isHorizontal",()=>rw),e(t8,"getCurrentAxis",()=>rv),e(t8,"mapValues",()=>rx),e(t8,"range",()=>r_),e(t8,"reduceChildren",()=>rO);var eh=o("8NFma"),t9={},ne={};ne=function(e){return function(t){return null==t?void 0:t[e]}};var nt={},nn={},nr={},na={},ni={};ni=function(e){return"symbol"==typeof e||tv(e)&&"[object Symbol]"==eG(e)};var no=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/;na=function(e,t){if(tw(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||ni(e))||nl.test(e)||!no.test(e)||null!=t&&e in Object(t)};var ns={},nu={},nc={},nd={},nf={},np={},nh={};nh=eV(Object,"create"),np=function(){this.__data__=nh?nh(null):{},this.size=0};var ng={};ng=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var nm={},ny=Object.prototype.hasOwnProperty;nm=function(e){var t=this.__data__;if(nh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ny.call(t,e)?t[e]:void 0};var nb={},nv=Object.prototype.hasOwnProperty;nb=function(e){var t=this.__data__;return nh?void 0!==t[e]:nv.call(t,e)};var nx={};function n_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nx=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nh&&void 0===t?"__lodash_hash_undefined__":t,this},n_.prototype.clear=np,n_.prototype.delete=ng,n_.prototype.get=nm,n_.prototype.has=nb,n_.prototype.set=nx,nf=n_;var nO={},nw={};nw=function(){this.__data__=[],this.size=0};var nS={},nk={};nk=function(e,t){for(var n=e.length;n--;)if(ts(e[n][0],t))return n;return -1};var nP=Array.prototype.splice;nS=function(e){var t=this.__data__,n=nk(t,e);return!(n<0)&&(n==t.length-1?t.pop():nP.call(t,n,1),--this.size,!0)};var nj={};nj=function(e){var t=this.__data__,n=nk(t,e);return n<0?void 0:t[n][1]};var nM={};nM=function(e){return nk(this.__data__,e)>-1};var nC={};function nE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nC=function(e,t){var n=this.__data__,r=nk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},nE.prototype.clear=nw,nE.prototype.delete=nS,nE.prototype.get=nj,nE.prototype.has=nM,nE.prototype.set=nC,nO=nE,nd=function(){this.size=0,this.__data__={hash:new nf,map:new(tH||nO),string:new nf}};var nA={},nT={},nD={};nD=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},nT=function(e,t){var n=e.__data__;return nD(t)?n["string"==typeof t?"string":"hash"]:n.map},nA=function(e){var t=nT(this,e).delete(e);return this.size-=!!t,t};var nL={};nL=function(e){return nT(this,e).get(e)};var n$={};n$=function(e){return nT(this,e).has(e)};var nN={};function nz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nF(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(nF.Cache||nc),n}nN=function(e,t){var n=nT(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},nz.prototype.clear=nd,nz.prototype.delete=nA,nz.prototype.get=nL,nz.prototype.has=n$,nz.prototype.set=nN,nF.Cache=nc=nz,nu=nF;var nR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nI=/\\(\\)?/g;ns=function(e){var t=nu(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nR,function(e,n,r,a){t.push(r?a.replace(nI,"$1"):n||e)}),t});var nW={},nU={},nq={};nq=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};var nB=1/0,nV=eK?eK.prototype:void 0,nH=nV?nV.toString:void 0;nU=function e(t){if("string"==typeof t)return t;if(tw(t))return nq(t,e)+"";if(ni(t))return nH?nH.call(t):"";var n=t+"";return"0"==n&&1/t==-nB?"-0":n},nW=function(e){return null==e?"":nU(e)},nr=function(e,t){return tw(e)?e:na(e,t)?[e]:ns(nW(e))};var nY={},nG=1/0;nY=function(e){if("string"==typeof e||ni(e))return e;var t=e+"";return"0"==t&&1/e==-nG?"-0":t},nn=function(e,t){t=nr(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[nY(t[n++])];return n&&n==r?e:void 0},nt=function(e){return function(t){return nn(t,e)}},t9=function(e){return na(e)?ne(nY(e)):nt(e)};var nK={},nX={},nQ={},nJ={},nZ={},n0={};n0=function(e,t,n){"__proto__"==t&&eB?eB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var n5=Object.prototype.hasOwnProperty;nZ=function(e,t,n){var r=e[t];n5.call(e,t)&&ts(r,n)&&(void 0!==n||t in e)||n0(e,t,n)},nJ=function(e,t,n,r){if(!e3(e))return e;t=nr(t,e);for(var a=-1,i=t.length,o=i-1,l=e;null!=l&&++a<i;){var s=nY(t[a]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)break;if(a!=o){var c=l[s];void 0===(u=r?r(c,s,l):void 0)&&(u=e3(c)?c:tf(t[a+1])?[]:{})}nZ(l,s,u),l=l[s]}return e},nQ=function(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],l=nn(e,o);n(l,o)&&nJ(i,nr(o,e),l)}return i};var n1={},n2={};n2=function(e,t){return null!=e&&t in Object(e)};var n6={};n6=function(e,t,n){t=nr(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=nY(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&td(a)&&tf(o,a)&&(tw(e)||ty(e))},n1=function(e,t){return null!=e&&n6(e,t,n2)},nX=function(e,t){return nQ(e,t,function(t,n){return n1(e,n)})};var n3={},n7={},n4={};n4=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e};var n8={},n9=eK?eK.isConcatSpreadable:void 0;function re(e){return Object.entries(e).reduce((e,t)=>(e[t[1]]=t[0],e),{})}function rt(e,t){void 0===t&&(t=[]);let n={};for(let r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function rn(e){let{_x:t,_x1:n,_x0:a,_voronoiX:i,_y:o,_y1:l,_y0:s,_voronoiY:u}=e;return r(e$)({},{x:i??n??t,x0:a??t,y:u??l??o,y0:s??o},e)}function rr(e,t){let{scale:n,polar:r,horizontal:a}=e,i=rn(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.y0);return{x:r?u*Math.cos(l)+o.x:l,x0:r?c*Math.cos(s)+o.x:s,y:r?-u*Math.sin(l)+o.y:u,y0:r?-c*Math.sin(s)+o.x:c}}function ra(e){let t="number"==typeof e?e:0,n="object"==typeof e?e:{};return{top:n.top||t,bottom:n.bottom||t,left:n.left||t,right:n.right||t}}function ri(e){return"tooltip"===(e&&e.type&&e.type.role)}function ro(e,t){let{theme:n={},labelComponent:a}=e,i=n[t]&&n[t].style||{};if(!ri(a))return i;let o=n.tooltip&&n.tooltip.style||{},l=r(e$)({},o,i.labels);return r(e$)({},{labels:l},i)}function rl(e,t){let n="100%",a="100%";if(!e)return r(e$)({parent:{height:a,width:n}},t);let{data:i,labels:o,parent:l}=e,s=t&&t.parent||{},u=t&&t.labels||{},c=t&&t.data||{};return{parent:r(e$)({},l,s,{width:n,height:a}),labels:r(e$)({},o,u),data:r(e$)({},i,c)}}function rs(e,t){return rm(e)?e(t):e}function ru(e,t){return t.disableInlineStyles?{}:e&&Object.keys(e).some(t=>rm(e[t]))?Object.keys(e).reduce((n,r)=>(n[r]=rs(e[r],t),n),{}):e}function rc(e){return"number"==typeof e?Math.PI/180*e:e}function rd(e){return"number"==typeof e?e/(Math.PI/180):e}function rf(e){let{width:t,height:n,padding:r}=e,{left:a,right:i,top:o,bottom:l}=r;return Math.min(t-a-i,n-o-l)/2}function rp(e){let{width:t,height:n}=e,{top:r,bottom:a,left:i,right:o}=ra(e.padding),l=Math.min(t-i-o,n-r-a)/2,s=t/2+i-o,u=n/2+r-a;return{x:s+l>t?l+i-o:s,y:u+l>n?l+r-a:u}}function rh(e,t){var n,r;if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;return e.polar?"x"===(r={axis:t,innerRadius:e.innerRadius,startAngle:e.startAngle,endAngle:e.endAngle,height:e.height,width:e.width,padding:ra(e.padding)}).axis?[rc(r.startAngle||0),rc(r.endAngle||360)]:[r.innerRadius||0,rf({height:r.height,width:r.width,padding:r.padding})]:"x"!==(n={axis:t,height:e.height,width:e.width,padding:ra(e.padding)}).axis?[n.height-n.padding.bottom,n.padding.top]:[n.padding.left,n.width-n.padding.right]}function rg(e){return null==e}function rm(e){return"function"==typeof e}function ry(e){return rm(e)?e:null==e?e=>e:r(t9)(e)}function rb(e,t,n){let a=rt(e.theme&&e.theme[n]?e.theme[n]:{},["style"]),i=rw(e);return r(e$)(void 0===i?{}:{horizontal:i},e,a,t)}function rv(e,t){return t?"x"===e?"y":"x":e}function rx(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function r_(e,t,n){let r=t?e:0,a=t||e;a||(a=0);let i=a-r,o=Math.abs(i),l=i/o||1,s=n||1;return Array.from(Array(Math.max(Math.ceil(o/s),0)),(e,t)=>r+t*l*s)}function rO(e,t,n,a,i){void 0===n&&(n={}),void 0===a&&(a=[]),void 0===i&&(i=(e,t)=>e.concat(t));let o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],l=(e,s,u)=>e.reduce((e,a,c)=>{let d=e,f=a.type&&a.type.role,p=a.props.name||`${f}-${s[c]}`;if(a.props&&a.props.children){let e=Object.assign({},a.props,r(nK)(n,o)),t=a.type&&"stack"===a.type.role&&rm(a.type.getChildren)?a.type.getChildren(e):r(eh).Children.toArray(a.props.children).map(t=>{let n=Object.assign({},t.props,r(nK)(e,o));return r(eh).cloneElement(t,n)}),s=t.map((e,t)=>`${p}-${t}`),u=l(t,s,a);d=i(d,u)}else{let e=t(a,p,u);e&&(d=i(d,e))}return d},a),s=e.filter(eh.isValidElement),u=s.map((e,t)=>t);return l(s,u)}function rw(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;let t=e=>e.reduce((e,n)=>{let a=n.props||{};return e||a.horizontal||!a.children?e||a.horizontal:t(r(eh).Children.toArray(a.children))},!1);return t(r(eh).Children.toArray(e.children))}n8=function(e){return tw(e)||ty(e)||!!(n9&&e&&e[n9])},n7=function e(t,n,r,a,i){var o=-1,l=t.length;for(r||(r=n8),i||(i=[]);++o<l;){var s=t[o];n>0&&r(s)?n>1?e(s,n-1,r,a,i):n4(i,s):a||(i[i.length]=s)}return i},n3=function(e){return(null==e?0:e.length)?n7(e,1):[]},nK=function(e){return eW(eF(e,void 0,n3),e+"")}(function(e,t){return null==e?{}:nX(e,t)});var eh=o("8NFma");function rS(){return(rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let rk=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("rect",rS({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("rect",rS({},s,{ref:t}))});var eh=o("8NFma");function rP(){return(rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let rj=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("circle",rP({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("circle",rP({},s,{ref:t}))}),rM={circleComponent:r(eh).createElement(rj,null),rectComponent:r(eh).createElement(rk,null),role:"presentation",shapeRendering:"auto"};var rC={};function rE(e){let t=r(eh).useRef();return r(eh).useEffect(()=>{t.current=e}),t.current}e(rC,"usePreviousProps",()=>rE),e(rC,"useAnimationState",()=>rK);var eh=(o("8NFma"),o("8NFma")),rA={};function rT(e){return Array.isArray(e)&&e.length>0}function rD(e){return Array.isArray(e)&&e.some(e=>"string"==typeof e)}function rL(e){return Array.isArray(e)&&e.some(e=>e instanceof Date)}function r$(e){return Array.isArray(e)&&e.some(e=>"number"==typeof e)}function rN(e){return rT(e)&&e.every(e=>"string"==typeof e)}function rz(e,t){return e&&t?e.filter(e=>!t.includes(e)):[]}function rF(e){return rT(e)&&e.every(Array.isArray)}function rR(e){return e.filter(e=>void 0!==e)}function rI(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=e.concat(n);return rL(a)?new Date(Math.max(...a)):Math.max(...a)}function rW(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=e.concat(n);return rL(a)?new Date(Math.min(...a)):Math.min(...a)}e(rA,"containsStrings",()=>rD),e(rA,"containsDates",()=>rL),e(rA,"containsNumbers",()=>r$),e(rA,"containsOnlyStrings",()=>rN),e(rA,"difference",()=>rz),e(rA,"isArrayOfArrays",()=>rF),e(rA,"removeUndefined",()=>rR),e(rA,"getMaxValue",()=>rI),e(rA,"getMinValue",()=>rW);var eh=o("8NFma");function rU(e,t){return(e.key||t).toString()}function rq(e){return e.reduce((e,t,n)=>(e[rU(t,n)]=t,e),{})}function rB(e,t){let n=!1,r=Object.keys(e).reduce((e,r)=>(r in t||(n=!0,e[r]=!0),e),{});return n&&r}function rV(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function rH(e,t){let n=!1,a=!1,i=(e,t)=>e.map((o,l)=>o&&o.props&&o.props.children&&t[l]?i(r(eh).Children.toArray(e[l].props.children),r(eh).Children.toArray(t[l].props.children)):((e,t)=>{var r,i;let o,l;if(!t||e.type!==t.type)return{};let{entering:s,exiting:u}=(r=rV(e),i=rV(t),o=r&&rq(r),l=i&&rq(i),{entering:o&&rB(l,o),exiting:l&&rB(o,l)});return n=n||!!u,a=a||!!s,{entering:s||!1,exiting:u||!1}})(o,t[l])),o=i(r(eh).Children.toArray(e),r(eh).Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:a,childrenTransitions:o,nodesShouldEnter:!1}}function rY(e,t,n){let a=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,l=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,u=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},d=function(e,t){let n=e.props.animate;if(!e.type)return{};let r=e.props&&e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;if(r){let e=n[t]&&n[t].duration;return void 0!==e?e:r[t]&&r[t].duration}return{}};return function(f,p){var h;let g=rV(f)||[],m=r(e$)({},e.animate,f.props.animate),y=f.props.polar&&f.type.defaultPolarTransitions||f.type.defaultTransitions;m.onExit=r(e$)({},m.onExit,y&&y.onExit),m.onEnter=r(e$)({},m.onEnter,y&&y.onEnter),m.onLoad=r(e$)({},m.onLoad,y&&y.onLoad);let b=u[p]||u[0];if(s){if(a){let e=b&&b.exiting,t=void 0!==c.exit?c.exit:d(f,"onExit");return function(e,t,n,a,i){let o=e&&e.onExit,l=Object.assign({},e,o),s=n;if(a){e.onEnd=i;let t=e.onExit&&e.onExit.before?e.onExit.before:r(ez);s=n.map((e,r)=>a[(e.key||r).toString()]?Object.assign({},e,t(e,r,n)):e)}return{animate:l,data:s}}(Object.assign({},m,e?{duration:t}:{delay:t}),0,g,e,()=>{n({nodesWillExit:!1})})}else if(i){let e=b&&b.entering,t=void 0!==c.enter?c.enter:d(f,"onEnter"),a=void 0!==c.move?c.move:f.props.animate&&f.props.animate.duration;return h=Object.assign({},m,{duration:o&&e?t:a}),o?function(e,t,n,a){let i=e&&e.onEnter,o=Object.assign({},e,i),l=t;if(n){o.onEnd=a;let e=o.onEnter&&o.onEnter.after?o.onEnter.after:r(ez);l=t.map((r,a)=>n[rU(r,a)]?Object.assign({},r,e(r,a,t)):r)}return{animate:o,data:l}}(h,g,e,()=>{n({nodesWillEnter:!1})}):function(e,t,n,a,i){let o=e,l=n;if(a){o=Object.assign({},e,{onEnd:i});let t=e.onEnter&&e.onEnter.before?e.onEnter.before:r(ez);l=n.map((e,r)=>a[(e.key||r).toString()]?Object.assign({},e,t(e,r,n)):e)}return{animate:o,data:l}}(h,0,g,e,()=>{n({nodesShouldEnter:!0})})}else if(!t&&m&&m.onExit){let e;return e=m.onEnter&&m.onEnter.after?m.onEnter.after:r(ez),{data:g.map((t,n)=>Object.assign({},t,e(t,n,g)))}}}else{let e=void 0!==c.load?c.load:d(f,"onLoad");var v=g,x=Object.assign({},m,{duration:e});if(l)return function(e,t,n){let a=Object.assign({},e,{onEnd:n});if(a&&a.onLoad&&!a.onLoad.duration)return{animate:e,data:t};let i=e.onLoad&&e.onLoad.after?e.onLoad.after:r(ez);return{animate:a,data:t.map((e,n)=>Object.assign({},e,i(e,n,t)))}}(x,v,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})});let t=Object.assign({},x,{onEnd:()=>{n({nodesDoneLoad:!0})}});if(t&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:v};let a=t.onLoad&&t.onLoad.before?t.onLoad.before:r(ez);return{animate:t,data:v.map((e,t)=>Object.assign({},e,a(e,t,v))),clipWidth:0}}return{animate:m,data:g}}}let rG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},rK=function(e){void 0===e&&(e=rG);let[t,n]=r(eh).useState(e),a=r(eh).useCallback(e=>{n(t=>({...t,...e}))},[n]),i=r(eh).useCallback((e,n,i)=>{let o;if(!e?.animate)return n.props.animate;let l=e.animate&&e.animate.getTransitions,s=(o=rF(o=t&&t.childrenTransitions)?o[i]:o,r(e$)({childrenTransitions:o},t)),u=e.animate&&e.animate.parentState||s;if(!l){let t=rY(e,s,e=>a(e));l=e=>t(e,i)}return r(e$)({getTransitions:l,parentState:u},e.animate,n.props.animate)},[t,a]),o=r(eh).useCallback((e,t)=>{if(e?.animate)if(e.animate.parentState){let n=e.animate.parentState.nodesWillExit?e:null;a(r(e$)({oldProps:n,nextProps:t},e.animate.parentState))}else{let n=r(eh).Children.toArray(e.children),i=r(eh).Children.toArray(t.children),o=e=>{let t=e=>e.type&&e.type.continuous;return Array.isArray(e)?e.some(t):t(e)},l=!e.polar&&n.some(e=>o(e)||e?.props?.children&&o(e.props.children)),{nodesWillExit:s,nodesWillEnter:u,childrenTransitions:c,nodesShouldEnter:d}=rH(n,i);a({nodesWillExit:s,nodesWillEnter:u,nodesShouldEnter:d,childrenTransitions:rF(c)?c[0]:c,oldProps:s?e:void 0,nextProps:t,continuous:l})}},[a]),l=r(eh).useCallback(e=>t&&t.nodesWillExit&&t.oldProps||e,[t]);return{state:t,setState:a,getAnimationProps:i,setAnimationState:o,getProps:l}};var rX={};e(rX,"assert",()=>rZ),e(rX,"getSafeUserProps",()=>r0),e(rX,"withSafeUserProps",()=>r5);var eh=o("8NFma");let rQ=["data-","aria-"],rJ=[];function rZ(e,t){if(null==e)throw Error(t)}let r0=e=>Object.fromEntries(Object.entries({...e}).filter(e=>{let t,[n]=e;return t=!1,rQ.forEach(e=>{RegExp(`\\b(${e})(\\w|-)+`,"g").test(n)&&(t=!0)}),!!(t||rJ.includes(n))}).map(t=>{let[n,r]=t;return[n,rs(r,e)]})),r5=(e,t)=>eh.cloneElement(e,r0(t));var eh=o("8NFma"),r1={},r2=0;r1=function(e){var t=++r2;return nW(e)+t};var eh=o("8NFma");function r6(){return(r6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let r3=r(eh).forwardRef((e,t)=>r(eh).createElement("svg",r6({ref:t},e)));var eh=(o("8NFma"),o("8NFma"));let r7=r(eh).createContext(void 0);r7.displayName="PortalContext";let r4=()=>r(eh).useContext(r7),r8=e=>{let{children:t}=e,[n,a]=r(eh).useState(new Map),i=r(eh).useCallback((e,t)=>{a(n=>{let r=new Map(n);return r.set(e,t),r})},[a]),o=r(eh).useCallback(e=>{a(t=>{let n=new Map(t);return n.delete(e),n})},[a]),l=r(eh).useMemo(()=>({addChild:i,removeChild:o,children:n}),[i,o,n]);return r(eh).createElement(r7.Provider,{value:l},t)},r9=e=>{let{as:t,...n}=e,a=r4();if(!a)return null;let i=Array.from(a.children.values());return r(eh).cloneElement(t,n,i)};function ae(){return(ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let at={className:"VictoryContainer",portalComponent:r(eh).createElement(r3,null),portalZIndex:99,responsive:!0,role:"img"},an=e=>{var t;let{role:n,title:a,desc:i,children:o,className:l,portalZIndex:s,portalComponent:u,width:c,height:d,style:f,tabIndex:p,responsive:h,events:g,ouiaId:m,ouiaSafe:y,ouiaType:b,dimensions:v,ariaDescribedBy:x,ariaLabelledBy:_,viewBox:O,preserveAspectRatio:w,userProps:S,titleId:k,descId:P,containerRef:j,localContainerRef:M}=function(e){let t={...at,...e},{title:n,desc:a,width:i,height:o,responsive:l}=t,s=(0,eh.useRef)(null),u=(0,eh.useRef)(r(r1)("victory-container-")),c=t.containerId??u.current,d=e=>`${c}-${e}`,f=r0(t),p=l?`0 0 ${i} ${o}`:void 0,h=l?t.preserveAspectRatio:void 0,g=[n&&d("title"),t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[a&&d("desc"),t["aria-describedby"]].filter(Boolean).join(" ")||void 0,y=d("title"),b=d("desc");return{...t,titleId:y,descId:b,dimensions:l?{width:"100%",height:"100%"}:{width:i,height:o},viewBox:p,preserveAspectRatio:h,ariaLabelledBy:g,ariaDescribedBy:m,userProps:f,localContainerRef:s}}(e);return r(eh).useEffect(()=>{if(!g?.onWheel)return;let e=e=>e.preventDefault(),t=M?.current;return t?.addEventListener("wheel",e),()=>{t?.removeEventListener("wheel",e)}},[]),r(eh).createElement("div",{className:l,style:{...f,width:h?f?.width:v.width,height:h?f?.height:v.height,pointerEvents:f?.pointerEvents??"none",touchAction:f?.touchAction??"none",position:f?.position??"relative"},"data-ouia-component-id":m,"data-ouia-component-type":b,"data-ouia-safe":y,ref:(t=[M,j],e=>{t.forEach(t=>{rm(t)?t(e):null!=t&&(t.current=e)})})},r(eh).createElement(r8,null,r(eh).createElement("svg",ae({width:c,height:d,tabIndex:p,role:n,"aria-labelledby":_,"aria-describedby":x,viewBox:O,preserveAspectRatio:w,style:{...v,pointerEvents:"all"}},S,g),a?r(eh).createElement("title",{id:k},a):null,i?r(eh).createElement("desc",{id:P},i):null,o),r(eh).createElement("div",{style:{...v,zIndex:s,position:"absolute",top:0,left:0}},r(eh).createElement(r9,{as:u,width:c,height:d,viewBox:O,preserveAspectRatio:w,style:{...v,overflow:"visible"}}))))};an.role="container";let ar=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],aa="#252525",ai="#969696",ao={width:450,height:300,padding:50,colorScale:ar},al={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:aa,stroke:"transparent"},as=Object.assign({textAnchor:"middle"},al),au={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:ar,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:aa},labels:al}},ao),axis:Object.assign({style:{axis:{fill:"transparent",stroke:aa,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},as,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:al}},ao),bar:Object.assign({style:{data:{fill:aa,padding:8,strokeWidth:0},labels:al}},ao),boxplot:Object.assign({style:{max:{padding:8,stroke:aa,strokeWidth:1},maxLabels:Object.assign({},al,{padding:3}),median:{padding:8,stroke:aa,strokeWidth:1},medianLabels:Object.assign({},al,{padding:3}),min:{padding:8,stroke:aa,strokeWidth:1},minLabels:Object.assign({},al,{padding:3}),q1:{padding:8,fill:ai},q1Labels:Object.assign({},al,{padding:3}),q3:{padding:8,fill:ai},q3Labels:Object.assign({},al,{padding:3})},boxWidth:20},ao),candlestick:Object.assign({style:{data:{stroke:aa,strokeWidth:1},labels:Object.assign({},al,{padding:5})},candleColors:{positive:"#ffffff",negative:aa}},ao),chart:ao,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:aa,strokeWidth:2},labels:al}},ao),group:Object.assign({colorScale:ar},ao),histogram:Object.assign({style:{data:{fill:ai,stroke:aa,strokeWidth:2},labels:al}},ao),legend:{colorScale:ar,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:al,title:Object.assign({},al,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:aa,strokeWidth:2},labels:al}},ao),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},al,{padding:20})},colorScale:ar,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:aa,stroke:"transparent",strokeWidth:0},labels:al}},ao),stack:Object.assign({colorScale:ar},ao),tooltip:{style:Object.assign({},al,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:aa,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},al,{padding:5,pointerEvents:"none"}),flyout:{stroke:aa,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},ao)},ac="#FFF59D",ad="#F4511E",af="#8BC34A",ap="#00796B",ah="#006064",ag=[ad,ac,"#DCE775",af,ap,ah],am="#ECEFF1",ay="#90A4AE",ab="#455A64",av="#212121",ax=[am,ay,ab,av],a_={width:350,height:350,padding:50},aO={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:ab,stroke:"transparent",strokeWidth:0},aw=Object.assign({textAnchor:"middle"},aO),aS="round",ak="round",aP={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:ap,purple:"#DF948A",green:af,orange:ad,cyan:ah,red:"#DF5A49",yellow:ac},grayscale:ax,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:av},labels:aO}},a_),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ay,strokeWidth:2,strokeLinecap:aS,strokeLinejoin:ak},axisLabel:Object.assign({},aw,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:am,strokeDasharray:"10, 5",strokeLinecap:aS,strokeLinejoin:ak,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ay,strokeWidth:1,strokeLinecap:aS,strokeLinejoin:ak},tickLabels:Object.assign({},aO,{fill:ab})}},a_),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:ab,padding:8,strokeWidth:0},labels:aO}},a_),boxplot:Object.assign({style:{max:{padding:8,stroke:ab,strokeWidth:1},maxLabels:Object.assign({},aO,{padding:3}),median:{padding:8,stroke:ab,strokeWidth:1},medianLabels:Object.assign({},aO,{padding:3}),min:{padding:8,stroke:ab,strokeWidth:1},minLabels:Object.assign({},aO,{padding:3}),q1:{padding:8,fill:ab},q1Labels:Object.assign({},aO,{padding:3}),q3:{padding:8,fill:ab},q3Labels:Object.assign({},aO,{padding:3})},boxWidth:20},a_),candlestick:Object.assign({style:{data:{stroke:ab},labels:Object.assign({},aO,{padding:5})},candleColors:{positive:"#ffffff",negative:ab}},a_),chart:a_,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ab,strokeWidth:2},labels:aO}},a_),group:Object.assign({colorScale:ag},a_),histogram:Object.assign({style:{data:{fill:ab,stroke:av,strokeWidth:2},labels:aO}},a_),legend:{colorScale:ag,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:aO,title:Object.assign({},aO,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ab,strokeWidth:2},labels:aO}},a_),pie:Object.assign({colorScale:ag,style:{data:{padding:8,stroke:am,strokeWidth:1},labels:Object.assign({},aO,{padding:20})}},a_),scatter:Object.assign({style:{data:{fill:ab,opacity:1,stroke:"transparent",strokeWidth:0},labels:aO}},a_),stack:Object.assign({colorScale:ag},a_),tooltip:{style:Object.assign({},aO,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:av,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},aO,{padding:5,pointerEvents:"none"}),flyout:{stroke:av,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},a_)},aj={white:"#FFFFFF",50:"#FAFAFA",100:"#F2F2F2",200:"#E8E8E8",300:"#E0E0E0",400:"#D1D1D1",500:"#757575",600:"#5C5C5C",700:"#424242",800:"#333333",900:"#292929",black:"#0F0F0F"},aM={100:"#FFEAB6",300:"#FFD66E",500:"#FCB400",900:"#B87503"},aC={100:"#FEE2D5",300:"#FFA981",500:"#FF6F2C",700:"#FF4E1B",900:"#D74D26"},aE={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},aA={100:"#EDE3FE",300:"#CDB0FF",500:"#8B46FF",900:"#6B1CB0"},aT={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},aD={100:"#D0F0FD",300:"#77D1F3",500:"#18BFFF",900:"#0B76B7"},aL={100:"#C2F5E9",300:"#72DDC3",500:"#20D9D2",900:"#06A09B"},a$={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},aN={blue:aT["500"],cyan:aD["500"],green:a$["500"],yellow:aM["500"],orange:aC["500"],red:aE["500"],purple:aA["500"],teal:aL["500"]},az=Object.values(aN),aF=[aj["100"],aj["300"],aj["500"],aj["700"],aj["900"]],aR=[aM["300"],aM["500"],aC["500"],aC["900"],aE["500"]],aI=[aA["500"],aT["500"],aD["500"],aL["500"],a$["500"]],aW=[a$["900"],a$["500"],aM["500"],aC["500"],aE["500"]],aU=Object.values(aE),aq=Object.values(a$),aB=Object.values(aT),aV=aT["500"],aH={width:450,height:300,padding:60,colorScale:az},aY={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:aj["900"],stroke:"transparent"},aG=Object.assign({textAnchor:"middle"},aY),aK="10, 5",aX="round",aQ="round";Object.assign({style:{data:{fill:aV,strokeWidth:2,fillOpacity:.5},labels:aY}},aH),Object.assign({style:{axis:{fill:"transparent",stroke:aj["500"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},axisLabel:Object.assign({},aG,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:aY}},aH),Object.assign({style:{axis:{stroke:aj["500"]},grid:{stroke:aj["400"],strokeDasharray:aK,strokeLinecap:aX,strokeLinejoin:aQ,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:aj["400"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},tickLabels:aY}}),Object.assign({style:{axis:{stroke:aj["500"]},grid:{stroke:aj["400"],strokeDasharray:aK,strokeLinecap:aX,strokeLinejoin:aQ,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:aj["300"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},tickLabels:aY}}),Object.assign({style:{data:{fill:aV,padding:8,strokeWidth:1,fillOpacity:.5},labels:aY},cornerRadius:{top:1}},aH),Object.assign({style:{max:{padding:8,stroke:aj["400"],strokeWidth:2},maxLabels:Object.assign({},aY,{padding:3}),median:{padding:8,stroke:aj.white,strokeWidth:2},medianLabels:Object.assign({},aY,{padding:3}),min:{padding:8,stroke:aj["400"],strokeWidth:2},minLabels:Object.assign({},aY,{padding:3}),q1:{padding:8,fill:az[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},aY,{padding:3}),q3:{padding:8,fill:az[1],rx:1},q3Labels:Object.assign({},aY,{padding:3})},boxWidth:20},aH),Object.assign({style:{data:{stroke:aj["300"],strokeWidth:0,rx:1},labels:Object.assign({},aY,{padding:5})},candleColors:{positive:a$["500"],negative:aE["500"]},wickStrokeWidth:2},aH),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:aj["700"],strokeWidth:2,strokeLinecap:aX},labels:aY}},aH),Object.assign({colorScale:az},aH),Object.assign({style:{data:{fill:aD["500"],fillOpacity:.5},labels:aY},binSpacing:4,cornerRadius:{top:1}},aH),Object.assign({},aY,{padding:8,fontSize:16}),aj["200"],Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:aV,strokeWidth:2,strokeLinecap:aX,strokeLinejoin:aQ},labels:aY}},aH),Object.assign({style:{parent:{backgroundColor:aj.white},data:{padding:8,stroke:aj.white,strokeWidth:1},labels:{...aY,padding:20,fill:aj["600"],fontSize:10}},colorScale:az,cornerRadius:1},aH),Object.assign({style:{data:{fill:aV,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...aY,padding:20}}},aH),Object.assign({colorScale:az},aH),Object.assign({},aY,{padding:0,pointerEvents:"none"}),aj["300"],aj.white,Object.assign({style:{data:{fill:aT["100"],stroke:aV,strokeWidth:2},labels:Object.assign({},aY,{padding:5,pointerEvents:"none"}),flyout:{stroke:aj["900"],strokeWidth:1,fill:aj["100"],pointerEvents:"none"},padding:{left:2,bottom:2}}},aH);var aJ={};e(aJ,"addBinsToParentPropsIfHistogram",()=>lC),e(aJ,"getDataFromChildren",()=>lE),e(aJ,"getData",()=>lA),e(aJ,"getWidth",()=>lT),e(aJ,"getDefaultDomainPadding",()=>lD),e(aJ,"getDomainFromChildren",()=>lL),e(aJ,"getDomain",()=>l$),e(aJ,"getScale",()=>lN),e(aJ,"getAllEvents",()=>lz),e(aJ,"getColor",()=>lF),e(aJ,"getStyle",()=>lR),e(aJ,"getChildStyle",()=>lI),e(aJ,"getStringsFromChildrenCategories",()=>lW),e(aJ,"getStringsFromData",()=>lU),e(aJ,"getCategoryAndAxisStringsFromChildren",()=>lq),e(aJ,"getStringsFromChildren",()=>lB),e(aJ,"getCategories",()=>lV);var eh=o("8NFma"),aZ={},a0={},a5={},a1={};a1=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var a2={};function a6(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nc;++t<n;)this.add(e[t])}a2=function(e){return this.__data__.has(e)},a6.prototype.add=a6.prototype.push=a1,a6.prototype.has=a2,a5=a6;var a3={},a7={},a4={};a4=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return -1};var a8={};a8=function(e){return e!=e};var a9={};a9=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return -1},a7=function(e,t,n){return t==t?a9(e,t,n):a4(e,a8,n)},a3=function(e,t){return!!(null==e?0:e.length)&&a7(e,t,0)>-1};var ie={};ie=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1};var it={};it=function(e,t){return e.has(t)};var ir={},ia={};ia=function(){};var ii={};ii=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},ir=tG&&1/ii(new tG([,-0]))[1]==1/0?function(e){return new tG(e)}:ia,a0=function(e,t,n){var r=-1,a=a3,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=ie;else if(i>=200){var u=t?null:ir(e);if(u)return ii(u);o=!1,a=it,s=new a5}else s=t?[]:l;r:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,o&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue r;t&&s.push(d),l.push(c)}else a(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l},aZ=function(e){return e&&e.length?a0(e):[]};var io={},il={},is={};is=function(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r};var iu={},ic={},id={},ip={};ip=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++a];if(!1===n(i[s],s,i))break}return t}}();var ih={};ih=function(e){return tc(e)?tg(e):tI(e)};ic=function(e,t){return function(n,r){if(null==n)return n;if(!tc(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}(id=function(e,t){return e&&ip(e,t,ih)}),iu=function(e,t,n,r){return ic(e,function(e,a,i){t(r,e,n(e),i)}),r};var ig={},im={},iy={},ib={},iv={};iv=function(){this.__data__=new nO,this.size=0};var ix={};ix=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var i_={};i_=function(e){return this.__data__.get(e)};var iO={};iO=function(e){return this.__data__.has(e)};var iw={};function iS(e){var t=this.__data__=new nO(e);this.size=t.size}iw=function(e,t){var n=this.__data__;if(n instanceof nO){var r=n.__data__;if(!tH||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nc(r)}return n.set(e,t),this.size=n.size,this},iS.prototype.clear=iv,iS.prototype.delete=ix,iS.prototype.get=i_,iS.prototype.has=iO,iS.prototype.set=iw,ib=iS;var ik={},iP={},ij={},iM={};iM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},ij=function(e,t,n,r,a,i){var o=1&n,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new a5:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=o?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!iM(t,function(e,t){if(!it(p,t)&&(h===e||a(h,e,n,r,i)))return p.push(t)})){f=!1;break}}else if(!(h===g||a(h,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f};var iC={},iE={},eX=o("eeOBM");iE=eX.Uint8Array;var iA={};iA=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var iT=eK?eK.prototype:void 0,iD=iT?iT.valueOf:void 0;iC=function(e,t,n,r,a,i,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!i(new iE(e),new iE(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return ts(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=iA;case"[object Set]":var s=1&r;if(l||(l=ii),e.size!=t.size&&!s)break;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=ij(l(e),l(t),r,a,i,o);return o.delete(e),c;case"[object Symbol]":if(iD)return iD.call(e)==iD.call(t)}return!1};var iL={},i$={},iN={};iN=function(e,t,n){var r=t(e);return tw(e)?r:n4(r,n(e))};var iz={},iF={};iF=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};var iR={};iR=function(){return[]};var iI=Object.prototype.propertyIsEnumerable,iW=Object.getOwnPropertySymbols;iz=iW?function(e){return null==e?[]:(e=Object(e),iF(iW(e),function(t){return iI.call(e,t)}))}:iR,i$=function(e){return iN(e,ih,iz)};var iU=Object.prototype.hasOwnProperty;iL=function(e,t,n,r,a,i){var o=1&n,l=i$(e),s=l.length;if(s!=i$(t).length&&!o)return!1;for(var u=s;u--;){var c=l[u];if(!(o?c in t:iU.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=o;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var y=o?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===y?g===m||a(g,m,n,r,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,v=t.constructor;b!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v)&&(p=!1)}return i.delete(e),i.delete(t),p};var tS=o("9e2tS"),iq="[object Arguments]",iB="[object Array]",iV="[object Object]",iH=Object.prototype.hasOwnProperty;iP=function(e,t,n,r,a,i){var o=tw(e),l=tw(t),s=o?iB:tB(e),u=l?iB:tB(t);s=s==iq?iV:s,u=u==iq?iV:u;var c=s==iV,d=u==iV,f=s==u;if(f&&tS(e)){if(!tS(t))return!1;o=!0,c=!1}if(f&&!c)return i||(i=new ib),o||tk(e)?ij(e,t,n,r,a,i):iC(e,t,s,n,r,a,i);if(!(1&n)){var p=c&&iH.call(e,"__wrapped__"),h=d&&iH.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new ib),a(g,m,n,r,i)}}return!!f&&(i||(i=new ib),iL(e,t,n,r,a,i))},ik=function e(t,n,r,a,i){return t===n||(null!=t&&null!=n&&(tv(t)||tv(n))?iP(t,n,r,a,e,i):t!=t&&n!=n)},iy=function(e,t,n,r){var a=n.length,i=a,o=!r;if(null==e)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var s=(l=n[a])[0],u=e[s],c=l[1];if(o&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new ib;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?ik(c,u,3,r,d):f))return!1}}return!0};var iY={},iG={};iG=function(e){return e==e&&!e3(e)},iY=function(e){for(var t=ih(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,iG(a)]}return t};var iK={};iK=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},im=function(e){var t=iY(e);return 1==t.length&&t[0][2]?iK(t[0][0],t[0][1]):function(n){return n===e||iy(n,e,t)}};var iX={},iQ={};iQ=function(e,t,n){var r=null==e?void 0:nn(e,t);return void 0===r?n:r},iX=function(e,t){return na(e)&&iG(t)?iK(nY(e),t):function(n){var r=iQ(n,e);return void 0===r&&r===t?n1(n,e):ik(t,r,3)}},ig=function(e){return"function"==typeof e?e:null==e?ez:"object"==typeof e?tw(e)?iX(e[0],e[1]):im(e):t9(e)},il=function(e,t){return function(n,r){var a=tw(n)?is:iu,i=t?t():{};return a(n,e,ig(r,2),i)}};var iJ=Object.prototype.hasOwnProperty;io=il(function(e,t,n){iJ.call(e,n)?e[n].push(t):n0(e,n,[t])});var iZ={};iZ=function(e,t){return e&&e.length?a0(e,ig(t,2)):[]};var i0={};e(i0,"getAxis",()=>o7),e(i0,"findAxisComponents",()=>o4),e(i0,"getAxisComponent",()=>o8),e(i0,"getAxisComponentsWithParent",()=>o9),e(i0,"getOrigin",()=>le),e(i0,"getOriginSign",()=>lt),e(i0,"isVertical",()=>ln),e(i0,"stringTicks",()=>lr),e(i0,"getTickFormat",()=>li),e(i0,"getTicks",()=>ll),e(i0,"getDomain",()=>lu),e(i0,"getAxisValue",()=>lc),e(i0,"modifyProps",()=>ld);var eh=o("8NFma"),i5={},i1={},i2={};i2=function(e,t){var n=-1,r=tc(e)?Array(e.length):[];return ic(e,function(e,a,i){r[++n]=t(e,a,i)}),r};var i6={};i6=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var i3={},i7={};i7=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e==e,i=ni(e),o=void 0!==t,l=null===t,s=t==t,u=ni(t);if(!l&&!u&&!i&&e>t||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!s)return -1}return 0},i3=function(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=i7(a[r],i[r]);if(s){if(r>=l)return s;return s*("desc"==n[r]?-1:1)}}return e.index-t.index},i1=function(e,t,n){t=t.length?nq(t,function(e){return tw(e)?function(t){return nn(t,1===e.length?e[0]:e)}:e}):[ez];var r=-1;t=nq(t,tM(ig));var a=i2(e,function(e,n,a){return{criteria:nq(t,function(t){return t(e)}),index:++r,value:e}});return i6(a,function(e,t){return i3(e,t,n)})},i5=function(e,t,n,r){return null==e?[]:(tw(t)||(t=null==t?[]:[t]),tw(n=r?void 0:n)||(n=null==n?[]:[n]),i1(e,t,n))};var i4={};e(i4,"getMinFromProps",()=>o1),e(i4,"getMaxFromProps",()=>o5),e(i4,"getDomainFromMinMax",()=>oJ),e(i4,"createDomainFunction",()=>oY),e(i4,"getDomainFromData",()=>oQ),e(i4,"formatDomain",()=>oG),e(i4,"getDomainFromProps",()=>oZ),e(i4,"getDomainFromCategories",()=>oX),e(i4,"getDomain",()=>oK),e(i4,"getSymmetricDomain",()=>o2),e(i4,"getDomainWithZero",()=>o0),e(i4,"isDomainComponent",()=>o6);var eh=o("8NFma"),i8={},i9={};i9=function(e){return tv(e)&&"[object Date]"==eG(e)};var tC=o("fwpsA"),oe=tC&&tC.isDate;i8=oe?tM(oe):i9;var ot={},on={};on=tU(Object.getPrototypeOf,Object);var or=Object.prototype,oa=Function.prototype.toString,oi=or.hasOwnProperty,oo=oa.call(Object);ot=function(e){if(!tv(e)||"[object Object]"!=eG(e))return!1;var t=on(e);if(null===t)return!0;var n=oi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oa.call(n)==oo};var ol={},os={};os=function(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],l=t?t(o):o;if(!n||!ts(l,s)){var s=l;i[a++]=0===o?0:o}}return i},ol=function(e){return e&&e.length?os(e):[]};var ou={};e(ou,"formatDataFromDomain",()=>o$),e(ou,"createStringMap",()=>oN),e(ou,"getStringsFromAxes",()=>oU),e(ou,"getStringsFromCategories",()=>oq),e(ou,"getStringsFromData",()=>oB),e(ou,"downsample",()=>oz),e(ou,"formatData",()=>oF),e(ou,"generateData",()=>oR),e(ou,"getCategories",()=>oI),e(ou,"getData",()=>oW),e(ou,"isDataComponent",()=>oV);var eh=o("8NFma"),oc={};oc=function(e,t){return ik(e,t)};var od={};od=function(e){return void 0===e};var of={},op={};op=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var oh={},og={},om={};om=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n4(t,iz(e)),e=on(e);return t}:iR,og=function(e){return iN(e,th,om)},oh=function(e,t){if(null==e)return{};var n=nq(og(e),function(e){return[e]});return t=ig(t),nQ(e,n,function(e,n){return t(e,n[0])})},of=function(e,t){return oh(e,op(ig(t)))};var oy={};e(oy,"validScale",()=>ox),e(oy,"getType",()=>oC),e(oy,"getScaleFromName",()=>ow),e(oy,"getBaseScale",()=>oS),e(oy,"getScaleFromProps",()=>oP),e(oy,"getDefaultScale",()=>ok),e(oy,"getScaleType",()=>oj);var ob={};ob=o("4uxXl");let ov=["linear","time","log","sqrt"];function ox(e){return"function"==typeof e?rm(e.copy)&&rm(e.domain)&&rm(e.range):"string"==typeof e&&ov.includes(e)}function o_(e,t){return!!e.scale&&(!e.scale.x&&!e.scale.y||!!e.scale[t])}function oO(e,t){if(!e.data)return"linear";let n=ry(e[t]);return rL(e.data.map(e=>{let a=r(ot)(n(e))?n(e)[t]:n(e);return void 0!==a?a:e[t]}))?"time":"linear"}function ow(e){if(ox(e))return ob[`scale${e&&e[0].toUpperCase()+e.slice(1)}`]();return ob.scaleLinear()}function oS(e,t){let n=oP(e,t);return n?"string"==typeof n?ow(n):n:ow(function(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),n)return rL(n)?"time":"linear"}(e,t)||oO(e,t))}function ok(){return ob.scaleLinear()}function oP(e,t){if(!o_(e,t))return;let n=e.scale[t]||e.scale;if(ox(n))return rm(n)?n:ow(n)}function oj(e,t){return function(e,t){if(!o_(e,t))return;let n=e.scale[t]||e.scale;return"string"==typeof n?n:oC(n)}(e,t)||oO(e,t)}let oM=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function oC(e){if("string"==typeof e)return e;let t=oM.filter(t=>void 0!==e[t.method])[0];return t?t.name:void 0}function oE(e){return!!(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function oA(e){return oE(e)||e&&e["@@__IMMUTABLE_RECORD__@@"]?function e(t,n){return oE(t)?t.reduce((t,r,a)=>{let i=r;return n&&n[a]&&(i=e(r)),t[a]=i,t},t&&t["@@__IMMUTABLE_LIST__@@"]?[]:{}):t}(e,{errorX:!0,errorY:!0}):e}function oT(e){return oE(e)?e.size:e.length}function oD(e,t){let n=(r(ot)(e.domain)?e.domain[t]:e.domain)||oS(e,t).domain(),a=e.samples||1,i=Math.max(...n),o=Math.min(...n),l=(i-o)/a,s=r_(o,i,l);return s[s.length-1]===i?s:s.concat(i)}function oL(e,t,n){if(void 0===n&&(n="ascending"),!t)return e;let a=t;("x"===t||"y"===t)&&(a=`_${t}`);let i="ascending"===n?"asc":"desc";return r(i5)(e,a,i)}function o$(e,t,n){let a=rW(t.x),i=rI(t.x),o=rW(t.y),l=rI(t.y),s=e=>t=>void 0!==t&&t<e,u=e=>t=>void 0!==t&&t>e,c=s(a),d=s(o),f=u(i),p=u(l);return e.map(e=>{let{_x:t,_y:a,_y0:i,_y1:s}=e;(c(t)||f(t))&&(t=null);let u=void 0!==i?i:n,h=void 0!==s?s:a;return void 0===h?e:(void 0===u&&(d(h)||p(h))&&(a=null),(d(u)&&d(h)||p(u)&&p(h))&&(a=i=s=null),d(u)&&!d(h)&&(i=o),p(u)&&!p(h)&&(i=l),Object.assign({},e,r(of)({_x:t,_y:a,_y0:i,_y1:s},r(od))))})}function oN(e,t){let n=oU(e,t),a=oq(e,t),i=oB(e,t),o=r(aZ)([...n,...a,...i]);return 0===o.length?null:o.reduce((e,t,n)=>(e[t]=n+1,e),{})}function oz(e,t,n){void 0===n&&(n=0);let r=oT(e);if(r>t){let a=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((e,t)=>(t+n)%a==0)}return e}function oF(e,t,n){var a;let i,o,l;if(!(Array.isArray(e)||oE(e))||1>oT(e))return[];let s=["x","y","y0"],u=(n=Array.isArray(n)?n:s).reduce((e,n)=>(e[n]=ry(void 0!==t[n]?t[n]:n),e),{}),c=r(oc)(n,s)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;!1===c&&(i={x:-1!==n.indexOf("x")?oN(t,"x"):void 0,y:-1!==n.indexOf("y")?oN(t,"y"):void 0,y0:-1!==n.indexOf("y0")?oN(t,"y"):void 0});let d=function(e,t){let n=1/Number.MAX_SAFE_INTEGER,r={x:oj(t,"x"),y:oj(t,"y")};if("log"!==r.x&&"log"!==r.y)return e;let a=(e,t)=>"log"!==r[t]||0!==e[`_${t}`];return e.map(e=>{let t,r,i;return a(e,"x")&&a(e,"y")&&a(e,"y0")?e:(t=a(e,"x")?e._x:n,r=a(e,"y")?e._y:n,i=a(e,"y0")?e._y0:n,Object.assign({},e,{_x:t,_y:r,_y0:i}))})}(oL(c?e:e.reduce((e,t,a)=>{let o=oA(t),l={x:a,y:o},s=Object.assign({},n.reduce((e,t)=>{let n=u[t](o),r=void 0!==n?n:l[t];return void 0!==r&&("string"==typeof r&&i[t]?(e[`${t}Name`]=r,e[`_${t}`]=i[t][r]):e[`_${t}`]=r),e},{}),o);return r(tR)(s)||e.push(s),e},[]),t.sortKey,t.sortOrder),t);return o=!!t.eventKey,l=rm(a=t.eventKey)?a:null==a?()=>void 0:r(t9)(a),d.map((e,t)=>{if(void 0!==e.eventKey);else if(o){let n=l(e,t);return void 0!==n?Object.assign({eventKey:n},e):e}return e})}function oR(e){let t=oD(e,"x"),n=oD(e,"y");return t.map((e,t)=>({x:e,y:n[t]}))}function oI(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function oW(e){return e.data?oF(e.data,e):oF(oR(e),e)}function oU(e,t){let{tickValues:n,tickFormat:r}=e;return(n&&(Array.isArray(n)||n[t])?n[t]||n:r&&Array.isArray(r)?r:[]).filter(e=>"string"==typeof e)}function oq(e,t){if(!e.categories)return[];let n=oI(e,t),r=n&&n.filter(e=>"string"==typeof e);return r?rR(r):[]}function oB(e,t){if(!(Array.isArray(e.data)||oE(e.data)))return[];let n=ry(void 0===e[t]?t:e[t]);return oL(e.data.reduce((e,t)=>(e.push(oA(t)),e),[]),e.sortKey,e.sortOrder).reduce((e,t)=>{let r=oA(t);return e.push(n(r)),e},[]).filter(e=>"string"==typeof e).reduce((e,t)=>(null!=t&&-1===e.indexOf(t)&&e.push(t),e),[])}function oV(e){let t=e=>e&&e.type?e.type.role:"",n=t(e);if("portal"===n){let a=r(eh).Children.toArray(e.props.children);n=a.length?t(a[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function oH(e,t,n){void 0===n&&(n="min");let r=e=>"max"===n?Math.max(...e):Math.min(...e),a="max"===n?-1/0:1/0,i=!1,o=e.flat().reduce((e,n)=>{let a=void 0!==n[`_${t}0`]?n[`_${t}0`]:n[`_${t}`],o=void 0!==n[`_${t}1`]?n[`_${t}1`]:n[`_${t}`],l=r([a,o]);return i=i||a instanceof Date||o instanceof Date,r([e,l])},a);return i?new Date(o):o}function oY(e,t){let n=rm(e)?e:oQ,r=rm(t)?t:oG;return(e,t)=>{let a=oZ(e,t);if(a)return r(a,e,t);let i=oI(e,t),o=i?oX(e,t,i):n(e,t);return o?r(o,e,t):void 0}}function oG(e,t,n){return function(e,t,n){let r;return"log"!==oj(t,n)?e:(r=e[0]<0||e[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===e[0]?r:e[0],0===e[1]?r:e[1]])}(function(e,t,n){if(!t.domainPadding)return e;let a=o1(t,n),i=o5(t,n),o=(e=>Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e})(r(ot)(t.domainPadding)?t.domainPadding[n]:t.domainPadding);if(!o.left&&!o.right)return e;let l=rW(e),s=rI(e),u=rv(n,t.horizontal),c=rh(t,u),d=Math.abs(c[0]-c[1]),f=Math.max(d-o.left-o.right,1),p=Math.abs(s.valueOf()-l.valueOf())/f*d,h={left:p*o.left/d,right:p*o.right/d},g={min:l.valueOf()-h.left,max:s.valueOf()+h.right},m=r(ot)(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=l.valueOf()>=0&&g.min<=0||0>=s.valueOf()&&g.max>=0,b=(e,t)=>"min"===t&&l.valueOf()>=0&&e<=0||"max"===t&&0>=s.valueOf()&&e>=0?0:e;if(y&&!1!==m){let e={left:Math.abs(s-l)*o.left/d,right:Math.abs(s-l)*o.right/d},t={min:b(l.valueOf()-e.left,"min"),max:b(s.valueOf()+e.right,"max")},n={left:Math.abs(t.max-t.min)*o.left/d,right:Math.abs(t.max-t.min)*o.right/d};g={min:b(l.valueOf()-n.left,"min"),max:b(s.valueOf()+n.right,"max")}}let v={min:void 0!==a?a:g.min,max:void 0!==i?i:g.max};return l instanceof Date||s instanceof Date?oJ(new Date(v.min),new Date(v.max)):oJ(v.min,v.max)}(e,t,n),t,n)}function oK(e,t){return oY()(e,t)}function oX(e,t,n){let r=n||oI(e,t),{polar:a,startAngle:i=0,endAngle:o=360}=e;if(!r)return;let l=o1(e,t),s=o5(e,t),u=rD(r)?oq(e,t):[],c=0===u.length?null:u.reduce((e,t,n)=>(e[t]=n+1,e),{}),d=c?r.map(e=>c[e]):r,f=oJ(void 0!==l?l:rW(d),void 0!==s?s:rI(d));return a&&"x"===t&&360===Math.abs(i-o)?o2(f,d):f}function oQ(e,t,n){let r,a=n||oW(e),{polar:i,startAngle:o=0,endAngle:l=360}=e,s=o1(e,t),u=o5(e,t);if(a.length<1)return void 0!==s&&void 0!==u?oJ(s,u):void 0;let c=oJ(void 0!==s?s:oH(a,t,"min"),void 0!==u?u:oH(a,t,"max"));return i&&"x"===t&&360===Math.abs(o-l)?o2(c,(r=`_${t}`,a.flat().map(e=>e[r]&&void 0!==e[r][1]?e[r][1]:e[r]))):c}function oJ(e,t){let n,r,a;return Number(e)===Number(t)?(n=0===t?2e-10:1e-10,r=t instanceof Date?new Date(Number(t)-1):Number(t)-n,a=t instanceof Date?new Date(Number(t)+1):Number(t)+n,0===t?[0,a]:[r,a]):[e,t]}function oZ(e,t){let n=o1(e,t),a=o5(e,t);return r(ot)(e.domain)&&e.domain[t]?e.domain[t]:Array.isArray(e.domain)?e.domain:void 0!==n&&void 0!==a?oJ(n,a):void 0}function o0(e,t){let n=oZ(e,t);if(n)return n;let r=oW(e),a=r.reduce((e,t)=>t._y0<e?t._y0:e,1/0);return oY(()=>oQ(e,t,r),n=>oG((n=>{if("x"===t)return n;let r=a!==1/0?a:0,i=o5(e,t),o=o1(e,t),l=void 0!==i?i:rI(n,r);return oJ(void 0!==o?o:rW(n,r),l)})(n),e,t))(e,t)}function o5(e,t){return r(ot)(e.maxDomain)&&void 0!==e.maxDomain[t]?e.maxDomain[t]:"number"==typeof e.maxDomain||r(i8)(e.maxDomain)?e.maxDomain:void 0}function o1(e,t){return r(ot)(e.minDomain)&&void 0!==e.minDomain[t]?e.minDomain[t]:"number"==typeof e.minDomain||r(i8)(e.minDomain)?e.minDomain:void 0}function o2(e,t){let n=r(ol)(t.sort((e,t)=>e-t)),a=n[1]-n[0];return[e[0],e[1]+a]}function o6(e){let t=e=>e&&e.type?e.type.role:"",n=t(e);if("portal"===n){let a=r(eh).Children.toArray(e.props.children);n=a.length?t(a[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function o3(e){return e}function o7(e){let{dependentAxis:t}=e;return t?"y":"x"}function o4(e,t){let n=t||o3,a=e=>e.reduce((e,t)=>t.type&&"axis"===t.type.role&&n(t)?e.concat(t):t.props&&t.props.children?e.concat(a(r(eh).Children.toArray(t.props.children))):e,[]);return a(e)}function o8(e,t){return o4(e,e=>e.type.getAxis(e.props)===t)[0]}function o9(e,t){let n=e=>e.reduce((e,a)=>a.type&&"axis"===a.type.role&&("dependent"===t?a.props.dependentAxis:!a.props.dependentAxis)||a.props&&a.props.children&&n(r(eh).Children.toArray(a.props.children)).length>0?e.concat(a):e,[]);return n(e)}function le(e){let t=e=>{let t=Math.min(...e),n=Math.max(...e);return n<0?n:Math.max(0,t)};return{x:rL(e.x)?new Date(Math.min(...e.x)):t(e.x),y:rL(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function lt(e,t){return rL(t)?"positive":e<=0&&0>=Math.max(...t)?"negative":"positive"}function ln(e){return({top:!1,bottom:!1,left:!0,right:!0})[e.orientation||(e.dependentAxis?"left":"bottom")]}function lr(e){return void 0!==e.tickValues&&rD(e.tickValues)}function la(e){let t,n,a,i,o,{tickValues:l,tickFormat:s}=e;if(l?.length===0)return[];let u=o7(e),c=e.stringMap&&e.stringMap[u],d=l;c&&(t=o7(e),n=e.stringMap&&e.stringMap[t],i=(a=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t])&&rN(a)?a.map(e=>n[e]):void 0,o=n&&Object.values(n),d=i&&0!==i.length?i:o),l&&rD(l)&&(d=c?l.map(e=>c[e]):r_(1,l.length+1));let f=d?r(aZ)(d):(()=>{if(s&&Array.isArray(s))return rD(s)?s.map((e,t)=>t):s})();return Array.isArray(f)&&f.length?(t=>{let n=[],r=e.domain&&e.domain[u]||e.domain;if(t)return t.forEach((e,t)=>{Array.isArray(r)?e>=rW(r).valueOf()&&e<=rI(r).valueOf()&&n.push({value:e,index:t}):n.push({value:e,index:t})}),n})(f):void 0}function li(e,t){let{tickFormat:n}=e,a=o7(e),i=e.stringMap&&e.stringMap[a];if(n){if(n&&Array.isArray(n)){let t=la(e),r=t?.map(e=>e.index),a=n.filter((e,t)=>r?.includes(t));return(e,t)=>a[t]}else if(n&&rm(n))return i?(t,n,r)=>{let a=re(i),o=r.map(e=>a[e]);return e.tickFormat(a[t],n,o)}:n}else{let n=function(e){let{tickValues:t}=e,n=o7(e),a=e.stringMap&&e.stringMap[n],i=t&&!rL(t)?e=>e:void 0;if(!a)return lr(e)?(e,n)=>t[n]:i;let o=a&&re(a),l=["",...r(i5)(Object.values(a),e=>e).map(e=>o[e]),""];return e=>l[e]}(e),a=t.tickFormat&&rm(t.tickFormat)?t.tickFormat():e=>e;return n||a}return e=>e}function lo(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;let n=Math.floor(e.length/t);return e.filter((e,t)=>t%n==0)}function ll(e,t,n){void 0===n&&(n=!1);let{tickCount:r}=e,a=la(e);if(a?.length===0)return[""];let i=a?a.map(e=>e.value):void 0;if(i)return lo(i,r);if(t.ticks&&rm(t.ticks)){let e=t.ticks(r||5),a=lo(Array.isArray(e)&&e.length?e:t.domain(),r);if(n){let e=a.filter(e=>0!==e);return e.length?e:a}return a}return t.domain()}function ls(e,t){let{polar:n,startAngle:r=0,endAngle:a=360}=e,i=la(e),o=i&&i?.length!==0?i.map(e=>e.value):void 0;if(!Array.isArray(o))return;let l=o1(e,t),s=o5(e,t),u=lr(e),c=o.map(e=>Number(e)),d=u?1:rW(c),f=u?o.length:rI(c),p=oJ(void 0!==l?l:d,void 0!==s?s:f),h=n&&"x"===t&&360===Math.abs(r-a)?o2(p,c):p;return ln(e)&&!n&&h.reverse(),h}function lu(e,t){let n=o7(e);if(!t||t===n)return oY(ls)(e,n)}function lc(e,t){if(!e.axisValue)return;let n="x"===t?"y":"x",a=r(e3)(e.scale)&&rm(e.scale[n])?e.scale[n]:void 0;if(!a)return;let i=r(e3)(e.stringMap)&&e.stringMap["x"===t?"y":"x"];return a(i&&"string"==typeof e.axisValue?i[e.axisValue]:e.axisValue)}function ld(e,t){if(!r(e3)(e.theme))return rb(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),"axis"===n)return rb(e,t,"axis");let a=r(e$)({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:a});return rb(Object.assign({},e,{theme:i}),t,"axis")}var lf={};e(lf,"toTransformString",()=>lp),e(lf,"getColorScale",()=>lh);let lp=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((e,t)=>[e,lp(t)].join(" "),lp(e)).trim();if(null==e||"string"==typeof e)return e;let a=[];for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];a.push(`${t}(${n})`)}return a.join(" ").trim()};function lh(e,t){void 0===t&&(t=aP);let{palette:{grayscale:n=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:a=[],warm:i=[],cool:o=[],red:l=[],blue:s=[],green:u=[]}={}}=t,c={grayscale:n,qualitative:r,heatmap:a,warm:i,cool:o,red:l,blue:s,green:u};return e&&c[e]?.length?c[e]:c.grayscale}var lg={};e(lg,"getEvents",()=>ly),e(lg,"getScopedEvents",()=>lb),e(lg,"getPartialEvents",()=>lv),e(lg,"getEventState",()=>lx),e(lg,"getExternalMutationsWithChildren",()=>l_),e(lg,"getExternalMutations",()=>lO),e(lg,"getExternalMutation",()=>lw),e(lg,"getComponentEvents",()=>lS),e(lg,"getGlobalEventNameFromKey",()=>lk),e(lg,"getGlobalEvents",()=>lP),e(lg,"omitGlobalEvents",()=>lj),e(lg,"emulateReactEvent",()=>lM);let lm=/^onGlobal(.*)$/;function ly(e,t,n,r){let a=e=>{let r,a=(r=e.reduce((e,n)=>void 0!==n.target?(Array.isArray(n.target)?n.target.includes(t):`${n.target}`==`${t}`)?e.concat(n):e:e.concat(n),[]),void 0!==n&&"parent"!==t?r.filter(e=>{let t=e.eventKey,r=e=>!e||`${e}`==`${n}`;return Array.isArray(t)?t.some(e=>r(e)):r(t)}):r);return Array.isArray(a)&&a.reduce((e,t)=>t?Object.assign(e,t.eventHandlers):e,{})},i=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,o=i&&rm(r)?r(a(i),t):void 0;if(!e.sharedEvents)return o;let l=e.sharedEvents.getEvents;return Object.assign({},e.sharedEvents.events&&l(a(e.sharedEvents.events),t),o)}function lb(e,t,n,a){if(r(tR)(e))return{};let i=a||this.baseProps,o=(e,t)=>{let{childName:n,target:r,key:a}=e,o="props"===t?i:this.state||{},l=null!=n&&o[n]?o[n]:o;return"parent"===a?l.parent:l[a]&&l[a][r]},l=(e,r)=>{let a="parent"===t?e.childName:e.childName||n,l=e.target||t,s=(t,n)=>{let r=this.state||{};if(!rm(e.mutation))return r;let a=o({childName:n,key:t,target:l},"props"),s=o({childName:n,key:t,target:l},"state"),u=e.mutation(Object.assign({},a,s),i),c=r[n]||{},d=e=>u?"parent"===l?Object.assign(e,{[t]:Object.assign(e[t]||{},u)}):Object.assign(e,{[t]:Object.assign(e[t]||{},{[l]:u})}):(e[t]&&e[t][l]&&delete e[t][l],e[t]&&!Object.keys(e[t]).length&&delete e[t],e);return null!=n?Object.assign(r,{[n]:d(c)}):d(r)},u=t=>{let n="parent"===l?"parent":"all"===e.eventKey?i[t]?Object.keys(i[t]).filter(e=>"parent"!==e):Object.keys(i).filter(e=>"parent"!==e):void 0===e.eventKey&&"parent"===r?i[t]?Object.keys(i[t]):Object.keys(i):void 0!==e.eventKey?e.eventKey:r;return Array.isArray(n)?n.reduce((e,n)=>Object.assign(e,s(n,t)),{}):s(n,t)},c="all"===a?Object.keys(i).filter(e=>"parent"!==e):a;return Array.isArray(c)?c.reduce((e,t)=>Object.assign(e,u(t)),{}):u(c)},s=(t,n,a,i)=>{let o=e[i](t,n,a,this);if(!r(tR)(o)){let e,t,n=(e=e=>rm(e.callback)&&e.callback,(t=(Array.isArray(o)?o.map(t=>e(t)):[e(o)]).filter(e=>!1!==e)).length?()=>t.forEach(e=>e()):void 0);this.setState(Array.isArray(o)?o.reduce((e,t)=>Object.assign({},e,l(t,a)),{}):l(o,a),n)}};return Object.keys(e).reduce((e,t)=>(e[t]=s,e),{})}function lv(e,t,n){return e?Object.keys(e).reduce((r,a)=>(r[a]=r=>e[a](r,n,t,a),r),{}):{}}function lx(e,t,n){let r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:"parent"===e?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function l_(e,t,n,a){return void 0===t&&(t={}),void 0===n&&(n={}),a.reduce((a,i)=>{let o=n[i],l=lO(e,t[i],n[i],i);return a[i]=l||o,r(oh)(a,e=>!r(tR)(e))},{})}function lO(e,t,n,a){return void 0===t&&(t={}),void 0===n&&(n={}),Object.keys(t).reduce((i,o)=>{let l=n[o]||{},s=t[o]||{};if("parent"===o){let t=lw(e,s,l,{eventKey:o,target:"parent"});i[o]=void 0!==t?Object.assign({},l,t):l}else{let t=r(aZ)(Object.keys(s).concat(Object.keys(l)));i[o]=t.reduce((t,n)=>{let i=lw(e,s[n],l[n],{eventKey:o,target:n,childName:a});return t[n]=void 0!==i?Object.assign({},l[n],i):l[n],r(oh)(t,e=>!r(tR)(e))},{})}return r(oh)(i,e=>!r(tR)(e))},{})}function lw(e,t,n,a){let i=(e,t)=>"string"==typeof e[t]?"all"===e[t]||e[t]===a[t]:!!Array.isArray(e[t])&&e[t].map(e=>`${e}`).includes(a[t]),o=Array.isArray(e)?e:[e];a.childName&&(o=e.filter(e=>i(e,"childName")));let l=o.filter(e=>i(e,"target"));if(r(tR)(l))return;let s=l.filter(e=>i(e,"eventKey"));if(!r(tR)(s))return s.reduce((e,r)=>Object.assign({},e,(r&&rm(r.mutation)?r.mutation:()=>void 0)(Object.assign({},t,n))),{})}function lS(e,t){let n=Array.isArray(t)&&t.reduce((t,n)=>{let r=e[n],a=r&&r.type&&r.type.defaultEvents,i=rm(a)?a(r.props):a;return Array.isArray(i)?t.concat(...i):t},[]);return n&&n.length?n:void 0}function lk(e){let t=e.match(lm);return t&&t[1]&&t[1].toLowerCase()}let lP=e=>r(oh)(e,(e,t)=>lm.test(t)),lj=e=>r(of)(e,(e,t)=>lm.test(t)),lM=e=>Object.assign(e,{nativeEvent:e});function lC(e){let{children:t,props:n,childComponents:r,parentProps:a}=e;if(!(t.some(e=>e.type&&"histogram"===e.type.role)&&t.length&&t.every(e=>e.type&&"histogram"===e.type.role)))return a;let i=n.bins||r[0].props.bins;if(!Array.isArray(i)){let e=t.reduce((e,t)=>{let n=ry(t.props.x||"x");return e.concat(t.props.data.map(e=>({x:n(e)})))},[]);i=(0,t[0].type.getFormattedData)({data:e,bins:i}).reduce((e,t,n)=>{let{x0:r,x1:a}=t;return 0===n?e.concat([r,a]):e.concat(a)},[])}return{...a,bins:i}}function lE(e,t){let{polar:n,startAngle:a,endAngle:i,categories:o,minDomain:l,maxDomain:s}=e,u={polar:n,startAngle:a,endAngle:i,categories:o,minDomain:l,maxDomain:s},c=0,d=t?t.slice(0):r(eh).Children.toArray(e.children);u=lC({children:d,props:e,childComponents:t,parentProps:u});let f=d.filter(e=>e.type&&"stack"===e.type.role).length,p=rO(d,(e,t,n)=>{let a,i=Object.assign({},e.props,u);return oV(e)?(a=e.type&&rm(e.type.getData)?(n?r(eh).cloneElement(e,n.props):e).type.getData(i):oW(i),c+=1,a.map((e,t)=>Object.assign({_stack:c,_group:t},e))):null},e,[],(e,t)=>e.concat(r(iZ)(t,"_group")));return Object.values(r(io)(p,f?"_group":"_stack"))}function lA(e,t){return e.data?oW(e):lE(e,t||r(eh).Children.toArray(e.children))}function lT(e,t,n){let{datasets:r,horizontal:a}=e,i=a?rh(e,"y"):rh(e,"x"),o=Math.abs(i[1]-i[0]),l=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1;return Math.round(.5*o/((t||r.length)*l))}function lD(e,t,n){if(e.polar||"x"!==t)return;let r=n.filter(e=>e.type&&e.type.role&&"group"===e.type.role);if(r.length<1)return;let{offset:a,children:i}=r[0].props;if(!a)return;let o=Array.isArray(i)&&i[0];if(!o)return;let l=o.props.barWidth,s=o.props.data&&o.props.data.length||1;if(o&&"stack"===o.type.role){let e=o.props.children&&o.props.children[0];if(!e)return;l=e.props.barWidth,s=o.props.children.length}let u=l||lT(e,i.length,s);return{x:u*i.length/2+(a-u*((i.length-1)/2))}}function lL(e,t,n){let a=n?n.slice(0):r(eh).Children.toArray(e.children),i=e.data?oW(e):void 0,{polar:o,startAngle:l,endAngle:s,categories:u,minDomain:c,maxDomain:d,horizontal:f}=e,p={horizontal:f,polar:o,startAngle:l,endAngle:s,minDomain:c,maxDomain:d,categories:u},h=i?Object.assign(p,{data:i}):p,g=rO(a,e=>{let n=Object.assign({},e.props,h);return o6(e)?e.type&&rm(e.type.getDomain)?e.props&&e.type.getDomain(n,t):oK(n,t):null},e);return[0===g.length?0:rW(g),0===g.length?1:rI(g)]}function l$(e,t,n){let a,i=n||r(eh).Children.toArray(e.children),o=oZ(e,t),l=lD(e,t,i);if(o)a=o;else{let n=o1(e,t),r=o5(e,t),o=(e.data||e.y)&&oW(e),l=o?oQ(e,t,o):[],s=lL(e,t,i);a=oJ(n||rW([...l,...s]),r||rI([...l,...s]))}return oG(a,Object.assign({domainPadding:l},e),t)}function lN(e,t,n){if(e.data)return oS(e,t);let a=n?n.slice(0):r(eh).Children.toArray(e.children),i=r(aZ)(rO(a,n=>oj(Object.assign({},n.props,{horizontal:e.horizontal}),t),e));return i.length>1?ow("linear"):ow(i[0])}function lz(e){let t=lS(e,["groupComponent","containerComponent","labelComponent"]),n=e.events;return Array.isArray(t)&&(n=Array.isArray(e.events)?t.concat(...e.events):t),n||[]}function lF(e,t,n,r){let{style:a}=e,{colorScale:i,color:o}=e;if(a&&a.data&&a.data.fill)return a.data.fill;if(i=t.props&&t.props.colorScale?t.props.colorScale:i,o=t.props&&t.props.color?t.props.color:o,!i&&!o)return;let l=Array.isArray(i)?i:lh(i,r);return o||l[n%l.length]}function lR(e,t,n){return rl(t,e&&e[n]&&e[n].style?e[n].style:{})}function lI(e,t,n,a){let{style:i,role:o}=n,l=e.props.style||{};if(Array.isArray(l))return l;let s=e.type&&e.type.role,u="stack"===s?void 0:lF(n,e,t,a),c="stack"===o?{}:{width:lT(n)},d=r(e$)({},l.data,Object.assign({},c,i.data,"line"===s?{fill:"none",stroke:u}:{fill:u})),f=r(e$)({},l.labels,i.labels);return{...l,parent:i.parent,data:d,labels:f}}function lW(e,t){return rO(e.slice(0),e=>o6(e)?oq(e.props||{},t):null)}function lU(e){return rO(e.slice(0),e=>{let t=e.props||{};return oV(e)?(e.type&&rm(e.type.getData)?e.type.getData(t):oW(t)).map(e=>({x:e.xName,y:e.yName})):null},{},{x:[],y:[]},(e,t)=>{let n=Array.isArray(t)?t.map(e=>e.x).filter(Boolean):t.x,r=Array.isArray(t)?t.map(e=>e.y).filter(Boolean):t.y;return{x:void 0!==n?e.x.concat(n):e.x,y:void 0!==r?e.y.concat(r):e.y}})}function lq(e,t,n){let a=oq(e,t),i=o8(n,t),o=i?oU(i.props,t):[],l=a.length?a:lW(n,t);return r(aZ)([...l,...o].flat())}function lB(e,t){let n=t||r(eh).Children.toArray(e.children),a=lq(e,"x",n),i=lq(e,"y",n),o=lU(n);return{x:r(aZ)([...a,...o.x].flat()),y:r(aZ)([...i,...o.y].flat())}}function lV(e,t,n){let r=e.categories&&oq(e,"x"),a=e.categories&&oq(e,"y"),i=r&&a?{}:n||lB(e,t),o=r||i.x,l=a||i.y;return{x:o.length>0?o:void 0,y:l.length>0?l:void 0}}var eh=o("8NFma"),lH={};lH=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r};var lY={},lG="undefined"!=typeof Element,lK="function"==typeof Map,lX="function"==typeof Set,lQ="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;lY=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,i,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(lK&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!n.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!e(a.value[1],n.get(a.value[0])))return!1;return!0}if(lX&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!n.has(a.value[0]))return!1;return!0}if(lQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof n.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof n.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;if(lG&&t instanceof Element)return!1;for(a=r;0!=a--;)if(("_owner"!==i[a]&&"__v"!==i[a]&&"__o"!==i[a]||!t.$$typeof)&&!e(t[i[a]],n[i[a]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};var lJ=o("coocU"),eh=o("8NFma"),lZ={};lZ=o("f5Qru");class l0{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach(e=>{e.callback((0,lZ.now)()-e.startTime,e.duration)})};start(){this.timer||(this.timer=(0,lZ.timer)(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(e,t){let n=this.subscribers.push({startTime:(0,lZ.now)(),callback:e,duration:this.shouldAnimate?t:0});return this.activeSubscriptions++,this.start(),n}unsubscribe(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}let l5=r(eh).createContext({transitionTimer:new l0,animationTimer:new l0});l5.displayName="TimerContext";class l1 extends r(eh).Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=l5;static defaultProps={groupComponent:r(eh).createElement("g",null)};constructor(e){super(e),this.getScopedEvents=lg.getScopedEvents.bind(this),this.getEventState=lg.getEventState.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(e)}shouldComponentUpdate(e){if(!r(lY)(this.props,e)){this.baseProps=this.getBaseProps(e);let t=this.getExternalMutations(e,this.baseProps);this.applyExternalMutations(e,t)}return!0}componentDidMount(){let e=Object.keys(this.globalEvents);e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(){let e=Object.keys(this.globalEvents);rA.difference(this.prevGlobalEventKeys,e).forEach(e=>this.removeGlobalListener(e)),rA.difference(e,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){let t=t=>{let n=this.globalEvents[e];return n&&n(lg.emulateReactEvent(t))};this.boundGlobalEvents[e]=t,window.addEventListener(lg.getGlobalEventNameFromKey(e),t)}removeGlobalListener(e){window.removeEventListener(lg.getGlobalEventNameFromKey(e),this.boundGlobalEvents[e])}getAllEvents(e){let t=lg.getComponentEvents(e,["container","groupComponent"]);return Array.isArray(t)?Array.isArray(e.events)?t.concat(...e.events):t:e.events}applyExternalMutations(e,t){if(!r(tR)(t)){let n=e.externalEventMutations.reduce((e,t)=>t8.isFunction(t.callback)?e.concat(t.callback):e,[]),r=n.length?()=>{n.forEach(e=>e())}:void 0;this.setState(t,r)}}getExternalMutations(e,t){return r(tR)(e.externalEventMutations)?void 0:lg.getExternalMutationsWithChildren(e.externalEventMutations,t,this.state,Object.keys(t))}cacheSharedEvents(e,t,n){this.sharedEventsCache[e]=[t,n]}getCachedSharedEvents(e,t){let[n,a]=this.sharedEventsCache[e]||[];if(n&&r(lY)(t,a))return n}getBaseProps(e){let{container:t}=e,n=r(eh).Children.toArray(this.props.children);return Object.assign({},this.getBasePropsFromChildren(n),{parent:t?t.props:{}})}getBasePropsFromChildren(e){let t=t8.reduceChildren(e,(e,t)=>{if(e.type&&t8.isFunction(e.type.getBaseProps)){let n=e.props&&e.type.getBaseProps(e.props);return n?[[t,n]]:null}return null});return r(lH)(t)}getNewChildren(e,t){let{events:n,eventKey:a}=e,i=(e,o)=>e.reduce((e,l,s)=>{if(l.props.children){let t=r(eh).Children.toArray(l.props.children),n=o.slice(s,s+t.length),a=r(eh).cloneElement(l,l.props,i(t,n));return e.concat(a)}if("parent"!==o[s]&&l.type&&t8.isFunction(l.type.getBaseProps)){let i=l.props.name||o[s],u=Array.isArray(n)&&n.filter(e=>"parent"!==e.target&&(Array.isArray(e.childName)?e.childName.indexOf(i)>-1:e.childName===i||"all"===e.childName)),c=[i,t,u,r(lJ)(this.state[i])],d=this.getCachedSharedEvents(i,c)||{events:u,getEvents:(e,n)=>this.getScopedEvents(e,n,i,t),getEventState:(e,t)=>this.getEventState(e,t,i)};return this.cacheSharedEvents(i,d,c),e.concat(r(eh).cloneElement(l,Object.assign({key:`events-${i}`,sharedEvents:d,eventKey:a,name:i},l.props)))}return e.concat(l)},[]),o=Object.keys(t);return i(r(eh).Children.toArray(e.children),o)}getContainer(e,t,n){let a=this.getNewChildren(e,t),i=Array.isArray(n)?n.filter(e=>"parent"===e.target):[],o=i.length>0?{events:i,getEvents:(e,n)=>this.getScopedEvents(e,n,null,t),getEventState:this.getEventState}:null,l=e.container||e.groupComponent,s=l.type&&l.type.role,u=l.props||{},c=lg.getEvents.bind(this),d=o&&c({sharedEvents:o},"parent"),f=r(e$)({},this.getEventState("parent","parent"),u,t.parent,{children:a}),p=r(e$)({},lg.getPartialEvents(d,"parent",f),u.events);this.globalEvents=lg.getGlobalEvents(p);let h=lg.omitGlobalEvents(p);return"container"===s?r(eh).cloneElement(l,Object.assign({},f,{events:h})):r(eh).cloneElement(l,h,a)}render(){let e=this.getAllEvents(this.props);return e?this.getContainer(this.props,this.baseProps,e):r(eh).cloneElement(this.props.container,{children:this.props.children})}}var eh=(o("8NFma"),o("8NFma"),o("8NFma"),o("8NFma")),l2={};l2=o("cJ24G");var l6={};l6=o("g7zPm");let l3=function(e){if(null!==e)switch(typeof e){case"undefined":case"boolean":break;case"number":return!isNaN(e)&&e!==1/0&&e!==-1/0;case"string":case"function":return!0;case"object":return e instanceof Date||Array.isArray(e)||r(ot)(e)}return!1},l7=function(e,t,n){return void 0===n&&(n=0),function(r){return r<n?e:t}},l4=function(e,t){return function(n){return n>=1?t:function(){let r="function"==typeof e?e.apply(this,arguments):e,a="function"==typeof t?t.apply(this,arguments):t;return(0,l6.interpolate)(r,a)(n)}}},l8=function(e,t){let n,a=(e,t)=>e!==t&&l3(e)&&l3(t)?"function"==typeof e||"function"==typeof t?l4(e,t):"object"==typeof e&&r(ot)(e)||"object"==typeof t&&r(ot)(t)?l8(e,t):(0,l6.interpolate)(e,t):l7(e,t),i=e=>Array.isArray(e)?r(i5)(e,"key"):e,o={},l={},s=e,u=t;for(n in(null===s||"object"!=typeof s)&&(s={}),(null===u||"object"!=typeof u)&&(u={}),u)n in s?o[n]=a(i(s[n]),i(u[n])):l[n]=u[n];return function(e){for(n in o)l[n]=o[n](e);return l}},l9=function(e,t){let n=e=>"string"==typeof e?e.replace(/,/g,""):e;return(0,l6.interpolate)(n(e),n(t))},se=e=>{let t,{duration:n=1e3,easing:a="quadInOut",delay:i=0,data:o,children:l,onEnd:s}=e,[u,c]=r(eh).useState({data:Array.isArray(o)?o[0]:o,animationInfo:{progress:0,animating:!1}}),d=r(eh).useContext(l5).animationTimer,f=r(eh).useRef(Array.isArray(o)?o.slice(1):[]),p=r(eh).useRef(null),h=r(eh).useRef(void 0),g=l2[t=a.charAt(0).toUpperCase()+a.slice(1),`ease${t}`];r(eh).useEffect(()=>(f.current.length&&m(),()=>{h.current?d.unsubscribe(h.current):d.stop()}),[]),r(eh).useEffect(()=>{p.current&&u.animationInfo&&u.animationInfo.progress<1?c({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(d.unsubscribe(h.current),f.current=Array.isArray(o)?o:[o],m())},[o]);let m=()=>{if(f.current.length){var e;let t=f.current[0];p.current=(e=u.data)!==t&&l3(e)&&l3(t)?"function"==typeof e||"function"==typeof t?l4(e,t):r(ot)(e)||r(ot)(t)?l8(e,t):"string"==typeof e||"string"==typeof t?l9(e,t):(0,l6.interpolate)(e,t):l7(e,t),i?setTimeout(()=>{h.current=d.subscribe(y,n)},i):h.current=d.subscribe(y,n)}else s&&s()},y=e=>{if(!p.current)return;let t=n?e/n:1;if(t>=1){c({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),h.current&&d.unsubscribe(h.current),f.current.shift(),m();return}c({data:p.current(g(t)),animationInfo:{progress:t,animating:t<1}})};return l(u.data,u.animationInfo)};function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class sn extends r(eh).Component{static displayName="VictoryTransition";static contextType=l5;constructor(e,t){super(e,t),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const n=this.props.children,r=n.props.polar;this.continuous=!r&&n.type&&!0===n.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(e){return r(lY)(this.props,e)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,e),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(e,t){let{animate:n}=e;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?e:null,nextProps:t};let{nodesWillExit:a,nodesWillEnter:i,childrenTransitions:o,nodesShouldEnter:l}=rH(r(eh).Children.toArray(e.children),r(eh).Children.toArray(t.children));return{nodesWillExit:a,nodesWillEnter:i,childrenTransitions:o,nodesShouldEnter:l,oldProps:a?e:null,nextProps:t}}getDomainFromChildren(e,t){let n=e=>e.reduce((e,a)=>{if(a.type&&rm(a.type.getDomain)){let n=a.props&&a.type.getDomain(a.props,t);return n?e.concat(n):e}return a.props&&a.props.children?e.concat(n(r(eh).Children.toArray(a.props.children))):e},[]),a=r(eh).Children.toArray(e.children)[0],i=a.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[t];if(!i.children&&o)return o;let l=n([a]);return 0===l.length?[0,1]:[rW(l),rI(l)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(e){let t=e.animate?.parentState;return t&&t.nodesWillExit?(this.continuous||t.continuous)&&(t.nextProps||this.state.nextProps)||e:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||e}getClipWidth(e,t){let n,r=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==r?r:(n=rh(t.props,"x"))?Math.abs(n[1]-n[0]):e.width}render(){let e=this.pickProps(),t=this.props.animate?.getTransitions?this.props.animate.getTransitions:rY(e,this.state,e=>this.setState(e)),n=r(eh).Children.toArray(e.children)[0],a=t(n);this.transitionProps=a;let i={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},o=this.getClipWidth(e,n),l=r(e$)({domain:i,clipWidth:o},a,n.props),s=(e.animationWhitelist||[]).concat(["clipWidth"]),u=s.length?r(nK)(l,s):l;return r(eh).createElement(se,st({},l.animate,{data:u}),e=>{if(n.props.groupComponent){let t=this.continuous?r(eh).cloneElement(n.props.groupComponent,{clipWidth:e.clipWidth||0}):n.props.groupComponent;return r(eh).cloneElement(n,r(e$)({animate:null,animating:!0,groupComponent:t},e,l))}return r(eh).cloneElement(n,r(e$)({animate:null,animating:!0},e,l))})}}let sr=e=>!rg(e._x)&&!rg(e._y),sa=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function si(e,t){void 0===t&&(t={});class n extends e{constructor(e){super(e),this.cacheValues(this.getCalculatedValues(e))}state={};getEventState=lx.bind(this);getScopedEvents=lb.bind(this);getEvents=(e,t,n)=>ly.call(this,e,t,n,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(e){let t=this.getExternalMutations(e),n=this.props.animating||this.props.animate,a=!r(lY)(t,this.externalMutations);if(n||a)return this.cacheValues(this.getCalculatedValues(e)),this.externalMutations=t,this.applyExternalMutations(e,t),!0;let i=this.getStateChanges(e);return!(r(lY)(this.calculatedState,i)&&r(lY)(this.props,e))&&(this.cacheValues(this.getCalculatedValues(e)),!0)}componentDidMount(){let e=Object.keys(this.globalEvents);e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(e){let t=this.getStateChanges(e);this.calculatedState=t;let n=Object.keys(this.globalEvents);rz(this.prevGlobalEventKeys,n).forEach(e=>this.removeGlobalListener(e)),rz(n,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=n}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){let t=t=>{let n=this.globalEvents[e];return n&&n(lM(t))};this.boundGlobalEvents[e]=t,window.addEventListener(lk(e),t)}removeGlobalListener(e){window.removeEventListener(lk(e),this.boundGlobalEvents[e])}getStateChanges(e){if(!this.hasEvents)return{};let n=(e,t)=>{let n=r(e$)({},this.getEventState(e,t),this.getSharedEventState(e,t));return r(tR)(n)?void 0:n};return(t.components||sa).map(t=>{if(e.standalone||"parent"!==t.name)return void 0!==t.index?n(t.index,t.name):this.dataKeys.map(e=>n(e,t.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(e,t){if(!r(tR)(t)){let n=e.externalEventMutations.reduce((e,t)=>rm(t.callback)?e.concat(t.callback):e,[]),r=n.length?()=>{n.forEach(e=>e())}:void 0;this.setState(t,r)}}getCalculatedValues(t){let{sharedEvents:n}=t,r=lS(t,e.expectedComponents),a=n&&rm(n.getEventState)?n.getEventState:()=>void 0,i=this.getBaseProps(t,a),o=Object.keys(i).filter(e=>"parent"!==e),l=t.events||t.sharedEvents||r;return{componentEvents:r,getSharedEventState:a,baseProps:i,dataKeys:o,hasEvents:l,events:this.getAllEvents(t)}}getExternalMutations(e){let{sharedEvents:t,externalEventMutations:n}=e;return r(tR)(n)||t?void 0:lO(n,this.baseProps,this.state)}cacheValues(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}getBaseProps(t,n){let a=(n||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=r(e$)({},i,a),l=o.parentControlledProps,s=l?r(nK)(o,l):{},u=r(e$)({},s,t);return"function"==typeof e.getBaseProps?e.getBaseProps(u):{}}getAllEvents(e){return Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events}getComponentProps(t,n,a){let i=this.props.name||e.role,o=this.dataKeys&&this.dataKeys[a]||a,l=`${i}-${n}-${o}`,s=this.baseProps[o]&&this.baseProps[o][n]||this.baseProps[o];if(!s&&!this.hasEvents)return;let u=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){let e=this.getEvents(this.props,n,o),t=r(e$)({index:a,key:l},this.getEventState(o,n),this.getSharedEventState(o,n),u,s,{id:l}),i=r(e$)({},lv(e,o,t),t.events);return Object.assign({},t,{events:i})}return r(e$)({index:a,key:l},u,s,{id:l})}renderContainer(e,t){let n=e.type&&"container"===e.type.role?this.getComponentProps(e,"parent","parent"):{};return n.events&&(this.globalEvents=lP(n.events),n.events=lj(n.events)),r(eh).cloneElement(e,n,t)}animateComponent(e,t){let n="object"==typeof e.animate&&e.animate?.animationWhitelist||t,a=this.constructor;return r(eh).createElement(sn,{animate:e.animate,animationWhitelist:n},r(eh).createElement(a,e))}renderContinuousData(e){let{dataComponent:t,labelComponent:n,groupComponent:a}=e,i=this.dataKeys.filter(e=>"all"!==e).reduce((e,t)=>{let a=e,i=this.getComponentProps(n,"labels",t);return i&&void 0!==i.text&&null!==i.text&&(a=a.concat(r(eh).cloneElement(n,i))),a},[]),o=this.getComponentProps(t,"data","all"),l=[r(eh).cloneElement(t,o),...i];return this.renderContainer(a,l)}renderData(e,t){void 0===t&&(t=sr);let{dataComponent:n,labelComponent:a,groupComponent:i}=e,o=[...this.dataKeys.reduce((e,a,i)=>{let o=this.getComponentProps(n,"data",i);return t(o.datum)&&e.push(r(eh).cloneElement(n,o)),e},[]),...this.dataKeys.map((e,t)=>{let n=this.getComponentProps(a,"labels",t);if(void 0!==n.text&&null!==n.text)return r(eh).cloneElement(a,n)}).filter(Boolean)];return this.renderContainer(i,o)}}return n}var eh=(o("8NFma"),o("8NFma"));function so(){return(so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let sl=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("line",so({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("line",so({},s,{ref:t}))}),ss={lineComponent:r(eh).createElement(sl,null),role:"presentation",shapeRendering:"auto"},su=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,ss)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({stroke:"black"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.lineComponent,{...s.events,"aria-label":s.ariaLabel,style:s.style,desc:s.desc,tabIndex:s.tabIndex,className:s.className,role:s.role,shapeRendering:s.shapeRendering,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2,transform:s.transform,clipPath:s.clipPath})};var sc={};e(sc,"convertLengthToPixels",()=>sy),e(sc,"_approximateTextSizeInternal",()=>sO),e(sc,"approximateTextSize",()=>sw);let sd={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},sf={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},sp={em:1,ex:.5},sh={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},sg=e=>Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g),sm=(e,t,n)=>{let r=n*Math.PI/180;return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},sy=(e,t)=>{let n=e.match(/[a-zA-Z%]+/)?.[0],r=Number(e.match(/[0-9.,]+/));return n?sf.hasOwnProperty(n)?r*sf[n]:sp.hasOwnProperty(n)?(t?r*t:r*sh.fontSize)*sp[n]:r:r||0},sb=(e,t)=>{let n=Array.isArray(e)?e[t]:e,a=r(e$)({},n,sh);return Object.assign({},a,{fontFamily:a.fontFamily,letterSpacing:"number"==typeof a.letterSpacing?a.letterSpacing:sy(String(a.letterSpacing),a.fontSize),fontSize:"number"==typeof a.fontSize?a.fontSize:sy(String(a.fontSize))})},sv=r(nu)(()=>{let e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");let t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),sx=e=>e?`${e.angle}:${e.fontFamily}:${e.fontSize}:${e.letterSpacing}:${e.lineHeight}`:"null",s_=r(nu)((e,t)=>{let n=sv();n.isConnected||(sv.cache.clear?.(),n=sv());let r=sg(e),a=0;for(let[e,i]of r.entries()){let r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),o=sb(t,e);r.style.fontFamily=o.fontFamily,r.style.fontSize=`${o.fontSize}px`,r.style.lineHeight=o.lineHeight,r.style.fontFamily=o.fontFamily,r.style.letterSpacing=o.letterSpacing,r.textContent=i,r.setAttribute("x","0"),r.setAttribute("y",`${a}`),n.appendChild(r),a+=o.lineHeight*r.getBoundingClientRect().height}let{width:i}=n.getBoundingClientRect();return n.innerHTML="",{width:t?.angle?sm(i,a,t?.angle):i,height:t?.angle?sm(a,i,t?.angle):a}},(e,t)=>{let n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(sx).join():sx(t);return`${n}::${r}`}),sO={impl:function(e,t,n){if(void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n){let n,r,a;return n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=void 0===e||""===e||null===e?0:sg(e).reduce((e,n,r)=>{let a=sb(t,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*a.fontSize:a.fontSize;return e+a.lineHeight*i},0),a=void 0===e||""===e||null===e?0:Math.max(...sg(e).map((e,n)=>{let r=e.toString().length,{fontSize:a,letterSpacing:i,fontFamily:o}=sb(t,n),l=sd[o.split(",").map(e=>e.replace(/'|"/g,"")).find(e=>sd[e])||"Helvetica"];return e.toString().split("").map(e=>e.charCodeAt(0)<l.widths.length?l.widths[e.charCodeAt(0)]:l.avg).reduce((e,t)=>t+e,0)*a+i*Math.max(r-1,0)})),{width:n?sm(a,r,n):a,height:(n?sm(r,a,n):r)*1.05}}return s_(e,t)}},sw=(e,t)=>sO.impl(e,t);var eh=(o("8NFma"),o("8NFma"));let sS={groupComponent:r(eh).createElement("g",null)},sk=e=>{let t={...sS,...e},[n]=(0,eh.useState)(r(r1)()),a=r4(),i=Array.isArray(t.children)?t.children[0]:t.children,{groupComponent:o}=t,l=i&&i.props||{},s=l.groupComponent?{groupComponent:o,standalone:!1}:{},u=r(e$)(s,l,rt(t,["children","groupComponent"]),{key:l.key??n}),c=i&&r(eh).cloneElement(i,u);return r(eh).useEffect(()=>{a?.addChild(n,c)},[t.children]),r(eh).useEffect(()=>()=>a?.removeChild(n),[]),a?null:c};sk.role="portal";var eh=(o("8NFma"),o("8NFma")),sP={};function sj(e){let{labelComponent:t,labelPlacement:n,polar:r}=e;return n||t.props&&t.props.labelPlacement||(r?"perpendicular":"vertical")}function sM(e,t,n){return(void 0===t&&(t={}),void 0!==t.label)?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function sC(e,t){let n=sj(e);return"perpendicular"===n||"vertical"===n&&(90===t||270===t)?"middle":t<=90||t>270?"start":"end"}function sE(e,t){var n;let r=sj(e),a=(n=t)<45||n>315?"right":n>=45&&n<=135?"top":n>135&&n<225?"left":"bottom";return"parallel"===r||"left"===a||"right"===a?"middle":"top"===a?"end":"start"}function sA(e,t){let{labelPlacement:n,datum:r}=e;if(!n||"vertical"===n)return 0;let a=void 0!==t?t%360:sT(e,r),i=0;return 0===a||180===a?i=90:a>0&&a<180?i=90-a:a>180&&a<360&&(i=270-a),i+90*("perpendicular"!==n)*(a>90&&a<180||a>270?1:-1)}function sT(e,t){let{x:n}=rn(t);return rd(e.scale.x(n))%360}function sD(e,t){var n,a;let i,o,l,{scale:s,data:u,style:c,horizontal:d,polar:f,width:p,height:h,theme:g,labelComponent:m,disableInlineStyles:y}=e,b=u[t],v=sT(e,b),x=f?sC(e,v):function(e,t){void 0===t&&(t={});let{style:n,horizontal:r}=e,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}(e,b),_=f?sE(e,v):(void 0===(n=b)&&(n={}),i=n._y>=0?1:-1,o=e.style&&e.style.labels||{},n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:e.horizontal?"middle":i>=0?"end":"start"),O=(void 0===(a=b)&&(a={}),l=e.style&&e.style.labels||{},void 0===a.angle?l.angle:a.angle),w=sM(e,b,t),S=sj(e),{x:k,y:P}=function(e,t){let{polar:n}=e,{x:r,y:a}=rr(e,t);if(!n)return{x:r,y:a};let i=function(e,t){let{style:n}=e,r=sT(e,t),a=rs((n.labels||{}).padding,e)||0,i=rc(r);return{x:a*Math.cos(i),y:-a*Math.sin(i)}}(e,t);return{x:r+i.x,y:a+i.y}}(e,b),{dx:j,dy:M}=function(e,t){if(e.polar)return{};let n=function(e,t){void 0===t&&(t={});let{horizontal:n,style:r}=e,a=rs((r.labels||{}).padding,e)||0,i=t._y<0?-1:1;return{x:n?i*a:0,y:n?0:-1*i*a}}(e,t);return{dx:n.x,dy:n.y}}(e,b),C={angle:O,data:u,datum:b,disableInlineStyles:y,horizontal:d,index:t,polar:f,scale:s,labelPlacement:S,text:w,textAnchor:x,verticalAnchor:_,x:k,y:P,dx:j,dy:M,width:p,height:h,style:c.labels};if(!ri(m))return C;let E=g&&g.tooltip||{};return r(e$)({},C,rt(E,["style"]))}e(sP,"getDegrees",()=>sT),e(sP,"getText",()=>sM),e(sP,"getPolarTextAnchor",()=>sC),e(sP,"getPolarVerticalAnchor",()=>sE),e(sP,"getPolarAngle",()=>sA),e(sP,"getProps",()=>sD);let sL={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},s$=(e,t)=>e.datum?rr(e,e.datum)[t]:0,sN=e=>{let t=e&&e.fontSize;if("number"==typeof t)return t;if(null==t);else if("string"==typeof t){let e=Number(t.replace("px",""));if(!isNaN(e))return e}return sL.fontSize},sz=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e[t]||e[0]:e},sF=e=>{let{backgroundStyle:t,backgroundPadding:n}=e;return Array.isArray(t)&&!r(tR)(t)||Array.isArray(n)&&!r(tR)(n)},sR=(e,t)=>{let{direction:n,textAnchor:r,x:a,dx:i}=e;if("rtl"===n)return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},sI=(e,t)=>{let{verticalAnchor:n,y:r,originalDy:a=0}=e,i=r+a;switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-t);default:return Math.floor(i-t/2)}},sW={backgroundComponent:r(eh).createElement(rk,null),groupComponent:r(eh).createElement("g",null),direction:"inherit",textComponent:r(eh).createElement(e=>{let{children:t,desc:n,id:a,origin:i,tabIndex:o,title:l,...s}=e,u={id:rs(a,e)?.toString(),tabIndex:rs(o,e),...s};return r(eh).createElement("text",u,l&&r(eh).createElement("title",null,l),n&&r(eh).createElement("desc",null,n),t)},null),tspanComponent:r(eh).createElement(e=>{let{desc:t,id:n,tabIndex:a,origin:i,...o}=e,l={id:rs(n,e)?.toString(),tabIndex:rs(a,e),...o};return r(eh).createElement("tspan",l)},null),capHeight:.71,lineHeight:1},sU=e=>{var t,n;let a,i,o,l,s,u,c,d,f,p,h,g,m,y,b,v,x,_=(a=((e,t)=>{if(null==e)return;if(Array.isArray(e))return e.map(e=>rs(e,t));let n=rs(e,t);if(null!=n)return Array.isArray(n)?n:`${n}`.split("\n")})((t=r(e$)({},e,sW)).text,t),i=((e,t)=>{if(t.disableInlineStyles)return{fontSize:sN(ru(e,t))};let n=e=>{let n=ru(e?r(e$)({},e,sL):sL,t);return Object.assign({},n,{fontSize:sN(n)})};return Array.isArray(e)&&!r(tR)(e)?e.map(e=>n(e)):n(e)})(t.style,Object.assign({},t,{text:a})),o=((e,t)=>{if(e)return Array.isArray(e)&&!r(tR)(e)?e.map(e=>ru(e,t)):ru(e,t)})(t.backgroundStyle,Object.assign({},t,{text:a,style:i})),l=(n=Object.assign({},t,{text:a,style:i,backgroundStyle:o})).backgroundPadding&&Array.isArray(n.backgroundPadding)?n.backgroundPadding.map(e=>ra(rs(e,n))):ra(rs(n.backgroundPadding,n)),s=rs(t.id,t),Object.assign({},t,{backgroundStyle:o,backgroundPadding:l,style:i,text:a,id:s}));if(null===_.text||void 0===_.text)return null;let O=(u=rs(_.ariaLabel,_),c=sz(_.style),f=Array.isArray(d=rs(_.lineHeight,_))&&r(tR)(d)?[1]:d,p=_.direction?rs(_.direction,_):"inherit",h=_.textAnchor?rs(_.textAnchor,_):c.textAnchor||"start",g=_.verticalAnchor?rs(_.verticalAnchor,_):c.verticalAnchor||"middle",m=_.dx?rs(_.dx,_):0,y=((e,t,n)=>{let r=e.dy?rs(e.dy,e):0,a=e.inline?1:e.text.length,i=rs(e.capHeight,e),o=t?rs(t,e):"middle",l=[...Array(a).keys()].map(t=>sz(e.style,t).fontSize),s=[...Array(a).keys()].map(e=>sz(n,e));if("start"===o)return r+(i/2+s[0]/2)*l[0];if(e.inline)return"end"===o?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(1===a)return"end"===o?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];let u=[...Array(a).keys()].reduce((e,t)=>e+(i/2+(.5-a)*s[t])*l[t]/a,0);return"end"===o?r+u:r+u/2+i/2*s[a-1]*l[a-1]})(_,g,f),b=void 0!==_.x?_.x:s$(_,"x"),v=void 0!==_.y?_.y:s$(_,"y"),x=((e,t,n)=>{let{polar:r}=e,a=sz(e.style),i=r?sA(e):0,o=void 0===a.angle?rs(e.angle,e):a.angle,l=void 0===o?i:o,s=e.transform||a.transform,u=s&&rs(s,e);return u||l?lp(u,l&&{rotate:[l,t,n]}):void 0})(_,b,v),Object.assign({},_,{ariaLabel:u,lineHeight:f,direction:p,textAnchor:h,verticalAnchor:g,dx:m,dy:y,originalDy:rs(_.dy,_),transform:x,x:b,y:v})),{text:w,style:S,capHeight:k,backgroundPadding:P,lineHeight:j}=O,M=w.map((e,t)=>{let n=sz(S,t),r=sy(`${k}em`,n.fontSize),a=sz(j,t);return{style:n,fontSize:n.fontSize||sL.fontSize,capHeight:r,text:e,textSize:sw(e,n),lineHeight:a,backgroundPadding:sz(P,t)}}),C=((e,t)=>{let{ariaLabel:n,inline:a,className:i,title:o,events:l,direction:s,text:u,textAnchor:c,dx:d,dy:f,transform:p,x:h,y:g,desc:m,id:y,tabIndex:b,tspanComponent:v,textComponent:x}=e,_=r0(e),O={"aria-label":n,key:"text",...l,direction:s,dx:d,x:h,y:g+f,transform:p,className:i,title:o,desc:rs(m,e),tabIndex:rs(b,e),id:y,..._},w=u.map((n,i)=>{let o=t[i].style,l={key:`${y}-key-${i}`,x:a?void 0:h,dx:a?d+t[i].backgroundPadding.left:d,dy:((e,t,n)=>{let{inline:r}=t,a=sz(e,n);if(n&&!r){let r,a,i,o,l,s,u;return r=sz(e,n),i=(a=sz(e,n-1)).fontSize*a.lineHeight,o=r.fontSize*r.lineHeight,l=a.fontSize-a.capHeight,s=r.fontSize-r.capHeight,u=i-a.fontSize/2+r.fontSize/2-i/2+o/2-s/2+l/2,sF(t)?u+r.backgroundPadding.top+a.backgroundPadding.bottom:u}return r?0===n?a.backgroundPadding.top:void 0:a.backgroundPadding.top})(t,e,i),textAnchor:o.textAnchor||c,style:o,children:n};return r(eh).cloneElement(v,l)});return r(eh).cloneElement(x,O,w)})(O,M);if(_.backgroundStyle){let e=sF(O)?((e,t)=>{let{dy:n,dx:a,transform:i,backgroundStyle:o,backgroundPadding:l,backgroundComponent:s,inline:u,y:c}=e,d=t.map((e,r)=>{let i=sz(t,r-1),o=e.textSize,s=e.fontSize*e.lineHeight,d=Math.ceil(s),f=sz(l,r),p=sz(l,r-1),h=r&&!u?i.fontSize*i.lineHeight+p.top+p.bottom:n-.5*s-(e.fontSize-e.capHeight);return{textHeight:d,labelSize:o,heightWithPadding:d+f.top+f.bottom,widthWithPadding:o.width+f.left+f.right+(u&&a||0),y:c,fontSize:e.fontSize,dy:h}});return d.map((t,n)=>{let a=sR(e,t.labelSize.width),f=d.slice(0,n+1).reduce((e,t)=>e+t.dy,c),p=sz(l,n),h=t.heightWithPadding,g=u?((e,t,n)=>{let{textAnchor:r}=e,a=t.map(e=>e.widthWithPadding),i=a.reduce((e,t)=>e+t,0);switch(r){case"start":return a.reduce((e,t,r)=>r<n?e+t:e,0);case"end":return a.reduce((e,t,r)=>r>n?e-t:e,0);default:return a.reduce((e,t,r)=>r===n?e+t/2:e+(r<n?t:0),-i/2)}})(e,d,n)+a-p.left:a,m=u?sI(e,h)-p.top:f,y={key:`tspan-background-${n}`,height:h,style:sz(o,n),width:t.widthWithPadding,transform:i,x:g-p.left,y:m};return r(eh).cloneElement(s,r(e$)({},s.props,y))})})(O,M):((e,t)=>{let{dx:n=0,transform:a,backgroundComponent:i,backgroundStyle:o,inline:l,backgroundPadding:s,capHeight:u}=e,c=t.map(e=>e.textSize),d=l?Math.max(...c.map(e=>e.height)):c.reduce((e,n,r)=>e+n.height*(t[r].lineHeight-(r?0:u/2)),0),f=l?c.reduce((e,t,r)=>e+t.width+(r?n:0),0):Math.max(...c.map(e=>e.width)),p=sR(e,f),h=sI(e,d),g={key:"background",height:d+s.top+s.bottom,style:o,transform:a,width:f+s.left+s.right,x:l?p-s.left:p+n-s.left,y:h};return r(eh).cloneElement(i,r(e$)({},i.props,g))})(O,M),t=r(eh).cloneElement(_.groupComponent,{},[e,C]);return _.renderInPortal?r(eh).createElement(sk,null,t):t}return _.renderInPortal?r(eh).createElement(sk,null,C):C};sU.displayName="VictoryLabel",sU.role="label",sU.defaultStyles=sL;let sq={top:-1,left:-1,right:1,bottom:1},sB=function(e,t){void 0===t&&(t={});let n=e.style||{};return{parent:r(e$)(n.parent,t.parent,{height:"100%",width:"100%"}),axis:r(e$)({},n.axis,t.axis),axisLabel:r(e$)({},n.axisLabel,t.axisLabel),grid:r(e$)({},n.grid,t.grid),ticks:r(e$)({},n.ticks,t.ticks),tickLabels:r(e$)({},n.tickLabels,t.tickLabels)}},sV=(e,t,n)=>{let r=t||"positive";return n?({positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}})[r][e]:({positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}})[r][e]},sH=(e,t)=>e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t,sY={width:450,height:300,padding:50};class sG extends r(eh).Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:r(eh).createElement(su,null),axisLabelComponent:r(eh).createElement(sU,null),tickLabelComponent:r(eh).createElement(sU,null),tickComponent:r(eh).createElement(su,null),gridComponent:r(eh).createElement(su,null),standalone:!0,theme:au,containerComponent:r(eh).createElement(an,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=i0.getDomain;static getAxis=i0.getAxis;static getStyles(e){return sB(e)}static getBaseProps(e){return((e,t)=>{let n,a,i,o,l,s,u,c,d,f,p,h,g,m,y,b,v,x,_,O,w,S,k,P,j,M,C,E=i0.modifyProps(e,t),A=(n=(e=>{let{theme:t,dependentAxis:n}=e,a=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",o=t&&t[i]&&t[i].style;return a&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=r(e$)({},o[t],a[t]),e),{}):o||a})(E),a=sB(E,n),i=t8.getPadding(E.padding),o=((e,t)=>{let n=t.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;let r=i0.isVertical(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0})(E,a),l=i0.stringTicks(E)?E.tickValues:void 0,s=i0.getAxis(E),u=i0.getDomain(E),c=i0.getAxis(E),d=((e,t)=>{let{orientation:n,horizontal:r}=e;return n?({top:"x",bottom:"x",left:"y",right:"y"})[n]:r?"x"===t?"y":"x":t})(E,c),f=oy.getBaseScale(E,c),p=E.domain&&E.domain[c]||i0.getDomain(E)||f.domain(),f.range(t8.getRange(E,d)),f.domain(p),h=f,g="x"===s?h:void 0,m="y"===s?h:void 0,y=!1!==E.crossAxis&&!0!==E.standalone,b=i0.getTicks(E,h,y),v=i0.getTickFormat(E,h),x={x:t8.getRange(E,"x"),y:t8.getRange(E,"y")},_={x:E.domain&&E.domain.x?E.domain.x:"x"===s?u:void 0,y:E.domain&&E.domain.y?E.domain.y:"y"===s?u:void 0},O={x:E.domain&&E.domain.x?oy.getBaseScale(E,"x").domain(E.domain.x).range(E.horizontal?x.y:x.x):g,y:E.domain&&E.domain.y?oy.getBaseScale(E,"y").domain(E.domain.y).range(E.horizontal?x.x:x.y):m},P=(k=(S=(w=_.x&&_.y?i0.getOrigin(_):void 0)?{x:i0.getOriginSign(w.x,_.x),y:i0.getOriginSign(w.y,_.y)}:void 0)?{x:sV("x",S.y,E.horizontal),y:sV("y",S.x,E.horizontal)}:void 0)?E.orientation||k[s]:(e=>{if(e.orientation)return e.orientation;let t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent})(E),j=i0.isVertical(Object.assign({},E,{orientation:P})),{anchors:(M=({top:"end",left:"end",right:"start",bottom:"start"})[P],{textAnchor:j?M:"middle",verticalAnchor:j?"middle":M}),axis:s,crossAxis:y,domain:_,isVertical:j,labelPadding:o,orientation:P,orientations:k,origin:w,padding:i,scale:O,stringTicks:l,style:a,tickFormat:v,ticks:b}),{axis:T,style:D,orientation:L,isVertical:$,scale:N,ticks:z,tickFormat:F,anchors:R,domain:I,stringTicks:W}=A,U="x"===T?"y":"x",{width:q,height:B,standalone:V,theme:H,polar:Y,padding:G,horizontal:K}=E,{globalTransform:X,gridOffset:Q,gridEdge:J}=(C=A.domain.x&&A.domain.y?E.horizontal?((e,t)=>{let{scale:n,origin:r,orientation:a,orientations:i,domain:o,padding:l}=t,{top:s,bottom:u,left:c,right:d}=l,f={y:"bottom"===a||"top"===a?a:i.x,x:"left"===a||"right"===a?a:i.y},p={x:"bottom"===f.y?u:s,y:"left"===f.x?c:d},h={y:"left"===f.x?0:e.width,x:"bottom"===f.y?e.height:0},g={x:sH(r.x,o.x[0])||sH(r.x,o.x[1])?0:n.x(r.x),y:sH(r.y,o.y[0])||sH(r.y,o.y[1])?0:n.y(r.y)},m=g.x?Math.abs(h.x-g.x):p.x,y=g.y?Math.abs(h.y-g.y):p.y;return{x:null!=e.offsetX?e.offsetX:y,y:null!=e.offsetY?e.offsetY:m}})(E,A):((e,t)=>{let{scale:n,origin:r,orientation:a,orientations:i,domain:o,padding:l}=t,{top:s,bottom:u,left:c,right:d}=l,f={x:"bottom"===a||"top"===a?a:i.x,y:"left"===a||"right"===a?a:i.y},p={x:"left"===f.y?c:d,y:"bottom"===f.x?u:s},h={x:"left"===f.y?0:e.width,y:"bottom"===f.x?e.height:0},g={x:sH(r.x,o.x[0])||sH(r.x,o.x[1])?0:n.x(r.x),y:sH(r.y,o.y[0])||sH(r.y,o.y[1])?0:n.y(r.y)},m=g.x?Math.abs(h.x-g.x):p.x,y=g.y?Math.abs(h.y-g.y):p.y;return{x:null!=e.offsetX?e.offsetX:m,y:null!=e.offsetY?e.offsetY:y}})(E,A):((e,t)=>{let{style:n,scale:r,orientation:a,padding:i,axis:o,ticks:l,stringTicks:s,isVertical:u,labelPadding:c}=t,{polar:d,horizontal:f}=e,p={scale:{[o]:r},polar:d,horizontal:f,ticks:l,stringTicks:s},h="right"===a?i.right:i.left,g="top"===a?i.top:i.bottom,m=null!==e.offsetX&&void 0!==e.offsetX?e.offsetX:h,y=null!==e.offsetY&&void 0!==e.offsetY?e.offsetY:g,b=n.axisLabel.fontSize||14,v=b+2*Math.max(...l.map((t,r)=>{let a=s?e.tickValues[t-1]:t;return t8.evaluateStyle(n.ticks,Object.assign({},p,{tick:a,index:r})).size||0}))+c,x=1.2*b;return{x:null!=m?m:u?v:x,y:null!=y?y:u?x:v}})(E,A),{globalTransform:((e,t,n)=>{let{orientation:r,axis:a}=t,i=i0.getAxisValue(e,a);return({top:{x:0,y:void 0!==i?i:n.y},bottom:{x:0,y:void 0!==i?i:e.height-n.y},left:{x:void 0!==i?i:n.x,y:0},right:{x:void 0!==i?i:e.width-n.x,y:0}})[r]})(E,A,C),gridOffset:((e,t)=>{let{padding:n,orientation:r,crossAxis:a}=e,i="right"===r?n.right:n.left,o="top"===r?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}})(A,C),gridEdge:((e,t)=>{let{orientation:n,padding:r,isVertical:a}=t,i=-sq[n];return{x:a?i*(e.width-(r.left+r.right)):0,y:a?0:i*(e.height-(r.top+r.bottom))}})(E,A)}),Z={scale:{[T]:N[T]},polar:Y,horizontal:K,ticks:z,stringTicks:W},ee=((e,t,n)=>{let{style:r,padding:a,isVertical:i}=t,{width:o,height:l}=e;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}})(E,A,X),et=((e,t,n)=>{let{style:r,orientation:a,padding:i,labelPadding:o,isVertical:l}=t,s=sq[a],u=i.left+i.right,c=i.top+i.bottom,d=r.axisLabel;return{x:l?n.x+s*o:(e.width-u)/2+i.left+n.x,y:l?(e.height-c)/2+i.top+n.y:s*o+n.y,verticalAnchor:d.verticalAnchor||(s<0?"end":"start"),textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?l?-90:0:d.angle,style:d,text:e.label}})(E,A,X),en={parent:Object.assign({style:D.parent,ticks:z,standalone:V,theme:H,width:q,height:B,padding:G,domain:I},Z)},er={dimension:U,range:{[U]:t8.getRange(E,U)},scale:E.scale&&E.scale[U]?{[U]:E.scale[U]}:void 0};return z.reduce((e,t,n)=>{let r,a,i=W?W[n]:t,o=F(t,n,z),l=(r=Object.assign({},Z,{tick:i,tickValue:t,index:n,text:o}),{tickStyle:t8.evaluateStyle(D.ticks,r),labelStyle:t8.evaluateStyle(D.tickLabels,r),gridStyle:t8.evaluateStyle(D.grid,r)}),s={position:((e,t,n)=>{let{tickStyle:r,labelStyle:a}=e,i=r.size||0,o=i+(r.padding||0)+(a.padding||0),l=sq[t];return{x:n?l*o:0,x2:n?l*i:0,y:n?0:l*o,y2:n?0:l*i}})(l,L,$),transform:(a=N[T]?.(t),{x:$?X.x:a+X.x,y:$?a+X.y:X.y})},u={edge:J,transform:{x:$?-Q.x+X.x:N[T]?.(t)+X.x,y:$?N[T]?.(t)+X.y:Q.y+X.y}};return e[n]={axis:Object.assign({dimension:T},Z,ee),axisLabel:Object.assign({},Z,et),ticks:Object.assign({},Z,((e,t,n)=>{let{position:r,transform:a}=e;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}})(s,l.tickStyle,t)),tickLabels:Object.assign({},Z,((e,t,n,r,a)=>{let{position:i,transform:o}=e;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}})(s,l.labelStyle,R,t,o)),grid:Object.assign({},Z,er,((e,t,n)=>{let{edge:r,transform:a}=e;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}})(u,l.gridStyle,t))},e},en)})(e,sY)}static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(e){let{axisComponent:t}=e,n=this.getComponentProps(t,"axis",0);return r(eh).cloneElement(t,n)}renderLabel(e){let{axisLabelComponent:t,label:n}=e;if(!n)return null;let a=this.getComponentProps(t,"axisLabel",0);return r(eh).cloneElement(t,a)}renderGridAndTicks(e){let{tickComponent:t,tickLabelComponent:n,gridComponent:a,name:i}=e,o=e=>{let{style:t={},events:n={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!r(tR)(n)};return this.dataKeys.map((l,s)=>{let u=this.getComponentProps(t,"ticks",s),c=r(eh).cloneElement(t,u),d=o(c.props)?c:void 0,f=this.getComponentProps(a,"grid",s),p=r(eh).cloneElement(a,f),h=o(p.props)?p:void 0,g=this.getComponentProps(n,"tickLabels",s),m=[h,d,r(eh).cloneElement(n,g)].filter(Boolean);return r(eh).cloneElement(e.groupComponent,{key:`${i}-tick-group-${l}`},m)})}fixLabelOverlap(e,t){let n=i0.isVertical(t),r=n?t.height:t.width,a=e=>e.type&&"label"===e.type.role,i=e.map(e=>e.props.children).reduce((e,t)=>e.concat(t),[]).filter(a).map(e=>e.props).reduce((e,t)=>{let r,a="object"==typeof(r=t.style.padding)?Object.assign({},{top:0,right:0,bottom:0,left:0},r):{top:r,right:r,bottom:r,left:r},i=sc.approximateTextSize(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(n?i.height+a.top+a.bottom:i.width+a.right+a.left)},0),o=Math.floor(r*e.length/i),l=Math.ceil(e.length/o)||1,s=e=>e.props.children.filter(a).reduce((e,t)=>(n?t.props.y:t.props.x)||0,0);return e.sort((e,t)=>n?s(t)-s(e):s(e)-s(t)).filter((e,t)=>t%l==0)}shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e}=sK,t=i0.modifyProps(this.props,sY),n=rX.getSafeUserProps(this.props);if(this.shouldAnimate())return this.animateComponent(t,e);let a=this.renderGridAndTicks(t),i=t.fixLabelOverlap?this.fixLabelOverlap(a,t):a,o=[this.renderLine(t),this.renderLabel(t),...i],l=r(eh).cloneElement(t.containerComponent,n);return t.standalone?this.renderContainer(l,o):r(eh).cloneElement(t.groupComponent,n,o)}}let sK=si(sG,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});var eh=(o("8NFma"),o("8NFma"),o("8NFma"));function sX(){return(sX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let sQ=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("path",sX({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("path",sX({},s,{ref:t}))}),sJ={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},sZ=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,sJ)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({stroke:"black",fill:"none"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.pathComponent,{...s.events,"aria-label":s.ariaLabel,d:(e=>{let{cx:t,cy:n,r:r,startAngle:a,endAngle:i,closedPath:o}=e,l=Math.abs(i-a)/2+a,s=t+r*Math.cos(rc(a)),u=n-r*Math.sin(rc(a)),c=t+r*Math.cos(rc(l)),d=n-r*Math.sin(rc(l)),f=t+r*Math.cos(rc(i)),p=n-r*Math.sin(rc(i)),h=l-a<=180?0:1,g=i-l<=180?0:1,m=o?` M ${t}, ${n} L ${s}, ${u}`:`M ${s}, ${u}`,y=`A ${r}, ${r}, 0, ${h}, 0, ${c}, ${d}`,b=`A ${r}, ${r}, 0, ${g}, 0, ${f}, ${p}`;return`${m} ${y} ${b} ${o?"Z":""}`})(s),style:s.style,desc:s.desc,tabIndex:s.tabIndex,className:s.className,role:s.role,shapeRendering:s.shapeRendering,transform:s.transform,clipPath:s.clipPath})},s0=(e,t,n)=>"x"===n?e*Math.cos(t):-e*Math.sin(t),s5=e=>{let t=e.dependentAxis?"radial":"angular";return e.horizontal?"angular"===t?"radial":"angular":t},s1=(e,t)=>({tickStyle:t8.evaluateStyle(e.ticks,t),labelStyle:t8.evaluateStyle(e.tickLabels,t),gridStyle:t8.evaluateStyle(e.grid,t)}),s2=e=>{let{left:t,right:n,top:r,bottom:a}=t8.getPadding(e.padding),{width:i,height:o}=e;if(void 0===i||void 0===o)throw Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(i-t-n,o-r-a)/2},s6=(e,t)=>{if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if("angular"===s5(e))return[t8.degreesToRadians(e.startAngle),t8.degreesToRadians(e.endAngle)];let n=s2(e);return[e.innerRadius||0,n]},s3=e=>{let t=i0.getAxis(e),n=oy.getBaseScale(e,t),r=i0.getDomain(e,t)||n.domain(),a=s6(e,t);return n.range(a),n.domain(r),n},s7=function(e,t){if(void 0===t&&(t={}),e.disableInlineStyles)return{};let n=e.style||{};return{parent:r(e$)({height:"auto",width:"100%"},n.parent,t.parent),axis:r(e$)({},n.axis,t.axis),axisLabel:r(e$)({},n.axisLabel,t.axisLabel),grid:r(e$)({},n.grid,t.grid),ticks:r(e$)({},n.ticks,t.ticks),tickLabels:r(e$)({},n.tickLabels,t.tickLabels)}},s4=e=>{let{axisAngle:t,startAngle:n,dependentAxis:r}=e,a=i0.getAxis(e),i=i0.getAxisValue(e,a);return void 0!==i&&r?t8.radiansToDegrees(i):void 0===t?n:t},s8={width:450,height:300,padding:50};class s9 extends r(eh).Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:r(eh).createElement(su,null),axisLabelComponent:r(eh).createElement(sU,null),circularAxisComponent:r(eh).createElement(sZ,null),circularGridComponent:r(eh).createElement(sZ,null),containerComponent:r(eh).createElement(an,null),endAngle:360,gridComponent:r(eh).createElement(su,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:au,tickComponent:r(eh).createElement(su,null),tickLabelComponent:r(eh).createElement(sU,null)};static getDomain=i0.getDomain;static getAxis=i0.getAxis;static getScale(e){return s3(e)}static getStyles(e){return s7(e,s8.style)}static getBaseProps(e){return((e,t)=>{let n,a,i,o,l,s,u,c,d,f,p,h,g,m=i0.modifyProps(e,t),y=(a=(e=>{let{theme:t={},dependentAxis:n}=e,a=t.polarAxis&&t.polarAxis.style||t.axis&&t.axis.style,i=t?.[n?"polarDependentAxis":"polarIndependentAxis"]?.style||t?.[n?"dependentAxis":"independentAxis"]?.style;return a&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=r(e$)({},i?.[t],a?.[t]),e),{}):i||a})(n=Object.assign({polar:!0},m)),i=s7(n,a),o=t8.getPadding(n.padding),l=i0.getAxis(n),s=s5(n),u=i0.stringTicks(n)?n.tickValues:void 0,c=i0.getDomain(n,l),d=s6(n,l),f=s3(n),p=i0.getTicks(n,f),h="angular"===s?r(iZ)(p,e=>f(e)%(2*Math.PI)):p,g=i0.getTickFormat(n,f),{axis:l,style:i,padding:o,stringTicks:u,axisType:s,scale:f,ticks:h,tickFormat:g,domain:c,range:d,radius:s2(n),origin:t8.getPolarOrigin(n)}),{style:b,scale:v,ticks:x,domain:_}=y,{width:O,height:w,standalone:S,theme:k,name:P}=m,j=((e,t)=>{let{style:n,axisType:r,radius:a,origin:i}=t,{startAngle:o,endAngle:l,innerRadius:s=0}=e,u="radial"===r?t8.degreesToRadians(s4(e)):void 0;return"radial"===r?{style:n.axis,x1:s0(s,u,"x")+i.x,x2:s0(a,u,"x")+i.x,y1:s0(s,u,"y")+i.y,y2:s0(a,u,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}})(m,y),M=((e,t)=>{let{axisType:n,radius:r,style:a,origin:i}=t,{axisLabelComponent:o}=e;if("radial"!==n)return{};let l=o?.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u="radial"===n?s4(e):void 0,c=void 0===s.angle?sP.getPolarAngle(Object.assign({},e,{labelPlacement:l}),u):s.angle,d=r+(s.padding||0),f=s.textAnchor||sP.getPolarTextAnchor(Object.assign({},e,{labelPlacement:l}),u),p=s.verticalAnchor||sP.getPolarVerticalAnchor(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:f,verticalAnchor:p,text:e.label,x:s0(d,t8.degreesToRadians(u),"x")+i.x,y:s0(d,t8.degreesToRadians(u),"y")+i.y}})(m,y),C={parent:{style:b.parent,ticks:x,scale:v,width:O,height:w,domain:_,standalone:S,theme:k,name:P}};return x.reduce((e,t,n)=>(e[n]={axis:j,axisLabel:M,ticks:((e,t,n,r)=>{let{axisType:a,radius:i,scale:o,style:l,stringTicks:s,ticks:u,tickFormat:c,origin:d}=t,f=c(n,r,u),p=s?s[r]:n,{tickStyle:h}=s1(l,{tick:p,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:f}),g="radial"===a?s4(e):void 0,m=h.padding||h.size||0,y=t8.degreesToRadians(90-g),b="angular"===a?o(n):t8.degreesToRadians(-1*g),v="angular"===a?i:o(n);return"angular"===a?{index:r,datum:p,style:h,x1:s0(v,b,"x")+d.x,y1:s0(v,b,"y")+d.y,x2:s0(v+m,b,"x")+d.x,y2:s0(v+m,b,"y")+d.y}:{index:r,datum:p,style:h,x1:v*Math.cos(b)+Math.cos(y)*m+d.x,x2:v*Math.cos(b)-Math.cos(y)*m+d.x,y1:v*Math.sin(b)+Math.sin(y)*m+d.y,y2:v*Math.sin(b)-Math.sin(y)*m+d.y}})(m,y,t,n),tickLabels:((e,t,n,r)=>{let{axisType:a,radius:i,tickFormat:o,style:l,scale:s,ticks:u,stringTicks:c,origin:d}=t,f=o(n,r,u),p=c?c[r]:n,{labelStyle:h}=s1(l,{text:f,tick:p,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),{tickLabelComponent:g}=e,m=g?.props.labelPlacement?g.props.labelPlacement:e.labelPlacement,y=h.padding||0,b="radial"===a?s4(e):void 0,v="angular"===a?t8.radiansToDegrees(s(n)):b+0,x=void 0===h.angle?sP.getPolarAngle(Object.assign({},e,{labelPlacement:m}),v):h.angle,_="angular"===a?i+y:s(n),O=h.textAnchor||sP.getPolarTextAnchor(Object.assign({},e,{labelPlacement:m}),v);return{index:r,datum:p,style:h,angle:x,textAnchor:O,text:f,x:_*Math.cos(t8.degreesToRadians(v))+d.x,y:-_*Math.sin(t8.degreesToRadians(v))+d.y}})(m,y,t,n),grid:((e,t,n,r)=>{let{axisType:a,radius:i,style:o,scale:l,stringTicks:s,ticks:u,tickFormat:c,origin:d}=t,f=c(n,r,u),{startAngle:p,endAngle:h,innerRadius:g=0}=e,m=s?s[r]:n,{gridStyle:y}=s1(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:f}),b=l(n);return"angular"===a?{index:r,datum:m,style:y,x1:s0(i,b,"x")+d.x,y1:s0(i,b,"y")+d.y,x2:s0(g,b,"x")+d.x,y2:s0(g,b,"y")+d.y}:{style:y,index:r,datum:m,cx:d.x,cy:d.y,r:l(n),startAngle:p,endAngle:h}})(m,y,t,n)},e),C)})(e,s8)}static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(e){let{dependentAxis:t}=e,n=t?e.axisComponent:e.circularAxisComponent,a=this.getComponentProps(n,"axis",0);return r(eh).cloneElement(n,a)}renderLabel(e){let{axisLabelComponent:t,dependentAxis:n,label:a}=e;if(!a||!n)return null;let i=this.getComponentProps(t,"axisLabel",0);return r(eh).cloneElement(t,i)}renderAxis(e){let{tickComponent:t,tickLabelComponent:n,name:a}=e,i=e=>{let{style:t={},events:n={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!r(tR)(n)},o="radial"==(e.dependentAxis?"radial":"angular")?e.circularGridComponent:e.gridComponent,l=this.dataKeys.map((e,n)=>{let o=Object.assign({key:`${a}-tick-${e}`},this.getComponentProps(t,"ticks",n)),l=r(eh).cloneElement(t,o);return i(l.props)?l:void 0}).filter(Boolean),s=this.dataKeys.map((e,t)=>{let n=Object.assign({key:`${a}-grid-${e}`},this.getComponentProps(o,"grid",t)),l=r(eh).cloneElement(o,n);return i(l.props)?l:void 0}).filter(Boolean),u=this.dataKeys.map((e,t)=>{let i=Object.assign({key:`${a}-tick-${e}`},this.getComponentProps(n,"tickLabels",t));return r(eh).cloneElement(n,i)}),c=[this.renderAxisLine(e),this.renderLabel(e),...l,...s,...u];return this.renderGroup(e,c)}renderGroup(e,t){let{groupComponent:n}=e;return r(eh).cloneElement(n,{},t)}shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e}=ue,t=i0.modifyProps(this.props,s8);if(this.shouldAnimate())return this.animateComponent(t,e);let n=this.renderAxis(t);return t.standalone?this.renderContainer(t.containerComponent,n):n}}let ue=si(s9,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});var eh=o("8NFma");let ut={width:450,height:300,padding:50};function un(e,t){let n,a=(n=e.style&&e.style.parent,{parent:r(e$)({},n,{height:"100%",width:"100%",userSelect:"none"})}),i=t8.modifyProps(e,ut,"chart"),{horizontal:o,polar:l}=i,s=aJ.getStringsFromChildren(i,t),u=aJ.getCategories(i,t,s),c=ui(i,t,s),d={x:ua(Object.assign({},i,{categories:u}),"x",t),y:ua(Object.assign({},i,{categories:u}),"y",t)},f={x:t8.getRange(i,"x"),y:t8.getRange(i,"y")},p={x:oy.getScaleFromProps(i,"x")||aJ.getScale(i,"x"),y:oy.getScaleFromProps(i,"y")||aJ.getScale(i,"y")},h={x:p.x.domain(d.x).range(o?f.y:f.x),y:p.y.domain(d.y).range(o?f.x:f.y)},g=l?t8.getPolarOrigin(i):i0.getOrigin(d);return{categories:u,domain:d,range:f,horizontal:o,scale:h,stringMap:c,style:a,origin:g,padding:t8.getPadding(i.padding)}}let ur=(e,t)=>{let n=r(eh).Children.toArray(e.children);if(0===n.length)n.push(t.independent,t.dependent);else{let r={dependent:i0.getAxisComponentsWithParent(n,"dependent"),independent:i0.getAxisComponentsWithParent(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},ua=(e,t,n)=>{let a=n||r(eh).Children.toArray(e.children),i=aJ.getDomain(e,t,a),o=i0.getAxisComponent(a,t);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},ui=(e,t,n)=>({x:n.x&&0!==n.x.length?n.x.reduce((e,t,n)=>(e[t]=n+1,e),{}):null,y:n.y&&0!==n.y.length?n.y.reduce((e,t,n)=>(e[t]=n+1,e),{}):null}),uo={width:450,height:300,padding:50},ul={backgroundComponent:r(eh).createElement(e=>{var t;let n,a=(n=rs((t=r(e$)({},e,rM)).id,t),Object.assign({},t,{id:n}));return a.polar?r(eh).cloneElement(a.circleComponent,{...a.events,style:a.style,role:a.role,shapeRendering:a.shapeRendering,cx:a.x,cy:a.y,r:a.height,className:a.className}):r(eh).cloneElement(a.rectComponent,{...a.events,style:a.style,role:a.role,shapeRendering:a.shapeRendering,x:a.x,y:a.y,rx:a.rx,ry:a.ry,width:a.width,height:a.height,className:a.className})},null),containerComponent:r(eh).createElement(an,null),defaultAxes:{independent:r(eh).createElement(sK,null),dependent:r(eh).createElement(sK,{dependentAxis:!0})},defaultPolarAxes:{independent:r(eh).createElement(ue,null),dependent:r(eh).createElement(ue,{dependentAxis:!0})},groupComponent:r(eh).createElement("g",null),standalone:!0,theme:au},us=r(eh).memo(e=>{let t=r(eh).useMemo(()=>r(e$)({},e,ul),[e]),{getAnimationProps:n,setAnimationState:a,getProps:i}=rC.useAnimationState(),o=i(t),l=t8.modifyProps(o,uo,"chart"),{desc:s,eventKey:u,containerComponent:c,standalone:d,groupComponent:f,externalEventMutations:p,width:h,height:g,theme:m,polar:y,name:b,title:v}=l,x=o.polar?l.defaultPolarAxes:l.defaultAxes,_=r(eh).useMemo(()=>ur(l,x),[l,x]),O=r(eh).useMemo(()=>un(l,_),[l,_]),{domain:w,scale:S,style:k,origin:P,horizontal:j}=O,M=r(eh).useMemo(()=>{let e=(function(e,t,n){let a=t||ur(e),i=n||un(e,a),o=i.style.parent,{height:l,polar:s,theme:u,width:c}=e,{origin:d,horizontal:f}=i,p=e.name||"chart";return a.filter(r(eh).isValidElement).map((t,n)=>{let a=t.type&&t.type.role,h=Array.isArray(t.props.style)?t.props.style:r(e$)({},t.props.style,{parent:o}),g=function(e,t,n){let r=i0.findAxisComponents([e]);if(r.length>0)return function(e,t,n){let{domain:r,scale:a,stringMap:i,categories:o,horizontal:l}=n;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}(r[0],t,n);let{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}=n;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}(t,e,i),m=t.props.name||`${p}-${a}-${n}`,y=r(e$)({horizontal:f,height:l,polar:s,theme:u,width:c,style:h,name:m,origin:s?d:void 0,padding:i.padding,key:`${m}-key-${n}`,standalone:!1},g);return r(eh).cloneElement(t,y)})})(o,_,O).map((e,t)=>{let a=Object.assign({animate:n(o,e,t)},e.props);return r(eh).cloneElement(e,a)});if(o.style&&o.style.background){let t,n,a,i,l,s,u,c,d,f=(t=o.backgroundComponent,n=o.polar?O.range.y[1]:O.range.y[0]-O.range.y[1],a=O.range.x[1]-O.range.x[0],i=o.horizontal?O.scale.y.range()[0]:O.scale.x.range()[0],l=o.horizontal?O.scale.x.range()[1]:O.scale.y.range()[1],s=o.polar?O.origin.x:i,u=o.polar?O.origin.y:l,c=o.name||"chart",d={height:n,polar:o.polar,scale:O.scale,style:o.style.background,x:s,y:u,key:`${c}-background`,width:a},r(eh).cloneElement(t,r(e$)({},t.props,d)));e.unshift(f)}return e},[n,_,o,O]),C=r(eh).useMemo(()=>d?{desc:s,domain:w,width:h,height:g,horizontal:j,name:b,origin:y?P:void 0,polar:y,theme:m,title:v,scale:S,standalone:d,style:k.parent}:{},[s,w,g,j,b,P,y,S,d,k,v,m,h]),E=r(eh).useMemo(()=>{if(d){let e=r(e$)({},c.props,C,rX.getSafeUserProps(t));return r(eh).cloneElement(c,e)}return f},[f,d,c,C,t]),A=r(eh).useMemo(()=>aJ.getAllEvents(o),[o]),T=rC.usePreviousProps(t);return(r(eh).useEffect(()=>()=>{t.animate&&a(T,t)},[a,T,t]),r(tR)(A))?r(eh).cloneElement(E,E.props,M):r(eh).createElement(l1,{container:E,eventKey:u,events:A,externalEventMutations:p},M)},r(lY));function uu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}us.displayName="VictoryChart",us.expectedComponents=["groupComponent","containerComponent"],"function"==typeof SuppressedError&&SuppressedError;var uc='var(--pf-v6-chart-global--FontFamily, "Red Hat Text", "RedHatText", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif)',ud="var(--pf-v6-chart-global--label--Fill, #1f1f1f)";let uf=uc.replace(/"/g,"'"),up=uf,uh=14,ug="var(--pf-v6-chart-global--letter-spacing, normal)",um=8,uy=ud,ub=16,uv="right",ux=30,u_={fill:"var(--pf-v6-chart-bullet--label--grouptitle--Fill, #1f1f1f)",fontSize:22},uO={fill:"var(--pf-v6-chart-bullet--label--subtitle--Fill, #a3a3a3)",fontSize:14},uw={fill:"var(--pf-v6-chart-bullet--label--title--Fill, #1f1f1f)",fontSize:18},uS=6,uk=9,uP=30,uj={fill:"var(--pf-v6-chart-donut--label--subtitle--Fill, #a3a3a3)",fontSize:14},uM="center",uC={fill:"var(--pf-v6-chart-donut--label--title--Fill, #1f1f1f)",fontSize:22},uE=["var(--pf-v6-chart-donut--threshold--warning--Color, #dca614)","var(--pf-v6-chart-donut--threshold--danger--Color, #b1380b)"];var uA={},uT={},uD={};uD=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var uL={},u$={};u$=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),a?n0(n,l,s):nZ(n,l,s)}return n},uL=function(e,t){return e&&u$(t,ih(t),e)};var uN={};uN=function(e,t){return e&&u$(t,th(t),e)};var uz=o("lJ72B"),uF={};uF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var uR={};uR=function(e,t){return u$(e,iz(e),t)};var uI={};uI=function(e,t){return u$(e,om(e),t)};var uW={},uU=Object.prototype.hasOwnProperty;uW=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&uU.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var uq={},uB={};uB=function(e){var t=new e.constructor(e.byteLength);return new iE(t).set(new iE(e)),t};var uV={};uV=function(e,t){var n=t?uB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var uH={},uY=/\w*$/;uH=function(e){var t=new e.constructor(e.source,uY.exec(e));return t.lastIndex=e.lastIndex,t};var uG={},uK=eK?eK.prototype:void 0,uX=uK?uK.valueOf:void 0;uG=function(e){return uX?Object(uX.call(e)):{}};var uQ={};uQ=function(e,t){var n=t?uB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},uq=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return uB(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return uV(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return uQ(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return uH(e);case"[object Symbol]":return uG(e)}};var uJ={},uZ={},u0=Object.create;uZ=function(){function e(){}return function(t){if(!e3(t))return{};if(u0)return u0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),uJ=function(e){return"function"!=typeof e.constructor||tD(e)?{}:uZ(on(e))};var tS=o("9e2tS"),u5={},u1={};u1=function(e){return tv(e)&&"[object Map]"==tB(e)};var tC=o("fwpsA"),u2=tC&&tC.isMap;u5=u2?tM(u2):u1;var u6={},u3={};u3=function(e){return tv(e)&&"[object Set]"==tB(e)};var tC=o("fwpsA"),u7=tC&&tC.isSet;u6=u7?tM(u7):u3;var u4="[object Arguments]",u8="[object Function]",u9="[object Object]",ce={};ce[u4]=ce["[object Array]"]=ce["[object ArrayBuffer]"]=ce["[object DataView]"]=ce["[object Boolean]"]=ce["[object Date]"]=ce["[object Float32Array]"]=ce["[object Float64Array]"]=ce["[object Int8Array]"]=ce["[object Int16Array]"]=ce["[object Int32Array]"]=ce["[object Map]"]=ce["[object Number]"]=ce[u9]=ce["[object RegExp]"]=ce["[object Set]"]=ce["[object String]"]=ce["[object Symbol]"]=ce["[object Uint8Array]"]=ce["[object Uint8ClampedArray]"]=ce["[object Uint16Array]"]=ce["[object Uint32Array]"]=!0,ce["[object Error]"]=ce[u8]=ce["[object WeakMap]"]=!1,uT=function e(t,n,r,a,i,o){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=i?r(t,a,i,o):r(t)),void 0!==l)return l;if(!e3(t))return t;var d=tw(t);if(d){if(l=uW(t),!s)return uF(t,l)}else{var f=tB(t),p=f==u8||"[object GeneratorFunction]"==f;if(tS(t))return uz(t,s);if(f==u9||f==u4||p&&!i){if(l=u||p?{}:uJ(t),!s)return u?uI(t,uN(l,t)):uR(t,uL(l,t))}else{if(!ce[f])return i?t:{};l=uq(t,f,s)}}o||(o=new ib);var h=o.get(t);if(h)return h;o.set(t,l),u6(t)?t.forEach(function(a){l.add(e(a,n,r,a,t,o))}):u5(t)&&t.forEach(function(a,i){l.set(i,e(a,n,r,i,t,o))});var g=c?u?og:i$:u?th:ih,m=d?void 0:g(t);return uD(m||t,function(a,i){m&&(a=t[i=a]),nZ(l,i,e(a,n,r,i,t,o))}),l},uA=function(e){return uT(e,5)};var ct={},cn={},cr={};cr=function(e,t,n){(void 0===n||ts(e[t],n))&&(void 0!==n||t in e)||n0(e,t,n)};var ca={},uz=o("lJ72B"),ci={};ci=function(e){return tv(e)&&tc(e)};var tS=o("9e2tS"),co={};co=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var cl={};cl=function(e){return u$(e,th(e))},ca=function(e,t,n,r,a,i,o){var l=co(e,n),s=co(t,n),u=o.get(s);if(u)return void cr(e,n,u);var c=i?i(l,s,n+"",e,t,o):void 0,d=void 0===c;if(d){var f=tw(s),p=!f&&tS(s),h=!f&&!p&&tk(s);c=s,f||p||h?tw(l)?c=l:ci(l)?c=uF(l):p?(d=!1,c=uz(s,!0)):h?(d=!1,c=uQ(s,!0)):c=[]:ot(s)||ty(s)?(c=l,ty(l)?c=cl(l):(!e3(l)||eY(l))&&(c=uJ(s))):d=!1}d&&(o.set(s,c),a(c,s,r,i,o),o.delete(s)),cr(e,n,c)},cn=function e(t,n,r,a,i){t!==n&&ip(n,function(o,l){if(i||(i=new ib),e3(o))ca(t,n,l,r,e,a,i);else{var s=a?a(co(t,l),o,l+"",t,n,i):void 0;void 0===s&&(s=o),cr(t,l,s)}},th)};ct=function(e){return eN(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&tu(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t})}(function(e,t,n){cn(e,t,n)});let cs="blue",cu="teal",cc="yellow",cd="gray",cf="green",cp="multi",ch="multi-ordered",cg="multi-unordered",cm="orange",cy="purple",cb="skeleton";var cv="var(--pf-v6-chart-axis--tick--stroke--Color, #c7c7c7)";let cx={fontFamily:uc.replace(/"/g,"'"),fontSize:14,letterSpacing:"normal",padding:10,stroke:"var(--pf-v6-chart-global--label--stroke, transparent)",fill:ud},c_=Object.assign(Object.assign({},cx),{textAnchor:"middle"}),cO={padding:50,height:300,width:450},cw="round",cS="round",ck={area:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-area--data--Fill, #1f1f1f)",fillOpacity:.3,strokeWidth:2},labels:c_}}),axis:Object.assign(Object.assign({},cO),{style:{axis:{fill:"var(--pf-v6-chart-axis--axis--Fill, transparent)",strokeWidth:1,stroke:"var(--pf-v6-chart-axis--axis--stroke--Color, #c7c7c7)",strokeLinecap:cw,strokeLinejoin:cS},axisLabel:Object.assign(Object.assign({},c_),{padding:40,stroke:"var(--pf-v6-chart-axis--axis-label--stroke--Color, transparent)"}),grid:{fill:"var(--pf-v6-chart-axis--grid--Fill, none)",stroke:"transparent",pointerEvents:"painted",strokeLinecap:cw,strokeLinejoin:cS},ticks:{fill:"var(--pf-v6-chart-axis--tick--Fill, transparent)",size:5,stroke:cv,strokeLinecap:cw,strokeLinejoin:cS,strokeWidth:1},tickLabels:Object.assign(Object.assign({},cx),{fill:"var(--pf-v6-chart-axis--tick-label--Fill, #383838)"})}}),bar:Object.assign(Object.assign({},cO),{barWidth:10,style:{data:{fill:"var(--pf-v6-chart-bar--data--Fill, #1f1f1f)",padding:8,stroke:"var(--pf-v6-chart-bar--data--stroke, none)",strokeWidth:0},labels:cx}}),boxplot:Object.assign(Object.assign({},cO),{style:{max:{padding:8,stroke:"var(--pf-v6-chart-boxplot--max--stroke--Color, #1f1f1f)",strokeWidth:1},maxLabels:cx,median:{padding:8,stroke:"var(--pf-v6-chart-boxplot--median--stroke--Color, #1f1f1f)",strokeWidth:1},medianLabels:cx,min:{padding:8,stroke:"var(--pf-v6-chart-boxplot--min--stroke--Color, #1f1f1f)",strokeWidth:1},minLabels:cx,q1:{fill:"var(--pf-v6-chart-boxplot--lower-quartile--Fill, #707070)",padding:8},q1Labels:cx,q3:{fill:"var(--pf-v6-chart-boxplot--upper-quartile--Fill, #707070)",padding:8},q3Labels:cx},boxWidth:20}),candlestick:Object.assign(Object.assign({},cO),{candleColors:{positive:"var(--pf-v6-chart-candelstick--candle--positive--Color, #ffffff)",negative:"var(--pf-v6-chart-candelstick--candle--negative--Color, #1f1f1f)"},style:{data:{stroke:"var(--pf-v6-chart-candelstick--data--stroke--Color, #1f1f1f)",strokeWidth:1},labels:c_}}),chart:Object.assign({},cO),errorbar:Object.assign(Object.assign({},cO),{borderWidth:8,style:{data:{fill:"var(--pf-v6-chart-errorbar--data--Fill, transparent)",opacity:1,stroke:"var(--pf-v6-chart-errorbar--data-stroke--Color, #1f1f1f)",strokeWidth:2},labels:c_}}),group:Object.assign({},cO),legend:{gutter:20,orientation:"horizontal",titleOrientation:"top",style:{data:{type:"square"},labels:cx,title:Object.assign(Object.assign({},cx),{fontSize:14,padding:2})}},line:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-line--data--Fill, transparent)",opacity:1,stroke:"var(--pf-v6-chart-line--data--stroke--Color, #1f1f1f)",strokeWidth:2},labels:c_}}),pie:{padding:20,style:{data:{padding:8,stroke:"var(--pf-v6-chart-pie--data--stroke--Color, transparent)",strokeWidth:1},labels:Object.assign(Object.assign({},cx),{padding:8})},height:230,width:230},scatter:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-scatter--data--Fill, #1f1f1f)",opacity:1,stroke:"var(--pf-v6-chart-scatter--data--stroke--Color, transparent)",strokeWidth:0},labels:c_}}),stack:Object.assign(Object.assign({},cO),{style:{data:{strokeWidth:1}}}),tooltip:{cornerRadius:6,flyoutPadding:8,flyoutStyle:{cornerRadius:6,fill:"var(--pf-v6-chart-tooltip--flyoutStyle--Fill, #1f1f1f)",pointerEvents:"var(--pf-v6-chart-tooltip--flyoutStyle--PointerEvents, none)",stroke:"var(--pf-v6-chart-tooltip--flyoutStyle--stroke--Color, #1f1f1f)",strokeWidth:"var(--pf-v6-chart-tooltip--flyoutStyle--stroke--Width, 0)"},pointerLength:10,pointerWidth:20,style:{fill:"var(--pf-v6-chart-tooltip--Fill, #e0e0e0)",pointerEvents:"var(--pf-v6-chart-tooltip--PointerEvents, none)"}},voronoi:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-voronoi--data--Fill, transparent)",stroke:"var(--pf-v6-chart-voronoi--data--stroke--Color, transparent)",strokeWidth:0},labels:Object.assign(Object.assign({},c_),{fill:"var(--pf-v6-chart-voronoi--labels--Fill, #e0e0e0)",padding:8,pointerEvents:"none"}),flyout:{fill:"var(--pf-v6-chart-voronoi--flyout--stroke--Fill, #1f1f1f)",pointerEvents:"var(--pf-v6-chart-voronoi--flyout--PointerEvents, none)",stroke:"var(--pf-v6-chart-voronoi--flyout--stroke--Color, #1f1f1f)",strokeWidth:"var(--pf-v6-chart-voronoi--flyout--stroke--Width, 1)"}}})},cP={axis:{},bullet:{chart:{height:140}},bulletComparativeErrorMeasure:{bar:{height:140,style:{data:{strokeWidth:1}}}},bulletComparativeMeasure:{bar:{height:140,style:{data:{strokeWidth:1}}}},bulletComparativeWarningMeasure:{bar:{height:140,style:{data:{strokeWidth:2}}}},bulletGroupTitle:{chart:{padding:{bottom:0,left:0,right:0,top:50}},line:{style:{data:{strokeWidth:2}}}},bulletPrimaryDotMeasure:{group:{height:140}},bulletPrimaryNegativeMeasure:{group:{height:140}},bulletPrimarySegmentedMeasure:{group:{height:140}},bulletQualitativeRange:{group:{height:140}},donut:{pie:{height:230,padding:20,padAngle:1,width:230}},donutThresholdDynamic:{pie:{height:202,padding:202,width:20}},donutThresholdStatic:{pie:{height:230,padAngle:1,padding:20,width:230}},donutUtilization:{pie:{height:230,padding:20,padAngle:1,width:230}},threshold:{line:{style:{data:{strokeDasharray:"4,2",strokeWidth:1.5}}}}};var cj="var(--pf-v6-chart-donut--threshold--second--Color, #c7c7c7)",cM="var(--pf-v6-chart-donut--threshold--third--Color, #a3a3a3)",cC="var(--pf-v6-chart-donut--threshold--first--Color, #e0e0e0)",cE="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--100, #f2f2f2)",cA="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--200, #e0e0e0)",cT="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--300, #c7c7c7)",cD="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--400, #a3a3a3)",cL="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--500, #707070)";let c$=e=>{let{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},cN=e=>{let{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:"var(--pf-v6-chart-axis--grid--stroke--Color, #c7c7c7)"},ticks:{stroke:cv}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--error--Fill--Color, #b1380b)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--error--stroke--Color, #b1380b)"}}}},bulletComparativeMeasure:{bar:{height:140,style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--Fill--Color, #383838)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--stroke--Color, #383838)"}}}},bulletComparativeWarningMeasure:{bar:{height:140,style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--warning--Fill--Color, #f5921b)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--warning--stroke--Color, #f5921b)"}}}},bulletGroupTitle:{line:{style:{data:{fill:"var(--pf-v6-chart-bullet--group-title--divider--Fill--Color, #c7c7c7)",stroke:"var(--pf-v6-chart-bullet--group-title--divider--stroke--Color, #c7c7c7)"}}}},bulletPrimaryDotMeasure:{},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:[cE,cA,cT,cD,cL]}},bulletPrimaryNegativeMeasure:{group:{colorScale:["var(--pf-v6-chart-bullet--negative-measure--ColorScale--100, #f89b78)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--200, #f4784a)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--300, #f0561d)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--400, #b1380b)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--500, #731f00)"]}},donut:{},donutThresholdDynamic:{legend:{colorScale:[t[0],cj,cM]},pie:{colorScale:[t[0],cC,cj,cM]}},donutThresholdStatic:{pie:{colorScale:[cC,cj,cM]}},donutUtilization:{legend:{colorScale:[t[0],cC,cj,cM]},pie:{colorScale:[t[0],cC]}},label:{},threshold:{}}},cz=["var(--pf-v6-chart-theme--blue--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--blue--ColorScale--200, #92c5f9)","var(--pf-v6-chart-theme--blue--ColorScale--300, #003366)","var(--pf-v6-chart-theme--blue--ColorScale--400, #4394e5)","var(--pf-v6-chart-theme--blue--ColorScale--500, #004d99)"],cF=c$({COLOR_SCALE:cz}),cR=cN({COLOR_SCALE:cz}),cI=["var(--pf-v6-chart-theme--teal--ColorScale--100, #37a3a3)","var(--pf-v6-chart-theme--teal--ColorScale--200, #9ad8d8)","var(--pf-v6-chart-theme--teal--ColorScale--300, #004d4d)","var(--pf-v6-chart-theme--teal--ColorScale--400, #63bdbd)","var(--pf-v6-chart-theme--teal--ColorScale--500, #147878)"],cW=c$({COLOR_SCALE:cI}),cU=cN({COLOR_SCALE:cI}),cq=["var(--pf-v6-chart-theme--yellow--ColorScale--100, #dca614)","var(--pf-v6-chart-theme--yellow--ColorScale--200, #ffe072)","var(--pf-v6-chart-theme--yellow--ColorScale--300, #96640f)","var(--pf-v6-chart-theme--yellow--ColorScale--400, #ffcc17)","var(--pf-v6-chart-theme--yellow--ColorScale--500, #b98412)"],cB=c$({COLOR_SCALE:cq}),cV=cN({COLOR_SCALE:cq}),cH=["var(--pf-v6-chart-theme--gray--ColorScale--100, #c7c7c7)","var(--pf-v6-chart-theme--gray--ColorScale--200, #f2f2f2)","var(--pf-v6-chart-theme--gray--ColorScale--300, #707070)","var(--pf-v6-chart-theme--gray--ColorScale--400, #e0e0e0)","var(--pf-v6-chart-theme--gray--ColorScale--500, #a3a3a3)"],cY=c$({COLOR_SCALE:cH}),cG=cN({COLOR_SCALE:cH}),cK=["var(--pf-v6-chart-theme--green--ColorScale--100, #63993d)","var(--pf-v6-chart-theme--green--ColorScale--200, #afdc8f)","var(--pf-v6-chart-theme--green--ColorScale--300, #204d00)","var(--pf-v6-chart-theme--green--ColorScale--400, #87bb62)","var(--pf-v6-chart-theme--green--ColorScale--500, #3d7317)"],cX=c$({COLOR_SCALE:cK}),cQ=cN({COLOR_SCALE:cK}),cJ={fill:"transparent",stroke:"transparent"},cZ=Object.assign({},cJ),c0=[cE,cA,cT,cD,cL],c5=(e=>{let{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]},labels:cZ}},axis:{colorScale:t,style:{axis:{fill:"transparent",stroke:t[0]},axisLabel:Object.assign(Object.assign({},cZ),{fill:t[0],stroke:"transparent"}),grid:{fill:"transparent",stroke:"transparent"},ticks:{fill:"transparent",stroke:t[0]},tickLabels:Object.assign(Object.assign({},cJ),{fill:"transparent"})}},bar:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:cJ}},boxplot:{colorScale:t,style:{max:{stroke:t[0]},maxLabels:cJ,median:{stroke:t[0]},medianLabels:cJ,min:{stroke:t[0]},minLabels:cJ,q1:{fill:t[0]},q1Labels:cJ,q3:{fill:t[0]},q3Labels:cJ}},candlestick:{colorScale:t,style:{data:{stroke:t[0]},labels:cZ}},chart:{colorScale:t},errorbar:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:cZ}},group:{colorScale:t},legend:{colorScale:t,style:{labels:cJ,title:Object.assign({},cJ)}},line:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:cZ}},pie:{colorScale:t,style:{data:{stroke:"transparent"},labels:Object.assign({},cJ)}},scatter:{colorScale:t,style:{data:{fill:t[0],stroke:"transparent"},labels:cZ}},stack:{colorScale:t},tooltip:{flyoutStyle:{fill:"transparent",stroke:"transparent"},style:{fill:"transparent"}},voronoi:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:Object.assign(Object.assign({},cZ),{fill:"transparent"}),flyout:{fill:"transparent",stroke:"transparent"}}}}})({COLOR_SCALE:c0}),c1=(e=>{let{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:t[0]},ticks:{stroke:t[0]}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeWarningMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletGroupTitle:{line:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletPrimaryDotMeasure:{},bulletPrimaryNegativeMeasure:{group:{colorScale:t}},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:t}},donut:{},donutThresholdDynamic:{legend:{colorScale:t},pie:{colorScale:t}},donutThresholdStatic:{pie:{colorScale:t}},donutUtilization:{legend:{colorScale:t},pie:{colorScale:t}},label:{backgroundStyle:{fill:t[0]},style:cZ},threshold:{}}})({COLOR_SCALE:c0}),c2=["var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--200, #63993d)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--300, #37a3a3)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--400, #dca614)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--500, #ca6c0f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--600, #92c5f9)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--700, #204d00)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--800, #9ad8d8)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--900, #96640f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1000, #f8ae54)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1100, #003366)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1200, #afdc8f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1300, #004d4d)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1400, #ffe072)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1500, #732e00)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1600, #4394e5)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1700, #3d7317)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1800, #63bdbd)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1900, #b98412)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2000, #f5921b)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2100, #004d99)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2200, #87bb62)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2300, #147878)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2400, #ffcc17)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2500, #9e4a06)"],c6=c$({COLOR_SCALE:c2}),c3=cN({COLOR_SCALE:c2}),c7=["var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--200, #dca614)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--300, #63993d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--400, #5e40be)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--500, #ca6c0f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--600, #37a3a3)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--700, #c7c7c7)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--800, #92c5f9)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--900, #96640f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1000, #afdc8f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1100, #21134d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1200, #f8ae54)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1300, #004d4d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1400, #f2f2f2)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1500, #003366)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1600, #ffe072)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1700, #204d00)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1800, #b6a6e9)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1900, #732e00)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2000, #9ad8d8)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2100, #707070)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2200, #4394e5)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2300, #b98412)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2400, #87bb62)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2500, #3d2785)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2600, #f5921b)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2700, #147878)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2800, #e0e0e0)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2900, #004d99)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3000, #ffcc17)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3100, #3d7317)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3200, #876fd4)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3300, #9e4a06)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3400, #63bdbd)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3500, #a3a3a3)"],c4=c$({COLOR_SCALE:c7}),c8=cN({COLOR_SCALE:c7}),c9=["var(--pf-v6-chart-theme--orange--ColorScale--100, #ca6c0f)","var(--pf-v6-chart-theme--orange--ColorScale--200, #f8ae54)","var(--pf-v6-chart-theme--orange--ColorScale--300, #732e00)","var(--pf-v6-chart-theme--orange--ColorScale--400, #f5921b)","var(--pf-v6-chart-theme--orange--ColorScale--500, #9e4a06)"],de=c$({COLOR_SCALE:c9}),dt=cN({COLOR_SCALE:c9}),dn=["var(--pf-v6-chart-theme--purple--ColorScale--100, #5e40be)","var(--pf-v6-chart-theme--purple--ColorScale--200, #b6a6e9)","var(--pf-v6-chart-theme--purple--ColorScale--300, #21134d)","var(--pf-v6-chart-theme--purple--ColorScale--400, #876fd4)","var(--pf-v6-chart-theme--purple--ColorScale--500, #3d2785)"],dr=c$({COLOR_SCALE:dn}),da=cN({COLOR_SCALE:dn}),di=e=>{let t=r(uA)(ck);return r(ct)(t,ds(e))},dl=e=>{let t=r(uA)(cP);return r(ct)(t,du(e))},ds=e=>{switch(e){case cs:return cF;case cu:return cW;case cc:return cB;case cd:return cY;case cf:return cX;case cp:case ch:return c6;case cg:return c4;case cm:return de;case cy:return dr;case cb:return c5;default:return cF}},du=e=>{switch(e){case cs:return cR;case cu:return cU;case cc:return cV;case cd:return cG;case cf:return cQ;case cp:case ch:return c3;case cg:return c8;case cm:return dt;case cy:return da;case cb:return c1;default:return cR}},dc=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bullet)},dd=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeErrorMeasure)},df=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeMeasure)},dp=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeWarningMeasure)},dh=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletGroupTitle)},dg=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimaryDotMeasure)},dm=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimaryNegativeMeasure)},dy=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimarySegmentedMeasure)},db=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletQualitativeRange)},dv=({defaultSize:e,height:t,horizontal:n=!0,scale:r=1,value:a,width:i})=>n&&t>e?a+(t-e)*r:n?a-(e-t)*r:i>e?a+(i-e)*r:a-(e-i)*r,dx=e=>Math.max(dv(e),0);var eh=o("8NFma");"undefined"!=typeof window&&window.document&&window.document.createElement;let d_=e=>{var{className:t,themeColor:n,theme:r=di(n)}=e,a=uu(e,["className","themeColor","theme"]);let i=(({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v6-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v6-c-chart ${t}`:"pf-v6-c-chart"})({className:t});return(0,e_.jsx)(an,Object.assign({className:i,theme:r},a))};d_.displayName="ChartContainer",r(eO)(d_,an);let dO=e=>{var{style:t,textAnchor:n}=e,a=uu(e,["style","textAnchor"]);let i=e=>r(e$)(Object.assign(Object.assign({},e),{textAnchor:n}),{fill:uy,fontFamily:up,fontSize:uh,letterSpacing:ug}),o=Array.isArray(t)?t.map(i):i(t);return(0,e_.jsx)(sU,Object.assign({style:o,textAnchor:n},a))};dO.displayName="ChartLabel",r(eO)(dO,sU);let dw=e=>{let t,n;var{axisLabelComponent:a=(0,e_.jsx)(dO,{}),containerComponent:i=(0,e_.jsx)(d_,{}),name:o,showGrid:l=!1,themeColor:s,tickLabelComponent:u=(0,e_.jsx)(dO,{}),theme:c=di(s)}=e,d=uu(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);let f=dl(s),p=(0,eh.cloneElement)(i,Object.assign({theme:c},i.props));return(0,e_.jsx)(sK,Object.assign({axisLabelComponent:(0,eh.cloneElement)(a,Object.assign(Object.assign(Object.assign({},o&&{id:()=>`${o}-${a.type.displayName}`}),a.props),(null==f?void 0:f.label)&&f.label)),containerComponent:p,name:o,theme:l?(t=di(s),n=dl(s),r(ct)(t,n.axis)):c,tickLabelComponent:(0,eh.cloneElement)(u,Object.assign(Object.assign(Object.assign({},o&&{id:e=>`${o}-${u.type.displayName}-${e.index}`}),u.props),(null==f?void 0:f.label)&&f.label))},d))};dw.displayName="ChartAxis",r(eO)(dw,sK);var eh=o("8NFma");let dS=({height:e,padding:t,width:n})=>{let{top:r,bottom:a,left:i,right:o}=t8.getPadding(t),l=t8.getRadius({height:e,width:n,padding:t}),s=(n-2*l-i-o)/2,u=(e-2*l-r-a)/2;return{x:l+i+s,y:l+r+u}},dk=({chartWidth:e,dx:t=0,labelPosition:n})=>"top"===n&&e?Math.round(e/2):t,dP=({chartHeight:e,dy:t=0,labelPosition:n})=>{switch(n){case"bottom":return e+um+t;case"left":return e?Math.round(e/2)+t:t;default:return t}},dj=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{let o=dS({height:t,padding:a,width:i}),l=t8.getRadius({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+um+e+l;case"right":return o.x+um+e;default:return e}default:return e}},dM=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{let i=dS({height:t,padding:r,width:a}),o=t8.getRadius({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+2*um+e;default:return e}},dC=({text:e,theme:t})=>{let n=t.legend.style.labels;return sc.approximateTextSize(e,Object.assign({},n))},dE=(e,t,n)=>"number"==typeof t?t:"object"==typeof t&&Object.keys(t).length>0?t[e]||0:dE(e,n,0),dA=({ariaDesc:e,ariaTitle:t,capHeight:n=1.1,horizontal:r=!0,legendPosition:a="bottom",name:i,padding:o,standalone:l=!0,subTitle:s,themeColor:u,title:c,titleComponent:d=(0,e_.jsx)(dO,{}),titlePosition:f,theme:p=dc(u),height:h=r?p.chart.height:p.chart.width,width:g=r?p.chart.width:p.chart.height})=>{let m={height:r?p.chart.height:h,width:r?g:p.chart.height},y={bottom:dE("bottom",o,p.chart.padding),left:dE("left",o,p.chart.padding),right:dE("right",o,p.chart.padding),top:dE("top",o,p.chart.padding)},b=()=>{let e=dl(u),t=c&&s,o=r?"left":"bottom";f&&f.includes("left")&&r&&(o=f);let l="middle";"top-left"===o?l="start":r&&(l="end");let p=2*ub-y.bottom;if("top-left"===o){let e=+!t;p=.5*y.top+(.5*y.bottom-y.bottom)+58-ub+e}else r&&(p=.5*y.top+(.5*y.bottom-y.bottom));return(0,eh.cloneElement)(d,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t&&{capHeight:n}),i&&{id:()=>`${i}-${d.type.displayName}`}),{style:[uw,uO],text:t?[c,s]:c,textAnchor:l,verticalAnchor:"top-left"===o?"end":"middle",x:r?dk({chartWidth:m.width,dx:"top-left"===o?y.left:y.left-1.75*um,labelPosition:"left",legendPosition:a,svgWidth:g}):.5*y.left+(.5*y.right-(y.right-50))+uP/2,y:dP({chartHeight:m.height,dy:p,labelPosition:o})}),d.props),(null==e?void 0:e.label)&&e.label))};return l?(0,e_.jsx)(d_,{desc:e,height:h,title:t,width:g,children:b()}):(0,e_.jsx)(eh.Fragment,{children:b()})};dA.displayName="ChartBulletTitle";var eh=(o("8NFma"),o("8NFma")),dT={},dD={},dL=Math.ceil,d$=Math.max;dD=function(e,t,n,r){for(var a=-1,i=d$(dL((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o};var dN={},dz={},dF={},dR={},dI=/\s/;dR=function(e){for(var t=e.length;t--&&dI.test(e.charAt(t)););return t};var dW=/^\s+/;dF=function(e){return e?e.slice(0,dR(e)+1).replace(dW,""):e};var dU=0/0,dq=/^[-+]0x[0-9a-f]+$/i,dB=/^0b[01]+$/i,dV=/^0o[0-7]+$/i,dH=parseInt;dz=function(e){if("number"==typeof e)return e;if(ni(e))return dU;if(e3(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=e3(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=dF(e);var n=dB.test(e);return n||dV.test(e)?dH(e.slice(2),n?2:8):dq.test(e)?dU:+e};var dY=1/0;dN=function(e){return e?(e=dz(e))===dY||e===-dY?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},dT=function(e){return function(t,n,r){return r&&"number"!=typeof r&&tu(t,n,r)&&(n=r=void 0),t=dN(t),void 0===n?(n=t,t=0):n=dN(n),r=void 0===r?t<n?1:-1:dN(r),dD(t,n,r,e)}}();let dG=e=>{let{data:t,style:n}=e;return t.map((e,a)=>{let i=r(e$)({},e.labels,n.labels);return t8.evaluateStyle(i,{datum:e,index:a,data:t})})},dK=function(e,t){void 0===t&&(t={});let n=e.style||{};return{parent:r(e$)(n.parent,t.parent,{height:"100%",width:"100%"}),data:r(e$)({},n.data,t.data),labels:r(e$)({},n.labels,t.labels),border:r(e$)({},n.border,t.border),title:r(e$)({},n.title,t.title)}},dX=e=>{let{orientation:t,theme:n}=e,r=dK(e,n&&n.legend&&n.legend.style?n.legend.style:{}),a=(e=>{let{colorScale:t,theme:n}=e;return"string"==typeof t?lf.getColorScale(t,n):t||[]})(e),i=t8.getPadding(e.borderPadding);return Object.assign({},e,{style:r,isHorizontal:"horizontal"===t,colorScale:a,borderPadding:i})},dQ=e=>{let{data:t}=e,n=e.style&&e.style.data||{},r=dG(e);return t.map((t,a)=>{let i=t.symbol||{},{fontSize:o}=r[a],l=i.size||n.size||o/2.5,s=e.symbolSpacer||Math.max(l,o);return{...t,size:l,symbolSpacer:s,fontSize:o,textSize:sc.approximateTextSize(t.name,r[a]),column:((e,t)=>{let{itemsPerRow:n,isHorizontal:r}=e;return n?r?t%n:Math.floor(t/n):r?t:0})(e,a),row:((e,t)=>{let{itemsPerRow:n,isHorizontal:r}=e;return n?r?Math.floor(t/n):t%n:r?0:t})(e,a)}})},dJ=(e,t)=>{let n=e.gutter||{},a="object"==typeof n?(n.left||0)+(n.right||0):n||0,i=r(io)(t,"column");return Object.keys(i).reduce((e,t,n)=>{let r=i[t].map(e=>e.textSize.width+e.size+e.symbolSpacer+a);return e[n]=Math.max(...r),e},[])},dZ=(e,t)=>{let n=e.rowGutter||{},a="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,i=r(io)(t,"row");return Object.keys(i).reduce((e,t,n)=>{let r=i[t].map(e=>e.textSize.height+e.symbolSpacer+a);return e[n]=Math.max(...r),e},[])},d0=e=>{let t=e.style&&e.style.title||{},n=sc.approximateTextSize(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},d5=(e,t)=>{let n=t8.modifyProps(e,t,"legend"),r=Object.assign({},n,dX(n)),{title:a,titleOrientation:i}=r,o=dQ(r),l=dJ(r,o),s=dZ(r,o),u=a?d0(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(d1(s),u.height):d1(s)+u.height,width:"left"===i||"right"===i?d1(l)+u.width:Math.max(d1(l),u.width)}};function d1(e){if(e&&e.length){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}return 0}var eh=o("8NFma");let d2={rectComponent:r(eh).createElement(rk,null),role:"presentation",shapeRendering:"auto"},d6=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,d2)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({fill:"none"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.rectComponent,{...s.events,"aria-label":s.ariaLabel,style:s.style,desc:s.desc,tabIndex:s.tabIndex,transform:s.transform,className:s.className,role:s.role,shapeRendering:s.shapeRendering,x:s.x,y:s.y,width:s.width,height:s.height,clipPath:s.clipPath})};var eh=o("8NFma"),d3={};function d7(e,t,n){return`M ${e}, ${t}
|
|
28
|
+
<slot style="display: none;"></slot>`}getReactComponent(){throw Error("getReactComponent() must be implemented by subclass")}_renderReact(){if(!this._root)return;let e=ey(this),t=this._commonProps(),[n,a={}]=this.getReactComponent(),i={...e,...t,...a};for(let e of Object.keys(i))ev.has(e)&&delete i[e];let o=this._getReactChildren();this._root.render(r(eh).createElement(n,i,...o))}_getReactChildren(){let e=this.renderRoot.querySelector("slot");if(!e)return[];let t=e.assignedElements(),n=[];for(let e of t)if(e instanceof ex){let t=ey(e),a=e._commonProps(),[i,o={}]=e.getReactComponent(),l={...t,...a,...o};for(let e of Object.keys(l))ev.has(e)&&delete l[e];n.push(r(eh).createElement(i,l))}return n}firstUpdated(e){if(this._container=this.renderRoot.querySelector(".container"),this._isSlottedChild())this._observer=new MutationObserver(()=>{let e=this.parentElement;e&&e instanceof ex&&e._renderReact&&e._renderReact()}),this._observer.observe(this,{attributes:!0});else{this._root=(0,eg.createRoot)(this._container),this._observer=new MutationObserver(()=>this._renderReact()),this._observer.observe(this,{attributes:!0,childList:!0,subtree:!0});let e=this.renderRoot.querySelector("slot");e&&e.addEventListener("slotchange",()=>this._renderReact()),this._renderReact()}}disconnectedCallback(){this._observer&&(this._observer.disconnect(),this._observer=null),this._root&&(this._root.unmount(),this._root=null),super.disconnectedCallback()}_isSlottedChild(){let e=this.parentElement;return e&&e instanceof ex}_notifyChange(){let e=this.parentElement;e&&e instanceof ex&&e._renderReact?e._renderReact():this._renderReact&&this._renderReact()}get categories(){return this._categories}set categories(e){this._categories=e,this._notifyChange()}get data(){return this._data}set data(e){this._data=e,this._notifyChange()}get height(){return this._height}set height(e){this._height=e,this._notifyChange()}get labels(){return this._labels}set labels(e){this._labels=e,this._notifyChange()}get legendData(){return this._legendData}set legendData(e){this._legendData=e,this._notifyChange()}get legendOrientation(){return this._legendOrientation}set legendOrientation(e){this._legendOrientation=e,this._notifyChange()}get legendPosition(){return this._legendPosition}set legendPosition(e){this._legendPosition=e,this._notifyChange()}get padding(){return this._padding}set padding(e){this._padding=e,this._notifyChange()}get subTitle(){return this._subTitle}set subTitle(e){this._subTitle=e,this._notifyChange()}get subTitlePosition(){return this._subTitlePosition}set subTitlePosition(e){this._subTitlePosition=e,this._notifyChange()}get themeColor(){return this._themeColor}set themeColor(e){this._themeColor=e,this._notifyChange()}get title(){return this._title}set title(e){this._title=e,this._notifyChange()}get width(){return this._width}set width(e){this._width=e,this._notifyChange()}_commonProps(){let e={};return this._categories&&"string"!=typeof this._categories?e.categories=this._categories:this.getAttribute("categories")&&(e.categories=em("categories",this.getAttribute("categories"))),this._data&&"string"!=typeof this._data?e.data=this._data:this.getAttribute("data")&&(e.data=em("data",this.getAttribute("data"))),void 0!==this._height&&(e.height=Number(this._height)),void 0!==this._labels&&(e.labels=this._labels),this._legendData&&"string"!=typeof this._legendData?e.legendData=this._legendData:this.getAttribute("legend-data")&&(e.legendData=em("legend-data",this.getAttribute("legend-data"))),void 0!==this._legendOrientation&&(e.legendOrientation=this._legendOrientation),void 0!==this._legendPosition&&(e.legendPosition=this._legendPosition),void 0!==this._padding&&(e.padding=this._padding),void 0!==this._subTitle&&(e.subTitle=this._subTitle),void 0!==this._subTitlePosition&&(e.subTitlePosition=this._subTitlePosition),void 0!==this._themeColor&&(e.themeColor=this._themeColor),void 0!==this._title&&(e.title=this._title),void 0!==this._width&&(e.width=Number(this._width)),e}}"use strict";"use strict";"use strict";var e_={};e_=o("2kzMM");var eh=o("8NFma"),eO={},ew={};ew=o("cdwfJ");var eS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ek={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ej={};function eM(e){return ew.isMemo(e)?eP:ej[e.$$typeof]||eS}ej[ew.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ej[ew.Memo]=eP;var eC=Object.defineProperty,eE=Object.getOwnPropertyNames,eA=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,eD=Object.getPrototypeOf,eL=Object.prototype;eO=function e(t,n,r){if("string"!=typeof n){if(eL){var a=eD(n);a&&a!==eL&&e(t,a,r)}var i=eE(n);eA&&(i=i.concat(eA(n)));for(var o=eM(t),l=eM(n),s=0;s<i.length;++s){var u=i[s];if(!ek[u]&&!(r&&r[u])&&!(l&&l[u])&&!(o&&o[u])){var c=eT(n,u);try{eC(t,u,c)}catch(e){}}}}return t};var eh=o("8NFma"),e$={},eN={},ez={};ez=function(e){return e};var eF={},eR={};eR=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eI=Math.max;eF=function(e,t,n){return t=eI(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=eI(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),eR(e,this,l)}};var eW={},eU={},eq={};eq=function(e){return function(){return e}};var eB={},eV={},eH={},eY={},eG={},eK={},eX=o("eeOBM");eK=eX.Symbol;var eQ={},eJ=Object.prototype,eZ=eJ.hasOwnProperty,e0=eJ.toString,e5=eK?eK.toStringTag:void 0;eQ=function(e){var t=eZ.call(e,e5),n=e[e5];try{e[e5]=void 0;var r=!0}catch(e){}var a=e0.call(e);return r&&(t?e[e5]=n:delete e[e5]),a};var e1={},e2=Object.prototype.toString;e1=function(e){return e2.call(e)};var e6=eK?eK.toStringTag:void 0;eG=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":e6&&e6 in Object(e)?eQ(e):e1(e)};var e3={};e3=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},eY=function(e){if(!e3(e))return!1;var t=eG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var e7={},e4={},eX=o("eeOBM");e4=eX["__core-js_shared__"];var e8=(t=/[^.]+$/.exec(e4&&e4.keys&&e4.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";e7=function(e){return!!e8&&e8 in e};var e9={},te=Function.prototype.toString;e9=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var tt=/^\[object .+?Constructor\]$/,tn=Object.prototype,tr=Function.prototype.toString,ta=tn.hasOwnProperty,ti=RegExp("^"+tr.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");eH=function(e){return!(!e3(e)||e7(e))&&(eY(e)?ti:tt).test(e9(e))};var to={};to=function(e,t){return null==e?void 0:e[t]},eV=function(e,t){var n=to(e,t);return eH(n)?n:void 0};var tl=Date.now;eW=function(e){var t=0,n=0;return function(){var r=tl(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(eU=(eB=function(){try{var e=eV(Object,"defineProperty");return e({},"",{}),e}catch(e){}}())?function(e,t){return eB(e,"toString",{configurable:!0,enumerable:!1,value:eq(t),writable:!0})}:ez),eN=function(e,t){return eW(eF(e,t,ez),e+"")};var ts={};ts=function(e,t){return e===t||e!=e&&t!=t};var tu={},tc={},td={};td=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},tc=function(e){return null!=e&&td(e.length)&&!eY(e)};var tf={},tp=/^(?:0|[1-9]\d*)$/;tf=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&tp.test(e))&&e>-1&&e%1==0&&e<t},tu=function(e,t,n){if(!e3(n))return!1;var r=typeof t;return("number"==r?!!(tc(n)&&tf(t,n.length)):"string"==r&&t in n)&&ts(n[t],e)};var th={},tg={},tm={};tm=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var ty={},tb={},tv={};tv=function(e){return null!=e&&"object"==typeof e},tb=function(e){return tv(e)&&"[object Arguments]"==eG(e)};var tx=Object.prototype,t_=tx.hasOwnProperty,tO=tx.propertyIsEnumerable;ty=tb(function(){return arguments}())?tb:function(e){return tv(e)&&t_.call(e,"callee")&&!tO.call(e,"callee")};var tw={};tw=Array.isArray;var tS=o("9e2tS"),tk={},tP={},tj={};tj["[object Float32Array]"]=tj["[object Float64Array]"]=tj["[object Int8Array]"]=tj["[object Int16Array]"]=tj["[object Int32Array]"]=tj["[object Uint8Array]"]=tj["[object Uint8ClampedArray]"]=tj["[object Uint16Array]"]=tj["[object Uint32Array]"]=!0,tj["[object Arguments]"]=tj["[object Array]"]=tj["[object ArrayBuffer]"]=tj["[object Boolean]"]=tj["[object DataView]"]=tj["[object Date]"]=tj["[object Error]"]=tj["[object Function]"]=tj["[object Map]"]=tj["[object Number]"]=tj["[object Object]"]=tj["[object RegExp]"]=tj["[object Set]"]=tj["[object String]"]=tj["[object WeakMap]"]=!1,tP=function(e){return tv(e)&&td(e.length)&&!!tj[eG(e)]};var tM={};tM=function(e){return function(t){return e(t)}};var tC=o("fwpsA"),tE=tC&&tC.isTypedArray;tk=tE?tM(tE):tP;var tA=Object.prototype.hasOwnProperty;tg=function(e,t){var n=tw(e),r=!n&&ty(e),a=!n&&!r&&tS(e),i=!n&&!r&&!a&&tk(e),o=n||r||a||i,l=o?tm(e.length,String):[],s=l.length;for(var u in e)(t||tA.call(e,u))&&!(o&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tf(u,s)))&&l.push(u);return l};var tT={},tD={},tL=Object.prototype;tD=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tL)};var t$={};t$=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var tN=Object.prototype.hasOwnProperty;tT=function(e){if(!e3(e))return t$(e);var t=tD(e),n=[];for(var r in e)"constructor"==r&&(t||!tN.call(e,r))||n.push(r);return n},th=function(e){return tc(e)?tg(e,!0):tT(e)};var tz=Object.prototype,tF=tz.hasOwnProperty;e$=eN(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&tu(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],o=th(i),l=-1,s=o.length;++l<s;){var u=o[l],c=e[u];(void 0===c||ts(c,tz[u])&&!tF.call(e,u))&&(e[u]=i[u])}return e});var tR={},tI={},tW={},tU={};tW=(tU=function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);var tq=Object.prototype.hasOwnProperty;tI=function(e){if(!tD(e))return tW(e);var t=[];for(var n in Object(e))tq.call(e,n)&&"constructor"!=n&&t.push(n);return t};var tB={},tV={},eX=o("eeOBM");tV=eV(eX,"DataView");var tH={},eX=o("eeOBM");tH=eV(eX,"Map");var tY={},eX=o("eeOBM");tY=eV(eX,"Promise");var tG={},eX=o("eeOBM");tG=eV(eX,"Set");var tK={},eX=o("eeOBM");tK=eV(eX,"WeakMap");var tX="[object Map]",tQ="[object Promise]",tJ="[object Set]",tZ="[object WeakMap]",t0="[object DataView]",t5=e9(tV),t1=e9(tH),t2=e9(tY),t6=e9(tG),t3=e9(tK),t7=eG;(tV&&t7(new tV(new ArrayBuffer(1)))!=t0||tH&&t7(new tH)!=tX||tY&&t7(tY.resolve())!=tQ||tG&&t7(new tG)!=tJ||tK&&t7(new tK)!=tZ)&&(t7=function(e){var t=eG(e),n="[object Object]"==t?e.constructor:void 0,r=n?e9(n):"";if(r)switch(r){case t5:return t0;case t1:return tX;case t2:return tQ;case t6:return tJ;case t3:return tZ}return t}),tB=t7;var tS=o("9e2tS"),t4=Object.prototype.hasOwnProperty;tR=function(e){if(null==e)return!0;if(tc(e)&&(tw(e)||"string"==typeof e||"function"==typeof e.splice||tS(e)||tk(e)||ty(e)))return!e.length;var t=tB(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(tD(e))return!tI(e).length;for(var n in e)if(t4.call(e,n))return!1;return!0};var eh=o("8NFma"),t8={};e(t8,"degreesToRadians",()=>rc),e(t8,"getRadius",()=>rf),e(t8,"invert",()=>re),e(t8,"omit",()=>rt),e(t8,"getPoint",()=>rn),e(t8,"scalePoint",()=>rr),e(t8,"getPadding",()=>ra),e(t8,"isTooltip",()=>ri),e(t8,"getDefaultStyles",()=>ro),e(t8,"getStyles",()=>rl),e(t8,"evaluateProp",()=>rs),e(t8,"isFunction",()=>rm),e(t8,"evaluateStyle",()=>ru),e(t8,"radiansToDegrees",()=>rd),e(t8,"getPolarOrigin",()=>rp),e(t8,"getRange",()=>rh),e(t8,"isNil",()=>rg),e(t8,"createAccessor",()=>ry),e(t8,"modifyProps",()=>rb),e(t8,"isHorizontal",()=>rw),e(t8,"getCurrentAxis",()=>rv),e(t8,"mapValues",()=>rx),e(t8,"range",()=>r_),e(t8,"reduceChildren",()=>rO);var eh=o("8NFma"),t9={},ne={};ne=function(e){return function(t){return null==t?void 0:t[e]}};var nt={},nn={},nr={},na={},ni={};ni=function(e){return"symbol"==typeof e||tv(e)&&"[object Symbol]"==eG(e)};var no=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/;na=function(e,t){if(tw(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||ni(e))||nl.test(e)||!no.test(e)||null!=t&&e in Object(t)};var ns={},nu={},nc={},nd={},nf={},np={},nh={};nh=eV(Object,"create"),np=function(){this.__data__=nh?nh(null):{},this.size=0};var ng={};ng=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var nm={},ny=Object.prototype.hasOwnProperty;nm=function(e){var t=this.__data__;if(nh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ny.call(t,e)?t[e]:void 0};var nb={},nv=Object.prototype.hasOwnProperty;nb=function(e){var t=this.__data__;return nh?void 0!==t[e]:nv.call(t,e)};var nx={};function n_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nx=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nh&&void 0===t?"__lodash_hash_undefined__":t,this},n_.prototype.clear=np,n_.prototype.delete=ng,n_.prototype.get=nm,n_.prototype.has=nb,n_.prototype.set=nx,nf=n_;var nO={},nw={};nw=function(){this.__data__=[],this.size=0};var nS={},nk={};nk=function(e,t){for(var n=e.length;n--;)if(ts(e[n][0],t))return n;return -1};var nP=Array.prototype.splice;nS=function(e){var t=this.__data__,n=nk(t,e);return!(n<0)&&(n==t.length-1?t.pop():nP.call(t,n,1),--this.size,!0)};var nj={};nj=function(e){var t=this.__data__,n=nk(t,e);return n<0?void 0:t[n][1]};var nM={};nM=function(e){return nk(this.__data__,e)>-1};var nC={};function nE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nC=function(e,t){var n=this.__data__,r=nk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},nE.prototype.clear=nw,nE.prototype.delete=nS,nE.prototype.get=nj,nE.prototype.has=nM,nE.prototype.set=nC,nO=nE,nd=function(){this.size=0,this.__data__={hash:new nf,map:new(tH||nO),string:new nf}};var nA={},nT={},nD={};nD=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},nT=function(e,t){var n=e.__data__;return nD(t)?n["string"==typeof t?"string":"hash"]:n.map},nA=function(e){var t=nT(this,e).delete(e);return this.size-=!!t,t};var nL={};nL=function(e){return nT(this,e).get(e)};var n$={};n$=function(e){return nT(this,e).has(e)};var nN={};function nz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nF(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(nF.Cache||nc),n}nN=function(e,t){var n=nT(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},nz.prototype.clear=nd,nz.prototype.delete=nA,nz.prototype.get=nL,nz.prototype.has=n$,nz.prototype.set=nN,nF.Cache=nc=nz,nu=nF;var nR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nI=/\\(\\)?/g;ns=function(e){var t=nu(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nR,function(e,n,r,a){t.push(r?a.replace(nI,"$1"):n||e)}),t});var nW={},nU={},nq={};nq=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};var nB=1/0,nV=eK?eK.prototype:void 0,nH=nV?nV.toString:void 0;nU=function e(t){if("string"==typeof t)return t;if(tw(t))return nq(t,e)+"";if(ni(t))return nH?nH.call(t):"";var n=t+"";return"0"==n&&1/t==-nB?"-0":n},nW=function(e){return null==e?"":nU(e)},nr=function(e,t){return tw(e)?e:na(e,t)?[e]:ns(nW(e))};var nY={},nG=1/0;nY=function(e){if("string"==typeof e||ni(e))return e;var t=e+"";return"0"==t&&1/e==-nG?"-0":t},nn=function(e,t){t=nr(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[nY(t[n++])];return n&&n==r?e:void 0},nt=function(e){return function(t){return nn(t,e)}},t9=function(e){return na(e)?ne(nY(e)):nt(e)};var nK={},nX={},nQ={},nJ={},nZ={},n0={};n0=function(e,t,n){"__proto__"==t&&eB?eB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var n5=Object.prototype.hasOwnProperty;nZ=function(e,t,n){var r=e[t];n5.call(e,t)&&ts(r,n)&&(void 0!==n||t in e)||n0(e,t,n)},nJ=function(e,t,n,r){if(!e3(e))return e;t=nr(t,e);for(var a=-1,i=t.length,o=i-1,l=e;null!=l&&++a<i;){var s=nY(t[a]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)break;if(a!=o){var c=l[s];void 0===(u=r?r(c,s,l):void 0)&&(u=e3(c)?c:tf(t[a+1])?[]:{})}nZ(l,s,u),l=l[s]}return e},nQ=function(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],l=nn(e,o);n(l,o)&&nJ(i,nr(o,e),l)}return i};var n1={},n2={};n2=function(e,t){return null!=e&&t in Object(e)};var n6={};n6=function(e,t,n){t=nr(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=nY(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&td(a)&&tf(o,a)&&(tw(e)||ty(e))},n1=function(e,t){return null!=e&&n6(e,t,n2)},nX=function(e,t){return nQ(e,t,function(t,n){return n1(e,n)})};var n3={},n7={},n4={};n4=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e};var n8={},n9=eK?eK.isConcatSpreadable:void 0;function re(e){return Object.entries(e).reduce((e,t)=>(e[t[1]]=t[0],e),{})}function rt(e,t){void 0===t&&(t=[]);let n={};for(let r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function rn(e){let{_x:t,_x1:n,_x0:a,_voronoiX:i,_y:o,_y1:l,_y0:s,_voronoiY:u}=e;return r(e$)({},{x:i??n??t,x0:a??t,y:u??l??o,y0:s??o},e)}function rr(e,t){let{scale:n,polar:r,horizontal:a}=e,i=rn(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.y0);return{x:r?u*Math.cos(l)+o.x:l,x0:r?c*Math.cos(s)+o.x:s,y:r?-u*Math.sin(l)+o.y:u,y0:r?-c*Math.sin(s)+o.x:c}}function ra(e){let t="number"==typeof e?e:0,n="object"==typeof e?e:{};return{top:n.top||t,bottom:n.bottom||t,left:n.left||t,right:n.right||t}}function ri(e){return"tooltip"===(e&&e.type&&e.type.role)}function ro(e,t){let{theme:n={},labelComponent:a}=e,i=n[t]&&n[t].style||{};if(!ri(a))return i;let o=n.tooltip&&n.tooltip.style||{},l=r(e$)({},o,i.labels);return r(e$)({},{labels:l},i)}function rl(e,t){let n="100%",a="100%";if(!e)return r(e$)({parent:{height:a,width:n}},t);let{data:i,labels:o,parent:l}=e,s=t&&t.parent||{},u=t&&t.labels||{},c=t&&t.data||{};return{parent:r(e$)({},l,s,{width:n,height:a}),labels:r(e$)({},o,u),data:r(e$)({},i,c)}}function rs(e,t){return rm(e)?e(t):e}function ru(e,t){return t.disableInlineStyles?{}:e&&Object.keys(e).some(t=>rm(e[t]))?Object.keys(e).reduce((n,r)=>(n[r]=rs(e[r],t),n),{}):e}function rc(e){return"number"==typeof e?Math.PI/180*e:e}function rd(e){return"number"==typeof e?e/(Math.PI/180):e}function rf(e){let{width:t,height:n,padding:r}=e,{left:a,right:i,top:o,bottom:l}=r;return Math.min(t-a-i,n-o-l)/2}function rp(e){let{width:t,height:n}=e,{top:r,bottom:a,left:i,right:o}=ra(e.padding),l=Math.min(t-i-o,n-r-a)/2,s=t/2+i-o,u=n/2+r-a;return{x:s+l>t?l+i-o:s,y:u+l>n?l+r-a:u}}function rh(e,t){var n,r;if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;return e.polar?"x"===(r={axis:t,innerRadius:e.innerRadius,startAngle:e.startAngle,endAngle:e.endAngle,height:e.height,width:e.width,padding:ra(e.padding)}).axis?[rc(r.startAngle||0),rc(r.endAngle||360)]:[r.innerRadius||0,rf({height:r.height,width:r.width,padding:r.padding})]:"x"!==(n={axis:t,height:e.height,width:e.width,padding:ra(e.padding)}).axis?[n.height-n.padding.bottom,n.padding.top]:[n.padding.left,n.width-n.padding.right]}function rg(e){return null==e}function rm(e){return"function"==typeof e}function ry(e){return rm(e)?e:null==e?e=>e:r(t9)(e)}function rb(e,t,n){let a=rt(e.theme&&e.theme[n]?e.theme[n]:{},["style"]),i=rw(e);return r(e$)(void 0===i?{}:{horizontal:i},e,a,t)}function rv(e,t){return t?"x"===e?"y":"x":e}function rx(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function r_(e,t,n){let r=t?e:0,a=t||e;a||(a=0);let i=a-r,o=Math.abs(i),l=i/o||1,s=n||1;return Array.from(Array(Math.max(Math.ceil(o/s),0)),(e,t)=>r+t*l*s)}function rO(e,t,n,a,i){void 0===n&&(n={}),void 0===a&&(a=[]),void 0===i&&(i=(e,t)=>e.concat(t));let o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],l=(e,s,u)=>e.reduce((e,a,c)=>{let d=e,f=a.type&&a.type.role,p=a.props.name||`${f}-${s[c]}`;if(a.props&&a.props.children){let e=Object.assign({},a.props,r(nK)(n,o)),t=a.type&&"stack"===a.type.role&&rm(a.type.getChildren)?a.type.getChildren(e):r(eh).Children.toArray(a.props.children).map(t=>{let n=Object.assign({},t.props,r(nK)(e,o));return r(eh).cloneElement(t,n)}),s=t.map((e,t)=>`${p}-${t}`),u=l(t,s,a);d=i(d,u)}else{let e=t(a,p,u);e&&(d=i(d,e))}return d},a),s=e.filter(eh.isValidElement),u=s.map((e,t)=>t);return l(s,u)}function rw(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;let t=e=>e.reduce((e,n)=>{let a=n.props||{};return e||a.horizontal||!a.children?e||a.horizontal:t(r(eh).Children.toArray(a.children))},!1);return t(r(eh).Children.toArray(e.children))}n8=function(e){return tw(e)||ty(e)||!!(n9&&e&&e[n9])},n7=function e(t,n,r,a,i){var o=-1,l=t.length;for(r||(r=n8),i||(i=[]);++o<l;){var s=t[o];n>0&&r(s)?n>1?e(s,n-1,r,a,i):n4(i,s):a||(i[i.length]=s)}return i},n3=function(e){return(null==e?0:e.length)?n7(e,1):[]},nK=function(e){return eW(eF(e,void 0,n3),e+"")}(function(e,t){return null==e?{}:nX(e,t)});var eh=o("8NFma");function rS(){return(rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let rk=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("rect",rS({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("rect",rS({},s,{ref:t}))});var eh=o("8NFma");function rP(){return(rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let rj=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("circle",rP({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("circle",rP({},s,{ref:t}))}),rM={circleComponent:r(eh).createElement(rj,null),rectComponent:r(eh).createElement(rk,null),role:"presentation",shapeRendering:"auto"};var rC={};function rE(e){let t=r(eh).useRef();return r(eh).useEffect(()=>{t.current=e}),t.current}e(rC,"usePreviousProps",()=>rE),e(rC,"useAnimationState",()=>rK);var eh=(o("8NFma"),o("8NFma")),rA={};function rT(e){return Array.isArray(e)&&e.length>0}function rD(e){return Array.isArray(e)&&e.some(e=>"string"==typeof e)}function rL(e){return Array.isArray(e)&&e.some(e=>e instanceof Date)}function r$(e){return Array.isArray(e)&&e.some(e=>"number"==typeof e)}function rN(e){return rT(e)&&e.every(e=>"string"==typeof e)}function rz(e,t){return e&&t?e.filter(e=>!t.includes(e)):[]}function rF(e){return rT(e)&&e.every(Array.isArray)}function rR(e){return e.filter(e=>void 0!==e)}function rI(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=e.concat(n);return rL(a)?new Date(Math.max(...a)):Math.max(...a)}function rW(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=e.concat(n);return rL(a)?new Date(Math.min(...a)):Math.min(...a)}e(rA,"containsStrings",()=>rD),e(rA,"containsDates",()=>rL),e(rA,"containsNumbers",()=>r$),e(rA,"containsOnlyStrings",()=>rN),e(rA,"difference",()=>rz),e(rA,"isArrayOfArrays",()=>rF),e(rA,"removeUndefined",()=>rR),e(rA,"getMaxValue",()=>rI),e(rA,"getMinValue",()=>rW);var eh=o("8NFma");function rU(e,t){return(e.key||t).toString()}function rq(e){return e.reduce((e,t,n)=>(e[rU(t,n)]=t,e),{})}function rB(e,t){let n=!1,r=Object.keys(e).reduce((e,r)=>(r in t||(n=!0,e[r]=!0),e),{});return n&&r}function rV(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function rH(e,t){let n=!1,a=!1,i=(e,t)=>e.map((o,l)=>o&&o.props&&o.props.children&&t[l]?i(r(eh).Children.toArray(e[l].props.children),r(eh).Children.toArray(t[l].props.children)):((e,t)=>{var r,i;let o,l;if(!t||e.type!==t.type)return{};let{entering:s,exiting:u}=(r=rV(e),i=rV(t),o=r&&rq(r),l=i&&rq(i),{entering:o&&rB(l,o),exiting:l&&rB(o,l)});return n=n||!!u,a=a||!!s,{entering:s||!1,exiting:u||!1}})(o,t[l])),o=i(r(eh).Children.toArray(e),r(eh).Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:a,childrenTransitions:o,nodesShouldEnter:!1}}function rY(e,t,n){let a=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,l=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,u=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},d=function(e,t){let n=e.props.animate;if(!e.type)return{};let r=e.props&&e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;if(r){let e=n[t]&&n[t].duration;return void 0!==e?e:r[t]&&r[t].duration}return{}};return function(f,p){var h;let g=rV(f)||[],m=r(e$)({},e.animate,f.props.animate),y=f.props.polar&&f.type.defaultPolarTransitions||f.type.defaultTransitions;m.onExit=r(e$)({},m.onExit,y&&y.onExit),m.onEnter=r(e$)({},m.onEnter,y&&y.onEnter),m.onLoad=r(e$)({},m.onLoad,y&&y.onLoad);let b=u[p]||u[0];if(s){if(a){let e=b&&b.exiting,t=void 0!==c.exit?c.exit:d(f,"onExit");return function(e,t,n,a,i){let o=e&&e.onExit,l=Object.assign({},e,o),s=n;if(a){e.onEnd=i;let t=e.onExit&&e.onExit.before?e.onExit.before:r(ez);s=n.map((e,r)=>a[(e.key||r).toString()]?Object.assign({},e,t(e,r,n)):e)}return{animate:l,data:s}}(Object.assign({},m,e?{duration:t}:{delay:t}),0,g,e,()=>{n({nodesWillExit:!1})})}else if(i){let e=b&&b.entering,t=void 0!==c.enter?c.enter:d(f,"onEnter"),a=void 0!==c.move?c.move:f.props.animate&&f.props.animate.duration;return h=Object.assign({},m,{duration:o&&e?t:a}),o?function(e,t,n,a){let i=e&&e.onEnter,o=Object.assign({},e,i),l=t;if(n){o.onEnd=a;let e=o.onEnter&&o.onEnter.after?o.onEnter.after:r(ez);l=t.map((r,a)=>n[rU(r,a)]?Object.assign({},r,e(r,a,t)):r)}return{animate:o,data:l}}(h,g,e,()=>{n({nodesWillEnter:!1})}):function(e,t,n,a,i){let o=e,l=n;if(a){o=Object.assign({},e,{onEnd:i});let t=e.onEnter&&e.onEnter.before?e.onEnter.before:r(ez);l=n.map((e,r)=>a[(e.key||r).toString()]?Object.assign({},e,t(e,r,n)):e)}return{animate:o,data:l}}(h,0,g,e,()=>{n({nodesShouldEnter:!0})})}else if(!t&&m&&m.onExit){let e;return e=m.onEnter&&m.onEnter.after?m.onEnter.after:r(ez),{data:g.map((t,n)=>Object.assign({},t,e(t,n,g)))}}}else{let e=void 0!==c.load?c.load:d(f,"onLoad");var v=g,x=Object.assign({},m,{duration:e});if(l)return function(e,t,n){let a=Object.assign({},e,{onEnd:n});if(a&&a.onLoad&&!a.onLoad.duration)return{animate:e,data:t};let i=e.onLoad&&e.onLoad.after?e.onLoad.after:r(ez);return{animate:a,data:t.map((e,n)=>Object.assign({},e,i(e,n,t)))}}(x,v,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})});let t=Object.assign({},x,{onEnd:()=>{n({nodesDoneLoad:!0})}});if(t&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:v};let a=t.onLoad&&t.onLoad.before?t.onLoad.before:r(ez);return{animate:t,data:v.map((e,t)=>Object.assign({},e,a(e,t,v))),clipWidth:0}}return{animate:m,data:g}}}let rG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},rK=function(e){void 0===e&&(e=rG);let[t,n]=r(eh).useState(e),a=r(eh).useCallback(e=>{n(t=>({...t,...e}))},[n]),i=r(eh).useCallback((e,n,i)=>{let o;if(!e?.animate)return n.props.animate;let l=e.animate&&e.animate.getTransitions,s=(o=rF(o=t&&t.childrenTransitions)?o[i]:o,r(e$)({childrenTransitions:o},t)),u=e.animate&&e.animate.parentState||s;if(!l){let t=rY(e,s,e=>a(e));l=e=>t(e,i)}return r(e$)({getTransitions:l,parentState:u},e.animate,n.props.animate)},[t,a]),o=r(eh).useCallback((e,t)=>{if(e?.animate)if(e.animate.parentState){let n=e.animate.parentState.nodesWillExit?e:null;a(r(e$)({oldProps:n,nextProps:t},e.animate.parentState))}else{let n=r(eh).Children.toArray(e.children),i=r(eh).Children.toArray(t.children),o=e=>{let t=e=>e.type&&e.type.continuous;return Array.isArray(e)?e.some(t):t(e)},l=!e.polar&&n.some(e=>o(e)||e?.props?.children&&o(e.props.children)),{nodesWillExit:s,nodesWillEnter:u,childrenTransitions:c,nodesShouldEnter:d}=rH(n,i);a({nodesWillExit:s,nodesWillEnter:u,nodesShouldEnter:d,childrenTransitions:rF(c)?c[0]:c,oldProps:s?e:void 0,nextProps:t,continuous:l})}},[a]),l=r(eh).useCallback(e=>t&&t.nodesWillExit&&t.oldProps||e,[t]);return{state:t,setState:a,getAnimationProps:i,setAnimationState:o,getProps:l}};var rX={};e(rX,"assert",()=>rZ),e(rX,"getSafeUserProps",()=>r0),e(rX,"withSafeUserProps",()=>r5);var eh=o("8NFma");let rQ=["data-","aria-"],rJ=[];function rZ(e,t){if(null==e)throw Error(t)}let r0=e=>Object.fromEntries(Object.entries({...e}).filter(e=>{let t,[n]=e;return t=!1,rQ.forEach(e=>{RegExp(`\\b(${e})(\\w|-)+`,"g").test(n)&&(t=!0)}),!!(t||rJ.includes(n))}).map(t=>{let[n,r]=t;return[n,rs(r,e)]})),r5=(e,t)=>eh.cloneElement(e,r0(t));var eh=o("8NFma"),r1={},r2=0;r1=function(e){var t=++r2;return nW(e)+t};var eh=o("8NFma");function r6(){return(r6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let r3=r(eh).forwardRef((e,t)=>r(eh).createElement("svg",r6({ref:t},e)));var eh=(o("8NFma"),o("8NFma"));let r7=r(eh).createContext(void 0);r7.displayName="PortalContext";let r4=()=>r(eh).useContext(r7),r8=e=>{let{children:t}=e,[n,a]=r(eh).useState(new Map),i=r(eh).useCallback((e,t)=>{a(n=>{let r=new Map(n);return r.set(e,t),r})},[a]),o=r(eh).useCallback(e=>{a(t=>{let n=new Map(t);return n.delete(e),n})},[a]),l=r(eh).useMemo(()=>({addChild:i,removeChild:o,children:n}),[i,o,n]);return r(eh).createElement(r7.Provider,{value:l},t)},r9=e=>{let{as:t,...n}=e,a=r4();if(!a)return null;let i=Array.from(a.children.values());return r(eh).cloneElement(t,n,i)};function ae(){return(ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let at={className:"VictoryContainer",portalComponent:r(eh).createElement(r3,null),portalZIndex:99,responsive:!0,role:"img"},an=e=>{var t;let{role:n,title:a,desc:i,children:o,className:l,portalZIndex:s,portalComponent:u,width:c,height:d,style:f,tabIndex:p,responsive:h,events:g,ouiaId:m,ouiaSafe:y,ouiaType:b,dimensions:v,ariaDescribedBy:x,ariaLabelledBy:_,viewBox:O,preserveAspectRatio:w,userProps:S,titleId:k,descId:P,containerRef:j,localContainerRef:M}=function(e){let t={...at,...e},{title:n,desc:a,width:i,height:o,responsive:l}=t,s=(0,eh.useRef)(null),u=(0,eh.useRef)(r(r1)("victory-container-")),c=t.containerId??u.current,d=e=>`${c}-${e}`,f=r0(t),p=l?`0 0 ${i} ${o}`:void 0,h=l?t.preserveAspectRatio:void 0,g=[n&&d("title"),t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[a&&d("desc"),t["aria-describedby"]].filter(Boolean).join(" ")||void 0,y=d("title"),b=d("desc");return{...t,titleId:y,descId:b,dimensions:l?{width:"100%",height:"100%"}:{width:i,height:o},viewBox:p,preserveAspectRatio:h,ariaLabelledBy:g,ariaDescribedBy:m,userProps:f,localContainerRef:s}}(e);return r(eh).useEffect(()=>{if(!g?.onWheel)return;let e=e=>e.preventDefault(),t=M?.current;return t?.addEventListener("wheel",e),()=>{t?.removeEventListener("wheel",e)}},[]),r(eh).createElement("div",{className:l,style:{...f,width:h?f?.width:v.width,height:h?f?.height:v.height,pointerEvents:f?.pointerEvents??"none",touchAction:f?.touchAction??"none",position:f?.position??"relative"},"data-ouia-component-id":m,"data-ouia-component-type":b,"data-ouia-safe":y,ref:(t=[M,j],e=>{t.forEach(t=>{rm(t)?t(e):null!=t&&(t.current=e)})})},r(eh).createElement(r8,null,r(eh).createElement("svg",ae({width:c,height:d,tabIndex:p,role:n,"aria-labelledby":_,"aria-describedby":x,viewBox:O,preserveAspectRatio:w,style:{...v,pointerEvents:"all"}},S,g),a?r(eh).createElement("title",{id:k},a):null,i?r(eh).createElement("desc",{id:P},i):null,o),r(eh).createElement("div",{style:{...v,zIndex:s,position:"absolute",top:0,left:0}},r(eh).createElement(r9,{as:u,width:c,height:d,viewBox:O,preserveAspectRatio:w,style:{...v,overflow:"visible"}}))))};an.role="container";let ar=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],aa="#252525",ai="#969696",ao={width:450,height:300,padding:50,colorScale:ar},al={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:aa,stroke:"transparent"},as=Object.assign({textAnchor:"middle"},al),au={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:ar,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:aa},labels:al}},ao),axis:Object.assign({style:{axis:{fill:"transparent",stroke:aa,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},as,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:al}},ao),bar:Object.assign({style:{data:{fill:aa,padding:8,strokeWidth:0},labels:al}},ao),boxplot:Object.assign({style:{max:{padding:8,stroke:aa,strokeWidth:1},maxLabels:Object.assign({},al,{padding:3}),median:{padding:8,stroke:aa,strokeWidth:1},medianLabels:Object.assign({},al,{padding:3}),min:{padding:8,stroke:aa,strokeWidth:1},minLabels:Object.assign({},al,{padding:3}),q1:{padding:8,fill:ai},q1Labels:Object.assign({},al,{padding:3}),q3:{padding:8,fill:ai},q3Labels:Object.assign({},al,{padding:3})},boxWidth:20},ao),candlestick:Object.assign({style:{data:{stroke:aa,strokeWidth:1},labels:Object.assign({},al,{padding:5})},candleColors:{positive:"#ffffff",negative:aa}},ao),chart:ao,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:aa,strokeWidth:2},labels:al}},ao),group:Object.assign({colorScale:ar},ao),histogram:Object.assign({style:{data:{fill:ai,stroke:aa,strokeWidth:2},labels:al}},ao),legend:{colorScale:ar,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:al,title:Object.assign({},al,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:aa,strokeWidth:2},labels:al}},ao),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},al,{padding:20})},colorScale:ar,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:aa,stroke:"transparent",strokeWidth:0},labels:al}},ao),stack:Object.assign({colorScale:ar},ao),tooltip:{style:Object.assign({},al,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:aa,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},al,{padding:5,pointerEvents:"none"}),flyout:{stroke:aa,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},ao)},ac="#FFF59D",ad="#F4511E",af="#8BC34A",ap="#00796B",ah="#006064",ag=[ad,ac,"#DCE775",af,ap,ah],am="#ECEFF1",ay="#90A4AE",ab="#455A64",av="#212121",ax=[am,ay,ab,av],a_={width:350,height:350,padding:50},aO={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:ab,stroke:"transparent",strokeWidth:0},aw=Object.assign({textAnchor:"middle"},aO),aS="round",ak="round",aP={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:ap,purple:"#DF948A",green:af,orange:ad,cyan:ah,red:"#DF5A49",yellow:ac},grayscale:ax,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:av},labels:aO}},a_),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ay,strokeWidth:2,strokeLinecap:aS,strokeLinejoin:ak},axisLabel:Object.assign({},aw,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:am,strokeDasharray:"10, 5",strokeLinecap:aS,strokeLinejoin:ak,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ay,strokeWidth:1,strokeLinecap:aS,strokeLinejoin:ak},tickLabels:Object.assign({},aO,{fill:ab})}},a_),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:ab,padding:8,strokeWidth:0},labels:aO}},a_),boxplot:Object.assign({style:{max:{padding:8,stroke:ab,strokeWidth:1},maxLabels:Object.assign({},aO,{padding:3}),median:{padding:8,stroke:ab,strokeWidth:1},medianLabels:Object.assign({},aO,{padding:3}),min:{padding:8,stroke:ab,strokeWidth:1},minLabels:Object.assign({},aO,{padding:3}),q1:{padding:8,fill:ab},q1Labels:Object.assign({},aO,{padding:3}),q3:{padding:8,fill:ab},q3Labels:Object.assign({},aO,{padding:3})},boxWidth:20},a_),candlestick:Object.assign({style:{data:{stroke:ab},labels:Object.assign({},aO,{padding:5})},candleColors:{positive:"#ffffff",negative:ab}},a_),chart:a_,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ab,strokeWidth:2},labels:aO}},a_),group:Object.assign({colorScale:ag},a_),histogram:Object.assign({style:{data:{fill:ab,stroke:av,strokeWidth:2},labels:aO}},a_),legend:{colorScale:ag,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:aO,title:Object.assign({},aO,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ab,strokeWidth:2},labels:aO}},a_),pie:Object.assign({colorScale:ag,style:{data:{padding:8,stroke:am,strokeWidth:1},labels:Object.assign({},aO,{padding:20})}},a_),scatter:Object.assign({style:{data:{fill:ab,opacity:1,stroke:"transparent",strokeWidth:0},labels:aO}},a_),stack:Object.assign({colorScale:ag},a_),tooltip:{style:Object.assign({},aO,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:av,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},aO,{padding:5,pointerEvents:"none"}),flyout:{stroke:av,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},a_)},aj={white:"#FFFFFF",50:"#FAFAFA",100:"#F2F2F2",200:"#E8E8E8",300:"#E0E0E0",400:"#D1D1D1",500:"#757575",600:"#5C5C5C",700:"#424242",800:"#333333",900:"#292929",black:"#0F0F0F"},aM={100:"#FFEAB6",300:"#FFD66E",500:"#FCB400",900:"#B87503"},aC={100:"#FEE2D5",300:"#FFA981",500:"#FF6F2C",700:"#FF4E1B",900:"#D74D26"},aE={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},aA={100:"#EDE3FE",300:"#CDB0FF",500:"#8B46FF",900:"#6B1CB0"},aT={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},aD={100:"#D0F0FD",300:"#77D1F3",500:"#18BFFF",900:"#0B76B7"},aL={100:"#C2F5E9",300:"#72DDC3",500:"#20D9D2",900:"#06A09B"},a$={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},aN={blue:aT["500"],cyan:aD["500"],green:a$["500"],yellow:aM["500"],orange:aC["500"],red:aE["500"],purple:aA["500"],teal:aL["500"]},az=Object.values(aN),aF=[aj["100"],aj["300"],aj["500"],aj["700"],aj["900"]],aR=[aM["300"],aM["500"],aC["500"],aC["900"],aE["500"]],aI=[aA["500"],aT["500"],aD["500"],aL["500"],a$["500"]],aW=[a$["900"],a$["500"],aM["500"],aC["500"],aE["500"]],aU=Object.values(aE),aq=Object.values(a$),aB=Object.values(aT),aV=aT["500"],aH={width:450,height:300,padding:60,colorScale:az},aY={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:aj["900"],stroke:"transparent"},aG=Object.assign({textAnchor:"middle"},aY),aK="10, 5",aX="round",aQ="round";Object.assign({style:{data:{fill:aV,strokeWidth:2,fillOpacity:.5},labels:aY}},aH),Object.assign({style:{axis:{fill:"transparent",stroke:aj["500"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},axisLabel:Object.assign({},aG,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:aY}},aH),Object.assign({style:{axis:{stroke:aj["500"]},grid:{stroke:aj["400"],strokeDasharray:aK,strokeLinecap:aX,strokeLinejoin:aQ,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:aj["400"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},tickLabels:aY}}),Object.assign({style:{axis:{stroke:aj["500"]},grid:{stroke:aj["400"],strokeDasharray:aK,strokeLinecap:aX,strokeLinejoin:aQ,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:aj["300"],strokeWidth:1,strokeLinecap:aX,strokeLinejoin:aQ},tickLabels:aY}}),Object.assign({style:{data:{fill:aV,padding:8,strokeWidth:1,fillOpacity:.5},labels:aY},cornerRadius:{top:1}},aH),Object.assign({style:{max:{padding:8,stroke:aj["400"],strokeWidth:2},maxLabels:Object.assign({},aY,{padding:3}),median:{padding:8,stroke:aj.white,strokeWidth:2},medianLabels:Object.assign({},aY,{padding:3}),min:{padding:8,stroke:aj["400"],strokeWidth:2},minLabels:Object.assign({},aY,{padding:3}),q1:{padding:8,fill:az[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},aY,{padding:3}),q3:{padding:8,fill:az[1],rx:1},q3Labels:Object.assign({},aY,{padding:3})},boxWidth:20},aH),Object.assign({style:{data:{stroke:aj["300"],strokeWidth:0,rx:1},labels:Object.assign({},aY,{padding:5})},candleColors:{positive:a$["500"],negative:aE["500"]},wickStrokeWidth:2},aH),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:aj["700"],strokeWidth:2,strokeLinecap:aX},labels:aY}},aH),Object.assign({colorScale:az},aH),Object.assign({style:{data:{fill:aD["500"],fillOpacity:.5},labels:aY},binSpacing:4,cornerRadius:{top:1}},aH),Object.assign({},aY,{padding:8,fontSize:16}),aj["200"],Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:aV,strokeWidth:2,strokeLinecap:aX,strokeLinejoin:aQ},labels:aY}},aH),Object.assign({style:{parent:{backgroundColor:aj.white},data:{padding:8,stroke:aj.white,strokeWidth:1},labels:{...aY,padding:20,fill:aj["600"],fontSize:10}},colorScale:az,cornerRadius:1},aH),Object.assign({style:{data:{fill:aV,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...aY,padding:20}}},aH),Object.assign({colorScale:az},aH),Object.assign({},aY,{padding:0,pointerEvents:"none"}),aj["300"],aj.white,Object.assign({style:{data:{fill:aT["100"],stroke:aV,strokeWidth:2},labels:Object.assign({},aY,{padding:5,pointerEvents:"none"}),flyout:{stroke:aj["900"],strokeWidth:1,fill:aj["100"],pointerEvents:"none"},padding:{left:2,bottom:2}}},aH);var aJ={};e(aJ,"addBinsToParentPropsIfHistogram",()=>lC),e(aJ,"getDataFromChildren",()=>lE),e(aJ,"getData",()=>lA),e(aJ,"getWidth",()=>lT),e(aJ,"getDefaultDomainPadding",()=>lD),e(aJ,"getDomainFromChildren",()=>lL),e(aJ,"getDomain",()=>l$),e(aJ,"getScale",()=>lN),e(aJ,"getAllEvents",()=>lz),e(aJ,"getColor",()=>lF),e(aJ,"getStyle",()=>lR),e(aJ,"getChildStyle",()=>lI),e(aJ,"getStringsFromChildrenCategories",()=>lW),e(aJ,"getStringsFromData",()=>lU),e(aJ,"getCategoryAndAxisStringsFromChildren",()=>lq),e(aJ,"getStringsFromChildren",()=>lB),e(aJ,"getCategories",()=>lV);var eh=o("8NFma"),aZ={},a0={},a5={},a1={};a1=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var a2={};function a6(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nc;++t<n;)this.add(e[t])}a2=function(e){return this.__data__.has(e)},a6.prototype.add=a6.prototype.push=a1,a6.prototype.has=a2,a5=a6;var a3={},a7={},a4={};a4=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return -1};var a8={};a8=function(e){return e!=e};var a9={};a9=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return -1},a7=function(e,t,n){return t==t?a9(e,t,n):a4(e,a8,n)},a3=function(e,t){return!!(null==e?0:e.length)&&a7(e,t,0)>-1};var ie={};ie=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1};var it={};it=function(e,t){return e.has(t)};var ir={},ia={};ia=function(){};var ii={};ii=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},ir=tG&&1/ii(new tG([,-0]))[1]==1/0?function(e){return new tG(e)}:ia,a0=function(e,t,n){var r=-1,a=a3,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=ie;else if(i>=200){var u=t?null:ir(e);if(u)return ii(u);o=!1,a=it,s=new a5}else s=t?[]:l;r:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,o&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue r;t&&s.push(d),l.push(c)}else a(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l},aZ=function(e){return e&&e.length?a0(e):[]};var io={},il={},is={};is=function(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r};var iu={},ic={},id={},ip={};ip=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++a];if(!1===n(i[s],s,i))break}return t}}();var ih={};ih=function(e){return tc(e)?tg(e):tI(e)};ic=function(e,t){return function(n,r){if(null==n)return n;if(!tc(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}(id=function(e,t){return e&&ip(e,t,ih)}),iu=function(e,t,n,r){return ic(e,function(e,a,i){t(r,e,n(e),i)}),r};var ig={},im={},iy={},ib={},iv={};iv=function(){this.__data__=new nO,this.size=0};var ix={};ix=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var i_={};i_=function(e){return this.__data__.get(e)};var iO={};iO=function(e){return this.__data__.has(e)};var iw={};function iS(e){var t=this.__data__=new nO(e);this.size=t.size}iw=function(e,t){var n=this.__data__;if(n instanceof nO){var r=n.__data__;if(!tH||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nc(r)}return n.set(e,t),this.size=n.size,this},iS.prototype.clear=iv,iS.prototype.delete=ix,iS.prototype.get=i_,iS.prototype.has=iO,iS.prototype.set=iw,ib=iS;var ik={},iP={},ij={},iM={};iM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},ij=function(e,t,n,r,a,i){var o=1&n,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new a5:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=o?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!iM(t,function(e,t){if(!it(p,t)&&(h===e||a(h,e,n,r,i)))return p.push(t)})){f=!1;break}}else if(!(h===g||a(h,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f};var iC={},iE={},eX=o("eeOBM");iE=eX.Uint8Array;var iA={};iA=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var iT=eK?eK.prototype:void 0,iD=iT?iT.valueOf:void 0;iC=function(e,t,n,r,a,i,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!i(new iE(e),new iE(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return ts(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=iA;case"[object Set]":var s=1&r;if(l||(l=ii),e.size!=t.size&&!s)break;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=ij(l(e),l(t),r,a,i,o);return o.delete(e),c;case"[object Symbol]":if(iD)return iD.call(e)==iD.call(t)}return!1};var iL={},i$={},iN={};iN=function(e,t,n){var r=t(e);return tw(e)?r:n4(r,n(e))};var iz={},iF={};iF=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};var iR={};iR=function(){return[]};var iI=Object.prototype.propertyIsEnumerable,iW=Object.getOwnPropertySymbols;iz=iW?function(e){return null==e?[]:(e=Object(e),iF(iW(e),function(t){return iI.call(e,t)}))}:iR,i$=function(e){return iN(e,ih,iz)};var iU=Object.prototype.hasOwnProperty;iL=function(e,t,n,r,a,i){var o=1&n,l=i$(e),s=l.length;if(s!=i$(t).length&&!o)return!1;for(var u=s;u--;){var c=l[u];if(!(o?c in t:iU.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=o;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var y=o?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===y?g===m||a(g,m,n,r,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,v=t.constructor;b!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v)&&(p=!1)}return i.delete(e),i.delete(t),p};var tS=o("9e2tS"),iq="[object Arguments]",iB="[object Array]",iV="[object Object]",iH=Object.prototype.hasOwnProperty;iP=function(e,t,n,r,a,i){var o=tw(e),l=tw(t),s=o?iB:tB(e),u=l?iB:tB(t);s=s==iq?iV:s,u=u==iq?iV:u;var c=s==iV,d=u==iV,f=s==u;if(f&&tS(e)){if(!tS(t))return!1;o=!0,c=!1}if(f&&!c)return i||(i=new ib),o||tk(e)?ij(e,t,n,r,a,i):iC(e,t,s,n,r,a,i);if(!(1&n)){var p=c&&iH.call(e,"__wrapped__"),h=d&&iH.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new ib),a(g,m,n,r,i)}}return!!f&&(i||(i=new ib),iL(e,t,n,r,a,i))},ik=function e(t,n,r,a,i){return t===n||(null!=t&&null!=n&&(tv(t)||tv(n))?iP(t,n,r,a,e,i):t!=t&&n!=n)},iy=function(e,t,n,r){var a=n.length,i=a,o=!r;if(null==e)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var s=(l=n[a])[0],u=e[s],c=l[1];if(o&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new ib;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?ik(c,u,3,r,d):f))return!1}}return!0};var iY={},iG={};iG=function(e){return e==e&&!e3(e)},iY=function(e){for(var t=ih(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,iG(a)]}return t};var iK={};iK=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},im=function(e){var t=iY(e);return 1==t.length&&t[0][2]?iK(t[0][0],t[0][1]):function(n){return n===e||iy(n,e,t)}};var iX={},iQ={};iQ=function(e,t,n){var r=null==e?void 0:nn(e,t);return void 0===r?n:r},iX=function(e,t){return na(e)&&iG(t)?iK(nY(e),t):function(n){var r=iQ(n,e);return void 0===r&&r===t?n1(n,e):ik(t,r,3)}},ig=function(e){return"function"==typeof e?e:null==e?ez:"object"==typeof e?tw(e)?iX(e[0],e[1]):im(e):t9(e)},il=function(e,t){return function(n,r){var a=tw(n)?is:iu,i=t?t():{};return a(n,e,ig(r,2),i)}};var iJ=Object.prototype.hasOwnProperty;io=il(function(e,t,n){iJ.call(e,n)?e[n].push(t):n0(e,n,[t])});var iZ={};iZ=function(e,t){return e&&e.length?a0(e,ig(t,2)):[]};var i0={};e(i0,"getAxis",()=>o7),e(i0,"findAxisComponents",()=>o4),e(i0,"getAxisComponent",()=>o8),e(i0,"getAxisComponentsWithParent",()=>o9),e(i0,"getOrigin",()=>le),e(i0,"getOriginSign",()=>lt),e(i0,"isVertical",()=>ln),e(i0,"stringTicks",()=>lr),e(i0,"getTickFormat",()=>li),e(i0,"getTicks",()=>ll),e(i0,"getDomain",()=>lu),e(i0,"getAxisValue",()=>lc),e(i0,"modifyProps",()=>ld);var eh=o("8NFma"),i5={},i1={},i2={};i2=function(e,t){var n=-1,r=tc(e)?Array(e.length):[];return ic(e,function(e,a,i){r[++n]=t(e,a,i)}),r};var i6={};i6=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var i3={},i7={};i7=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e==e,i=ni(e),o=void 0!==t,l=null===t,s=t==t,u=ni(t);if(!l&&!u&&!i&&e>t||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!s)return -1}return 0},i3=function(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=i7(a[r],i[r]);if(s){if(r>=l)return s;return s*("desc"==n[r]?-1:1)}}return e.index-t.index},i1=function(e,t,n){t=t.length?nq(t,function(e){return tw(e)?function(t){return nn(t,1===e.length?e[0]:e)}:e}):[ez];var r=-1;t=nq(t,tM(ig));var a=i2(e,function(e,n,a){return{criteria:nq(t,function(t){return t(e)}),index:++r,value:e}});return i6(a,function(e,t){return i3(e,t,n)})},i5=function(e,t,n,r){return null==e?[]:(tw(t)||(t=null==t?[]:[t]),tw(n=r?void 0:n)||(n=null==n?[]:[n]),i1(e,t,n))};var i4={};e(i4,"getMinFromProps",()=>o1),e(i4,"getMaxFromProps",()=>o5),e(i4,"getDomainFromMinMax",()=>oJ),e(i4,"createDomainFunction",()=>oY),e(i4,"getDomainFromData",()=>oQ),e(i4,"formatDomain",()=>oG),e(i4,"getDomainFromProps",()=>oZ),e(i4,"getDomainFromCategories",()=>oX),e(i4,"getDomain",()=>oK),e(i4,"getSymmetricDomain",()=>o2),e(i4,"getDomainWithZero",()=>o0),e(i4,"isDomainComponent",()=>o6);var eh=o("8NFma"),i8={},i9={};i9=function(e){return tv(e)&&"[object Date]"==eG(e)};var tC=o("fwpsA"),oe=tC&&tC.isDate;i8=oe?tM(oe):i9;var ot={},on={};on=tU(Object.getPrototypeOf,Object);var or=Object.prototype,oa=Function.prototype.toString,oi=or.hasOwnProperty,oo=oa.call(Object);ot=function(e){if(!tv(e)||"[object Object]"!=eG(e))return!1;var t=on(e);if(null===t)return!0;var n=oi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oa.call(n)==oo};var ol={},os={};os=function(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],l=t?t(o):o;if(!n||!ts(l,s)){var s=l;i[a++]=0===o?0:o}}return i},ol=function(e){return e&&e.length?os(e):[]};var ou={};e(ou,"formatDataFromDomain",()=>o$),e(ou,"createStringMap",()=>oN),e(ou,"getStringsFromAxes",()=>oU),e(ou,"getStringsFromCategories",()=>oq),e(ou,"getStringsFromData",()=>oB),e(ou,"downsample",()=>oz),e(ou,"formatData",()=>oF),e(ou,"generateData",()=>oR),e(ou,"getCategories",()=>oI),e(ou,"getData",()=>oW),e(ou,"isDataComponent",()=>oV);var eh=o("8NFma"),oc={};oc=function(e,t){return ik(e,t)};var od={};od=function(e){return void 0===e};var of={},op={};op=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var oh={},og={},om={};om=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n4(t,iz(e)),e=on(e);return t}:iR,og=function(e){return iN(e,th,om)},oh=function(e,t){if(null==e)return{};var n=nq(og(e),function(e){return[e]});return t=ig(t),nQ(e,n,function(e,n){return t(e,n[0])})},of=function(e,t){return oh(e,op(ig(t)))};var oy={};e(oy,"validScale",()=>ox),e(oy,"getType",()=>oC),e(oy,"getScaleFromName",()=>ow),e(oy,"getBaseScale",()=>oS),e(oy,"getScaleFromProps",()=>oP),e(oy,"getDefaultScale",()=>ok),e(oy,"getScaleType",()=>oj);var ob={};ob=o("4uxXl");let ov=["linear","time","log","sqrt"];function ox(e){return"function"==typeof e?rm(e.copy)&&rm(e.domain)&&rm(e.range):"string"==typeof e&&ov.includes(e)}function o_(e,t){return!!e.scale&&(!e.scale.x&&!e.scale.y||!!e.scale[t])}function oO(e,t){if(!e.data)return"linear";let n=ry(e[t]);return rL(e.data.map(e=>{let a=r(ot)(n(e))?n(e)[t]:n(e);return void 0!==a?a:e[t]}))?"time":"linear"}function ow(e){if(ox(e))return ob[`scale${e&&e[0].toUpperCase()+e.slice(1)}`]();return ob.scaleLinear()}function oS(e,t){let n=oP(e,t);return n?"string"==typeof n?ow(n):n:ow(function(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),n)return rL(n)?"time":"linear"}(e,t)||oO(e,t))}function ok(){return ob.scaleLinear()}function oP(e,t){if(!o_(e,t))return;let n=e.scale[t]||e.scale;if(ox(n))return rm(n)?n:ow(n)}function oj(e,t){return function(e,t){if(!o_(e,t))return;let n=e.scale[t]||e.scale;return"string"==typeof n?n:oC(n)}(e,t)||oO(e,t)}let oM=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function oC(e){if("string"==typeof e)return e;let t=oM.filter(t=>void 0!==e[t.method])[0];return t?t.name:void 0}function oE(e){return!!(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function oA(e){return oE(e)||e&&e["@@__IMMUTABLE_RECORD__@@"]?function e(t,n){return oE(t)?t.reduce((t,r,a)=>{let i=r;return n&&n[a]&&(i=e(r)),t[a]=i,t},t&&t["@@__IMMUTABLE_LIST__@@"]?[]:{}):t}(e,{errorX:!0,errorY:!0}):e}function oT(e){return oE(e)?e.size:e.length}function oD(e,t){let n=(r(ot)(e.domain)?e.domain[t]:e.domain)||oS(e,t).domain(),a=e.samples||1,i=Math.max(...n),o=Math.min(...n),l=(i-o)/a,s=r_(o,i,l);return s[s.length-1]===i?s:s.concat(i)}function oL(e,t,n){if(void 0===n&&(n="ascending"),!t)return e;let a=t;("x"===t||"y"===t)&&(a=`_${t}`);let i="ascending"===n?"asc":"desc";return r(i5)(e,a,i)}function o$(e,t,n){let a=rW(t.x),i=rI(t.x),o=rW(t.y),l=rI(t.y),s=e=>t=>void 0!==t&&t<e,u=e=>t=>void 0!==t&&t>e,c=s(a),d=s(o),f=u(i),p=u(l);return e.map(e=>{let{_x:t,_y:a,_y0:i,_y1:s}=e;(c(t)||f(t))&&(t=null);let u=void 0!==i?i:n,h=void 0!==s?s:a;return void 0===h?e:(void 0===u&&(d(h)||p(h))&&(a=null),(d(u)&&d(h)||p(u)&&p(h))&&(a=i=s=null),d(u)&&!d(h)&&(i=o),p(u)&&!p(h)&&(i=l),Object.assign({},e,r(of)({_x:t,_y:a,_y0:i,_y1:s},r(od))))})}function oN(e,t){let n=oU(e,t),a=oq(e,t),i=oB(e,t),o=r(aZ)([...n,...a,...i]);return 0===o.length?null:o.reduce((e,t,n)=>(e[t]=n+1,e),{})}function oz(e,t,n){void 0===n&&(n=0);let r=oT(e);if(r>t){let a=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((e,t)=>(t+n)%a==0)}return e}function oF(e,t,n){var a;let i,o,l;if(!(Array.isArray(e)||oE(e))||1>oT(e))return[];let s=["x","y","y0"],u=(n=Array.isArray(n)?n:s).reduce((e,n)=>(e[n]=ry(void 0!==t[n]?t[n]:n),e),{}),c=r(oc)(n,s)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;!1===c&&(i={x:-1!==n.indexOf("x")?oN(t,"x"):void 0,y:-1!==n.indexOf("y")?oN(t,"y"):void 0,y0:-1!==n.indexOf("y0")?oN(t,"y"):void 0});let d=function(e,t){let n=1/Number.MAX_SAFE_INTEGER,r={x:oj(t,"x"),y:oj(t,"y")};if("log"!==r.x&&"log"!==r.y)return e;let a=(e,t)=>"log"!==r[t]||0!==e[`_${t}`];return e.map(e=>{let t,r,i;return a(e,"x")&&a(e,"y")&&a(e,"y0")?e:(t=a(e,"x")?e._x:n,r=a(e,"y")?e._y:n,i=a(e,"y0")?e._y0:n,Object.assign({},e,{_x:t,_y:r,_y0:i}))})}(oL(c?e:e.reduce((e,t,a)=>{let o=oA(t),l={x:a,y:o},s=Object.assign({},n.reduce((e,t)=>{let n=u[t](o),r=void 0!==n?n:l[t];return void 0!==r&&("string"==typeof r&&i[t]?(e[`${t}Name`]=r,e[`_${t}`]=i[t][r]):e[`_${t}`]=r),e},{}),o);return r(tR)(s)||e.push(s),e},[]),t.sortKey,t.sortOrder),t);return o=!!t.eventKey,l=rm(a=t.eventKey)?a:null==a?()=>void 0:r(t9)(a),d.map((e,t)=>{if(void 0!==e.eventKey);else if(o){let n=l(e,t);return void 0!==n?Object.assign({eventKey:n},e):e}return e})}function oR(e){let t=oD(e,"x"),n=oD(e,"y");return t.map((e,t)=>({x:e,y:n[t]}))}function oI(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function oW(e){return e.data?oF(e.data,e):oF(oR(e),e)}function oU(e,t){let{tickValues:n,tickFormat:r}=e;return(n&&(Array.isArray(n)||n[t])?n[t]||n:r&&Array.isArray(r)?r:[]).filter(e=>"string"==typeof e)}function oq(e,t){if(!e.categories)return[];let n=oI(e,t),r=n&&n.filter(e=>"string"==typeof e);return r?rR(r):[]}function oB(e,t){if(!(Array.isArray(e.data)||oE(e.data)))return[];let n=ry(void 0===e[t]?t:e[t]);return oL(e.data.reduce((e,t)=>(e.push(oA(t)),e),[]),e.sortKey,e.sortOrder).reduce((e,t)=>{let r=oA(t);return e.push(n(r)),e},[]).filter(e=>"string"==typeof e).reduce((e,t)=>(null!=t&&-1===e.indexOf(t)&&e.push(t),e),[])}function oV(e){let t=e=>e&&e.type?e.type.role:"",n=t(e);if("portal"===n){let a=r(eh).Children.toArray(e.props.children);n=a.length?t(a[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function oH(e,t,n){void 0===n&&(n="min");let r=e=>"max"===n?Math.max(...e):Math.min(...e),a="max"===n?-1/0:1/0,i=!1,o=e.flat().reduce((e,n)=>{let a=void 0!==n[`_${t}0`]?n[`_${t}0`]:n[`_${t}`],o=void 0!==n[`_${t}1`]?n[`_${t}1`]:n[`_${t}`],l=r([a,o]);return i=i||a instanceof Date||o instanceof Date,r([e,l])},a);return i?new Date(o):o}function oY(e,t){let n=rm(e)?e:oQ,r=rm(t)?t:oG;return(e,t)=>{let a=oZ(e,t);if(a)return r(a,e,t);let i=oI(e,t),o=i?oX(e,t,i):n(e,t);return o?r(o,e,t):void 0}}function oG(e,t,n){return function(e,t,n){let r;return"log"!==oj(t,n)?e:(r=e[0]<0||e[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===e[0]?r:e[0],0===e[1]?r:e[1]])}(function(e,t,n){if(!t.domainPadding)return e;let a=o1(t,n),i=o5(t,n),o=(e=>Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e})(r(ot)(t.domainPadding)?t.domainPadding[n]:t.domainPadding);if(!o.left&&!o.right)return e;let l=rW(e),s=rI(e),u=rv(n,t.horizontal),c=rh(t,u),d=Math.abs(c[0]-c[1]),f=Math.max(d-o.left-o.right,1),p=Math.abs(s.valueOf()-l.valueOf())/f*d,h={left:p*o.left/d,right:p*o.right/d},g={min:l.valueOf()-h.left,max:s.valueOf()+h.right},m=r(ot)(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=l.valueOf()>=0&&g.min<=0||0>=s.valueOf()&&g.max>=0,b=(e,t)=>"min"===t&&l.valueOf()>=0&&e<=0||"max"===t&&0>=s.valueOf()&&e>=0?0:e;if(y&&!1!==m){let e={left:Math.abs(s-l)*o.left/d,right:Math.abs(s-l)*o.right/d},t={min:b(l.valueOf()-e.left,"min"),max:b(s.valueOf()+e.right,"max")},n={left:Math.abs(t.max-t.min)*o.left/d,right:Math.abs(t.max-t.min)*o.right/d};g={min:b(l.valueOf()-n.left,"min"),max:b(s.valueOf()+n.right,"max")}}let v={min:void 0!==a?a:g.min,max:void 0!==i?i:g.max};return l instanceof Date||s instanceof Date?oJ(new Date(v.min),new Date(v.max)):oJ(v.min,v.max)}(e,t,n),t,n)}function oK(e,t){return oY()(e,t)}function oX(e,t,n){let r=n||oI(e,t),{polar:a,startAngle:i=0,endAngle:o=360}=e;if(!r)return;let l=o1(e,t),s=o5(e,t),u=rD(r)?oq(e,t):[],c=0===u.length?null:u.reduce((e,t,n)=>(e[t]=n+1,e),{}),d=c?r.map(e=>c[e]):r,f=oJ(void 0!==l?l:rW(d),void 0!==s?s:rI(d));return a&&"x"===t&&360===Math.abs(i-o)?o2(f,d):f}function oQ(e,t,n){let r,a=n||oW(e),{polar:i,startAngle:o=0,endAngle:l=360}=e,s=o1(e,t),u=o5(e,t);if(a.length<1)return void 0!==s&&void 0!==u?oJ(s,u):void 0;let c=oJ(void 0!==s?s:oH(a,t,"min"),void 0!==u?u:oH(a,t,"max"));return i&&"x"===t&&360===Math.abs(o-l)?o2(c,(r=`_${t}`,a.flat().map(e=>e[r]&&void 0!==e[r][1]?e[r][1]:e[r]))):c}function oJ(e,t){let n,r,a;return Number(e)===Number(t)?(n=0===t?2e-10:1e-10,r=t instanceof Date?new Date(Number(t)-1):Number(t)-n,a=t instanceof Date?new Date(Number(t)+1):Number(t)+n,0===t?[0,a]:[r,a]):[e,t]}function oZ(e,t){let n=o1(e,t),a=o5(e,t);return r(ot)(e.domain)&&e.domain[t]?e.domain[t]:Array.isArray(e.domain)?e.domain:void 0!==n&&void 0!==a?oJ(n,a):void 0}function o0(e,t){let n=oZ(e,t);if(n)return n;let r=oW(e),a=r.reduce((e,t)=>t._y0<e?t._y0:e,1/0);return oY(()=>oQ(e,t,r),n=>oG((n=>{if("x"===t)return n;let r=a!==1/0?a:0,i=o5(e,t),o=o1(e,t),l=void 0!==i?i:rI(n,r);return oJ(void 0!==o?o:rW(n,r),l)})(n),e,t))(e,t)}function o5(e,t){return r(ot)(e.maxDomain)&&void 0!==e.maxDomain[t]?e.maxDomain[t]:"number"==typeof e.maxDomain||r(i8)(e.maxDomain)?e.maxDomain:void 0}function o1(e,t){return r(ot)(e.minDomain)&&void 0!==e.minDomain[t]?e.minDomain[t]:"number"==typeof e.minDomain||r(i8)(e.minDomain)?e.minDomain:void 0}function o2(e,t){let n=r(ol)(t.sort((e,t)=>e-t)),a=n[1]-n[0];return[e[0],e[1]+a]}function o6(e){let t=e=>e&&e.type?e.type.role:"",n=t(e);if("portal"===n){let a=r(eh).Children.toArray(e.props.children);n=a.length?t(a[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function o3(e){return e}function o7(e){let{dependentAxis:t}=e;return t?"y":"x"}function o4(e,t){let n=t||o3,a=e=>e.reduce((e,t)=>t.type&&"axis"===t.type.role&&n(t)?e.concat(t):t.props&&t.props.children?e.concat(a(r(eh).Children.toArray(t.props.children))):e,[]);return a(e)}function o8(e,t){return o4(e,e=>e.type.getAxis(e.props)===t)[0]}function o9(e,t){let n=e=>e.reduce((e,a)=>a.type&&"axis"===a.type.role&&("dependent"===t?a.props.dependentAxis:!a.props.dependentAxis)||a.props&&a.props.children&&n(r(eh).Children.toArray(a.props.children)).length>0?e.concat(a):e,[]);return n(e)}function le(e){let t=e=>{let t=Math.min(...e),n=Math.max(...e);return n<0?n:Math.max(0,t)};return{x:rL(e.x)?new Date(Math.min(...e.x)):t(e.x),y:rL(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function lt(e,t){return rL(t)?"positive":e<=0&&0>=Math.max(...t)?"negative":"positive"}function ln(e){return({top:!1,bottom:!1,left:!0,right:!0})[e.orientation||(e.dependentAxis?"left":"bottom")]}function lr(e){return void 0!==e.tickValues&&rD(e.tickValues)}function la(e){let t,n,a,i,o,{tickValues:l,tickFormat:s}=e;if(l?.length===0)return[];let u=o7(e),c=e.stringMap&&e.stringMap[u],d=l;c&&(t=o7(e),n=e.stringMap&&e.stringMap[t],i=(a=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t])&&rN(a)?a.map(e=>n[e]):void 0,o=n&&Object.values(n),d=i&&0!==i.length?i:o),l&&rD(l)&&(d=c?l.map(e=>c[e]):r_(1,l.length+1));let f=d?r(aZ)(d):(()=>{if(s&&Array.isArray(s))return rD(s)?s.map((e,t)=>t):s})();return Array.isArray(f)&&f.length?(t=>{let n=[],r=e.domain&&e.domain[u]||e.domain;if(t)return t.forEach((e,t)=>{Array.isArray(r)?e>=rW(r).valueOf()&&e<=rI(r).valueOf()&&n.push({value:e,index:t}):n.push({value:e,index:t})}),n})(f):void 0}function li(e,t){let{tickFormat:n}=e,a=o7(e),i=e.stringMap&&e.stringMap[a];if(n){if(n&&Array.isArray(n)){let t=la(e),r=t?.map(e=>e.index),a=n.filter((e,t)=>r?.includes(t));return(e,t)=>a[t]}else if(n&&rm(n))return i?(t,n,r)=>{let a=re(i),o=r.map(e=>a[e]);return e.tickFormat(a[t],n,o)}:n}else{let n=function(e){let{tickValues:t}=e,n=o7(e),a=e.stringMap&&e.stringMap[n],i=t&&!rL(t)?e=>e:void 0;if(!a)return lr(e)?(e,n)=>t[n]:i;let o=a&&re(a),l=["",...r(i5)(Object.values(a),e=>e).map(e=>o[e]),""];return e=>l[e]}(e),a=t.tickFormat&&rm(t.tickFormat)?t.tickFormat():e=>e;return n||a}return e=>e}function lo(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;let n=Math.floor(e.length/t);return e.filter((e,t)=>t%n==0)}function ll(e,t,n){void 0===n&&(n=!1);let{tickCount:r}=e,a=la(e);if(a?.length===0)return[""];let i=a?a.map(e=>e.value):void 0;if(i)return lo(i,r);if(t.ticks&&rm(t.ticks)){let e=t.ticks(r||5),a=lo(Array.isArray(e)&&e.length?e:t.domain(),r);if(n){let e=a.filter(e=>0!==e);return e.length?e:a}return a}return t.domain()}function ls(e,t){let{polar:n,startAngle:r=0,endAngle:a=360}=e,i=la(e),o=i&&i?.length!==0?i.map(e=>e.value):void 0;if(!Array.isArray(o))return;let l=o1(e,t),s=o5(e,t),u=lr(e),c=o.map(e=>Number(e)),d=u?1:rW(c),f=u?o.length:rI(c),p=oJ(void 0!==l?l:d,void 0!==s?s:f),h=n&&"x"===t&&360===Math.abs(r-a)?o2(p,c):p;return ln(e)&&!n&&h.reverse(),h}function lu(e,t){let n=o7(e);if(!t||t===n)return oY(ls)(e,n)}function lc(e,t){if(!e.axisValue)return;let n="x"===t?"y":"x",a=r(e3)(e.scale)&&rm(e.scale[n])?e.scale[n]:void 0;if(!a)return;let i=r(e3)(e.stringMap)&&e.stringMap["x"===t?"y":"x"];return a(i&&"string"==typeof e.axisValue?i[e.axisValue]:e.axisValue)}function ld(e,t){if(!r(e3)(e.theme))return rb(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),"axis"===n)return rb(e,t,"axis");let a=r(e$)({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:a});return rb(Object.assign({},e,{theme:i}),t,"axis")}var lf={};e(lf,"toTransformString",()=>lp),e(lf,"getColorScale",()=>lh);let lp=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((e,t)=>[e,lp(t)].join(" "),lp(e)).trim();if(null==e||"string"==typeof e)return e;let a=[];for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];a.push(`${t}(${n})`)}return a.join(" ").trim()};function lh(e,t){void 0===t&&(t=aP);let{palette:{grayscale:n=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:a=[],warm:i=[],cool:o=[],red:l=[],blue:s=[],green:u=[]}={}}=t,c={grayscale:n,qualitative:r,heatmap:a,warm:i,cool:o,red:l,blue:s,green:u};return e&&c[e]?.length?c[e]:c.grayscale}var lg={};e(lg,"getEvents",()=>ly),e(lg,"getScopedEvents",()=>lb),e(lg,"getPartialEvents",()=>lv),e(lg,"getEventState",()=>lx),e(lg,"getExternalMutationsWithChildren",()=>l_),e(lg,"getExternalMutations",()=>lO),e(lg,"getExternalMutation",()=>lw),e(lg,"getComponentEvents",()=>lS),e(lg,"getGlobalEventNameFromKey",()=>lk),e(lg,"getGlobalEvents",()=>lP),e(lg,"omitGlobalEvents",()=>lj),e(lg,"emulateReactEvent",()=>lM);let lm=/^onGlobal(.*)$/;function ly(e,t,n,r){let a=e=>{let r,a=(r=e.reduce((e,n)=>void 0!==n.target?(Array.isArray(n.target)?n.target.includes(t):`${n.target}`==`${t}`)?e.concat(n):e:e.concat(n),[]),void 0!==n&&"parent"!==t?r.filter(e=>{let t=e.eventKey,r=e=>!e||`${e}`==`${n}`;return Array.isArray(t)?t.some(e=>r(e)):r(t)}):r);return Array.isArray(a)&&a.reduce((e,t)=>t?Object.assign(e,t.eventHandlers):e,{})},i=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,o=i&&rm(r)?r(a(i),t):void 0;if(!e.sharedEvents)return o;let l=e.sharedEvents.getEvents;return Object.assign({},e.sharedEvents.events&&l(a(e.sharedEvents.events),t),o)}function lb(e,t,n,a){if(r(tR)(e))return{};let i=a||this.baseProps,o=(e,t)=>{let{childName:n,target:r,key:a}=e,o="props"===t?i:this.state||{},l=null!=n&&o[n]?o[n]:o;return"parent"===a?l.parent:l[a]&&l[a][r]},l=(e,r)=>{let a="parent"===t?e.childName:e.childName||n,l=e.target||t,s=(t,n)=>{let r=this.state||{};if(!rm(e.mutation))return r;let a=o({childName:n,key:t,target:l},"props"),s=o({childName:n,key:t,target:l},"state"),u=e.mutation(Object.assign({},a,s),i),c=r[n]||{},d=e=>u?"parent"===l?Object.assign(e,{[t]:Object.assign(e[t]||{},u)}):Object.assign(e,{[t]:Object.assign(e[t]||{},{[l]:u})}):(e[t]&&e[t][l]&&delete e[t][l],e[t]&&!Object.keys(e[t]).length&&delete e[t],e);return null!=n?Object.assign(r,{[n]:d(c)}):d(r)},u=t=>{let n="parent"===l?"parent":"all"===e.eventKey?i[t]?Object.keys(i[t]).filter(e=>"parent"!==e):Object.keys(i).filter(e=>"parent"!==e):void 0===e.eventKey&&"parent"===r?i[t]?Object.keys(i[t]):Object.keys(i):void 0!==e.eventKey?e.eventKey:r;return Array.isArray(n)?n.reduce((e,n)=>Object.assign(e,s(n,t)),{}):s(n,t)},c="all"===a?Object.keys(i).filter(e=>"parent"!==e):a;return Array.isArray(c)?c.reduce((e,t)=>Object.assign(e,u(t)),{}):u(c)},s=(t,n,a,i)=>{let o=e[i](t,n,a,this);if(!r(tR)(o)){let e,t,n=(e=e=>rm(e.callback)&&e.callback,(t=(Array.isArray(o)?o.map(t=>e(t)):[e(o)]).filter(e=>!1!==e)).length?()=>t.forEach(e=>e()):void 0);this.setState(Array.isArray(o)?o.reduce((e,t)=>Object.assign({},e,l(t,a)),{}):l(o,a),n)}};return Object.keys(e).reduce((e,t)=>(e[t]=s,e),{})}function lv(e,t,n){return e?Object.keys(e).reduce((r,a)=>(r[a]=r=>e[a](r,n,t,a),r),{}):{}}function lx(e,t,n){let r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:"parent"===e?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function l_(e,t,n,a){return void 0===t&&(t={}),void 0===n&&(n={}),a.reduce((a,i)=>{let o=n[i],l=lO(e,t[i],n[i],i);return a[i]=l||o,r(oh)(a,e=>!r(tR)(e))},{})}function lO(e,t,n,a){return void 0===t&&(t={}),void 0===n&&(n={}),Object.keys(t).reduce((i,o)=>{let l=n[o]||{},s=t[o]||{};if("parent"===o){let t=lw(e,s,l,{eventKey:o,target:"parent"});i[o]=void 0!==t?Object.assign({},l,t):l}else{let t=r(aZ)(Object.keys(s).concat(Object.keys(l)));i[o]=t.reduce((t,n)=>{let i=lw(e,s[n],l[n],{eventKey:o,target:n,childName:a});return t[n]=void 0!==i?Object.assign({},l[n],i):l[n],r(oh)(t,e=>!r(tR)(e))},{})}return r(oh)(i,e=>!r(tR)(e))},{})}function lw(e,t,n,a){let i=(e,t)=>"string"==typeof e[t]?"all"===e[t]||e[t]===a[t]:!!Array.isArray(e[t])&&e[t].map(e=>`${e}`).includes(a[t]),o=Array.isArray(e)?e:[e];a.childName&&(o=e.filter(e=>i(e,"childName")));let l=o.filter(e=>i(e,"target"));if(r(tR)(l))return;let s=l.filter(e=>i(e,"eventKey"));if(!r(tR)(s))return s.reduce((e,r)=>Object.assign({},e,(r&&rm(r.mutation)?r.mutation:()=>void 0)(Object.assign({},t,n))),{})}function lS(e,t){let n=Array.isArray(t)&&t.reduce((t,n)=>{let r=e[n],a=r&&r.type&&r.type.defaultEvents,i=rm(a)?a(r.props):a;return Array.isArray(i)?t.concat(...i):t},[]);return n&&n.length?n:void 0}function lk(e){let t=e.match(lm);return t&&t[1]&&t[1].toLowerCase()}let lP=e=>r(oh)(e,(e,t)=>lm.test(t)),lj=e=>r(of)(e,(e,t)=>lm.test(t)),lM=e=>Object.assign(e,{nativeEvent:e});function lC(e){let{children:t,props:n,childComponents:r,parentProps:a}=e;if(!(t.some(e=>e.type&&"histogram"===e.type.role)&&t.length&&t.every(e=>e.type&&"histogram"===e.type.role)))return a;let i=n.bins||r[0].props.bins;if(!Array.isArray(i)){let e=t.reduce((e,t)=>{let n=ry(t.props.x||"x");return e.concat(t.props.data.map(e=>({x:n(e)})))},[]);i=(0,t[0].type.getFormattedData)({data:e,bins:i}).reduce((e,t,n)=>{let{x0:r,x1:a}=t;return 0===n?e.concat([r,a]):e.concat(a)},[])}return{...a,bins:i}}function lE(e,t){let{polar:n,startAngle:a,endAngle:i,categories:o,minDomain:l,maxDomain:s}=e,u={polar:n,startAngle:a,endAngle:i,categories:o,minDomain:l,maxDomain:s},c=0,d=t?t.slice(0):r(eh).Children.toArray(e.children);u=lC({children:d,props:e,childComponents:t,parentProps:u});let f=d.filter(e=>e.type&&"stack"===e.type.role).length,p=rO(d,(e,t,n)=>{let a,i=Object.assign({},e.props,u);return oV(e)?(a=e.type&&rm(e.type.getData)?(n?r(eh).cloneElement(e,n.props):e).type.getData(i):oW(i),c+=1,a.map((e,t)=>Object.assign({_stack:c,_group:t},e))):null},e,[],(e,t)=>e.concat(r(iZ)(t,"_group")));return Object.values(r(io)(p,f?"_group":"_stack"))}function lA(e,t){return e.data?oW(e):lE(e,t||r(eh).Children.toArray(e.children))}function lT(e,t,n){let{datasets:r,horizontal:a}=e,i=a?rh(e,"y"):rh(e,"x"),o=Math.abs(i[1]-i[0]),l=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1;return Math.round(.5*o/((t||r.length)*l))}function lD(e,t,n){if(e.polar||"x"!==t)return;let r=n.filter(e=>e.type&&e.type.role&&"group"===e.type.role);if(r.length<1)return;let{offset:a,children:i}=r[0].props;if(!a)return;let o=Array.isArray(i)&&i[0];if(!o)return;let l=o.props.barWidth,s=o.props.data&&o.props.data.length||1;if(o&&"stack"===o.type.role){let e=o.props.children&&o.props.children[0];if(!e)return;l=e.props.barWidth,s=o.props.children.length}let u=l||lT(e,i.length,s);return{x:u*i.length/2+(a-u*((i.length-1)/2))}}function lL(e,t,n){let a=n?n.slice(0):r(eh).Children.toArray(e.children),i=e.data?oW(e):void 0,{polar:o,startAngle:l,endAngle:s,categories:u,minDomain:c,maxDomain:d,horizontal:f}=e,p={horizontal:f,polar:o,startAngle:l,endAngle:s,minDomain:c,maxDomain:d,categories:u},h=i?Object.assign(p,{data:i}):p,g=rO(a,e=>{let n=Object.assign({},e.props,h);return o6(e)?e.type&&rm(e.type.getDomain)?e.props&&e.type.getDomain(n,t):oK(n,t):null},e);return[0===g.length?0:rW(g),0===g.length?1:rI(g)]}function l$(e,t,n){let a,i=n||r(eh).Children.toArray(e.children),o=oZ(e,t),l=lD(e,t,i);if(o)a=o;else{let n=o1(e,t),r=o5(e,t),o=(e.data||e.y)&&oW(e),l=o?oQ(e,t,o):[],s=lL(e,t,i);a=oJ(n||rW([...l,...s]),r||rI([...l,...s]))}return oG(a,Object.assign({domainPadding:l},e),t)}function lN(e,t,n){if(e.data)return oS(e,t);let a=n?n.slice(0):r(eh).Children.toArray(e.children),i=r(aZ)(rO(a,n=>oj(Object.assign({},n.props,{horizontal:e.horizontal}),t),e));return i.length>1?ow("linear"):ow(i[0])}function lz(e){let t=lS(e,["groupComponent","containerComponent","labelComponent"]),n=e.events;return Array.isArray(t)&&(n=Array.isArray(e.events)?t.concat(...e.events):t),n||[]}function lF(e,t,n,r){let{style:a}=e,{colorScale:i,color:o}=e;if(a&&a.data&&a.data.fill)return a.data.fill;if(i=t.props&&t.props.colorScale?t.props.colorScale:i,o=t.props&&t.props.color?t.props.color:o,!i&&!o)return;let l=Array.isArray(i)?i:lh(i,r);return o||l[n%l.length]}function lR(e,t,n){return rl(t,e&&e[n]&&e[n].style?e[n].style:{})}function lI(e,t,n,a){let{style:i,role:o}=n,l=e.props.style||{};if(Array.isArray(l))return l;let s=e.type&&e.type.role,u="stack"===s?void 0:lF(n,e,t,a),c="stack"===o?{}:{width:lT(n)},d=r(e$)({},l.data,Object.assign({},c,i.data,"line"===s?{fill:"none",stroke:u}:{fill:u})),f=r(e$)({},l.labels,i.labels);return{...l,parent:i.parent,data:d,labels:f}}function lW(e,t){return rO(e.slice(0),e=>o6(e)?oq(e.props||{},t):null)}function lU(e){return rO(e.slice(0),e=>{let t=e.props||{};return oV(e)?(e.type&&rm(e.type.getData)?e.type.getData(t):oW(t)).map(e=>({x:e.xName,y:e.yName})):null},{},{x:[],y:[]},(e,t)=>{let n=Array.isArray(t)?t.map(e=>e.x).filter(Boolean):t.x,r=Array.isArray(t)?t.map(e=>e.y).filter(Boolean):t.y;return{x:void 0!==n?e.x.concat(n):e.x,y:void 0!==r?e.y.concat(r):e.y}})}function lq(e,t,n){let a=oq(e,t),i=o8(n,t),o=i?oU(i.props,t):[],l=a.length?a:lW(n,t);return r(aZ)([...l,...o].flat())}function lB(e,t){let n=t||r(eh).Children.toArray(e.children),a=lq(e,"x",n),i=lq(e,"y",n),o=lU(n);return{x:r(aZ)([...a,...o.x].flat()),y:r(aZ)([...i,...o.y].flat())}}function lV(e,t,n){let r=e.categories&&oq(e,"x"),a=e.categories&&oq(e,"y"),i=r&&a?{}:n||lB(e,t),o=r||i.x,l=a||i.y;return{x:o.length>0?o:void 0,y:l.length>0?l:void 0}}var eh=o("8NFma"),lH={};lH=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r};var lY={},lG="undefined"!=typeof Element,lK="function"==typeof Map,lX="function"==typeof Set,lQ="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;lY=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,i,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(lK&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!n.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!e(a.value[1],n.get(a.value[0])))return!1;return!0}if(lX&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!n.has(a.value[0]))return!1;return!0}if(lQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof n.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof n.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;if(lG&&t instanceof Element)return!1;for(a=r;0!=a--;)if(("_owner"!==i[a]&&"__v"!==i[a]&&"__o"!==i[a]||!t.$$typeof)&&!e(t[i[a]],n[i[a]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};var lJ=o("coocU"),eh=o("8NFma"),lZ={};lZ=o("f5Qru");class l0{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach(e=>{e.callback((0,lZ.now)()-e.startTime,e.duration)})};start(){this.timer||(this.timer=(0,lZ.timer)(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(e,t){let n=this.subscribers.push({startTime:(0,lZ.now)(),callback:e,duration:this.shouldAnimate?t:0});return this.activeSubscriptions++,this.start(),n}unsubscribe(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}let l5=r(eh).createContext({transitionTimer:new l0,animationTimer:new l0});l5.displayName="TimerContext";class l1 extends r(eh).Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=l5;static defaultProps={groupComponent:r(eh).createElement("g",null)};constructor(e){super(e),this.getScopedEvents=lg.getScopedEvents.bind(this),this.getEventState=lg.getEventState.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(e)}shouldComponentUpdate(e){if(!r(lY)(this.props,e)){this.baseProps=this.getBaseProps(e);let t=this.getExternalMutations(e,this.baseProps);this.applyExternalMutations(e,t)}return!0}componentDidMount(){let e=Object.keys(this.globalEvents);e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(){let e=Object.keys(this.globalEvents);rA.difference(this.prevGlobalEventKeys,e).forEach(e=>this.removeGlobalListener(e)),rA.difference(e,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){let t=t=>{let n=this.globalEvents[e];return n&&n(lg.emulateReactEvent(t))};this.boundGlobalEvents[e]=t,window.addEventListener(lg.getGlobalEventNameFromKey(e),t)}removeGlobalListener(e){window.removeEventListener(lg.getGlobalEventNameFromKey(e),this.boundGlobalEvents[e])}getAllEvents(e){let t=lg.getComponentEvents(e,["container","groupComponent"]);return Array.isArray(t)?Array.isArray(e.events)?t.concat(...e.events):t:e.events}applyExternalMutations(e,t){if(!r(tR)(t)){let n=e.externalEventMutations.reduce((e,t)=>t8.isFunction(t.callback)?e.concat(t.callback):e,[]),r=n.length?()=>{n.forEach(e=>e())}:void 0;this.setState(t,r)}}getExternalMutations(e,t){return r(tR)(e.externalEventMutations)?void 0:lg.getExternalMutationsWithChildren(e.externalEventMutations,t,this.state,Object.keys(t))}cacheSharedEvents(e,t,n){this.sharedEventsCache[e]=[t,n]}getCachedSharedEvents(e,t){let[n,a]=this.sharedEventsCache[e]||[];if(n&&r(lY)(t,a))return n}getBaseProps(e){let{container:t}=e,n=r(eh).Children.toArray(this.props.children);return Object.assign({},this.getBasePropsFromChildren(n),{parent:t?t.props:{}})}getBasePropsFromChildren(e){let t=t8.reduceChildren(e,(e,t)=>{if(e.type&&t8.isFunction(e.type.getBaseProps)){let n=e.props&&e.type.getBaseProps(e.props);return n?[[t,n]]:null}return null});return r(lH)(t)}getNewChildren(e,t){let{events:n,eventKey:a}=e,i=(e,o)=>e.reduce((e,l,s)=>{if(l.props.children){let t=r(eh).Children.toArray(l.props.children),n=o.slice(s,s+t.length),a=r(eh).cloneElement(l,l.props,i(t,n));return e.concat(a)}if("parent"!==o[s]&&l.type&&t8.isFunction(l.type.getBaseProps)){let i=l.props.name||o[s],u=Array.isArray(n)&&n.filter(e=>"parent"!==e.target&&(Array.isArray(e.childName)?e.childName.indexOf(i)>-1:e.childName===i||"all"===e.childName)),c=[i,t,u,r(lJ)(this.state[i])],d=this.getCachedSharedEvents(i,c)||{events:u,getEvents:(e,n)=>this.getScopedEvents(e,n,i,t),getEventState:(e,t)=>this.getEventState(e,t,i)};return this.cacheSharedEvents(i,d,c),e.concat(r(eh).cloneElement(l,Object.assign({key:`events-${i}`,sharedEvents:d,eventKey:a,name:i},l.props)))}return e.concat(l)},[]),o=Object.keys(t);return i(r(eh).Children.toArray(e.children),o)}getContainer(e,t,n){let a=this.getNewChildren(e,t),i=Array.isArray(n)?n.filter(e=>"parent"===e.target):[],o=i.length>0?{events:i,getEvents:(e,n)=>this.getScopedEvents(e,n,null,t),getEventState:this.getEventState}:null,l=e.container||e.groupComponent,s=l.type&&l.type.role,u=l.props||{},c=lg.getEvents.bind(this),d=o&&c({sharedEvents:o},"parent"),f=r(e$)({},this.getEventState("parent","parent"),u,t.parent,{children:a}),p=r(e$)({},lg.getPartialEvents(d,"parent",f),u.events);this.globalEvents=lg.getGlobalEvents(p);let h=lg.omitGlobalEvents(p);return"container"===s?r(eh).cloneElement(l,Object.assign({},f,{events:h})):r(eh).cloneElement(l,h,a)}render(){let e=this.getAllEvents(this.props);return e?this.getContainer(this.props,this.baseProps,e):r(eh).cloneElement(this.props.container,{children:this.props.children})}}var eh=(o("8NFma"),o("8NFma"),o("8NFma"),o("8NFma")),l2={};l2=o("cJ24G");var l6={};l6=o("g7zPm");let l3=function(e){if(null!==e)switch(typeof e){case"undefined":case"boolean":break;case"number":return!isNaN(e)&&e!==1/0&&e!==-1/0;case"string":case"function":return!0;case"object":return e instanceof Date||Array.isArray(e)||r(ot)(e)}return!1},l7=function(e,t,n){return void 0===n&&(n=0),function(r){return r<n?e:t}},l4=function(e,t){return function(n){return n>=1?t:function(){let r="function"==typeof e?e.apply(this,arguments):e,a="function"==typeof t?t.apply(this,arguments):t;return(0,l6.interpolate)(r,a)(n)}}},l8=function(e,t){let n,a=(e,t)=>e!==t&&l3(e)&&l3(t)?"function"==typeof e||"function"==typeof t?l4(e,t):"object"==typeof e&&r(ot)(e)||"object"==typeof t&&r(ot)(t)?l8(e,t):(0,l6.interpolate)(e,t):l7(e,t),i=e=>Array.isArray(e)?r(i5)(e,"key"):e,o={},l={},s=e,u=t;for(n in(null===s||"object"!=typeof s)&&(s={}),(null===u||"object"!=typeof u)&&(u={}),u)n in s?o[n]=a(i(s[n]),i(u[n])):l[n]=u[n];return function(e){for(n in o)l[n]=o[n](e);return l}},l9=function(e,t){let n=e=>"string"==typeof e?e.replace(/,/g,""):e;return(0,l6.interpolate)(n(e),n(t))},se=e=>{let t,{duration:n=1e3,easing:a="quadInOut",delay:i=0,data:o,children:l,onEnd:s}=e,[u,c]=r(eh).useState({data:Array.isArray(o)?o[0]:o,animationInfo:{progress:0,animating:!1}}),d=r(eh).useContext(l5).animationTimer,f=r(eh).useRef(Array.isArray(o)?o.slice(1):[]),p=r(eh).useRef(null),h=r(eh).useRef(void 0),g=l2[t=a.charAt(0).toUpperCase()+a.slice(1),`ease${t}`];r(eh).useEffect(()=>(f.current.length&&m(),()=>{h.current?d.unsubscribe(h.current):d.stop()}),[]),r(eh).useEffect(()=>{p.current&&u.animationInfo&&u.animationInfo.progress<1?c({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(d.unsubscribe(h.current),f.current=Array.isArray(o)?o:[o],m())},[o]);let m=()=>{if(f.current.length){var e;let t=f.current[0];p.current=(e=u.data)!==t&&l3(e)&&l3(t)?"function"==typeof e||"function"==typeof t?l4(e,t):r(ot)(e)||r(ot)(t)?l8(e,t):"string"==typeof e||"string"==typeof t?l9(e,t):(0,l6.interpolate)(e,t):l7(e,t),i?setTimeout(()=>{h.current=d.subscribe(y,n)},i):h.current=d.subscribe(y,n)}else s&&s()},y=e=>{if(!p.current)return;let t=n?e/n:1;if(t>=1){c({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),h.current&&d.unsubscribe(h.current),f.current.shift(),m();return}c({data:p.current(g(t)),animationInfo:{progress:t,animating:t<1}})};return l(u.data,u.animationInfo)};function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class sn extends r(eh).Component{static displayName="VictoryTransition";static contextType=l5;constructor(e,t){super(e,t),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const n=this.props.children,r=n.props.polar;this.continuous=!r&&n.type&&!0===n.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(e){return r(lY)(this.props,e)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,e),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(e,t){let{animate:n}=e;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?e:null,nextProps:t};let{nodesWillExit:a,nodesWillEnter:i,childrenTransitions:o,nodesShouldEnter:l}=rH(r(eh).Children.toArray(e.children),r(eh).Children.toArray(t.children));return{nodesWillExit:a,nodesWillEnter:i,childrenTransitions:o,nodesShouldEnter:l,oldProps:a?e:null,nextProps:t}}getDomainFromChildren(e,t){let n=e=>e.reduce((e,a)=>{if(a.type&&rm(a.type.getDomain)){let n=a.props&&a.type.getDomain(a.props,t);return n?e.concat(n):e}return a.props&&a.props.children?e.concat(n(r(eh).Children.toArray(a.props.children))):e},[]),a=r(eh).Children.toArray(e.children)[0],i=a.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[t];if(!i.children&&o)return o;let l=n([a]);return 0===l.length?[0,1]:[rW(l),rI(l)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(e){let t=e.animate?.parentState;return t&&t.nodesWillExit?(this.continuous||t.continuous)&&(t.nextProps||this.state.nextProps)||e:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||e}getClipWidth(e,t){let n,r=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==r?r:(n=rh(t.props,"x"))?Math.abs(n[1]-n[0]):e.width}render(){let e=this.pickProps(),t=this.props.animate?.getTransitions?this.props.animate.getTransitions:rY(e,this.state,e=>this.setState(e)),n=r(eh).Children.toArray(e.children)[0],a=t(n);this.transitionProps=a;let i={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},o=this.getClipWidth(e,n),l=r(e$)({domain:i,clipWidth:o},a,n.props),s=(e.animationWhitelist||[]).concat(["clipWidth"]),u=s.length?r(nK)(l,s):l;return r(eh).createElement(se,st({},l.animate,{data:u}),e=>{if(n.props.groupComponent){let t=this.continuous?r(eh).cloneElement(n.props.groupComponent,{clipWidth:e.clipWidth||0}):n.props.groupComponent;return r(eh).cloneElement(n,r(e$)({animate:null,animating:!0,groupComponent:t},e,l))}return r(eh).cloneElement(n,r(e$)({animate:null,animating:!0},e,l))})}}let sr=e=>!rg(e._x)&&!rg(e._y),sa=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function si(e,t){void 0===t&&(t={});class n extends e{constructor(e){super(e),this.cacheValues(this.getCalculatedValues(e))}state={};getEventState=lx.bind(this);getScopedEvents=lb.bind(this);getEvents=(e,t,n)=>ly.call(this,e,t,n,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(e){let t=this.getExternalMutations(e),n=this.props.animating||this.props.animate,a=!r(lY)(t,this.externalMutations);if(n||a)return this.cacheValues(this.getCalculatedValues(e)),this.externalMutations=t,this.applyExternalMutations(e,t),!0;let i=this.getStateChanges(e);return!(r(lY)(this.calculatedState,i)&&r(lY)(this.props,e))&&(this.cacheValues(this.getCalculatedValues(e)),!0)}componentDidMount(){let e=Object.keys(this.globalEvents);e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(e){let t=this.getStateChanges(e);this.calculatedState=t;let n=Object.keys(this.globalEvents);rz(this.prevGlobalEventKeys,n).forEach(e=>this.removeGlobalListener(e)),rz(n,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=n}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){let t=t=>{let n=this.globalEvents[e];return n&&n(lM(t))};this.boundGlobalEvents[e]=t,window.addEventListener(lk(e),t)}removeGlobalListener(e){window.removeEventListener(lk(e),this.boundGlobalEvents[e])}getStateChanges(e){if(!this.hasEvents)return{};let n=(e,t)=>{let n=r(e$)({},this.getEventState(e,t),this.getSharedEventState(e,t));return r(tR)(n)?void 0:n};return(t.components||sa).map(t=>{if(e.standalone||"parent"!==t.name)return void 0!==t.index?n(t.index,t.name):this.dataKeys.map(e=>n(e,t.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(e,t){if(!r(tR)(t)){let n=e.externalEventMutations.reduce((e,t)=>rm(t.callback)?e.concat(t.callback):e,[]),r=n.length?()=>{n.forEach(e=>e())}:void 0;this.setState(t,r)}}getCalculatedValues(t){let{sharedEvents:n}=t,r=lS(t,e.expectedComponents),a=n&&rm(n.getEventState)?n.getEventState:()=>void 0,i=this.getBaseProps(t,a),o=Object.keys(i).filter(e=>"parent"!==e),l=t.events||t.sharedEvents||r;return{componentEvents:r,getSharedEventState:a,baseProps:i,dataKeys:o,hasEvents:l,events:this.getAllEvents(t)}}getExternalMutations(e){let{sharedEvents:t,externalEventMutations:n}=e;return r(tR)(n)||t?void 0:lO(n,this.baseProps,this.state)}cacheValues(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}getBaseProps(t,n){let a=(n||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=r(e$)({},i,a),l=o.parentControlledProps,s=l?r(nK)(o,l):{},u=r(e$)({},s,t);return"function"==typeof e.getBaseProps?e.getBaseProps(u):{}}getAllEvents(e){return Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events}getComponentProps(t,n,a){let i=this.props.name||e.role,o=this.dataKeys&&this.dataKeys[a]||a,l=`${i}-${n}-${o}`,s=this.baseProps[o]&&this.baseProps[o][n]||this.baseProps[o];if(!s&&!this.hasEvents)return;let u=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){let e=this.getEvents(this.props,n,o),t=r(e$)({index:a,key:l},this.getEventState(o,n),this.getSharedEventState(o,n),u,s,{id:l}),i=r(e$)({},lv(e,o,t),t.events);return Object.assign({},t,{events:i})}return r(e$)({index:a,key:l},u,s,{id:l})}renderContainer(e,t){let n=e.type&&"container"===e.type.role?this.getComponentProps(e,"parent","parent"):{};return n.events&&(this.globalEvents=lP(n.events),n.events=lj(n.events)),r(eh).cloneElement(e,n,t)}animateComponent(e,t){let n="object"==typeof e.animate&&e.animate?.animationWhitelist||t,a=this.constructor;return r(eh).createElement(sn,{animate:e.animate,animationWhitelist:n},r(eh).createElement(a,e))}renderContinuousData(e){let{dataComponent:t,labelComponent:n,groupComponent:a}=e,i=this.dataKeys.filter(e=>"all"!==e).reduce((e,t)=>{let a=e,i=this.getComponentProps(n,"labels",t);return i&&void 0!==i.text&&null!==i.text&&(a=a.concat(r(eh).cloneElement(n,i))),a},[]),o=this.getComponentProps(t,"data","all"),l=[r(eh).cloneElement(t,o),...i];return this.renderContainer(a,l)}renderData(e,t){void 0===t&&(t=sr);let{dataComponent:n,labelComponent:a,groupComponent:i}=e,o=[...this.dataKeys.reduce((e,a,i)=>{let o=this.getComponentProps(n,"data",i);return t(o.datum)&&e.push(r(eh).cloneElement(n,o)),e},[]),...this.dataKeys.map((e,t)=>{let n=this.getComponentProps(a,"labels",t);if(void 0!==n.text&&null!==n.text)return r(eh).cloneElement(a,n)}).filter(Boolean)];return this.renderContainer(i,o)}}return n}var eh=(o("8NFma"),o("8NFma"));function so(){return(so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let sl=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={vectorEffect:"non-scaling-stroke",id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("line",so({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("line",so({},s,{ref:t}))}),ss={lineComponent:r(eh).createElement(sl,null),role:"presentation",shapeRendering:"auto"},su=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,ss)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({stroke:"black"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.lineComponent,{...s.events,"aria-label":s.ariaLabel,style:s.style,desc:s.desc,tabIndex:s.tabIndex,className:s.className,role:s.role,shapeRendering:s.shapeRendering,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2,transform:s.transform,clipPath:s.clipPath})};var sc={};e(sc,"convertLengthToPixels",()=>sy),e(sc,"_approximateTextSizeInternal",()=>sO),e(sc,"approximateTextSize",()=>sw);let sd={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},sf={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},sp={em:1,ex:.5},sh={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},sg=e=>Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g),sm=(e,t,n)=>{let r=n*Math.PI/180;return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},sy=(e,t)=>{let n=e.match(/[a-zA-Z%]+/)?.[0],r=Number(e.match(/[0-9.,]+/));return n?sf.hasOwnProperty(n)?r*sf[n]:sp.hasOwnProperty(n)?(t?r*t:r*sh.fontSize)*sp[n]:r:r||0},sb=(e,t)=>{let n=Array.isArray(e)?e[t]:e,a=r(e$)({},n,sh);return Object.assign({},a,{fontFamily:a.fontFamily,letterSpacing:"number"==typeof a.letterSpacing?a.letterSpacing:sy(String(a.letterSpacing),a.fontSize),fontSize:"number"==typeof a.fontSize?a.fontSize:sy(String(a.fontSize))})},sv=r(nu)(()=>{let e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");let t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),sx=e=>e?`${e.angle}:${e.fontFamily}:${e.fontSize}:${e.letterSpacing}:${e.lineHeight}`:"null",s_=r(nu)((e,t)=>{let n=sv();n.isConnected||(sv.cache.clear?.(),n=sv());let r=sg(e),a=0;for(let[e,i]of r.entries()){let r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),o=sb(t,e);r.style.fontFamily=o.fontFamily,r.style.fontSize=`${o.fontSize}px`,r.style.lineHeight=o.lineHeight,r.style.fontFamily=o.fontFamily,r.style.letterSpacing=o.letterSpacing,r.textContent=i,r.setAttribute("x","0"),r.setAttribute("y",`${a}`),n.appendChild(r),a+=o.lineHeight*r.getBoundingClientRect().height}let{width:i}=n.getBoundingClientRect();return n.innerHTML="",{width:t?.angle?sm(i,a,t?.angle):i,height:t?.angle?sm(a,i,t?.angle):a}},(e,t)=>{let n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(sx).join():sx(t);return`${n}::${r}`}),sO={impl:function(e,t,n){if(void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n){let n,r,a;return n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=void 0===e||""===e||null===e?0:sg(e).reduce((e,n,r)=>{let a=sb(t,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*a.fontSize:a.fontSize;return e+a.lineHeight*i},0),a=void 0===e||""===e||null===e?0:Math.max(...sg(e).map((e,n)=>{let r=e.toString().length,{fontSize:a,letterSpacing:i,fontFamily:o}=sb(t,n),l=sd[o.split(",").map(e=>e.replace(/'|"/g,"")).find(e=>sd[e])||"Helvetica"];return e.toString().split("").map(e=>e.charCodeAt(0)<l.widths.length?l.widths[e.charCodeAt(0)]:l.avg).reduce((e,t)=>t+e,0)*a+i*Math.max(r-1,0)})),{width:n?sm(a,r,n):a,height:(n?sm(r,a,n):r)*1.05}}return s_(e,t)}},sw=(e,t)=>sO.impl(e,t);var eh=(o("8NFma"),o("8NFma"));let sS={groupComponent:r(eh).createElement("g",null)},sk=e=>{let t={...sS,...e},[n]=(0,eh.useState)(r(r1)()),a=r4(),i=Array.isArray(t.children)?t.children[0]:t.children,{groupComponent:o}=t,l=i&&i.props||{},s=l.groupComponent?{groupComponent:o,standalone:!1}:{},u=r(e$)(s,l,rt(t,["children","groupComponent"]),{key:l.key??n}),c=i&&r(eh).cloneElement(i,u);return r(eh).useEffect(()=>{a?.addChild(n,c)},[t.children]),r(eh).useEffect(()=>()=>a?.removeChild(n),[]),a?null:c};sk.role="portal";var eh=(o("8NFma"),o("8NFma")),sP={};function sj(e){let{labelComponent:t,labelPlacement:n,polar:r}=e;return n||t.props&&t.props.labelPlacement||(r?"perpendicular":"vertical")}function sM(e,t,n){return(void 0===t&&(t={}),void 0!==t.label)?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function sC(e,t){let n=sj(e);return"perpendicular"===n||"vertical"===n&&(90===t||270===t)?"middle":t<=90||t>270?"start":"end"}function sE(e,t){var n;let r=sj(e),a=(n=t)<45||n>315?"right":n>=45&&n<=135?"top":n>135&&n<225?"left":"bottom";return"parallel"===r||"left"===a||"right"===a?"middle":"top"===a?"end":"start"}function sA(e,t){let{labelPlacement:n,datum:r}=e;if(!n||"vertical"===n)return 0;let a=void 0!==t?t%360:sT(e,r),i=0;return 0===a||180===a?i=90:a>0&&a<180?i=90-a:a>180&&a<360&&(i=270-a),i+90*("perpendicular"!==n)*(a>90&&a<180||a>270?1:-1)}function sT(e,t){let{x:n}=rn(t);return rd(e.scale.x(n))%360}function sD(e,t){var n,a;let i,o,l,{scale:s,data:u,style:c,horizontal:d,polar:f,width:p,height:h,theme:g,labelComponent:m,disableInlineStyles:y}=e,b=u[t],v=sT(e,b),x=f?sC(e,v):function(e,t){void 0===t&&(t={});let{style:n,horizontal:r}=e,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}(e,b),_=f?sE(e,v):(void 0===(n=b)&&(n={}),i=n._y>=0?1:-1,o=e.style&&e.style.labels||{},n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:e.horizontal?"middle":i>=0?"end":"start"),O=(void 0===(a=b)&&(a={}),l=e.style&&e.style.labels||{},void 0===a.angle?l.angle:a.angle),w=sM(e,b,t),S=sj(e),{x:k,y:P}=function(e,t){let{polar:n}=e,{x:r,y:a}=rr(e,t);if(!n)return{x:r,y:a};let i=function(e,t){let{style:n}=e,r=sT(e,t),a=rs((n.labels||{}).padding,e)||0,i=rc(r);return{x:a*Math.cos(i),y:-a*Math.sin(i)}}(e,t);return{x:r+i.x,y:a+i.y}}(e,b),{dx:j,dy:M}=function(e,t){if(e.polar)return{};let n=function(e,t){void 0===t&&(t={});let{horizontal:n,style:r}=e,a=rs((r.labels||{}).padding,e)||0,i=t._y<0?-1:1;return{x:n?i*a:0,y:n?0:-1*i*a}}(e,t);return{dx:n.x,dy:n.y}}(e,b),C={angle:O,data:u,datum:b,disableInlineStyles:y,horizontal:d,index:t,polar:f,scale:s,labelPlacement:S,text:w,textAnchor:x,verticalAnchor:_,x:k,y:P,dx:j,dy:M,width:p,height:h,style:c.labels};if(!ri(m))return C;let E=g&&g.tooltip||{};return r(e$)({},C,rt(E,["style"]))}e(sP,"getDegrees",()=>sT),e(sP,"getText",()=>sM),e(sP,"getPolarTextAnchor",()=>sC),e(sP,"getPolarVerticalAnchor",()=>sE),e(sP,"getPolarAngle",()=>sA),e(sP,"getProps",()=>sD);let sL={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},s$=(e,t)=>e.datum?rr(e,e.datum)[t]:0,sN=e=>{let t=e&&e.fontSize;if("number"==typeof t)return t;if(null==t);else if("string"==typeof t){let e=Number(t.replace("px",""));if(!isNaN(e))return e}return sL.fontSize},sz=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e[t]||e[0]:e},sF=e=>{let{backgroundStyle:t,backgroundPadding:n}=e;return Array.isArray(t)&&!r(tR)(t)||Array.isArray(n)&&!r(tR)(n)},sR=(e,t)=>{let{direction:n,textAnchor:r,x:a,dx:i}=e;if("rtl"===n)return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},sI=(e,t)=>{let{verticalAnchor:n,y:r,originalDy:a=0}=e,i=r+a;switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-t);default:return Math.floor(i-t/2)}},sW={backgroundComponent:r(eh).createElement(rk,null),groupComponent:r(eh).createElement("g",null),direction:"inherit",textComponent:r(eh).createElement(e=>{let{children:t,desc:n,id:a,origin:i,tabIndex:o,title:l,...s}=e,u={id:rs(a,e)?.toString(),tabIndex:rs(o,e),...s};return r(eh).createElement("text",u,l&&r(eh).createElement("title",null,l),n&&r(eh).createElement("desc",null,n),t)},null),tspanComponent:r(eh).createElement(e=>{let{desc:t,id:n,tabIndex:a,origin:i,...o}=e,l={id:rs(n,e)?.toString(),tabIndex:rs(a,e),...o};return r(eh).createElement("tspan",l)},null),capHeight:.71,lineHeight:1},sU=e=>{var t,n;let a,i,o,l,s,u,c,d,f,p,h,g,m,y,b,v,x,_=(a=((e,t)=>{if(null==e)return;if(Array.isArray(e))return e.map(e=>rs(e,t));let n=rs(e,t);if(null!=n)return Array.isArray(n)?n:`${n}`.split("\n")})((t=r(e$)({},e,sW)).text,t),i=((e,t)=>{if(t.disableInlineStyles)return{fontSize:sN(ru(e,t))};let n=e=>{let n=ru(e?r(e$)({},e,sL):sL,t);return Object.assign({},n,{fontSize:sN(n)})};return Array.isArray(e)&&!r(tR)(e)?e.map(e=>n(e)):n(e)})(t.style,Object.assign({},t,{text:a})),o=((e,t)=>{if(e)return Array.isArray(e)&&!r(tR)(e)?e.map(e=>ru(e,t)):ru(e,t)})(t.backgroundStyle,Object.assign({},t,{text:a,style:i})),l=(n=Object.assign({},t,{text:a,style:i,backgroundStyle:o})).backgroundPadding&&Array.isArray(n.backgroundPadding)?n.backgroundPadding.map(e=>ra(rs(e,n))):ra(rs(n.backgroundPadding,n)),s=rs(t.id,t),Object.assign({},t,{backgroundStyle:o,backgroundPadding:l,style:i,text:a,id:s}));if(null===_.text||void 0===_.text)return null;let O=(u=rs(_.ariaLabel,_),c=sz(_.style),f=Array.isArray(d=rs(_.lineHeight,_))&&r(tR)(d)?[1]:d,p=_.direction?rs(_.direction,_):"inherit",h=_.textAnchor?rs(_.textAnchor,_):c.textAnchor||"start",g=_.verticalAnchor?rs(_.verticalAnchor,_):c.verticalAnchor||"middle",m=_.dx?rs(_.dx,_):0,y=((e,t,n)=>{let r=e.dy?rs(e.dy,e):0,a=e.inline?1:e.text.length,i=rs(e.capHeight,e),o=t?rs(t,e):"middle",l=[...Array(a).keys()].map(t=>sz(e.style,t).fontSize),s=[...Array(a).keys()].map(e=>sz(n,e));if("start"===o)return r+(i/2+s[0]/2)*l[0];if(e.inline)return"end"===o?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(1===a)return"end"===o?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];let u=[...Array(a).keys()].reduce((e,t)=>e+(i/2+(.5-a)*s[t])*l[t]/a,0);return"end"===o?r+u:r+u/2+i/2*s[a-1]*l[a-1]})(_,g,f),b=void 0!==_.x?_.x:s$(_,"x"),v=void 0!==_.y?_.y:s$(_,"y"),x=((e,t,n)=>{let{polar:r}=e,a=sz(e.style),i=r?sA(e):0,o=void 0===a.angle?rs(e.angle,e):a.angle,l=void 0===o?i:o,s=e.transform||a.transform,u=s&&rs(s,e);return u||l?lp(u,l&&{rotate:[l,t,n]}):void 0})(_,b,v),Object.assign({},_,{ariaLabel:u,lineHeight:f,direction:p,textAnchor:h,verticalAnchor:g,dx:m,dy:y,originalDy:rs(_.dy,_),transform:x,x:b,y:v})),{text:w,style:S,capHeight:k,backgroundPadding:P,lineHeight:j}=O,M=w.map((e,t)=>{let n=sz(S,t),r=sy(`${k}em`,n.fontSize),a=sz(j,t);return{style:n,fontSize:n.fontSize||sL.fontSize,capHeight:r,text:e,textSize:sw(e,n),lineHeight:a,backgroundPadding:sz(P,t)}}),C=((e,t)=>{let{ariaLabel:n,inline:a,className:i,title:o,events:l,direction:s,text:u,textAnchor:c,dx:d,dy:f,transform:p,x:h,y:g,desc:m,id:y,tabIndex:b,tspanComponent:v,textComponent:x}=e,_=r0(e),O={"aria-label":n,key:"text",...l,direction:s,dx:d,x:h,y:g+f,transform:p,className:i,title:o,desc:rs(m,e),tabIndex:rs(b,e),id:y,..._},w=u.map((n,i)=>{let o=t[i].style,l={key:`${y}-key-${i}`,x:a?void 0:h,dx:a?d+t[i].backgroundPadding.left:d,dy:((e,t,n)=>{let{inline:r}=t,a=sz(e,n);if(n&&!r){let r,a,i,o,l,s,u;return r=sz(e,n),i=(a=sz(e,n-1)).fontSize*a.lineHeight,o=r.fontSize*r.lineHeight,l=a.fontSize-a.capHeight,s=r.fontSize-r.capHeight,u=i-a.fontSize/2+r.fontSize/2-i/2+o/2-s/2+l/2,sF(t)?u+r.backgroundPadding.top+a.backgroundPadding.bottom:u}return r?0===n?a.backgroundPadding.top:void 0:a.backgroundPadding.top})(t,e,i),textAnchor:o.textAnchor||c,style:o,children:n};return r(eh).cloneElement(v,l)});return r(eh).cloneElement(x,O,w)})(O,M);if(_.backgroundStyle){let e=sF(O)?((e,t)=>{let{dy:n,dx:a,transform:i,backgroundStyle:o,backgroundPadding:l,backgroundComponent:s,inline:u,y:c}=e,d=t.map((e,r)=>{let i=sz(t,r-1),o=e.textSize,s=e.fontSize*e.lineHeight,d=Math.ceil(s),f=sz(l,r),p=sz(l,r-1),h=r&&!u?i.fontSize*i.lineHeight+p.top+p.bottom:n-.5*s-(e.fontSize-e.capHeight);return{textHeight:d,labelSize:o,heightWithPadding:d+f.top+f.bottom,widthWithPadding:o.width+f.left+f.right+(u&&a||0),y:c,fontSize:e.fontSize,dy:h}});return d.map((t,n)=>{let a=sR(e,t.labelSize.width),f=d.slice(0,n+1).reduce((e,t)=>e+t.dy,c),p=sz(l,n),h=t.heightWithPadding,g=u?((e,t,n)=>{let{textAnchor:r}=e,a=t.map(e=>e.widthWithPadding),i=a.reduce((e,t)=>e+t,0);switch(r){case"start":return a.reduce((e,t,r)=>r<n?e+t:e,0);case"end":return a.reduce((e,t,r)=>r>n?e-t:e,0);default:return a.reduce((e,t,r)=>r===n?e+t/2:e+(r<n?t:0),-i/2)}})(e,d,n)+a-p.left:a,m=u?sI(e,h)-p.top:f,y={key:`tspan-background-${n}`,height:h,style:sz(o,n),width:t.widthWithPadding,transform:i,x:g-p.left,y:m};return r(eh).cloneElement(s,r(e$)({},s.props,y))})})(O,M):((e,t)=>{let{dx:n=0,transform:a,backgroundComponent:i,backgroundStyle:o,inline:l,backgroundPadding:s,capHeight:u}=e,c=t.map(e=>e.textSize),d=l?Math.max(...c.map(e=>e.height)):c.reduce((e,n,r)=>e+n.height*(t[r].lineHeight-(r?0:u/2)),0),f=l?c.reduce((e,t,r)=>e+t.width+(r?n:0),0):Math.max(...c.map(e=>e.width)),p=sR(e,f),h=sI(e,d),g={key:"background",height:d+s.top+s.bottom,style:o,transform:a,width:f+s.left+s.right,x:l?p-s.left:p+n-s.left,y:h};return r(eh).cloneElement(i,r(e$)({},i.props,g))})(O,M),t=r(eh).cloneElement(_.groupComponent,{},[e,C]);return _.renderInPortal?r(eh).createElement(sk,null,t):t}return _.renderInPortal?r(eh).createElement(sk,null,C):C};sU.displayName="VictoryLabel",sU.role="label",sU.defaultStyles=sL;let sq={top:-1,left:-1,right:1,bottom:1},sB=function(e,t){void 0===t&&(t={});let n=e.style||{};return{parent:r(e$)(n.parent,t.parent,{height:"100%",width:"100%"}),axis:r(e$)({},n.axis,t.axis),axisLabel:r(e$)({},n.axisLabel,t.axisLabel),grid:r(e$)({},n.grid,t.grid),ticks:r(e$)({},n.ticks,t.ticks),tickLabels:r(e$)({},n.tickLabels,t.tickLabels)}},sV=(e,t,n)=>{let r=t||"positive";return n?({positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}})[r][e]:({positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}})[r][e]},sH=(e,t)=>e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t,sY={width:450,height:300,padding:50};class sG extends r(eh).Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:r(eh).createElement(su,null),axisLabelComponent:r(eh).createElement(sU,null),tickLabelComponent:r(eh).createElement(sU,null),tickComponent:r(eh).createElement(su,null),gridComponent:r(eh).createElement(su,null),standalone:!0,theme:au,containerComponent:r(eh).createElement(an,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=i0.getDomain;static getAxis=i0.getAxis;static getStyles(e){return sB(e)}static getBaseProps(e){return((e,t)=>{let n,a,i,o,l,s,u,c,d,f,p,h,g,m,y,b,v,x,_,O,w,S,k,P,j,M,C,E=i0.modifyProps(e,t),A=(n=(e=>{let{theme:t,dependentAxis:n}=e,a=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",o=t&&t[i]&&t[i].style;return a&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=r(e$)({},o[t],a[t]),e),{}):o||a})(E),a=sB(E,n),i=t8.getPadding(E.padding),o=((e,t)=>{let n=t.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;let r=i0.isVertical(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0})(E,a),l=i0.stringTicks(E)?E.tickValues:void 0,s=i0.getAxis(E),u=i0.getDomain(E),c=i0.getAxis(E),d=((e,t)=>{let{orientation:n,horizontal:r}=e;return n?({top:"x",bottom:"x",left:"y",right:"y"})[n]:r?"x"===t?"y":"x":t})(E,c),f=oy.getBaseScale(E,c),p=E.domain&&E.domain[c]||i0.getDomain(E)||f.domain(),f.range(t8.getRange(E,d)),f.domain(p),h=f,g="x"===s?h:void 0,m="y"===s?h:void 0,y=!1!==E.crossAxis&&!0!==E.standalone,b=i0.getTicks(E,h,y),v=i0.getTickFormat(E,h),x={x:t8.getRange(E,"x"),y:t8.getRange(E,"y")},_={x:E.domain&&E.domain.x?E.domain.x:"x"===s?u:void 0,y:E.domain&&E.domain.y?E.domain.y:"y"===s?u:void 0},O={x:E.domain&&E.domain.x?oy.getBaseScale(E,"x").domain(E.domain.x).range(E.horizontal?x.y:x.x):g,y:E.domain&&E.domain.y?oy.getBaseScale(E,"y").domain(E.domain.y).range(E.horizontal?x.x:x.y):m},P=(k=(S=(w=_.x&&_.y?i0.getOrigin(_):void 0)?{x:i0.getOriginSign(w.x,_.x),y:i0.getOriginSign(w.y,_.y)}:void 0)?{x:sV("x",S.y,E.horizontal),y:sV("y",S.x,E.horizontal)}:void 0)?E.orientation||k[s]:(e=>{if(e.orientation)return e.orientation;let t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent})(E),j=i0.isVertical(Object.assign({},E,{orientation:P})),{anchors:(M=({top:"end",left:"end",right:"start",bottom:"start"})[P],{textAnchor:j?M:"middle",verticalAnchor:j?"middle":M}),axis:s,crossAxis:y,domain:_,isVertical:j,labelPadding:o,orientation:P,orientations:k,origin:w,padding:i,scale:O,stringTicks:l,style:a,tickFormat:v,ticks:b}),{axis:T,style:D,orientation:L,isVertical:$,scale:N,ticks:z,tickFormat:F,anchors:R,domain:I,stringTicks:W}=A,U="x"===T?"y":"x",{width:q,height:B,standalone:V,theme:H,polar:Y,padding:G,horizontal:K}=E,{globalTransform:X,gridOffset:Q,gridEdge:J}=(C=A.domain.x&&A.domain.y?E.horizontal?((e,t)=>{let{scale:n,origin:r,orientation:a,orientations:i,domain:o,padding:l}=t,{top:s,bottom:u,left:c,right:d}=l,f={y:"bottom"===a||"top"===a?a:i.x,x:"left"===a||"right"===a?a:i.y},p={x:"bottom"===f.y?u:s,y:"left"===f.x?c:d},h={y:"left"===f.x?0:e.width,x:"bottom"===f.y?e.height:0},g={x:sH(r.x,o.x[0])||sH(r.x,o.x[1])?0:n.x(r.x),y:sH(r.y,o.y[0])||sH(r.y,o.y[1])?0:n.y(r.y)},m=g.x?Math.abs(h.x-g.x):p.x,y=g.y?Math.abs(h.y-g.y):p.y;return{x:null!=e.offsetX?e.offsetX:y,y:null!=e.offsetY?e.offsetY:m}})(E,A):((e,t)=>{let{scale:n,origin:r,orientation:a,orientations:i,domain:o,padding:l}=t,{top:s,bottom:u,left:c,right:d}=l,f={x:"bottom"===a||"top"===a?a:i.x,y:"left"===a||"right"===a?a:i.y},p={x:"left"===f.y?c:d,y:"bottom"===f.x?u:s},h={x:"left"===f.y?0:e.width,y:"bottom"===f.x?e.height:0},g={x:sH(r.x,o.x[0])||sH(r.x,o.x[1])?0:n.x(r.x),y:sH(r.y,o.y[0])||sH(r.y,o.y[1])?0:n.y(r.y)},m=g.x?Math.abs(h.x-g.x):p.x,y=g.y?Math.abs(h.y-g.y):p.y;return{x:null!=e.offsetX?e.offsetX:m,y:null!=e.offsetY?e.offsetY:y}})(E,A):((e,t)=>{let{style:n,scale:r,orientation:a,padding:i,axis:o,ticks:l,stringTicks:s,isVertical:u,labelPadding:c}=t,{polar:d,horizontal:f}=e,p={scale:{[o]:r},polar:d,horizontal:f,ticks:l,stringTicks:s},h="right"===a?i.right:i.left,g="top"===a?i.top:i.bottom,m=null!==e.offsetX&&void 0!==e.offsetX?e.offsetX:h,y=null!==e.offsetY&&void 0!==e.offsetY?e.offsetY:g,b=n.axisLabel.fontSize||14,v=b+2*Math.max(...l.map((t,r)=>{let a=s?e.tickValues[t-1]:t;return t8.evaluateStyle(n.ticks,Object.assign({},p,{tick:a,index:r})).size||0}))+c,x=1.2*b;return{x:null!=m?m:u?v:x,y:null!=y?y:u?x:v}})(E,A),{globalTransform:((e,t,n)=>{let{orientation:r,axis:a}=t,i=i0.getAxisValue(e,a);return({top:{x:0,y:void 0!==i?i:n.y},bottom:{x:0,y:void 0!==i?i:e.height-n.y},left:{x:void 0!==i?i:n.x,y:0},right:{x:void 0!==i?i:e.width-n.x,y:0}})[r]})(E,A,C),gridOffset:((e,t)=>{let{padding:n,orientation:r,crossAxis:a}=e,i="right"===r?n.right:n.left,o="top"===r?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}})(A,C),gridEdge:((e,t)=>{let{orientation:n,padding:r,isVertical:a}=t,i=-sq[n];return{x:a?i*(e.width-(r.left+r.right)):0,y:a?0:i*(e.height-(r.top+r.bottom))}})(E,A)}),Z={scale:{[T]:N[T]},polar:Y,horizontal:K,ticks:z,stringTicks:W},ee=((e,t,n)=>{let{style:r,padding:a,isVertical:i}=t,{width:o,height:l}=e;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}})(E,A,X),et=((e,t,n)=>{let{style:r,orientation:a,padding:i,labelPadding:o,isVertical:l}=t,s=sq[a],u=i.left+i.right,c=i.top+i.bottom,d=r.axisLabel;return{x:l?n.x+s*o:(e.width-u)/2+i.left+n.x,y:l?(e.height-c)/2+i.top+n.y:s*o+n.y,verticalAnchor:d.verticalAnchor||(s<0?"end":"start"),textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?l?-90:0:d.angle,style:d,text:e.label}})(E,A,X),en={parent:Object.assign({style:D.parent,ticks:z,standalone:V,theme:H,width:q,height:B,padding:G,domain:I},Z)},er={dimension:U,range:{[U]:t8.getRange(E,U)},scale:E.scale&&E.scale[U]?{[U]:E.scale[U]}:void 0};return z.reduce((e,t,n)=>{let r,a,i=W?W[n]:t,o=F(t,n,z),l=(r=Object.assign({},Z,{tick:i,tickValue:t,index:n,text:o}),{tickStyle:t8.evaluateStyle(D.ticks,r),labelStyle:t8.evaluateStyle(D.tickLabels,r),gridStyle:t8.evaluateStyle(D.grid,r)}),s={position:((e,t,n)=>{let{tickStyle:r,labelStyle:a}=e,i=r.size||0,o=i+(r.padding||0)+(a.padding||0),l=sq[t];return{x:n?l*o:0,x2:n?l*i:0,y:n?0:l*o,y2:n?0:l*i}})(l,L,$),transform:(a=N[T]?.(t),{x:$?X.x:a+X.x,y:$?a+X.y:X.y})},u={edge:J,transform:{x:$?-Q.x+X.x:N[T]?.(t)+X.x,y:$?N[T]?.(t)+X.y:Q.y+X.y}};return e[n]={axis:Object.assign({dimension:T},Z,ee),axisLabel:Object.assign({},Z,et),ticks:Object.assign({},Z,((e,t,n)=>{let{position:r,transform:a}=e;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}})(s,l.tickStyle,t)),tickLabels:Object.assign({},Z,((e,t,n,r,a)=>{let{position:i,transform:o}=e;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}})(s,l.labelStyle,R,t,o)),grid:Object.assign({},Z,er,((e,t,n)=>{let{edge:r,transform:a}=e;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}})(u,l.gridStyle,t))},e},en)})(e,sY)}static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(e){let{axisComponent:t}=e,n=this.getComponentProps(t,"axis",0);return r(eh).cloneElement(t,n)}renderLabel(e){let{axisLabelComponent:t,label:n}=e;if(!n)return null;let a=this.getComponentProps(t,"axisLabel",0);return r(eh).cloneElement(t,a)}renderGridAndTicks(e){let{tickComponent:t,tickLabelComponent:n,gridComponent:a,name:i}=e,o=e=>{let{style:t={},events:n={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!r(tR)(n)};return this.dataKeys.map((l,s)=>{let u=this.getComponentProps(t,"ticks",s),c=r(eh).cloneElement(t,u),d=o(c.props)?c:void 0,f=this.getComponentProps(a,"grid",s),p=r(eh).cloneElement(a,f),h=o(p.props)?p:void 0,g=this.getComponentProps(n,"tickLabels",s),m=[h,d,r(eh).cloneElement(n,g)].filter(Boolean);return r(eh).cloneElement(e.groupComponent,{key:`${i}-tick-group-${l}`},m)})}fixLabelOverlap(e,t){let n=i0.isVertical(t),r=n?t.height:t.width,a=e=>e.type&&"label"===e.type.role,i=e.map(e=>e.props.children).reduce((e,t)=>e.concat(t),[]).filter(a).map(e=>e.props).reduce((e,t)=>{let r,a="object"==typeof(r=t.style.padding)?Object.assign({},{top:0,right:0,bottom:0,left:0},r):{top:r,right:r,bottom:r,left:r},i=sc.approximateTextSize(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(n?i.height+a.top+a.bottom:i.width+a.right+a.left)},0),o=Math.floor(r*e.length/i),l=Math.ceil(e.length/o)||1,s=e=>e.props.children.filter(a).reduce((e,t)=>(n?t.props.y:t.props.x)||0,0);return e.sort((e,t)=>n?s(t)-s(e):s(e)-s(t)).filter((e,t)=>t%l==0)}shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e}=sK,t=i0.modifyProps(this.props,sY),n=rX.getSafeUserProps(this.props);if(this.shouldAnimate())return this.animateComponent(t,e);let a=this.renderGridAndTicks(t),i=t.fixLabelOverlap?this.fixLabelOverlap(a,t):a,o=[this.renderLine(t),this.renderLabel(t),...i],l=r(eh).cloneElement(t.containerComponent,n);return t.standalone?this.renderContainer(l,o):r(eh).cloneElement(t.groupComponent,n,o)}}let sK=si(sG,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});var eh=(o("8NFma"),o("8NFma"),o("8NFma"));function sX(){return(sX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let sQ=(0,eh.forwardRef)((e,t)=>{let{desc:n,id:a,tabIndex:i,origin:o,...l}=e,s={id:rs(a,e)?.toString(),tabIndex:rs(i,e),...l};return n?r(eh).createElement("path",sX({},s,{ref:t}),r(eh).createElement("desc",null,n)):r(eh).createElement("path",sX({},s,{ref:t}))}),sJ={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},sZ=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,sJ)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({stroke:"black",fill:"none"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.pathComponent,{...s.events,"aria-label":s.ariaLabel,d:(e=>{let{cx:t,cy:n,r:r,startAngle:a,endAngle:i,closedPath:o}=e,l=Math.abs(i-a)/2+a,s=t+r*Math.cos(rc(a)),u=n-r*Math.sin(rc(a)),c=t+r*Math.cos(rc(l)),d=n-r*Math.sin(rc(l)),f=t+r*Math.cos(rc(i)),p=n-r*Math.sin(rc(i)),h=l-a<=180?0:1,g=i-l<=180?0:1,m=o?` M ${t}, ${n} L ${s}, ${u}`:`M ${s}, ${u}`,y=`A ${r}, ${r}, 0, ${h}, 0, ${c}, ${d}`,b=`A ${r}, ${r}, 0, ${g}, 0, ${f}, ${p}`;return`${m} ${y} ${b} ${o?"Z":""}`})(s),style:s.style,desc:s.desc,tabIndex:s.tabIndex,className:s.className,role:s.role,shapeRendering:s.shapeRendering,transform:s.transform,clipPath:s.clipPath})},s0=(e,t,n)=>"x"===n?e*Math.cos(t):-e*Math.sin(t),s5=e=>{let t=e.dependentAxis?"radial":"angular";return e.horizontal?"angular"===t?"radial":"angular":t},s1=(e,t)=>({tickStyle:t8.evaluateStyle(e.ticks,t),labelStyle:t8.evaluateStyle(e.tickLabels,t),gridStyle:t8.evaluateStyle(e.grid,t)}),s2=e=>{let{left:t,right:n,top:r,bottom:a}=t8.getPadding(e.padding),{width:i,height:o}=e;if(void 0===i||void 0===o)throw Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(i-t-n,o-r-a)/2},s6=(e,t)=>{if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if("angular"===s5(e))return[t8.degreesToRadians(e.startAngle),t8.degreesToRadians(e.endAngle)];let n=s2(e);return[e.innerRadius||0,n]},s3=e=>{let t=i0.getAxis(e),n=oy.getBaseScale(e,t),r=i0.getDomain(e,t)||n.domain(),a=s6(e,t);return n.range(a),n.domain(r),n},s7=function(e,t){if(void 0===t&&(t={}),e.disableInlineStyles)return{};let n=e.style||{};return{parent:r(e$)({height:"auto",width:"100%"},n.parent,t.parent),axis:r(e$)({},n.axis,t.axis),axisLabel:r(e$)({},n.axisLabel,t.axisLabel),grid:r(e$)({},n.grid,t.grid),ticks:r(e$)({},n.ticks,t.ticks),tickLabels:r(e$)({},n.tickLabels,t.tickLabels)}},s4=e=>{let{axisAngle:t,startAngle:n,dependentAxis:r}=e,a=i0.getAxis(e),i=i0.getAxisValue(e,a);return void 0!==i&&r?t8.radiansToDegrees(i):void 0===t?n:t},s8={width:450,height:300,padding:50};class s9 extends r(eh).Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:r(eh).createElement(su,null),axisLabelComponent:r(eh).createElement(sU,null),circularAxisComponent:r(eh).createElement(sZ,null),circularGridComponent:r(eh).createElement(sZ,null),containerComponent:r(eh).createElement(an,null),endAngle:360,gridComponent:r(eh).createElement(su,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:au,tickComponent:r(eh).createElement(su,null),tickLabelComponent:r(eh).createElement(sU,null)};static getDomain=i0.getDomain;static getAxis=i0.getAxis;static getScale(e){return s3(e)}static getStyles(e){return s7(e,s8.style)}static getBaseProps(e){return((e,t)=>{let n,a,i,o,l,s,u,c,d,f,p,h,g,m=i0.modifyProps(e,t),y=(a=(e=>{let{theme:t={},dependentAxis:n}=e,a=t.polarAxis&&t.polarAxis.style||t.axis&&t.axis.style,i=t?.[n?"polarDependentAxis":"polarIndependentAxis"]?.style||t?.[n?"dependentAxis":"independentAxis"]?.style;return a&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=r(e$)({},i?.[t],a?.[t]),e),{}):i||a})(n=Object.assign({polar:!0},m)),i=s7(n,a),o=t8.getPadding(n.padding),l=i0.getAxis(n),s=s5(n),u=i0.stringTicks(n)?n.tickValues:void 0,c=i0.getDomain(n,l),d=s6(n,l),f=s3(n),p=i0.getTicks(n,f),h="angular"===s?r(iZ)(p,e=>f(e)%(2*Math.PI)):p,g=i0.getTickFormat(n,f),{axis:l,style:i,padding:o,stringTicks:u,axisType:s,scale:f,ticks:h,tickFormat:g,domain:c,range:d,radius:s2(n),origin:t8.getPolarOrigin(n)}),{style:b,scale:v,ticks:x,domain:_}=y,{width:O,height:w,standalone:S,theme:k,name:P}=m,j=((e,t)=>{let{style:n,axisType:r,radius:a,origin:i}=t,{startAngle:o,endAngle:l,innerRadius:s=0}=e,u="radial"===r?t8.degreesToRadians(s4(e)):void 0;return"radial"===r?{style:n.axis,x1:s0(s,u,"x")+i.x,x2:s0(a,u,"x")+i.x,y1:s0(s,u,"y")+i.y,y2:s0(a,u,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}})(m,y),M=((e,t)=>{let{axisType:n,radius:r,style:a,origin:i}=t,{axisLabelComponent:o}=e;if("radial"!==n)return{};let l=o?.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u="radial"===n?s4(e):void 0,c=void 0===s.angle?sP.getPolarAngle(Object.assign({},e,{labelPlacement:l}),u):s.angle,d=r+(s.padding||0),f=s.textAnchor||sP.getPolarTextAnchor(Object.assign({},e,{labelPlacement:l}),u),p=s.verticalAnchor||sP.getPolarVerticalAnchor(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:f,verticalAnchor:p,text:e.label,x:s0(d,t8.degreesToRadians(u),"x")+i.x,y:s0(d,t8.degreesToRadians(u),"y")+i.y}})(m,y),C={parent:{style:b.parent,ticks:x,scale:v,width:O,height:w,domain:_,standalone:S,theme:k,name:P}};return x.reduce((e,t,n)=>(e[n]={axis:j,axisLabel:M,ticks:((e,t,n,r)=>{let{axisType:a,radius:i,scale:o,style:l,stringTicks:s,ticks:u,tickFormat:c,origin:d}=t,f=c(n,r,u),p=s?s[r]:n,{tickStyle:h}=s1(l,{tick:p,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:f}),g="radial"===a?s4(e):void 0,m=h.padding||h.size||0,y=t8.degreesToRadians(90-g),b="angular"===a?o(n):t8.degreesToRadians(-1*g),v="angular"===a?i:o(n);return"angular"===a?{index:r,datum:p,style:h,x1:s0(v,b,"x")+d.x,y1:s0(v,b,"y")+d.y,x2:s0(v+m,b,"x")+d.x,y2:s0(v+m,b,"y")+d.y}:{index:r,datum:p,style:h,x1:v*Math.cos(b)+Math.cos(y)*m+d.x,x2:v*Math.cos(b)-Math.cos(y)*m+d.x,y1:v*Math.sin(b)+Math.sin(y)*m+d.y,y2:v*Math.sin(b)-Math.sin(y)*m+d.y}})(m,y,t,n),tickLabels:((e,t,n,r)=>{let{axisType:a,radius:i,tickFormat:o,style:l,scale:s,ticks:u,stringTicks:c,origin:d}=t,f=o(n,r,u),p=c?c[r]:n,{labelStyle:h}=s1(l,{text:f,tick:p,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),{tickLabelComponent:g}=e,m=g?.props.labelPlacement?g.props.labelPlacement:e.labelPlacement,y=h.padding||0,b="radial"===a?s4(e):void 0,v="angular"===a?t8.radiansToDegrees(s(n)):b+0,x=void 0===h.angle?sP.getPolarAngle(Object.assign({},e,{labelPlacement:m}),v):h.angle,_="angular"===a?i+y:s(n),O=h.textAnchor||sP.getPolarTextAnchor(Object.assign({},e,{labelPlacement:m}),v);return{index:r,datum:p,style:h,angle:x,textAnchor:O,text:f,x:_*Math.cos(t8.degreesToRadians(v))+d.x,y:-_*Math.sin(t8.degreesToRadians(v))+d.y}})(m,y,t,n),grid:((e,t,n,r)=>{let{axisType:a,radius:i,style:o,scale:l,stringTicks:s,ticks:u,tickFormat:c,origin:d}=t,f=c(n,r,u),{startAngle:p,endAngle:h,innerRadius:g=0}=e,m=s?s[r]:n,{gridStyle:y}=s1(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:f}),b=l(n);return"angular"===a?{index:r,datum:m,style:y,x1:s0(i,b,"x")+d.x,y1:s0(i,b,"y")+d.y,x2:s0(g,b,"x")+d.x,y2:s0(g,b,"y")+d.y}:{style:y,index:r,datum:m,cx:d.x,cy:d.y,r:l(n),startAngle:p,endAngle:h}})(m,y,t,n)},e),C)})(e,s8)}static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(e){let{dependentAxis:t}=e,n=t?e.axisComponent:e.circularAxisComponent,a=this.getComponentProps(n,"axis",0);return r(eh).cloneElement(n,a)}renderLabel(e){let{axisLabelComponent:t,dependentAxis:n,label:a}=e;if(!a||!n)return null;let i=this.getComponentProps(t,"axisLabel",0);return r(eh).cloneElement(t,i)}renderAxis(e){let{tickComponent:t,tickLabelComponent:n,name:a}=e,i=e=>{let{style:t={},events:n={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!r(tR)(n)},o="radial"==(e.dependentAxis?"radial":"angular")?e.circularGridComponent:e.gridComponent,l=this.dataKeys.map((e,n)=>{let o=Object.assign({key:`${a}-tick-${e}`},this.getComponentProps(t,"ticks",n)),l=r(eh).cloneElement(t,o);return i(l.props)?l:void 0}).filter(Boolean),s=this.dataKeys.map((e,t)=>{let n=Object.assign({key:`${a}-grid-${e}`},this.getComponentProps(o,"grid",t)),l=r(eh).cloneElement(o,n);return i(l.props)?l:void 0}).filter(Boolean),u=this.dataKeys.map((e,t)=>{let i=Object.assign({key:`${a}-tick-${e}`},this.getComponentProps(n,"tickLabels",t));return r(eh).cloneElement(n,i)}),c=[this.renderAxisLine(e),this.renderLabel(e),...l,...s,...u];return this.renderGroup(e,c)}renderGroup(e,t){let{groupComponent:n}=e;return r(eh).cloneElement(n,{},t)}shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e}=ue,t=i0.modifyProps(this.props,s8);if(this.shouldAnimate())return this.animateComponent(t,e);let n=this.renderAxis(t);return t.standalone?this.renderContainer(t.containerComponent,n):n}}let ue=si(s9,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});var eh=o("8NFma");let ut={width:450,height:300,padding:50};function un(e,t){let n,a=(n=e.style&&e.style.parent,{parent:r(e$)({},n,{height:"100%",width:"100%",userSelect:"none"})}),i=t8.modifyProps(e,ut,"chart"),{horizontal:o,polar:l}=i,s=aJ.getStringsFromChildren(i,t),u=aJ.getCategories(i,t,s),c=ui(i,t,s),d={x:ua(Object.assign({},i,{categories:u}),"x",t),y:ua(Object.assign({},i,{categories:u}),"y",t)},f={x:t8.getRange(i,"x"),y:t8.getRange(i,"y")},p={x:oy.getScaleFromProps(i,"x")||aJ.getScale(i,"x"),y:oy.getScaleFromProps(i,"y")||aJ.getScale(i,"y")},h={x:p.x.domain(d.x).range(o?f.y:f.x),y:p.y.domain(d.y).range(o?f.x:f.y)},g=l?t8.getPolarOrigin(i):i0.getOrigin(d);return{categories:u,domain:d,range:f,horizontal:o,scale:h,stringMap:c,style:a,origin:g,padding:t8.getPadding(i.padding)}}let ur=(e,t)=>{let n=r(eh).Children.toArray(e.children);if(0===n.length)n.push(t.independent,t.dependent);else{let r={dependent:i0.getAxisComponentsWithParent(n,"dependent"),independent:i0.getAxisComponentsWithParent(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},ua=(e,t,n)=>{let a=n||r(eh).Children.toArray(e.children),i=aJ.getDomain(e,t,a),o=i0.getAxisComponent(a,t);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},ui=(e,t,n)=>({x:n.x&&0!==n.x.length?n.x.reduce((e,t,n)=>(e[t]=n+1,e),{}):null,y:n.y&&0!==n.y.length?n.y.reduce((e,t,n)=>(e[t]=n+1,e),{}):null}),uo={width:450,height:300,padding:50},ul={backgroundComponent:r(eh).createElement(e=>{var t;let n,a=(n=rs((t=r(e$)({},e,rM)).id,t),Object.assign({},t,{id:n}));return a.polar?r(eh).cloneElement(a.circleComponent,{...a.events,style:a.style,role:a.role,shapeRendering:a.shapeRendering,cx:a.x,cy:a.y,r:a.height,className:a.className}):r(eh).cloneElement(a.rectComponent,{...a.events,style:a.style,role:a.role,shapeRendering:a.shapeRendering,x:a.x,y:a.y,rx:a.rx,ry:a.ry,width:a.width,height:a.height,className:a.className})},null),containerComponent:r(eh).createElement(an,null),defaultAxes:{independent:r(eh).createElement(sK,null),dependent:r(eh).createElement(sK,{dependentAxis:!0})},defaultPolarAxes:{independent:r(eh).createElement(ue,null),dependent:r(eh).createElement(ue,{dependentAxis:!0})},groupComponent:r(eh).createElement("g",null),standalone:!0,theme:au},us=r(eh).memo(e=>{let t=r(eh).useMemo(()=>r(e$)({},e,ul),[e]),{getAnimationProps:n,setAnimationState:a,getProps:i}=rC.useAnimationState(),o=i(t),l=t8.modifyProps(o,uo,"chart"),{desc:s,eventKey:u,containerComponent:c,standalone:d,groupComponent:f,externalEventMutations:p,width:h,height:g,theme:m,polar:y,name:b,title:v}=l,x=o.polar?l.defaultPolarAxes:l.defaultAxes,_=r(eh).useMemo(()=>ur(l,x),[l,x]),O=r(eh).useMemo(()=>un(l,_),[l,_]),{domain:w,scale:S,style:k,origin:P,horizontal:j}=O,M=r(eh).useMemo(()=>{let e=(function(e,t,n){let a=t||ur(e),i=n||un(e,a),o=i.style.parent,{height:l,polar:s,theme:u,width:c}=e,{origin:d,horizontal:f}=i,p=e.name||"chart";return a.filter(r(eh).isValidElement).map((t,n)=>{let a=t.type&&t.type.role,h=Array.isArray(t.props.style)?t.props.style:r(e$)({},t.props.style,{parent:o}),g=function(e,t,n){let r=i0.findAxisComponents([e]);if(r.length>0)return function(e,t,n){let{domain:r,scale:a,stringMap:i,categories:o,horizontal:l}=n;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}(r[0],t,n);let{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}=n;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}(t,e,i),m=t.props.name||`${p}-${a}-${n}`,y=r(e$)({horizontal:f,height:l,polar:s,theme:u,width:c,style:h,name:m,origin:s?d:void 0,padding:i.padding,key:`${m}-key-${n}`,standalone:!1},g);return r(eh).cloneElement(t,y)})})(o,_,O).map((e,t)=>{let a=Object.assign({animate:n(o,e,t)},e.props);return r(eh).cloneElement(e,a)});if(o.style&&o.style.background){let t,n,a,i,l,s,u,c,d,f=(t=o.backgroundComponent,n=o.polar?O.range.y[1]:O.range.y[0]-O.range.y[1],a=O.range.x[1]-O.range.x[0],i=o.horizontal?O.scale.y.range()[0]:O.scale.x.range()[0],l=o.horizontal?O.scale.x.range()[1]:O.scale.y.range()[1],s=o.polar?O.origin.x:i,u=o.polar?O.origin.y:l,c=o.name||"chart",d={height:n,polar:o.polar,scale:O.scale,style:o.style.background,x:s,y:u,key:`${c}-background`,width:a},r(eh).cloneElement(t,r(e$)({},t.props,d)));e.unshift(f)}return e},[n,_,o,O]),C=r(eh).useMemo(()=>d?{desc:s,domain:w,width:h,height:g,horizontal:j,name:b,origin:y?P:void 0,polar:y,theme:m,title:v,scale:S,standalone:d,style:k.parent}:{},[s,w,g,j,b,P,y,S,d,k,v,m,h]),E=r(eh).useMemo(()=>{if(d){let e=r(e$)({},c.props,C,rX.getSafeUserProps(t));return r(eh).cloneElement(c,e)}return f},[f,d,c,C,t]),A=r(eh).useMemo(()=>aJ.getAllEvents(o),[o]),T=rC.usePreviousProps(t);return(r(eh).useEffect(()=>()=>{t.animate&&a(T,t)},[a,T,t]),r(tR)(A))?r(eh).cloneElement(E,E.props,M):r(eh).createElement(l1,{container:E,eventKey:u,events:A,externalEventMutations:p},M)},r(lY));function uu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}us.displayName="VictoryChart",us.expectedComponents=["groupComponent","containerComponent"],"function"==typeof SuppressedError&&SuppressedError;var uc='var(--pf-v6-chart-global--FontFamily, "Red Hat Text", "RedHatText", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif)',ud="var(--pf-v6-chart-global--label--Fill, #1f1f1f)";let uf=uc.replace(/"/g,"'"),up=uf,uh=14,ug="var(--pf-v6-chart-global--letter-spacing, normal)",um=8,uy=ud,ub=16,uv="right",ux=30,u_={fill:"var(--pf-v6-chart-bullet--label--grouptitle--Fill, #1f1f1f)",fontSize:22},uO={fill:"var(--pf-v6-chart-bullet--label--subtitle--Fill, #a3a3a3)",fontSize:14},uw={fill:"var(--pf-v6-chart-bullet--label--title--Fill, #1f1f1f)",fontSize:18},uS=6,uk=9,uP=30,uj={fill:"var(--pf-v6-chart-donut--label--subtitle--Fill, #a3a3a3)",fontSize:14},uM="center",uC={fill:"var(--pf-v6-chart-donut--label--title--Fill, #1f1f1f)",fontSize:22},uE=["var(--pf-v6-chart-donut--threshold--warning--Color, #dca614)","var(--pf-v6-chart-donut--threshold--danger--Color, #b1380b)"];var uA={},uT={},uD={};uD=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var uL={},u$={};u$=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),a?n0(n,l,s):nZ(n,l,s)}return n},uL=function(e,t){return e&&u$(t,ih(t),e)};var uN={};uN=function(e,t){return e&&u$(t,th(t),e)};var uz=o("lJ72B"),uF={};uF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var uR={};uR=function(e,t){return u$(e,iz(e),t)};var uI={};uI=function(e,t){return u$(e,om(e),t)};var uW={},uU=Object.prototype.hasOwnProperty;uW=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&uU.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var uq={},uB={};uB=function(e){var t=new e.constructor(e.byteLength);return new iE(t).set(new iE(e)),t};var uV={};uV=function(e,t){var n=t?uB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var uH={},uY=/\w*$/;uH=function(e){var t=new e.constructor(e.source,uY.exec(e));return t.lastIndex=e.lastIndex,t};var uG={},uK=eK?eK.prototype:void 0,uX=uK?uK.valueOf:void 0;uG=function(e){return uX?Object(uX.call(e)):{}};var uQ={};uQ=function(e,t){var n=t?uB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},uq=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return uB(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return uV(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return uQ(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return uH(e);case"[object Symbol]":return uG(e)}};var uJ={},uZ={},u0=Object.create;uZ=function(){function e(){}return function(t){if(!e3(t))return{};if(u0)return u0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),uJ=function(e){return"function"!=typeof e.constructor||tD(e)?{}:uZ(on(e))};var tS=o("9e2tS"),u5={},u1={};u1=function(e){return tv(e)&&"[object Map]"==tB(e)};var tC=o("fwpsA"),u2=tC&&tC.isMap;u5=u2?tM(u2):u1;var u6={},u3={};u3=function(e){return tv(e)&&"[object Set]"==tB(e)};var tC=o("fwpsA"),u7=tC&&tC.isSet;u6=u7?tM(u7):u3;var u4="[object Arguments]",u8="[object Function]",u9="[object Object]",ce={};ce[u4]=ce["[object Array]"]=ce["[object ArrayBuffer]"]=ce["[object DataView]"]=ce["[object Boolean]"]=ce["[object Date]"]=ce["[object Float32Array]"]=ce["[object Float64Array]"]=ce["[object Int8Array]"]=ce["[object Int16Array]"]=ce["[object Int32Array]"]=ce["[object Map]"]=ce["[object Number]"]=ce[u9]=ce["[object RegExp]"]=ce["[object Set]"]=ce["[object String]"]=ce["[object Symbol]"]=ce["[object Uint8Array]"]=ce["[object Uint8ClampedArray]"]=ce["[object Uint16Array]"]=ce["[object Uint32Array]"]=!0,ce["[object Error]"]=ce[u8]=ce["[object WeakMap]"]=!1,uT=function e(t,n,r,a,i,o){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=i?r(t,a,i,o):r(t)),void 0!==l)return l;if(!e3(t))return t;var d=tw(t);if(d){if(l=uW(t),!s)return uF(t,l)}else{var f=tB(t),p=f==u8||"[object GeneratorFunction]"==f;if(tS(t))return uz(t,s);if(f==u9||f==u4||p&&!i){if(l=u||p?{}:uJ(t),!s)return u?uI(t,uN(l,t)):uR(t,uL(l,t))}else{if(!ce[f])return i?t:{};l=uq(t,f,s)}}o||(o=new ib);var h=o.get(t);if(h)return h;o.set(t,l),u6(t)?t.forEach(function(a){l.add(e(a,n,r,a,t,o))}):u5(t)&&t.forEach(function(a,i){l.set(i,e(a,n,r,i,t,o))});var g=c?u?og:i$:u?th:ih,m=d?void 0:g(t);return uD(m||t,function(a,i){m&&(a=t[i=a]),nZ(l,i,e(a,n,r,i,t,o))}),l},uA=function(e){return uT(e,5)};var ct={},cn={},cr={};cr=function(e,t,n){(void 0===n||ts(e[t],n))&&(void 0!==n||t in e)||n0(e,t,n)};var ca={},uz=o("lJ72B"),ci={};ci=function(e){return tv(e)&&tc(e)};var tS=o("9e2tS"),co={};co=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var cl={};cl=function(e){return u$(e,th(e))},ca=function(e,t,n,r,a,i,o){var l=co(e,n),s=co(t,n),u=o.get(s);if(u)return void cr(e,n,u);var c=i?i(l,s,n+"",e,t,o):void 0,d=void 0===c;if(d){var f=tw(s),p=!f&&tS(s),h=!f&&!p&&tk(s);c=s,f||p||h?tw(l)?c=l:ci(l)?c=uF(l):p?(d=!1,c=uz(s,!0)):h?(d=!1,c=uQ(s,!0)):c=[]:ot(s)||ty(s)?(c=l,ty(l)?c=cl(l):(!e3(l)||eY(l))&&(c=uJ(s))):d=!1}d&&(o.set(s,c),a(c,s,r,i,o),o.delete(s)),cr(e,n,c)},cn=function e(t,n,r,a,i){t!==n&&ip(n,function(o,l){if(i||(i=new ib),e3(o))ca(t,n,l,r,e,a,i);else{var s=a?a(co(t,l),o,l+"",t,n,i):void 0;void 0===s&&(s=o),cr(t,l,s)}},th)};ct=function(e){return eN(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&tu(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t})}(function(e,t,n){cn(e,t,n)});let cs="blue",cu="teal",cc="yellow",cd="gray",cf="green",cp="multi",ch="multi-ordered",cg="multi-unordered",cm="orange",cy="purple",cb="skeleton";var cv="var(--pf-v6-chart-axis--tick--stroke--Color, #c7c7c7)";let cx={fontFamily:uc.replace(/"/g,"'"),fontSize:14,letterSpacing:"normal",padding:10,stroke:"var(--pf-v6-chart-global--label--stroke, transparent)",fill:ud},c_=Object.assign(Object.assign({},cx),{textAnchor:"middle"}),cO={padding:50,height:300,width:450},cw="round",cS="round",ck={area:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-area--data--Fill, #1f1f1f)",fillOpacity:.3,strokeWidth:2},labels:c_}}),axis:Object.assign(Object.assign({},cO),{style:{axis:{fill:"var(--pf-v6-chart-axis--axis--Fill, transparent)",strokeWidth:1,stroke:"var(--pf-v6-chart-axis--axis--stroke--Color, #c7c7c7)",strokeLinecap:cw,strokeLinejoin:cS},axisLabel:Object.assign(Object.assign({},c_),{padding:40,stroke:"var(--pf-v6-chart-axis--axis-label--stroke--Color, transparent)"}),grid:{fill:"var(--pf-v6-chart-axis--grid--Fill, none)",stroke:"transparent",pointerEvents:"painted",strokeLinecap:cw,strokeLinejoin:cS},ticks:{fill:"var(--pf-v6-chart-axis--tick--Fill, transparent)",size:5,stroke:cv,strokeLinecap:cw,strokeLinejoin:cS,strokeWidth:1},tickLabels:Object.assign(Object.assign({},cx),{fill:"var(--pf-v6-chart-axis--tick-label--Fill, #383838)"})}}),bar:Object.assign(Object.assign({},cO),{barWidth:10,style:{data:{fill:"var(--pf-v6-chart-bar--data--Fill, #1f1f1f)",padding:8,stroke:"var(--pf-v6-chart-bar--data--stroke, none)",strokeWidth:0},labels:cx}}),boxplot:Object.assign(Object.assign({},cO),{style:{max:{padding:8,stroke:"var(--pf-v6-chart-boxplot--max--stroke--Color, #1f1f1f)",strokeWidth:1},maxLabels:cx,median:{padding:8,stroke:"var(--pf-v6-chart-boxplot--median--stroke--Color, #1f1f1f)",strokeWidth:1},medianLabels:cx,min:{padding:8,stroke:"var(--pf-v6-chart-boxplot--min--stroke--Color, #1f1f1f)",strokeWidth:1},minLabels:cx,q1:{fill:"var(--pf-v6-chart-boxplot--lower-quartile--Fill, #707070)",padding:8},q1Labels:cx,q3:{fill:"var(--pf-v6-chart-boxplot--upper-quartile--Fill, #707070)",padding:8},q3Labels:cx},boxWidth:20}),candlestick:Object.assign(Object.assign({},cO),{candleColors:{positive:"var(--pf-v6-chart-candelstick--candle--positive--Color, #ffffff)",negative:"var(--pf-v6-chart-candelstick--candle--negative--Color, #1f1f1f)"},style:{data:{stroke:"var(--pf-v6-chart-candelstick--data--stroke--Color, #1f1f1f)",strokeWidth:1},labels:c_}}),chart:Object.assign({},cO),errorbar:Object.assign(Object.assign({},cO),{borderWidth:8,style:{data:{fill:"var(--pf-v6-chart-errorbar--data--Fill, transparent)",opacity:1,stroke:"var(--pf-v6-chart-errorbar--data-stroke--Color, #1f1f1f)",strokeWidth:2},labels:c_}}),group:Object.assign({},cO),legend:{gutter:20,orientation:"horizontal",titleOrientation:"top",style:{data:{type:"square"},labels:cx,title:Object.assign(Object.assign({},cx),{fontSize:14,padding:2})}},line:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-line--data--Fill, transparent)",opacity:1,stroke:"var(--pf-v6-chart-line--data--stroke--Color, #1f1f1f)",strokeWidth:2},labels:c_}}),pie:{padding:20,style:{data:{padding:8,stroke:"var(--pf-v6-chart-pie--data--stroke--Color, transparent)",strokeWidth:1},labels:Object.assign(Object.assign({},cx),{padding:8})},height:230,width:230},scatter:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-scatter--data--Fill, #1f1f1f)",opacity:1,stroke:"var(--pf-v6-chart-scatter--data--stroke--Color, transparent)",strokeWidth:0},labels:c_}}),stack:Object.assign(Object.assign({},cO),{style:{data:{strokeWidth:1}}}),tooltip:{cornerRadius:6,flyoutPadding:8,flyoutStyle:{cornerRadius:6,fill:"var(--pf-v6-chart-tooltip--flyoutStyle--Fill, #1f1f1f)",pointerEvents:"var(--pf-v6-chart-tooltip--flyoutStyle--PointerEvents, none)",stroke:"var(--pf-v6-chart-tooltip--flyoutStyle--stroke--Color, #1f1f1f)",strokeWidth:"var(--pf-v6-chart-tooltip--flyoutStyle--stroke--Width, 0)"},pointerLength:10,pointerWidth:20,style:{fill:"var(--pf-v6-chart-tooltip--Fill, #e0e0e0)",pointerEvents:"var(--pf-v6-chart-tooltip--PointerEvents, none)"}},voronoi:Object.assign(Object.assign({},cO),{style:{data:{fill:"var(--pf-v6-chart-voronoi--data--Fill, transparent)",stroke:"var(--pf-v6-chart-voronoi--data--stroke--Color, transparent)",strokeWidth:0},labels:Object.assign(Object.assign({},c_),{fill:"var(--pf-v6-chart-voronoi--labels--Fill, #e0e0e0)",padding:8,pointerEvents:"none"}),flyout:{fill:"var(--pf-v6-chart-voronoi--flyout--stroke--Fill, #1f1f1f)",pointerEvents:"var(--pf-v6-chart-voronoi--flyout--PointerEvents, none)",stroke:"var(--pf-v6-chart-voronoi--flyout--stroke--Color, #1f1f1f)",strokeWidth:"var(--pf-v6-chart-voronoi--flyout--stroke--Width, 1)"}}})},cP={axis:{},bullet:{chart:{height:140}},bulletComparativeErrorMeasure:{bar:{height:140,style:{data:{strokeWidth:1}}}},bulletComparativeMeasure:{bar:{height:140,style:{data:{strokeWidth:1}}}},bulletComparativeWarningMeasure:{bar:{height:140,style:{data:{strokeWidth:2}}}},bulletGroupTitle:{chart:{padding:{bottom:0,left:0,right:0,top:50}},line:{style:{data:{strokeWidth:2}}}},bulletPrimaryDotMeasure:{group:{height:140}},bulletPrimaryNegativeMeasure:{group:{height:140}},bulletPrimarySegmentedMeasure:{group:{height:140}},bulletQualitativeRange:{group:{height:140}},donut:{pie:{height:230,padding:20,padAngle:1,width:230}},donutThresholdDynamic:{pie:{height:202,padding:202,width:20}},donutThresholdStatic:{pie:{height:230,padAngle:1,padding:20,width:230}},donutUtilization:{pie:{height:230,padding:20,padAngle:1,width:230}},threshold:{line:{style:{data:{strokeDasharray:"4,2",strokeWidth:1.5}}}}};var cj="var(--pf-v6-chart-donut--threshold--second--Color, #c7c7c7)",cM="var(--pf-v6-chart-donut--threshold--third--Color, #a3a3a3)",cC="var(--pf-v6-chart-donut--threshold--first--Color, #e0e0e0)",cE="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--100, #f2f2f2)",cA="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--200, #e0e0e0)",cT="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--300, #c7c7c7)",cD="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--400, #a3a3a3)",cL="var(--pf-v6-chart-bullet--qualitative-range--ColorScale--500, #707070)";let c$=e=>{let{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},cN=e=>{let{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:"var(--pf-v6-chart-axis--grid--stroke--Color, #c7c7c7)"},ticks:{stroke:cv}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--error--Fill--Color, #b1380b)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--error--stroke--Color, #b1380b)"}}}},bulletComparativeMeasure:{bar:{height:140,style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--Fill--Color, #383838)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--stroke--Color, #383838)"}}}},bulletComparativeWarningMeasure:{bar:{height:140,style:{data:{fill:"var(--pf-v6-chart-bullet--comparative-measure--warning--Fill--Color, #f5921b)",stroke:"var(--pf-v6-chart-bullet--comparative-measure--warning--stroke--Color, #f5921b)"}}}},bulletGroupTitle:{line:{style:{data:{fill:"var(--pf-v6-chart-bullet--group-title--divider--Fill--Color, #c7c7c7)",stroke:"var(--pf-v6-chart-bullet--group-title--divider--stroke--Color, #c7c7c7)"}}}},bulletPrimaryDotMeasure:{},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:[cE,cA,cT,cD,cL]}},bulletPrimaryNegativeMeasure:{group:{colorScale:["var(--pf-v6-chart-bullet--negative-measure--ColorScale--100, #f89b78)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--200, #f4784a)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--300, #f0561d)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--400, #b1380b)","var(--pf-v6-chart-bullet--negative-measure--ColorScale--500, #731f00)"]}},donut:{},donutThresholdDynamic:{legend:{colorScale:[t[0],cj,cM]},pie:{colorScale:[t[0],cC,cj,cM]}},donutThresholdStatic:{pie:{colorScale:[cC,cj,cM]}},donutUtilization:{legend:{colorScale:[t[0],cC,cj,cM]},pie:{colorScale:[t[0],cC]}},label:{},threshold:{}}},cz=["var(--pf-v6-chart-theme--blue--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--blue--ColorScale--200, #92c5f9)","var(--pf-v6-chart-theme--blue--ColorScale--300, #003366)","var(--pf-v6-chart-theme--blue--ColorScale--400, #4394e5)","var(--pf-v6-chart-theme--blue--ColorScale--500, #004d99)"],cF=c$({COLOR_SCALE:cz}),cR=cN({COLOR_SCALE:cz}),cI=["var(--pf-v6-chart-theme--teal--ColorScale--100, #37a3a3)","var(--pf-v6-chart-theme--teal--ColorScale--200, #9ad8d8)","var(--pf-v6-chart-theme--teal--ColorScale--300, #004d4d)","var(--pf-v6-chart-theme--teal--ColorScale--400, #63bdbd)","var(--pf-v6-chart-theme--teal--ColorScale--500, #147878)"],cW=c$({COLOR_SCALE:cI}),cU=cN({COLOR_SCALE:cI}),cq=["var(--pf-v6-chart-theme--yellow--ColorScale--100, #dca614)","var(--pf-v6-chart-theme--yellow--ColorScale--200, #ffe072)","var(--pf-v6-chart-theme--yellow--ColorScale--300, #96640f)","var(--pf-v6-chart-theme--yellow--ColorScale--400, #ffcc17)","var(--pf-v6-chart-theme--yellow--ColorScale--500, #b98412)"],cB=c$({COLOR_SCALE:cq}),cV=cN({COLOR_SCALE:cq}),cH=["var(--pf-v6-chart-theme--gray--ColorScale--100, #c7c7c7)","var(--pf-v6-chart-theme--gray--ColorScale--200, #f2f2f2)","var(--pf-v6-chart-theme--gray--ColorScale--300, #707070)","var(--pf-v6-chart-theme--gray--ColorScale--400, #e0e0e0)","var(--pf-v6-chart-theme--gray--ColorScale--500, #a3a3a3)"],cY=c$({COLOR_SCALE:cH}),cG=cN({COLOR_SCALE:cH}),cK=["var(--pf-v6-chart-theme--green--ColorScale--100, #63993d)","var(--pf-v6-chart-theme--green--ColorScale--200, #afdc8f)","var(--pf-v6-chart-theme--green--ColorScale--300, #204d00)","var(--pf-v6-chart-theme--green--ColorScale--400, #87bb62)","var(--pf-v6-chart-theme--green--ColorScale--500, #3d7317)"],cX=c$({COLOR_SCALE:cK}),cQ=cN({COLOR_SCALE:cK}),cJ={fill:"transparent",stroke:"transparent"},cZ=Object.assign({},cJ),c0=[cE,cA,cT,cD,cL],c5=(e=>{let{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]},labels:cZ}},axis:{colorScale:t,style:{axis:{fill:"transparent",stroke:t[0]},axisLabel:Object.assign(Object.assign({},cZ),{fill:t[0],stroke:"transparent"}),grid:{fill:"transparent",stroke:"transparent"},ticks:{fill:"transparent",stroke:t[0]},tickLabels:Object.assign(Object.assign({},cJ),{fill:"transparent"})}},bar:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:cJ}},boxplot:{colorScale:t,style:{max:{stroke:t[0]},maxLabels:cJ,median:{stroke:t[0]},medianLabels:cJ,min:{stroke:t[0]},minLabels:cJ,q1:{fill:t[0]},q1Labels:cJ,q3:{fill:t[0]},q3Labels:cJ}},candlestick:{colorScale:t,style:{data:{stroke:t[0]},labels:cZ}},chart:{colorScale:t},errorbar:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:cZ}},group:{colorScale:t},legend:{colorScale:t,style:{labels:cJ,title:Object.assign({},cJ)}},line:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:cZ}},pie:{colorScale:t,style:{data:{stroke:"transparent"},labels:Object.assign({},cJ)}},scatter:{colorScale:t,style:{data:{fill:t[0],stroke:"transparent"},labels:cZ}},stack:{colorScale:t},tooltip:{flyoutStyle:{fill:"transparent",stroke:"transparent"},style:{fill:"transparent"}},voronoi:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:Object.assign(Object.assign({},cZ),{fill:"transparent"}),flyout:{fill:"transparent",stroke:"transparent"}}}}})({COLOR_SCALE:c0}),c1=(e=>{let{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:t[0]},ticks:{stroke:t[0]}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeWarningMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletGroupTitle:{line:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletPrimaryDotMeasure:{},bulletPrimaryNegativeMeasure:{group:{colorScale:t}},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:t}},donut:{},donutThresholdDynamic:{legend:{colorScale:t},pie:{colorScale:t}},donutThresholdStatic:{pie:{colorScale:t}},donutUtilization:{legend:{colorScale:t},pie:{colorScale:t}},label:{backgroundStyle:{fill:t[0]},style:cZ},threshold:{}}})({COLOR_SCALE:c0}),c2=["var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--200, #63993d)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--300, #37a3a3)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--400, #dca614)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--500, #ca6c0f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--600, #92c5f9)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--700, #204d00)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--800, #9ad8d8)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--900, #96640f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1000, #f8ae54)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1100, #003366)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1200, #afdc8f)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1300, #004d4d)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1400, #ffe072)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1500, #732e00)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1600, #4394e5)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1700, #3d7317)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1800, #63bdbd)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--1900, #b98412)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2000, #f5921b)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2100, #004d99)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2200, #87bb62)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2300, #147878)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2400, #ffcc17)","var(--pf-v6-chart-theme--multi-color-ordered--ColorScale--2500, #9e4a06)"],c6=c$({COLOR_SCALE:c2}),c3=cN({COLOR_SCALE:c2}),c7=["var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--100, #0066cc)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--200, #dca614)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--300, #63993d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--400, #5e40be)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--500, #ca6c0f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--600, #37a3a3)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--700, #c7c7c7)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--800, #92c5f9)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--900, #96640f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1000, #afdc8f)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1100, #21134d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1200, #f8ae54)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1300, #004d4d)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1400, #f2f2f2)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1500, #003366)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1600, #ffe072)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1700, #204d00)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1800, #b6a6e9)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--1900, #732e00)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2000, #9ad8d8)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2100, #707070)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2200, #4394e5)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2300, #b98412)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2400, #87bb62)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2500, #3d2785)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2600, #f5921b)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2700, #147878)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2800, #e0e0e0)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--2900, #004d99)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3000, #ffcc17)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3100, #3d7317)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3200, #876fd4)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3300, #9e4a06)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3400, #63bdbd)","var(--pf-v6-chart-theme--multi-color-unordered--ColorScale--3500, #a3a3a3)"],c4=c$({COLOR_SCALE:c7}),c8=cN({COLOR_SCALE:c7}),c9=["var(--pf-v6-chart-theme--orange--ColorScale--100, #ca6c0f)","var(--pf-v6-chart-theme--orange--ColorScale--200, #f8ae54)","var(--pf-v6-chart-theme--orange--ColorScale--300, #732e00)","var(--pf-v6-chart-theme--orange--ColorScale--400, #f5921b)","var(--pf-v6-chart-theme--orange--ColorScale--500, #9e4a06)"],de=c$({COLOR_SCALE:c9}),dt=cN({COLOR_SCALE:c9}),dn=["var(--pf-v6-chart-theme--purple--ColorScale--100, #5e40be)","var(--pf-v6-chart-theme--purple--ColorScale--200, #b6a6e9)","var(--pf-v6-chart-theme--purple--ColorScale--300, #21134d)","var(--pf-v6-chart-theme--purple--ColorScale--400, #876fd4)","var(--pf-v6-chart-theme--purple--ColorScale--500, #3d2785)"],dr=c$({COLOR_SCALE:dn}),da=cN({COLOR_SCALE:dn}),di=e=>{let t=r(uA)(ck);return r(ct)(t,ds(e))},dl=e=>{let t=r(uA)(cP);return r(ct)(t,du(e))},ds=e=>{switch(e){case cs:return cF;case cu:return cW;case cc:return cB;case cd:return cY;case cf:return cX;case cp:case ch:return c6;case cg:return c4;case cm:return de;case cy:return dr;case cb:return c5;default:return cF}},du=e=>{switch(e){case cs:return cR;case cu:return cU;case cc:return cV;case cd:return cG;case cf:return cQ;case cp:case ch:return c3;case cg:return c8;case cm:return dt;case cy:return da;case cb:return c1;default:return cR}},dc=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bullet)},dd=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeErrorMeasure)},df=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeMeasure)},dp=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletComparativeWarningMeasure)},dh=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletGroupTitle)},dg=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimaryDotMeasure)},dm=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimaryNegativeMeasure)},dy=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletPrimarySegmentedMeasure)},db=e=>{let t=di(e),n=dl(e);return r(ct)(t,n.bulletQualitativeRange)},dv=({defaultSize:e,height:t,horizontal:n=!0,scale:r=1,value:a,width:i})=>n&&t>e?a+(t-e)*r:n?a-(e-t)*r:i>e?a+(i-e)*r:a-(e-i)*r,dx=e=>Math.max(dv(e),0);var eh=o("8NFma");"undefined"!=typeof window&&window.document&&window.document.createElement;let d_=e=>{var{className:t,themeColor:n,theme:r=di(n)}=e,a=uu(e,["className","themeColor","theme"]);let i=(({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v6-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v6-c-chart ${t}`:"pf-v6-c-chart"})({className:t});return(0,e_.jsx)(an,Object.assign({className:i,theme:r},a))};d_.displayName="ChartContainer",r(eO)(d_,an);let dO=e=>{var{style:t,textAnchor:n}=e,a=uu(e,["style","textAnchor"]);let i=e=>r(e$)(Object.assign(Object.assign({},e),{textAnchor:n}),{fill:uy,fontFamily:up,fontSize:uh,letterSpacing:ug}),o=Array.isArray(t)?t.map(i):i(t);return(0,e_.jsx)(sU,Object.assign({style:o,textAnchor:n},a))};dO.displayName="ChartLabel",r(eO)(dO,sU);let dw=e=>{let t,n;var{axisLabelComponent:a=(0,e_.jsx)(dO,{}),containerComponent:i=(0,e_.jsx)(d_,{}),name:o,showGrid:l=!1,themeColor:s,tickLabelComponent:u=(0,e_.jsx)(dO,{}),theme:c=di(s)}=e,d=uu(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);let f=dl(s),p=(0,eh.cloneElement)(i,Object.assign({theme:c},i.props));return(0,e_.jsx)(sK,Object.assign({axisLabelComponent:(0,eh.cloneElement)(a,Object.assign(Object.assign(Object.assign({},o&&{id:()=>`${o}-${a.type.displayName}`}),a.props),(null==f?void 0:f.label)&&f.label)),containerComponent:p,name:o,theme:l?(t=di(s),n=dl(s),r(ct)(t,n.axis)):c,tickLabelComponent:(0,eh.cloneElement)(u,Object.assign(Object.assign(Object.assign({},o&&{id:e=>`${o}-${u.type.displayName}-${e.index}`}),u.props),(null==f?void 0:f.label)&&f.label))},d))};dw.displayName="ChartAxis",r(eO)(dw,sK);var eh=o("8NFma");let dS=({height:e,padding:t,width:n})=>{let{top:r,bottom:a,left:i,right:o}=t8.getPadding(t),l=t8.getRadius({height:e,width:n,padding:t}),s=(n-2*l-i-o)/2,u=(e-2*l-r-a)/2;return{x:l+i+s,y:l+r+u}},dk=({chartWidth:e,dx:t=0,labelPosition:n})=>"top"===n&&e?Math.round(e/2):t,dP=({chartHeight:e,dy:t=0,labelPosition:n})=>{switch(n){case"bottom":return e+um+t;case"left":return e?Math.round(e/2)+t:t;default:return t}},dj=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{let o=dS({height:t,padding:a,width:i}),l=t8.getRadius({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+um+e+l;case"right":return o.x+um+e;default:return e}default:return e}},dM=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{let i=dS({height:t,padding:r,width:a}),o=t8.getRadius({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+2*um+e;default:return e}},dC=({text:e,theme:t})=>{let n=t.legend.style.labels;return sc.approximateTextSize(e,Object.assign({},n))},dE=(e,t,n)=>"number"==typeof t?t:"object"==typeof t&&Object.keys(t).length>0?t[e]||0:dE(e,n,0),dA=({ariaDesc:e,ariaTitle:t,capHeight:n=1.1,horizontal:r=!0,legendPosition:a="bottom",name:i,padding:o,standalone:l=!0,subTitle:s,themeColor:u,title:c,titleComponent:d=(0,e_.jsx)(dO,{}),titlePosition:f,theme:p=dc(u),height:h=r?p.chart.height:p.chart.width,width:g=r?p.chart.width:p.chart.height})=>{let m={height:r?p.chart.height:h,width:r?g:p.chart.height},y={bottom:dE("bottom",o,p.chart.padding),left:dE("left",o,p.chart.padding),right:dE("right",o,p.chart.padding),top:dE("top",o,p.chart.padding)},b=()=>{let e=dl(u),t=c&&s,o=r?"left":"bottom";f&&f.includes("left")&&r&&(o=f);let l="middle";"top-left"===o?l="start":r&&(l="end");let p=2*ub-y.bottom;if("top-left"===o){let e=+!t;p=.5*y.top+(.5*y.bottom-y.bottom)+58-ub+e}else r&&(p=.5*y.top+(.5*y.bottom-y.bottom));return(0,eh.cloneElement)(d,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t&&{capHeight:n}),i&&{id:()=>`${i}-${d.type.displayName}`}),{style:[uw,uO],text:t?[c,s]:c,textAnchor:l,verticalAnchor:"top-left"===o?"end":"middle",x:r?dk({chartWidth:m.width,dx:"top-left"===o?y.left:y.left-1.75*um,labelPosition:"left",legendPosition:a,svgWidth:g}):.5*y.left+(.5*y.right-(y.right-50))+uP/2,y:dP({chartHeight:m.height,dy:p,labelPosition:o})}),d.props),(null==e?void 0:e.label)&&e.label))};return l?(0,e_.jsx)(d_,{desc:e,height:h,title:t,width:g,children:b()}):(0,e_.jsx)(eh.Fragment,{children:b()})};dA.displayName="ChartBulletTitle";var eh=(o("8NFma"),o("8NFma")),dT={},dD={},dL=Math.ceil,d$=Math.max;dD=function(e,t,n,r){for(var a=-1,i=d$(dL((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o};var dN={},dz={},dF={},dR={},dI=/\s/;dR=function(e){for(var t=e.length;t--&&dI.test(e.charAt(t)););return t};var dW=/^\s+/;dF=function(e){return e?e.slice(0,dR(e)+1).replace(dW,""):e};var dU=0/0,dq=/^[-+]0x[0-9a-f]+$/i,dB=/^0b[01]+$/i,dV=/^0o[0-7]+$/i,dH=parseInt;dz=function(e){if("number"==typeof e)return e;if(ni(e))return dU;if(e3(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=e3(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=dF(e);var n=dB.test(e);return n||dV.test(e)?dH(e.slice(2),n?2:8):dq.test(e)?dU:+e};var dY=1/0;dN=function(e){return e?(e=dz(e))===dY||e===-dY?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},dT=function(e){return function(t,n,r){return r&&"number"!=typeof r&&tu(t,n,r)&&(n=r=void 0),t=dN(t),void 0===n?(n=t,t=0):n=dN(n),r=void 0===r?t<n?1:-1:dN(r),dD(t,n,r,e)}}();let dG=e=>{let{data:t,style:n}=e;return t.map((e,a)=>{let i=r(e$)({},e.labels,n.labels);return t8.evaluateStyle(i,{datum:e,index:a,data:t})})},dK=function(e,t){void 0===t&&(t={});let n=e.style||{};return{parent:r(e$)(n.parent,t.parent,{height:"100%",width:"100%"}),data:r(e$)({},n.data,t.data),labels:r(e$)({},n.labels,t.labels),border:r(e$)({},n.border,t.border),title:r(e$)({},n.title,t.title)}},dX=e=>{let{orientation:t,theme:n}=e,r=dK(e,n&&n.legend&&n.legend.style?n.legend.style:{}),a=(e=>{let{colorScale:t,theme:n}=e;return"string"==typeof t?lf.getColorScale(t,n):t||[]})(e),i=t8.getPadding(e.borderPadding);return Object.assign({},e,{style:r,isHorizontal:"horizontal"===t,colorScale:a,borderPadding:i})},dQ=e=>{let{data:t}=e,n=e.style&&e.style.data||{},r=dG(e);return t.map((t,a)=>{let i=t.symbol||{},{fontSize:o}=r[a],l=i.size||n.size||o/2.5,s=e.symbolSpacer||Math.max(l,o);return{...t,size:l,symbolSpacer:s,fontSize:o,textSize:sc.approximateTextSize(t.name,r[a]),column:((e,t)=>{let{itemsPerRow:n,isHorizontal:r}=e;return n?r?t%n:Math.floor(t/n):r?t:0})(e,a),row:((e,t)=>{let{itemsPerRow:n,isHorizontal:r}=e;return n?r?Math.floor(t/n):t%n:r?0:t})(e,a)}})},dJ=(e,t)=>{let n=e.gutter||{},a="object"==typeof n?(n.left||0)+(n.right||0):n||0,i=r(io)(t,"column");return Object.keys(i).reduce((e,t,n)=>{let r=i[t].map(e=>e.textSize.width+e.size+e.symbolSpacer+a);return e[n]=Math.max(...r),e},[])},dZ=(e,t)=>{let n=e.rowGutter||{},a="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,i=r(io)(t,"row");return Object.keys(i).reduce((e,t,n)=>{let r=i[t].map(e=>e.textSize.height+e.symbolSpacer+a);return e[n]=Math.max(...r),e},[])},d0=e=>{let t=e.style&&e.style.title||{},n=sc.approximateTextSize(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},d5=(e,t)=>{let n=t8.modifyProps(e,t,"legend"),r=Object.assign({},n,dX(n)),{title:a,titleOrientation:i}=r,o=dQ(r),l=dJ(r,o),s=dZ(r,o),u=a?d0(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(d1(s),u.height):d1(s)+u.height,width:"left"===i||"right"===i?d1(l)+u.width:Math.max(d1(l),u.width)}};function d1(e){if(e&&e.length){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}return 0}var eh=o("8NFma");let d2={rectComponent:r(eh).createElement(rk,null),role:"presentation",shapeRendering:"auto"},d6=e=>{var t;let n,a,i,o,l,s=(n=rs((t=r(e$)({},e,d2)).ariaLabel,t),a=rs(t.desc,t),i=rs(t.id,t),o=ru(Object.assign({fill:"none"},t.style),t),l=rs(t.tabIndex,t),Object.assign({},t,{ariaLabel:n,desc:a,id:i,style:o,tabIndex:l}));return r(eh).cloneElement(s.rectComponent,{...s.events,"aria-label":s.ariaLabel,style:s.style,desc:s.desc,tabIndex:s.tabIndex,transform:s.transform,className:s.className,role:s.role,shapeRendering:s.shapeRendering,x:s.x,y:s.y,width:s.width,height:s.height,clipPath:s.clipPath})};var eh=o("8NFma"),d3={};function d7(e,t,n){return`M ${e}, ${t}
|
|
29
29
|
m ${-n}, 0
|
|
30
30
|
a ${n}, ${n} 0 1,0 ${2*n},0
|
|
31
31
|
a ${n}, ${n} 0 1,0 ${-(2*n)},0`}function d4(e,t,n){let r=.87*n,a=e-r,i=e+r-a;return`M ${a}, ${t+r}
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
L ${g}, ${f-l*n}
|
|
163
163
|
A ${y} ${g+n}, ${f}
|
|
164
164
|
z`})(s),className:o.className,shapeRendering:o.shapeRendering,role:o.role,transform:o.transform,clipPath:o.clipPath})},fM={cornerRadius:5,pointerLength:10,pointerWidth:10};class fC extends r(eh).Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:r(eh).createElement(sU,null),flyoutComponent:r(eh).createElement(fj,null),groupComponent:r(eh).createElement("g",null)};static defaultEvents(e){let t=e.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],n=e.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>t,onFocus:()=>t,onTouchStart:()=>t,onMouseOut:()=>n,onBlur:()=>n,onTouchEnd:()=>n}}]}constructor(e){super(e),this.id=void 0===e.id?r(r1)("tooltip-"):e.id}getDefaultOrientation(e){let{datum:t,horizontal:n,polar:r}=e;return r?this.getPolarOrientation(e):t&&t.y<0?n?"left":"bottom":n?"right":"top"}getPolarOrientation(e){let t=sP.getDegrees(e,e.datum),n=e.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(t):"parallel"===n?t<90||t>270?"right":"left":t>180?"bottom":"top"}getVerticalOrientations(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}getStyles(e){let t=e.theme||au,n=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},a=Array.isArray(e.style)?e.style.map(e=>r(e$)({},e,n)):r(e$)({},e.style,n),i=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},o=e.flyoutStyle?r(e$)({},e.flyoutStyle,i):i,l=Array.isArray(a)?a.map(t=>t8.evaluateStyle(t,e)):t8.evaluateStyle(a,e),s=t8.evaluateStyle(o,Object.assign({},e,{style:l}));return{style:l,flyoutStyle:s}}getEvaluatedProps(e){let{cornerRadius:t,centerOffset:n,dx:a,dy:i}=e,o=t8.evaluateProp(e.active,e),l=t8.evaluateProp(e.text,Object.assign({},e,{active:o}));null==l&&(l=""),"number"==typeof l&&(l=l.toString());let{style:s,flyoutStyle:u}=this.getStyles(Object.assign({},e,{active:o,text:l})),c=t8.evaluateProp(e.orientation,Object.assign({},e,{active:o,text:l,style:s,flyoutStyle:u}))||this.getDefaultOrientation(e),d=t8.evaluateProp(e.flyoutPadding,Object.assign({},e,{active:o,text:l,style:s,flyoutStyle:u,orientation:c}))||this.getLabelPadding(s),f=t8.getPadding(d),p=t8.evaluateProp(e.pointerWidth,Object.assign({},e,{active:o,text:l,style:s,flyoutStyle:u,orientation:c})),h=t8.evaluateProp(e.pointerLength,Object.assign({},e,{active:o,text:l,style:s,flyoutStyle:u,orientation:c})),g=sc.approximateTextSize(l,s),{flyoutHeight:m,flyoutWidth:y}=this.getDimensions(Object.assign({},e,{style:s,flyoutStyle:u,active:o,text:l,orientation:c,flyoutPadding:f,pointerWidth:p,pointerLength:h}),g),b=Object.assign({},e,{active:o,text:l,style:s,flyoutStyle:u,orientation:c,flyoutHeight:m,flyoutWidth:y,flyoutPadding:f,pointerWidth:p,pointerLength:h}),v=r(ot)(n)&&n?.x!==void 0?t8.evaluateProp(n.x,b):0,x=r(ot)(n)&&n?.y!==void 0?t8.evaluateProp(n.y,b):0;return{...b,centerOffset:{x:v,y:x},dx:void 0!==a?t8.evaluateProp(a,b):0,dy:void 0!==i?t8.evaluateProp(i,b):0,cornerRadius:t8.evaluateProp(t,b)}}getCalculatedValues(e){let{style:t,text:n,flyoutStyle:r,flyoutHeight:a,flyoutWidth:i}=e,o=sc.approximateTextSize(n,t),l={height:a,width:i},s=this.getFlyoutCenter(e,l);return{style:t,flyoutStyle:r,labelSize:o,flyoutDimensions:l,flyoutCenter:s,transform:this.getTransform(e)}}getTransform(e){let{x:t,y:n,style:r}=e,a=(r||{}).angle||e.angle||this.getDefaultAngle(e);return a?`rotate(${a} ${t} ${n})`:void 0}getDefaultAngle(e){let{polar:t,labelPlacement:n,orientation:r,datum:a}=e;if(!t||!n||"vertical"===n)return 0;let i=sP.getDegrees(e,a),o=0;return 0===i||180===i?o="top"===r&&180===i?270:90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+90*("perpendicular"!==n)*(i>90&&i<180||i>270?1:-1)}constrainTooltip(e,t,n){let{x:r,y:a}=e,{width:i,height:o}=n,l={x:[0,t.width],y:[0,t.height]},s={x:[r-i/2,r+i/2],y:[a-o/2,a+o/2]},u={x:[s.x[0]<l.x[0]?l.x[0]-s.x[0]:0,s.x[1]>l.x[1]?s.x[1]-l.x[1]:0],y:[s.y[0]<l.y[0]?l.y[0]-s.y[0]:0,s.y[1]>l.y[1]?s.y[1]-l.y[1]:0]};return{x:Math.round(r+u.x[0]-u.x[1]),y:Math.round(a+u.y[0]-u.y[1])}}getFlyoutCenter(e,t){let{x:n,y:a,dx:i,dy:o,pointerLength:l,orientation:s,constrainToVisibleArea:u,centerOffset:c}=e,{height:d,width:f}=t,p="left"===s?-1:1,h="bottom"===s?-1:1,g={x:"left"===s||"right"===s?n+p*(l+f/2+p*i):n+i,y:"top"===s||"bottom"===s?a-h*(l+d/2-h*o):a+o},m={x:r(ot)(e.center)&&void 0!==e.center.x?e.center.x:g.x,y:r(ot)(e.center)&&void 0!==e.center.y?e.center.y:g.y},y={x:m.x+c.x,y:m.y+c.y};return u?this.constrainTooltip(y,e,t):y}getLabelPadding(e){return e?Math.max(...Array.isArray(e)?e.map(e=>e.padding):[e.padding],0):0}getDimensions(e,t){let{orientation:n,pointerLength:r,pointerWidth:a,flyoutHeight:i,flyoutWidth:o,flyoutPadding:l}=e,s=t8.evaluateProp(e.cornerRadius,e);return{flyoutHeight:i?t8.evaluateProp(i,e):Math.max("top"===n||"bottom"===n?2*s:2*s+a,t.height+l.top+l.bottom),flyoutWidth:o?t8.evaluateProp(o,e):Math.max("left"===n||"right"===n?2*s+r:2*s,t.width+l.left+l.right)}}getLabelProps(e,t){let{flyoutCenter:n,style:a,labelSize:i,dy:o=0,dx:l=0}=t,{text:s,datum:u,activePoints:c,labelComponent:d,index:f,flyoutPadding:p}=e,h=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return r(e$)({},d.props,{key:`${this.id}-label-${f}`,text:s,datum:u,activePoints:c,textAnchor:h,dy:o,dx:l,style:a,x:(()=>{if(!h||"middle"===h)return n.x;let e="end"===h?-1:1;return n.x-e*(i.width/2)})()+(p.left-p.right)/2,y:n.y+(p.top-p.bottom)/2,verticalAnchor:"middle",angle:a.angle})}getPointerOrientation(e,t,n){let a={bottom:t.y+n.height/2,top:t.y-n.height/2,left:t.x-n.width/2,right:t.x+n.width/2},i=[{side:"top",val:a.top>e.y?a.top-e.y:-1},{side:"bottom",val:a.bottom<e.y?e.y-a.bottom:-1},{side:"right",val:a.right<e.x?e.x-a.right:-1},{side:"left",val:a.left>e.x?a.left-e.x:-1}];return r(i5)(i,"val","desc")[0].side}getFlyoutProps(e,t){let{flyoutDimensions:n,flyoutStyle:a,flyoutCenter:i}=t,{x:o,y:l,dx:s,dy:u,datum:c,activePoints:d,index:f,pointerLength:p,pointerWidth:h,cornerRadius:g,events:m,flyoutComponent:y}=e,b=t8.evaluateProp(e.pointerOrientation,e);return r(e$)({},y.props,{x:o,y:l,dx:s,dy:u,datum:c,activePoints:d,index:f,pointerLength:p,pointerWidth:h,cornerRadius:g,events:m,orientation:b||this.getPointerOrientation({x:o,y:l},i,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:a,center:i})}renderTooltip(e){let t=t8.evaluateProp(e.active,e),{renderInPortal:n}=e;if(!t)return null;let a=this.getEvaluatedProps(e),{flyoutComponent:i,labelComponent:o,groupComponent:l}=a,s=this.getCalculatedValues(a),u=[r(eh).cloneElement(i,this.getFlyoutProps(a,s)),r(eh).cloneElement(o,this.getLabelProps(a,s))],c=r(eh).cloneElement(l,{role:"presentation",transform:s.transform},u);return n?r(eh).createElement(sk,null,c):c}render(){let e=t8.modifyProps(this.props,fM,"tooltip");return this.renderTooltip(e)}}let fE=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=(0,e_.jsx)(dO,{}),labelTextAnchor:r,themeColor:a,theme:i=di(a)}=e,o=uu(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);let l=(0,eh.cloneElement)(n,Object.assign({textAnchor:r,theme:i},n.props));return(0,e_.jsx)(fC,Object.assign({constrainToVisibleArea:t,labelComponent:l,theme:i},o))};fE.displayName="ChartTooltip",r(eO)(fE,fC);var eh=o("8NFma");let fA=(e,t)=>{let n=0;return e.map(e=>{let r=dC({text:e.name,theme:t}).width;r>n&&(n=r)}),n},fT=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:a=0,dy:i=0,height:o,legendComponent:l,padding:s,patternScale:u,position:c=uv,theme:d,themeColor:f,width:p,orientation:h=d.legend.orientation})=>{let g=l.props?l.props:{},m=e?f$({dx:a,height:o,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:h,legendPosition:c,legendProps:g,padding:s,theme:d,width:p}):void 0,y=r(e$)({},l.props,{itemsPerRow:m}),b=fz({chartType:t,dx:a,height:o,legendData:y.data,legendOrientation:y.legendOrientation?y.legendOrientation:h,legendPosition:c,legendProps:y,padding:s,theme:d,width:p}),v=fF({chartType:t,dy:i,height:o,legendData:y.data,legendOrientation:y.legendOrientation?y.legendOrientation:h,legendProps:y,legendPosition:c,padding:s,theme:d,width:p}),x=r(e$)({},l.props,{colorScale:n,itemsPerRow:m,orientation:h,patternScale:u,standalone:!1,theme:d,themeColor:f,x:b>0?b:0,y:v>0?v:0});return(0,eh.cloneElement)(l,x)},fD=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?fc.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},fL=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let{left:u,right:c}=t8.getPadding(o),d=fD({legendData:r,legendOrientation:a,legendProps:i,theme:l}),f=0;switch(n){case"bottom-left":f=u+e;break;case"right":f=s-u-c+ub+u+e;break;default:f=e}return s-f>d.width},f$=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(fL({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},fN=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{let a=fD({legendData:e,legendOrientation:t,legendProps:n,theme:r}),i=fD({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(a.height-i.height)},fz=e=>{var{chartType:t}=e,n=uu(e,["chartType"]);return"pie"===t?fU(n):fI(n)},fF=e=>{var{chartType:t}=e,n=uu(e,["chartType"]);switch(t){case"pie":return fq(n);case"bullet":return fR(n);default:return fW(n)}},fR=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let{left:u,right:c}=t8.getPadding(o);switch(n){case"bottom":case"bottom-left":return t+ub+e;case"right":return(t-fD({legendData:r,legendOrientation:a,legendProps:i,theme:l}).height)/2+(r&&r.length>0?17:0);default:return e}},fI=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{let{top:u,bottom:c,left:d,right:f}=t8.getPadding(o),p=fD({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return d+e;case"right":return Math.abs(s-(d+f))+ub+d+e;default:return e}},fW=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let{top:u,bottom:c,left:d,right:f}=t8.getPadding(o),p={height:Math.abs(t-(c+u))};switch(n){case"bottom":case"bottom-left":return p.height+2*ub+u+e;case"right":{let e=fD({legendData:r,legendOrientation:a,legendProps:i,theme:l});return p.height/2+u-e.height/2+(r&&r.length>0?2:0)}default:return e}},fU=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=dS({height:t,padding:o,width:s}),c=t8.getRadius({height:t,width:s,padding:o}),d=fD({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>d.width?Math.round((s-d.width)/2)+e:e;case"right":return u.x+um+e+c;default:return e}},fq=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=dS({height:t,padding:o,width:s}),c=t8.getRadius({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+ub+c+e;case"right":{let e=fD({legendData:r,legendOrientation:a,legendProps:i,theme:l});return u.y-e.height/2+(r&&r.length>0?2:0)}default:return e}};var eh=(o("8NFma"),o("8NFma"),o("8NFma"),o("8NFma"));let fB=e=>r(eh).createElement("defs",null,r(eh).createElement("clipPath",{id:e.clipId?.toString()},e.children));class fV extends r(eh).Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:r(eh).createElement(rj,null),rectComponent:r(eh).createElement(rk,null),clipPathComponent:r(eh).createElement(fB,null),groupComponent:r(eh).createElement("g",null)};constructor(e){super(e),this.state={clipId:e?.clipId}}componentDidMount(){this.state.clipId||this.setState({clipId:r(r1)("victory-clip-")})}calculateAttributes(e){let{polar:t,origin:n,clipWidth:r=0,clipHeight:a=0,translateX:i=0,translateY:o=0}=e,l=ra(e.clipPadding),s=e.radius||rf(e);return{x:(t?n.x:i)-l.left,y:(t?n.y:o)-l.top,width:Math.max((t?s:r)+l.left+l.right,0),height:Math.max((t?s:a)+l.top+l.bottom,0)}}renderClippedGroup(e,t){let n=r0(e),{style:a,events:i,transform:o,children:l,className:s,groupComponent:u,tabIndex:c}=e,d=this.renderClipComponent(e,t),f=Object.assign({className:s,style:a,transform:o,key:`clipped-group-${t}`,clipPath:`url(#${t})`},i);return r(eh).cloneElement(u,{...f,tabIndex:c,...n},[d,...r(eh).Children.toArray(l)])}renderGroup(e){let{style:t,events:n,transform:a,children:i,className:o,groupComponent:l,tabIndex:s}=e;return r(eh).cloneElement(l,Object.assign({className:o,style:t,transform:a,"aria-label":e["aria-label"],tabIndex:s},n),i)}renderClipComponent(e,t){let n,{polar:a,origin:i,clipWidth:o=0,clipHeight:l=0,translateX:s=0,translateY:u=0,circleComponent:c,rectComponent:d,clipPathComponent:f}=e,{top:p,bottom:h,left:g,right:m}=ra(e.clipPadding);if(a){let t=e.radius||rf(e),a={r:Math.max(t+g+m,t+p+h,0),cx:i.x-g,cy:i.y-p};n=r(eh).cloneElement(c,a)}else n=r(eh).cloneElement(d,{x:s-g,y:u-p,width:Math.max(o+g+m,0),height:Math.max(l+p+h,0)});return r(eh).cloneElement(f,Object.assign({key:`clip-path-${t}`},e,{clipId:t}),n)}getClipValue(e,t){let n={x:e.clipWidth,y:e.clipHeight};if(void 0!==n[t])return n[t];let r=rh(e,t);return r&&Math.abs(r[0]-r[1])||void 0}getTranslateValue(e,t){let n={x:e.translateX,y:e.translateY};if(void 0!==n[t])return n[t];let r=rh(e,t);return r?Math.min(...r):void 0}render(){let e=this.getClipValue(this.props,"y"),t=this.getClipValue(this.props,"x");if(void 0===t||void 0===e)return this.renderGroup(this.props);let n=this.getTranslateValue(this.props,"x"),a=this.getTranslateValue(this.props,"y"),i=r(e$)({},this.props,{clipHeight:e,clipWidth:t,translateX:n,translateY:a});return this.renderClippedGroup(i,this.state.clipId)}}var eh=o("8NFma");let fH=function(e,t){if(void 0===e&&(e={}),t.disableInlineStyles)return{};let n=e.fill||"black";return t8.evaluateStyle(Object.assign({fill:"black",stroke:n},e),t)};var fY={};fY=o("fd1pu");let fG=(e,t)=>({x:e,y:t,distance(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},add(e){return fG(this.x+e.x,this.y+e.y)},subtract(e){return fG(this.x-e.x,this.y-e.y)},scalarMult(e){return fG(this.x*e,this.y*e)},scalarDivide(e){if(0===e)throw Error("Division by 0 error");return fG(this.x/e,this.y/e)},equals(e){return this.x===e.x&&this.y===e.y}}),fK=(e,t)=>({center:e,radius:t,hasIntersection(e){let t=this.center,n=e.center,r=this.radius,a=e.radius,i=t.distance(n);return!(i>r+a||i<Math.abs(r-a))},equals(e){let t=this.center,n=e.center;return this.radius===e.radius&&t.equals(n)},intersection(e){let t=this.center,n=e.center,r=this.radius,a=e.radius,i=t.distance(n);if(!this.hasIntersection(e)||this.equals(e))return[];let o=(Math.pow(r,2)-Math.pow(a,2)+Math.pow(i,2))/(2*i),l=Math.sqrt(Math.pow(r,2)-Math.pow(o,2)),s=t.add(n.subtract(t).scalarMult(o).scalarDivide(i)),{x:u,y:c}=t,{x:d,y:f}=n,{x:p,y:h}=s,g=[fG(p-l*(f-c)/i,h+l*(d-u)/i),fG(p+l*(f-c)/i,h-l*(d-u)/i)];return g.sort((e,t)=>e.x-t.x),g},solveX(e){let t=Math.sqrt(Math.pow(this.radius,2)-Math.pow(e-this.center.y,2));return[this.center.x-t,this.center.x+t]},solveY(e){let t=Math.sqrt(Math.pow(this.radius,2)-Math.pow(e-this.center.x,2));return[this.center.y-t,this.center.y+t]}}),fX=(e,t)=>{let{x:n,x0:r,y:a,y0:i,horizontal:o}=e,l=e.alignment||"middle",s="middle"===l?t/2:t,u=o?-1:1;return o?{x0:r,x1:n,y0:"start"===l?a:a-u*s,y1:"end"===l?a:a+u*s}:{x0:"start"===l?n:n-u*s,x1:"end"===l?n:n+u*s,y0:i,y1:a}},fQ=(e,t)=>{let{data:n,scale:r}=e,a=void 0===n[t]._x1?"_x":"_x1";return r.x(n[t][a])},fJ=e=>-1*e+Math.PI/2,fZ=(e,t,n)=>{let r=`${t.topLeft} ${t.topLeft} ${n}`,a=`${t.topRight} ${t.topRight} ${n}`,i=`${t.bottomLeft} ${t.bottomLeft} ${n}`,o=`${t.bottomRight} ${t.bottomRight} ${n}`,l=["M",`A ${i},`,"L",`A ${r},`,"L",`A ${a},`,"L",`A ${o},`].reduce((t,n,r)=>`${t}${n} ${e[r].x}, ${e[r].y}
|
|
165
|
-
`,"");return`${l} z`},f0={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},f5=(0,eh.forwardRef)(function(e,t){var n;let a,i,o,l,s,u,c,d=(a=fH((n=r(e$)({},e,f0)).style,n),i=((e,t)=>{let{scale:n,data:r,style:a}=t;if(e)return t8.evaluateProp(e,t);if(a.width)return a.width;let i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2;return Math.max(1,(t.barRatio||.5)*(r.length<2?8:o/l))})(n.barWidth,Object.assign({},n,{style:a})),o=((e,t)=>{let n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};if(!e)return n;if(r(ot)(e)){let n,r;return n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},(r=(r,a)=>{t8.isNil(e[r])?t8.isNil(e[a])||(n[r]=t8.evaluateProp(e[a],t)):n[r]=t8.evaluateProp(e[r],t)})("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}return n.topLeft=t8.evaluateProp(e,t),n.topRight=t8.evaluateProp(e,t),n})(n.cornerRadius,Object.assign({},n,{style:a,barWidth:i})),l=t8.evaluateProp(n.ariaLabel,n),s=t8.evaluateProp(n.desc,n),u=t8.evaluateProp(n.id,n),c=t8.evaluateProp(n.tabIndex,n),Object.assign({},n,{ariaLabel:l,style:a,barWidth:i,cornerRadius:o,desc:s,id:u,tabIndex:c})),{polar:f,origin:p,style:h,barWidth:g,cornerRadius:m}=d,y=f?((e,t)=>{let n,r,{datum:a,scale:i,index:o,alignment:l,style:s}=e,u=i.y(a._y0||0),c=i.y(void 0!==a._y1?a._y1:a._y),d=i.x(void 0!==a._x1?a._x1:a._x);if(s.width){let t=((e,t)=>{let{scale:n}=e;return t/(2*Math.PI*Math.max(...n.y.range()))*Math.abs(n.x.range()[1]-n.x.range()[0])})(e,s.width),a="middle"===l?t/2:t;n="start"===l?d:d-a,r="end"===l?d:d+a}else n=((e,t)=>{let{data:n,scale:r,alignment:a}=e,i=fQ(e,t),o=Math.abs(r.x.range()[1]-r.x.range()[0]),l=0===t?fQ(e,n.length-1)-2*Math.PI:fQ(e,t-1);return 0===t&&o<2*Math.PI?r.x.range()[0]:"start"===a||"end"===a?"start"===a?l:i:(i+l)/2})(e,Number(o)),r=((e,t)=>{let{data:n,scale:r,alignment:a}=e,i=fQ(e,t),o=Math.abs(r.x.range()[1]-r.x.range()[0]),l=r.x.range()[1]===2*Math.PI?fQ(e,0)+2*Math.PI:r.x.range()[1],s=t===n.length-1?fQ(e,0)+2*Math.PI:fQ(e,t+1);return t===n.length-1&&o<2*Math.PI?l:"start"===a||"end"===a?"start"===a?i:s:(i+s)/2})(e,Number(o));let f=e=>fY.arc().innerRadius(u).outerRadius(c).startAngle(fJ(n)).endAngle(fJ(r)).cornerRadius(t[e])(),p=e=>{let t=f(`${e}Right`),n=t.match(/[A-Z]/g)||[],r=t.split(/[A-Z]/).slice(1),a=n.indexOf("L"),i=f(`${e}Left`),o=i.match(/[A-Z]/g)||[],l=i.split(/[A-Z]/).slice(1),s=o.indexOf("L");return{rightMoves:n,rightCoords:r,rightMiddle:a,leftMoves:o,leftCoords:l,leftMiddle:s}},h=[...(()=>{let e,a,{topRight:i,topLeft:o}=t,l=c*Math.abs(r-n),{rightMoves:s,rightCoords:u,rightMiddle:d,leftMoves:f,leftCoords:h,leftMiddle:g}=p("top");if(i===o||l<2*i+2*o)e=i>o?s:f,a=i>o?u:h;else{let t,n=o>i&&d<3?1:2;t=i>o?g<3?g-1:d<3?g:g-2:d<3?g<3?1:2:g-2,e=[...s.slice(0,n),...f.slice(t)],a=[...u.slice(0,n),...h.slice(t)]}let m=e.indexOf("L"),y=e.slice(0,m),b=a.slice(0,m);return y.map((e,t)=>({command:e,coords:b[t].split(",")}))})(),...(()=>{let e,a,{bottomRight:i,bottomLeft:o}=t,l=u*Math.abs(r-n),{rightMoves:s,rightCoords:c,rightMiddle:d,leftMoves:f,leftCoords:h,leftMiddle:g}=p("bottom");if(i===o||l<2*i+2*o)e=i>o?s:f,a=i>o?c:h;else{let t=(e,t)=>e.length-t<4,n=(i>o?t(s,d):t(f,g))?-1:-3;e=[...f.slice(0,g+2),...s.slice(n)],a=[...h.slice(0,g+2),...c.slice(n)]}let m=e.indexOf("L"),y=e.slice(m,-1),b=a.slice(m,-1);return y.map((e,t)=>({command:e,coords:b[t].split(",")}))})()].reduce((e,t)=>`${e}${t.command} ${t.coords.join()}`,"");return`${h} z`})(d,m):((e,t,n)=>{let r,a,i,o,l,s;return e.getPath?((e,t)=>{let{getPath:n}=e;if("function"==typeof n)return n({...e,...fX(e,t)})})(e,t):e.horizontal?(i={topRight:(a=(r=fX(e,t)).x0<r.x1?1:-1)>0?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},fZ(((e,t,n)=>{let{y0:r,y1:a}=e,i=e.x0<e.x1?e.x0:e.x1,o=e.x0<e.x1?e.x1:e.x0,l=e=>{let l="top"===e,s=l?-1:1,u=l?a:r,c={x:i,y:u-s*n[`${e}Left`]},d={x:i+n[`${e}Left`],y:u},f={x:o-n[`${e}Right`],y:u},p={x:o,y:u-s*n[`${e}Right`]};if(d.x>f.x){let r=fK(fG(i+n[`${e}Left`],u-s*n[`${e}Left`]),n[`${e}Left`]),a=fK(fG(o-n[`${e}Right`],u-s*n[`${e}Right`]),n[`${e}Right`]),h=r.intersection(a);if(h.length>0){let e=h[+(t>0)];d={x:e.x,y:e.y},f={x:e.x,y:e.y}}else if(n[`${e}Right`]>n[`${e}Left`]){let e=a.solveY(i)[+!l];c={x:i,y:e},d={x:i,y:e},f={x:i,y:e}}else{let e=r.solveY(o)[+!l];p={x:o,y:e},f={x:o,y:e},d={x:o,y:e}}}return[c,d,f,p]},s=l("top"),u=l("bottom");return[u[1],u[0],...s,u[3],u[2]]})(r,a,i),i,"0 0 1")):(s=(l=(o=fX(e,t)).y0>o.y1?1:-1)>0?"0 0 1":"0 0 0",fZ(((e,t,n)=>{let{x0:r,x1:a,y0:i,y1:o}=e,l=e=>{let l="Left"===e,s=l?1:-1,u=l?r:a,c={x:u+s*n[`bottom${e}`],y:i},d={x:u,y:i-t*n[`bottom${e}`]},f={x:u,y:o+t*n[`top${e}`]},p={x:u+s*n[`top${e}`],y:o};if(1===t?i-n[`bottom${e}`]<o+n[`top${e}`]:i+n[`bottom${e}`]>o-n[`top${e}`]){let r=fK(fG(u+s*n[`top${e}`],o+t*n[`top${e}`]),n[`top${e}`]),a=fK(fG(u+s*n[`bottom${e}`],i-t*n[`bottom${e}`]),n[`bottom${e}`]),h=r.intersection(a);if(h.length>0){let e=h[+!l];d={x:e.x,y:e.y},f={x:e.x,y:e.y}}else if(n[`top${e}`]>n[`bottom${e}`]){let e=r.solveX(i)[+!l];c={x:e,y:i},d={x:e,y:i},f={x:e,y:i}}else{let e=a.solveX(o)[+!l];d={x:e,y:o},f={x:e,y:o},p={x:e,y:o}}}let h=[c,d,f,p];return l?h:h.reverse()};return l("Left").concat(l("Right"))})(o,l,n),n,s))})(d,g,m),b=f&&p?`translate(${p.x}, ${p.y})`:void 0;return d.pathComponent?r(eh).cloneElement(d.pathComponent,{...d.events,"aria-label":d.ariaLabel,style:h,d:y,className:d.className,clipPath:d.clipPath,desc:d.desc,index:d.index,role:d.role,shapeRendering:d.shapeRendering,transform:d.transform||b,tabIndex:d.tabIndex,ref:t}):null}),f1={width:450,height:300,padding:50},f2=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class f6 extends r(eh).Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBar";static role="bar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})}};static defaultProps={containerComponent:r(eh).createElement(an,null),data:f2,dataComponent:r(eh).createElement(f5,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),labelComponent:r(eh).createElement(sU,null),samples:50,sortOrder:"ascending",standalone:!0,theme:au};static getDomain=i4.getDomainWithZero;static getData=ou.getData;static getBaseProps(e){return((e,t)=>{let n=t8.modifyProps(e,t,"bar"),r=Object.assign({},n,(e=>{let{polar:t}=e,n=t8.getDefaultStyles(e,"bar"),r=e.disableInlineStyles?{}:t8.getStyles(e.style,n),a=e.range||{x:t8.getRange(e,"x"),y:t8.getRange(e,"y")},i={x:i4.getDomainWithZero(e,"x"),y:i4.getDomainWithZero(e,"y")},o={x:oy.getBaseScale(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:oy.getBaseScale(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||t8.getPolarOrigin(e):void 0,s=ou.getData(e);return s=ou.formatDataFromDomain(s,i,0),e.groupComponent?.type===fV&&(s=s.map(e=>({...e,_x:e.x,_y:e.y}))),{style:r,data:s,scale:o,domain:i,origin:l}})(n)),{alignment:a,barRatio:i,cornerRadius:o,data:l,disableInlineStyles:s,domain:u,events:c,height:d,horizontal:f,origin:p,padding:h,polar:g,scale:m,sharedEvents:y,standalone:b,style:v,theme:x,width:_,labels:O,name:w,barWidth:S,getPath:k}=r,P={parent:{horizontal:f,domain:u,scale:m,width:_,height:d,data:l,standalone:b,name:w,theme:x,polar:g,origin:p,padding:h,style:v.parent}};return l.reduce((e,t,n)=>{let u,h,b,x=t8.isNil(t.eventKey)?n:t.eventKey,{x:w,y:P,y0:j,x0:M}=(u=e=>{let n="log"===oy.getType(r.scale[e])?1/Number.MAX_SAFE_INTEGER:0,a=rA.getMinValue(r.domain[e]),i=rA.getMaxValue(r.domain[e]);return a<0&&i<=0?n=i:a>=0&&i>0&&(n=a),t[`_${e}`]instanceof Date?new Date(n):n},h=void 0!==t._y0?t._y0:u("y"),b=void 0!==t._x0?t._x0:u("x"),t8.scalePoint(r,Object.assign({},t,{_y0:h,_x0:b}))),C={alignment:a,barRatio:i,barWidth:S,cornerRadius:o,data:l,datum:t,disableInlineStyles:s,getPath:k,horizontal:f,index:n,polar:g,origin:p,scale:m,style:v.data,width:_,height:d,x:w,y:P,y0:j,x0:M};return e[x]={data:C},(null!=sP.getText(r,t,n)||O&&(c||y))&&(e[x].labels=sP.getProps(r,n)),e},P)})(e,f1)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];static shouldRenderDatum=()=>!0;shouldAnimate(){return!!this.props.animate}render(){let e,{animationWhitelist:t,role:n}=f3,r=t8.modifyProps(this.props,f1,n);if(this.shouldAnimate())return this.animateComponent(r,t);e=r.groupComponent?.type===fV?this.renderData(r,f6.shouldRenderDatum):this.renderData(r);let a=r.standalone?this.renderContainer(r.containerComponent,e):e;return rX.withSafeUserProps(a,r)}}let f3=si(f6);var eh=o("8NFma");let f7=({data:e,themeColor:t,theme:n=df(t),y:r})=>{let a=[];return ou.formatData(e,{y:r},["y"]).forEach((e,t)=>{a.push(Object.assign(Object.assign({},e),{_index:t}))}),a.map(e=>Object.assign(Object.assign({},e),{x:1,_x:1,y0:e._y,_y0:e._y,_color:n.bar.style.data.fill}))},f4=({data:e,invert:t,themeColor:n,theme:r=dg(n),y:a,y0:i})=>f7({data:e,invert:t,theme:r,themeColor:n,y:a,y0:i}),f8=({data:e,invert:t,themeColor:n,theme:r=dy(n),negativeMeasureTheme:a=dm(n),y:i,y0:o})=>{let l=[],s=[];return ou.formatData(e,{y:i,y0:o},["y","y0"]).forEach((e,t)=>{e._y<0?l.push(Object.assign(Object.assign({},e),{_index:t})):s.push(Object.assign(Object.assign({},e),{_index:t}))}),[...l.sort((e,t)=>t._y-e._y).map((e,n)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:t?r.group.colorScale[n%r.group.colorScale.length]:a.group.colorScale[n%r.group.colorScale.length]})).reverse(),...s.sort((e,t)=>e._y-t._y).map((e,n)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:t?a.group.colorScale[n%r.group.colorScale.length]:r.group.colorScale[n%r.group.colorScale.length]})).reverse()]},f9=({data:e,invert:t,themeColor:n,theme:r=db(n),y:a,y0:i})=>{let o=[];return ou.formatData(e,{y:a,y0:i},["y","y0"]).forEach((e,t)=>{o.push(Object.assign(Object.assign({},e),{_index:t}))}),o.sort((e,n)=>t?n._y-e._y:e._y-n._y).map((e,t)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:r.group.colorScale[t%r.group.colorScale.length]})).reverse()};var eh=o("8NFma");let pe=e=>{var{containerComponent:t=(0,e_.jsx)(d_,{}),themeColor:n,theme:r=di(n)}=e,a=uu(e,["containerComponent","themeColor","theme"]);let i=(0,eh.cloneElement)(t,Object.assign({theme:r},t.props));return(0,e_.jsx)(f3,Object.assign({containerComponent:i,theme:r},a))};pe.displayName="ChartBar",r(eO)(pe,f3,{getBaseProps:!0});let pt=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=ux,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labels:s,measureComponent:u=(0,e_.jsx)(pe,{}),padding:c,standalone:d=!0,themeColor:f,y:p,theme:h=df(f),height:g=h.bar.height,width:m=h.bar.width,labelComponent:y=(0,e_.jsx)(fE,{})})=>{let b=f7({data:i,theme:h,y:p}),v=(0,eh.cloneElement)(y,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},y.props)),x=b.map((t,n)=>(0,eh.cloneElement)(u,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:g,horizontal:l,labelComponent:e?v:void 0,labels:s,key:`pf-chart-bullet-comparative-measure-${n}`,padding:c,standalone:!1,theme:h,themeColor:f,width:m},u.props)));return d?(0,e_.jsx)(d_,{desc:t,height:g,title:n,width:m,children:x}):(0,e_.jsx)(eh.Fragment,{children:x})};pt.displayName="ChartBulletComparativeMeasure",r(eO)(pt,f3);let pn=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labelComponent:s,labels:u,measureComponent:c=(0,e_.jsx)(pt,{}),padding:d,standalone:f=!0,themeColor:p,y:h,theme:g=dd(p),height:m=g.bar.height,width:y=g.bar.width})=>{let b=(0,eh.cloneElement)(c,Object.assign({allowTooltip:e,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a,data:i,domain:o,height:m,horizontal:l,labelComponent:s,labels:u,padding:d,standalone:!1,theme:g,themeColor:p,width:y,y:h},c.props));return f?(0,e_.jsx)(d_,{desc:t,height:m,title:n,width:y,children:b}):(0,e_.jsx)(eh.Fragment,{children:b})};pn.displayName="ChartBulletComparativeErrorMeasure",r(eO)(pn,f3);var eh=o("8NFma");let pr=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labelComponent:s,labels:u,measureComponent:c=(0,e_.jsx)(pt,{}),padding:d,standalone:f=!0,themeColor:p,y:h,theme:g=dp(p),height:m=g.bar.height,width:y=g.bar.width})=>{let b=(0,eh.cloneElement)(c,Object.assign({allowTooltip:e,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a,data:i,domain:o,height:m,horizontal:l,labelComponent:s,labels:u,padding:d,standalone:!1,theme:g,themeColor:p,width:y,y:h},c.props));return f?(0,e_.jsx)(d_,{desc:t,height:m,title:n,width:y,children:b}):(0,e_.jsx)(eh.Fragment,{children:b})};pr.displayName="ChartBulletComparativeWarningMeasure",r(eO)(pr,f3);var eh=o("8NFma");let pa=({ariaDesc:e,ariaTitle:t,capHeight:n=1.1,dividerComponent:r=(0,e_.jsx)(sl,{}),name:a,padding:i,standalone:o=!0,subTitle:l,themeColor:s,title:u,titleComponent:c=(0,e_.jsx)(dO,{}),theme:d=dh(s),height:f=d.chart.height,width:p=d.chart.width})=>{let h,g,m,y,b,v,x={bottom:dE("bottom",i,d.chart.padding),left:dE("left",i,d.chart.padding),right:dE("right",i,d.chart.padding),top:dE("top",i,d.chart.padding)},_={bottom:dE("bottom",i,Number(d.legend.style.labels.padding)),left:dE("left",i,Number(d.legend.style.labels.padding)),right:dE("right",i,Number(d.legend.style.labels.padding)),top:dE("top",i,Number(d.legend.style.labels.padding))},O=!!u&&(0,e_.jsxs)(eh.Fragment,{children:[(h=dl(s),g=c?c.props:{},m=u&&l,(0,eh.cloneElement)(c,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m&&{capHeight:n}),a&&{id:()=>`${a}-${c.type.displayName}`}),{style:[u_,uO],text:m?[u,l]:u,textAnchor:"middle",verticalAnchor:"middle",x:dk({chartWidth:p,labelPosition:"top"}),y:dP({chartHeight:f,dy:x.top,labelPosition:"top"})}),g),(null==h?void 0:h.label)&&h.label))),(y=dC({text:u,theme:d}),b=dC({text:l,theme:d}),v=u&&l?y.height+b.height+_.top+_.bottom:y.height+_.top+_.bottom,(0,eh.cloneElement)(r,Object.assign({x1:x.left,x2:p-x.right,y1:x.top+v,y2:x.top+v,style:d.line.style.data},r.props)))]});return o?(0,e_.jsx)(d_,{desc:e,height:f,title:t,width:p,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pa.displayName="ChartBulletGroupTitle";var eh=(o("8NFma"),o("8NFma")),pi={};function po(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function pl(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{let r=e=>(0===t?n[t+1]:n[t-1])[e];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{let r=e=>(0===t?n[t+1]:n[t-1])[e];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function ps(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}e(pi,"continuousTransitions",()=>po),e(pi,"continuousPolarTransitions",()=>pl),e(pi,"discreteTransitions",()=>ps);let pu={width:450,height:300,padding:50,size:3,symbol:"circle"};class pc extends r(eh).Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions=pi.discreteTransitions();static defaultProps={containerComponent:r(eh).createElement(an,null),dataComponent:r(eh).createElement(fo,null),labelComponent:r(eh).createElement(sU,null),groupComponent:r(eh).createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:au};static getDomain=i4.getDomain;static getData=ou.getData;static getBaseProps(e){return((e,t)=>{let n,r,a,i,o,l,s,u,c=t8.modifyProps(e,t,"scatter"),d=Object.assign({},c,(n=t8.getDefaultStyles(c,"scatter"),r=t8.getStyles(c.style,n),a={x:t8.getRange(c,"x"),y:t8.getRange(c,"y")},i={x:i4.getDomain(c,"x"),y:i4.getDomain(c,"y")},o={x:oy.getBaseScale(c,"x").domain(i.x).range(c.horizontal?a.y:a.x),y:oy.getBaseScale(c,"y").domain(i.y).range(c.horizontal?a.x:a.y)},l=c.polar?c.origin||t8.getPolarOrigin(c):void 0,s=c.bubbleProperty||"z",u=ou.getData(c),u=ou.formatDataFromDomain(u,i),{domain:i,data:u,scale:o,style:r,origin:l,z:s})),{data:f,domain:p,events:h,height:g,origin:m,padding:y,polar:b,scale:v,name:x,sharedEvents:_,standalone:O,style:w,theme:S,width:k,labels:P,horizontal:j,disableInlineStyles:M}=d,C={parent:{style:w.parent,scale:v,domain:p,data:f,height:g,width:k,standalone:O,theme:S,origin:m,polar:b,padding:y,name:x,horizontal:j}};return f.reduce((e,t,n)=>{let r=t8.isNil(t.eventKey)?n:t.eventKey,{x:a,y:i}=t8.scalePoint(d,t),o={x:a,y:i,datum:t,data:f,index:n,scale:v,polar:b,origin:m,horizontal:j,size:((e,t)=>{let{size:n,z:r}=t;return e.size?"function"==typeof e.size?e.size:Math.max(e.size,1):"function"==typeof t.size?n:e[r]?((e,t)=>{let{data:n,z:r,maxBubbleSize:a,minBubbleSize:i}=t,o=n.map(e=>e[r]),l=Math.min(...o),s=Math.max(...o),u=a||Math.max(Math.min(...Object.values(t8.getPadding(t.padding))),5),c=i||.1*u;if(s===l)return Math.max(c,1);let d=Math.PI*Math.pow(u,2),f=Math.PI*Math.pow(c,2);return Math.max(Math.sqrt(Math.max((e[r]-l)/(s-l)*d,f)/Math.PI),1)})(e,t):Math.max(n||0,1)})(t,d),symbol:d.bubbleProperty?"circle":t.symbol||d.symbol,style:M?{}:w.data,disableInlineStyles:M};return e[r]={data:o},(null!=sP.getText(d,t,n)||P&&(h||_))&&(e[r].labels=sP.getProps(d,n)),e},C)})(e,pu)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e,role:t}=pd,n=t8.modifyProps(this.props,pu,t);if(this.shouldAnimate())return this.animateComponent(n,e);let r=this.renderData(n),a=n.standalone?this.renderContainer(n.containerComponent,r):r;return rX.withSafeUserProps(a,n)}}let pd=si(pc);var eh=o("8NFma");let pf=e=>{var{containerComponent:t=(0,e_.jsx)(d_,{}),themeColor:n,theme:r=di(n)}=e,a=uu(e,["containerComponent","themeColor","theme"]);let i=(0,eh.cloneElement)(t,Object.assign({theme:r},t.props));return void 0===a.size&&void 0===a.bubbleProperty&&(a.size=({active:e})=>e?5:3),(0,e_.jsx)(pd,Object.assign({containerComponent:i,theme:r},a))};pf.displayName="ChartScatter",r(eO)(pf,pd);let pp=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,constrainToVisibleArea:r=!1,data:a,domain:i,horizontal:o=!0,invert:l=!1,labels:s,measureComponent:u=(0,e_.jsx)(pf,{}),padding:c,size:d=uS,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=dg(p),labelComponent:y=(0,e_.jsx)(fE,{}),height:b=m.group.height,width:v=m.group.width})=>{let x=f4({data:a,invert:l,theme:m,y:h,y0:g}),_=(0,eh.cloneElement)(y,Object.assign({constrainToVisibleArea:r,dx:0,dy:o?-d:0,orientation:"top"},y.props)),O=x.map((t,n)=>(0,eh.cloneElement)(u,Object.assign({data:[Object.assign({},t)],domain:i,height:b,horizontal:o,key:`pf-chart-bullet-primary-dot-measure-${n}`,labelComponent:e?_:void 0,labels:s,padding:c,size:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:v},u.props)));return f?(0,e_.jsx)(d_,{desc:t,height:b,title:n,width:v,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pp.displayName="ChartBulletPrimaryDotMeasure",r(eO)(pp,pd);var eh=o("8NFma");let ph=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=uk,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,invert:s=!1,labels:u,measureComponent:c=(0,e_.jsx)(pe,{}),padding:d,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=dy(p),negativeMeasureTheme:y=dm(p),height:b=m.group.height,width:v=m.group.width,labelComponent:x=(0,e_.jsx)(fE,{})})=>{let _=f8({data:i,invert:s,negativeMeasureTheme:y,theme:m,y:h,y0:g}),O=(0,eh.cloneElement)(x,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},x.props)),w=_.map((t,n)=>(0,eh.cloneElement)(c,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:b,horizontal:l,key:`pf-chart-bullet-primary-segmented-measure-${n}`,labelComponent:e?O:void 0,labels:u,padding:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:v},c.props)));return f?(0,e_.jsx)(d_,{desc:t,height:b,title:n,width:v,children:w}):(0,e_.jsx)(eh.Fragment,{children:w})};ph.displayName="ChartBulletPrimarySegmentedMeasure",r(eO)(ph,f3);var eh=o("8NFma");let pg=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=uP,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,invert:s=!1,labels:u,measureComponent:c=(0,e_.jsx)(pe,{}),padding:d,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=db(p),height:y=m.group.height,width:b=m.group.width,labelComponent:v=(0,e_.jsx)(fE,{})})=>{let x=f9({data:i,invert:s,theme:m,y:h,y0:g}),_=(0,eh.cloneElement)(v,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},v.props)),O=x.map((t,n)=>(0,eh.cloneElement)(c,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:y,horizontal:l,key:`pf-chart-bullet-qualitative-range-${n}`,labelComponent:e?_:void 0,labels:u,padding:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:b},c.props)));return f?(0,e_.jsx)(d_,{desc:t,height:y,title:n,width:b,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pg.displayName="ChartBulletQualitativeRange",r(eO)(pg,f3);let pm=({comparativeErrorMeasureComponent:e,comparativeErrorMeasureData:t,comparativeWarningMeasureComponent:n,comparativeWarningMeasureData:r,primaryDotMeasureComponent:a,primaryDotMeasureData:i,primarySegmentedMeasureComponent:o,primarySegmentedMeasureData:l,maxDomain:s,minDomain:u,qualitativeRangeComponent:c,qualitativeRangeData:d})=>{let f=(({maxDomain:e,minDomain:t,sources:n})=>{let r=[];n.forEach(n=>{let{data:a=n.data}=n.component?n.component.props:void 0,i=(({data:e,maxDomain:t,minDomain:n,x:r,y:a})=>{let i=0,o=0,l=!0,s=!0;void 0!==n&&void 0!==n.x?(i=n.x,l=!1):void 0!==n&&void 0===n.y&&(i=n,l=!1),void 0!==t&&void 0!==t.x?(o=t.x,s=!1):void 0!==t&&void 0===t.y&&(o=t,s=!1);let u=0,c=0,d=!0,f=!0;return void 0!==n&&void 0!==n.y?(u=n.y,d=!1):void 0!==n&&void 0===n.x&&(u=n,d=!1),void 0!==t&&void 0!==t.y?(c=t.y,f=!1):void 0!==t&&void 0===t.x&&(c=t,f=!1),ou.formatData(e,{x:r,y:a},["x","y"]).forEach(e=>{l&&e._x<i&&(i=e._x),s&&e._x>o&&(o=e._x),d&&e._y<u&&(u=e._y),f&&e._y>c&&(c=e._y)}),{x:[i,o],y:[u,c]}})({data:a,maxDomain:e,minDomain:t,x:n.component?n.component.props.x:void 0,y:n.component?n.component.props.y:void 0});r.push(i)});let a=[],i=[];return r.forEach(e=>{a.push(...e.x),i.push(...e.y)}),{x:[Math.min(...a),Math.max(...a)],y:[Math.min(...i),Math.max(...i)]}})({maxDomain:s,minDomain:u,sources:[{component:e,data:t},{component:n,data:r},{component:a,data:i},{component:o,data:l},{component:c,data:d}]});return f.x=[0,2],f},py=(e,t)=>{let n=[];return t.forEach((t,r)=>{for(let t of e)r===t._index&&n.push(t._color)}),n},pb=({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d})=>{let f=(({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d})=>{let f=[];if(o&&o.length){let e=f4({data:i,invert:a});f.push(...py(e,o))}if(s&&s.length){let e=f8({data:l,invert:a,themeColor:d});f.push(...py(e,s))}if(r&&r.length){let e=(({data:e,themeColor:t,theme:n=dp(t),y:r})=>f7({data:e,theme:n,themeColor:t,y:r}))({data:n,invert:a,themeColor:d});f.push(...py(e,r))}if(t&&t.length){let n=(({data:e,themeColor:t,theme:n=dd(t),y:r})=>f7({data:e,theme:n,themeColor:t,y:r}))({data:e,invert:a,themeColor:d});f.push(...py(n,t))}if(c&&c.length){let e=f9({data:u,invert:a});f.push(...py(e,c))}return f})({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d}),p=dc(d);return p.legend.colorScale=[...f],d===cb&&(p.legend.colorScale=c5.legend.colorScale),p},pv=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,axisComponent:r=(0,e_.jsx)(dw,{}),comparativeErrorMeasureComponent:a=(0,e_.jsx)(pn,{}),comparativeErrorMeasureData:i,comparativeErrorMeasureDataY:o,comparativeErrorMeasureLegendData:l,comparativeWarningMeasureComponent:s=(0,e_.jsx)(pr,{}),comparativeWarningMeasureData:u,comparativeWarningMeasureDataY:c,comparativeWarningMeasureLegendData:d,comparativeZeroMeasureComponent:f=(0,e_.jsx)(pt,{}),constrainToVisibleArea:p=!1,groupTitleComponent:h=(0,e_.jsx)(pa,{}),groupSubTitle:g,groupTitle:m,horizontal:y=!0,invert:b=!1,labels:v,legendAllowWrap:x=!1,legendComponent:_=(0,e_.jsx)(fk,{}),legendItemsPerRow:O,legendPosition:w="bottom",legendDirection:S="ltr",maxDomain:k,minDomain:P,name:j,padding:M,primaryDotMeasureComponent:C=(0,e_.jsx)(pp,{}),primaryDotMeasureData:E,primaryDotMeasureDataY:A,primaryDotMeasureLegendData:T,primarySegmentedMeasureComponent:D=(0,e_.jsx)(ph,{}),primarySegmentedMeasureData:L,primarySegmentedMeasureDataY:$,primarySegmentedMeasureLegendData:N,qualitativeRangeComponent:z=(0,e_.jsx)(pg,{}),qualitativeRangeData:F,qualitativeRangeDataY:R,qualitativeRangeDataY0:I,qualitativeRangeLegendData:W,standalone:U=!0,subTitle:q,themeColor:B,title:V,titleComponent:H=(0,e_.jsx)(dA,{}),titlePosition:Y,theme:G=pb({comparativeErrorMeasureData:i,comparativeErrorMeasureLegendData:l,comparativeWarningMeasureData:u,comparativeWarningMeasureLegendData:d,invert:b,primaryDotMeasureData:E,primaryDotMeasureLegendData:T,primarySegmentedMeasureData:L,primarySegmentedMeasureLegendData:N,qualitativeRangeData:F,qualitativeRangeLegendData:W,themeColor:B}),domain:K=pm({comparativeErrorMeasureComponent:a,comparativeErrorMeasureData:i,comparativeWarningMeasureComponent:s,comparativeWarningMeasureData:u,maxDomain:k,minDomain:P,primaryDotMeasureComponent:C,primaryDotMeasureData:E,primarySegmentedMeasureComponent:D,primarySegmentedMeasureData:L,qualitativeRangeComponent:z,qualitativeRangeData:F}),legendOrientation:X=G.legend.orientation,height:Q=y?G.chart.height:G.chart.width,width:J=y?G.chart.width:G.chart.height,bulletSize:Z=G.chart.height})=>{let ee,et,en={height:y?Z:Q,width:y?J:Z},er={bottom:dE("bottom",M,G.chart.padding),left:dE("left",M,G.chart.padding),right:dE("right",M,G.chart.padding),top:dE("top",M,G.chart.padding)},ea=(0,eh.cloneElement)(h,Object.assign(Object.assign(Object.assign({height:Q},j&&{name:`${j}-${h.type.displayName}`}),{standalone:!1,subTitle:g,title:m,themeColor:B,width:J}),h.props)),ei=(0,eh.cloneElement)(H,Object.assign(Object.assign(Object.assign({height:Q,horizontal:y,legendPosition:w},j&&{name:`${j}-${H.type.displayName}`}),{padding:M,standalone:!1,subTitle:q,theme:G,themeColor:B,title:V,titlePosition:Y,width:J}),H.props)),eo=(0,eh.cloneElement)(a,Object.assign({allowTooltip:e,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dd(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:30,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),constrainToVisibleArea:p,data:i,domain:K,height:en.height,horizontal:y,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:o},a.props)),el=(0,eh.cloneElement)(s,Object.assign({allowTooltip:e,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dp(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:30,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),constrainToVisibleArea:p,data:u,domain:K,height:en.height,horizontal:y,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:c},s.props)),es=(0,eh.cloneElement)(f,Object.assign({barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=df(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:ux,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:[{y:0}],domain:K,height:en.height,horizontal:y,padding:M,standalone:!1,themeColor:B,width:en.width},f.props)),eu=0;"rtl"===S&&(eu=fA([...T||[],...N||[],...d||[],...l||[],...W||[]],G));let ec=(0,eh.cloneElement)(_,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:[...T||[],...N||[],...d||[],...l||[],...W||[]]},j&&{name:`${j}-${_.type.displayName}`}),{itemsPerRow:O,orientation:X,position:w,theme:G,themeColor:B}),"rtl"===S&&{dataComponent:_.props.dataComponent?(0,eh.cloneElement)(_.props.dataComponent,{transform:`translate(${eu})`}):(0,e_.jsx)(fS,{transform:`translate(${eu})`})}),"rtl"===S&&{labelComponent:_.props.labelComponent?(0,eh.cloneElement)(_.props.labelComponent,{direction:"rtl",dx:eu-30}):(0,e_.jsx)(dO,{direction:"rtl",dx:eu-30})}),_.props)),ed=(0,eh.cloneElement)(C,Object.assign({allowTooltip:e,constrainToVisibleArea:p,data:E,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,size:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dg(n)})=>(e=>{var{value:t}=e;return Math.round(dv(Object.assign({scale:1/t,value:t},uu(e,["value"]))))})({defaultSize:a.group.height,height:e,horizontal:t,value:uS,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),standalone:!1,themeColor:B,width:en.width,y:A},C.props)),ef=(0,eh.cloneElement)(D,Object.assign({allowTooltip:e,constrainToVisibleArea:p,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dy(n)})=>dx({defaultSize:a.group.height,height:e,horizontal:t,scale:.3,value:uk,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:L,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:$},D.props)),ep=(0,eh.cloneElement)(z,Object.assign({allowTooltip:e,constrainToVisibleArea:p,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=db(n)})=>dx({defaultSize:a.group.height,height:e,horizontal:t,value:uP,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:F,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:R,y0:I},z.props)),eg=(0,eh.cloneElement)(r,Object.assign(Object.assign(Object.assign({dependentAxis:!y,domain:y?{x:K.y,y:K.x}:K,height:en.height},j&&{name:`${j}-${r.type.displayName}`}),{offsetX:y?0:.5*er.left+(.5*er.right-(er.right-55)),offsetY:y?80-.5*er.top+(.5*er.bottom-25):0,padding:M,standalone:!1,themeColor:B,tickCount:5,tickValues:((e,t)=>{let n=[e,t],r=(e<0&&t<0?Math.abs(e-t):e<0?Math.abs(e)+t:t-e)/4;for(let a=e;a<t;)n.push(Math.ceil(a+=r));return n})(K.y[0],K.y[1]),width:en.width}),r.props)),em=(()=>{if(!ec.props.data)return null;let e=0,t=0;return"bottom"===w?t=y?.5*er.top+(.5*er.bottom-er.bottom)-25:V?-er.bottom+60:-er.bottom:"bottom-left"===w&&(t=y?.5*er.top+(.5*er.bottom-er.bottom)-25:V?-er.bottom+60:-er.bottom,e=-10),fT({allowWrap:!0===x||"function"==typeof x,chartType:"bullet",dx:e,dy:t,height:en.height,legendComponent:ec,padding:er,position:w,theme:G,width:en.width})})(),ey=(0,e_.jsxs)(eh.Fragment,{children:[eg,ea,ei,ep,ef,ed,eo,el,(ee=0,Array.isArray(K)?ee=K[0]:K.y&&Array.isArray(K.y)&&(ee=K.y[0]),et=0,(Array.isArray(K)?et=K[K.length-1]:K.y&&Array.isArray(K.y)&&(et=K.y[K.y.length-1]),ee<0&&et>0)?es:null),em]});return(0,eh.useEffect)(()=>{"function"==typeof x&&x(fN({legendData:em.props.data,legendOrientation:em.props.orientation,legendProps:em.props,theme:G}))},[em,x,G,J]),U?(0,e_.jsx)(d_,{desc:t,height:Q,title:n,theme:G,width:J,children:ey}):(0,e_.jsx)(eh.Fragment,{children:ey})};pv.displayName="ChartBullet",r(eO)(pv,us),customElements.define("pfj-chart-bullet",class extends ex{constructor(){super(),this._comparativeErrorMeasureData=void 0,this._comparativeErrorMeasureLegendData=void 0,this._comparativeWarningMeasureData=void 0,this._comparativeWarningMeasureLegendData=void 0,this._maxDomain=void 0,this._primaryDotMeasureData=void 0,this._primaryDotMeasureLegendData=void 0,this._primarySegmentedMeasureData=void 0,this._primarySegmentedMeasureLegendData=void 0,this._qualitativeRangeData=void 0,this._qualitativeRangeLegendData=void 0}getReactComponent(){let e={};return this._comparativeErrorMeasureData&&"string"!=typeof this._comparativeErrorMeasureData?e.comparativeErrorMeasureData=this._comparativeErrorMeasureData:this.getAttribute("comparative-error-measure-data")&&(e.comparativeErrorMeasureData=em("comparative-error-measure-data",this.getAttribute("comparative-error-measure-data"))),this._comparativeErrorMeasureLegendData&&"string"!=typeof this._comparativeErrorMeasureLegendData?e.comparativeErrorMeasureLegendData=this._comparativeErrorMeasureLegendData:this.getAttribute("comparative-error-measure-legend-data")&&(e.comparativeErrorMeasureLegendData=em("comparative-error-measure-legend-data",this.getAttribute("comparative-error-measure-legend-data"))),this._comparativeWarningMeasureData&&"string"!=typeof this._comparativeWarningMeasureData?e.comparativeWarningMeasureData=this._comparativeWarningMeasureData:this.getAttribute("comparative-warning-measure-data")&&(e.comparativeWarningMeasureData=em("comparative-warning-measure-data",this.getAttribute("comparative-warning-measure-data"))),this._comparativeWarningMeasureLegendData&&"string"!=typeof this._comparativeWarningMeasureLegendData?e.comparativeWarningMeasureLegendData=this._comparativeWarningMeasureLegendData:this.getAttribute("comparative-warning-measure-legend-data")&&(e.comparativeWarningMeasureLegendData=em("comparative-warning-measure-legend-data",this.getAttribute("comparative-warning-measure-legend-data"))),this._primaryDotMeasureData&&"string"!=typeof this._primaryDotMeasureData?e.primaryDotMeasureData=this._primaryDotMeasureData:this.getAttribute("primary-dot-measure-data")&&(e.primaryDotMeasureData=em("primary-dot-measure-data",this.getAttribute("primary-dot-measure-data"))),this._primaryDotMeasureLegendData&&"string"!=typeof this._primaryDotMeasureLegendData?e.primaryDotMeasureLegendData=this._primaryDotMeasureLegendData:this.getAttribute("primary-dot-measure-legend-data")&&(e.primaryDotMeasureLegendData=em("primary-dot-measure-legend-data",this.getAttribute("primary-dot-measure-legend-data"))),this._primarySegmentedMeasureData&&"string"!=typeof this._primarySegmentedMeasureData?e.primarySegmentedMeasureData=this._primarySegmentedMeasureData:this.getAttribute("primary-segmented-measure-data")&&(e.primarySegmentedMeasureData=em("primary-segmented-measure-data",this.getAttribute("primary-segmented-measure-data"))),this._primarySegmentedMeasureLegendData&&"string"!=typeof this._primarySegmentedMeasureLegendData?e.primarySegmentedMeasureLegendData=this._primarySegmentedMeasureLegendData:this.getAttribute("primary-segmented-measure-legend-data")&&(e.primarySegmentedMeasureLegendData=em("primary-segmented-measure-legend-data",this.getAttribute("primary-segmented-measure-legend-data"))),this._qualitativeRangeData&&"string"!=typeof this._qualitativeRangeData?e.qualitativeRangeData=this._qualitativeRangeData:this.getAttribute("qualitative-range-data")&&(e.qualitativeRangeData=em("qualitative-range-data",this.getAttribute("qualitative-range-data"))),this._qualitativeRangeLegendData&&"string"!=typeof this._qualitativeRangeLegendData?e.qualitativeRangeLegendData=this._qualitativeRangeLegendData:this.getAttribute("qualitative-range-legend-data")&&(e.qualitativeRangeLegendData=em("qualitative-range-legend-data",this.getAttribute("qualitative-range-legend-data"))),[pv,e]}get comparativeErrorMeasureData(){return this._comparativeErrorMeasureData}set comparativeErrorMeasureData(e){this._comparativeErrorMeasureData=e,this._notifyChange()}get comparativeErrorMeasureLegendData(){return this._comparativeErrorMeasureLegendData}set comparativeErrorMeasureLegendData(e){this._comparativeErrorMeasureLegendData=e,this._notifyChange()}get comparativeWarningMeasureData(){return this._comparativeWarningMeasureData}set comparativeWarningMeasureData(e){this._comparativeWarningMeasureData=e,this._notifyChange()}get comparativeWarningMeasureLegendData(){return this._comparativeWarningMeasureLegendData}set comparativeWarningMeasureLegendData(e){this._comparativeWarningMeasureLegendData=e,this._notifyChange()}get maxDomain(){return this._maxDomain}set maxDomain(e){this._maxDomain=e,this._notifyChange()}get primaryDotMeasureData(){return this._primaryDotMeasureData}set primaryDotMeasureData(e){this._primaryDotMeasureData=e,this._notifyChange()}get primaryDotMeasureLegendData(){return this._primaryDotMeasureLegendData}set primaryDotMeasureLegendData(e){this._primaryDotMeasureLegendData=e,this._notifyChange()}get primarySegmentedMeasureData(){return this._primarySegmentedMeasureData}set primarySegmentedMeasureData(e){this._primarySegmentedMeasureData=e,this._notifyChange()}get primarySegmentedMeasureLegendData(){return this._primarySegmentedMeasureLegendData}set primarySegmentedMeasureLegendData(e){this._primarySegmentedMeasureLegendData=e,this._notifyChange()}get qualitativeRangeData(){return this._qualitativeRangeData}set qualitativeRangeData(e){this._qualitativeRangeData=e,this._notifyChange()}get qualitativeRangeLegendData(){return this._qualitativeRangeLegendData}set qualitativeRangeLegendData(e){this._qualitativeRangeLegendData=e,this._notifyChange()}});var eh=(o("8NFma"),o("8NFma"));let px=(e,t)=>e*Math.cos(t-t8.degreesToRadians(90)),p_=(e,t)=>e*Math.sin(t-t8.degreesToRadians(90)),pO=e=>e.reduce((e,t)=>e+t,0)/e.length;var eh=o("8NFma");let pw={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},pS=e=>{var t;let n,a,i,o,l,s,u,c,d,f,p=(t=r(e$)({},e,pw),n=t8.evaluateStyle(t.style,t),a=t8.evaluateProp(t.radius,Object.assign({},t,{style:n})),i=t8.evaluateProp(t.innerRadius,Object.assign({},t,{style:n,radius:a})),o=t8.evaluateProp(t.ariaLabel,t),l=t8.evaluateProp(t.id,t),s=t8.evaluateProp(t.cornerRadius,t),u=t8.evaluateProp(t.padAngle,t),c=t8.evaluateProp(t.sliceStartAngle,t),d=t8.evaluateProp(t.sliceEndAngle,t),f=t8.evaluateProp(t.tabIndex,t),Object.assign({},t,{ariaLabel:o,style:n,radius:a,innerRadius:i,id:l,cornerRadius:s,padAngle:u,sliceStartAngle:c,sliceEndAngle:d,tabIndex:f})),h=p.origin?`translate(${p.origin.x}, ${p.origin.y})`:void 0;return r(eh).cloneElement(p.pathComponent,{...p.events,"aria-label":p.ariaLabel,d:(e=>{let{slice:t,radius:n,innerRadius:a,cornerRadius:i}=e;if(t8.isFunction(e.pathFunction))return e.pathFunction(t);let o=t8.degreesToRadians(e.padAngle),l=t8.degreesToRadians(e.sliceStartAngle),s=t8.degreesToRadians(e.sliceEndAngle);return fY.arc().cornerRadius(i).outerRadius(n).innerRadius(a||0)(r(e$)({startAngle:l,endAngle:s,padAngle:o},t))})(p),style:p.style,transform:p.transform||h,className:p.className,role:p.role,shapeRendering:p.shapeRendering,clipPath:p.clipPath,tabIndex:p.tabIndex})},pk={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},pP=e=>!t8.isNil(e._x)&&!t8.isNil(e._y);class pj extends r(eh).Component{static animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];static displayName="VictoryPie";static role="pie";static defaultTransitions={onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:e=>({y_:e._y,label:e.label})}};static defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:r(eh).createElement(pS,null),labelComponent:r(eh).createElement(sU,null),containerComponent:r(eh).createElement(an,null),groupComponent:r(eh).createElement("g",null),sortOrder:"ascending",theme:au};static getBaseProps(e){return((e,t)=>{let n=t8.modifyProps(e,t,"pie"),a=(e=>{var t;let n,a,{colorScale:i,theme:o}=e,l=t8.getDefaultStyles(e,"pie"),s=t8.getStyles(e.style,l),u=Array.isArray(i)?i:lf.getColorScale(i,o),c=t8.getPadding(e.padding),d="number"==typeof e.radius?e.radius:Math.min(e.width-c.left-c.right,e.height-c.top-c.bottom)/2,f=((e,t)=>{let{width:n,height:a}=e,i=r(ot)(e.origin)?e.origin:{};return{x:void 0!==i.x?i.x:(t.left-t.right+n)/2,y:void 0!==i.y?i.y:(t.top-t.bottom+a)/2}})(e,c),p=(t=ou.getData(e),n=[],(Array.isArray(e.categories)?e.categories:e?.categories?.x??[]).forEach(e=>{let r=t.findIndex(t=>{let{x:n}=t;return n===e});if(r>=0){let e=t.splice(r,1)[0];n.push(e)}}),[...n,...t]),h=(a=t8.isFunction(e.padAngle)?0:e.padAngle,fY.pie().sort(null).startAngle(t8.degreesToRadians(e.startAngle)).endAngle(t8.degreesToRadians(e.endAngle)).padAngle(t8.degreesToRadians(a)).value(e=>e._y)(p));return Object.assign({},e,{style:s,colors:u,padding:c,defaultRadius:d,data:p,slices:h,origin:f})})(n),{slices:i,style:o,data:l,origin:s,defaultRadius:u,labels:c,events:d,sharedEvents:f,height:p,width:h,standalone:g,name:m,innerRadius:y,cornerRadius:b,padAngle:v,disableInlineStyles:x,labelIndicator:_}=a,O=n.radius||u,w={parent:{standalone:g,height:p,width:h,slices:i,name:m,style:o.parent}};return i.reduce((e,t,i)=>{var o;let u=r(e$)({},l[i],{startAngle:t8.radiansToDegrees(t.startAngle),endAngle:t8.radiansToDegrees(t.endAngle),padAngle:t8.radiansToDegrees(t.padAngle)}),p=t8.isNil(u.eventKey)?i:u.eventKey,h={index:i,slice:t,datum:u,data:l,origin:s,innerRadius:y,radius:O,cornerRadius:b,padAngle:v,style:x?{}:((e,t)=>{let{style:n,colors:r}=t;return Object.assign({fill:n&&n.data&&n.data.fill?n.data.fill:r&&r[e%r.length]},n.data)})(i,a),disableInlineStyles:x};e[p]={data:h};let g=null==(o=u.label?u.label:Array.isArray(n.labels)?n.labels[i]:t8.isFunction(n.labels)?n.labels:u.xName||u._x)||t8.isFunction(o)?o:`${o}`;if(null!=g||c&&(d||f)){let t=t8.evaluateProp(g,h);if(e[p].labels=((e,t,n)=>{var a,i,o;let l,s,u,c,{index:d,datum:f,data:p,slice:h,labelComponent:g,theme:m}=t,{style:y,defaultRadius:b,origin:v,width:x,height:_}=n,O=t8.evaluateProp(n.labelRadius,Object.assign({text:e},t)),w=t8.evaluateProp(n.labelPosition,Object.assign({text:e},t))||"centroid",S=t8.evaluateProp(n.labelPlacement,Object.assign({text:e},t))||"vertical",k=Object.assign({padding:0},y.labels),P=t8.evaluateStyle(k,Object.assign({labelRadius:O,text:e},t)),j=(l=P&&P.padding||0,O||b+l),M=(a=fY.arc().outerRadius(j).innerRadius(j),s={startAngle:"startAngle"===w?h.startAngle:h.endAngle,endAngle:"endAngle"===w?h.endAngle:h.startAngle},u=Object.assign({},h,s),a.centroid(u)),C=(c=0,((c=void 0!==w.angle?k.angle:"centroid"===w?t8.radiansToDegrees((h.startAngle+h.endAngle)/2):"startAngle"===w?t8.radiansToDegrees(h.startAngle):t8.radiansToDegrees(h.endAngle))<0?360-c:c)%360),E="vertical"===S?0:"parallel"===S?C>180&&C<360?C+90:C-90:C>90&&C<270?C-180:C,A=(i=C,"perpendicular"===(o=S)?i>90&&i<270?"bottom":"top":"parallel"===o?i>=0&&i<=180?"right":"left":i<45||i>315?"top":i>=45&&i<135?"right":i>=135&&i<225?"bottom":"left"),T=k.textAnchor||("top"===A||"bottom"===A?"middle":"right"===A?"start":"end"),D=k.verticalAnchor||("left"===A||"right"===A?"middle":"bottom"===A?"start":"end"),L={width:x,height:_,index:d,datum:f,data:p,slice:h,orientation:A,text:e,style:k,x:Math.round(M[0])+v.x,y:Math.round(M[1])+v.y,textAnchor:T,verticalAnchor:D,angle:E,calculatedLabelRadius:j};if(!t8.isTooltip(g))return L;let $=m&&m.tooltip||{};return r(e$)({},L,t8.omit($,["style"]))})(t,Object.assign({},n,h),a),_){let t=e[p].labels;t.calculatedLabelRadius>O&&(e[p].labelIndicators=((e,t,n)=>{let{innerRadius:a,radius:i,slice:{startAngle:o,endAngle:l},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:u,index:c}=e,{height:d,width:f}=t,{calculatedLabelRadius:p}=n,h=pO([a,i]),g=pO([l,o]),m=f/2,y=d/2,b=h+s,v=p-u,x=m+px(b,g),_=y+p_(b,g),O=m+px(v,g),w=y+p_(v,g);return r(e$)({},{x1:x,y1:_,x2:O,y2:w,index:c})})(Object.assign({},n,h),a,t))}}return e},w)})(e,pk)}static getData=ou.getData;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return!!this.props.animate}renderComponents(e,t){void 0===t&&(t=pP);let{dataComponent:n,labelComponent:a,groupComponent:i,labelIndicator:o,labelPosition:l}=e;if(!i)throw Error("VictoryPie expects a groupComponent prop");let s=[];if(n){let e=this.dataKeys.reduce((e,a,i)=>{let o=this.getComponentProps(n,"data",i);return t(o.datum)&&e.push(r(eh).cloneElement(n,o)),e},[]);s.push(...e)}if(a){let e=this.dataKeys.map((e,t)=>{let n=this.getComponentProps(a,"labels",t);if(void 0!==n.text&&null!==n.text)return r(eh).cloneElement(a,n)}).filter(e=>void 0!==e);s.push(...e)}if(o&&"centroid"===l&&o){let e=r(eh).createElement(su,null);"object"==typeof o&&(e=o);let t=this.dataKeys.map((t,n)=>{let a=this.getComponentProps(e,"labelIndicators",n);return r(eh).cloneElement(e,a)});s.push(...t)}return this.renderContainer(i,s)}render(){let{animationWhitelist:e,role:t}=pM,n=t8.modifyProps(this.props,pk,t);if(this.shouldAnimate())return this.animateComponent(n,e);let r=this.renderComponents(n),a=n.standalone?this.renderContainer(n.containerComponent,r):r;return rX.withSafeUserProps(a,n)}}let pM=si(pj);var eh=(o("8NFma"),o("8NFma"));let pC=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],pE=(e,t)=>`${e}:${t}`,pA=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{let a=[...pC];return r>0&&r<a.length&&a.unshift(a.splice(r,1)[0]),(0,e_.jsx)(eh.Fragment,{children:(0,e_.jsx)("defs",{children:e.map((e,r)=>{let i=a[(r+t)%a.length],{d:o,fill:l,stroke:s=e,strokeWidth:u}=i,c=uu(i,["d","fill","stroke","strokeWidth"]),d=pE(n,r);return(0,e_.jsx)("pattern",Object.assign({id:d},c,{children:(0,e_.jsx)("path",{d:o,stroke:s,strokeWidth:u,fill:l})}),d)})})},"defs")},pT=e=>{let t;var{allowTooltip:n=!0,ariaDesc:a,ariaTitle:i,colorScale:o,constrainToVisibleArea:l=!1,containerComponent:s=(0,e_.jsx)(d_,{}),hasPatterns:u,legendAllowWrap:c=!1,legendComponent:d=(0,e_.jsx)(fk,{}),legendData:f,legendPosition:p=uv,legendDirection:h="ltr",name:g,patternScale:m,patternUnshiftIndex:y,padding:b,radius:v,standalone:x=!0,style:_,themeColor:O,theme:w=di(O),labelComponent:S=n?(0,e_.jsx)(fE,{constrainToVisibleArea:l,theme:w}):void 0,legendOrientation:k=w.legend.orientation,height:P=w.pie.height,width:j=w.pie.width}=e,M=uu(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);let C={bottom:dE("bottom",b,w.pie.padding),left:dE("left",b,w.pie.padding),right:dE("right",b,w.pie.padding),top:dE("top",b,w.pie.padding)},{defaultColorScale:E,defaultPatternScale:A,isPatternDefs:T,patternId:D}=(({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:a})=>{let i,o=(i=[],(e||a).forEach(e=>i.push(e)),i),l=r(uA)(n),s=!n&&void 0!==t,u=(0,eh.useMemo)(()=>s?r(r1)("pf-pattern"):void 0,[s]);if(s&&(l=(({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;let r=e.map((e,n)=>`url(#${pE(t,n)})`);return r&&r.length>0?r:void 0})({colorScale:o,patternId:u,patternScale:n})),Array.isArray(t))for(let e=0;e<l.length;e++)e<t.length&&t[e]||(l[e]=null);else!1===t&&(l=void 0,s=!1);return{defaultColorScale:o,defaultPatternScale:l,isPatternDefs:s,patternId:u}})({colorScale:o,hasPatterns:u,patternScale:m,themeColorScale:w.pie.colorScale}),L=v||((t=t8.getRadius({height:P,width:j,padding:C}))>-1?t:void 0),$=(0,e_.jsx)(pM,Object.assign({colorScale:o,height:P,labelComponent:S,name:g,padding:b,radius:L,standalone:!1,style:(()=>{if(!A)return _;let e=_?Object.assign({},_):{};return e.data=Object.assign({fill:({slice:e})=>A[e.index%A.length]||E[e.index%E.length]},e.data),e})(),theme:w,width:j},M),"pf-chart-pie"),N=0;"rtl"===h&&(N=fA(f,w));let z=(0,eh.cloneElement)(d,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:o,data:f},g&&{name:`${g}-${d.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:k,theme:w,themeColor:O}),"rtl"===h&&{dataComponent:d.props.dataComponent?(0,eh.cloneElement)(d.props.dataComponent,{transform:`translate(${N})`}):(0,e_.jsx)(fS,{transform:`translate(${N})`})}),"rtl"===h&&{labelComponent:d.props.labelComponent?(0,eh.cloneElement)(d.props.labelComponent,{direction:"rtl",dx:N-30}):(0,e_.jsx)(dO,{direction:"rtl",dx:N-30})}),d.props)),F=()=>z.props.data?fT(Object.assign({allowWrap:!0===c||"function"==typeof c,chartType:"pie",height:P,legendComponent:z,padding:C,position:p,theme:w,width:j},A&&{patternScale:A})):null,R=x?(0,eh.cloneElement)(s,Object.assign({desc:a,height:P,title:i,width:j,theme:w},s.props),[$,F(),T&&pA({patternId:D,colorScale:E,patternUnshiftIndex:y})]):null,I=F();return(0,eh.useEffect)(()=>{(null==I?void 0:I.props)&&"function"==typeof c&&c(fN({legendData:I.props.data,legendOrientation:I.props.orientation,legendProps:I.props,theme:w}))},[I,c,w,j]),x?(0,e_.jsx)(eh.Fragment,{children:R}):(0,e_.jsxs)(eh.Fragment,{children:[$,I,T&&pA({patternId:D,colorScale:E,patternUnshiftIndex:y})]})};pT.displayName="ChartPie",r(eO)(pT,pM);let pD=e=>{let t,n;var{allowTooltip:a=!0,ariaDesc:i,ariaTitle:o,capHeight:l=1.1,containerComponent:s=(0,e_.jsx)(d_,{}),innerRadius:u,legendPosition:c=uv,legendDirection:d="ltr",name:f,padAngle:p,padding:h,radius:g,standalone:m=!0,subTitle:y,subTitleComponent:b,subTitlePosition:v=uM,themeColor:x,title:_,titleComponent:O=(0,e_.jsx)(dO,{}),theme:w=(t=di(x),n=dl(x),r(ct)(t,n.donut)),height:S=w.pie.height,width:k=w.pie.width}=e,P=uu(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);let j=dl(x),M={bottom:dE("bottom",h,w.pie.padding),left:dE("left",h,w.pie.padding),right:dE("right",h,w.pie.padding),top:dE("top",h,w.pie.padding)},C=g?t8.evaluateProp(g,void 0):t8.getRadius({height:S,width:k,padding:M}),E=u?t8.evaluateProp(u,void 0):C-9,A=y&&"center"===v,T=()=>!b&&A?L({styles:[uC,uj],titles:[_,y]}):(0,e_.jsxs)(eh.Fragment,{children:[L({titles:_,dy:A?-8:0}),D({textComponent:b,dy:15*!!A})]},"pf-chart-donut-titles"),D=({dy:e=0,textComponent:t=(0,e_.jsx)(dO,{})})=>{if(!y)return null;let n=t.props?t.props:{};return(0,eh.cloneElement)(t,Object.assign(Object.assign(Object.assign(Object.assign({},f&&{id:`${f}-${t.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:uj,text:y,textAnchor:"right"===v?"start":"middle",verticalAnchor:"middle",x:dj({height:S,labelPosition:v,legendPosition:c,padding:M,width:k}),y:dM({dy:e,height:S,labelPosition:v,padding:M,width:k})}),n),(null==j?void 0:j.label)&&j.label))},L=({dy:e=0,styles:t=uC,titles:n=_})=>{if(!n)return null;let r=O?O.props:{};return(0,eh.cloneElement)(O,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(n)&&{capHeight:l}),f&&{id:`${f}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:t,text:n,textAnchor:"middle",verticalAnchor:"middle",x:dj({height:S,labelPosition:"center",legendPosition:c,padding:M,width:k}),y:dM({dy:e,height:S,labelPosition:"center",padding:M,width:k})}),r),(null==j?void 0:j.label)&&j.label))},$=(0,e_.jsx)(pT,Object.assign({allowTooltip:a,height:S,innerRadius:E>0?E:0,legendPosition:c,legendDirection:d,name:f,padAngle:void 0!==p?p:({datum:e})=>e._y>0?w.pie.padAngle:0,padding:h,radius:C>0?C:0,standalone:!1,theme:w,themeColor:x,width:k},P),"pf-chart-donut-pie"),N=(0,eh.cloneElement)(s,Object.assign({desc:i,height:S,title:o,width:k,theme:w},s.props),[$,T()]);return m?(0,e_.jsx)(eh.Fragment,{children:N}):(0,e_.jsxs)(eh.Fragment,{children:[$,T()]})};pD.displayName="ChartDonut",r(eO)(pD,pM),customElements.define("pfj-chart-donut",class extends ex{getReactComponent(){return[pD,{}]}});var eh=o("8NFma");let pL=e=>{let t,n,a,i;var{allowTooltip:o=!0,ariaDesc:l,ariaTitle:s,colorScale:u,containerComponent:c=(0,e_.jsx)(d_,{}),data:d,invert:f=!1,isStatic:p=!0,legendPosition:h=uv,legendDirection:g="ltr",padding:m,standalone:y=!0,themeColor:b,thresholds:v,x:x,y:_,theme:O=(t=di(b),n=dl(b),r(ct)(t,n.donutUtilization)),height:w=O.pie.height,width:S=O.pie.width}=e,k=uu(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","legendDirection","padding","standalone","themeColor","thresholds","x","y","theme","height","width"]);let P=()=>{let e=[Object.assign({},d)];return ou.formatData(e,Object.assign({x:x,y:_},k),["x","y"]).sort((e,t)=>e._y-t._y)},j=(0,e_.jsx)(pD,Object.assign({allowTooltip:o,colorScale:u,data:(i=[{x:(a=P())[0]._x,y:a[0]._y||0}],p&&i.push({y:a[0]._x?Math.abs(100-a[0]._y):100}),i),height:w,legendPosition:h,legendDirection:g,padding:m,standalone:!1,theme:(()=>{let e=Object.assign({},O),t=P();if(t){let n=(()=>{let e=[];if(v){let t=r(i5)(v,"value",f?"desc":"asc"),n=uE.length;for(let r=0;r<t.length;r++)e.push({color:t[r].color?t[r].color:uE[r%n],value:t[r].value})}return e})(),a=t=>{e.pie.colorScale instanceof Array?e.pie.colorScale[0]=n[t].color:e.pie.colorScale=n[t].color,e.legend.colorScale instanceof Array?e.legend.colorScale[0]=n[t].color:e.legend.colorScale=n[t].color};for(let e=0;e<n.length;e++)f?t[0]._y<=n[e].value&&a(e):t[0]._y>=n[e].value&&a(e)}return e})(),themeColor:b,width:S},k),"pf-chart-donut-utilization"),M=(0,eh.cloneElement)(c,Object.assign({desc:l,height:w,title:s,width:S,theme:O},c.props),[j]);return y?(0,e_.jsx)(eh.Fragment,{children:M}):(0,e_.jsx)(eh.Fragment,{children:j})};pL.displayName="ChartDonutUtilization",r(eO)(pL,pM),customElements.define("pfj-chart-donut-utilization",class extends ex{constructor(){super(),this._thresholds=void 0}getReactComponent(){let e={};return this._thresholds&&"string"!=typeof this._thresholds?e.thresholds=this._thresholds:this.getAttribute("thresholds")&&(e.thresholds=em("thresholds",this.getAttribute("thresholds"))),[pL,e]}get thresholds(){return this._thresholds}set thresholds(e){this._thresholds=e,this._notifyChange()}});var eh=o("8NFma");let p$=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:a,children:i,colorScale:o,constrainToVisibleArea:l=!1,containerComponent:s=(0,e_.jsx)(d_,{}),data:u=[],hasPatterns:c,invert:d=!1,labels:f=[],name:p,padding:h,radius:g,standalone:m=!0,subTitlePosition:y=uM,themeColor:b,x:v,y:x,theme:_=((e,t)=>{let n=di(e),a=dl(e),i=r(ct)(n,a.donutThresholdStatic);if(t&&n.pie.colorScale instanceof Array){let e=[...a.donutThresholdStatic.pie.colorScale];i.pie.colorScale=r(ct)(n.pie.colorScale,e.reverse())}return i})(b,d),height:O=_.pie.height,width:w=_.pie.width}=e,S=uu(e,["allowTooltip","ariaDesc","ariaTitle","children","colorScale","constrainToVisibleArea","containerComponent","data","hasPatterns","invert","labels","name","padding","radius","standalone","subTitlePosition","themeColor","x","y","theme","height","width"]);let k={bottom:dE("bottom",h,_.pie.padding),left:dE("left",h,_.pie.padding),right:dE("right",h,_.pie.padding),top:dE("top",h,_.pie.padding)},P=t8.evaluateProp(g,void 0)||t8.getRadius({height:O,width:w,padding:k}),j=(()=>{let[e,t]=ou.formatData(u,Object.assign({x:v,y:x},S),["x","y"]).sort((e,t)=>e._y-t._y).reduce((e,t)=>[t._y,[...e[1],{x:t._x,y:t._y-e[0]}]],[0,[]]);return[...t,{y:e?100-e:0}]})(),M=()=>eh.Children.toArray(i).map((e,t)=>{if((0,eh.isValidElement)(e)){var n;let a,i,o=e.props,{data:s}=o,u=uu(o,["data"]),f=ou.formatData([s],u,["x","y"]),h=u.theme||(a=di(n=u.themeColor||b),i=dl(n),r(ct)(a,i.donutThresholdDynamic));return(0,eh.cloneElement)(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c&&{hasPatterns:!0}),{constrainToVisibleArea:l,data:s,endAngle:360*(f[0]._y?f[0]._y/100:0),height:O}),p&&(e.name,!0)&&{name:`${p}-${e.type.displayName}-${t}`}),{invert:d,isStatic:!1,key:`pf-chart-donut-threshold-child-${t}`,padding:k,patternUnshiftIndex:j.length,radius:P-14,standalone:!1,subTitlePosition:u.subTitlePosition||y,theme:h,themeColor:b,width:w}),u))}return e}),C=(0,e_.jsx)(pD,Object.assign({allowTooltip:t,colorScale:o,constrainToVisibleArea:l,data:j,height:O,hasPatterns:c,labels:f,name:p,padding:k,standalone:!1,theme:_,themeColor:b,width:w},S),"pf-chart-donut-threshold"),E=(0,eh.cloneElement)(s,Object.assign({desc:n,height:O,title:a,width:w,theme:_},s.props),[C,M()]);return m?(0,e_.jsx)(eh.Fragment,{children:E}):(0,e_.jsxs)(eh.Fragment,{children:[C,M()]})};p$.displayName="ChartDonutThreshold",r(eO)(p$,pM),customElements.define("pfj-chart-donut-threshold",class extends ex{getReactComponent(){return[p$,{}]}});class pN extends HTMLElement{}window.ChartElement=pN})();
|
|
165
|
+
`,"");return`${l} z`},f0={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},f5=(0,eh.forwardRef)(function(e,t){var n;let a,i,o,l,s,u,c,d=(a=fH((n=r(e$)({},e,f0)).style,n),i=((e,t)=>{let{scale:n,data:r,style:a}=t;if(e)return t8.evaluateProp(e,t);if(a.width)return a.width;let i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2;return Math.max(1,(t.barRatio||.5)*(r.length<2?8:o/l))})(n.barWidth,Object.assign({},n,{style:a})),o=((e,t)=>{let n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};if(!e)return n;if(r(ot)(e)){let n,r;return n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},(r=(r,a)=>{t8.isNil(e[r])?t8.isNil(e[a])||(n[r]=t8.evaluateProp(e[a],t)):n[r]=t8.evaluateProp(e[r],t)})("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}return n.topLeft=t8.evaluateProp(e,t),n.topRight=t8.evaluateProp(e,t),n})(n.cornerRadius,Object.assign({},n,{style:a,barWidth:i})),l=t8.evaluateProp(n.ariaLabel,n),s=t8.evaluateProp(n.desc,n),u=t8.evaluateProp(n.id,n),c=t8.evaluateProp(n.tabIndex,n),Object.assign({},n,{ariaLabel:l,style:a,barWidth:i,cornerRadius:o,desc:s,id:u,tabIndex:c})),{polar:f,origin:p,style:h,barWidth:g,cornerRadius:m}=d,y=f?((e,t)=>{let n,r,{datum:a,scale:i,index:o,alignment:l,style:s}=e,u=i.y(a._y0||0),c=i.y(void 0!==a._y1?a._y1:a._y),d=i.x(void 0!==a._x1?a._x1:a._x);if(s.width){let t=((e,t)=>{let{scale:n}=e;return t/(2*Math.PI*Math.max(...n.y.range()))*Math.abs(n.x.range()[1]-n.x.range()[0])})(e,s.width),a="middle"===l?t/2:t;n="start"===l?d:d-a,r="end"===l?d:d+a}else n=((e,t)=>{let{data:n,scale:r,alignment:a}=e,i=fQ(e,t),o=Math.abs(r.x.range()[1]-r.x.range()[0]),l=0===t?fQ(e,n.length-1)-2*Math.PI:fQ(e,t-1);return 0===t&&o<2*Math.PI?r.x.range()[0]:"start"===a||"end"===a?"start"===a?l:i:(i+l)/2})(e,Number(o)),r=((e,t)=>{let{data:n,scale:r,alignment:a}=e,i=fQ(e,t),o=Math.abs(r.x.range()[1]-r.x.range()[0]),l=r.x.range()[1]===2*Math.PI?fQ(e,0)+2*Math.PI:r.x.range()[1],s=t===n.length-1?fQ(e,0)+2*Math.PI:fQ(e,t+1);return t===n.length-1&&o<2*Math.PI?l:"start"===a||"end"===a?"start"===a?i:s:(i+s)/2})(e,Number(o));let f=e=>fY.arc().innerRadius(u).outerRadius(c).startAngle(fJ(n)).endAngle(fJ(r)).cornerRadius(t[e])(),p=e=>{let t=f(`${e}Right`),n=t.match(/[A-Z]/g)||[],r=t.split(/[A-Z]/).slice(1),a=n.indexOf("L"),i=f(`${e}Left`),o=i.match(/[A-Z]/g)||[],l=i.split(/[A-Z]/).slice(1),s=o.indexOf("L");return{rightMoves:n,rightCoords:r,rightMiddle:a,leftMoves:o,leftCoords:l,leftMiddle:s}},h=[...(()=>{let e,a,{topRight:i,topLeft:o}=t,l=c*Math.abs(r-n),{rightMoves:s,rightCoords:u,rightMiddle:d,leftMoves:f,leftCoords:h,leftMiddle:g}=p("top");if(i===o||l<2*i+2*o)e=i>o?s:f,a=i>o?u:h;else{let t,n=o>i&&d<3?1:2;t=i>o?g<3?g-1:d<3?g:g-2:d<3?g<3?1:2:g-2,e=[...s.slice(0,n),...f.slice(t)],a=[...u.slice(0,n),...h.slice(t)]}let m=e.indexOf("L"),y=e.slice(0,m),b=a.slice(0,m);return y.map((e,t)=>({command:e,coords:b[t].split(",")}))})(),...(()=>{let e,a,{bottomRight:i,bottomLeft:o}=t,l=u*Math.abs(r-n),{rightMoves:s,rightCoords:c,rightMiddle:d,leftMoves:f,leftCoords:h,leftMiddle:g}=p("bottom");if(i===o||l<2*i+2*o)e=i>o?s:f,a=i>o?c:h;else{let t=(e,t)=>e.length-t<4,n=(i>o?t(s,d):t(f,g))?-1:-3;e=[...f.slice(0,g+2),...s.slice(n)],a=[...h.slice(0,g+2),...c.slice(n)]}let m=e.indexOf("L"),y=e.slice(m,-1),b=a.slice(m,-1);return y.map((e,t)=>({command:e,coords:b[t].split(",")}))})()].reduce((e,t)=>`${e}${t.command} ${t.coords.join()}`,"");return`${h} z`})(d,m):((e,t,n)=>{let r,a,i,o,l,s;return e.getPath?((e,t)=>{let{getPath:n}=e;if("function"==typeof n)return n({...e,...fX(e,t)})})(e,t):e.horizontal?(i={topRight:(a=(r=fX(e,t)).x0<r.x1?1:-1)>0?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},fZ(((e,t,n)=>{let{y0:r,y1:a}=e,i=e.x0<e.x1?e.x0:e.x1,o=e.x0<e.x1?e.x1:e.x0,l=e=>{let l="top"===e,s=l?-1:1,u=l?a:r,c={x:i,y:u-s*n[`${e}Left`]},d={x:i+n[`${e}Left`],y:u},f={x:o-n[`${e}Right`],y:u},p={x:o,y:u-s*n[`${e}Right`]};if(d.x>f.x){let r=fK(fG(i+n[`${e}Left`],u-s*n[`${e}Left`]),n[`${e}Left`]),a=fK(fG(o-n[`${e}Right`],u-s*n[`${e}Right`]),n[`${e}Right`]),h=r.intersection(a);if(h.length>0){let e=h[+(t>0)];d={x:e.x,y:e.y},f={x:e.x,y:e.y}}else if(n[`${e}Right`]>n[`${e}Left`]){let e=a.solveY(i)[+!l];c={x:i,y:e},d={x:i,y:e},f={x:i,y:e}}else{let e=r.solveY(o)[+!l];p={x:o,y:e},f={x:o,y:e},d={x:o,y:e}}}return[c,d,f,p]},s=l("top"),u=l("bottom");return[u[1],u[0],...s,u[3],u[2]]})(r,a,i),i,"0 0 1")):(s=(l=(o=fX(e,t)).y0>o.y1?1:-1)>0?"0 0 1":"0 0 0",fZ(((e,t,n)=>{let{x0:r,x1:a,y0:i,y1:o}=e,l=e=>{let l="Left"===e,s=l?1:-1,u=l?r:a,c={x:u+s*n[`bottom${e}`],y:i},d={x:u,y:i-t*n[`bottom${e}`]},f={x:u,y:o+t*n[`top${e}`]},p={x:u+s*n[`top${e}`],y:o};if(1===t?i-n[`bottom${e}`]<o+n[`top${e}`]:i+n[`bottom${e}`]>o-n[`top${e}`]){let r=fK(fG(u+s*n[`top${e}`],o+t*n[`top${e}`]),n[`top${e}`]),a=fK(fG(u+s*n[`bottom${e}`],i-t*n[`bottom${e}`]),n[`bottom${e}`]),h=r.intersection(a);if(h.length>0){let e=h[+!l];d={x:e.x,y:e.y},f={x:e.x,y:e.y}}else if(n[`top${e}`]>n[`bottom${e}`]){let e=r.solveX(i)[+!l];c={x:e,y:i},d={x:e,y:i},f={x:e,y:i}}else{let e=a.solveX(o)[+!l];d={x:e,y:o},f={x:e,y:o},p={x:e,y:o}}}let h=[c,d,f,p];return l?h:h.reverse()};return l("Left").concat(l("Right"))})(o,l,n),n,s))})(d,g,m),b=f&&p?`translate(${p.x}, ${p.y})`:void 0;return d.pathComponent?r(eh).cloneElement(d.pathComponent,{...d.events,"aria-label":d.ariaLabel,style:h,d:y,className:d.className,clipPath:d.clipPath,desc:d.desc,index:d.index,role:d.role,shapeRendering:d.shapeRendering,transform:d.transform||b,tabIndex:d.tabIndex,ref:t}):null}),f1={width:450,height:300,padding:50},f2=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class f6 extends r(eh).Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBar";static role="bar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})}};static defaultProps={containerComponent:r(eh).createElement(an,null),data:f2,dataComponent:r(eh).createElement(f5,null),groupComponent:r(eh).createElement("g",{role:"presentation"}),labelComponent:r(eh).createElement(sU,null),samples:50,sortOrder:"ascending",standalone:!0,theme:au};static getDomain=i4.getDomainWithZero;static getData=ou.getData;static getBaseProps(e){return((e,t)=>{let n=t8.modifyProps(e,t,"bar"),r=Object.assign({},n,(e=>{let{polar:t}=e,n=t8.getDefaultStyles(e,"bar"),r=e.disableInlineStyles?{}:t8.getStyles(e.style,n),a=e.range||{x:t8.getRange(e,"x"),y:t8.getRange(e,"y")},i={x:i4.getDomainWithZero(e,"x"),y:i4.getDomainWithZero(e,"y")},o={x:oy.getBaseScale(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:oy.getBaseScale(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||t8.getPolarOrigin(e):void 0,s=ou.getData(e);return s=ou.formatDataFromDomain(s,i,0),e.groupComponent?.type===fV&&(s=s.map(e=>({...e,_x:e.x,_y:e.y}))),{style:r,data:s,scale:o,domain:i,origin:l}})(n)),{alignment:a,barRatio:i,cornerRadius:o,data:l,disableInlineStyles:s,domain:u,events:c,height:d,horizontal:f,origin:p,padding:h,polar:g,scale:m,sharedEvents:y,standalone:b,style:v,theme:x,width:_,labels:O,name:w,barWidth:S,getPath:k}=r,P={parent:{horizontal:f,domain:u,scale:m,width:_,height:d,data:l,standalone:b,name:w,theme:x,polar:g,origin:p,padding:h,style:v.parent}};return l.reduce((e,t,n)=>{let u,h,b,x=t8.isNil(t.eventKey)?n:t.eventKey,{x:w,y:P,y0:j,x0:M}=(u=e=>{let n="log"===oy.getType(r.scale[e])?1/Number.MAX_SAFE_INTEGER:0,a=rA.getMinValue(r.domain[e]),i=rA.getMaxValue(r.domain[e]);return a<0&&i<=0?n=i:a>=0&&i>0&&(n=a),t[`_${e}`]instanceof Date?new Date(n):n},h=void 0!==t._y0?t._y0:u("y"),b=void 0!==t._x0?t._x0:u("x"),t8.scalePoint(r,Object.assign({},t,{_y0:h,_x0:b}))),C={alignment:a,barRatio:i,barWidth:S,cornerRadius:o,data:l,datum:t,disableInlineStyles:s,getPath:k,horizontal:f,index:n,polar:g,origin:p,scale:m,style:v.data,width:_,height:d,x:w,y:P,y0:j,x0:M};return e[x]={data:C},(null!=sP.getText(r,t,n)||O&&(c||y))&&(e[x].labels=sP.getProps(r,n)),e},P)})(e,f1)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];static shouldRenderDatum=()=>!0;shouldAnimate(){return!!this.props.animate}render(){let e,{animationWhitelist:t,role:n}=f3,r=t8.modifyProps(this.props,f1,n);if(this.shouldAnimate())return this.animateComponent(r,t);e=r.groupComponent?.type===fV?this.renderData(r,f6.shouldRenderDatum):this.renderData(r);let a=r.standalone?this.renderContainer(r.containerComponent,e):e;return rX.withSafeUserProps(a,r)}}let f3=si(f6);var eh=o("8NFma");let f7=({data:e,themeColor:t,theme:n=df(t),y:r})=>{let a=[];return ou.formatData(e,{y:r},["y"]).forEach((e,t)=>{a.push(Object.assign(Object.assign({},e),{_index:t}))}),a.map(e=>Object.assign(Object.assign({},e),{x:1,_x:1,y0:e._y,_y0:e._y,_color:n.bar.style.data.fill}))},f4=({data:e,invert:t,themeColor:n,theme:r=dg(n),y:a,y0:i})=>f7({data:e,invert:t,theme:r,themeColor:n,y:a,y0:i}),f8=({data:e,invert:t,themeColor:n,theme:r=dy(n),negativeMeasureTheme:a=dm(n),y:i,y0:o})=>{let l=[],s=[];return ou.formatData(e,{y:i,y0:o},["y","y0"]).forEach((e,t)=>{e._y<0?l.push(Object.assign(Object.assign({},e),{_index:t})):s.push(Object.assign(Object.assign({},e),{_index:t}))}),[...l.sort((e,t)=>t._y-e._y).map((e,n)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:t?r.group.colorScale[n%r.group.colorScale.length]:a.group.colorScale[n%r.group.colorScale.length]})).reverse(),...s.sort((e,t)=>e._y-t._y).map((e,n)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:t?a.group.colorScale[n%r.group.colorScale.length]:r.group.colorScale[n%r.group.colorScale.length]})).reverse()]},f9=({data:e,invert:t,themeColor:n,theme:r=db(n),y:a,y0:i})=>{let o=[];return ou.formatData(e,{y:a,y0:i},["y","y0"]).forEach((e,t)=>{o.push(Object.assign(Object.assign({},e),{_index:t}))}),o.sort((e,n)=>t?n._y-e._y:e._y-n._y).map((e,t)=>Object.assign(Object.assign({},e),{x:1,_x:1,_color:r.group.colorScale[t%r.group.colorScale.length]})).reverse()};var eh=o("8NFma");let pe=e=>{var{containerComponent:t=(0,e_.jsx)(d_,{}),themeColor:n,theme:r=di(n)}=e,a=uu(e,["containerComponent","themeColor","theme"]);let i=(0,eh.cloneElement)(t,Object.assign({theme:r},t.props));return(0,e_.jsx)(f3,Object.assign({containerComponent:i,theme:r},a))};pe.displayName="ChartBar",r(eO)(pe,f3,{getBaseProps:!0});let pt=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=ux,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labels:s,measureComponent:u=(0,e_.jsx)(pe,{}),padding:c,standalone:d=!0,themeColor:f,y:p,theme:h=df(f),height:g=h.bar.height,width:m=h.bar.width,labelComponent:y=(0,e_.jsx)(fE,{})})=>{let b=f7({data:i,theme:h,y:p}),v=(0,eh.cloneElement)(y,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},y.props)),x=b.map((t,n)=>(0,eh.cloneElement)(u,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:g,horizontal:l,labelComponent:e?v:void 0,labels:s,key:`pf-chart-bullet-comparative-measure-${n}`,padding:c,standalone:!1,theme:h,themeColor:f,width:m},u.props)));return d?(0,e_.jsx)(d_,{desc:t,height:g,title:n,width:m,children:x}):(0,e_.jsx)(eh.Fragment,{children:x})};pt.displayName="ChartBulletComparativeMeasure",r(eO)(pt,f3);let pn=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labelComponent:s,labels:u,measureComponent:c=(0,e_.jsx)(pt,{}),padding:d,standalone:f=!0,themeColor:p,y:h,theme:g=dd(p),height:m=g.bar.height,width:y=g.bar.width})=>{let b=(0,eh.cloneElement)(c,Object.assign({allowTooltip:e,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a,data:i,domain:o,height:m,horizontal:l,labelComponent:s,labels:u,padding:d,standalone:!1,theme:g,themeColor:p,width:y,y:h},c.props));return f?(0,e_.jsx)(d_,{desc:t,height:m,title:n,width:y,children:b}):(0,e_.jsx)(eh.Fragment,{children:b})};pn.displayName="ChartBulletComparativeErrorMeasure",r(eO)(pn,f3);var eh=o("8NFma");let pr=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,labelComponent:s,labels:u,measureComponent:c=(0,e_.jsx)(pt,{}),padding:d,standalone:f=!0,themeColor:p,y:h,theme:g=dp(p),height:m=g.bar.height,width:y=g.bar.width})=>{let b=(0,eh.cloneElement)(c,Object.assign({allowTooltip:e,ariaDesc:t,ariaTitle:n,barWidth:r,constrainToVisibleArea:a,data:i,domain:o,height:m,horizontal:l,labelComponent:s,labels:u,padding:d,standalone:!1,theme:g,themeColor:p,width:y,y:h},c.props));return f?(0,e_.jsx)(d_,{desc:t,height:m,title:n,width:y,children:b}):(0,e_.jsx)(eh.Fragment,{children:b})};pr.displayName="ChartBulletComparativeWarningMeasure",r(eO)(pr,f3);var eh=o("8NFma");let pa=({ariaDesc:e,ariaTitle:t,capHeight:n=1.1,dividerComponent:r=(0,e_.jsx)(sl,{}),name:a,padding:i,standalone:o=!0,subTitle:l,themeColor:s,title:u,titleComponent:c=(0,e_.jsx)(dO,{}),theme:d=dh(s),height:f=d.chart.height,width:p=d.chart.width})=>{let h,g,m,y,b,v,x={bottom:dE("bottom",i,d.chart.padding),left:dE("left",i,d.chart.padding),right:dE("right",i,d.chart.padding),top:dE("top",i,d.chart.padding)},_={bottom:dE("bottom",i,Number(d.legend.style.labels.padding)),left:dE("left",i,Number(d.legend.style.labels.padding)),right:dE("right",i,Number(d.legend.style.labels.padding)),top:dE("top",i,Number(d.legend.style.labels.padding))},O=!!u&&(0,e_.jsxs)(eh.Fragment,{children:[(h=dl(s),g=c?c.props:{},m=u&&l,(0,eh.cloneElement)(c,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m&&{capHeight:n}),a&&{id:()=>`${a}-${c.type.displayName}`}),{style:[u_,uO],text:m?[u,l]:u,textAnchor:"middle",verticalAnchor:"middle",x:dk({chartWidth:p,labelPosition:"top"}),y:dP({chartHeight:f,dy:x.top,labelPosition:"top"})}),g),(null==h?void 0:h.label)&&h.label))),(y=dC({text:u,theme:d}),b=dC({text:l,theme:d}),v=u&&l?y.height+b.height+_.top+_.bottom:y.height+_.top+_.bottom,(0,eh.cloneElement)(r,Object.assign({x1:x.left,x2:p-x.right,y1:x.top+v,y2:x.top+v,style:d.line.style.data},r.props)))]});return o?(0,e_.jsx)(d_,{desc:e,height:f,title:t,width:p,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pa.displayName="ChartBulletGroupTitle";var eh=(o("8NFma"),o("8NFma")),pi={};function po(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function pl(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{let r=e=>(0===t?n[t+1]:n[t-1])[e];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{let r=e=>(0===t?n[t+1]:n[t-1])[e];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function ps(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}e(pi,"continuousTransitions",()=>po),e(pi,"continuousPolarTransitions",()=>pl),e(pi,"discreteTransitions",()=>ps);let pu={width:450,height:300,padding:50,size:3,symbol:"circle"};class pc extends r(eh).Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions=pi.discreteTransitions();static defaultProps={containerComponent:r(eh).createElement(an,null),dataComponent:r(eh).createElement(fo,null),labelComponent:r(eh).createElement(sU,null),groupComponent:r(eh).createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:au};static getDomain=i4.getDomain;static getData=ou.getData;static getBaseProps(e){return((e,t)=>{let n,r,a,i,o,l,s,u,c=t8.modifyProps(e,t,"scatter"),d=Object.assign({},c,(n=t8.getDefaultStyles(c,"scatter"),r=t8.getStyles(c.style,n),a={x:t8.getRange(c,"x"),y:t8.getRange(c,"y")},i={x:i4.getDomain(c,"x"),y:i4.getDomain(c,"y")},o={x:oy.getBaseScale(c,"x").domain(i.x).range(c.horizontal?a.y:a.x),y:oy.getBaseScale(c,"y").domain(i.y).range(c.horizontal?a.x:a.y)},l=c.polar?c.origin||t8.getPolarOrigin(c):void 0,s=c.bubbleProperty||"z",u=ou.getData(c),u=ou.formatDataFromDomain(u,i),{domain:i,data:u,scale:o,style:r,origin:l,z:s})),{data:f,domain:p,events:h,height:g,origin:m,padding:y,polar:b,scale:v,name:x,sharedEvents:_,standalone:O,style:w,theme:S,width:k,labels:P,horizontal:j,disableInlineStyles:M}=d,C={parent:{style:w.parent,scale:v,domain:p,data:f,height:g,width:k,standalone:O,theme:S,origin:m,polar:b,padding:y,name:x,horizontal:j}};return f.reduce((e,t,n)=>{let r=t8.isNil(t.eventKey)?n:t.eventKey,{x:a,y:i}=t8.scalePoint(d,t),o={x:a,y:i,datum:t,data:f,index:n,scale:v,polar:b,origin:m,horizontal:j,size:((e,t)=>{let{size:n,z:r}=t;return e.size?"function"==typeof e.size?e.size:Math.max(e.size,1):"function"==typeof t.size?n:e[r]?((e,t)=>{let{data:n,z:r,maxBubbleSize:a,minBubbleSize:i}=t,o=n.map(e=>e[r]),l=Math.min(...o),s=Math.max(...o),u=a||Math.max(Math.min(...Object.values(t8.getPadding(t.padding))),5),c=i||.1*u;if(s===l)return Math.max(c,1);let d=Math.PI*Math.pow(u,2),f=Math.PI*Math.pow(c,2);return Math.max(Math.sqrt(Math.max((e[r]-l)/(s-l)*d,f)/Math.PI),1)})(e,t):Math.max(n||0,1)})(t,d),symbol:d.bubbleProperty?"circle":t.symbol||d.symbol,style:M?{}:w.data,disableInlineStyles:M};return e[r]={data:o},(null!=sP.getText(d,t,n)||P&&(h||_))&&(e[r].labels=sP.getProps(d,n)),e},C)})(e,pu)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){let{animationWhitelist:e,role:t}=pd,n=t8.modifyProps(this.props,pu,t);if(this.shouldAnimate())return this.animateComponent(n,e);let r=this.renderData(n),a=n.standalone?this.renderContainer(n.containerComponent,r):r;return rX.withSafeUserProps(a,n)}}let pd=si(pc);var eh=o("8NFma");let pf=e=>{var{containerComponent:t=(0,e_.jsx)(d_,{}),themeColor:n,theme:r=di(n)}=e,a=uu(e,["containerComponent","themeColor","theme"]);let i=(0,eh.cloneElement)(t,Object.assign({theme:r},t.props));return void 0===a.size&&void 0===a.bubbleProperty&&(a.size=({active:e})=>e?5:3),(0,e_.jsx)(pd,Object.assign({containerComponent:i,theme:r},a))};pf.displayName="ChartScatter",r(eO)(pf,pd);let pp=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,constrainToVisibleArea:r=!1,data:a,domain:i,horizontal:o=!0,invert:l=!1,labels:s,measureComponent:u=(0,e_.jsx)(pf,{}),padding:c,size:d=uS,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=dg(p),labelComponent:y=(0,e_.jsx)(fE,{}),height:b=m.group.height,width:v=m.group.width})=>{let x=f4({data:a,invert:l,theme:m,y:h,y0:g}),_=(0,eh.cloneElement)(y,Object.assign({constrainToVisibleArea:r,dx:0,dy:o?-d:0,orientation:"top"},y.props)),O=x.map((t,n)=>(0,eh.cloneElement)(u,Object.assign({data:[Object.assign({},t)],domain:i,height:b,horizontal:o,key:`pf-chart-bullet-primary-dot-measure-${n}`,labelComponent:e?_:void 0,labels:s,padding:c,size:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:v},u.props)));return f?(0,e_.jsx)(d_,{desc:t,height:b,title:n,width:v,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pp.displayName="ChartBulletPrimaryDotMeasure",r(eO)(pp,pd);var eh=o("8NFma");let ph=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=uk,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,invert:s=!1,labels:u,measureComponent:c=(0,e_.jsx)(pe,{}),padding:d,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=dy(p),negativeMeasureTheme:y=dm(p),height:b=m.group.height,width:v=m.group.width,labelComponent:x=(0,e_.jsx)(fE,{})})=>{let _=f8({data:i,invert:s,negativeMeasureTheme:y,theme:m,y:h,y0:g}),O=(0,eh.cloneElement)(x,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},x.props)),w=_.map((t,n)=>(0,eh.cloneElement)(c,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:b,horizontal:l,key:`pf-chart-bullet-primary-segmented-measure-${n}`,labelComponent:e?O:void 0,labels:u,padding:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:v},c.props)));return f?(0,e_.jsx)(d_,{desc:t,height:b,title:n,width:v,children:w}):(0,e_.jsx)(eh.Fragment,{children:w})};ph.displayName="ChartBulletPrimarySegmentedMeasure",r(eO)(ph,f3);var eh=o("8NFma");let pg=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,barWidth:r=uP,constrainToVisibleArea:a=!1,data:i,domain:o,horizontal:l=!0,invert:s=!1,labels:u,measureComponent:c=(0,e_.jsx)(pe,{}),padding:d,standalone:f=!0,themeColor:p,y:h,y0:g,theme:m=db(p),height:y=m.group.height,width:b=m.group.width,labelComponent:v=(0,e_.jsx)(fE,{})})=>{let x=f9({data:i,invert:s,theme:m,y:h,y0:g}),_=(0,eh.cloneElement)(v,Object.assign({constrainToVisibleArea:a,dx:()=>l?0:("function"==typeof r?r(i):r)/2,dy:()=>l?-(("function"==typeof r?r(i):r)/2):0,orientation:"top"},v.props)),O=x.map((t,n)=>(0,eh.cloneElement)(c,Object.assign({barWidth:r,data:[Object.assign({},t)],domain:o,height:y,horizontal:l,key:`pf-chart-bullet-qualitative-range-${n}`,labelComponent:e?_:void 0,labels:u,padding:d,standalone:!1,style:{data:{fill:t._color}},theme:m,themeColor:p,width:b},c.props)));return f?(0,e_.jsx)(d_,{desc:t,height:y,title:n,width:b,children:O}):(0,e_.jsx)(eh.Fragment,{children:O})};pg.displayName="ChartBulletQualitativeRange",r(eO)(pg,f3);let pm=({comparativeErrorMeasureComponent:e,comparativeErrorMeasureData:t,comparativeWarningMeasureComponent:n,comparativeWarningMeasureData:r,primaryDotMeasureComponent:a,primaryDotMeasureData:i,primarySegmentedMeasureComponent:o,primarySegmentedMeasureData:l,maxDomain:s,minDomain:u,qualitativeRangeComponent:c,qualitativeRangeData:d})=>{let f=(({maxDomain:e,minDomain:t,sources:n})=>{let r=[];n.forEach(n=>{let{data:a=n.data}=n.component?n.component.props:void 0,i=(({data:e,maxDomain:t,minDomain:n,x:r,y:a})=>{let i=0,o=0,l=!0,s=!0;void 0!==n&&void 0!==n.x?(i=n.x,l=!1):void 0!==n&&void 0===n.y&&(i=n,l=!1),void 0!==t&&void 0!==t.x?(o=t.x,s=!1):void 0!==t&&void 0===t.y&&(o=t,s=!1);let u=0,c=0,d=!0,f=!0;return void 0!==n&&void 0!==n.y?(u=n.y,d=!1):void 0!==n&&void 0===n.x&&(u=n,d=!1),void 0!==t&&void 0!==t.y?(c=t.y,f=!1):void 0!==t&&void 0===t.x&&(c=t,f=!1),ou.formatData(e,{x:r,y:a},["x","y"]).forEach(e=>{l&&e._x<i&&(i=e._x),s&&e._x>o&&(o=e._x),d&&e._y<u&&(u=e._y),f&&e._y>c&&(c=e._y)}),{x:[i,o],y:[u,c]}})({data:a,maxDomain:e,minDomain:t,x:n.component?n.component.props.x:void 0,y:n.component?n.component.props.y:void 0});r.push(i)});let a=[],i=[];return r.forEach(e=>{a.push(...e.x),i.push(...e.y)}),{x:[Math.min(...a),Math.max(...a)],y:[Math.min(...i),Math.max(...i)]}})({maxDomain:s,minDomain:u,sources:[{component:e,data:t},{component:n,data:r},{component:a,data:i},{component:o,data:l},{component:c,data:d}]});return f.x=[0,2],f},py=(e,t)=>{let n=[];return t.forEach((t,r)=>{for(let t of e)r===t._index&&n.push(t._color)}),n},pb=({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d})=>{let f=(({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d})=>{let f=[];if(o&&o.length){let e=f4({data:i,invert:a});f.push(...py(e,o))}if(s&&s.length){let e=f8({data:l,invert:a,themeColor:d});f.push(...py(e,s))}if(r&&r.length){let e=(({data:e,themeColor:t,theme:n=dp(t),y:r})=>f7({data:e,theme:n,themeColor:t,y:r}))({data:n,invert:a,themeColor:d});f.push(...py(e,r))}if(t&&t.length){let n=(({data:e,themeColor:t,theme:n=dd(t),y:r})=>f7({data:e,theme:n,themeColor:t,y:r}))({data:e,invert:a,themeColor:d});f.push(...py(n,t))}if(c&&c.length){let e=f9({data:u,invert:a});f.push(...py(e,c))}return f})({comparativeErrorMeasureData:e,comparativeErrorMeasureLegendData:t,comparativeWarningMeasureData:n,comparativeWarningMeasureLegendData:r,invert:a,primaryDotMeasureData:i,primaryDotMeasureLegendData:o,primarySegmentedMeasureData:l,primarySegmentedMeasureLegendData:s,qualitativeRangeData:u,qualitativeRangeLegendData:c,themeColor:d}),p=dc(d);return p.legend.colorScale=[...f],d===cb&&(p.legend.colorScale=c5.legend.colorScale),p},pv=({allowTooltip:e=!0,ariaDesc:t,ariaTitle:n,axisComponent:r=(0,e_.jsx)(dw,{}),comparativeErrorMeasureComponent:a=(0,e_.jsx)(pn,{}),comparativeErrorMeasureData:i,comparativeErrorMeasureDataY:o,comparativeErrorMeasureLegendData:l,comparativeWarningMeasureComponent:s=(0,e_.jsx)(pr,{}),comparativeWarningMeasureData:u,comparativeWarningMeasureDataY:c,comparativeWarningMeasureLegendData:d,comparativeZeroMeasureComponent:f=(0,e_.jsx)(pt,{}),constrainToVisibleArea:p=!1,groupTitleComponent:h=(0,e_.jsx)(pa,{}),groupSubTitle:g,groupTitle:m,horizontal:y=!0,invert:b=!1,labels:v,legendAllowWrap:x=!1,legendComponent:_=(0,e_.jsx)(fk,{}),legendItemsPerRow:O,legendPosition:w="bottom",legendDirection:S="ltr",maxDomain:k,minDomain:P,name:j,padding:M,primaryDotMeasureComponent:C=(0,e_.jsx)(pp,{}),primaryDotMeasureData:E,primaryDotMeasureDataY:A,primaryDotMeasureLegendData:T,primarySegmentedMeasureComponent:D=(0,e_.jsx)(ph,{}),primarySegmentedMeasureData:L,primarySegmentedMeasureDataY:$,primarySegmentedMeasureLegendData:N,qualitativeRangeComponent:z=(0,e_.jsx)(pg,{}),qualitativeRangeData:F,qualitativeRangeDataY:R,qualitativeRangeDataY0:I,qualitativeRangeLegendData:W,standalone:U=!0,subTitle:q,themeColor:B,title:V,titleComponent:H=(0,e_.jsx)(dA,{}),titlePosition:Y,theme:G=pb({comparativeErrorMeasureData:i,comparativeErrorMeasureLegendData:l,comparativeWarningMeasureData:u,comparativeWarningMeasureLegendData:d,invert:b,primaryDotMeasureData:E,primaryDotMeasureLegendData:T,primarySegmentedMeasureData:L,primarySegmentedMeasureLegendData:N,qualitativeRangeData:F,qualitativeRangeLegendData:W,themeColor:B}),domain:K=pm({comparativeErrorMeasureComponent:a,comparativeErrorMeasureData:i,comparativeWarningMeasureComponent:s,comparativeWarningMeasureData:u,maxDomain:k,minDomain:P,primaryDotMeasureComponent:C,primaryDotMeasureData:E,primarySegmentedMeasureComponent:D,primarySegmentedMeasureData:L,qualitativeRangeComponent:z,qualitativeRangeData:F}),legendOrientation:X=G.legend.orientation,height:Q=y?G.chart.height:G.chart.width,width:J=y?G.chart.width:G.chart.height,bulletSize:Z=G.chart.height})=>{let ee,et,en={height:y?Z:Q,width:y?J:Z},er={bottom:dE("bottom",M,G.chart.padding),left:dE("left",M,G.chart.padding),right:dE("right",M,G.chart.padding),top:dE("top",M,G.chart.padding)},ea=(0,eh.cloneElement)(h,Object.assign(Object.assign(Object.assign({height:Q},j&&{name:`${j}-${h.type.displayName}`}),{standalone:!1,subTitle:g,title:m,themeColor:B,width:J}),h.props)),ei=(0,eh.cloneElement)(H,Object.assign(Object.assign(Object.assign({height:Q,horizontal:y,legendPosition:w},j&&{name:`${j}-${H.type.displayName}`}),{padding:M,standalone:!1,subTitle:q,theme:G,themeColor:B,title:V,titlePosition:Y,width:J}),H.props)),eo=(0,eh.cloneElement)(a,Object.assign({allowTooltip:e,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dd(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:30,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),constrainToVisibleArea:p,data:i,domain:K,height:en.height,horizontal:y,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:o},a.props)),el=(0,eh.cloneElement)(s,Object.assign({allowTooltip:e,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dp(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:30,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),constrainToVisibleArea:p,data:u,domain:K,height:en.height,horizontal:y,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:c},s.props)),es=(0,eh.cloneElement)(f,Object.assign({barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=df(n)})=>dx({defaultSize:a.bar.height,height:e,horizontal:t,value:ux,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:[{y:0}],domain:K,height:en.height,horizontal:y,padding:M,standalone:!1,themeColor:B,width:en.width},f.props)),eu=0;"rtl"===S&&(eu=fA([...T||[],...N||[],...d||[],...l||[],...W||[]],G));let ec=(0,eh.cloneElement)(_,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:[...T||[],...N||[],...d||[],...l||[],...W||[]]},j&&{name:`${j}-${_.type.displayName}`}),{itemsPerRow:O,orientation:X,position:w,theme:G,themeColor:B}),"rtl"===S&&{dataComponent:_.props.dataComponent?(0,eh.cloneElement)(_.props.dataComponent,{transform:`translate(${eu})`}):(0,e_.jsx)(fS,{transform:`translate(${eu})`})}),"rtl"===S&&{labelComponent:_.props.labelComponent?(0,eh.cloneElement)(_.props.labelComponent,{direction:"rtl",dx:eu-30}):(0,e_.jsx)(dO,{direction:"rtl",dx:eu-30})}),_.props)),ed=(0,eh.cloneElement)(C,Object.assign({allowTooltip:e,constrainToVisibleArea:p,data:E,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,size:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dg(n)})=>(e=>{var{value:t}=e;return Math.round(dv(Object.assign({scale:1/t,value:t},uu(e,["value"]))))})({defaultSize:a.group.height,height:e,horizontal:t,value:uS,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),standalone:!1,themeColor:B,width:en.width,y:A},C.props)),ef=(0,eh.cloneElement)(D,Object.assign({allowTooltip:e,constrainToVisibleArea:p,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=dy(n)})=>dx({defaultSize:a.group.height,height:e,horizontal:t,scale:.3,value:uk,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:L,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:$},D.props)),ep=(0,eh.cloneElement)(z,Object.assign({allowTooltip:e,constrainToVisibleArea:p,barWidth:(({height:e,horizontal:t,themeColor:n,width:r,theme:a=db(n)})=>dx({defaultSize:a.group.height,height:e,horizontal:t,value:uP,width:r}))({height:en.height,horizontal:y,themeColor:B,width:en.width}),data:F,domain:K,height:en.height,horizontal:y,invert:b,labelComponent:e?(0,e_.jsx)(fE,{height:Q,theme:G,width:J}):void 0,labels:v,padding:M,standalone:!1,themeColor:B,width:en.width,y:R,y0:I},z.props)),eg=(0,eh.cloneElement)(r,Object.assign(Object.assign(Object.assign({dependentAxis:!y,domain:y?{x:K.y,y:K.x}:K,height:en.height},j&&{name:`${j}-${r.type.displayName}`}),{offsetX:y?0:.5*er.left+(.5*er.right-(er.right-55)),offsetY:y?80-.5*er.top+(.5*er.bottom-25):0,padding:M,standalone:!1,themeColor:B,tickCount:5,tickValues:((e,t)=>{let n=[e,t],r=(e<0&&t<0?Math.abs(e-t):e<0?Math.abs(e)+t:t-e)/4;for(let a=e;a<t;)n.push(Math.ceil(a+=r));return n})(K.y[0],K.y[1]),width:en.width}),r.props)),em=(()=>{if(!ec.props.data)return null;let e=0,t=0;return"bottom"===w?t=y?.5*er.top+(.5*er.bottom-er.bottom)-25:V?-er.bottom+60:-er.bottom:"bottom-left"===w&&(t=y?.5*er.top+(.5*er.bottom-er.bottom)-25:V?-er.bottom+60:-er.bottom,e=-10),fT({allowWrap:!0===x||"function"==typeof x,chartType:"bullet",dx:e,dy:t,height:en.height,legendComponent:ec,padding:er,position:w,theme:G,width:en.width})})(),ey=(0,e_.jsxs)(eh.Fragment,{children:[eg,ea,ei,ep,ef,ed,eo,el,(ee=0,Array.isArray(K)?ee=K[0]:K.y&&Array.isArray(K.y)&&(ee=K.y[0]),et=0,(Array.isArray(K)?et=K[K.length-1]:K.y&&Array.isArray(K.y)&&(et=K.y[K.y.length-1]),ee<0&&et>0)?es:null),em]});return(0,eh.useEffect)(()=>{"function"==typeof x&&x(fN({legendData:em.props.data,legendOrientation:em.props.orientation,legendProps:em.props,theme:G}))},[em,x,G,J]),U?(0,e_.jsx)(d_,{desc:t,height:Q,title:n,theme:G,width:J,children:ey}):(0,e_.jsx)(eh.Fragment,{children:ey})};pv.displayName="ChartBullet",r(eO)(pv,us),customElements.define("pfj-chart-bullet",class extends ex{constructor(){super(),this._comparativeErrorMeasureData=void 0,this._comparativeErrorMeasureLegendData=void 0,this._comparativeWarningMeasureData=void 0,this._comparativeWarningMeasureLegendData=void 0,this._maxDomain=void 0,this._primaryDotMeasureData=void 0,this._primaryDotMeasureLegendData=void 0,this._primarySegmentedMeasureData=void 0,this._primarySegmentedMeasureLegendData=void 0,this._qualitativeRangeData=void 0,this._qualitativeRangeLegendData=void 0}getReactComponent(){let e={};return this._comparativeErrorMeasureData&&"string"!=typeof this._comparativeErrorMeasureData?e.comparativeErrorMeasureData=this._comparativeErrorMeasureData:this.getAttribute("comparative-error-measure-data")&&(e.comparativeErrorMeasureData=em("comparative-error-measure-data",this.getAttribute("comparative-error-measure-data"))),this._comparativeErrorMeasureLegendData&&"string"!=typeof this._comparativeErrorMeasureLegendData?e.comparativeErrorMeasureLegendData=this._comparativeErrorMeasureLegendData:this.getAttribute("comparative-error-measure-legend-data")&&(e.comparativeErrorMeasureLegendData=em("comparative-error-measure-legend-data",this.getAttribute("comparative-error-measure-legend-data"))),this._comparativeWarningMeasureData&&"string"!=typeof this._comparativeWarningMeasureData?e.comparativeWarningMeasureData=this._comparativeWarningMeasureData:this.getAttribute("comparative-warning-measure-data")&&(e.comparativeWarningMeasureData=em("comparative-warning-measure-data",this.getAttribute("comparative-warning-measure-data"))),this._comparativeWarningMeasureLegendData&&"string"!=typeof this._comparativeWarningMeasureLegendData?e.comparativeWarningMeasureLegendData=this._comparativeWarningMeasureLegendData:this.getAttribute("comparative-warning-measure-legend-data")&&(e.comparativeWarningMeasureLegendData=em("comparative-warning-measure-legend-data",this.getAttribute("comparative-warning-measure-legend-data"))),void 0!==this._maxDomain&&(e.maxDomain=Number(this._maxDomain)),this._primaryDotMeasureData&&"string"!=typeof this._primaryDotMeasureData?e.primaryDotMeasureData=this._primaryDotMeasureData:this.getAttribute("primary-dot-measure-data")&&(e.primaryDotMeasureData=em("primary-dot-measure-data",this.getAttribute("primary-dot-measure-data"))),this._primaryDotMeasureLegendData&&"string"!=typeof this._primaryDotMeasureLegendData?e.primaryDotMeasureLegendData=this._primaryDotMeasureLegendData:this.getAttribute("primary-dot-measure-legend-data")&&(e.primaryDotMeasureLegendData=em("primary-dot-measure-legend-data",this.getAttribute("primary-dot-measure-legend-data"))),this._primarySegmentedMeasureData&&"string"!=typeof this._primarySegmentedMeasureData?e.primarySegmentedMeasureData=this._primarySegmentedMeasureData:this.getAttribute("primary-segmented-measure-data")&&(e.primarySegmentedMeasureData=em("primary-segmented-measure-data",this.getAttribute("primary-segmented-measure-data"))),this._primarySegmentedMeasureLegendData&&"string"!=typeof this._primarySegmentedMeasureLegendData?e.primarySegmentedMeasureLegendData=this._primarySegmentedMeasureLegendData:this.getAttribute("primary-segmented-measure-legend-data")&&(e.primarySegmentedMeasureLegendData=em("primary-segmented-measure-legend-data",this.getAttribute("primary-segmented-measure-legend-data"))),this._qualitativeRangeData&&"string"!=typeof this._qualitativeRangeData?e.qualitativeRangeData=this._qualitativeRangeData:this.getAttribute("qualitative-range-data")&&(e.qualitativeRangeData=em("qualitative-range-data",this.getAttribute("qualitative-range-data"))),this._qualitativeRangeLegendData&&"string"!=typeof this._qualitativeRangeLegendData?e.qualitativeRangeLegendData=this._qualitativeRangeLegendData:this.getAttribute("qualitative-range-legend-data")&&(e.qualitativeRangeLegendData=em("qualitative-range-legend-data",this.getAttribute("qualitative-range-legend-data"))),[pv,e]}get comparativeErrorMeasureData(){return this._comparativeErrorMeasureData}set comparativeErrorMeasureData(e){this._comparativeErrorMeasureData=e,this._notifyChange()}get comparativeErrorMeasureLegendData(){return this._comparativeErrorMeasureLegendData}set comparativeErrorMeasureLegendData(e){this._comparativeErrorMeasureLegendData=e,this._notifyChange()}get comparativeWarningMeasureData(){return this._comparativeWarningMeasureData}set comparativeWarningMeasureData(e){this._comparativeWarningMeasureData=e,this._notifyChange()}get comparativeWarningMeasureLegendData(){return this._comparativeWarningMeasureLegendData}set comparativeWarningMeasureLegendData(e){this._comparativeWarningMeasureLegendData=e,this._notifyChange()}get maxDomain(){return this._maxDomain}set maxDomain(e){this._maxDomain=e,this._notifyChange()}get primaryDotMeasureData(){return this._primaryDotMeasureData}set primaryDotMeasureData(e){this._primaryDotMeasureData=e,this._notifyChange()}get primaryDotMeasureLegendData(){return this._primaryDotMeasureLegendData}set primaryDotMeasureLegendData(e){this._primaryDotMeasureLegendData=e,this._notifyChange()}get primarySegmentedMeasureData(){return this._primarySegmentedMeasureData}set primarySegmentedMeasureData(e){this._primarySegmentedMeasureData=e,this._notifyChange()}get primarySegmentedMeasureLegendData(){return this._primarySegmentedMeasureLegendData}set primarySegmentedMeasureLegendData(e){this._primarySegmentedMeasureLegendData=e,this._notifyChange()}get qualitativeRangeData(){return this._qualitativeRangeData}set qualitativeRangeData(e){this._qualitativeRangeData=e,this._notifyChange()}get qualitativeRangeLegendData(){return this._qualitativeRangeLegendData}set qualitativeRangeLegendData(e){this._qualitativeRangeLegendData=e,this._notifyChange()}});var eh=(o("8NFma"),o("8NFma"));let px=(e,t)=>e*Math.cos(t-t8.degreesToRadians(90)),p_=(e,t)=>e*Math.sin(t-t8.degreesToRadians(90)),pO=e=>e.reduce((e,t)=>e+t,0)/e.length;var eh=o("8NFma");let pw={pathComponent:r(eh).createElement(sQ,null),role:"presentation",shapeRendering:"auto"},pS=e=>{var t;let n,a,i,o,l,s,u,c,d,f,p=(t=r(e$)({},e,pw),n=t8.evaluateStyle(t.style,t),a=t8.evaluateProp(t.radius,Object.assign({},t,{style:n})),i=t8.evaluateProp(t.innerRadius,Object.assign({},t,{style:n,radius:a})),o=t8.evaluateProp(t.ariaLabel,t),l=t8.evaluateProp(t.id,t),s=t8.evaluateProp(t.cornerRadius,t),u=t8.evaluateProp(t.padAngle,t),c=t8.evaluateProp(t.sliceStartAngle,t),d=t8.evaluateProp(t.sliceEndAngle,t),f=t8.evaluateProp(t.tabIndex,t),Object.assign({},t,{ariaLabel:o,style:n,radius:a,innerRadius:i,id:l,cornerRadius:s,padAngle:u,sliceStartAngle:c,sliceEndAngle:d,tabIndex:f})),h=p.origin?`translate(${p.origin.x}, ${p.origin.y})`:void 0;return r(eh).cloneElement(p.pathComponent,{...p.events,"aria-label":p.ariaLabel,d:(e=>{let{slice:t,radius:n,innerRadius:a,cornerRadius:i}=e;if(t8.isFunction(e.pathFunction))return e.pathFunction(t);let o=t8.degreesToRadians(e.padAngle),l=t8.degreesToRadians(e.sliceStartAngle),s=t8.degreesToRadians(e.sliceEndAngle);return fY.arc().cornerRadius(i).outerRadius(n).innerRadius(a||0)(r(e$)({startAngle:l,endAngle:s,padAngle:o},t))})(p),style:p.style,transform:p.transform||h,className:p.className,role:p.role,shapeRendering:p.shapeRendering,clipPath:p.clipPath,tabIndex:p.tabIndex})},pk={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},pP=e=>!t8.isNil(e._x)&&!t8.isNil(e._y);class pj extends r(eh).Component{static animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];static displayName="VictoryPie";static role="pie";static defaultTransitions={onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:e=>({y_:e._y,label:e.label})}};static defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:r(eh).createElement(pS,null),labelComponent:r(eh).createElement(sU,null),containerComponent:r(eh).createElement(an,null),groupComponent:r(eh).createElement("g",null),sortOrder:"ascending",theme:au};static getBaseProps(e){return((e,t)=>{let n=t8.modifyProps(e,t,"pie"),a=(e=>{var t;let n,a,{colorScale:i,theme:o}=e,l=t8.getDefaultStyles(e,"pie"),s=t8.getStyles(e.style,l),u=Array.isArray(i)?i:lf.getColorScale(i,o),c=t8.getPadding(e.padding),d="number"==typeof e.radius?e.radius:Math.min(e.width-c.left-c.right,e.height-c.top-c.bottom)/2,f=((e,t)=>{let{width:n,height:a}=e,i=r(ot)(e.origin)?e.origin:{};return{x:void 0!==i.x?i.x:(t.left-t.right+n)/2,y:void 0!==i.y?i.y:(t.top-t.bottom+a)/2}})(e,c),p=(t=ou.getData(e),n=[],(Array.isArray(e.categories)?e.categories:e?.categories?.x??[]).forEach(e=>{let r=t.findIndex(t=>{let{x:n}=t;return n===e});if(r>=0){let e=t.splice(r,1)[0];n.push(e)}}),[...n,...t]),h=(a=t8.isFunction(e.padAngle)?0:e.padAngle,fY.pie().sort(null).startAngle(t8.degreesToRadians(e.startAngle)).endAngle(t8.degreesToRadians(e.endAngle)).padAngle(t8.degreesToRadians(a)).value(e=>e._y)(p));return Object.assign({},e,{style:s,colors:u,padding:c,defaultRadius:d,data:p,slices:h,origin:f})})(n),{slices:i,style:o,data:l,origin:s,defaultRadius:u,labels:c,events:d,sharedEvents:f,height:p,width:h,standalone:g,name:m,innerRadius:y,cornerRadius:b,padAngle:v,disableInlineStyles:x,labelIndicator:_}=a,O=n.radius||u,w={parent:{standalone:g,height:p,width:h,slices:i,name:m,style:o.parent}};return i.reduce((e,t,i)=>{var o;let u=r(e$)({},l[i],{startAngle:t8.radiansToDegrees(t.startAngle),endAngle:t8.radiansToDegrees(t.endAngle),padAngle:t8.radiansToDegrees(t.padAngle)}),p=t8.isNil(u.eventKey)?i:u.eventKey,h={index:i,slice:t,datum:u,data:l,origin:s,innerRadius:y,radius:O,cornerRadius:b,padAngle:v,style:x?{}:((e,t)=>{let{style:n,colors:r}=t;return Object.assign({fill:n&&n.data&&n.data.fill?n.data.fill:r&&r[e%r.length]},n.data)})(i,a),disableInlineStyles:x};e[p]={data:h};let g=null==(o=u.label?u.label:Array.isArray(n.labels)?n.labels[i]:t8.isFunction(n.labels)?n.labels:u.xName||u._x)||t8.isFunction(o)?o:`${o}`;if(null!=g||c&&(d||f)){let t=t8.evaluateProp(g,h);if(e[p].labels=((e,t,n)=>{var a,i,o;let l,s,u,c,{index:d,datum:f,data:p,slice:h,labelComponent:g,theme:m}=t,{style:y,defaultRadius:b,origin:v,width:x,height:_}=n,O=t8.evaluateProp(n.labelRadius,Object.assign({text:e},t)),w=t8.evaluateProp(n.labelPosition,Object.assign({text:e},t))||"centroid",S=t8.evaluateProp(n.labelPlacement,Object.assign({text:e},t))||"vertical",k=Object.assign({padding:0},y.labels),P=t8.evaluateStyle(k,Object.assign({labelRadius:O,text:e},t)),j=(l=P&&P.padding||0,O||b+l),M=(a=fY.arc().outerRadius(j).innerRadius(j),s={startAngle:"startAngle"===w?h.startAngle:h.endAngle,endAngle:"endAngle"===w?h.endAngle:h.startAngle},u=Object.assign({},h,s),a.centroid(u)),C=(c=0,((c=void 0!==w.angle?k.angle:"centroid"===w?t8.radiansToDegrees((h.startAngle+h.endAngle)/2):"startAngle"===w?t8.radiansToDegrees(h.startAngle):t8.radiansToDegrees(h.endAngle))<0?360-c:c)%360),E="vertical"===S?0:"parallel"===S?C>180&&C<360?C+90:C-90:C>90&&C<270?C-180:C,A=(i=C,"perpendicular"===(o=S)?i>90&&i<270?"bottom":"top":"parallel"===o?i>=0&&i<=180?"right":"left":i<45||i>315?"top":i>=45&&i<135?"right":i>=135&&i<225?"bottom":"left"),T=k.textAnchor||("top"===A||"bottom"===A?"middle":"right"===A?"start":"end"),D=k.verticalAnchor||("left"===A||"right"===A?"middle":"bottom"===A?"start":"end"),L={width:x,height:_,index:d,datum:f,data:p,slice:h,orientation:A,text:e,style:k,x:Math.round(M[0])+v.x,y:Math.round(M[1])+v.y,textAnchor:T,verticalAnchor:D,angle:E,calculatedLabelRadius:j};if(!t8.isTooltip(g))return L;let $=m&&m.tooltip||{};return r(e$)({},L,t8.omit($,["style"]))})(t,Object.assign({},n,h),a),_){let t=e[p].labels;t.calculatedLabelRadius>O&&(e[p].labelIndicators=((e,t,n)=>{let{innerRadius:a,radius:i,slice:{startAngle:o,endAngle:l},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:u,index:c}=e,{height:d,width:f}=t,{calculatedLabelRadius:p}=n,h=pO([a,i]),g=pO([l,o]),m=f/2,y=d/2,b=h+s,v=p-u,x=m+px(b,g),_=y+p_(b,g),O=m+px(v,g),w=y+p_(v,g);return r(e$)({},{x1:x,y1:_,x2:O,y2:w,index:c})})(Object.assign({},n,h),a,t))}}return e},w)})(e,pk)}static getData=ou.getData;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return!!this.props.animate}renderComponents(e,t){void 0===t&&(t=pP);let{dataComponent:n,labelComponent:a,groupComponent:i,labelIndicator:o,labelPosition:l}=e;if(!i)throw Error("VictoryPie expects a groupComponent prop");let s=[];if(n){let e=this.dataKeys.reduce((e,a,i)=>{let o=this.getComponentProps(n,"data",i);return t(o.datum)&&e.push(r(eh).cloneElement(n,o)),e},[]);s.push(...e)}if(a){let e=this.dataKeys.map((e,t)=>{let n=this.getComponentProps(a,"labels",t);if(void 0!==n.text&&null!==n.text)return r(eh).cloneElement(a,n)}).filter(e=>void 0!==e);s.push(...e)}if(o&&"centroid"===l&&o){let e=r(eh).createElement(su,null);"object"==typeof o&&(e=o);let t=this.dataKeys.map((t,n)=>{let a=this.getComponentProps(e,"labelIndicators",n);return r(eh).cloneElement(e,a)});s.push(...t)}return this.renderContainer(i,s)}render(){let{animationWhitelist:e,role:t}=pM,n=t8.modifyProps(this.props,pk,t);if(this.shouldAnimate())return this.animateComponent(n,e);let r=this.renderComponents(n),a=n.standalone?this.renderContainer(n.containerComponent,r):r;return rX.withSafeUserProps(a,n)}}let pM=si(pj);var eh=(o("8NFma"),o("8NFma"));let pC=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],pE=(e,t)=>`${e}:${t}`,pA=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{let a=[...pC];return r>0&&r<a.length&&a.unshift(a.splice(r,1)[0]),(0,e_.jsx)(eh.Fragment,{children:(0,e_.jsx)("defs",{children:e.map((e,r)=>{let i=a[(r+t)%a.length],{d:o,fill:l,stroke:s=e,strokeWidth:u}=i,c=uu(i,["d","fill","stroke","strokeWidth"]),d=pE(n,r);return(0,e_.jsx)("pattern",Object.assign({id:d},c,{children:(0,e_.jsx)("path",{d:o,stroke:s,strokeWidth:u,fill:l})}),d)})})},"defs")},pT=e=>{let t;var{allowTooltip:n=!0,ariaDesc:a,ariaTitle:i,colorScale:o,constrainToVisibleArea:l=!1,containerComponent:s=(0,e_.jsx)(d_,{}),hasPatterns:u,legendAllowWrap:c=!1,legendComponent:d=(0,e_.jsx)(fk,{}),legendData:f,legendPosition:p=uv,legendDirection:h="ltr",name:g,patternScale:m,patternUnshiftIndex:y,padding:b,radius:v,standalone:x=!0,style:_,themeColor:O,theme:w=di(O),labelComponent:S=n?(0,e_.jsx)(fE,{constrainToVisibleArea:l,theme:w}):void 0,legendOrientation:k=w.legend.orientation,height:P=w.pie.height,width:j=w.pie.width}=e,M=uu(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);let C={bottom:dE("bottom",b,w.pie.padding),left:dE("left",b,w.pie.padding),right:dE("right",b,w.pie.padding),top:dE("top",b,w.pie.padding)},{defaultColorScale:E,defaultPatternScale:A,isPatternDefs:T,patternId:D}=(({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:a})=>{let i,o=(i=[],(e||a).forEach(e=>i.push(e)),i),l=r(uA)(n),s=!n&&void 0!==t,u=(0,eh.useMemo)(()=>s?r(r1)("pf-pattern"):void 0,[s]);if(s&&(l=(({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;let r=e.map((e,n)=>`url(#${pE(t,n)})`);return r&&r.length>0?r:void 0})({colorScale:o,patternId:u,patternScale:n})),Array.isArray(t))for(let e=0;e<l.length;e++)e<t.length&&t[e]||(l[e]=null);else!1===t&&(l=void 0,s=!1);return{defaultColorScale:o,defaultPatternScale:l,isPatternDefs:s,patternId:u}})({colorScale:o,hasPatterns:u,patternScale:m,themeColorScale:w.pie.colorScale}),L=v||((t=t8.getRadius({height:P,width:j,padding:C}))>-1?t:void 0),$=(0,e_.jsx)(pM,Object.assign({colorScale:o,height:P,labelComponent:S,name:g,padding:b,radius:L,standalone:!1,style:(()=>{if(!A)return _;let e=_?Object.assign({},_):{};return e.data=Object.assign({fill:({slice:e})=>A[e.index%A.length]||E[e.index%E.length]},e.data),e})(),theme:w,width:j},M),"pf-chart-pie"),N=0;"rtl"===h&&(N=fA(f,w));let z=(0,eh.cloneElement)(d,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:o,data:f},g&&{name:`${g}-${d.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:k,theme:w,themeColor:O}),"rtl"===h&&{dataComponent:d.props.dataComponent?(0,eh.cloneElement)(d.props.dataComponent,{transform:`translate(${N})`}):(0,e_.jsx)(fS,{transform:`translate(${N})`})}),"rtl"===h&&{labelComponent:d.props.labelComponent?(0,eh.cloneElement)(d.props.labelComponent,{direction:"rtl",dx:N-30}):(0,e_.jsx)(dO,{direction:"rtl",dx:N-30})}),d.props)),F=()=>z.props.data?fT(Object.assign({allowWrap:!0===c||"function"==typeof c,chartType:"pie",height:P,legendComponent:z,padding:C,position:p,theme:w,width:j},A&&{patternScale:A})):null,R=x?(0,eh.cloneElement)(s,Object.assign({desc:a,height:P,title:i,width:j,theme:w},s.props),[$,F(),T&&pA({patternId:D,colorScale:E,patternUnshiftIndex:y})]):null,I=F();return(0,eh.useEffect)(()=>{(null==I?void 0:I.props)&&"function"==typeof c&&c(fN({legendData:I.props.data,legendOrientation:I.props.orientation,legendProps:I.props,theme:w}))},[I,c,w,j]),x?(0,e_.jsx)(eh.Fragment,{children:R}):(0,e_.jsxs)(eh.Fragment,{children:[$,I,T&&pA({patternId:D,colorScale:E,patternUnshiftIndex:y})]})};pT.displayName="ChartPie",r(eO)(pT,pM);let pD=e=>{let t,n;var{allowTooltip:a=!0,ariaDesc:i,ariaTitle:o,capHeight:l=1.1,containerComponent:s=(0,e_.jsx)(d_,{}),innerRadius:u,legendPosition:c=uv,legendDirection:d="ltr",name:f,padAngle:p,padding:h,radius:g,standalone:m=!0,subTitle:y,subTitleComponent:b,subTitlePosition:v=uM,themeColor:x,title:_,titleComponent:O=(0,e_.jsx)(dO,{}),theme:w=(t=di(x),n=dl(x),r(ct)(t,n.donut)),height:S=w.pie.height,width:k=w.pie.width}=e,P=uu(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);let j=dl(x),M={bottom:dE("bottom",h,w.pie.padding),left:dE("left",h,w.pie.padding),right:dE("right",h,w.pie.padding),top:dE("top",h,w.pie.padding)},C=g?t8.evaluateProp(g,void 0):t8.getRadius({height:S,width:k,padding:M}),E=u?t8.evaluateProp(u,void 0):C-9,A=y&&"center"===v,T=()=>!b&&A?L({styles:[uC,uj],titles:[_,y]}):(0,e_.jsxs)(eh.Fragment,{children:[L({titles:_,dy:A?-8:0}),D({textComponent:b,dy:15*!!A})]},"pf-chart-donut-titles"),D=({dy:e=0,textComponent:t=(0,e_.jsx)(dO,{})})=>{if(!y)return null;let n=t.props?t.props:{};return(0,eh.cloneElement)(t,Object.assign(Object.assign(Object.assign(Object.assign({},f&&{id:`${f}-${t.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:uj,text:y,textAnchor:"right"===v?"start":"middle",verticalAnchor:"middle",x:dj({height:S,labelPosition:v,legendPosition:c,padding:M,width:k}),y:dM({dy:e,height:S,labelPosition:v,padding:M,width:k})}),n),(null==j?void 0:j.label)&&j.label))},L=({dy:e=0,styles:t=uC,titles:n=_})=>{if(!n)return null;let r=O?O.props:{};return(0,eh.cloneElement)(O,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(n)&&{capHeight:l}),f&&{id:`${f}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:t,text:n,textAnchor:"middle",verticalAnchor:"middle",x:dj({height:S,labelPosition:"center",legendPosition:c,padding:M,width:k}),y:dM({dy:e,height:S,labelPosition:"center",padding:M,width:k})}),r),(null==j?void 0:j.label)&&j.label))},$=(0,e_.jsx)(pT,Object.assign({allowTooltip:a,height:S,innerRadius:E>0?E:0,legendPosition:c,legendDirection:d,name:f,padAngle:void 0!==p?p:({datum:e})=>e._y>0?w.pie.padAngle:0,padding:h,radius:C>0?C:0,standalone:!1,theme:w,themeColor:x,width:k},P),"pf-chart-donut-pie"),N=(0,eh.cloneElement)(s,Object.assign({desc:i,height:S,title:o,width:k,theme:w},s.props),[$,T()]);return m?(0,e_.jsx)(eh.Fragment,{children:N}):(0,e_.jsxs)(eh.Fragment,{children:[$,T()]})};pD.displayName="ChartDonut",r(eO)(pD,pM),customElements.define("pfj-chart-donut",class extends ex{getReactComponent(){return[pD,{}]}});var eh=o("8NFma");let pL=e=>{let t,n,a,i;var{allowTooltip:o=!0,ariaDesc:l,ariaTitle:s,colorScale:u,containerComponent:c=(0,e_.jsx)(d_,{}),data:d,invert:f=!1,isStatic:p=!0,legendPosition:h=uv,legendDirection:g="ltr",padding:m,standalone:y=!0,themeColor:b,thresholds:v,x:x,y:_,theme:O=(t=di(b),n=dl(b),r(ct)(t,n.donutUtilization)),height:w=O.pie.height,width:S=O.pie.width}=e,k=uu(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","legendDirection","padding","standalone","themeColor","thresholds","x","y","theme","height","width"]);let P=()=>{let e=[Object.assign({},d)];return ou.formatData(e,Object.assign({x:x,y:_},k),["x","y"]).sort((e,t)=>e._y-t._y)},j=(0,e_.jsx)(pD,Object.assign({allowTooltip:o,colorScale:u,data:(i=[{x:(a=P())[0]._x,y:a[0]._y||0}],p&&i.push({y:a[0]._x?Math.abs(100-a[0]._y):100}),i),height:w,legendPosition:h,legendDirection:g,padding:m,standalone:!1,theme:(()=>{let e=Object.assign({},O),t=P();if(t){let n=(()=>{let e=[];if(v){let t=r(i5)(v,"value",f?"desc":"asc"),n=uE.length;for(let r=0;r<t.length;r++)e.push({color:t[r].color?t[r].color:uE[r%n],value:t[r].value})}return e})(),a=t=>{e.pie.colorScale instanceof Array?e.pie.colorScale[0]=n[t].color:e.pie.colorScale=n[t].color,e.legend.colorScale instanceof Array?e.legend.colorScale[0]=n[t].color:e.legend.colorScale=n[t].color};for(let e=0;e<n.length;e++)f?t[0]._y<=n[e].value&&a(e):t[0]._y>=n[e].value&&a(e)}return e})(),themeColor:b,width:S},k),"pf-chart-donut-utilization"),M=(0,eh.cloneElement)(c,Object.assign({desc:l,height:w,title:s,width:S,theme:O},c.props),[j]);return y?(0,e_.jsx)(eh.Fragment,{children:M}):(0,e_.jsx)(eh.Fragment,{children:j})};pL.displayName="ChartDonutUtilization",r(eO)(pL,pM),customElements.define("pfj-chart-donut-utilization",class extends ex{constructor(){super(),this._thresholds=void 0}getReactComponent(){let e={};return this._thresholds&&"string"!=typeof this._thresholds?e.thresholds=this._thresholds:this.getAttribute("thresholds")&&(e.thresholds=em("thresholds",this.getAttribute("thresholds"))),[pL,e]}get thresholds(){return this._thresholds}set thresholds(e){this._thresholds=e,this._notifyChange()}});var eh=o("8NFma");let p$=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:a,children:i,colorScale:o,constrainToVisibleArea:l=!1,containerComponent:s=(0,e_.jsx)(d_,{}),data:u=[],hasPatterns:c,invert:d=!1,labels:f=[],name:p,padding:h,radius:g,standalone:m=!0,subTitlePosition:y=uM,themeColor:b,x:v,y:x,theme:_=((e,t)=>{let n=di(e),a=dl(e),i=r(ct)(n,a.donutThresholdStatic);if(t&&n.pie.colorScale instanceof Array){let e=[...a.donutThresholdStatic.pie.colorScale];i.pie.colorScale=r(ct)(n.pie.colorScale,e.reverse())}return i})(b,d),height:O=_.pie.height,width:w=_.pie.width}=e,S=uu(e,["allowTooltip","ariaDesc","ariaTitle","children","colorScale","constrainToVisibleArea","containerComponent","data","hasPatterns","invert","labels","name","padding","radius","standalone","subTitlePosition","themeColor","x","y","theme","height","width"]);let k={bottom:dE("bottom",h,_.pie.padding),left:dE("left",h,_.pie.padding),right:dE("right",h,_.pie.padding),top:dE("top",h,_.pie.padding)},P=t8.evaluateProp(g,void 0)||t8.getRadius({height:O,width:w,padding:k}),j=(()=>{let[e,t]=ou.formatData(u,Object.assign({x:v,y:x},S),["x","y"]).sort((e,t)=>e._y-t._y).reduce((e,t)=>[t._y,[...e[1],{x:t._x,y:t._y-e[0]}]],[0,[]]);return[...t,{y:e?100-e:0}]})(),M=()=>eh.Children.toArray(i).map((e,t)=>{if((0,eh.isValidElement)(e)){var n;let a,i,o=e.props,{data:s}=o,u=uu(o,["data"]),f=ou.formatData([s],u,["x","y"]),h=u.theme||(a=di(n=u.themeColor||b),i=dl(n),r(ct)(a,i.donutThresholdDynamic));return(0,eh.cloneElement)(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c&&{hasPatterns:!0}),{constrainToVisibleArea:l,data:s,endAngle:360*(f[0]._y?f[0]._y/100:0),height:O}),p&&(e.name,!0)&&{name:`${p}-${e.type.displayName}-${t}`}),{invert:d,isStatic:!1,key:`pf-chart-donut-threshold-child-${t}`,padding:k,patternUnshiftIndex:j.length,radius:P-14,standalone:!1,subTitlePosition:u.subTitlePosition||y,theme:h,themeColor:b,width:w}),u))}return e}),C=(0,e_.jsx)(pD,Object.assign({allowTooltip:t,colorScale:o,constrainToVisibleArea:l,data:j,height:O,hasPatterns:c,labels:f,name:p,padding:k,standalone:!1,theme:_,themeColor:b,width:w},S),"pf-chart-donut-threshold"),E=(0,eh.cloneElement)(s,Object.assign({desc:n,height:O,title:a,width:w,theme:_},s.props),[C,M()]);return m?(0,e_.jsx)(eh.Fragment,{children:E}):(0,e_.jsxs)(eh.Fragment,{children:[C,M()]})};p$.displayName="ChartDonutThreshold",r(eO)(p$,pM),customElements.define("pfj-chart-donut-threshold",class extends ex{getReactComponent(){return[p$,{}]}});class pN extends HTMLElement{}window.ChartElement=pN})();
|
|
166
166
|
//# sourceMappingURL=charts.js.map
|