@winspan/claude-forge 1.48.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pipeline/dynamic-node-executor.js +7 -7
- package/dist/pipeline/dynamic-node-executor.js.map +1 -1
- package/dist/pipeline/index.js +8 -8
- package/dist/pipeline/index.js.map +1 -1
- package/dist/web-static/assets/{index-ZmvUgoBj.js → index-CuIx3w3K.js} +2 -2
- package/dist/web-static/index.html +1 -1
- package/package.json +1 -1
|
@@ -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=No(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ss.assertOptions(n,{silentJSONParsing:cs.transitional(cs.boolean),forcedJSONParsing:cs.transitional(cs.boolean),clarifyTimeoutError:cs.transitional(cs.boolean),legacyInterceptorReqResOrdering:cs.transitional(cs.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:ss.assertOptions(r,{encode:cs.function,serialize:cs.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ss.assertOptions(t,{baseUrl:cs.spelling(`baseURL`),withXsrfToken:cs.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=go.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||Ba;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=[ns.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=ns.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=No(this.defaults,e),Ra(jo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){ls.prototype[e]=function(t,n){return this.request(No(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(No(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ls.prototype[e]=t(),ls.prototype[e+`Form`]=t(!0)});var us=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 yo(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 ds(e){return function(t){return e.apply(null,t)}}function fs(e){return V.isObject(e)&&e.isAxiosError===!0}var ps={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(ps).forEach(([e,t])=>{ps[t]=e});function ms(e){let t=new ls(e),n=_i(ls.prototype.request,t);return V.extend(n,ls.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ms(No(e,t))},n}var hs=ms(to);hs.Axios=ls,hs.CanceledError=yo,hs.CancelToken=us,hs.isCancel=vo,hs.VERSION=rs,hs.toFormData=Na,hs.AxiosError=H,hs.Cancel=hs.CanceledError,hs.all=function(e){return Promise.all(e)},hs.spread=ds,hs.isAxiosError=fs,hs.mergeConfig=No,hs.AxiosHeaders=go,hs.formToJSON=e=>Qa(V.isHTMLForm(e)?new FormData(e):e),hs.getAdapter=es.getAdapter,hs.HttpStatusCode=ps,hs.default=hs;var gs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_s=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),vs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ys=e=>{let t=vs(e);return t.charAt(0).toUpperCase()+t.slice(1)},bs={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},xs=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ss=(0,z.createContext)({}),Cs=()=>(0,z.useContext)(Ss),ws=(0,z.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Cs()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,z.createElement)(`svg`,{ref:c,...bs,width:t??l??bs.width,height:t??l??bs.height,stroke:e??f,strokeWidth:m,className:gs(`lucide`,p,i),...!a&&!xs(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,z.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),U=(e,t)=>{let n=(0,z.forwardRef)(({className:n,...r},i)=>(0,z.createElement)(ws,{ref:i,iconNode:t,className:gs(`lucide-${_s(ys(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ys(e),n},Ts=U(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Es=U(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Ds=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Os=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ks=U(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),As=U(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),js=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ms=U(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Ns=U(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Ps=U(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Fs=U(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Is=U(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Ls=U(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Rs=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),zs=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Bs=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Vs=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Hs=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Us=U(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ws=U(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Gs=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Ks=U(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),qs=U(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Js=U(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ys=U(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Xs=U(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Zs=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Qs=U(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),$s=U(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),ec=U(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),tc=U(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),nc=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),rc=U(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),ic=U(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),ac=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),oc=U(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),sc=U(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),cc=U(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),lc=U(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),uc=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),dc=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),fc=U(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),pc=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),mc=U(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),hc=U(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),gc=U(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),_c=U(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),vc=U(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),yc=U(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),bc=U(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),xc=U(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),Sc=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Cc=U(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),wc=U(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Tc=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ec=U(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Dc=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Oc=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),kc=U(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ac=U(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),jc=U(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Mc=U(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Nc=U(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Pc=U(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Fc=U(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Ic=U(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Lc=U(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),Rc=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),zc=U(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Bc=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Vc=U(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Hc=U(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Uc=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Wc=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Gc=U(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Kc=u(y(),1),qc=u(_(),1),Jc=(0,z.createContext)({toast:()=>{}}),Yc=()=>{};function Xc(e,t=`error`){Yc(e,t)}function Zc({children:e}){let[t,n]=(0,z.useState)([]),r={current:0},i=(0,z.useCallback)((e,t=`error`)=>{let i=++r.current;n(n=>[...n,{id:i,type:t,message:e}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==i)),4e3)},[]);(0,z.useEffect)(()=>{Yc=i},[i]);let a={success:Us,error:Gs,warning:Bc},o={success:`bg-green-50 border-green-200 text-green-800`,error:`bg-red-50 border-red-200 text-red-800`,warning:`bg-yellow-50 border-yellow-200 text-yellow-800`},s={success:`text-green-500`,error:`text-red-500`,warning:`text-yellow-500`};return(0,B.jsxs)(Jc.Provider,{value:{toast:i},children:[e,(0,qc.createPortal)((0,B.jsx)(`div`,{className:`fixed bottom-4 right-4 z-[9999] flex flex-col gap-2 max-w-sm`,children:t.map(e=>{let t=a[e.type];return(0,B.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,B.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,B.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,B.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,B.jsx)(Wc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var W=hs.create({baseURL:`/api`,timeout:3e4});W.interceptors.response.use(e=>e,e=>(Xc(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var Qc=()=>W.get(`/health`),$c=()=>W.get(`/config`),el=e=>W.put(`/config`,e),tl=()=>W.get(`/config/history`),nl=e=>W.get(`/sessions`,{params:e}),rl=e=>W.get(`/sessions/${e}`),il=e=>W.delete(`/sessions/${e}`),al=e=>W.delete(`/sessions`,{data:{ids:e}}),ol=e=>W.get(`/events`,{params:e}),sl=e=>W.get(`/events/stats`,{params:{project_path:e}}),cl=e=>W.get(`/pipelines`,{params:e}),ll=e=>W.get(`/pipelines/${e}`),ul=e=>W.get(`/quality/history`,{params:e}),dl=e=>W.get(`/quality/unresolved`,{params:{project_path:e}}),fl=()=>W.get(`/stats/roi`),pl=()=>W.get(`/stats/overview`),ml=(e,t,n)=>W.get(`/knowledge/search`,{params:{q:e,project_path:t,node_type:n}}),hl=e=>W.get(`/knowledge/overview`,{params:{project_path:e}}),gl=(e,t)=>W.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),_l=(e,t)=>W.get(`/knowledge/graph`,{params:{project_path:e,node_type:t}}),vl=e=>W.post(`/knowledge/nodes`,e),yl=(e,t)=>W.put(`/knowledge/nodes/${e}`,t),bl=e=>W.delete(`/knowledge/nodes/${e}`),xl=e=>W.post(`/pipelines/${e}/close`),Sl=e=>W.post(`/pipelines/batch-close`,{ids:e}),Cl=()=>W.post(`/pipelines/close-expired`),wl=()=>W.get(`/pipelines/active`),Tl=(e,t)=>W.post(`/pipelines/tasks/${e}/status`,{status:t}),El=e=>W.post(`/pipelines/${e}/resume`),Dl=e=>W.get(`/projects`,{params:e}),Ol=e=>W.get(`/projects/${e}`),kl=e=>W.delete(`/projects/${e}`),Al=e=>W.post(`/convention/init`,{path:e},{timeout:18e4}),jl=e=>W.get(`/projects/${e}/conventions`),Ml=(e,t)=>W.post(`/projects/${e}/conventions/bind`,{conventionId:t}),Nl=(e,t)=>W.delete(`/projects/${e}/conventions/${encodeURIComponent(t)}`),Pl=e=>W.get(`/projects/${e}/conventions/custom/yaml`),Fl=(e,t)=>W.put(`/projects/${e}/conventions/custom`,{yaml:t}),Il=e=>W.post(`/projects/${e}/conventions/distill`,{},{timeout:12e4}),Ll=e=>W.get(`/claudemd/${e}`),Rl=(e,t)=>W.put(`/claudemd/${e}`,{content:t}),zl=e=>W.get(`/claudemd/${e}/profile`),Bl=e=>W.get(`/claudemd/${e}/modules`),Vl=e=>W.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),Hl=e=>W.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Ul=e=>W.post(`/quality/${e}/resolve`),Wl=e=>W.post(`/quality/${e}/dismiss`),Gl=e=>W.post(`/quality/batch-dismiss`,{ids:e}),Kl=()=>W.post(`/quality/resolve-all`),ql=e=>W.get(`/quality/${e}/context`),Jl=()=>W.get(`/daemon/status`),Yl=()=>W.post(`/daemon/restart`),Xl=()=>W.get(`/daemon/diagnose`),Zl=()=>W.post(`/daemon/repair`),Ql=()=>W.post(`/config/backup`),$l=()=>W.get(`/config/backups`),eu=e=>`/api/config/backups/${encodeURIComponent(e)}`,tu=e=>W.post(`/events/purge`,{retentionDays:e}),nu=e=>W.get(`/stats/api-usage`,{params:{days:e}}),ru=e=>W.get(`/skills`,{params:e}),iu=()=>W.get(`/skills/status`),au=e=>W.get(`/skills/${encodeURIComponent(e)}`),ou=(e,t)=>W.post(`/skills/search`,{query:e,...t},{timeout:3e4}),su=e=>W.post(`/skills/install`,{url:e},{timeout:6e4}),cu=e=>W.delete(`/skills/${encodeURIComponent(e)}`),lu=e=>W.post(`/skills/batch-delete`,{names:e}),uu=()=>W.post(`/skills/evolve`,{},{timeout:12e4}),du=()=>W.post(`/skills/distill`,{},{timeout:12e4}),fu=()=>W.post(`/skills/repair`,{},{timeout:6e4}),pu=()=>W.get(`/conventions`),mu=e=>W.get(`/conventions/${encodeURIComponent(e)}`),hu=()=>W.post(`/conventions/sync-official`),gu=e=>W.post(`/conventions/install`,{url:e},{timeout:3e4}),_u=e=>W.delete(`/conventions/${encodeURIComponent(e)}`),vu=()=>W.get(`/conventions/usage-stats`),yu=e=>W.get(`/conventions/${encodeURIComponent(e)}/evolution-history`),bu=e=>W.post(`/conventions/batch-evolve`,{conventionIds:e},{timeout:12e4}),xu=e=>W.get(`/conventions/${encodeURIComponent(e)}/yaml`),Su=(e,t)=>W.put(`/conventions/${encodeURIComponent(e)}/yaml`,{yaml:t}),Cu=()=>W.get(`/node-types`),wu=e=>W.get(`/node-types/${encodeURIComponent(e)}`);function Tu(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Tu(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Eu(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Tu(e))&&(r&&(r+=` `),r+=t);return r}var Du=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ou=(e,t)=>({classGroupId:e,validator:t}),ku=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Au=`-`,ju=[],Mu=`arbitrary..`,Nu=e=>{let t=Iu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Fu(e);let n=e.split(Au);return Pu(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Du(i,t):t:i||ju}return n[e]||ju}}},Pu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Pu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Au):e.slice(t).join(Au),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Fu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Mu+r:void 0})(),Iu=e=>{let{theme:t,classGroups:n}=e;return Lu(n,t)},Lu=(e,t)=>{let n=ku();for(let r in e){let i=e[r];Ru(i,n,r,t)}return n},Ru=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];zu(i,t,n,r)}},zu=(e,t,n,r)=>{if(typeof e==`string`){Bu(e,t,n);return}if(typeof e==`function`){Vu(e,t,n,r);return}Hu(e,t,n,r)},Bu=(e,t,n)=>{let r=e===``?t:Uu(t,e);r.classGroupId=n},Vu=(e,t,n,r)=>{if(Wu(e)){Ru(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ou(n,e))},Hu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ru(o,Uu(t,a),n,r)}},Uu=(e,t)=>{let n=e,r=t.split(Au),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ku(),n.nextPart.set(t,i)),n=i}return n},Wu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Gu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ku=`!`,qu=`:`,Ju=[],Yu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Xu=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===qu){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ku)?(c=s.slice(0,-1),l=!0):s.startsWith(Ku)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Yu(t,l,c,u)};if(t){let e=t+qu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Yu(Ju,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Zu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Qu=e=>({cache:Gu(e.cacheSize),parseClassName:Xu(e),sortModifiers:Zu(e),...Nu(e)}),$u=/\s+/,ed=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split($u),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ku:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},td=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=nd(n))&&(i&&(i+=` `),i+=r);return i},nd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=nd(e[r]))&&(n&&(n+=` `),n+=t);return n},rd=(e,...t)=>{let n,r,i,a,o=o=>(n=Qu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ed(e,n);return i(e,a),a};return a=o,(...e)=>a(td(...e))},id=[],ad=e=>{let t=t=>t[e]||id;return t.isThemeGetter=!0,t},od=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ld=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ud=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,md=e=>cd.test(e),hd=e=>!!e&&!Number.isNaN(Number(e)),gd=e=>!!e&&Number.isInteger(Number(e)),_d=e=>e.endsWith(`%`)&&hd(e.slice(0,-1)),vd=e=>ld.test(e),yd=()=>!0,bd=e=>ud.test(e)&&!dd.test(e),xd=()=>!1,Sd=e=>fd.test(e),Cd=e=>pd.test(e),wd=e=>!G(e)&&!K(e),Td=e=>Bd(e,Wd,xd),G=e=>od.test(e),Ed=e=>Bd(e,Gd,bd),Dd=e=>Bd(e,Kd,hd),Od=e=>Bd(e,Jd,yd),kd=e=>Bd(e,qd,xd),Ad=e=>Bd(e,Hd,xd),jd=e=>Bd(e,Ud,Cd),Md=e=>Bd(e,Yd,Sd),K=e=>sd.test(e),Nd=e=>Vd(e,Gd),Pd=e=>Vd(e,qd),Fd=e=>Vd(e,Hd),Id=e=>Vd(e,Wd),Ld=e=>Vd(e,Ud),Rd=e=>Vd(e,Yd,!0),zd=e=>Vd(e,Jd,!0),Bd=(e,t,n)=>{let r=od.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vd=(e,t,n=!1)=>{let r=sd.exec(e);return r?r[1]?t(r[1]):n:!1},Hd=e=>e===`position`||e===`percentage`,Ud=e=>e===`image`||e===`url`,Wd=e=>e===`length`||e===`size`||e===`bg-size`,Gd=e=>e===`length`,Kd=e=>e===`number`,qd=e=>e===`family-name`,Jd=e=>e===`number`||e===`weight`,Yd=e=>e===`shadow`,Xd=rd(()=>{let e=ad(`color`),t=ad(`font`),n=ad(`text`),r=ad(`font-weight`),i=ad(`tracking`),a=ad(`leading`),o=ad(`breakpoint`),s=ad(`container`),c=ad(`spacing`),l=ad(`radius`),u=ad(`shadow`),d=ad(`inset-shadow`),f=ad(`text-shadow`),p=ad(`drop-shadow`),m=ad(`blur`),h=ad(`perspective`),g=ad(`aspect`),_=ad(`ease`),v=ad(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],T=()=>[md,`full`,`auto`,...w()],E=()=>[gd,`none`,`subgrid`,K,G],D=()=>[`auto`,{span:[`full`,gd,K,G]},gd,K,G],O=()=>[gd,`auto`,K,G],k=()=>[`auto`,`min`,`max`,`fr`,K,G],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[md,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[md,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[md,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,K,G],I=()=>[...b(),Fd,Ad,{position:[K,G]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Id,Td,{size:[K,G]}],re=()=>[_d,Nd,Ed],L=()=>[``,`none`,`full`,l,K,G],R=()=>[``,hd,Nd,Ed],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],oe=()=>[hd,_d,Fd,Ad],se=()=>[``,`none`,m,K,G],ce=()=>[`none`,hd,K,G],le=()=>[`none`,hd,K,G],ue=()=>[hd,K,G],de=()=>[md,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vd],breakpoint:[vd],color:[yd],container:[vd],"drop-shadow":[vd],ease:[`in`,`out`,`in-out`],font:[wd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vd],shadow:[vd],spacing:[`px`,hd],text:[vd],"text-shadow":[vd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,md,G,K,g]}],container:[`container`],columns:[{columns:[hd,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gd,`auto`,K,G]}],basis:[{basis:[md,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[hd,md,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,hd,K,G]}],shrink:[{shrink:[``,hd,K,G]}],order:[{order:[gd,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Nd,Ed]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,zd,Od]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_d,G]}],"font-family":[{font:[Pd,kd,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[hd,`none`,K,Dd]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[hd,`from-font`,`auto`,K,Ed]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[hd,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gd,K,G],radial:[``,K,G],conic:[gd,K,G]},Ld,jd]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[hd,K,G]}],"outline-w":[{outline:[``,hd,Nd,Ed]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,Rd,Md]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Rd,Md]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[hd,Ed]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Rd,Md]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[hd,K,G]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[hd]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[hd]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:se()}],brightness:[{brightness:[hd,K,G]}],contrast:[{contrast:[hd,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Rd,Md]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,hd,K,G]}],"hue-rotate":[{"hue-rotate":[hd,K,G]}],invert:[{invert:[``,hd,K,G]}],saturate:[{saturate:[hd,K,G]}],sepia:[{sepia:[``,hd,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[hd,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[hd,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,hd,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hd,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,hd,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[hd,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[hd,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,hd,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[hd,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[hd,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[hd,Nd,Ed,Dd]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return Xd(Eu(e))}function Zd(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60),i=Math.floor(r/24);return i>0?`${i}天${r%24}小时`:r>0?`${r}小时${n%60}分钟`:n>0?`${n}分钟${t%60}秒`:`${t}秒`}function Qd(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function $d(e){let t={active:`text-green-600 bg-green-50`,completed:`text-blue-600 bg-blue-50`,failed:`text-red-600 bg-red-50`,interrupted:`text-yellow-600 bg-yellow-50`,pending:`text-gray-600 bg-gray-50`};return t[e]||t.pending}function ef(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var tf=[{path:`/dashboard`,label:`仪表盘`,icon:dc},{path:`/projects`,label:`项目管理`,icon:oc},{path:`/sessions`,label:`会话管理`,icon:Ts},{path:`/events`,label:`事件流`,icon:Ps},{path:`/pipelines`,label:`流水线`,icon:cc},{path:`/quality`,label:`质量门禁`,icon:kc},{path:`/knowledge`,label:`知识图谱`,icon:Ns},{path:`/skills`,label:`技能管理`,icon:vc},{path:`/conventions`,label:`规范管理`,icon:As},{path:`/node-types`,label:`节点类型`,icon:Ms},{path:`/analytics`,label:`数据分析`,icon:Fs},{path:`/config`,label:`系统配置`,icon:Oc}];function nf({children:e}){let[t,n]=(0,z.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=jn();(0,z.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=ct({queryKey:[`health`],queryFn:()=>Qc().then(e=>e.data),refetchInterval:15e3}),a=tf.find(e=>r.pathname.startsWith(e.path));return(0,B.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,B.jsxs)(`aside`,{className:q(`fixed top-0 left-0 bottom-0 z-50 flex flex-col transition-all duration-300`,`bg-gradient-to-b from-slate-900 to-slate-800`,t?`w-16`:`w-60`),children:[(0,B.jsxs)(`div`,{className:q(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,B.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,B.jsx)(`div`,{className:`flex items-center justify-center w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600`,children:(0,B.jsx)(Gc,{className:`h-5 w-5 text-white`})}),(0,B.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,B.jsx)(`button`,{onClick:()=>n(!t),className:`p-1.5 rounded-lg text-white/60 hover:text-white hover:bg-white/10 transition-colors`,children:t?(0,B.jsx)(hc,{className:`h-5 w-5`}):(0,B.jsx)(zs,{className:`h-5 w-5`})})]}),(0,B.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:tf.map(e=>(0,B.jsxs)(ei,{to:e.path,className:({isActive:e})=>q(`flex items-center gap-3 rounded-lg transition-all duration-200`,t?`justify-center p-3`:`px-3 py-2.5`,e?`bg-blue-600/20 text-blue-400`:`text-white/60 hover:text-white hover:bg-white/5`),children:[(0,B.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,B.jsx)(`div`,{className:q(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,B.jsxs)(`div`,{className:q(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,B.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,B.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,B.jsxs)(`main`,{className:q(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,B.jsxs)(`header`,{className:`sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-200/50 h-16 flex items-center justify-between px-8`,children:[(0,B.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsxs)(`button`,{className:`hidden sm:flex items-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors`,onClick:()=>{let e=new KeyboardEvent(`keydown`,{key:`k`,metaKey:!0});window.dispatchEvent(e)},children:[(0,B.jsx)(Ys,{className:`h-4 w-4`}),(0,B.jsx)(`span`,{children:`命令面板`}),(0,B.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,B.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`1.48.0`]}),(0,B.jsxs)(`div`,{className:q(`flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold`,i?.status===`ok`?`bg-green-50 text-green-700 border border-green-200`:`bg-red-50 text-red-700 border border-red-200`),children:[(0,B.jsx)(`div`,{className:q(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,B.jsx)(`div`,{className:`p-8 overflow-x-hidden`,children:e})]})]})}var rf=(0,z.createContext)({});function af(e){let t=(0,z.useRef)(null);return t.current===null&&(t.current=e()),t.current}var of=typeof window<`u`?z.useLayoutEffect:z.useEffect,sf=(0,z.createContext)(null);function cf(e,t){e.indexOf(t)===-1&&e.push(t)}function lf(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var uf=(e,t,n)=>n>t?t:n<e?e:n,df={},ff=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function pf(e){return typeof e==`object`&&!!e}var mf=e=>/^0[^.\s]+$/u.test(e);function hf(e){let t;return()=>(t===void 0&&(t=e()),t)}var gf=e=>e,_f=(e,t)=>n=>t(e(n)),vf=(...e)=>e.reduce(_f),yf=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},bf=class{constructor(){this.subscriptions=[]}add(e){return cf(this.subscriptions,e),()=>lf(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},xf=e=>e*1e3,Sf=e=>e/1e3;function Cf(e,t){return t?1e3/t*e:0}var wf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tf=1e-7,Ef=12;function Df(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=wf(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Tf&&++s<Ef);return o}function Of(e,t,n,r){if(e===t&&n===r)return gf;let i=t=>Df(t,0,1,e,n);return e=>e===0||e===1?e:wf(i(e),t,r)}var kf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Af=e=>t=>1-e(1-t),jf=Of(.33,1.53,.69,.99),Mf=Af(jf),Nf=kf(Mf),Pf=e=>e>=1?1:(e*=2)<1?.5*Mf(e):.5*(2-2**(-10*(e-1))),Ff=e=>1-Math.sin(Math.acos(e)),If=Af(Ff),Lf=kf(Ff),Rf=Of(.42,0,1,1),zf=Of(0,0,.58,1),Bf=Of(.42,0,.58,1),Vf=e=>Array.isArray(e)&&typeof e[0]!=`number`,Hf=e=>Array.isArray(e)&&typeof e[0]==`number`,Uf={linear:gf,easeIn:Rf,easeInOut:Bf,easeOut:zf,circIn:Ff,circInOut:Lf,circOut:If,backIn:Mf,backInOut:Nf,backOut:jf,anticipate:Pf},Wf=e=>typeof e==`string`,Gf=e=>{if(Hf(e)){e.length;let[t,n,r,i]=e;return Of(t,n,r,i)}else if(Wf(e))return Uf[e],`${e}`,Uf[e];return e},Kf=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],qf={value:null,addProjectionMetrics:null};function Jf(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&qf.value&&qf.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Yf=40;function Xf(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Kf.reduce((e,n)=>(e[n]=Jf(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=df.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Yf),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Kf.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Kf.length;t++)o[Kf[t]].cancel(e)},state:i,steps:o}}var{schedule:Zf,cancel:Qf,state:$f,steps:ep}=Xf(typeof requestAnimationFrame<`u`?requestAnimationFrame:gf,!0),tp;function np(){tp=void 0}var rp={now:()=>(tp===void 0&&rp.set($f.isProcessing||df.useManualTiming?$f.timestamp:performance.now()),tp),set:e=>{tp=e,queueMicrotask(np)}},ip={layout:0,mainThread:0,waapi:0},ap=e=>t=>typeof t==`string`&&t.startsWith(e),op=ap(`--`),sp=ap(`var(--`),cp=e=>sp(e)?lp.test(e.split(`/*`)[0].trim()):!1,lp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function up(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var dp={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},fp={...dp,transform:e=>uf(0,1,e)},pp={...dp,default:1},mp=e=>Math.round(e*1e5)/1e5,hp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gp(e){return e==null}var _p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vp=(e,t)=>n=>!!(typeof n==`string`&&_p.test(n)&&n.startsWith(e)||t&&!gp(n)&&Object.prototype.hasOwnProperty.call(n,t)),yp=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(hp);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},bp=e=>uf(0,255,e),xp={...dp,transform:e=>Math.round(bp(e))},Sp={test:vp(`rgb`,`red`),parse:yp(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xp.transform(e)+`, `+xp.transform(t)+`, `+xp.transform(n)+`, `+mp(fp.transform(r))+`)`};function Cp(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var wp={test:vp(`#`),parse:Cp,transform:Sp.transform},Tp=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ep=Tp(`deg`),Dp=Tp(`%`),J=Tp(`px`),Op=Tp(`vh`),kp=Tp(`vw`),Ap={...Dp,parse:e=>Dp.parse(e)/100,transform:e=>Dp.transform(e*100)},jp={test:vp(`hsl`,`hue`),parse:yp(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Dp.transform(mp(t))+`, `+Dp.transform(mp(n))+`, `+mp(fp.transform(r))+`)`},Mp={test:e=>Sp.test(e)||wp.test(e)||jp.test(e),parse:e=>Sp.test(e)?Sp.parse(e):jp.test(e)?jp.parse(e):wp.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sp.transform(e):jp.transform(e),getAnimatableNone:e=>{let t=Mp.parse(e);return t.alpha=0,Mp.transform(t)}},Np=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pp(e){return isNaN(e)&&typeof e==`string`&&(e.match(hp)?.length||0)+(e.match(Np)?.length||0)>0}var Fp=`number`,Ip=`color`,Lp=`var`,Rp=`var(`,zp="${}",Bp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vp(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Bp,e=>(Mp.test(e)?(r.color.push(a),i.push(Ip),n.push(Mp.parse(e))):e.startsWith(Rp)?(r.var.push(a),i.push(Lp),n.push(e)):(r.number.push(a),i.push(Fp),n.push(parseFloat(e))),++a,zp)).split(zp),indexes:r,types:i}}function Hp(e){return Vp(e).values}function Up({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Fp?i+=mp(r[a]):e===Ip?i+=Mp.transform(r[a]):i+=r[a]}return i}}function Wp(e){return Up(Vp(e))}var Gp=e=>typeof e==`number`?0:Mp.test(e)?Mp.getAnimatableNone(e):e,Kp=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Gp(e);function eee(e){let t=Vp(e);return Up(t)(t.values.map((e,n)=>Kp(e,t.split[n])))}var qp={test:Pp,parse:Hp,createTransformer:Wp,getAnimatableNone:eee};function Jp(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Jp(s,r,e+1/3),a=Jp(s,r,e),o=Jp(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Yp(e,t){return n=>n>0?t:e}var Xp=(e,t,n)=>e+(t-e)*n,Zp=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Qp=[wp,Sp,jp],$p=e=>Qp.find(t=>t.test(e));function em(e){let t=$p(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jp&&(n=tee(n)),n}var tm=(e,t)=>{let n=em(e),r=em(t);if(!n||!r)return Yp(e,t);let i={...n};return e=>(i.red=Zp(n.red,r.red,e),i.green=Zp(n.green,r.green,e),i.blue=Zp(n.blue,r.blue,e),i.alpha=Xp(n.alpha,r.alpha,e),Sp.transform(i))},nm=new Set([`none`,`hidden`]);function rm(e,t){return nm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function im(e,t){return n=>Xp(e,t,n)}function am(e){return typeof e==`number`?im:typeof e==`string`?cp(e)?Yp:Mp.test(e)?tm:lm:Array.isArray(e)?om:typeof e==`object`?Mp.test(e)?tm:sm:Yp}function om(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>am(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function sm(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=am(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function cm(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var lm=(e,t)=>{let n=qp.createTransformer(t),r=Vp(e),i=Vp(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nm.has(e)&&!i.values.length||nm.has(t)&&!r.values.length?rm(e,t):vf(om(cm(r,i),i.values),n):(`${e}${t}`,Yp(e,t))};function um(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Xp(e,t,n):am(e)(e,t)}var dm=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Zf.update(t,e),stop:()=>Qf(t),now:()=>$f.isProcessing?$f.timestamp:rp.now()}},fm=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},pm=2e4;function mm(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nee(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(mm(r),pm);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Sf(i)}}var hm={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function gm(e,t){return e*Math.sqrt(1-t*t)}var _m=12;function vm(e,t,n){let r=n;for(let n=1;n<_m;n++)r-=e(r)/t(r);return r}var ym=.001;function bm({duration:e=hm.duration,bounce:t=hm.bounce,velocity:n=hm.velocity,mass:r=hm.mass}){let i,a;hm.maxDuration;let o=1-t;o=uf(hm.minDamping,hm.maxDamping,o),e=uf(hm.minDuration,hm.maxDuration,Sf(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=gm(t,o),c=Math.exp(-i);return ym-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=gm(t**2,o);return(-i(t)+ym>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-ym+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=vm(i,a,s);if(e=xf(e),isNaN(c))return{stiffness:hm.stiffness,damping:hm.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var xm=[`duration`,`bounce`],Sm=[`stiffness`,`damping`,`mass`];function Cm(e,t){return t.some(t=>e[t]!==void 0)}function wm(e){let t={velocity:hm.velocity,stiffness:hm.stiffness,damping:hm.damping,mass:hm.mass,isResolvedFromDuration:!1,...e};if(!Cm(e,Sm)&&Cm(e,xm))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*uf(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:hm.mass,stiffness:i,damping:a}}else{let n=bm({...e,velocity:0});t={...t,...n,mass:hm.mass},t.isResolvedFromDuration=!0}return t}function Tm(e=hm.visualDuration,t=hm.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=wm({...n,velocity:-Sf(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Sf(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?hm.restSpeed.granular:hm.restSpeed.default,i||=v?hm.restDelta.granular:hm.restDelta.default;let y,b,x,S,C,w;if(h<1)x=gm(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>xf(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=xf(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=xf(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(mm(T),pm),t=fm(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Tm.applyToOptions=e=>{let t=nee(e,100,Tm);return e.ease=t.ease,e.duration=xf(t.duration),e.type=`keyframes`,e};var Em=5;function Dm(e,t,n){let r=Math.max(t-Em,0);return Cf(n-e(r),t-r)}function Om({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Tm({keyframes:[f.value,m(f.value)],velocity:Dm(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function km(e,t,n){let r=[],i=n||df.mix||um,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=vf(Array.isArray(t)?t[n]||gf:t,a)),r.push(a)}return r}function Am(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=km(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=yf(e[r],e[r+1],n);return s[r](i)};return n?t=>l(uf(e[0],e[a-1],t)):l}function jm(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=yf(0,t,r);e.push(Xp(n,1,i))}}function ree(e){let t=[0];return jm(t,e.length-1),t}function iee(e,t){return e.map(e=>e*t)}function aee(e,t){return e.map(()=>t||Bf).splice(0,e.length-1)}function Mm({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Vf(r)?r.map(Gf):Gf(r),a={done:!1,value:t[0]},o=Am(iee(n&&n.length===t.length?n:ree(t),e),t,{ease:Array.isArray(i)?i:aee(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var oee=e=>e!==null;function Nm(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(oee),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var see={decay:Om,inertia:Om,tween:Mm,keyframes:Mm,spring:Tm};function Pm(e){typeof e.type==`string`&&(e.type=see[e.type])}var Fm=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Im=e=>e/100,Lm=class extends Fm{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==rp.now()&&this.tick(rp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ip.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Pm(e);let{type:t=Mm,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Mm;s!==Mm&&typeof o[0]!=`number`&&(this.mixKeyframes=vf(Im,um(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=mm(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=uf(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Om&&(b.value=Nm(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Sf(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Sf(e)}get time(){return Sf(this.currentTime)}set time(e){e=xf(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Dm(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(rp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Sf(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=dm,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(rp.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ip.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Rm(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var zm=e=>e*180/Math.PI,Bm=e=>Hm(zm(Math.atan2(e[1],e[0]))),Vm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bm,rotateZ:Bm,skewX:e=>zm(Math.atan(e[1])),skewY:e=>zm(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Hm=e=>(e%=360,e<0&&(e+=360),e),Um=Bm,Wm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Km={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wm,scaleY:Gm,scale:e=>(Wm(e)+Gm(e))/2,rotateX:e=>Hm(zm(Math.atan2(e[6],e[5]))),rotateY:e=>Hm(zm(Math.atan2(-e[2],e[0]))),rotateZ:Um,rotate:Um,skewX:e=>zm(Math.atan(e[4])),skewY:e=>zm(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qm(e){return+!!e.includes(`scale`)}function Jm(e,t){if(!e||e===`none`)return qm(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Km,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vm,i=t}if(!i)return qm(t);let a=r[t],o=i[1].split(`,`).map(Xm);return typeof a==`function`?a(o):o[a]}var Ym=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Jm(n,t)};function Xm(e){return parseFloat(e.trim())}var Zm=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Qm=new Set(Zm),$m=e=>e===dp||e===J,eh=new Set([`x`,`y`,`z`]),th=Zm.filter(e=>!eh.has(e));function nh(e){let t=[];return th.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var rh={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jm(t,`x`),y:(e,{transform:t})=>Jm(t,`y`)};rh.translateX=rh.x,rh.translateY=rh.y;var ih=new Set,ah=!1,oh=!1,sh=!1;function ch(){if(oh){let e=Array.from(ih).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=nh(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}oh=!1,ah=!1,ih.forEach(e=>e.complete(sh)),ih.clear()}function lh(){ih.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oh=!0)})}function uh(){sh=!0,lh(),ch(),sh=!1}var dh=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ih.add(this),ah||(ah=!0,Zf.read(lh),Zf.resolveKeyframes(ch))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Rm(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ih.delete(this)}cancel(){this.state===`scheduled`&&(ih.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},fh=e=>e.startsWith(`--`);function ph(e,t,n){fh(t)?e.style.setProperty(t,n):e.style[t]=n}var mh={};function hh(e,t){let n=hf(e);return()=>mh[t]??n()}var gh=hh(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),_h=hh(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),vh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yh={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:vh([0,.65,.55,1]),circOut:vh([.55,0,1,.45]),backIn:vh([.31,.01,.66,-.59]),backOut:vh([.33,1.53,.69,.99])};function bh(e,t){if(e)return typeof e==`function`?_h()?fm(e,t):`ease-out`:Hf(e)?vh(e):Array.isArray(e)?e.map(e=>bh(e,t)||yh.easeOut):yh[e]}function xh(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=bh(s,i);Array.isArray(d)&&(u.easing=d),qf.value&&ip.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return qf.value&&p.finished.finally(()=>{ip.waapi--}),p}function Sh(e){return typeof e==`function`&&`applyToOptions`in e}function Ch({type:e,...t}){return Sh(e)&&_h()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var wh=class extends Fm{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ch(e);this.animation=xh(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nm(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ph(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Sf(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Sf(e)}get time(){return Sf(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xf(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&gh()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),gf):r(this)}},Th={anticipate:Pf,backInOut:Nf,circInOut:Lf};function Eh(e){return e in Th}function Dh(e){typeof e.ease==`string`&&Eh(e.ease)&&(e.ease=Th[e.ease])}var Oh=10,kh=class extends wh{constructor(e){Dh(e),Pm(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Lm({...a,autoplay:!1}),s=Math.max(Oh,rp.now()-this.startTime),c=uf(0,Oh,s-Oh),l=o.sample(s).value,{name:u}=this.options;i&&u&&ph(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ah=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(qp.test(e)||e===`0`)&&!e.startsWith(`url(`));function jh(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mh(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ah(i,t),s=Ah(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:jh(e)||(n===`spring`||Sh(n))&&r}function Nh(e){e.duration=0,e.type=`keyframes`}var Ph=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Fh=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ih(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fh.test(e[t]))return!0;return!1}var Lh=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Rh=hf(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function zh(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Rh()&&n&&(Ph.has(n)||Lh.has(n)&&Ih(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Bh=40,Vh=class extends Fm{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=rp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||dh)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=rp.now();let u=!0;Mh(e,i,a,o)||(u=!1,(df.instantAnimations||!s)&&l?.(Nm(e,n,t)),e[0]=e[e.length-1],Nh(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Bh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&zh(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new kh({...d,element:p})}catch{m=new Lm(d)}else m=new Lm(d);m.finished.then(()=>{this.notifyFinished()}).catch(gf),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Hh(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Uh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wh(e){let t=Uh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Gh(e,t,n=1){`${e}`;let[r,i]=Wh(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ff(e)?parseFloat(e):e}return cp(i)?Gh(i,t,n+1):i}var Kh={type:`spring`,stiffness:500,damping:25,restSpeed:10},qh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jh={type:`keyframes`,duration:.8},Yh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Xh=(e,{keyframes:t})=>t.length>2?Jh:Qm.has(e)?e.startsWith(`scale`)?qh(t[1]):Kh:Yh;function Zh(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Qh(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Zh(n,e)}var cee=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function lee(e){for(let t in e)if(!cee.has(t))return!0;return!1}var $h=(e,t,n,r={},i,a)=>o=>{let s=Qh(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=xf(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};lee(s)||Object.assign(u,Xh(e,u)),u.duration&&=xf(u.duration),u.repeatDelay&&=xf(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Nh(u),u.delay===0&&(d=!0)),(df.instantAnimations||df.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Nh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nm(u.keyframes,s);if(e!==void 0){Zf.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Lm(u):new Vh(u)};function eg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tg(e,t,n,r){if(typeof t==`function`){let[i,a]=eg(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=eg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ng(e,t,n){let r=e.getProps();return tg(r,t,n===void 0?r.custom:n,e)}var rg=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Zm]),ig=30,uee=e=>!isNaN(parseFloat(e)),ag={current:void 0},dee=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=rp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=rp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uee(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new bf);let n=this.events[e].add(t);return e===`change`?()=>{n(),Zf.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ag.current&&ag.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=rp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ig)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ig);return Cf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function og(e,t){return new dee(e,t)}var sg=e=>Array.isArray(e);function fee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,og(n))}function pee(e){return sg(e)?e[e.length-1]||0:e}function mee(e,t){let{transitionEnd:n={},transition:r={},...i}=ng(e,t)||{};i={...i,...n};for(let t in i)fee(e,t,pee(i[t]))}var cg=e=>!!(e&&e.getVelocity);function hee(e){return!!(cg(e)&&e.add)}function lg(e,t){let n=e.getValue(`willChange`);if(hee(n))return n.add(t);if(!n&&df.WillChange){let n=new df.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ug(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var dg=`data-`+ug(`framerAppearId`);function fg(e){return e.props[dg]}function gee({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Zh(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&gee(d,t))continue;let o={delay:n,...Qh(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Zf.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=fg(e);if(n){let e=window.MotionHandoffAnimation(n,t,Zf);e!==null&&(o.startTime=e,f=!0)}}lg(e,t);let p=l??e.shouldReduceMotion;r.start($h(t,r,i,p&&rg.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>Zf.update(()=>{o&&mee(e,o)});u.length?Promise.all(u).then(t):t()}return u}function mg(e,t,n={}){let r=ng(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(pg(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return hg(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function hg(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(mg(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Hh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function gg(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>mg(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=mg(e,t,n);else{let i=typeof t==`function`?ng(e,t,n.custom):t;r=Promise.all(pg(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var _g={test:e=>e===`auto`,parse:e=>e},vg=e=>t=>t.test(e),yg=[dp,J,Dp,Ep,kp,Op,_g],bg=e=>yg.find(vg(e));function xg(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||mf(e)}var Sg=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function _ee(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hp)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Sg.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var vee=/\b([a-z-]*)\(.*?\)/gu,Cg={...qp,getAnimatableNone:e=>{let t=e.match(vee);return t?t.map(_ee).join(` `):e}},wg={...qp,getAnimatableNone:e=>{let t=qp.parse(e);return qp.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Tg={...dp,transform:Math.round},Eg={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:Ep,rotateX:Ep,rotateY:Ep,rotateZ:Ep,scale:pp,scaleX:pp,scaleY:pp,scaleZ:pp,skew:Ep,skewX:Ep,skewY:Ep,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:fp,originX:Ap,originY:Ap,originZ:J,zIndex:Tg,fillOpacity:fp,strokeOpacity:fp,numOctaves:Tg},Dg={...Eg,color:Mp,backgroundColor:Mp,outlineColor:Mp,fill:Mp,stroke:Mp,borderColor:Mp,borderTopColor:Mp,borderRightColor:Mp,borderBottomColor:Mp,borderLeftColor:Mp,filter:Cg,WebkitFilter:Cg,mask:wg,WebkitMask:wg},Og=e=>Dg[e],kg=new Set([Cg,wg]);function Ag(e,t){let n=Og(e);return kg.has(n)||(n=qp),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var yee=new Set([`auto`,`none`,`0`]);function bee(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!yee.has(t)&&Vp(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ag(n,i)}var xee=class extends dh{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),cp(r))){let i=Gh(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!rg.has(n)||e.length!==2)return;let[r,i]=e,a=bg(r),o=bg(i);if(up(r)!==up(i)&&rh[n]){this.needsMeasurement=!0;return}if(a!==o)if($m(a)&&$m(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else rh[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||xg(e[t]))&&n.push(t);n.length&&bee(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=rh[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function jg(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Mg=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ng(e){return pf(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Pg,cancel:See}=Xf(queueMicrotask,!1),Fg={x:!1,y:!1};function Ig(){return Fg.x||Fg.y}function Cee(e){return e===`x`||e===`y`?Fg[e]?null:(Fg[e]=!0,()=>{Fg[e]=!1}):Fg.x||Fg.y?null:(Fg.x=Fg.y=!0,()=>{Fg.x=Fg.y=!1})}function Lg(e,t){let n=jg(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function wee(e){return!(e.pointerType===`touch`||Ig())}function Tee(e,t,n={}){let[r,i,a]=Lg(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!wee(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Rg=(e,t)=>t?e===t?!0:Rg(e,t.parentElement):!1,zg=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Bg=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Vg(e){return Bg.has(e.tagName)||e.isContentEditable===!0}var Hg=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ug(e){return Hg.has(e.tagName)||e.isContentEditable===!0}var Wg=new WeakSet;function Gg(e){return t=>{t.key===`Enter`&&e(t)}}function Kg(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var qg=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Gg(()=>{if(Wg.has(n))return;Kg(n,`down`);let e=Gg(()=>{Kg(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Kg(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Jg(e){return zg(e)&&!Ig()}var Yg=new WeakSet;function Eee(e,t,n={}){let[r,i,a]=Lg(e,n),o=e=>{let r=e.currentTarget;if(!Jg(e)||Yg.has(e))return;Wg.add(r),n.stopPropagation&&Yg.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Wg.has(r)&&Wg.delete(r),Jg(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Rg(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ng(e)&&(e.addEventListener(`focus`,e=>qg(e,i)),!Vg(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Xg(e){return pf(e)&&`ownerSVGElement`in e}var Zg=new WeakMap,Qg,$g=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xg(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Dee=$g(`inline`,`width`,`offsetWidth`),Oee=$g(`block`,`height`,`offsetHeight`);function kee({target:e,borderBoxSize:t}){Zg.get(e)?.forEach(n=>{n(e,{get width(){return Dee(e,t)},get height(){return Oee(e,t)}})})}function e_(e){e.forEach(kee)}function t_(){typeof ResizeObserver>`u`||(Qg=new ResizeObserver(e_))}function n_(e,t){Qg||t_();let n=jg(e);return n.forEach(e=>{let n=Zg.get(e);n||(n=new Set,Zg.set(e,n)),n.add(t),Qg?.observe(e)}),()=>{n.forEach(e=>{let n=Zg.get(e);n?.delete(t),n?.size||Qg?.unobserve(e)})}}var r_=new Set,i_;function a_(){i_=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r_.forEach(t=>t(e))},window.addEventListener(`resize`,i_)}function o_(e){return r_.add(e),i_||a_(),()=>{r_.delete(e),!r_.size&&typeof i_==`function`&&(window.removeEventListener(`resize`,i_),i_=void 0)}}function s_(e,t){return typeof e==`function`?o_(e):n_(e,t)}function c_(e){return Xg(e)&&e.tagName===`svg`}var l_=[...yg,Mp,qp],u_=e=>l_.find(vg(e)),d_=()=>({translate:0,scale:1,origin:0,originPoint:0}),f_=()=>({x:d_(),y:d_()}),p_=()=>({min:0,max:0}),m_=()=>({x:p_(),y:p_()}),h_=new WeakMap;function g_(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function __(e){return typeof e==`string`||Array.isArray(e)}var v_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],y_=[`initial`,...v_];function b_(e){return g_(e.animate)||y_.some(t=>__(e[t]))}function x_(e){return!!(b_(e)||e.variants)}function S_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(cg(i))e.addValue(r,i);else if(cg(a))e.addValue(r,og(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,og(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var C_={current:null},w_={current:!1},T_=typeof window<`u`;function E_(){if(w_.current=!0,T_)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>C_.current=e.matches;e.addEventListener(`change`,t),t()}else C_.current=!1}var D_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],O_={};function k_(e){O_=e}function A_(){return O_}var j_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=dh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=rp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Zf.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=b_(t),this.isVariantNode=x_(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&cg(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,h_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(w_.current||E_(),this.shouldReduceMotion=C_.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Qf(this.notifyUpdate),Qf(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ph.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new wh({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:xf(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Qm.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Zf.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in O_){let t=O_[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):m_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<D_.length;t++){let n=D_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=S_(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=og(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ff(n)||mf(n))?n=parseFloat(n):!u_(n)&&qp.test(t)&&(n=Ag(e,t)),this.setBaseTarget(e,cg(n)?n.get():n)),cg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=tg(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!cg(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new bf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Pg.render(this.render)}},M_=class extends j_{constructor(){super(...arguments),this.KeyframeResolver=xee}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;cg(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},N_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function P_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function F_(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function I_(e){return e===void 0||e===1}function L_({scale:e,scaleX:t,scaleY:n}){return!I_(e)||!I_(t)||!I_(n)}function R_(e){return L_(e)||z_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z_(e){return B_(e.x)||B_(e.y)}function B_(e){return e&&e!==`0%`}function V_(e,t,n){return n+t*(e-n)}function H_(e,t,n,r,i){return i!==void 0&&(e=V_(e,i,r)),V_(e,n,r)+t}function U_(e,t=0,n=1,r,i){e.min=H_(e.min,t,n,r,i),e.max=H_(e.max,t,n,r,i)}function W_(e,{x:t,y:n}){U_(e.x,t.translate,t.scale,t.originPoint),U_(e.y,n.translate,n.scale,n.originPoint)}var G_=.999999999999,K_=1.0000000000001;function jee(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(q_(e.x,-a.scroll.offset.x),q_(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,W_(e,o)),r&&R_(a.latestValues)&&X_(e,a.latestValues,a.layout?.layoutBox))}t.x<K_&&t.x>G_&&(t.x=1),t.y<K_&&t.y>G_&&(t.y=1)}function q_(e,t){e.min+=t,e.max+=t}function J_(e,t,n,r,i=.5){U_(e,t,n,Xp(e.min,e.max,i),r)}function Y_(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function X_(e,t,n){let r=n??e;J_(e.x,Y_(t.x,r.x),t.scaleX,t.scale,t.originX),J_(e.y,Y_(t.y,r.y),t.scaleY,t.scale,t.originY)}function Z_(e,t){return P_(F_(e.getBoundingClientRect(),t))}function Mee(e,t,n){let r=Z_(e,n),{scroll:i}=t;return i&&(q_(r.x,i.offset.x),q_(r.y,i.offset.y)),r}var Nee={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Pee=Zm.length;function Fee(e,t,n){let r=``,i=!0;for(let a=0;a<Pee;a++){let o=Zm[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Mg(s,Eg[o]);if(!c){i=!1;let t=Nee[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Q_(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Qm.has(e)){o=!0;continue}else if(op(e)){i[e]=n;continue}else{let t=Mg(n,Eg[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Fee(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function $_(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ev(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var tv={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${ev(e,t.target.x)}% ${ev(e,t.target.y)}%`}},nv={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=qp.parse(e);if(i.length>5)return r;let a=qp.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Xp(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},rv={borderRadius:{...tv,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:tv,borderTopRightRadius:tv,borderBottomLeftRadius:tv,borderBottomRightRadius:tv,boxShadow:nv};function iv(e,{layout:t,layoutId:n}){return Qm.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!rv[e]||e===`opacity`)}function av(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(cg(r[t])||i&&cg(i[t])||iv(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ov(e){return window.getComputedStyle(e)}var sv=class extends M_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=$_}readValueFromInstance(e,t){if(Qm.has(t))return this.projection?.isProjecting?qm(t):Ym(e,t);{let n=ov(e),r=(op(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Z_(e,t)}build(e,t,n){Q_(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return av(e,t,n)}},cv={offset:`stroke-dashoffset`,array:`stroke-dasharray`},lv={offset:`strokeDashoffset`,array:`strokeDasharray`};function uv(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?cv:lv;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var dv=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function fv(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Q_(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of dv)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&uv(d,i,a,o,!1)}var pv=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),mv=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function hv(e,t,n,r){$_(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(pv.has(n)?n:ug(n),t.attrs[n])}function gv(e,t,n){let r=av(e,t,n);for(let n in e)if(cg(e[n])||cg(t[n])){let t=Zm.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var _v=class extends M_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=m_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Qm.has(t)){let e=Og(t);return e&&e.default||0}return t=pv.has(t)?t:ug(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return gv(e,t,n)}build(e,t,n){fv(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){hv(e,t,n,r)}mount(e){this.isSVGTag=mv(e.tagName),super.mount(e)}},vv=y_.length;function yv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&yv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<vv;n++){let r=y_[n],i=e.props[r];(__(i)||i===!1)&&(t[r]=i)}return t}function bv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var xv=[...v_].reverse(),Sv=v_.length;function Cv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>gg(e,t,n)))}function wv(e){let t=Cv(e),n=Dv(),r=!0,i=!1,a=t=>(n,r)=>{let i=ng(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=yv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Sv;t++){let p=xv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=__(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||g_(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Tv(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=sg(t)&&sg(n)?!bv(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ng(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Hh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ng(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Dv(),i=!0}}}function Tv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!bv(t,e):!1}function Ev(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dv(){return{animate:Ev(!0),whileInView:Ev(),whileHover:Ev(),whileTap:Ev(),whileDrag:Ev(),whileFocus:Ev(),exit:Ev()}}function Ov(e,t){e.min=t.min,e.max=t.max}function kv(e,t){Ov(e.x,t.x),Ov(e.y,t.y)}function Av(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var jv=1e-4,Mv=1-jv,Nv=1+jv,Pv=.01,Fv=0-Pv,Iv=0+Pv;function Lv(e){return e.max-e.min}function Rv(e,t,n){return Math.abs(e-t)<=n}function zv(e,t,n,r=.5){e.origin=r,e.originPoint=Xp(t.min,t.max,e.origin),e.scale=Lv(n)/Lv(t),e.translate=Xp(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Mv&&e.scale<=Nv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Fv&&e.translate<=Iv||isNaN(e.translate))&&(e.translate=0)}function Bv(e,t,n,r){zv(e.x,t.x,n.x,r?r.originX:void 0),zv(e.y,t.y,n.y,r?r.originY:void 0)}function Vv(e,t,n,r=0){e.min=(r?Xp(n.min,n.max,r):n.min)+t.min,e.max=e.min+Lv(t)}function Hv(e,t,n,r){Vv(e.x,t.x,n.x,r?.x),Vv(e.y,t.y,n.y,r?.y)}function Uv(e,t,n,r=0){let i=r?Xp(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Lv(t)}function Wv(e,t,n,r){Uv(e.x,t.x,n.x,r?.x),Uv(e.y,t.y,n.y,r?.y)}function Gv(e,t,n,r,i){return e-=t,e=V_(e,1/n,r),i!==void 0&&(e=V_(e,1/i,r)),e}function Kv(e,t=0,n=1,r=.5,i,a=e,o=e){if(Dp.test(t)&&(t=parseFloat(t),t=Xp(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Xp(a.min,a.max,r);e===a&&(s-=t),e.min=Gv(e.min,t,n,s,i),e.max=Gv(e.max,t,n,s,i)}function qv(e,t,[n,r,i],a,o){Kv(e,t[n],t[r],t[i],t.scale,a,o)}var Jv=[`x`,`scaleX`,`originX`],Yv=[`y`,`scaleY`,`originY`];function Xv(e,t,n,r){qv(e.x,t,Jv,n?n.x:void 0,r?r.x:void 0),qv(e.y,t,Yv,n?n.y:void 0,r?r.y:void 0)}function Zv(e){return e.translate===0&&e.scale===1}function Qv(e){return Zv(e.x)&&Zv(e.y)}function $v(e,t){return e.min===t.min&&e.max===t.max}function ey(e,t){return $v(e.x,t.x)&&$v(e.y,t.y)}function ty(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ny(e,t){return ty(e.x,t.x)&&ty(e.y,t.y)}function ry(e){return Lv(e.x)/Lv(e.y)}function iy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ay(e){return[e(`x`),e(`y`)]}function oy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var sy=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],cy=sy.length,ly=e=>typeof e==`string`?parseFloat(e):e,uy=e=>typeof e==`number`||J.test(e);function dy(e,t,n,r,i,a){i?(e.opacity=Xp(0,n.opacity??1,py(r)),e.opacityExit=Xp(t.opacity??1,0,my(r))):a&&(e.opacity=Xp(t.opacity??1,n.opacity??1,r));for(let i=0;i<cy;i++){let a=sy[i],o=fy(t,a),s=fy(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||uy(o)===uy(s)?(e[a]=Math.max(Xp(ly(o),ly(s),r),0),(Dp.test(s)||Dp.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Xp(t.rotate||0,n.rotate||0,r))}function fy(e,t){return e[t]===void 0?e.borderRadius:e[t]}var py=hy(0,.5,If),my=hy(.5,.95,gf);function hy(e,t,n){return r=>r<e?0:r>t?1:n(yf(e,t,r))}function gy(e,t,n){let r=cg(e)?e:og(e);return r.start($h(``,r,t,n)),r.animation}function _y(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var vy=(e,t)=>e.depth-t.depth,yy=class{constructor(){this.children=[],this.isDirty=!1}add(e){cf(this.children,e),this.isDirty=!0}remove(e){lf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vy),this.isDirty=!1,this.children.forEach(e)}};function by(e,t){let n=rp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Qf(r),e(a-t))};return Zf.setup(r,!0),()=>Qf(r)}function xy(e){return cg(e)?e.get():e}var Sy=class{constructor(){this.members=[]}add(e){cf(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(lf(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(lf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Cy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ty=[``,`X`,`Y`,`Z`],Ey=1e3,Dy=0;function Oy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ky(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=fg(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Zf,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ky(r)}function Ay({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Dy++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,qf.value&&(wy.nodes=wy.calculatedTargetDeltas=wy.calculatedProjections=0),this.nodes.forEach(Ny),this.nodes.forEach(Iee),this.nodes.forEach(Lee),this.nodes.forEach(Py),qf.addProjectionMetrics&&qf.addProjectionMetrics(wy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new yy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Xg(t)&&!c_(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Zf.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=by(i,250),Cy.hasAnimatedSinceResize&&(Cy.hasAnimatedSinceResize=!1,this.nodes.forEach(Vy)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Hee,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ny(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Qh(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Vy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Qf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ree),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ky(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ly),this.nodes.forEach(Iy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ry);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zy),this.nodes.forEach(By),this.nodes.forEach(jy),this.nodes.forEach(My)):this.nodes.forEach(Ry),this.clearAllSnapshots();let e=rp.now();$f.delta=uf(0,1e3/60,e-$f.timestamp),$f.timestamp=e,$f.isProcessing=!0,ep.update.process($f),ep.preRender.process($f),ep.render.process($f),$f.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fy),this.sharedNodes.forEach(zee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Zf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Zf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Lv(this.snapshot.measuredBox.x)&&!Lv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=m_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Qv(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||R_(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Uee(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return m_();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wee))){let{scroll:e}=this.root;e&&(q_(t.x,e.offset.x),q_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=m_();if(kv(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&kv(t,e),q_(t.x,i.offset.x),q_(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||m_();kv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(q_(r.x,-n.scroll.offset.x),q_(r.y,-n.scroll.offset.y)),R_(n.latestValues)&&X_(r,n.latestValues,n.layout?.layoutBox)}return R_(this.latestValues)&&X_(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=m_();kv(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!R_(n.latestValues))continue;let r;n.instance&&(L_(n.latestValues)&&n.updateSnapshot(),r=m_(),kv(r,n.measurePageBox())),Xv(t,n.latestValues,n.snapshot?.layoutBox,r)}return R_(this.latestValues)&&Xv(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$f.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=$f.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=m_(),this.targetWithTransforms=m_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Hv(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):kv(this.target,this.layout.layoutBox),W_(this.target,this.targetDelta)):kv(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),qf.value&&wy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||L_(this.parent.latestValues)||z_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=m_(),this.relativeTargetOrigin=m_(),Wv(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),kv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===$f.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;kv(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;jee(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=m_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Av(this.prevProjectionDelta.x,this.projectionDelta.x),Av(this.prevProjectionDelta.y,this.projectionDelta.y)),Bv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!iy(this.projectionDelta.x,this.prevProjectionDelta.x)||!iy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),qf.value&&wy.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=f_(),this.projectionDelta=f_(),this.projectionDeltaWithTransform=f_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=f_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=m_(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Vee));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Hy(a.x,e.x,n),Hy(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bee(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&ey(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=m_(),kv(d,this.relativeTarget)),s&&(this.animationValues=i,dy(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Qf(this.pendingAnimation),void 0),this.pendingAnimation=Zf.update(()=>{Cy.hasAnimatedSinceResize=!0,ip.layout++,this.motionValue||=og(0),this.motionValue.jump(0,!1),this.currentAnimation=gy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ip.layout--},onComplete:()=>{ip.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ey),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&qy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||m_();let t=Lv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Lv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}kv(t,n),X_(t,i),Bv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Sy),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Oy(`z`,e,r,this.animationValues);for(let t=0;t<Ty.length;t++)Oy(`rotate${Ty[t]}`,e,r,this.animationValues),Oy(`skew${Ty[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=xy(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=xy(t?.pointerEvents)||``),this.hasProjected&&!R_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=oy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in rv){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=rv[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?xy(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Iy),this.root.sharedNodes.clear()}}}function jy(e){e.updateLayout()}function My(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)ay(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Lv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ov(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else qy(i,t.layoutBox,n)&&ay(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Lv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=f_();Bv(o,n,t.layoutBox);let s=f_();a?Bv(s,e.applyTransform(r,!0),t.measuredBox):Bv(s,n,t.layoutBox);let c=!Qv(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=m_();Wv(s,t.layoutBox,i.layoutBox,o);let c=m_();Wv(c,n,a.layoutBox,o),ny(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ny(e){qf.value&&wy.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Py(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fy(e){e.clearSnapshot()}function Iy(e){e.clearMeasurements()}function Ly(e){e.isLayoutDirty=!0,e.updateLayout()}function Ry(e){e.isLayoutDirty=!1}function zy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function By(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Vy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Iee(e){e.resolveTargetDelta()}function Lee(e){e.calcProjection()}function Ree(e){e.resetSkewAndRotation()}function zee(e){e.removeLeadSnapshot()}function Hy(e,t,n){e.translate=Xp(t.translate,0,n),e.scale=Xp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uy(e,t,n,r){e.min=Xp(t.min,n.min,r),e.max=Xp(t.max,n.max,r)}function Bee(e,t,n,r){Uy(e.x,t.x,n.x,r),Uy(e.y,t.y,n.y,r)}function Vee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hee={duration:.45,ease:[.4,0,.1,1]},Wy=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gy=Wy(`applewebkit/`)&&!Wy(`chrome/`)?Math.round:gf;function Ky(e){e.min=Gy(e.min),e.max=Gy(e.max)}function Uee(e){Ky(e.x),Ky(e.y)}function qy(e,t,n){return e===`position`||e===`preserve-aspect`&&!Rv(ry(t),ry(n),.2)}function Wee(e){return e!==e.root&&e.scroll?.wasRoot}var Gee=Ay({attachResizeListener:(e,t)=>_y(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Jy={current:void 0},Yy=Ay({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jy.current){let e=new Gee({});e.mount(window),e.setOptions({layoutScroll:!0}),Jy.current=e}return Jy.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Xy=(0,z.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Zy(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Kee(...e){return t=>{let n=!1,r=e.map(e=>{let r=Zy(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Zy(e[t],null)}}}}function qee(...e){return z.useCallback(Kee(...e),e)}var Jee=class extends z.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ng(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ng(e)&&e.offsetWidth||0,r=Ng(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function Yee({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,z.useId)(),s=(0,z.useRef)(null),c=(0,z.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,z.useContext)(Xy),u=qee(s,e.props?.ref??e?.ref);return(0,z.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
19
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=No(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ss.assertOptions(n,{silentJSONParsing:cs.transitional(cs.boolean),forcedJSONParsing:cs.transitional(cs.boolean),clarifyTimeoutError:cs.transitional(cs.boolean),legacyInterceptorReqResOrdering:cs.transitional(cs.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:ss.assertOptions(r,{encode:cs.function,serialize:cs.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ss.assertOptions(t,{baseUrl:cs.spelling(`baseURL`),withXsrfToken:cs.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=go.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||Ba;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=[ns.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=ns.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=No(this.defaults,e),Ra(jo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){ls.prototype[e]=function(t,n){return this.request(No(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(No(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ls.prototype[e]=t(),ls.prototype[e+`Form`]=t(!0)});var us=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 yo(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 ds(e){return function(t){return e.apply(null,t)}}function fs(e){return V.isObject(e)&&e.isAxiosError===!0}var ps={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(ps).forEach(([e,t])=>{ps[t]=e});function ms(e){let t=new ls(e),n=_i(ls.prototype.request,t);return V.extend(n,ls.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ms(No(e,t))},n}var hs=ms(to);hs.Axios=ls,hs.CanceledError=yo,hs.CancelToken=us,hs.isCancel=vo,hs.VERSION=rs,hs.toFormData=Na,hs.AxiosError=H,hs.Cancel=hs.CanceledError,hs.all=function(e){return Promise.all(e)},hs.spread=ds,hs.isAxiosError=fs,hs.mergeConfig=No,hs.AxiosHeaders=go,hs.formToJSON=e=>Qa(V.isHTMLForm(e)?new FormData(e):e),hs.getAdapter=es.getAdapter,hs.HttpStatusCode=ps,hs.default=hs;var gs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_s=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),vs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ys=e=>{let t=vs(e);return t.charAt(0).toUpperCase()+t.slice(1)},bs={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},xs=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ss=(0,z.createContext)({}),Cs=()=>(0,z.useContext)(Ss),ws=(0,z.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Cs()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,z.createElement)(`svg`,{ref:c,...bs,width:t??l??bs.width,height:t??l??bs.height,stroke:e??f,strokeWidth:m,className:gs(`lucide`,p,i),...!a&&!xs(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,z.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),U=(e,t)=>{let n=(0,z.forwardRef)(({className:n,...r},i)=>(0,z.createElement)(ws,{ref:i,iconNode:t,className:gs(`lucide-${_s(ys(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ys(e),n},Ts=U(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Es=U(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Ds=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Os=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ks=U(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),As=U(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),js=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ms=U(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Ns=U(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Ps=U(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Fs=U(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Is=U(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Ls=U(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Rs=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),zs=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Bs=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Vs=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Hs=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Us=U(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ws=U(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Gs=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Ks=U(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),qs=U(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Js=U(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ys=U(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Xs=U(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Zs=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Qs=U(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),$s=U(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),ec=U(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),tc=U(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),nc=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),rc=U(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),ic=U(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),ac=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),oc=U(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),sc=U(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),cc=U(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),lc=U(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),uc=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),dc=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),fc=U(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),pc=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),mc=U(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),hc=U(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),gc=U(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),_c=U(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),vc=U(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),yc=U(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),bc=U(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),xc=U(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),Sc=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Cc=U(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),wc=U(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Tc=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ec=U(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Dc=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Oc=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),kc=U(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ac=U(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),jc=U(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Mc=U(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Nc=U(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Pc=U(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Fc=U(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Ic=U(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Lc=U(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),Rc=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),zc=U(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Bc=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Vc=U(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Hc=U(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Uc=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Wc=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Gc=U(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Kc=u(y(),1),qc=u(_(),1),Jc=(0,z.createContext)({toast:()=>{}}),Yc=()=>{};function Xc(e,t=`error`){Yc(e,t)}function Zc({children:e}){let[t,n]=(0,z.useState)([]),r={current:0},i=(0,z.useCallback)((e,t=`error`)=>{let i=++r.current;n(n=>[...n,{id:i,type:t,message:e}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==i)),4e3)},[]);(0,z.useEffect)(()=>{Yc=i},[i]);let a={success:Us,error:Gs,warning:Bc},o={success:`bg-green-50 border-green-200 text-green-800`,error:`bg-red-50 border-red-200 text-red-800`,warning:`bg-yellow-50 border-yellow-200 text-yellow-800`},s={success:`text-green-500`,error:`text-red-500`,warning:`text-yellow-500`};return(0,B.jsxs)(Jc.Provider,{value:{toast:i},children:[e,(0,qc.createPortal)((0,B.jsx)(`div`,{className:`fixed bottom-4 right-4 z-[9999] flex flex-col gap-2 max-w-sm`,children:t.map(e=>{let t=a[e.type];return(0,B.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,B.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,B.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,B.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,B.jsx)(Wc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var W=hs.create({baseURL:`/api`,timeout:3e4});W.interceptors.response.use(e=>e,e=>(Xc(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var Qc=()=>W.get(`/health`),$c=()=>W.get(`/config`),el=e=>W.put(`/config`,e),tl=()=>W.get(`/config/history`),nl=e=>W.get(`/sessions`,{params:e}),rl=e=>W.get(`/sessions/${e}`),il=e=>W.delete(`/sessions/${e}`),al=e=>W.delete(`/sessions`,{data:{ids:e}}),ol=e=>W.get(`/events`,{params:e}),sl=e=>W.get(`/events/stats`,{params:{project_path:e}}),cl=e=>W.get(`/pipelines`,{params:e}),ll=e=>W.get(`/pipelines/${e}`),ul=e=>W.get(`/quality/history`,{params:e}),dl=e=>W.get(`/quality/unresolved`,{params:{project_path:e}}),fl=()=>W.get(`/stats/roi`),pl=()=>W.get(`/stats/overview`),ml=(e,t,n)=>W.get(`/knowledge/search`,{params:{q:e,project_path:t,node_type:n}}),hl=e=>W.get(`/knowledge/overview`,{params:{project_path:e}}),gl=(e,t)=>W.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),_l=(e,t)=>W.get(`/knowledge/graph`,{params:{project_path:e,node_type:t}}),vl=e=>W.post(`/knowledge/nodes`,e),yl=(e,t)=>W.put(`/knowledge/nodes/${e}`,t),bl=e=>W.delete(`/knowledge/nodes/${e}`),xl=e=>W.post(`/pipelines/${e}/close`),Sl=e=>W.post(`/pipelines/batch-close`,{ids:e}),Cl=()=>W.post(`/pipelines/close-expired`),wl=()=>W.get(`/pipelines/active`),Tl=(e,t)=>W.post(`/pipelines/tasks/${e}/status`,{status:t}),El=e=>W.post(`/pipelines/${e}/resume`),Dl=e=>W.get(`/projects`,{params:e}),Ol=e=>W.get(`/projects/${e}`),kl=e=>W.delete(`/projects/${e}`),Al=e=>W.post(`/convention/init`,{path:e},{timeout:18e4}),jl=e=>W.get(`/projects/${e}/conventions`),Ml=(e,t)=>W.post(`/projects/${e}/conventions/bind`,{conventionId:t}),Nl=(e,t)=>W.delete(`/projects/${e}/conventions/${encodeURIComponent(t)}`),Pl=e=>W.get(`/projects/${e}/conventions/custom/yaml`),Fl=(e,t)=>W.put(`/projects/${e}/conventions/custom`,{yaml:t}),Il=e=>W.post(`/projects/${e}/conventions/distill`,{},{timeout:12e4}),Ll=e=>W.get(`/claudemd/${e}`),Rl=(e,t)=>W.put(`/claudemd/${e}`,{content:t}),zl=e=>W.get(`/claudemd/${e}/profile`),Bl=e=>W.get(`/claudemd/${e}/modules`),Vl=e=>W.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),Hl=e=>W.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Ul=e=>W.post(`/quality/${e}/resolve`),Wl=e=>W.post(`/quality/${e}/dismiss`),Gl=e=>W.post(`/quality/batch-dismiss`,{ids:e}),Kl=()=>W.post(`/quality/resolve-all`),ql=e=>W.get(`/quality/${e}/context`),Jl=()=>W.get(`/daemon/status`),Yl=()=>W.post(`/daemon/restart`),Xl=()=>W.get(`/daemon/diagnose`),Zl=()=>W.post(`/daemon/repair`),Ql=()=>W.post(`/config/backup`),$l=()=>W.get(`/config/backups`),eu=e=>`/api/config/backups/${encodeURIComponent(e)}`,tu=e=>W.post(`/events/purge`,{retentionDays:e}),nu=e=>W.get(`/stats/api-usage`,{params:{days:e}}),ru=e=>W.get(`/skills`,{params:e}),iu=()=>W.get(`/skills/status`),au=e=>W.get(`/skills/${encodeURIComponent(e)}`),ou=(e,t)=>W.post(`/skills/search`,{query:e,...t},{timeout:3e4}),su=e=>W.post(`/skills/install`,{url:e},{timeout:6e4}),cu=e=>W.delete(`/skills/${encodeURIComponent(e)}`),lu=e=>W.post(`/skills/batch-delete`,{names:e}),uu=()=>W.post(`/skills/evolve`,{},{timeout:12e4}),du=()=>W.post(`/skills/distill`,{},{timeout:12e4}),fu=()=>W.post(`/skills/repair`,{},{timeout:6e4}),pu=()=>W.get(`/conventions`),mu=e=>W.get(`/conventions/${encodeURIComponent(e)}`),hu=()=>W.post(`/conventions/sync-official`),gu=e=>W.post(`/conventions/install`,{url:e},{timeout:3e4}),_u=e=>W.delete(`/conventions/${encodeURIComponent(e)}`),vu=()=>W.get(`/conventions/usage-stats`),yu=e=>W.get(`/conventions/${encodeURIComponent(e)}/evolution-history`),bu=e=>W.post(`/conventions/batch-evolve`,{conventionIds:e},{timeout:12e4}),xu=e=>W.get(`/conventions/${encodeURIComponent(e)}/yaml`),Su=(e,t)=>W.put(`/conventions/${encodeURIComponent(e)}/yaml`,{yaml:t}),Cu=()=>W.get(`/node-types`),wu=e=>W.get(`/node-types/${encodeURIComponent(e)}`);function Tu(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Tu(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Eu(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Tu(e))&&(r&&(r+=` `),r+=t);return r}var Du=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ou=(e,t)=>({classGroupId:e,validator:t}),ku=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Au=`-`,ju=[],Mu=`arbitrary..`,Nu=e=>{let t=Iu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Fu(e);let n=e.split(Au);return Pu(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Du(i,t):t:i||ju}return n[e]||ju}}},Pu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Pu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Au):e.slice(t).join(Au),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Fu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Mu+r:void 0})(),Iu=e=>{let{theme:t,classGroups:n}=e;return Lu(n,t)},Lu=(e,t)=>{let n=ku();for(let r in e){let i=e[r];Ru(i,n,r,t)}return n},Ru=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];zu(i,t,n,r)}},zu=(e,t,n,r)=>{if(typeof e==`string`){Bu(e,t,n);return}if(typeof e==`function`){Vu(e,t,n,r);return}Hu(e,t,n,r)},Bu=(e,t,n)=>{let r=e===``?t:Uu(t,e);r.classGroupId=n},Vu=(e,t,n,r)=>{if(Wu(e)){Ru(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ou(n,e))},Hu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ru(o,Uu(t,a),n,r)}},Uu=(e,t)=>{let n=e,r=t.split(Au),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ku(),n.nextPart.set(t,i)),n=i}return n},Wu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Gu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ku=`!`,qu=`:`,Ju=[],Yu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Xu=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===qu){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ku)?(c=s.slice(0,-1),l=!0):s.startsWith(Ku)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Yu(t,l,c,u)};if(t){let e=t+qu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Yu(Ju,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Zu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Qu=e=>({cache:Gu(e.cacheSize),parseClassName:Xu(e),sortModifiers:Zu(e),...Nu(e)}),$u=/\s+/,ed=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split($u),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ku:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},td=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=nd(n))&&(i&&(i+=` `),i+=r);return i},nd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=nd(e[r]))&&(n&&(n+=` `),n+=t);return n},rd=(e,...t)=>{let n,r,i,a,o=o=>(n=Qu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ed(e,n);return i(e,a),a};return a=o,(...e)=>a(td(...e))},id=[],ad=e=>{let t=t=>t[e]||id;return t.isThemeGetter=!0,t},od=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ld=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ud=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,md=e=>cd.test(e),hd=e=>!!e&&!Number.isNaN(Number(e)),gd=e=>!!e&&Number.isInteger(Number(e)),_d=e=>e.endsWith(`%`)&&hd(e.slice(0,-1)),vd=e=>ld.test(e),yd=()=>!0,bd=e=>ud.test(e)&&!dd.test(e),xd=()=>!1,Sd=e=>fd.test(e),Cd=e=>pd.test(e),wd=e=>!G(e)&&!K(e),Td=e=>Bd(e,Wd,xd),G=e=>od.test(e),Ed=e=>Bd(e,Gd,bd),Dd=e=>Bd(e,Kd,hd),Od=e=>Bd(e,Jd,yd),kd=e=>Bd(e,qd,xd),Ad=e=>Bd(e,Hd,xd),jd=e=>Bd(e,Ud,Cd),Md=e=>Bd(e,Yd,Sd),K=e=>sd.test(e),Nd=e=>Vd(e,Gd),Pd=e=>Vd(e,qd),Fd=e=>Vd(e,Hd),Id=e=>Vd(e,Wd),Ld=e=>Vd(e,Ud),Rd=e=>Vd(e,Yd,!0),zd=e=>Vd(e,Jd,!0),Bd=(e,t,n)=>{let r=od.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vd=(e,t,n=!1)=>{let r=sd.exec(e);return r?r[1]?t(r[1]):n:!1},Hd=e=>e===`position`||e===`percentage`,Ud=e=>e===`image`||e===`url`,Wd=e=>e===`length`||e===`size`||e===`bg-size`,Gd=e=>e===`length`,Kd=e=>e===`number`,qd=e=>e===`family-name`,Jd=e=>e===`number`||e===`weight`,Yd=e=>e===`shadow`,Xd=rd(()=>{let e=ad(`color`),t=ad(`font`),n=ad(`text`),r=ad(`font-weight`),i=ad(`tracking`),a=ad(`leading`),o=ad(`breakpoint`),s=ad(`container`),c=ad(`spacing`),l=ad(`radius`),u=ad(`shadow`),d=ad(`inset-shadow`),f=ad(`text-shadow`),p=ad(`drop-shadow`),m=ad(`blur`),h=ad(`perspective`),g=ad(`aspect`),_=ad(`ease`),v=ad(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],T=()=>[md,`full`,`auto`,...w()],E=()=>[gd,`none`,`subgrid`,K,G],D=()=>[`auto`,{span:[`full`,gd,K,G]},gd,K,G],O=()=>[gd,`auto`,K,G],k=()=>[`auto`,`min`,`max`,`fr`,K,G],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[md,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[md,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[md,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,K,G],I=()=>[...b(),Fd,Ad,{position:[K,G]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Id,Td,{size:[K,G]}],re=()=>[_d,Nd,Ed],L=()=>[``,`none`,`full`,l,K,G],R=()=>[``,hd,Nd,Ed],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],oe=()=>[hd,_d,Fd,Ad],se=()=>[``,`none`,m,K,G],ce=()=>[`none`,hd,K,G],le=()=>[`none`,hd,K,G],ue=()=>[hd,K,G],de=()=>[md,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vd],breakpoint:[vd],color:[yd],container:[vd],"drop-shadow":[vd],ease:[`in`,`out`,`in-out`],font:[wd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vd],shadow:[vd],spacing:[`px`,hd],text:[vd],"text-shadow":[vd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,md,G,K,g]}],container:[`container`],columns:[{columns:[hd,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gd,`auto`,K,G]}],basis:[{basis:[md,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[hd,md,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,hd,K,G]}],shrink:[{shrink:[``,hd,K,G]}],order:[{order:[gd,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Nd,Ed]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,zd,Od]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_d,G]}],"font-family":[{font:[Pd,kd,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[hd,`none`,K,Dd]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[hd,`from-font`,`auto`,K,Ed]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[hd,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gd,K,G],radial:[``,K,G],conic:[gd,K,G]},Ld,jd]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[hd,K,G]}],"outline-w":[{outline:[``,hd,Nd,Ed]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,Rd,Md]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Rd,Md]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[hd,Ed]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Rd,Md]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[hd,K,G]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[hd]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[hd]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:se()}],brightness:[{brightness:[hd,K,G]}],contrast:[{contrast:[hd,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Rd,Md]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,hd,K,G]}],"hue-rotate":[{"hue-rotate":[hd,K,G]}],invert:[{invert:[``,hd,K,G]}],saturate:[{saturate:[hd,K,G]}],sepia:[{sepia:[``,hd,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[hd,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[hd,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,hd,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hd,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,hd,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[hd,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[hd,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,hd,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[hd,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[hd,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[hd,Nd,Ed,Dd]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return Xd(Eu(e))}function Zd(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60),i=Math.floor(r/24);return i>0?`${i}天${r%24}小时`:r>0?`${r}小时${n%60}分钟`:n>0?`${n}分钟${t%60}秒`:`${t}秒`}function Qd(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function $d(e){let t={active:`text-green-600 bg-green-50`,completed:`text-blue-600 bg-blue-50`,failed:`text-red-600 bg-red-50`,interrupted:`text-yellow-600 bg-yellow-50`,pending:`text-gray-600 bg-gray-50`};return t[e]||t.pending}function ef(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var tf=[{path:`/dashboard`,label:`仪表盘`,icon:dc},{path:`/projects`,label:`项目管理`,icon:oc},{path:`/sessions`,label:`会话管理`,icon:Ts},{path:`/events`,label:`事件流`,icon:Ps},{path:`/pipelines`,label:`流水线`,icon:cc},{path:`/quality`,label:`质量门禁`,icon:kc},{path:`/knowledge`,label:`知识图谱`,icon:Ns},{path:`/skills`,label:`技能管理`,icon:vc},{path:`/conventions`,label:`规范管理`,icon:As},{path:`/node-types`,label:`节点类型`,icon:Ms},{path:`/analytics`,label:`数据分析`,icon:Fs},{path:`/config`,label:`系统配置`,icon:Oc}];function nf({children:e}){let[t,n]=(0,z.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=jn();(0,z.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=ct({queryKey:[`health`],queryFn:()=>Qc().then(e=>e.data),refetchInterval:15e3}),a=tf.find(e=>r.pathname.startsWith(e.path));return(0,B.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,B.jsxs)(`aside`,{className:q(`fixed top-0 left-0 bottom-0 z-50 flex flex-col transition-all duration-300`,`bg-gradient-to-b from-slate-900 to-slate-800`,t?`w-16`:`w-60`),children:[(0,B.jsxs)(`div`,{className:q(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,B.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,B.jsx)(`div`,{className:`flex items-center justify-center w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600`,children:(0,B.jsx)(Gc,{className:`h-5 w-5 text-white`})}),(0,B.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,B.jsx)(`button`,{onClick:()=>n(!t),className:`p-1.5 rounded-lg text-white/60 hover:text-white hover:bg-white/10 transition-colors`,children:t?(0,B.jsx)(hc,{className:`h-5 w-5`}):(0,B.jsx)(zs,{className:`h-5 w-5`})})]}),(0,B.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:tf.map(e=>(0,B.jsxs)(ei,{to:e.path,className:({isActive:e})=>q(`flex items-center gap-3 rounded-lg transition-all duration-200`,t?`justify-center p-3`:`px-3 py-2.5`,e?`bg-blue-600/20 text-blue-400`:`text-white/60 hover:text-white hover:bg-white/5`),children:[(0,B.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,B.jsx)(`div`,{className:q(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,B.jsxs)(`div`,{className:q(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,B.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,B.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,B.jsxs)(`main`,{className:q(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,B.jsxs)(`header`,{className:`sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-200/50 h-16 flex items-center justify-between px-8`,children:[(0,B.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsxs)(`button`,{className:`hidden sm:flex items-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors`,onClick:()=>{let e=new KeyboardEvent(`keydown`,{key:`k`,metaKey:!0});window.dispatchEvent(e)},children:[(0,B.jsx)(Ys,{className:`h-4 w-4`}),(0,B.jsx)(`span`,{children:`命令面板`}),(0,B.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,B.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`1.50.0`]}),(0,B.jsxs)(`div`,{className:q(`flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold`,i?.status===`ok`?`bg-green-50 text-green-700 border border-green-200`:`bg-red-50 text-red-700 border border-red-200`),children:[(0,B.jsx)(`div`,{className:q(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,B.jsx)(`div`,{className:`p-8 overflow-x-hidden`,children:e})]})]})}var rf=(0,z.createContext)({});function af(e){let t=(0,z.useRef)(null);return t.current===null&&(t.current=e()),t.current}var of=typeof window<`u`?z.useLayoutEffect:z.useEffect,sf=(0,z.createContext)(null);function cf(e,t){e.indexOf(t)===-1&&e.push(t)}function lf(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var uf=(e,t,n)=>n>t?t:n<e?e:n,df={},ff=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function pf(e){return typeof e==`object`&&!!e}var mf=e=>/^0[^.\s]+$/u.test(e);function hf(e){let t;return()=>(t===void 0&&(t=e()),t)}var gf=e=>e,_f=(e,t)=>n=>t(e(n)),vf=(...e)=>e.reduce(_f),yf=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},bf=class{constructor(){this.subscriptions=[]}add(e){return cf(this.subscriptions,e),()=>lf(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},xf=e=>e*1e3,Sf=e=>e/1e3;function Cf(e,t){return t?1e3/t*e:0}var wf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tf=1e-7,Ef=12;function Df(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=wf(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Tf&&++s<Ef);return o}function Of(e,t,n,r){if(e===t&&n===r)return gf;let i=t=>Df(t,0,1,e,n);return e=>e===0||e===1?e:wf(i(e),t,r)}var kf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Af=e=>t=>1-e(1-t),jf=Of(.33,1.53,.69,.99),Mf=Af(jf),Nf=kf(Mf),Pf=e=>e>=1?1:(e*=2)<1?.5*Mf(e):.5*(2-2**(-10*(e-1))),Ff=e=>1-Math.sin(Math.acos(e)),If=Af(Ff),Lf=kf(Ff),Rf=Of(.42,0,1,1),zf=Of(0,0,.58,1),Bf=Of(.42,0,.58,1),Vf=e=>Array.isArray(e)&&typeof e[0]!=`number`,Hf=e=>Array.isArray(e)&&typeof e[0]==`number`,Uf={linear:gf,easeIn:Rf,easeInOut:Bf,easeOut:zf,circIn:Ff,circInOut:Lf,circOut:If,backIn:Mf,backInOut:Nf,backOut:jf,anticipate:Pf},Wf=e=>typeof e==`string`,Gf=e=>{if(Hf(e)){e.length;let[t,n,r,i]=e;return Of(t,n,r,i)}else if(Wf(e))return Uf[e],`${e}`,Uf[e];return e},Kf=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],qf={value:null,addProjectionMetrics:null};function Jf(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&qf.value&&qf.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Yf=40;function Xf(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Kf.reduce((e,n)=>(e[n]=Jf(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=df.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Yf),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Kf.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Kf.length;t++)o[Kf[t]].cancel(e)},state:i,steps:o}}var{schedule:Zf,cancel:Qf,state:$f,steps:ep}=Xf(typeof requestAnimationFrame<`u`?requestAnimationFrame:gf,!0),tp;function np(){tp=void 0}var rp={now:()=>(tp===void 0&&rp.set($f.isProcessing||df.useManualTiming?$f.timestamp:performance.now()),tp),set:e=>{tp=e,queueMicrotask(np)}},ip={layout:0,mainThread:0,waapi:0},ap=e=>t=>typeof t==`string`&&t.startsWith(e),op=ap(`--`),sp=ap(`var(--`),cp=e=>sp(e)?lp.test(e.split(`/*`)[0].trim()):!1,lp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function up(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var dp={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},fp={...dp,transform:e=>uf(0,1,e)},pp={...dp,default:1},mp=e=>Math.round(e*1e5)/1e5,hp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gp(e){return e==null}var _p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vp=(e,t)=>n=>!!(typeof n==`string`&&_p.test(n)&&n.startsWith(e)||t&&!gp(n)&&Object.prototype.hasOwnProperty.call(n,t)),yp=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(hp);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},bp=e=>uf(0,255,e),xp={...dp,transform:e=>Math.round(bp(e))},Sp={test:vp(`rgb`,`red`),parse:yp(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xp.transform(e)+`, `+xp.transform(t)+`, `+xp.transform(n)+`, `+mp(fp.transform(r))+`)`};function Cp(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var wp={test:vp(`#`),parse:Cp,transform:Sp.transform},Tp=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ep=Tp(`deg`),Dp=Tp(`%`),J=Tp(`px`),Op=Tp(`vh`),kp=Tp(`vw`),Ap={...Dp,parse:e=>Dp.parse(e)/100,transform:e=>Dp.transform(e*100)},jp={test:vp(`hsl`,`hue`),parse:yp(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Dp.transform(mp(t))+`, `+Dp.transform(mp(n))+`, `+mp(fp.transform(r))+`)`},Mp={test:e=>Sp.test(e)||wp.test(e)||jp.test(e),parse:e=>Sp.test(e)?Sp.parse(e):jp.test(e)?jp.parse(e):wp.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sp.transform(e):jp.transform(e),getAnimatableNone:e=>{let t=Mp.parse(e);return t.alpha=0,Mp.transform(t)}},Np=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pp(e){return isNaN(e)&&typeof e==`string`&&(e.match(hp)?.length||0)+(e.match(Np)?.length||0)>0}var Fp=`number`,Ip=`color`,Lp=`var`,Rp=`var(`,zp="${}",Bp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vp(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Bp,e=>(Mp.test(e)?(r.color.push(a),i.push(Ip),n.push(Mp.parse(e))):e.startsWith(Rp)?(r.var.push(a),i.push(Lp),n.push(e)):(r.number.push(a),i.push(Fp),n.push(parseFloat(e))),++a,zp)).split(zp),indexes:r,types:i}}function Hp(e){return Vp(e).values}function Up({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Fp?i+=mp(r[a]):e===Ip?i+=Mp.transform(r[a]):i+=r[a]}return i}}function Wp(e){return Up(Vp(e))}var Gp=e=>typeof e==`number`?0:Mp.test(e)?Mp.getAnimatableNone(e):e,Kp=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Gp(e);function eee(e){let t=Vp(e);return Up(t)(t.values.map((e,n)=>Kp(e,t.split[n])))}var qp={test:Pp,parse:Hp,createTransformer:Wp,getAnimatableNone:eee};function Jp(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Jp(s,r,e+1/3),a=Jp(s,r,e),o=Jp(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Yp(e,t){return n=>n>0?t:e}var Xp=(e,t,n)=>e+(t-e)*n,Zp=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Qp=[wp,Sp,jp],$p=e=>Qp.find(t=>t.test(e));function em(e){let t=$p(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jp&&(n=tee(n)),n}var tm=(e,t)=>{let n=em(e),r=em(t);if(!n||!r)return Yp(e,t);let i={...n};return e=>(i.red=Zp(n.red,r.red,e),i.green=Zp(n.green,r.green,e),i.blue=Zp(n.blue,r.blue,e),i.alpha=Xp(n.alpha,r.alpha,e),Sp.transform(i))},nm=new Set([`none`,`hidden`]);function rm(e,t){return nm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function im(e,t){return n=>Xp(e,t,n)}function am(e){return typeof e==`number`?im:typeof e==`string`?cp(e)?Yp:Mp.test(e)?tm:lm:Array.isArray(e)?om:typeof e==`object`?Mp.test(e)?tm:sm:Yp}function om(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>am(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function sm(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=am(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function cm(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var lm=(e,t)=>{let n=qp.createTransformer(t),r=Vp(e),i=Vp(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nm.has(e)&&!i.values.length||nm.has(t)&&!r.values.length?rm(e,t):vf(om(cm(r,i),i.values),n):(`${e}${t}`,Yp(e,t))};function um(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Xp(e,t,n):am(e)(e,t)}var dm=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Zf.update(t,e),stop:()=>Qf(t),now:()=>$f.isProcessing?$f.timestamp:rp.now()}},fm=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},pm=2e4;function mm(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nee(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(mm(r),pm);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Sf(i)}}var hm={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function gm(e,t){return e*Math.sqrt(1-t*t)}var _m=12;function vm(e,t,n){let r=n;for(let n=1;n<_m;n++)r-=e(r)/t(r);return r}var ym=.001;function bm({duration:e=hm.duration,bounce:t=hm.bounce,velocity:n=hm.velocity,mass:r=hm.mass}){let i,a;hm.maxDuration;let o=1-t;o=uf(hm.minDamping,hm.maxDamping,o),e=uf(hm.minDuration,hm.maxDuration,Sf(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=gm(t,o),c=Math.exp(-i);return ym-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=gm(t**2,o);return(-i(t)+ym>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-ym+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=vm(i,a,s);if(e=xf(e),isNaN(c))return{stiffness:hm.stiffness,damping:hm.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var xm=[`duration`,`bounce`],Sm=[`stiffness`,`damping`,`mass`];function Cm(e,t){return t.some(t=>e[t]!==void 0)}function wm(e){let t={velocity:hm.velocity,stiffness:hm.stiffness,damping:hm.damping,mass:hm.mass,isResolvedFromDuration:!1,...e};if(!Cm(e,Sm)&&Cm(e,xm))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*uf(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:hm.mass,stiffness:i,damping:a}}else{let n=bm({...e,velocity:0});t={...t,...n,mass:hm.mass},t.isResolvedFromDuration=!0}return t}function Tm(e=hm.visualDuration,t=hm.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=wm({...n,velocity:-Sf(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Sf(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?hm.restSpeed.granular:hm.restSpeed.default,i||=v?hm.restDelta.granular:hm.restDelta.default;let y,b,x,S,C,w;if(h<1)x=gm(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>xf(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=xf(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=xf(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(mm(T),pm),t=fm(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Tm.applyToOptions=e=>{let t=nee(e,100,Tm);return e.ease=t.ease,e.duration=xf(t.duration),e.type=`keyframes`,e};var Em=5;function Dm(e,t,n){let r=Math.max(t-Em,0);return Cf(n-e(r),t-r)}function Om({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Tm({keyframes:[f.value,m(f.value)],velocity:Dm(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function km(e,t,n){let r=[],i=n||df.mix||um,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=vf(Array.isArray(t)?t[n]||gf:t,a)),r.push(a)}return r}function Am(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=km(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=yf(e[r],e[r+1],n);return s[r](i)};return n?t=>l(uf(e[0],e[a-1],t)):l}function jm(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=yf(0,t,r);e.push(Xp(n,1,i))}}function ree(e){let t=[0];return jm(t,e.length-1),t}function iee(e,t){return e.map(e=>e*t)}function aee(e,t){return e.map(()=>t||Bf).splice(0,e.length-1)}function Mm({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Vf(r)?r.map(Gf):Gf(r),a={done:!1,value:t[0]},o=Am(iee(n&&n.length===t.length?n:ree(t),e),t,{ease:Array.isArray(i)?i:aee(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var oee=e=>e!==null;function Nm(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(oee),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var see={decay:Om,inertia:Om,tween:Mm,keyframes:Mm,spring:Tm};function Pm(e){typeof e.type==`string`&&(e.type=see[e.type])}var Fm=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Im=e=>e/100,Lm=class extends Fm{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==rp.now()&&this.tick(rp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ip.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Pm(e);let{type:t=Mm,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Mm;s!==Mm&&typeof o[0]!=`number`&&(this.mixKeyframes=vf(Im,um(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=mm(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=uf(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Om&&(b.value=Nm(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Sf(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Sf(e)}get time(){return Sf(this.currentTime)}set time(e){e=xf(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Dm(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(rp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Sf(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=dm,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(rp.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ip.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Rm(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var zm=e=>e*180/Math.PI,Bm=e=>Hm(zm(Math.atan2(e[1],e[0]))),Vm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bm,rotateZ:Bm,skewX:e=>zm(Math.atan(e[1])),skewY:e=>zm(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Hm=e=>(e%=360,e<0&&(e+=360),e),Um=Bm,Wm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Km={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wm,scaleY:Gm,scale:e=>(Wm(e)+Gm(e))/2,rotateX:e=>Hm(zm(Math.atan2(e[6],e[5]))),rotateY:e=>Hm(zm(Math.atan2(-e[2],e[0]))),rotateZ:Um,rotate:Um,skewX:e=>zm(Math.atan(e[4])),skewY:e=>zm(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qm(e){return+!!e.includes(`scale`)}function Jm(e,t){if(!e||e===`none`)return qm(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Km,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vm,i=t}if(!i)return qm(t);let a=r[t],o=i[1].split(`,`).map(Xm);return typeof a==`function`?a(o):o[a]}var Ym=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Jm(n,t)};function Xm(e){return parseFloat(e.trim())}var Zm=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Qm=new Set(Zm),$m=e=>e===dp||e===J,eh=new Set([`x`,`y`,`z`]),th=Zm.filter(e=>!eh.has(e));function nh(e){let t=[];return th.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var rh={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jm(t,`x`),y:(e,{transform:t})=>Jm(t,`y`)};rh.translateX=rh.x,rh.translateY=rh.y;var ih=new Set,ah=!1,oh=!1,sh=!1;function ch(){if(oh){let e=Array.from(ih).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=nh(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}oh=!1,ah=!1,ih.forEach(e=>e.complete(sh)),ih.clear()}function lh(){ih.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oh=!0)})}function uh(){sh=!0,lh(),ch(),sh=!1}var dh=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ih.add(this),ah||(ah=!0,Zf.read(lh),Zf.resolveKeyframes(ch))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Rm(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ih.delete(this)}cancel(){this.state===`scheduled`&&(ih.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},fh=e=>e.startsWith(`--`);function ph(e,t,n){fh(t)?e.style.setProperty(t,n):e.style[t]=n}var mh={};function hh(e,t){let n=hf(e);return()=>mh[t]??n()}var gh=hh(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),_h=hh(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),vh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yh={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:vh([0,.65,.55,1]),circOut:vh([.55,0,1,.45]),backIn:vh([.31,.01,.66,-.59]),backOut:vh([.33,1.53,.69,.99])};function bh(e,t){if(e)return typeof e==`function`?_h()?fm(e,t):`ease-out`:Hf(e)?vh(e):Array.isArray(e)?e.map(e=>bh(e,t)||yh.easeOut):yh[e]}function xh(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=bh(s,i);Array.isArray(d)&&(u.easing=d),qf.value&&ip.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return qf.value&&p.finished.finally(()=>{ip.waapi--}),p}function Sh(e){return typeof e==`function`&&`applyToOptions`in e}function Ch({type:e,...t}){return Sh(e)&&_h()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var wh=class extends Fm{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ch(e);this.animation=xh(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nm(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ph(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Sf(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Sf(e)}get time(){return Sf(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xf(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&gh()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),gf):r(this)}},Th={anticipate:Pf,backInOut:Nf,circInOut:Lf};function Eh(e){return e in Th}function Dh(e){typeof e.ease==`string`&&Eh(e.ease)&&(e.ease=Th[e.ease])}var Oh=10,kh=class extends wh{constructor(e){Dh(e),Pm(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Lm({...a,autoplay:!1}),s=Math.max(Oh,rp.now()-this.startTime),c=uf(0,Oh,s-Oh),l=o.sample(s).value,{name:u}=this.options;i&&u&&ph(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ah=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(qp.test(e)||e===`0`)&&!e.startsWith(`url(`));function jh(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mh(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ah(i,t),s=Ah(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:jh(e)||(n===`spring`||Sh(n))&&r}function Nh(e){e.duration=0,e.type=`keyframes`}var Ph=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Fh=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ih(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fh.test(e[t]))return!0;return!1}var Lh=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Rh=hf(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function zh(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Rh()&&n&&(Ph.has(n)||Lh.has(n)&&Ih(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Bh=40,Vh=class extends Fm{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=rp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||dh)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=rp.now();let u=!0;Mh(e,i,a,o)||(u=!1,(df.instantAnimations||!s)&&l?.(Nm(e,n,t)),e[0]=e[e.length-1],Nh(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Bh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&zh(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new kh({...d,element:p})}catch{m=new Lm(d)}else m=new Lm(d);m.finished.then(()=>{this.notifyFinished()}).catch(gf),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Hh(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Uh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wh(e){let t=Uh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Gh(e,t,n=1){`${e}`;let[r,i]=Wh(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ff(e)?parseFloat(e):e}return cp(i)?Gh(i,t,n+1):i}var Kh={type:`spring`,stiffness:500,damping:25,restSpeed:10},qh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jh={type:`keyframes`,duration:.8},Yh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Xh=(e,{keyframes:t})=>t.length>2?Jh:Qm.has(e)?e.startsWith(`scale`)?qh(t[1]):Kh:Yh;function Zh(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Qh(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Zh(n,e)}var cee=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function lee(e){for(let t in e)if(!cee.has(t))return!0;return!1}var $h=(e,t,n,r={},i,a)=>o=>{let s=Qh(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=xf(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};lee(s)||Object.assign(u,Xh(e,u)),u.duration&&=xf(u.duration),u.repeatDelay&&=xf(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Nh(u),u.delay===0&&(d=!0)),(df.instantAnimations||df.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Nh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nm(u.keyframes,s);if(e!==void 0){Zf.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Lm(u):new Vh(u)};function eg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tg(e,t,n,r){if(typeof t==`function`){let[i,a]=eg(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=eg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ng(e,t,n){let r=e.getProps();return tg(r,t,n===void 0?r.custom:n,e)}var rg=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Zm]),ig=30,uee=e=>!isNaN(parseFloat(e)),ag={current:void 0},dee=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=rp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=rp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uee(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new bf);let n=this.events[e].add(t);return e===`change`?()=>{n(),Zf.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ag.current&&ag.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=rp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ig)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ig);return Cf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function og(e,t){return new dee(e,t)}var sg=e=>Array.isArray(e);function fee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,og(n))}function pee(e){return sg(e)?e[e.length-1]||0:e}function mee(e,t){let{transitionEnd:n={},transition:r={},...i}=ng(e,t)||{};i={...i,...n};for(let t in i)fee(e,t,pee(i[t]))}var cg=e=>!!(e&&e.getVelocity);function hee(e){return!!(cg(e)&&e.add)}function lg(e,t){let n=e.getValue(`willChange`);if(hee(n))return n.add(t);if(!n&&df.WillChange){let n=new df.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ug(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var dg=`data-`+ug(`framerAppearId`);function fg(e){return e.props[dg]}function gee({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Zh(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&gee(d,t))continue;let o={delay:n,...Qh(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Zf.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=fg(e);if(n){let e=window.MotionHandoffAnimation(n,t,Zf);e!==null&&(o.startTime=e,f=!0)}}lg(e,t);let p=l??e.shouldReduceMotion;r.start($h(t,r,i,p&&rg.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>Zf.update(()=>{o&&mee(e,o)});u.length?Promise.all(u).then(t):t()}return u}function mg(e,t,n={}){let r=ng(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(pg(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return hg(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function hg(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(mg(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Hh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function gg(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>mg(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=mg(e,t,n);else{let i=typeof t==`function`?ng(e,t,n.custom):t;r=Promise.all(pg(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var _g={test:e=>e===`auto`,parse:e=>e},vg=e=>t=>t.test(e),yg=[dp,J,Dp,Ep,kp,Op,_g],bg=e=>yg.find(vg(e));function xg(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||mf(e)}var Sg=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function _ee(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hp)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Sg.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var vee=/\b([a-z-]*)\(.*?\)/gu,Cg={...qp,getAnimatableNone:e=>{let t=e.match(vee);return t?t.map(_ee).join(` `):e}},wg={...qp,getAnimatableNone:e=>{let t=qp.parse(e);return qp.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Tg={...dp,transform:Math.round},Eg={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:Ep,rotateX:Ep,rotateY:Ep,rotateZ:Ep,scale:pp,scaleX:pp,scaleY:pp,scaleZ:pp,skew:Ep,skewX:Ep,skewY:Ep,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:fp,originX:Ap,originY:Ap,originZ:J,zIndex:Tg,fillOpacity:fp,strokeOpacity:fp,numOctaves:Tg},Dg={...Eg,color:Mp,backgroundColor:Mp,outlineColor:Mp,fill:Mp,stroke:Mp,borderColor:Mp,borderTopColor:Mp,borderRightColor:Mp,borderBottomColor:Mp,borderLeftColor:Mp,filter:Cg,WebkitFilter:Cg,mask:wg,WebkitMask:wg},Og=e=>Dg[e],kg=new Set([Cg,wg]);function Ag(e,t){let n=Og(e);return kg.has(n)||(n=qp),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var yee=new Set([`auto`,`none`,`0`]);function bee(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!yee.has(t)&&Vp(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ag(n,i)}var xee=class extends dh{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),cp(r))){let i=Gh(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!rg.has(n)||e.length!==2)return;let[r,i]=e,a=bg(r),o=bg(i);if(up(r)!==up(i)&&rh[n]){this.needsMeasurement=!0;return}if(a!==o)if($m(a)&&$m(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else rh[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||xg(e[t]))&&n.push(t);n.length&&bee(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=rh[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function jg(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Mg=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ng(e){return pf(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Pg,cancel:See}=Xf(queueMicrotask,!1),Fg={x:!1,y:!1};function Ig(){return Fg.x||Fg.y}function Cee(e){return e===`x`||e===`y`?Fg[e]?null:(Fg[e]=!0,()=>{Fg[e]=!1}):Fg.x||Fg.y?null:(Fg.x=Fg.y=!0,()=>{Fg.x=Fg.y=!1})}function Lg(e,t){let n=jg(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function wee(e){return!(e.pointerType===`touch`||Ig())}function Tee(e,t,n={}){let[r,i,a]=Lg(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!wee(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Rg=(e,t)=>t?e===t?!0:Rg(e,t.parentElement):!1,zg=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Bg=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Vg(e){return Bg.has(e.tagName)||e.isContentEditable===!0}var Hg=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ug(e){return Hg.has(e.tagName)||e.isContentEditable===!0}var Wg=new WeakSet;function Gg(e){return t=>{t.key===`Enter`&&e(t)}}function Kg(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var qg=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Gg(()=>{if(Wg.has(n))return;Kg(n,`down`);let e=Gg(()=>{Kg(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Kg(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Jg(e){return zg(e)&&!Ig()}var Yg=new WeakSet;function Eee(e,t,n={}){let[r,i,a]=Lg(e,n),o=e=>{let r=e.currentTarget;if(!Jg(e)||Yg.has(e))return;Wg.add(r),n.stopPropagation&&Yg.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Wg.has(r)&&Wg.delete(r),Jg(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Rg(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ng(e)&&(e.addEventListener(`focus`,e=>qg(e,i)),!Vg(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Xg(e){return pf(e)&&`ownerSVGElement`in e}var Zg=new WeakMap,Qg,$g=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xg(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Dee=$g(`inline`,`width`,`offsetWidth`),Oee=$g(`block`,`height`,`offsetHeight`);function kee({target:e,borderBoxSize:t}){Zg.get(e)?.forEach(n=>{n(e,{get width(){return Dee(e,t)},get height(){return Oee(e,t)}})})}function e_(e){e.forEach(kee)}function t_(){typeof ResizeObserver>`u`||(Qg=new ResizeObserver(e_))}function n_(e,t){Qg||t_();let n=jg(e);return n.forEach(e=>{let n=Zg.get(e);n||(n=new Set,Zg.set(e,n)),n.add(t),Qg?.observe(e)}),()=>{n.forEach(e=>{let n=Zg.get(e);n?.delete(t),n?.size||Qg?.unobserve(e)})}}var r_=new Set,i_;function a_(){i_=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r_.forEach(t=>t(e))},window.addEventListener(`resize`,i_)}function o_(e){return r_.add(e),i_||a_(),()=>{r_.delete(e),!r_.size&&typeof i_==`function`&&(window.removeEventListener(`resize`,i_),i_=void 0)}}function s_(e,t){return typeof e==`function`?o_(e):n_(e,t)}function c_(e){return Xg(e)&&e.tagName===`svg`}var l_=[...yg,Mp,qp],u_=e=>l_.find(vg(e)),d_=()=>({translate:0,scale:1,origin:0,originPoint:0}),f_=()=>({x:d_(),y:d_()}),p_=()=>({min:0,max:0}),m_=()=>({x:p_(),y:p_()}),h_=new WeakMap;function g_(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function __(e){return typeof e==`string`||Array.isArray(e)}var v_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],y_=[`initial`,...v_];function b_(e){return g_(e.animate)||y_.some(t=>__(e[t]))}function x_(e){return!!(b_(e)||e.variants)}function S_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(cg(i))e.addValue(r,i);else if(cg(a))e.addValue(r,og(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,og(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var C_={current:null},w_={current:!1},T_=typeof window<`u`;function E_(){if(w_.current=!0,T_)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>C_.current=e.matches;e.addEventListener(`change`,t),t()}else C_.current=!1}var D_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],O_={};function k_(e){O_=e}function A_(){return O_}var j_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=dh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=rp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Zf.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=b_(t),this.isVariantNode=x_(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&cg(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,h_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(w_.current||E_(),this.shouldReduceMotion=C_.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Qf(this.notifyUpdate),Qf(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ph.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new wh({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:xf(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Qm.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Zf.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in O_){let t=O_[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):m_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<D_.length;t++){let n=D_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=S_(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=og(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ff(n)||mf(n))?n=parseFloat(n):!u_(n)&&qp.test(t)&&(n=Ag(e,t)),this.setBaseTarget(e,cg(n)?n.get():n)),cg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=tg(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!cg(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new bf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Pg.render(this.render)}},M_=class extends j_{constructor(){super(...arguments),this.KeyframeResolver=xee}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;cg(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},N_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function P_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function F_(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function I_(e){return e===void 0||e===1}function L_({scale:e,scaleX:t,scaleY:n}){return!I_(e)||!I_(t)||!I_(n)}function R_(e){return L_(e)||z_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z_(e){return B_(e.x)||B_(e.y)}function B_(e){return e&&e!==`0%`}function V_(e,t,n){return n+t*(e-n)}function H_(e,t,n,r,i){return i!==void 0&&(e=V_(e,i,r)),V_(e,n,r)+t}function U_(e,t=0,n=1,r,i){e.min=H_(e.min,t,n,r,i),e.max=H_(e.max,t,n,r,i)}function W_(e,{x:t,y:n}){U_(e.x,t.translate,t.scale,t.originPoint),U_(e.y,n.translate,n.scale,n.originPoint)}var G_=.999999999999,K_=1.0000000000001;function jee(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(q_(e.x,-a.scroll.offset.x),q_(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,W_(e,o)),r&&R_(a.latestValues)&&X_(e,a.latestValues,a.layout?.layoutBox))}t.x<K_&&t.x>G_&&(t.x=1),t.y<K_&&t.y>G_&&(t.y=1)}function q_(e,t){e.min+=t,e.max+=t}function J_(e,t,n,r,i=.5){U_(e,t,n,Xp(e.min,e.max,i),r)}function Y_(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function X_(e,t,n){let r=n??e;J_(e.x,Y_(t.x,r.x),t.scaleX,t.scale,t.originX),J_(e.y,Y_(t.y,r.y),t.scaleY,t.scale,t.originY)}function Z_(e,t){return P_(F_(e.getBoundingClientRect(),t))}function Mee(e,t,n){let r=Z_(e,n),{scroll:i}=t;return i&&(q_(r.x,i.offset.x),q_(r.y,i.offset.y)),r}var Nee={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Pee=Zm.length;function Fee(e,t,n){let r=``,i=!0;for(let a=0;a<Pee;a++){let o=Zm[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Mg(s,Eg[o]);if(!c){i=!1;let t=Nee[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Q_(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Qm.has(e)){o=!0;continue}else if(op(e)){i[e]=n;continue}else{let t=Mg(n,Eg[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Fee(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function $_(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ev(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var tv={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${ev(e,t.target.x)}% ${ev(e,t.target.y)}%`}},nv={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=qp.parse(e);if(i.length>5)return r;let a=qp.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Xp(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},rv={borderRadius:{...tv,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:tv,borderTopRightRadius:tv,borderBottomLeftRadius:tv,borderBottomRightRadius:tv,boxShadow:nv};function iv(e,{layout:t,layoutId:n}){return Qm.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!rv[e]||e===`opacity`)}function av(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(cg(r[t])||i&&cg(i[t])||iv(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ov(e){return window.getComputedStyle(e)}var sv=class extends M_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=$_}readValueFromInstance(e,t){if(Qm.has(t))return this.projection?.isProjecting?qm(t):Ym(e,t);{let n=ov(e),r=(op(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Z_(e,t)}build(e,t,n){Q_(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return av(e,t,n)}},cv={offset:`stroke-dashoffset`,array:`stroke-dasharray`},lv={offset:`strokeDashoffset`,array:`strokeDasharray`};function uv(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?cv:lv;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var dv=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function fv(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Q_(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of dv)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&uv(d,i,a,o,!1)}var pv=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),mv=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function hv(e,t,n,r){$_(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(pv.has(n)?n:ug(n),t.attrs[n])}function gv(e,t,n){let r=av(e,t,n);for(let n in e)if(cg(e[n])||cg(t[n])){let t=Zm.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var _v=class extends M_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=m_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Qm.has(t)){let e=Og(t);return e&&e.default||0}return t=pv.has(t)?t:ug(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return gv(e,t,n)}build(e,t,n){fv(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){hv(e,t,n,r)}mount(e){this.isSVGTag=mv(e.tagName),super.mount(e)}},vv=y_.length;function yv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&yv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<vv;n++){let r=y_[n],i=e.props[r];(__(i)||i===!1)&&(t[r]=i)}return t}function bv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var xv=[...v_].reverse(),Sv=v_.length;function Cv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>gg(e,t,n)))}function wv(e){let t=Cv(e),n=Dv(),r=!0,i=!1,a=t=>(n,r)=>{let i=ng(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=yv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Sv;t++){let p=xv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=__(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||g_(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Tv(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=sg(t)&&sg(n)?!bv(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ng(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Hh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ng(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Dv(),i=!0}}}function Tv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!bv(t,e):!1}function Ev(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dv(){return{animate:Ev(!0),whileInView:Ev(),whileHover:Ev(),whileTap:Ev(),whileDrag:Ev(),whileFocus:Ev(),exit:Ev()}}function Ov(e,t){e.min=t.min,e.max=t.max}function kv(e,t){Ov(e.x,t.x),Ov(e.y,t.y)}function Av(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var jv=1e-4,Mv=1-jv,Nv=1+jv,Pv=.01,Fv=0-Pv,Iv=0+Pv;function Lv(e){return e.max-e.min}function Rv(e,t,n){return Math.abs(e-t)<=n}function zv(e,t,n,r=.5){e.origin=r,e.originPoint=Xp(t.min,t.max,e.origin),e.scale=Lv(n)/Lv(t),e.translate=Xp(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Mv&&e.scale<=Nv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Fv&&e.translate<=Iv||isNaN(e.translate))&&(e.translate=0)}function Bv(e,t,n,r){zv(e.x,t.x,n.x,r?r.originX:void 0),zv(e.y,t.y,n.y,r?r.originY:void 0)}function Vv(e,t,n,r=0){e.min=(r?Xp(n.min,n.max,r):n.min)+t.min,e.max=e.min+Lv(t)}function Hv(e,t,n,r){Vv(e.x,t.x,n.x,r?.x),Vv(e.y,t.y,n.y,r?.y)}function Uv(e,t,n,r=0){let i=r?Xp(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Lv(t)}function Wv(e,t,n,r){Uv(e.x,t.x,n.x,r?.x),Uv(e.y,t.y,n.y,r?.y)}function Gv(e,t,n,r,i){return e-=t,e=V_(e,1/n,r),i!==void 0&&(e=V_(e,1/i,r)),e}function Kv(e,t=0,n=1,r=.5,i,a=e,o=e){if(Dp.test(t)&&(t=parseFloat(t),t=Xp(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Xp(a.min,a.max,r);e===a&&(s-=t),e.min=Gv(e.min,t,n,s,i),e.max=Gv(e.max,t,n,s,i)}function qv(e,t,[n,r,i],a,o){Kv(e,t[n],t[r],t[i],t.scale,a,o)}var Jv=[`x`,`scaleX`,`originX`],Yv=[`y`,`scaleY`,`originY`];function Xv(e,t,n,r){qv(e.x,t,Jv,n?n.x:void 0,r?r.x:void 0),qv(e.y,t,Yv,n?n.y:void 0,r?r.y:void 0)}function Zv(e){return e.translate===0&&e.scale===1}function Qv(e){return Zv(e.x)&&Zv(e.y)}function $v(e,t){return e.min===t.min&&e.max===t.max}function ey(e,t){return $v(e.x,t.x)&&$v(e.y,t.y)}function ty(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ny(e,t){return ty(e.x,t.x)&&ty(e.y,t.y)}function ry(e){return Lv(e.x)/Lv(e.y)}function iy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ay(e){return[e(`x`),e(`y`)]}function oy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var sy=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],cy=sy.length,ly=e=>typeof e==`string`?parseFloat(e):e,uy=e=>typeof e==`number`||J.test(e);function dy(e,t,n,r,i,a){i?(e.opacity=Xp(0,n.opacity??1,py(r)),e.opacityExit=Xp(t.opacity??1,0,my(r))):a&&(e.opacity=Xp(t.opacity??1,n.opacity??1,r));for(let i=0;i<cy;i++){let a=sy[i],o=fy(t,a),s=fy(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||uy(o)===uy(s)?(e[a]=Math.max(Xp(ly(o),ly(s),r),0),(Dp.test(s)||Dp.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Xp(t.rotate||0,n.rotate||0,r))}function fy(e,t){return e[t]===void 0?e.borderRadius:e[t]}var py=hy(0,.5,If),my=hy(.5,.95,gf);function hy(e,t,n){return r=>r<e?0:r>t?1:n(yf(e,t,r))}function gy(e,t,n){let r=cg(e)?e:og(e);return r.start($h(``,r,t,n)),r.animation}function _y(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var vy=(e,t)=>e.depth-t.depth,yy=class{constructor(){this.children=[],this.isDirty=!1}add(e){cf(this.children,e),this.isDirty=!0}remove(e){lf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vy),this.isDirty=!1,this.children.forEach(e)}};function by(e,t){let n=rp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Qf(r),e(a-t))};return Zf.setup(r,!0),()=>Qf(r)}function xy(e){return cg(e)?e.get():e}var Sy=class{constructor(){this.members=[]}add(e){cf(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(lf(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(lf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Cy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ty=[``,`X`,`Y`,`Z`],Ey=1e3,Dy=0;function Oy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ky(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=fg(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Zf,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ky(r)}function Ay({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Dy++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,qf.value&&(wy.nodes=wy.calculatedTargetDeltas=wy.calculatedProjections=0),this.nodes.forEach(Ny),this.nodes.forEach(Iee),this.nodes.forEach(Lee),this.nodes.forEach(Py),qf.addProjectionMetrics&&qf.addProjectionMetrics(wy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new yy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Xg(t)&&!c_(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Zf.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=by(i,250),Cy.hasAnimatedSinceResize&&(Cy.hasAnimatedSinceResize=!1,this.nodes.forEach(Vy)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Hee,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ny(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Qh(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Vy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Qf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ree),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ky(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ly),this.nodes.forEach(Iy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ry);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zy),this.nodes.forEach(By),this.nodes.forEach(jy),this.nodes.forEach(My)):this.nodes.forEach(Ry),this.clearAllSnapshots();let e=rp.now();$f.delta=uf(0,1e3/60,e-$f.timestamp),$f.timestamp=e,$f.isProcessing=!0,ep.update.process($f),ep.preRender.process($f),ep.render.process($f),$f.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fy),this.sharedNodes.forEach(zee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Zf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Zf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Lv(this.snapshot.measuredBox.x)&&!Lv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=m_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Qv(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||R_(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Uee(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return m_();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wee))){let{scroll:e}=this.root;e&&(q_(t.x,e.offset.x),q_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=m_();if(kv(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&kv(t,e),q_(t.x,i.offset.x),q_(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||m_();kv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(q_(r.x,-n.scroll.offset.x),q_(r.y,-n.scroll.offset.y)),R_(n.latestValues)&&X_(r,n.latestValues,n.layout?.layoutBox)}return R_(this.latestValues)&&X_(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=m_();kv(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!R_(n.latestValues))continue;let r;n.instance&&(L_(n.latestValues)&&n.updateSnapshot(),r=m_(),kv(r,n.measurePageBox())),Xv(t,n.latestValues,n.snapshot?.layoutBox,r)}return R_(this.latestValues)&&Xv(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$f.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=$f.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=m_(),this.targetWithTransforms=m_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Hv(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):kv(this.target,this.layout.layoutBox),W_(this.target,this.targetDelta)):kv(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),qf.value&&wy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||L_(this.parent.latestValues)||z_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=m_(),this.relativeTargetOrigin=m_(),Wv(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),kv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===$f.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;kv(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;jee(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=m_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Av(this.prevProjectionDelta.x,this.projectionDelta.x),Av(this.prevProjectionDelta.y,this.projectionDelta.y)),Bv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!iy(this.projectionDelta.x,this.prevProjectionDelta.x)||!iy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),qf.value&&wy.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=f_(),this.projectionDelta=f_(),this.projectionDeltaWithTransform=f_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=f_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=m_(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Vee));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Hy(a.x,e.x,n),Hy(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bee(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&ey(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=m_(),kv(d,this.relativeTarget)),s&&(this.animationValues=i,dy(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Qf(this.pendingAnimation),void 0),this.pendingAnimation=Zf.update(()=>{Cy.hasAnimatedSinceResize=!0,ip.layout++,this.motionValue||=og(0),this.motionValue.jump(0,!1),this.currentAnimation=gy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ip.layout--},onComplete:()=>{ip.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ey),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&qy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||m_();let t=Lv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Lv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}kv(t,n),X_(t,i),Bv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Sy),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Oy(`z`,e,r,this.animationValues);for(let t=0;t<Ty.length;t++)Oy(`rotate${Ty[t]}`,e,r,this.animationValues),Oy(`skew${Ty[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=xy(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=xy(t?.pointerEvents)||``),this.hasProjected&&!R_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=oy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in rv){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=rv[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?xy(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Iy),this.root.sharedNodes.clear()}}}function jy(e){e.updateLayout()}function My(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)ay(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Lv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ov(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else qy(i,t.layoutBox,n)&&ay(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Lv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=f_();Bv(o,n,t.layoutBox);let s=f_();a?Bv(s,e.applyTransform(r,!0),t.measuredBox):Bv(s,n,t.layoutBox);let c=!Qv(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=m_();Wv(s,t.layoutBox,i.layoutBox,o);let c=m_();Wv(c,n,a.layoutBox,o),ny(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ny(e){qf.value&&wy.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Py(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fy(e){e.clearSnapshot()}function Iy(e){e.clearMeasurements()}function Ly(e){e.isLayoutDirty=!0,e.updateLayout()}function Ry(e){e.isLayoutDirty=!1}function zy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function By(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Vy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Iee(e){e.resolveTargetDelta()}function Lee(e){e.calcProjection()}function Ree(e){e.resetSkewAndRotation()}function zee(e){e.removeLeadSnapshot()}function Hy(e,t,n){e.translate=Xp(t.translate,0,n),e.scale=Xp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uy(e,t,n,r){e.min=Xp(t.min,n.min,r),e.max=Xp(t.max,n.max,r)}function Bee(e,t,n,r){Uy(e.x,t.x,n.x,r),Uy(e.y,t.y,n.y,r)}function Vee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hee={duration:.45,ease:[.4,0,.1,1]},Wy=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gy=Wy(`applewebkit/`)&&!Wy(`chrome/`)?Math.round:gf;function Ky(e){e.min=Gy(e.min),e.max=Gy(e.max)}function Uee(e){Ky(e.x),Ky(e.y)}function qy(e,t,n){return e===`position`||e===`preserve-aspect`&&!Rv(ry(t),ry(n),.2)}function Wee(e){return e!==e.root&&e.scroll?.wasRoot}var Gee=Ay({attachResizeListener:(e,t)=>_y(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Jy={current:void 0},Yy=Ay({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jy.current){let e=new Gee({});e.mount(window),e.setOptions({layoutScroll:!0}),Jy.current=e}return Jy.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Xy=(0,z.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Zy(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Kee(...e){return t=>{let n=!1,r=e.map(e=>{let r=Zy(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Zy(e[t],null)}}}}function qee(...e){return z.useCallback(Kee(...e),e)}var Jee=class extends z.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ng(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ng(e)&&e.offsetWidth||0,r=Ng(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function Yee({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,z.useId)(),s=(0,z.useRef)(null),c=(0,z.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,z.useContext)(Xy),u=qee(s,e.props?.ref??e?.ref);return(0,z.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
20
20
|
[data-motion-pop-id="${o}"] {
|
|
21
21
|
position: absolute !important;
|
|
22
22
|
width: ${e}px !important;
|
|
@@ -59,7 +59,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
59
59
|
A`,`,`,`,0,`,`,`,`,`,`,`,`
|
|
60
60
|
A`,`,`,`,0,0,`,`,`,`,`,`Z`]),C.x,C.y,a,a,+(u<0),S.x,S.y,r,r,+(T>180),+(u>0),y.x,y.y,a,a,+(u<0),b.x,b.y)}else v+=UC(_N||=yN([`L`,`,`,`Z`]),t,n);return v},wN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TN=e=>{var t=Tw(e,wN),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u,className:d}=t;if(a<i||l===u)return null;var f=Eu(`recharts-sector`,d),p=a-i,m=ZC(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?CN({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):SN({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return z.createElement(`path`,vN({},Xx(t),{className:f,d:h}))};function EN(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(bw(t)){if(e===`centric`){var{cx:r,cy:i,innerRadius:a,outerRadius:o,angle:s}=t,c=rN(r,i,a,s),l=rN(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return uN(t)}}var DN=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Xw();function n(e){return t.isSymbol(e)?NaN:Number(e)}e.toNumber=n})),ON=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=DN();function n(e){return e?(e=t.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}e.toFinite=n})),kN=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Zw(),n=ON();function r(e,r,i){i&&typeof i!=`number`&&t.isIterateeCall(e,r,i)&&(r=i=void 0),e=n.toFinite(e),r===void 0?(r=e,e=0):r=n.toFinite(r),i=i===void 0?e<r?1:-1:n.toFinite(i);let a=Math.max(Math.ceil((r-e)/(i||1)),0),o=Array(a);for(let t=0;t<a;t++)o[t]=e,e+=i;return o}e.range=r})),AN=s(((e,t)=>{t.exports=kN().range})),jN=e=>e.chartData,MN=$([jN],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),NN=(e,t,n,r)=>r?MN(e):jN(e),PN=(e,t,n)=>n?MN(e):jN(e),FN=$([NN],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),IN=$([MN],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),LN=$([jN],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)});function RN(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(BD(t)&&BD(n))return!0}return!1}function zN(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function BN(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(BD(n))i=n;else if(typeof n==`function`)return;if(BD(r))a=r;else if(typeof r==`function`)return;var o=[i,a];if(RN(o))return o}}function VN(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(RN(r))return zN(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i===`auto`)t!=null&&(o=Math.min(...t));else if(Z(i))o=i;else if(typeof i==`function`)try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i==`string`&&cO.test(i)){var c=cO.exec(i);if(c==null||c[1]==null||t==null)o=void 0;else{var l=+c[1];o=t[0]-l}}else o=t?.[0];if(a===`auto`)t!=null&&(s=Math.max(...t));else if(Z(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a==`string`&&lO.test(a)){var u=lO.exec(a);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var f=[o,s];if(RN(f))return t==null?f:zN(f,t,n)}}}var HN=u(s(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function UN(e){return e===0?1:Math.floor(new HN.default(e).abs().log(10).toNumber())+1}function WN(e,t,n){for(var r=new HN.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var GN=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},KN=(e,t,n)=>{if(e.lte(0))return new HN.default(0);var r=UN(e.toNumber()),i=new HN.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new HN.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new HN.default(s.toNumber()):new HN.default(Math.ceil(s.toNumber()))},qN=(e,t,n)=>{if(e.lte(0))return new HN.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new HN.default(i).abs().log(10).toNumber()),o=new HN.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new HN.default(10).pow(l))}var u=new HN.default(r[c]??1).mul(o);return t?u:new HN.default(Math.ceil(u.toNumber()))},JN=(e,t,n)=>{var r=new HN.default(1),i=new HN.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new HN.default(10).pow(UN(e)-1),i=new HN.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new HN.default(Math.floor(e)))}else e===0?i=new HN.default(Math.floor((t-1)/2)):n||(i=new HN.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new HN.default(c-o).mul(r)).toNumber());return s},YN=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:KN;if(!Number.isFinite((t-e)/(n-1)))return{step:new HN.default(0),tickMin:new HN.default(0),tickMax:new HN.default(0)};var o=a(new HN.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new HN.default(0):(s=new HN.default(e).add(t).div(2),s=s.sub(new HN.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new HN.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?YN(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new HN.default(c).mul(o)),tickMax:s.add(new HN.default(l).mul(o))})},XN=function(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,o=Math.max(r,2),[s,c]=GN([t,n]);if(s===-1/0||c===1/0){var l=c===1/0?[s,...Array(r-1).fill(1/0)]:[...Array(r-1).fill(-1/0),c];return t>n?l.reverse():l}if(s===c)return JN(s,r,i);var{step:u,tickMin:d,tickMax:f}=YN(s,c,o,i,0,a===`snap125`?qN:KN),p=WN(d,f.add(new HN.default(.1).mul(u)),u);return t>n?p.reverse():p},ZN=function(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,[o,s]=GN([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var c=a===`snap125`?qN:KN,l=Math.max(t,2),u=c(new HN.default(s).sub(o).div(l-1),i,0),d=[...WN(new HN.default(o),new HN.default(s),u),s];return i===!1&&(d=d.map(e=>Math.round(e))),n>r?d.reverse():d},QN=e=>e.rootProps.maxBarSize,$N=e=>e.rootProps.barGap,eP=e=>e.rootProps.barCategoryGap,tP=e=>e.rootProps.barSize,nP=e=>e.rootProps.stackOffset,rP=e=>e.rootProps.reverseStackOrder,iP=e=>e.options.chartName,aP=e=>e.rootProps.syncId,oP=e=>e.rootProps.syncMethod,sP=e=>e.options.eventEmitter,cP=e=>e.rootProps.baseValue,lP={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},uP={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:lP.axis},dP={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:lP.axis},fP=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function pP(e,t,n){if(n!==`auto`)return n;if(e!=null)return YD(e,t)?`category`:`number`}function mP(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 hP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mP(Object(n),!0).forEach(function(t){gP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gP(e,t,n){return(t=_P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=vP(e,`string`);return typeof t==`symbol`?t:t+``}function vP(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var yP={allowDataOverflow:uP.allowDataOverflow,allowDecimals:uP.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:uP.angleAxisId,includeHidden:!1,name:void 0,reversed:uP.reversed,scale:uP.scale,tick:uP.tick,tickCount:void 0,ticks:void 0,type:uP.type,unit:void 0,niceTicks:`auto`},bP={allowDataOverflow:dP.allowDataOverflow,allowDecimals:dP.allowDecimals,allowDuplicatedCategory:dP.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:dP.radiusAxisId,includeHidden:dP.includeHidden,name:void 0,reversed:dP.reversed,scale:dP.scale,tick:dP.tick,tickCount:dP.tickCount,ticks:void 0,type:dP.type,unit:void 0,niceTicks:`auto`},xP=$([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Ck],(e,t)=>{if(e!=null)return e;var n=pP(t,`angleAxis`,yP.type)??`category`;return hP(hP({},yP),{},{type:n})}),SP=$([(e,t)=>e.polarAxis.radiusAxis[t],Ck],(e,t)=>{if(e!=null)return e;var n=pP(t,`radiusAxis`,bP.type)??`category`;return hP(hP({},bP),{},{type:n})}),CP=e=>e.polarOptions,wP=$([hO,gO,NO],iN),TP=$([CP,wP],(e,t)=>{if(e!=null)return ZC(e.innerRadius,t,0)}),EP=$([CP,wP],(e,t)=>{if(e!=null)return ZC(e.outerRadius,t,t*.8)}),DP=$([CP],e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]});$([xP,DP],fP);var OP=$([wP,TP,EP],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});$([SP,OP],fP);var kP=$([bk,CP,TP,EP,hO,gO],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:c,endAngle:l}=t;return{cx:ZC(o,i,i/2),cy:ZC(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),AP=(e,t)=>t,jP=(e,t,n)=>n;function MP(e){return e?.id}function NP(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,o=new Map;return e.forEach(e=>{var t=e.data??r;if(!(t==null||t.length===0)){var n=MP(e);t.forEach((t,r)=>{var s=a==null||i?r:String(qD(t,a,null)),c=qD(t,e.dataKey,0),l=o.has(s)?o.get(s):{};Object.assign(l,{[n]:c}),o.set(s,l)})}}),Array.from(o.values())}function PP(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var FP=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function IP(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function LP(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var RP=e=>{var t=bk(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},zP=e=>e.tooltip.settings.axisId;function BP(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var VP=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!RN(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];BD(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function HP(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function UP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function WP(e){let t,n,r;e.length===2?(t=e===HP||e===UP?e:GP,n=e,r=e):(t=HP,n=(t,n)=>HP(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function GP(){return 0}function KP(e){return e===null?NaN:+e}function*qP(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var JP=WP(HP),YP=JP.right;JP.left,WP(KP).center;var XP=class extends Map{constructor(e,t=eF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(ZP(this,e))}has(e){return super.has(ZP(this,e))}set(e,t){return super.set(QP(this,e),t)}delete(e){return super.delete($P(this,e))}};function ZP({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function QP({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $P({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eF(e){return typeof e==`object`&&e?e.valueOf():e}function tF(e=HP){if(e===HP)return nF;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function nF(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var rF=Math.sqrt(50),iF=Math.sqrt(10),aF=Math.sqrt(2);function oF(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=rF?10:a>=iF?5:a>=aF?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?oF(e,t,n*2):[s,c,l]}function sF(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?oF(t,e,n):oF(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function cF(e,t,n){return t=+t,e=+e,n=+n,oF(e,t,n)[2]}function lF(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?cF(t,e,n):cF(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function uF(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function dF(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function fF(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?nF:tF(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));fF(e,t,u,d,i)}let a=e[t],o=n,s=r;for(pF(e,n,t),i(e[r],a)>0&&pF(e,n,r);o<s;){for(pF(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?pF(e,n,s):(++s,pF(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function pF(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function mF(e,t,n){if(e=Float64Array.from(qP(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return dF(e);if(t>=1)return uF(e);var r,i=(r-1)*t,a=Math.floor(i),o=uF(fF(e,a).subarray(0,a+1));return o+(dF(e.subarray(a+1))-o)*(i-a)}}function hF(e,t,n=KP){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function gF(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function _F(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vF(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var yF=Symbol(`implicit`);function bF(){var e=new XP,t=[],n=[],r=yF;function i(i){let a=e.get(i);if(a===void 0){if(r!==yF)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new XP;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return bF(t,n).unknown(r)},_F.apply(i,arguments),i}function xF(){var e=bF().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=gF(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return xF(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},_F.apply(d(),arguments)}function SF(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return SF(t())},e}function CF(){return SF(xF.apply(null,arguments).paddingInner(1))}function wF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function EF(){}var DF=.7,OF=1/DF,kF=`\\s*([+-]?\\d+)\\s*`,AF=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,jF=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,MF=/^#([0-9a-f]{3,8})$/,NF=RegExp(`^rgb\\(${kF},${kF},${kF}\\)$`),PF=RegExp(`^rgb\\(${jF},${jF},${jF}\\)$`),FF=RegExp(`^rgba\\(${kF},${kF},${kF},${AF}\\)$`),IF=RegExp(`^rgba\\(${jF},${jF},${jF},${AF}\\)$`),LF=RegExp(`^hsl\\(${AF},${jF},${jF}\\)$`),RF=RegExp(`^hsla\\(${AF},${jF},${jF},${AF}\\)$`),zF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wF(EF,WF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:BF,formatHex:BF,formatHex8:VF,formatHsl:HF,formatRgb:UF,toString:UF});function BF(){return this.rgb().formatHex()}function VF(){return this.rgb().formatHex8()}function HF(){return rI(this).formatHsl()}function UF(){return this.rgb().formatRgb()}function WF(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=MF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?GF(t):n===3?new YF(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?KF(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?KF(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=NF.exec(e))?new YF(t[1],t[2],t[3],1):(t=PF.exec(e))?new YF(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FF.exec(e))?KF(t[1],t[2],t[3],t[4]):(t=IF.exec(e))?KF(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=LF.exec(e))?nI(t[1],t[2]/100,t[3]/100,1):(t=RF.exec(e))?nI(t[1],t[2]/100,t[3]/100,t[4]):zF.hasOwnProperty(e)?GF(zF[e]):e===`transparent`?new YF(NaN,NaN,NaN,0):null}function GF(e){return new YF(e>>16&255,e>>8&255,e&255,1)}function KF(e,t,n,r){return r<=0&&(e=t=n=NaN),new YF(e,t,n,r)}function qF(e){return e instanceof EF||(e=WF(e)),e?(e=e.rgb(),new YF(e.r,e.g,e.b,e.opacity)):new YF}function JF(e,t,n,r){return arguments.length===1?qF(e):new YF(e,t,n,r??1)}function YF(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wF(YF,JF,TF(EF,{brighter(e){return e=e==null?OF:OF**+e,new YF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?DF:DF**+e,new YF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new YF(eI(this.r),eI(this.g),eI(this.b),$F(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:XF,formatHex:XF,formatHex8:ZF,formatRgb:QF,toString:QF}));function XF(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}`}function ZF(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}${tI((isNaN(this.opacity)?1:this.opacity)*255)}`}function QF(){let e=$F(this.opacity);return`${e===1?`rgb(`:`rgba(`}${eI(this.r)}, ${eI(this.g)}, ${eI(this.b)}${e===1?`)`:`, ${e})`}`}function $F(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tI(e){return e=eI(e),(e<16?`0`:``)+e.toString(16)}function nI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aI(e,t,n,r)}function rI(e){if(e instanceof aI)return new aI(e.h,e.s,e.l,e.opacity);if(e instanceof EF||(e=WF(e)),!e)return new aI;if(e instanceof aI)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new aI(o,s,c,e.opacity)}function iI(e,t,n,r){return arguments.length===1?rI(e):new aI(e,t,n,r??1)}function aI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wF(aI,iI,TF(EF,{brighter(e){return e=e==null?OF:OF**+e,new aI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?DF:DF**+e,new aI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new YF(cI(e>=240?e-240:e+120,i,r),cI(e,i,r),cI(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new aI(oI(this.h),sI(this.s),sI(this.l),$F(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=$F(this.opacity);return`${e===1?`hsl(`:`hsla(`}${oI(this.h)}, ${sI(this.s)*100}%, ${sI(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function oI(e){return e=(e||0)%360,e<0?e+360:e}function sI(e){return Math.max(0,Math.min(1,e||0))}function cI(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var lI=e=>()=>e;function uI(e,t){return function(n){return e+n*t}}function dI(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function fI(e){return(e=+e)==1?pI:function(t,n){return n-t?dI(t,n,e):lI(isNaN(t)?n:t)}}function pI(e,t){var n=t-e;return n?uI(e,n):lI(isNaN(e)?t:e)}var mI=(function e(t){var n=fI(t);function r(e,t){var r=n((e=JF(e)).r,(t=JF(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=pI(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function hI(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function gI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _I(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=EI(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function vI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yI(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bI(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=EI(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var xI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,SI=new RegExp(xI.source,`g`);function CI(e){return function(){return e}}function wI(e){return function(t){return e(t)+``}}function TI(e,t){var n=xI.lastIndex=SI.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=xI.exec(e))&&(i=SI.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:yI(r,i)})),n=SI.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?wI(c[0].x):CI(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function EI(e,t){var n=typeof t,r;return t==null||n===`boolean`?lI(t):(n===`number`?yI:n===`string`?(r=WF(t))?(t=r,mI):TI:t instanceof WF?mI:t instanceof Date?vI:gI(t)?hI:Array.isArray(t)?_I:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?bI:yI)(e,t)}function DI(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var OI=180/Math.PI,kI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function AI(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*OI,skewX:Math.atan(c)*OI,scaleX:o,scaleY:s}}var jI;function MI(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?kI:AI(t.a,t.b,t.c,t.d,t.e,t.f)}function NI(e){return e==null||(jI||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),jI.setAttribute(`transform`,e),!(e=jI.transform.baseVal.consolidate()))?kI:(e=e.matrix,AI(e.a,e.b,e.c,e.d,e.e,e.f))}function PI(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:yI(e,i)},{i:c-2,x:yI(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:yI(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:yI(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:yI(e,n)},{i:s-2,x:yI(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var FI=PI(MI,`px, `,`px)`,`deg)`),II=PI(NI,`, `,`)`,`)`),LI=1e-12;function RI(e){return((e=Math.exp(e))+1/e)/2}function Qne(e){return((e=Math.exp(e))-1/e)/2}function $ne(e){return((e=Math.exp(2*e))-1)/(e+1)}var zI=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<LI)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=RI(y),c=s/(n*g)*(i*$ne(t*r+y)-Qne(y));return[a+c*d,o+c*f,s*i/RI(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4);function ere(e,t){t===void 0&&(t=e,e=EI);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function tre(e){return function(){return e}}function BI(e){return+e}var VI=[0,1];function HI(e){return e}function UI(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:tre(isNaN(t)?NaN:.5)}function nre(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function rre(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=UI(i,r),a=n(o,a)):(r=UI(r,i),a=n(a,o)),function(e){return a(r(e))}}function ire(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=UI(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=YP(e,t,1,r)-1;return a[n](i[n](t))}}function WI(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function GI(){var e=VI,t=VI,n=EI,r,i,a,o=HI,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==HI&&(o=nre(e[0],e[n-1])),s=n>2?ire:rre,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),yI))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,BI),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=DI,u()},d.clamp=function(e){return arguments.length?(o=e?!0:HI,u()):o!==HI},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function KI(){return GI()(HI,HI)}function are(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function qI(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function JI(e){return e=qI(Math.abs(e)),e?e[1]:NaN}function ore(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function sre(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var cre=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function YI(e){if(!(t=cre.exec(e)))throw Error(`invalid format: `+e);var t;return new XI({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}YI.prototype=XI.prototype;function XI(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}XI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function lre(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var ZI;function ure(e,t){var n=qI(e,t);if(!n)return ZI=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ZI=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+qI(e,Math.max(0,t+a-1))[0]}function QI(e,t){var n=qI(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var $I={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:are,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>QI(e*100,t),r:QI,s:ure,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eL(e){return e}var tL=Array.prototype.map,nL=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function dre(e){var t=e.grouping===void 0||e.thousands===void 0?eL:ore(tL.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?eL:sre(tL.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=YI(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):$I[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=$I[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=lre(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&ZI!==void 0?nL[8+ZI/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(JI(t)/3)))*3,r=10**-n,i=l((e=YI(e),e.type=`f`,e),{suffix:nL[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var rL,iL,aL;fre({thousands:`,`,grouping:[3],currency:[`$`,``]});function fre(e){return rL=dre(e),iL=rL.format,aL=rL.formatPrefix,rL}function pre(e){return Math.max(0,-JI(Math.abs(e)))}function mre(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(JI(t)/3)))*3-JI(Math.abs(e)))}function hre(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,JI(t)-JI(e))+1}function oL(e,t,n,r){var i=lF(e,t,n),a;switch(r=YI(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=mre(i,o))&&(r.precision=a),aL(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=hre(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=pre(i))&&(r.precision=a-(r.type===`%`)*2);break}return iL(r)}function sL(e){var t=e.domain;return e.ticks=function(e){var n=t();return sF(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return oL(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=cF(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function cL(){var e=KI();return e.copy=function(){return WI(e,cL())},_F.apply(e,arguments),sL(e)}function lL(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,BI),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return lL(e).unknown(t)},e=arguments.length?Array.from(e,BI):[0,1],sL(n)}function uL(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function dL(e){return Math.log(e)}function fL(e){return Math.exp(e)}function gre(e){return-Math.log(-e)}function _re(e){return-Math.exp(-e)}function vre(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function yre(e){return e===10?vre:e===Math.E?Math.exp:t=>e**+t}function bre(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function pL(e){return(t,n)=>-e(-t,n)}function mL(e){let t=e(dL,fL),n=t.domain,r=10,i,a;function o(){return i=bre(r),a=yre(r),n()[0]<0?(i=pL(i),a=pL(a),e(gre,_re)):e(dL,fL),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=sF(o,s,p))}else m=sF(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=YI(n)).precision==null&&(n.trim=!0),n=iL(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(uL(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function hL(){let e=mL(GI()).domain([1,10]);return e.copy=()=>WI(e,hL()).base(e.base()),_F.apply(e,arguments),e}function gL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _L(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vL(e){var t=1,n=e(gL(t),_L(t));return n.constant=function(n){return arguments.length?e(gL(t=+n),_L(t)):t},sL(n)}function yL(){var e=vL(GI());return e.copy=function(){return WI(e,yL()).constant(e.constant())},_F.apply(e,arguments)}function bL(e){return function(t){return t<0?-((-t)**+e):t**+e}}function xre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Sre(e){return e<0?-e*e:e*e}function xL(e){var t=e(HI,HI),n=1;function r(){return n===1?e(HI,HI):n===.5?e(xre,Sre):e(bL(n),bL(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},sL(t)}function SL(){var e=xL(GI());return e.copy=function(){return WI(e,SL()).exponent(e.exponent())},_F.apply(e,arguments),e}function Cre(){return SL.apply(null,arguments).exponent(.5)}function CL(e){return Math.sign(e)*e*e}function wre(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function wL(){var e=KI(),t=[0,1],n=!1,r;function i(t){var i=wre(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(CL(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,BI)).map(CL)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return wL(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_F.apply(i,arguments),sL(i)}function TL(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=hF(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[YP(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(HP),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return TL().domain(e).range(t).unknown(r)},_F.apply(a,arguments)}function EL(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[YP(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return EL().domain([e,t]).range(i).unknown(a)},_F.apply(sL(o),arguments)}function DL(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[YP(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return DL().domain(e).range(t).unknown(n)},_F.apply(i,arguments)}var OL=new Date,kL=new Date;function AL(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>AL(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(OL.setTime(+t),kL.setTime(+r),e(OL),e(kL),Math.floor(n(OL,kL))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var jL=AL(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jL.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?AL(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jL),jL.range;var ML=1e3,NL=ML*60,PL=NL*60,FL=PL*24,IL=FL*7,LL=FL*30,RL=FL*365,zL=AL(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ML)},(e,t)=>(t-e)/ML,e=>e.getUTCSeconds());zL.range;var BL=AL(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ML)},(e,t)=>{e.setTime(+e+t*NL)},(e,t)=>(t-e)/NL,e=>e.getMinutes());BL.range;var VL=AL(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*NL)},(e,t)=>(t-e)/NL,e=>e.getUTCMinutes());VL.range;var HL=AL(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ML-e.getMinutes()*NL)},(e,t)=>{e.setTime(+e+t*PL)},(e,t)=>(t-e)/PL,e=>e.getHours());HL.range;var UL=AL(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*PL)},(e,t)=>(t-e)/PL,e=>e.getUTCHours());UL.range;var WL=AL(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*NL)/FL,e=>e.getDate()-1);WL.range;var GL=AL(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/FL,e=>e.getUTCDate()-1);GL.range;var KL=AL(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/FL,e=>Math.floor(e/FL));KL.range;function qL(e){return AL(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*NL)/IL)}var JL=qL(0),YL=qL(1),Tre=qL(2),Ere=qL(3),XL=qL(4),Dre=qL(5),Ore=qL(6);JL.range,YL.range,Tre.range,Ere.range,XL.range,Dre.range,Ore.range;function ZL(e){return AL(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/IL)}var QL=ZL(0),$L=ZL(1),kre=ZL(2),Are=ZL(3),eR=ZL(4),jre=ZL(5),Mre=ZL(6);QL.range,$L.range,kre.range,Are.range,eR.range,jre.range,Mre.range;var tR=AL(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tR.range;var nR=AL(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());nR.range;var rR=AL(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());rR.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:AL(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),rR.range;var iR=AL(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());iR.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:AL(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),iR.range;function aR(e,t,n,r,i,a){let o=[[zL,1,ML],[zL,5,5*ML],[zL,15,15*ML],[zL,30,30*ML],[a,1,NL],[a,5,5*NL],[a,15,15*NL],[a,30,30*NL],[i,1,PL],[i,3,3*PL],[i,6,6*PL],[i,12,12*PL],[r,1,FL],[r,2,2*FL],[n,1,IL],[t,1,LL],[t,3,3*LL],[e,1,RL]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=WP(([,,e])=>e).right(o,i);if(a===o.length)return e.every(lF(t/RL,n/RL,r));if(a===0)return jL.every(Math.max(lF(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Nre,Pre]=aR(iR,nR,QL,KL,UL,VL),[Fre,Ire]=aR(rR,tR,JL,WL,HL,BL);function oR(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function sR(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cR(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Lre(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=fR(i),u=pR(i),d=fR(a),f=pR(a),p=fR(o),m=pR(o),h=fR(s),g=pR(s),_=fR(c),v=pR(c),y={a:N,A:ee,b:P,B:F,c:null,d:vR,e:vR,f:oie,g:gie,G:vie,H:rie,I:iie,j:aie,L:yR,m:sie,M:cie,p:I,q:te,Q:FR,s:IR,S:lie,u:uie,U:die,V:fie,w:pie,W:mie,x:null,X:null,y:hie,Y:_ie,Z:yie,"%":PR},b={a:ne,A:re,b:L,B:R,c:null,d:xR,e:xR,f:Cie,g:AR,G:MR,H:bie,I:xie,j:Sie,L:SR,m:wie,M:Tie,p:ie,q:ae,Q:FR,s:IR,S:Eie,u:CR,U:wR,V:ER,w:DR,W:OR,x:null,X:null,y:kR,Y:jR,Z:NR,"%":PR},x={a:E,A:D,b:O,B:k,c:A,d:gR,e:gR,f:$re,g:hR,G:mR,H:_R,I:_R,j:Yre,L:Qre,m:Jre,M:Xre,p:T,q:qre,Q:tie,s:nie,S:Zre,u:Hre,U:Ure,V:Wre,w:Vre,W:Gre,x:j,X:M,y:hR,Y:mR,Z:Kre,"%":eie};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=lR[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=cR(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=sR(cR(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?$L.ceil(a):$L(a),a=GL.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=oR(cR(r.y,0,1)),o=a.getDay(),a=o>4||o===0?YL.ceil(a):YL(a),a=WL.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?sR(cR(r.y,0,1)).getUTCDay():oR(cR(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,sR(r)):oR(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in lR?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function P(e){return c[e.getMonth()]}function F(e){return s[e.getMonth()]}function I(e){return i[+(e.getHours()>=12)]}function te(e){return 1+~~(e.getMonth()/3)}function ne(e){return o[e.getUTCDay()]}function re(e){return a[e.getUTCDay()]}function L(e){return c[e.getUTCMonth()]}function R(e){return s[e.getUTCMonth()]}function ie(e){return i[+(e.getUTCHours()>=12)]}function ae(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var lR={"-":``,_:` `,0:`0`},uR=/^\s*\d+/,Rre=/^%/,zre=/[\\^$*+?|[\]().{}]/g;function dR(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Bre(e){return e.replace(zre,`\\$&`)}function fR(e){return RegExp(`^(?:`+e.map(Bre).join(`|`)+`)`,`i`)}function pR(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Vre(e,t,n){var r=uR.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Hre(e,t,n){var r=uR.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ure(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wre(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Gre(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mR(e,t,n){var r=uR.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hR(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kre(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function qre(e,t,n){var r=uR.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Jre(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gR(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yre(e,t,n){var r=uR.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _R(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xre(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zre(e,t,n){var r=uR.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qre(e,t,n){var r=uR.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $re(e,t,n){var r=uR.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function eie(e,t,n){var r=Rre.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tie(e,t,n){var r=uR.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nie(e,t,n){var r=uR.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vR(e,t){return dR(e.getDate(),t,2)}function rie(e,t){return dR(e.getHours(),t,2)}function iie(e,t){return dR(e.getHours()%12||12,t,2)}function aie(e,t){return dR(1+WL.count(rR(e),e),t,3)}function yR(e,t){return dR(e.getMilliseconds(),t,3)}function oie(e,t){return yR(e,t)+`000`}function sie(e,t){return dR(e.getMonth()+1,t,2)}function cie(e,t){return dR(e.getMinutes(),t,2)}function lie(e,t){return dR(e.getSeconds(),t,2)}function uie(e){var t=e.getDay();return t===0?7:t}function die(e,t){return dR(JL.count(rR(e)-1,e),t,2)}function bR(e){var t=e.getDay();return t>=4||t===0?XL(e):XL.ceil(e)}function fie(e,t){return e=bR(e),dR(XL.count(rR(e),e)+(rR(e).getDay()===4),t,2)}function pie(e){return e.getDay()}function mie(e,t){return dR(YL.count(rR(e)-1,e),t,2)}function hie(e,t){return dR(e.getFullYear()%100,t,2)}function gie(e,t){return e=bR(e),dR(e.getFullYear()%100,t,2)}function _ie(e,t){return dR(e.getFullYear()%1e4,t,4)}function vie(e,t){var n=e.getDay();return e=n>=4||n===0?XL(e):XL.ceil(e),dR(e.getFullYear()%1e4,t,4)}function yie(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+dR(t/60|0,`0`,2)+dR(t%60,`0`,2)}function xR(e,t){return dR(e.getUTCDate(),t,2)}function bie(e,t){return dR(e.getUTCHours(),t,2)}function xie(e,t){return dR(e.getUTCHours()%12||12,t,2)}function Sie(e,t){return dR(1+GL.count(iR(e),e),t,3)}function SR(e,t){return dR(e.getUTCMilliseconds(),t,3)}function Cie(e,t){return SR(e,t)+`000`}function wie(e,t){return dR(e.getUTCMonth()+1,t,2)}function Tie(e,t){return dR(e.getUTCMinutes(),t,2)}function Eie(e,t){return dR(e.getUTCSeconds(),t,2)}function CR(e){var t=e.getUTCDay();return t===0?7:t}function wR(e,t){return dR(QL.count(iR(e)-1,e),t,2)}function TR(e){var t=e.getUTCDay();return t>=4||t===0?eR(e):eR.ceil(e)}function ER(e,t){return e=TR(e),dR(eR.count(iR(e),e)+(iR(e).getUTCDay()===4),t,2)}function DR(e){return e.getUTCDay()}function OR(e,t){return dR($L.count(iR(e)-1,e),t,2)}function kR(e,t){return dR(e.getUTCFullYear()%100,t,2)}function AR(e,t){return e=TR(e),dR(e.getUTCFullYear()%100,t,2)}function jR(e,t){return dR(e.getUTCFullYear()%1e4,t,4)}function MR(e,t){var n=e.getUTCDay();return e=n>=4||n===0?eR(e):eR.ceil(e),dR(e.getUTCFullYear()%1e4,t,4)}function NR(){return`+0000`}function PR(){return`%`}function FR(e){return+e}function IR(e){return Math.floor(e/1e3)}var LR,RR,zR;BR({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function BR(e){return LR=Lre(e),RR=LR.format,LR.parse,zR=LR.utcFormat,LR.utcParse,LR}function VR(e){return new Date(e)}function HR(e){return e instanceof Date?+e:+new Date(+e)}function UR(e,t,n,r,i,a,o,s,c,l){var u=KI(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,HR)):f().map(VR)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(uL(n,e)):u},u.copy=function(){return WI(u,UR(e,t,n,r,i,a,o,s,c,l))},u}function WR(){return _F.apply(UR(Fre,Ire,rR,tR,JL,WL,HL,BL,zL,RR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function GR(){return _F.apply(UR(Nre,Pre,iR,nR,QL,GL,UL,VL,zL,zR).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function KR(){var e=0,t=1,n,r,i,a,o=HI,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(EI),l.rangeRound=u(DI),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function qR(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function JR(){var e=sL(KR()(HI));return e.copy=function(){return qR(e,JR())},vF.apply(e,arguments)}function YR(){var e=mL(KR()).domain([1,10]);return e.copy=function(){return qR(e,YR()).base(e.base())},vF.apply(e,arguments)}function XR(){var e=vL(KR());return e.copy=function(){return qR(e,XR()).constant(e.constant())},vF.apply(e,arguments)}function ZR(){var e=xL(KR());return e.copy=function(){return qR(e,ZR()).exponent(e.exponent())},vF.apply(e,arguments)}function QR(){return ZR.apply(null,arguments).exponent(.5)}function $R(){var e=[],t=HI;function n(n){if(n!=null&&!isNaN(n=+n))return t((YP(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(HP),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>mF(e,r/t))},n.copy=function(){return $R(t).domain(e)},vF.apply(n,arguments)}function ez(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=HI,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=ere(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(EI),p.rangeRound=m(DI),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function tz(){var e=sL(ez()(HI));return e.copy=function(){return qR(e,tz())},vF.apply(e,arguments)}function nz(){var e=mL(ez()).domain([.1,1,10]);return e.copy=function(){return qR(e,nz()).base(e.base())},vF.apply(e,arguments)}function rz(){var e=vL(ez());return e.copy=function(){return qR(e,rz()).constant(e.constant())},vF.apply(e,arguments)}function iz(){var e=xL(ez());return e.copy=function(){return qR(e,iz()).exponent(e.exponent())},vF.apply(e,arguments)}function az(){return iz.apply(null,arguments).exponent(.5)}var oz=c({scaleBand:()=>xF,scaleDiverging:()=>tz,scaleDivergingLog:()=>nz,scaleDivergingPow:()=>iz,scaleDivergingSqrt:()=>az,scaleDivergingSymlog:()=>rz,scaleIdentity:()=>lL,scaleImplicit:()=>yF,scaleLinear:()=>cL,scaleLog:()=>hL,scaleOrdinal:()=>bF,scalePoint:()=>CF,scalePow:()=>SL,scaleQuantile:()=>TL,scaleQuantize:()=>EL,scaleRadial:()=>wL,scaleSequential:()=>JR,scaleSequentialLog:()=>YR,scaleSequentialPow:()=>ZR,scaleSequentialQuantile:()=>$R,scaleSequentialSqrt:()=>QR,scaleSequentialSymlog:()=>XR,scaleSqrt:()=>Cre,scaleSymlog:()=>yL,scaleThreshold:()=>DL,scaleTime:()=>WR,scaleUtc:()=>GR,tickFormat:()=>oL});function sz(e){var t=oz;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${nw(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function cz(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=sz(e);if(r!=null)return r.domain(t).range(n),r}}function lz(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?cz(e.scale,n,r):cz(t,n,r)}function uz(e){return`scale${nw(e)}`}function dz(e){return uz(e)in oz}var fz=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return dz(r)?r:`point`}};function pz(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function mz(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=pz(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function hz(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):mz(e,void 0)}var gz=u(AN());function _z(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 vz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_z(Object(n),!0).forEach(function(t){yz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yz(e,t,n){return(t=bz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=xz(e,`string`);return typeof t==`symbol`?t:t+``}function xz(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Sz=[0,`auto`],Cz={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},wz=(e,t)=>e.cartesianAxis.xAxis[t],Tz=(e,t)=>wz(e,t)??Cz,Ez={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Sz,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},Dz=(e,t)=>e.cartesianAxis.yAxis[t],Oz=(e,t)=>Dz(e,t)??Ez,kz={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},Az=(e,t)=>e.cartesianAxis.zAxis[t]??kz,jz=(e,t,n)=>{switch(t){case`xAxis`:return Tz(e,n);case`yAxis`:return Oz(e,n);case`zAxis`:return Az(e,n);case`angleAxis`:return xP(e,n);case`radiusAxis`:return SP(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Mz=(e,t,n)=>{switch(t){case`xAxis`:return Tz(e,n);case`yAxis`:return Oz(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Nz=(e,t,n)=>{switch(t){case`xAxis`:return Tz(e,n);case`yAxis`:return Oz(e,n);case`angleAxis`:return xP(e,n);case`radiusAxis`:return SP(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Pz=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function Fz(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var Iz=e=>e.graphicalItems.cartesianItems,Lz=$([AP,jP],Fz),Rz=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),zz=$([Iz,jz,Lz],Rz,{memoizeOptions:{resultEqualityCheck:IP}}),Bz=$([zz],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(PP)),Vz=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),Hz=$([zz],Vz),Uz=e=>e.map(e=>e.data).filter(Boolean).flat(1),Wz=$([zz],e=>e.some(e=>!e.data)),Gz=$([zz],Uz,{memoizeOptions:{resultEqualityCheck:IP}}),Kz=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},qz=$([Gz,NN],Kz),Jz=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:qD(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:qD(e,t.dataKey)})),Yz=(e,t,n,r,i,a)=>{var{chartData:o=[],dataStartIndex:s,dataEndIndex:c}=r,l=Jz(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...o.slice(s,c+1).map(e=>({value:qD(e,t.dataKey)})).filter(e=>e.value!=null),...l]:l},Xz=$([qz,jz,zz,NN,Wz,Gz],Yz);function Zz(e){if(JC(e)||e instanceof Date){var t=Number(e);if(BD(t))return t}}function Qz(e){if(Array.isArray(e)){var t=[Zz(e[0]),Zz(e[1])];return RN(t)?t:void 0}var n=Zz(e);if(n!=null)return[n,n]}function $z(e){return e.map(Zz).filter(rw)}function eB(e,t){var n=Zz(e),r=Zz(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var tB=$([Xz],e=>e?.map(e=>e.value).sort(eB));function nB(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function rB(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!KC(t))r=t;else if(Array.isArray(t)){var i=$z(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:$z(n.flatMap(t=>{var n=qD(e,t.dataKey),i,a;if(Array.isArray(n)?[i,a]=n:i=a=n,!(!BD(i)||!BD(a)))return[r-i,r+a]}))}var iB=e=>Nz(e,RP(e),zP(e)),aB=$([iB],e=>e?.dataKey),oB=$([Bz,NN,iB],NP),sB=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=r?[...a].reverse():a;return[i,{stackedData:eO(e,o.map(MP),n),graphicalItems:o}]}))},cB=$([oB,Bz,nP,rP],sB),lB=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!==`zAxis`){var o=sO(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},uB=$([jz],e=>e.allowDataOverflow),dB=e=>{if(e==null||!(`domain`in e))return Sz;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=$z(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??Sz},fB=$([jz],dB),pB=$([fB,uB],BN),mB=$([cB,jN,AP,pB],lB,{memoizeOptions:{resultEqualityCheck:FP}}),hB=e=>e.errorBars,gB=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>nB(n,e)),_B=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},vB=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>nB(i,e));n.forEach(n=>{var r=qD(n,t.dataKey??e.dataKey),i=rB(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=Qz(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=Qz(qD(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),BD(o)&&BD(s))return[o,s]},yB=$([qz,jz,Hz,hB,AP,FN],vB,{memoizeOptions:{resultEqualityCheck:FP}});function bB(e){var{value:t}=e;if(JC(t)||t instanceof Date)return t}var xB=(e,t,n)=>{var r=e.map(bB).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&QC(r))?(0,gz.default)(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},SB=e=>e.referenceElements.dots,CB=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),wB=$([SB,AP,jP],CB),TB=e=>e.referenceElements.areas,EB=$([TB,AP,jP],CB),DB=e=>e.referenceElements.lines,OB=$([DB,AP,jP],CB),kB=(e,t)=>{if(e!=null){var n=$z(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},AB=$(wB,AP,kB),jB=(e,t)=>{if(e!=null){var n=$z(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},MB=$([EB,AP],jB);function NB(e){if(e.x!=null)return $z([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:$z(t)}function PB(e){if(e.y!=null)return $z([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:$z(t)}var FB=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?NB(e):PB(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},IB=$(AB,$([OB,AP],FB),MB,(e,t,n)=>_B(e,n,t)),LB=(e,t,n,r,i,a,o,s)=>n??VN(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?_B(r,a,i):_B(a,i),e.allowDataOverflow),RB=$([jz,fB,pB,mB,yB,IB,bk,AP],LB,{memoizeOptions:{resultEqualityCheck:FP}}),zB=[0,1],BB=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var{dataKey:s,type:c}=e,l=YD(t,a);return l&&s==null?(0,gz.default)(0,n?.length??0):c===`category`?xB(r,e,l):i===`expand`&&!l?zB:o}},VB=$([jz,bk,qz,Xz,nP,AP,RB],BB),HB=$([jz,Pz,iP],fz),UB=(e,t,n)=>{var{niceTicks:r}=t;if(r!==`none`){var i=dB(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&RN(e)){if(a)return XN(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return ZN(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&RN(e))return XN(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&RN(e))return ZN(e,t.tickCount,t.allowDecimals,`adaptive`)}}},WB=$([VB,Nz,HB],UB),GB=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&RN(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},KB=$([jz,VB,WB,AP],GB),qB=$($(Xz,jz,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from($z(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(!(c==null||l==null)){var u=l-c;n=Math.min(n,u)}}return n/o}}),bk,eP,NO,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!BD(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=ZC(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),JB=(e,t,n)=>{var r=Tz(e,t);return r==null||typeof r.padding!=`string`?0:qB(e,`xAxis`,t,n,r.padding)},YB=(e,t,n)=>{var r=Oz(e,t);return r==null||typeof r.padding!=`string`?0:qB(e,`yAxis`,t,n,r.padding)},XB=$(Tz,JB,(e,t)=>{if(e==null)return{left:0,right:0};var{padding:n}=e;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),ZB=$(Oz,YB,(e,t)=>{if(e==null)return{top:0,bottom:0};var{padding:n}=e;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),QB=$([NO,XB,zO,RO,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),$B=$([NO,bk,ZB,zO,RO,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),eV=(e,t,n,r)=>{switch(t){case`xAxis`:return QB(e,n,r);case`yAxis`:return $B(e,n,r);case`zAxis`:return Az(e,n)?.range;case`angleAxis`:return DP(e);case`radiusAxis`:return OP(e,n);default:return}},tV=$([jz,eV],fP),nV=$([jz,HB,$([HB,KB],VP),tV],lz),rV=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n;if(YD(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},iV=$([bk,Xz,Nz,AP],rV),aV=$([nV],BP);$([nV],hz),$([nV,tB],mz),$([zz,hB,AP],gB);function oV(e,t){return e.id<t.id?-1:+(e.id>t.id)}var sV=(e,t)=>t,cV=(e,t,n)=>n,lV=$(yO,sV,cV,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(oV)),uV=$(bO,sV,cV,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(oV)),dV=(e,t)=>({width:e.width,height:t.height}),fV=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),pV=$(NO,Tz,dV),mV=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},hV=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},gV=$(gO,NO,lV,sV,cV,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=dV(t,n);o??=mV(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),_V=$(hO,NO,uV,sV,cV,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=fV(t,n);o??=hV(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),vV=$([NO,Tz,(e,t)=>{var n=Tz(e,t);if(n!=null)return gV(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),yV=$([NO,Oz,(e,t)=>{var n=Oz(e,t);if(n!=null)return _V(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),bV=$(NO,Oz,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),xV=(e,t,n)=>{switch(t){case`xAxis`:return pV(e,n).width;case`yAxis`:return bV(e,n).height;default:return}},SV=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=YD(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&QC(l))return c}},CV=$([bk,Xz,jz,AP],SV),wV=$([bk,Mz,HB,aV,CV,iV,eV,WB,AP],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=YD(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),TV=$([bk,Nz,HB,aV,WB,eV,CV,iV,AP],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=YD(e,c),{type:u,ticks:d,tickCount:f}=t,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?GC(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return BD(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(rw):l&&s?s.map((e,t)=>{var n=r.map(e);return BD(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(rw):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return BD(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(rw):r.domain().map((e,t)=>{var n=r.map(e);return BD(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(rw)}}),EV=$([bk,Nz,aV,eV,CV,iV,AP],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=YD(e,o),{tickCount:c}=t,l=0;return l=o===`angleAxis`&&r?.length>=2?GC(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return BD(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(rw):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return BD(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(rw):n.domain().map((e,t)=>{var r=n.map(e);return BD(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(rw)}}),DV=$(jz,aV,(e,t)=>{if(!(e==null||t==null))return vz(vz({},e),{},{scale:t})});$((e,t,n)=>Az(e,n),$([$([jz,HB,VB,tV],lz)],BP),(e,t)=>{if(!(e==null||t==null))return vz(vz({},e),{},{scale:t})});var OV=$([bk,yO,bO],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}});$([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}});var kV=e=>e.options.defaultTooltipEventType,AV=e=>e.options.validateTooltipEventTypes;function jV(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function MV(e,t){return jV(t,kV(e),AV(e))}function NV(e){return Q(t=>MV(t,e))}var PV=(e,t)=>{var n,r=Number(t);if(!(KC(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},FV=e=>e.tooltip.settings,IV={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},LV=ZE({name:`tooltip`,initialState:{itemInteraction:{click:IV,hover:IV},axisInteraction:{click:IV,hover:IV},keyboardInteraction:IV,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(mA(t.payload))},prepare:LE()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=CE(e).tooltipItemPayloads.indexOf(mA(n));i>-1&&(e.tooltipItemPayloads[i]=mA(r))},prepare:LE()},removeTooltipEntrySettings:{reducer(e,t){var n=CE(e).tooltipItemPayloads.indexOf(mA(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:LE()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:RV,replaceTooltipEntrySettings:zV,removeTooltipEntrySettings:BV,setTooltipSettingsState:VV,setActiveMouseOverItemIndex:HV,mouseLeaveItem:UV,mouseLeaveChart:WV,setActiveClickItemIndex:GV,setMouseOverAxisIndex:KV,setMouseClickAxisIndex:qV,setSyncInteraction:JV,setKeyboardInteraction:YV}=LV.actions,XV=LV.reducer;function ZV(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 QV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZV(Object(n),!0).forEach(function(t){$V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $V(e,t,n){return(t=eH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eH(e){var t=tH(e,`string`);return typeof t==`symbol`?t:t+``}function tH(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nH(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function rH(e){return e.index!=null}var iH=(e,t,n,r)=>{if(t==null)return IV;var i=nH(e,t,n);if(i==null)return IV;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(rH(i)){if(a)return QV(QV({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return QV(QV({},IV),{},{coordinate:i.coordinate})};function aH(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function oH(e,t){var n=aH(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function sH(e,t,n){if(n==null||t==null)return!0;var r=qD(e,t);return r==null||!RN(n)?!0:oH(r,n)}var cH=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!BD(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||sH(l,n,r)?String(c):null},lH=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},uH=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},dH=e=>e.options.tooltipPayloadSearcher,fH=e=>e.tooltip;function pH(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 mH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pH(Object(n),!0).forEach(function(t){hH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hH(e,t,n){return(t=gH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gH(e){var t=_H(e,`string`);return typeof t==`symbol`?t:t+``}function _H(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vH(e){if(typeof e==`string`||typeof e==`number`)return e}function yH(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function bH(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function xH(e){if(typeof e==`string`)return e}function SH(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?vH(e.name):void 0,unit:`unit`in e?yH(e.unit):void 0,dataKey:`dataKey`in e?bH(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?xH(e.color):void 0,fill:`fill`in e?xH(e.fill):void 0}}function CH(e,t){return e??t}var wH=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:c,dataStartIndex:l,dataEndIndex:u}=n;return e.reduce((e,n)=>{var{dataDefinedOnItem:d,settings:f}=n,p=CH(d,s),m=Array.isArray(p)?zD(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?ew(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=SH(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=mH(mH({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(dO({tooltipEntrySettings:o,dataKey:i,payload:a,value:qD(a,i),name:r==null?void 0:String(r)}))}):e.push(dO({tooltipEntrySettings:f,dataKey:h,payload:_,value:qD(_,h),name:qD(_,g)??f?.name})),e},[])}},TH=$([iB,Pz,iP],fz),EH=$([$([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),iB,$([RP,zP],Fz)],Rz,{memoizeOptions:{resultEqualityCheck:IP}}),DH=$([EH],e=>e.filter(PP)),OH=$([EH],Uz,{memoizeOptions:{resultEqualityCheck:IP}}),kH=$([EH],e=>e.some(e=>!e.data)),AH=$([OH,jN],Kz),jH=$([DH,jN,iB],NP),MH=$([AH,iB,EH,jN,kH,OH],Yz),NH=$([iB],dB),PH=$([NH,$([iB],e=>e.allowDataOverflow)],BN),FH=$([$([jH,$([EH],e=>e.filter(PP)),nP,rP],sB),jN,RP,PH],lB),IH=$([AH,iB,$([EH],Vz),hB,RP,LN],vB,{memoizeOptions:{resultEqualityCheck:FP}}),LH=$([$([SB,RP,zP],CB),RP],kB),RH=$([$([TB,RP,zP],CB),RP],jB),zH=$([iB,bk,AH,MH,nP,RP,$([iB,NH,PH,FH,IH,$([LH,$([$([DB,RP,zP],CB),RP],FB),RH],_B),bk,RP],LB)],BB),BH=$([iB,zH,$([zH,iB,TH],UB),RP],GB),VH=e=>eV(e,RP(e),zP(e),!1),HH=$([iB,VH],fP),UH=$([$([iB,TH,BH,HH],lz)],BP),WH=$([bk,iB,TH,UH,VH,$([bk,MH,iB,RP],SV),$([bk,MH,iB,RP],rV),RP],(e,t,n,r,i,a,o,s)=>{if(t){var{type:c}=t,l=YD(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?GC(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return BD(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(rw):r.domain().map((e,t)=>{var n=r.map(e);return BD(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(rw)}}}),GH=$([kV,AV,FV],(e,t,n)=>jV(n.shared,e,t)),KH=e=>e.tooltip.settings.trigger,qH=e=>e.tooltip.settings.defaultIndex,JH=$([fH,GH,KH,qH],iH),YH=$([JH,AH,aB,zH],cH),XH=$([WH,YH],PV),ZH=$([JH],e=>{if(e)return e.dataKey}),QH=$([JH],e=>{if(e)return e.graphicalItemId}),$H=$([fH,GH,KH,qH],uH),eU=$([JH,$([hO,gO,bk,NO,WH,qH,$H],lH)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),tU=$([JH],e=>e?.active??!1),nU=$([$([$H,YH,jN,aB,XH,dH,GH],wH)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function rU(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 iU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rU(Object(n),!0).forEach(function(t){aU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aU(e,t,n){return(t=oU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oU(e){var t=sU(e,`string`);return typeof t==`symbol`?t:t+``}function sU(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var cU=()=>Q(iB),lU=()=>{var e=cU(),t=Q(WH),n=Q(UH);return uO(!e||!n?void 0:iU(iU({},e),{},{scale:n}),t)};function uU(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 dU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uU(Object(n),!0).forEach(function(t){fU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fU(e,t,n){return(t=pU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pU(e){var t=mU(e,`string`);return typeof t==`symbol`?t:t+``}function mU(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var hU=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},gU=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,{radius:o}=r;return dU(dU(dU({},r),rN(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:c}=r;return dU(dU(dU({},r),rN(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function _U(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var vU=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=0;o<a;o++){var s=o>0?n[o-1]?.coordinate:n[a-1]?.coordinate,c=n[o]?.coordinate,l=o>=a-1?n[0]?.coordinate:n[o+1]?.coordinate,u=void 0;if(!(s==null||c==null||l==null))if(GC(c-s)!==GC(l-c)){var d=[];if(GC(l-c)===GC(i[1]-i[0])){u=l;var f=c+i[1]-i[0];d[0]=Math.min(f,(f+s)/2),d[1]=Math.max(f,(f+s)/2)}else{u=s;var p=l+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(u+c)/2),Math.max(c,(u+c)/2)];if(e>m[0]&&e<=m[1]||e>=d[0]&&e<=d[1])return n[o]?.index}else{var h=Math.min(s,l),g=Math.max(s,l);if(e>(h+c)/2&&e<=(g+c)/2)return n[o]?.index}}else if(t)for(var _=0;_<a;_++){var v=t[_];if(v!=null){var y=t[_+1],b=t[_-1];if(_===0&&y!=null&&e<=(v.coordinate+y.coordinate)/2||_===a-1&&b!=null&&e>(v.coordinate+b.coordinate)/2||_>0&&_<a-1&&b!=null&&y!=null&&e>(v.coordinate+b.coordinate)/2&&e<=(v.coordinate+y.coordinate)/2)return v.index}}return-1},yU=()=>Q(iP),bU=(e,t)=>t,xU=(e,t,n)=>n,SU=(e,t,n,r)=>r,CU=$(WH,e=>(0,Qw.default)(e,e=>e.coordinate)),wU=$([fH,bU,xU,SU],iH),TU=$([wU,AH,aB,zH],cH),EU=(e,t,n)=>{if(t!=null){var r=fH(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},DU=$([fH,bU,xU,SU],uH),OU=$([hO,gO,bk,NO,WH,SU,DU],lH),kU=$([wU,OU],(e,t)=>e.coordinate??t),AU=$([WH,TU],PV),jU=$([DU,TU,jN,aB,AU,dH,bU],wH),MU=$([wU,TU],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),NU=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&_U(e,o)){var s=vU(pO(e,t),a,i,n,r),c=hU(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},PU=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=lN(e,n);if(s){var c=vU(mO(s,t),o,a,r,i),l=gU(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},FU=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?NU(e,t,r,i,a,o,s):PU(e,t,n,r,i,a,o)},IU=$(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),LU=$(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(lP));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:LP}});function RU(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 zU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RU(Object(n),!0).forEach(function(t){BU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BU(e,t,n){return(t=VU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VU(e){var t=HU(e,`string`);return typeof t==`symbol`?t:t+``}function HU(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var UU={zIndexMap:Object.values(lP).reduce((e,t)=>zU(zU({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},WU=new Set(Object.values(lP));function GU(e){return WU.has(e)}var KU=ZE({name:`zIndex`,initialState:UU,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:LE()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!GU(n)&&delete e.zIndexMap[n])},prepare:LE()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=mA(r):e.zIndexMap[n].element=mA(r):e.zIndexMap[n]={consumers:0,element:i?void 0:mA(r),panoramaElement:i?mA(r):void 0}},prepare:LE()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:LE()}}}),{registerZIndexPortal:qU,unregisterZIndexPortal:JU,registerZIndexPortalElement:YU,unregisterZIndexPortalElement:XU}=KU.actions,ZU=KU.reducer;function QU(e){var{zIndex:t,children:n}=e,r=wk()&&t!==void 0&&t!==0,i=LO(),a=(0,z.useRef)(void 0),o=(0,z.useRef)(new Set),s=Ww(),c=Q(e=>IU(e,t,i));if((0,z.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(JU({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(qU({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(JU({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,z.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(JU({zIndex:e}))}),e.clear()}},[s]),!r)return n;var l=c??a.current;return l?(0,qc.createPortal)(n,l):null}function $U(){return $U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$U.apply(null,arguments)}function eW(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 tW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eW(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nW(e,t,n){return(t=rW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rW(e){var t=iW(e,`string`);return typeof t==`symbol`?t:t+``}function iW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aW(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return(0,z.isValidElement)(t)?(0,z.cloneElement)(t,r):(0,z.createElement)(n,r)}function oW(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:c,chartName:l}=e,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=Rj,h=lP.cursorLine;else if(l===`BarChart`)p=zj(o,u,i,a),m=YM,h=lP.cursorRectangle;else if(o===`radial`&&bw(u)){var{cx:g,cy:_,radius:v,startAngle:y,endAngle:b}=uN(u);p={cx:g,cy:_,startAngle:y,endAngle:b,innerRadius:v,outerRadius:v},m=TN,h=lP.cursorLine}else p={points:EN(o,u,i)},m=Dj,h=lP.cursorLine;var x=typeof s==`object`&&`className`in s?s.className:void 0,S=tW(tW(tW(tW({stroke:`#ccc`,pointerEvents:`none`},i),p),Yx(s)),{},{payload:d,payloadIndex:f,className:Eu(`recharts-tooltip-cursor`,x)});return z.createElement(QU,{zIndex:e.zIndex??h},z.createElement(aW,{cursor:s,cursorComp:m,cursorProps:S}))}function sW(e){var t=lU(),n=gk(),r=xk(),i=yU();return t==null||n==null||r==null||i==null?null:z.createElement(oW,$U({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var cW=(0,z.createContext)(null),lW=()=>(0,z.useContext)(cW),uW=u(s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default,dW=new uW,fW=`recharts.syncEvent.tooltip`,pW=`recharts.syncEvent.brush`,mW=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!KC(n))return e[n]}},hW=ZE({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),gW=hW.reducer,{createEventEmitter:_W}=hW.actions;function vW(e){return e.tooltip.syncInteraction}var yW=ZE({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=mA(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:bW,setDataStartEndIndexes:xW,setComputedData:Die}=yW.actions,SW=yW.reducer,CW=[`x`,`y`];function wW(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 TW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wW(Object(n),!0).forEach(function(t){EW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EW(e,t,n){return(t=DW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DW(e){var t=OW(e,`string`);return typeof t==`symbol`?t:t+``}function OW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kW(e,t){if(e==null)return{};var n,r,i=AW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jW(){var e=Q(aP),t=Q(sP),n=Ww(),r=Q(oP),i=Q(WH),a=xk(),o=mk();(0,z.useEffect)(()=>{if(e==null)return iw;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n(JV({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,{x:f,y:p}=d,m=kW(d,CW),{x:h,y:g,width:_,height:v}=c.payload.sourceViewBox,y=TW(TW({},m),{},{x:o.x+(_?(f-h)/_:0)*o.width,y:o.y+(v?(p-g)/v:0)*o.height});n(TW(TW({},c),{},{payload:TW(TW({},c.payload),{},{coordinate:y})}))}else n(c);return}if(i!=null){var b;typeof r==`function`?b=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(b=i.find(e=>String(e.value)===c.payload.label));var{coordinate:x}=c.payload;if(x==null||o==null){n(JV({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(b==null){n(JV({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:S,y:C}=x,w=Math.min(S,o.x+o.width),T=Math.min(C,o.y+o.height),E={x:a===`horizontal`?b.coordinate:w,y:a===`horizontal`?T:b.coordinate};n(JV({active:c.payload.active,coordinate:E,dataKey:c.payload.dataKey,index:String(b.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return dW.on(fW,s),()=>{dW.off(fW,s)}},[Q(e=>e.rootProps.className),n,t,e,r,i,a,o])}function MW(){var e=Q(aP),t=Q(sP),n=Ww();(0,z.useEffect)(()=>{if(e==null)return iw;var r=(r,i,a)=>{t!==a&&e===r&&n(xW(i))};return dW.on(pW,r),()=>{dW.off(pW,r)}},[n,t,e])}function NW(){var e=Ww();(0,z.useEffect)(()=>{e(_W())},[e]),jW(),MW()}function PW(e,t,n,r,i,a){var o=Q(n=>EU(n,e,t)),s=Q(QH),c=Q(sP),l=Q(aP),u=Q(oP),d=Q(vW)?.sourceViewBox!=null,f=mk();(0,z.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=JV({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});dW.emit(fW,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}function FW(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 IW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FW(Object(n),!0).forEach(function(t){LW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LW(e,t,n){return(t=RW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RW(e){var t=zW(e,`string`);return typeof t==`symbol`?t:t+``}function zW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function BW(e){return e.dataKey}function VW(e,t){return z.isValidElement(e)?z.cloneElement(e,t):typeof e==`function`?z.createElement(e,t):z.createElement(YA,t)}var HW=[],UW={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}};function WW(e){var t=Tw(e,UW),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:c,offset:l,payloadUniqBy:u,position:d,reverseDirection:f,useTranslate3d:p,wrapperStyle:m,cursor:h,shared:g,trigger:_,defaultIndex:v,portal:y,axisId:b}=t,x=Ww(),S=typeof v==`number`?String(v):v;(0,z.useEffect)(()=>{x(VV({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=mk(),w=fj(),T=NV(g),{activeIndex:E,isActive:D}=Q(e=>MU(e,T,_,S))??{},O=Q(e=>jU(e,T,_,S)),k=Q(e=>AU(e,T,_,S)),A=Q(e=>kU(e,T,_,S)),j=O,M=lW(),N=n??D??!1,[ee,P]=tT([j,N]),F=T===`axis`?k:void 0;PW(T,_,A,F,E,N);var I=y??M;if(I==null||C==null||T==null)return null;var te=j??HW;N||(te=HW),s&&te.length&&(te=Vw(te.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,BW));var ne=te.length>0,re=IW(IW({},t),{},{payload:te,label:F,active:N,activeIndex:E,coordinate:A,accessibilityLayer:w}),L=z.createElement(dj,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:N,coordinate:A,hasPayload:ne,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:ee,innerRef:P,hasPortalFromProps:!!y},VW(o,re));return z.createElement(z.Fragment,null,(0,qc.createPortal)(L,I),N&&z.createElement(sW,{cursor:h,tooltipEventType:T,coordinate:A,payload:te,index:E}))}var GW=e=>null;GW.displayName=`Cell`;function KW(e,t,n){return(t=qW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qW(e){var t=JW(e,`string`);return typeof t==`symbol`?t:t+``}function JW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var YW=class{constructor(e){KW(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};function XW(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 ZW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XW(Object(n),!0).forEach(function(t){QW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QW(e,t,n){return(t=$W(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=eG(e,`string`);return typeof t==`symbol`?t:t+``}function eG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tG=ZW({},{cacheSize:2e3,enableCache:!0}),nG=new YW(tG.cacheSize),rG={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},iG=`recharts_measurement_span`;function aG(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var oG=(e,t)=>{try{var n=document.getElementById(iG);n||(n=document.createElement(`span`),n.setAttribute(`id`,iG),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,rG,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},sG=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||nj.isSsr)return{width:0,height:0};if(!tG.enableCache)return oG(e,t);var n=aG(e,t),r=nG.get(n);if(r)return r;var i=oG(e,t);return nG.set(n,i),i},cG;function lG(e,t,n){return(t=uG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=dG(e,`string`);return typeof t==`symbol`?t:t+``}function dG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fG=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pG=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mG=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,hG=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,gG={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},_G=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`];function vG(e){return _G.includes(e)}var yG=`NaN`;function bG(e,t){return e*gG[t]}var xG=class e{static parse(t){var[,n,r]=hG.exec(t)??[];return n==null?e.NaN:new e(parseFloat(n),r??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,KC(e)&&(this.unit=``),t!==``&&!mG.test(t)&&(this.num=NaN,this.unit=``),vG(t)&&(this.num=bG(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return KC(this.num)}};cG=xG,lG(xG,`NaN`,new cG(NaN,``));function SG(e){if(e==null||e.includes(yG))return yG;for(var t=e;t.includes(`*`)||t.includes(`/`);){var[,n,r,i]=fG.exec(t)??[],a=xG.parse(n??``),o=xG.parse(i??``),s=r===`*`?a.multiply(o):a.divide(o);if(s.isNaN())return yG;t=t.replace(fG,s.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var[,c,l,u]=pG.exec(t)??[],d=xG.parse(c??``),f=xG.parse(u??``),p=l===`+`?d.add(f):d.subtract(f);if(p.isNaN())return yG;t=t.replace(pG,p.toString())}return t}var CG=/\(([^()]*)\)/;function wG(e){for(var t=e,n;(n=CG.exec(t))!=null;){var[,r]=n;t=t.replace(CG,SG(r))}return t}function TG(e){var t=e.replace(/\s+/g,``);return t=wG(t),t=SG(t),t}function EG(e){try{return TG(e)}catch{return yG}}function DG(e){var t=EG(e.slice(5,-1));return t===yG?``:t}var OG=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],kG=[`dx`,`dy`,`angle`,`className`,`breakAll`];function AG(){return AG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AG.apply(null,arguments)}function jG(e,t){if(e==null)return{};var n,r,i=MG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var NG=/[ \f\n\r\t\v\u2028\u2029]+/,PG=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return tw(t)||(i=n?t.toString().split(``):t.toString().split(NG)),{wordsWithComputedWidth:i.map(e=>({word:e,width:sG(e,r).width})),spaceWidth:n?0:sG(`\xA0`,r).width}}catch{return null}};function FG(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function IG(e){return tw(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var LG=(e,t,n,r)=>e.reduce((e,i)=>{var{word:a,width:o}=i,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),RG=e=>e.reduce((e,t)=>e.width>t.width?e:t),zG=`…`,BG=(e,t,n,r,i,a,o,s)=>{var c=PG({breakAll:n,style:r,children:e.slice(0,t)+zG});if(!c)return[!1,[]];var l=LG(c.wordsWithComputedWidth,a,o,s);return[l.length>i||RG(l).width>Number(a),l]},VG=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:c}=e,l=Z(a),u=String(o),d=LG(t,r,n,i);if(!l||i||!(d.length>a||RG(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),[_,v]=BG(u,g-1,c,s,a,r,n,i),[y]=BG(u,g,c,s,a,r,n,i);if(!_&&!y&&(f=g+1),_&&y&&(p=g-1),!_&&y){h=v;break}m++}return h||d},HG=e=>[{words:tw(e)?[]:e.toString().split(NG),width:void 0}],UG=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!nj.isSsr){var s,c,l=PG({breakAll:a,children:r,style:i});if(l){var{wordsWithComputedWidth:u,spaceWidth:d}=l;s=u,c=d}else return HG(r);return VG({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return HG(r)},WG=`#808080`,GG={angle:0,breakAll:!1,capHeight:`0.71em`,fill:WG,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},KG=(0,z.forwardRef)((e,t)=>{var n=Tw(e,GG),{x:r,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:c,textAnchor:l,verticalAnchor:u}=n,d=jG(n,OG),f=(0,z.useMemo)(()=>UG({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),{dx:p,dy:m,angle:h,className:g,breakAll:_}=d,v=jG(d,kG);if(!JC(r)||!JC(i)||f.length===0)return null;var y=Number(r)+(Z(p)?p:0),b=Number(i)+(Z(m)?m:0);if(!BD(y)||!BD(b))return null;var x;switch(u){case`start`:x=DG(`calc(${o})`);break;case`middle`:x=DG(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=DG(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var w=C.width,{width:T}=d;S.push(`scale(${Z(T)&&Z(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),z.createElement(`text`,AG({},Xx(v),{ref:t,x:y,y:b,className:Eu(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?WG:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return z.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))});KG.displayName=`Text`;function qG(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 JG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qG(Object(n),!0).forEach(function(t){YG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YG(e,t,n){return(t=XG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XG(e){var t=ZG(e,`string`);return typeof t==`symbol`?t:t+``}function ZG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var QG=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:c,upperWidth:l,lowerWidth:u}=pk(t),d=o,f=o+(l-u)/2,p=(d+f)/2,m=(l+u)/2,h=d+l/2,g=c>=0?1:-1,_=g*r,v=g>0?`end`:`start`,y=g>0?`start`:`end`,b=l>=0?1:-1,x=b*r,S=b>0?`end`:`start`,C=b>0?`start`:`end`,w=i;if(n===`top`){var T={x:d+l/2,y:s-_,horizontalAnchor:`middle`,verticalAnchor:v};return a&&w&&(T.height=Math.max(s-w.y,0),T.width=l),T}if(n===`bottom`){var E={x:f+u/2,y:s+c+_,horizontalAnchor:`middle`,verticalAnchor:y};return a&&w&&(E.height=Math.max(w.y+w.height-(s+c),0),E.width=u),E}if(n===`left`){var D={x:p-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`};return a&&w&&(D.width=Math.max(D.x-w.x,0),D.height=c),D}if(n===`right`){var O={x:p+m+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`};return a&&w&&(O.width=Math.max(w.x+w.width-O.x,0),O.height=c),O}var k=a&&w?{width:m,height:c}:{};return n===`insideLeft`?JG({x:p+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`},k):n===`insideRight`?JG({x:p+m-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`},k):n===`insideTop`?JG({x:d+l/2,y:s+_,horizontalAnchor:`middle`,verticalAnchor:y},k):n===`insideBottom`?JG({x:f+u/2,y:s+c-_,horizontalAnchor:`middle`,verticalAnchor:v},k):n===`insideTopLeft`?JG({x:d+x,y:s+_,horizontalAnchor:C,verticalAnchor:y},k):n===`insideTopRight`?JG({x:d+l-x,y:s+_,horizontalAnchor:S,verticalAnchor:y},k):n===`insideBottomLeft`?JG({x:f+x,y:s+c-_,horizontalAnchor:C,verticalAnchor:v},k):n===`insideBottomRight`?JG({x:f+u-x,y:s+c-_,horizontalAnchor:S,verticalAnchor:v},k):n&&typeof n==`object`&&(Z(n.x)||qC(n.x))&&(Z(n.y)||qC(n.y))?JG({x:o+ZC(n.x,m),y:s+ZC(n.y,c),horizontalAnchor:`end`,verticalAnchor:`end`},k):JG({x:h,y:s+c/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},k)},$G=[`labelRef`],eK=[`content`];function tK(e,t){if(e==null)return{};var n,r,i=nK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function rK(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 iK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rK(Object(n),!0).forEach(function(t){aK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aK(e,t,n){return(t=oK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oK(e){var t=sK(e,`string`);return typeof t==`symbol`?t:t+``}function sK(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cK(){return cK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cK.apply(null,arguments)}var lK=(0,z.createContext)(null),uK=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o,children:s}=e,c=(0,z.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return z.createElement(lK.Provider,{value:c},s)},dK=()=>{var e=(0,z.useContext)(lK),t=mk();return e||(t?pk(t):void 0)},fK=(0,z.createContext)(null),pK=()=>{var e=(0,z.useContext)(fK),t=Q(kP);return e||t},mK=e=>{var{value:t,formatter:n}=e,r=tw(e.children)?t:e.children;return typeof n==`function`?n(r):r},hK=e=>e!=null&&typeof e==`function`,gK=(e,t)=>GC(t-e)*Math.min(Math.abs(t-e),360),_K=(e,t,n,r,i)=>{var{offset:a,className:o}=e,{cx:s,cy:c,innerRadius:l,outerRadius:u,startAngle:d,endAngle:f,clockWise:p}=i,m=(l+u)/2,h=gK(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=rN(s,c,m,_),b=rN(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
|
|
61
61
|
A${m},${m},0,1,${+!v},
|
|
62
|
-
${b.x},${b.y}`,S=tw(e.id)?XC(`recharts-radial-line-`):e.id;return z.createElement(`text`,cK({},r,{dominantBaseline:`central`,className:Eu(`recharts-radial-bar-label`,o)}),z.createElement(`defs`,null,z.createElement(`path`,{id:S,d:x})),z.createElement(`textPath`,{xlinkHref:`#${S}`},n))},vK=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c}=e,l=(s+c)/2;if(n===`outside`){var{x:u,y:d}=rN(r,i,o+t,l);return{x:u,y:d,textAnchor:u>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var{x:f,y:p}=rN(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},yK=e=>e!=null&&`cx`in e&&Z(e.cx),bK={angle:0,offset:5,zIndex:lP.label,position:`middle`,textBreakAll:!1};function xK(e){if(!yK(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function SK(e){var t=Tw(e,bK),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=pK(),f=dK(),p=n==null?i===`center`?f:d??f:yK(n)?n:pk(n),m,h,g=xK(p);if(!p||tw(a)&&tw(o)&&!(0,z.isValidElement)(s)&&typeof s!=`function`)return null;var _=iK(iK({},t),{},{viewBox:p});if((0,z.isValidElement)(s)){var{labelRef:v}=_;return(0,z.cloneElement)(s,tK(_,$G))}if(typeof s==`function`){var{content:y}=_;if(m=(0,z.createElement)(s,tK(_,eK)),(0,z.isValidElement)(m))return m}else m=mK(t);var b=Xx(t);if(yK(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return _K(t,i,m,b,p);h=vK(p,t.offset,t.position)}else{if(!g)return null;var x=QG({viewBox:g,position:i,offset:t.offset,parentViewBox:yK(r)?void 0:r,clamp:!0});h=iK(iK({x:x.x,y:x.y,textAnchor:x.horizontalAnchor,verticalAnchor:x.verticalAnchor},x.width===void 0?{}:{width:x.width}),x.height===void 0?{}:{height:x.height})}return z.createElement(QU,{zIndex:t.zIndex},z.createElement(KG,cK({ref:u,className:Eu(`recharts-label`,c)},b,h,{textAnchor:FG(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}SK.displayName=`Label`;var CK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?z.createElement(SK,cK({key:`label-implicit`},r)):JC(e)?z.createElement(SK,cK({key:`label-implicit`,value:e},r)):(0,z.isValidElement)(e)?e.type===SK?(0,z.cloneElement)(e,iK({key:`label-implicit`},r)):z.createElement(SK,cK({key:`label-implicit`,content:e},r)):hK(e)?z.createElement(SK,cK({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?z.createElement(SK,cK({},e,{key:`label-implicit`},r)):null};function wK(e){var{label:t,labelRef:n}=e;return CK(t,dK(),n)||null}var TK=[`valueAccessor`],EK=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function DK(){return DK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DK.apply(null,arguments)}function OK(e,t){if(e==null)return{};var n,r,i=kK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var AK=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(IG(t))return t},jK=(0,z.createContext)(void 0),MK=jK.Provider,NK=(0,z.createContext)(void 0),PK=NK.Provider;function FK(){return(0,z.useContext)(jK)}function IK(){return(0,z.useContext)(NK)}function LK(e){var{valueAccessor:t=AK}=e,n=OK(e,TK),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=OK(n,EK),l=FK(),u=IK(),d=l||u;return!d||!d.length?null:z.createElement(QU,{zIndex:s??lP.label},z.createElement(sS,{className:`recharts-label-list`},d.map((e,i)=>{var s=tw(r)?t(e,i):qD(e.payload,r),l=tw(a)?{}:{id:`${a}-${i}`};return z.createElement(SK,DK({key:`label-${i}`},Xx(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}LK.displayName=`LabelList`;function RK(e){var{label:t}=e;return t?t===!0?z.createElement(LK,{key:`labelList-implicit`}):z.isValidElement(t)||hK(t)?z.createElement(LK,{key:`labelList-implicit`,content:t}):typeof t==`object`?z.createElement(LK,DK({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}function zK(){return zK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zK.apply(null,arguments)}var BK=e=>{var{cx:t,cy:n,r,className:i}=e,a=Eu(`recharts-dot`,i);return Z(t)&&Z(n)&&Z(r)?z.createElement(`circle`,zK({},Jx(e),xw(e),{className:a,cx:t,cy:n,r})):null},VK=e=>e.graphicalItems.polarItems,HK=$([VK,jz,$([AP,jP],Fz)],Rz),UK=$([$([HK],Uz),MN],Kz),WK=$([UK,jz,HK],Jz);$([UK,jz,HK],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>({value:qD(e,t.dataKey??n.dataKey),errorDomain:[]}))).filter(Boolean):t?.dataKey==null?e.map(e=>({value:e,errorDomain:[]})):e.map(e=>({value:qD(e,t.dataKey),errorDomain:[]})));var GK=()=>void 0,KK=$([jz,bk,UK,WK,nP,AP,$([jz,fB,pB,GK,$([UK,jz,HK,hB,AP,IN],vB),GK,bk,AP],LB)],BB);$([HB,$([jz,KK,$([KK,Nz,HB],UB),AP],GB)],VP);var qK=ZE({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=mA(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=mA(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Oie,removeRadiusAxis:kie,addAngleAxis:Aie,removeAngleAxis:jie}=qK.actions,JK=qK.reducer;function YK(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}function XK(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 ZK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XK(Object(n),!0).forEach(function(t){QK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QK(e,t,n){return(t=$K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $K(e){var t=eq(e,`string`);return typeof t==`symbol`?t:t+``}function eq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tq=$([VK,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`pie`).find(e=>e.id===t)),nq=[],rq=(e,t,n)=>n?.length===0?nq:n,iq=$([MN,tq,rq],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i=t?.data!=null&&t.data.length>0?t.data:r;if((!i||!i.length)&&n!=null&&(i=n.map(e=>ZK(ZK({},t.presentationProps),e.props))),i!=null)return i}}),aq=$([iq,tq,rq],(e,t,n)=>{if(!(e==null||t==null))return e.map((e,r)=>{var i,a=qD(e,t.nameKey,t.name),o=n!=null&&(i=n[r])!=null&&(i=i.props)!=null&&i.fill?n[r].props.fill:typeof e==`object`&&e&&`fill`in e?e.fill:t.fill;return{value:fO(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),oq=$([iq,tq,rq,NO],(e,t,n,r)=>{if(!(t==null||e==null))return IJ({offset:r,pieSettings:t,displayedData:e,cells:n})}),sq=s((e=>{var t=Symbol.for(`react.transitional.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.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`);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 l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),cq=s(((e,t)=>{t.exports=sq()}))(),lq=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,uq=null,dq=null,fq=e=>{if(e===uq&&Array.isArray(dq))return dq;var t=[];return z.Children.forEach(e,e=>{tw(e)||((0,cq.isFragment)(e)?t=t.concat(fq(e.props.children)):t.push(e))}),dq=t,uq=e,t};function pq(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>lq(e)):[lq(t)],fq(e).forEach(e=>{var t=(0,WC.default)(e,`type.displayName`)||(0,WC.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var mq=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0,hq=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),gq=s(((e,t)=>{t.exports=hq().isPlainObject})),_q,vq,yq,bq,xq;function Sq(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 Cq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sq(Object(n),!0).forEach(function(t){wq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wq(e,t,n){return(t=Tq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tq(e){var t=Eq(e,`string`);return typeof t==`symbol`?t:t+``}function Eq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Dq(){return Dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dq.apply(null,arguments)}function Oq(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var kq=(e,t,n,r,i)=>{var a=n-r,o=UC(_q||=Oq([`M `,`,`,``]),e,t);return o+=UC(vq||=Oq([`L `,`,`,``]),e+n,t),o+=UC(yq||=Oq([`L `,`,`,``]),e+n-a/2,t+i),o+=UC(bq||=Oq([`L `,`,`,``]),e+n-a/2-r,t+i),o+=UC(xq||=Oq([`L `,`,`,` Z`]),e,t),o},Aq={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},jq=e=>{var t=Tw(e,Aq),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,z.useRef)(null),[p,m]=(0,z.useState)(-1),h=(0,z.useRef)(i),g=(0,z.useRef)(a),_=(0,z.useRef)(o),v=(0,z.useRef)(n),y=(0,z.useRef)(r),b=TM(e,`trapezoid-`);if((0,z.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=Eu(`recharts-trapezoid`,s);if(!d)return z.createElement(`g`,null,z.createElement(`path`,Dq({},Xx(t),{className:x,d:kq(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=Kj([`strokeDasharray`],l,c);return z.createElement(wM,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=$C(S,i,e),c=$C(C,a,e),l=$C(w,o,e),u=$C(T,n,e),d=$C(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return z.createElement(`path`,Dq({},Xx(t),{className:x,d:kq(u,d,s,c,l),ref:f,style:Cq(Cq({},p),t.style)}))})},Mq=u(gq()),Nq=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function Pq(e,t){if(e==null)return{};var n,r,i=Fq(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fq(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Iq(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 Lq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Iq(Object(n),!0).forEach(function(t){Rq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rq(e,t,n){return(t=zq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zq(e){var t=Bq(e,`string`);return typeof t==`symbol`?t:t+``}function Bq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vq(e,t){return Lq(Lq({},t),e)}function Hq(e,t){return e===`symbols`}function Uq(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return z.createElement(YM,n);case`trapezoid`:return z.createElement(jq,n);case`sector`:return z.createElement(TN,n);case`symbols`:if(Hq(t,n))return z.createElement(yw,n);break;case`curve`:return z.createElement(Dj,n);default:return null}}function Wq(e){return(0,z.isValidElement)(e)?e.props:e}function Gq(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=Pq(e,Nq),o;if((0,z.isValidElement)(t))o=(0,z.cloneElement)(t,Lq(Lq({},a),Wq(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,Mq.default)(t)&&typeof t!=`boolean`){var s=Vq(t,a);o=z.createElement(Uq,{shapeType:n,elementProps:s})}else{var c=a;o=z.createElement(Uq,{shapeType:n,elementProps:c})}return a.isActive?z.createElement(sS,{className:r},o):z.createElement(sS,{className:i},o)}var Kq=(e,t,n)=>{var r=Ww();return(i,a)=>o=>{e?.(i,a,o),r(HV({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},qq=e=>{var t=Ww();return(n,r)=>i=>{e?.(n,r,i),t(UV())}},Jq=(e,t,n)=>{var r=Ww();return(i,a)=>o=>{e?.(i,a,o),r(GV({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function Yq(e){var{tooltipEntrySettings:t}=e,n=Ww(),r=LO(),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r||(i.current===null?n(RV(t)):i.current!==t&&n(zV({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(BV(i.current)),null)},[n]),null}function Xq(e){var{legendPayload:t}=e,n=Ww(),r=LO(),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r||(i.current===null?n(_A(t)):i.current!==t&&n(vA({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(yA(i.current)),null)},[n]),null}function Zq(e){var{legendPayload:t}=e,n=Ww(),r=Q(bk),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r!==`centric`&&r!==`radial`||(i.current===null?n(_A(t)):i.current!==t&&n(vA({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(yA(i.current)),null)},[n]),null}var Qq=z.useId??(()=>{var[e]=z.useState(()=>XC(`uid-`));return e});function $q(e,t){var n=Qq();return t||(e?`${e}-${n}`:n)}var eJ=(0,z.createContext)(void 0),tJ=e=>{var{id:t,type:n,children:r}=e,i=$q(`recharts-${n}`,t);return z.createElement(eJ.Provider,{value:i},r(i))},nJ=ZE({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(mA(t.payload))},prepare:LE()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=CE(e).cartesianItems.indexOf(mA(n));i>-1&&(e.cartesianItems[i]=mA(r))},prepare:LE()},removeCartesianGraphicalItem:{reducer(e,t){var n=CE(e).cartesianItems.indexOf(mA(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:LE()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(mA(t.payload))},prepare:LE()},removePolarGraphicalItem:{reducer(e,t){var n=CE(e).polarItems.indexOf(mA(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:LE()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=CE(e).polarItems.indexOf(mA(n));i>-1&&(e.polarItems[i]=mA(r))},prepare:LE()}}}),{addCartesianGraphicalItem:rJ,replaceCartesianGraphicalItem:iJ,removeCartesianGraphicalItem:aJ,addPolarGraphicalItem:oJ,removePolarGraphicalItem:sJ,replacePolarGraphicalItem:cJ}=nJ.actions,lJ=nJ.reducer,uJ=(0,z.memo)(e=>{var t=Ww(),n=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{n.current===null?t(rJ(e)):n.current!==e&&t(iJ({prev:n.current,next:e})),n.current=e},[t,e]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(aJ(n.current)),null)},[t]),null}),dJ=(0,z.memo)(e=>{var t=Ww(),n=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{n.current===null?t(oJ(e)):n.current!==e&&t(cJ({prev:n.current,next:e})),n.current=e},[t,e]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(sJ(n.current)),null)},[t]),null}),fJ=[`key`],pJ=[`onMouseEnter`,`onClick`,`onMouseLeave`],mJ=[`id`],hJ=[`id`];function gJ(){return gJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gJ.apply(null,arguments)}function _J(e,t){if(e==null)return{};var n,r,i=vJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yJ(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 bJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yJ(Object(n),!0).forEach(function(t){xJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xJ(e,t,n){return(t=SJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SJ(e){var t=CJ(e,`string`);return typeof t==`symbol`?t:t+``}function CJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wJ(e){var t=(0,z.useMemo)(()=>pq(e.children,GW),[e.children]),n=Q(n=>aq(n,e.id,t));return n==null?null:z.createElement(Zq,{legendPayload:n})}function TJ(e){if(!(e==null||typeof e==`boolean`||typeof e==`function`)){if(z.isValidElement(e)){var t=e.props?.fill;return typeof t==`string`?t:void 0}var{fill:n}=e;return typeof n==`string`?n:void 0}}var EJ=z.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:c,tooltipType:l,id:u,activeShape:d}=e,f=TJ(d),p={dataDefinedOnItem:r.map(e=>{var t=e.tooltipPayload;return f==null||t==null?t:t.map(e=>bJ(bJ({},e),{},{color:f,fill:f}))}),getPosition:e=>r[Number(e)]?.tooltipPosition,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:fO(s,t),hide:c,type:l,color:o,unit:``,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:p})}),DJ=(e,t)=>e>t?`start`:e<t?`end`:`middle`,OJ=(e,t,n)=>ZC(typeof t==`function`?t(e):t,n,n*.8),kJ=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=iN(a,o);return{cx:i+ZC(e.cx,a,a/2),cy:r+ZC(e.cy,o,o/2),innerRadius:ZC(e.innerRadius,s,0),outerRadius:OJ(n,e.outerRadius,s),maxRadius:e.maxRadius||Math.sqrt(a*a+o*o)/2}},AJ=(e,t)=>GC(t-e)*Math.min(Math.abs(t-e),360),jJ=(e,t)=>{if(z.isValidElement(e))return z.cloneElement(e,t);if(typeof e==`function`)return e(t);var n=Eu(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className),{key:r}=t,i=_J(t,fJ);return z.createElement(Dj,gJ({},i,{type:`linear`,className:n}))},MJ=(e,t,n)=>{if(z.isValidElement(e))return z.cloneElement(e,t);var r=n;if(typeof e==`function`&&(r=e(t),z.isValidElement(r)))return r;var i=Eu(`recharts-pie-label-text`,YK(e));return z.createElement(KG,gJ({},t,{alignmentBaseline:`middle`,className:i}),r)};function NJ(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=Jx(n),c=Yx(i),l=Yx(a),u=typeof i==`object`&&`offsetRadius`in i&&typeof i.offsetRadius==`number`&&i.offsetRadius||20,d=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=rN(e.cx,e.cy,e.outerRadius+u,n),d=bJ(bJ(bJ(bJ({},s),e),{},{stroke:`none`},c),{},{index:t,textAnchor:DJ(r.x,e.cx)},r),f=bJ(bJ(bJ(bJ({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:t,points:[rN(e.cx,e.cy,e.outerRadius,n),r],key:`line`});return z.createElement(QU,{zIndex:lP.label,key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`},z.createElement(sS,null,a&&jJ(a,f),MJ(i,d,qD(e,o))))});return z.createElement(sS,{className:`recharts-pie-labels`},d)}function PJ(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i==`object`&&i&&`position`in i?z.createElement(RK,{label:i}):z.createElement(NJ,{sectors:t,props:n,showLabels:r})}function FJ(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:a,id:o}=e,s=Q(YH),c=Q(ZH),l=Q(QH),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,p=_J(i,pJ),m=Kq(u,i.dataKey,o),h=qq(f),g=Jq(d,i.dataKey,o);return t==null||t.length===0?null:z.createElement(z.Fragment,null,t.map((e,u)=>{if(e?.startAngle===0&&e?.endAngle===0&&t.length!==1)return null;var d=l==null||l===o,f=String(u)===s&&(c==null||i.dataKey===c)&&d,_=n&&f?n:s?r:null,v=bJ(bJ({},e),{},{stroke:e.stroke,tabIndex:-1,[xO]:u,[SO]:o});return z.createElement(sS,gJ({key:`sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${u}`,tabIndex:-1,className:`recharts-pie-sector`},Cw(p,e,u),{onMouseEnter:m(e,u),onMouseLeave:h(e,u),onClick:g(e,u)}),z.createElement(Gq,gJ({option:a??_,index:u,shapeType:`sector`,isActive:f},v)))}))}function IJ(e){var{pieSettings:t,displayedData:n,cells:r,offset:i}=e,{cornerRadius:a,startAngle:o,endAngle:s,dataKey:c,nameKey:l,tooltipType:u}=t,d=Math.abs(t.minAngle),f=AJ(o,s),p=Math.abs(f),m=n.length<=1?0:t.paddingAngle??0,h=n.filter(e=>qD(e,c,0)!==0).length,g=(p>=360?h:h-1)*m,_=n.reduce((e,t)=>{var n=qD(t,c,0);return e+(Z(n)?n:0)},0),v=d>0&&_>0&&n.some(e=>{var t=qD(e,c,0),n=(Z(t)?t:0)/_;return t!==0&&n*p<d})?d:0,y=p-h*v-g,b;if(_>0){var x;b=n.map((e,n)=>{var s=qD(e,c,0),d=qD(e,l,n),p=kJ(t,i,e),h=(Z(s)?s:0)/_,g,b=bJ(bJ({},e),r&&r[n]&&r[n].props),S=b!=null&&`fill`in b&&typeof b.fill==`string`?b.fill:t.fill;g=n?x.endAngle+GC(f)*m*(s===0?0:1):o;var C=g+GC(f)*((s===0?0:v)+h*y),w=(g+C)/2,T=(p.innerRadius+p.outerRadius)/2,E=[{name:d,value:s,payload:b,dataKey:c,type:u,color:S,fill:S,graphicalItemId:t.id}],D=rN(p.cx,p.cy,T,w);return x=bJ(bJ(bJ(bJ({},t.presentationProps),{},{percent:h,cornerRadius:typeof a==`string`?parseFloat(a):a,name:d,tooltipPayload:E,midAngle:w,middleRadius:T,tooltipPosition:D},b),p),{},{value:s,dataKey:c,startAngle:g,endAngle:C,payload:b,paddingAngle:s===0?0:GC(f)*m}),x})}return b}function LJ(e){var{showLabels:t,sectors:n,children:r}=e,i=(0,z.useMemo)(()=>!t||!n?[]:n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})),[n,t]);return z.createElement(PK,{value:t?i:void 0},r)}function RJ(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,activeShape:l,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,p=TM(t,`recharts-pie-`),m=n.current,[h,g]=(0,z.useState)(!1),_=(0,z.useCallback)(()=>{typeof f==`function`&&f(),g(!1)},[f]),v=(0,z.useCallback)(()=>{typeof d==`function`&&d(),g(!0)},[d]);return z.createElement(LJ,{showLabels:!h,sectors:i},z.createElement(wM,{animationId:p,begin:o,duration:s,isActive:a,easing:c,onAnimationStart:v,onAnimationEnd:_,key:p},e=>{var a=[],o=(i&&i[0])?.startAngle??0;return i?.forEach((t,n)=>{var r=m&&m[n],i=n>0?(0,WC.default)(t,`paddingAngle`,0):0;if(r){var s=$C(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),c=bJ(bJ({},t),{},{startAngle:o+i,endAngle:o+s+i});a.push(c),o=c.endAngle}else{var{endAngle:l,startAngle:u}=t,d=$C(0,l-u,e),f=bJ(bJ({},t),{},{startAngle:o+i,endAngle:o+d+i});a.push(f),o=f.endAngle}}),n.current=a,z.createElement(sS,null,z.createElement(FJ,{sectors:a,activeShape:l,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),z.createElement(PJ,{showLabels:!h,sectors:i,props:t}),t.children)}var zJ={animationBegin:400,animationDuration:1500,animationEasing:`ease`,cx:`50%`,cy:`50%`,dataKey:`value`,endAngle:360,fill:`#808080`,hide:!1,innerRadius:0,isAnimationActive:`auto`,label:!1,labelLine:!0,legendType:`rect`,minAngle:0,nameKey:`name`,outerRadius:`80%`,paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:`#fff`,zIndex:lP.area};function BJ(e){var{id:t}=e,n=_J(e,mJ),{hide:r,className:i,rootTabIndex:a}=e,o=(0,z.useMemo)(()=>pq(e.children,GW),[e.children]),s=Q(e=>oq(e,t,o)),c=(0,z.useRef)(null),l=Eu(`recharts-pie`,i);return r||s==null?(c.current=null,z.createElement(sS,{tabIndex:a,className:l})):z.createElement(QU,{zIndex:e.zIndex},z.createElement(EJ,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),z.createElement(sS,{tabIndex:a,className:l},z.createElement(RJ,{props:bJ(bJ({},n),{},{sectors:s}),previousSectorsRef:c,id:t})))}function VJ(e){var t=Tw(e,zJ),{id:n}=t,r=_J(t,hJ),i=Jx(r);return z.createElement(tJ,{id:n,type:`pie`},e=>z.createElement(z.Fragment,null,z.createElement(dJ,{type:`pie`,id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),z.createElement(wJ,gJ({},r,{id:e})),z.createElement(BJ,gJ({},r,{id:e}))))}var HJ=VJ;HJ.displayName=`Pie`;var UJ=[`points`];function WJ(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 GJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WJ(Object(n),!0).forEach(function(t){KJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KJ(e,t,n){return(t=qJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qJ(e){var t=JJ(e,`string`);return typeof t==`symbol`?t:t+``}function JJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YJ(){return YJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YJ.apply(null,arguments)}function XJ(e,t){if(e==null)return{};var n,r,i=ZJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QJ(e){var{option:t,dotProps:n,className:r}=e;if((0,z.isValidElement)(t))return(0,z.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=Eu(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=XJ(a,UJ);return z.createElement(BK,YJ({},s,{className:i}))}function $J(e,t){return e==null?!1:t?!0:e.length===1}function eY(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:o,needClip:s,clipPathId:c,zIndex:l=lP.scatter}=e;if(!$J(t,n))return null;var u=mq(n),d=Zx(n),f=t.map((e,r)=>{var s=GJ(GJ(GJ({r:3},o),d),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return z.createElement(QJ,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),p={};return s&&c!=null&&(p.clipPath=`url(#clipPath-${u?``:`dots-`}${c})`),z.createElement(QU,{zIndex:l},z.createElement(sS,YJ({className:r},p),f))}function tY(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 nY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tY(Object(n),!0).forEach(function(t){rY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rY(e,t,n){return(t=iY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iY(e){var t=aY(e,`string`);return typeof t==`symbol`?t:t+``}function aY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var oY=ZE({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=mA(r))},prepare:LE()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:LE()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=mA(r))},prepare:LE()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:LE()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=mA(r))},prepare:LE()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:LE()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&r===a[1]&&r!==i.width&&Math.abs(r-(a[0]??0))<=1)return;var o=[...a,r].slice(-3);e.yAxis[n]=nY(nY({},i),{},{width:r,widthHistory:o})}}}}),{addXAxis:sY,replaceXAxis:cY,removeXAxis:lY,addYAxis:uY,replaceYAxis:dY,removeYAxis:fY,addZAxis:Mie,replaceZAxis:Nie,removeZAxis:Pie,updateYAxisWidth:pY}=oY.actions,mY=oY.reducer,hY=$([$([NO],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),hO,gO],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),gY=()=>Q(hY),_Y=()=>Q(nU);function vY(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 yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vY(Object(n),!0).forEach(function(t){bY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bY(e,t,n){return(t=xY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xY(e){var t=SY(e,`string`);return typeof t==`symbol`?t:t+``}function SY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var CY=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=yY(yY(yY({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),Yx(i)),xw(i)),c=(0,z.isValidElement)(i)?(0,z.cloneElement)(i,s):typeof i==`function`?i(s):z.createElement(BK,s);return z.createElement(sS,{className:`recharts-active-dot`,clipPath:o},c)};function wY(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:o=lP.activeDot}=e,s=Q(YH),c=_Y();if(t==null||c==null)return null;var l=t.find(e=>c.includes(e.payload));return tw(l)?null:z.createElement(QU,{zIndex:o},z.createElement(CY,{point:l,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var TY=(e,t,n)=>{var r=n??e;if(!tw(r))return ZC(r,t,0)},EY=(e,t,n)=>{var r={},i=e.filter(PP),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map(e=>e.dataKey),barSize:TY(t,n,i[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:TY(t,n,e.barSize)}));return[...s,...c]};function DY(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 OY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DY(Object(n),!0).forEach(function(t){kY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kY(e,t,n){return(t=AY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AY(e){var t=jY(e,`string`);return typeof t==`symbol`?t:t+``}function jY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MY(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=ZC(e,n,0,!0),s,c=[];if(BD(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:((n-d)/2>>0)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=ZC(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m>>=0);var h=BD(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var NY=(e,t,n,r,i,a,o)=>{var s=tw(o)?t:o,c=MY(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>OY(OY({},e),{},{position:OY(OY({},e.position),{},{offset:e.position.offset-i/2})}))),c},PY=(e,t)=>{var n=MP(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===n)}}}},FY=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function IY(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&BD(e.zIndex)?e.zIndex:t}var LY=e=>{var{chartData:t}=e,n=Ww(),r=LO();return(0,z.useEffect)(()=>r?()=>{}:(n(bW(t)),()=>{n(bW(void 0))}),[t,n,r]),null},RY={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},zY=ZE({name:`brush`,initialState:RY,reducers:{setBrushSettings(e,t){return t.payload==null?RY:t.payload}}}),{setBrushSettings:Fie}=zY.actions,BY=zY.reducer;function VY(e){return(e%180+180)%180}var HY=function(e){var{width:t,height:n}=e,r=VY(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},UY=ZE({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=CE(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=CE(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(mA(t.payload))},removeLine:(e,t)=>{var n=CE(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Iie,removeDot:Lie,addArea:Rie,removeArea:zie,addLine:Bie,removeLine:Vie}=UY.actions,WY=UY.reducer,GY=(0,z.createContext)(void 0),KY=e=>{var{children:t}=e,[n]=(0,z.useState)(`${XC(`recharts`)}-clip`),r=gY();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return z.createElement(GY.Provider,{value:n},z.createElement(`defs`,null,z.createElement(`clipPath`,{id:n},z.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)};function qY(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function JY(e,t,n){return HY({width:e.width+t.width,height:e.height+t.height},n)}function YY(e,t,n){var r=n===`width`,{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function XY(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function ZY(e,t){return qY(e,t+1)}function QY(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:qY(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||XY(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function $Y(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var{start:o,end:s}=t,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||XY(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}function eX(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 tX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eX(Object(n),!0).forEach(function(t){nX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nX(e,t,n){return(t=rX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rX(e){var t=iX(e,`string`);return typeof t==`symbol`?t:t+``}function iX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aX(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:c}=t,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=tX(tX({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=tX(tX({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&XY(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=tX(tX({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function oX(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:c,end:l}=t;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=tX(tX({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&XY(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=tX(tX({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=tX(tX({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=tX(tX({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&XY(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=tX(tX({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function sX(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:c,tickFormatter:l,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(Z(c)||nj.isSsr)return ZY(i,Z(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?sG(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?JY(sG(i,{fontSize:t,letterSpacing:n}),m,d):sG(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?GC(_.coordinate-g.coordinate):1,y=YY(a,v,p);return c===`equidistantPreserveStart`?QY(v,y,h,i,o):c===`equidistantPreserveEnd`?$Y(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?oX(v,y,h,i,o,c===`preserveStartEnd`):aX(v,y,h,i,o),f.filter(e=>e.isShow))}var cX=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var s=n?n.getBoundingClientRect().width:0,c=i+a,l=o+c+s+(n?r:0);return Math.round(l)}return 0},lX=ZE({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=mA(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:uX,removeRenderedTicks:dX}=lX.actions,fX=lX.reducer,pX=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function mX(e,t){if(e==null)return{};var n,r,i=hX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gX(){return gX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gX.apply(null,arguments)}function _X(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 vX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_X(Object(n),!0).forEach(function(t){yX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yX(e,t,n){return(t=bX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bX(e){var t=xX(e,`string`);return typeof t==`symbol`?t:t+``}function xX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SX={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:lP.axis};function CX(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var l=vX(vX(vX({},c),Jx(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=vX(vX({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=vX(vX({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return z.createElement(`line`,gX({},l,{className:Eu(`recharts-cartesian-axis-line`,(0,WC.default)(s,`className`))}))}function wX(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=Z(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function TX(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function EX(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function DX(e){var{option:t,tickProps:n,value:r}=e,i,a=Eu(n.className,`recharts-cartesian-axis-tick-value`);if(z.isValidElement(t))i=z.cloneElement(t,vX(vX({},n),{},{className:a}));else if(typeof t==`function`)i=t(vX(vX({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=Eu(o,YK(t))),i=z.createElement(KG,gX({},n,{className:o}),r)}return i}function OX(e){var{ticks:t,axisType:n,axisId:r}=e,i=Ww();return(0,z.useEffect)(()=>r==null||n==null?iw:(i(uX({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(dX({axisId:r,axisType:n}))}),[i,t,r,n]),null}var kX=(0,z.forwardRef)((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:o,unit:s,padding:c,tickTextProps:l,orientation:u,mirror:d,x:f,y:p,width:m,height:h,tickSize:g,tickMargin:_,fontSize:v,letterSpacing:y,getTicksConfig:b,events:x,axisType:S,axisId:C}=e,w=sX(vX(vX({},b),{},{ticks:n}),v,y),T=Jx(b),E=Yx(r),D=FG(T.textAnchor)?T.textAnchor:TX(u,d),O=EX(u,d),k={};typeof i==`object`&&(k=i);var A=vX(vX({},T),{},{fill:`none`},k),j=w.map(e=>vX({entry:e},wX(e,f,p,m,h,u,g,d,_))),M=j.map(e=>{var{entry:t,line:n}=e;return z.createElement(sS,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},i&&z.createElement(`line`,gX({},A,n,{className:Eu(`recharts-cartesian-axis-tick-line`,(0,WC.default)(i,`className`))})))}),N=j.map((e,t)=>{var{entry:n,tick:i}=e,u=vX(vX({},vX(vX(vX(vX({verticalAnchor:O},T),{},{textAnchor:D,stroke:`none`,fill:a},i),{},{index:t,payload:n,visibleTicksCount:w.length,tickFormatter:o,padding:c},l),{},{angle:l?.angle??T.angle??0})),E);return z.createElement(sS,gX({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},Cw(x,n,t)),r&&z.createElement(DX,{option:r,tickProps:u,value:`${typeof o==`function`?o(n.value,t):n.value}${s||``}`}))});return z.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${S}-ticks`},z.createElement(OX,{ticks:w,axisId:C,axisType:S}),N.length>0&&z.createElement(QU,{zIndex:lP.label},z.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref:t},N)),M.length>0&&z.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines`},M))}),AX=(0,z.forwardRef)((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:o,ticks:s,axisType:c,axisId:l}=e,u=mX(e,pX),[d,f]=(0,z.useState)(``),[p,m]=(0,z.useState)(``),h=(0,z.useRef)(null);(0,z.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>cX({ticks:h.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var g=(0,z.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);h.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==d||a!==p)&&(f(i),m(a))}}},[d,p]);return o||r!=null&&r<=0||i!=null&&i<=0?null:z.createElement(QU,{zIndex:e.zIndex},z.createElement(sS,{className:Eu(`recharts-cartesian-axis`,a)},z.createElement(CX,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Jx(e)}),z.createElement(kX,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),z.createElement(uK,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},z.createElement(wK,{label:e.label,labelRef:e.labelRef}),e.children)))}),jX=z.forwardRef((e,t)=>{var n=Tw(e,SX);return z.createElement(AX,gX({},n,{ref:t}))});jX.displayName=`CartesianAxis`;var MX=[`x1`,`y1`,`x2`,`y2`,`key`],NX=[`offset`],PX=[`xAxisId`,`yAxisId`],FX=[`xAxisId`,`yAxisId`];function IX(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 LX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IX(Object(n),!0).forEach(function(t){RX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RX(e,t,n){return(t=zX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e){var t=BX(e,`string`);return typeof t==`symbol`?t:t+``}function BX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VX(){return VX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VX.apply(null,arguments)}function HX(e,t){if(e==null)return{};var n,r,i=UX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function UX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var WX=e=>{var{fill:t}=e;if(!t||t===`none`)return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return z.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function GX(e){var{option:t,lineItemProps:n}=e,r;if(z.isValidElement(t))r=z.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var{x1:i,y1:a,x2:o,y2:s,key:c}=n,l=Jx(HX(n,MX))??{},{offset:u}=l,d=HX(l,NX);r=z.createElement(`line`,VX({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function KX(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=HX(e,PX),c=i.map((e,i)=>{var a=LX(LX({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${i}`,index:i});return z.createElement(GX,{key:`line-${i}`,option:r,lineItemProps:a})});return z.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},c)}function qX(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=HX(e,FX),c=i.map((e,i)=>{var a=LX(LX({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${i}`,index:i});return z.createElement(GX,{option:r,lineItemProps:a,key:`line-${i}`})});return z.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},c)}function JX(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return z.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return z.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function YX(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var l=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,t)=>{var c=l[t+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=t%n.length;return z.createElement(`rect`,{key:`react-${t}`,x:e,y:a,width:u,height:s,stroke:`none`,fill:n[d],fillOpacity:r,className:`recharts-cartesian-grid-bg`})});return z.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},u)}var XX=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return XD(sX(LX(LX(LX({},SX),n),{},{ticks:ZD(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},ZX=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return XD(sX(LX(LX(LX({},SX),n),{},{ticks:ZD(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},QX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:lP.grid};function $X(e){var t=_k(),n=vk(),r=gk(),i=LX(LX({},Tw(e,QX)),{},{x:Z(e.x)?e.x:r.left,y:Z(e.y)?e.y:r.top,width:Z(e.width)?e.width:r.width,height:Z(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:c,width:l,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,m=LO(),h=Q(e=>wV(e,`xAxis`,a,m)),g=Q(e=>wV(e,`yAxis`,o,m));if(!VD(l)||!VD(u)||!Z(s)||!Z(c))return null;var _=i.verticalCoordinatesGenerator||XX,v=i.horizontalCoordinatesGenerator||ZX,{horizontalPoints:y,verticalPoints:b}=i;if((!y||!y.length)&&typeof v==`function`){var x=f&&f.length,S=v({yAxis:g?LX(LX({},g),{},{ticks:x?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},x?!0:d);GO(Array.isArray(S),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`),Array.isArray(S)&&(y=S)}if((!b||!b.length)&&typeof _==`function`){var C=p&&p.length,w=_({xAxis:h?LX(LX({},h),{},{ticks:C?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);GO(Array.isArray(w),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`),Array.isArray(w)&&(b=w)}return z.createElement(QU,{zIndex:i.zIndex},z.createElement(`g`,{className:`recharts-cartesian-grid`},z.createElement(WX,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),z.createElement(JX,VX({},i,{horizontalPoints:y})),z.createElement(YX,VX({},i,{verticalPoints:b})),z.createElement(KX,VX({},i,{offset:r,horizontalPoints:y,xAxis:h,yAxis:g})),z.createElement(qX,VX({},i,{offset:r,verticalPoints:b,xAxis:h,yAxis:g}))))}$X.displayName=`CartesianGrid`;var eZ=ZE({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:Hie,replaceErrorBar:Uie,removeErrorBar:Wie}=eZ.actions,tZ=eZ.reducer,nZ=[`children`];function rZ(e,t){if(e==null)return{};var n,r,i=iZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function iZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var aZ=(0,z.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function oZ(e){var{children:t}=e,n=rZ(e,nZ);return z.createElement(aZ.Provider,{value:n},t)}function sZ(e,t){var n=Q(t=>Tz(t,e)),r=Q(e=>Oz(e,t)),i=n?.allowDataOverflow??Cz.allowDataOverflow,a=r?.allowDataOverflow??Ez.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function cZ(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=gY(),{needClipX:a,needClipY:o,needClip:s}=sZ(t,n);if(!s||!i)return null;var{x:c,y:l,width:u,height:d}=i;return z.createElement(`clipPath`,{id:`clipPath-${r}`},z.createElement(`rect`,{x:a?c:c-u/2,y:o?l:l-d/2,width:a?u:u*2,height:o?d:d*2}))}var lZ=(e,t,n,r)=>DV(e,`xAxis`,t,r),uZ=(e,t,n,r)=>EV(e,`xAxis`,t,r),dZ=(e,t,n,r)=>DV(e,`yAxis`,n,r),fZ=(e,t,n,r)=>EV(e,`yAxis`,n,r),pZ=$([bk,lZ,dZ,uZ,fZ],(e,t,n,r,i)=>YD(e,`xAxis`)?uO(t,r,!1):uO(n,i,!1)),mZ=(e,t,n,r,i)=>i;function hZ(e){return e.type===`line`}var gZ=$([bk,lZ,dZ,uZ,fZ,$([Iz,mZ],(e,t)=>e.filter(hZ).find(e=>e.id===t)),pZ,NN],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return WZ({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}});function _Z(e){var t=Yx(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}var vZ=[`id`],yZ=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],bZ=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`];function xZ(){return xZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xZ.apply(null,arguments)}function SZ(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 CZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SZ(Object(n),!0).forEach(function(t){wZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=EZ(e,`string`);return typeof t==`symbol`?t:t+``}function EZ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DZ(e,t){if(e==null)return{};var n,r,i=OZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var kZ=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:fO(n,t),payload:e}]},AZ=z.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:iw,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:fO(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:d})}),jZ=(e,t)=>`${t}px ${e}px`;function MZ(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var NZ=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return jZ(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...MZ(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function PZ(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=Jx(DZ(r,vZ));return z.createElement(eY,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function FZ(e){var{showLabels:t,children:n,points:r}=e,i=(0,z.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return CZ(CZ({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return z.createElement(MK,{value:t?i:void 0},n)}function IZ(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=CZ(CZ({},Xx(DZ(a,yZ))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return z.createElement(z.Fragment,null,r?.length>1&&z.createElement(Gq,xZ({shapeType:`curve`,option:u},d,{pathRef:n})),z.createElement(PZ,{points:r,clipPathId:t,props:a}))}function LZ(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function RZ(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=TM(o,`recharts-line-`),y=(0,z.useRef)(v),[b,x]=(0,z.useState)(!1),S=!b,C=(0,z.useCallback)(()=>{typeof h==`function`&&h(),x(!1)},[h]),w=(0,z.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),T=LZ(r.current),E=(0,z.useRef)(0);y.current!==v&&(E.current=a.current,y.current=v);var D=E.current;return z.createElement(FZ,{points:o,showLabels:S},n.children,z.createElement(wM,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:w,key:v},e=>{var l=$C(D,T+D,e),u=Math.min(l,T),d=c?s?NZ(u,T,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):jZ(T,u):s==null?void 0:String(s);if(e>0&&T>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return CZ(CZ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return f?CZ(CZ({},t),{},{x:$C(p*2,t.x,e),y:$C(m/2,t.y,e)}):CZ(CZ({},t),{},{x:t.x,y:t.y})});return i.current=g,z.createElement(IZ,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return z.createElement(IZ,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),z.createElement(RK,{label:n.label}))}function zZ(e){var{clipPathId:t,props:n}=e,r=(0,z.useRef)(null),i=(0,z.useRef)(0),a=(0,z.useRef)(null);return z.createElement(RZ,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var BZ=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:qD(e.payload,t)}),VZ=class extends z.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=Eu(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=_Z(t),_=mq(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return z.createElement(QU,{zIndex:f},z.createElement(sS,{className:p},d&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&z.createElement(`clipPath`,{id:`clipPath-dots-${m}`},z.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),z.createElement(oZ,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:BZ,errorBarOffset:0},z.createElement(zZ,{props:this.props,clipPathId:m}))),z.createElement(wY,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},HZ={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:lP.line,type:`linear`};function UZ(e){var t=Tw(e,HZ),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=DZ(t,bZ),{needClip:_}=sZ(p,m),v=gY(),y=xk(),b=LO(),x=Q(e=>gZ(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:w,y:T}=v;return z.createElement(VZ,xZ({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:w,top:T,needClip:_}))}function WZ(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=qD(e,o);if(t===`horizontal`)return{x:nO({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(tw(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=tw(l)?null:n.scale.map(l),d=nO({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function GZ(e){var t=Tw(e,HZ),n=LO();return z.createElement(tJ,{id:t.id,type:`line`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:kZ(t)}),z.createElement(AZ,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),z.createElement(UZ,xZ({},t,{id:e}))))}var KZ=z.memo(GZ,SA);KZ.displayName=`Line`;function qZ(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function JZ(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var YZ=(e,t,n)=>DV(e,`xAxis`,qZ(e,t),n),XZ=(e,t,n)=>EV(e,`xAxis`,qZ(e,t),n),ZZ=(e,t,n)=>DV(e,`yAxis`,JZ(e,t),n),QZ=(e,t,n)=>EV(e,`yAxis`,JZ(e,t),n),$Z=$([bk,YZ,ZZ,XZ,QZ],(e,t,n,r,i)=>YD(e,`xAxis`)?uO(t,r,!1):uO(n,i,!1)),eQ=$([Iz,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),tQ=e=>YD(bk(e),`xAxis`)?`yAxis`:`xAxis`,nQ=(e,t)=>tQ(e)===`yAxis`?JZ(e,t):qZ(e,t),rQ=$([bk,YZ,ZZ,XZ,QZ,$([eQ,(e,t,n)=>cB(e,tQ(e),nQ(e,t),n)],(e,t)=>{if(!(e==null||t==null)){var{stackId:n}=e,r=MP(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),PN,$Z,eQ,cP],(e,t,n,r,i,a,o,s,c,l)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:p}=c,m=p&&p.length>0?p:u?.slice(d,f+1);if(m!=null)return kQ({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}}),iQ=[`id`],aQ=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`];function oQ(){return oQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oQ.apply(null,arguments)}function sQ(e,t){if(e==null)return{};var n,r,i=cQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lQ(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 uQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lQ(Object(n),!0).forEach(function(t){dQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dQ(e,t,n){return(t=fQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fQ(e){var t=pQ(e,`string`);return typeof t==`symbol`?t:t+``}function pQ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mQ(e,t){return e&&e!==`none`?e:t}var hQ=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:mQ(r,i),value:fO(n,t),payload:e}]},gQ=z.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:iw,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:fO(o,t),hide:s,type:l,color:mQ(r,a),unit:c,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:d})});function _Q(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r,s=Jx(r);return z.createElement(eY,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function vQ(e){var{showLabels:t,children:n,points:r}=e,i=r.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return uQ(uQ({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return z.createElement(MK,{value:t?i:void 0},n)}function yQ(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:o,type:s,stroke:c,connectNulls:l,isRange:u}=a,{id:d}=a,f=sQ(a,iQ),p=Jx(f),m=Xx(f);return z.createElement(z.Fragment,null,t?.length>1&&z.createElement(sS,{clipPath:r?`url(#clipPath-${i})`:void 0},z.createElement(Dj,oQ({},m,{id:d,points:t,connectNulls:l,type:s,baseLine:n,layout:o,stroke:`none`,className:`recharts-area-area`})),c!==`none`&&z.createElement(Dj,oQ({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:t})),c!==`none`&&u&&Array.isArray(n)&&z.createElement(Dj,oQ({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:n}))),z.createElement(_Q,{points:t,props:f,clipPathId:i}))}function bQ(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.y,o=r[r.length-1]?.y;if(!BD(a)||!BD(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return Z(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),Z(c)?z.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function xQ(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.x,o=r[r.length-1]?.x;if(!BD(a)||!BD(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return Z(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),Z(c)?z.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function SQ(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n===`vertical`?z.createElement(bQ,{alpha:t,points:r,baseLine:i,strokeWidth:a}):z.createElement(xQ,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function CQ(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:p}=r,m=TM((0,z.useMemo)(()=>({points:o,baseLine:s}),[o,s]),`recharts-area-`),h=Sk(),[g,_]=(0,z.useState)(!1),v=!g,y=(0,z.useCallback)(()=>{typeof p==`function`&&p(),_(!1)},[p]),b=(0,z.useCallback)(()=>{typeof f==`function`&&f(),_(!0)},[f]);if(h==null)return null;var x=i.current,S=a.current;return z.createElement(vQ,{showLabels:v,points:o},r.children,z.createElement(wM,{animationId:m,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:y,onAnimationStart:b,key:m},e=>{if(x){var l=x.length/o.length,u=e===1?o:o.map((t,n)=>{var r=Math.floor(n*l);if(x[r]){var i=x[r];return uQ(uQ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return t}),d=Z(s)?$C(S,s,e):tw(s)||KC(s)?$C(S,0,e):s.map((t,n)=>{var r=Math.floor(n*l);if(Array.isArray(S)&&S[r]){var i=S[r];return uQ(uQ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return t});return e>0&&(i.current=u,a.current=d),z.createElement(yQ,{points:u,baseLine:d,needClip:t,clipPathId:n,props:r})}return e>0&&(i.current=o,a.current=s),z.createElement(sS,null,c&&z.createElement(`defs`,null,z.createElement(`clipPath`,{id:`animationClipPath-${n}`},z.createElement(SQ,{alpha:e,points:o,baseLine:s,layout:h,strokeWidth:r.strokeWidth}))),z.createElement(sS,{clipPath:`url(#animationClipPath-${n})`},z.createElement(yQ,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r})))}),z.createElement(RK,{label:r.label}))}function wQ(e){var{needClip:t,clipPathId:n,props:r}=e,i=(0,z.useRef)(null),a=(0,z.useRef)();return z.createElement(CQ,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var TQ=class extends z.PureComponent{render(){var{hide:e,dot:t,points:n,className:r,top:i,left:a,needClip:o,xAxisId:s,yAxisId:c,width:l,height:u,id:d,baseLine:f,zIndex:p}=this.props;if(e)return null;var m=Eu(`recharts-area`,r),h=d,{r:g,strokeWidth:_}=_Z(t),v=mq(t),y=g*2+_,b=o?`url(#clipPath-${v?``:`dots-`}${h})`:void 0;return z.createElement(QU,{zIndex:p},z.createElement(sS,{className:m},o&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:h,xAxisId:s,yAxisId:c}),!v&&z.createElement(`clipPath`,{id:`clipPath-dots-${h}`},z.createElement(`rect`,{x:a-y/2,y:i-y/2,width:l+y,height:u+y}))),z.createElement(wQ,{needClip:o,clipPathId:h,props:this.props})),z.createElement(wY,{points:n,mainColor:mQ(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}),this.props.isRange&&Array.isArray(f)&&z.createElement(wY,{points:f,mainColor:mQ(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}))}},EQ={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,xAxisId:0,yAxisId:0,zIndex:lP.area};function DQ(e){var{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,connectNulls:a,dot:o,fill:s,fillOpacity:c,hide:l,isAnimationActive:u,legendType:d,stroke:f,xAxisId:p,yAxisId:m}=e,h=sQ(e,aQ),g=xk(),_=yU(),{needClip:v}=sZ(p,m),y=LO(),{points:b,isRange:x,baseLine:S}=Q(t=>rQ(t,e.id,y))??{},C=gY();if(g!==`horizontal`&&g!==`vertical`||C==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var{height:w,width:T,x:E,y:D}=C;return!b||!b.length?null:z.createElement(TQ,oQ({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:S,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:w,hide:l,layout:g,isAnimationActive:u,isRange:x,legendType:d,needClip:v,points:b,stroke:f,width:T,left:E,top:D,xAxisId:p,yAxisId:m}))}var OQ=(e,t,n,r,i)=>{var a=n??t;if(Z(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function kQ(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:c,displayedData:l,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:p}=e,m=i&&i.length,h=OQ(a,o,n,s,c),g=a===`horizontal`,_=!1,v=l.map((e,n)=>{var a;if(m)a=i[u+n];else{var o=qD(e,r);Array.isArray(o)?(a=o,_=!0):a=[h,o]}var l=a?.[1]??null,v=l==null||m&&!t&&qD(e,r)==null;return g?{x:nO({axis:s,ticks:d,bandSize:p,entry:e,index:n}),y:v?null:c.scale.map(l)??null,value:a,payload:e}:{x:v?null:s.scale.map(l)??null,y:nO({axis:c,ticks:f,bandSize:p,entry:e,index:n}),value:a,payload:e}});return{points:v,baseLine:(m||_?v.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?c.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:s.scale.map(t)??null,y:e.y,payload:e.payload}}):g?c.scale.map(h):s.scale.map(h))??0,isRange:_}}function AQ(e){var t=Tw(e,EQ),n=LO();return z.createElement(tJ,{id:t.id,type:`area`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:hQ(t)}),z.createElement(gQ,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:tO(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),z.createElement(DQ,oQ({},t,{id:e}))))}var jQ=z.memo(AQ,SA);jQ.displayName=`Area`;var MQ=!0,NQ=`Invariant failed`;function PQ(e,t){if(!e){if(MQ)throw Error(NQ);var n=typeof t==`function`?t():t,r=n?`${NQ}: ${n}`:NQ;throw Error(r)}}function FQ(){return FQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FQ.apply(null,arguments)}function IQ(e){return z.createElement(Gq,FQ({shapeType:`rectangle`,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`},e))}var LQ=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(Z(e))return e;var i=Z(n)||tw(n);return i?e(n,r):(!i&&PQ(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}},RQ=(e,t,n)=>n,zQ=$([Iz,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),BQ=$([zQ],e=>e?.maxBarSize),VQ=(e,t,n,r)=>r,HQ=$([bk,Iz,qZ,JZ,RQ],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),UQ=(e,t,n)=>{var r=bk(e),i=qZ(e,t),a=JZ(e,t);if(!(i==null||a==null))return r===`horizontal`?cB(e,`yAxis`,a,n):cB(e,`xAxis`,i,n)},WQ=$([HQ,tP,(e,t)=>{var n=bk(e),r=qZ(e,t),i=JZ(e,t);if(!(r==null||i==null))return n===`horizontal`?xV(e,`xAxis`,r):xV(e,`yAxis`,i)}],EY),GQ=(e,t,n)=>{var r=zQ(e,t);if(r==null)return 0;var i=qZ(e,t),a=JZ(e,t);if(i==null||a==null)return 0;var o=bk(e),s=QN(e),{maxBarSize:c}=r,l=tw(c)?s:c,u,d;return o===`horizontal`?(u=DV(e,`xAxis`,i,n),d=EV(e,`xAxis`,i,n)):(u=DV(e,`yAxis`,a,n),d=EV(e,`yAxis`,a,n)),uO(u,d,!0)??l??0},KQ=(e,t,n)=>{var r=bk(e),i=qZ(e,t),a=JZ(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=DV(e,`xAxis`,i,n),s=EV(e,`xAxis`,i,n)):(o=DV(e,`yAxis`,a,n),s=EV(e,`yAxis`,a,n)),uO(o,s)}},qQ=$([NO,FO,(e,t,n)=>{var r=qZ(e,t);if(r!=null)return DV(e,`xAxis`,r,n)},(e,t,n)=>{var r=JZ(e,t);if(r!=null)return DV(e,`yAxis`,r,n)},(e,t,n)=>{var r=qZ(e,t);if(r!=null)return EV(e,`xAxis`,r,n)},(e,t,n)=>{var r=JZ(e,t);if(r!=null)return EV(e,`yAxis`,r,n)},$([$([WQ,QN,$N,eP,GQ,KQ,BQ],NY),zQ],FY),bk,PN,KQ,$([UQ,zQ],PY),zQ,VQ],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=c;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var{data:g}=d,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return k$({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}}),JQ=[`index`];function YQ(){return YQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YQ.apply(null,arguments)}function XQ(e,t){if(e==null)return{};var n,r,i=ZQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var QQ=(0,z.createContext)(void 0),$Q=e=>{var t=(0,z.useContext)(QQ);if(t!=null)return t.stackId;if(e!=null)return tO(e)},e$=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,t$=e=>{var t=(0,z.useContext)(QQ);if(t!=null){var{stackId:n}=t;return`url(#${e$(n,e)})`}},n$=e=>{var{index:t}=e,n=XQ(e,JQ),r=t$(t);return z.createElement(sS,YQ({className:`recharts-bar-stack-layer`,clipPath:r},n))},r$=[`onMouseEnter`,`onMouseLeave`,`onClick`],i$=[`value`,`background`,`tooltipPosition`],a$=[`id`],o$=[`onMouseEnter`,`onClick`,`onMouseLeave`];function s$(){return s$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s$.apply(null,arguments)}function c$(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 l$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c$(Object(n),!0).forEach(function(t){u$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u$(e,t,n){return(t=d$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e){var t=f$(e,`string`);return typeof t==`symbol`?t:t+``}function f$(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p$(e,t){if(e==null)return{};var n,r,i=m$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var h$=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:fO(n,t),payload:e}]},g$=z.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:void 0,getPosition:iw,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:fO(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:l}};return z.createElement(Yq,{tooltipEntrySettings:u})});function _$(e){var t=Q(YH),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:c}=a,l=p$(a,r$),u=Kq(o,r,a.id),d=qq(s),f=Jq(c,r,a.id);if(!i||n==null)return null;var p=Yx(i);return z.createElement(QU,{zIndex:IY(i,lP.barBackground)},n.map((e,n)=>{var{value:a,background:o,tooltipPosition:s}=e,c=p$(e,i$);if(!o)return null;var m=u(e,n),h=d(e,n),g=f(e,n),_=l$(l$(l$(l$(l$({option:i,isActive:String(n)===t},c),{},{fill:`#eee`},o),p),Cw(l,e,n)),{},{onMouseEnter:m,onMouseLeave:h,onClick:g,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return z.createElement(IQ,s$({key:`background-bar-${n}`},_))}))}function v$(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return l$(l$({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return z.createElement(MK,{value:t?i:void 0},n)}function y$(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:o}=e,s=Q(YH),c=Q(ZH),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),[u,d]=(0,z.useState)(!1),[f,p]=(0,z.useState)(!1);(0,z.useEffect)(()=>{var e;return l?(d(!0),e=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(e)}},[l]);var m=(0,z.useCallback)(()=>{l||d(!1)},[l]),h=l&&f,g=l||u,_=l?n===!0?t:n:t,v=z.createElement(IQ,s$({},r,{name:String(r.name)},i,{isActive:h,option:_,index:a,dataKey:o,onTransitionEnd:m}));return g?z.createElement(QU,{zIndex:lP.activeBar},z.createElement(n$,{index:i.originalDataIndex},v)):v}function b$(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return z.createElement(IQ,s$({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function x$(e){var{data:t,props:n}=e,r=Jx(n)??{},{id:i}=r,a=p$(r,a$),{shape:o,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=p$(n,o$),p=Kq(l,s,i),m=qq(d),h=Jq(u,s,i);return t?z.createElement(z.Fragment,null,t.map((e,t)=>z.createElement(n$,s$({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},Cw(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),c?z.createElement(y$,{shape:o,activeBar:c,baseProps:a,entry:e,index:t,dataKey:s}):z.createElement(b$,{shape:o,baseProps:a,entry:e,index:t,dataKey:s})))):null}function S$(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,onAnimationEnd:l,onAnimationStart:u}=t,d=n.current,f=TM(t,`recharts-bar-`),[p,m]=(0,z.useState)(!1),h=!p,g=(0,z.useCallback)(()=>{typeof l==`function`&&l(),m(!1)},[l]),_=(0,z.useCallback)(()=>{typeof u==`function`&&u(),m(!0)},[u]);return z.createElement(v$,{showLabels:h,rects:r},z.createElement(wM,{animationId:f,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:g,onAnimationStart:_,key:f},e=>{var a=e===1?r:r?.map((t,n)=>{var r=d&&d[n];if(r)return l$(l$({},t),{},{x:$C(r.x,t.x,e),y:$C(r.y,t.y,e),width:$C(r.width,t.width,e),height:$C(r.height,t.height,e)});if(i===`horizontal`){var a=$C(0,t.height,e),o=$C(t.stackedBarStart,t.y,e);return l$(l$({},t),{},{y:o,height:a})}var s=$C(0,t.width,e),c=$C(t.stackedBarStart,t.x,e);return l$(l$({},t),{},{width:s,x:c})});return e>0&&(n.current=a??null),a==null?null:z.createElement(sS,null,z.createElement(x$,{props:t,data:a}))}),z.createElement(RK,{label:t.label}),t.children)}function C$(e){var t=(0,z.useRef)(null);return z.createElement(S$,{previousRectanglesRef:t,props:e})}var w$=0,T$=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:qD(e,t)}},E$=class extends z.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:a,needClip:o,background:s,id:c}=this.props;if(e||t==null)return null;var l=Eu(`recharts-bar`,r),u=c;return z.createElement(sS,{className:l,id:c},o&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:u,xAxisId:i,yAxisId:a})),z.createElement(sS,{className:`recharts-bar-rectangles`,clipPath:o?`url(#clipPath-${u})`:void 0},z.createElement(_$,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),z.createElement(C$,this.props)))}},D$={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:w$,xAxisId:0,yAxisId:0,zIndex:lP.bar};function O$(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u}=e,{needClip:d}=sZ(t,n),f=xk(),p=LO(),m=pq(e.children,GW),h=Q(t=>qQ(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,z.createElement(oZ,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:T$,errorBarOffset:g},z.createElement(E$,s$({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function k$(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:o,xAxis:s,yAxis:c,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:m,parentViewBox:h,dataStartIndex:g}=e,_=t===`horizontal`?c:s,v=d?_.scale.domain():null,y=iO({numericAxis:_}),b=_.scale.map(y);return f.map((e,f)=>{var _,x,S,C,w,T;if(d){var E=d[f+g];if(E==null)return null;_=QD(E,v)}else _=qD(e,n),Array.isArray(_)||(_=[y,_]);var D=LQ(r,w$)(_[1],f);if(t===`horizontal`){var O=c.scale.map(_[0]),k=c.scale.map(_[1]);if(O==null||k==null)return null;x=rO({axis:s,ticks:l,bandSize:o,offset:a.offset,entry:e,index:f}),S=k??O??void 0,C=a.size;var A=O-k;if(w=KC(A)?0:A,T={x,y:p.top,width:C,height:p.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var j=GC(w||D)*(Math.abs(D)-Math.abs(w));S-=j,w+=j}}else{var M=s.scale.map(_[0]),N=s.scale.map(_[1]);if(M==null||N==null)return null;if(x=M,S=rO({axis:c,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),C=N-M,w=a.size,T={x:p.left,y:S,width:p.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var ee=GC(C||D)*(Math.abs(D)-Math.abs(C));C+=ee}}return x==null||S==null||C==null||w==null||!i&&(C===0||w===0)?null:l$(l$({},e),{},{stackedBarStart:b,x,y:S,width:C,height:w,value:d?_:_[1],payload:e,background:T,tooltipPosition:{x:x+C/2,y:S+w/2},parentViewBox:h,originalDataIndex:f},m&&m[f]&&m[f].props)}).filter(Boolean)}function A$(e){var t=Tw(e,D$),n=$Q(t.stackId),r=LO();return z.createElement(tJ,{id:t.id,type:`bar`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:h$(t)}),z.createElement(g$,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),z.createElement(QU,{zIndex:t.zIndex},z.createElement(O$,s$({},t,{id:e})))))}var j$=z.memo(A$,SA);j$.displayName=`Bar`;var M$=[`domain`,`range`],N$=[`domain`,`range`];function P$(e,t){if(e==null)return{};var n,r,i=F$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function F$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function I$(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function L$(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=P$(e,M$),{domain:a,range:o}=t,s=P$(t,N$);return!I$(n,a)||!I$(r,o)?!1:SA(i,s)}var R$=[`type`],z$=[`dangerouslySetInnerHTML`,`ticks`,`scale`],B$=[`id`,`scale`];function V$(){return V$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V$.apply(null,arguments)}function H$(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 U$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H$(Object(n),!0).forEach(function(t){W$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W$(e,t,n){return(t=G$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=K$(e,`string`);return typeof t==`symbol`?t:t+``}function K$(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function q$(e,t){if(e==null)return{};var n,r,i=J$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Y$(e){var t=Ww(),n=(0,z.useRef)(null),r=Sk(),{type:i}=e,a=q$(e,R$),o=pP(r,`xAxis`,i),s=(0,z.useMemo)(()=>{if(o!=null)return U$(U$({},a),{},{type:o})},[a,o]);return(0,z.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(sY(s)):n.current!==s&&t(cY({prev:n.current,next:s})),n.current=s)},[s,t]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(lY(n.current)),null)},[t]),null}var X$=e=>{var{xAxisId:t,className:n}=e,r=Q(FO),i=LO(),a=`xAxis`,o=Q(e=>TV(e,a,t,i)),s=Q(e=>pV(e,t)),c=Q(e=>vV(e,t)),l=Q(e=>wz(e,t));if(s==null||c==null||l==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,p=q$(e,z$),{id:m,scale:h}=l,g=q$(l,B$);return z.createElement(jX,V$({},p,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:Eu(`recharts-${a} ${a}`,n),viewBox:r,ticks:o,axisType:a,axisId:t}))},Z$={allowDataOverflow:Cz.allowDataOverflow,allowDecimals:Cz.allowDecimals,allowDuplicatedCategory:Cz.allowDuplicatedCategory,angle:Cz.angle,axisLine:SX.axisLine,height:Cz.height,hide:!1,includeHidden:Cz.includeHidden,interval:Cz.interval,label:!1,minTickGap:Cz.minTickGap,mirror:Cz.mirror,orientation:Cz.orientation,padding:Cz.padding,reversed:Cz.reversed,scale:Cz.scale,tick:Cz.tick,tickCount:Cz.tickCount,tickLine:SX.tickLine,tickSize:SX.tickSize,type:Cz.type,niceTicks:Cz.niceTicks,xAxisId:0},Q$=z.memo(e=>{var t=Tw(e,Z$);return z.createElement(z.Fragment,null,z.createElement(Y$,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),z.createElement(X$,t))},L$);Q$.displayName=`XAxis`;var $$=[`type`],e1=[`dangerouslySetInnerHTML`,`ticks`,`scale`],t1=[`id`,`scale`];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(null,arguments)}function r1(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 i1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r1(Object(n),!0).forEach(function(t){a1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a1(e,t,n){return(t=o1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o1(e){var t=s1(e,`string`);return typeof t==`symbol`?t:t+``}function s1(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c1(e,t){if(e==null)return{};var n,r,i=l1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function u1(e){var t=Ww(),n=(0,z.useRef)(null),r=Sk(),{type:i}=e,a=c1(e,$$),o=pP(r,`yAxis`,i),s=(0,z.useMemo)(()=>{if(o!=null)return i1(i1({},a),{},{type:o})},[o,a]);return(0,z.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(uY(s)):n.current!==s&&t(dY({prev:n.current,next:s})),n.current=s)},[s,t]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(fY(n.current)),null)},[t]),null}function d1(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=(0,z.useRef)(null),o=(0,z.useRef)(null),s=Q(FO),c=LO(),l=Ww(),u=`yAxis`,d=Q(e=>bV(e,t)),f=Q(e=>yV(e,t)),p=Q(e=>TV(e,u,t,c)),m=Q(e=>Dz(e,t));if((0,z.useLayoutEffect)(()=>{if(!(r!==`auto`||!d||hK(i)||(0,z.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(pY({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:h,ticks:g,scale:_}=e,v=c1(e,e1),{id:y,scale:b}=m,x=c1(m,t1);return z.createElement(jX,n1({},v,x,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:Eu(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var f1={allowDataOverflow:Ez.allowDataOverflow,allowDecimals:Ez.allowDecimals,allowDuplicatedCategory:Ez.allowDuplicatedCategory,angle:Ez.angle,axisLine:SX.axisLine,hide:!1,includeHidden:Ez.includeHidden,interval:Ez.interval,label:!1,minTickGap:Ez.minTickGap,mirror:Ez.mirror,orientation:Ez.orientation,padding:Ez.padding,reversed:Ez.reversed,scale:Ez.scale,tick:Ez.tick,tickCount:Ez.tickCount,tickLine:SX.tickLine,tickSize:SX.tickSize,type:Ez.type,niceTicks:Ez.niceTicks,width:Ez.width,yAxisId:0},p1=z.memo(e=>{var t=Tw(e,f1);return z.createElement(z.Fragment,null,z.createElement(u1,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),z.createElement(d1,t))},L$);p1.displayName=`YAxis`;var m1=$([(e,t)=>t,bk,kP,RP,HH,WH,CU,NO],FU);function h1(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function g1(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(h1(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var _1=AE(`mouseClick`),v1=jD();v1.startListening({actionCreator:_1,effect:(e,t)=>{var n=e.payload,r=m1(t.getState(),g1(n));r?.activeIndex!=null&&t.dispatch(qV({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var y1=AE(`mouseMove`),b1=jD(),x1=null,S1=null,C1=null;b1.startListening({actionCreator:y1,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);x1!==null&&(cancelAnimationFrame(x1),x1=null),S1!==null&&(typeof r!=`number`||!a)&&(clearTimeout(S1),S1=null),C1=g1(n);var o=()=>{var e=t.getState(),n=MV(e,e.tooltip.settings.shared);if(!C1){x1=null,S1=null;return}if(n===`axis`){var r=m1(e,C1);r?.activeIndex==null?t.dispatch(WV()):t.dispatch(KV({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}x1=null,S1=null};if(!a){o();return}r===`raf`?x1=requestAnimationFrame(o):typeof r==`number`&&S1===null&&(S1=setTimeout(o,r))}});function w1(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var T1={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},E1=ZE({name:`rootProps`,initialState:T1,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??T1.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),D1=E1.reducer,{updateOptions:O1}=E1.actions,k1=ZE({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:A1}=k1.actions,j1=k1.reducer,M1=AE(`keyDown`),N1=AE(`focus`),P1=AE(`blur`),F1=jD(),I1=null,L1=null,R1=null;F1.startListening({actionCreator:M1,effect:(e,t)=>{R1=e.payload,I1!==null&&(cancelAnimationFrame(I1),I1=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);L1!==null&&(typeof n!=`number`||!i)&&(clearTimeout(L1),L1=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=R1;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=cH(n,AH(e),aB(e),zH(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=WH(e),c=AH(e),l=MV(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=OU(e,l,`hover`,String(n.index));t.dispatch(YV({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=OV(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=aB(e),h=zH(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(cH(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(cH(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=OU(e,l,`hover`,String(p));t.dispatch(YV({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{I1=null,L1=null}};if(!i){a();return}n===`raf`?I1=requestAnimationFrame(a):typeof n==`number`&&L1===null&&(a(),R1=null,L1=setTimeout(()=>{R1?a():(L1=null,I1=null)},n))}}),F1.startListening({actionCreator:N1,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&r.index==null){var i=`0`,a=OU(n,MV(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(YV({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),F1.startListening({actionCreator:P1,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(YV({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function z1(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var B1=AE(`externalEvent`),V1=jD(),H1=new Map,U1=new Map,W1=new Map;V1.startListening({actionCreator:B1,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=z1(r);W1.set(i,{handler:n,reactEvent:a});var o=H1.get(i);o!==void 0&&(cancelAnimationFrame(o),H1.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=U1.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),U1.delete(i));var f=()=>{var e=W1.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:eU(a),activeDataKey:ZH(a),activeIndex:YH(a),activeLabel:XH(a),activeTooltipIndex:YH(a),isTooltipActive:tU(a)};n&&n(o,r)}finally{H1.delete(i),U1.delete(i),W1.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);H1.set(i,p)}else if(typeof s==`number`){if(!U1.has(i)){f();var m=setTimeout(f,s);U1.set(i,m)}}else f()}}});var G1=$([$([fH],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),K1=AE(`touchMove`),q1=jD(),J1=null,Y1=null,X1=null,Z1=null;q1.startListening({actionCreator:K1,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Z1=z1(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);J1!==null&&(cancelAnimationFrame(J1),J1=null),Y1!==null&&(typeof r!=`number`||!a)&&(clearTimeout(Y1),Y1=null),X1=Array.from(n.touches).map(e=>g1({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(Z1!=null){var e=t.getState(),n=MV(e,e.tooltip.settings.shared);if(n===`axis`){var r=X1?.[0];if(r==null){J1=null,Y1=null;return}var i=m1(e,r);i?.activeIndex!=null&&t.dispatch(KV({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=Z1.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(xO),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=EH(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=G1(e,s,c);t.dispatch(HV({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}J1=null,Y1=null}};if(!a){o();return}r===`raf`?J1=requestAnimationFrame(o):typeof r==`number`&&Y1===null&&(o(),Z1=null,Y1=setTimeout(()=>{Z1?o():(Y1=null,J1=null)},r))}}});var Q1={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},$1=ZE({name:`eventSettings`,initialState:Q1,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=mA(t.payload.throttledEvents))}}}),{setEventSettings:e0}=$1.actions,t0=$1.reducer,n0=cT({brush:BY,cartesianAxis:mY,chartData:SW,errorBars:tZ,eventSettings:t0,graphicalItems:lJ,layout:RD,legend:Pne,options:gW,polarAxis:JK,polarOptions:j1,referenceElements:WY,renderedTicks:fX,rootProps:D1,tooltip:XV,zIndex:ZU}),r0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return VE({reducer:n0,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([v1.middleware,b1.middleware,F1.middleware,V1.middleware,q1.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(zE({type:`raf`}))},devTools:nj.devToolsEnabled&&{serialize:{replacer:w1},name:`recharts-${t}`}})};function i0(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=LO(),a=(0,z.useRef)(null);if(i)return n;a.current??=r0(t,r);var o=Hw;return z.createElement(Jne,{context:o,store:a.current},n)}function a0(e){var{layout:t,margin:n}=e,r=Ww(),i=LO();return(0,z.useEffect)(()=>{i||(r(FD(t)),r(PD(n)))},[r,i,t,n]),null}var o0=(0,z.memo)(a0,SA);function s0(e){var t=Ww();return(0,z.useEffect)(()=>{t(O1(e))},[t,e]),null}var c0=(0,z.memo)(e=>{var t=Ww();return(0,z.useEffect)(()=>{t(e0(e))},[t,e]),null},SA);function l0(e){var{zIndex:t,isPanorama:n}=e,r=(0,z.useRef)(null),i=Ww();return(0,z.useLayoutEffect)(()=>(r.current&&i(YU({zIndex:t,element:r.current,isPanorama:n})),()=>{i(XU({zIndex:t,isPanorama:n}))}),[i,t,n]),z.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function u0(e){var{children:t,isPanorama:n}=e,r=Q(LU);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return z.createElement(z.Fragment,null,i.map(e=>z.createElement(l0,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>z.createElement(l0,{key:e,zIndex:e,isPanorama:n})))}var d0=[`children`];function f0(e,t){if(e==null)return{};var n,r,i=p0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(null,arguments)}var h0={width:`100%`,height:`100%`,display:`block`},g0=(0,z.forwardRef)((e,t)=>{var n=_k(),r=vk(),i=fj();if(!VD(n)||!VD(r))return null;var{children:a,otherAttributes:o,title:s,desc:c}=e,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),z.createElement(nS,m0({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:h0,ref:t}),a)}),_0=e=>{var{children:t}=e,n=Q(zO);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return z.createElement(nS,{width:r,height:i,x:o,y:a},t)},v0=(0,z.forwardRef)((e,t)=>{var{children:n}=e,r=f0(e,d0);return LO()?z.createElement(_0,null,z.createElement(u0,{isPanorama:!0},n)):z.createElement(g0,m0({ref:t},r),z.createElement(u0,{isPanorama:!1},n))});function y0(){var e=Ww(),[t,n]=(0,z.useState)(null),r=Q(_O);return(0,z.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;BD(n)&&n!==r&&e(LD(n))}},[t,e,r]),n}function b0(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 x0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?b0(Object(n),!0).forEach(function(t){S0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S0(e,t,n){return(t=C0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C0(e){var t=w0(e,`string`);return typeof t==`symbol`?t:t+``}function w0(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(null,arguments)}var E0=()=>(NW(),null);function D0(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var O0=(0,z.forwardRef)((e,t)=>{var n=(0,z.useRef)(null),[r,i]=(0,z.useState)({containerWidth:D0(e.style?.width),containerHeight:D0(e.style?.height)}),a=(0,z.useCallback)((e,t)=>{i(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),o=(0,z.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var{width:r,height:i}=e.getBoundingClientRect();a(r,i);var o=new ResizeObserver(e=>{var t=e[0];if(t!=null){var{width:n,height:r}=t.contentRect;a(n,r)}});o.observe(e),n.current=o}},[t,a]);return(0,z.useEffect)(()=>()=>{n.current?.disconnect()},[a]),z.createElement(z.Fragment,null,z.createElement(Tk,{width:r.containerWidth,height:r.containerHeight}),z.createElement(`div`,T0({ref:o},e)))}),k0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,z.useState)({containerWidth:D0(n),containerHeight:D0(r)}),o=(0,z.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,z.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return z.createElement(z.Fragment,null,z.createElement(Tk,{width:i.containerWidth,height:i.containerHeight}),z.createElement(`div`,T0({ref:s},e)))}),A0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e;return z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(`div`,T0({ref:t},e)))}),j0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?z.createElement(k0,T0({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?z.createElement(A0,T0({},e,{width:n,height:r,ref:t})):z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(`div`,T0({ref:t},e)))});function M0(e){return e?O0:j0}var N0=(0,z.forwardRef)((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:c,onMouseEnter:l,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:p,onTouchMove:m,onTouchStart:h,style:g,width:_,responsive:v,dispatchTouchEvents:y=!0}=e,b=(0,z.useRef)(null),x=Ww(),[S,C]=(0,z.useState)(null),[w,T]=(0,z.useState)(null),E=y0(),D=uk(),O=D?.width>0?D.width:_,k=D?.height>0?D.height:i,A=(0,z.useCallback)(e=>{E(e),typeof t==`function`&&t(e),C(e),T(e),e!=null&&(b.current=e)},[E,t,C,T]),j=(0,z.useCallback)(e=>{x(_1(e)),x(B1({handler:a,reactEvent:e}))},[x,a]),M=(0,z.useCallback)(e=>{x(y1(e)),x(B1({handler:l,reactEvent:e}))},[x,l]),N=(0,z.useCallback)(e=>{x(WV()),x(B1({handler:u,reactEvent:e}))},[x,u]),ee=(0,z.useCallback)(e=>{x(y1(e)),x(B1({handler:d,reactEvent:e}))},[x,d]),P=(0,z.useCallback)(()=>{x(N1())},[x]),F=(0,z.useCallback)(()=>{x(P1())},[x]),I=(0,z.useCallback)(e=>{x(M1(e.key))},[x]),te=(0,z.useCallback)(e=>{x(B1({handler:o,reactEvent:e}))},[x,o]),ne=(0,z.useCallback)(e=>{x(B1({handler:s,reactEvent:e}))},[x,s]),re=(0,z.useCallback)(e=>{x(B1({handler:c,reactEvent:e}))},[x,c]),L=(0,z.useCallback)(e=>{x(B1({handler:f,reactEvent:e}))},[x,f]),R=(0,z.useCallback)(e=>{x(B1({handler:h,reactEvent:e}))},[x,h]),ie=(0,z.useCallback)(e=>{y&&x(K1(e)),x(B1({handler:m,reactEvent:e}))},[x,y,m]),ae=(0,z.useCallback)(e=>{x(B1({handler:p,reactEvent:e}))},[x,p]),oe=M0(v);return z.createElement(cW.Provider,{value:S},z.createElement(cS.Provider,{value:w},z.createElement(oe,{width:O??g?.width,height:k??g?.height,className:Eu(`recharts-wrapper`,r),style:x0({position:`relative`,cursor:`default`,width:O,height:k},g),onClick:j,onContextMenu:te,onDoubleClick:ne,onFocus:P,onBlur:F,onKeyDown:I,onMouseDown:re,onMouseEnter:M,onMouseLeave:N,onMouseMove:ee,onMouseUp:L,onTouchEnd:ae,onTouchMove:ie,onTouchStart:R,ref:A},z.createElement(E0,null),n)))}),P0=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function F0(e,t){if(e==null)return{};var n,r,i=I0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var L0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=Jx(F0(e,P0));return c?z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(v0,{otherAttributes:d,title:l,desc:u},a)):z.createElement(N0,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},z.createElement(v0,{otherAttributes:d,title:l,desc:u,ref:t},z.createElement(KY,null,a)))});function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(null,arguments)}function z0(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 B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?z0(Object(n),!0).forEach(function(t){V0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V0(e,t,n){return(t=H0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e){var t=U0(e,`string`);return typeof t==`symbol`?t:t+``}function U0(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var W0=B0({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},Q1),G0=(0,z.forwardRef)(function(e,t){var n=Tw(e.categoricalChartProps,W0),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,categoricalChartProps:s}=e,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return z.createElement(i0,{preloadedState:{options:c},reduxStoreName:s.id??r},z.createElement(LY,{chartData:s.data}),z.createElement(o0,{layout:n.layout,margin:n.margin}),z.createElement(c0,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),z.createElement(s0,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),z.createElement(L0,R0({},n,{ref:t})))}),K0=[`axis`],q0=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:K0,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t})),J0=[`axis`,`item`],Y0=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:J0,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t}));function X0(e){var t=Ww();return(0,z.useEffect)(()=>{t(A1(e))},[t,e]),null}var Z0=[`layout`];function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(null,arguments)}function $0(e,t){if(e==null)return{};var n,r,i=e2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function e2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function t2(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 n2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?t2(Object(n),!0).forEach(function(t){r2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r2(e,t,n){return(t=i2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e){var t=a2(e,`string`);return typeof t==`symbol`?t:t+``}function a2(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o2=n2({accessibilityLayer:!0,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`,layout:`radial`,responsive:!1,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`},Q1),s2=(0,z.forwardRef)(function(e,t){var n=Tw(e.categoricalChartProps,o2),{layout:r}=n,i=$0(n,Z0),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=e,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return z.createElement(i0,{preloadedState:{options:l},reduxStoreName:n.id??a},z.createElement(LY,{chartData:n.data}),z.createElement(o0,{layout:r,margin:n.margin}),z.createElement(c0,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),z.createElement(s0,{baseValue:void 0,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),z.createElement(X0,{cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius}),z.createElement(L0,Q0({},i,{ref:t})))});function c2(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 l2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c2(Object(n),!0).forEach(function(t){u2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u2(e,t,n){return(t=d2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d2(e){var t=f2(e,`string`);return typeof t==`symbol`?t:t+``}function f2(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var p2=[`item`],m2=l2(l2({},o2),{},{layout:`centric`,startAngle:0,endAngle:360}),h2=(0,z.forwardRef)((e,t)=>{var n=Tw(e,m2);return z.createElement(s2,{chartName:`PieChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:p2,tooltipPayloadSearcher:mW,categoricalChartProps:n,ref:t})}),g2=[`axis`],_2=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:g2,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t})),v2=365.2425,y2=6048e5,b2=864e5,x2=3600*24;x2*7,x2*v2/12*3;var S2=Symbol.for(`constructDateFrom`);function C2(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&S2 in e?e[S2](t):e instanceof Date?new e.constructor(t):new Date(t)}function w2(e,t){return C2(t||e,e)}function T2(e,t,n){let r=w2(e,n?.in);return isNaN(t)?C2(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var E2={};function D2(){return E2}function O2(e,t){let n=D2(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=w2(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function k2(e,t){return O2(e,{...t,weekStartsOn:1})}function A2(e,t){let n=w2(e,t?.in),r=n.getFullYear(),i=C2(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=k2(i),o=C2(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=k2(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function j2(e){let t=w2(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function M2(e,...t){let n=C2.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function N2(e,t){let n=w2(e,t?.in);return n.setHours(0,0,0,0),n}function P2(e,t,n){let[r,i]=M2(n?.in,e,t),a=N2(r),o=N2(i),s=+a-j2(a),c=+o-j2(o);return Math.round((s-c)/b2)}function F2(e,t){let n=A2(e,t),r=C2(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),k2(r)}function I2(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function L2(e){return!(!I2(e)&&typeof e!=`number`||isNaN(+w2(e)))}function R2(e,t){let n=w2(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}var z2={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},B2=(e,t,n)=>{let r,i=z2[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function V2(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var H2={date:V2({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:V2({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:V2({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},U2={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},W2=(e,t,n,r)=>U2[e];function G2(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var K2={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:G2({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:G2({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:G2({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:G2({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:G2({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function q2(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Y2(s,e=>e.test(o)):J2(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function J2(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Y2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function X2(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Z2={code:`en-US`,formatDistance:B2,formatLong:H2,formatRelative:W2,localize:K2,match:{ordinalNumber:X2({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:q2({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:q2({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:q2({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:q2({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:q2({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q2(e,t){let n=w2(e,t?.in);return P2(n,R2(n))+1}function $2(e,t){let n=w2(e,t?.in),r=k2(n)-+F2(n);return Math.round(r/y2)+1}function e4(e,t){let n=w2(e,t?.in),r=n.getFullYear(),i=D2(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=C2(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=O2(o,t),c=C2(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=O2(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function t4(e,t){let n=D2(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=e4(e,t),a=C2(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),O2(a,t)}function n4(e,t){let n=w2(e,t?.in),r=O2(n,t)-+t4(n,t);return Math.round(r/y2)+1}function r4(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var i4={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return r4(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):r4(n+1,2)},d(e,t){return r4(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return r4(e.getHours()%12||12,t.length)},H(e,t){return r4(e.getHours(),t.length)},m(e,t){return r4(e.getMinutes(),t.length)},s(e,t){return r4(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return r4(Math.trunc(r*10**(n-3)),t.length)}},a4={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},o4={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return i4.y(e,t)},Y:function(e,t,n,r){let i=e4(e,r),a=i>0?i:1-i;return t===`YY`?r4(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):r4(a,t.length)},R:function(e,t){return r4(A2(e),t.length)},u:function(e,t){return r4(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return r4(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return r4(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return i4.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return r4(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=n4(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):r4(i,t.length)},I:function(e,t,n){let r=$2(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):r4(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):i4.d(e,t)},D:function(e,t,n){let r=Q2(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):r4(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return r4(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return r4(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return r4(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?a4.noon:r===0?a4.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?a4.evening:r>=12?a4.afternoon:r>=4?a4.morning:a4.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return i4.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):i4.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):r4(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):r4(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):i4.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):i4.s(e,t)},S:function(e,t){return i4.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return c4(r);case`XXXX`:case`XX`:return l4(r);default:return l4(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return c4(r);case`xxxx`:case`xx`:return l4(r);default:return l4(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+s4(r,`:`);default:return`GMT`+l4(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+s4(r,`:`);default:return`GMT`+l4(r,`:`)}},t:function(e,t,n){return r4(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return r4(+e,t.length)}};function s4(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+r4(a,2)}function c4(e,t){return e%60==0?(e>0?`-`:`+`)+r4(Math.abs(e)/60,2):l4(e,t)}function l4(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=r4(Math.trunc(r/60),2),a=r4(r%60,2);return n+i+t+a}var u4=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},d4=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},f4={p:d4,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return u4(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,u4(r,t)).replace(`{{time}}`,d4(i,t))}},p4=/^D+$/,m4=/^Y+$/,h4=[`D`,`DD`,`YY`,`YYYY`];function g4(e){return p4.test(e)}function _4(e){return m4.test(e)}function v4(e,t,n){let r=y4(e,t,n);if(console.warn(r),h4.includes(e))throw RangeError(r)}function y4(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var b4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S4=/^'([^]*?)'?$/,C4=/''/g,w4=/[a-zA-Z]/;function T4(e,t,n){let r=D2(),i=n?.locale??r.locale??Z2,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=w2(e,n?.in);if(!L2(s))throw RangeError(`Invalid time value`);let c=t.match(x4).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=f4[t];return n(e,i.formatLong)}return e}).join(``).match(b4).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:E4(e)};if(o4[t])return{isToken:!0,value:e};if(t.match(w4))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&_4(a)||!n?.useAdditionalDayOfYearTokens&&g4(a))&&v4(a,t,String(e));let o=o4[a[0]];return o(s,a,i.localize,l)}).join(``)}function E4(e){let t=e.match(S4);return t?t[1].replace(C4,`'`):e}function D4(e,t,n){return T2(e,-t,n)}function O4({open:e,title:t,description:n,confirmText:r=`确认`,cancelText:i=`取消`,variant:a=`default`,loading:o=!1,onConfirm:s,onCancel:c}){if((0,z.useEffect)(()=>{if(!e)return;let t=e=>{e.key===`Escape`&&c(),e.key===`Enter`&&s()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,s,c]),!e)return null;let l=a===`danger`?Rc:a===`warning`?Bc:uc,u=a===`danger`?`text-red-500`:a===`warning`?`text-amber-500`:`text-blue-500`;return(0,B.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm`,onClick:c,children:(0,B.jsxs)(`div`,{className:`bg-white rounded-xl shadow-xl w-full max-w-md mx-4 p-6`,onClick:e=>e.stopPropagation(),children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,B.jsx)(`div`,{className:q(`flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center`,a===`danger`?`bg-red-50`:a===`warning`?`bg-amber-50`:`bg-blue-50`),children:(0,B.jsx)(l,{className:q(`h-5 w-5`,u)})}),(0,B.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,B.jsx)(`h3`,{className:`text-base font-semibold text-gray-900`,children:t}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-gray-500 leading-relaxed`,children:n})]})]}),(0,B.jsxs)(`div`,{className:`flex justify-end gap-3 mt-6`,children:[(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,onClick:c,disabled:o,children:i}),(0,B.jsx)(Y,{variant:a===`danger`?`danger`:`primary`,size:`sm`,onClick:s,loading:o,children:r})]})]})})}var k4={PreToolUse:`#3b82f6`,PostToolUse:`#10b981`,UserPromptSubmit:`#f59e0b`,Stop:`#ef4444`,Notification:`#8b5cf6`};function A4(){let e=Pn(),t=qe(),[n,r]=(0,z.useState)(!1),i=(0,z.useRef)(null),[a,o]=(0,z.useState)({open:!1,title:``,description:``,onConfirm:()=>{}}),{data:s}=ct({queryKey:[`daemon-status`],queryFn:()=>Jl().then(e=>e.data),refetchInterval:3e4}),{data:c}=ct({queryKey:[`pipelines-active`],queryFn:()=>wl().then(e=>e.data),refetchInterval:3e4}),{data:l}=ct({queryKey:[`overview`],queryFn:()=>pl().then(e=>e.data),refetchInterval:3e4}),{data:u}=ct({queryKey:[`roi-stats`],queryFn:()=>fl().then(e=>e.data),refetchInterval:6e4}),{data:d}=ct({queryKey:[`events-live`],queryFn:()=>ol({limit:20}).then(e=>e.data),refetchInterval:n?!1:3e4}),f=lt({mutationFn:e=>xl(e),onSuccess:()=>t.invalidateQueries({queryKey:[`pipelines-active`]})}),p=lt({mutationFn:()=>Cl(),onSuccess:()=>t.invalidateQueries({queryKey:[`pipelines-active`]})}),m=lt({mutationFn:()=>Kl(),onSuccess:()=>t.invalidateQueries({queryKey:[`overview`]})}),h=lt({mutationFn:()=>Yl()});(0,z.useEffect)(()=>{!n&&i.current&&i.current.scrollIntoView({behavior:`smooth`})},[d,n]);let g=(c?.total||0)>0,_=l?.recommendations?.find(e=>e.action===`/quality`);return(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(X,{className:`!p-3`,children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between flex-wrap gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4 text-sm flex-wrap`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,s?.running?`bg-green-500 animate-pulse`:`bg-red-500`)}),(0,B.jsx)(`span`,{className:`font-medium`,children:s?.running?`Daemon PID:${s.pid}`:`Daemon 离线`})]}),s?.uptime&&(0,B.jsxs)(`span`,{className:`text-gray-400`,children:[`运行 `,s.uptime.formatted]}),s?.memory&&(0,B.jsxs)(`span`,{className:`text-gray-400`,children:[`内存 `,s.memory.rss,`MB`]}),g&&(0,B.jsx)(Vx,{variant:`info`,children:`Pipeline 运行中`}),_&&(0,B.jsx)(Vx,{variant:`warning`,children:_.title})]}),(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Cc,onClick:()=>{o({open:!0,title:`重启 Daemon`,description:`确认重启 daemon?这将中断当前所有会话。`,onConfirm:()=>{h.mutate(),o(e=>({...e,open:!1}))}})},children:`重启`})]})}),g&&(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-gray-500 uppercase tracking-wider mb-3`,children:`当前运行中`}),(0,B.jsx)(`div`,{className:`space-y-3`,children:c?.items.map((t,n)=>(0,B.jsx)(Rx.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:(0,B.jsx)(X,{className:`border-l-4 border-l-blue-500 !p-4`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,B.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3 mb-2`,children:[(0,B.jsx)(cc,{className:`h-5 w-5 text-blue-500`}),(0,B.jsx)(Vx,{variant:`info`,children:t.phaseLabel}),(0,B.jsx)(`span`,{className:`text-sm text-gray-500`,children:t.projectPath?t.projectPath.split(`/`).pop():``})]}),(0,B.jsx)(`p`,{className:`text-sm text-gray-700 line-clamp-2`,children:t.requirement?.slice(0,150)}),(0,B.jsxs)(`p`,{className:`text-xs text-gray-400 mt-2`,children:[`创建于 `,t.updatedAt?T4(ef(t.updatedAt),`HH:mm:ss`):``]})]}),(0,B.jsxs)(`div`,{className:`flex gap-2 ml-4`,children:[(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,icon:nc,onClick:()=>e(`/pipelines/${t.id}`),children:`查看`}),(0,B.jsx)(Y,{variant:`danger`,size:`sm`,icon:Wc,onClick:()=>{o({open:!0,title:`关闭 Pipeline`,description:`确认关闭此 Pipeline?`,onConfirm:()=>{f.mutate(t.id),o(e=>({...e,open:!1}))}})},children:`关闭`})]})]})})},t.id))})]}),l?.recommendations&&l.recommendations.length>0&&(0,B.jsx)(`div`,{className:`space-y-2`,children:l.recommendations.map((t,n)=>(0,B.jsxs)(Rx.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:q(`flex items-center justify-between p-3 rounded-lg border cursor-pointer transition-all hover:shadow-sm`,t.type===`warning`?`bg-amber-50 border-amber-200`:`bg-blue-50 border-blue-200`),children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3 flex-1`,onClick:()=>e(t.action),children:[(0,B.jsx)(Bc,{className:q(`h-4 w-4`,t.type===`warning`?`text-amber-500`:`text-blue-500`)}),(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:t.title})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1`,children:[t.action===`/quality`&&(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Ls,onClick:e=>{e.stopPropagation(),m.mutate()},children:`修复`}),t.action===`/pipelines`&&(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Rc,onClick:e=>{e.stopPropagation(),p.mutate()},children:`清理`}),(0,B.jsx)(Os,{className:`h-4 w-4 text-gray-300`})]})]},n))}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-4`,children:[(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/sessions`),children:(0,B.jsx)(Bx,{title:`本周节省`,value:`${u?.week.timeSavedHours||0}h`,icon:qs,color:`blue`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/analytics`),children:(0,B.jsx)(Bx,{title:`Token 用量`,value:Qd(u?.week.tokensTotal||0),icon:Gc,color:`green`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/quality`),children:(0,B.jsx)(Bx,{title:`质量拦截`,value:u?.week.qualityBlocked||0,icon:kc,color:`purple`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/knowledge`),children:(0,B.jsx)(Bx,{title:`知识沉淀`,value:u?.totals.knowledgeNodes||0,icon:Ns,color:`orange`})})]}),(0,B.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,B.jsx)(X,{title:`7 天活动趋势`,children:(0,B.jsx)(fk,{width:`100%`,height:180,children:(0,B.jsxs)(_2,{data:u?.dailyTrend||[],children:[(0,B.jsx)(`defs`,{children:(0,B.jsxs)(`linearGradient`,{id:`gradE`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,B.jsx)(`stop`,{offset:`5%`,stopColor:`#3b82f6`,stopOpacity:.3}),(0,B.jsx)(`stop`,{offset:`95%`,stopColor:`#3b82f6`,stopOpacity:0})]})}),(0,B.jsx)($X,{strokeDasharray:`3 3`,stroke:`#e5e7eb`}),(0,B.jsx)(Q$,{dataKey:`date`,stroke:`#6b7280`}),(0,B.jsx)(p1,{stroke:`#6b7280`}),(0,B.jsx)(WW,{contentStyle:{borderRadius:`8px`,border:`1px solid #e5e7eb`}}),(0,B.jsx)(jQ,{type:`monotone`,dataKey:`events`,stroke:`#3b82f6`,fill:`url(#gradE)`,name:`事件`})]})})}),(0,B.jsx)(X,{title:`实时事件流`,action:(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:n?xc:yc,onClick:()=>r(!n),children:n?`继续`:`暂停`}),children:(0,B.jsxs)(`div`,{className:`h-[180px] overflow-y-auto text-xs font-mono space-y-1`,children:[d?.items.map((t,n)=>{let r=t.tool_input,i=r?.file_path?String(r.file_path).split(`/`).slice(-2).join(`/`):r?.command?String(r.command).slice(0,60):r?.pattern?String(r.pattern):t.hook_type===`UserPromptSubmit`?`用户输入`:``;return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 py-1 hover:bg-gray-50 rounded px-1 cursor-pointer`,onClick:()=>e(`/events`),children:[(0,B.jsx)(`span`,{className:`text-gray-400 w-14 flex-shrink-0`,children:T4(ef(t.timestamp),`HH:mm:ss`)}),(0,B.jsx)(`span`,{className:`w-2 h-2 rounded-full flex-shrink-0`,style:{backgroundColor:k4[t.hook_type]||`#6b7280`}}),(0,B.jsx)(`span`,{className:`text-gray-700 font-medium w-16 flex-shrink-0 truncate`,children:t.tool_name||t.hook_type}),(0,B.jsx)(`span`,{className:`text-gray-400 truncate flex-1`,children:i})]},`${t.id}-${n}`)}),(0,B.jsx)(`div`,{ref:i})]})})]}),(0,B.jsx)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-3`,children:[{label:`会话管理`,icon:Ts,path:`/sessions`,count:u?.week.sessions},{label:`流水线`,icon:cc,path:`/pipelines`,count:c?.total},{label:`质量门禁`,icon:kc,path:`/quality`,count:l?.recommendations?.find(e=>e.action===`/quality`)?`!`:`0`},{label:`知识图谱`,icon:Ns,path:`/knowledge`,count:u?.totals.knowledgeNodes}].map(t=>(0,B.jsx)(Rx.div,{whileHover:{scale:1.02},whileTap:{scale:.98},className:`bg-white rounded-xl p-4 border border-gray-100 cursor-pointer hover:border-blue-200 hover:shadow-sm transition-all`,onClick:()=>e(t.path),children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(t.icon,{className:`h-5 w-5 text-gray-500`}),(0,B.jsx)(`span`,{className:`text-sm font-medium text-gray-700`,children:t.label})]}),(0,B.jsx)(`span`,{className:`text-sm font-bold text-gray-900`,children:t.count??`-`})]})},t.path))}),(0,B.jsx)(O4,{open:a.open,title:a.title,description:a.description,variant:`warning`,onConfirm:a.onConfirm,onCancel:()=>o(e=>({...e,open:!1}))})]})}function j4({currentPage:e,totalPages:t,onPageChange:n,pageSize:r,onPageSizeChange:i,totalItems:a}){return(0,B.jsxs)(`div`,{className:`flex items-center justify-between px-4 py-3 border-t border-gray-200`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsxs)(`span`,{className:`text-sm text-gray-600`,children:[`显示 `,(e-1)*r+1,`-`,Math.min(e*r,a),` / 共 `,a,` 条`]}),(0,B.jsxs)(`select`,{value:r,onChange:e=>i(Number(e.target.value)),className:`px-3 py-1.5 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[(0,B.jsx)(`option`,{value:10,children:`10 条/页`}),(0,B.jsx)(`option`,{value:20,children:`20 条/页`}),(0,B.jsx)(`option`,{value:50,children:`50 条/页`}),(0,B.jsx)(`option`,{value:100,children:`100 条/页`})]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:zs,onClick:()=>n(e-1),disabled:e===1,children:`上一页`}),(0,B.jsx)(`div`,{className:`flex items-center gap-1`,children:Array.from({length:Math.min(t,7)},(r,i)=>{let a;return a=t<=7||e<=4?i+1:e>=t-3?t-6+i:e-3+i,(0,B.jsx)(`button`,{onClick:()=>n(a),className:`px-3 py-1.5 text-sm rounded-lg transition-colors ${e===a?`bg-blue-600 text-white`:`text-gray-600 hover:bg-gray-100`}`,children:a},a)})}),(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Bs,onClick:()=>n(e+1),disabled:e===t,children:`下一页`})]})]})}function M4(e,t,n){let r=e=>{let t=e==null?``:String(e);return t.includes(`,`)||t.includes(`"`)||t.includes(`
|
|
62
|
+
${b.x},${b.y}`,S=tw(e.id)?XC(`recharts-radial-line-`):e.id;return z.createElement(`text`,cK({},r,{dominantBaseline:`central`,className:Eu(`recharts-radial-bar-label`,o)}),z.createElement(`defs`,null,z.createElement(`path`,{id:S,d:x})),z.createElement(`textPath`,{xlinkHref:`#${S}`},n))},vK=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c}=e,l=(s+c)/2;if(n===`outside`){var{x:u,y:d}=rN(r,i,o+t,l);return{x:u,y:d,textAnchor:u>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var{x:f,y:p}=rN(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},yK=e=>e!=null&&`cx`in e&&Z(e.cx),bK={angle:0,offset:5,zIndex:lP.label,position:`middle`,textBreakAll:!1};function xK(e){if(!yK(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function SK(e){var t=Tw(e,bK),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=pK(),f=dK(),p=n==null?i===`center`?f:d??f:yK(n)?n:pk(n),m,h,g=xK(p);if(!p||tw(a)&&tw(o)&&!(0,z.isValidElement)(s)&&typeof s!=`function`)return null;var _=iK(iK({},t),{},{viewBox:p});if((0,z.isValidElement)(s)){var{labelRef:v}=_;return(0,z.cloneElement)(s,tK(_,$G))}if(typeof s==`function`){var{content:y}=_;if(m=(0,z.createElement)(s,tK(_,eK)),(0,z.isValidElement)(m))return m}else m=mK(t);var b=Xx(t);if(yK(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return _K(t,i,m,b,p);h=vK(p,t.offset,t.position)}else{if(!g)return null;var x=QG({viewBox:g,position:i,offset:t.offset,parentViewBox:yK(r)?void 0:r,clamp:!0});h=iK(iK({x:x.x,y:x.y,textAnchor:x.horizontalAnchor,verticalAnchor:x.verticalAnchor},x.width===void 0?{}:{width:x.width}),x.height===void 0?{}:{height:x.height})}return z.createElement(QU,{zIndex:t.zIndex},z.createElement(KG,cK({ref:u,className:Eu(`recharts-label`,c)},b,h,{textAnchor:FG(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}SK.displayName=`Label`;var CK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?z.createElement(SK,cK({key:`label-implicit`},r)):JC(e)?z.createElement(SK,cK({key:`label-implicit`,value:e},r)):(0,z.isValidElement)(e)?e.type===SK?(0,z.cloneElement)(e,iK({key:`label-implicit`},r)):z.createElement(SK,cK({key:`label-implicit`,content:e},r)):hK(e)?z.createElement(SK,cK({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?z.createElement(SK,cK({},e,{key:`label-implicit`},r)):null};function wK(e){var{label:t,labelRef:n}=e;return CK(t,dK(),n)||null}var TK=[`valueAccessor`],EK=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function DK(){return DK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DK.apply(null,arguments)}function OK(e,t){if(e==null)return{};var n,r,i=kK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var AK=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(IG(t))return t},jK=(0,z.createContext)(void 0),MK=jK.Provider,NK=(0,z.createContext)(void 0),PK=NK.Provider;function FK(){return(0,z.useContext)(jK)}function IK(){return(0,z.useContext)(NK)}function LK(e){var{valueAccessor:t=AK}=e,n=OK(e,TK),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=OK(n,EK),l=FK(),u=IK(),d=l||u;return!d||!d.length?null:z.createElement(QU,{zIndex:s??lP.label},z.createElement(sS,{className:`recharts-label-list`},d.map((e,i)=>{var s=tw(r)?t(e,i):qD(e.payload,r),l=tw(a)?{}:{id:`${a}-${i}`};return z.createElement(SK,DK({key:`label-${i}`},Xx(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}LK.displayName=`LabelList`;function RK(e){var{label:t}=e;return t?t===!0?z.createElement(LK,{key:`labelList-implicit`}):z.isValidElement(t)||hK(t)?z.createElement(LK,{key:`labelList-implicit`,content:t}):typeof t==`object`?z.createElement(LK,DK({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}function zK(){return zK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zK.apply(null,arguments)}var BK=e=>{var{cx:t,cy:n,r,className:i}=e,a=Eu(`recharts-dot`,i);return Z(t)&&Z(n)&&Z(r)?z.createElement(`circle`,zK({},Jx(e),xw(e),{className:a,cx:t,cy:n,r})):null},VK=e=>e.graphicalItems.polarItems,HK=$([VK,jz,$([AP,jP],Fz)],Rz),UK=$([$([HK],Uz),MN],Kz),WK=$([UK,jz,HK],Jz);$([UK,jz,HK],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>({value:qD(e,t.dataKey??n.dataKey),errorDomain:[]}))).filter(Boolean):t?.dataKey==null?e.map(e=>({value:e,errorDomain:[]})):e.map(e=>({value:qD(e,t.dataKey),errorDomain:[]})));var GK=()=>void 0,KK=$([jz,bk,UK,WK,nP,AP,$([jz,fB,pB,GK,$([UK,jz,HK,hB,AP,IN],vB),GK,bk,AP],LB)],BB);$([HB,$([jz,KK,$([KK,Nz,HB],UB),AP],GB)],VP);var qK=ZE({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=mA(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=mA(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Oie,removeRadiusAxis:kie,addAngleAxis:Aie,removeAngleAxis:jie}=qK.actions,JK=qK.reducer;function YK(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}function XK(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 ZK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XK(Object(n),!0).forEach(function(t){QK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QK(e,t,n){return(t=$K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $K(e){var t=eq(e,`string`);return typeof t==`symbol`?t:t+``}function eq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tq=$([VK,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`pie`).find(e=>e.id===t)),nq=[],rq=(e,t,n)=>n?.length===0?nq:n,iq=$([MN,tq,rq],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i=t?.data!=null&&t.data.length>0?t.data:r;if((!i||!i.length)&&n!=null&&(i=n.map(e=>ZK(ZK({},t.presentationProps),e.props))),i!=null)return i}}),aq=$([iq,tq,rq],(e,t,n)=>{if(!(e==null||t==null))return e.map((e,r)=>{var i,a=qD(e,t.nameKey,t.name),o=n!=null&&(i=n[r])!=null&&(i=i.props)!=null&&i.fill?n[r].props.fill:typeof e==`object`&&e&&`fill`in e?e.fill:t.fill;return{value:fO(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),oq=$([iq,tq,rq,NO],(e,t,n,r)=>{if(!(t==null||e==null))return IJ({offset:r,pieSettings:t,displayedData:e,cells:n})}),sq=s((e=>{var t=Symbol.for(`react.transitional.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.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`);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 l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),cq=s(((e,t)=>{t.exports=sq()}))(),lq=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,uq=null,dq=null,fq=e=>{if(e===uq&&Array.isArray(dq))return dq;var t=[];return z.Children.forEach(e,e=>{tw(e)||((0,cq.isFragment)(e)?t=t.concat(fq(e.props.children)):t.push(e))}),dq=t,uq=e,t};function pq(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>lq(e)):[lq(t)],fq(e).forEach(e=>{var t=(0,WC.default)(e,`type.displayName`)||(0,WC.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var mq=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0,hq=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),gq=s(((e,t)=>{t.exports=hq().isPlainObject})),_q,vq,yq,bq,xq;function Sq(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 Cq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sq(Object(n),!0).forEach(function(t){wq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wq(e,t,n){return(t=Tq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tq(e){var t=Eq(e,`string`);return typeof t==`symbol`?t:t+``}function Eq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Dq(){return Dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dq.apply(null,arguments)}function Oq(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var kq=(e,t,n,r,i)=>{var a=n-r,o=UC(_q||=Oq([`M `,`,`,``]),e,t);return o+=UC(vq||=Oq([`L `,`,`,``]),e+n,t),o+=UC(yq||=Oq([`L `,`,`,``]),e+n-a/2,t+i),o+=UC(bq||=Oq([`L `,`,`,``]),e+n-a/2-r,t+i),o+=UC(xq||=Oq([`L `,`,`,` Z`]),e,t),o},Aq={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},jq=e=>{var t=Tw(e,Aq),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,z.useRef)(null),[p,m]=(0,z.useState)(-1),h=(0,z.useRef)(i),g=(0,z.useRef)(a),_=(0,z.useRef)(o),v=(0,z.useRef)(n),y=(0,z.useRef)(r),b=TM(e,`trapezoid-`);if((0,z.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=Eu(`recharts-trapezoid`,s);if(!d)return z.createElement(`g`,null,z.createElement(`path`,Dq({},Xx(t),{className:x,d:kq(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=Kj([`strokeDasharray`],l,c);return z.createElement(wM,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=$C(S,i,e),c=$C(C,a,e),l=$C(w,o,e),u=$C(T,n,e),d=$C(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return z.createElement(`path`,Dq({},Xx(t),{className:x,d:kq(u,d,s,c,l),ref:f,style:Cq(Cq({},p),t.style)}))})},Mq=u(gq()),Nq=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function Pq(e,t){if(e==null)return{};var n,r,i=Fq(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fq(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Iq(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 Lq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Iq(Object(n),!0).forEach(function(t){Rq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rq(e,t,n){return(t=zq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zq(e){var t=Bq(e,`string`);return typeof t==`symbol`?t:t+``}function Bq(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vq(e,t){return Lq(Lq({},t),e)}function Hq(e,t){return e===`symbols`}function Uq(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return z.createElement(YM,n);case`trapezoid`:return z.createElement(jq,n);case`sector`:return z.createElement(TN,n);case`symbols`:if(Hq(t,n))return z.createElement(yw,n);break;case`curve`:return z.createElement(Dj,n);default:return null}}function Wq(e){return(0,z.isValidElement)(e)?e.props:e}function Gq(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=Pq(e,Nq),o;if((0,z.isValidElement)(t))o=(0,z.cloneElement)(t,Lq(Lq({},a),Wq(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,Mq.default)(t)&&typeof t!=`boolean`){var s=Vq(t,a);o=z.createElement(Uq,{shapeType:n,elementProps:s})}else{var c=a;o=z.createElement(Uq,{shapeType:n,elementProps:c})}return a.isActive?z.createElement(sS,{className:r},o):z.createElement(sS,{className:i},o)}var Kq=(e,t,n)=>{var r=Ww();return(i,a)=>o=>{e?.(i,a,o),r(HV({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},qq=e=>{var t=Ww();return(n,r)=>i=>{e?.(n,r,i),t(UV())}},Jq=(e,t,n)=>{var r=Ww();return(i,a)=>o=>{e?.(i,a,o),r(GV({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function Yq(e){var{tooltipEntrySettings:t}=e,n=Ww(),r=LO(),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r||(i.current===null?n(RV(t)):i.current!==t&&n(zV({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(BV(i.current)),null)},[n]),null}function Xq(e){var{legendPayload:t}=e,n=Ww(),r=LO(),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r||(i.current===null?n(_A(t)):i.current!==t&&n(vA({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(yA(i.current)),null)},[n]),null}function Zq(e){var{legendPayload:t}=e,n=Ww(),r=Q(bk),i=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{r!==`centric`&&r!==`radial`||(i.current===null?n(_A(t)):i.current!==t&&n(vA({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,z.useLayoutEffect)(()=>()=>{i.current&&=(n(yA(i.current)),null)},[n]),null}var Qq=z.useId??(()=>{var[e]=z.useState(()=>XC(`uid-`));return e});function $q(e,t){var n=Qq();return t||(e?`${e}-${n}`:n)}var eJ=(0,z.createContext)(void 0),tJ=e=>{var{id:t,type:n,children:r}=e,i=$q(`recharts-${n}`,t);return z.createElement(eJ.Provider,{value:i},r(i))},nJ=ZE({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(mA(t.payload))},prepare:LE()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=CE(e).cartesianItems.indexOf(mA(n));i>-1&&(e.cartesianItems[i]=mA(r))},prepare:LE()},removeCartesianGraphicalItem:{reducer(e,t){var n=CE(e).cartesianItems.indexOf(mA(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:LE()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(mA(t.payload))},prepare:LE()},removePolarGraphicalItem:{reducer(e,t){var n=CE(e).polarItems.indexOf(mA(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:LE()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=CE(e).polarItems.indexOf(mA(n));i>-1&&(e.polarItems[i]=mA(r))},prepare:LE()}}}),{addCartesianGraphicalItem:rJ,replaceCartesianGraphicalItem:iJ,removeCartesianGraphicalItem:aJ,addPolarGraphicalItem:oJ,removePolarGraphicalItem:sJ,replacePolarGraphicalItem:cJ}=nJ.actions,lJ=nJ.reducer,uJ=(0,z.memo)(e=>{var t=Ww(),n=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{n.current===null?t(rJ(e)):n.current!==e&&t(iJ({prev:n.current,next:e})),n.current=e},[t,e]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(aJ(n.current)),null)},[t]),null}),dJ=(0,z.memo)(e=>{var t=Ww(),n=(0,z.useRef)(null);return(0,z.useLayoutEffect)(()=>{n.current===null?t(oJ(e)):n.current!==e&&t(cJ({prev:n.current,next:e})),n.current=e},[t,e]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(sJ(n.current)),null)},[t]),null}),fJ=[`key`],pJ=[`onMouseEnter`,`onClick`,`onMouseLeave`],mJ=[`id`],hJ=[`id`];function gJ(){return gJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gJ.apply(null,arguments)}function _J(e,t){if(e==null)return{};var n,r,i=vJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yJ(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 bJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yJ(Object(n),!0).forEach(function(t){xJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xJ(e,t,n){return(t=SJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SJ(e){var t=CJ(e,`string`);return typeof t==`symbol`?t:t+``}function CJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wJ(e){var t=(0,z.useMemo)(()=>pq(e.children,GW),[e.children]),n=Q(n=>aq(n,e.id,t));return n==null?null:z.createElement(Zq,{legendPayload:n})}function TJ(e){if(!(e==null||typeof e==`boolean`||typeof e==`function`)){if(z.isValidElement(e)){var t=e.props?.fill;return typeof t==`string`?t:void 0}var{fill:n}=e;return typeof n==`string`?n:void 0}}var EJ=z.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:c,tooltipType:l,id:u,activeShape:d}=e,f=TJ(d),p={dataDefinedOnItem:r.map(e=>{var t=e.tooltipPayload;return f==null||t==null?t:t.map(e=>bJ(bJ({},e),{},{color:f,fill:f}))}),getPosition:e=>r[Number(e)]?.tooltipPosition,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:fO(s,t),hide:c,type:l,color:o,unit:``,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:p})}),DJ=(e,t)=>e>t?`start`:e<t?`end`:`middle`,OJ=(e,t,n)=>ZC(typeof t==`function`?t(e):t,n,n*.8),kJ=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=iN(a,o);return{cx:i+ZC(e.cx,a,a/2),cy:r+ZC(e.cy,o,o/2),innerRadius:ZC(e.innerRadius,s,0),outerRadius:OJ(n,e.outerRadius,s),maxRadius:e.maxRadius||Math.sqrt(a*a+o*o)/2}},AJ=(e,t)=>GC(t-e)*Math.min(Math.abs(t-e),360),jJ=(e,t)=>{if(z.isValidElement(e))return z.cloneElement(e,t);if(typeof e==`function`)return e(t);var n=Eu(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className),{key:r}=t,i=_J(t,fJ);return z.createElement(Dj,gJ({},i,{type:`linear`,className:n}))},MJ=(e,t,n)=>{if(z.isValidElement(e))return z.cloneElement(e,t);var r=n;if(typeof e==`function`&&(r=e(t),z.isValidElement(r)))return r;var i=Eu(`recharts-pie-label-text`,YK(e));return z.createElement(KG,gJ({},t,{alignmentBaseline:`middle`,className:i}),r)};function NJ(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=Jx(n),c=Yx(i),l=Yx(a),u=typeof i==`object`&&`offsetRadius`in i&&typeof i.offsetRadius==`number`&&i.offsetRadius||20,d=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=rN(e.cx,e.cy,e.outerRadius+u,n),d=bJ(bJ(bJ(bJ({},s),e),{},{stroke:`none`},c),{},{index:t,textAnchor:DJ(r.x,e.cx)},r),f=bJ(bJ(bJ(bJ({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:t,points:[rN(e.cx,e.cy,e.outerRadius,n),r],key:`line`});return z.createElement(QU,{zIndex:lP.label,key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`},z.createElement(sS,null,a&&jJ(a,f),MJ(i,d,qD(e,o))))});return z.createElement(sS,{className:`recharts-pie-labels`},d)}function PJ(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i==`object`&&i&&`position`in i?z.createElement(RK,{label:i}):z.createElement(NJ,{sectors:t,props:n,showLabels:r})}function FJ(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:a,id:o}=e,s=Q(YH),c=Q(ZH),l=Q(QH),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,p=_J(i,pJ),m=Kq(u,i.dataKey,o),h=qq(f),g=Jq(d,i.dataKey,o);return t==null||t.length===0?null:z.createElement(z.Fragment,null,t.map((e,u)=>{if(e?.startAngle===0&&e?.endAngle===0&&t.length!==1)return null;var d=l==null||l===o,f=String(u)===s&&(c==null||i.dataKey===c)&&d,_=n&&f?n:s?r:null,v=bJ(bJ({},e),{},{stroke:e.stroke,tabIndex:-1,[xO]:u,[SO]:o});return z.createElement(sS,gJ({key:`sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${u}`,tabIndex:-1,className:`recharts-pie-sector`},Cw(p,e,u),{onMouseEnter:m(e,u),onMouseLeave:h(e,u),onClick:g(e,u)}),z.createElement(Gq,gJ({option:a??_,index:u,shapeType:`sector`,isActive:f},v)))}))}function IJ(e){var{pieSettings:t,displayedData:n,cells:r,offset:i}=e,{cornerRadius:a,startAngle:o,endAngle:s,dataKey:c,nameKey:l,tooltipType:u}=t,d=Math.abs(t.minAngle),f=AJ(o,s),p=Math.abs(f),m=n.length<=1?0:t.paddingAngle??0,h=n.filter(e=>qD(e,c,0)!==0).length,g=(p>=360?h:h-1)*m,_=n.reduce((e,t)=>{var n=qD(t,c,0);return e+(Z(n)?n:0)},0),v=d>0&&_>0&&n.some(e=>{var t=qD(e,c,0),n=(Z(t)?t:0)/_;return t!==0&&n*p<d})?d:0,y=p-h*v-g,b;if(_>0){var x;b=n.map((e,n)=>{var s=qD(e,c,0),d=qD(e,l,n),p=kJ(t,i,e),h=(Z(s)?s:0)/_,g,b=bJ(bJ({},e),r&&r[n]&&r[n].props),S=b!=null&&`fill`in b&&typeof b.fill==`string`?b.fill:t.fill;g=n?x.endAngle+GC(f)*m*(s===0?0:1):o;var C=g+GC(f)*((s===0?0:v)+h*y),w=(g+C)/2,T=(p.innerRadius+p.outerRadius)/2,E=[{name:d,value:s,payload:b,dataKey:c,type:u,color:S,fill:S,graphicalItemId:t.id}],D=rN(p.cx,p.cy,T,w);return x=bJ(bJ(bJ(bJ({},t.presentationProps),{},{percent:h,cornerRadius:typeof a==`string`?parseFloat(a):a,name:d,tooltipPayload:E,midAngle:w,middleRadius:T,tooltipPosition:D},b),p),{},{value:s,dataKey:c,startAngle:g,endAngle:C,payload:b,paddingAngle:s===0?0:GC(f)*m}),x})}return b}function LJ(e){var{showLabels:t,sectors:n,children:r}=e,i=(0,z.useMemo)(()=>!t||!n?[]:n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})),[n,t]);return z.createElement(PK,{value:t?i:void 0},r)}function RJ(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,activeShape:l,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,p=TM(t,`recharts-pie-`),m=n.current,[h,g]=(0,z.useState)(!1),_=(0,z.useCallback)(()=>{typeof f==`function`&&f(),g(!1)},[f]),v=(0,z.useCallback)(()=>{typeof d==`function`&&d(),g(!0)},[d]);return z.createElement(LJ,{showLabels:!h,sectors:i},z.createElement(wM,{animationId:p,begin:o,duration:s,isActive:a,easing:c,onAnimationStart:v,onAnimationEnd:_,key:p},e=>{var a=[],o=(i&&i[0])?.startAngle??0;return i?.forEach((t,n)=>{var r=m&&m[n],i=n>0?(0,WC.default)(t,`paddingAngle`,0):0;if(r){var s=$C(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),c=bJ(bJ({},t),{},{startAngle:o+i,endAngle:o+s+i});a.push(c),o=c.endAngle}else{var{endAngle:l,startAngle:u}=t,d=$C(0,l-u,e),f=bJ(bJ({},t),{},{startAngle:o+i,endAngle:o+d+i});a.push(f),o=f.endAngle}}),n.current=a,z.createElement(sS,null,z.createElement(FJ,{sectors:a,activeShape:l,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),z.createElement(PJ,{showLabels:!h,sectors:i,props:t}),t.children)}var zJ={animationBegin:400,animationDuration:1500,animationEasing:`ease`,cx:`50%`,cy:`50%`,dataKey:`value`,endAngle:360,fill:`#808080`,hide:!1,innerRadius:0,isAnimationActive:`auto`,label:!1,labelLine:!0,legendType:`rect`,minAngle:0,nameKey:`name`,outerRadius:`80%`,paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:`#fff`,zIndex:lP.area};function BJ(e){var{id:t}=e,n=_J(e,mJ),{hide:r,className:i,rootTabIndex:a}=e,o=(0,z.useMemo)(()=>pq(e.children,GW),[e.children]),s=Q(e=>oq(e,t,o)),c=(0,z.useRef)(null),l=Eu(`recharts-pie`,i);return r||s==null?(c.current=null,z.createElement(sS,{tabIndex:a,className:l})):z.createElement(QU,{zIndex:e.zIndex},z.createElement(EJ,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),z.createElement(sS,{tabIndex:a,className:l},z.createElement(RJ,{props:bJ(bJ({},n),{},{sectors:s}),previousSectorsRef:c,id:t})))}function VJ(e){var t=Tw(e,zJ),{id:n}=t,r=_J(t,hJ),i=Jx(r);return z.createElement(tJ,{id:n,type:`pie`},e=>z.createElement(z.Fragment,null,z.createElement(dJ,{type:`pie`,id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),z.createElement(wJ,gJ({},r,{id:e})),z.createElement(BJ,gJ({},r,{id:e}))))}var HJ=VJ;HJ.displayName=`Pie`;var UJ=[`points`];function WJ(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 GJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WJ(Object(n),!0).forEach(function(t){KJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KJ(e,t,n){return(t=qJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qJ(e){var t=JJ(e,`string`);return typeof t==`symbol`?t:t+``}function JJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YJ(){return YJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YJ.apply(null,arguments)}function XJ(e,t){if(e==null)return{};var n,r,i=ZJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QJ(e){var{option:t,dotProps:n,className:r}=e;if((0,z.isValidElement)(t))return(0,z.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=Eu(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=XJ(a,UJ);return z.createElement(BK,YJ({},s,{className:i}))}function $J(e,t){return e==null?!1:t?!0:e.length===1}function eY(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:o,needClip:s,clipPathId:c,zIndex:l=lP.scatter}=e;if(!$J(t,n))return null;var u=mq(n),d=Zx(n),f=t.map((e,r)=>{var s=GJ(GJ(GJ({r:3},o),d),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return z.createElement(QJ,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),p={};return s&&c!=null&&(p.clipPath=`url(#clipPath-${u?``:`dots-`}${c})`),z.createElement(QU,{zIndex:l},z.createElement(sS,YJ({className:r},p),f))}function tY(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 nY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tY(Object(n),!0).forEach(function(t){rY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rY(e,t,n){return(t=iY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iY(e){var t=aY(e,`string`);return typeof t==`symbol`?t:t+``}function aY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var oY=ZE({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=mA(r))},prepare:LE()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:LE()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=mA(r))},prepare:LE()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:LE()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=mA(t.payload)},prepare:LE()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=mA(r))},prepare:LE()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:LE()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&r===a[1]&&r!==i.width&&Math.abs(r-(a[0]??0))<=1)return;var o=[...a,r].slice(-3);e.yAxis[n]=nY(nY({},i),{},{width:r,widthHistory:o})}}}}),{addXAxis:sY,replaceXAxis:cY,removeXAxis:lY,addYAxis:uY,replaceYAxis:dY,removeYAxis:fY,addZAxis:Mie,replaceZAxis:Nie,removeZAxis:Pie,updateYAxisWidth:pY}=oY.actions,mY=oY.reducer,hY=$([$([NO],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),hO,gO],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),gY=()=>Q(hY),_Y=()=>Q(nU);function vY(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 yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vY(Object(n),!0).forEach(function(t){bY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bY(e,t,n){return(t=xY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xY(e){var t=SY(e,`string`);return typeof t==`symbol`?t:t+``}function SY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var CY=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=yY(yY(yY({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),Yx(i)),xw(i)),c=(0,z.isValidElement)(i)?(0,z.cloneElement)(i,s):typeof i==`function`?i(s):z.createElement(BK,s);return z.createElement(sS,{className:`recharts-active-dot`,clipPath:o},c)};function wY(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:o=lP.activeDot}=e,s=Q(YH),c=_Y();if(t==null||c==null)return null;var l=t.find(e=>c.includes(e.payload));return tw(l)?null:z.createElement(QU,{zIndex:o},z.createElement(CY,{point:l,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var TY=(e,t,n)=>{var r=n??e;if(!tw(r))return ZC(r,t,0)},EY=(e,t,n)=>{var r={},i=e.filter(PP),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map(e=>e.dataKey),barSize:TY(t,n,i[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:TY(t,n,e.barSize)}));return[...s,...c]};function DY(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 OY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DY(Object(n),!0).forEach(function(t){kY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kY(e,t,n){return(t=AY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AY(e){var t=jY(e,`string`);return typeof t==`symbol`?t:t+``}function jY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MY(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=ZC(e,n,0,!0),s,c=[];if(BD(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:((n-d)/2>>0)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=ZC(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m>>=0);var h=BD(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var NY=(e,t,n,r,i,a,o)=>{var s=tw(o)?t:o,c=MY(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>OY(OY({},e),{},{position:OY(OY({},e.position),{},{offset:e.position.offset-i/2})}))),c},PY=(e,t)=>{var n=MP(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===n)}}}},FY=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function IY(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&BD(e.zIndex)?e.zIndex:t}var LY=e=>{var{chartData:t}=e,n=Ww(),r=LO();return(0,z.useEffect)(()=>r?()=>{}:(n(bW(t)),()=>{n(bW(void 0))}),[t,n,r]),null},RY={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},zY=ZE({name:`brush`,initialState:RY,reducers:{setBrushSettings(e,t){return t.payload==null?RY:t.payload}}}),{setBrushSettings:Fie}=zY.actions,BY=zY.reducer;function VY(e){return(e%180+180)%180}var HY=function(e){var{width:t,height:n}=e,r=VY(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},UY=ZE({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=CE(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=CE(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(mA(t.payload))},removeLine:(e,t)=>{var n=CE(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Iie,removeDot:Lie,addArea:Rie,removeArea:zie,addLine:Bie,removeLine:Vie}=UY.actions,WY=UY.reducer,GY=(0,z.createContext)(void 0),KY=e=>{var{children:t}=e,[n]=(0,z.useState)(`${XC(`recharts`)}-clip`),r=gY();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return z.createElement(GY.Provider,{value:n},z.createElement(`defs`,null,z.createElement(`clipPath`,{id:n},z.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)};function qY(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function JY(e,t,n){return HY({width:e.width+t.width,height:e.height+t.height},n)}function YY(e,t,n){var r=n===`width`,{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function XY(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function ZY(e,t){return qY(e,t+1)}function QY(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:qY(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||XY(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function $Y(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var{start:o,end:s}=t,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||XY(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}function eX(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 tX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eX(Object(n),!0).forEach(function(t){nX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nX(e,t,n){return(t=rX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rX(e){var t=iX(e,`string`);return typeof t==`symbol`?t:t+``}function iX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aX(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:c}=t,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=tX(tX({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=tX(tX({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&XY(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=tX(tX({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function oX(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:c,end:l}=t;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=tX(tX({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&XY(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=tX(tX({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=tX(tX({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=tX(tX({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&XY(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=tX(tX({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function sX(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:c,tickFormatter:l,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(Z(c)||nj.isSsr)return ZY(i,Z(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?sG(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?JY(sG(i,{fontSize:t,letterSpacing:n}),m,d):sG(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?GC(_.coordinate-g.coordinate):1,y=YY(a,v,p);return c===`equidistantPreserveStart`?QY(v,y,h,i,o):c===`equidistantPreserveEnd`?$Y(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?oX(v,y,h,i,o,c===`preserveStartEnd`):aX(v,y,h,i,o),f.filter(e=>e.isShow))}var cX=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var s=n?n.getBoundingClientRect().width:0,c=i+a,l=o+c+s+(n?r:0);return Math.round(l)}return 0},lX=ZE({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=mA(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:uX,removeRenderedTicks:dX}=lX.actions,fX=lX.reducer,pX=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function mX(e,t){if(e==null)return{};var n,r,i=hX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gX(){return gX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gX.apply(null,arguments)}function _X(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 vX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_X(Object(n),!0).forEach(function(t){yX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yX(e,t,n){return(t=bX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bX(e){var t=xX(e,`string`);return typeof t==`symbol`?t:t+``}function xX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SX={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:lP.axis};function CX(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var l=vX(vX(vX({},c),Jx(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=vX(vX({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=vX(vX({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return z.createElement(`line`,gX({},l,{className:Eu(`recharts-cartesian-axis-line`,(0,WC.default)(s,`className`))}))}function wX(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=Z(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function TX(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function EX(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function DX(e){var{option:t,tickProps:n,value:r}=e,i,a=Eu(n.className,`recharts-cartesian-axis-tick-value`);if(z.isValidElement(t))i=z.cloneElement(t,vX(vX({},n),{},{className:a}));else if(typeof t==`function`)i=t(vX(vX({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=Eu(o,YK(t))),i=z.createElement(KG,gX({},n,{className:o}),r)}return i}function OX(e){var{ticks:t,axisType:n,axisId:r}=e,i=Ww();return(0,z.useEffect)(()=>r==null||n==null?iw:(i(uX({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(dX({axisId:r,axisType:n}))}),[i,t,r,n]),null}var kX=(0,z.forwardRef)((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:o,unit:s,padding:c,tickTextProps:l,orientation:u,mirror:d,x:f,y:p,width:m,height:h,tickSize:g,tickMargin:_,fontSize:v,letterSpacing:y,getTicksConfig:b,events:x,axisType:S,axisId:C}=e,w=sX(vX(vX({},b),{},{ticks:n}),v,y),T=Jx(b),E=Yx(r),D=FG(T.textAnchor)?T.textAnchor:TX(u,d),O=EX(u,d),k={};typeof i==`object`&&(k=i);var A=vX(vX({},T),{},{fill:`none`},k),j=w.map(e=>vX({entry:e},wX(e,f,p,m,h,u,g,d,_))),M=j.map(e=>{var{entry:t,line:n}=e;return z.createElement(sS,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},i&&z.createElement(`line`,gX({},A,n,{className:Eu(`recharts-cartesian-axis-tick-line`,(0,WC.default)(i,`className`))})))}),N=j.map((e,t)=>{var{entry:n,tick:i}=e,u=vX(vX({},vX(vX(vX(vX({verticalAnchor:O},T),{},{textAnchor:D,stroke:`none`,fill:a},i),{},{index:t,payload:n,visibleTicksCount:w.length,tickFormatter:o,padding:c},l),{},{angle:l?.angle??T.angle??0})),E);return z.createElement(sS,gX({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},Cw(x,n,t)),r&&z.createElement(DX,{option:r,tickProps:u,value:`${typeof o==`function`?o(n.value,t):n.value}${s||``}`}))});return z.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${S}-ticks`},z.createElement(OX,{ticks:w,axisId:C,axisType:S}),N.length>0&&z.createElement(QU,{zIndex:lP.label},z.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref:t},N)),M.length>0&&z.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines`},M))}),AX=(0,z.forwardRef)((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:o,ticks:s,axisType:c,axisId:l}=e,u=mX(e,pX),[d,f]=(0,z.useState)(``),[p,m]=(0,z.useState)(``),h=(0,z.useRef)(null);(0,z.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>cX({ticks:h.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var g=(0,z.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);h.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==d||a!==p)&&(f(i),m(a))}}},[d,p]);return o||r!=null&&r<=0||i!=null&&i<=0?null:z.createElement(QU,{zIndex:e.zIndex},z.createElement(sS,{className:Eu(`recharts-cartesian-axis`,a)},z.createElement(CX,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Jx(e)}),z.createElement(kX,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),z.createElement(uK,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},z.createElement(wK,{label:e.label,labelRef:e.labelRef}),e.children)))}),jX=z.forwardRef((e,t)=>{var n=Tw(e,SX);return z.createElement(AX,gX({},n,{ref:t}))});jX.displayName=`CartesianAxis`;var MX=[`x1`,`y1`,`x2`,`y2`,`key`],NX=[`offset`],PX=[`xAxisId`,`yAxisId`],FX=[`xAxisId`,`yAxisId`];function IX(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 LX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IX(Object(n),!0).forEach(function(t){RX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RX(e,t,n){return(t=zX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e){var t=BX(e,`string`);return typeof t==`symbol`?t:t+``}function BX(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VX(){return VX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VX.apply(null,arguments)}function HX(e,t){if(e==null)return{};var n,r,i=UX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function UX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var WX=e=>{var{fill:t}=e;if(!t||t===`none`)return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return z.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function GX(e){var{option:t,lineItemProps:n}=e,r;if(z.isValidElement(t))r=z.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var{x1:i,y1:a,x2:o,y2:s,key:c}=n,l=Jx(HX(n,MX))??{},{offset:u}=l,d=HX(l,NX);r=z.createElement(`line`,VX({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function KX(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=HX(e,PX),c=i.map((e,i)=>{var a=LX(LX({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${i}`,index:i});return z.createElement(GX,{key:`line-${i}`,option:r,lineItemProps:a})});return z.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},c)}function qX(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=HX(e,FX),c=i.map((e,i)=>{var a=LX(LX({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${i}`,index:i});return z.createElement(GX,{option:r,lineItemProps:a,key:`line-${i}`})});return z.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},c)}function JX(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return z.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return z.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function YX(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var l=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,t)=>{var c=l[t+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=t%n.length;return z.createElement(`rect`,{key:`react-${t}`,x:e,y:a,width:u,height:s,stroke:`none`,fill:n[d],fillOpacity:r,className:`recharts-cartesian-grid-bg`})});return z.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},u)}var XX=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return XD(sX(LX(LX(LX({},SX),n),{},{ticks:ZD(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},ZX=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return XD(sX(LX(LX(LX({},SX),n),{},{ticks:ZD(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},QX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:lP.grid};function $X(e){var t=_k(),n=vk(),r=gk(),i=LX(LX({},Tw(e,QX)),{},{x:Z(e.x)?e.x:r.left,y:Z(e.y)?e.y:r.top,width:Z(e.width)?e.width:r.width,height:Z(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:c,width:l,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,m=LO(),h=Q(e=>wV(e,`xAxis`,a,m)),g=Q(e=>wV(e,`yAxis`,o,m));if(!VD(l)||!VD(u)||!Z(s)||!Z(c))return null;var _=i.verticalCoordinatesGenerator||XX,v=i.horizontalCoordinatesGenerator||ZX,{horizontalPoints:y,verticalPoints:b}=i;if((!y||!y.length)&&typeof v==`function`){var x=f&&f.length,S=v({yAxis:g?LX(LX({},g),{},{ticks:x?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},x?!0:d);GO(Array.isArray(S),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`),Array.isArray(S)&&(y=S)}if((!b||!b.length)&&typeof _==`function`){var C=p&&p.length,w=_({xAxis:h?LX(LX({},h),{},{ticks:C?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);GO(Array.isArray(w),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`),Array.isArray(w)&&(b=w)}return z.createElement(QU,{zIndex:i.zIndex},z.createElement(`g`,{className:`recharts-cartesian-grid`},z.createElement(WX,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),z.createElement(JX,VX({},i,{horizontalPoints:y})),z.createElement(YX,VX({},i,{verticalPoints:b})),z.createElement(KX,VX({},i,{offset:r,horizontalPoints:y,xAxis:h,yAxis:g})),z.createElement(qX,VX({},i,{offset:r,verticalPoints:b,xAxis:h,yAxis:g}))))}$X.displayName=`CartesianGrid`;var eZ=ZE({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:Hie,replaceErrorBar:Uie,removeErrorBar:Wie}=eZ.actions,tZ=eZ.reducer,nZ=[`children`];function rZ(e,t){if(e==null)return{};var n,r,i=iZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function iZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var aZ=(0,z.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function oZ(e){var{children:t}=e,n=rZ(e,nZ);return z.createElement(aZ.Provider,{value:n},t)}function sZ(e,t){var n=Q(t=>Tz(t,e)),r=Q(e=>Oz(e,t)),i=n?.allowDataOverflow??Cz.allowDataOverflow,a=r?.allowDataOverflow??Ez.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function cZ(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=gY(),{needClipX:a,needClipY:o,needClip:s}=sZ(t,n);if(!s||!i)return null;var{x:c,y:l,width:u,height:d}=i;return z.createElement(`clipPath`,{id:`clipPath-${r}`},z.createElement(`rect`,{x:a?c:c-u/2,y:o?l:l-d/2,width:a?u:u*2,height:o?d:d*2}))}var lZ=(e,t,n,r)=>DV(e,`xAxis`,t,r),uZ=(e,t,n,r)=>EV(e,`xAxis`,t,r),dZ=(e,t,n,r)=>DV(e,`yAxis`,n,r),fZ=(e,t,n,r)=>EV(e,`yAxis`,n,r),pZ=$([bk,lZ,dZ,uZ,fZ],(e,t,n,r,i)=>YD(e,`xAxis`)?uO(t,r,!1):uO(n,i,!1)),mZ=(e,t,n,r,i)=>i;function hZ(e){return e.type===`line`}var gZ=$([bk,lZ,dZ,uZ,fZ,$([Iz,mZ],(e,t)=>e.filter(hZ).find(e=>e.id===t)),pZ,NN],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return WZ({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}});function _Z(e){var t=Yx(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}var vZ=[`id`],yZ=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],bZ=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`];function xZ(){return xZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xZ.apply(null,arguments)}function SZ(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 CZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SZ(Object(n),!0).forEach(function(t){wZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=EZ(e,`string`);return typeof t==`symbol`?t:t+``}function EZ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DZ(e,t){if(e==null)return{};var n,r,i=OZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var kZ=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:fO(n,t),payload:e}]},AZ=z.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:iw,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:fO(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:d})}),jZ=(e,t)=>`${t}px ${e}px`;function MZ(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var NZ=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return jZ(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...MZ(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function PZ(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=Jx(DZ(r,vZ));return z.createElement(eY,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function FZ(e){var{showLabels:t,children:n,points:r}=e,i=(0,z.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return CZ(CZ({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return z.createElement(MK,{value:t?i:void 0},n)}function IZ(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=CZ(CZ({},Xx(DZ(a,yZ))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return z.createElement(z.Fragment,null,r?.length>1&&z.createElement(Gq,xZ({shapeType:`curve`,option:u},d,{pathRef:n})),z.createElement(PZ,{points:r,clipPathId:t,props:a}))}function LZ(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function RZ(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=TM(o,`recharts-line-`),y=(0,z.useRef)(v),[b,x]=(0,z.useState)(!1),S=!b,C=(0,z.useCallback)(()=>{typeof h==`function`&&h(),x(!1)},[h]),w=(0,z.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),T=LZ(r.current),E=(0,z.useRef)(0);y.current!==v&&(E.current=a.current,y.current=v);var D=E.current;return z.createElement(FZ,{points:o,showLabels:S},n.children,z.createElement(wM,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:w,key:v},e=>{var l=$C(D,T+D,e),u=Math.min(l,T),d=c?s?NZ(u,T,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):jZ(T,u):s==null?void 0:String(s);if(e>0&&T>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return CZ(CZ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return f?CZ(CZ({},t),{},{x:$C(p*2,t.x,e),y:$C(m/2,t.y,e)}):CZ(CZ({},t),{},{x:t.x,y:t.y})});return i.current=g,z.createElement(IZ,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return z.createElement(IZ,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),z.createElement(RK,{label:n.label}))}function zZ(e){var{clipPathId:t,props:n}=e,r=(0,z.useRef)(null),i=(0,z.useRef)(0),a=(0,z.useRef)(null);return z.createElement(RZ,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var BZ=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:qD(e.payload,t)}),VZ=class extends z.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=Eu(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=_Z(t),_=mq(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return z.createElement(QU,{zIndex:f},z.createElement(sS,{className:p},d&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&z.createElement(`clipPath`,{id:`clipPath-dots-${m}`},z.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),z.createElement(oZ,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:BZ,errorBarOffset:0},z.createElement(zZ,{props:this.props,clipPathId:m}))),z.createElement(wY,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},HZ={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:lP.line,type:`linear`};function UZ(e){var t=Tw(e,HZ),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=DZ(t,bZ),{needClip:_}=sZ(p,m),v=gY(),y=xk(),b=LO(),x=Q(e=>gZ(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:w,y:T}=v;return z.createElement(VZ,xZ({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:w,top:T,needClip:_}))}function WZ(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=qD(e,o);if(t===`horizontal`)return{x:nO({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(tw(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=tw(l)?null:n.scale.map(l),d=nO({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function GZ(e){var t=Tw(e,HZ),n=LO();return z.createElement(tJ,{id:t.id,type:`line`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:kZ(t)}),z.createElement(AZ,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),z.createElement(UZ,xZ({},t,{id:e}))))}var KZ=z.memo(GZ,SA);KZ.displayName=`Line`;function qZ(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function JZ(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var YZ=(e,t,n)=>DV(e,`xAxis`,qZ(e,t),n),XZ=(e,t,n)=>EV(e,`xAxis`,qZ(e,t),n),ZZ=(e,t,n)=>DV(e,`yAxis`,JZ(e,t),n),QZ=(e,t,n)=>EV(e,`yAxis`,JZ(e,t),n),$Z=$([bk,YZ,ZZ,XZ,QZ],(e,t,n,r,i)=>YD(e,`xAxis`)?uO(t,r,!1):uO(n,i,!1)),eQ=$([Iz,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),tQ=e=>YD(bk(e),`xAxis`)?`yAxis`:`xAxis`,nQ=(e,t)=>tQ(e)===`yAxis`?JZ(e,t):qZ(e,t),rQ=$([bk,YZ,ZZ,XZ,QZ,$([eQ,(e,t,n)=>cB(e,tQ(e),nQ(e,t),n)],(e,t)=>{if(!(e==null||t==null)){var{stackId:n}=e,r=MP(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),PN,$Z,eQ,cP],(e,t,n,r,i,a,o,s,c,l)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:p}=c,m=p&&p.length>0?p:u?.slice(d,f+1);if(m!=null)return kQ({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}}),iQ=[`id`],aQ=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`];function oQ(){return oQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oQ.apply(null,arguments)}function sQ(e,t){if(e==null)return{};var n,r,i=cQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lQ(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 uQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lQ(Object(n),!0).forEach(function(t){dQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dQ(e,t,n){return(t=fQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fQ(e){var t=pQ(e,`string`);return typeof t==`symbol`?t:t+``}function pQ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mQ(e,t){return e&&e!==`none`?e:t}var hQ=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:mQ(r,i),value:fO(n,t),payload:e}]},gQ=z.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:iw,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:fO(o,t),hide:s,type:l,color:mQ(r,a),unit:c,graphicalItemId:u}};return z.createElement(Yq,{tooltipEntrySettings:d})});function _Q(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r,s=Jx(r);return z.createElement(eY,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function vQ(e){var{showLabels:t,children:n,points:r}=e,i=r.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return uQ(uQ({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return z.createElement(MK,{value:t?i:void 0},n)}function yQ(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:o,type:s,stroke:c,connectNulls:l,isRange:u}=a,{id:d}=a,f=sQ(a,iQ),p=Jx(f),m=Xx(f);return z.createElement(z.Fragment,null,t?.length>1&&z.createElement(sS,{clipPath:r?`url(#clipPath-${i})`:void 0},z.createElement(Dj,oQ({},m,{id:d,points:t,connectNulls:l,type:s,baseLine:n,layout:o,stroke:`none`,className:`recharts-area-area`})),c!==`none`&&z.createElement(Dj,oQ({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:t})),c!==`none`&&u&&Array.isArray(n)&&z.createElement(Dj,oQ({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:n}))),z.createElement(_Q,{points:t,props:f,clipPathId:i}))}function bQ(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.y,o=r[r.length-1]?.y;if(!BD(a)||!BD(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return Z(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),Z(c)?z.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function xQ(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.x,o=r[r.length-1]?.x;if(!BD(a)||!BD(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return Z(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),Z(c)?z.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function SQ(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n===`vertical`?z.createElement(bQ,{alpha:t,points:r,baseLine:i,strokeWidth:a}):z.createElement(xQ,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function CQ(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:p}=r,m=TM((0,z.useMemo)(()=>({points:o,baseLine:s}),[o,s]),`recharts-area-`),h=Sk(),[g,_]=(0,z.useState)(!1),v=!g,y=(0,z.useCallback)(()=>{typeof p==`function`&&p(),_(!1)},[p]),b=(0,z.useCallback)(()=>{typeof f==`function`&&f(),_(!0)},[f]);if(h==null)return null;var x=i.current,S=a.current;return z.createElement(vQ,{showLabels:v,points:o},r.children,z.createElement(wM,{animationId:m,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:y,onAnimationStart:b,key:m},e=>{if(x){var l=x.length/o.length,u=e===1?o:o.map((t,n)=>{var r=Math.floor(n*l);if(x[r]){var i=x[r];return uQ(uQ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return t}),d=Z(s)?$C(S,s,e):tw(s)||KC(s)?$C(S,0,e):s.map((t,n)=>{var r=Math.floor(n*l);if(Array.isArray(S)&&S[r]){var i=S[r];return uQ(uQ({},t),{},{x:$C(i.x,t.x,e),y:$C(i.y,t.y,e)})}return t});return e>0&&(i.current=u,a.current=d),z.createElement(yQ,{points:u,baseLine:d,needClip:t,clipPathId:n,props:r})}return e>0&&(i.current=o,a.current=s),z.createElement(sS,null,c&&z.createElement(`defs`,null,z.createElement(`clipPath`,{id:`animationClipPath-${n}`},z.createElement(SQ,{alpha:e,points:o,baseLine:s,layout:h,strokeWidth:r.strokeWidth}))),z.createElement(sS,{clipPath:`url(#animationClipPath-${n})`},z.createElement(yQ,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r})))}),z.createElement(RK,{label:r.label}))}function wQ(e){var{needClip:t,clipPathId:n,props:r}=e,i=(0,z.useRef)(null),a=(0,z.useRef)();return z.createElement(CQ,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var TQ=class extends z.PureComponent{render(){var{hide:e,dot:t,points:n,className:r,top:i,left:a,needClip:o,xAxisId:s,yAxisId:c,width:l,height:u,id:d,baseLine:f,zIndex:p}=this.props;if(e)return null;var m=Eu(`recharts-area`,r),h=d,{r:g,strokeWidth:_}=_Z(t),v=mq(t),y=g*2+_,b=o?`url(#clipPath-${v?``:`dots-`}${h})`:void 0;return z.createElement(QU,{zIndex:p},z.createElement(sS,{className:m},o&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:h,xAxisId:s,yAxisId:c}),!v&&z.createElement(`clipPath`,{id:`clipPath-dots-${h}`},z.createElement(`rect`,{x:a-y/2,y:i-y/2,width:l+y,height:u+y}))),z.createElement(wQ,{needClip:o,clipPathId:h,props:this.props})),z.createElement(wY,{points:n,mainColor:mQ(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}),this.props.isRange&&Array.isArray(f)&&z.createElement(wY,{points:f,mainColor:mQ(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}))}},EQ={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,xAxisId:0,yAxisId:0,zIndex:lP.area};function DQ(e){var{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,connectNulls:a,dot:o,fill:s,fillOpacity:c,hide:l,isAnimationActive:u,legendType:d,stroke:f,xAxisId:p,yAxisId:m}=e,h=sQ(e,aQ),g=xk(),_=yU(),{needClip:v}=sZ(p,m),y=LO(),{points:b,isRange:x,baseLine:S}=Q(t=>rQ(t,e.id,y))??{},C=gY();if(g!==`horizontal`&&g!==`vertical`||C==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var{height:w,width:T,x:E,y:D}=C;return!b||!b.length?null:z.createElement(TQ,oQ({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:S,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:w,hide:l,layout:g,isAnimationActive:u,isRange:x,legendType:d,needClip:v,points:b,stroke:f,width:T,left:E,top:D,xAxisId:p,yAxisId:m}))}var OQ=(e,t,n,r,i)=>{var a=n??t;if(Z(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function kQ(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:c,displayedData:l,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:p}=e,m=i&&i.length,h=OQ(a,o,n,s,c),g=a===`horizontal`,_=!1,v=l.map((e,n)=>{var a;if(m)a=i[u+n];else{var o=qD(e,r);Array.isArray(o)?(a=o,_=!0):a=[h,o]}var l=a?.[1]??null,v=l==null||m&&!t&&qD(e,r)==null;return g?{x:nO({axis:s,ticks:d,bandSize:p,entry:e,index:n}),y:v?null:c.scale.map(l)??null,value:a,payload:e}:{x:v?null:s.scale.map(l)??null,y:nO({axis:c,ticks:f,bandSize:p,entry:e,index:n}),value:a,payload:e}});return{points:v,baseLine:(m||_?v.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?c.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:s.scale.map(t)??null,y:e.y,payload:e.payload}}):g?c.scale.map(h):s.scale.map(h))??0,isRange:_}}function AQ(e){var t=Tw(e,EQ),n=LO();return z.createElement(tJ,{id:t.id,type:`area`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:hQ(t)}),z.createElement(gQ,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:tO(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),z.createElement(DQ,oQ({},t,{id:e}))))}var jQ=z.memo(AQ,SA);jQ.displayName=`Area`;var MQ=!0,NQ=`Invariant failed`;function PQ(e,t){if(!e){if(MQ)throw Error(NQ);var n=typeof t==`function`?t():t,r=n?`${NQ}: ${n}`:NQ;throw Error(r)}}function FQ(){return FQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FQ.apply(null,arguments)}function IQ(e){return z.createElement(Gq,FQ({shapeType:`rectangle`,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`},e))}var LQ=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(Z(e))return e;var i=Z(n)||tw(n);return i?e(n,r):(!i&&PQ(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}},RQ=(e,t,n)=>n,zQ=$([Iz,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),BQ=$([zQ],e=>e?.maxBarSize),VQ=(e,t,n,r)=>r,HQ=$([bk,Iz,qZ,JZ,RQ],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),UQ=(e,t,n)=>{var r=bk(e),i=qZ(e,t),a=JZ(e,t);if(!(i==null||a==null))return r===`horizontal`?cB(e,`yAxis`,a,n):cB(e,`xAxis`,i,n)},WQ=$([HQ,tP,(e,t)=>{var n=bk(e),r=qZ(e,t),i=JZ(e,t);if(!(r==null||i==null))return n===`horizontal`?xV(e,`xAxis`,r):xV(e,`yAxis`,i)}],EY),GQ=(e,t,n)=>{var r=zQ(e,t);if(r==null)return 0;var i=qZ(e,t),a=JZ(e,t);if(i==null||a==null)return 0;var o=bk(e),s=QN(e),{maxBarSize:c}=r,l=tw(c)?s:c,u,d;return o===`horizontal`?(u=DV(e,`xAxis`,i,n),d=EV(e,`xAxis`,i,n)):(u=DV(e,`yAxis`,a,n),d=EV(e,`yAxis`,a,n)),uO(u,d,!0)??l??0},KQ=(e,t,n)=>{var r=bk(e),i=qZ(e,t),a=JZ(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=DV(e,`xAxis`,i,n),s=EV(e,`xAxis`,i,n)):(o=DV(e,`yAxis`,a,n),s=EV(e,`yAxis`,a,n)),uO(o,s)}},qQ=$([NO,FO,(e,t,n)=>{var r=qZ(e,t);if(r!=null)return DV(e,`xAxis`,r,n)},(e,t,n)=>{var r=JZ(e,t);if(r!=null)return DV(e,`yAxis`,r,n)},(e,t,n)=>{var r=qZ(e,t);if(r!=null)return EV(e,`xAxis`,r,n)},(e,t,n)=>{var r=JZ(e,t);if(r!=null)return EV(e,`yAxis`,r,n)},$([$([WQ,QN,$N,eP,GQ,KQ,BQ],NY),zQ],FY),bk,PN,KQ,$([UQ,zQ],PY),zQ,VQ],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=c;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var{data:g}=d,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return k$({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}}),JQ=[`index`];function YQ(){return YQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YQ.apply(null,arguments)}function XQ(e,t){if(e==null)return{};var n,r,i=ZQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var QQ=(0,z.createContext)(void 0),$Q=e=>{var t=(0,z.useContext)(QQ);if(t!=null)return t.stackId;if(e!=null)return tO(e)},e$=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,t$=e=>{var t=(0,z.useContext)(QQ);if(t!=null){var{stackId:n}=t;return`url(#${e$(n,e)})`}},n$=e=>{var{index:t}=e,n=XQ(e,JQ),r=t$(t);return z.createElement(sS,YQ({className:`recharts-bar-stack-layer`,clipPath:r},n))},r$=[`onMouseEnter`,`onMouseLeave`,`onClick`],i$=[`value`,`background`,`tooltipPosition`],a$=[`id`],o$=[`onMouseEnter`,`onClick`,`onMouseLeave`];function s$(){return s$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s$.apply(null,arguments)}function c$(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 l$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c$(Object(n),!0).forEach(function(t){u$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u$(e,t,n){return(t=d$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e){var t=f$(e,`string`);return typeof t==`symbol`?t:t+``}function f$(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p$(e,t){if(e==null)return{};var n,r,i=m$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var h$=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:fO(n,t),payload:e}]},g$=z.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:void 0,getPosition:iw,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:fO(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:l}};return z.createElement(Yq,{tooltipEntrySettings:u})});function _$(e){var t=Q(YH),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:c}=a,l=p$(a,r$),u=Kq(o,r,a.id),d=qq(s),f=Jq(c,r,a.id);if(!i||n==null)return null;var p=Yx(i);return z.createElement(QU,{zIndex:IY(i,lP.barBackground)},n.map((e,n)=>{var{value:a,background:o,tooltipPosition:s}=e,c=p$(e,i$);if(!o)return null;var m=u(e,n),h=d(e,n),g=f(e,n),_=l$(l$(l$(l$(l$({option:i,isActive:String(n)===t},c),{},{fill:`#eee`},o),p),Cw(l,e,n)),{},{onMouseEnter:m,onMouseLeave:h,onClick:g,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return z.createElement(IQ,s$({key:`background-bar-${n}`},_))}))}function v$(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return l$(l$({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return z.createElement(MK,{value:t?i:void 0},n)}function y$(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:o}=e,s=Q(YH),c=Q(ZH),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),[u,d]=(0,z.useState)(!1),[f,p]=(0,z.useState)(!1);(0,z.useEffect)(()=>{var e;return l?(d(!0),e=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(e)}},[l]);var m=(0,z.useCallback)(()=>{l||d(!1)},[l]),h=l&&f,g=l||u,_=l?n===!0?t:n:t,v=z.createElement(IQ,s$({},r,{name:String(r.name)},i,{isActive:h,option:_,index:a,dataKey:o,onTransitionEnd:m}));return g?z.createElement(QU,{zIndex:lP.activeBar},z.createElement(n$,{index:i.originalDataIndex},v)):v}function b$(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return z.createElement(IQ,s$({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function x$(e){var{data:t,props:n}=e,r=Jx(n)??{},{id:i}=r,a=p$(r,a$),{shape:o,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=p$(n,o$),p=Kq(l,s,i),m=qq(d),h=Jq(u,s,i);return t?z.createElement(z.Fragment,null,t.map((e,t)=>z.createElement(n$,s$({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},Cw(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),c?z.createElement(y$,{shape:o,activeBar:c,baseProps:a,entry:e,index:t,dataKey:s}):z.createElement(b$,{shape:o,baseProps:a,entry:e,index:t,dataKey:s})))):null}function S$(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,onAnimationEnd:l,onAnimationStart:u}=t,d=n.current,f=TM(t,`recharts-bar-`),[p,m]=(0,z.useState)(!1),h=!p,g=(0,z.useCallback)(()=>{typeof l==`function`&&l(),m(!1)},[l]),_=(0,z.useCallback)(()=>{typeof u==`function`&&u(),m(!0)},[u]);return z.createElement(v$,{showLabels:h,rects:r},z.createElement(wM,{animationId:f,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:g,onAnimationStart:_,key:f},e=>{var a=e===1?r:r?.map((t,n)=>{var r=d&&d[n];if(r)return l$(l$({},t),{},{x:$C(r.x,t.x,e),y:$C(r.y,t.y,e),width:$C(r.width,t.width,e),height:$C(r.height,t.height,e)});if(i===`horizontal`){var a=$C(0,t.height,e),o=$C(t.stackedBarStart,t.y,e);return l$(l$({},t),{},{y:o,height:a})}var s=$C(0,t.width,e),c=$C(t.stackedBarStart,t.x,e);return l$(l$({},t),{},{width:s,x:c})});return e>0&&(n.current=a??null),a==null?null:z.createElement(sS,null,z.createElement(x$,{props:t,data:a}))}),z.createElement(RK,{label:t.label}),t.children)}function C$(e){var t=(0,z.useRef)(null);return z.createElement(S$,{previousRectanglesRef:t,props:e})}var w$=0,T$=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:qD(e,t)}},E$=class extends z.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:a,needClip:o,background:s,id:c}=this.props;if(e||t==null)return null;var l=Eu(`recharts-bar`,r),u=c;return z.createElement(sS,{className:l,id:c},o&&z.createElement(`defs`,null,z.createElement(cZ,{clipPathId:u,xAxisId:i,yAxisId:a})),z.createElement(sS,{className:`recharts-bar-rectangles`,clipPath:o?`url(#clipPath-${u})`:void 0},z.createElement(_$,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),z.createElement(C$,this.props)))}},D$={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:w$,xAxisId:0,yAxisId:0,zIndex:lP.bar};function O$(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u}=e,{needClip:d}=sZ(t,n),f=xk(),p=LO(),m=pq(e.children,GW),h=Q(t=>qQ(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,z.createElement(oZ,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:T$,errorBarOffset:g},z.createElement(E$,s$({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function k$(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:o,xAxis:s,yAxis:c,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:m,parentViewBox:h,dataStartIndex:g}=e,_=t===`horizontal`?c:s,v=d?_.scale.domain():null,y=iO({numericAxis:_}),b=_.scale.map(y);return f.map((e,f)=>{var _,x,S,C,w,T;if(d){var E=d[f+g];if(E==null)return null;_=QD(E,v)}else _=qD(e,n),Array.isArray(_)||(_=[y,_]);var D=LQ(r,w$)(_[1],f);if(t===`horizontal`){var O=c.scale.map(_[0]),k=c.scale.map(_[1]);if(O==null||k==null)return null;x=rO({axis:s,ticks:l,bandSize:o,offset:a.offset,entry:e,index:f}),S=k??O??void 0,C=a.size;var A=O-k;if(w=KC(A)?0:A,T={x,y:p.top,width:C,height:p.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var j=GC(w||D)*(Math.abs(D)-Math.abs(w));S-=j,w+=j}}else{var M=s.scale.map(_[0]),N=s.scale.map(_[1]);if(M==null||N==null)return null;if(x=M,S=rO({axis:c,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),C=N-M,w=a.size,T={x:p.left,y:S,width:p.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var ee=GC(C||D)*(Math.abs(D)-Math.abs(C));C+=ee}}return x==null||S==null||C==null||w==null||!i&&(C===0||w===0)?null:l$(l$({},e),{},{stackedBarStart:b,x,y:S,width:C,height:w,value:d?_:_[1],payload:e,background:T,tooltipPosition:{x:x+C/2,y:S+w/2},parentViewBox:h,originalDataIndex:f},m&&m[f]&&m[f].props)}).filter(Boolean)}function A$(e){var t=Tw(e,D$),n=$Q(t.stackId),r=LO();return z.createElement(tJ,{id:t.id,type:`bar`},e=>z.createElement(z.Fragment,null,z.createElement(Xq,{legendPayload:h$(t)}),z.createElement(g$,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),z.createElement(uJ,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),z.createElement(QU,{zIndex:t.zIndex},z.createElement(O$,s$({},t,{id:e})))))}var j$=z.memo(A$,SA);j$.displayName=`Bar`;var M$=[`domain`,`range`],N$=[`domain`,`range`];function P$(e,t){if(e==null)return{};var n,r,i=F$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function F$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function I$(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function L$(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=P$(e,M$),{domain:a,range:o}=t,s=P$(t,N$);return!I$(n,a)||!I$(r,o)?!1:SA(i,s)}var R$=[`type`],z$=[`dangerouslySetInnerHTML`,`ticks`,`scale`],B$=[`id`,`scale`];function V$(){return V$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V$.apply(null,arguments)}function H$(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 U$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H$(Object(n),!0).forEach(function(t){W$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W$(e,t,n){return(t=G$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=K$(e,`string`);return typeof t==`symbol`?t:t+``}function K$(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function q$(e,t){if(e==null)return{};var n,r,i=J$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Y$(e){var t=Ww(),n=(0,z.useRef)(null),r=Sk(),{type:i}=e,a=q$(e,R$),o=pP(r,`xAxis`,i),s=(0,z.useMemo)(()=>{if(o!=null)return U$(U$({},a),{},{type:o})},[a,o]);return(0,z.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(sY(s)):n.current!==s&&t(cY({prev:n.current,next:s})),n.current=s)},[s,t]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(lY(n.current)),null)},[t]),null}var X$=e=>{var{xAxisId:t,className:n}=e,r=Q(FO),i=LO(),a=`xAxis`,o=Q(e=>TV(e,a,t,i)),s=Q(e=>pV(e,t)),c=Q(e=>vV(e,t)),l=Q(e=>wz(e,t));if(s==null||c==null||l==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,p=q$(e,z$),{id:m,scale:h}=l,g=q$(l,B$);return z.createElement(jX,V$({},p,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:Eu(`recharts-${a} ${a}`,n),viewBox:r,ticks:o,axisType:a,axisId:t}))},Z$={allowDataOverflow:Cz.allowDataOverflow,allowDecimals:Cz.allowDecimals,allowDuplicatedCategory:Cz.allowDuplicatedCategory,angle:Cz.angle,axisLine:SX.axisLine,height:Cz.height,hide:!1,includeHidden:Cz.includeHidden,interval:Cz.interval,label:!1,minTickGap:Cz.minTickGap,mirror:Cz.mirror,orientation:Cz.orientation,padding:Cz.padding,reversed:Cz.reversed,scale:Cz.scale,tick:Cz.tick,tickCount:Cz.tickCount,tickLine:SX.tickLine,tickSize:SX.tickSize,type:Cz.type,niceTicks:Cz.niceTicks,xAxisId:0},Q$=z.memo(e=>{var t=Tw(e,Z$);return z.createElement(z.Fragment,null,z.createElement(Y$,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),z.createElement(X$,t))},L$);Q$.displayName=`XAxis`;var $$=[`type`],e1=[`dangerouslySetInnerHTML`,`ticks`,`scale`],t1=[`id`,`scale`];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(null,arguments)}function r1(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 i1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r1(Object(n),!0).forEach(function(t){a1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a1(e,t,n){return(t=o1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o1(e){var t=s1(e,`string`);return typeof t==`symbol`?t:t+``}function s1(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c1(e,t){if(e==null)return{};var n,r,i=l1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function u1(e){var t=Ww(),n=(0,z.useRef)(null),r=Sk(),{type:i}=e,a=c1(e,$$),o=pP(r,`yAxis`,i),s=(0,z.useMemo)(()=>{if(o!=null)return i1(i1({},a),{},{type:o})},[o,a]);return(0,z.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(uY(s)):n.current!==s&&t(dY({prev:n.current,next:s})),n.current=s)},[s,t]),(0,z.useLayoutEffect)(()=>()=>{n.current&&=(t(fY(n.current)),null)},[t]),null}function d1(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=(0,z.useRef)(null),o=(0,z.useRef)(null),s=Q(FO),c=LO(),l=Ww(),u=`yAxis`,d=Q(e=>bV(e,t)),f=Q(e=>yV(e,t)),p=Q(e=>TV(e,u,t,c)),m=Q(e=>Dz(e,t));if((0,z.useLayoutEffect)(()=>{if(!(r!==`auto`||!d||hK(i)||(0,z.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(pY({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:h,ticks:g,scale:_}=e,v=c1(e,e1),{id:y,scale:b}=m,x=c1(m,t1);return z.createElement(jX,n1({},v,x,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:Eu(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var f1={allowDataOverflow:Ez.allowDataOverflow,allowDecimals:Ez.allowDecimals,allowDuplicatedCategory:Ez.allowDuplicatedCategory,angle:Ez.angle,axisLine:SX.axisLine,hide:!1,includeHidden:Ez.includeHidden,interval:Ez.interval,label:!1,minTickGap:Ez.minTickGap,mirror:Ez.mirror,orientation:Ez.orientation,padding:Ez.padding,reversed:Ez.reversed,scale:Ez.scale,tick:Ez.tick,tickCount:Ez.tickCount,tickLine:SX.tickLine,tickSize:SX.tickSize,type:Ez.type,niceTicks:Ez.niceTicks,width:Ez.width,yAxisId:0},p1=z.memo(e=>{var t=Tw(e,f1);return z.createElement(z.Fragment,null,z.createElement(u1,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),z.createElement(d1,t))},L$);p1.displayName=`YAxis`;var m1=$([(e,t)=>t,bk,kP,RP,HH,WH,CU,NO],FU);function h1(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function g1(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(h1(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var _1=AE(`mouseClick`),v1=jD();v1.startListening({actionCreator:_1,effect:(e,t)=>{var n=e.payload,r=m1(t.getState(),g1(n));r?.activeIndex!=null&&t.dispatch(qV({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var y1=AE(`mouseMove`),b1=jD(),x1=null,S1=null,C1=null;b1.startListening({actionCreator:y1,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);x1!==null&&(cancelAnimationFrame(x1),x1=null),S1!==null&&(typeof r!=`number`||!a)&&(clearTimeout(S1),S1=null),C1=g1(n);var o=()=>{var e=t.getState(),n=MV(e,e.tooltip.settings.shared);if(!C1){x1=null,S1=null;return}if(n===`axis`){var r=m1(e,C1);r?.activeIndex==null?t.dispatch(WV()):t.dispatch(KV({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}x1=null,S1=null};if(!a){o();return}r===`raf`?x1=requestAnimationFrame(o):typeof r==`number`&&S1===null&&(S1=setTimeout(o,r))}});function w1(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var T1={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},E1=ZE({name:`rootProps`,initialState:T1,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??T1.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),D1=E1.reducer,{updateOptions:O1}=E1.actions,k1=ZE({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:A1}=k1.actions,j1=k1.reducer,M1=AE(`keyDown`),N1=AE(`focus`),P1=AE(`blur`),F1=jD(),I1=null,L1=null,R1=null;F1.startListening({actionCreator:M1,effect:(e,t)=>{R1=e.payload,I1!==null&&(cancelAnimationFrame(I1),I1=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);L1!==null&&(typeof n!=`number`||!i)&&(clearTimeout(L1),L1=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=R1;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=cH(n,AH(e),aB(e),zH(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=WH(e),c=AH(e),l=MV(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=OU(e,l,`hover`,String(n.index));t.dispatch(YV({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=OV(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=aB(e),h=zH(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(cH(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(cH(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=OU(e,l,`hover`,String(p));t.dispatch(YV({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{I1=null,L1=null}};if(!i){a();return}n===`raf`?I1=requestAnimationFrame(a):typeof n==`number`&&L1===null&&(a(),R1=null,L1=setTimeout(()=>{R1?a():(L1=null,I1=null)},n))}}),F1.startListening({actionCreator:N1,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&r.index==null){var i=`0`,a=OU(n,MV(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(YV({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),F1.startListening({actionCreator:P1,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(YV({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function z1(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var B1=AE(`externalEvent`),V1=jD(),H1=new Map,U1=new Map,W1=new Map;V1.startListening({actionCreator:B1,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=z1(r);W1.set(i,{handler:n,reactEvent:a});var o=H1.get(i);o!==void 0&&(cancelAnimationFrame(o),H1.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=U1.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),U1.delete(i));var f=()=>{var e=W1.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:eU(a),activeDataKey:ZH(a),activeIndex:YH(a),activeLabel:XH(a),activeTooltipIndex:YH(a),isTooltipActive:tU(a)};n&&n(o,r)}finally{H1.delete(i),U1.delete(i),W1.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);H1.set(i,p)}else if(typeof s==`number`){if(!U1.has(i)){f();var m=setTimeout(f,s);U1.set(i,m)}}else f()}}});var G1=$([$([fH],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),K1=AE(`touchMove`),q1=jD(),J1=null,Y1=null,X1=null,Z1=null;q1.startListening({actionCreator:K1,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Z1=z1(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);J1!==null&&(cancelAnimationFrame(J1),J1=null),Y1!==null&&(typeof r!=`number`||!a)&&(clearTimeout(Y1),Y1=null),X1=Array.from(n.touches).map(e=>g1({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(Z1!=null){var e=t.getState(),n=MV(e,e.tooltip.settings.shared);if(n===`axis`){var r=X1?.[0];if(r==null){J1=null,Y1=null;return}var i=m1(e,r);i?.activeIndex!=null&&t.dispatch(KV({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=Z1.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(xO),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=EH(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=G1(e,s,c);t.dispatch(HV({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}J1=null,Y1=null}};if(!a){o();return}r===`raf`?J1=requestAnimationFrame(o):typeof r==`number`&&Y1===null&&(o(),Z1=null,Y1=setTimeout(()=>{Z1?o():(Y1=null,J1=null)},r))}}});var Q1={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},$1=ZE({name:`eventSettings`,initialState:Q1,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=mA(t.payload.throttledEvents))}}}),{setEventSettings:e0}=$1.actions,t0=$1.reducer,n0=cT({brush:BY,cartesianAxis:mY,chartData:SW,errorBars:tZ,eventSettings:t0,graphicalItems:lJ,layout:RD,legend:Pne,options:gW,polarAxis:JK,polarOptions:j1,referenceElements:WY,renderedTicks:fX,rootProps:D1,tooltip:XV,zIndex:ZU}),r0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return VE({reducer:n0,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([v1.middleware,b1.middleware,F1.middleware,V1.middleware,q1.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(zE({type:`raf`}))},devTools:nj.devToolsEnabled&&{serialize:{replacer:w1},name:`recharts-${t}`}})};function i0(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=LO(),a=(0,z.useRef)(null);if(i)return n;a.current??=r0(t,r);var o=Hw;return z.createElement(Jne,{context:o,store:a.current},n)}function a0(e){var{layout:t,margin:n}=e,r=Ww(),i=LO();return(0,z.useEffect)(()=>{i||(r(FD(t)),r(PD(n)))},[r,i,t,n]),null}var o0=(0,z.memo)(a0,SA);function s0(e){var t=Ww();return(0,z.useEffect)(()=>{t(O1(e))},[t,e]),null}var c0=(0,z.memo)(e=>{var t=Ww();return(0,z.useEffect)(()=>{t(e0(e))},[t,e]),null},SA);function l0(e){var{zIndex:t,isPanorama:n}=e,r=(0,z.useRef)(null),i=Ww();return(0,z.useLayoutEffect)(()=>(r.current&&i(YU({zIndex:t,element:r.current,isPanorama:n})),()=>{i(XU({zIndex:t,isPanorama:n}))}),[i,t,n]),z.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function u0(e){var{children:t,isPanorama:n}=e,r=Q(LU);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return z.createElement(z.Fragment,null,i.map(e=>z.createElement(l0,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>z.createElement(l0,{key:e,zIndex:e,isPanorama:n})))}var d0=[`children`];function f0(e,t){if(e==null)return{};var n,r,i=p0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(null,arguments)}var h0={width:`100%`,height:`100%`,display:`block`},g0=(0,z.forwardRef)((e,t)=>{var n=_k(),r=vk(),i=fj();if(!VD(n)||!VD(r))return null;var{children:a,otherAttributes:o,title:s,desc:c}=e,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),z.createElement(nS,m0({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:h0,ref:t}),a)}),_0=e=>{var{children:t}=e,n=Q(zO);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return z.createElement(nS,{width:r,height:i,x:o,y:a},t)},v0=(0,z.forwardRef)((e,t)=>{var{children:n}=e,r=f0(e,d0);return LO()?z.createElement(_0,null,z.createElement(u0,{isPanorama:!0},n)):z.createElement(g0,m0({ref:t},r),z.createElement(u0,{isPanorama:!1},n))});function y0(){var e=Ww(),[t,n]=(0,z.useState)(null),r=Q(_O);return(0,z.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;BD(n)&&n!==r&&e(LD(n))}},[t,e,r]),n}function b0(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 x0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?b0(Object(n),!0).forEach(function(t){S0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S0(e,t,n){return(t=C0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C0(e){var t=w0(e,`string`);return typeof t==`symbol`?t:t+``}function w0(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(null,arguments)}var E0=()=>(NW(),null);function D0(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var O0=(0,z.forwardRef)((e,t)=>{var n=(0,z.useRef)(null),[r,i]=(0,z.useState)({containerWidth:D0(e.style?.width),containerHeight:D0(e.style?.height)}),a=(0,z.useCallback)((e,t)=>{i(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),o=(0,z.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var{width:r,height:i}=e.getBoundingClientRect();a(r,i);var o=new ResizeObserver(e=>{var t=e[0];if(t!=null){var{width:n,height:r}=t.contentRect;a(n,r)}});o.observe(e),n.current=o}},[t,a]);return(0,z.useEffect)(()=>()=>{n.current?.disconnect()},[a]),z.createElement(z.Fragment,null,z.createElement(Tk,{width:r.containerWidth,height:r.containerHeight}),z.createElement(`div`,T0({ref:o},e)))}),k0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,z.useState)({containerWidth:D0(n),containerHeight:D0(r)}),o=(0,z.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,z.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return z.createElement(z.Fragment,null,z.createElement(Tk,{width:i.containerWidth,height:i.containerHeight}),z.createElement(`div`,T0({ref:s},e)))}),A0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e;return z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(`div`,T0({ref:t},e)))}),j0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?z.createElement(k0,T0({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?z.createElement(A0,T0({},e,{width:n,height:r,ref:t})):z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(`div`,T0({ref:t},e)))});function M0(e){return e?O0:j0}var N0=(0,z.forwardRef)((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:c,onMouseEnter:l,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:p,onTouchMove:m,onTouchStart:h,style:g,width:_,responsive:v,dispatchTouchEvents:y=!0}=e,b=(0,z.useRef)(null),x=Ww(),[S,C]=(0,z.useState)(null),[w,T]=(0,z.useState)(null),E=y0(),D=uk(),O=D?.width>0?D.width:_,k=D?.height>0?D.height:i,A=(0,z.useCallback)(e=>{E(e),typeof t==`function`&&t(e),C(e),T(e),e!=null&&(b.current=e)},[E,t,C,T]),j=(0,z.useCallback)(e=>{x(_1(e)),x(B1({handler:a,reactEvent:e}))},[x,a]),M=(0,z.useCallback)(e=>{x(y1(e)),x(B1({handler:l,reactEvent:e}))},[x,l]),N=(0,z.useCallback)(e=>{x(WV()),x(B1({handler:u,reactEvent:e}))},[x,u]),ee=(0,z.useCallback)(e=>{x(y1(e)),x(B1({handler:d,reactEvent:e}))},[x,d]),P=(0,z.useCallback)(()=>{x(N1())},[x]),F=(0,z.useCallback)(()=>{x(P1())},[x]),I=(0,z.useCallback)(e=>{x(M1(e.key))},[x]),te=(0,z.useCallback)(e=>{x(B1({handler:o,reactEvent:e}))},[x,o]),ne=(0,z.useCallback)(e=>{x(B1({handler:s,reactEvent:e}))},[x,s]),re=(0,z.useCallback)(e=>{x(B1({handler:c,reactEvent:e}))},[x,c]),L=(0,z.useCallback)(e=>{x(B1({handler:f,reactEvent:e}))},[x,f]),R=(0,z.useCallback)(e=>{x(B1({handler:h,reactEvent:e}))},[x,h]),ie=(0,z.useCallback)(e=>{y&&x(K1(e)),x(B1({handler:m,reactEvent:e}))},[x,y,m]),ae=(0,z.useCallback)(e=>{x(B1({handler:p,reactEvent:e}))},[x,p]),oe=M0(v);return z.createElement(cW.Provider,{value:S},z.createElement(cS.Provider,{value:w},z.createElement(oe,{width:O??g?.width,height:k??g?.height,className:Eu(`recharts-wrapper`,r),style:x0({position:`relative`,cursor:`default`,width:O,height:k},g),onClick:j,onContextMenu:te,onDoubleClick:ne,onFocus:P,onBlur:F,onKeyDown:I,onMouseDown:re,onMouseEnter:M,onMouseLeave:N,onMouseMove:ee,onMouseUp:L,onTouchEnd:ae,onTouchMove:ie,onTouchStart:R,ref:A},z.createElement(E0,null),n)))}),P0=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function F0(e,t){if(e==null)return{};var n,r,i=I0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var L0=(0,z.forwardRef)((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=Jx(F0(e,P0));return c?z.createElement(z.Fragment,null,z.createElement(Tk,{width:n,height:r}),z.createElement(v0,{otherAttributes:d,title:l,desc:u},a)):z.createElement(N0,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},z.createElement(v0,{otherAttributes:d,title:l,desc:u,ref:t},z.createElement(KY,null,a)))});function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(null,arguments)}function z0(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 B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?z0(Object(n),!0).forEach(function(t){V0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V0(e,t,n){return(t=H0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e){var t=U0(e,`string`);return typeof t==`symbol`?t:t+``}function U0(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var W0=B0({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},Q1),G0=(0,z.forwardRef)(function(e,t){var n=Tw(e.categoricalChartProps,W0),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,categoricalChartProps:s}=e,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return z.createElement(i0,{preloadedState:{options:c},reduxStoreName:s.id??r},z.createElement(LY,{chartData:s.data}),z.createElement(o0,{layout:n.layout,margin:n.margin}),z.createElement(c0,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),z.createElement(s0,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),z.createElement(L0,R0({},n,{ref:t})))}),K0=[`axis`],q0=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:K0,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t})),J0=[`axis`,`item`],Y0=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:J0,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t}));function X0(e){var t=Ww();return(0,z.useEffect)(()=>{t(A1(e))},[t,e]),null}var Z0=[`layout`];function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(null,arguments)}function $0(e,t){if(e==null)return{};var n,r,i=e2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function e2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function t2(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 n2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?t2(Object(n),!0).forEach(function(t){r2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r2(e,t,n){return(t=i2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e){var t=a2(e,`string`);return typeof t==`symbol`?t:t+``}function a2(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o2=n2({accessibilityLayer:!0,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`,layout:`radial`,responsive:!1,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`},Q1),s2=(0,z.forwardRef)(function(e,t){var n=Tw(e.categoricalChartProps,o2),{layout:r}=n,i=$0(n,Z0),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=e,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return z.createElement(i0,{preloadedState:{options:l},reduxStoreName:n.id??a},z.createElement(LY,{chartData:n.data}),z.createElement(o0,{layout:r,margin:n.margin}),z.createElement(c0,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),z.createElement(s0,{baseValue:void 0,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),z.createElement(X0,{cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius}),z.createElement(L0,Q0({},i,{ref:t})))});function c2(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 l2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c2(Object(n),!0).forEach(function(t){u2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u2(e,t,n){return(t=d2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d2(e){var t=f2(e,`string`);return typeof t==`symbol`?t:t+``}function f2(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var p2=[`item`],m2=l2(l2({},o2),{},{layout:`centric`,startAngle:0,endAngle:360}),h2=(0,z.forwardRef)((e,t)=>{var n=Tw(e,m2);return z.createElement(s2,{chartName:`PieChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:p2,tooltipPayloadSearcher:mW,categoricalChartProps:n,ref:t})}),g2=[`axis`],_2=(0,z.forwardRef)((e,t)=>z.createElement(G0,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:g2,tooltipPayloadSearcher:mW,categoricalChartProps:e,ref:t})),v2=365.2425,y2=6048e5,b2=864e5,x2=3600*24;x2*7,x2*v2/12*3;var S2=Symbol.for(`constructDateFrom`);function C2(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&S2 in e?e[S2](t):e instanceof Date?new e.constructor(t):new Date(t)}function w2(e,t){return C2(t||e,e)}function T2(e,t,n){let r=w2(e,n?.in);return isNaN(t)?C2(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var E2={};function D2(){return E2}function O2(e,t){let n=D2(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=w2(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function k2(e,t){return O2(e,{...t,weekStartsOn:1})}function A2(e,t){let n=w2(e,t?.in),r=n.getFullYear(),i=C2(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=k2(i),o=C2(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=k2(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function j2(e){let t=w2(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function M2(e,...t){let n=C2.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function N2(e,t){let n=w2(e,t?.in);return n.setHours(0,0,0,0),n}function P2(e,t,n){let[r,i]=M2(n?.in,e,t),a=N2(r),o=N2(i),s=+a-j2(a),c=+o-j2(o);return Math.round((s-c)/b2)}function F2(e,t){let n=A2(e,t),r=C2(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),k2(r)}function I2(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function L2(e){return!(!I2(e)&&typeof e!=`number`||isNaN(+w2(e)))}function R2(e,t){let n=w2(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}var z2={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},B2=(e,t,n)=>{let r,i=z2[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function V2(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var H2={date:V2({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:V2({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:V2({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},U2={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},W2=(e,t,n,r)=>U2[e];function G2(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var K2={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:G2({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:G2({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:G2({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:G2({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:G2({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function q2(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Y2(s,e=>e.test(o)):J2(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function J2(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Y2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function X2(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Z2={code:`en-US`,formatDistance:B2,formatLong:H2,formatRelative:W2,localize:K2,match:{ordinalNumber:X2({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:q2({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:q2({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:q2({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:q2({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:q2({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q2(e,t){let n=w2(e,t?.in);return P2(n,R2(n))+1}function $2(e,t){let n=w2(e,t?.in),r=k2(n)-+F2(n);return Math.round(r/y2)+1}function e4(e,t){let n=w2(e,t?.in),r=n.getFullYear(),i=D2(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=C2(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=O2(o,t),c=C2(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=O2(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function t4(e,t){let n=D2(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=e4(e,t),a=C2(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),O2(a,t)}function n4(e,t){let n=w2(e,t?.in),r=O2(n,t)-+t4(n,t);return Math.round(r/y2)+1}function r4(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var i4={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return r4(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):r4(n+1,2)},d(e,t){return r4(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return r4(e.getHours()%12||12,t.length)},H(e,t){return r4(e.getHours(),t.length)},m(e,t){return r4(e.getMinutes(),t.length)},s(e,t){return r4(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return r4(Math.trunc(r*10**(n-3)),t.length)}},a4={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},o4={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return i4.y(e,t)},Y:function(e,t,n,r){let i=e4(e,r),a=i>0?i:1-i;return t===`YY`?r4(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):r4(a,t.length)},R:function(e,t){return r4(A2(e),t.length)},u:function(e,t){return r4(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return r4(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return r4(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return i4.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return r4(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=n4(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):r4(i,t.length)},I:function(e,t,n){let r=$2(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):r4(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):i4.d(e,t)},D:function(e,t,n){let r=Q2(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):r4(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return r4(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return r4(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return r4(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?a4.noon:r===0?a4.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?a4.evening:r>=12?a4.afternoon:r>=4?a4.morning:a4.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return i4.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):i4.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):r4(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):r4(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):i4.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):i4.s(e,t)},S:function(e,t){return i4.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return c4(r);case`XXXX`:case`XX`:return l4(r);default:return l4(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return c4(r);case`xxxx`:case`xx`:return l4(r);default:return l4(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+s4(r,`:`);default:return`GMT`+l4(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+s4(r,`:`);default:return`GMT`+l4(r,`:`)}},t:function(e,t,n){return r4(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return r4(+e,t.length)}};function s4(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+r4(a,2)}function c4(e,t){return e%60==0?(e>0?`-`:`+`)+r4(Math.abs(e)/60,2):l4(e,t)}function l4(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=r4(Math.trunc(r/60),2),a=r4(r%60,2);return n+i+t+a}var u4=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},d4=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},f4={p:d4,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return u4(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,u4(r,t)).replace(`{{time}}`,d4(i,t))}},p4=/^D+$/,m4=/^Y+$/,h4=[`D`,`DD`,`YY`,`YYYY`];function g4(e){return p4.test(e)}function _4(e){return m4.test(e)}function v4(e,t,n){let r=y4(e,t,n);if(console.warn(r),h4.includes(e))throw RangeError(r)}function y4(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var b4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S4=/^'([^]*?)'?$/,C4=/''/g,w4=/[a-zA-Z]/;function T4(e,t,n){let r=D2(),i=n?.locale??r.locale??Z2,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=w2(e,n?.in);if(!L2(s))throw RangeError(`Invalid time value`);let c=t.match(x4).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=f4[t];return n(e,i.formatLong)}return e}).join(``).match(b4).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:E4(e)};if(o4[t])return{isToken:!0,value:e};if(t.match(w4))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&_4(a)||!n?.useAdditionalDayOfYearTokens&&g4(a))&&v4(a,t,String(e));let o=o4[a[0]];return o(s,a,i.localize,l)}).join(``)}function E4(e){let t=e.match(S4);return t?t[1].replace(C4,`'`):e}function D4(e,t,n){return T2(e,-t,n)}function O4({open:e,title:t,description:n,confirmText:r=`确认`,cancelText:i=`取消`,variant:a=`default`,loading:o=!1,onConfirm:s,onCancel:c}){if((0,z.useEffect)(()=>{if(!e)return;let t=e=>{e.key===`Escape`&&c(),e.key===`Enter`&&s()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,s,c]),!e)return null;let l=a===`danger`?Rc:a===`warning`?Bc:uc,u=a===`danger`?`text-red-500`:a===`warning`?`text-amber-500`:`text-blue-500`;return(0,B.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm`,onClick:c,children:(0,B.jsxs)(`div`,{className:`bg-white rounded-xl shadow-xl w-full max-w-md mx-4 p-6`,onClick:e=>e.stopPropagation(),children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,B.jsx)(`div`,{className:q(`flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center`,a===`danger`?`bg-red-50`:a===`warning`?`bg-amber-50`:`bg-blue-50`),children:(0,B.jsx)(l,{className:q(`h-5 w-5`,u)})}),(0,B.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,B.jsx)(`h3`,{className:`text-base font-semibold text-gray-900`,children:t}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-gray-500 leading-relaxed`,children:n})]})]}),(0,B.jsxs)(`div`,{className:`flex justify-end gap-3 mt-6`,children:[(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,onClick:c,disabled:o,children:i}),(0,B.jsx)(Y,{variant:a===`danger`?`danger`:`primary`,size:`sm`,onClick:s,loading:o,children:r})]})]})})}var k4={PreToolUse:`#3b82f6`,PostToolUse:`#10b981`,UserPromptSubmit:`#f59e0b`,Stop:`#ef4444`,Notification:`#8b5cf6`};function A4(){let e=Pn(),t=qe(),[n,r]=(0,z.useState)(!1),i=(0,z.useRef)(null),[a,o]=(0,z.useState)({open:!1,title:``,description:``,onConfirm:()=>{}}),{data:s}=ct({queryKey:[`daemon-status`],queryFn:()=>Jl().then(e=>e.data),refetchInterval:3e4}),{data:c}=ct({queryKey:[`pipelines-active`],queryFn:()=>wl().then(e=>e.data),refetchInterval:3e4}),{data:l}=ct({queryKey:[`overview`],queryFn:()=>pl().then(e=>e.data),refetchInterval:3e4}),{data:u}=ct({queryKey:[`roi-stats`],queryFn:()=>fl().then(e=>e.data),refetchInterval:6e4}),{data:d}=ct({queryKey:[`events-live`],queryFn:()=>ol({limit:20}).then(e=>e.data),refetchInterval:n?!1:3e4}),f=lt({mutationFn:e=>xl(e),onSuccess:()=>t.invalidateQueries({queryKey:[`pipelines-active`]})}),p=lt({mutationFn:()=>Cl(),onSuccess:()=>t.invalidateQueries({queryKey:[`pipelines-active`]})}),m=lt({mutationFn:()=>Kl(),onSuccess:()=>t.invalidateQueries({queryKey:[`overview`]})}),h=lt({mutationFn:()=>Yl()});(0,z.useEffect)(()=>{!n&&i.current&&i.current.scrollIntoView({behavior:`smooth`})},[d,n]);let g=(c?.total||0)>0,_=l?.recommendations?.find(e=>e.action===`/quality`);return(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(X,{className:`!p-3`,children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between flex-wrap gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4 text-sm flex-wrap`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,s?.running?`bg-green-500 animate-pulse`:`bg-red-500`)}),(0,B.jsx)(`span`,{className:`font-medium`,children:s?.running?`Daemon PID:${s.pid}`:`Daemon 离线`})]}),s?.uptime&&(0,B.jsxs)(`span`,{className:`text-gray-400`,children:[`运行 `,s.uptime.formatted]}),s?.memory&&(0,B.jsxs)(`span`,{className:`text-gray-400`,children:[`内存 `,s.memory.rss,`MB`]}),g&&(0,B.jsx)(Vx,{variant:`info`,children:`Pipeline 运行中`}),_&&(0,B.jsx)(Vx,{variant:`warning`,children:_.title})]}),(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Cc,onClick:()=>{o({open:!0,title:`重启 Daemon`,description:`确认重启 daemon?这将中断当前所有会话。`,onConfirm:()=>{h.mutate(),o(e=>({...e,open:!1}))}})},children:`重启`})]})}),g&&(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-sm font-semibold text-gray-500 uppercase tracking-wider mb-3`,children:`当前运行中`}),(0,B.jsx)(`div`,{className:`space-y-3`,children:c?.items.map((t,n)=>(0,B.jsx)(Rx.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:(0,B.jsx)(X,{className:`border-l-4 border-l-blue-500 !p-4`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,B.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3 mb-2`,children:[(0,B.jsx)(cc,{className:`h-5 w-5 text-blue-500`}),t.type===`dynamic`&&(0,B.jsx)(Vx,{variant:`primary`,size:`sm`,children:`动态编排`}),(0,B.jsx)(Vx,{variant:`info`,children:t.phaseLabel}),(0,B.jsx)(`span`,{className:`text-sm text-gray-500`,children:t.projectPath?t.projectPath.split(`/`).pop():``})]}),(0,B.jsx)(`p`,{className:`text-sm text-gray-700 line-clamp-2`,children:t.requirement?.slice(0,150)}),(0,B.jsxs)(`p`,{className:`text-xs text-gray-400 mt-2`,children:[`创建于 `,t.updatedAt?T4(ef(t.updatedAt),`HH:mm:ss`):``]})]}),(0,B.jsxs)(`div`,{className:`flex gap-2 ml-4`,children:[(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,icon:nc,onClick:()=>e(`/pipelines/${t.id}`),children:`查看`}),(0,B.jsx)(Y,{variant:`danger`,size:`sm`,icon:Wc,onClick:()=>{o({open:!0,title:`关闭 Pipeline`,description:`确认关闭此 Pipeline?`,onConfirm:()=>{f.mutate(t.id),o(e=>({...e,open:!1}))}})},children:`关闭`})]})]})})},t.id))})]}),l?.recommendations&&l.recommendations.length>0&&(0,B.jsx)(`div`,{className:`space-y-2`,children:l.recommendations.map((t,n)=>(0,B.jsxs)(Rx.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:q(`flex items-center justify-between p-3 rounded-lg border cursor-pointer transition-all hover:shadow-sm`,t.type===`warning`?`bg-amber-50 border-amber-200`:`bg-blue-50 border-blue-200`),children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3 flex-1`,onClick:()=>e(t.action),children:[(0,B.jsx)(Bc,{className:q(`h-4 w-4`,t.type===`warning`?`text-amber-500`:`text-blue-500`)}),(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:t.title})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1`,children:[t.action===`/quality`&&(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Ls,onClick:e=>{e.stopPropagation(),m.mutate()},children:`修复`}),t.action===`/pipelines`&&(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Rc,onClick:e=>{e.stopPropagation(),p.mutate()},children:`清理`}),(0,B.jsx)(Os,{className:`h-4 w-4 text-gray-300`})]})]},n))}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-4`,children:[(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/sessions`),children:(0,B.jsx)(Bx,{title:`本周节省`,value:`${u?.week.timeSavedHours||0}h`,icon:qs,color:`blue`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/analytics`),children:(0,B.jsx)(Bx,{title:`Token 用量`,value:Qd(u?.week.tokensTotal||0),icon:Gc,color:`green`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/quality`),children:(0,B.jsx)(Bx,{title:`质量拦截`,value:u?.week.qualityBlocked||0,icon:kc,color:`purple`})}),(0,B.jsx)(`div`,{className:`cursor-pointer`,onClick:()=>e(`/knowledge`),children:(0,B.jsx)(Bx,{title:`知识沉淀`,value:u?.totals.knowledgeNodes||0,icon:Ns,color:`orange`})})]}),(0,B.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,B.jsx)(X,{title:`7 天活动趋势`,children:(0,B.jsx)(fk,{width:`100%`,height:180,children:(0,B.jsxs)(_2,{data:u?.dailyTrend||[],children:[(0,B.jsx)(`defs`,{children:(0,B.jsxs)(`linearGradient`,{id:`gradE`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,B.jsx)(`stop`,{offset:`5%`,stopColor:`#3b82f6`,stopOpacity:.3}),(0,B.jsx)(`stop`,{offset:`95%`,stopColor:`#3b82f6`,stopOpacity:0})]})}),(0,B.jsx)($X,{strokeDasharray:`3 3`,stroke:`#e5e7eb`}),(0,B.jsx)(Q$,{dataKey:`date`,stroke:`#6b7280`}),(0,B.jsx)(p1,{stroke:`#6b7280`}),(0,B.jsx)(WW,{contentStyle:{borderRadius:`8px`,border:`1px solid #e5e7eb`}}),(0,B.jsx)(jQ,{type:`monotone`,dataKey:`events`,stroke:`#3b82f6`,fill:`url(#gradE)`,name:`事件`})]})})}),(0,B.jsx)(X,{title:`实时事件流`,action:(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:n?xc:yc,onClick:()=>r(!n),children:n?`继续`:`暂停`}),children:(0,B.jsxs)(`div`,{className:`h-[180px] overflow-y-auto text-xs font-mono space-y-1`,children:[d?.items.map((t,n)=>{let r=t.tool_input,i=r?.file_path?String(r.file_path).split(`/`).slice(-2).join(`/`):r?.command?String(r.command).slice(0,60):r?.pattern?String(r.pattern):t.hook_type===`UserPromptSubmit`?`用户输入`:``;return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 py-1 hover:bg-gray-50 rounded px-1 cursor-pointer`,onClick:()=>e(`/events`),children:[(0,B.jsx)(`span`,{className:`text-gray-400 w-14 flex-shrink-0`,children:T4(ef(t.timestamp),`HH:mm:ss`)}),(0,B.jsx)(`span`,{className:`w-2 h-2 rounded-full flex-shrink-0`,style:{backgroundColor:k4[t.hook_type]||`#6b7280`}}),(0,B.jsx)(`span`,{className:`text-gray-700 font-medium w-16 flex-shrink-0 truncate`,children:t.tool_name||t.hook_type}),(0,B.jsx)(`span`,{className:`text-gray-400 truncate flex-1`,children:i})]},`${t.id}-${n}`)}),(0,B.jsx)(`div`,{ref:i})]})})]}),(0,B.jsx)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-3`,children:[{label:`会话管理`,icon:Ts,path:`/sessions`,count:u?.week.sessions},{label:`流水线`,icon:cc,path:`/pipelines`,count:c?.total},{label:`质量门禁`,icon:kc,path:`/quality`,count:l?.recommendations?.find(e=>e.action===`/quality`)?`!`:`0`},{label:`知识图谱`,icon:Ns,path:`/knowledge`,count:u?.totals.knowledgeNodes}].map(t=>(0,B.jsx)(Rx.div,{whileHover:{scale:1.02},whileTap:{scale:.98},className:`bg-white rounded-xl p-4 border border-gray-100 cursor-pointer hover:border-blue-200 hover:shadow-sm transition-all`,onClick:()=>e(t.path),children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(t.icon,{className:`h-5 w-5 text-gray-500`}),(0,B.jsx)(`span`,{className:`text-sm font-medium text-gray-700`,children:t.label})]}),(0,B.jsx)(`span`,{className:`text-sm font-bold text-gray-900`,children:t.count??`-`})]})},t.path))}),(0,B.jsx)(O4,{open:a.open,title:a.title,description:a.description,variant:`warning`,onConfirm:a.onConfirm,onCancel:()=>o(e=>({...e,open:!1}))})]})}function j4({currentPage:e,totalPages:t,onPageChange:n,pageSize:r,onPageSizeChange:i,totalItems:a}){return(0,B.jsxs)(`div`,{className:`flex items-center justify-between px-4 py-3 border-t border-gray-200`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsxs)(`span`,{className:`text-sm text-gray-600`,children:[`显示 `,(e-1)*r+1,`-`,Math.min(e*r,a),` / 共 `,a,` 条`]}),(0,B.jsxs)(`select`,{value:r,onChange:e=>i(Number(e.target.value)),className:`px-3 py-1.5 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[(0,B.jsx)(`option`,{value:10,children:`10 条/页`}),(0,B.jsx)(`option`,{value:20,children:`20 条/页`}),(0,B.jsx)(`option`,{value:50,children:`50 条/页`}),(0,B.jsx)(`option`,{value:100,children:`100 条/页`})]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:zs,onClick:()=>n(e-1),disabled:e===1,children:`上一页`}),(0,B.jsx)(`div`,{className:`flex items-center gap-1`,children:Array.from({length:Math.min(t,7)},(r,i)=>{let a;return a=t<=7||e<=4?i+1:e>=t-3?t-6+i:e-3+i,(0,B.jsx)(`button`,{onClick:()=>n(a),className:`px-3 py-1.5 text-sm rounded-lg transition-colors ${e===a?`bg-blue-600 text-white`:`text-gray-600 hover:bg-gray-100`}`,children:a},a)})}),(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Bs,onClick:()=>n(e+1),disabled:e===t,children:`下一页`})]})]})}function M4(e,t,n){let r=e=>{let t=e==null?``:String(e);return t.includes(`,`)||t.includes(`"`)||t.includes(`
|
|
63
63
|
`)?`"${t.replace(/"/g,`""`)}"`:t},i=[t.map(r).join(`,`),...n.map(e=>e.map(r).join(`,`))].join(`
|
|
64
64
|
`),a=new Blob([``+i],{type:`text/csv;charset=utf-8;`}),o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=e,s.click(),URL.revokeObjectURL(o)}function N4({message:e=`加载失败,请重试`,onRetry:t}){return(0,B.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-96 text-center px-4`,children:[(0,B.jsx)(`div`,{className:`flex items-center justify-center w-16 h-16 rounded-full bg-red-50 mb-4`,children:(0,B.jsx)(Hs,{className:`h-8 w-8 text-red-500`})}),(0,B.jsx)(`h3`,{className:`text-lg font-semibold text-gray-900 mb-2`,children:`出错了`}),(0,B.jsx)(`p`,{className:`text-sm text-gray-500 mb-6 max-w-md`,children:e}),t&&(0,B.jsx)(Y,{variant:`primary`,size:`sm`,icon:wc,onClick:t,children:`重试`})]})}function P4(){let e=qe(),[t,n]=(0,z.useState)(``),[r,i]=(0,z.useState)(``),[a,o]=(0,z.useState)(``),[s,c]=(0,z.useState)(`all`),[l,u]=(0,z.useState)(new Set),[d,f]=(0,z.useState)(1),[p,m]=(0,z.useState)(20),[h,g]=(0,z.useState)(`start_time`),[_,v]=(0,z.useState)(!1),[y,b]=(0,z.useState)(!1),[x,S]=(0,z.useState)({open:!1,title:``,description:``,onConfirm:()=>{}}),C=Pn(),{data:w,isLoading:T,isError:E,refetch:D}=ct({queryKey:[`sessions`,{limit:1e3,status:r||void 0}],queryFn:()=>nl({limit:1e3,status:r||void 0}).then(e=>e.data),refetchInterval:1e4}),O=lt({mutationFn:e=>il(e),onSuccess:()=>{e.invalidateQueries({queryKey:[`sessions`]})}}),k=lt({mutationFn:e=>al(e),onSuccess:()=>{u(new Set),e.invalidateQueries({queryKey:[`sessions`]})}}),A=(w?.items.filter(e=>{let n=e.session_id.toLowerCase().includes(t.toLowerCase())||e.project_path.toLowerCase().includes(t.toLowerCase()),r=!a||e.project_path.split(`/`).pop()===a,i=s===`all`||new Date(e.start_time)>=D4(new Date,s===`1d`?1:s===`7d`?7:30);return n&&r&&i})||[]).sort((e,t)=>{let n=0;return h===`start_time`?n=e.start_time.localeCompare(t.start_time):h===`event_count`?n=e.event_count-t.event_count:h===`duration`&&(n=(e.end_time?new Date(e.end_time).getTime()-new Date(e.start_time).getTime():1/0)-(t.end_time?new Date(t.end_time).getTime()-new Date(t.start_time).getTime():1/0)),_?n:-n}),j=Array.from(new Set(w?.items.map(e=>e.project_path.split(`/`).pop()||``).filter(Boolean)||[])),M=e=>{h===e?v(e=>!e):(g(e),v(!1)),f(1)},N=()=>{let e=[`Session ID`,`项目`,`状态`,`开始时间`,`结束时间`,`事件数`],t=A.map(e=>[e.session_id,e.project_path,e.status,e.start_time,e.end_time||``,e.event_count]);M4(`sessions-${T4(new Date,`yyyyMMdd-HHmmss`)}.csv`,e,t)},ee=Math.ceil(A.length/p),P=A.slice((d-1)*p,d*p);return T?(0,B.jsx)(`div`,{className:`flex items-center justify-center h-96`,children:(0,B.jsx)(`div`,{className:`animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600`})}):E?(0,B.jsx)(N4,{message:`会话数据加载失败`,onRetry:()=>D()}):(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(X,{children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,B.jsxs)(`div`,{className:`flex gap-3 items-center`,children:[(0,B.jsxs)(`div`,{className:`relative flex-1`,children:[(0,B.jsx)(Dc,{className:`absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400`}),(0,B.jsx)(`input`,{type:`text`,placeholder:`搜索会话 ID 或项目...`,value:t,onChange:e=>{n(e.target.value),f(1)},className:`w-full pl-10 pr-4 py-2 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`})]}),(0,B.jsxs)(`button`,{onClick:()=>b(e=>!e),className:q(`flex items-center gap-1.5 px-3 py-2 text-sm rounded-lg border transition-colors`,y||r||a||s!==`all`?`border-blue-300 bg-blue-50 text-blue-700`:`border-gray-200 text-gray-600 hover:bg-gray-50`),children:[(0,B.jsx)(sc,{className:`h-4 w-4`}),`筛选`,(r||a||s!==`all`)&&(0,B.jsx)(`span`,{className:`ml-1 px-1.5 py-0.5 bg-blue-600 text-white text-xs rounded-full`,children:[r,a,s===`all`?``:s].filter(Boolean).length}),(0,B.jsx)(Rs,{className:q(`h-3.5 w-3.5 transition-transform`,y&&`rotate-180`)})]}),(0,B.jsxs)(`div`,{className:`flex gap-2`,children:[l.size>0&&(0,B.jsxs)(Y,{variant:`danger`,size:`sm`,icon:Rc,onClick:()=>{S({open:!0,title:`批量删除会话`,description:`确定删除选中的 ${l.size} 个会话吗?此操作不可撤销。`,onConfirm:()=>{k.mutate(Array.from(l)),S(e=>({...e,open:!1}))}})},loading:k.isPending,children:[`删除 (`,l.size,`)`]}),(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,icon:$s,onClick:()=>A.length>0&&N(),children:`导出`}),(0,B.jsx)(Y,{variant:`primary`,size:`sm`,onClick:()=>D(),children:`刷新`})]})]}),y&&(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-3 pt-2 border-t border-gray-100`,children:[(0,B.jsxs)(`select`,{value:r,onChange:e=>{i(e.target.value),f(1)},className:`px-3 py-1.5 text-sm border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[(0,B.jsx)(`option`,{value:``,children:`全部状态`}),(0,B.jsx)(`option`,{value:`active`,children:`活跃`}),(0,B.jsx)(`option`,{value:`completed`,children:`已完成`}),(0,B.jsx)(`option`,{value:`interrupted`,children:`中断`})]}),(0,B.jsxs)(`select`,{value:a,onChange:e=>{o(e.target.value),f(1)},className:`px-3 py-1.5 text-sm border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[(0,B.jsx)(`option`,{value:``,children:`全部项目`}),j.map(e=>(0,B.jsx)(`option`,{value:e,children:e},e))]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1 border border-gray-200 rounded-lg overflow-hidden text-sm`,children:[(0,B.jsx)(Ps,{className:`h-3.5 w-3.5 text-gray-400 ml-2`}),[`all`,`1d`,`7d`,`30d`].map(e=>(0,B.jsx)(`button`,{onClick:()=>{c(e),f(1)},className:q(`px-2.5 py-1.5 transition-colors`,s===e?`bg-blue-50 text-blue-700 font-medium`:`text-gray-600 hover:bg-gray-50`),children:e===`all`?`全部`:e},e))]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1 text-sm`,children:[(0,B.jsx)(`span`,{className:`text-gray-500 text-xs`,children:`排序:`}),[{key:`start_time`,label:`时间`},{key:`event_count`,label:`事件数`},{key:`duration`,label:`时长`}].map(({key:e,label:t})=>(0,B.jsxs)(`button`,{onClick:()=>M(e),className:q(`px-2.5 py-1.5 rounded-lg transition-colors flex items-center gap-1`,h===e?`bg-blue-50 text-blue-700 font-medium`:`text-gray-600 hover:bg-gray-50`),children:[t,h===e&&(0,B.jsx)(ks,{className:q(`h-3 w-3`,_&&`rotate-180`)})]},e))]})]})]})}),(0,B.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-4 gap-4`,children:[(0,B.jsxs)(X,{className:`text-center`,children:[(0,B.jsx)(`div`,{className:`text-3xl font-bold text-blue-600`,children:w?.total||0}),(0,B.jsx)(`div`,{className:`text-sm text-gray-600 mt-1`,children:`总会话数`})]}),(0,B.jsxs)(X,{className:`text-center`,children:[(0,B.jsx)(`div`,{className:`text-3xl font-bold text-green-600`,children:w?.items.filter(e=>e.status===`active`).length||0}),(0,B.jsx)(`div`,{className:`text-sm text-gray-600 mt-1`,children:`活跃会话`})]}),(0,B.jsxs)(X,{className:`text-center`,children:[(0,B.jsx)(`div`,{className:`text-3xl font-bold text-purple-600`,children:w?.items.filter(e=>e.status===`completed`).length||0}),(0,B.jsx)(`div`,{className:`text-sm text-gray-600 mt-1`,children:`已完成`})]}),(0,B.jsxs)(X,{className:`text-center`,children:[(0,B.jsx)(`div`,{className:`text-3xl font-bold text-orange-600`,children:Math.round((w?.items.reduce((e,t)=>e+t.event_count,0)||0)/(w?.items.length||1))}),(0,B.jsx)(`div`,{className:`text-sm text-gray-600 mt-1`,children:`平均事件数`})]})]}),(0,B.jsxs)(X,{title:`会话列表 (${A.length})`,action:A.length>0?(0,B.jsx)(`button`,{onClick:()=>{l.size===P.length?u(new Set):u(new Set(P.map(e=>e.session_id)))},className:`text-xs text-blue-600 hover:underline`,children:l.size===P.length?`取消全选`:`全选当前页`}):void 0,children:[(0,B.jsx)(`div`,{className:`space-y-2`,children:P.map((e,t)=>(0,B.jsxs)(Rx.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.03},className:q(`flex items-center gap-3 p-4 rounded-lg border transition-all cursor-pointer`,l.has(e.session_id)?`border-blue-300 bg-blue-50`:`border-gray-100 hover:border-blue-200 hover:bg-blue-50/50`),onClick:()=>C(`/sessions/${e.session_id}`),children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:l.has(e.session_id),onChange:t=>{t.stopPropagation(),u(t=>{let n=new Set(t);return n.has(e.session_id)?n.delete(e.session_id):n.add(e.session_id),n})},onClick:e=>e.stopPropagation(),className:`h-4 w-4 rounded border-gray-300 text-blue-600 cursor-pointer flex-shrink-0`}),(0,B.jsxs)(`div`,{className:`flex-1 grid grid-cols-1 md:grid-cols-5 gap-4 items-center`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`font-mono text-sm font-medium text-gray-900`,children:[e.session_id.slice(0,12),`...`]}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500 mt-1`,children:e.project_path.split(`/`).slice(-2).join(`/`)})]}),(0,B.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,B.jsx)(Vx,{variant:e.status===`active`?`success`:e.status===`completed`?`info`:`warning`,children:e.status})}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-gray-600`,children:[(0,B.jsx)(Ts,{className:`h-4 w-4`}),e.event_count,` 事件`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-gray-600`,children:[(0,B.jsx)(qs,{className:`h-4 w-4`}),T4(ef(e.start_time),`MM-dd HH:mm`)]}),(0,B.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:nc,children:`查看详情`}),(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Rc,onClick:t=>{t.stopPropagation(),S({open:!0,title:`删除会话`,description:`确认删除此会话及其所有数据?此操作不可撤销。`,onConfirm:()=>{O.mutate(e.session_id),S(e=>({...e,open:!1}))}})},loading:O.isPending&&O.variables===e.session_id})]})]})]},e.session_id))}),A.length===0&&(0,B.jsxs)(`div`,{className:`text-center py-12 text-gray-400`,children:[(0,B.jsx)(Ts,{className:`h-12 w-12 mx-auto mb-3 opacity-30`}),(0,B.jsx)(`p`,{children:`暂无会话记录`}),(0,B.jsx)(`p`,{className:`text-sm mt-1`,children:`使用 Claude Code 开始一个会话后,记录将自动出现在这里`})]}),A.length>0&&(0,B.jsx)(j4,{currentPage:d,totalPages:ee,onPageChange:f,pageSize:p,onPageSizeChange:e=>{m(e),f(1)},totalItems:A.length})]}),(0,B.jsx)(O4,{open:x.open,title:x.title,description:x.description,variant:`danger`,onConfirm:x.onConfirm,onCancel:()=>S({...x,open:!1})})]})}function F4({items:e}){return(0,B.jsx)(`nav`,{className:`flex items-center gap-2 text-sm text-gray-600`,children:e.map((e,t)=>(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,B.jsx)(Bs,{className:`h-3.5 w-3.5 text-gray-400`}),e.path?(0,B.jsx)($r,{to:e.path,className:`hover:text-gray-900 transition-colors`,children:e.label}):(0,B.jsx)(`span`,{className:`text-gray-900 font-medium`,children:e.label})]},t))})}function I4(){let{id:e}=In(),t=Pn(),n=jn(),[r,i]=(0,z.useState)(null),[a,o]=(0,z.useState)(`phases`),s=n.state?.from||`/sessions`,{data:c,isLoading:l,isError:u,error:d}=ct({queryKey:[`session`,e],queryFn:()=>rl(e).then(e=>e.data),enabled:!!e});if(u)return(0,B.jsxs)(`div`,{className:`flex items-center justify-center h-96 text-red-500`,children:[`加载失败:`,d?.message||`未知错误`]});if(l||!c)return(0,B.jsx)(`div`,{className:`flex items-center justify-center h-96`,children:(0,B.jsx)(`div`,{className:`animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600`})});let{session:f,phases:p,dataFlow:m,timeline:h,stats:g}=c,_=Object.entries(g.toolUsage).sort((e,t)=>t[1]-e[1]).slice(0,12).map(([e,t])=>({name:e,value:t}));return(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(F4,{items:[{label:`会话列表`,path:`/sessions`},{label:f.session_id.slice(0,8)+`...`}]}),(0,B.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(Y,{variant:`ghost`,size:`sm`,icon:Ds,onClick:()=>t(s),children:`返回`}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-xl font-bold text-gray-900`,children:`会话详情`}),(0,B.jsx)(`p`,{className:`text-sm text-gray-500 font-mono`,children:f.session_id})]}),(0,B.jsx)(Vx,{variant:f.status===`active`?`success`:`info`,children:f.status})]}),c.pipeline&&(0,B.jsx)(Y,{variant:`secondary`,size:`sm`,onClick:()=>t(`/pipelines/${c.pipeline.id}`,{state:{from:s}}),children:`查看关联 Pipeline`})]}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-5 gap-4`,children:[(0,B.jsxs)(X,{className:`text-center !p-4`,children:[(0,B.jsx)(qs,{className:`h-5 w-5 text-blue-500 mx-auto mb-2`}),(0,B.jsx)(`div`,{className:`text-xl font-bold`,children:Zd(g.duration)}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500`,children:`持续时间`})]}),(0,B.jsxs)(X,{className:`text-center !p-4`,children:[(0,B.jsx)(Uc,{className:`h-5 w-5 text-green-500 mx-auto mb-2`}),(0,B.jsx)(`div`,{className:`text-xl font-bold`,children:g.totalEvents}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500`,children:`总事件数`})]}),(0,B.jsxs)(X,{className:`text-center !p-4`,children:[(0,B.jsx)(ic,{className:`h-5 w-5 text-purple-500 mx-auto mb-2`}),(0,B.jsx)(`div`,{className:`text-xl font-bold`,children:g.writeOps}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500`,children:`写入操作`})]}),(0,B.jsxs)(X,{className:`text-center !p-4`,children:[(0,B.jsx)(Dc,{className:`h-5 w-5 text-orange-500 mx-auto mb-2`}),(0,B.jsx)(`div`,{className:`text-xl font-bold`,children:g.readOps}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500`,children:`读取操作`})]}),(0,B.jsxs)(X,{className:`text-center !p-4`,children:[(0,B.jsx)(Ic,{className:`h-5 w-5 text-red-500 mx-auto mb-2`}),(0,B.jsx)(`div`,{className:`text-xl font-bold`,children:p.length}),(0,B.jsx)(`div`,{className:`text-xs text-gray-500`,children:`交互轮次`})]})]}),(0,B.jsx)(X,{title:`事件密度时间线`,children:(0,B.jsx)(fk,{width:`100%`,height:120,children:(0,B.jsxs)(_2,{data:h,children:[(0,B.jsx)(`defs`,{children:(0,B.jsxs)(`linearGradient`,{id:`timelineGrad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,B.jsx)(`stop`,{offset:`5%`,stopColor:`#3b82f6`,stopOpacity:.4}),(0,B.jsx)(`stop`,{offset:`95%`,stopColor:`#3b82f6`,stopOpacity:0})]})}),(0,B.jsx)($X,{strokeDasharray:`3 3`,stroke:`#e5e7eb`}),(0,B.jsx)(Q$,{dataKey:`time`,tick:!1}),(0,B.jsx)(p1,{hide:!0}),(0,B.jsx)(WW,{formatter:e=>[`${e} 事件`,`数量`]}),(0,B.jsx)(jQ,{type:`monotone`,dataKey:`count`,stroke:`#3b82f6`,fill:`url(#timelineGrad)`})]})})}),(0,B.jsx)(`div`,{className:`flex gap-1 bg-gray-100 p-1 rounded-lg w-fit`,children:[`phases`,`flow`,`events`].map(e=>(0,B.jsx)(`button`,{onClick:()=>o(e),className:q(`px-4 py-2 rounded-md text-sm font-medium transition-colors`,a===e?`bg-white text-gray-900 shadow-sm`:`text-gray-600 hover:text-gray-900`),children:{phases:`阶段视图`,flow:`数据流图`,events:`事件列表`}[e]},e))}),a===`phases`&&(0,B.jsx)(`div`,{className:`space-y-3`,children:p.map((e,t)=>(0,B.jsx)(Rx.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.05},children:(0,B.jsxs)(X,{className:`!p-0 overflow-hidden`,children:[(0,B.jsxs)(`div`,{className:`flex items-center justify-between p-4 cursor-pointer hover:bg-gray-50 transition-colors`,onClick:()=>i(r===t?null:t),children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(`div`,{className:`flex items-center justify-center w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 text-white font-bold text-sm`,children:t+1}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`font-semibold text-gray-900`,children:e.name}),(0,B.jsxs)(`div`,{className:`text-sm text-gray-500`,children:[e.toolCalls,` 工具调用 · `,e.writeOps,` 写入 · `,e.artifacts.length,` 产物`]})]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[e.duration&&(0,B.jsx)(`span`,{className:`text-sm text-gray-500`,children:Zd(e.duration)}),(0,B.jsxs)(`div`,{className:`flex gap-1`,children:[e.artifacts.slice(0,3).map((e,t)=>(0,B.jsx)(Vx,{variant:`success`,size:`sm`,children:e},t)),e.artifacts.length>3&&(0,B.jsxs)(Vx,{variant:`default`,size:`sm`,children:[`+`,e.artifacts.length-3]})]}),r===t?(0,B.jsx)(Rs,{className:`h-5 w-5 text-gray-400`}):(0,B.jsx)(Bs,{className:`h-5 w-5 text-gray-400`})]})]}),r===t&&(0,B.jsx)(Rx.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},className:`border-t border-gray-100`,children:(0,B.jsx)(`div`,{className:`p-4 max-h-96 overflow-y-auto space-y-2`,children:e.events.map((e,t)=>(0,B.jsxs)(`div`,{className:`flex items-start gap-3 text-sm`,children:[(0,B.jsx)(`div`,{className:`text-gray-400 font-mono w-20 flex-shrink-0`,children:T4(ef(e.time),`HH:mm:ss`)}),(0,B.jsx)(Vx,{size:`sm`,variant:e.hookType===`PostToolUse`?`success`:e.hookType===`PreToolUse`?`info`:e.hookType===`UserPromptSubmit`?`warning`:`default`,children:e.hookType}),e.toolName&&(0,B.jsx)(`span`,{className:`font-mono text-gray-700 font-medium`,children:e.toolName}),e.input&&(0,B.jsx)(`span`,{className:`text-gray-500 truncate max-w-md`,children:e.input})]},t))})})]})},t))}),a===`flow`&&(0,B.jsx)(X,{title:`数据流图 (${m.nodes.length} 节点)`,children:(0,B.jsx)(`div`,{className:`space-y-1 max-h-[600px] overflow-y-auto`,children:m.nodes.map((e,t)=>(0,B.jsxs)(Rx.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:t*.02},className:`flex items-center gap-3`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col items-center w-8`,children:[t>0&&(0,B.jsx)(`div`,{className:`w-0.5 h-3 bg-gray-300`}),(0,B.jsx)(`div`,{className:q(`w-3 h-3 rounded-full border-2`,e.type===`intent`?`bg-blue-500 border-blue-500`:e.type===`artifact`?`bg-green-500 border-green-500`:e.type===`quality`?`bg-yellow-500 border-yellow-500`:`bg-gray-400 border-gray-400`)}),t<m.nodes.length-1&&(0,B.jsx)(`div`,{className:`w-0.5 h-3 bg-gray-300`})]}),(0,B.jsxs)(`div`,{className:q(`flex-1 flex items-center gap-3 p-2 rounded-lg text-sm`,e.type===`intent`?`bg-blue-50`:e.type===`artifact`?`bg-green-50`:e.type===`quality`?`bg-yellow-50`:`bg-gray-50`),children:[(0,B.jsx)(`span`,{className:`font-mono text-xs text-gray-400`,children:T4(ef(e.time),`HH:mm:ss`)}),(0,B.jsx)(Vx,{size:`sm`,variant:e.type===`intent`?`info`:e.type===`artifact`?`success`:e.type===`quality`?`warning`:`default`,children:e.label}),e.detail&&(0,B.jsx)(`span`,{className:`text-gray-600 truncate`,children:e.detail})]})]},e.id))})}),a===`events`&&(0,B.jsx)(X,{title:`全部事件 (${c.events.length})`,children:(0,B.jsx)(`div`,{className:`overflow-x-auto`,children:(0,B.jsxs)(`table`,{className:`w-full`,children:[(0,B.jsx)(`thead`,{children:(0,B.jsxs)(`tr`,{className:`text-left text-sm text-gray-600`,children:[(0,B.jsx)(`th`,{className:`pb-3 font-medium`,children:`时间`}),(0,B.jsx)(`th`,{className:`pb-3 font-medium`,children:`类型`}),(0,B.jsx)(`th`,{className:`pb-3 font-medium`,children:`工具`}),(0,B.jsx)(`th`,{className:`pb-3 font-medium`,children:`详情`})]})}),(0,B.jsx)(`tbody`,{className:`text-sm`,children:c.events.map(e=>(0,B.jsxs)(`tr`,{className:`border-t border-gray-50 hover:bg-gray-50`,children:[(0,B.jsx)(`td`,{className:`py-2 font-mono text-gray-500`,children:T4(ef(e.timestamp),`HH:mm:ss`)}),(0,B.jsx)(`td`,{className:`py-2`,children:(0,B.jsx)(Vx,{size:`sm`,variant:e.hook_type===`PostToolUse`?`success`:e.hook_type===`UserPromptSubmit`?`warning`:`default`,children:e.hook_type})}),(0,B.jsx)(`td`,{className:`py-2 font-mono`,children:e.tool_name||`-`}),(0,B.jsx)(`td`,{className:`py-2 text-gray-500 truncate max-w-md`,children:typeof e.tool_input==`string`?e.tool_input.slice(0,80):``})]},e.id))})]})})}),(0,B.jsx)(X,{title:`工具使用分布`,children:(0,B.jsx)(fk,{width:`100%`,height:250,children:(0,B.jsxs)(Y0,{data:_,layout:`vertical`,children:[(0,B.jsx)($X,{strokeDasharray:`3 3`,stroke:`#e5e7eb`}),(0,B.jsx)(Q$,{type:`number`}),(0,B.jsx)(p1,{dataKey:`name`,type:`category`,width:80,tick:{fontSize:12}}),(0,B.jsx)(WW,{}),(0,B.jsx)(j$,{dataKey:`value`,fill:`#3b82f6`,radius:[0,4,4,0]})]})})})]})}function L4(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
|
|
65
65
|
font-size: .6rem;
|