@mingxy/cerebro 1.17.2 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mingxy/cerebro",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"description": "Cerebro persistent memory plugin for OpenCode — auto-recall, auto-capture, 9 memory tools with clustering, project-scoped memory isolation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -16,7 +16,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
16
16
|
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
17
17
|
`),r=t===-1?-1:n.indexOf(`
|
|
18
18
|
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
19
|
-
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=zy(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&pb.assertOptions(n,{silentJSONParsing:mb.transitional(mb.boolean),forcedJSONParsing:mb.transitional(mb.boolean),clarifyTimeoutError:mb.transitional(mb.boolean),legacyInterceptorReqResOrdering:mb.transitional(mb.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:pb.assertOptions(r,{encode:mb.function,serialize:mb.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),pb.assertOptions(t,{baseUrl:mb.spelling(`baseURL`),withXsrfToken:mb.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=Ey.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||ty;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[cb.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=cb.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=zy(this.defaults,e),$v(Ly(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){hb.prototype[e]=function(t,n){return this.request(zy(n||{},{method:e,url:t,data:(n||{}).data}))}}),X.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(zy(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}hb.prototype[e]=t(),hb.prototype[e+`Form`]=t(!0)});var gb=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ky(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function _b(e){return function(t){return e.apply(null,t)}}function vb(e){return X.isObject(e)&&e.isAxiosError===!0}var yb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yb).forEach(([e,t])=>{yb[t]=e});function bb(e){let t=new hb(e),n=j_(hb.prototype.request,t);return X.extend(n,hb.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return bb(zy(e,t))},n}var xb=bb(hy);xb.Axios=hb,xb.CanceledError=ky,xb.CancelToken=gb,xb.isCancel=Oy,xb.VERSION=lb,xb.toFormData=Jv,xb.AxiosError=Hv,xb.Cancel=xb.CanceledError,xb.all=function(e){return Promise.all(e)},xb.spread=_b,xb.isAxiosError=vb,xb.mergeConfig=zy,xb.AxiosHeaders=Ey,xb.formToJSON=e=>py(X.isHTMLForm(e)?new FormData(e):e),xb.getAdapter=ob.getAdapter,xb.HttpStatusCode=yb,xb.default=xb;var Sb=typeof window<`u`&&window.__OMEM_API_URL__&&window.__OMEM_API_URL__!==`__OMEM_API_URL__`?window.__OMEM_API_URL__:`/`,Cb=xb.create({baseURL:Sb,timeout:3e4,headers:{"Content-Type":`application/json`}});Cb.interceptors.request.use(e=>{let t=_h.getState().users.find(e=>e.id===_h.getState().currentUserId);return t?.apiKey&&(e.headers[`X-API-Key`]=t.apiKey,e.headers[`X-Agent-ID`]=`omem-web`),e}),Cb.interceptors.response.use(e=>e.data,e=>(e.response?.status===401&&(_h.getState().logout(),window.location.href=`/login`),Promise.reject(e)));function wb(){let e=et(),{users:t,currentUserId:n,logout:r}=_h(),i=t.find(e=>e.id===n),[a,o]=(0,v.useState)(!0),[s,c]=(0,v.useState)(Date.now());return(0,v.useEffect)(()=>{let e=async()=>{try{await Cb.get(`/health`),o(!0),c(Date.now())}catch{o(!1)}};e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]),(0,G.jsxs)(`header`,{className:`flex h-14 items-center justify-between border-b border-border bg-card px-4`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(see,{}),(0,G.jsx)(`span`,{className:`text-sm font-medium text-muted-foreground truncate max-w-[120px] md:max-w-none`,children:i?.spaceName||i?.name||`未登录`}),(0,G.jsx)(Tp,{children:(0,G.jsxs)(Ep,{children:[(0,G.jsx)(Dp,{children:(0,G.jsx)(`span`,{className:`inline-block h-2 w-2 rounded-full ${a?`bg-[#22c55e] animate-pulse`:`bg-[#ef4444]`}`})}),(0,G.jsx)(Op,{children:a?`连接正常 - 上次心跳: ${Math.round((Date.now()-s)/1e3)}秒前`:`连接断开`})]})})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(kh,{}),(0,G.jsxs)(T_,{children:[(0,G.jsxs)(E_,{className:`flex items-center gap-1.5 rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,G.jsx)(jg,{className:`h-7 w-7`,children:(0,G.jsx)(uee,{className:`text-xs bg-primary/10 text-primary`,children:(0,G.jsx)(rh,{className:`h-3.5 w-3.5`})})}),(0,G.jsx)(Jp,{className:`h-3 w-3 text-muted-foreground`})]}),(0,G.jsxs)(D_,{align:`end`,className:`w-48`,children:[(0,G.jsx)(O_,{children:(0,G.jsxs)(`div`,{className:`flex flex-col`,children:[(0,G.jsx)(`span`,{className:`text-sm font-medium`,children:i?.spaceName||`用户`}),(0,G.jsx)(`span`,{className:`text-xs text-muted-foreground truncate max-w-[180px]`,children:i?.apiKey?`${i.apiKey.slice(0,8)}...`:`未登录`})]})}),(0,G.jsx)(A_,{}),(0,G.jsxs)(k_,{onClick:()=>e(`/profile`),children:[(0,G.jsx)(rh,{className:`size-4 mr-2`}),`用户画像`]}),(0,G.jsxs)(k_,{onClick:()=>e(`/settings`),children:[(0,G.jsx)(Wm,{className:`size-4 mr-2`}),`系统设置`]}),(0,G.jsx)(A_,{}),(0,G.jsxs)(k_,{variant:`destructive`,onClick:()=>{r(),e(`/login`)},children:[(0,G.jsx)(Dm,{className:`size-4 mr-2`}),`退出登录`]})]})]})]})]})}function Tb(){return(0,G.jsx)(`footer`,{className:`border-t border-border bg-card px-4 py-2`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-center gap-4 text-xs text-muted-foreground`,children:[(0,G.jsx)(`span`,{children:`© 2026 omem`}),(0,G.jsx)(`a`,{href:`https://beian.miit.gov.cn/`,target:`_blank`,rel:`noopener noreferrer`,className:`hover:text-foreground transition-colors`,children:`吉ICP备2026003061号`})]})})}var Eb=mh((e,t)=>({isUnlocked:!1,hasPassword:!1,isLoading:!1,checkStatus:async()=>{try{e({hasPassword:(await Cb.get(`/v1/vault/status`)).has_password})}catch{e({hasPassword:!1})}},setPassword:async t=>{e({isLoading:!0});try{await Cb.post(`/v1/vault/password`,{password:t}),e({isUnlocked:!0,hasPassword:!0})}finally{e({isLoading:!1})}},verifyPassword:async e=>{try{return(await Cb.post(`/v1/vault/verify`,{password:e})).valid}catch{return!1}},unlock:async n=>{let r=await t().verifyPassword(n);return r&&e({isUnlocked:!0}),r},lock:()=>e({isUnlocked:!1})}));function Db(){let e=et(),t=_h(e=>e.isAuthenticated),n=Eb(e=>e.checkStatus),[r,i]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{t&&n().then(()=>{i(!Eb.getState().hasPassword)})},[n,t]),(0,G.jsxs)(`div`,{className:`flex h-screen w-full bg-background text-foreground`,children:[(0,G.jsx)(`div`,{className:`hidden md:flex`,children:(0,G.jsx)(ch,{})}),(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col min-w-0`,children:[(0,G.jsx)(wb,{}),r&&(0,G.jsx)(`div`,{className:`bg-amber-500/10 border-b border-amber-500/20 px-4 py-2.5`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-between max-w-3xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-amber-700 dark:text-amber-400`,children:[(0,G.jsx)(eh,{className:`size-4 shrink-0`}),(0,G.jsx)(`span`,{children:`为了您的隐私安全,请先设置私密密码`})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(Y,{variant:`link`,size:`sm`,className:`h-auto p-0 text-amber-700 dark:text-amber-400 font-medium`,onClick:()=>e(`/vault`),children:`去设置 →`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>i(!1),className:`text-amber-700/60 dark:text-amber-400/60 hover:text-amber-700 dark:hover:text-amber-400`,children:(0,G.jsx)(ah,{className:`size-4`})})]})]})}),(0,G.jsx)(`main`,{className:`flex-1 overflow-auto p-4 md:p-6`,children:(0,G.jsx)(kt,{})}),(0,G.jsx)(Tb,{})]})]})}var Ob=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),kb={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ab={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},jb={disabled:!1,...Ab},Mb={valid(e){return e===null?null:e?{[Ob.valid]:``}:{[Ob.invalid]:``}}},Nb=v.createContext({invalid:void 0,name:void 0,validityData:{state:kb,errors:[],error:``,value:``,initialValue:null},setValidityData:di,disabled:void 0,touched:Ab.touched,setTouched:di,dirty:Ab.dirty,setDirty:di,filled:Ab.filled,setFilled:di,focused:Ab.focused,setFocused:di,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:jb,markedDirtyRef:{current:!1},registerFieldControl:di,validation:{getValidationProps:(e=pi)=>e,getInputValidationProps:(e=pi)=>e,inputRef:{current:null},commit:async()=>{}}});function Pb(e=!0){let t=v.useContext(Nb);if(t.setValidityData===di&&!e)throw Error(Pr(28));return t}var Fb=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:di,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Ib(){return v.useContext(Fb)}var Lb=v.createContext({controlId:void 0,registerControlId:di,labelId:void 0,setLabelId:di,messageIds:[],setMessageIds:di,getDescriptionProps:e=>e});function Rb(){return v.useContext(Lb)}function zb(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Pb(),s=v.useRef(null);s.current||=Symbol(),K(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}function Bb(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Rb(),o=_d(t),s=n?i:void 0,c=wr(()=>Symbol(`labelable-control`)),l=v.useRef(!1),u=v.useRef(t!=null),d=xa(()=>{!l.current||a===di||(l.current=!1,a(c.current,void 0))});return K(()=>{if(a===di)return;let e;if(n){let n=r?.current;e=Ui(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),v.useEffect(()=>d,[d]),i??o}var Vb=v.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=Pb(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=Rb(),O=Bb({id:i});K(()=>{let e=o!=null;C.inputRef.current?.value||e&&o!==``?x(!0):e&&o===``&&x(!1)},[C.inputRef,x,o]);let k=v.useRef(null);K(()=>{u&&k.current===za(Oa(k.current))&&b(!0)},[u,b]);let[A]=Rg({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,N=xa(()=>C.inputRef.current?.value);return zb(C.inputRef,{id:O,value:M,getValue:N}),Xs(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:C.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Pi(yi,e.nativeEvent)),_(t!==y.initialValue),x(t!==``)},onFocus(){b(!0)},onBlur(e){g(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),C.commit(e.currentTarget.value))}},C.getInputValidationProps(),f],stateAttributesMapping:Mb})}),Hb=v.createContext({disabled:!1});function Ub(){return v.useContext(Hb)}var Wb=v.createContext(void 0);function Gb(e=!0){let t=v.useContext(Wb);if(t===void 0&&!e)throw Error(Pr(3));return t}var Kb=v.forwardRef(function(e,t){return(0,G.jsx)(Vb,{ref:t,...e})});function qb({className:e,type:t,...n}){return(0,G.jsx)(Kb,{type:t,"data-slot":`input`,className:Cp(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function Jb({className:e,...t}){return(0,G.jsx)(`label`,{"data-slot":`label`,className:Cp(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function Yb(){let e=[{cx:250,cy:250,r:8},{cx:160,cy:130,r:4},{cx:360,cy:140,r:3},{cx:390,cy:290,r:5},{cx:330,cy:390,r:3},{cx:170,cy:400,r:4},{cx:110,cy:290,r:3},{cx:200,cy:80,r:5},{cx:310,cy:210,r:3},{cx:140,cy:220,r:3},{cx:280,cy:340,r:3},{cx:420,cy:240,r:3}];return(0,G.jsxs)(`svg`,{viewBox:`0 0 500 500`,className:`w-full h-full`,children:[(0,G.jsx)(`title`,{children:`Memory Network`}),(0,G.jsxs)(`defs`,{children:[(0,G.jsxs)(`radialGradient`,{id:`netGlow`,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:`#c9a227`,stopOpacity:`0.18`}),(0,G.jsx)(`stop`,{offset:`50%`,stopColor:`#c9a227`,stopOpacity:`0.05`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:`#c9a227`,stopOpacity:`0`})]}),(0,G.jsxs)(`filter`,{id:`glow`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`2`,result:`blur`}),(0,G.jsxs)(`feMerge`,{children:[(0,G.jsx)(`feMergeNode`,{in:`blur`}),(0,G.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`210`,fill:`url(#netGlow)`,children:(0,G.jsx)(`animate`,{attributeName:`r`,values:`210;230;210`,dur:`8s`,repeatCount:`indefinite`})}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`130`,fill:`none`,stroke:`#c9a227`,strokeWidth:`0.4`,opacity:`0.12`,children:(0,G.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`0 250 250`,to:`360 250 250`,dur:`60s`,repeatCount:`indefinite`})}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`175`,fill:`none`,stroke:`#c9a227`,strokeWidth:`0.25`,opacity:`0.08`,children:(0,G.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`360 250 250`,to:`0 250 250`,dur:`90s`,repeatCount:`indefinite`})}),[[0,1],[0,2],[0,3],[0,4],[0,5],[0,6],[0,7],[0,8],[0,9],[0,10],[0,11],[1,7],[1,9],[2,7],[2,8],[3,8],[3,4],[4,10],[5,10],[5,6],[6,9],[8,11],[3,11]].map(([t,n],r)=>(0,G.jsx)(`line`,{x1:e[t].cx,y1:e[t].cy,x2:e[n].cx,y2:e[n].cy,stroke:`#c9a227`,strokeWidth:`0.5`,opacity:`0.25`,children:(0,G.jsx)(`animate`,{attributeName:`opacity`,values:`0.25;0.5;0.25`,dur:`${3+r%4}s`,repeatCount:`indefinite`})},`conn-${t}-${n}`)),e.map((e,t)=>(0,G.jsxs)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,fill:`#c9a227`,opacity:t===0?1:.65,filter:t===0?`url(#glow)`:void 0,children:[(0,G.jsx)(`animate`,{attributeName:`r`,values:`${e.r};${e.r*1.5};${e.r}`,dur:`${2+t%3}s`,repeatCount:`indefinite`}),t===0&&(0,G.jsx)(`animate`,{attributeName:`opacity`,values:`1;0.6;1`,dur:`3s`,repeatCount:`indefinite`})]},`node-${e.cx}-${e.cy}`))]})}var Xb=[{icon:Wp,label:`永久记忆`},{icon:oh,label:`瞬间调取`},{icon:Wm,label:`隐私安全`}];function Zb(){let e=et(),{users:t,currentUserId:n,addUser:r,setCurrentUser:i,removeUser:a}=_h(),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(!1),m=async n=>{n.preventDefault(),d(``),l(!0);try{let n=window.location.origin,a=xb.create({baseURL:n,headers:{"X-API-Key":o},timeout:1e4});if((await a.get(`/health`)).status!==200)throw Error(`health check failed`);let s=`默认空间`,c=(await a.get(`/v1/spaces`)).data,l=Array.isArray(c)?c:c?.spaces||[];l.length>0&&l[0].name&&(s=l[0].name);let u=t.find(e=>e.apiKey===o);if(u){i(u.id),e(`/dashboard`);return}r({id:crypto.randomUUID(),name:s,apiKey:o,apiUrl:n,lastUsed:new Date().toISOString(),spaceName:s,isProtected:o===`c60beb98-7aab-4985-8c1d-29ffd6aff75a`}),e(`/dashboard`)}catch{d(`验证失败,请检查 API Key 是否正确`)}finally{l(!1)}},h=t=>{i(t.id),e(`/dashboard`)},g=(e,t)=>{e.stopPropagation(),a(t)};return(0,G.jsxs)(`div`,{className:`dark min-h-screen bg-[#070708] grid lg:grid-cols-[55%_45%]`,children:[(0,G.jsxs)(`div`,{className:`hidden lg:flex flex-col justify-between relative overflow-hidden p-12`,children:[(0,G.jsx)(`div`,{className:`absolute inset-0 opacity-[0.03]`,style:{backgroundImage:`radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0)`,backgroundSize:`40px 40px`}}),(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center scale-110`,children:(0,G.jsx)(Yb,{})}),(0,G.jsxs)(`div`,{className:`relative z-10 flex items-center gap-3`,children:[(0,G.jsx)(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-xl bg-[#c9a227]/10 border border-[#c9a227]/20`,children:(0,G.jsx)(Wp,{className:`h-5 w-5 text-[#c9a227]`})}),(0,G.jsx)(`span`,{className:`text-xl font-bold tracking-tight text-white`,children:`omem`})]}),(0,G.jsxs)(`div`,{className:`relative z-10 space-y-8`,children:[(0,G.jsxs)(`div`,{className:`space-y-3`,children:[(0,G.jsxs)(`div`,{className:`inline-flex items-center gap-2 rounded-full border border-[#c9a227]/20 bg-[#c9a227]/5 px-3 py-1 text-xs font-medium text-[#c9a227]`,children:[(0,G.jsx)(Km,{className:`h-3 w-3`}),`AI 记忆引擎`]}),(0,G.jsxs)(`h1`,{className:`text-5xl font-bold tracking-tight text-white leading-[1.1]`,children:[`让 AI 记住`,(0,G.jsx)(`br`,{}),(0,G.jsx)(`span`,{className:`text-[#c9a227]`,children:`你的一切`})]}),(0,G.jsxs)(`p`,{className:`text-lg text-white/40 max-w-sm leading-relaxed`,children:[`你的第二大脑,永远在线。`,(0,G.jsx)(`br`,{}),`每一次对话,都值得被铭记。`]})]}),(0,G.jsx)(`div`,{className:`flex gap-6`,children:Xb.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-white/40`,children:[(0,G.jsx)(e.icon,{className:`h-4 w-4 text-[#c9a227]/70`}),e.label]},e.label))})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col min-h-screen`,children:[(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center p-6`,children:(0,G.jsxs)(`div`,{className:`w-full max-w-md space-y-6`,children:[(0,G.jsxs)(`div`,{className:`lg:hidden text-center space-y-4 mb-2`,children:[(0,G.jsx)(`div`,{className:`inline-flex h-14 w-14 items-center justify-center rounded-2xl bg-[#c9a227]/10 border border-[#c9a227]/20`,children:(0,G.jsx)(Wp,{className:`h-7 w-7 text-[#c9a227]`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h1`,{className:`text-2xl font-bold text-white`,children:`omem`}),(0,G.jsx)(`p`,{className:`text-sm text-white/40 mt-1`,children:`让 AI 记住你的一切`})]})]}),(0,G.jsxs)(`div`,{className:`rounded-2xl border border-white/[0.08] bg-white/[0.03] backdrop-blur-xl p-6 space-y-6`,children:[(0,G.jsxs)(`div`,{className:`space-y-1`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`欢迎回来`}),(0,G.jsx)(`p`,{className:`text-sm text-white/40`,children:`输入 API Key 以访问您的记忆库`})]}),(0,G.jsxs)(`form`,{onSubmit:m,className:`space-y-4`,children:[(0,G.jsxs)(`div`,{className:`space-y-2`,children:[(0,G.jsx)(Jb,{htmlFor:`apiKey`,className:`text-white/70`,children:`API Key`}),(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(bm,{className:`absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-white/30`}),(0,G.jsx)(qb,{id:`apiKey`,type:f?`text`:`password`,placeholder:`输入您的 omem API Key`,value:o,onChange:e=>s(e.target.value),className:`pl-9 pr-10 bg-white/[0.05] border-white/10 text-white placeholder:text-white/25 focus:border-[#c9a227]/50 focus:ring-[#c9a227]/20`,disabled:c,required:!0}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>p(!f),className:`absolute right-3 top-1/2 -translate-y-1/2 text-white/30 hover:text-white/70 transition-colors`,tabIndex:-1,children:f?(0,G.jsx)(am,{className:`h-4 w-4`}):(0,G.jsx)(om,{className:`h-4 w-4`})})]})]}),u&&(0,G.jsx)(`div`,{className:`rounded-lg bg-red-500/10 border border-red-500/20 p-3 text-sm text-red-400`,children:u}),(0,G.jsx)(Y,{type:`submit`,disabled:c||!o,className:`w-full bg-[#c9a227] hover:bg-[#d4b43a] text-[#070708] font-semibold transition-all disabled:opacity-50 disabled:cursor-not-allowed`,children:c?(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`h-4 w-4 border-2 border-[#070708]/30 border-t-[#070708] rounded-full animate-spin`}),`验证中...`]}):(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[`验证并登录`,(0,G.jsx)(zp,{className:`h-4 w-4`})]})})]})]}),t.length>0&&(0,G.jsxs)(`div`,{className:`rounded-2xl border border-white/[0.08] bg-white/[0.03] backdrop-blur-xl p-6 space-y-4`,children:[(0,G.jsx)(`h3`,{className:`text-sm font-medium text-white/70`,children:`已保存的账号`}),(0,G.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>(0,G.jsxs)(`div`,{className:`group flex w-full items-center rounded-xl border transition-all overflow-hidden ${n===e.id?`border-[#c9a227]/30 bg-[#c9a227]/5`:`border-white/10 bg-white/[0.03] hover:border-white/20 hover:bg-white/[0.06]`}`,children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>h(e),className:`flex flex-1 items-center gap-3 p-3 text-left min-w-0`,children:[(0,G.jsx)(`div`,{className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-lg transition-colors ${n===e.id?`bg-[#c9a227] text-[#070708]`:`bg-white/10 text-white/40`}`,children:n===e.id?(0,G.jsx)(qp,{className:`h-4 w-4`}):(0,G.jsx)(bm,{className:`h-4 w-4`})}),(0,G.jsxs)(`div`,{className:`space-y-0.5 min-w-0`,children:[(0,G.jsx)(`p`,{className:`text-sm font-medium text-white/90 truncate`,children:e.spaceName||e.name}),(0,G.jsx)(`p`,{className:`text-xs text-white/35`,children:wp(e.apiKey)})]})]}),(0,G.jsx)(`div`,{className:`p-2 opacity-0 transition-opacity group-hover:opacity-100`,children:(0,G.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon`,onClick:t=>{t.stopPropagation(),g(t,e.id)},disabled:e.isProtected,className:`h-8 w-8 disabled:opacity-0 disabled:cursor-not-allowed text-white/40 hover:text-red-400 hover:bg-red-500/10`,title:e.isProtected?`受保护的账号无法删除`:`删除账号`,children:(0,G.jsx)(Qm,{className:`h-3.5 w-3.5`})})})]},e.id))})]})]})}),(0,G.jsx)(Tb,{})]})]})}function Qb({className:e,size:t=`default`,...n}){return(0,G.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:Cp(`group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function $b({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-header`,className:Cp(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function ex({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-title`,className:Cp(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function tx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-description`,className:Cp(`text-sm text-muted-foreground`,e),...t})}function nx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-content`,className:Cp(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}function rx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`skeleton`,className:Cp(`animate-pulse rounded-md bg-muted`,e),...t})}var ix=o(((e,t)=>{t.exports=Array.isArray})),ax=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ox=o(((e,t)=>{var n=ax(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),sx=o(((e,t)=>{t.exports=ox().Symbol})),cx=o(((e,t)=>{var n=sx(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),lx=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),ux=o(((e,t)=>{var n=sx(),r=cx(),i=lx(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),dx=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),fx=o(((e,t)=>{var n=ux(),r=dx(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),px=o(((e,t)=>{var n=ix(),r=fx(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),mx=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),hx=o(((e,t)=>{var n=ux(),r=mx(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),gx=o(((e,t)=>{t.exports=ox()[`__core-js_shared__`]})),_x=o(((e,t)=>{var n=gx(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),vx=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),yx=o(((e,t)=>{var n=hx(),r=_x(),i=mx(),a=vx(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),bx=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),xx=o(((e,t)=>{var n=yx(),r=bx();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Sx=o(((e,t)=>{t.exports=xx()(Object,`create`)})),Cx=o(((e,t)=>{var n=Sx();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),wx=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),Tx=o(((e,t)=>{var n=Sx(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Ex=o(((e,t)=>{var n=Sx(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Dx=o(((e,t)=>{var n=Sx(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Ox=o(((e,t)=>{var n=Cx(),r=wx(),i=Tx(),a=Ex(),o=Dx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),kx=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ax=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),jx=o(((e,t)=>{var n=Ax();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Mx=o(((e,t)=>{var n=jx(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Nx=o(((e,t)=>{var n=jx();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Px=o(((e,t)=>{var n=jx();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Fx=o(((e,t)=>{var n=jx();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Ix=o(((e,t)=>{var n=kx(),r=Mx(),i=Nx(),a=Px(),o=Fx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Lx=o(((e,t)=>{t.exports=xx()(ox(),`Map`)})),Rx=o(((e,t)=>{var n=Ox(),r=Ix(),i=Lx();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),zx=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Bx=o(((e,t)=>{var n=zx();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Vx=o(((e,t)=>{var n=Bx();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Hx=o(((e,t)=>{var n=Bx();function r(e){return n(this,e).get(e)}t.exports=r})),Ux=o(((e,t)=>{var n=Bx();function r(e){return n(this,e).has(e)}t.exports=r})),Wx=o(((e,t)=>{var n=Bx();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Gx=o(((e,t)=>{var n=Rx(),r=Vx(),i=Hx(),a=Ux(),o=Wx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Kx=o(((e,t)=>{var n=Gx(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),qx=o(((e,t)=>{var n=Kx(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Jx=o(((e,t)=>{var n=qx(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Yx=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Xx=o(((e,t)=>{var n=sx(),r=Yx(),i=ix(),a=fx(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Zx=o(((e,t)=>{var n=Xx();function r(e){return e==null?``:n(e)}t.exports=r})),Qx=o(((e,t)=>{var n=ix(),r=px(),i=Jx(),a=Zx();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),$x=o(((e,t)=>{var n=fx(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),eS=o(((e,t)=>{var n=Qx(),r=$x();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),tS=o(((e,t)=>{var n=eS();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),nS=o(((e,t)=>{function n(e){return e==null}t.exports=n})),rS=o(((e,t)=>{var n=ux(),r=ix(),i=dx(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),iS=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),aS=o(((e,t)=>{t.exports=iS()})),oS=o(((e,t)=>{var n=ux(),r=dx(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),sS=o(((e,t)=>{var n=oS();function r(e){return n(e)&&e!=+e}t.exports=r})),cS=l(rS()),lS=l(sS()),uS=l(tS()),dS=l(oS()),fS=l(nS()),pS=function(e){return e===0?0:e>0?1:-1},mS=function(e){return(0,cS.default)(e)&&e.indexOf(`%`)===e.length-1},Z=function(e){return(0,dS.default)(e)&&!(0,lS.default)(e)},hS=function(e){return(0,fS.default)(e)},gS=function(e){return Z(e)||(0,cS.default)(e)},_S=0,vS=function(e){var t=++_S;return`${e||``}${t}`},yS=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(e)&&!(0,cS.default)(e))return n;var i;if(mS(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,lS.default)(i)&&(i=n),r&&i>t&&(i=t),i},bS=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},xS=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},SS=function(e,t){return Z(e)&&Z(t)?function(n){return e+n*(t-e)}:function(){return t}};function CS(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,uS.default)(e,t))===n})}var wS=function(e,t){return Z(e)&&Z(t)?e-t:(0,cS.default)(e)&&(0,cS.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function TS(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var ES=l(mx());function DS(e){"@babel/helpers - typeof";return DS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DS(e)}var OS=[`viewBox`,`children`],kS=`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`.split(`.`),AS=[`points`,`pathLength`],jS={svg:OS,polygon:AS,polyline:AS},MS=`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`.split(`.`),NS=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,v.isValidElement)(e)&&(n=e.props),!(0,ES.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){MS.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},PS=function(e,t,n){return function(r){return e(t,n,r),null}},FS=function(e,t,n){if(!(0,ES.default)(e)||DS(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];MS.includes(i)&&typeof a==`function`&&(r||={},r[i]=PS(a,t,n))}),r},IS=l(hx()),LS=aS(),RS=[`children`],zS=[`children`];function BS(e,t){if(e==null)return{};var n=VS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},HS(e)}var US={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`},WS=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},GS=null,KS=null,qS=function e(t){if(t===GS&&Array.isArray(KS))return KS;var n=[];return v.Children.forEach(t,function(t){(0,fS.default)(t)||((0,LS.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),KS=n,GS=t,n};function JS(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return WS(e)}):[WS(t)],qS(e).forEach(function(e){var t=(0,uS.default)(e,`type.displayName`)||(0,uS.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function YS(e,t){var n=JS(e,t);return n&&n[0]}var XS=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Z(n)||n<=0||!Z(r)||r<=0)},ZS=`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`.split(`.`),QS=function(e){return e&&e.type&&(0,cS.default)(e.type)&&ZS.indexOf(e.type)>=0},$S=function(e){return e&&HS(e)===`object`&&`clipDot`in e},eC=function(e,t,n,r){var i=jS?.[r]??[];return t.startsWith(`data-`)||!(0,IS.default)(e)&&(r&&i.includes(t)||kS.includes(t))||n&&MS.includes(t)},tC=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,v.isValidElement)(e)&&(r=e.props),!(0,ES.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){eC(r?.[e],e,t,n)&&(i[e]=r[e])}),i},nC=function e(t,n){if(t===n)return!0;var r=v.Children.count(t);if(r!==v.Children.count(n))return!1;if(r===0)return!0;if(r===1)return rC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!rC(a,o))return!1}return!0},rC=function(e,t){if((0,fS.default)(e)&&(0,fS.default)(t))return!0;if(!(0,fS.default)(e)&&!(0,fS.default)(t)){var n=e.props||{},r=n.children,i=BS(n,RS),a=t.props||{},o=a.children,s=BS(a,zS);return r&&o?TS(i,s)&&nC(r,o):!r&&!o?TS(i,s):!1}return!1},iC=function(e,t){var n=[],r={};return qS(e).forEach(function(e,i){if(QS(e))n.push(e);else if(e){var a=WS(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},aC=function(e){var t=e&&e.type;return t&&US[t]?US[t]:null},oC=function(e,t){return qS(t).indexOf(e)},sC=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function cC(){return cC=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},cC.apply(this,arguments)}function lC(e,t){if(e==null)return{};var n=uC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dC(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=lC(e,sC),u=i||{width:n,height:r,x:0,y:0},d=Yd(`recharts-surface`,a);return v.createElement(`svg`,cC({},tC(l,!0,`svg`),{className:d,width:n,height:r,style:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`}),v.createElement(`title`,null,s),v.createElement(`desc`,null,c),t)}var fC=[`children`,`className`];function pC(){return pC=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},pC.apply(this,arguments)}function mC(e,t){if(e==null)return{};var n=hC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var gC=v.forwardRef(function(e,t){var n=e.children,r=e.className,i=mC(e,fC),a=Yd(`recharts-layer`,r);return v.createElement(`g`,pC({className:a},tC(i,!0),{ref:t}),n)}),_C=!1,vC=function(e,t){var n=[...arguments].slice(2);if(_C&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,function(){return n[r++]}))}},yC=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),bC=o(((e,t)=>{var n=yC();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),xC=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),SC=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),CC=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),wC=o(((e,t)=>{var n=SC(),r=xC(),i=CC();function a(e){return r(e)?i(e):n(e)}t.exports=a})),TC=o(((e,t)=>{var n=bC(),r=xC(),i=wC(),a=Zx();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),EC=o(((e,t)=>{t.exports=TC()(`toUpperCase`)}));function DC(e){return function(){return e}}var OC=Math.cos,kC=Math.sin,AC=Math.sqrt,jC=Math.PI;jC/2;var MC=2*jC,NC=Math.PI,PC=2*NC,FC=1e-6,IC=PC-FC;function LC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function RC(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return LC;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var zC=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?LC:RC(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>FC)if(!(Math.abs(u*s-c*l)>FC)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((NC-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>FC&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>FC||Math.abs(this._y1-l)>FC)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%PC+PC),d>IC?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>FC&&this._append`A${n},${n},0,${+(d>=NC)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function BC(){return new zC}BC.prototype=zC.prototype;function VC(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new zC(t)}Array.prototype.slice;function HC(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function UC(e){this._context=e}UC.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 WC(e){return new UC(e)}function GC(e){return e[0]}function KC(e){return e[1]}function qC(e,t){var n=DC(!0),r=null,i=WC,a=null,o=VC(s);e=typeof e==`function`?e:e===void 0?GC:DC(e),t=typeof t==`function`?t:t===void 0?KC:DC(t);function s(s){var c,l=(s=HC(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:DC(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function JC(e,t,n){var r=null,i=DC(!0),a=null,o=WC,s=null,c=VC(l);e=typeof e==`function`?e:e===void 0?GC:DC(+e),t=typeof t==`function`?t:DC(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?KC:DC(+n);function l(l){var u,d,f,p=(l=HC(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return qC().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:DC(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:DC(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:DC(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var YC=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function XC(e){return new YC(e,!0)}function ZC(e){return new YC(e,!1)}var QC={draw(e,t){let n=AC(t/jC);e.moveTo(n,0),e.arc(0,0,n,0,MC)}},$C={draw(e,t){let n=AC(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ew=AC(1/3),tw=ew*2,nw={draw(e,t){let n=AC(t/tw),r=n*ew;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rw={draw(e,t){let n=AC(t),r=-n/2;e.rect(r,r,n,n)}},iw=.8908130915292852,aw=kC(jC/10)/kC(7*jC/10),ow=kC(MC/10)*aw,sw=-OC(MC/10)*aw,cw={draw(e,t){let n=AC(t*iw),r=ow*n,i=sw*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=MC*t/5,o=OC(a),s=kC(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},lw=AC(3),uw={draw(e,t){let n=-AC(t/(lw*3));e.moveTo(0,n*2),e.lineTo(-lw*n,-n),e.lineTo(lw*n,-n),e.closePath()}},dw=-.5,fw=AC(3)/2,pw=1/AC(12),mw=(pw/2+1)*3,hw={draw(e,t){let n=AC(t/mw),r=n/2,i=n*pw,a=r,o=n*pw+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(dw*r-fw*i,fw*r+dw*i),e.lineTo(dw*a-fw*o,fw*a+dw*o),e.lineTo(dw*s-fw*c,fw*s+dw*c),e.lineTo(dw*r+fw*i,dw*i-fw*r),e.lineTo(dw*a+fw*o,dw*o-fw*a),e.lineTo(dw*s+fw*c,dw*c-fw*s),e.closePath()}};function gw(e,t){let n=null,r=VC(i);e=typeof e==`function`?e:DC(e||QC),t=typeof t==`function`?t:DC(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:DC(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function _w(){}function vw(e,t,n){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+n)/6)}function yw(e){this._context=e}yw.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:vw(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:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bw(e){return new yw(e)}function xw(e){this._context=e}xw.prototype={areaStart:_w,areaEnd:_w,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:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sw(e){return new xw(e)}function Cw(e){this._context=e}Cw.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ww(e){return new Cw(e)}function Tw(e){this._context=e}Tw.prototype={areaStart:_w,areaEnd:_w,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 Ew(e){return new Tw(e)}function Dw(e){return e<0?-1:1}function Ow(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Dw(a)+Dw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Aw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function jw(e){this._context=e}jw.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:Aw(this,this._t0,kw(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 n=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,Aw(this,kw(this,n=Ow(this,e,t)),n);break;default:Aw(this,this._t0,n=Ow(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mw(e){this._context=new Nw(e)}(Mw.prototype=Object.create(jw.prototype)).point=function(e,t){jw.prototype.point.call(this,t,e)};function Nw(e){this._context=e}Nw.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Pw(e){return new jw(e)}function Fw(e){return new Mw(e)}function Iw(e){this._context=e}Iw.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Lw(e),i=Lw(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===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 Lw(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Rw(e){return new Iw(e)}function zw(e,t){this._context=e,this._t=t}zw.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Bw(e){return new zw(e,.5)}function Vw(e){return new zw(e,0)}function Hw(e){return new zw(e,1)}function Uw(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ww(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gw(e,t){return e[t]}function Kw(e){let t=[];return t.key=e,t}function qw(){var e=DC([]),t=Ww,n=Uw,r=Gw;function i(i){var a=Array.from(e.apply(this,arguments),Kw),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=HC(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:DC(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:DC(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Ww:typeof e==`function`?e:DC(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Uw,i):n},i}function Jw(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Uw(e,t)}}function Yw(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Uw(e,t)}}function Xw(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Uw(e,t)}}var Zw=l(EC());function Qw(e){"@babel/helpers - typeof";return Qw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qw(e)}var $w=[`type`,`size`,`sizeType`];function eT(){return eT=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},eT.apply(this,arguments)}function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tT(Object(n),!0).forEach(function(t){rT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rT(e,t,n){return t=iT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iT(e){var t=aT(e,`string`);return Qw(t)==`symbol`?t:t+``}function aT(e,t){if(Qw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Qw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oT(e,t){if(e==null)return{};var n=sT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cT={symbolCircle:QC,symbolCross:$C,symbolDiamond:nw,symbolSquare:rw,symbolStar:cw,symbolTriangle:uw,symbolWye:hw},lT=Math.PI/180,uT=function(e){return cT[`symbol${(0,Zw.default)(e)}`]||QC},dT=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*lT;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},fT=function(e,t){cT[`symbol${(0,Zw.default)(e)}`]=t},pT=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=nT(nT({},oT(e,$w)),{},{type:n,size:i,sizeType:o}),c=function(){var e=uT(n);return gw().type(e).size(dT(i,o,n))()},l=s.className,u=s.cx,d=s.cy,f=tC(s,!0);return u===+u&&d===+d&&i===+i?v.createElement(`path`,eT({},f,{className:Yd(`recharts-symbols`,l),transform:`translate(${u}, ${d})`,d:c()})):null};pT.registerSymbol=fT;function mT(e){"@babel/helpers - typeof";return mT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mT(e)}function hT(){return hT=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},hT.apply(this,arguments)}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _T(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gT(Object(n),!0).forEach(function(t){CT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,wT(r.key),r)}}function bee(e,t,n){return t&&yT(e.prototype,t),n&&yT(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xee(e,t,n){return t=xT(t),See(e,bT()?Reflect.construct(t,n||[],xT(e).constructor):t.apply(e,n))}function See(e,t){if(t&&(mT(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Cee(e)}function Cee(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function bT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bT=function(){return!!e})()}function xT(e){return xT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xT(e)}function wee(e,t){if(typeof t!=`function`&&t!==null)throw 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&&ST(e,t)}function ST(e,t){return ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ST(e,t)}function CT(e,t,n){return t=wT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(e){var t=Tee(e,`string`);return mT(t)==`symbol`?t:t+``}function Tee(e,t){if(mT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var TT=32,ET=function(e){function t(){return vT(this,t),xee(this,t,arguments)}return wee(t,e),bee(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=TT/2,r=TT/6,i=TT/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return v.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:TT,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return v.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
|
|
19
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=zy(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&pb.assertOptions(n,{silentJSONParsing:mb.transitional(mb.boolean),forcedJSONParsing:mb.transitional(mb.boolean),clarifyTimeoutError:mb.transitional(mb.boolean),legacyInterceptorReqResOrdering:mb.transitional(mb.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:pb.assertOptions(r,{encode:mb.function,serialize:mb.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),pb.assertOptions(t,{baseUrl:mb.spelling(`baseURL`),withXsrfToken:mb.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=Ey.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||ty;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[cb.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=cb.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=zy(this.defaults,e),$v(Ly(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){hb.prototype[e]=function(t,n){return this.request(zy(n||{},{method:e,url:t,data:(n||{}).data}))}}),X.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(zy(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}hb.prototype[e]=t(),hb.prototype[e+`Form`]=t(!0)});var gb=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ky(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function _b(e){return function(t){return e.apply(null,t)}}function vb(e){return X.isObject(e)&&e.isAxiosError===!0}var yb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yb).forEach(([e,t])=>{yb[t]=e});function bb(e){let t=new hb(e),n=j_(hb.prototype.request,t);return X.extend(n,hb.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return bb(zy(e,t))},n}var xb=bb(hy);xb.Axios=hb,xb.CanceledError=ky,xb.CancelToken=gb,xb.isCancel=Oy,xb.VERSION=lb,xb.toFormData=Jv,xb.AxiosError=Hv,xb.Cancel=xb.CanceledError,xb.all=function(e){return Promise.all(e)},xb.spread=_b,xb.isAxiosError=vb,xb.mergeConfig=zy,xb.AxiosHeaders=Ey,xb.formToJSON=e=>py(X.isHTMLForm(e)?new FormData(e):e),xb.getAdapter=ob.getAdapter,xb.HttpStatusCode=yb,xb.default=xb;var Sb=typeof window<`u`&&window.__OMEM_API_URL__&&window.__OMEM_API_URL__!==`__OMEM_API_URL__`?window.__OMEM_API_URL__:`/`,Cb=xb.create({baseURL:Sb,timeout:3e4,headers:{"Content-Type":`application/json`}});Cb.interceptors.request.use(e=>{let t=_h.getState().users.find(e=>e.id===_h.getState().currentUserId);return t?.apiKey&&(e.headers[`X-API-Key`]=t.apiKey,e.headers[`X-Agent-ID`]=`omem-web`),e}),Cb.interceptors.response.use(e=>e.data,e=>(e.response?.status===401&&(_h.getState().logout(),window.location.href=`/login`),Promise.reject(e)));function wb(){let e=et(),{users:t,currentUserId:n,logout:r}=_h(),i=t.find(e=>e.id===n),[a,o]=(0,v.useState)(!0),[s,c]=(0,v.useState)(Date.now());return(0,v.useEffect)(()=>{let e=async()=>{try{await Cb.get(`/health`),o(!0),c(Date.now())}catch{o(!1)}};e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]),(0,G.jsxs)(`header`,{className:`flex h-14 items-center justify-between border-b border-border bg-card px-4`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(see,{}),(0,G.jsx)(`span`,{className:`text-sm font-medium text-muted-foreground truncate max-w-[120px] md:max-w-none`,children:i?.spaceName||i?.name||`未登录`}),(0,G.jsx)(Tp,{children:(0,G.jsxs)(Ep,{children:[(0,G.jsx)(Dp,{children:(0,G.jsx)(`span`,{className:`inline-block h-2 w-2 rounded-full ${a?`bg-[#22c55e] animate-pulse`:`bg-[#ef4444]`}`})}),(0,G.jsx)(Op,{children:a?`连接正常 - 上次心跳: ${Math.round((Date.now()-s)/1e3)}秒前`:`连接断开`})]})})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(kh,{}),(0,G.jsxs)(T_,{children:[(0,G.jsxs)(E_,{className:`flex items-center gap-1.5 rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,G.jsx)(jg,{className:`h-7 w-7`,children:(0,G.jsx)(uee,{className:`text-xs bg-primary/10 text-primary`,children:(0,G.jsx)(rh,{className:`h-3.5 w-3.5`})})}),(0,G.jsx)(Jp,{className:`h-3 w-3 text-muted-foreground`})]}),(0,G.jsxs)(D_,{align:`end`,className:`w-48`,children:[(0,G.jsx)(O_,{children:(0,G.jsxs)(`div`,{className:`flex flex-col`,children:[(0,G.jsx)(`span`,{className:`text-sm font-medium`,children:i?.spaceName||`用户`}),(0,G.jsx)(`span`,{className:`text-xs text-muted-foreground truncate max-w-[180px]`,children:i?.apiKey?`${i.apiKey.slice(0,8)}...`:`未登录`})]})}),(0,G.jsx)(A_,{}),(0,G.jsxs)(k_,{onClick:()=>e(`/profile`),children:[(0,G.jsx)(rh,{className:`size-4 mr-2`}),`用户画像`]}),(0,G.jsxs)(k_,{onClick:()=>e(`/settings`),children:[(0,G.jsx)(Wm,{className:`size-4 mr-2`}),`系统设置`]}),(0,G.jsx)(A_,{}),(0,G.jsxs)(k_,{variant:`destructive`,onClick:()=>{r(),e(`/login`)},children:[(0,G.jsx)(Dm,{className:`size-4 mr-2`}),`退出登录`]})]})]})]})]})}function Tb(){return(0,G.jsx)(`footer`,{className:`border-t border-border bg-card px-4 py-2`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-center gap-4 text-xs text-muted-foreground`,children:[(0,G.jsx)(`span`,{children:`© 2026 omem`}),(0,G.jsx)(`a`,{href:`https://beian.miit.gov.cn/`,target:`_blank`,rel:`noopener noreferrer`,className:`hover:text-foreground transition-colors`,children:`吉ICP备2026003061号`})]})})}var Eb=mh((e,t)=>({isUnlocked:!1,hasPassword:!1,isLoading:!1,checkStatus:async()=>{try{e({hasPassword:(await Cb.get(`/v1/vault/status`)).has_password})}catch{e({hasPassword:!1})}},setPassword:async t=>{e({isLoading:!0});try{await Cb.post(`/v1/vault/password`,{password:t}),e({isUnlocked:!0,hasPassword:!0})}finally{e({isLoading:!1})}},verifyPassword:async e=>{try{return(await Cb.post(`/v1/vault/verify`,{password:e})).valid}catch{return!1}},unlock:async n=>{let r=await t().verifyPassword(n);return r&&e({isUnlocked:!0}),r},lock:()=>e({isUnlocked:!1})}));function Db(){let e=et(),t=_h(e=>e.isAuthenticated),n=Eb(e=>e.checkStatus),[r,i]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{t&&n().then(()=>{i(!Eb.getState().hasPassword)})},[n,t]),(0,G.jsxs)(`div`,{className:`flex h-screen w-full bg-background text-foreground`,children:[(0,G.jsx)(`div`,{className:`hidden md:flex`,children:(0,G.jsx)(ch,{})}),(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col min-w-0`,children:[(0,G.jsx)(wb,{}),r&&(0,G.jsx)(`div`,{className:`bg-amber-500/10 border-b border-amber-500/20 px-4 py-2.5`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-between max-w-3xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-amber-700 dark:text-amber-400`,children:[(0,G.jsx)(eh,{className:`size-4 shrink-0`}),(0,G.jsx)(`span`,{children:`为了您的隐私安全,请先设置私密密码`})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(Y,{variant:`link`,size:`sm`,className:`h-auto p-0 text-amber-700 dark:text-amber-400 font-medium`,onClick:()=>e(`/vault`),children:`去设置 →`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>i(!1),className:`text-amber-700/60 dark:text-amber-400/60 hover:text-amber-700 dark:hover:text-amber-400`,children:(0,G.jsx)(ah,{className:`size-4`})})]})]})}),(0,G.jsx)(`main`,{className:`flex-1 overflow-auto p-4 md:p-6`,children:(0,G.jsx)(kt,{})}),(0,G.jsx)(Tb,{})]})]})}var Ob=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),kb={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ab={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},jb={disabled:!1,...Ab},Mb={valid(e){return e===null?null:e?{[Ob.valid]:``}:{[Ob.invalid]:``}}},Nb=v.createContext({invalid:void 0,name:void 0,validityData:{state:kb,errors:[],error:``,value:``,initialValue:null},setValidityData:di,disabled:void 0,touched:Ab.touched,setTouched:di,dirty:Ab.dirty,setDirty:di,filled:Ab.filled,setFilled:di,focused:Ab.focused,setFocused:di,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:jb,markedDirtyRef:{current:!1},registerFieldControl:di,validation:{getValidationProps:(e=pi)=>e,getInputValidationProps:(e=pi)=>e,inputRef:{current:null},commit:async()=>{}}});function Pb(e=!0){let t=v.useContext(Nb);if(t.setValidityData===di&&!e)throw Error(Pr(28));return t}var Fb=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:di,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Ib(){return v.useContext(Fb)}var Lb=v.createContext({controlId:void 0,registerControlId:di,labelId:void 0,setLabelId:di,messageIds:[],setMessageIds:di,getDescriptionProps:e=>e});function Rb(){return v.useContext(Lb)}function zb(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Pb(),s=v.useRef(null);s.current||=Symbol(),K(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}function Bb(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Rb(),o=_d(t),s=n?i:void 0,c=wr(()=>Symbol(`labelable-control`)),l=v.useRef(!1),u=v.useRef(t!=null),d=xa(()=>{!l.current||a===di||(l.current=!1,a(c.current,void 0))});return K(()=>{if(a===di)return;let e;if(n){let n=r?.current;e=Ui(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),v.useEffect(()=>d,[d]),i??o}var Vb=v.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=Pb(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=Rb(),O=Bb({id:i});K(()=>{let e=o!=null;C.inputRef.current?.value||e&&o!==``?x(!0):e&&o===``&&x(!1)},[C.inputRef,x,o]);let k=v.useRef(null);K(()=>{u&&k.current===za(Oa(k.current))&&b(!0)},[u,b]);let[A]=Rg({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,N=xa(()=>C.inputRef.current?.value);return zb(C.inputRef,{id:O,value:M,getValue:N}),Xs(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:C.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Pi(yi,e.nativeEvent)),_(t!==y.initialValue),x(t!==``)},onFocus(){b(!0)},onBlur(e){g(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),C.commit(e.currentTarget.value))}},C.getInputValidationProps(),f],stateAttributesMapping:Mb})}),Hb=v.createContext({disabled:!1});function Ub(){return v.useContext(Hb)}var Wb=v.createContext(void 0);function Gb(e=!0){let t=v.useContext(Wb);if(t===void 0&&!e)throw Error(Pr(3));return t}var Kb=v.forwardRef(function(e,t){return(0,G.jsx)(Vb,{ref:t,...e})});function qb({className:e,type:t,...n}){return(0,G.jsx)(Kb,{type:t,"data-slot":`input`,className:Cp(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function Jb({className:e,...t}){return(0,G.jsx)(`label`,{"data-slot":`label`,className:Cp(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function Yb(){let e=[{cx:250,cy:250,r:8},{cx:160,cy:130,r:4},{cx:360,cy:140,r:3},{cx:390,cy:290,r:5},{cx:330,cy:390,r:3},{cx:170,cy:400,r:4},{cx:110,cy:290,r:3},{cx:200,cy:80,r:5},{cx:310,cy:210,r:3},{cx:140,cy:220,r:3},{cx:280,cy:340,r:3},{cx:420,cy:240,r:3}];return(0,G.jsxs)(`svg`,{viewBox:`0 0 500 500`,className:`w-full h-full`,children:[(0,G.jsx)(`title`,{children:`Memory Network`}),(0,G.jsxs)(`defs`,{children:[(0,G.jsxs)(`radialGradient`,{id:`netGlow`,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:`#c9a227`,stopOpacity:`0.18`}),(0,G.jsx)(`stop`,{offset:`50%`,stopColor:`#c9a227`,stopOpacity:`0.05`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:`#c9a227`,stopOpacity:`0`})]}),(0,G.jsxs)(`filter`,{id:`glow`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`2`,result:`blur`}),(0,G.jsxs)(`feMerge`,{children:[(0,G.jsx)(`feMergeNode`,{in:`blur`}),(0,G.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`210`,fill:`url(#netGlow)`,children:(0,G.jsx)(`animate`,{attributeName:`r`,values:`210;230;210`,dur:`8s`,repeatCount:`indefinite`})}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`130`,fill:`none`,stroke:`#c9a227`,strokeWidth:`0.4`,opacity:`0.12`,children:(0,G.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`0 250 250`,to:`360 250 250`,dur:`60s`,repeatCount:`indefinite`})}),(0,G.jsx)(`circle`,{cx:`250`,cy:`250`,r:`175`,fill:`none`,stroke:`#c9a227`,strokeWidth:`0.25`,opacity:`0.08`,children:(0,G.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`360 250 250`,to:`0 250 250`,dur:`90s`,repeatCount:`indefinite`})}),[[0,1],[0,2],[0,3],[0,4],[0,5],[0,6],[0,7],[0,8],[0,9],[0,10],[0,11],[1,7],[1,9],[2,7],[2,8],[3,8],[3,4],[4,10],[5,10],[5,6],[6,9],[8,11],[3,11]].map(([t,n],r)=>(0,G.jsx)(`line`,{x1:e[t].cx,y1:e[t].cy,x2:e[n].cx,y2:e[n].cy,stroke:`#c9a227`,strokeWidth:`0.5`,opacity:`0.25`,children:(0,G.jsx)(`animate`,{attributeName:`opacity`,values:`0.25;0.5;0.25`,dur:`${3+r%4}s`,repeatCount:`indefinite`})},`conn-${t}-${n}`)),e.map((e,t)=>(0,G.jsxs)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,fill:`#c9a227`,opacity:t===0?1:.65,filter:t===0?`url(#glow)`:void 0,children:[(0,G.jsx)(`animate`,{attributeName:`r`,values:`${e.r};${e.r*1.5};${e.r}`,dur:`${2+t%3}s`,repeatCount:`indefinite`}),t===0&&(0,G.jsx)(`animate`,{attributeName:`opacity`,values:`1;0.6;1`,dur:`3s`,repeatCount:`indefinite`})]},`node-${e.cx}-${e.cy}`))]})}var Xb=[{icon:Wp,label:`永久记忆`},{icon:oh,label:`瞬间调取`},{icon:Wm,label:`隐私安全`}];function Zb(){let e=et(),{users:t,currentUserId:n,addUser:r,setCurrentUser:i,removeUser:a}=_h(),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(!1),m=async n=>{n.preventDefault(),d(``),l(!0);try{let n=window.__OMEM_API_URL__&&window.__OMEM_API_URL__!==`__OMEM_API_URL__`?window.__OMEM_API_URL__:window.location.origin,a=xb.create({baseURL:n,headers:{"X-API-Key":o},timeout:1e4});if((await a.get(`/health`)).status!==200)throw Error(`health check failed`);let s=`默认空间`,c=(await a.get(`/v1/spaces`)).data,l=Array.isArray(c)?c:c?.spaces||[];l.length>0&&l[0].name&&(s=l[0].name);let u=t.find(e=>e.apiKey===o);if(u){i(u.id),e(`/dashboard`);return}r({id:crypto.randomUUID(),name:s,apiKey:o,apiUrl:n,lastUsed:new Date().toISOString(),spaceName:s,isProtected:o===`c60beb98-7aab-4985-8c1d-29ffd6aff75a`}),e(`/dashboard`)}catch{d(`验证失败,请检查 API Key 是否正确`)}finally{l(!1)}},h=t=>{i(t.id),e(`/dashboard`)},g=(e,t)=>{e.stopPropagation(),a(t)};return(0,G.jsxs)(`div`,{className:`dark min-h-screen bg-[#070708] grid lg:grid-cols-[55%_45%]`,children:[(0,G.jsxs)(`div`,{className:`hidden lg:flex flex-col justify-between relative overflow-hidden p-12`,children:[(0,G.jsx)(`div`,{className:`absolute inset-0 opacity-[0.03]`,style:{backgroundImage:`radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0)`,backgroundSize:`40px 40px`}}),(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center scale-110`,children:(0,G.jsx)(Yb,{})}),(0,G.jsxs)(`div`,{className:`relative z-10 flex items-center gap-3`,children:[(0,G.jsx)(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-xl bg-[#c9a227]/10 border border-[#c9a227]/20`,children:(0,G.jsx)(Wp,{className:`h-5 w-5 text-[#c9a227]`})}),(0,G.jsx)(`span`,{className:`text-xl font-bold tracking-tight text-white`,children:`omem`})]}),(0,G.jsxs)(`div`,{className:`relative z-10 space-y-8`,children:[(0,G.jsxs)(`div`,{className:`space-y-3`,children:[(0,G.jsxs)(`div`,{className:`inline-flex items-center gap-2 rounded-full border border-[#c9a227]/20 bg-[#c9a227]/5 px-3 py-1 text-xs font-medium text-[#c9a227]`,children:[(0,G.jsx)(Km,{className:`h-3 w-3`}),`AI 记忆引擎`]}),(0,G.jsxs)(`h1`,{className:`text-5xl font-bold tracking-tight text-white leading-[1.1]`,children:[`让 AI 记住`,(0,G.jsx)(`br`,{}),(0,G.jsx)(`span`,{className:`text-[#c9a227]`,children:`你的一切`})]}),(0,G.jsxs)(`p`,{className:`text-lg text-white/40 max-w-sm leading-relaxed`,children:[`你的第二大脑,永远在线。`,(0,G.jsx)(`br`,{}),`每一次对话,都值得被铭记。`]})]}),(0,G.jsx)(`div`,{className:`flex gap-6`,children:Xb.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-white/40`,children:[(0,G.jsx)(e.icon,{className:`h-4 w-4 text-[#c9a227]/70`}),e.label]},e.label))})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col min-h-screen`,children:[(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center p-6`,children:(0,G.jsxs)(`div`,{className:`w-full max-w-md space-y-6`,children:[(0,G.jsxs)(`div`,{className:`lg:hidden text-center space-y-4 mb-2`,children:[(0,G.jsx)(`div`,{className:`inline-flex h-14 w-14 items-center justify-center rounded-2xl bg-[#c9a227]/10 border border-[#c9a227]/20`,children:(0,G.jsx)(Wp,{className:`h-7 w-7 text-[#c9a227]`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h1`,{className:`text-2xl font-bold text-white`,children:`omem`}),(0,G.jsx)(`p`,{className:`text-sm text-white/40 mt-1`,children:`让 AI 记住你的一切`})]})]}),(0,G.jsxs)(`div`,{className:`rounded-2xl border border-white/[0.08] bg-white/[0.03] backdrop-blur-xl p-6 space-y-6`,children:[(0,G.jsxs)(`div`,{className:`space-y-1`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`欢迎回来`}),(0,G.jsx)(`p`,{className:`text-sm text-white/40`,children:`输入 API Key 以访问您的记忆库`})]}),(0,G.jsxs)(`form`,{onSubmit:m,className:`space-y-4`,children:[(0,G.jsxs)(`div`,{className:`space-y-2`,children:[(0,G.jsx)(Jb,{htmlFor:`apiKey`,className:`text-white/70`,children:`API Key`}),(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(bm,{className:`absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-white/30`}),(0,G.jsx)(qb,{id:`apiKey`,type:f?`text`:`password`,placeholder:`输入您的 omem API Key`,value:o,onChange:e=>s(e.target.value),className:`pl-9 pr-10 bg-white/[0.05] border-white/10 text-white placeholder:text-white/25 focus:border-[#c9a227]/50 focus:ring-[#c9a227]/20`,disabled:c,required:!0}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>p(!f),className:`absolute right-3 top-1/2 -translate-y-1/2 text-white/30 hover:text-white/70 transition-colors`,tabIndex:-1,children:f?(0,G.jsx)(am,{className:`h-4 w-4`}):(0,G.jsx)(om,{className:`h-4 w-4`})})]})]}),u&&(0,G.jsx)(`div`,{className:`rounded-lg bg-red-500/10 border border-red-500/20 p-3 text-sm text-red-400`,children:u}),(0,G.jsx)(Y,{type:`submit`,disabled:c||!o,className:`w-full bg-[#c9a227] hover:bg-[#d4b43a] text-[#070708] font-semibold transition-all disabled:opacity-50 disabled:cursor-not-allowed`,children:c?(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`h-4 w-4 border-2 border-[#070708]/30 border-t-[#070708] rounded-full animate-spin`}),`验证中...`]}):(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[`验证并登录`,(0,G.jsx)(zp,{className:`h-4 w-4`})]})})]})]}),t.length>0&&(0,G.jsxs)(`div`,{className:`rounded-2xl border border-white/[0.08] bg-white/[0.03] backdrop-blur-xl p-6 space-y-4`,children:[(0,G.jsx)(`h3`,{className:`text-sm font-medium text-white/70`,children:`已保存的账号`}),(0,G.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>(0,G.jsxs)(`div`,{className:`group flex w-full items-center rounded-xl border transition-all overflow-hidden ${n===e.id?`border-[#c9a227]/30 bg-[#c9a227]/5`:`border-white/10 bg-white/[0.03] hover:border-white/20 hover:bg-white/[0.06]`}`,children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>h(e),className:`flex flex-1 items-center gap-3 p-3 text-left min-w-0`,children:[(0,G.jsx)(`div`,{className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-lg transition-colors ${n===e.id?`bg-[#c9a227] text-[#070708]`:`bg-white/10 text-white/40`}`,children:n===e.id?(0,G.jsx)(qp,{className:`h-4 w-4`}):(0,G.jsx)(bm,{className:`h-4 w-4`})}),(0,G.jsxs)(`div`,{className:`space-y-0.5 min-w-0`,children:[(0,G.jsx)(`p`,{className:`text-sm font-medium text-white/90 truncate`,children:e.spaceName||e.name}),(0,G.jsx)(`p`,{className:`text-xs text-white/35`,children:wp(e.apiKey)})]})]}),(0,G.jsx)(`div`,{className:`p-2 opacity-0 transition-opacity group-hover:opacity-100`,children:(0,G.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon`,onClick:t=>{t.stopPropagation(),g(t,e.id)},disabled:e.isProtected,className:`h-8 w-8 disabled:opacity-0 disabled:cursor-not-allowed text-white/40 hover:text-red-400 hover:bg-red-500/10`,title:e.isProtected?`受保护的账号无法删除`:`删除账号`,children:(0,G.jsx)(Qm,{className:`h-3.5 w-3.5`})})})]},e.id))})]})]})}),(0,G.jsx)(Tb,{})]})]})}function Qb({className:e,size:t=`default`,...n}){return(0,G.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:Cp(`group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function $b({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-header`,className:Cp(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function ex({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-title`,className:Cp(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function tx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-description`,className:Cp(`text-sm text-muted-foreground`,e),...t})}function nx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-content`,className:Cp(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}function rx({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`skeleton`,className:Cp(`animate-pulse rounded-md bg-muted`,e),...t})}var ix=o(((e,t)=>{t.exports=Array.isArray})),ax=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ox=o(((e,t)=>{var n=ax(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),sx=o(((e,t)=>{t.exports=ox().Symbol})),cx=o(((e,t)=>{var n=sx(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),lx=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),ux=o(((e,t)=>{var n=sx(),r=cx(),i=lx(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),dx=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),fx=o(((e,t)=>{var n=ux(),r=dx(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),px=o(((e,t)=>{var n=ix(),r=fx(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),mx=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),hx=o(((e,t)=>{var n=ux(),r=mx(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),gx=o(((e,t)=>{t.exports=ox()[`__core-js_shared__`]})),_x=o(((e,t)=>{var n=gx(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),vx=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),yx=o(((e,t)=>{var n=hx(),r=_x(),i=mx(),a=vx(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),bx=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),xx=o(((e,t)=>{var n=yx(),r=bx();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Sx=o(((e,t)=>{t.exports=xx()(Object,`create`)})),Cx=o(((e,t)=>{var n=Sx();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),wx=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),Tx=o(((e,t)=>{var n=Sx(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Ex=o(((e,t)=>{var n=Sx(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Dx=o(((e,t)=>{var n=Sx(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Ox=o(((e,t)=>{var n=Cx(),r=wx(),i=Tx(),a=Ex(),o=Dx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),kx=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ax=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),jx=o(((e,t)=>{var n=Ax();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Mx=o(((e,t)=>{var n=jx(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Nx=o(((e,t)=>{var n=jx();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Px=o(((e,t)=>{var n=jx();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Fx=o(((e,t)=>{var n=jx();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Ix=o(((e,t)=>{var n=kx(),r=Mx(),i=Nx(),a=Px(),o=Fx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Lx=o(((e,t)=>{t.exports=xx()(ox(),`Map`)})),Rx=o(((e,t)=>{var n=Ox(),r=Ix(),i=Lx();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),zx=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Bx=o(((e,t)=>{var n=zx();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Vx=o(((e,t)=>{var n=Bx();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Hx=o(((e,t)=>{var n=Bx();function r(e){return n(this,e).get(e)}t.exports=r})),Ux=o(((e,t)=>{var n=Bx();function r(e){return n(this,e).has(e)}t.exports=r})),Wx=o(((e,t)=>{var n=Bx();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Gx=o(((e,t)=>{var n=Rx(),r=Vx(),i=Hx(),a=Ux(),o=Wx();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Kx=o(((e,t)=>{var n=Gx(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),qx=o(((e,t)=>{var n=Kx(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Jx=o(((e,t)=>{var n=qx(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Yx=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Xx=o(((e,t)=>{var n=sx(),r=Yx(),i=ix(),a=fx(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Zx=o(((e,t)=>{var n=Xx();function r(e){return e==null?``:n(e)}t.exports=r})),Qx=o(((e,t)=>{var n=ix(),r=px(),i=Jx(),a=Zx();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),$x=o(((e,t)=>{var n=fx(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),eS=o(((e,t)=>{var n=Qx(),r=$x();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),tS=o(((e,t)=>{var n=eS();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),nS=o(((e,t)=>{function n(e){return e==null}t.exports=n})),rS=o(((e,t)=>{var n=ux(),r=ix(),i=dx(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),iS=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),aS=o(((e,t)=>{t.exports=iS()})),oS=o(((e,t)=>{var n=ux(),r=dx(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),sS=o(((e,t)=>{var n=oS();function r(e){return n(e)&&e!=+e}t.exports=r})),cS=l(rS()),lS=l(sS()),uS=l(tS()),dS=l(oS()),fS=l(nS()),pS=function(e){return e===0?0:e>0?1:-1},mS=function(e){return(0,cS.default)(e)&&e.indexOf(`%`)===e.length-1},Z=function(e){return(0,dS.default)(e)&&!(0,lS.default)(e)},hS=function(e){return(0,fS.default)(e)},gS=function(e){return Z(e)||(0,cS.default)(e)},_S=0,vS=function(e){var t=++_S;return`${e||``}${t}`},yS=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(e)&&!(0,cS.default)(e))return n;var i;if(mS(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,lS.default)(i)&&(i=n),r&&i>t&&(i=t),i},bS=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},xS=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},SS=function(e,t){return Z(e)&&Z(t)?function(n){return e+n*(t-e)}:function(){return t}};function CS(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,uS.default)(e,t))===n})}var wS=function(e,t){return Z(e)&&Z(t)?e-t:(0,cS.default)(e)&&(0,cS.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function TS(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var ES=l(mx());function DS(e){"@babel/helpers - typeof";return DS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DS(e)}var OS=[`viewBox`,`children`],kS=`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`.split(`.`),AS=[`points`,`pathLength`],jS={svg:OS,polygon:AS,polyline:AS},MS=`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`.split(`.`),NS=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,v.isValidElement)(e)&&(n=e.props),!(0,ES.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){MS.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},PS=function(e,t,n){return function(r){return e(t,n,r),null}},FS=function(e,t,n){if(!(0,ES.default)(e)||DS(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];MS.includes(i)&&typeof a==`function`&&(r||={},r[i]=PS(a,t,n))}),r},IS=l(hx()),LS=aS(),RS=[`children`],zS=[`children`];function BS(e,t){if(e==null)return{};var n=VS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},HS(e)}var US={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`},WS=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},GS=null,KS=null,qS=function e(t){if(t===GS&&Array.isArray(KS))return KS;var n=[];return v.Children.forEach(t,function(t){(0,fS.default)(t)||((0,LS.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),KS=n,GS=t,n};function JS(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return WS(e)}):[WS(t)],qS(e).forEach(function(e){var t=(0,uS.default)(e,`type.displayName`)||(0,uS.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function YS(e,t){var n=JS(e,t);return n&&n[0]}var XS=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Z(n)||n<=0||!Z(r)||r<=0)},ZS=`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`.split(`.`),QS=function(e){return e&&e.type&&(0,cS.default)(e.type)&&ZS.indexOf(e.type)>=0},$S=function(e){return e&&HS(e)===`object`&&`clipDot`in e},eC=function(e,t,n,r){var i=jS?.[r]??[];return t.startsWith(`data-`)||!(0,IS.default)(e)&&(r&&i.includes(t)||kS.includes(t))||n&&MS.includes(t)},tC=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,v.isValidElement)(e)&&(r=e.props),!(0,ES.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){eC(r?.[e],e,t,n)&&(i[e]=r[e])}),i},nC=function e(t,n){if(t===n)return!0;var r=v.Children.count(t);if(r!==v.Children.count(n))return!1;if(r===0)return!0;if(r===1)return rC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!rC(a,o))return!1}return!0},rC=function(e,t){if((0,fS.default)(e)&&(0,fS.default)(t))return!0;if(!(0,fS.default)(e)&&!(0,fS.default)(t)){var n=e.props||{},r=n.children,i=BS(n,RS),a=t.props||{},o=a.children,s=BS(a,zS);return r&&o?TS(i,s)&&nC(r,o):!r&&!o?TS(i,s):!1}return!1},iC=function(e,t){var n=[],r={};return qS(e).forEach(function(e,i){if(QS(e))n.push(e);else if(e){var a=WS(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},aC=function(e){var t=e&&e.type;return t&&US[t]?US[t]:null},oC=function(e,t){return qS(t).indexOf(e)},sC=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function cC(){return cC=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},cC.apply(this,arguments)}function lC(e,t){if(e==null)return{};var n=uC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dC(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=lC(e,sC),u=i||{width:n,height:r,x:0,y:0},d=Yd(`recharts-surface`,a);return v.createElement(`svg`,cC({},tC(l,!0,`svg`),{className:d,width:n,height:r,style:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`}),v.createElement(`title`,null,s),v.createElement(`desc`,null,c),t)}var fC=[`children`,`className`];function pC(){return pC=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},pC.apply(this,arguments)}function mC(e,t){if(e==null)return{};var n=hC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var gC=v.forwardRef(function(e,t){var n=e.children,r=e.className,i=mC(e,fC),a=Yd(`recharts-layer`,r);return v.createElement(`g`,pC({className:a},tC(i,!0),{ref:t}),n)}),_C=!1,vC=function(e,t){var n=[...arguments].slice(2);if(_C&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,function(){return n[r++]}))}},yC=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),bC=o(((e,t)=>{var n=yC();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),xC=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),SC=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),CC=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),wC=o(((e,t)=>{var n=SC(),r=xC(),i=CC();function a(e){return r(e)?i(e):n(e)}t.exports=a})),TC=o(((e,t)=>{var n=bC(),r=xC(),i=wC(),a=Zx();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),EC=o(((e,t)=>{t.exports=TC()(`toUpperCase`)}));function DC(e){return function(){return e}}var OC=Math.cos,kC=Math.sin,AC=Math.sqrt,jC=Math.PI;jC/2;var MC=2*jC,NC=Math.PI,PC=2*NC,FC=1e-6,IC=PC-FC;function LC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function RC(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return LC;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var zC=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?LC:RC(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>FC)if(!(Math.abs(u*s-c*l)>FC)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((NC-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>FC&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>FC||Math.abs(this._y1-l)>FC)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%PC+PC),d>IC?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>FC&&this._append`A${n},${n},0,${+(d>=NC)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function BC(){return new zC}BC.prototype=zC.prototype;function VC(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new zC(t)}Array.prototype.slice;function HC(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function UC(e){this._context=e}UC.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 WC(e){return new UC(e)}function GC(e){return e[0]}function KC(e){return e[1]}function qC(e,t){var n=DC(!0),r=null,i=WC,a=null,o=VC(s);e=typeof e==`function`?e:e===void 0?GC:DC(e),t=typeof t==`function`?t:t===void 0?KC:DC(t);function s(s){var c,l=(s=HC(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:DC(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function JC(e,t,n){var r=null,i=DC(!0),a=null,o=WC,s=null,c=VC(l);e=typeof e==`function`?e:e===void 0?GC:DC(+e),t=typeof t==`function`?t:DC(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?KC:DC(+n);function l(l){var u,d,f,p=(l=HC(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return qC().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:DC(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:DC(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:DC(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:DC(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var YC=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function XC(e){return new YC(e,!0)}function ZC(e){return new YC(e,!1)}var QC={draw(e,t){let n=AC(t/jC);e.moveTo(n,0),e.arc(0,0,n,0,MC)}},$C={draw(e,t){let n=AC(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ew=AC(1/3),tw=ew*2,nw={draw(e,t){let n=AC(t/tw),r=n*ew;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rw={draw(e,t){let n=AC(t),r=-n/2;e.rect(r,r,n,n)}},iw=.8908130915292852,aw=kC(jC/10)/kC(7*jC/10),ow=kC(MC/10)*aw,sw=-OC(MC/10)*aw,cw={draw(e,t){let n=AC(t*iw),r=ow*n,i=sw*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=MC*t/5,o=OC(a),s=kC(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},lw=AC(3),uw={draw(e,t){let n=-AC(t/(lw*3));e.moveTo(0,n*2),e.lineTo(-lw*n,-n),e.lineTo(lw*n,-n),e.closePath()}},dw=-.5,fw=AC(3)/2,pw=1/AC(12),mw=(pw/2+1)*3,hw={draw(e,t){let n=AC(t/mw),r=n/2,i=n*pw,a=r,o=n*pw+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(dw*r-fw*i,fw*r+dw*i),e.lineTo(dw*a-fw*o,fw*a+dw*o),e.lineTo(dw*s-fw*c,fw*s+dw*c),e.lineTo(dw*r+fw*i,dw*i-fw*r),e.lineTo(dw*a+fw*o,dw*o-fw*a),e.lineTo(dw*s+fw*c,dw*c-fw*s),e.closePath()}};function gw(e,t){let n=null,r=VC(i);e=typeof e==`function`?e:DC(e||QC),t=typeof t==`function`?t:DC(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:DC(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:DC(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function _w(){}function vw(e,t,n){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+n)/6)}function yw(e){this._context=e}yw.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:vw(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:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bw(e){return new yw(e)}function xw(e){this._context=e}xw.prototype={areaStart:_w,areaEnd:_w,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:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sw(e){return new xw(e)}function Cw(e){this._context=e}Cw.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ww(e){return new Cw(e)}function Tw(e){this._context=e}Tw.prototype={areaStart:_w,areaEnd:_w,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 Ew(e){return new Tw(e)}function Dw(e){return e<0?-1:1}function Ow(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Dw(a)+Dw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Aw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function jw(e){this._context=e}jw.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:Aw(this,this._t0,kw(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 n=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,Aw(this,kw(this,n=Ow(this,e,t)),n);break;default:Aw(this,this._t0,n=Ow(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mw(e){this._context=new Nw(e)}(Mw.prototype=Object.create(jw.prototype)).point=function(e,t){jw.prototype.point.call(this,t,e)};function Nw(e){this._context=e}Nw.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Pw(e){return new jw(e)}function Fw(e){return new Mw(e)}function Iw(e){this._context=e}Iw.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Lw(e),i=Lw(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===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 Lw(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Rw(e){return new Iw(e)}function zw(e,t){this._context=e,this._t=t}zw.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Bw(e){return new zw(e,.5)}function Vw(e){return new zw(e,0)}function Hw(e){return new zw(e,1)}function Uw(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ww(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gw(e,t){return e[t]}function Kw(e){let t=[];return t.key=e,t}function qw(){var e=DC([]),t=Ww,n=Uw,r=Gw;function i(i){var a=Array.from(e.apply(this,arguments),Kw),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=HC(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:DC(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:DC(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Ww:typeof e==`function`?e:DC(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Uw,i):n},i}function Jw(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Uw(e,t)}}function Yw(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Uw(e,t)}}function Xw(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Uw(e,t)}}var Zw=l(EC());function Qw(e){"@babel/helpers - typeof";return Qw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qw(e)}var $w=[`type`,`size`,`sizeType`];function eT(){return eT=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},eT.apply(this,arguments)}function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tT(Object(n),!0).forEach(function(t){rT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rT(e,t,n){return t=iT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iT(e){var t=aT(e,`string`);return Qw(t)==`symbol`?t:t+``}function aT(e,t){if(Qw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Qw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oT(e,t){if(e==null)return{};var n=sT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cT={symbolCircle:QC,symbolCross:$C,symbolDiamond:nw,symbolSquare:rw,symbolStar:cw,symbolTriangle:uw,symbolWye:hw},lT=Math.PI/180,uT=function(e){return cT[`symbol${(0,Zw.default)(e)}`]||QC},dT=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*lT;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},fT=function(e,t){cT[`symbol${(0,Zw.default)(e)}`]=t},pT=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=nT(nT({},oT(e,$w)),{},{type:n,size:i,sizeType:o}),c=function(){var e=uT(n);return gw().type(e).size(dT(i,o,n))()},l=s.className,u=s.cx,d=s.cy,f=tC(s,!0);return u===+u&&d===+d&&i===+i?v.createElement(`path`,eT({},f,{className:Yd(`recharts-symbols`,l),transform:`translate(${u}, ${d})`,d:c()})):null};pT.registerSymbol=fT;function mT(e){"@babel/helpers - typeof";return mT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mT(e)}function hT(){return hT=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},hT.apply(this,arguments)}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _T(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gT(Object(n),!0).forEach(function(t){CT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,wT(r.key),r)}}function bee(e,t,n){return t&&yT(e.prototype,t),n&&yT(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xee(e,t,n){return t=xT(t),See(e,bT()?Reflect.construct(t,n||[],xT(e).constructor):t.apply(e,n))}function See(e,t){if(t&&(mT(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Cee(e)}function Cee(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function bT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bT=function(){return!!e})()}function xT(e){return xT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xT(e)}function wee(e,t){if(typeof t!=`function`&&t!==null)throw 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&&ST(e,t)}function ST(e,t){return ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ST(e,t)}function CT(e,t,n){return t=wT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(e){var t=Tee(e,`string`);return mT(t)==`symbol`?t:t+``}function Tee(e,t){if(mT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var TT=32,ET=function(e){function t(){return vT(this,t),xee(this,t,arguments)}return wee(t,e),bee(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=TT/2,r=TT/6,i=TT/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return v.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:TT,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return v.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
|
|
20
20
|
A${r},${r},0,1,1,${2*i},${n}
|
|
21
21
|
H${TT}M${2*i},${n}
|
|
22
22
|
A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return v.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${TT/8}h${TT}v${TT*3/4}h${-TT}z`,className:`recharts-legend-icon`});if(v.isValidElement(e.legendIcon)){var o=_T({},e);return delete o.legendIcon,v.cloneElement(e.legendIcon,o)}return v.createElement(pT,{fill:a,cx:n,cy:n,size:TT,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,o=t.inactiveColor,s={x:0,y:0,width:TT,height:TT},c={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},l={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,u=Yd(CT(CT({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var d=(0,IS.default)(t.value)?null:t.value;vC(!(0,IS.default)(t.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 f=t.inactive?o:t.color;return v.createElement(`li`,hT({className:u,style:c,key:`legend-item-${n}`},FS(e.props,t,n)),v.createElement(dC,{width:r,height:r,viewBox:s,style:l},e.renderIcon(t)),v.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:f}},i?i(d,t,n):d))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return v.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(v.PureComponent);CT(ET,`displayName`,`Legend`),CT(ET,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var Eee=o(((e,t)=>{var n=Ix();function r(){this.__data__=new n,this.size=0}t.exports=r})),Dee=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Oee=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),kee=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Aee=o(((e,t)=>{var n=Ix(),r=Lx(),i=Gx(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),DT=o(((e,t)=>{var n=Ix(),r=Eee(),i=Dee(),a=Oee(),o=kee(),s=Aee();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),jee=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),Mee=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),OT=o(((e,t)=>{var n=Gx(),r=jee(),i=Mee();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),kT=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),AT=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),jT=o(((e,t)=>{var n=OT(),r=kT(),i=AT(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),Nee=o(((e,t)=>{t.exports=ox().Uint8Array})),Pee=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),MT=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),Fee=o(((e,t)=>{var n=sx(),r=Nee(),i=Ax(),a=jT(),o=Pee(),s=MT(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),NT=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),Iee=o(((e,t)=>{var n=NT(),r=ix();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),Lee=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),Ree=o(((e,t)=>{function n(){return[]}t.exports=n})),zee=o(((e,t)=>{var n=Lee(),r=Ree(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),Bee=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),Vee=o(((e,t)=>{var n=ux(),r=dx(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),PT=o(((e,t)=>{var n=Vee(),r=dx(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Hee=o(((e,t)=>{function n(){return!1}t.exports=n})),FT=o(((e,t)=>{var n=ox(),r=Hee(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),IT=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),LT=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Uee=o(((e,t)=>{var n=ux(),r=LT(),i=dx(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),RT=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Wee=o(((e,t)=>{var n=ax(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),zT=o(((e,t)=>{var n=Uee(),r=RT(),i=Wee(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Gee=o(((e,t)=>{var n=Bee(),r=PT(),i=ix(),a=FT(),o=IT(),s=zT(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Kee=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),BT=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),qee=o(((e,t)=>{t.exports=BT()(Object.keys,Object)})),Jee=o(((e,t)=>{var n=Kee(),r=qee(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),VT=o(((e,t)=>{var n=hx(),r=LT();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),HT=o(((e,t)=>{var n=Gee(),r=Jee(),i=VT();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Yee=o(((e,t)=>{var n=Iee(),r=zee(),i=HT();function a(e){return n(e,i,r)}t.exports=a})),UT=o(((e,t)=>{var n=Yee(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),WT=o(((e,t)=>{t.exports=xx()(ox(),`DataView`)})),GT=o(((e,t)=>{t.exports=xx()(ox(),`Promise`)})),KT=o(((e,t)=>{t.exports=xx()(ox(),`Set`)})),qT=o(((e,t)=>{t.exports=xx()(ox(),`WeakMap`)})),JT=o(((e,t)=>{var n=WT(),r=Lx(),i=GT(),a=KT(),o=qT(),s=ux(),c=vx(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),YT=o(((e,t)=>{var n=DT(),r=jT(),i=Fee(),a=UT(),o=JT(),s=ix(),c=FT(),l=zT(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),XT=o(((e,t)=>{var n=YT(),r=dx();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),ZT=o(((e,t)=>{var n=DT(),r=XT(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),QT=o(((e,t)=>{var n=mx();function r(e){return e===e&&!n(e)}t.exports=r})),$T=o(((e,t)=>{var n=QT(),r=HT();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),eE=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),tE=o(((e,t)=>{var n=ZT(),r=$T(),i=eE();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),nE=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),rE=o(((e,t)=>{var n=Qx(),r=PT(),i=ix(),a=IT(),o=LT(),s=$x();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),iE=o(((e,t)=>{var n=nE(),r=rE();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),aE=o(((e,t)=>{var n=XT(),r=tS(),i=iE(),a=px(),o=QT(),s=eE(),c=$x(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),oE=o(((e,t)=>{function n(e){return e}t.exports=n})),sE=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),Xee=o(((e,t)=>{var n=eS();function r(e){return function(t){return n(t,e)}}t.exports=r})),Zee=o(((e,t)=>{var n=sE(),r=Xee(),i=px(),a=$x();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),cE=o(((e,t)=>{var n=tE(),r=aE(),i=oE(),a=ix(),o=Zee();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),lE=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),uE=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),dE=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),fE=o(((e,t)=>{var n=lE(),r=uE(),i=dE();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),pE=o(((e,t)=>{var n=fE();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),mE=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),hE=o(((e,t)=>{function n(){}t.exports=n})),gE=o(((e,t)=>{var n=KT(),r=hE(),i=MT();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),_E=o(((e,t)=>{var n=OT(),r=pE(),i=mE(),a=AT(),o=gE(),s=MT(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),vE=l(o(((e,t)=>{var n=cE(),r=_E();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i}))());function yE(e,t,n){return t===!0?(0,vE.default)(e,n):(0,IS.default)(t)?(0,vE.default)(e,t):e}function bE(e){"@babel/helpers - typeof";return bE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bE(e)}var xE=[`ref`];function SE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SE(Object(n),!0).forEach(function(t){PE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function TE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,FE(r.key),r)}}function EE(e,t,n){return t&&TE(e.prototype,t),n&&TE(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function DE(e,t,n){return t=jE(t),OE(e,AE()?Reflect.construct(t,n||[],jE(e).constructor):t.apply(e,n))}function OE(e,t){if(t&&(bE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return kE(e)}function kE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function AE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AE=function(){return!!e})()}function jE(e){return jE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jE(e)}function ME(e,t){if(typeof t!=`function`&&t!==null)throw 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&&NE(e,t)}function NE(e,t){return NE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NE(e,t)}function PE(e,t,n){return t=FE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FE(e){var t=IE(e,`string`);return bE(t)==`symbol`?t:t+``}function IE(e,t){if(bE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function LE(e,t){if(e==null)return{};var n=RE(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RE(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zE(e){return e.value}function BE(e,t){if(v.isValidElement(e))return v.cloneElement(e,t);if(typeof e==`function`)return v.createElement(e,t);t.ref;var n=LE(t,xE);return v.createElement(ET,n)}var VE=1,HE=function(e){function t(){var e;wE(this,t);var n=[...arguments];return e=DE(this,t,[].concat(n)),PE(e,`lastBoundingBox`,{width:-1,height:-1}),e}return ME(t,e),EE(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>VE||Math.abs(t.height-this.lastBoundingBox.height)>VE)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?CE({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return CE(CE({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=CE(CE({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return v.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},BE(n,CE(CE({},this.props),{},{payload:yE(s,o,zE)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=CE(CE({},this.defaultProps),e.props).layout;return n===`vertical`&&Z(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(v.PureComponent);PE(HE,`displayName`,`Legend`),PE(HE,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var UE=o(((e,t)=>{var n=sx(),r=PT(),i=ix(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),WE=o(((e,t)=>{var n=NT(),r=UE();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),Qee=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),$ee=o(((e,t)=>{t.exports=Qee()()})),GE=o(((e,t)=>{var n=$ee(),r=HT();function i(e,t){return e&&n(e,t,r)}t.exports=i})),ete=o(((e,t)=>{var n=VT();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),KE=o(((e,t)=>{var n=GE();t.exports=ete()(n)})),qE=o(((e,t)=>{var n=KE(),r=VT();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),tte=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),nte=o(((e,t)=>{var n=fx();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),rte=o(((e,t)=>{var n=nte();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),ite=o(((e,t)=>{var n=Yx(),r=eS(),i=cE(),a=qE(),o=tte(),s=RT(),c=rte(),l=oE(),u=ix();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),JE=o(((e,t)=>{function n(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)}t.exports=n})),YE=o(((e,t)=>{var n=JE(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),XE=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),ZE=o(((e,t)=>{var n=xx();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),QE=o(((e,t)=>{var n=XE(),r=ZE(),i=oE();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),$E=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),eD=o(((e,t)=>{var n=QE();t.exports=$E()(n)})),tD=o(((e,t)=>{var n=oE(),r=YE(),i=eD();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),nD=o(((e,t)=>{var n=Ax(),r=VT(),i=IT(),a=mx();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),rD=l(o(((e,t)=>{var n=WE(),r=ite(),i=tD(),a=nD();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})}))());function iD(e){"@babel/helpers - typeof";return iD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},iD(e)}function aD(){return aD=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},aD.apply(this,arguments)}function oD(e,t){return dD(e)||uD(e,t)||cD(e,t)||sD()}function sD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
package/web/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<script>window.__OMEM_API_URL__ = "__OMEM_API_URL__";</script>
|
|
8
8
|
<title>omem - 记忆管理</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-DetGYDeq.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-Dxd5Um3O.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|