evalite
Version:
Test your LLM-powered apps with a TypeScript-native, Vitest-based eval runner. No API key required.
12 lines • 387 kB
JavaScript
import{j as M,S as Hy,a as Lo,c as ii,g as pe,r as B,b as te,R as A,i as Zt,d as fe,e as co,u as Ky,f as Gy,h as Xy,k as Vy,l as Yy,m as so,n as gs,L as bs,C as Zy,O as Jy}from"./index-Df2ALCV5.js";import{B as Qy,a as em,b as tm,c as rm,L as lh,d as ai,f as nm,i as xs,D as oi}from"./utils-zzuvwK-H.js";const im=({children:e,filepath:t,vscodeUrl:r})=>M.jsxs("div",{className:"flex flex-col bg-background relative flex-1 min-h-svh max-w-7xl",children:[M.jsx("header",{className:"sticky top-0 flex h-14 shrink-0 items-center gap-2 bg-background z-10",children:M.jsxs("div",{className:"flex flex-1 items-center gap-2 px-3",children:[M.jsx(Hy,{}),M.jsx(Lo,{orientation:"vertical",className:"mr-2 h-4"}),M.jsx(Qy,{children:M.jsx(em,{children:M.jsx(tm,{children:M.jsx(rm,{className:"line-clamp-1",asChild:!0,children:M.jsx("a",{href:r,children:t})})})})})]})}),M.jsx("div",{className:"flex-1 p-4",children:e})]});var am=Array.isArray,De=am,om=typeof ii=="object"&&ii&&ii.Object===Object&&ii,fh=om,um=fh,cm=typeof self=="object"&&self&&self.Object===Object&&self,sm=um||cm||Function("return this")(),st=sm,lm=st,fm=lm.Symbol,Vn=fm,ws=Vn,ph=Object.prototype,pm=ph.hasOwnProperty,hm=ph.toString,Yr=ws?ws.toStringTag:void 0;function dm(e){var t=pm.call(e,Yr),r=e[Yr];try{e[Yr]=void 0;var n=!0}catch{}var i=hm.call(e);return n&&(t?e[Yr]=r:delete e[Yr]),i}var vm=dm,ym=Object.prototype,mm=ym.toString;function gm(e){return mm.call(e)}var bm=gm,Os=Vn,xm=vm,wm=bm,Om="[object Null]",Sm="[object Undefined]",Ss=Os?Os.toStringTag:void 0;function _m(e){return e==null?e===void 0?Sm:Om:Ss&&Ss in Object(e)?xm(e):wm(e)}var xt=_m;function Am(e){return e!=null&&typeof e=="object"}var wt=Am,Pm=xt,$m=wt,Tm="[object Symbol]";function jm(e){return typeof e=="symbol"||$m(e)&&Pm(e)==Tm}var Dr=jm,Em=De,Mm=Dr,Cm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Im=/^\w*$/;function Nm(e,t){if(Em(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Mm(e)?!0:Im.test(e)||!Cm.test(e)||t!=null&&e in Object(t)}var fc=Nm;function km(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Et=km;const Rr=pe(Et);var Dm=xt,Rm=Et,Bm="[object AsyncFunction]",Lm="[object Function]",Fm="[object GeneratorFunction]",Wm="[object Proxy]";function Um(e){if(!Rm(e))return!1;var t=Dm(e);return t==Lm||t==Fm||t==Bm||t==Wm}var pc=Um;const Z=pe(pc);var zm=st,qm=zm["__core-js_shared__"],Hm=qm,lo=Hm,_s=function(){var e=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Km(e){return!!_s&&_s in e}var Gm=Km,Xm=Function.prototype,Vm=Xm.toString;function Ym(e){if(e!=null){try{return Vm.call(e)}catch{}try{return e+""}catch{}}return""}var hh=Ym,Zm=pc,Jm=Gm,Qm=Et,eg=hh,tg=/[\\^$.*+?()[\]{}|]/g,rg=/^\[object .+?Constructor\]$/,ng=Function.prototype,ig=Object.prototype,ag=ng.toString,og=ig.hasOwnProperty,ug=RegExp("^"+ag.call(og).replace(tg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cg(e){if(!Qm(e)||Jm(e))return!1;var t=Zm(e)?ug:rg;return t.test(eg(e))}var sg=cg;function lg(e,t){return e==null?void 0:e[t]}var fg=lg,pg=sg,hg=fg;function dg(e,t){var r=hg(e,t);return pg(r)?r:void 0}var er=dg,vg=er,yg=vg(Object,"create"),xa=yg,As=xa;function mg(){this.__data__=As?As(null):{},this.size=0}var gg=mg;function bg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xg=bg,wg=xa,Og="__lodash_hash_undefined__",Sg=Object.prototype,_g=Sg.hasOwnProperty;function Ag(e){var t=this.__data__;if(wg){var r=t[e];return r===Og?void 0:r}return _g.call(t,e)?t[e]:void 0}var Pg=Ag,$g=xa,Tg=Object.prototype,jg=Tg.hasOwnProperty;function Eg(e){var t=this.__data__;return $g?t[e]!==void 0:jg.call(t,e)}var Mg=Eg,Cg=xa,Ig="__lodash_hash_undefined__";function Ng(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cg&&t===void 0?Ig:t,this}var kg=Ng,Dg=gg,Rg=xg,Bg=Pg,Lg=Mg,Fg=kg;function Br(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Br.prototype.clear=Dg;Br.prototype.delete=Rg;Br.prototype.get=Bg;Br.prototype.has=Lg;Br.prototype.set=Fg;var Wg=Br;function Ug(){this.__data__=[],this.size=0}var zg=Ug;function qg(e,t){return e===t||e!==e&&t!==t}var hc=qg,Hg=hc;function Kg(e,t){for(var r=e.length;r--;)if(Hg(e[r][0],t))return r;return-1}var wa=Kg,Gg=wa,Xg=Array.prototype,Vg=Xg.splice;function Yg(e){var t=this.__data__,r=Gg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vg.call(t,r,1),--this.size,!0}var Zg=Yg,Jg=wa;function Qg(e){var t=this.__data__,r=Jg(t,e);return r<0?void 0:t[r][1]}var eb=Qg,tb=wa;function rb(e){return tb(this.__data__,e)>-1}var nb=rb,ib=wa;function ab(e,t){var r=this.__data__,n=ib(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ob=ab,ub=zg,cb=Zg,sb=eb,lb=nb,fb=ob;function Lr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Lr.prototype.clear=ub;Lr.prototype.delete=cb;Lr.prototype.get=sb;Lr.prototype.has=lb;Lr.prototype.set=fb;var Oa=Lr,pb=er,hb=st,db=pb(hb,"Map"),dc=db,Ps=Wg,vb=Oa,yb=dc;function mb(){this.size=0,this.__data__={hash:new Ps,map:new(yb||vb),string:new Ps}}var gb=mb;function bb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var xb=bb,wb=xb;function Ob(e,t){var r=e.__data__;return wb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Sa=Ob,Sb=Sa;function _b(e){var t=Sb(this,e).delete(e);return this.size-=t?1:0,t}var Ab=_b,Pb=Sa;function $b(e){return Pb(this,e).get(e)}var Tb=$b,jb=Sa;function Eb(e){return jb(this,e).has(e)}var Mb=Eb,Cb=Sa;function Ib(e,t){var r=Cb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Nb=Ib,kb=gb,Db=Ab,Rb=Tb,Bb=Mb,Lb=Nb;function Fr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fr.prototype.clear=kb;Fr.prototype.delete=Db;Fr.prototype.get=Rb;Fr.prototype.has=Bb;Fr.prototype.set=Lb;var vc=Fr,dh=vc,Fb="Expected a function";function yc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Fb);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(yc.Cache||dh),r}yc.Cache=dh;var vh=yc;const Wb=pe(vh);var Ub=vh,zb=500;function qb(e){var t=Ub(e,function(n){return r.size===zb&&r.clear(),n}),r=t.cache;return t}var Hb=qb,Kb=Hb,Gb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xb=/\\(\\)?/g,Vb=Kb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Gb,function(r,n,i,a){t.push(i?a.replace(Xb,"$1"):n||r)}),t}),Yb=Vb;function Zb(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var mc=Zb,$s=Vn,Jb=mc,Qb=De,e0=Dr,t0=1/0,Ts=$s?$s.prototype:void 0,js=Ts?Ts.toString:void 0;function yh(e){if(typeof e=="string")return e;if(Qb(e))return Jb(e,yh)+"";if(e0(e))return js?js.call(e):"";var t=e+"";return t=="0"&&1/e==-t0?"-0":t}var r0=yh,n0=r0;function i0(e){return e==null?"":n0(e)}var mh=i0,a0=De,o0=fc,u0=Yb,c0=mh;function s0(e,t){return a0(e)?e:o0(e,t)?[e]:u0(c0(e))}var gh=s0,l0=Dr,f0=1/0;function p0(e){if(typeof e=="string"||l0(e))return e;var t=e+"";return t=="0"&&1/e==-f0?"-0":t}var _a=p0,h0=gh,d0=_a;function v0(e,t){t=h0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[d0(t[r++])];return r&&r==n?e:void 0}var gc=v0,y0=gc;function m0(e,t,r){var n=e==null?void 0:y0(e,t);return n===void 0?r:n}var bh=m0;const Ge=pe(bh);function g0(e){return e==null}var b0=g0;const Q=pe(b0);var x0=xt,w0=De,O0=wt,S0="[object String]";function _0(e){return typeof e=="string"||!w0(e)&&O0(e)&&x0(e)==S0}var A0=_0;const Yn=pe(A0);var xh={exports:{}},ie={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bc=Symbol.for("react.element"),xc=Symbol.for("react.portal"),Aa=Symbol.for("react.fragment"),Pa=Symbol.for("react.strict_mode"),$a=Symbol.for("react.profiler"),Ta=Symbol.for("react.provider"),ja=Symbol.for("react.context"),P0=Symbol.for("react.server_context"),Ea=Symbol.for("react.forward_ref"),Ma=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Ia=Symbol.for("react.memo"),Na=Symbol.for("react.lazy"),$0=Symbol.for("react.offscreen"),wh;wh=Symbol.for("react.module.reference");function Ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bc:switch(e=e.type,e){case Aa:case $a:case Pa:case Ma:case Ca:return e;default:switch(e=e&&e.$$typeof,e){case P0:case ja:case Ea:case Na:case Ia:case Ta:return e;default:return t}}case xc:return t}}}ie.ContextConsumer=ja;ie.ContextProvider=Ta;ie.Element=bc;ie.ForwardRef=Ea;ie.Fragment=Aa;ie.Lazy=Na;ie.Memo=Ia;ie.Portal=xc;ie.Profiler=$a;ie.StrictMode=Pa;ie.Suspense=Ma;ie.SuspenseList=Ca;ie.isAsyncMode=function(){return!1};ie.isConcurrentMode=function(){return!1};ie.isContextConsumer=function(e){return Ve(e)===ja};ie.isContextProvider=function(e){return Ve(e)===Ta};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bc};ie.isForwardRef=function(e){return Ve(e)===Ea};ie.isFragment=function(e){return Ve(e)===Aa};ie.isLazy=function(e){return Ve(e)===Na};ie.isMemo=function(e){return Ve(e)===Ia};ie.isPortal=function(e){return Ve(e)===xc};ie.isProfiler=function(e){return Ve(e)===$a};ie.isStrictMode=function(e){return Ve(e)===Pa};ie.isSuspense=function(e){return Ve(e)===Ma};ie.isSuspenseList=function(e){return Ve(e)===Ca};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Aa||e===$a||e===Pa||e===Ma||e===Ca||e===$0||typeof e=="object"&&e!==null&&(e.$$typeof===Na||e.$$typeof===Ia||e.$$typeof===Ta||e.$$typeof===ja||e.$$typeof===Ea||e.$$typeof===wh||e.getModuleId!==void 0)};ie.typeOf=Ve;xh.exports=ie;var T0=xh.exports,j0=xt,E0=wt,M0="[object Number]";function C0(e){return typeof e=="number"||E0(e)&&j0(e)==M0}var Oh=C0;const I0=pe(Oh);var N0=Oh;function k0(e){return N0(e)&&e!=+e}var D0=k0;const Wr=pe(D0);var et=function(t){return t===0?0:t>0?1:-1},zt=function(t){return Yn(t)&&t.indexOf("%")===t.length-1},F=function(t){return I0(t)&&!Wr(t)},Se=function(t){return F(t)||Yn(t)},R0=0,Zn=function(t){var r=++R0;return"".concat(t||"").concat(r)},Jt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!Yn(t))return n;var a;if(zt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Wr(a)&&(a=n),i&&a>r&&(a=r),a},or=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},B0=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},He=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function wi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}function lr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}var L0=["viewBox","children"],F0=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Es=["points","pathLength"],fo={svg:L0,polygon:Es,polyline:Es},wc=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Oi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(B.isValidElement(t)&&(n=t.props),!Rr(n))return null;var i={};return Object.keys(n).forEach(function(a){wc.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},W0=function(t,r,n){return function(i){return t(r,n,i),null}},Si=function(t,r,n){if(!Rr(t)||Fo(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];wc.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=W0(o,r,n))}),i},U0=["children"],z0=["children"];function Ms(e,t){if(e==null)return{};var r=q0(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q0(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}var Cs={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ht=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Is=null,po=null,Oc=function e(t){if(t===Is&&Array.isArray(po))return po;var r=[];return B.Children.forEach(t,function(n){Q(n)||(T0.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),po=r,Is=t,r};function tt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ht(i)}):n=[ht(t)],Oc(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Le(e,t){var r=tt(e,t);return r&&r[0]}var Ns=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},H0=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],K0=function(t){return t&&t.type&&Yn(t.type)&&H0.indexOf(t.type)>=0},G0=function(t){return t&&Wo(t)==="object"&&"clipDot"in t},X0=function(t,r,n,i){var a,o=(a=fo==null?void 0:fo[i])!==null&&a!==void 0?a:[];return!Z(t)&&(i&&o.includes(r)||F0.includes(r))||n&&wc.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!Rr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;X0((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Uo=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ks(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!ks(a,o))return!1}return!0},ks=function(t,r){if(Q(t)&&Q(r))return!0;if(!Q(t)&&!Q(r)){var n=t.props||{},i=n.children,a=Ms(n,U0),o=r.props||{},u=o.children,c=Ms(o,z0);return i&&u?lr(a,c)&&Uo(i,u):!i&&!u?lr(a,c):!1}return!1},Ds=function(t,r){var n=[],i={};return Oc(t).forEach(function(a,o){if(K0(a))n.push(a);else if(a){var u=ht(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},V0=function(t){var r=t&&t.type;return r&&Cs[r]?Cs[r]:null},Y0=function(t,r){return Oc(r).indexOf(t)},Z0=["children","width","height","viewBox","className","style","title","desc"];function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zo.apply(this,arguments)}function J0(e,t){if(e==null)return{};var r=Q0(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Q0(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qo(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=J0(e,Z0),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return A.createElement("svg",zo({},J(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,u),A.createElement("desc",null,c),t)}var ex=["children","className"];function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(this,arguments)}function tx(e,t){if(e==null)return{};var r=rx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var de=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=tx(e,ex),a=te("recharts-layer",n);return A.createElement("g",Ho({className:a},J(i,!0),{ref:t}),r)}),Xt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function nx(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var ix=nx,ax=ix;function ox(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ax(e,t,r)}var ux=ox,cx="\\ud800-\\udfff",sx="\\u0300-\\u036f",lx="\\ufe20-\\ufe2f",fx="\\u20d0-\\u20ff",px=sx+lx+fx,hx="\\ufe0e\\ufe0f",dx="\\u200d",vx=RegExp("["+dx+cx+px+hx+"]");function yx(e){return vx.test(e)}var Sh=yx;function mx(e){return e.split("")}var gx=mx,_h="\\ud800-\\udfff",bx="\\u0300-\\u036f",xx="\\ufe20-\\ufe2f",wx="\\u20d0-\\u20ff",Ox=bx+xx+wx,Sx="\\ufe0e\\ufe0f",_x="["+_h+"]",Ko="["+Ox+"]",Go="\\ud83c[\\udffb-\\udfff]",Ax="(?:"+Ko+"|"+Go+")",Ah="[^"+_h+"]",Ph="(?:\\ud83c[\\udde6-\\uddff]){2}",$h="[\\ud800-\\udbff][\\udc00-\\udfff]",Px="\\u200d",Th=Ax+"?",jh="["+Sx+"]?",$x="(?:"+Px+"(?:"+[Ah,Ph,$h].join("|")+")"+jh+Th+")*",Tx=jh+Th+$x,jx="(?:"+[Ah+Ko+"?",Ko,Ph,$h,_x].join("|")+")",Ex=RegExp(Go+"(?="+Go+")|"+jx+Tx,"g");function Mx(e){return e.match(Ex)||[]}var Cx=Mx,Ix=gx,Nx=Sh,kx=Cx;function Dx(e){return Nx(e)?kx(e):Ix(e)}var Rx=Dx,Bx=ux,Lx=Sh,Fx=Rx,Wx=mh;function Ux(e){return function(t){t=Wx(t);var r=Lx(t)?Fx(t):void 0,n=r?r[0]:t.charAt(0),i=r?Bx(r,1).join(""):t.slice(1);return n[e]()+i}}var zx=Ux,qx=zx,Hx=qx("toUpperCase"),Kx=Hx;const ka=pe(Kx);function ue(e){return function(){return e}}const Eh=Math.cos,_i=Math.sin,rt=Math.sqrt,Ai=Math.PI,Da=2*Ai,Xo=Math.PI,Vo=2*Xo,Lt=1e-6,Gx=Vo-Lt;function Mh(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Xx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Mh;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Vx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Mh:Xx(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,p=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Lt)if(!(Math.abs(l*c-s*f)>Lt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,m=c*c+s*s,v=h*h+y*y,b=Math.sqrt(m),w=Math.sqrt(p),x=a*Math.tan((Xo-Math.acos((m+p-v)/(2*b*w)))/2),O=x/w,d=x/b;Math.abs(O-1)>Lt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+d*c},${this._y1=r+d*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Lt||Math.abs(this._y1-f)>Lt)&&this._append`L${s},${f}`,n&&(p<0&&(p=p%Vo+Vo),p>Gx?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:p>Lt&&this._append`A${n},${n},0,${+(p>=Xo)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Sc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Vx(t)}function _c(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ch(e){this._context=e}Ch.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ra(e){return new Ch(e)}function Ih(e){return e[0]}function Nh(e){return e[1]}function kh(e,t){var r=ue(!0),n=null,i=Ra,a=null,o=Sc(u);e=typeof e=="function"?e:e===void 0?Ih:ue(e),t=typeof t=="function"?t:t===void 0?Nh:ue(t);function u(c){var s,f=(c=_c(c)).length,l,p=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(l,s,c),+t(l,s,c));if(h)return a=null,h+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ue(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:ue(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:ue(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function ui(e,t,r){var n=null,i=ue(!0),a=null,o=Ra,u=null,c=Sc(s);e=typeof e=="function"?e:e===void 0?Ih:ue(+e),t=typeof t=="function"?t:ue(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Nh:ue(+r);function s(l){var p,h,y,m=(l=_c(l)).length,v,b=!1,w,x=new Array(m),O=new Array(m);for(a==null&&(u=o(w=c())),p=0;p<=m;++p){if(!(p<m&&i(v=l[p],p,l))===b)if(b=!b)h=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=h;--y)u.point(x[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(x[p]=+e(v,p,l),O[p]=+t(v,p,l),u.point(n?+n(v,p,l):x[p],r?+r(v,p,l):O[p]))}if(w)return u=null,w+""||null}function f(){return kh().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ue(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class Dh{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Yx(e){return new Dh(e,!0)}function Zx(e){return new Dh(e,!1)}const Ac={draw(e,t){const r=rt(t/Ai);e.moveTo(r,0),e.arc(0,0,r,0,Da)}},Jx={draw(e,t){const r=rt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Rh=rt(1/3),Qx=Rh*2,ew={draw(e,t){const r=rt(t/Qx),n=r*Rh;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},tw={draw(e,t){const r=rt(t),n=-r/2;e.rect(n,n,r,r)}},rw=.8908130915292852,Bh=_i(Ai/10)/_i(7*Ai/10),nw=_i(Da/10)*Bh,iw=-Eh(Da/10)*Bh,aw={draw(e,t){const r=rt(t*rw),n=nw*r,i=iw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Da*a/5,u=Eh(o),c=_i(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},ho=rt(3),ow={draw(e,t){const r=-rt(t/(ho*3));e.moveTo(0,r*2),e.lineTo(-ho*r,-r),e.lineTo(ho*r,-r),e.closePath()}},Ue=-.5,ze=rt(3)/2,Yo=1/rt(12),uw=(Yo/2+1)*3,cw={draw(e,t){const r=rt(t/uw),n=r/2,i=r*Yo,a=n,o=r*Yo+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ue*n-ze*i,ze*n+Ue*i),e.lineTo(Ue*a-ze*o,ze*a+Ue*o),e.lineTo(Ue*u-ze*c,ze*u+Ue*c),e.lineTo(Ue*n+ze*i,Ue*i-ze*n),e.lineTo(Ue*a+ze*o,Ue*o-ze*a),e.lineTo(Ue*u+ze*c,Ue*c-ze*u),e.closePath()}};function sw(e,t){let r=null,n=Sc(i);e=typeof e=="function"?e:ue(e||Ac),t=typeof t=="function"?t:ue(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pi(){}function $i(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Lh(e){this._context=e}Lh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lw(e){return new Lh(e)}function Fh(e){this._context=e}Fh.prototype={areaStart:Pi,areaEnd:Pi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fw(e){return new Fh(e)}function Wh(e){this._context=e}Wh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pw(e){return new Wh(e)}function Uh(e){this._context=e}Uh.prototype={areaStart:Pi,areaEnd:Pi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hw(e){return new Uh(e)}function Rs(e){return e<0?-1:1}function Bs(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Rs(a)+Rs(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Ls(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function vo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ti(e){this._context=e}Ti.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vo(this,this._t0,Ls(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,vo(this,Ls(this,r=Bs(this,e,t)),r);break;default:vo(this,this._t0,r=Bs(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function zh(e){this._context=new qh(e)}(zh.prototype=Object.create(Ti.prototype)).point=function(e,t){Ti.prototype.point.call(this,t,e)};function qh(e){this._context=e}qh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function dw(e){return new Ti(e)}function vw(e){return new zh(e)}function Hh(e){this._context=e}Hh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Fs(e),i=Fs(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Fs(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function yw(e){return new Hh(e)}function Ba(e,t){this._context=e,this._t=t}Ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function mw(e){return new Ba(e,.5)}function gw(e){return new Ba(e,0)}function bw(e){return new Ba(e,1)}function dr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Zo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function xw(e,t){return e[t]}function ww(e){const t=[];return t.key=e,t}function Ow(){var e=ue([]),t=Zo,r=dr,n=xw;function i(a){var o=Array.from(e.apply(this,arguments),ww),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=_c(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ue(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ue(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Zo:typeof a=="function"?a:ue(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??dr,i):r},i}function Sw(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}dr(e,t)}}function _w(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}dr(e,t)}}function Aw(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,p=f[n-1][1]||0,h=(l-p)/2,y=0;y<u;++y){var m=e[t[y]],v=m[n][1]||0,b=m[n-1][1]||0;h+=v-b}c+=l,s+=h*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,dr(e,t)}}function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}var Pw=["type","size","sizeType"];function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jo.apply(this,arguments)}function Ws(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ws(Object(r),!0).forEach(function(n){$w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $w(e,t,r){return t=Tw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tw(e){var t=jw(e,"string");return hn(t)=="symbol"?t:t+""}function jw(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ew(e,t){if(e==null)return{};var r=Mw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Kh={symbolCircle:Ac,symbolCross:Jx,symbolDiamond:ew,symbolSquare:tw,symbolStar:aw,symbolTriangle:ow,symbolWye:cw},Cw=Math.PI/180,Iw=function(t){var r="symbol".concat(ka(t));return Kh[r]||Ac},Nw=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Cw;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},kw=function(t,r){Kh["symbol".concat(ka(t))]=r},Pc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Ew(t,Pw),s=Us(Us({},c),{},{type:n,size:a,sizeType:u}),f=function(){var v=Iw(n),b=sw().type(v).size(Nw(a,u,n));return b()},l=s.className,p=s.cx,h=s.cy,y=J(s,!0);return p===+p&&h===+h&&a===+a?A.createElement("path",Jo({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(h,")"),d:f()})):null};Pc.registerSymbol=kw;function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(this,arguments)}function zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zs(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xh(n.key),n)}}function Lw(e,t,r){return t&&Bw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fw(e,t,r){return t=ji(t),Ww(e,Gh()?Reflect.construct(t,r||[],ji(e).constructor):t.apply(e,r))}function Ww(e,t){if(t&&(vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uw(e)}function Uw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gh=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(e)}function zw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eu(e,t)}function eu(e,t){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eu(e,t)}function dn(e,t,r){return t=Xh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xh(e){var t=qw(e,"string");return vr(t)=="symbol"?t:t+""}function qw(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qe=32,$c=function(e){function t(){return Rw(this,t),Fw(this,t,arguments)}return zw(t,e),Lw(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=qe/2,o=qe/6,u=qe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:qe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
H`).concat(qe,"M").concat(2*u,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(qe/8,"h").concat(qe,"v").concat(qe*3/4,"h").concat(-qe,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var s=Dw({},n);return delete s.legendIcon,A.cloneElement(n.legendIcon,s)}return A.createElement(Pc,{fill:c,cx:a,cy:a,size:qe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:qe,height:qe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var m=h.formatter||c,v=te(dn(dn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=Z(h.value)?null:h.value;Xt(!Z(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=h.inactive?s:h.color;return A.createElement("li",Qo({className:v,style:l,key:"legend-item-".concat(y)},Si(n.props,h,y)),A.createElement(qo,{width:o,height:o,viewBox:f,style:p},n.renderIcon(h)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(b,h,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i