@gravito/zenith 0.1.0-beta.1 → 1.0.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bin.js +38846 -27303
  3. package/dist/client/assets/index-C332gZ-J.css +1 -0
  4. package/dist/client/assets/index-D4HibwTK.js +436 -0
  5. package/dist/client/index.html +2 -2
  6. package/dist/server/index.js +38846 -27303
  7. package/docs/ALERTING_GUIDE.md +71 -0
  8. package/docs/LARAVEL_ZENITH_ROADMAP.md +109 -0
  9. package/docs/QUASAR_MASTER_PLAN.md +140 -0
  10. package/package.json +52 -48
  11. package/scripts/debug_redis_keys.ts +24 -0
  12. package/specs/PULSE_SPEC.md +86 -0
  13. package/src/client/App.tsx +2 -0
  14. package/src/client/Layout.tsx +18 -0
  15. package/src/client/Sidebar.tsx +2 -1
  16. package/src/client/WorkerStatus.tsx +121 -76
  17. package/src/client/components/BrandIcons.tsx +138 -0
  18. package/src/client/components/ConfirmDialog.tsx +0 -1
  19. package/src/client/components/JobInspector.tsx +18 -6
  20. package/src/client/components/PageHeader.tsx +38 -0
  21. package/src/client/pages/OverviewPage.tsx +17 -20
  22. package/src/client/pages/PulsePage.tsx +478 -0
  23. package/src/client/pages/QueuesPage.tsx +1 -3
  24. package/src/client/pages/SettingsPage.tsx +640 -78
  25. package/src/client/pages/WorkersPage.tsx +71 -3
  26. package/src/client/pages/index.ts +1 -0
  27. package/src/server/index.ts +311 -11
  28. package/src/server/services/AlertService.ts +189 -41
  29. package/src/server/services/CommandService.ts +137 -0
  30. package/src/server/services/PulseService.ts +80 -0
  31. package/src/server/services/QueueService.ts +63 -6
  32. package/src/shared/types.ts +99 -0
  33. package/tsconfig.json +2 -2
  34. package/ARCHITECTURE.md +0 -88
  35. package/BATCH_OPERATIONS_IMPLEMENTATION.md +0 -159
  36. package/EVOLUTION_BLUEPRINT.md +0 -112
  37. package/JOBINSPECTOR_SCROLL_FIX.md +0 -152
  38. package/PULSE_IMPLEMENTATION_PLAN.md +0 -111
  39. package/TESTING_BATCH_OPERATIONS.md +0 -252
  40. package/dist/client/assets/index-DGYEwTDL.css +0 -1
  41. package/dist/client/assets/index-oyTdySX0.js +0 -421
  42. /package/{DEPLOYMENT.md → docs/DEPLOYMENT.md} +0 -0
  43. /package/{DOCS_INTERNAL.md → docs/DOCS_INTERNAL.md} +0 -0
  44. /package/{QUICK_TEST_GUIDE.md → docs/QUICK_TEST_GUIDE.md} +0 -0
  45. /package/{ROADMAP.md → docs/ROADMAP.md} +0 -0
@@ -0,0 +1,436 @@
1
+ var ZB=Object.defineProperty;var uE=e=>{throw TypeError(e)};var JB=(e,t,n)=>t in e?ZB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _y=(e,t,n)=>JB(e,typeof t!="symbol"?t+"":t,n),Dy=(e,t,n)=>t.has(e)||uE("Cannot "+n);var L=(e,t,n)=>(Dy(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?uE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(Dy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(Dy(e,t,"access private method"),n);var Sh=(e,t,n,r)=>({set _(i){ce(e,t,i,n)},get _(){return L(e,t,r)}});function e8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ry={exports:{}},xc={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var cE;function t8(){if(cE)return xc;cE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return xc.Fragment=t,xc.jsx=n,xc.jsxs=n,xc}var fE;function n8(){return fE||(fE=1,Ry.exports=t8()),Ry.exports}var p=n8(),uu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},r8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},is,I1,o_,a8=(o_=class{constructor(){Se(this,is,r8);Se(this,I1,!1)}setTimeoutProvider(e){ce(this,is,e)}setTimeout(e,t){return L(this,is).setTimeout(e,t)}clearTimeout(e){L(this,is).clearTimeout(e)}setInterval(e,t){return L(this,is).setInterval(e,t)}clearInterval(e){L(this,is).clearInterval(e)}},is=new WeakMap,I1=new WeakMap,o_),Zs=new a8;function i8(e){setTimeout(e,0)}var wo=typeof window>"u"||"Deno"in globalThis;function Pn(){}function s8(e,t){return typeof e=="function"?e(t):e}function Yx(e){return typeof e=="number"&&e>=0&&e!==1/0}function y_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ps(e,t){return typeof e=="function"?e(t):e}function Mr(e,t){return typeof e=="function"?e(t):e}function dE(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==B1(l,t.options))return!1}else if(!Qc(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||i&&i!==t.state.fetchStatus||o&&!o(t))}function hE(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(So(t.options.mutationKey)!==So(o))return!1}else if(!Qc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function B1(e,t){return((t==null?void 0:t.queryKeyHashFn)||So)(e)}function So(e){return JSON.stringify(e,(t,n)=>Gx(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Qc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qc(e[n],t[n])):!1}var o8=Object.prototype.hasOwnProperty;function x_(e,t){if(e===t)return e;const n=mE(e)&&mE(t);if(!n&&!(Gx(e)&&Gx(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let f=0;for(let h=0;h<l;h++){const m=n?h:o[h],g=e[m],y=t[m];if(g===y){c[m]=g,(n?h<i:o8.call(e,m))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){c[m]=y;continue}const b=x_(g,y);c[m]=b,b===g&&f++}return i===l&&f===i?e:c}function fm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function mE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gx(e){if(!pE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pE(e){return Object.prototype.toString.call(e)==="[object Object]"}function l8(e){return new Promise(t=>{Zs.setTimeout(t,e)})}function Wx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?x_(e,t):t}function u8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function c8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var U1=Symbol();function b_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===U1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $1(e,t){return typeof e=="function"?e(...t):!!e}function f8(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var io,ss,Ul,l_,d8=(l_=class extends uu{constructor(){super();Se(this,io);Se(this,ss);Se(this,Ul);ce(this,Ul,t=>{if(!wo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,ss)||this.setEventListener(L(this,Ul))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,ss))==null||t.call(this),ce(this,ss,void 0))}setEventListener(t){var n;ce(this,Ul,t),(n=L(this,ss))==null||n.call(this),ce(this,ss,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,io)!==t&&(ce(this,io,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,io)=="boolean"?L(this,io):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},io=new WeakMap,ss=new WeakMap,Ul=new WeakMap,l_),q1=new d8;function Qx(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var h8=i8;function m8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},i=h8;const o=c=>{t?e.push(c):i(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&i(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{o(()=>{c(...f)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{i=c}}}var Qt=m8(),$l,os,ql,u_,p8=(u_=class extends uu{constructor(){super();Se(this,$l,!0);Se(this,os);Se(this,ql);ce(this,ql,t=>{if(!wo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,os)||this.setEventListener(L(this,ql))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,os))==null||t.call(this),ce(this,os,void 0))}setEventListener(t){var n;ce(this,ql,t),(n=L(this,os))==null||n.call(this),ce(this,os,t(this.setOnline.bind(this)))}setOnline(t){L(this,$l)!==t&&(ce(this,$l,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,$l)}},$l=new WeakMap,os=new WeakMap,ql=new WeakMap,u_),dm=new p8;function g8(e){return Math.min(1e3*2**e,3e4)}function w_(e){return(e??"online")==="online"?dm.isOnline():!0}var Xx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function S_(e){let t=!1,n=0,r;const i=Qx(),o=()=>i.status!=="pending",l=j=>{var A;if(!o()){const O=new Xx(j);y(O),(A=e.onCancel)==null||A.call(e,O)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>q1.isFocused()&&(e.networkMode==="always"||dm.isOnline())&&e.canRun(),m=()=>w_(e.networkMode)&&e.canRun(),g=j=>{o()||(r==null||r(),i.resolve(j))},y=j=>{o()||(r==null||r(),i.reject(j))},b=()=>new Promise(j=>{var A;r=O=>{(o()||h())&&j(O)},(A=e.onPause)==null||A.call(e)}).then(()=>{var j;r=void 0,o()||(j=e.onContinue)==null||j.call(e)}),S=()=>{if(o())return;let j;const A=n===0?e.initialPromise:void 0;try{j=A??e.fn()}catch(O){j=Promise.reject(O)}Promise.resolve(j).then(g).catch(O=>{var _;if(o())return;const T=e.retry??(wo?0:3),N=e.retryDelay??g8,C=typeof N=="function"?N(n,O):N,M=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,O);if(t||!M){y(O);return}n++,(_=e.onFail)==null||_.call(e,n,O),l8(C).then(()=>h()?void 0:b()).then(()=>{t?y(O):S()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?S():b().then(S),i)}}var so,c_,j_=(c_=class{constructor(){Se(this,so)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yx(this.gcTime)&&ce(this,so,Zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wo?1/0:300*1e3))}clearGcTimeout(){L(this,so)&&(Zs.clearTimeout(L(this,so)),ce(this,so,void 0))}},so=new WeakMap,c_),oo,Vl,kr,lo,sn,jf,uo,Yr,Va,f_,v8=(f_=class extends j_{constructor(t){super();Se(this,Yr);Se(this,oo);Se(this,Vl);Se(this,kr);Se(this,lo);Se(this,sn);Se(this,jf);Se(this,uo);ce(this,uo,!1),ce(this,jf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,lo,t.client),ce(this,kr,L(this,lo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,oo,vE(this.options)),this.state=t.state??L(this,oo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,sn))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,jf),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=vE(this.options);n.data!==void 0&&(this.setState(gE(n.data,n.dataUpdatedAt)),ce(this,oo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,kr).remove(this)}setData(t,n){const r=Wx(this.state.data,t,this.options);return Le(this,Yr,Va).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Yr,Va).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=L(this,sn))==null?void 0:r.promise;return(i=L(this,sn))==null||i.cancel(t),n?n.then(Pn).catch(Pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,oo))}isActive(){return this.observers.some(t=>Mr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===U1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ps(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!y_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,kr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,sn)&&(L(this,uo)?L(this,sn).cancel({revert:!0}):L(this,sn).cancelRetry()),this.scheduleGc()),L(this,kr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Yr,Va).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,g,y,b,S,j,A,O,T,N;if(this.state.fetchStatus!=="idle"&&((f=L(this,sn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,sn))return L(this,sn).continueRetry(),L(this,sn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(M=>M.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(ce(this,uo,!0),r.signal)})},o=()=>{const C=b_(this.options,n),_=(()=>{const k={client:L(this,lo),queryKey:this.queryKey,meta:this.meta};return i(k),k})();return ce(this,uo,!1),this.options.persister?this.options.persister(C,_,this):C(_)},c=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:L(this,lo),state:this.state,fetchFn:o};return i(C),C})();(h=this.options.behavior)==null||h.onFetch(c,this),ce(this,Vl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Le(this,Yr,Va).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),ce(this,sn,S_({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:C=>{C instanceof Xx&&C.revert&&this.setState({...L(this,Vl),fetchStatus:"idle"}),r.abort()},onFail:(C,M)=>{Le(this,Yr,Va).call(this,{type:"failed",failureCount:C,error:M})},onPause:()=>{Le(this,Yr,Va).call(this,{type:"pause"})},onContinue:()=>{Le(this,Yr,Va).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const C=await L(this,sn).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(b=(y=L(this,kr).config).onSuccess)==null||b.call(y,C,this),(j=(S=L(this,kr).config).onSettled)==null||j.call(S,C,this.state.error,this),C}catch(C){if(C instanceof Xx){if(C.silent)return L(this,sn).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Le(this,Yr,Va).call(this,{type:"error",error:C}),(O=(A=L(this,kr).config).onError)==null||O.call(A,C,this),(N=(T=L(this,kr).config).onSettled)==null||N.call(T,this.state.data,C,this),C}finally{this.scheduleGc()}}},oo=new WeakMap,Vl=new WeakMap,kr=new WeakMap,lo=new WeakMap,sn=new WeakMap,jf=new WeakMap,uo=new WeakMap,Yr=new WeakSet,Va=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...A_(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...gE(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Vl,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,kr).notify({query:this,type:"updated",action:t})})},f_);function A_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Yn,He,Af,kn,co,Fl,Ha,ls,Of,Hl,Kl,fo,ho,us,Yl,Je,Rc,Zx,Jx,eb,tb,nb,rb,ab,O_,d_,y8=(d_=class extends uu{constructor(t,n){super();Se(this,Je);Se(this,Yn);Se(this,He);Se(this,Af);Se(this,kn);Se(this,co);Se(this,Fl);Se(this,Ha);Se(this,ls);Se(this,Of);Se(this,Hl);Se(this,Kl);Se(this,fo);Se(this,ho);Se(this,us);Se(this,Yl,new Set);this.options=n,ce(this,Yn,t),ce(this,ls,null),ce(this,Ha,Qx()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,He).addObserver(this),yE(L(this,He),this.options)?Le(this,Je,Rc).call(this):this.updateResult(),Le(this,Je,tb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ib(L(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ib(L(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Je,nb).call(this),Le(this,Je,rb).call(this),L(this,He).removeObserver(this)}setOptions(t){const n=this.options,r=L(this,He);if(this.options=L(this,Yn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mr(this.options.enabled,L(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Le(this,Je,ab).call(this),L(this,He).setOptions(this.options),n._defaulted&&!fm(this.options,n)&&L(this,Yn).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,He),observer:this});const i=this.hasListeners();i&&xE(L(this,He),r,this.options,n)&&Le(this,Je,Rc).call(this),this.updateResult(),i&&(L(this,He)!==r||Mr(this.options.enabled,L(this,He))!==Mr(n.enabled,L(this,He))||ps(this.options.staleTime,L(this,He))!==ps(n.staleTime,L(this,He)))&&Le(this,Je,Zx).call(this);const o=Le(this,Je,Jx).call(this);i&&(L(this,He)!==r||Mr(this.options.enabled,L(this,He))!==Mr(n.enabled,L(this,He))||o!==L(this,us))&&Le(this,Je,eb).call(this,o)}getOptimisticResult(t){const n=L(this,Yn).getQueryCache().build(L(this,Yn),t),r=this.createResult(n,t);return b8(this,r)&&(ce(this,kn,r),ce(this,Fl,this.options),ce(this,co,L(this,He).state)),r}getCurrentResult(){return L(this,kn)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&L(this,Ha).status==="pending"&&L(this,Ha).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){L(this,Yl).add(t)}getCurrentQuery(){return L(this,He)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=L(this,Yn).defaultQueryOptions(t),r=L(this,Yn).getQueryCache().build(L(this,Yn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,Je,Rc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,kn)))}createResult(t,n){var B;const r=L(this,He),i=this.options,o=L(this,kn),l=L(this,co),c=L(this,Fl),h=t!==r?t.state:L(this,Af),{state:m}=t;let g={...m},y=!1,b;if(n._optimisticResults){const K=this.hasListeners(),$=!K&&yE(t,n),Z=K&&xE(t,r,n,i);($||Z)&&(g={...g,...A_(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:j,status:A}=g;b=g.data;let O=!1;if(n.placeholderData!==void 0&&b===void 0&&A==="pending"){let K;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(K=o.data,O=!0):K=typeof n.placeholderData=="function"?n.placeholderData((B=L(this,Kl))==null?void 0:B.state.data,L(this,Kl)):n.placeholderData,K!==void 0&&(A="success",b=Wx(o==null?void 0:o.data,K,n),y=!0)}if(n.select&&b!==void 0&&!O)if(o&&b===(l==null?void 0:l.data)&&n.select===L(this,Of))b=L(this,Hl);else try{ce(this,Of,n.select),b=n.select(b),b=Wx(o==null?void 0:o.data,b,n),ce(this,Hl,b),ce(this,ls,null)}catch(K){ce(this,ls,K)}L(this,ls)&&(S=L(this,ls),b=L(this,Hl),j=Date.now(),A="error");const T=g.fetchStatus==="fetching",N=A==="pending",C=A==="error",M=N&&T,_=b!==void 0,D={status:A,fetchStatus:g.fetchStatus,isPending:N,isSuccess:A==="success",isError:C,isInitialLoading:M,isLoading:M,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:j,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!N,isLoadingError:C&&!_,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&_,isStale:V1(t,n),refetch:this.refetch,promise:L(this,Ha),isEnabled:Mr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=le=>{D.status==="error"?le.reject(D.error):D.data!==void 0&&le.resolve(D.data)},$=()=>{const le=ce(this,Ha,D.promise=Qx());K(le)},Z=L(this,Ha);switch(Z.status){case"pending":t.queryHash===r.queryHash&&K(Z);break;case"fulfilled":(D.status==="error"||D.data!==Z.value)&&$();break;case"rejected":(D.status!=="error"||D.error!==Z.reason)&&$();break}}return D}updateResult(){const t=L(this,kn),n=this.createResult(L(this,He),this.options);if(ce(this,co,L(this,He).state),ce(this,Fl,this.options),L(this,co).data!==void 0&&ce(this,Kl,L(this,He)),fm(n,t))return;ce(this,kn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!L(this,Yl).size)return!0;const l=new Set(o??L(this,Yl));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,kn)).some(c=>{const f=c;return L(this,kn)[f]!==t[f]&&l.has(f)})};Le(this,Je,O_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Je,tb).call(this)}},Yn=new WeakMap,He=new WeakMap,Af=new WeakMap,kn=new WeakMap,co=new WeakMap,Fl=new WeakMap,Ha=new WeakMap,ls=new WeakMap,Of=new WeakMap,Hl=new WeakMap,Kl=new WeakMap,fo=new WeakMap,ho=new WeakMap,us=new WeakMap,Yl=new WeakMap,Je=new WeakSet,Rc=function(t){Le(this,Je,ab).call(this);let n=L(this,He).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pn)),n},Zx=function(){Le(this,Je,nb).call(this);const t=ps(this.options.staleTime,L(this,He));if(wo||L(this,kn).isStale||!Yx(t))return;const r=y_(L(this,kn).dataUpdatedAt,t)+1;ce(this,fo,Zs.setTimeout(()=>{L(this,kn).isStale||this.updateResult()},r))},Jx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,He)):this.options.refetchInterval)??!1},eb=function(t){Le(this,Je,rb).call(this),ce(this,us,t),!(wo||Mr(this.options.enabled,L(this,He))===!1||!Yx(L(this,us))||L(this,us)===0)&&ce(this,ho,Zs.setInterval(()=>{(this.options.refetchIntervalInBackground||q1.isFocused())&&Le(this,Je,Rc).call(this)},L(this,us)))},tb=function(){Le(this,Je,Zx).call(this),Le(this,Je,eb).call(this,Le(this,Je,Jx).call(this))},nb=function(){L(this,fo)&&(Zs.clearTimeout(L(this,fo)),ce(this,fo,void 0))},rb=function(){L(this,ho)&&(Zs.clearInterval(L(this,ho)),ce(this,ho,void 0))},ab=function(){const t=L(this,Yn).getQueryCache().build(L(this,Yn),this.options);if(t===L(this,He))return;const n=L(this,He);ce(this,He,t),ce(this,Af,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},O_=function(t){Qt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(L(this,kn))}),L(this,Yn).getQueryCache().notify({query:L(this,He),type:"observerResultsUpdated"})})},d_);function x8(e,t){return Mr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yE(e,t){return x8(e,t)||e.state.data!==void 0&&ib(e,t,t.refetchOnMount)}function ib(e,t,n){if(Mr(t.enabled,e)!==!1&&ps(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&V1(e,t)}return!1}function xE(e,t,n,r){return(e!==t||Mr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&V1(e,n)}function V1(e,t){return Mr(t.enabled,e)!==!1&&e.isStaleByTime(ps(t.staleTime,e))}function b8(e,t){return!fm(e.getCurrentResult(),t)}function bE(e){return{onFetch:(t,n)=>{var m,g,y,b,S;const r=t.options,i=(y=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let j=!1;const A=N=>{f8(N,()=>t.signal,()=>j=!0)},O=b_(t.options,t.fetchOptions),T=async(N,C,M)=>{if(j)return Promise.reject();if(C==null&&N.pages.length)return Promise.resolve(N);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:M?"backward":"forward",meta:t.options.meta};return A($),$})(),D=await O(k),{maxPages:B}=t.options,K=M?c8:u8;return{pages:K(N.pages,D,B),pageParams:K(N.pageParams,C,B)}};if(i&&o.length){const N=i==="backward",C=N?w8:wE,M={pages:o,pageParams:l},_=C(r,M);c=await T(M,_,N)}else{const N=e??o.length;do{const C=f===0?l[0]??r.initialPageParam:wE(r,c);if(f>0&&C==null)break;c=await T(c,C),f++}while(f<N)}return c};t.options.persister?t.fetchFn=()=>{var j,A;return(A=(j=t.options).persister)==null?void 0:A.call(j,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function wE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function w8(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ef,da,Mn,mo,ha,Ji,h_,S8=(h_=class extends j_{constructor(t){super();Se(this,ha);Se(this,Ef);Se(this,da);Se(this,Mn);Se(this,mo);ce(this,Ef,t.client),this.mutationId=t.mutationId,ce(this,Mn,t.mutationCache),ce(this,da,[]),this.state=t.state||E_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,da).includes(t)||(L(this,da).push(t),this.clearGcTimeout(),L(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,da,L(this,da).filter(n=>n!==t)),this.scheduleGc(),L(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,da).length||(this.state.status==="pending"?this.scheduleGc():L(this,Mn).remove(this))}continue(){var t;return((t=L(this,mo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,f,h,m,g,y,b,S,j,A,O,T,N,C,M,_,k,D,B;const n=()=>{Le(this,ha,Ji).call(this,{type:"continue"})},r={client:L(this,Ef),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,mo,S_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(K,$)=>{Le(this,ha,Ji).call(this,{type:"failed",failureCount:K,error:$})},onPause:()=>{Le(this,ha,Ji).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Mn).canRun(this)}));const i=this.state.status==="pending",o=!L(this,mo).canStart();try{if(i)n();else{Le(this,ha,Ji).call(this,{type:"pending",variables:t,isPaused:o}),await((c=(l=L(this,Mn).config).onMutate)==null?void 0:c.call(l,t,this,r));const $=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,t,r));$!==this.state.context&&Le(this,ha,Ji).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const K=await L(this,mo).start();return await((g=(m=L(this,Mn).config).onSuccess)==null?void 0:g.call(m,K,t,this.state.context,this,r)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,K,t,this.state.context,r)),await((j=(S=L(this,Mn).config).onSettled)==null?void 0:j.call(S,K,null,this.state.variables,this.state.context,this,r)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,K,null,t,this.state.context,r)),Le(this,ha,Ji).call(this,{type:"success",data:K}),K}catch(K){try{await((N=(T=L(this,Mn).config).onError)==null?void 0:N.call(T,K,t,this.state.context,this,r))}catch($){Promise.reject($)}try{await((M=(C=this.options).onError)==null?void 0:M.call(C,K,t,this.state.context,r))}catch($){Promise.reject($)}try{await((k=(_=L(this,Mn).config).onSettled)==null?void 0:k.call(_,void 0,K,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((B=(D=this.options).onSettled)==null?void 0:B.call(D,void 0,K,t,this.state.context,r))}catch($){Promise.reject($)}throw Le(this,ha,Ji).call(this,{type:"error",error:K}),K}finally{L(this,Mn).runNext(this)}}},Ef=new WeakMap,da=new WeakMap,Mn=new WeakMap,mo=new WeakMap,ha=new WeakSet,Ji=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qt.batch(()=>{L(this,da).forEach(r=>{r.onMutationUpdate(t)}),L(this,Mn).notify({mutation:this,type:"updated",action:t})})},h_);function E_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ka,Gr,Nf,m_,j8=(m_=class extends uu{constructor(t={}){super();Se(this,Ka);Se(this,Gr);Se(this,Nf);this.config=t,ce(this,Ka,new Set),ce(this,Gr,new Map),ce(this,Nf,0)}build(t,n,r){const i=new S8({client:t,mutationCache:this,mutationId:++Sh(this,Nf)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){L(this,Ka).add(t);const n=jh(t);if(typeof n=="string"){const r=L(this,Gr).get(n);r?r.push(t):L(this,Gr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,Ka).delete(t)){const n=jh(t);if(typeof n=="string"){const r=L(this,Gr).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&L(this,Gr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=jh(t);if(typeof n=="string"){const r=L(this,Gr).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=jh(t);if(typeof n=="string"){const i=(r=L(this,Gr).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qt.batch(()=>{L(this,Ka).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Ka).clear(),L(this,Gr).clear()})}getAll(){return Array.from(L(this,Ka))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hE(n,r))}findAll(t={}){return this.getAll().filter(n=>hE(t,n))}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pn))))}},Ka=new WeakMap,Gr=new WeakMap,Nf=new WeakMap,m_);function jh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ya,cs,Gn,Ga,ri,Qh,sb,p_,A8=(p_=class extends uu{constructor(n,r){super();Se(this,ri);Se(this,Ya);Se(this,cs);Se(this,Gn);Se(this,Ga);ce(this,Ya,n),this.setOptions(r),this.bindMethods(),Le(this,ri,Qh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=L(this,Ya).defaultMutationOptions(n),fm(this.options,r)||L(this,Ya).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Gn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&So(r.mutationKey)!==So(this.options.mutationKey)?this.reset():((i=L(this,Gn))==null?void 0:i.state.status)==="pending"&&L(this,Gn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=L(this,Gn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,ri,Qh).call(this),Le(this,ri,sb).call(this,n)}getCurrentResult(){return L(this,cs)}reset(){var n;(n=L(this,Gn))==null||n.removeObserver(this),ce(this,Gn,void 0),Le(this,ri,Qh).call(this),Le(this,ri,sb).call(this)}mutate(n,r){var i;return ce(this,Ga,r),(i=L(this,Gn))==null||i.removeObserver(this),ce(this,Gn,L(this,Ya).getMutationCache().build(L(this,Ya),this.options)),L(this,Gn).addObserver(this),L(this,Gn).execute(n)}},Ya=new WeakMap,cs=new WeakMap,Gn=new WeakMap,Ga=new WeakMap,ri=new WeakSet,Qh=function(){var r;const n=((r=L(this,Gn))==null?void 0:r.state)??E_();ce(this,cs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sb=function(n){Qt.batch(()=>{var r,i,o,l,c,f,h,m;if(L(this,Ga)&&this.hasListeners()){const g=L(this,cs).variables,y=L(this,cs).context,b={client:L(this,Ya),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=L(this,Ga)).onSuccess)==null||i.call(r,n.data,g,y,b)}catch(S){Promise.reject(S)}try{(l=(o=L(this,Ga)).onSettled)==null||l.call(o,n.data,null,g,y,b)}catch(S){Promise.reject(S)}}else if((n==null?void 0:n.type)==="error"){try{(f=(c=L(this,Ga)).onError)==null||f.call(c,n.error,g,y,b)}catch(S){Promise.reject(S)}try{(m=(h=L(this,Ga)).onSettled)==null||m.call(h,void 0,n.error,g,y,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(g=>{g(L(this,cs))})})},p_),ma,g_,O8=(g_=class extends uu{constructor(t={}){super();Se(this,ma);this.config=t,ce(this,ma,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??B1(i,n);let l=this.get(o);return l||(l=new v8({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){L(this,ma).has(t.queryHash)||(L(this,ma).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,ma).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,ma).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,ma).get(t)}getAll(){return[...L(this,ma).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dE(t,r)):n}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ma=new WeakMap,g_),Tt,fs,ds,Gl,Wl,hs,Ql,Xl,v_,N_=(v_=class{constructor(e={}){Se(this,Tt);Se(this,fs);Se(this,ds);Se(this,Gl);Se(this,Wl);Se(this,hs);Se(this,Ql);Se(this,Xl);ce(this,Tt,e.queryCache||new O8),ce(this,fs,e.mutationCache||new j8),ce(this,ds,e.defaultOptions||{}),ce(this,Gl,new Map),ce(this,Wl,new Map),ce(this,hs,0)}mount(){Sh(this,hs)._++,L(this,hs)===1&&(ce(this,Ql,q1.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onFocus())})),ce(this,Xl,dm.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onOnline())})))}unmount(){var e,t;Sh(this,hs)._--,L(this,hs)===0&&((e=L(this,Ql))==null||e.call(this),ce(this,Ql,void 0),(t=L(this,Xl))==null||t.call(this),ce(this,Xl,void 0))}isFetching(e){return L(this,Tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,fs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=L(this,Tt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ps(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return L(this,Tt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=L(this,Tt).get(r.queryHash),o=i==null?void 0:i.state.data,l=s8(t,o);if(l!==void 0)return L(this,Tt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>L(this,Tt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,Tt);Qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,Tt);return Qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qt.batch(()=>L(this,Tt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Pn).catch(Pn)}invalidateQueries(e,t={}){return Qt.batch(()=>(L(this,Tt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>L(this,Tt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Pn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=L(this,Tt).build(this,t);return n.isStaleByTime(ps(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=bE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=bE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dm.isOnline()?L(this,fs).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Tt)}getMutationCache(){return L(this,fs)}getDefaultOptions(){return L(this,ds)}setDefaultOptions(e){ce(this,ds,e)}setQueryDefaults(e,t){L(this,Gl).set(So(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,Gl).values()],n={};return t.forEach(r=>{Qc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,Wl).set(So(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,Wl).values()],n={};return t.forEach(r=>{Qc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,ds).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=B1(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===U1&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,ds).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Tt).clear(),L(this,fs).clear()}},Tt=new WeakMap,fs=new WeakMap,ds=new WeakMap,Gl=new WeakMap,Wl=new WeakMap,hs=new WeakMap,Ql=new WeakMap,Xl=new WeakMap,v_),zy={exports:{}},_e={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var SE;function E8(){if(SE)return _e;SE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function O(R,F,ae){this.props=R,this.context=F,this.refs=A,this.updater=ae||S}O.prototype.isReactComponent={},O.prototype.setState=function(R,F){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,F,"setState")},O.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function T(){}T.prototype=O.prototype;function N(R,F,ae){this.props=R,this.context=F,this.refs=A,this.updater=ae||S}var C=N.prototype=new T;C.constructor=N,j(C,O.prototype),C.isPureReactComponent=!0;var M=Array.isArray;function _(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function B(R,F,ae){var se=ae.ref;return{$$typeof:e,type:R,key:F,ref:se!==void 0?se:null,props:ae}}function K(R,F){return B(R.type,F,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var F={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ae){return F[ae]})}var le=/\/+/g;function de(R,F){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):F.toString(36)}function me(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(_,_):(R.status="pending",R.then(function(F){R.status==="pending"&&(R.status="fulfilled",R.value=F)},function(F){R.status==="pending"&&(R.status="rejected",R.reason=F)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,F,ae,se,ve){var Oe=typeof R;(Oe==="undefined"||Oe==="boolean")&&(R=null);var fe=!1;if(R===null)fe=!0;else switch(Oe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(R.$$typeof){case e:case t:fe=!0;break;case m:return fe=R._init,q(fe(R._payload),F,ae,se,ve)}}if(fe)return ve=ve(R),fe=se===""?"."+de(R,0):se,M(ve)?(ae="",fe!=null&&(ae=fe.replace(le,"$&/")+"/"),q(ve,F,ae,"",function(Te){return Te})):ve!=null&&($(ve)&&(ve=K(ve,ae+(ve.key==null||R&&R.key===ve.key?"":(""+ve.key).replace(le,"$&/")+"/")+fe)),F.push(ve)),1;fe=0;var Qe=se===""?".":se+":";if(M(R))for(var J=0;J<R.length;J++)se=R[J],Oe=Qe+de(se,J),fe+=q(se,F,ae,Oe,ve);else if(J=b(R),typeof J=="function")for(R=J.call(R),J=0;!(se=R.next()).done;)se=se.value,Oe=Qe+de(se,J++),fe+=q(se,F,ae,Oe,ve);else if(Oe==="object"){if(typeof R.then=="function")return q(me(R),F,ae,se,ve);throw F=String(R),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(R,F,ae){if(R==null)return R;var se=[],ve=0;return q(R,se,"","",function(Oe){return F.call(ae,Oe,ve++)}),se}function Y(R){if(R._status===-1){var F=R._result;F=F(),F.then(function(ae){(R._status===0||R._status===-1)&&(R._status=1,R._result=ae)},function(ae){(R._status===0||R._status===-1)&&(R._status=2,R._result=ae)}),R._status===-1&&(R._status=0,R._result=F)}if(R._status===1)return R._result.default;throw R._result}var oe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},ne={map:W,forEach:function(R,F,ae){W(R,function(){F.apply(this,arguments)},ae)},count:function(R){var F=0;return W(R,function(){F++}),F},toArray:function(R){return W(R,function(F){return F})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return _e.Activity=g,_e.Children=ne,_e.Component=O,_e.Fragment=n,_e.Profiler=i,_e.PureComponent=N,_e.StrictMode=r,_e.Suspense=f,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_e.__COMPILER_RUNTIME={__proto__:null,c:function(R){return k.H.useMemoCache(R)}},_e.cache=function(R){return function(){return R.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(R,F,ae){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var se=j({},R.props),ve=R.key;if(F!=null)for(Oe in F.key!==void 0&&(ve=""+F.key),F)!D.call(F,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&F.ref===void 0||(se[Oe]=F[Oe]);var Oe=arguments.length-2;if(Oe===1)se.children=ae;else if(1<Oe){for(var fe=Array(Oe),Qe=0;Qe<Oe;Qe++)fe[Qe]=arguments[Qe+2];se.children=fe}return B(R.type,ve,se)},_e.createContext=function(R){return R={$$typeof:l,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},_e.createElement=function(R,F,ae){var se,ve={},Oe=null;if(F!=null)for(se in F.key!==void 0&&(Oe=""+F.key),F)D.call(F,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ve[se]=F[se]);var fe=arguments.length-2;if(fe===1)ve.children=ae;else if(1<fe){for(var Qe=Array(fe),J=0;J<fe;J++)Qe[J]=arguments[J+2];ve.children=Qe}if(R&&R.defaultProps)for(se in fe=R.defaultProps,fe)ve[se]===void 0&&(ve[se]=fe[se]);return B(R,Oe,ve)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(R){return{$$typeof:c,render:R}},_e.isValidElement=$,_e.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:Y}},_e.memo=function(R,F){return{$$typeof:h,type:R,compare:F===void 0?null:F}},_e.startTransition=function(R){var F=k.T,ae={};k.T=ae;try{var se=R(),ve=k.S;ve!==null&&ve(ae,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(_,oe)}catch(Oe){oe(Oe)}finally{F!==null&&ae.types!==null&&(F.types=ae.types),k.T=F}},_e.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},_e.use=function(R){return k.H.use(R)},_e.useActionState=function(R,F,ae){return k.H.useActionState(R,F,ae)},_e.useCallback=function(R,F){return k.H.useCallback(R,F)},_e.useContext=function(R){return k.H.useContext(R)},_e.useDebugValue=function(){},_e.useDeferredValue=function(R,F){return k.H.useDeferredValue(R,F)},_e.useEffect=function(R,F){return k.H.useEffect(R,F)},_e.useEffectEvent=function(R){return k.H.useEffectEvent(R)},_e.useId=function(){return k.H.useId()},_e.useImperativeHandle=function(R,F,ae){return k.H.useImperativeHandle(R,F,ae)},_e.useInsertionEffect=function(R,F){return k.H.useInsertionEffect(R,F)},_e.useLayoutEffect=function(R,F){return k.H.useLayoutEffect(R,F)},_e.useMemo=function(R,F){return k.H.useMemo(R,F)},_e.useOptimistic=function(R,F){return k.H.useOptimistic(R,F)},_e.useReducer=function(R,F,ae){return k.H.useReducer(R,F,ae)},_e.useRef=function(R){return k.H.useRef(R)},_e.useState=function(R){return k.H.useState(R)},_e.useSyncExternalStore=function(R,F,ae){return k.H.useSyncExternalStore(R,F,ae)},_e.useTransition=function(){return k.H.useTransition()},_e.version="19.2.3",_e}var jE;function cu(){return jE||(jE=1,zy.exports=E8()),zy.exports}var w=cu();const Me=wa(w),N8=e8({__proto__:null,default:Me},[w]);var T_=w.createContext(void 0),mi=e=>{const t=w.useContext(T_);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},C_=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(T_.Provider,{value:e,children:t})),k_=w.createContext(!1),T8=()=>w.useContext(k_);k_.Provider;function C8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var k8=w.createContext(C8()),M8=()=>w.useContext(k8),P8=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?$1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},_8=e=>{w.useEffect(()=>{e.clearReset()},[e])},D8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||$1(n,[e.error,r])),R8=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},z8=(e,t)=>e.isLoading&&e.isFetching&&!t,L8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,AE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I8(e,t,n){var y,b,S,j;const r=T8(),i=M8(),o=mi(),l=o.defaultQueryOptions(e);(b=(y=o.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,l);const c=o.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",R8(l),P8(l,i,c),_8(i);const f=!o.getQueryCache().get(l.queryHash),[h]=w.useState(()=>new t(o,l)),m=h.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(A=>{const O=g?h.subscribe(Qt.batchCalls(A)):Pn;return h.updateResult(),O},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(l)},[l,h]),L8(l,m))throw AE(l,h,i);if(D8({result:m,errorResetBoundary:i,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw m.error;if((j=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||j.call(S,l,m),l.experimental_prefetchInRender&&!wo&&z8(m,r)){const A=f?AE(l,h,i):c==null?void 0:c.promise;A==null||A.catch(Pn).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?m:h.trackResult(m)}function Nn(e,t){return I8(e,y8)}function Ly(e,t){const n=mi(),[r]=w.useState(()=>new A8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const i=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Qt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Pn)},[r]);if(i.error&&$1(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}var Iy={exports:{}},bc={},By={exports:{}},Uy={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var OE;function B8(){return OE||(OE=1,(function(e){function t(q,W){var Y=q.length;q.push(W);e:for(;0<Y;){var oe=Y-1>>>1,ne=q[oe];if(0<i(ne,W))q[oe]=W,q[Y]=ne,Y=oe;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],Y=q.pop();if(Y!==W){q[0]=Y;e:for(var oe=0,ne=q.length,R=ne>>>1;oe<R;){var F=2*(oe+1)-1,ae=q[F],se=F+1,ve=q[se];if(0>i(ae,Y))se<ne&&0>i(ve,ae)?(q[oe]=ve,q[se]=Y,oe=se):(q[oe]=ae,q[F]=Y,oe=F);else if(se<ne&&0>i(ve,Y))q[oe]=ve,q[se]=Y,oe=se;else break e}}return W}function i(q,W){var Y=q.sortIndex-W.sortIndex;return Y!==0?Y:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,g=null,y=3,b=!1,S=!1,j=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=q)r(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=n(h)}}function M(q){if(j=!1,C(q),!S)if(n(f)!==null)S=!0,_||(_=!0,Z());else{var W=n(h);W!==null&&me(M,W.startTime-q)}}var _=!1,k=-1,D=5,B=-1;function K(){return A?!0:!(e.unstable_now()-B<D)}function $(){if(A=!1,_){var q=e.unstable_now();B=q;var W=!0;try{e:{S=!1,j&&(j=!1,T(k),k=-1),b=!0;var Y=y;try{t:{for(C(q),g=n(f);g!==null&&!(g.expirationTime>q&&K());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,y=g.priorityLevel;var ne=oe(g.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){g.callback=ne,C(q),W=!0;break t}g===n(f)&&r(f),C(q)}else r(f);g=n(f)}if(g!==null)W=!0;else{var R=n(h);R!==null&&me(M,R.startTime-q),W=!1}}break e}finally{g=null,y=Y,b=!1}W=void 0}}finally{W?Z():_=!1}}}var Z;if(typeof N=="function")Z=function(){N($)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,de=le.port2;le.port1.onmessage=$,Z=function(){de.postMessage(null)}}else Z=function(){O($,0)};function me(q,W){k=O(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(q){switch(y){case 1:case 2:case 3:var W=3;break;default:W=y}var Y=y;y=W;try{return q()}finally{y=Y}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Y=y;y=q;try{return W()}finally{y=Y}},e.unstable_scheduleCallback=function(q,W,Y){var oe=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?oe+Y:oe):Y=oe,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Y+ne,q={id:m++,callback:W,priorityLevel:q,startTime:Y,expirationTime:ne,sortIndex:-1},Y>oe?(q.sortIndex=Y,t(h,q),n(f)===null&&q===n(h)&&(j?(T(k),k=-1):j=!0,me(M,Y-oe))):(q.sortIndex=ne,t(f,q),S||b||(S=!0,_||(_=!0,Z()))),q},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(q){var W=y;return function(){var Y=y;y=W;try{return q.apply(this,arguments)}finally{y=Y}}}})(Uy)),Uy}var EE;function U8(){return EE||(EE=1,By.exports=B8()),By.exports}var $y={exports:{}},An={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var NE;function $8(){if(NE)return An;NE=1;var e=cu();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(f,h,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,An.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},An.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},An.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},An.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},An.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,g=c(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},An.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},An.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,g=c(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},An.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},An.requestFormReset=function(f){r.d.r(f)},An.unstable_batchedUpdates=function(f,h){return f(h)},An.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},An.useFormStatus=function(){return l.H.useHostTransitionStatus()},An.version="19.2.3",An}var TE;function M_(){if(TE)return $y.exports;TE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$y.exports=$8(),$y.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var CE;function q8(){if(CE)return bc;CE=1;var e=U8(),t=cu(),n=M_();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var s=a,u=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(u=s.return),a=s.return;while(a)}return s.tag===3?u:null}function l(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function c(a){if(a.tag===31){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function f(a){if(o(a)!==a)throw Error(r(188))}function h(a){var s=a.alternate;if(!s){if(s=o(a),s===null)throw Error(r(188));return s!==a?null:a}for(var u=a,d=s;;){var v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(d=v.return,d!==null){u=d;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),a;if(x===d)return f(v),s;x=x.sibling}throw Error(r(188))}if(u.return!==d.return)u=v,d=x;else{for(var E=!1,P=v.child;P;){if(P===u){E=!0,u=v,d=x;break}if(P===d){E=!0,d=v,u=x;break}P=P.sibling}if(!E){for(P=x.child;P;){if(P===u){E=!0,u=x,d=v;break}if(P===d){E=!0,d=x,u=v;break}P=P.sibling}if(!E)throw Error(r(189))}}if(u.alternate!==d)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:s}function m(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=m(a),s!==null)return s;a=a.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function Z(a){return a===null||typeof a!="object"?null:(a=$&&a[$]||a["@@iterator"],typeof a=="function"?a:null)}var le=Symbol.for("react.client.reference");function de(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===le?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case M:return"Suspense";case _:return"SuspenseList";case B:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case S:return"Portal";case N:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case C:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return s=a.displayName||null,s!==null?s:de(a.type)||"Memo";case D:s=a._payload,a=a._init;try{return de(a(s))}catch{}}return null}var me=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},oe=[],ne=-1;function R(a){return{current:a}}function F(a){0>ne||(a.current=oe[ne],oe[ne]=null,ne--)}function ae(a,s){ne++,oe[ne]=a.current,a.current=s}var se=R(null),ve=R(null),Oe=R(null),fe=R(null);function Qe(a,s){switch(ae(Oe,s),ae(ve,a),ae(se,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?PO(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=PO(s),a=_O(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}F(se),ae(se,a)}function J(){F(se),F(ve),F(Oe)}function Te(a){a.memoizedState!==null&&ae(fe,a);var s=se.current,u=_O(s,a.type);s!==u&&(ae(ve,a),ae(se,u))}function Pe(a){ve.current===a&&(F(se),F(ve)),fe.current===a&&(F(fe),pc._currentValue=Y)}var ie,Dt;function Be(a){if(ie===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ie=s&&s[1]||"",Dt=-1<u.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ie+a+Dt}var Rt=!1;function zt(a,s){if(!a||Rt)return"";Rt=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(s){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(X){var G=X}Reflect.construct(a,[],re)}else{try{re.call()}catch(X){G=X}a.call(re.prototype)}}else{try{throw Error()}catch(X){G=X}(re=a())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&G&&typeof X.stack=="string")return[X.stack,G.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=d.DetermineComponentFrameRoot(),E=x[0],P=x[1];if(E&&P){var z=E.split(`
44
+ `),H=P.split(`
45
+ `);for(v=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;v<H.length&&!H[v].includes("DetermineComponentFrameRoot");)v++;if(d===z.length||v===H.length)for(d=z.length-1,v=H.length-1;1<=d&&0<=v&&z[d]!==H[v];)v--;for(;1<=d&&0<=v;d--,v--)if(z[d]!==H[v]){if(d!==1||v!==1)do if(d--,v--,0>v||z[d]!==H[v]){var ee=`
46
+ `+z[d].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),ee}while(1<=d&&0<=v);break}}}finally{Rt=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Be(u):""}function mr(a,s){switch(a.tag){case 26:case 27:case 5:return Be(a.type);case 16:return Be("Lazy");case 13:return a.child!==s&&s!==null?Be("Suspense Fallback"):Be("Suspense");case 19:return Be("SuspenseList");case 0:case 15:return zt(a.type,!1);case 11:return zt(a.type.render,!1);case 1:return zt(a.type,!0);case 31:return Be("Activity");default:return""}}function Oi(a){try{var s="",u=null;do s+=mr(a,u),u=a,a=a.return;while(a);return s}catch(d){return`
47
+ Error generating stack: `+d.message+`
48
+ `+d.stack}}var Ro=Object.prototype.hasOwnProperty,zo=e.unstable_scheduleCallback,Lo=e.unstable_cancelCallback,ad=e.unstable_shouldYield,id=e.unstable_requestPaint,ue=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,De=e.unstable_ImmediatePriority,Ot=e.unstable_UserBlockingPriority,Kt=e.unstable_NormalPriority,jn=e.unstable_LowPriority,dn=e.unstable_IdlePriority,D6=e.log,R6=e.unstable_setDisableYieldValue,Nu=null,er=null;function Ei(a){if(typeof D6=="function"&&R6(a),er&&typeof er.setStrictMode=="function")try{er.setStrictMode(Nu,a)}catch{}}var tr=Math.clz32?Math.clz32:I6,z6=Math.log,L6=Math.LN2;function I6(a){return a>>>=0,a===0?32:31-(z6(a)/L6|0)|0}var sd=256,od=262144,ld=4194304;function Ns(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function ud(a,s,u){var d=a.pendingLanes;if(d===0)return 0;var v=0,x=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var P=d&134217727;return P!==0?(d=P&~x,d!==0?v=Ns(d):(E&=P,E!==0?v=Ns(E):u||(u=P&~a,u!==0&&(v=Ns(u))))):(P=d&~x,P!==0?v=Ns(P):E!==0?v=Ns(E):u||(u=d&~a,u!==0&&(v=Ns(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Tu(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function B6(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hj(){var a=ld;return ld<<=1,(ld&62914560)===0&&(ld=4194304),a}function wg(a){for(var s=[],u=0;31>u;u++)s.push(a);return s}function Cu(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function U6(a,s,u,d,v,x){var E=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var P=a.entanglements,z=a.expirationTimes,H=a.hiddenUpdates;for(u=E&~u;0<u;){var ee=31-tr(u),re=1<<ee;P[ee]=0,z[ee]=-1;var G=H[ee];if(G!==null)for(H[ee]=null,ee=0;ee<G.length;ee++){var X=G[ee];X!==null&&(X.lane&=-536870913)}u&=~re}d!==0&&mj(a,d,0),x!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=x&~(E&~s))}function mj(a,s,u){a.pendingLanes|=s,a.suspendedLanes&=~s;var d=31-tr(s);a.entangledLanes|=s,a.entanglements[d]=a.entanglements[d]|1073741824|u&261930}function pj(a,s){var u=a.entangledLanes|=s;for(a=a.entanglements;u;){var d=31-tr(u),v=1<<d;v&s|a[d]&s&&(a[d]|=s),u&=~v}}function gj(a,s){var u=s&-s;return u=(u&42)!==0?1:Sg(u),(u&(a.suspendedLanes|s))!==0?0:u}function Sg(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function jg(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function vj(){var a=W.p;return a!==0?a:(a=window.event,a===void 0?32:nE(a.type))}function yj(a,s){var u=W.p;try{return W.p=a,s()}finally{W.p=u}}var Ni=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ni,Un="__reactProps$"+Ni,Io="__reactContainer$"+Ni,Ag="__reactEvents$"+Ni,$6="__reactListeners$"+Ni,q6="__reactHandles$"+Ni,xj="__reactResources$"+Ni,ku="__reactMarker$"+Ni;function Og(a){delete a[hn],delete a[Un],delete a[Ag],delete a[$6],delete a[q6]}function Bo(a){var s=a[hn];if(s)return s;for(var u=a.parentNode;u;){if(s=u[Io]||u[hn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(a=UO(a);a!==null;){if(u=a[hn])return u;a=UO(a)}return s}a=u,u=a.parentNode}return null}function Uo(a){if(a=a[hn]||a[Io]){var s=a.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return a}return null}function Mu(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function $o(a){var s=a[xj];return s||(s=a[xj]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function tn(a){a[ku]=!0}var bj=new Set,wj={};function Ts(a,s){qo(a,s),qo(a+"Capture",s)}function qo(a,s){for(wj[a]=s,a=0;a<s.length;a++)bj.add(s[a])}var V6=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sj={},jj={};function F6(a){return Ro.call(jj,a)?!0:Ro.call(Sj,a)?!1:V6.test(a)?jj[a]=!0:(Sj[a]=!0,!1)}function cd(a,s,u){if(F6(s))if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var d=s.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+u)}}function fd(a,s,u){if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+u)}}function Aa(a,s,u,d){if(d===null)a.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(s,u,""+d)}}function pr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Aj(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function H6(a,s,u){var d=Object.getOwnPropertyDescriptor(a.constructor.prototype,s);if(!a.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,x=d.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return v.call(this)},set:function(E){u=""+E,x.call(this,E)}}),Object.defineProperty(a,s,{enumerable:d.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Eg(a){if(!a._valueTracker){var s=Aj(a)?"checked":"value";a._valueTracker=H6(a,s,""+a[s])}}function Oj(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var u=s.getValue(),d="";return a&&(d=Aj(a)?a.checked?"true":"false":a.value),a=d,a!==u?(s.setValue(a),!0):!1}function dd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var K6=/[\n"\\]/g;function gr(a){return a.replace(K6,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Ng(a,s,u,d,v,x,E,P){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?a.type=E:a.removeAttribute("type"),s!=null?E==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+pr(s)):a.value!==""+pr(s)&&(a.value=""+pr(s)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),s!=null?Tg(a,E,pr(s)):u!=null?Tg(a,E,pr(u)):d!=null&&a.removeAttribute("value"),v==null&&x!=null&&(a.defaultChecked=!!x),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+pr(P):a.removeAttribute("name")}function Ej(a,s,u,d,v,x,E,P){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),s!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){Eg(a);return}u=u!=null?""+pr(u):"",s=s!=null?""+pr(s):u,P||s===a.value||(a.value=s),a.defaultValue=s}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,a.checked=P?a.checked:!!d,a.defaultChecked=!!d,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(a.name=E),Eg(a)}function Tg(a,s,u){s==="number"&&dd(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Vo(a,s,u,d){if(a=a.options,s){s={};for(var v=0;v<u.length;v++)s["$"+u[v]]=!0;for(u=0;u<a.length;u++)v=s.hasOwnProperty("$"+a[u].value),a[u].selected!==v&&(a[u].selected=v),v&&d&&(a[u].defaultSelected=!0)}else{for(u=""+pr(u),s=null,v=0;v<a.length;v++){if(a[v].value===u){a[v].selected=!0,d&&(a[v].defaultSelected=!0);return}s!==null||a[v].disabled||(s=a[v])}s!==null&&(s.selected=!0)}}function Nj(a,s,u){if(s!=null&&(s=""+pr(s),s!==a.value&&(a.value=s),u==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=u!=null?""+pr(u):""}function Tj(a,s,u,d){if(s==null){if(d!=null){if(u!=null)throw Error(r(92));if(me(d)){if(1<d.length)throw Error(r(93));d=d[0]}u=d}u==null&&(u=""),s=u}u=pr(s),a.defaultValue=u,d=a.textContent,d===u&&d!==""&&d!==null&&(a.value=d),Eg(a)}function Fo(a,s){if(s){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=s;return}}a.textContent=s}var Y6=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cj(a,s,u){var d=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?d?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":d?a.setProperty(s,u):typeof u!="number"||u===0||Y6.has(s)?s==="float"?a.cssFloat=u:a[s]=(""+u).trim():a[s]=u+"px"}function kj(a,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,u!=null){for(var d in u)!u.hasOwnProperty(d)||s!=null&&s.hasOwnProperty(d)||(d.indexOf("--")===0?a.setProperty(d,""):d==="float"?a.cssFloat="":a[d]="");for(var v in s)d=s[v],s.hasOwnProperty(v)&&u[v]!==d&&Cj(a,v,d)}else for(var x in s)s.hasOwnProperty(x)&&Cj(a,x,s[x])}function Cg(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var G6=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),W6=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hd(a){return W6.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Oa(){}var kg=null;function Mg(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ho=null,Ko=null;function Mj(a){var s=Uo(a);if(s&&(a=s.stateNode)){var u=a[Un]||null;e:switch(a=s.stateNode,s.type){case"input":if(Ng(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+gr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var d=u[s];if(d!==a&&d.form===a.form){var v=d[Un]||null;if(!v)throw Error(r(90));Ng(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<u.length;s++)d=u[s],d.form===a.form&&Oj(d)}break e;case"textarea":Nj(a,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Vo(a,!!u.multiple,s,!1)}}}var Pg=!1;function Pj(a,s,u){if(Pg)return a(s,u);Pg=!0;try{var d=a(s);return d}finally{if(Pg=!1,(Ho!==null||Ko!==null)&&(eh(),Ho&&(s=Ho,a=Ko,Ko=Ho=null,Mj(s),a)))for(s=0;s<a.length;s++)Mj(a[s])}}function Pu(a,s){var u=a.stateNode;if(u===null)return null;var d=u[Un]||null;if(d===null)return null;u=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(a=a.type,d=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!d;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_g=!1;if(Ea)try{var _u={};Object.defineProperty(_u,"passive",{get:function(){_g=!0}}),window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{_g=!1}var Ti=null,Dg=null,md=null;function _j(){if(md)return md;var a,s=Dg,u=s.length,d,v="value"in Ti?Ti.value:Ti.textContent,x=v.length;for(a=0;a<u&&s[a]===v[a];a++);var E=u-a;for(d=1;d<=E&&s[u-d]===v[x-d];d++);return md=v.slice(a,1<d?1-d:void 0)}function pd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function gd(){return!0}function Dj(){return!1}function $n(a){function s(u,d,v,x,E){this._reactName=u,this._targetInst=v,this.type=d,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var P in a)a.hasOwnProperty(P)&&(u=a[P],this[P]=u?u(x):x[P]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?gd:Dj,this.isPropagationStopped=Dj,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=gd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=gd)},persist:function(){},isPersistent:gd}),s}var Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=$n(Cs),Du=g({},Cs,{view:0,detail:0}),Q6=$n(Du),Rg,zg,Ru,yd=g({},Du,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ru&&(Ru&&a.type==="mousemove"?(Rg=a.screenX-Ru.screenX,zg=a.screenY-Ru.screenY):zg=Rg=0,Ru=a),Rg)},movementY:function(a){return"movementY"in a?a.movementY:zg}}),Rj=$n(yd),X6=g({},yd,{dataTransfer:0}),Z6=$n(X6),J6=g({},Du,{relatedTarget:0}),Lg=$n(J6),eI=g({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),tI=$n(eI),nI=g({},Cs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),rI=$n(nI),aI=g({},Cs,{data:0}),zj=$n(aI),iI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lI(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=oI[a])?!!s[a]:!1}function Ig(){return lI}var uI=g({},Du,{key:function(a){if(a.key){var s=iI[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=pd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?sI[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ig,charCode:function(a){return a.type==="keypress"?pd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?pd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),cI=$n(uI),fI=g({},yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lj=$n(fI),dI=g({},Du,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),hI=$n(dI),mI=g({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=$n(mI),gI=g({},yd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),vI=$n(gI),yI=g({},Cs,{newState:0,oldState:0}),xI=$n(yI),bI=[9,13,27,32],Bg=Ea&&"CompositionEvent"in window,zu=null;Ea&&"documentMode"in document&&(zu=document.documentMode);var wI=Ea&&"TextEvent"in window&&!zu,Ij=Ea&&(!Bg||zu&&8<zu&&11>=zu),Bj=" ",Uj=!1;function $j(a,s){switch(a){case"keyup":return bI.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qj(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Yo=!1;function SI(a,s){switch(a){case"compositionend":return qj(s);case"keypress":return s.which!==32?null:(Uj=!0,Bj);case"textInput":return a=s.data,a===Bj&&Uj?null:a;default:return null}}function jI(a,s){if(Yo)return a==="compositionend"||!Bg&&$j(a,s)?(a=_j(),md=Dg=Ti=null,Yo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Ij&&s.locale!=="ko"?null:s.data;default:return null}}var AI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vj(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!AI[a.type]:s==="textarea"}function Fj(a,s,u,d){Ho?Ko?Ko.push(d):Ko=[d]:Ho=d,s=oh(s,"onChange"),0<s.length&&(u=new vd("onChange","change",null,u,d),a.push({event:u,listeners:s}))}var Lu=null,Iu=null;function OI(a){EO(a,0)}function xd(a){var s=Mu(a);if(Oj(s))return a}function Hj(a,s){if(a==="change")return s}var Kj=!1;if(Ea){var Ug;if(Ea){var $g="oninput"in document;if(!$g){var Yj=document.createElement("div");Yj.setAttribute("oninput","return;"),$g=typeof Yj.oninput=="function"}Ug=$g}else Ug=!1;Kj=Ug&&(!document.documentMode||9<document.documentMode)}function Gj(){Lu&&(Lu.detachEvent("onpropertychange",Wj),Iu=Lu=null)}function Wj(a){if(a.propertyName==="value"&&xd(Iu)){var s=[];Fj(s,Iu,a,Mg(a)),Pj(OI,s)}}function EI(a,s,u){a==="focusin"?(Gj(),Lu=s,Iu=u,Lu.attachEvent("onpropertychange",Wj)):a==="focusout"&&Gj()}function NI(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return xd(Iu)}function TI(a,s){if(a==="click")return xd(s)}function CI(a,s){if(a==="input"||a==="change")return xd(s)}function kI(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var nr=typeof Object.is=="function"?Object.is:kI;function Bu(a,s){if(nr(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var u=Object.keys(a),d=Object.keys(s);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var v=u[d];if(!Ro.call(s,v)||!nr(a[v],s[v]))return!1}return!0}function Qj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Xj(a,s){var u=Qj(a);a=0;for(var d;u;){if(u.nodeType===3){if(d=a+u.textContent.length,a<=s&&d>=s)return{node:u,offset:s-a};a=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Qj(u)}}function Zj(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?Zj(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function Jj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=dd(a.document);s instanceof a.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)a=s.contentWindow;else break;s=dd(a.document)}return s}function qg(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}var MI=Ea&&"documentMode"in document&&11>=document.documentMode,Go=null,Vg=null,Uu=null,Fg=!1;function e2(a,s,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Fg||Go==null||Go!==dd(d)||(d=Go,"selectionStart"in d&&qg(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Uu&&Bu(Uu,d)||(Uu=d,d=oh(Vg,"onSelect"),0<d.length&&(s=new vd("onSelect","select",null,s,u),a.push({event:s,listeners:d}),s.target=Go)))}function ks(a,s){var u={};return u[a.toLowerCase()]=s.toLowerCase(),u["Webkit"+a]="webkit"+s,u["Moz"+a]="moz"+s,u}var Wo={animationend:ks("Animation","AnimationEnd"),animationiteration:ks("Animation","AnimationIteration"),animationstart:ks("Animation","AnimationStart"),transitionrun:ks("Transition","TransitionRun"),transitionstart:ks("Transition","TransitionStart"),transitioncancel:ks("Transition","TransitionCancel"),transitionend:ks("Transition","TransitionEnd")},Hg={},t2={};Ea&&(t2=document.createElement("div").style,"AnimationEvent"in window||(delete Wo.animationend.animation,delete Wo.animationiteration.animation,delete Wo.animationstart.animation),"TransitionEvent"in window||delete Wo.transitionend.transition);function Ms(a){if(Hg[a])return Hg[a];if(!Wo[a])return a;var s=Wo[a],u;for(u in s)if(s.hasOwnProperty(u)&&u in t2)return Hg[a]=s[u];return a}var n2=Ms("animationend"),r2=Ms("animationiteration"),a2=Ms("animationstart"),PI=Ms("transitionrun"),_I=Ms("transitionstart"),DI=Ms("transitioncancel"),i2=Ms("transitionend"),s2=new Map,Kg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kg.push("scrollEnd");function qr(a,s){s2.set(a,s),Ts(s,[a])}var bd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},vr=[],Qo=0,Yg=0;function wd(){for(var a=Qo,s=Yg=Qo=0;s<a;){var u=vr[s];vr[s++]=null;var d=vr[s];vr[s++]=null;var v=vr[s];vr[s++]=null;var x=vr[s];if(vr[s++]=null,d!==null&&v!==null){var E=d.pending;E===null?v.next=v:(v.next=E.next,E.next=v),d.pending=v}x!==0&&o2(u,v,x)}}function Sd(a,s,u,d){vr[Qo++]=a,vr[Qo++]=s,vr[Qo++]=u,vr[Qo++]=d,Yg|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function Gg(a,s,u,d){return Sd(a,s,u,d),jd(a)}function Ps(a,s){return Sd(a,null,null,s),jd(a)}function o2(a,s,u){a.lanes|=u;var d=a.alternate;d!==null&&(d.lanes|=u);for(var v=!1,x=a.return;x!==null;)x.childLanes|=u,d=x.alternate,d!==null&&(d.childLanes|=u),x.tag===22&&(a=x.stateNode,a===null||a._visibility&1||(v=!0)),a=x,x=x.return;return a.tag===3?(x=a.stateNode,v&&s!==null&&(v=31-tr(u),a=x.hiddenUpdates,d=a[v],d===null?a[v]=[s]:d.push(s),s.lane=u|536870912),x):null}function jd(a){if(50<lc)throw lc=0,ry=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var Xo={};function RI(a,s,u,d){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(a,s,u,d){return new RI(a,s,u,d)}function Wg(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Na(a,s){var u=a.alternate;return u===null?(u=rr(a.tag,s,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=s,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,s=a.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function l2(a,s){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,s=u.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function Ad(a,s,u,d,v,x){var E=0;if(d=a,typeof a=="function")Wg(a)&&(E=1);else if(typeof a=="string")E=UB(a,u,se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case B:return a=rr(31,u,s,v),a.elementType=B,a.lanes=x,a;case j:return _s(u.children,v,x,s);case A:E=8,v|=24;break;case O:return a=rr(12,u,s,v|2),a.elementType=O,a.lanes=x,a;case M:return a=rr(13,u,s,v),a.elementType=M,a.lanes=x,a;case _:return a=rr(19,u,s,v),a.elementType=_,a.lanes=x,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case N:E=10;break e;case T:E=9;break e;case C:E=11;break e;case k:E=14;break e;case D:E=16,d=null;break e}E=29,u=Error(r(130,a===null?"null":typeof a,"")),d=null}return s=rr(E,u,s,v),s.elementType=a,s.type=d,s.lanes=x,s}function _s(a,s,u,d){return a=rr(7,a,d,s),a.lanes=u,a}function Qg(a,s,u){return a=rr(6,a,null,s),a.lanes=u,a}function u2(a){var s=rr(18,null,null,0);return s.stateNode=a,s}function Xg(a,s,u){return s=rr(4,a.children!==null?a.children:[],a.key,s),s.lanes=u,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}var c2=new WeakMap;function yr(a,s){if(typeof a=="object"&&a!==null){var u=c2.get(a);return u!==void 0?u:(s={value:a,source:s,stack:Oi(s)},c2.set(a,s),s)}return{value:a,source:s,stack:Oi(s)}}var Zo=[],Jo=0,Od=null,$u=0,xr=[],br=0,Ci=null,oa=1,la="";function Ta(a,s){Zo[Jo++]=$u,Zo[Jo++]=Od,Od=a,$u=s}function f2(a,s,u){xr[br++]=oa,xr[br++]=la,xr[br++]=Ci,Ci=a;var d=oa;a=la;var v=32-tr(d)-1;d&=~(1<<v),u+=1;var x=32-tr(s)+v;if(30<x){var E=v-v%5;x=(d&(1<<E)-1).toString(32),d>>=E,v-=E,oa=1<<32-tr(s)+v|u<<v|d,la=x+a}else oa=1<<x|u<<v|d,la=a}function Zg(a){a.return!==null&&(Ta(a,1),f2(a,1,0))}function Jg(a){for(;a===Od;)Od=Zo[--Jo],Zo[Jo]=null,$u=Zo[--Jo],Zo[Jo]=null;for(;a===Ci;)Ci=xr[--br],xr[br]=null,la=xr[--br],xr[br]=null,oa=xr[--br],xr[br]=null}function d2(a,s){xr[br++]=oa,xr[br++]=la,xr[br++]=Ci,oa=s.id,la=s.overflow,Ci=a}var mn=null,ht=null,Fe=!1,ki=null,wr=!1,ev=Error(r(519));function Mi(a){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qu(yr(s,a)),ev}function h2(a){var s=a.stateNode,u=a.type,d=a.memoizedProps;switch(s[hn]=a,s[Un]=d,u){case"dialog":$e("cancel",s),$e("close",s);break;case"iframe":case"object":case"embed":$e("load",s);break;case"video":case"audio":for(u=0;u<cc.length;u++)$e(cc[u],s);break;case"source":$e("error",s);break;case"img":case"image":case"link":$e("error",s),$e("load",s);break;case"details":$e("toggle",s);break;case"input":$e("invalid",s),Ej(s,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":$e("invalid",s);break;case"textarea":$e("invalid",s),Tj(s,d.value,d.defaultValue,d.children)}u=d.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||d.suppressHydrationWarning===!0||kO(s.textContent,u)?(d.popover!=null&&($e("beforetoggle",s),$e("toggle",s)),d.onScroll!=null&&$e("scroll",s),d.onScrollEnd!=null&&$e("scrollend",s),d.onClick!=null&&(s.onclick=Oa),s=!0):s=!1,s||Mi(a,!0)}function m2(a){for(mn=a.return;mn;)switch(mn.tag){case 5:case 31:case 13:wr=!1;return;case 27:case 3:wr=!0;return;default:mn=mn.return}}function el(a){if(a!==mn)return!1;if(!Fe)return m2(a),Fe=!0,!1;var s=a.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||yy(a.type,a.memoizedProps)),u=!u),u&&ht&&Mi(a),m2(a),s===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));ht=BO(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));ht=BO(a)}else s===27?(s=ht,Hi(a.type)?(a=jy,jy=null,ht=a):ht=s):ht=mn?jr(a.stateNode.nextSibling):null;return!0}function Ds(){ht=mn=null,Fe=!1}function tv(){var a=ki;return a!==null&&(Hn===null?Hn=a:Hn.push.apply(Hn,a),ki=null),a}function qu(a){ki===null?ki=[a]:ki.push(a)}var nv=R(null),Rs=null,Ca=null;function Pi(a,s,u){ae(nv,s._currentValue),s._currentValue=u}function ka(a){a._currentValue=nv.current,F(nv)}function rv(a,s,u){for(;a!==null;){var d=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),a===u)break;a=a.return}}function av(a,s,u,d){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var x=v.dependencies;if(x!==null){var E=v.child;x=x.firstContext;e:for(;x!==null;){var P=x;x=v;for(var z=0;z<s.length;z++)if(P.context===s[z]){x.lanes|=u,P=x.alternate,P!==null&&(P.lanes|=u),rv(x.return,u,a),d||(E=null);break e}x=P.next}}else if(v.tag===18){if(E=v.return,E===null)throw Error(r(341));E.lanes|=u,x=E.alternate,x!==null&&(x.lanes|=u),rv(E,u,a),E=null}else E=v.child;if(E!==null)E.return=v;else for(E=v;E!==null;){if(E===a){E=null;break}if(v=E.sibling,v!==null){v.return=E.return,E=v;break}E=E.return}v=E}}function tl(a,s,u,d){a=null;for(var v=s,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var E=v.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var P=v.type;nr(v.pendingProps.value,E.value)||(a!==null?a.push(P):a=[P])}}else if(v===fe.current){if(E=v.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(pc):a=[pc])}v=v.return}a!==null&&av(s,a,u,d),s.flags|=262144}function Ed(a){for(a=a.firstContext;a!==null;){if(!nr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function zs(a){Rs=a,Ca=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function pn(a){return p2(Rs,a)}function Nd(a,s){return Rs===null&&zs(a),p2(a,s)}function p2(a,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ca===null){if(a===null)throw Error(r(308));Ca=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else Ca=Ca.next=s;return u}var zI=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(u,d){a.push(d)}};this.abort=function(){s.aborted=!0,a.forEach(function(u){return u()})}},LI=e.unstable_scheduleCallback,II=e.unstable_NormalPriority,Lt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iv(){return{controller:new zI,data:new Map,refCount:0}}function Vu(a){a.refCount--,a.refCount===0&&LI(II,function(){a.controller.abort()})}var Fu=null,sv=0,nl=0,rl=null;function BI(a,s){if(Fu===null){var u=Fu=[];sv=0,nl=uy(),rl={status:"pending",value:void 0,then:function(d){u.push(d)}}}return sv++,s.then(g2,g2),s}function g2(){if(--sv===0&&Fu!==null){rl!==null&&(rl.status="fulfilled");var a=Fu;Fu=null,nl=0,rl=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function UI(a,s){var u=[],d={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return a.then(function(){d.status="fulfilled",d.value=s;for(var v=0;v<u.length;v++)(0,u[v])(s)},function(v){for(d.status="rejected",d.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),d}var v2=q.S;q.S=function(a,s){eO=ue(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&BI(a,s),v2!==null&&v2(a,s)};var Ls=R(null);function ov(){var a=Ls.current;return a!==null?a:ut.pooledCache}function Td(a,s){s===null?ae(Ls,Ls.current):ae(Ls,s.pool)}function y2(){var a=ov();return a===null?null:{parent:Lt._currentValue,pool:a}}var al=Error(r(460)),lv=Error(r(474)),Cd=Error(r(542)),kd={then:function(){}};function x2(a){return a=a.status,a==="fulfilled"||a==="rejected"}function b2(a,s,u){switch(u=a[u],u===void 0?a.push(s):u!==s&&(s.then(Oa,Oa),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,S2(a),a;default:if(typeof s.status=="string")s.then(Oa,Oa);else{if(a=ut,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(d){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=d}},function(d){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=d}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,S2(a),a}throw Bs=s,al}}function Is(a){try{var s=a._init;return s(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Bs=u,al):u}}var Bs=null;function w2(){if(Bs===null)throw Error(r(459));var a=Bs;return Bs=null,a}function S2(a){if(a===al||a===Cd)throw Error(r(483))}var il=null,Hu=0;function Md(a){var s=Hu;return Hu+=1,il===null&&(il=[]),b2(il,a,s)}function Ku(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function Pd(a,s){throw s.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function j2(a){function s(U,I){if(a){var V=U.deletions;V===null?(U.deletions=[I],U.flags|=16):V.push(I)}}function u(U,I){if(!a)return null;for(;I!==null;)s(U,I),I=I.sibling;return null}function d(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function v(U,I){return U=Na(U,I),U.index=0,U.sibling=null,U}function x(U,I,V){return U.index=V,a?(V=U.alternate,V!==null?(V=V.index,V<I?(U.flags|=67108866,I):V):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function E(U){return a&&U.alternate===null&&(U.flags|=67108866),U}function P(U,I,V,te){return I===null||I.tag!==6?(I=Qg(V,U.mode,te),I.return=U,I):(I=v(I,V),I.return=U,I)}function z(U,I,V,te){var je=V.type;return je===j?ee(U,I,V.props.children,te,V.key):I!==null&&(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===D&&Is(je)===I.type)?(I=v(I,V.props),Ku(I,V),I.return=U,I):(I=Ad(V.type,V.key,V.props,null,U.mode,te),Ku(I,V),I.return=U,I)}function H(U,I,V,te){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=Xg(V,U.mode,te),I.return=U,I):(I=v(I,V.children||[]),I.return=U,I)}function ee(U,I,V,te,je){return I===null||I.tag!==7?(I=_s(V,U.mode,te,je),I.return=U,I):(I=v(I,V),I.return=U,I)}function re(U,I,V){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Qg(""+I,U.mode,V),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return V=Ad(I.type,I.key,I.props,null,U.mode,V),Ku(V,I),V.return=U,V;case S:return I=Xg(I,U.mode,V),I.return=U,I;case D:return I=Is(I),re(U,I,V)}if(me(I)||Z(I))return I=_s(I,U.mode,V,null),I.return=U,I;if(typeof I.then=="function")return re(U,Md(I),V);if(I.$$typeof===N)return re(U,Nd(U,I),V);Pd(U,I)}return null}function G(U,I,V,te){var je=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return je!==null?null:P(U,I,""+V,te);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return V.key===je?z(U,I,V,te):null;case S:return V.key===je?H(U,I,V,te):null;case D:return V=Is(V),G(U,I,V,te)}if(me(V)||Z(V))return je!==null?null:ee(U,I,V,te,null);if(typeof V.then=="function")return G(U,I,Md(V),te);if(V.$$typeof===N)return G(U,I,Nd(U,V),te);Pd(U,V)}return null}function X(U,I,V,te,je){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return U=U.get(V)||null,P(I,U,""+te,je);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return U=U.get(te.key===null?V:te.key)||null,z(I,U,te,je);case S:return U=U.get(te.key===null?V:te.key)||null,H(I,U,te,je);case D:return te=Is(te),X(U,I,V,te,je)}if(me(te)||Z(te))return U=U.get(V)||null,ee(I,U,te,je,null);if(typeof te.then=="function")return X(U,I,V,Md(te),je);if(te.$$typeof===N)return X(U,I,V,Nd(I,te),je);Pd(I,te)}return null}function ge(U,I,V,te){for(var je=null,Ke=null,be=I,ze=I=0,Ve=null;be!==null&&ze<V.length;ze++){be.index>ze?(Ve=be,be=null):Ve=be.sibling;var Ye=G(U,be,V[ze],te);if(Ye===null){be===null&&(be=Ve);break}a&&be&&Ye.alternate===null&&s(U,be),I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye,be=Ve}if(ze===V.length)return u(U,be),Fe&&Ta(U,ze),je;if(be===null){for(;ze<V.length;ze++)be=re(U,V[ze],te),be!==null&&(I=x(be,I,ze),Ke===null?je=be:Ke.sibling=be,Ke=be);return Fe&&Ta(U,ze),je}for(be=d(be);ze<V.length;ze++)Ve=X(be,U,ze,V[ze],te),Ve!==null&&(a&&Ve.alternate!==null&&be.delete(Ve.key===null?ze:Ve.key),I=x(Ve,I,ze),Ke===null?je=Ve:Ke.sibling=Ve,Ke=Ve);return a&&be.forEach(function(Qi){return s(U,Qi)}),Fe&&Ta(U,ze),je}function Ne(U,I,V,te){if(V==null)throw Error(r(151));for(var je=null,Ke=null,be=I,ze=I=0,Ve=null,Ye=V.next();be!==null&&!Ye.done;ze++,Ye=V.next()){be.index>ze?(Ve=be,be=null):Ve=be.sibling;var Qi=G(U,be,Ye.value,te);if(Qi===null){be===null&&(be=Ve);break}a&&be&&Qi.alternate===null&&s(U,be),I=x(Qi,I,ze),Ke===null?je=Qi:Ke.sibling=Qi,Ke=Qi,be=Ve}if(Ye.done)return u(U,be),Fe&&Ta(U,ze),je;if(be===null){for(;!Ye.done;ze++,Ye=V.next())Ye=re(U,Ye.value,te),Ye!==null&&(I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye);return Fe&&Ta(U,ze),je}for(be=d(be);!Ye.done;ze++,Ye=V.next())Ye=X(be,U,ze,Ye.value,te),Ye!==null&&(a&&Ye.alternate!==null&&be.delete(Ye.key===null?ze:Ye.key),I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye);return a&&be.forEach(function(XB){return s(U,XB)}),Fe&&Ta(U,ze),je}function st(U,I,V,te){if(typeof V=="object"&&V!==null&&V.type===j&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case b:e:{for(var je=V.key;I!==null;){if(I.key===je){if(je=V.type,je===j){if(I.tag===7){u(U,I.sibling),te=v(I,V.props.children),te.return=U,U=te;break e}}else if(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===D&&Is(je)===I.type){u(U,I.sibling),te=v(I,V.props),Ku(te,V),te.return=U,U=te;break e}u(U,I);break}else s(U,I);I=I.sibling}V.type===j?(te=_s(V.props.children,U.mode,te,V.key),te.return=U,U=te):(te=Ad(V.type,V.key,V.props,null,U.mode,te),Ku(te,V),te.return=U,U=te)}return E(U);case S:e:{for(je=V.key;I!==null;){if(I.key===je)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){u(U,I.sibling),te=v(I,V.children||[]),te.return=U,U=te;break e}else{u(U,I);break}else s(U,I);I=I.sibling}te=Xg(V,U.mode,te),te.return=U,U=te}return E(U);case D:return V=Is(V),st(U,I,V,te)}if(me(V))return ge(U,I,V,te);if(Z(V)){if(je=Z(V),typeof je!="function")throw Error(r(150));return V=je.call(V),Ne(U,I,V,te)}if(typeof V.then=="function")return st(U,I,Md(V),te);if(V.$$typeof===N)return st(U,I,Nd(U,V),te);Pd(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,I!==null&&I.tag===6?(u(U,I.sibling),te=v(I,V),te.return=U,U=te):(u(U,I),te=Qg(V,U.mode,te),te.return=U,U=te),E(U)):u(U,I)}return function(U,I,V,te){try{Hu=0;var je=st(U,I,V,te);return il=null,je}catch(be){if(be===al||be===Cd)throw be;var Ke=rr(29,be,null,U.mode);return Ke.lanes=te,Ke.return=U,Ke}finally{}}}var Us=j2(!0),A2=j2(!1),_i=!1;function uv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cv(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Di(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ri(a,s,u){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,(Xe&2)!==0){var v=d.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s,s=jd(a),o2(a,null,u),s}return Sd(a,d,s,u),jd(a)}function Yu(a,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var d=s.lanes;d&=a.pendingLanes,u|=d,s.lanes=u,pj(a,u)}}function fv(a,s){var u=a.updateQueue,d=a.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var E={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=E:x=x.next=E,u=u.next}while(u!==null);x===null?v=x=s:x=x.next=s}else v=x=s;u={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:d.shared,callbacks:d.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=s:a.next=s,u.lastBaseUpdate=s}var dv=!1;function Gu(){if(dv){var a=rl;if(a!==null)throw a}}function Wu(a,s,u,d){dv=!1;var v=a.updateQueue;_i=!1;var x=v.firstBaseUpdate,E=v.lastBaseUpdate,P=v.shared.pending;if(P!==null){v.shared.pending=null;var z=P,H=z.next;z.next=null,E===null?x=H:E.next=H,E=z;var ee=a.alternate;ee!==null&&(ee=ee.updateQueue,P=ee.lastBaseUpdate,P!==E&&(P===null?ee.firstBaseUpdate=H:P.next=H,ee.lastBaseUpdate=z))}if(x!==null){var re=v.baseState;E=0,ee=H=z=null,P=x;do{var G=P.lane&-536870913,X=G!==P.lane;if(X?(qe&G)===G:(d&G)===G){G!==0&&G===nl&&(dv=!0),ee!==null&&(ee=ee.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var ge=a,Ne=P;G=s;var st=u;switch(Ne.tag){case 1:if(ge=Ne.payload,typeof ge=="function"){re=ge.call(st,re,G);break e}re=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Ne.payload,G=typeof ge=="function"?ge.call(st,re,G):ge,G==null)break e;re=g({},re,G);break e;case 2:_i=!0}}G=P.callback,G!==null&&(a.flags|=64,X&&(a.flags|=8192),X=v.callbacks,X===null?v.callbacks=[G]:X.push(G))}else X={lane:G,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ee===null?(H=ee=X,z=re):ee=ee.next=X,E|=G;if(P=P.next,P===null){if(P=v.shared.pending,P===null)break;X=P,P=X.next,X.next=null,v.lastBaseUpdate=X,v.shared.pending=null}}while(!0);ee===null&&(z=re),v.baseState=z,v.firstBaseUpdate=H,v.lastBaseUpdate=ee,x===null&&(v.shared.lanes=0),Ui|=E,a.lanes=E,a.memoizedState=re}}function O2(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function E2(a,s){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)O2(u[a],s)}var sl=R(null),_d=R(0);function N2(a,s){a=Ba,ae(_d,a),ae(sl,s),Ba=a|s.baseLanes}function hv(){ae(_d,Ba),ae(sl,sl.current)}function mv(){Ba=_d.current,F(sl),F(_d)}var ar=R(null),Sr=null;function zi(a){var s=a.alternate;ae(Mt,Mt.current&1),ae(ar,a),Sr===null&&(s===null||sl.current!==null||s.memoizedState!==null)&&(Sr=a)}function pv(a){ae(Mt,Mt.current),ae(ar,a),Sr===null&&(Sr=a)}function T2(a){a.tag===22?(ae(Mt,Mt.current),ae(ar,a),Sr===null&&(Sr=a)):Li()}function Li(){ae(Mt,Mt.current),ae(ar,ar.current)}function ir(a){F(ar),Sr===a&&(Sr=null),F(Mt)}var Mt=R(0);function Dd(a){for(var s=a;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||wy(u)||Sy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ma=0,Re=null,at=null,It=null,Rd=!1,ol=!1,$s=!1,zd=0,Qu=0,ll=null,$I=0;function Et(){throw Error(r(321))}function gv(a,s){if(s===null)return!1;for(var u=0;u<s.length&&u<a.length;u++)if(!nr(a[u],s[u]))return!1;return!0}function vv(a,s,u,d,v,x){return Ma=x,Re=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,q.H=a===null||a.memoizedState===null?fA:Pv,$s=!1,x=u(d,v),$s=!1,ol&&(x=k2(s,u,d,v)),C2(a),x}function C2(a){q.H=Ju;var s=at!==null&&at.next!==null;if(Ma=0,It=at=Re=null,Rd=!1,Qu=0,ll=null,s)throw Error(r(300));a===null||Bt||(a=a.dependencies,a!==null&&Ed(a)&&(Bt=!0))}function k2(a,s,u,d){Re=a;var v=0;do{if(ol&&(ll=null),Qu=0,ol=!1,25<=v)throw Error(r(301));if(v+=1,It=at=null,a.updateQueue!=null){var x=a.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}q.H=dA,x=s(u,d)}while(ol);return x}function qI(){var a=q.H,s=a.useState()[0];return s=typeof s.then=="function"?Xu(s):s,a=a.useState()[0],(at!==null?at.memoizedState:null)!==a&&(Re.flags|=1024),s}function yv(){var a=zd!==0;return zd=0,a}function xv(a,s,u){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~u}function bv(a){if(Rd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Rd=!1}Ma=0,It=at=Re=null,ol=!1,Qu=zd=0,ll=null}function Cn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?Re.memoizedState=It=a:It=It.next=a,It}function Pt(){if(at===null){var a=Re.alternate;a=a!==null?a.memoizedState:null}else a=at.next;var s=It===null?Re.memoizedState:It.next;if(s!==null)It=s,at=a;else{if(a===null)throw Re.alternate===null?Error(r(467)):Error(r(310));at=a,a={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},It===null?Re.memoizedState=It=a:It=It.next=a}return It}function Ld(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xu(a){var s=Qu;return Qu+=1,ll===null&&(ll=[]),a=b2(ll,a,s),s=Re,(It===null?s.memoizedState:It.next)===null&&(s=s.alternate,q.H=s===null||s.memoizedState===null?fA:Pv),a}function Id(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Xu(a);if(a.$$typeof===N)return pn(a)}throw Error(r(438,String(a)))}function wv(a){var s=null,u=Re.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var d=Re.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(s={data:d.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Ld(),Re.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(a),d=0;d<a;d++)u[d]=K;return s.index++,u}function Pa(a,s){return typeof s=="function"?s(a):s}function Bd(a){var s=Pt();return Sv(s,at,a)}function Sv(a,s,u){var d=a.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var v=a.baseQueue,x=d.pending;if(x!==null){if(v!==null){var E=v.next;v.next=x.next,x.next=E}s.baseQueue=v=x,d.pending=null}if(x=a.baseState,v===null)a.memoizedState=x;else{s=v.next;var P=E=null,z=null,H=s,ee=!1;do{var re=H.lane&-536870913;if(re!==H.lane?(qe&re)===re:(Ma&re)===re){var G=H.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),re===nl&&(ee=!0);else if((Ma&G)===G){H=H.next,G===nl&&(ee=!0);continue}else re={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(P=z=re,E=x):z=z.next=re,Re.lanes|=G,Ui|=G;re=H.action,$s&&u(x,re),x=H.hasEagerState?H.eagerState:u(x,re)}else G={lane:re,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(P=z=G,E=x):z=z.next=G,Re.lanes|=re,Ui|=re;H=H.next}while(H!==null&&H!==s);if(z===null?E=x:z.next=P,!nr(x,a.memoizedState)&&(Bt=!0,ee&&(u=rl,u!==null)))throw u;a.memoizedState=x,a.baseState=E,a.baseQueue=z,d.lastRenderedState=x}return v===null&&(d.lanes=0),[a.memoizedState,d.dispatch]}function jv(a){var s=Pt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var d=u.dispatch,v=u.pending,x=s.memoizedState;if(v!==null){u.pending=null;var E=v=v.next;do x=a(x,E.action),E=E.next;while(E!==v);nr(x,s.memoizedState)||(Bt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),u.lastRenderedState=x}return[x,d]}function M2(a,s,u){var d=Re,v=Pt(),x=Fe;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=s();var E=!nr((at||v).memoizedState,u);if(E&&(v.memoizedState=u,Bt=!0),v=v.queue,Ev(D2.bind(null,d,v,a),[a]),v.getSnapshot!==s||E||It!==null&&It.memoizedState.tag&1){if(d.flags|=2048,ul(9,{destroy:void 0},_2.bind(null,d,v,u,s),null),ut===null)throw Error(r(349));x||(Ma&127)!==0||P2(d,s,u)}return u}function P2(a,s,u){a.flags|=16384,a={getSnapshot:s,value:u},s=Re.updateQueue,s===null?(s=Ld(),Re.updateQueue=s,s.stores=[a]):(u=s.stores,u===null?s.stores=[a]:u.push(a))}function _2(a,s,u,d){s.value=u,s.getSnapshot=d,R2(s)&&z2(a)}function D2(a,s,u){return u(function(){R2(s)&&z2(a)})}function R2(a){var s=a.getSnapshot;a=a.value;try{var u=s();return!nr(a,u)}catch{return!0}}function z2(a){var s=Ps(a,2);s!==null&&Kn(s,a,2)}function Av(a){var s=Cn();if(typeof a=="function"){var u=a;if(a=u(),$s){Ei(!0);try{u()}finally{Ei(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:a},s}function L2(a,s,u,d){return a.baseState=u,Sv(a,at,typeof d=="function"?d:Pa)}function VI(a,s,u,d,v){if(qd(a))throw Error(r(485));if(a=s.action,a!==null){var x={payload:v,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){x.listeners.push(E)}};q.T!==null?u(!0):x.isTransition=!1,d(x),u=s.pending,u===null?(x.next=s.pending=x,I2(s,x)):(x.next=u.next,s.pending=u.next=x)}}function I2(a,s){var u=s.action,d=s.payload,v=a.state;if(s.isTransition){var x=q.T,E={};q.T=E;try{var P=u(v,d),z=q.S;z!==null&&z(E,P),B2(a,s,P)}catch(H){Ov(a,s,H)}finally{x!==null&&E.types!==null&&(x.types=E.types),q.T=x}}else try{x=u(v,d),B2(a,s,x)}catch(H){Ov(a,s,H)}}function B2(a,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(d){U2(a,s,d)},function(d){return Ov(a,s,d)}):U2(a,s,u)}function U2(a,s,u){s.status="fulfilled",s.value=u,$2(s),a.state=u,s=a.pending,s!==null&&(u=s.next,u===s?a.pending=null:(u=u.next,s.next=u,I2(a,u)))}function Ov(a,s,u){var d=a.pending;if(a.pending=null,d!==null){d=d.next;do s.status="rejected",s.reason=u,$2(s),s=s.next;while(s!==d)}a.action=null}function $2(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function q2(a,s){return s}function V2(a,s){if(Fe){var u=ut.formState;if(u!==null){e:{var d=Re;if(Fe){if(ht){t:{for(var v=ht,x=wr;v.nodeType!==8;){if(!x){v=null;break t}if(v=jr(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){ht=jr(v.nextSibling),d=v.data==="F!";break e}}Mi(d)}d=!1}d&&(s=u[0])}}return u=Cn(),u.memoizedState=u.baseState=s,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q2,lastRenderedState:s},u.queue=d,u=lA.bind(null,Re,d),d.dispatch=u,d=Av(!1),x=Mv.bind(null,Re,!1,d.queue),d=Cn(),v={state:s,dispatch:null,action:a,pending:null},d.queue=v,u=VI.bind(null,Re,v,x,u),v.dispatch=u,d.memoizedState=a,[s,u,!1]}function F2(a){var s=Pt();return H2(s,at,a)}function H2(a,s,u){if(s=Sv(a,s,q2)[0],a=Bd(Pa)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=Xu(s)}catch(E){throw E===al?Cd:E}else d=s;s=Pt();var v=s.queue,x=v.dispatch;return u!==s.memoizedState&&(Re.flags|=2048,ul(9,{destroy:void 0},FI.bind(null,v,u),null)),[d,x,a]}function FI(a,s){a.action=s}function K2(a){var s=Pt(),u=at;if(u!==null)return H2(s,u,a);Pt(),s=s.memoizedState,u=Pt();var d=u.queue.dispatch;return u.memoizedState=a,[s,d,!1]}function ul(a,s,u,d){return a={tag:a,create:u,deps:d,inst:s,next:null},s=Re.updateQueue,s===null&&(s=Ld(),Re.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=a.next=a:(d=u.next,u.next=a,a.next=d,s.lastEffect=a),a}function Y2(){return Pt().memoizedState}function Ud(a,s,u,d){var v=Cn();Re.flags|=a,v.memoizedState=ul(1|s,{destroy:void 0},u,d===void 0?null:d)}function $d(a,s,u,d){var v=Pt();d=d===void 0?null:d;var x=v.memoizedState.inst;at!==null&&d!==null&&gv(d,at.memoizedState.deps)?v.memoizedState=ul(s,x,u,d):(Re.flags|=a,v.memoizedState=ul(1|s,x,u,d))}function G2(a,s){Ud(8390656,8,a,s)}function Ev(a,s){$d(2048,8,a,s)}function HI(a){Re.flags|=4;var s=Re.updateQueue;if(s===null)s=Ld(),Re.updateQueue=s,s.events=[a];else{var u=s.events;u===null?s.events=[a]:u.push(a)}}function W2(a){var s=Pt().memoizedState;return HI({ref:s,nextImpl:a}),function(){if((Xe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Q2(a,s){return $d(4,2,a,s)}function X2(a,s){return $d(4,4,a,s)}function Z2(a,s){if(typeof s=="function"){a=a();var u=s(a);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function J2(a,s,u){u=u!=null?u.concat([a]):null,$d(4,4,Z2.bind(null,s,a),u)}function Nv(){}function eA(a,s){var u=Pt();s=s===void 0?null:s;var d=u.memoizedState;return s!==null&&gv(s,d[1])?d[0]:(u.memoizedState=[a,s],a)}function tA(a,s){var u=Pt();s=s===void 0?null:s;var d=u.memoizedState;if(s!==null&&gv(s,d[1]))return d[0];if(d=a(),$s){Ei(!0);try{a()}finally{Ei(!1)}}return u.memoizedState=[d,s],d}function Tv(a,s,u){return u===void 0||(Ma&1073741824)!==0&&(qe&261930)===0?a.memoizedState=s:(a.memoizedState=u,a=nO(),Re.lanes|=a,Ui|=a,u)}function nA(a,s,u,d){return nr(u,s)?u:sl.current!==null?(a=Tv(a,u,d),nr(a,s)||(Bt=!0),a):(Ma&42)===0||(Ma&1073741824)!==0&&(qe&261930)===0?(Bt=!0,a.memoizedState=u):(a=nO(),Re.lanes|=a,Ui|=a,s)}function rA(a,s,u,d,v){var x=W.p;W.p=x!==0&&8>x?x:8;var E=q.T,P={};q.T=P,Mv(a,!1,s,u);try{var z=v(),H=q.S;if(H!==null&&H(P,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=UI(z,d);Zu(a,s,ee,lr(a))}else Zu(a,s,d,lr(a))}catch(re){Zu(a,s,{then:function(){},status:"rejected",reason:re},lr())}finally{W.p=x,E!==null&&P.types!==null&&(E.types=P.types),q.T=E}}function KI(){}function Cv(a,s,u,d){if(a.tag!==5)throw Error(r(476));var v=aA(a).queue;rA(a,v,s,Y,u===null?KI:function(){return iA(a),u(d)})}function aA(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:Y},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:u},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function iA(a){var s=aA(a);s.next===null&&(s=a.alternate.memoizedState),Zu(a,s.next.queue,{},lr())}function kv(){return pn(pc)}function sA(){return Pt().memoizedState}function oA(){return Pt().memoizedState}function YI(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var u=lr();a=Di(u);var d=Ri(s,a,u);d!==null&&(Kn(d,s,u),Yu(d,s,u)),s={cache:iv()},a.payload=s;return}s=s.return}}function GI(a,s,u){var d=lr();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},qd(a)?uA(s,u):(u=Gg(a,s,u,d),u!==null&&(Kn(u,a,d),cA(u,s,d)))}function lA(a,s,u){var d=lr();Zu(a,s,u,d)}function Zu(a,s,u,d){var v={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(qd(a))uA(s,v);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var E=s.lastRenderedState,P=x(E,u);if(v.hasEagerState=!0,v.eagerState=P,nr(P,E))return Sd(a,s,v,0),ut===null&&wd(),!1}catch{}finally{}if(u=Gg(a,s,v,d),u!==null)return Kn(u,a,d),cA(u,s,d),!0}return!1}function Mv(a,s,u,d){if(d={lane:2,revertLane:uy(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},qd(a)){if(s)throw Error(r(479))}else s=Gg(a,u,d,2),s!==null&&Kn(s,a,2)}function qd(a){var s=a.alternate;return a===Re||s!==null&&s===Re}function uA(a,s){ol=Rd=!0;var u=a.pending;u===null?s.next=s:(s.next=u.next,u.next=s),a.pending=s}function cA(a,s,u){if((u&4194048)!==0){var d=s.lanes;d&=a.pendingLanes,u|=d,s.lanes=u,pj(a,u)}}var Ju={readContext:pn,use:Id,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};Ju.useEffectEvent=Et;var fA={readContext:pn,use:Id,useCallback:function(a,s){return Cn().memoizedState=[a,s===void 0?null:s],a},useContext:pn,useEffect:G2,useImperativeHandle:function(a,s,u){u=u!=null?u.concat([a]):null,Ud(4194308,4,Z2.bind(null,s,a),u)},useLayoutEffect:function(a,s){return Ud(4194308,4,a,s)},useInsertionEffect:function(a,s){Ud(4,2,a,s)},useMemo:function(a,s){var u=Cn();s=s===void 0?null:s;var d=a();if($s){Ei(!0);try{a()}finally{Ei(!1)}}return u.memoizedState=[d,s],d},useReducer:function(a,s,u){var d=Cn();if(u!==void 0){var v=u(s);if($s){Ei(!0);try{u(s)}finally{Ei(!1)}}}else v=s;return d.memoizedState=d.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},d.queue=a,a=a.dispatch=GI.bind(null,Re,a),[d.memoizedState,a]},useRef:function(a){var s=Cn();return a={current:a},s.memoizedState=a},useState:function(a){a=Av(a);var s=a.queue,u=lA.bind(null,Re,s);return s.dispatch=u,[a.memoizedState,u]},useDebugValue:Nv,useDeferredValue:function(a,s){var u=Cn();return Tv(u,a,s)},useTransition:function(){var a=Av(!1);return a=rA.bind(null,Re,a.queue,!0,!1),Cn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,u){var d=Re,v=Cn();if(Fe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ut===null)throw Error(r(349));(qe&127)!==0||P2(d,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,G2(D2.bind(null,d,x,a),[a]),d.flags|=2048,ul(9,{destroy:void 0},_2.bind(null,d,x,u,s),null),u},useId:function(){var a=Cn(),s=ut.identifierPrefix;if(Fe){var u=la,d=oa;u=(d&~(1<<32-tr(d)-1)).toString(32)+u,s="_"+s+"R_"+u,u=zd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=$I++,s="_"+s+"r_"+u.toString(32)+"_";return a.memoizedState=s},useHostTransitionStatus:kv,useFormState:V2,useActionState:V2,useOptimistic:function(a){var s=Cn();s.memoizedState=s.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Mv.bind(null,Re,!0,u),u.dispatch=s,[a,s]},useMemoCache:wv,useCacheRefresh:function(){return Cn().memoizedState=YI.bind(null,Re)},useEffectEvent:function(a){var s=Cn(),u={impl:a};return s.memoizedState=u,function(){if((Xe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Pv={readContext:pn,use:Id,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:Q2,useLayoutEffect:X2,useMemo:tA,useReducer:Bd,useRef:Y2,useState:function(){return Bd(Pa)},useDebugValue:Nv,useDeferredValue:function(a,s){var u=Pt();return nA(u,at.memoizedState,a,s)},useTransition:function(){var a=Bd(Pa)[0],s=Pt().memoizedState;return[typeof a=="boolean"?a:Xu(a),s]},useSyncExternalStore:M2,useId:sA,useHostTransitionStatus:kv,useFormState:F2,useActionState:F2,useOptimistic:function(a,s){var u=Pt();return L2(u,at,a,s)},useMemoCache:wv,useCacheRefresh:oA};Pv.useEffectEvent=W2;var dA={readContext:pn,use:Id,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:Q2,useLayoutEffect:X2,useMemo:tA,useReducer:jv,useRef:Y2,useState:function(){return jv(Pa)},useDebugValue:Nv,useDeferredValue:function(a,s){var u=Pt();return at===null?Tv(u,a,s):nA(u,at.memoizedState,a,s)},useTransition:function(){var a=jv(Pa)[0],s=Pt().memoizedState;return[typeof a=="boolean"?a:Xu(a),s]},useSyncExternalStore:M2,useId:sA,useHostTransitionStatus:kv,useFormState:K2,useActionState:K2,useOptimistic:function(a,s){var u=Pt();return at!==null?L2(u,at,a,s):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:wv,useCacheRefresh:oA};dA.useEffectEvent=W2;function _v(a,s,u,d){s=a.memoizedState,u=u(d,s),u=u==null?s:g({},s,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Dv={enqueueSetState:function(a,s,u){a=a._reactInternals;var d=lr(),v=Di(d);v.payload=s,u!=null&&(v.callback=u),s=Ri(a,v,d),s!==null&&(Kn(s,a,d),Yu(s,a,d))},enqueueReplaceState:function(a,s,u){a=a._reactInternals;var d=lr(),v=Di(d);v.tag=1,v.payload=s,u!=null&&(v.callback=u),s=Ri(a,v,d),s!==null&&(Kn(s,a,d),Yu(s,a,d))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var u=lr(),d=Di(u);d.tag=2,s!=null&&(d.callback=s),s=Ri(a,d,u),s!==null&&(Kn(s,a,u),Yu(s,a,u))}};function hA(a,s,u,d,v,x,E){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(d,x,E):s.prototype&&s.prototype.isPureReactComponent?!Bu(u,d)||!Bu(v,x):!0}function mA(a,s,u,d){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,d),s.state!==a&&Dv.enqueueReplaceState(s,s.state,null)}function qs(a,s){var u=s;if("ref"in s){u={};for(var d in s)d!=="ref"&&(u[d]=s[d])}if(a=a.defaultProps){u===s&&(u=g({},u));for(var v in a)u[v]===void 0&&(u[v]=a[v])}return u}function pA(a){bd(a)}function gA(a){console.error(a)}function vA(a){bd(a)}function Vd(a,s){try{var u=a.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(d){setTimeout(function(){throw d})}}function yA(a,s,u){try{var d=a.onCaughtError;d(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Rv(a,s,u){return u=Di(u),u.tag=3,u.payload={element:null},u.callback=function(){Vd(a,s)},u}function xA(a){return a=Di(a),a.tag=3,a}function bA(a,s,u,d){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=d.value;a.payload=function(){return v(x)},a.callback=function(){yA(s,u,d)}}var E=u.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){yA(s,u,d),typeof v!="function"&&($i===null?$i=new Set([this]):$i.add(this));var P=d.stack;this.componentDidCatch(d.value,{componentStack:P!==null?P:""})})}function WI(a,s,u,d,v){if(u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(s=u.alternate,s!==null&&tl(s,u,v,!0),u=ar.current,u!==null){switch(u.tag){case 31:case 13:return Sr===null?th():u.alternate===null&&Nt===0&&(Nt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,d===kd?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([d]):s.add(d),sy(a,d,v)),!1;case 22:return u.flags|=65536,d===kd?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([d])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([d]):u.add(d)),sy(a,d,v)),!1}throw Error(r(435,u.tag))}return sy(a,d,v),th(),!1}if(Fe)return s=ar.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,d!==ev&&(a=Error(r(422),{cause:d}),qu(yr(a,u)))):(d!==ev&&(s=Error(r(423),{cause:d}),qu(yr(s,u))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,d=yr(d,u),v=Rv(a.stateNode,d,v),fv(a,v),Nt!==4&&(Nt=2)),!1;var x=Error(r(520),{cause:d});if(x=yr(x,u),oc===null?oc=[x]:oc.push(x),Nt!==4&&(Nt=2),s===null)return!0;d=yr(d,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,a=v&-v,u.lanes|=a,a=Rv(u.stateNode,d,a),fv(u,a),!1;case 1:if(s=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&($i===null||!$i.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=xA(v),bA(v,a,u,d),fv(u,v),!1}u=u.return}while(u!==null);return!1}var zv=Error(r(461)),Bt=!1;function gn(a,s,u,d){s.child=a===null?A2(s,null,u,d):Us(s,a.child,u,d)}function wA(a,s,u,d,v){u=u.render;var x=s.ref;if("ref"in d){var E={};for(var P in d)P!=="ref"&&(E[P]=d[P])}else E=d;return zs(s),d=vv(a,s,u,E,x,v),P=yv(),a!==null&&!Bt?(xv(a,s,v),_a(a,s,v)):(Fe&&P&&Zg(s),s.flags|=1,gn(a,s,d,v),s.child)}function SA(a,s,u,d,v){if(a===null){var x=u.type;return typeof x=="function"&&!Wg(x)&&x.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=x,jA(a,s,x,d,v)):(a=Ad(u.type,null,d,s,s.mode,v),a.ref=s.ref,a.return=s,s.child=a)}if(x=a.child,!Fv(a,v)){var E=x.memoizedProps;if(u=u.compare,u=u!==null?u:Bu,u(E,d)&&a.ref===s.ref)return _a(a,s,v)}return s.flags|=1,a=Na(x,d),a.ref=s.ref,a.return=s,s.child=a}function jA(a,s,u,d,v){if(a!==null){var x=a.memoizedProps;if(Bu(x,d)&&a.ref===s.ref)if(Bt=!1,s.pendingProps=d=x,Fv(a,v))(a.flags&131072)!==0&&(Bt=!0);else return s.lanes=a.lanes,_a(a,s,v)}return Lv(a,s,u,d,v)}function AA(a,s,u,d){var v=d.children,x=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((s.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,a!==null){for(d=s.child=a.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~x}else d=0,s.child=null;return OA(a,s,x,u,d)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&Td(s,x!==null?x.cachePool:null),x!==null?N2(s,x):hv(),T2(s);else return d=s.lanes=536870912,OA(a,s,x!==null?x.baseLanes|u:u,u,d)}else x!==null?(Td(s,x.cachePool),N2(s,x),Li(),s.memoizedState=null):(a!==null&&Td(s,null),hv(),Li());return gn(a,s,v,u),s.child}function ec(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function OA(a,s,u,d,v){var x=ov();return x=x===null?null:{parent:Lt._currentValue,pool:x},s.memoizedState={baseLanes:u,cachePool:x},a!==null&&Td(s,null),hv(),T2(s),a!==null&&tl(a,s,d,!0),s.childLanes=v,null}function Fd(a,s){return s=Kd({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}function EA(a,s,u){return Us(s,a.child,null,u),a=Fd(s,s.pendingProps),a.flags|=2,ir(s),s.memoizedState=null,a}function QI(a,s,u){var d=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(Fe){if(d.mode==="hidden")return a=Fd(s,d),s.lanes=536870912,ec(null,a);if(pv(s),(a=ht)?(a=IO(a,wr),a=a!==null&&a.data==="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:oa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},u=u2(a),u.return=s,s.child=u,mn=s,ht=null)):a=null,a===null)throw Mi(s);return s.lanes=536870912,null}return Fd(s,d)}var x=a.memoizedState;if(x!==null){var E=x.dehydrated;if(pv(s),v)if(s.flags&256)s.flags&=-257,s=EA(a,s,u);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(r(558));else if(Bt||tl(a,s,u,!1),v=(u&a.childLanes)!==0,Bt||v){if(d=ut,d!==null&&(E=gj(d,u),E!==0&&E!==x.retryLane))throw x.retryLane=E,Ps(a,E),Kn(d,a,E),zv;th(),s=EA(a,s,u)}else a=x.treeContext,ht=jr(E.nextSibling),mn=s,Fe=!0,ki=null,wr=!1,a!==null&&d2(s,a),s=Fd(s,d),s.flags|=4096;return s}return a=Na(a.child,{mode:d.mode,children:d.children}),a.ref=s.ref,s.child=a,a.return=s,a}function Hd(a,s){var u=s.ref;if(u===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(s.flags|=4194816)}}function Lv(a,s,u,d,v){return zs(s),u=vv(a,s,u,d,void 0,v),d=yv(),a!==null&&!Bt?(xv(a,s,v),_a(a,s,v)):(Fe&&d&&Zg(s),s.flags|=1,gn(a,s,u,v),s.child)}function NA(a,s,u,d,v,x){return zs(s),s.updateQueue=null,u=k2(s,d,u,v),C2(a),d=yv(),a!==null&&!Bt?(xv(a,s,x),_a(a,s,x)):(Fe&&d&&Zg(s),s.flags|=1,gn(a,s,u,x),s.child)}function TA(a,s,u,d,v){if(zs(s),s.stateNode===null){var x=Xo,E=u.contextType;typeof E=="object"&&E!==null&&(x=pn(E)),x=new u(d,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Dv,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=d,x.state=s.memoizedState,x.refs={},uv(s),E=u.contextType,x.context=typeof E=="object"&&E!==null?pn(E):Xo,x.state=s.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(_v(s,u,E,d),x.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(E=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),E!==x.state&&Dv.enqueueReplaceState(x,x.state,null),Wu(s,d,x,v),Gu(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(a===null){x=s.stateNode;var P=s.memoizedProps,z=qs(u,P);x.props=z;var H=x.context,ee=u.contextType;E=Xo,typeof ee=="object"&&ee!==null&&(E=pn(ee));var re=u.getDerivedStateFromProps;ee=typeof re=="function"||typeof x.getSnapshotBeforeUpdate=="function",P=s.pendingProps!==P,ee||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P||H!==E)&&mA(s,x,d,E),_i=!1;var G=s.memoizedState;x.state=G,Wu(s,d,x,v),Gu(),H=s.memoizedState,P||G!==H||_i?(typeof re=="function"&&(_v(s,u,re,d),H=s.memoizedState),(z=_i||hA(s,u,z,d,G,H,E))?(ee||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=H),x.props=d,x.state=H,x.context=E,d=z):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{x=s.stateNode,cv(a,s),E=s.memoizedProps,ee=qs(u,E),x.props=ee,re=s.pendingProps,G=x.context,H=u.contextType,z=Xo,typeof H=="object"&&H!==null&&(z=pn(H)),P=u.getDerivedStateFromProps,(H=typeof P=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(E!==re||G!==z)&&mA(s,x,d,z),_i=!1,G=s.memoizedState,x.state=G,Wu(s,d,x,v),Gu();var X=s.memoizedState;E!==re||G!==X||_i||a!==null&&a.dependencies!==null&&Ed(a.dependencies)?(typeof P=="function"&&(_v(s,u,P,d),X=s.memoizedState),(ee=_i||hA(s,u,ee,d,G,X,z)||a!==null&&a.dependencies!==null&&Ed(a.dependencies))?(H||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(d,X,z),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(d,X,z)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||E===a.memoizedProps&&G===a.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&G===a.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=X),x.props=d,x.state=X,x.context=z,d=ee):(typeof x.componentDidUpdate!="function"||E===a.memoizedProps&&G===a.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&G===a.memoizedState||(s.flags|=1024),d=!1)}return x=d,Hd(a,s),d=(s.flags&128)!==0,x||d?(x=s.stateNode,u=d&&typeof u.getDerivedStateFromError!="function"?null:x.render(),s.flags|=1,a!==null&&d?(s.child=Us(s,a.child,null,v),s.child=Us(s,null,u,v)):gn(a,s,u,v),s.memoizedState=x.state,a=s.child):a=_a(a,s,v),a}function CA(a,s,u,d){return Ds(),s.flags|=256,gn(a,s,u,d),s.child}var Iv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bv(a){return{baseLanes:a,cachePool:y2()}}function Uv(a,s,u){return a=a!==null?a.childLanes&~u:0,s&&(a|=or),a}function kA(a,s,u){var d=s.pendingProps,v=!1,x=(s.flags&128)!==0,E;if((E=x)||(E=a!==null&&a.memoizedState===null?!1:(Mt.current&2)!==0),E&&(v=!0,s.flags&=-129),E=(s.flags&32)!==0,s.flags&=-33,a===null){if(Fe){if(v?zi(s):Li(),(a=ht)?(a=IO(a,wr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:oa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},u=u2(a),u.return=s,s.child=u,mn=s,ht=null)):a=null,a===null)throw Mi(s);return Sy(a)?s.lanes=32:s.lanes=536870912,null}var P=d.children;return d=d.fallback,v?(Li(),v=s.mode,P=Kd({mode:"hidden",children:P},v),d=_s(d,v,u,null),P.return=s,d.return=s,P.sibling=d,s.child=P,d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(a,E,u),s.memoizedState=Iv,ec(null,d)):(zi(s),$v(s,P))}var z=a.memoizedState;if(z!==null&&(P=z.dehydrated,P!==null)){if(x)s.flags&256?(zi(s),s.flags&=-257,s=qv(a,s,u)):s.memoizedState!==null?(Li(),s.child=a.child,s.flags|=128,s=null):(Li(),P=d.fallback,v=s.mode,d=Kd({mode:"visible",children:d.children},v),P=_s(P,v,u,null),P.flags|=2,d.return=s,P.return=s,d.sibling=P,s.child=d,Us(s,a.child,null,u),d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(a,E,u),s.memoizedState=Iv,s=ec(null,d));else if(zi(s),Sy(P)){if(E=P.nextSibling&&P.nextSibling.dataset,E)var H=E.dgst;E=H,d=Error(r(419)),d.stack="",d.digest=E,qu({value:d,source:null,stack:null}),s=qv(a,s,u)}else if(Bt||tl(a,s,u,!1),E=(u&a.childLanes)!==0,Bt||E){if(E=ut,E!==null&&(d=gj(E,u),d!==0&&d!==z.retryLane))throw z.retryLane=d,Ps(a,d),Kn(E,a,d),zv;wy(P)||th(),s=qv(a,s,u)}else wy(P)?(s.flags|=192,s.child=a.child,s=null):(a=z.treeContext,ht=jr(P.nextSibling),mn=s,Fe=!0,ki=null,wr=!1,a!==null&&d2(s,a),s=$v(s,d.children),s.flags|=4096);return s}return v?(Li(),P=d.fallback,v=s.mode,z=a.child,H=z.sibling,d=Na(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,H!==null?P=Na(H,P):(P=_s(P,v,u,null),P.flags|=2),P.return=s,d.return=s,d.sibling=P,s.child=d,ec(null,d),d=s.child,P=a.child.memoizedState,P===null?P=Bv(u):(v=P.cachePool,v!==null?(z=Lt._currentValue,v=v.parent!==z?{parent:z,pool:z}:v):v=y2(),P={baseLanes:P.baseLanes|u,cachePool:v}),d.memoizedState=P,d.childLanes=Uv(a,E,u),s.memoizedState=Iv,ec(a.child,d)):(zi(s),u=a.child,a=u.sibling,u=Na(u,{mode:"visible",children:d.children}),u.return=s,u.sibling=null,a!==null&&(E=s.deletions,E===null?(s.deletions=[a],s.flags|=16):E.push(a)),s.child=u,s.memoizedState=null,u)}function $v(a,s){return s=Kd({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function Kd(a,s){return a=rr(22,a,null,s),a.lanes=0,a}function qv(a,s,u){return Us(s,a.child,null,u),a=$v(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function MA(a,s,u){a.lanes|=s;var d=a.alternate;d!==null&&(d.lanes|=s),rv(a.return,s,u)}function Vv(a,s,u,d,v,x){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:v,treeForkCount:x}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=u,E.tailMode=v,E.treeForkCount=x)}function PA(a,s,u){var d=s.pendingProps,v=d.revealOrder,x=d.tail;d=d.children;var E=Mt.current,P=(E&2)!==0;if(P?(E=E&1|2,s.flags|=128):E&=1,ae(Mt,E),gn(a,s,d,u),d=Fe?$u:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&MA(a,u,s);else if(a.tag===19)MA(a,u,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(v){case"forwards":for(u=s.child,v=null;u!==null;)a=u.alternate,a!==null&&Dd(a)===null&&(v=u),u=u.sibling;u=v,u===null?(v=s.child,s.child=null):(v=u.sibling,u.sibling=null),Vv(s,!1,v,u,x,d);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=s.child,s.child=null;v!==null;){if(a=v.alternate,a!==null&&Dd(a)===null){s.child=v;break}a=v.sibling,v.sibling=u,u=v,v=a}Vv(s,!0,u,null,x,d);break;case"together":Vv(s,!1,null,null,void 0,d);break;default:s.memoizedState=null}return s.child}function _a(a,s,u){if(a!==null&&(s.dependencies=a.dependencies),Ui|=s.lanes,(u&s.childLanes)===0)if(a!==null){if(tl(a,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,u=Na(a,a.pendingProps),s.child=u,u.return=s;a.sibling!==null;)a=a.sibling,u=u.sibling=Na(a,a.pendingProps),u.return=s;u.sibling=null}return s.child}function Fv(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Ed(a)))}function XI(a,s,u){switch(s.tag){case 3:Qe(s,s.stateNode.containerInfo),Pi(s,Lt,a.memoizedState.cache),Ds();break;case 27:case 5:Te(s);break;case 4:Qe(s,s.stateNode.containerInfo);break;case 10:Pi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,pv(s),null;break;case 13:var d=s.memoizedState;if(d!==null)return d.dehydrated!==null?(zi(s),s.flags|=128,null):(u&s.child.childLanes)!==0?kA(a,s,u):(zi(s),a=_a(a,s,u),a!==null?a.sibling:null);zi(s);break;case 19:var v=(a.flags&128)!==0;if(d=(u&s.childLanes)!==0,d||(tl(a,s,u,!1),d=(u&s.childLanes)!==0),v){if(d)return PA(a,s,u);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ae(Mt,Mt.current),d)break;return null;case 22:return s.lanes=0,AA(a,s,u,s.pendingProps);case 24:Pi(s,Lt,a.memoizedState.cache)}return _a(a,s,u)}function _A(a,s,u){if(a!==null)if(a.memoizedProps!==s.pendingProps)Bt=!0;else{if(!Fv(a,u)&&(s.flags&128)===0)return Bt=!1,XI(a,s,u);Bt=(a.flags&131072)!==0}else Bt=!1,Fe&&(s.flags&1048576)!==0&&f2(s,$u,s.index);switch(s.lanes=0,s.tag){case 16:e:{var d=s.pendingProps;if(a=Is(s.elementType),s.type=a,typeof a=="function")Wg(a)?(d=qs(a,d),s.tag=1,s=TA(null,s,a,d,u)):(s.tag=0,s=Lv(null,s,a,d,u));else{if(a!=null){var v=a.$$typeof;if(v===C){s.tag=11,s=wA(null,s,a,d,u);break e}else if(v===k){s.tag=14,s=SA(null,s,a,d,u);break e}}throw s=de(a)||a,Error(r(306,s,""))}}return s;case 0:return Lv(a,s,s.type,s.pendingProps,u);case 1:return d=s.type,v=qs(d,s.pendingProps),TA(a,s,d,v,u);case 3:e:{if(Qe(s,s.stateNode.containerInfo),a===null)throw Error(r(387));d=s.pendingProps;var x=s.memoizedState;v=x.element,cv(a,s),Wu(s,d,null,u);var E=s.memoizedState;if(d=E.cache,Pi(s,Lt,d),d!==x.cache&&av(s,[Lt],u,!0),Gu(),d=E.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:E.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=CA(a,s,d,u);break e}else if(d!==v){v=yr(Error(r(424)),s),qu(v),s=CA(a,s,d,u);break e}else{switch(a=s.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(ht=jr(a.firstChild),mn=s,Fe=!0,ki=null,wr=!0,u=A2(s,null,d,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ds(),d===v){s=_a(a,s,u);break e}gn(a,s,d,u)}s=s.child}return s;case 26:return Hd(a,s),a===null?(u=FO(s.type,null,s.pendingProps,null))?s.memoizedState=u:Fe||(u=s.type,a=s.pendingProps,d=lh(Oe.current).createElement(u),d[hn]=s,d[Un]=a,vn(d,u,a),tn(d),s.stateNode=d):s.memoizedState=FO(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Te(s),a===null&&Fe&&(d=s.stateNode=$O(s.type,s.pendingProps,Oe.current),mn=s,wr=!0,v=ht,Hi(s.type)?(jy=v,ht=jr(d.firstChild)):ht=v),gn(a,s,s.pendingProps.children,u),Hd(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&Fe&&((v=d=ht)&&(d=NB(d,s.type,s.pendingProps,wr),d!==null?(s.stateNode=d,mn=s,ht=jr(d.firstChild),wr=!1,v=!0):v=!1),v||Mi(s)),Te(s),v=s.type,x=s.pendingProps,E=a!==null?a.memoizedProps:null,d=x.children,yy(v,x)?d=null:E!==null&&yy(v,E)&&(s.flags|=32),s.memoizedState!==null&&(v=vv(a,s,qI,null,null,u),pc._currentValue=v),Hd(a,s),gn(a,s,d,u),s.child;case 6:return a===null&&Fe&&((a=u=ht)&&(u=TB(u,s.pendingProps,wr),u!==null?(s.stateNode=u,mn=s,ht=null,a=!0):a=!1),a||Mi(s)),null;case 13:return kA(a,s,u);case 4:return Qe(s,s.stateNode.containerInfo),d=s.pendingProps,a===null?s.child=Us(s,null,d,u):gn(a,s,d,u),s.child;case 11:return wA(a,s,s.type,s.pendingProps,u);case 7:return gn(a,s,s.pendingProps,u),s.child;case 8:return gn(a,s,s.pendingProps.children,u),s.child;case 12:return gn(a,s,s.pendingProps.children,u),s.child;case 10:return d=s.pendingProps,Pi(s,s.type,d.value),gn(a,s,d.children,u),s.child;case 9:return v=s.type._context,d=s.pendingProps.children,zs(s),v=pn(v),d=d(v),s.flags|=1,gn(a,s,d,u),s.child;case 14:return SA(a,s,s.type,s.pendingProps,u);case 15:return jA(a,s,s.type,s.pendingProps,u);case 19:return PA(a,s,u);case 31:return QI(a,s,u);case 22:return AA(a,s,u,s.pendingProps);case 24:return zs(s),d=pn(Lt),a===null?(v=ov(),v===null&&(v=ut,x=iv(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),s.memoizedState={parent:d,cache:v},uv(s),Pi(s,Lt,v)):((a.lanes&u)!==0&&(cv(a,s),Wu(s,null,null,u),Gu()),v=a.memoizedState,x=s.memoizedState,v.parent!==d?(v={parent:d,cache:d},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Pi(s,Lt,d)):(d=x.cache,Pi(s,Lt,d),d!==v.cache&&av(s,[Lt],u,!0))),gn(a,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Da(a){a.flags|=4}function Hv(a,s,u,d,v){if((s=(a.mode&32)!==0)&&(s=!1),s){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(sO())a.flags|=8192;else throw Bs=kd,lv}else a.flags&=-16777217}function DA(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!WO(s))if(sO())a.flags|=8192;else throw Bs=kd,lv}function Yd(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?hj():536870912,a.lanes|=s,hl|=s)}function tc(a,s){if(!Fe)switch(a.tailMode){case"hidden":s=a.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:d.sibling=null}}function mt(a){var s=a.alternate!==null&&a.alternate.child===a.child,u=0,d=0;if(s)for(var v=a.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=d,a.childLanes=u,s}function ZI(a,s,u){var d=s.pendingProps;switch(Jg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(s),null;case 1:return mt(s),null;case 3:return u=s.stateNode,d=null,a!==null&&(d=a.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),ka(Lt),J(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(el(s)?Da(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,tv())),mt(s),null;case 26:var v=s.type,x=s.memoizedState;return a===null?(Da(s),x!==null?(mt(s),DA(s,x)):(mt(s),Hv(s,v,null,d,u))):x?x!==a.memoizedState?(Da(s),mt(s),DA(s,x)):(mt(s),s.flags&=-16777217):(a=a.memoizedProps,a!==d&&Da(s),mt(s),Hv(s,v,a,d,u)),null;case 27:if(Pe(s),u=Oe.current,v=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==d&&Da(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return mt(s),null}a=se.current,el(s)?h2(s):(a=$O(v,d,u),s.stateNode=a,Da(s))}return mt(s),null;case 5:if(Pe(s),v=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==d&&Da(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return mt(s),null}if(x=se.current,el(s))h2(s);else{var E=lh(Oe.current);switch(x){case 1:x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=E.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof d.is=="string"?E.createElement("select",{is:d.is}):E.createElement("select"),d.multiple?x.multiple=!0:d.size&&(x.size=d.size);break;default:x=typeof d.is=="string"?E.createElement(v,{is:d.is}):E.createElement(v)}}x[hn]=s,x[Un]=d;e:for(E=s.child;E!==null;){if(E.tag===5||E.tag===6)x.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===s)break e;for(;E.sibling===null;){if(E.return===null||E.return===s)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}s.stateNode=x;e:switch(vn(x,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Da(s)}}return mt(s),Hv(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,u),null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==d&&Da(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(r(166));if(a=Oe.current,el(s)){if(a=s.stateNode,u=s.memoizedProps,d=null,v=mn,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}a[hn]=s,a=!!(a.nodeValue===u||d!==null&&d.suppressHydrationWarning===!0||kO(a.nodeValue,u)),a||Mi(s,!0)}else a=lh(a).createTextNode(d),a[hn]=s,s.stateNode=a}return mt(s),null;case 31:if(u=s.memoizedState,a===null||a.memoizedState!==null){if(d=el(s),u!==null){if(a===null){if(!d)throw Error(r(318));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[hn]=s}else Ds(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mt(s),a=!1}else u=tv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return s.flags&256?(ir(s),s):(ir(s),null);if((s.flags&128)!==0)throw Error(r(558))}return mt(s),null;case 13:if(d=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=el(s),d!==null&&d.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[hn]=s}else Ds(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mt(s),v=!1}else v=tv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(ir(s),s):(ir(s),null)}return ir(s),(s.flags&128)!==0?(s.lanes=u,s):(u=d!==null,a=a!==null&&a.memoizedState!==null,u&&(d=s.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),x=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),x!==v&&(d.flags|=2048)),u!==a&&u&&(s.child.flags|=8192),Yd(s,s.updateQueue),mt(s),null);case 4:return J(),a===null&&hy(s.stateNode.containerInfo),mt(s),null;case 10:return ka(s.type),mt(s),null;case 19:if(F(Mt),d=s.memoizedState,d===null)return mt(s),null;if(v=(s.flags&128)!==0,x=d.rendering,x===null)if(v)tc(d,!1);else{if(Nt!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(x=Dd(a),x!==null){for(s.flags|=128,tc(d,!1),a=x.updateQueue,s.updateQueue=a,Yd(s,a),s.subtreeFlags=0,a=u,u=s.child;u!==null;)l2(u,a),u=u.sibling;return ae(Mt,Mt.current&1|2),Fe&&Ta(s,d.treeForkCount),s.child}a=a.sibling}d.tail!==null&&ue()>Zd&&(s.flags|=128,v=!0,tc(d,!1),s.lanes=4194304)}else{if(!v)if(a=Dd(x),a!==null){if(s.flags|=128,v=!0,a=a.updateQueue,s.updateQueue=a,Yd(s,a),tc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!Fe)return mt(s),null}else 2*ue()-d.renderingStartTime>Zd&&u!==536870912&&(s.flags|=128,v=!0,tc(d,!1),s.lanes=4194304);d.isBackwards?(x.sibling=s.child,s.child=x):(a=d.last,a!==null?a.sibling=x:s.child=x,d.last=x)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=ue(),a.sibling=null,u=Mt.current,ae(Mt,v?u&1|2:u&1),Fe&&Ta(s,d.treeForkCount),a):(mt(s),null);case 22:case 23:return ir(s),mv(),d=s.memoizedState!==null,a!==null?a.memoizedState!==null!==d&&(s.flags|=8192):d&&(s.flags|=8192),d?(u&536870912)!==0&&(s.flags&128)===0&&(mt(s),s.subtreeFlags&6&&(s.flags|=8192)):mt(s),u=s.updateQueue,u!==null&&Yd(s,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==u&&(s.flags|=2048),a!==null&&F(Ls),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ka(Lt),mt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function JI(a,s){switch(Jg(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return ka(Lt),J(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return Pe(s),null;case 31:if(s.memoizedState!==null){if(ir(s),s.alternate===null)throw Error(r(340));Ds()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(ir(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ds()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return F(Mt),null;case 4:return J(),null;case 10:return ka(s.type),null;case 22:case 23:return ir(s),mv(),a!==null&&F(Ls),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return ka(Lt),null;case 25:return null;default:return null}}function RA(a,s){switch(Jg(s),s.tag){case 3:ka(Lt),J();break;case 26:case 27:case 5:Pe(s);break;case 4:J();break;case 31:s.memoizedState!==null&&ir(s);break;case 13:ir(s);break;case 19:F(Mt);break;case 10:ka(s.type);break;case 22:case 23:ir(s),mv(),a!==null&&F(Ls);break;case 24:ka(Lt)}}function nc(a,s){try{var u=s.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var v=d.next;u=v;do{if((u.tag&a)===a){d=void 0;var x=u.create,E=u.inst;d=x(),E.destroy=d}u=u.next}while(u!==v)}}catch(P){tt(s,s.return,P)}}function Ii(a,s,u){try{var d=s.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var x=v.next;d=x;do{if((d.tag&a)===a){var E=d.inst,P=E.destroy;if(P!==void 0){E.destroy=void 0,v=s;var z=u,H=P;try{H()}catch(ee){tt(v,z,ee)}}}d=d.next}while(d!==x)}}catch(ee){tt(s,s.return,ee)}}function zA(a){var s=a.updateQueue;if(s!==null){var u=a.stateNode;try{E2(s,u)}catch(d){tt(a,a.return,d)}}}function LA(a,s,u){u.props=qs(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(d){tt(a,s,d)}}function rc(a,s){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var d=a.stateNode;break;case 30:d=a.stateNode;break;default:d=a.stateNode}typeof u=="function"?a.refCleanup=u(d):u.current=d}}catch(v){tt(a,s,v)}}function ua(a,s){var u=a.ref,d=a.refCleanup;if(u!==null)if(typeof d=="function")try{d()}catch(v){tt(a,s,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){tt(a,s,v)}else u.current=null}function IA(a){var s=a.type,u=a.memoizedProps,d=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&d.focus();break e;case"img":u.src?d.src=u.src:u.srcSet&&(d.srcset=u.srcSet)}}catch(v){tt(a,a.return,v)}}function Kv(a,s,u){try{var d=a.stateNode;wB(d,a.type,u,s),d[Un]=s}catch(v){tt(a,a.return,v)}}function BA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Hi(a.type)||a.tag===4}function Yv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||BA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Hi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Gv(a,s,u){var d=a.tag;if(d===5||d===6)a=a.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(a),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=Oa));else if(d!==4&&(d===27&&Hi(a.type)&&(u=a.stateNode,s=null),a=a.child,a!==null))for(Gv(a,s,u),a=a.sibling;a!==null;)Gv(a,s,u),a=a.sibling}function Gd(a,s,u){var d=a.tag;if(d===5||d===6)a=a.stateNode,s?u.insertBefore(a,s):u.appendChild(a);else if(d!==4&&(d===27&&Hi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(Gd(a,s,u),a=a.sibling;a!==null;)Gd(a,s,u),a=a.sibling}function UA(a){var s=a.stateNode,u=a.memoizedProps;try{for(var d=a.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);vn(s,d,u),s[hn]=a,s[Un]=u}catch(x){tt(a,a.return,x)}}var Ra=!1,Ut=!1,Wv=!1,$A=typeof WeakSet=="function"?WeakSet:Set,nn=null;function eB(a,s){if(a=a.containerInfo,gy=ph,a=Jj(a),qg(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var v=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var E=0,P=-1,z=-1,H=0,ee=0,re=a,G=null;t:for(;;){for(var X;re!==u||v!==0&&re.nodeType!==3||(P=E+v),re!==x||d!==0&&re.nodeType!==3||(z=E+d),re.nodeType===3&&(E+=re.nodeValue.length),(X=re.firstChild)!==null;)G=re,re=X;for(;;){if(re===a)break t;if(G===u&&++H===v&&(P=E),G===x&&++ee===d&&(z=E),(X=re.nextSibling)!==null)break;re=G,G=re.parentNode}re=X}u=P===-1||z===-1?null:{start:P,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(vy={focusedElem:a,selectionRange:u},ph=!1,nn=s;nn!==null;)if(s=nn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,nn=a;else for(;nn!==null;){switch(s=nn,x=s.alternate,a=s.flags,s.tag){case 0:if((a&4)!==0&&(a=s.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)v=a[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&x!==null){a=void 0,u=s,v=x.memoizedProps,x=x.memoizedState,d=u.stateNode;try{var ge=qs(u.type,v);a=d.getSnapshotBeforeUpdate(ge,x),d.__reactInternalSnapshotBeforeUpdate=a}catch(Ne){tt(u,u.return,Ne)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,u=a.nodeType,u===9)by(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":by(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,nn=a;break}nn=s.return}}function qA(a,s,u){var d=u.flags;switch(u.tag){case 0:case 11:case 15:La(a,u),d&4&&nc(5,u);break;case 1:if(La(a,u),d&4)if(a=u.stateNode,s===null)try{a.componentDidMount()}catch(E){tt(u,u.return,E)}else{var v=qs(u.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(v,s,a.__reactInternalSnapshotBeforeUpdate)}catch(E){tt(u,u.return,E)}}d&64&&zA(u),d&512&&rc(u,u.return);break;case 3:if(La(a,u),d&64&&(a=u.updateQueue,a!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{E2(a,s)}catch(E){tt(u,u.return,E)}}break;case 27:s===null&&d&4&&UA(u);case 26:case 5:La(a,u),s===null&&d&4&&IA(u),d&512&&rc(u,u.return);break;case 12:La(a,u);break;case 31:La(a,u),d&4&&HA(a,u);break;case 13:La(a,u),d&4&&KA(a,u),d&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=uB.bind(null,u),CB(a,u))));break;case 22:if(d=u.memoizedState!==null||Ra,!d){s=s!==null&&s.memoizedState!==null||Ut,v=Ra;var x=Ut;Ra=d,(Ut=s)&&!x?Ia(a,u,(u.subtreeFlags&8772)!==0):La(a,u),Ra=v,Ut=x}break;case 30:break;default:La(a,u)}}function VA(a){var s=a.alternate;s!==null&&(a.alternate=null,VA(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Og(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var gt=null,qn=!1;function za(a,s,u){for(u=u.child;u!==null;)FA(a,s,u),u=u.sibling}function FA(a,s,u){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(Nu,u)}catch{}switch(u.tag){case 26:Ut||ua(u,s),za(a,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Ut||ua(u,s);var d=gt,v=qn;Hi(u.type)&&(gt=u.stateNode,qn=!1),za(a,s,u),dc(u.stateNode),gt=d,qn=v;break;case 5:Ut||ua(u,s);case 6:if(d=gt,v=qn,gt=null,za(a,s,u),gt=d,qn=v,gt!==null)if(qn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(u.stateNode)}catch(x){tt(u,s,x)}else try{gt.removeChild(u.stateNode)}catch(x){tt(u,s,x)}break;case 18:gt!==null&&(qn?(a=gt,zO(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),wl(a)):zO(gt,u.stateNode));break;case 4:d=gt,v=qn,gt=u.stateNode.containerInfo,qn=!0,za(a,s,u),gt=d,qn=v;break;case 0:case 11:case 14:case 15:Ii(2,u,s),Ut||Ii(4,u,s),za(a,s,u);break;case 1:Ut||(ua(u,s),d=u.stateNode,typeof d.componentWillUnmount=="function"&&LA(u,s,d)),za(a,s,u);break;case 21:za(a,s,u);break;case 22:Ut=(d=Ut)||u.memoizedState!==null,za(a,s,u),Ut=d;break;default:za(a,s,u)}}function HA(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{wl(a)}catch(u){tt(s,s.return,u)}}}function KA(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{wl(a)}catch(u){tt(s,s.return,u)}}function tB(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new $A),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new $A),s;default:throw Error(r(435,a.tag))}}function Wd(a,s){var u=tB(a);s.forEach(function(d){if(!u.has(d)){u.add(d);var v=cB.bind(null,a,d);d.then(v,v)}})}function Vn(a,s){var u=s.deletions;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d],x=a,E=s,P=E;e:for(;P!==null;){switch(P.tag){case 27:if(Hi(P.type)){gt=P.stateNode,qn=!1;break e}break;case 5:gt=P.stateNode,qn=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,qn=!0;break e}P=P.return}if(gt===null)throw Error(r(160));FA(x,E,v),gt=null,qn=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)YA(s,a),s=s.sibling}var Vr=null;function YA(a,s){var u=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Vn(s,a),Fn(a),d&4&&(Ii(3,a,a.return),nc(3,a),Ii(5,a,a.return));break;case 1:Vn(s,a),Fn(a),d&512&&(Ut||u===null||ua(u,u.return)),d&64&&Ra&&(a=a.updateQueue,a!==null&&(d=a.callbacks,d!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?d:u.concat(d))));break;case 26:var v=Vr;if(Vn(s,a),Fn(a),d&512&&(Ut||u===null||ua(u,u.return)),d&4){var x=u!==null?u.memoizedState:null;if(d=a.memoizedState,u===null)if(d===null)if(a.stateNode===null){e:{d=a.type,u=a.memoizedProps,v=v.ownerDocument||v;t:switch(d){case"title":x=v.getElementsByTagName("title")[0],(!x||x[ku]||x[hn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(d),v.head.insertBefore(x,v.querySelector("head > title"))),vn(x,d,u),x[hn]=a,tn(x),d=x;break e;case"link":var E=YO("link","href",v).get(d+(u.href||""));if(E){for(var P=0;P<E.length;P++)if(x=E[P],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(P,1);break t}}x=v.createElement(d),vn(x,d,u),v.head.appendChild(x);break;case"meta":if(E=YO("meta","content",v).get(d+(u.content||""))){for(P=0;P<E.length;P++)if(x=E[P],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(P,1);break t}}x=v.createElement(d),vn(x,d,u),v.head.appendChild(x);break;default:throw Error(r(468,d))}x[hn]=a,tn(x),d=x}a.stateNode=d}else GO(v,a.type,a.stateNode);else a.stateNode=KO(v,d,a.memoizedProps);else x!==d?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,d===null?GO(v,a.type,a.stateNode):KO(v,d,a.memoizedProps)):d===null&&a.stateNode!==null&&Kv(a,a.memoizedProps,u.memoizedProps)}break;case 27:Vn(s,a),Fn(a),d&512&&(Ut||u===null||ua(u,u.return)),u!==null&&d&4&&Kv(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Vn(s,a),Fn(a),d&512&&(Ut||u===null||ua(u,u.return)),a.flags&32){v=a.stateNode;try{Fo(v,"")}catch(ge){tt(a,a.return,ge)}}d&4&&a.stateNode!=null&&(v=a.memoizedProps,Kv(a,v,u!==null?u.memoizedProps:v)),d&1024&&(Wv=!0);break;case 6:if(Vn(s,a),Fn(a),d&4){if(a.stateNode===null)throw Error(r(162));d=a.memoizedProps,u=a.stateNode;try{u.nodeValue=d}catch(ge){tt(a,a.return,ge)}}break;case 3:if(fh=null,v=Vr,Vr=uh(s.containerInfo),Vn(s,a),Vr=v,Fn(a),d&4&&u!==null&&u.memoizedState.isDehydrated)try{wl(s.containerInfo)}catch(ge){tt(a,a.return,ge)}Wv&&(Wv=!1,GA(a));break;case 4:d=Vr,Vr=uh(a.stateNode.containerInfo),Vn(s,a),Fn(a),Vr=d;break;case 12:Vn(s,a),Fn(a);break;case 31:Vn(s,a),Fn(a),d&4&&(d=a.updateQueue,d!==null&&(a.updateQueue=null,Wd(a,d)));break;case 13:Vn(s,a),Fn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Xd=ue()),d&4&&(d=a.updateQueue,d!==null&&(a.updateQueue=null,Wd(a,d)));break;case 22:v=a.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,H=Ra,ee=Ut;if(Ra=H||v,Ut=ee||z,Vn(s,a),Ut=ee,Ra=H,Fn(a),d&8192)e:for(s=a.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(u===null||z||Ra||Ut||Vs(a)),u=null,s=a;;){if(s.tag===5||s.tag===26){if(u===null){z=u=s;try{if(x=z.stateNode,v)E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{P=z.stateNode;var re=z.memoizedProps.style,G=re!=null&&re.hasOwnProperty("display")?re.display:null;P.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ge){tt(z,z.return,ge)}}}else if(s.tag===6){if(u===null){z=s;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ge){tt(z,z.return,ge)}}}else if(s.tag===18){if(u===null){z=s;try{var X=z.stateNode;v?LO(X,!0):LO(z.stateNode,!1)}catch(ge){tt(z,z.return,ge)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}d&4&&(d=a.updateQueue,d!==null&&(u=d.retryQueue,u!==null&&(d.retryQueue=null,Wd(a,u))));break;case 19:Vn(s,a),Fn(a),d&4&&(d=a.updateQueue,d!==null&&(a.updateQueue=null,Wd(a,d)));break;case 30:break;case 21:break;default:Vn(s,a),Fn(a)}}function Fn(a){var s=a.flags;if(s&2){try{for(var u,d=a.return;d!==null;){if(BA(d)){u=d;break}d=d.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=Yv(a);Gd(a,x,v);break;case 5:var E=u.stateNode;u.flags&32&&(Fo(E,""),u.flags&=-33);var P=Yv(a);Gd(a,P,E);break;case 3:case 4:var z=u.stateNode.containerInfo,H=Yv(a);Gv(a,H,z);break;default:throw Error(r(161))}}catch(ee){tt(a,a.return,ee)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function GA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;GA(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function La(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)qA(a,s.alternate,s),s=s.sibling}function Vs(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Ii(4,s,s.return),Vs(s);break;case 1:ua(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&LA(s,s.return,u),Vs(s);break;case 27:dc(s.stateNode);case 26:case 5:ua(s,s.return),Vs(s);break;case 22:s.memoizedState===null&&Vs(s);break;case 30:Vs(s);break;default:Vs(s)}a=a.sibling}}function Ia(a,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var d=s.alternate,v=a,x=s,E=x.flags;switch(x.tag){case 0:case 11:case 15:Ia(v,x,u),nc(4,x);break;case 1:if(Ia(v,x,u),d=x,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(H){tt(d,d.return,H)}if(d=x,v=d.updateQueue,v!==null){var P=d.stateNode;try{var z=v.shared.hiddenCallbacks;if(z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<z.length;v++)O2(z[v],P)}catch(H){tt(d,d.return,H)}}u&&E&64&&zA(x),rc(x,x.return);break;case 27:UA(x);case 26:case 5:Ia(v,x,u),u&&d===null&&E&4&&IA(x),rc(x,x.return);break;case 12:Ia(v,x,u);break;case 31:Ia(v,x,u),u&&E&4&&HA(v,x);break;case 13:Ia(v,x,u),u&&E&4&&KA(v,x);break;case 22:x.memoizedState===null&&Ia(v,x,u),rc(x,x.return);break;case 30:break;default:Ia(v,x,u)}s=s.sibling}}function Qv(a,s){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Vu(u))}function Xv(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Vu(a))}function Fr(a,s,u,d){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)WA(a,s,u,d),s=s.sibling}function WA(a,s,u,d){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Fr(a,s,u,d),v&2048&&nc(9,s);break;case 1:Fr(a,s,u,d);break;case 3:Fr(a,s,u,d),v&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Vu(a)));break;case 12:if(v&2048){Fr(a,s,u,d),a=s.stateNode;try{var x=s.memoizedProps,E=x.id,P=x.onPostCommit;typeof P=="function"&&P(E,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(z){tt(s,s.return,z)}}else Fr(a,s,u,d);break;case 31:Fr(a,s,u,d);break;case 13:Fr(a,s,u,d);break;case 23:break;case 22:x=s.stateNode,E=s.alternate,s.memoizedState!==null?x._visibility&2?Fr(a,s,u,d):ac(a,s):x._visibility&2?Fr(a,s,u,d):(x._visibility|=2,cl(a,s,u,d,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Qv(E,s);break;case 24:Fr(a,s,u,d),v&2048&&Xv(s.alternate,s);break;default:Fr(a,s,u,d)}}function cl(a,s,u,d,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var x=a,E=s,P=u,z=d,H=E.flags;switch(E.tag){case 0:case 11:case 15:cl(x,E,P,z,v),nc(8,E);break;case 23:break;case 22:var ee=E.stateNode;E.memoizedState!==null?ee._visibility&2?cl(x,E,P,z,v):ac(x,E):(ee._visibility|=2,cl(x,E,P,z,v)),v&&H&2048&&Qv(E.alternate,E);break;case 24:cl(x,E,P,z,v),v&&H&2048&&Xv(E.alternate,E);break;default:cl(x,E,P,z,v)}s=s.sibling}}function ac(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=a,d=s,v=d.flags;switch(d.tag){case 22:ac(u,d),v&2048&&Qv(d.alternate,d);break;case 24:ac(u,d),v&2048&&Xv(d.alternate,d);break;default:ac(u,d)}s=s.sibling}}var ic=8192;function fl(a,s,u){if(a.subtreeFlags&ic)for(a=a.child;a!==null;)QA(a,s,u),a=a.sibling}function QA(a,s,u){switch(a.tag){case 26:fl(a,s,u),a.flags&ic&&a.memoizedState!==null&&$B(u,Vr,a.memoizedState,a.memoizedProps);break;case 5:fl(a,s,u);break;case 3:case 4:var d=Vr;Vr=uh(a.stateNode.containerInfo),fl(a,s,u),Vr=d;break;case 22:a.memoizedState===null&&(d=a.alternate,d!==null&&d.memoizedState!==null?(d=ic,ic=16777216,fl(a,s,u),ic=d):fl(a,s,u));break;default:fl(a,s,u)}}function XA(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function sc(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var d=s[u];nn=d,JA(d,a)}XA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ZA(a),a=a.sibling}function ZA(a){switch(a.tag){case 0:case 11:case 15:sc(a),a.flags&2048&&Ii(9,a,a.return);break;case 3:sc(a);break;case 12:sc(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,Qd(a)):sc(a);break;default:sc(a)}}function Qd(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var d=s[u];nn=d,JA(d,a)}XA(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Ii(8,s,s.return),Qd(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Qd(s));break;default:Qd(s)}a=a.sibling}}function JA(a,s){for(;nn!==null;){var u=nn;switch(u.tag){case 0:case 11:case 15:Ii(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var d=u.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Vu(u.memoizedState.cache)}if(d=u.child,d!==null)d.return=u,nn=d;else e:for(u=a;nn!==null;){d=nn;var v=d.sibling,x=d.return;if(VA(d),d===u){nn=null;break e}if(v!==null){v.return=x,nn=v;break e}nn=x}}}var nB={getCacheForType:function(a){var s=pn(Lt),u=s.data.get(a);return u===void 0&&(u=a(),s.data.set(a,u)),u},cacheSignal:function(){return pn(Lt).controller.signal}},rB=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ut=null,Ue=null,qe=0,et=0,sr=null,Bi=!1,dl=!1,Zv=!1,Ba=0,Nt=0,Ui=0,Fs=0,Jv=0,or=0,hl=0,oc=null,Hn=null,ey=!1,Xd=0,eO=0,Zd=1/0,Jd=null,$i=null,Yt=0,qi=null,ml=null,Ua=0,ty=0,ny=null,tO=null,lc=0,ry=null;function lr(){return(Xe&2)!==0&&qe!==0?qe&-qe:q.T!==null?uy():vj()}function nO(){if(or===0)if((qe&536870912)===0||Fe){var a=od;od<<=1,(od&3932160)===0&&(od=262144),or=a}else or=536870912;return a=ar.current,a!==null&&(a.flags|=32),or}function Kn(a,s,u){(a===ut&&(et===2||et===9)||a.cancelPendingCommit!==null)&&(pl(a,0),Vi(a,qe,or,!1)),Cu(a,u),((Xe&2)===0||a!==ut)&&(a===ut&&((Xe&2)===0&&(Fs|=u),Nt===4&&Vi(a,qe,or,!1)),ca(a))}function rO(a,s,u){if((Xe&6)!==0)throw Error(r(327));var d=!u&&(s&127)===0&&(s&a.expiredLanes)===0||Tu(a,s),v=d?sB(a,s):iy(a,s,!0),x=d;do{if(v===0){dl&&!d&&Vi(a,s,0,!1);break}else{if(u=a.current.alternate,x&&!aB(u)){v=iy(a,s,!1),x=!1;continue}if(v===2){if(x=s,a.errorRecoveryDisabledLanes&x)var E=0;else E=a.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){s=E;e:{var P=a;v=oc;var z=P.current.memoizedState.isDehydrated;if(z&&(pl(P,E).flags|=256),E=iy(P,E,!1),E!==2){if(Zv&&!z){P.errorRecoveryDisabledLanes|=x,Fs|=x,v=4;break e}x=Hn,Hn=v,x!==null&&(Hn===null?Hn=x:Hn.push.apply(Hn,x))}v=E}if(x=!1,v!==2)continue}}if(v===1){pl(a,0),Vi(a,s,0,!0);break}e:{switch(d=a,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Vi(d,s,or,!Bi);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Xd+300-ue(),10<v)){if(Vi(d,s,or,!Bi),ud(d,0,!0)!==0)break e;Ua=s,d.timeoutHandle=DO(aO.bind(null,d,u,Hn,Jd,ey,s,or,Fs,hl,Bi,x,"Throttled",-0,0),v);break e}aO(d,u,Hn,Jd,ey,s,or,Fs,hl,Bi,x,null,-0,0)}}break}while(!0);ca(a)}function aO(a,s,u,d,v,x,E,P,z,H,ee,re,G,X){if(a.timeoutHandle=-1,re=s.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Oa},QA(s,x,re);var ge=(x&62914560)===x?Xd-ue():(x&4194048)===x?eO-ue():0;if(ge=qB(re,ge),ge!==null){Ua=x,a.cancelPendingCommit=ge(dO.bind(null,a,s,x,u,d,v,E,P,z,ee,re,null,G,X)),Vi(a,x,E,!H);return}}dO(a,s,x,u,d,v,E,P,z)}function aB(a){for(var s=a;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var d=0;d<u.length;d++){var v=u[d],x=v.getSnapshot;v=v.value;try{if(!nr(x(),v))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Vi(a,s,u,d){s&=~Jv,s&=~Fs,a.suspendedLanes|=s,a.pingedLanes&=~s,d&&(a.warmLanes|=s),d=a.expirationTimes;for(var v=s;0<v;){var x=31-tr(v),E=1<<x;d[x]=-1,v&=~E}u!==0&&mj(a,u,s)}function eh(){return(Xe&6)===0?(uc(0),!1):!0}function ay(){if(Ue!==null){if(et===0)var a=Ue.return;else a=Ue,Ca=Rs=null,bv(a),il=null,Hu=0,a=Ue;for(;a!==null;)RA(a.alternate,a),a=a.return;Ue=null}}function pl(a,s){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,AB(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Ua=0,ay(),ut=a,Ue=u=Na(a.current,null),qe=s,et=0,sr=null,Bi=!1,dl=Tu(a,s),Zv=!1,hl=or=Jv=Fs=Ui=Nt=0,Hn=oc=null,ey=!1,(s&8)!==0&&(s|=s&32);var d=a.entangledLanes;if(d!==0)for(a=a.entanglements,d&=s;0<d;){var v=31-tr(d),x=1<<v;s|=a[v],d&=~x}return Ba=s,wd(),u}function iO(a,s){Re=null,q.H=Ju,s===al||s===Cd?(s=w2(),et=3):s===lv?(s=w2(),et=4):et=s===zv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,sr=s,Ue===null&&(Nt=1,Vd(a,yr(s,a.current)))}function sO(){var a=ar.current;return a===null?!0:(qe&4194048)===qe?Sr===null:(qe&62914560)===qe||(qe&536870912)!==0?a===Sr:!1}function oO(){var a=q.H;return q.H=Ju,a===null?Ju:a}function lO(){var a=q.A;return q.A=nB,a}function th(){Nt=4,Bi||(qe&4194048)!==qe&&ar.current!==null||(dl=!0),(Ui&134217727)===0&&(Fs&134217727)===0||ut===null||Vi(ut,qe,or,!1)}function iy(a,s,u){var d=Xe;Xe|=2;var v=oO(),x=lO();(ut!==a||qe!==s)&&(Jd=null,pl(a,s)),s=!1;var E=Nt;e:do try{if(et!==0&&Ue!==null){var P=Ue,z=sr;switch(et){case 8:ay(),E=6;break e;case 3:case 2:case 9:case 6:ar.current===null&&(s=!0);var H=et;if(et=0,sr=null,gl(a,P,z,H),u&&dl){E=0;break e}break;default:H=et,et=0,sr=null,gl(a,P,z,H)}}iB(),E=Nt;break}catch(ee){iO(a,ee)}while(!0);return s&&a.shellSuspendCounter++,Ca=Rs=null,Xe=d,q.H=v,q.A=x,Ue===null&&(ut=null,qe=0,wd()),E}function iB(){for(;Ue!==null;)uO(Ue)}function sB(a,s){var u=Xe;Xe|=2;var d=oO(),v=lO();ut!==a||qe!==s?(Jd=null,Zd=ue()+500,pl(a,s)):dl=Tu(a,s);e:do try{if(et!==0&&Ue!==null){s=Ue;var x=sr;t:switch(et){case 1:et=0,sr=null,gl(a,s,x,1);break;case 2:case 9:if(x2(x)){et=0,sr=null,cO(s);break}s=function(){et!==2&&et!==9||ut!==a||(et=7),ca(a)},x.then(s,s);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:x2(x)?(et=0,sr=null,cO(s)):(et=0,sr=null,gl(a,s,x,7));break;case 5:var E=null;switch(Ue.tag){case 26:E=Ue.memoizedState;case 5:case 27:var P=Ue;if(E?WO(E):P.stateNode.complete){et=0,sr=null;var z=P.sibling;if(z!==null)Ue=z;else{var H=P.return;H!==null?(Ue=H,nh(H)):Ue=null}break t}}et=0,sr=null,gl(a,s,x,5);break;case 6:et=0,sr=null,gl(a,s,x,6);break;case 8:ay(),Nt=6;break e;default:throw Error(r(462))}}oB();break}catch(ee){iO(a,ee)}while(!0);return Ca=Rs=null,q.H=d,q.A=v,Xe=u,Ue!==null?0:(ut=null,qe=0,wd(),Nt)}function oB(){for(;Ue!==null&&!ad();)uO(Ue)}function uO(a){var s=_A(a.alternate,a,Ba);a.memoizedProps=a.pendingProps,s===null?nh(a):Ue=s}function cO(a){var s=a,u=s.alternate;switch(s.tag){case 15:case 0:s=NA(u,s,s.pendingProps,s.type,void 0,qe);break;case 11:s=NA(u,s,s.pendingProps,s.type.render,s.ref,qe);break;case 5:bv(s);default:RA(u,s),s=Ue=l2(s,Ba),s=_A(u,s,Ba)}a.memoizedProps=a.pendingProps,s===null?nh(a):Ue=s}function gl(a,s,u,d){Ca=Rs=null,bv(s),il=null,Hu=0;var v=s.return;try{if(WI(a,v,s,u,qe)){Nt=1,Vd(a,yr(u,a.current)),Ue=null;return}}catch(x){if(v!==null)throw Ue=v,x;Nt=1,Vd(a,yr(u,a.current)),Ue=null;return}s.flags&32768?(Fe||d===1?a=!0:dl||(qe&536870912)!==0?a=!1:(Bi=a=!0,(d===2||d===9||d===3||d===6)&&(d=ar.current,d!==null&&d.tag===13&&(d.flags|=16384))),fO(s,a)):nh(s)}function nh(a){var s=a;do{if((s.flags&32768)!==0){fO(s,Bi);return}a=s.return;var u=ZI(s.alternate,s,Ba);if(u!==null){Ue=u;return}if(s=s.sibling,s!==null){Ue=s;return}Ue=s=a}while(s!==null);Nt===0&&(Nt=5)}function fO(a,s){do{var u=JI(a.alternate,a);if(u!==null){u.flags&=32767,Ue=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(a=a.sibling,a!==null)){Ue=a;return}Ue=a=u}while(a!==null);Nt=6,Ue=null}function dO(a,s,u,d,v,x,E,P,z){a.cancelPendingCommit=null;do rh();while(Yt!==0);if((Xe&6)!==0)throw Error(r(327));if(s!==null){if(s===a.current)throw Error(r(177));if(x=s.lanes|s.childLanes,x|=Yg,U6(a,u,x,E,P,z),a===ut&&(Ue=ut=null,qe=0),ml=s,qi=a,Ua=u,ty=x,ny=v,tO=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,fB(Kt,function(){return vO(),null})):(a.callbackNode=null,a.callbackPriority=0),d=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||d){d=q.T,q.T=null,v=W.p,W.p=2,E=Xe,Xe|=4;try{eB(a,s,u)}finally{Xe=E,W.p=v,q.T=d}}Yt=1,hO(),mO(),pO()}}function hO(){if(Yt===1){Yt=0;var a=qi,s=ml,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=q.T,q.T=null;var d=W.p;W.p=2;var v=Xe;Xe|=4;try{YA(s,a);var x=vy,E=Jj(a.containerInfo),P=x.focusedElem,z=x.selectionRange;if(E!==P&&P&&P.ownerDocument&&Zj(P.ownerDocument.documentElement,P)){if(z!==null&&qg(P)){var H=z.start,ee=z.end;if(ee===void 0&&(ee=H),"selectionStart"in P)P.selectionStart=H,P.selectionEnd=Math.min(ee,P.value.length);else{var re=P.ownerDocument||document,G=re&&re.defaultView||window;if(G.getSelection){var X=G.getSelection(),ge=P.textContent.length,Ne=Math.min(z.start,ge),st=z.end===void 0?Ne:Math.min(z.end,ge);!X.extend&&Ne>st&&(E=st,st=Ne,Ne=E);var U=Xj(P,Ne),I=Xj(P,st);if(U&&I&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==I.node||X.focusOffset!==I.offset)){var V=re.createRange();V.setStart(U.node,U.offset),X.removeAllRanges(),Ne>st?(X.addRange(V),X.extend(I.node,I.offset)):(V.setEnd(I.node,I.offset),X.addRange(V))}}}}for(re=[],X=P;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<re.length;P++){var te=re[P];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}ph=!!gy,vy=gy=null}finally{Xe=v,W.p=d,q.T=u}}a.current=s,Yt=2}}function mO(){if(Yt===2){Yt=0;var a=qi,s=ml,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=q.T,q.T=null;var d=W.p;W.p=2;var v=Xe;Xe|=4;try{qA(a,s.alternate,s)}finally{Xe=v,W.p=d,q.T=u}}Yt=3}}function pO(){if(Yt===4||Yt===3){Yt=0,id();var a=qi,s=ml,u=Ua,d=tO;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Yt=5:(Yt=0,ml=qi=null,gO(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&($i=null),jg(u),s=s.stateNode,er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(Nu,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=q.T,v=W.p,W.p=2,q.T=null;try{for(var x=a.onRecoverableError,E=0;E<d.length;E++){var P=d[E];x(P.value,{componentStack:P.stack})}}finally{q.T=s,W.p=v}}(Ua&3)!==0&&rh(),ca(a),v=a.pendingLanes,(u&261930)!==0&&(v&42)!==0?a===ry?lc++:(lc=0,ry=a):lc=0,uc(0)}}function gO(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Vu(s)))}function rh(){return hO(),mO(),pO(),vO()}function vO(){if(Yt!==5)return!1;var a=qi,s=ty;ty=0;var u=jg(Ua),d=q.T,v=W.p;try{W.p=32>u?32:u,q.T=null,u=ny,ny=null;var x=qi,E=Ua;if(Yt=0,ml=qi=null,Ua=0,(Xe&6)!==0)throw Error(r(331));var P=Xe;if(Xe|=4,ZA(x.current),WA(x,x.current,E,u),Xe=P,uc(0,!1),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(Nu,x)}catch{}return!0}finally{W.p=v,q.T=d,gO(a,s)}}function yO(a,s,u){s=yr(u,s),s=Rv(a.stateNode,s,2),a=Ri(a,s,2),a!==null&&(Cu(a,2),ca(a))}function tt(a,s,u){if(a.tag===3)yO(a,a,u);else for(;s!==null;){if(s.tag===3){yO(s,a,u);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&($i===null||!$i.has(d))){a=yr(u,a),u=xA(2),d=Ri(s,u,2),d!==null&&(bA(u,d,s,a),Cu(d,2),ca(d));break}}s=s.return}}function sy(a,s,u){var d=a.pingCache;if(d===null){d=a.pingCache=new rB;var v=new Set;d.set(s,v)}else v=d.get(s),v===void 0&&(v=new Set,d.set(s,v));v.has(u)||(Zv=!0,v.add(u),a=lB.bind(null,a,s,u),s.then(a,a))}function lB(a,s,u){var d=a.pingCache;d!==null&&d.delete(s),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,ut===a&&(qe&u)===u&&(Nt===4||Nt===3&&(qe&62914560)===qe&&300>ue()-Xd?(Xe&2)===0&&pl(a,0):Jv|=u,hl===qe&&(hl=0)),ca(a)}function xO(a,s){s===0&&(s=hj()),a=Ps(a,s),a!==null&&(Cu(a,s),ca(a))}function uB(a){var s=a.memoizedState,u=0;s!==null&&(u=s.retryLane),xO(a,u)}function cB(a,s){var u=0;switch(a.tag){case 31:case 13:var d=a.stateNode,v=a.memoizedState;v!==null&&(u=v.retryLane);break;case 19:d=a.stateNode;break;case 22:d=a.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(s),xO(a,u)}function fB(a,s){return zo(a,s)}var ah=null,vl=null,oy=!1,ih=!1,ly=!1,Fi=0;function ca(a){a!==vl&&a.next===null&&(vl===null?ah=vl=a:vl=vl.next=a),ih=!0,oy||(oy=!0,hB())}function uc(a,s){if(!ly&&ih){ly=!0;do for(var u=!1,d=ah;d!==null;){if(a!==0){var v=d.pendingLanes;if(v===0)var x=0;else{var E=d.suspendedLanes,P=d.pingedLanes;x=(1<<31-tr(42|a)+1)-1,x&=v&~(E&~P),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,jO(d,x))}else x=qe,x=ud(d,d===ut?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(x&3)===0||Tu(d,x)||(u=!0,jO(d,x));d=d.next}while(u);ly=!1}}function dB(){bO()}function bO(){ih=oy=!1;var a=0;Fi!==0&&jB()&&(a=Fi);for(var s=ue(),u=null,d=ah;d!==null;){var v=d.next,x=wO(d,s);x===0?(d.next=null,u===null?ah=v:u.next=v,v===null&&(vl=u)):(u=d,(a!==0||(x&3)!==0)&&(ih=!0)),d=v}Yt!==0&&Yt!==5||uc(a),Fi!==0&&(Fi=0)}function wO(a,s){for(var u=a.suspendedLanes,d=a.pingedLanes,v=a.expirationTimes,x=a.pendingLanes&-62914561;0<x;){var E=31-tr(x),P=1<<E,z=v[E];z===-1?((P&u)===0||(P&d)!==0)&&(v[E]=B6(P,s)):z<=s&&(a.expiredLanes|=P),x&=~P}if(s=ut,u=qe,u=ud(a,a===s?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),d=a.callbackNode,u===0||a===s&&(et===2||et===9)||a.cancelPendingCommit!==null)return d!==null&&d!==null&&Lo(d),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||Tu(a,u)){if(s=u&-u,s===a.callbackPriority)return s;switch(d!==null&&Lo(d),jg(u)){case 2:case 8:u=Ot;break;case 32:u=Kt;break;case 268435456:u=dn;break;default:u=Kt}return d=SO.bind(null,a),u=zo(u,d),a.callbackPriority=s,a.callbackNode=u,s}return d!==null&&d!==null&&Lo(d),a.callbackPriority=2,a.callbackNode=null,2}function SO(a,s){if(Yt!==0&&Yt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(rh()&&a.callbackNode!==u)return null;var d=qe;return d=ud(a,a===ut?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),d===0?null:(rO(a,d,s),wO(a,ue()),a.callbackNode!=null&&a.callbackNode===u?SO.bind(null,a):null)}function jO(a,s){if(rh())return null;rO(a,s,!0)}function hB(){OB(function(){(Xe&6)!==0?zo(De,dB):bO()})}function uy(){if(Fi===0){var a=nl;a===0&&(a=sd,sd<<=1,(sd&261888)===0&&(sd=256)),Fi=a}return Fi}function AO(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:hd(""+a)}function OO(a,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,a.id&&u.setAttribute("form",a.id),s.parentNode.insertBefore(u,s),a=new FormData(a),u.parentNode.removeChild(u),a}function mB(a,s,u,d,v){if(s==="submit"&&u&&u.stateNode===v){var x=AO((v[Un]||null).action),E=d.submitter;E&&(s=(s=E[Un]||null)?AO(s.formAction):E.getAttribute("formAction"),s!==null&&(x=s,E=null));var P=new vd("action","action",null,d,v);a.push({event:P,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Fi!==0){var z=E?OO(v,E):new FormData(v);Cv(u,{pending:!0,data:z,method:v.method,action:x},null,z)}}else typeof x=="function"&&(P.preventDefault(),z=E?OO(v,E):new FormData(v),Cv(u,{pending:!0,data:z,method:v.method,action:x},x,z))},currentTarget:v}]})}}for(var cy=0;cy<Kg.length;cy++){var fy=Kg[cy],pB=fy.toLowerCase(),gB=fy[0].toUpperCase()+fy.slice(1);qr(pB,"on"+gB)}qr(n2,"onAnimationEnd"),qr(r2,"onAnimationIteration"),qr(a2,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(PI,"onTransitionRun"),qr(_I,"onTransitionStart"),qr(DI,"onTransitionCancel"),qr(i2,"onTransitionEnd"),qo("onMouseEnter",["mouseout","mouseover"]),qo("onMouseLeave",["mouseout","mouseover"]),qo("onPointerEnter",["pointerout","pointerover"]),qo("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cc));function EO(a,s){s=(s&4)!==0;for(var u=0;u<a.length;u++){var d=a[u],v=d.event;d=d.listeners;e:{var x=void 0;if(s)for(var E=d.length-1;0<=E;E--){var P=d[E],z=P.instance,H=P.currentTarget;if(P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=H;try{x(v)}catch(ee){bd(ee)}v.currentTarget=null,x=z}else for(E=0;E<d.length;E++){if(P=d[E],z=P.instance,H=P.currentTarget,P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=H;try{x(v)}catch(ee){bd(ee)}v.currentTarget=null,x=z}}}}function $e(a,s){var u=s[Ag];u===void 0&&(u=s[Ag]=new Set);var d=a+"__bubble";u.has(d)||(NO(s,a,2,!1),u.add(d))}function dy(a,s,u){var d=0;s&&(d|=4),NO(u,a,d,s)}var sh="_reactListening"+Math.random().toString(36).slice(2);function hy(a){if(!a[sh]){a[sh]=!0,bj.forEach(function(u){u!=="selectionchange"&&(vB.has(u)||dy(u,!1,a),dy(u,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[sh]||(s[sh]=!0,dy("selectionchange",!1,s))}}function NO(a,s,u,d){switch(nE(s)){case 2:var v=HB;break;case 8:v=KB;break;default:v=Ty}u=v.bind(null,s,u,a),v=void 0,!_g||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),d?v!==void 0?a.addEventListener(s,u,{capture:!0,passive:v}):a.addEventListener(s,u,!0):v!==void 0?a.addEventListener(s,u,{passive:v}):a.addEventListener(s,u,!1)}function my(a,s,u,d,v){var x=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var P=d.stateNode.containerInfo;if(P===v)break;if(E===4)for(E=d.return;E!==null;){var z=E.tag;if((z===3||z===4)&&E.stateNode.containerInfo===v)return;E=E.return}for(;P!==null;){if(E=Bo(P),E===null)return;if(z=E.tag,z===5||z===6||z===26||z===27){d=x=E;continue e}P=P.parentNode}}d=d.return}Pj(function(){var H=x,ee=Mg(u),re=[];e:{var G=s2.get(a);if(G!==void 0){var X=vd,ge=a;switch(a){case"keypress":if(pd(u)===0)break e;case"keydown":case"keyup":X=cI;break;case"focusin":ge="focus",X=Lg;break;case"focusout":ge="blur",X=Lg;break;case"beforeblur":case"afterblur":X=Lg;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Rj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Z6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=hI;break;case n2:case r2:case a2:X=tI;break;case i2:X=pI;break;case"scroll":case"scrollend":X=Q6;break;case"wheel":X=vI;break;case"copy":case"cut":case"paste":X=rI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Lj;break;case"toggle":case"beforetoggle":X=xI}var Ne=(s&4)!==0,st=!Ne&&(a==="scroll"||a==="scrollend"),U=Ne?G!==null?G+"Capture":null:G;Ne=[];for(var I=H,V;I!==null;){var te=I;if(V=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||V===null||U===null||(te=Pu(I,U),te!=null&&Ne.push(fc(I,te,V))),st)break;I=I.return}0<Ne.length&&(G=new X(G,ge,null,u,ee),re.push({event:G,listeners:Ne}))}}if((s&7)===0){e:{if(G=a==="mouseover"||a==="pointerover",X=a==="mouseout"||a==="pointerout",G&&u!==kg&&(ge=u.relatedTarget||u.fromElement)&&(Bo(ge)||ge[Io]))break e;if((X||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,X?(ge=u.relatedTarget||u.toElement,X=H,ge=ge?Bo(ge):null,ge!==null&&(st=o(ge),Ne=ge.tag,ge!==st||Ne!==5&&Ne!==27&&Ne!==6)&&(ge=null)):(X=null,ge=H),X!==ge)){if(Ne=Rj,te="onMouseLeave",U="onMouseEnter",I="mouse",(a==="pointerout"||a==="pointerover")&&(Ne=Lj,te="onPointerLeave",U="onPointerEnter",I="pointer"),st=X==null?G:Mu(X),V=ge==null?G:Mu(ge),G=new Ne(te,I+"leave",X,u,ee),G.target=st,G.relatedTarget=V,te=null,Bo(ee)===H&&(Ne=new Ne(U,I+"enter",ge,u,ee),Ne.target=V,Ne.relatedTarget=st,te=Ne),st=te,X&&ge)t:{for(Ne=yB,U=X,I=ge,V=0,te=U;te;te=Ne(te))V++;te=0;for(var je=I;je;je=Ne(je))te++;for(;0<V-te;)U=Ne(U),V--;for(;0<te-V;)I=Ne(I),te--;for(;V--;){if(U===I||I!==null&&U===I.alternate){Ne=U;break t}U=Ne(U),I=Ne(I)}Ne=null}else Ne=null;X!==null&&TO(re,G,X,Ne,!1),ge!==null&&st!==null&&TO(re,st,ge,Ne,!0)}}e:{if(G=H?Mu(H):window,X=G.nodeName&&G.nodeName.toLowerCase(),X==="select"||X==="input"&&G.type==="file")var Ke=Hj;else if(Vj(G))if(Kj)Ke=CI;else{Ke=NI;var be=EI}else X=G.nodeName,!X||X.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?H&&Cg(H.elementType)&&(Ke=Hj):Ke=TI;if(Ke&&(Ke=Ke(a,H))){Fj(re,Ke,u,ee);break e}be&&be(a,G,H),a==="focusout"&&H&&G.type==="number"&&H.memoizedProps.value!=null&&Tg(G,"number",G.value)}switch(be=H?Mu(H):window,a){case"focusin":(Vj(be)||be.contentEditable==="true")&&(Go=be,Vg=H,Uu=null);break;case"focusout":Uu=Vg=Go=null;break;case"mousedown":Fg=!0;break;case"contextmenu":case"mouseup":case"dragend":Fg=!1,e2(re,u,ee);break;case"selectionchange":if(MI)break;case"keydown":case"keyup":e2(re,u,ee)}var ze;if(Bg)e:{switch(a){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Yo?$j(a,u)&&(Ve="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(Ve="onCompositionStart");Ve&&(Ij&&u.locale!=="ko"&&(Yo||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Yo&&(ze=_j()):(Ti=ee,Dg="value"in Ti?Ti.value:Ti.textContent,Yo=!0)),be=oh(H,Ve),0<be.length&&(Ve=new zj(Ve,a,null,u,ee),re.push({event:Ve,listeners:be}),ze?Ve.data=ze:(ze=qj(u),ze!==null&&(Ve.data=ze)))),(ze=wI?SI(a,u):jI(a,u))&&(Ve=oh(H,"onBeforeInput"),0<Ve.length&&(be=new zj("onBeforeInput","beforeinput",null,u,ee),re.push({event:be,listeners:Ve}),be.data=ze)),mB(re,a,H,u,ee)}EO(re,s)})}function fc(a,s,u){return{instance:a,listener:s,currentTarget:u}}function oh(a,s){for(var u=s+"Capture",d=[];a!==null;){var v=a,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=Pu(a,u),v!=null&&d.unshift(fc(a,v,x)),v=Pu(a,s),v!=null&&d.push(fc(a,v,x))),a.tag===3)return d;a=a.return}return[]}function yB(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function TO(a,s,u,d,v){for(var x=s._reactName,E=[];u!==null&&u!==d;){var P=u,z=P.alternate,H=P.stateNode;if(P=P.tag,z!==null&&z===d)break;P!==5&&P!==26&&P!==27||H===null||(z=H,v?(H=Pu(u,x),H!=null&&E.unshift(fc(u,H,z))):v||(H=Pu(u,x),H!=null&&E.push(fc(u,H,z)))),u=u.return}E.length!==0&&a.push({event:s,listeners:E})}var xB=/\r\n?/g,bB=/\u0000|\uFFFD/g;function CO(a){return(typeof a=="string"?a:""+a).replace(xB,`
49
+ `).replace(bB,"")}function kO(a,s){return s=CO(s),CO(a)===s}function it(a,s,u,d,v,x){switch(u){case"children":typeof d=="string"?s==="body"||s==="textarea"&&d===""||Fo(a,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&Fo(a,""+d);break;case"className":fd(a,"class",d);break;case"tabIndex":fd(a,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":fd(a,u,d);break;case"style":kj(a,d,x);break;case"data":if(s!=="object"){fd(a,"data",d);break}case"src":case"href":if(d===""&&(s!=="a"||u!=="href")){a.removeAttribute(u);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(u);break}d=hd(""+d),a.setAttribute(u,d);break;case"action":case"formAction":if(typeof d=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(u==="formAction"?(s!=="input"&&it(a,s,"name",v.name,v,null),it(a,s,"formEncType",v.formEncType,v,null),it(a,s,"formMethod",v.formMethod,v,null),it(a,s,"formTarget",v.formTarget,v,null)):(it(a,s,"encType",v.encType,v,null),it(a,s,"method",v.method,v,null),it(a,s,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(u);break}d=hd(""+d),a.setAttribute(u,d);break;case"onClick":d!=null&&(a.onclick=Oa);break;case"onScroll":d!=null&&$e("scroll",a);break;case"onScrollEnd":d!=null&&$e("scrollend",a);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":a.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){a.removeAttribute("xlink:href");break}u=hd(""+d),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?a.setAttribute(u,""+d):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":d===!0?a.setAttribute(u,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?a.setAttribute(u,d):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?a.setAttribute(u,d):a.removeAttribute(u);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?a.removeAttribute(u):a.setAttribute(u,d);break;case"popover":$e("beforetoggle",a),$e("toggle",a),cd(a,"popover",d);break;case"xlinkActuate":Aa(a,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Aa(a,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Aa(a,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Aa(a,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Aa(a,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Aa(a,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Aa(a,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Aa(a,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Aa(a,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":cd(a,"is",d);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=G6.get(u)||u,cd(a,u,d))}}function py(a,s,u,d,v,x){switch(u){case"style":kj(a,d,x);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof d=="string"?Fo(a,d):(typeof d=="number"||typeof d=="bigint")&&Fo(a,""+d);break;case"onScroll":d!=null&&$e("scroll",a);break;case"onScrollEnd":d!=null&&$e("scrollend",a);break;case"onClick":d!=null&&(a.onclick=Oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wj.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),s=u.slice(2,v?u.length-7:void 0),x=a[Un]||null,x=x!=null?x[u]:null,typeof x=="function"&&a.removeEventListener(s,x,v),typeof d=="function")){typeof x!="function"&&x!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(s,d,v);break e}u in a?a[u]=d:d===!0?a.setAttribute(u,""):cd(a,u,d)}}}function vn(a,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",a),$e("load",a);var d=!1,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var E=u[x];if(E!=null)switch(x){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:it(a,s,x,E,u,null)}}v&&it(a,s,"srcSet",u.srcSet,u,null),d&&it(a,s,"src",u.src,u,null);return;case"input":$e("invalid",a);var P=x=E=v=null,z=null,H=null;for(d in u)if(u.hasOwnProperty(d)){var ee=u[d];if(ee!=null)switch(d){case"name":v=ee;break;case"type":E=ee;break;case"checked":z=ee;break;case"defaultChecked":H=ee;break;case"value":x=ee;break;case"defaultValue":P=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,s));break;default:it(a,s,d,ee,u,null)}}Ej(a,x,P,z,H,E,v,!1);return;case"select":$e("invalid",a),d=E=x=null;for(v in u)if(u.hasOwnProperty(v)&&(P=u[v],P!=null))switch(v){case"value":x=P;break;case"defaultValue":E=P;break;case"multiple":d=P;default:it(a,s,v,P,u,null)}s=x,u=E,a.multiple=!!d,s!=null?Vo(a,!!d,s,!1):u!=null&&Vo(a,!!d,u,!0);return;case"textarea":$e("invalid",a),x=v=d=null;for(E in u)if(u.hasOwnProperty(E)&&(P=u[E],P!=null))switch(E){case"value":d=P;break;case"defaultValue":v=P;break;case"children":x=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:it(a,s,E,P,u,null)}Tj(a,d,v,x);return;case"option":for(z in u)if(u.hasOwnProperty(z)&&(d=u[z],d!=null))switch(z){case"selected":a.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:it(a,s,z,d,u,null)}return;case"dialog":$e("beforetoggle",a),$e("toggle",a),$e("cancel",a),$e("close",a);break;case"iframe":case"object":$e("load",a);break;case"video":case"audio":for(d=0;d<cc.length;d++)$e(cc[d],a);break;case"image":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"embed":case"source":case"link":$e("error",a),$e("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in u)if(u.hasOwnProperty(H)&&(d=u[H],d!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:it(a,s,H,d,u,null)}return;default:if(Cg(s)){for(ee in u)u.hasOwnProperty(ee)&&(d=u[ee],d!==void 0&&py(a,s,ee,d,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(d=u[P],d!=null&&it(a,s,P,d,u,null))}function wB(a,s,u,d){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,E=null,P=null,z=null,H=null,ee=null;for(X in u){var re=u[X];if(u.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":z=re;default:d.hasOwnProperty(X)||it(a,s,X,null,d,re)}}for(var G in d){var X=d[G];if(re=u[G],d.hasOwnProperty(G)&&(X!=null||re!=null))switch(G){case"type":x=X;break;case"name":v=X;break;case"checked":H=X;break;case"defaultChecked":ee=X;break;case"value":E=X;break;case"defaultValue":P=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:X!==re&&it(a,s,G,X,d,re)}}Ng(a,E,P,z,H,ee,x,v);return;case"select":X=E=P=G=null;for(x in u)if(z=u[x],u.hasOwnProperty(x)&&z!=null)switch(x){case"value":break;case"multiple":X=z;default:d.hasOwnProperty(x)||it(a,s,x,null,d,z)}for(v in d)if(x=d[v],z=u[v],d.hasOwnProperty(v)&&(x!=null||z!=null))switch(v){case"value":G=x;break;case"defaultValue":P=x;break;case"multiple":E=x;default:x!==z&&it(a,s,v,x,d,z)}s=P,u=E,d=X,G!=null?Vo(a,!!u,G,!1):!!d!=!!u&&(s!=null?Vo(a,!!u,s,!0):Vo(a,!!u,u?[]:"",!1));return;case"textarea":X=G=null;for(P in u)if(v=u[P],u.hasOwnProperty(P)&&v!=null&&!d.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:it(a,s,P,null,d,v)}for(E in d)if(v=d[E],x=u[E],d.hasOwnProperty(E)&&(v!=null||x!=null))switch(E){case"value":G=v;break;case"defaultValue":X=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&it(a,s,E,v,d,x)}Nj(a,G,X);return;case"option":for(var ge in u)if(G=u[ge],u.hasOwnProperty(ge)&&G!=null&&!d.hasOwnProperty(ge))switch(ge){case"selected":a.selected=!1;break;default:it(a,s,ge,null,d,G)}for(z in d)if(G=d[z],X=u[z],d.hasOwnProperty(z)&&G!==X&&(G!=null||X!=null))switch(z){case"selected":a.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:it(a,s,z,G,d,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in u)G=u[Ne],u.hasOwnProperty(Ne)&&G!=null&&!d.hasOwnProperty(Ne)&&it(a,s,Ne,null,d,G);for(H in d)if(G=d[H],X=u[H],d.hasOwnProperty(H)&&G!==X&&(G!=null||X!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:it(a,s,H,G,d,X)}return;default:if(Cg(s)){for(var st in u)G=u[st],u.hasOwnProperty(st)&&G!==void 0&&!d.hasOwnProperty(st)&&py(a,s,st,void 0,d,G);for(ee in d)G=d[ee],X=u[ee],!d.hasOwnProperty(ee)||G===X||G===void 0&&X===void 0||py(a,s,ee,G,d,X);return}}for(var U in u)G=u[U],u.hasOwnProperty(U)&&G!=null&&!d.hasOwnProperty(U)&&it(a,s,U,null,d,G);for(re in d)G=d[re],X=u[re],!d.hasOwnProperty(re)||G===X||G==null&&X==null||it(a,s,re,G,d,X)}function MO(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SB(){if(typeof performance.getEntriesByType=="function"){for(var a=0,s=0,u=performance.getEntriesByType("resource"),d=0;d<u.length;d++){var v=u[d],x=v.transferSize,E=v.initiatorType,P=v.duration;if(x&&P&&MO(E)){for(E=0,P=v.responseEnd,d+=1;d<u.length;d++){var z=u[d],H=z.startTime;if(H>P)break;var ee=z.transferSize,re=z.initiatorType;ee&&MO(re)&&(z=z.responseEnd,E+=ee*(z<P?1:(P-H)/(z-H)))}if(--d,s+=8*(x+E)/(v.duration/1e3),a++,10<a)break}}if(0<a)return s/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var gy=null,vy=null;function lh(a){return a.nodeType===9?a:a.ownerDocument}function PO(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _O(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function yy(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var xy=null;function jB(){var a=window.event;return a&&a.type==="popstate"?a===xy?!1:(xy=a,!0):(xy=null,!1)}var DO=typeof setTimeout=="function"?setTimeout:void 0,AB=typeof clearTimeout=="function"?clearTimeout:void 0,RO=typeof Promise=="function"?Promise:void 0,OB=typeof queueMicrotask=="function"?queueMicrotask:typeof RO<"u"?function(a){return RO.resolve(null).then(a).catch(EB)}:DO;function EB(a){setTimeout(function(){throw a})}function Hi(a){return a==="head"}function zO(a,s){var u=s,d=0;do{var v=u.nextSibling;if(a.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(d===0){a.removeChild(v),wl(s);return}d--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")d++;else if(u==="html")dc(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,dc(u);for(var x=u.firstChild;x;){var E=x.nextSibling,P=x.nodeName;x[ku]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=E}}else u==="body"&&dc(a.ownerDocument.body);u=v}while(u);wl(s)}function LO(a,s){var u=a;a=0;do{var d=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),d&&d.nodeType===8)if(u=d.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=d}while(u)}function by(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":by(u),Og(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function NB(a,s,u,d){for(;a.nodeType===1;){var v=u;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!d&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(d){if(!a[ku])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(x=a.getAttribute("rel"),x==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(x!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(x=a.getAttribute("src"),(x!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===x)return a}else return a;if(a=jr(a.nextSibling),a===null)break}return null}function TB(a,s,u){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=jr(a.nextSibling),a===null))return null;return a}function IO(a,s){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=jr(a.nextSibling),a===null))return null;return a}function wy(a){return a.data==="$?"||a.data==="$~"}function Sy(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function CB(a,s){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=s;else if(a.data!=="$?"||u.readyState!=="loading")s();else{var d=function(){s(),u.removeEventListener("DOMContentLoaded",d)};u.addEventListener("DOMContentLoaded",d),a._reactRetry=d}}function jr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return a}var jy=null;function BO(a){a=a.nextSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(s===0)return jr(a.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}a=a.nextSibling}return null}function UO(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return a;s--}else u!=="/$"&&u!=="/&"||s++}a=a.previousSibling}return null}function $O(a,s,u){switch(s=lh(u),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function dc(a){for(var s=a.attributes;s.length;)a.removeAttributeNode(s[0]);Og(a)}var Ar=new Map,qO=new Set;function uh(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var $a=W.d;W.d={f:kB,r:MB,D:PB,C:_B,L:DB,m:RB,X:LB,S:zB,M:IB};function kB(){var a=$a.f(),s=eh();return a||s}function MB(a){var s=Uo(a);s!==null&&s.tag===5&&s.type==="form"?iA(s):$a.r(a)}var yl=typeof document>"u"?null:document;function VO(a,s,u){var d=yl;if(d&&typeof s=="string"&&s){var v=gr(s);v='link[rel="'+a+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),qO.has(v)||(qO.add(v),a={rel:a,crossOrigin:u,href:s},d.querySelector(v)===null&&(s=d.createElement("link"),vn(s,"link",a),tn(s),d.head.appendChild(s)))}}function PB(a){$a.D(a),VO("dns-prefetch",a,null)}function _B(a,s){$a.C(a,s),VO("preconnect",a,s)}function DB(a,s,u){$a.L(a,s,u);var d=yl;if(d&&a&&s){var v='link[rel="preload"][as="'+gr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+gr(u.imageSizes)+'"]')):v+='[href="'+gr(a)+'"]';var x=v;switch(s){case"style":x=xl(a);break;case"script":x=bl(a)}Ar.has(x)||(a=g({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:a,as:s},u),Ar.set(x,a),d.querySelector(v)!==null||s==="style"&&d.querySelector(hc(x))||s==="script"&&d.querySelector(mc(x))||(s=d.createElement("link"),vn(s,"link",a),tn(s),d.head.appendChild(s)))}}function RB(a,s){$a.m(a,s);var u=yl;if(u&&a){var d=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+gr(d)+'"][href="'+gr(a)+'"]',x=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=bl(a)}if(!Ar.has(x)&&(a=g({rel:"modulepreload",href:a},s),Ar.set(x,a),u.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(mc(x)))return}d=u.createElement("link"),vn(d,"link",a),tn(d),u.head.appendChild(d)}}}function zB(a,s,u){$a.S(a,s,u);var d=yl;if(d&&a){var v=$o(d).hoistableStyles,x=xl(a);s=s||"default";var E=v.get(x);if(!E){var P={loading:0,preload:null};if(E=d.querySelector(hc(x)))P.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":s},u),(u=Ar.get(x))&&Ay(a,u);var z=E=d.createElement("link");tn(z),vn(z,"link",a),z._p=new Promise(function(H,ee){z.onload=H,z.onerror=ee}),z.addEventListener("load",function(){P.loading|=1}),z.addEventListener("error",function(){P.loading|=2}),P.loading|=4,ch(E,s,d)}E={type:"stylesheet",instance:E,count:1,state:P},v.set(x,E)}}}function LB(a,s){$a.X(a,s);var u=yl;if(u&&a){var d=$o(u).hoistableScripts,v=bl(a),x=d.get(v);x||(x=u.querySelector(mc(v)),x||(a=g({src:a,async:!0},s),(s=Ar.get(v))&&Oy(a,s),x=u.createElement("script"),tn(x),vn(x,"link",a),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function IB(a,s){$a.M(a,s);var u=yl;if(u&&a){var d=$o(u).hoistableScripts,v=bl(a),x=d.get(v);x||(x=u.querySelector(mc(v)),x||(a=g({src:a,async:!0,type:"module"},s),(s=Ar.get(v))&&Oy(a,s),x=u.createElement("script"),tn(x),vn(x,"link",a),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function FO(a,s,u,d){var v=(v=Oe.current)?uh(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=xl(u.href),u=$o(v).hoistableStyles,d=u.get(s),d||(d={type:"style",instance:null,count:0,state:null},u.set(s,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=xl(u.href);var x=$o(v).hoistableStyles,E=x.get(a);if(E||(v=v.ownerDocument||v,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,E),(x=v.querySelector(hc(a)))&&!x._p&&(E.instance=x,E.state.loading=5),Ar.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ar.set(a,u),x||BB(v,a,u,E.state))),s&&d===null)throw Error(r(528,""));return E}if(s&&d!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=bl(u),u=$o(v).hoistableScripts,d=u.get(s),d||(d={type:"script",instance:null,count:0,state:null},u.set(s,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function xl(a){return'href="'+gr(a)+'"'}function hc(a){return'link[rel="stylesheet"]['+a+"]"}function HO(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function BB(a,s,u,d){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?d.loading=1:(s=a.createElement("link"),d.preload=s,s.addEventListener("load",function(){return d.loading|=1}),s.addEventListener("error",function(){return d.loading|=2}),vn(s,"link",u),tn(s),a.head.appendChild(s))}function bl(a){return'[src="'+gr(a)+'"]'}function mc(a){return"script[async]"+a}function KO(a,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var d=a.querySelector('style[data-href~="'+gr(u.href)+'"]');if(d)return s.instance=d,tn(d),d;var v=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return d=(a.ownerDocument||a).createElement("style"),tn(d),vn(d,"style",v),ch(d,u.precedence,a),s.instance=d;case"stylesheet":v=xl(u.href);var x=a.querySelector(hc(v));if(x)return s.state.loading|=4,s.instance=x,tn(x),x;d=HO(u),(v=Ar.get(v))&&Ay(d,v),x=(a.ownerDocument||a).createElement("link"),tn(x);var E=x;return E._p=new Promise(function(P,z){E.onload=P,E.onerror=z}),vn(x,"link",d),s.state.loading|=4,ch(x,u.precedence,a),s.instance=x;case"script":return x=bl(u.src),(v=a.querySelector(mc(x)))?(s.instance=v,tn(v),v):(d=u,(v=Ar.get(x))&&(d=g({},u),Oy(d,v)),a=a.ownerDocument||a,v=a.createElement("script"),tn(v),vn(v,"link",d),a.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(d=s.instance,s.state.loading|=4,ch(d,u.precedence,a));return s.instance}function ch(a,s,u){for(var d=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,x=v,E=0;E<d.length;E++){var P=d[E];if(P.dataset.precedence===s)x=P;else if(x!==v)break}x?x.parentNode.insertBefore(a,x.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(a,s.firstChild))}function Ay(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function Oy(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var fh=null;function YO(a,s,u){if(fh===null){var d=new Map,v=fh=new Map;v.set(u,d)}else v=fh,d=v.get(u),d||(d=new Map,v.set(u,d));if(d.has(a))return d;for(d.set(a,null),u=u.getElementsByTagName(a),v=0;v<u.length;v++){var x=u[v];if(!(x[ku]||x[hn]||a==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var E=x.getAttribute(s)||"";E=a+E;var P=d.get(E);P?P.push(x):d.set(E,[x])}}return d}function GO(a,s,u){a=a.ownerDocument||a,a.head.insertBefore(u,s==="title"?a.querySelector("head > title"):null)}function UB(a,s,u){if(u===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function WO(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function $B(a,s,u,d){if(u.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=xl(d.href),x=s.querySelector(hc(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(a.count++,a=dh.bind(a),s.then(a,a)),u.state.loading|=4,u.instance=x,tn(x);return}x=s.ownerDocument||s,d=HO(d),(v=Ar.get(v))&&Ay(d,v),x=x.createElement("link"),tn(x);var E=x;E._p=new Promise(function(P,z){E.onload=P,E.onerror=z}),vn(x,"link",d),u.instance=x}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=dh.bind(a),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ey=0;function qB(a,s){return a.stylesheets&&a.count===0&&mh(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var d=setTimeout(function(){if(a.stylesheets&&mh(a,a.stylesheets),a.unsuspend){var x=a.unsuspend;a.unsuspend=null,x()}},6e4+s);0<a.imgBytes&&Ey===0&&(Ey=62500*SB());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&mh(a,a.stylesheets),a.unsuspend)){var x=a.unsuspend;a.unsuspend=null,x()}},(a.imgBytes>Ey?50:800)+s);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function dh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mh(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var hh=null;function mh(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,hh=new Map,s.forEach(VB,a),hh=null,dh.call(a))}function VB(a,s){if(!(s.state.loading&4)){var u=hh.get(a);if(u)var d=u.get(null);else{u=new Map,hh.set(a,u);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var E=v[x];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(u.set(E.dataset.precedence,E),d=E)}d&&u.set(null,d)}v=s.instance,E=v.getAttribute("data-precedence"),x=u.get(E)||d,x===d&&u.set(null,v),u.set(E,v),this.count++,d=dh.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),x?x.parentNode.insertBefore(v,x.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),s.state.loading|=4}}var pc={$$typeof:N,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function FB(a,s,u,d,v,x,E,P,z){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wg(0),this.hiddenUpdates=wg(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function QO(a,s,u,d,v,x,E,P,z,H,ee,re){return a=new FB(a,s,u,E,z,H,ee,re,P),s=1,x===!0&&(s|=24),x=rr(3,null,null,s),a.current=x,x.stateNode=a,s=iv(),s.refCount++,a.pooledCache=s,s.refCount++,x.memoizedState={element:d,isDehydrated:u,cache:s},uv(x),a}function XO(a){return a?(a=Xo,a):Xo}function ZO(a,s,u,d,v,x){v=XO(v),d.context===null?d.context=v:d.pendingContext=v,d=Di(s),d.payload={element:u},x=x===void 0?null:x,x!==null&&(d.callback=x),u=Ri(a,d,s),u!==null&&(Kn(u,a,s),Yu(u,a,s))}function JO(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<s?u:s}}function Ny(a,s){JO(a,s),(a=a.alternate)&&JO(a,s)}function eE(a){if(a.tag===13||a.tag===31){var s=Ps(a,67108864);s!==null&&Kn(s,a,67108864),Ny(a,67108864)}}function tE(a){if(a.tag===13||a.tag===31){var s=lr();s=Sg(s);var u=Ps(a,s);u!==null&&Kn(u,a,s),Ny(a,s)}}var ph=!0;function HB(a,s,u,d){var v=q.T;q.T=null;var x=W.p;try{W.p=2,Ty(a,s,u,d)}finally{W.p=x,q.T=v}}function KB(a,s,u,d){var v=q.T;q.T=null;var x=W.p;try{W.p=8,Ty(a,s,u,d)}finally{W.p=x,q.T=v}}function Ty(a,s,u,d){if(ph){var v=Cy(d);if(v===null)my(a,s,d,gh,u),rE(a,d);else if(GB(v,a,s,u,d))d.stopPropagation();else if(rE(a,d),s&4&&-1<YB.indexOf(a)){for(;v!==null;){var x=Uo(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var E=Ns(x.pendingLanes);if(E!==0){var P=x;for(P.pendingLanes|=2,P.entangledLanes|=2;E;){var z=1<<31-tr(E);P.entanglements[1]|=z,E&=~z}ca(x),(Xe&6)===0&&(Zd=ue()+500,uc(0))}}break;case 31:case 13:P=Ps(x,2),P!==null&&Kn(P,x,2),eh(),Ny(x,2)}if(x=Cy(d),x===null&&my(a,s,d,gh,u),x===v)break;v=x}v!==null&&d.stopPropagation()}else my(a,s,d,null,u)}}function Cy(a){return a=Mg(a),ky(a)}var gh=null;function ky(a){if(gh=null,a=Bo(a),a!==null){var s=o(a);if(s===null)a=null;else{var u=s.tag;if(u===13){if(a=l(s),a!==null)return a;a=null}else if(u===31){if(a=c(s),a!==null)return a;a=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return gh=a,null}function nE(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ee()){case De:return 2;case Ot:return 8;case Kt:case jn:return 32;case dn:return 268435456;default:return 32}default:return 32}}var My=!1,Ki=null,Yi=null,Gi=null,gc=new Map,vc=new Map,Wi=[],YB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rE(a,s){switch(a){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Yi=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":gc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":vc.delete(s.pointerId)}}function yc(a,s,u,d,v,x){return a===null||a.nativeEvent!==x?(a={blockedOn:s,domEventName:u,eventSystemFlags:d,nativeEvent:x,targetContainers:[v]},s!==null&&(s=Uo(s),s!==null&&eE(s)),a):(a.eventSystemFlags|=d,s=a.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),a)}function GB(a,s,u,d,v){switch(s){case"focusin":return Ki=yc(Ki,a,s,u,d,v),!0;case"dragenter":return Yi=yc(Yi,a,s,u,d,v),!0;case"mouseover":return Gi=yc(Gi,a,s,u,d,v),!0;case"pointerover":var x=v.pointerId;return gc.set(x,yc(gc.get(x)||null,a,s,u,d,v)),!0;case"gotpointercapture":return x=v.pointerId,vc.set(x,yc(vc.get(x)||null,a,s,u,d,v)),!0}return!1}function aE(a){var s=Bo(a.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){a.blockedOn=s,yj(a.priority,function(){tE(u)});return}}else if(s===31){if(s=c(u),s!==null){a.blockedOn=s,yj(a.priority,function(){tE(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function vh(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var u=Cy(a.nativeEvent);if(u===null){u=a.nativeEvent;var d=new u.constructor(u.type,u);kg=d,u.target.dispatchEvent(d),kg=null}else return s=Uo(u),s!==null&&eE(s),a.blockedOn=u,!1;s.shift()}return!0}function iE(a,s,u){vh(a)&&u.delete(s)}function WB(){My=!1,Ki!==null&&vh(Ki)&&(Ki=null),Yi!==null&&vh(Yi)&&(Yi=null),Gi!==null&&vh(Gi)&&(Gi=null),gc.forEach(iE),vc.forEach(iE)}function yh(a,s){a.blockedOn===s&&(a.blockedOn=null,My||(My=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,WB)))}var xh=null;function sE(a){xh!==a&&(xh=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xh===a&&(xh=null);for(var s=0;s<a.length;s+=3){var u=a[s],d=a[s+1],v=a[s+2];if(typeof d!="function"){if(ky(d||u)===null)continue;break}var x=Uo(u);x!==null&&(a.splice(s,3),s-=3,Cv(x,{pending:!0,data:v,method:u.method,action:d},d,v))}}))}function wl(a){function s(z){return yh(z,a)}Ki!==null&&yh(Ki,a),Yi!==null&&yh(Yi,a),Gi!==null&&yh(Gi,a),gc.forEach(s),vc.forEach(s);for(var u=0;u<Wi.length;u++){var d=Wi[u];d.blockedOn===a&&(d.blockedOn=null)}for(;0<Wi.length&&(u=Wi[0],u.blockedOn===null);)aE(u),u.blockedOn===null&&Wi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(d=0;d<u.length;d+=3){var v=u[d],x=u[d+1],E=v[Un]||null;if(typeof x=="function")E||sE(u);else if(E){var P=null;if(x&&x.hasAttribute("formAction")){if(v=x,E=x[Un]||null)P=E.formAction;else if(ky(v)!==null)continue}else P=E.action;typeof P=="function"?u[d+1]=P:(u.splice(d,3),d-=3),sE(u)}}}function oE(){function a(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(E){return v=E})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),d||setTimeout(u,20)}function u(){if(!d&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){d=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function Py(a){this._internalRoot=a}bh.prototype.render=Py.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,d=lr();ZO(u,d,a,s,null,null)},bh.prototype.unmount=Py.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;ZO(a.current,2,null,a,null,null),eh(),s[Io]=null}};function bh(a){this._internalRoot=a}bh.prototype.unstable_scheduleHydration=function(a){if(a){var s=vj();a={blockedOn:null,target:a,priority:s};for(var u=0;u<Wi.length&&s!==0&&s<Wi[u].priority;u++);Wi.splice(u,0,a),u===0&&aE(a)}};var lE=t.version;if(lE!=="19.2.3")throw Error(r(527,lE,"19.2.3"));W.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(s),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var QB={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wh.isDisabled&&wh.supportsFiber)try{Nu=wh.inject(QB),er=wh}catch{}}return bc.createRoot=function(a,s){if(!i(a))throw Error(r(299));var u=!1,d="",v=pA,x=gA,E=vA;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(E=s.onRecoverableError)),s=QO(a,1,!1,null,null,u,d,null,v,x,E,oE),a[Io]=s.current,hy(a),new Py(s)},bc.hydrateRoot=function(a,s,u){if(!i(a))throw Error(r(299));var d=!1,v="",x=pA,E=gA,P=vA,z=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(P=u.onRecoverableError),u.formState!==void 0&&(z=u.formState)),s=QO(a,1,!0,s,u??null,d,v,z,x,E,P,oE),s.context=XO(null),u=s.current,d=lr(),d=Sg(d),v=Di(d),v.callback=null,Ri(u,v,d),u=d,s.current.lanes=u,Cu(s,u),ca(s),a[Io]=s.current,hy(a),new bh(s)},bc.version="19.2.3",bc}var kE;function V8(){if(kE)return Iy.exports;kE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Iy.exports=q8(),Iy.exports}var F8=V8();const H8=wa(F8);/**
50
+ * @license lucide-react v0.562.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const K8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y8=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ME=e=>{const t=Y8(e);return t.charAt(0).toUpperCase()+t.slice(1)},P_=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),G8=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
55
+ * @license lucide-react v0.562.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var W8={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"};/**
60
+ * @license lucide-react v0.562.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Q8=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...c},f)=>w.createElement("svg",{ref:f,...W8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P_("lucide",i),...!o&&!G8(c)&&{"aria-hidden":"true"},...c},[...l.map(([h,m])=>w.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
65
+ * @license lucide-react v0.562.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Ae=(e,t)=>{const n=w.forwardRef(({className:r,...i},o)=>w.createElement(Q8,{ref:o,iconNode:t,className:P_(`lucide-${K8(ME(e))}`,`lucide-${e}`,r),...i}));return n.displayName=ME(e),n};/**
70
+ * @license lucide-react v0.562.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const X8=[["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"}]],Zn=Ae("activity",X8);/**
75
+ * @license lucide-react v0.562.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Z8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Tf=Ae("arrow-right",Z8);/**
80
+ * @license lucide-react v0.562.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const J8=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],hm=Ae("bell",J8);/**
85
+ * @license lucide-react v0.562.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const eU=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],tU=Ae("briefcase",eU);/**
90
+ * @license lucide-react v0.562.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const nU=[["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"}]],ob=Ae("calendar",nU);/**
95
+ * @license lucide-react v0.562.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const rU=[["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"}]],__=Ae("chart-column",rU);/**
100
+ * @license lucide-react v0.562.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const aU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],iU=Ae("chart-line",aU);/**
105
+ * @license lucide-react v0.562.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const sU=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],oU=Ae("check-check",sU);/**
110
+ * @license lucide-react v0.562.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const lU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uU=Ae("chevron-down",lU);/**
115
+ * @license lucide-react v0.562.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const cU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],D_=Ae("chevron-left",cU);/**
120
+ * @license lucide-react v0.562.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const fU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vp=Ae("chevron-right",fU);/**
125
+ * @license lucide-react v0.562.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const dU=[["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"}]],Zr=Ae("circle-alert",dU);/**
130
+ * @license lucide-react v0.562.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const hU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],R_=Ae("circle-check-big",hU);/**
135
+ * @license lucide-react v0.562.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const mU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],F1=Ae("circle-check",mU);/**
140
+ * @license lucide-react v0.562.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const pU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gU=Ae("circle-question-mark",pU);/**
145
+ * @license lucide-react v0.562.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const vU=[["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"}]],z_=Ae("circle-x",vU);/**
150
+ * @license lucide-react v0.562.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const yU=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Jr=Ae("clock",yU);/**
155
+ * @license lucide-react v0.562.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const xU=[["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"}]],bU=Ae("command",xU);/**
160
+ * @license lucide-react v0.562.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const wU=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Xc=Ae("cpu",wU);/**
165
+ * @license lucide-react v0.562.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const SU=[["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"}]],lb=Ae("database",SU);/**
170
+ * @license lucide-react v0.562.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const jU=[["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"}]],AU=Ae("external-link",jU);/**
175
+ * @license lucide-react v0.562.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const OU=[["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"}]],EU=Ae("eye-off",OU);/**
180
+ * @license lucide-react v0.562.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const NU=[["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"}]],TU=Ae("eye",NU);/**
185
+ * @license lucide-react v0.562.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const CU=[["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"}]],H1=Ae("funnel",CU);/**
190
+ * @license lucide-react v0.562.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const kU=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],MU=Ae("gauge",kU);/**
195
+ * @license lucide-react v0.562.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const PU=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],ub=Ae("hard-drive",PU);/**
200
+ * @license lucide-react v0.562.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const _U=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],L_=Ae("hourglass",_U);/**
205
+ * @license lucide-react v0.562.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const DU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Bc=Ae("info",DU);/**
210
+ * @license lucide-react v0.562.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const RU=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],zU=Ae("laptop",RU);/**
215
+ * @license lucide-react v0.562.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const LU=[["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"}]],I_=Ae("layout-dashboard",LU);/**
220
+ * @license lucide-react v0.562.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const IU=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Zc=Ae("list-tree",IU);/**
225
+ * @license lucide-react v0.562.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const BU=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],UU=Ae("lock",BU);/**
230
+ * @license lucide-react v0.562.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const $U=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],B_=Ae("log-out",$U);/**
235
+ * @license lucide-react v0.562.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const qU=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],VU=Ae("memory-stick",qU);/**
240
+ * @license lucide-react v0.562.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const FU=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],PE=Ae("monitor",FU);/**
245
+ * @license lucide-react v0.562.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const HU=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],cb=Ae("moon",HU);/**
250
+ * @license lucide-react v0.562.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const KU=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],YU=Ae("palette",KU);/**
255
+ * @license lucide-react v0.562.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const GU=[["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"}]],WU=Ae("pause",GU);/**
260
+ * @license lucide-react v0.562.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const QU=[["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"}]],U_=Ae("play",QU);/**
265
+ * @license lucide-react v0.562.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const XU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_E=Ae("plus",XU);/**
270
+ * @license lucide-react v0.562.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const ZU=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Ja=Ae("refresh-ccw",ZU);/**
275
+ * @license lucide-react v0.562.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const JU=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],qy=Ae("rotate-cw",JU);/**
280
+ * @license lucide-react v0.562.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const e9=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fu=Ae("search",e9);/**
285
+ * @license lucide-react v0.562.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const t9=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yp=Ae("server",t9);/**
290
+ * @license lucide-react v0.562.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const n9=[["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"}]],K1=Ae("settings",n9);/**
295
+ * @license lucide-react v0.562.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const r9=[["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"}]],a9=Ae("shield-check",r9);/**
300
+ * @license lucide-react v0.562.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const i9=[["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"}]],$_=Ae("shield",i9);/**
305
+ * @license lucide-react v0.562.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const s9=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],fb=Ae("sun",s9);/**
310
+ * @license lucide-react v0.562.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const o9=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],q_=Ae("terminal",o9);/**
315
+ * @license lucide-react v0.562.0 - ISC
316
+ *
317
+ * This source code is licensed under the ISC license.
318
+ * See the LICENSE file in the root directory of this source tree.
319
+ */const l9=[["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"}]],jo=Ae("trash-2",l9);/**
320
+ * @license lucide-react v0.562.0 - ISC
321
+ *
322
+ * This source code is licensed under the ISC license.
323
+ * See the LICENSE file in the root directory of this source tree.
324
+ */const u9=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],DE=Ae("trending-up",u9);/**
325
+ * @license lucide-react v0.562.0 - ISC
326
+ *
327
+ * This source code is licensed under the ISC license.
328
+ * See the LICENSE file in the root directory of this source tree.
329
+ */const c9=[["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"}]],f9=Ae("triangle-alert",c9);/**
330
+ * @license lucide-react v0.562.0 - ISC
331
+ *
332
+ * This source code is licensed under the ISC license.
333
+ * See the LICENSE file in the root directory of this source tree.
334
+ */const d9=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],RE=Ae("user",d9);/**
335
+ * @license lucide-react v0.562.0 - ISC
336
+ *
337
+ * This source code is licensed under the ISC license.
338
+ * See the LICENSE file in the root directory of this source tree.
339
+ */const h9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xp=Ae("x",h9);/**
340
+ * @license lucide-react v0.562.0 - ISC
341
+ *
342
+ * This source code is licensed under the ISC license.
343
+ * See the LICENSE file in the root directory of this source tree.
344
+ */const m9=[["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"}]],V_=Ae("zap",m9);/**
345
+ * react-router v7.11.0
346
+ *
347
+ * Copyright (c) Remix Software Inc.
348
+ *
349
+ * This source code is licensed under the MIT license found in the
350
+ * LICENSE.md file in the root directory of this source tree.
351
+ *
352
+ * @license MIT
353
+ */var zE="popstate";function p9(e={}){function t(r,i){let{pathname:o,search:l,hash:c}=r.location;return db("",{pathname:o,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Jc(i)}return v9(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function na(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g9(){return Math.random().toString(36).substring(2,10)}function LE(e,t){return{usr:e.state,key:e.key,idx:t}}function db(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?du(t):t,state:n,key:t&&t.key||r||g9()}}function Jc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function du(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v9(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,c="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function g(){c="POP";let A=m(),O=A==null?null:A-h;h=A,f&&f({action:c,location:j.location,delta:O})}function y(A,O){c="PUSH";let T=db(j.location,A,O);h=m()+1;let N=LE(T,h),C=j.createHref(T);try{l.pushState(N,"",C)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;i.location.assign(C)}o&&f&&f({action:c,location:j.location,delta:1})}function b(A,O){c="REPLACE";let T=db(j.location,A,O);h=m();let N=LE(T,h),C=j.createHref(T);l.replaceState(N,"",C),o&&f&&f({action:c,location:j.location,delta:0})}function S(A){return y9(A)}let j={get action(){return c},get location(){return e(i,l)},listen(A){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(zE,g),f=A,()=>{i.removeEventListener(zE,g),f=null}},createHref(A){return t(i,A)},createURL:S,encodeLocation(A){let O=S(A);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:b,go(A){return l.go(A)}};return j}function y9(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),St(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Jc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function F_(e,t,n="/"){return x9(e,t,n,!1)}function x9(e,t,n,r){let i=typeof t=="string"?du(t):t,o=ai(i.pathname||"/",n);if(o==null)return null;let l=H_(e);b9(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=M9(o);c=C9(l[f],h,r)}return c}function H_(e,t=[],n=[],r="",i=!1){let o=(l,c,f=i,h)=>{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;St(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let g=ei([r,m.relativePath]),y=n.concat(m);l.children&&l.children.length>0&&(St(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),H_(l.children,t,y,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:N9(g,l.index),routesMeta:y})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of K_(l.path))o(l,c,!0,h)}),t}function K_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=K_(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),i&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function b9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var w9=/^:[\w-]+$/,S9=3,j9=2,A9=1,O9=10,E9=-2,IE=e=>e==="*";function N9(e,t){let n=e.split("/"),r=n.length;return n.some(IE)&&(r+=E9),t&&(r+=j9),n.filter(i=>!IE(i)).reduce((i,o)=>i+(w9.test(o)?S9:o===""?A9:O9),r)}function T9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function C9(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],h=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",g=mm({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),y=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=mm({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(i,g.params),l.push({params:i,pathname:ei([o,g.pathname]),pathnameBase:R9(ei([o,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(o=ei([o,g.pathnameBase]))}return l}function mm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=k9(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:g},y)=>{if(m==="*"){let S=c[y]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=c[y];return g&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function k9(e,t=!1,n=!0){na(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function M9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return na(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ai(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Y_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P9=e=>Y_.test(e);function _9(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?du(e):e,o;if(n)if(P9(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),na(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?o=BE(n.substring(1),"/"):o=BE(n,t)}else o=t;return{pathname:o,search:z9(r),hash:L9(i)}}function BE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Vy(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function D9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function G_(e){let t=D9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function W_(e,t,n,r=!1){let i;typeof e=="string"?i=du(e):(i={...e},St(!i.pathname||!i.pathname.includes("?"),Vy("?","pathname","search",i)),St(!i.pathname||!i.pathname.includes("#"),Vy("#","pathname","hash",i)),St(!i.search||!i.search.includes("#"),Vy("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;i.pathname=y.join("/")}c=g>=0?t[g]:"/"}let f=_9(i,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var ei=e=>e.join("/").replace(/\/\/+/g,"/"),R9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,I9=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function B9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function U9(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Q_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function X_(e,t){let n=e;if(typeof n!="string"||!Y_.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Q_)try{let o=new URL(window.location.href),l=n.startsWith("//")?new URL(o.protocol+n):new URL(n),c=ai(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:i=!0}catch{na(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Z_=["POST","PUT","PATCH","DELETE"];new Set(Z_);var $9=["GET",...Z_];new Set($9);var hu=w.createContext(null);hu.displayName="DataRouter";var bp=w.createContext(null);bp.displayName="DataRouterState";var q9=w.createContext(!1),J_=w.createContext({isTransitioning:!1});J_.displayName="ViewTransition";var V9=w.createContext(new Map);V9.displayName="Fetchers";var F9=w.createContext(null);F9.displayName="Await";var Br=w.createContext(null);Br.displayName="Navigation";var Cf=w.createContext(null);Cf.displayName="Location";var pi=w.createContext({outlet:null,matches:[],isDataRoute:!1});pi.displayName="Route";var Y1=w.createContext(null);Y1.displayName="RouteError";var eD="REACT_ROUTER_ERROR",H9="REDIRECT",K9="ROUTE_ERROR_RESPONSE";function Y9(e){if(e.startsWith(`${eD}:${H9}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function G9(e){if(e.startsWith(`${eD}:${K9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new I9(t.status,t.statusText,t.data)}catch{}}function W9(e,{relative:t}={}){St(kf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Br),{hash:i,pathname:o,search:l}=Mf(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ei([n,o])),r.createHref({pathname:c,search:l,hash:i})}function kf(){return w.useContext(Cf)!=null}function js(){return St(kf(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Cf).location}var tD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nD(e){w.useContext(Br).static||w.useLayoutEffect(e)}function G1(){let{isDataRoute:e}=w.useContext(pi);return e?l$():Q9()}function Q9(){St(kf(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(hu),{basename:t,navigator:n}=w.useContext(Br),{matches:r}=w.useContext(pi),{pathname:i}=js(),o=JSON.stringify(G_(r)),l=w.useRef(!1);return nD(()=>{l.current=!0}),w.useCallback((f,h={})=>{if(na(l.current,tD),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=W_(f,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ei([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,i,e])}w.createContext(null);function Mf(e,{relative:t}={}){let{matches:n}=w.useContext(pi),{pathname:r}=js(),i=JSON.stringify(G_(n));return w.useMemo(()=>W_(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function X9(e,t){return rD(e,t)}function rD(e,t,n,r,i){var T;St(kf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(Br),{matches:l}=w.useContext(pi),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let N=g&&g.path||"";iD(h,!g||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
354
+
355
+ Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=js(),b;if(t){let N=typeof t=="string"?du(t):t;St(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=y;let S=b.pathname||"/",j=S;if(m!=="/"){let N=m.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=F_(e,{pathname:j});na(g||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),na(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=n$(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:ei([m,o.encodeLocation?o.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ei([m,o.encodeLocation?o.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),l,n,r,i);return t&&O?w.createElement(Cf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},O):O}function Z9(){let e=o$(),t=B9(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:o},"ErrorBoundary")," or"," ",w.createElement("code",{style:o},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,l)}var J9=w.createElement(Z9,null),aD=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=G9(e.digest);n&&(e=n)}let t=e!==void 0?w.createElement(pi.Provider,{value:this.props.routeContext},w.createElement(Y1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(e$,{error:e},t):t}};aD.contextType=q9;var Fy=new WeakMap;function e$({children:e,error:t}){let{basename:n}=w.useContext(Br);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Y9(t.digest);if(r){let i=Fy.get(t);if(i)throw i;let o=X_(r.location,n);if(Q_&&!Fy.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Fy.set(t,l),l}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function t$({routeContext:e,match:t,children:n}){let r=w.useContext(hu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(pi.Provider,{value:e},n)}function n$(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=n==null?void 0:n.errors;if(l!=null){let m=o.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);St(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let c=!1,f=-1;if(n)for(let m=0;m<o.length;m++){let g=o[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=m),g.route.id){let{loaderData:y,errors:b}=n,S=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||S){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}let h=n&&r?(m,g)=>{var y,b;r(m,{location:n.location,params:((b=(y=n.matches)==null?void 0:y[0])==null?void 0:b.params)??{},unstable_pattern:U9(n.matches),errorInfo:g})}:void 0;return o.reduceRight((m,g,y)=>{let b,S=!1,j=null,A=null;n&&(b=l&&g.route.id?l[g.route.id]:void 0,j=g.route.errorElement||J9,c&&(f<0&&y===0?(iD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,A=null):f===y&&(S=!0,A=g.route.hydrateFallbackElement||null)));let O=t.concat(o.slice(0,y+1)),T=()=>{let N;return b?N=j:S?N=A:g.route.Component?N=w.createElement(g.route.Component,null):g.route.element?N=g.route.element:N=m,w.createElement(t$,{match:g,routeContext:{outlet:m,matches:O,isDataRoute:n!=null},children:N})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?w.createElement(aD,{location:n.location,revalidation:n.revalidation,component:j,error:b,children:T(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):T()},null)}function W1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r$(e){let t=w.useContext(hu);return St(t,W1(e)),t}function a$(e){let t=w.useContext(bp);return St(t,W1(e)),t}function i$(e){let t=w.useContext(pi);return St(t,W1(e)),t}function Q1(e){let t=i$(e),n=t.matches[t.matches.length-1];return St(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function s$(){return Q1("useRouteId")}function o$(){var r;let e=w.useContext(Y1),t=a$("useRouteError"),n=Q1("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function l$(){let{router:e}=r$("useNavigate"),t=Q1("useNavigate"),n=w.useRef(!1);return nD(()=>{n.current=!0}),w.useCallback(async(i,o={})=>{na(n.current,tD),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var UE={};function iD(e,t,n){!t&&!UE[e]&&(UE[e]=!0,na(!1,n))}w.memo(u$);function u$({routes:e,future:t,state:n,onError:r}){return rD(e,void 0,n,r,t)}function es(e){St(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c$({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:l}){St(!kf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=w.useMemo(()=>({basename:c,navigator:i,static:o,unstable_useTransitions:l,future:{}}),[c,i,o,l]);typeof n=="string"&&(n=du(n));let{pathname:h="/",search:m="",hash:g="",state:y=null,key:b="default"}=n,S=w.useMemo(()=>{let j=ai(h,c);return j==null?null:{location:{pathname:j,search:m,hash:g,state:y,key:b},navigationType:r}},[c,h,m,g,y,b,r]);return na(S!=null,`<Router basename="${c}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:w.createElement(Br.Provider,{value:f},w.createElement(Cf.Provider,{children:t,value:S}))}function f$({children:e,location:t}){return X9(hb(e),t)}function hb(e,t=[]){let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,hb(r.props.children,o));return}St(r.type===es,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=hb(r.props.children,o)),n.push(l)}),n}var Xh="get",Zh="application/x-www-form-urlencoded";function wp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function d$(e){return wp(e)&&e.tagName.toLowerCase()==="button"}function h$(e){return wp(e)&&e.tagName.toLowerCase()==="form"}function m$(e){return wp(e)&&e.tagName.toLowerCase()==="input"}function p$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g$(e,t){return e.button===0&&(!t||t==="_self")&&!p$(e)}var Ah=null;function v$(){if(Ah===null)try{new FormData(document.createElement("form"),0),Ah=!1}catch{Ah=!0}return Ah}var y$=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hy(e){return e!=null&&!y$.has(e)?(na(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zh}"`),null):e}function x$(e,t){let n,r,i,o,l;if(h$(e)){let c=e.getAttribute("action");r=c?ai(c,t):null,n=e.getAttribute("method")||Xh,i=Hy(e.getAttribute("enctype"))||Zh,o=new FormData(e)}else if(d$(e)||m$(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?ai(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xh,i=Hy(e.getAttribute("formenctype"))||Hy(c.getAttribute("enctype"))||Zh,o=new FormData(c,e),!v$()){let{name:h,type:m,value:g}=e;if(m==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,g)}}else{if(wp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xh,r=null,i=Zh,l=e}return o&&i==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function X1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function b$(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ai(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function w$(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function S$(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function j$(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let l=await w$(o,n);return l.links?l.links():[]}return[]}));return N$(r.flat(1).filter(S$).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function $E(e,t,n,r,i,o){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,c=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>l(f,h)||c(f,h)):o==="data"?t.filter((f,h)=>{var g;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function A$(e,t,{includeHydrateFallback:n}={}){return O$(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function O$(e){return[...new Set(e)]}function E$(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function N$(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(E$(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function sD(){let e=w.useContext(hu);return X1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T$(){let e=w.useContext(bp);return X1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Z1=w.createContext(void 0);Z1.displayName="FrameworkContext";function oD(){let e=w.useContext(Z1);return X1(e,"You must render this element inside a <HydratedRouter> element"),e}function C$(e,t){let n=w.useContext(Z1),[r,i]=w.useState(!1),[o,l]=w.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=t,y=w.useRef(null);w.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let j=O=>{O.forEach(T=>{l(T.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return y.current&&A.observe(y.current),()=>{A.disconnect()}}},[e]),w.useEffect(()=>{if(r){let j=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(j)}}},[r]);let b=()=>{i(!0)},S=()=>{i(!1),l(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:wc(c,b),onBlur:wc(f,S),onMouseEnter:wc(h,b),onMouseLeave:wc(m,S),onTouchStart:wc(g,b)}]:[!1,y,{}]}function wc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function k$({page:e,...t}){let{router:n}=sD(),r=w.useMemo(()=>F_(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(P$,{page:e,matches:r,...t}):null}function M$(e){let{manifest:t,routeModules:n}=oD(),[r,i]=w.useState([]);return w.useEffect(()=>{let o=!1;return j$(e,t,n).then(l=>{o||i(l)}),()=>{o=!0}},[e,t,n]),r}function P$({page:e,matches:t,...n}){let r=js(),{manifest:i,routeModules:o}=oD(),{basename:l}=sD(),{loaderData:c,matches:f}=T$(),h=w.useMemo(()=>$E(e,t,f,i,r,"data"),[e,t,f,i,r]),m=w.useMemo(()=>$E(e,t,f,i,r,"assets"),[e,t,f,i,r]),g=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,j=!1;if(t.forEach(O=>{var N;let T=i.routes[O.route.id];!T||!T.hasLoader||(!h.some(C=>C.route.id===O.route.id)&&O.route.id in c&&((N=o[O.route.id])!=null&&N.shouldRevalidate)||T.hasClientLoader?j=!0:S.add(O.route.id))}),S.size===0)return[];let A=b$(e,l,"data");return j&&S.size>0&&A.searchParams.set("_routes",t.filter(O=>S.has(O.route.id)).map(O=>O.route.id).join(",")),[A.pathname+A.search]},[l,c,r,i,h,t,e,o]),y=w.useMemo(()=>A$(m,i),[m,i]),b=M$(m);return w.createElement(w.Fragment,null,g.map(S=>w.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),y.map(S=>w.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),b.map(({key:S,link:j})=>w.createElement("link",{key:S,nonce:n.nonce,...j})))}function _$(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var D$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D$&&(window.__reactRouterVersion="7.11.0")}catch{}function R$({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=w.useRef();i.current==null&&(i.current=p9({window:r,v5Compat:!0}));let o=i.current,[l,c]=w.useState({action:o.action,location:o.location}),f=w.useCallback(h=>{n===!1?c(h):w.startTransition(()=>c(h))},[n]);return w.useLayoutEffect(()=>o.listen(f),[o,f]),w.createElement(c$,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var lD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uD=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:l,state:c,target:f,to:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y,...b},S){let{basename:j,unstable_useTransitions:A}=w.useContext(Br),O=typeof h=="string"&&lD.test(h),T=X_(h,j);h=T.to;let N=W9(h,{relative:i}),[C,M,_]=C$(r,b),k=I$(h,{replace:l,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:A});function D(K){t&&t(K),K.defaultPrevented||k(K)}let B=w.createElement("a",{...b,..._,href:T.absoluteURL||N,onClick:T.isExternal||o?t:D,ref:_$(S,M),target:f,"data-discover":!O&&n==="render"?"true":void 0});return C&&!O?w.createElement(w.Fragment,null,B,w.createElement(k$,{page:N})):B});uD.displayName="Link";var cD=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:l,viewTransition:c,children:f,...h},m){let g=Mf(l,{relative:h.relative}),y=js(),b=w.useContext(bp),{navigator:S,basename:j}=w.useContext(Br),A=b!=null&&V$(g)&&c===!0,O=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,T=y.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(T=T.toLowerCase(),N=N?N.toLowerCase():null,O=O.toLowerCase()),N&&j&&(N=ai(N,j)||N);const C=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let M=T===O||!i&&T.startsWith(O)&&T.charAt(C)==="/",_=N!=null&&(N===O||!i&&N.startsWith(O)&&N.charAt(O.length)==="/"),k={isActive:M,isPending:_,isTransitioning:A},D=M?t:void 0,B;typeof r=="function"?B=r(k):B=[r,M?"active":null,_?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(k):o;return w.createElement(uD,{...h,"aria-current":D,className:B,ref:m,style:K,to:l,viewTransition:c},typeof f=="function"?f(k):f)});cD.displayName="NavLink";var z$=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:l=Xh,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y,...b},S)=>{let{unstable_useTransitions:j}=w.useContext(Br),A=$$(),O=q$(c,{relative:h}),T=l.toLowerCase()==="get"?"get":"post",N=typeof c=="string"&&lD.test(c),C=M=>{if(f&&f(M),M.defaultPrevented)return;M.preventDefault();let _=M.nativeEvent.submitter,k=(_==null?void 0:_.getAttribute("formmethod"))||l,D=()=>A(_||M.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:i,state:o,relative:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y});j&&n!==!1?w.startTransition(()=>D()):D()};return w.createElement("form",{ref:S,method:T,action:O,onSubmit:r?f:C,...b,"data-discover":!N&&e==="render"?"true":void 0})});z$.displayName="Form";function L$(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fD(e){let t=w.useContext(hu);return St(t,L$(e)),t}function I$(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=G1(),m=js(),g=Mf(e,{relative:o});return w.useCallback(y=>{if(g$(y,t)){y.preventDefault();let b=n!==void 0?n:Jc(m)===Jc(g),S=()=>h(e,{replace:b,state:r,preventScrollReset:i,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});f?w.startTransition(()=>S()):S()}},[m,h,g,n,r,t,e,i,o,l,c,f])}var B$=0,U$=()=>`__${String(++B$)}__`;function $$(){let{router:e}=fD("useSubmit"),{basename:t}=w.useContext(Br),n=s$(),r=e.fetch,i=e.navigate;return w.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:g}=x$(o,t);if(l.navigate===!1){let y=l.fetcherKey||U$();await r(y,n,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await i(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function q$(e,{relative:t}={}){let{basename:n}=w.useContext(Br),r=w.useContext(pi);St(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Mf(e||".",{relative:t})},l=js();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ei([n,o.pathname])),Jc(o)}function V$(e,{relative:t}={}){let n=w.useContext(J_);St(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fD("useViewTransitionState"),i=Mf(e,{relative:t});if(!n.isTransitioning)return!1;let o=ai(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ai(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mm(i.pathname,l)!=null||mm(i.pathname,o)!=null}var Pf=M_();const dD=w.createContext(null);function Sp(){const e=w.useContext(dD);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function F$({children:e}){const[t,n]=w.useState(!1),[r,i]=w.useState(!1),[o,l]=w.useState(!0),c=w.useCallback(async()=>{try{const g=await(await fetch("/api/auth/status")).json();i(g.enabled),n(g.authenticated)}catch(m){console.error("Failed to check auth status:",m),n(!1)}finally{l(!1)}},[]),f=async m=>{try{const y=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:m})})).json();return y.success?(n(!0),{success:!0}):{success:!1,error:y.error||"Login failed"}}catch{return{success:!1,error:"Network error"}}},h=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch(m){console.error("Logout error:",m)}finally{n(!1)}};return w.useEffect(()=>{c()},[c]),p.jsx(dD.Provider,{value:{isAuthenticated:t,isAuthEnabled:r,isLoading:o,login:f,logout:h,checkAuth:c},children:e})}const hD=w.createContext(null);function J1(){const e=w.useContext(hD);if(!e)throw new Error("useNotifications must be used within a NotificationProvider");return e}function H$({children:e}){const[t,n]=w.useState([]),r=t.filter(h=>!h.read).length,i=w.useCallback(h=>{const m={...h,id:crypto.randomUUID(),timestamp:Date.now(),read:!1};n(g=>[m,...g].slice(0,50))},[]),o=w.useCallback(h=>{n(m=>m.map(g=>g.id===h?{...g,read:!0}:g))},[]),l=w.useCallback(()=>{n(h=>h.map(m=>({...m,read:!0})))},[]),c=w.useCallback(()=>{n([])},[]),f=w.useCallback(h=>{n(m=>m.filter(g=>g.id!==h))},[]);return w.useEffect(()=>{const h=m=>{const g=m.detail;(g.level==="error"||g.level==="warn")&&i({type:g.level==="error"?"error":"warning",title:g.level==="error"?"Job Failed":"Warning",message:g.message||"An event occurred",source:g.queue||g.source})};return window.addEventListener("flux-log-update",h),()=>window.removeEventListener("flux-log-update",h)},[i]),p.jsx(hD.Provider,{value:{notifications:t,unreadCount:r,addNotification:i,markAsRead:o,markAllAsRead:l,clearAll:c,removeNotification:f},children:e})}const ew=w.createContext({});function tw(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const nw=typeof window<"u",mD=nw?w.useLayoutEffect:w.useEffect,jp=w.createContext(null);function rw(e,t){e.indexOf(t)===-1&&e.push(t)}function Ap(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ii=(e,t,n)=>n>t?t:n<e?e:n;let aw=()=>{};const si={},pD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gD(e){return typeof e=="object"&&e!==null}const vD=e=>/^0[^.\s]+$/u.test(e);function iw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dr=e=>e,K$=(e,t)=>n=>t(e(n)),_f=(...e)=>e.reduce(K$),Zl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class sw{constructor(){this.subscriptions=[]}add(t){return rw(this.subscriptions,t),()=>Ap(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ea=e=>e*1e3,Pr=e=>e/1e3;function yD(e,t){return t?e*(1e3/t):0}const Y$=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},xD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,G$=1e-7,W$=12;function Q$(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=xD(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>G$&&++c<W$);return l}function Df(e,t,n,r){if(e===t&&n===r)return Dr;const i=o=>Q$(o,0,1,e,n);return o=>o===0||o===1?o:xD(i(o),t,r)}const bD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wD=e=>t=>1-e(1-t),SD=Df(.33,1.53,.69,.99),ow=wD(SD),jD=bD(ow),AD=e=>(e*=2)<1?.5*ow(e):.5*(2-Math.pow(2,-10*(e-1))),lw=e=>1-Math.sin(Math.acos(e)),OD=wD(lw),ED=bD(lw),X$=Df(.42,0,1,1),Z$=Df(0,0,.58,1),ND=Df(.42,0,.58,1),TD=e=>Array.isArray(e)&&typeof e[0]!="number";function CD(e,t){return TD(e)?e[Y$(0,e.length,t)]:e}const kD=e=>Array.isArray(e)&&typeof e[0]=="number",J$={linear:Dr,easeIn:X$,easeInOut:ND,easeOut:Z$,circIn:lw,circInOut:ED,circOut:OD,backIn:ow,backInOut:jD,backOut:SD,anticipate:AD},eq=e=>typeof e=="string",qE=e=>{if(kD(e)){aw(e.length===4);const[t,n,r,i]=e;return Df(t,n,r,i)}else if(eq(e))return J$[e];return e},Oh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tq(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,g=!1,y=!1)=>{const S=y&&i?n:r;return g&&l.add(m),S.has(m)||S.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const nq=40;function MD(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Oh.reduce((N,C)=>(N[C]=tq(o),N),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:g,preRender:y,render:b,postRender:S}=l,j=()=>{const N=si.useManualTiming?i.timestamp:performance.now();n=!1,si.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(N-i.timestamp,nq),1)),i.timestamp=N,i.isProcessing=!0,c.process(i),f.process(i),h.process(i),m.process(i),g.process(i),y.process(i),b.process(i),S.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(j))},A=()=>{n=!0,r=!0,i.isProcessing||e(j)};return{schedule:Oh.reduce((N,C)=>{const M=l[C];return N[C]=(_,k=!1,D=!1)=>(n||A(),M.schedule(_,k,D)),N},{}),cancel:N=>{for(let C=0;C<Oh.length;C++)l[Oh[C]].cancel(N)},state:i,steps:l}}const{schedule:xt,cancel:vs,state:xn,steps:Ky}=MD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dr,!0);let Jh;function rq(){Jh=void 0}const Wn={now:()=>(Jh===void 0&&Wn.set(xn.isProcessing||si.useManualTiming?xn.timestamp:performance.now()),Jh),set:e=>{Jh=e,queueMicrotask(rq)}},PD=e=>t=>typeof t=="string"&&t.startsWith(e),_D=PD("--"),aq=PD("var(--"),uw=e=>aq(e)?iq.test(e.split("/*")[0].trim()):!1,iq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ef={...mu,transform:e=>ii(0,1,e)},Eh={...mu,default:1},Uc=e=>Math.round(e*1e5)/1e5,cw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sq(e){return e==null}const oq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fw=(e,t)=>n=>!!(typeof n=="string"&&oq.test(n)&&n.startsWith(e)||t&&!sq(n)&&Object.prototype.hasOwnProperty.call(n,t)),DD=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,c]=r.match(cw);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},lq=e=>ii(0,255,e),Yy={...mu,transform:e=>Math.round(lq(e))},Js={test:fw("rgb","red"),parse:DD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yy.transform(e)+", "+Yy.transform(t)+", "+Yy.transform(n)+", "+Uc(ef.transform(r))+")"};function uq(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}}const mb={test:fw("#"),parse:uq,transform:Js.transform},Rf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ts=Rf("deg"),ga=Rf("%"),ke=Rf("px"),cq=Rf("vh"),fq=Rf("vw"),VE={...ga,parse:e=>ga.parse(e)/100,transform:e=>ga.transform(e*100)},Cl={test:fw("hsl","hue"),parse:DD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ga.transform(Uc(t))+", "+ga.transform(Uc(n))+", "+Uc(ef.transform(r))+")"},qt={test:e=>Js.test(e)||mb.test(e)||Cl.test(e),parse:e=>Js.test(e)?Js.parse(e):Cl.test(e)?Cl.parse(e):mb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Js.transform(e):Cl.transform(e),getAnimatableNone:e=>{const t=qt.parse(e);return t.alpha=0,qt.transform(t)}},dq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cw))==null?void 0:t.length)||0)+(((n=e.match(dq))==null?void 0:n.length)||0)>0}const RD="number",zD="color",mq="var",pq="var(",FE="${}",gq=/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 tf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(gq,f=>(qt.test(f)?(r.color.push(o),i.push(zD),n.push(qt.parse(f))):f.startsWith(pq)?(r.var.push(o),i.push(mq),n.push(f)):(r.number.push(o),i.push(RD),n.push(parseFloat(f))),++o,FE)).split(FE);return{values:n,split:c,indexes:r,types:i}}function LD(e){return tf(e).values}function ID(e){const{split:t,types:n}=tf(e),r=t.length;return i=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===RD?o+=Uc(i[l]):c===zD?o+=qt.transform(i[l]):o+=i[l]}return o}}const vq=e=>typeof e=="number"?0:qt.test(e)?qt.getAnimatableNone(e):e;function yq(e){const t=LD(e);return ID(e)(t.map(vq))}const ys={test:hq,parse:LD,createTransformer:ID,getAnimatableNone:yq};function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;i=Gy(f,c,e+1/3),o=Gy(f,c,e),l=Gy(f,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function pm(e,t){return n=>n>0?t:e}const yt=(e,t,n)=>e+(t-e)*n,Wy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bq=[mb,Js,Cl],wq=e=>bq.find(t=>t.test(e));function HE(e){const t=wq(e);if(!t)return!1;let n=t.parse(e);return t===Cl&&(n=xq(n)),n}const KE=(e,t)=>{const n=HE(e),r=HE(t);if(!n||!r)return pm(e,t);const i={...n};return o=>(i.red=Wy(n.red,r.red,o),i.green=Wy(n.green,r.green,o),i.blue=Wy(n.blue,r.blue,o),i.alpha=yt(n.alpha,r.alpha,o),Js.transform(i))},pb=new Set(["none","hidden"]);function Sq(e,t){return pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jq(e,t){return n=>yt(e,t,n)}function dw(e){return typeof e=="number"?jq:typeof e=="string"?uw(e)?pm:qt.test(e)?KE:Eq:Array.isArray(e)?BD:typeof e=="object"?qt.test(e)?KE:Aq:pm}function BD(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>dw(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function Aq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=dw(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Oq(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][r[o]],c=e.values[l]??0;n[i]=c,r[o]++}return n}const Eq=(e,t)=>{const n=ys.createTransformer(t),r=tf(e),i=tf(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?pb.has(e)&&!i.values.length||pb.has(t)&&!r.values.length?Sq(e,t):_f(BD(Oq(r,i),i.values),n):pm(e,t)};function UD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yt(e,t,n):dw(e)(e,t)}const Nq=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>vs(t),now:()=>xn.isProcessing?xn.timestamp:Wn.now()}},$D=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},gm=2e4;function hw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<gm;)t+=n,r=e.next(t);return t>=gm?1/0:t}function qD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(hw(r),gm);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Pr(i)}}const Tq=5;function VD(e,t,n){const r=Math.max(t-Tq,0);return yD(n-e(r),t-r)}const Ct={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},Qy=.001;function Cq({duration:e=Ct.duration,bounce:t=Ct.bounce,velocity:n=Ct.velocity,mass:r=Ct.mass}){let i,o,l=1-t;l=ii(Ct.minDamping,Ct.maxDamping,l),e=ii(Ct.minDuration,Ct.maxDuration,Pr(e)),l<1?(i=h=>{const m=h*l,g=m*e,y=m-n,b=gb(h,l),S=Math.exp(-g);return Qy-y/b*S},o=h=>{const g=h*l*e,y=g*n+n,b=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-g),j=gb(Math.pow(h,2),l);return(-i(h)+Qy>0?-1:1)*((y-b)*S)/j}):(i=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Qy+m*g},o=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,f=Mq(i,o,c);if(e=ea(e),isNaN(f))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const kq=12;function Mq(e,t,n){let r=n;for(let i=1;i<kq;i++)r=r-e(r)/t(r);return r}function gb(e,t){return e*Math.sqrt(1-t*t)}const Pq=["duration","bounce"],_q=["stiffness","damping","mass"];function YE(e,t){return t.some(n=>e[n]!==void 0)}function Dq(e){let t={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...e};if(!YE(e,_q)&&YE(e,Pq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ii(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ct.mass,stiffness:i,damping:o}}else{const n=Cq(e);t={...t,...n,mass:Ct.mass},t.isResolvedFromDuration=!0}return t}function nf(e=Ct.visualDuration,t=Ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:g,velocity:y,isResolvedFromDuration:b}=Dq({...n,velocity:-Pr(n.velocity||0)}),S=y||0,j=h/(2*Math.sqrt(f*m)),A=l-o,O=Pr(Math.sqrt(f/m)),T=Math.abs(A)<5;r||(r=T?Ct.restSpeed.granular:Ct.restSpeed.default),i||(i=T?Ct.restDelta.granular:Ct.restDelta.default);let N;if(j<1){const M=gb(O,j);N=_=>{const k=Math.exp(-j*O*_);return l-k*((S+j*O*A)/M*Math.sin(M*_)+A*Math.cos(M*_))}}else if(j===1)N=M=>l-Math.exp(-O*M)*(A+(S+O*A)*M);else{const M=O*Math.sqrt(j*j-1);N=_=>{const k=Math.exp(-j*O*_),D=Math.min(M*_,300);return l-k*((S+j*O*A)*Math.sinh(D)+M*A*Math.cosh(D))/M}}const C={calculatedDuration:b&&g||null,next:M=>{const _=N(M);if(b)c.done=M>=g;else{let k=M===0?S:0;j<1&&(k=M===0?ea(S):VD(N,M,_));const D=Math.abs(k)<=r,B=Math.abs(l-_)<=i;c.done=D&&B}return c.value=c.done?l:_,c},toString:()=>{const M=Math.min(hw(C),gm),_=$D(k=>C.next(M*k).value,M,30);return M+"ms "+_},toTransition:()=>{}};return C}nf.applyToOptions=e=>{const t=qD(e,100,nf);return e.ease=t.ease,e.duration=ea(t.duration),e.type="keyframes",e};function vb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const g=e[0],y={done:!1,value:g},b=D=>c!==void 0&&D<c||f!==void 0&&D>f,S=D=>c===void 0?f:f===void 0||Math.abs(c-D)<Math.abs(f-D)?c:f;let j=n*t;const A=g+j,O=l===void 0?A:l(A);O!==A&&(j=O-g);const T=D=>-j*Math.exp(-D/r),N=D=>O+T(D),C=D=>{const B=T(D),K=N(D);y.done=Math.abs(B)<=h,y.value=y.done?O:K};let M,_;const k=D=>{b(y.value)&&(M=D,_=nf({keyframes:[y.value,S(y.value)],velocity:VD(N,D,y.value),damping:i,stiffness:o,restDelta:h,restSpeed:m}))};return k(0),{calculatedDuration:null,next:D=>{let B=!1;return!_&&M===void 0&&(B=!0,C(D),k(D)),M!==void 0&&D>=M?_.next(D-M):(!B&&C(D),y)}}}function Rq(e,t,n){const r=[],i=n||si.mix||UD,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Dr:t;c=_f(f,c)}r.push(c)}return r}function zq(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(aw(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Rq(t,r,i),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const y=Zl(e[g],e[g+1],m);return c[g](y)};return n?m=>h(ii(e[0],e[o-1],m)):h}function FD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zl(0,t,r);e.push(yt(n,1,i))}}function HD(e){const t=[0];return FD(t,e.length-1),t}function Lq(e,t){return e.map(n=>n*t)}function Iq(e,t){return e.map(()=>t||ND).splice(0,e.length-1)}function $c({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=TD(r)?r.map(qE):qE(r),o={done:!1,value:t[0]},l=Lq(n&&n.length===t.length?n:HD(t),e),c=zq(l,t,{ease:Array.isArray(i)?i:Iq(t,i)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Bq=e=>e!==null;function mw(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(Bq),c=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const Uq={decay:vb,inertia:vb,tween:$c,keyframes:$c,spring:nf};function KD(e){typeof e.type=="string"&&(e.type=Uq[e.type])}class pw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const $q=e=>e/100;class gw extends pw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Wn.now()&&this.tick(Wn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;KD(t);const{type:n=$c,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||$c;f!==$c&&typeof c[0]!="number"&&(this.mixKeyframes=_f($q,UD(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=hw(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:g,repeatType:y,repeatDelay:b,type:S,onUpdate:j,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let N=this.currentTime,C=r;if(g){const D=Math.min(this.currentTime,i)/c;let B=Math.floor(D),K=D%1;!K&&D>=1&&(K=1),K===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(y==="reverse"?(K=1-K,b&&(K-=b/c)):y==="mirror"&&(C=l)),N=ii(0,1,K)*c}const M=T?{done:!1,value:m[0]}:C.next(N);o&&(M.value=o(M.value));let{done:_}=M;!T&&f!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return k&&S!==vb&&(M.value=mw(m,this.options,A,this.speed)),j&&j(M.value),k&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Pr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(this.currentTime)}set time(t){var n;t=ea(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Wn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pr(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=Nq,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(Wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function qq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const eo=e=>e*180/Math.PI,yb=e=>{const t=eo(Math.atan2(e[1],e[0]));return xb(t)},Vq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yb,rotateZ:yb,skewX:e=>eo(Math.atan(e[1])),skewY:e=>eo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xb=e=>(e=e%360,e<0&&(e+=360),e),GE=yb,WE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),QE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WE,scaleY:QE,scale:e=>(WE(e)+QE(e))/2,rotateX:e=>xb(eo(Math.atan2(e[6],e[5]))),rotateY:e=>xb(eo(Math.atan2(-e[2],e[0]))),rotateZ:GE,rotate:GE,skewX:e=>eo(Math.atan(e[4])),skewY:e=>eo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bb(e){return e.includes("scale")?1:0}function wb(e,t){if(!e||e==="none")return bb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Fq,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vq,i=c}if(!i)return bb(t);const o=r[t],l=i[1].split(",").map(Kq);return typeof o=="function"?o(l):l[o]}const Hq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wb(n,t)};function Kq(e){return parseFloat(e.trim())}const pu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gu=new Set(pu),XE=e=>e===mu||e===ke,Yq=new Set(["x","y","z"]),Gq=pu.filter(e=>!Yq.has(e));function Wq(e){const t=[];return Gq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const po={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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})=>wb(t,"x"),y:(e,{transform:t})=>wb(t,"y")};po.translateX=po.x;po.translateY=po.y;const go=new Set;let Sb=!1,jb=!1,Ab=!1;function YD(){if(jb){const e=Array.from(go).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Wq(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,l])=>{var c;(c=r.getValue(o))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jb=!1,Sb=!1,go.forEach(e=>e.complete(Ab)),go.clear()}function GD(){go.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jb=!0)})}function Qq(){Ab=!0,GD(),YD(),Ab=!1}class vw{constructor(t,n,r,i,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(go.add(this),Sb||(Sb=!0,xt.read(GD),xt.resolveKeyframes(YD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}qq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),go.delete(this)}cancel(){this.state==="scheduled"&&(go.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xq=e=>e.startsWith("--");function Zq(e,t,n){Xq(t)?e.style.setProperty(t,n):e.style[t]=n}const Jq=iw(()=>window.ScrollTimeline!==void 0),eV={};function tV(e,t){const n=iw(e);return()=>eV[t]??n()}const WD=tV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ZE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zc([0,.65,.55,1]),circOut:zc([.55,0,1,.45]),backIn:zc([.31,.01,.66,-.59]),backOut:zc([.33,1.53,.69,.99])};function QD(e,t){if(e)return typeof e=="function"?WD()?$D(e,t):"ease-out":kD(e)?zc(e):Array.isArray(e)?e.map(n=>QD(n,t)||ZE.easeOut):ZE[e]}function nV(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeOut",times:f}={},h=void 0){const m={[t]:n};f&&(m.offset=f);const g=QD(c,i);Array.isArray(g)&&(m.easing=g);const y={delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(m,y)}function yw(e){return typeof e=="function"&&"applyToOptions"in e}function rV({type:e,...t}){return yw(e)&&WD()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class aV extends pw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,aw(typeof t.type!="string");const h=rV(t);this.animation=nV(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=mw(i,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):Zq(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ea(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Jq()?(this.animation.timeline=t,Dr):n(this)}}const XD={anticipate:AD,backInOut:jD,circInOut:ED};function iV(e){return e in XD}function sV(e){typeof e.ease=="string"&&iV(e.ease)&&(e.ease=XD[e.ease])}const JE=10;class oV extends aV{constructor(t){sV(t),KD(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new gw({...l,autoplay:!1}),f=ea(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-JE).value,c.sample(f).value,JE),c.stop()}}const eN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ys.test(e)||e==="0")&&!e.startsWith("url("));function lV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function uV(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=eN(i,t),c=eN(o,t);return!l||!c?!1:lV(e)||(n==="spring"||yw(n))&&r}function Ob(e){e.duration=0,e.type="keyframes"}const cV=new Set(["opacity","clipPath","filter","transform"]),fV=iw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dV(e){var m;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:l}=e;if(!(((m=t==null?void 0:t.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return fV()&&n&&cV.has(n)&&(n!=="transform"||!h)&&!f&&!r&&i!=="mirror"&&o!==0&&l!=="inertia"}const hV=40;class mV extends pw{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",keyframes:c,name:f,motionValue:h,element:m,...g}){var S;super(),this.stop=()=>{var j,A;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Wn.now();const y={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:m,...g},b=(m==null?void 0:m.KeyframeResolver)||vw;this.keyframeResolver=new b(c,(j,A,O)=>this.onKeyframesResolved(j,A,y,!O),f,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=Wn.now(),uV(t,o,l,c)||((si.instantAnimations||!f)&&(m==null||m(mw(t,r,n))),t[0]=t[t.length-1],Ob(r),r.repeat=0);const y={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>hV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!h&&dV(y)?new oV({...y,element:y.motionValue.owner.current}):new gw(y);b.finished.then(()=>this.notifyFinished()).catch(Dr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Qq()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class pV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return tN(this.animations,"duration")}get iterationDuration(){return tN(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function tN(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r][t];i!==null&&i>n&&(n=i)}return n}class gV extends pV{then(t,n){return this.finished.finally(t).then(()=>{})}}const vV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yV(e){const t=vV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function ZD(e,t,n=1){const[r,i]=yV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return pD(l)?parseFloat(l):l}return uw(i)?ZD(i,t,n+1):i}function xw(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const JD=new Set(["width","height","top","left","right","bottom",...pu]),xV={test:e=>e==="auto",parse:e=>e},e5=e=>t=>t.test(e),t5=[mu,ke,ga,ts,fq,cq,xV],nN=e=>t5.find(e5(e));function bV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vD(e):!0}const wV=new Set(["brightness","contrast","saturate","opacity"]);function SV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cw)||[];if(!r)return e;const i=n.replace(r,"");let o=wV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const jV=/\b([a-z-]*)\(.*?\)/gu,Eb={...ys,getAnimatableNone:e=>{const t=e.match(jV);return t?t.map(SV).join(" "):e}},rN={...mu,transform:Math.round},AV={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:Eh,scaleX:Eh,scaleY:Eh,scaleZ:Eh,skew:ts,skewX:ts,skewY:ts,distance:ke,translateX:ke,translateY:ke,translateZ:ke,x:ke,y:ke,z:ke,perspective:ke,transformPerspective:ke,opacity:ef,originX:VE,originY:VE,originZ:ke},bw={borderWidth:ke,borderTopWidth:ke,borderRightWidth:ke,borderBottomWidth:ke,borderLeftWidth:ke,borderRadius:ke,radius:ke,borderTopLeftRadius:ke,borderTopRightRadius:ke,borderBottomRightRadius:ke,borderBottomLeftRadius:ke,width:ke,maxWidth:ke,height:ke,maxHeight:ke,top:ke,right:ke,bottom:ke,left:ke,padding:ke,paddingTop:ke,paddingRight:ke,paddingBottom:ke,paddingLeft:ke,margin:ke,marginTop:ke,marginRight:ke,marginBottom:ke,marginLeft:ke,backgroundPositionX:ke,backgroundPositionY:ke,...AV,zIndex:rN,fillOpacity:ef,strokeOpacity:ef,numOctaves:rN},OV={...bw,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Eb,WebkitFilter:Eb},n5=e=>OV[e];function r5(e,t){let n=n5(e);return n!==Eb&&(n=ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EV=new Set(["auto","none","0"]);function NV(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!EV.has(o)&&tf(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=r5(n,i)}class TV extends vw{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),uw(h))){const m=ZD(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!JD.has(r)||t.length!==2)return;const[i,o]=t,l=nN(i),c=nN(o);if(l!==c)if(XE(l)&&XE(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else po[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||bV(t[i]))&&r.push(i);r.length&&NV(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=po[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=po[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function a5(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const i5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function s5(e){return gD(e)&&"offsetHeight"in e}const aN=30,CV=e=>!isNaN(parseFloat(e));class kV{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Wn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sw);const r=this.events[t].add(n);return t==="change"?()=>{r(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>aN)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,aN);return yD(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jl(e,t){return new kV(e,t)}const{schedule:ww}=MD(queueMicrotask,!1),Kr={x:!1,y:!1};function o5(){return Kr.x||Kr.y}function MV(e){return e==="x"||e==="y"?Kr[e]?null:(Kr[e]=!0,()=>{Kr[e]=!1}):Kr.x||Kr.y?null:(Kr.x=Kr.y=!0,()=>{Kr.x=Kr.y=!1})}function l5(e,t){const n=a5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function iN(e){return!(e.pointerType==="touch"||o5())}function PV(e,t,n={}){const[r,i,o]=l5(e,n),l=c=>{if(!iN(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=g=>{iN(g)&&(h(g),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}const u5=(e,t)=>t?e===t?!0:u5(e,t.parentElement):!1,Sw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DV(e){return _V.has(e.tagName)||e.tabIndex!==-1}const em=new WeakSet;function sN(e){return t=>{t.key==="Enter"&&e(t)}}function Xy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sN(()=>{if(em.has(n))return;Xy(n,"down");const i=sN(()=>{Xy(n,"up")}),o=()=>Xy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function oN(e){return Sw(e)&&!o5()}function zV(e,t,n={}){const[r,i,o]=l5(e,n),l=c=>{const f=c.currentTarget;if(!oN(c))return;em.add(f);const h=t(f,c),m=(b,S)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),em.has(f)&&em.delete(f),oN(b)&&typeof h=="function"&&h(b,{success:S})},g=b=>{m(b,f===window||f===document||n.useGlobalTarget||u5(f,b.target))},y=b=>{m(b,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",y,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,i),s5(c)&&(c.addEventListener("focus",h=>RV(h,i)),!DV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function jw(e){return gD(e)&&"ownerSVGElement"in e}function c5(e){return jw(e)&&e.tagName==="svg"}const ln=e=>!!(e&&e.getVelocity),LV=[...t5,qt,ys],IV=e=>LV.find(e5(e)),Aw=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function lN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function BV(...e){return t=>{let n=!1;const r=e.map(i=>{const o=lN(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():lN(e[i],null)}}}}function UV(...e){return w.useCallback(BV(...e),e)}class $V extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=s5(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function qV({children:e,isPresent:t,anchorX:n,root:r}){const i=w.useId(),o=w.useRef(null),l=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=w.useContext(Aw),f=UV(o,e==null?void 0:e.ref);return w.useInsertionEffect(()=>{const{width:h,height:m,top:g,left:y,right:b}=l.current;if(t||!o.current||!h||!m)return;const S=n==="left"?`left: ${y}`:`right: ${b}`;o.current.dataset.motionPopId=i;const j=document.createElement("style");c&&(j.nonce=c);const A=r??document.head;return A.appendChild(j),j.sheet&&j.sheet.insertRule(`
356
+ [data-motion-pop-id="${i}"] {
357
+ position: absolute !important;
358
+ width: ${h}px !important;
359
+ height: ${m}px !important;
360
+ ${S}px !important;
361
+ top: ${g}px !important;
362
+ }
363
+ `),()=>{A.contains(j)&&A.removeChild(j)}},[t]),p.jsx($V,{isPresent:t,childRef:o,sizeRef:l,children:w.cloneElement(e,{ref:f})})}const VV=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:c,root:f})=>{const h=tw(FV),m=w.useId();let g=!0,y=w.useMemo(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:b=>{h.set(b,!0);for(const S of h.values())if(!S)return;r&&r()},register:b=>(h.set(b,!1),()=>h.delete(b))}),[n,h,r]);return o&&g&&(y={...y}),w.useMemo(()=>{h.forEach((b,S)=>h.set(S,!1))},[n]),w.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(e=p.jsx(qV,{isPresent:n,anchorX:c,root:f,children:e})),p.jsx(jp.Provider,{value:y,children:e})};function FV(){return new Map}function f5(e=!0){const t=w.useContext(jp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=w.useId();w.useEffect(()=>{if(e)return i(o)},[e]);const l=w.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Nh=e=>e.key||"";function uN(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const gi=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",root:f})=>{const[h,m]=f5(l),g=w.useMemo(()=>uN(e),[e]),y=l&&!h?[]:g.map(Nh),b=w.useRef(!0),S=w.useRef(g),j=tw(()=>new Map),[A,O]=w.useState(g),[T,N]=w.useState(g);mD(()=>{b.current=!1,S.current=g;for(let _=0;_<T.length;_++){const k=Nh(T[_]);y.includes(k)?j.delete(k):j.get(k)!==!0&&j.set(k,!1)}},[T,y.length,y.join("-")]);const C=[];if(g!==A){let _=[...g];for(let k=0;k<T.length;k++){const D=T[k],B=Nh(D);y.includes(B)||(_.splice(k,0,D),C.push(D))}return o==="wait"&&C.length&&(_=C),N(uN(_)),O(g),null}const{forceRender:M}=w.useContext(ew);return p.jsx(p.Fragment,{children:T.map(_=>{const k=Nh(_),D=l&&!h?!1:g===T||y.includes(k),B=()=>{if(j.has(k))j.set(k,!0);else return;let K=!0;j.forEach($=>{$||(K=!1)}),K&&(M==null||M(),N(S.current),l&&(m==null||m()),r&&r())};return p.jsx(VV,{isPresent:D,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:f,onExitComplete:D?void 0:B,anchorX:c,children:_},k)})})},d5=w.createContext({strict:!1}),cN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},eu={};for(const e in cN)eu[e]={isEnabled:t=>cN[e].some(n=>!!t[n])};function HV(e){for(const t in e)eu[t]={...eu[t],...e[t]}}const KV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function vm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KV.has(e)}let h5=e=>!vm(e);function YV(e){typeof e=="function"&&(h5=t=>t.startsWith("on")?!vm(t):e(t))}try{YV(require("@emotion/is-prop-valid").default)}catch{}function GV(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h5(i)||n===!0&&vm(i)||!t&&!vm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Op=w.createContext({});function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function rf(e){return typeof e=="string"||Array.isArray(e)}const Ow=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ew=["initial",...Ow];function Np(e){return Ep(e.animate)||Ew.some(t=>rf(e[t]))}function m5(e){return!!(Np(e)||e.variants)}function WV(e,t){if(Np(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rf(n)?n:void 0,animate:rf(r)?r:void 0}}return e.inherit!==!1?t:{}}function QV(e){const{initial:t,animate:n}=WV(e,w.useContext(Op));return w.useMemo(()=>({initial:t,animate:n}),[fN(t),fN(n)])}function fN(e){return Array.isArray(e)?e.join(" "):e}function dN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ke.test(e))e=parseFloat(e);else return e;const n=dN(e,t.target.x),r=dN(e,t.target.y);return`${n}% ${r}%`}},XV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ys.parse(e);if(i.length>5)return r;const o=ys.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=f;const h=yt(c,f,.5);return typeof i[2+l]=="number"&&(i[2+l]/=h),typeof i[3+l]=="number"&&(i[3+l]/=h),o(i)}},Nb={borderRadius:{...Sc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sc,borderTopRightRadius:Sc,borderBottomLeftRadius:Sc,borderBottomRightRadius:Sc,boxShadow:XV};function p5(e,{layout:t,layoutId:n}){return gu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nb[e]||e==="opacity")}const ZV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JV=pu.length;function e7(e,t,n){let r="",i=!0;for(let o=0;o<JV;o++){const l=pu[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=i5(c,bw[l]);if(!f){i=!1;const m=ZV[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Nw(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(gu.has(f)){l=!0;continue}else if(_D(f)){i[f]=h;continue}else{const m=i5(h,bw[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=e7(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const Tw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function g5(e,t,n){for(const r in t)!ln(t[r])&&!p5(r,n)&&(e[r]=t[r])}function t7({transformTemplate:e},t){return w.useMemo(()=>{const n=Tw();return Nw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function n7(e,t){const n=e.style||{},r={};return g5(r,n,e),Object.assign(r,t7(e,t)),r}function r7(e,t){const n={},r=n7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const a7={offset:"stroke-dashoffset",array:"stroke-dasharray"},i7={offset:"strokeDashoffset",array:"strokeDasharray"};function s7(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?a7:i7;e[o.offset]=ke.transform(-r);const l=ke.transform(t),c=ke.transform(n);e[o.array]=`${l} ${c}`}function v5(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(Nw(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),i!==void 0&&s7(g,i,o,l,!1)}const y5=()=>({...Tw(),attrs:{}}),x5=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o7(e,t,n,r){const i=w.useMemo(()=>{const o=y5();return v5(o,t,x5(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};g5(o,e.style,e),i.style={...o,...i.style}}return i}const l7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cw(e){return typeof e!="string"||e.includes("-")?!1:!!(l7.indexOf(e)>-1||/[A-Z]/u.test(e))}function u7(e,t,n,{latestValues:r},i,o=!1){const c=(Cw(e)?o7:r7)(t,r,i,e),f=GV(t,typeof e=="string",o),h=e!==w.Fragment?{...f,...c,ref:n}:{},{children:m}=t,g=w.useMemo(()=>ln(m)?m.get():m,[m]);return w.createElement(e,{...h,children:g})}function hN(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kw(e,t,n,r){if(typeof t=="function"){const[i,o]=hN(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=hN(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function tm(e){return ln(e)?e.get():e}function c7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:f7(n,r,i,e),renderState:t()}}function f7(e,t,n,r){const i={},o=r(e,{});for(const y in o)i[y]=tm(o[y]);let{initial:l,animate:c}=e;const f=Np(e),h=m5(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?c:l;if(g&&typeof g!="boolean"&&!Ep(g)){const y=Array.isArray(g)?g:[g];for(let b=0;b<y.length;b++){const S=kw(e,y[b]);if(S){const{transitionEnd:j,transition:A,...O}=S;for(const T in O){let N=O[T];if(Array.isArray(N)){const C=m?N.length-1:0;N=N[C]}N!==null&&(i[T]=N)}for(const T in j)i[T]=j[T]}}}return i}const b5=e=>(t,n)=>{const r=w.useContext(Op),i=w.useContext(jp),o=()=>c7(e,t,r,i);return n?o():tw(o)};function Mw(e,t,n){var o;const{style:r}=e,i={};for(const l in r)(ln(r[l])||t.style&&ln(t.style[l])||p5(l,e)||((o=n==null?void 0:n.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(i[l]=r[l]);return i}const d7=b5({scrapeMotionValuesFromProps:Mw,createRenderState:Tw});function w5(e,t,n){const r=Mw(e,t,n);for(const i in e)if(ln(e[i])||ln(t[i])){const o=pu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const h7=b5({scrapeMotionValuesFromProps:w5,createRenderState:y5}),m7=Symbol.for("motionComponentSymbol");function kl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function p7(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):kl(n)&&(n.current=r))},[t])}const Pw=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),g7="framerAppearId",S5="data-"+Pw(g7),j5=w.createContext({});function v7(e,t,n,r,i){var j,A;const{visualElement:o}=w.useContext(Op),l=w.useContext(d5),c=w.useContext(jp),f=w.useContext(Aw).reducedMotion,h=w.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=w.useContext(j5);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&y7(h.current,n,i,g);const y=w.useRef(!1);w.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const b=n[S5],S=w.useRef(!!b&&!((j=window.MotionHandoffIsComplete)!=null&&j.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return mD(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),S.current&&m.animationState&&m.animationState.animateChanges())}),w.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,b)}),S.current=!1),m.enteringChildren=void 0)}),m}function y7(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:A5(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&kl(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:h})}function A5(e){if(e)return e.options.allowProjection!==!1?e.projection:A5(e.parent)}function Zy(e,{forwardMotionProps:t=!1}={},n,r){n&&HV(n);const i=Cw(e)?h7:d7;function o(c,f){let h;const m={...w.useContext(Aw),...c,layoutId:x7(c)},{isStatic:g}=m,y=QV(c),b=i(c,g);if(!g&&nw){b7();const S=w7(m);h=S.MeasureLayout,y.visualElement=v7(e,b,m,r,S.ProjectionNode)}return p.jsxs(Op.Provider,{value:y,children:[h&&y.visualElement?p.jsx(h,{visualElement:y.visualElement,...m}):null,u7(e,c,p7(b,y.visualElement,f),b,g,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=w.forwardRef(o);return l[m7]=e,l}function x7({layoutId:e}){const t=w.useContext(ew).id;return t&&e!==void 0?t+"-"+e:e}function b7(e,t){w.useContext(d5).strict}function w7(e){const{drag:t,layout:n}=eu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function S7(e,t){if(typeof Proxy>"u")return Zy;const n=new Map,r=(o,l)=>Zy(o,l,e,t),i=(o,l)=>r(o,l);return new Proxy(i,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,Zy(l,void 0,e,t)),n.get(l))})}function O5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function j7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function A7(e,t){if(!t)return e;const 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 Jy(e){return e===void 0||e===1}function Tb({scale:e,scaleX:t,scaleY:n}){return!Jy(e)||!Jy(t)||!Jy(n)}function Ys(e){return Tb(e)||E5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function E5(e){return mN(e.x)||mN(e.y)}function mN(e){return e&&e!=="0%"}function ym(e,t,n){const r=e-n,i=t*r;return n+i}function pN(e,t,n,r,i){return i!==void 0&&(e=ym(e,i,r)),ym(e,n,r)+t}function Cb(e,t=0,n=1,r,i){e.min=pN(e.min,t,n,r,i),e.max=pN(e.max,t,n,r,i)}function N5(e,{x:t,y:n}){Cb(e.x,t.translate,t.scale,t.originPoint),Cb(e.y,n.translate,n.scale,n.originPoint)}const gN=.999999999999,vN=1.0000000000001;function O7(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Pl(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,N5(e,l)),r&&Ys(o.latestValues)&&Pl(e,o.latestValues))}t.x<vN&&t.x>gN&&(t.x=1),t.y<vN&&t.y>gN&&(t.y=1)}function Ml(e,t){e.min=e.min+t,e.max=e.max+t}function yN(e,t,n,r,i=.5){const o=yt(e.min,e.max,i);Cb(e,t,n,o,r)}function Pl(e,t){yN(e.x,t.x,t.scaleX,t.scale,t.originX),yN(e.y,t.y,t.scaleY,t.scale,t.originY)}function T5(e,t){return O5(A7(e.getBoundingClientRect(),t))}function E7(e,t,n){const r=T5(e,n),{scroll:i}=t;return i&&(Ml(r.x,i.offset.x),Ml(r.y,i.offset.y)),r}const xN=()=>({translate:0,scale:1,origin:0,originPoint:0}),_l=()=>({x:xN(),y:xN()}),bN=()=>({min:0,max:0}),$t=()=>({x:bN(),y:bN()}),kb={current:null},C5={current:!1};function N7(){if(C5.current=!0,!!nw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kb.current=e.matches;e.addEventListener("change",t),t()}else kb.current=!1}const af=new WeakMap;function T7(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ln(i))e.addValue(r,i);else if(ln(o))e.addValue(r,Jl(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,Jl(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class k5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const y=Wn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,xt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Np(n),this.isVariantNode=m5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const b=g[y];f[y]!==void 0&&ln(b)&&b.set(f[y])}}mount(t){var n;this.current=t,af.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),C5.current||N7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kb.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),vs(this.notifyUpdate),vs(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&xt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in eu){const n=eu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<wN.length;r++){const i=wN[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=T7(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Jl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(pD(r)||vD(r))?r=parseFloat(r):!IV(r)&&ys.test(n)&&(r=r5(t,n)),this.setBaseTarget(t,ln(r)?r.get():r)),ln(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=kw(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ln(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ww.render(this.render)}}class M5 extends k5{constructor(){super(...arguments),this.KeyframeResolver=TV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function P5(e,{style:t,vars:n},r,i){const o=e.style;let l;for(l in t)o[l]=t[l];i==null||i.applyProjectionStyles(o,r);for(l in n)o.setProperty(l,n[l])}function C7(e){return window.getComputedStyle(e)}class _5 extends M5{constructor(){super(...arguments),this.type="html",this.renderInstance=P5}readValueFromInstance(t,n){var r;if(gu.has(n))return(r=this.projection)!=null&&r.isProjecting?bb(n):Hq(t,n);{const i=C7(t),o=(_D(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return T5(t,n)}build(t,n,r){Nw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mw(t,n,r)}}const D5=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"]);function k7(e,t,n,r){P5(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(D5.has(i)?i:Pw(i),t.attrs[i])}class R5 extends M5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gu.has(n)){const r=n5(n);return r&&r.default||0}return n=D5.has(n)?n:Pw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return w5(t,n,r)}build(t,n,r){v5(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){k7(t,n,r,i)}mount(t){this.isSVGTag=x5(t.tagName),super.mount(t)}}const M7=(e,t)=>Cw(e)?new R5(t):new _5(t,{allowProjection:e!==w.Fragment});function Ll(e,t,n){const r=e.getProps();return kw(r,t,n!==void 0?n:r.custom,e)}const Mb=e=>Array.isArray(e);function P7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jl(n))}function _7(e){return Mb(e)?e[e.length-1]||0:e}function D7(e,t){const n=Ll(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const c=_7(o[l]);P7(e,l,c)}}function R7(e){return!!(ln(e)&&e.add)}function Pb(e,t){const n=e.getValue("willChange");if(R7(n))return n.add(t);if(!n&&si.WillChange){const r=new si.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function z5(e){return e.props[S5]}const z7=e=>e!==null;function L7(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(z7),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const I7={type:"spring",stiffness:500,damping:25,restSpeed:10},B7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),U7={type:"keyframes",duration:.8},$7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q7=(e,{keyframes:t})=>t.length>2?U7:gu.has(e)?e.startsWith("scale")?B7(t[1]):I7:$7;function V7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const _w=(e,t,n,r={},i,o)=>l=>{const c=xw(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-ea(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:y=>{t.set(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};V7(c)||Object.assign(m,q7(e,m)),m.duration&&(m.duration=ea(m.duration)),m.repeatDelay&&(m.repeatDelay=ea(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Ob(m),m.delay===0&&(g=!0)),(si.instantAnimations||si.skipAnimations)&&(g=!0,Ob(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!o&&t.get()!==void 0){const y=L7(m.keyframes,c);if(y!==void 0){xt.update(()=>{m.onUpdate(y),m.onComplete()});return}}return c.isSync?new gw(m):new mV(m)};function F7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Dw(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in c){const g=e.getValue(m,e.latestValues[m]??null),y=c[m];if(y===void 0||h&&F7(h,m))continue;const b={delay:n,...xw(o||{},m)},S=g.get();if(S!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===S&&!b.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const O=z5(e);if(O){const T=window.MotionHandoffAnimation(O,m,xt);T!==null&&(b.startTime=T,j=!0)}}Pb(e,m),g.start(_w(m,g,y,e.shouldReduceMotion&&JD.has(m)?{type:!1}:b,e,j));const A=g.animation;A&&f.push(A)}return l&&Promise.all(f).then(()=>{xt.update(()=>{l&&D7(e,l)})}),f}function L5(e,t,n,r=0,i=1){const o=Array.from(e).sort((h,m)=>h.sortNodePosition(m)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(o,l):i===1?o*r:c-o*r}function _b(e,t,n={}){var f;const r=Ll(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Dw(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:y}=i;return H7(e,t,h,m,g,y,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[h,m]=c==="beforeChildren"?[o,l]:[l,o];return h().then(()=>m())}else return Promise.all([o(),l(n.delay)])}function H7(e,t,n=0,r=0,i=0,o=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(_b(f,t,{...l,delay:n+(typeof r=="function"?0:r)+L5(e.variantChildren,f,r,i,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function K7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>_b(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=_b(e,t,n);else{const i=typeof t=="function"?Ll(e,t,n.custom):t;r=Promise.all(Dw(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function I5(e,t){if(!Array.isArray(t))return!1;const 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}const Y7=Ew.length;function B5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?B5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y7;n++){const r=Ew[n],i=e.props[r];(rf(i)||i===!1)&&(t[r]=i)}return t}const G7=[...Ow].reverse(),W7=Ow.length;function Q7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>K7(e,n,r)))}function X7(e){let t=Q7(e),n=SN(),r=!0;const i=f=>(h,m)=>{var y;const g=Ll(e,m,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:b,transitionEnd:S,...j}=g;h={...h,...j,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=B5(e.parent)||{},g=[],y=new Set;let b={},S=1/0;for(let A=0;A<W7;A++){const O=G7[A],T=n[O],N=h[O]!==void 0?h[O]:m[O],C=rf(N),M=O===f?T.isActive:null;M===!1&&(S=A);let _=N===m[O]&&N!==h[O]&&C;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),T.protectedKeys={...b},!T.isActive&&M===null||!N&&!T.prevProp||Ep(N)||typeof N=="boolean")continue;const k=Z7(T.prevProp,N);let D=k||O===f&&T.isActive&&!_&&C||A>S&&C,B=!1;const K=Array.isArray(N)?N:[N];let $=K.reduce(i(O),{});M===!1&&($={});const{prevResolvedValues:Z={}}=T,le={...Z,...$},de=W=>{D=!0,y.has(W)&&(B=!0,y.delete(W)),T.needsAnimating[W]=!0;const Y=e.getValue(W);Y&&(Y.liveStyle=!1)};for(const W in le){const Y=$[W],oe=Z[W];if(b.hasOwnProperty(W))continue;let ne=!1;Mb(Y)&&Mb(oe)?ne=!I5(Y,oe):ne=Y!==oe,ne?Y!=null?de(W):y.add(W):Y!==void 0&&y.has(W)?de(W):T.protectedKeys[W]=!0}T.prevProp=N,T.prevResolvedValues=$,T.isActive&&(b={...b,...$}),r&&e.blockInitialAnimation&&(D=!1);const me=_&&k;D&&(!me||B)&&g.push(...K.map(W=>{const Y={type:O};if(typeof W=="string"&&r&&!me&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,ne=Ll(oe,W);if(oe.enteringChildren&&ne){const{delayChildren:R}=ne.transition||{};Y.delay=L5(oe.enteringChildren,e,R)}}return{animation:W,options:Y}}))}if(y.size){const A={};if(typeof h.initial!="boolean"){const O=Ll(e,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&(A.transition=O.transition)}y.forEach(O=>{const T=e.getBaseTarget(O),N=e.getValue(O);N&&(N.liveStyle=!0),A[O]=T??null}),g.push({animation:A})}let j=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,j?t(g):Promise.resolve()}function c(f,h){var g;if(n[f].isActive===h)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var b;return(b=y.animationState)==null?void 0:b.setActive(f,h)}),n[f].isActive=h;const m=l(f);for(const y in n)n[y].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=SN()}}}function Z7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!I5(t,e):!1}function Hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SN(){return{animate:Hs(!0),whileInView:Hs(),whileHover:Hs(),whileTap:Hs(),whileDrag:Hs(),whileFocus:Hs(),exit:Hs()}}class As{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J7 extends As{constructor(t){super(t),t.animationState||(t.animationState=X7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let eF=0;class tF extends As{constructor(){super(...arguments),this.id=eF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nF={animation:{Feature:J7},exit:{Feature:tF}};function sf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zf(e){return{point:{x:e.pageX,y:e.pageY}}}const rF=e=>t=>Sw(t)&&e(t,zf(t));function qc(e,t,n,r){return sf(e,t,rF(n),r)}const U5=1e-4,aF=1-U5,iF=1+U5,$5=.01,sF=0-$5,oF=0+$5;function Dn(e){return e.max-e.min}function lF(e,t,n){return Math.abs(e-t)<=n}function jN(e,t,n,r=.5){e.origin=r,e.originPoint=yt(t.min,t.max,e.origin),e.scale=Dn(n)/Dn(t),e.translate=yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aF&&e.scale<=iF||isNaN(e.scale))&&(e.scale=1),(e.translate>=sF&&e.translate<=oF||isNaN(e.translate))&&(e.translate=0)}function Vc(e,t,n,r){jN(e.x,t.x,n.x,r?r.originX:void 0),jN(e.y,t.y,n.y,r?r.originY:void 0)}function AN(e,t,n){e.min=n.min+t.min,e.max=e.min+Dn(t)}function uF(e,t,n){AN(e.x,t.x,n.x),AN(e.y,t.y,n.y)}function ON(e,t,n){e.min=t.min-n.min,e.max=e.min+Dn(t)}function xm(e,t,n){ON(e.x,t.x,n.x),ON(e.y,t.y,n.y)}function Tr(e){return[e("x"),e("y")]}const q5=({current:e})=>e?e.ownerDocument.defaultView:null,EN=(e,t)=>Math.abs(e-t);function cF(e,t){const n=EN(e.x,t.x),r=EN(e.y,t.y);return Math.sqrt(n**2+r**2)}class V5{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=t0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,S=cF(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!S)return;const{point:j}=y,{timestamp:A}=xn;this.history.push({...j,timestamp:A});const{onStart:O,onMove:T}=this.handlers;b||(O&&O(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,y)},this.handlePointerMove=(y,b)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=e0(b,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(y,b)=>{this.end();const{onEnd:S,onSessionEnd:j,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=t0(y.type==="pointercancel"?this.lastMoveEventInfo:e0(b,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,O),j&&j(y,O)},!Sw(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=i||window;const c=zf(t),f=e0(c,this.transformPagePoint),{point:h}=f,{timestamp:m}=xn;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,t0(f,this.history)),this.removeListeners=_f(qc(this.contextWindow,"pointermove",this.handlePointerMove),qc(this.contextWindow,"pointerup",this.handlePointerUp),qc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),vs(this.updatePoint)}}function e0(e,t){return t?{point:t(e.point)}:e}function NN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t0({point:e},t){return{point:e,delta:NN(e,F5(t)),offset:NN(e,fF(t)),velocity:dF(t,.1)}}function fF(e){return e[0]}function F5(e){return e[e.length-1]}function dF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=F5(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ea(t)));)n--;if(!r)return{x:0,y:0};const o=Pr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function hF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?yt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?yt(n,e,r.max):Math.min(e,n)),e}function TN(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mF(e,{top:t,left:n,bottom:r,right:i}){return{x:TN(e.x,n,i),y:TN(e.y,t,r)}}function CN(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pF(e,t){return{x:CN(e.x,t.x),y:CN(e.y,t.y)}}function gF(e,t){let n=.5;const r=Dn(e),i=Dn(t);return i>r?n=Zl(t.min,t.max-r,e.min):r>i&&(n=Zl(e.min,e.max-i,t.min)),ii(0,1,n)}function vF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Db=.35;function yF(e=Db){return e===!1?e=0:e===!0&&(e=Db),{x:kN(e,"left","right"),y:kN(e,"top","bottom")}}function kN(e,t,n){return{min:MN(e,t),max:MN(e,n)}}function MN(e,t){return typeof e=="number"?e:e[t]||0}const xF=new WeakMap;class bF{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zf(g).point)},l=(g,y)=>{const{drag:b,dragPropagation:S,onDragStart:j}=this.getProps();if(b&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MV(b),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tr(O=>{let T=this.getAxisMotionValue(O).get()||0;if(ga.test(T)){const{projection:N}=this.visualElement;if(N&&N.layout){const C=N.layout.layoutBox[O];C&&(T=Dn(C)*(parseFloat(T)/100))}}this.originPoint[O]=T}),j&&xt.postRender(()=>j(g,y)),Pb(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},c=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:b,dragDirectionLock:S,onDirectionLock:j,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:O}=y;if(S&&this.currentDirection===null){this.currentDirection=wF(O),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",y.point,O),this.updateAxis("y",y.point,O),this.visualElement.render(),A&&A(g,y)},f=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Tr(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new V5(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:q5(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&xt.postRender(()=>c(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Th(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=hF(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&kl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=mF(r.layoutBox,t):this.constraints=!1,this.elastic=yF(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Tr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=vF(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!kl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=E7(r,i.root,this.visualElement.getTransformPagePoint());let l=pF(i.layout.layoutBox,o);if(n){const c=n(j7(l));this.hasMutatedConstraints=!!c,c&&(l=O5(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Tr(m=>{if(!Th(m,n,this.currentDirection))return;let g=f&&f[m]||{};l&&(g={min:0,max:0});const y=i?200:1e6,b=i?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:y,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Pb(this.visualElement,t),r.start(_w(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tr(n=>{const{drag:r}=this.getProps();if(!Th(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-yt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!kl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();i[l]=gF({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tr(l=>{if(!Th(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(yt(f,h,i[l]))})}addListeners(){if(!this.visualElement.current)return;xF.set(this.visualElement,this);const t=this.visualElement.current,n=qc(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();kl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),xt.read(r);const l=sf(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Tr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=Db,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Th(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class SF extends As{constructor(t){super(t),this.removeGroupControls=Dr,this.removeListeners=Dr,this.controls=new bF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dr}unmount(){this.removeGroupControls(),this.removeListeners()}}const PN=e=>(t,n)=>{e&&xt.postRender(()=>e(t,n))};class jF extends As{constructor(){super(...arguments),this.removePointerDownListener=Dr}onPointerDown(t){this.session=new V5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:q5(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:PN(t),onStart:PN(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&xt.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=qc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let n0=!1;class AF extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),n0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,n0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||xt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ww.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;n0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function H5(e){const[t,n]=f5(),r=w.useContext(ew);return p.jsx(AF,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(j5),isPresent:t,safeToRemove:n})}function K5(e,t,n){const r=ln(e)?e:Jl(e);return r.start(_w("",r,t,n)),r.animation}const OF=(e,t)=>e.depth-t.depth;class EF{constructor(){this.children=[],this.isDirty=!1}add(t){rw(this.children,t),this.isDirty=!0}remove(t){Ap(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OF),this.isDirty=!1,this.children.forEach(t)}}function NF(e,t){const n=Wn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(vs(r),e(o-t))};return xt.setup(r,!0),()=>vs(r)}const Y5=["TopLeft","TopRight","BottomLeft","BottomRight"],TF=Y5.length,_N=e=>typeof e=="string"?parseFloat(e):e,DN=e=>typeof e=="number"||ke.test(e);function CF(e,t,n,r,i,o){i?(e.opacity=yt(0,n.opacity??1,kF(r)),e.opacityExit=yt(t.opacity??1,0,MF(r))):o&&(e.opacity=yt(t.opacity??1,n.opacity??1,r));for(let l=0;l<TF;l++){const c=`border${Y5[l]}Radius`;let f=RN(t,c),h=RN(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||DN(f)===DN(h)?(e[c]=Math.max(yt(_N(f),_N(h),r),0),(ga.test(h)||ga.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=yt(t.rotate||0,n.rotate||0,r))}function RN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kF=G5(0,.5,OD),MF=G5(.5,.95,Dr);function G5(e,t,n){return r=>r<e?0:r>t?1:n(Zl(e,t,r))}function zN(e,t){e.min=t.min,e.max=t.max}function Hr(e,t){zN(e.x,t.x),zN(e.y,t.y)}function LN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function IN(e,t,n,r,i){return e-=t,e=ym(e,1/n,r),i!==void 0&&(e=ym(e,1/i,r)),e}function PF(e,t=0,n=1,r=.5,i,o=e,l=e){if(ga.test(t)&&(t=parseFloat(t),t=yt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=yt(o.min,o.max,r);e===o&&(c-=t),e.min=IN(e.min,t,n,c,i),e.max=IN(e.max,t,n,c,i)}function BN(e,t,[n,r,i],o,l){PF(e,t[n],t[r],t[i],t.scale,o,l)}const _F=["x","scaleX","originX"],DF=["y","scaleY","originY"];function UN(e,t,n,r){BN(e.x,t,_F,n?n.x:void 0,r?r.x:void 0),BN(e.y,t,DF,n?n.y:void 0,r?r.y:void 0)}function $N(e){return e.translate===0&&e.scale===1}function W5(e){return $N(e.x)&&$N(e.y)}function qN(e,t){return e.min===t.min&&e.max===t.max}function RF(e,t){return qN(e.x,t.x)&&qN(e.y,t.y)}function VN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Q5(e,t){return VN(e.x,t.x)&&VN(e.y,t.y)}function FN(e){return Dn(e.x)/Dn(e.y)}function HN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zF{constructor(){this.members=[]}add(t){rw(this.members,t),t.scheduleRender()}remove(t){if(Ap(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function LF(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:y,skewX:b,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),b&&(r+=`skewX(${b}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const r0=["","X","Y","Z"],IF=1e3;let BF=0;function a0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function X5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=z5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&X5(r)}function Z5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=BF++,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,this.nodes.forEach(qF),this.nodes.forEach(KF),this.nodes.forEach(YF),this.nodes.forEach(VF)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new EF)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new sw),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=jw(l)&&!c5(l),this.instance=l;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,g=0;const y=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{g=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==g&&(g=b,this.root.updateBlockedByResize=!0,m&&m(),m=NF(y,250),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(GN)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||ZF,{onLayoutAnimationStart:j,onLayoutAnimationComplete:A}=h.getProps(),O=!this.targetLayout||!Q5(this.targetLayout,b),T=!g&&y;if(this.options.layoutRoot||this.resumeFrom||T||g&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...xw(S,"layout"),onPlay:j,onComplete:A};(h.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,T)}else g||GN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vs(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(GF),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&X5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(YN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(HF),this.nodes.forEach(UF),this.nodes.forEach($F)):this.nodes.forEach(YN),this.clearAllSnapshots();const c=Wn.now();xn.delta=ii(0,1e3/60,c-xn.timestamp),xn.timestamp=c,xn.isProcessing=!0,Ky.update.process(xn),Ky.preRender.process(xn),Ky.render.process(xn),xn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ww.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(FF),this.sharedNodes.forEach(WF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dn(this.snapshot.measuredBox.x)&&!Dn(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!W5(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||Ys(this.latestValues)||m)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),JF(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return $t();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(eH))){const{scroll:m}=this.root;m&&(Ml(c.x,m.offset.x),Ml(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=$t();if(Hr(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:y}=m;m!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&Hr(c,l),Ml(c.x,g.offset.x),Ml(c.y,g.offset.y))}return c}applyTransform(l,c=!1){const f=$t();Hr(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Pl(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ys(m.latestValues)&&Pl(f,m.latestValues)}return Ys(this.latestValues)&&Pl(f,this.latestValues),f}removeTransform(l){const c=$t();Hr(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ys(h.latestValues))continue;Tb(h.latestValues)&&h.updateSnapshot();const m=$t(),g=h.measurePageBox();Hr(m,g),UN(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ys(this.latestValues)&&UN(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}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!==xn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var b;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!this.layout||!(m||g))return;this.resolvedRelativeTargetAt=xn.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Hr(this.target,this.layout.layoutBox),N5(this.target,this.targetDelta)):Hr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tb(this.parent.latestValues)||E5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),xm(this.relativeTargetOrigin,c,f),Hr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===xn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Hr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;O7(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=$t());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(LN(this.prevProjectionDelta.x,this.projectionDelta.x),LN(this.prevProjectionDelta.y,this.projectionDelta.y)),Vc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!HN(this.projectionDelta.x,this.prevProjectionDelta.x)||!HN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_l(),this.projectionDelta=_l(),this.projectionDeltaWithTransform=_l()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},g=_l();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=$t(),b=f?f.source:void 0,S=this.layout?this.layout.source:void 0,j=b!==S,A=this.getStack(),O=!A||A.members.length<=1,T=!!(j&&!O&&this.options.crossfade===!0&&!this.path.some(XF));this.animationProgress=0;let N;this.mixTargetDelta=C=>{const M=C/1e3;WN(g.x,l.x,M),WN(g.y,l.y,M),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xm(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QF(this.relativeTarget,this.relativeTargetOrigin,y,M),N&&RF(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=$t()),Hr(N,this.relativeTarget)),j&&(this.animationValues=m,CF(m,h,this.latestValues,M,T,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(vs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{nm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Jl(0)),this.currentAnimation=K5(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IF),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=l;if(!(!c||!f||!h)){if(this!==l&&this.layout&&h&&J5(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||$t();const g=Dn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+g;const y=Dn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+y}Hr(c,f),Pl(c,m),Vc(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new zF),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&a0("z",l,h,this.animationValues);for(let m=0;m<r0.length;m++)a0(`rotate${r0[m]}`,l,h,this.animationValues),a0(`skew${r0[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=tm(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=tm(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ys(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=LF(this.projectionDeltaWithTransform,this.treeScale,m);f&&(g=f(m,g)),l.transform=g;const{x:y,y:b}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,h.animationValues?l.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in Nb){if(m[S]===void 0)continue;const{correct:j,applyTo:A,isCSSVariable:O}=Nb[S],T=g==="none"?m[S]:j(m[S],h);if(A){const N=A.length;for(let C=0;C<N;C++)l[A[C]]=T}else O?this.options.visualElement.renderState.vars[S]=T:l[S]=T}this.options.layoutId&&(l.pointerEvents=h===this?tm(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(KN),this.root.sharedNodes.clear()}}}function UF(e){e.updateLayout()}function $F(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,l=t.source!==e.layout.source;o==="size"?Tr(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],b=Dn(y);y.min=r[g].min,y.max=y.min+b}):J5(o,t.layoutBox,r)&&Tr(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],b=Dn(r[g]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=_l();Vc(c,r,t.layoutBox);const f=_l();l?Vc(f,e.applyTransform(i,!0),t.measuredBox):Vc(f,r,t.layoutBox);const h=!W5(c);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:b}=g;if(y&&b){const S=$t();xm(S,t.layoutBox,y.layoutBox);const j=$t();xm(j,r,b.layoutBox),Q5(S,j)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=S,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qF(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function FF(e){e.clearSnapshot()}function KN(e){e.clearMeasurements()}function YN(e){e.isLayoutDirty=!1}function HF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function GN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KF(e){e.resolveTargetDelta()}function YF(e){e.calcProjection()}function GF(e){e.resetSkewAndRotation()}function WF(e){e.removeLeadSnapshot()}function WN(e,t,n){e.translate=yt(t.translate,0,n),e.scale=yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function QN(e,t,n,r){e.min=yt(t.min,n.min,r),e.max=yt(t.max,n.max,r)}function QF(e,t,n,r){QN(e.x,t.x,n.x,r),QN(e.y,t.y,n.y,r)}function XF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZF={duration:.45,ease:[.4,0,.1,1]},XN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ZN=XN("applewebkit/")&&!XN("chrome/")?Math.round:Dr;function JN(e){e.min=ZN(e.min),e.max=ZN(e.max)}function JF(e){JN(e.x),JN(e.y)}function J5(e,t,n){return e==="position"||e==="preserve-aspect"&&!lF(FN(t),FN(n),.2)}function eH(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tH=Z5({attachResizeListener:(e,t)=>sf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i0={current:void 0},e3=Z5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i0.current){const e=new tH({});e.mount(window),e.setOptions({layoutScroll:!0}),i0.current=e}return i0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nH={pan:{Feature:jF},drag:{Feature:SF,ProjectionNode:e3,MeasureLayout:H5}};function eT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&xt.postRender(()=>o(t,zf(t)))}class rH extends As{mount(){const{current:t}=this.node;t&&(this.unmount=PV(t,(n,r)=>(eT(this.node,r,"Start"),i=>eT(this.node,i,"End"))))}unmount(){}}class aH extends As{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_f(sf(this.node.current,"focus",()=>this.onFocus()),sf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&xt.postRender(()=>o(t,zf(t)))}class iH extends As{mount(){const{current:t}=this.node;t&&(this.unmount=zV(t,(n,r)=>(tT(this.node,r,"Start"),(i,{success:o})=>tT(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Rb=new WeakMap,s0=new WeakMap,sH=e=>{const t=Rb.get(e.target);t&&t(e)},oH=e=>{e.forEach(sH)};function lH({root:e,...t}){const n=e||document;s0.has(n)||s0.set(n,{});const r=s0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oH,{root:e,...t})),r[i]}function uH(e,t,n){const r=lH(t);return Rb.set(e,n),r.observe(e),()=>{Rb.delete(e),r.unobserve(e)}}const cH={some:0,all:1};class fH extends As{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:cH[i]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),y=h?m:g;y&&y(f)};return uH(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(dH(t,n))&&this.startObserver()}unmount(){}}function dH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const hH={inView:{Feature:fH},tap:{Feature:iH},focus:{Feature:aH},hover:{Feature:rH}},mH={layout:{ProjectionNode:e3,MeasureLayout:H5}},pH={...nF,...hH,...nH,...mH},lt=S7(pH,M7);function Rw(e){return typeof e=="object"&&!Array.isArray(e)}function t3(e,t,n,r){return typeof e=="string"&&Rw(t)?a5(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function gH(e,t,n){return e*(t+1)}function nT(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function vH(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];i.at>t&&i.at<n&&(Ap(e,i),r--)}}function yH(e,t,n,r,i,o){vH(e,i,o);for(let l=0;l<t.length;l++)e.push({value:t[l],at:yt(i,o,r[l]),easing:CD(n,l)})}function xH(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function bH(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const wH="easeInOut";function SH(e,{defaultTransition:t={},...n}={},r,i){const o=t.duration||.3,l=new Map,c=new Map,f={},h=new Map;let m=0,g=0,y=0;for(let b=0;b<e.length;b++){const S=e[b];if(typeof S=="string"){h.set(S,g);continue}else if(!Array.isArray(S)){h.set(S.name,nT(g,S.at,m,h));continue}let[j,A,O={}]=S;O.at!==void 0&&(g=nT(g,O.at,m,h));let T=0;const N=(C,M,_,k=0,D=0)=>{const B=jH(C),{delay:K=0,times:$=HD(B),type:Z="keyframes",repeat:le,repeatType:de,repeatDelay:me=0,...q}=M;let{ease:W=t.ease||"easeOut",duration:Y}=M;const oe=typeof K=="function"?K(k,D):K,ne=B.length,R=yw(Z)?Z:i==null?void 0:i[Z||"keyframes"];if(ne<=2&&R){let ve=100;if(ne===2&&EH(B)){const Qe=B[1]-B[0];ve=Math.abs(Qe)}const Oe={...q};Y!==void 0&&(Oe.duration=ea(Y));const fe=qD(Oe,ve,R);W=fe.ease,Y=fe.duration}Y??(Y=o);const F=g+oe;$.length===1&&$[0]===0&&($[1]=1);const ae=$.length-B.length;if(ae>0&&FD($,ae),B.length===1&&B.unshift(null),le){Y=gH(Y,le);const ve=[...B],Oe=[...$];W=Array.isArray(W)?[...W]:[W];const fe=[...W];for(let Qe=0;Qe<le;Qe++){B.push(...ve);for(let J=0;J<ve.length;J++)$.push(Oe[J]+(Qe+1)),W.push(J===0?"linear":CD(fe,J-1))}xH($,le)}const se=F+Y;yH(_,B,W,$,F,se),T=Math.max(oe+Y,T),y=Math.max(se,y)};if(ln(j)){const C=rT(j,c);N(A,O,aT("default",C))}else{const C=t3(j,A,r,f),M=C.length;for(let _=0;_<M;_++){A=A,O=O;const k=C[_],D=rT(k,c);for(const B in A)N(A[B],AH(O,B),aT(B,D),_,M)}}m=g,g+=T}return c.forEach((b,S)=>{for(const j in b){const A=b[j];A.sort(bH);const O=[],T=[],N=[];for(let M=0;M<A.length;M++){const{at:_,value:k,easing:D}=A[M];O.push(k),T.push(Zl(0,y,_)),N.push(D||"easeOut")}T[0]!==0&&(T.unshift(0),O.unshift(O[0]),N.unshift(wH)),T[T.length-1]!==1&&(T.push(1),O.push(null)),l.has(S)||l.set(S,{keyframes:{},transition:{}});const C=l.get(S);C.keyframes[j]=O,C.transition[j]={...t,duration:y,ease:N,times:T,...n}}}),l}function rT(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function aT(e,t){return t[e]||(t[e]=[]),t[e]}function jH(e){return Array.isArray(e)?e:[e]}function AH(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const OH=e=>typeof e=="number",EH=e=>e.every(OH);function NH(e,t){return e in t}class TH extends k5{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(NH(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return $t()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function CH(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=jw(e)&&!c5(e)?new R5(t):new _5(t);n.mount(e),af.set(e,n)}function kH(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new TH(t);n.mount(e),af.set(e,n)}function MH(e,t){return ln(e)||typeof e=="number"||typeof e=="string"&&!Rw(t)}function n3(e,t,n,r){const i=[];if(MH(e,t))i.push(K5(e,Rw(t)&&t.default||t,n&&(n.default||n)));else{const o=t3(e,t,r),l=o.length;for(let c=0;c<l;c++){const f=o[c],h=f instanceof Element?CH:kH;af.has(f)||h(f);const m=af.get(f),g={...n};"delay"in g&&typeof g.delay=="function"&&(g.delay=g.delay(c,l)),i.push(...Dw(m,{...t,transition:g},{}))}}return i}function PH(e,t,n){const r=[];return SH(e,t,n,{spring:nf}).forEach(({keyframes:o,transition:l},c)=>{r.push(...n3(c,o,l))}),r}function _H(e){return Array.isArray(e)&&e.some(Array.isArray)}function DH(e){function t(n,r,i){let o=[],l;if(_H(n))o=PH(n,r,e);else{const{onComplete:f,...h}=i||{};typeof f=="function"&&(l=f),o=n3(n,r,h,e)}const c=new gV(o);return l&&c.finished.then(l),c}return t}const RH=DH();function r3(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=r3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ze(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r3(e))&&(r&&(r+=" "),r+=t);return r}const zH=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},LH=(e,t)=>({classGroupId:e,validator:t}),a3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bm="-",iT=[],IH="arbitrary..",BH=e=>{const t=$H(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return UH(l);const c=l.split(bm),f=c[0]===""&&c.length>1?1:0;return i3(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],h=n[l];return f?h?zH(h,f):f:h||iT}return n[l]||iT}}},i3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const h=i3(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(bm):e.slice(t).join(bm),f=l.length;for(let h=0;h<f;h++){const m=l[h];if(m.validator(c))return m.classGroupId}},UH=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?IH+r:void 0})(),$H=e=>{const{theme:t,classGroups:n}=e;return qH(n,t)},qH=(e,t)=>{const n=a3();for(const r in e){const i=e[r];zw(i,n,r,t)}return n},zw=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const l=e[o];VH(l,t,n,r)}},VH=(e,t,n,r)=>{if(typeof e=="string"){FH(e,t,n);return}if(typeof e=="function"){HH(e,t,n,r);return}KH(e,t,n,r)},FH=(e,t,n)=>{const r=e===""?t:s3(t,e);r.classGroupId=n},HH=(e,t,n,r)=>{if(YH(e)){zw(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(LH(n,e))},KH=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let l=0;l<o;l++){const[c,f]=i[l];zw(f,s3(t,c),n,r)}},s3=(e,t)=>{let n=e;const r=t.split(bm),i=r.length;for(let o=0;o<i;o++){const l=r[o];let c=n.nextPart.get(l);c||(c=a3(),n.nextPart.set(l,c)),n=c}return n},YH=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,GH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},zb="!",sT=":",WH=[],oT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),QH=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let l=0,c=0,f=0,h;const m=i.length;for(let j=0;j<m;j++){const A=i[j];if(l===0&&c===0){if(A===sT){o.push(i.slice(f,j)),f=j+1;continue}if(A==="/"){h=j;continue}}A==="["?l++:A==="]"?l--:A==="("?c++:A===")"&&c--}const g=o.length===0?i:i.slice(f);let y=g,b=!1;g.endsWith(zb)?(y=g.slice(0,-1),b=!0):g.startsWith(zb)&&(y=g.slice(1),b=!0);const S=h&&h>f?h-f:void 0;return oT(o,b,y,S)};if(t){const i=t+sT,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):oT(WH,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},XH=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],c=l[0]==="[",f=t.has(l);c||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},ZH=e=>({cache:GH(e.cacheSize),parseClassName:QH(e),sortModifiers:XH(e),...BH(e)}),JH=/\s+/,eK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,l=[],c=e.trim().split(JH);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:y,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:j}=n(m);if(g){f=m+(f.length>0?" "+f:f);continue}let A=!!j,O=r(A?S.substring(0,j):S);if(!O){if(!A){f=m+(f.length>0?" "+f:f);continue}if(O=r(S),!O){f=m+(f.length>0?" "+f:f);continue}A=!1}const T=y.length===0?"":y.length===1?y[0]:o(y).join(":"),N=b?T+zb:T,C=N+O;if(l.indexOf(C)>-1)continue;l.push(C);const M=i(O,A);for(let _=0;_<M.length;++_){const k=M[_];l.push(N+k)}f=m+(f.length>0?" "+f:f)}return f},tK=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=o3(n))&&(i&&(i+=" "),i+=r);return i},o3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=o3(e[r]))&&(n&&(n+=" "),n+=t);return n},nK=(e,...t)=>{let n,r,i,o;const l=f=>{const h=t.reduce((m,g)=>g(m),e());return n=ZH(h),r=n.cache.get,i=n.cache.set,o=c,c(f)},c=f=>{const h=r(f);if(h)return h;const m=eK(f,n);return i(f,m),m};return o=l,(...f)=>o(tK(...f))},rK=[],Gt=e=>{const t=n=>n[e]||rK;return t.isThemeGetter=!0,t},l3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,u3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aK=/^\d+\/\d+$/,iK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sK=/\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$/,oK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sl=e=>aK.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),Xi=e=>!!e&&Number.isInteger(Number(e)),o0=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),qa=e=>iK.test(e),cK=()=>!0,fK=e=>sK.test(e)&&!oK.test(e),c3=()=>!1,dK=e=>lK.test(e),hK=e=>uK.test(e),mK=e=>!ye(e)&&!xe(e),pK=e=>vu(e,h3,c3),ye=e=>l3.test(e),Ks=e=>vu(e,m3,fK),l0=e=>vu(e,bK,Ie),lT=e=>vu(e,f3,c3),gK=e=>vu(e,d3,hK),Ch=e=>vu(e,p3,dK),xe=e=>u3.test(e),jc=e=>yu(e,m3),vK=e=>yu(e,wK),uT=e=>yu(e,f3),yK=e=>yu(e,h3),xK=e=>yu(e,d3),kh=e=>yu(e,p3,!0),vu=(e,t,n)=>{const r=l3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yu=(e,t,n=!1)=>{const r=u3.exec(e);return r?r[1]?t(r[1]):n:!1},f3=e=>e==="position"||e==="percentage",d3=e=>e==="image"||e==="url",h3=e=>e==="length"||e==="size"||e==="bg-size",m3=e=>e==="length",bK=e=>e==="number",wK=e=>e==="family-name",p3=e=>e==="shadow",SK=()=>{const e=Gt("color"),t=Gt("font"),n=Gt("text"),r=Gt("font-weight"),i=Gt("tracking"),o=Gt("leading"),l=Gt("breakpoint"),c=Gt("container"),f=Gt("spacing"),h=Gt("radius"),m=Gt("shadow"),g=Gt("inset-shadow"),y=Gt("text-shadow"),b=Gt("drop-shadow"),S=Gt("blur"),j=Gt("perspective"),A=Gt("aspect"),O=Gt("ease"),T=Gt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...C(),xe,ye],_=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[xe,ye,f],B=()=>[Sl,"full","auto",...D()],K=()=>[Xi,"none","subgrid",xe,ye],$=()=>["auto",{span:["full",Xi,xe,ye]},Xi,xe,ye],Z=()=>[Xi,"auto",xe,ye],le=()=>["auto","min","max","fr",xe,ye],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...D()],W=()=>[Sl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],Y=()=>[e,xe,ye],oe=()=>[...C(),uT,lT,{position:[xe,ye]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",yK,pK,{size:[xe,ye]}],F=()=>[o0,jc,Ks],ae=()=>["","none","full",h,xe,ye],se=()=>["",Ie,jc,Ks],ve=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ie,o0,uT,lT],Qe=()=>["","none",S,xe,ye],J=()=>["none",Ie,xe,ye],Te=()=>["none",Ie,xe,ye],Pe=()=>[Ie,xe,ye],ie=()=>[Sl,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qa],breakpoint:[qa],color:[cK],container:[qa],"drop-shadow":[qa],ease:["in","out","in-out"],font:[mK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qa],shadow:[qa],spacing:["px",Ie],text:[qa],"text-shadow":[qa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sl,ye,xe,A]}],container:["container"],columns:[{columns:[Ie,ye,xe,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:M()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Xi,"auto",xe,ye]}],basis:[{basis:[Sl,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Sl,"auto","initial","none",ye]}],grow:[{grow:["",Ie,xe,ye]}],shrink:[{shrink:["",Ie,xe,ye]}],order:[{order:[Xi,"first","last","none",xe,ye]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,jc,Ks]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,l0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o0,ye]}],"font-family":[{font:[vK,ye,t]}],"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,xe,ye]}],"line-clamp":[{"line-clamp":[Ie,"none",xe,l0]}],leading:[{leading:[o,...D()]}],"list-image":[{"list-image":["none",xe,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",xe,Ks]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ie,"auto",xe,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ye]}],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",xe,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xi,xe,ye],radial:["",xe,ye],conic:[Xi,xe,ye]},xK,gK]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,xe,ye]}],"outline-w":[{outline:["",Ie,jc,Ks]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",m,kh,Ch]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",g,kh,Ch]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ie,Ks]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",y,kh,Ch]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ie,xe,ye]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ye]}],filter:[{filter:["","none",xe,ye]}],blur:[{blur:Qe()}],brightness:[{brightness:[Ie,xe,ye]}],contrast:[{contrast:[Ie,xe,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,kh,Ch]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ie,xe,ye]}],"hue-rotate":[{"hue-rotate":[Ie,xe,ye]}],invert:[{invert:["",Ie,xe,ye]}],saturate:[{saturate:[Ie,xe,ye]}],sepia:[{sepia:["",Ie,xe,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ye]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,xe,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,xe,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,xe,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,xe,ye]}],"backdrop-invert":[{"backdrop-invert":["",Ie,xe,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,xe,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,xe,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,xe,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",xe,ye]}],ease:[{ease:["linear","initial",O,xe,ye]}],delay:[{delay:[Ie,xe,ye]}],animate:[{animate:["none",T,xe,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,xe,ye]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[xe,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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",xe,ye]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",xe,ye]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ie,jc,Ks,l0]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},g3=nK(SK);function Ce(...e){return g3(Ze(e))}function jK(){const[e,t]=w.useState(!1),{notifications:n,unreadCount:r,markAsRead:i,markAllAsRead:o,clearAll:l,removeNotification:c}=J1(),f=w.useRef(null);w.useEffect(()=>{const g=y=>{f.current&&!f.current.contains(y.target)&&t(!1)};return e&&document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[e]);const h=g=>{switch(g){case"error":return p.jsx(Zr,{className:"text-red-500",size:16});case"warning":return p.jsx(f9,{className:"text-amber-500",size:16});case"success":return p.jsx(R_,{className:"text-green-500",size:16});default:return p.jsx(Bc,{className:"text-blue-500",size:16})}},m=g=>{const y=Date.now()-g,b=Math.floor(y/6e4),S=Math.floor(y/36e5);return b<1?"Just now":b<60?`${b}m ago`:S<24?`${S}h ago`:new Date(g).toLocaleDateString()};return p.jsxs("div",{className:"relative",ref:f,children:[p.jsxs("button",{type:"button",onClick:()=>t(!e),className:"text-muted-foreground hover:text-foreground transition-all relative p-2 hover:bg-muted rounded-xl",children:[p.jsx(hm,{size:20}),r>0&&p.jsx(lt.span,{initial:{scale:0},animate:{scale:1},className:"absolute top-1.5 right-1.5 min-w-[16px] h-4 bg-red-500 rounded-full border-2 border-background text-[9px] font-black text-white flex items-center justify-center px-0.5",children:r>9?"9+":r})]}),p.jsx(gi,{children:e&&p.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-96 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/20 flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold",children:"Notifications"}),p.jsxs("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest",children:[r," unread"]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[r>0&&p.jsx("button",{type:"button",onClick:o,className:"p-1.5 hover:bg-muted rounded-lg text-muted-foreground hover:text-foreground transition-colors",title:"Mark all as read",children:p.jsx(oU,{size:16})}),n.length>0&&p.jsx("button",{type:"button",onClick:l,className:"p-1.5 hover:bg-red-500/10 rounded-lg text-muted-foreground hover:text-red-500 transition-colors",title:"Clear all",children:p.jsx(jo,{size:16})})]})]}),p.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:n.length===0?p.jsxs("div",{className:"p-8 text-center",children:[p.jsx(hm,{className:"mx-auto mb-3 text-muted-foreground/20",size:32}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"No notifications"})]}):p.jsx("div",{className:"divide-y divide-border/50",children:n.map(g=>p.jsxs(lt.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:Ce("p-4 hover:bg-muted/30 transition-colors cursor-pointer group relative",!g.read&&"bg-primary/5"),onClick:()=>i(g.id),children:[p.jsxs("div",{className:"flex gap-3",children:[p.jsx("div",{className:"shrink-0 mt-0.5",children:h(g.type)}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-start justify-between gap-2",children:[p.jsx("p",{className:Ce("text-sm font-semibold truncate",!g.read&&"text-foreground",g.read&&"text-muted-foreground"),children:g.title}),p.jsx("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:m(g.timestamp)})]}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:g.message}),g.source&&p.jsx("span",{className:"inline-block mt-1 text-[10px] font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:g.source})]})]}),p.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),c(g.id)},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 opacity-0 group-hover:opacity-100 hover:bg-red-500/10 rounded-lg text-muted-foreground hover:text-red-500 transition-all",children:p.jsx(xp,{size:14})}),!g.read&&p.jsx("div",{className:"absolute left-1 top-1/2 -translate-y-1/2 w-1.5 h-1.5 bg-primary rounded-full"})]},g.id))})})]})})]})}function AK(){const{notifications:e,removeNotification:t}=J1(),[n,r]=w.useState(new Set);w.useEffect(()=>{const o=Date.now();e.forEach(l=>{!l.read&&o-l.timestamp<5e3&&!n.has(l.id)&&(r(c=>new Set(c).add(l.id)),setTimeout(()=>{r(c=>{const f=new Set(c);return f.delete(l.id),f})},5e3))})},[e,n]);const i=e.filter(o=>n.has(o.id));return p.jsx("div",{className:"fixed bottom-8 right-8 z-[2000] flex flex-col gap-3 w-full max-w-sm pointer-events-none",children:p.jsx(gi,{mode:"popLayout",children:i.map(o=>p.jsxs(lt.div,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,scale:.8,x:20},className:Ce("pointer-events-auto group relative flex items-start gap-4 p-4 rounded-2xl border shadow-2xl backdrop-blur-xl transition-all",o.type==="success"&&"bg-green-500/10 border-green-500/20 text-green-500",o.type==="error"&&"bg-red-500/10 border-red-500/20 text-red-500",o.type==="warning"&&"bg-yellow-500/10 border-yellow-500/20 text-yellow-500",o.type==="info"&&"bg-primary/10 border-primary/20 text-primary"),children:[p.jsxs("div",{className:"flex-shrink-0 mt-0.5",children:[o.type==="success"&&p.jsx(F1,{size:18}),o.type==="error"&&p.jsx(Zr,{size:18}),o.type==="warning"&&p.jsx(Zr,{size:18}),o.type==="info"&&p.jsx(Bc,{size:18})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("h4",{className:"text-sm font-black tracking-tight leading-none mb-1",children:o.title}),p.jsx("p",{className:"text-xs font-medium opacity-80 leading-relaxed break-words",children:o.message}),o.source&&p.jsx("span",{className:"inline-block mt-2 px-1.5 py-0.5 rounded bg-white/10 text-[9px] font-black uppercase tracking-widest",children:o.source})]}),p.jsx("button",{type:"button",onClick:()=>t(o.id),className:"mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity p-1 hover:bg-white/10 rounded-lg",children:p.jsx(xp,{size:14})}),p.jsx("div",{className:"absolute left-0 bottom-0 h-1 bg-current opacity-20 animate-toast-progress origin-left"})]},o.id))})})}function OK(){var m;const[e,t]=w.useState(!1),{isAuthEnabled:n,logout:r}=Sp(),i=G1(),o=w.useRef(null),{data:l}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(g=>g.json()),refetchInterval:3e4});w.useEffect(()=>{const g=y=>{o.current&&!o.current.contains(y.target)&&t(!1)};return e&&document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[e]);const c=async()=>{await r(),t(!1)},f=g=>{i(g),t(!1)},h=g=>{const y=Math.floor(g/3600),b=Math.floor(g%3600/60);return y>0?`${y}h ${b}m`:`${b}m`};return p.jsxs("div",{className:"relative",ref:o,children:[p.jsxs("button",{type:"button",className:"flex items-center gap-3 cursor-pointer group outline-none",onClick:()=>t(!e),children:[p.jsxs("div",{className:"text-right hidden sm:block",children:[p.jsx("p",{className:"text-sm font-black tracking-tight group-hover:text-primary transition-colors",children:"Admin User"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest",children:"Architect"})]}),p.jsx("div",{className:"w-10 h-10 rounded-2xl bg-gradient-to-br from-primary to-indigo-600 flex items-center justify-center text-primary-foreground font-black shadow-lg shadow-primary/20 group-hover:scale-105 transition-transform",children:p.jsx(RE,{size:20})})]}),p.jsx(gi,{children:e&&p.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-72 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[p.jsx("div",{className:"p-5 bg-gradient-to-br from-primary/10 to-indigo-500/10 border-b",children:p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-primary to-indigo-600 flex items-center justify-center text-primary-foreground shadow-lg",children:p.jsx(RE,{size:28})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold text-lg",children:"Admin User"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"System Administrator"}),p.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[p.jsx($_,{size:10,className:"text-green-500"}),p.jsx("span",{className:"text-[9px] font-bold text-green-500 uppercase tracking-widest",children:"Full Access"})]})]})]})}),p.jsxs("div",{className:"p-4 bg-muted/20 border-b",children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest mb-3",children:"System Status"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zn,{size:12,className:"text-green-500"}),p.jsx("span",{className:"text-[10px] font-bold",children:"Online"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Jr,{size:12,className:"text-muted-foreground"}),p.jsx("span",{className:"text-[10px] font-bold",children:l!=null&&l.uptime?h(l.uptime):"..."})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(yp,{size:12,className:"text-muted-foreground"}),p.jsx("span",{className:"text-[10px] font-bold",children:(l==null?void 0:l.node)||"..."})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"w-3 h-3 text-[10px] font-black",children:"🔥"}),p.jsx("span",{className:"text-[10px] font-bold",children:((m=l==null?void 0:l.memory)==null?void 0:m.rss)||"..."})]})]})]}),p.jsxs("div",{className:"p-2",children:[p.jsxs("button",{type:"button",onClick:()=>f("/settings"),className:"w-full flex items-center justify-between px-4 py-3 rounded-xl hover:bg-muted/50 transition-colors group",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(K1,{size:18,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),p.jsx("span",{className:"text-sm font-semibold",children:"Settings"})]}),p.jsx(vp,{size:16,className:"text-muted-foreground/50"})]}),n&&p.jsx("button",{type:"button",onClick:c,className:"w-full flex items-center justify-between px-4 py-3 rounded-xl hover:bg-red-500/10 transition-colors group",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(B_,{size:18,className:"text-red-500"}),p.jsx("span",{className:"text-sm font-semibold text-red-500",children:"Logout"})]})})]}),p.jsx("div",{className:"px-4 py-3 bg-muted/10 border-t",children:p.jsx("p",{className:"text-[9px] text-center text-muted-foreground/50",children:"Flux Console v0.1.0-alpha.1"})})]})})]})}function EK({className:e,collapsed:t,toggleCollapse:n}){const r=js(),i=[{icon:I_,label:"Overview",path:"/"},{icon:Zn,label:"Pulse",path:"/pulse"},{icon:Zc,label:"Queues",path:"/queues"},{icon:Jr,label:"Schedules",path:"/schedules"},{icon:ub,label:"Workers",path:"/workers"},{icon:K1,label:"Settings",path:"/settings"}];return p.jsxs("div",{className:Ce("flex-1 flex flex-col justify-between transition-all duration-300 ease-in-out relative group z-20 overflow-hidden",e),children:[p.jsx("nav",{className:"flex-1 px-4 py-6 space-y-2",children:i.map((o,l)=>{const c=r.pathname===o.path;return p.jsxs(cD,{to:o.path,className:Ce("w-full flex items-center gap-4 px-4 py-3 rounded-xl transition-all text-muted-foreground group/item relative overflow-hidden",c?"bg-primary text-primary-foreground shadow-lg shadow-primary/20 hover:scale-[1.02]":"hover:bg-muted font-medium hover:text-foreground active:scale-95"),children:[p.jsx(o.icon,{size:22,className:Ce("transition-all shrink-0",c?"scale-110":"group-hover/item:scale-110")}),p.jsx(lt.span,{initial:!1,animate:{opacity:t?0:1,display:t?"none":"block"},className:"font-semibold whitespace-nowrap tracking-tight",children:o.label}),c&&p.jsx(lt.div,{layoutId:"active-pill",className:"absolute left-0 w-1 h-6 bg-primary-foreground rounded-r-full"})]},l)})}),p.jsx("div",{className:"p-4 border-t border-border/50",children:p.jsx("button",{type:"button",onClick:n,className:"w-full flex items-center justify-center h-10 rounded-xl hover:bg-muted text-muted-foreground hover:text-foreground transition-all active:scale-90",children:t?p.jsx(vp,{size:20}):p.jsxs("div",{className:"flex items-center gap-2 px-2",children:[p.jsx(D_,{size:18})," ",p.jsx("span",{className:"text-xs font-black uppercase tracking-widest",children:"Collapse Sidebar"})]})})})]})}function NK({children:e}){var W,Y,oe;const t=G1(),n=mi(),{isAuthEnabled:r,logout:i}=Sp(),[o,l]=w.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"light"),[c,f]=w.useState(!1),[h,m]=w.useState(""),[g,y]=w.useState(0),[b,S]=w.useState(99.9),[j,A]=w.useState({}),[O,T]=w.useState(!0);w.useEffect(()=>{fetch("/api/system/status").then(ne=>ne.json()).then(A).catch(()=>{})},[]),w.useEffect(()=>{console.log("[Zenith] Establishing Global Event Stream...");const ne=new EventSource("/api/logs/stream");return ne.addEventListener("log",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-log-update",{detail:F}))}catch(F){console.error("SSE Log Error",F)}}),ne.addEventListener("stats",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-stats-update",{detail:F}))}catch(F){console.error("SSE Stats Error",F)}}),ne.addEventListener("pulse",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-pulse-update",{detail:F}))}catch(F){console.error("SSE Pulse Error",F)}}),ne.onerror=R=>{console.error("[Zenith] SSE Connection Error",R),ne.close()},()=>{console.log("[Zenith] Closing Global Event Stream"),ne.close()}},[]);const[N,C]=w.useState({queues:[]});w.useEffect(()=>{fetch("/api/queues").then(R=>R.json()).then(C).catch(()=>{});const ne=R=>{var ae;const F=R;(ae=F.detail)!=null&&ae.queues&&C({queues:F.detail.queues})};return window.addEventListener("flux-stats-update",ne),()=>window.removeEventListener("flux-stats-update",ne)},[]);const[M,_]=w.useState("");w.useEffect(()=>{const ne=setTimeout(()=>{h.length>=2?_(h):_("")},300);return()=>clearTimeout(ne)},[h]);const{data:k}=Nn({queryKey:["job-search",M],queryFn:async()=>{const[ne,R]=await Promise.all([fetch(`/api/search?q=${encodeURIComponent(M)}&limit=10`).then(F=>F.json()),fetch(`/api/archive/search?q=${encodeURIComponent(M)}&limit=10`).then(F=>F.json())]);return{results:ne.results||[],archiveResults:R.results||[]}},enabled:M.length>=2,staleTime:5e3});w.useEffect(()=>{const ne=window.document.documentElement;o==="dark"?ne.classList.add("dark"):ne.classList.remove("dark"),localStorage.setItem("theme",o)},[o]),w.useEffect(()=>{const ne=setInterval(()=>{S(R=>{const F=(Math.random()-.5)*.1;return Math.min(100,Math.max(98.5,R+F))})},3e3);return()=>clearInterval(ne)},[]);const D=()=>l(ne=>ne==="light"?"dark":"light"),B=async()=>{const ne=(N==null?void 0:N.queues)||[];for(const R of ne)R.failed>0&&await fetch(`/api/queues/${R.name}/retry-all-failed`,{method:"POST"});n.invalidateQueries({queryKey:["queues"]})},K=[{id:"nav-overview",title:"Go to Overview",description:"Navigate to system dashboard",icon:p.jsx(I_,{size:18}),category:"Navigation",action:()=>t("/")},{id:"nav-queues",title:"Go to Queues",description:"Manage processing queues",icon:p.jsx(Zc,{size:18}),category:"Navigation",action:()=>t("/queues")},{id:"nav-workers",title:"Go to Workers",description:"Monitor worker nodes",icon:p.jsx(ub,{size:18}),category:"Navigation",action:()=>t("/workers")},{id:"nav-metrics",title:"Go to Metrics",description:"View system analytics",icon:p.jsx(__,{size:18}),category:"Navigation",action:()=>t("/metrics")},{id:"nav-settings",title:"Go to Settings",description:"Configure console preferences",icon:p.jsx(K1,{size:18}),category:"Navigation",action:()=>t("/settings")},{id:"act-retry-all",title:"Retry All Failed Jobs",description:"Recover all critical failures across all queues",icon:p.jsx(Ja,{size:18}),category:"Action",action:B},{id:"sys-theme",title:`Switch to ${o==="dark"?"Light":"Dark"} Mode`,description:"Toggle system visual appearance",icon:o==="dark"?p.jsx(fb,{size:18}):p.jsx(cb,{size:18}),category:"System",action:D},...r?[{id:"sys-logout",title:"Logout",description:"Sign out from the console",icon:p.jsx(B_,{size:18}),category:"System",action:i}]:[]],$=((N==null?void 0:N.queues)||[]).map(ne=>({id:`queue-${ne.name}`,title:`Queue: ${ne.name}`,description:`${ne.waiting} waiting, ${ne.failed} failed`,icon:p.jsx(Zc,{size:18}),category:"Navigation",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:ne.name}))},100)}})),Z=[{id:"act-clear-logs",title:"Clear All Logs",description:"Flush temporary log buffer in UI",icon:p.jsx(jo,{size:18}),category:"Action",action:()=>{window.dispatchEvent(new CustomEvent("clear-logs"))}}],le=w.useMemo(()=>{const ne=[...(k==null?void 0:k.results)||[],...((k==null?void 0:k.archiveResults)||[]).map(R=>({...R,_archived:!0}))];return ne.length?ne.slice(0,15).map(R=>({id:`job-${R._queue}-${R.id}-${R._archived?"arch":"live"}`,title:`Job: ${R.id||"Unknown"}`,description:`${R._queue} • ${R.status||R._type}${R._archived?" • ARCHIVED":""} • ${R.name||"No name"}`,icon:R._archived?p.jsx(ub,{size:18}):p.jsx(tU,{size:18}),category:"Action",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:R._queue})),R._archived&&window.dispatchEvent(new CustomEvent("inspect-job",{detail:{queue:R._queue,job:R}}))},100)}})):[]},[k,t]),me=[...K,...Z,...$,...le].filter(ne=>ne.title.toLowerCase().includes(h.toLowerCase())||ne.description.toLowerCase().includes(h.toLowerCase()));w.useEffect(()=>{const ne=R=>{(R.metaKey||R.ctrlKey)&&R.key==="k"&&(R.preventDefault(),f(F=>!F)),R.key==="Escape"&&f(!1)};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[]),w.useEffect(()=>{const ne=document.getElementById(`command-item-${g}`);ne&&ne.scrollIntoView({block:"nearest",behavior:"smooth"})},[g]);const q=ne=>{ne.action(),f(!1),m("")};return p.jsxs("div",{className:"flex h-screen bg-background text-foreground overflow-hidden transition-colors duration-300",children:[p.jsxs(lt.aside,{initial:!1,animate:{width:O?260:80},className:"border-r border-border/40 bg-card/50 backdrop-blur-xl flex flex-col z-50 transition-all duration-300 ease-[0.22, 1, 0.36, 1]",children:[p.jsx("div",{className:"h-16 flex items-center px-6 border-b border-border/40 bg-card/80",children:p.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0 shadow-lg shadow-primary/20",children:p.jsx(V_,{className:"text-primary-foreground fill-current",size:18})}),p.jsxs(lt.div,{animate:{opacity:O?1:0},className:"flex flex-col min-w-[140px]",children:[p.jsx("span",{className:"font-extrabold text-lg tracking-tight leading-none bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60",children:"Zenith"}),p.jsx("span",{className:"text-[9px] font-bold text-muted-foreground uppercase tracking-[0.2em]",children:"Control Plane"})]})]})}),p.jsx(EK,{collapsed:!O,toggleCollapse:()=>T(!O)})]}),p.jsxs("main",{className:"flex-1 flex flex-col relative overflow-hidden scanline",children:[p.jsxs("header",{className:"h-16 border-b bg-card/50 backdrop-blur-md flex items-center justify-between px-8 sticky top-0 z-10 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-6 flex-1",children:[p.jsxs("button",{type:"button",className:"relative max-w-md w-full group cursor-pointer outline-none block text-left",onClick:()=>f(!0),children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground group-hover:text-primary transition-colors",size:18}),p.jsxs("div",{className:"w-full bg-muted/40 border border-border/50 rounded-xl py-2 pl-10 pr-4 text-sm text-muted-foreground/60 font-medium flex justify-between items-center transition-all hover:bg-muted/60 hover:border-primary/20",children:[p.jsx("span",{children:"Search or command..."}),p.jsxs("div",{className:"flex gap-1 group-hover:scale-105 transition-transform",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"⌘"}),p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"K"})]})]})]}),p.jsxs("div",{className:"hidden lg:flex items-center gap-3 px-4 py-1.5 rounded-full bg-primary/5 border border-primary/10 transition-all hover:bg-primary/10 hover:border-primary/20 cursor-default group",children:[p.jsxs("div",{className:"relative flex items-center justify-center",children:[p.jsx(a9,{size:14,className:"text-primary z-10"}),p.jsx("div",{className:"absolute w-3 h-3 bg-primary rounded-full glow-pulse"})]}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.1em] text-primary/60 leading-none",children:"System Integrity"}),p.jsxs("span",{className:"text-[11px] font-black tracking-tight leading-none",children:[b.toFixed(1),"% Nominal"]})]})]})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("button",{type:"button",onClick:D,className:"p-2.5 hover:bg-muted rounded-xl text-muted-foreground hover:text-primary transition-all duration-300 active:scale-95 group relative",title:o==="light"?"Switch to Dark Mode":"Switch to Light Mode",children:o==="light"?p.jsx(cb,{size:20,className:"group-hover:rotate-[15deg] transition-transform"}):p.jsx(fb,{size:20,className:"group-hover:rotate-90 transition-transform text-yellow-500"})}),p.jsx(jK,{}),p.jsx("div",{className:"h-8 w-[1px] bg-border/50"}),p.jsx(OK,{})]})]}),p.jsx("div",{className:"flex-1 overflow-y-auto p-8 scrollbar-thin",children:p.jsx(lt.div,{initial:{opacity:0,scale:.98,filter:"blur(10px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{duration:.8,ease:[.16,1,.3,1]},children:e})}),p.jsxs("footer",{className:"h-7 border-t bg-card/80 backdrop-blur-md flex items-center justify-between px-6 z-10 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-6 overflow-hidden",children:[p.jsxs("div",{className:"flex items-center gap-2 border-r border-border/50 pr-4",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.4)]"}),p.jsxs("span",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest whitespace-nowrap",children:["Node: ",(j==null?void 0:j.env)||"production-east-1"]})]}),p.jsxs("div",{className:"flex items-center gap-4 text-[9px] font-black text-muted-foreground/40 uppercase tracking-[0.2em] animate-in fade-in slide-in-from-left duration-1000",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Zn,{size:10,className:"text-primary/40"})," Latency: 4ms"]}),p.jsxs("span",{className:"hidden sm:inline border-l border-border/30 pl-4 text-primary",children:["RAM: ",((W=j==null?void 0:j.memory)==null?void 0:W.rss)||"..."," /"," ",((Y=j==null?void 0:j.memory)==null?void 0:Y.total)||"4.00 GB"]}),p.jsxs("span",{className:"hidden md:inline border-l border-border/30 pl-4 uppercase",children:["Engine: ",(j==null?void 0:j.engine)||"v2.4.1-beta"]}),p.jsxs("span",{className:"hidden lg:inline border-l border-border/30 pl-4 lowercase",children:["v: ",(j==null?void 0:j.node)||"..."]})]})]}),p.jsxs("div",{className:"flex items-center gap-4 pl-4 bg-gradient-to-l from-card via-card to-transparent text-right",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-8 h-1 bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{animate:{x:[-20,20]},transition:{duration:2,repeat:1/0,ease:"linear"},className:"w-4 h-full bg-primary/40"})}),p.jsx("span",{className:"text-[9px] font-black text-primary/60 uppercase tracking-widest",children:"Bus Traffic"})]}),p.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60 tabular-nums lowercase",children:[((oe=new Date().toISOString().split("T")[1])==null?void 0:oe.split(".")[0])||""," utc"]})]})]})]}),p.jsx(gi,{children:c&&p.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-24 px-4",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:()=>f(!1)}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},className:"relative w-full max-w-2xl bg-card border-border/50 border rounded-3xl shadow-2xl overflow-hidden scanline",children:[p.jsxs("div",{className:"p-6 border-b flex items-center gap-4 bg-muted/5",children:[p.jsx(bU,{className:"text-primary animate-pulse",size:24}),p.jsx("input",{type:"text",placeholder:"Execute command or navigate...",className:"flex-1 bg-transparent border-none outline-none text-lg font-bold placeholder:text-muted-foreground/30",value:h,onChange:ne=>{m(ne.target.value),y(0)},onKeyDown:ne=>{ne.key==="ArrowDown"?(ne.preventDefault(),y(R=>(R+1)%me.length)):ne.key==="ArrowUp"?(ne.preventDefault(),y(R=>(R-1+me.length)%me.length)):ne.key==="Enter"&&me[g]&&q(me[g])}}),p.jsx("div",{className:"flex items-center gap-2 px-2 py-1 rounded-lg bg-muted border text-[9px] font-black text-muted-foreground/60 uppercase",children:"ESC to close"})]}),p.jsx("div",{className:"max-h-[400px] overflow-y-auto p-2 custom-scrollbar",children:me.length===0?p.jsxs("div",{className:"py-12 text-center text-muted-foreground/40 space-y-2",children:[p.jsx(Zn,{size:32,className:"mx-auto opacity-20"}),p.jsx("p",{className:"text-xs font-black uppercase tracking-widest",children:"No matching commands found"})]}):p.jsx("div",{className:"space-y-1",children:me.map((ne,R)=>p.jsxs("button",{type:"button",id:`command-item-${R}`,className:Ce("w-full flex items-center justify-between p-4 rounded-2xl transition-all cursor-pointer group/cmd outline-none",R===g?"bg-primary shadow-lg shadow-primary/20 -translate-x-1":"hover:bg-muted"),onClick:()=>q(ne),onMouseEnter:()=>y(R),children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:Ce("w-10 h-10 rounded-xl flex items-center justify-center transition-colors",R===g?"bg-white/20 text-white":"bg-muted text-primary"),children:ne.icon}),p.jsxs("div",{children:[p.jsx("p",{className:Ce("text-sm font-black tracking-tight",R===g?"text-white":"text-foreground"),children:ne.title}),p.jsx("p",{className:Ce("text-[10px] font-bold uppercase tracking-widest opacity-60",R===g?"text-white/80":"text-muted-foreground"),children:ne.description})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:Ce("text-[9px] font-black uppercase tracking-widest px-2 py-1 rounded-md",R===g?"bg-white/20 text-white":"bg-muted text-muted-foreground"),children:ne.category}),R===g&&p.jsx("kbd",{className:"bg-white/20 px-1.5 py-0.5 rounded text-[10px] text-white",children:"↵"})]})]},ne.id))})}),p.jsxs("div",{className:"p-4 border-t bg-muted/5 flex justify-between items-center px-6",children:[p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↑↓"})," to navigate"]}),p.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↵"})," to select"]})]}),p.jsx("span",{className:"text-[9px] font-black text-primary/40 uppercase tracking-[0.2em]",children:"Gravito Zenith v1.0"})]})]})]})}),p.jsx(AK,{})]})}function TK(){const{login:e}=Sp(),[t,n]=w.useState(""),[r,i]=w.useState(!1),[o,l]=w.useState(""),[c,f]=w.useState(!1),h=async m=>{m.preventDefault(),l(""),f(!0);const g=await e(t);g.success||(l(g.error||"Authentication failed"),f(!1))};return p.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-indigo-500/5"}),p.jsx("div",{className:"absolute top-1/4 -left-1/4 w-96 h-96 bg-primary/10 rounded-full blur-3xl animate-pulse"}),p.jsx("div",{className:"absolute bottom-1/4 -right-1/4 w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl animate-pulse",style:{animationDelay:"1s"}}),p.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(var(--primary-rgb),0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(var(--primary-rgb),0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),p.jsxs(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative z-10 w-full max-w-md",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx(lt.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},className:"inline-flex items-center justify-center w-20 h-20 bg-gradient-to-br from-primary to-indigo-600 rounded-3xl shadow-2xl shadow-primary/30 mb-6",children:p.jsx(Zn,{size:40,className:"text-primary-foreground"})}),p.jsx("h1",{className:"text-4xl font-black tracking-tighter mb-2",children:"GRAVITO"}),p.jsx("p",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.4em]",children:"Flux Console"})]}),p.jsxs("div",{className:"card-premium p-8 backdrop-blur-xl",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("h2",{className:"text-xl font-bold mb-2",children:"Welcome Back"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your password to access the console"})]}),p.jsxs("form",{onSubmit:h,className:"space-y-6",children:[o&&p.jsxs(lt.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-3 p-4 bg-red-500/10 border border-red-500/20 rounded-xl text-red-500",children:[p.jsx(Zr,{size:18}),p.jsx("span",{className:"text-sm font-medium",children:o})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"password",className:"text-sm font-bold text-muted-foreground uppercase tracking-widest",children:"Password"}),p.jsxs("div",{className:"relative",children:[p.jsx(UU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),p.jsx("input",{id:"password",type:r?"text":"password",value:t,onChange:m=>n(m.target.value),placeholder:"Enter console password",className:Ce("w-full bg-muted/40 border border-border/50 rounded-xl py-4 pl-12 pr-12","text-sm font-medium placeholder:text-muted-foreground/40","focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary/50","transition-all"),disabled:c}),p.jsx("button",{type:"button",onClick:()=>i(!r),className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:r?p.jsx(EU,{size:18}):p.jsx(TU,{size:18})})]})]}),p.jsx("button",{type:"submit",disabled:c||!t,className:Ce("w-full py-4 rounded-xl font-bold text-sm uppercase tracking-widest","bg-gradient-to-r from-primary to-indigo-600 text-primary-foreground","shadow-lg shadow-primary/30 hover:shadow-xl hover:shadow-primary/40","transition-all duration-300 hover:scale-[1.02] active:scale-[0.98]","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100","flex items-center justify-center gap-2"),children:c?p.jsx("div",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):p.jsxs(p.Fragment,{children:["Access Console",p.jsx(Tf,{size:18})]})})]})]}),p.jsx("p",{className:"text-center mt-6 text-xs text-muted-foreground/50",children:"Protected by Gravito Security Layer"})]})]})}var CK=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Lw(e){if(typeof e!="string")return!1;var t=CK;return t.includes(e)}var kK=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],MK=new Set(kK);function v3(e){return typeof e!="string"?!1:MK.has(e)}function y3(e){return typeof e=="string"&&e.startsWith("data-")}function Rr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(v3(n)||y3(n))&&(t[n]=e[n]);return t}function Lf(e){if(e==null)return null;if(w.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Rr(t)}return typeof e=="object"&&!Array.isArray(e)?Rr(e):null}function zn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(v3(n)||y3(n)||Lw(n))&&(t[n]=e[n]);return t}function PK(e){return e==null?null:w.isValidElement(e)?zn(e.props):typeof e=="object"&&!Array.isArray(e)?zn(e):null}var _K=["children","width","height","viewBox","className","style","title","desc"];function Lb(){return Lb=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},Lb.apply(null,arguments)}function DK(e,t){if(e==null)return{};var n,r,i=RK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RK(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 Iw=w.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:l,style:c,title:f,desc:h}=e,m=DK(e,_K),g=o||{width:r,height:i,x:0,y:0},y=Ze("recharts-surface",l);return w.createElement("svg",Lb({},zn(m),{className:y,width:r,height:i,style:c,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),w.createElement("title",null,f),w.createElement("desc",null,h),n)}),zK=["children","className"];function Ib(){return Ib=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},Ib.apply(null,arguments)}function LK(e,t){if(e==null)return{};var n,r,i=IK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function IK(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 Ln=w.forwardRef((e,t)=>{var{children:n,className:r}=e,i=LK(e,zK),o=Ze("recharts-layer",r);return w.createElement("g",Ib({className:o},zn(i),{ref:t}),n)}),x3=w.createContext(null),BK=()=>w.useContext(x3);function dt(e){return function(){return e}}const b3=Math.cos,wm=Math.sin,ia=Math.sqrt,Sm=Math.PI,Tp=2*Sm,Bb=Math.PI,Ub=2*Bb,Gs=1e-6,UK=Ub-Gs;function w3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $K(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return w3;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class qK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w3:$K(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,h=i-n,m=l-t,g=c-n,y=m*m+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Gs)if(!(Math.abs(g*f-h*m)>Gs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,S=i-c,j=f*f+h*h,A=b*b+S*S,O=Math.sqrt(j),T=Math.sqrt(y),N=o*Math.tan((Bb-Math.acos((j+y-A)/(2*O*T)))/2),C=N/T,M=N/O;Math.abs(C-1)>Gs&&this._append`L${t+C*m},${n+C*g}`,this._append`A${o},${o},0,0,${+(g*b>m*S)},${this._x1=t+M*f},${this._y1=n+M*h}`}}arc(t,n,r,i,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),h=t+c,m=n+f,g=1^l,y=l?i-o:o-i;this._x1===null?this._append`M${h},${m}`:(Math.abs(this._x1-h)>Gs||Math.abs(this._y1-m)>Gs)&&this._append`L${h},${m}`,r&&(y<0&&(y=y%Ub+Ub),y>UK?this._append`A${r},${r},0,1,${g},${t-c},${n-f}A${r},${r},0,1,${g},${this._x1=h},${this._y1=m}`:y>Gs&&this._append`A${r},${r},0,${+(y>=Bb)},${g},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Bw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new qK(t)}function Uw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S3(e){this._context=e}S3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Cp(e){return new S3(e)}function j3(e){return e[0]}function A3(e){return e[1]}function O3(e,t){var n=dt(!0),r=null,i=Cp,o=null,l=Bw(c);e=typeof e=="function"?e:e===void 0?j3:dt(e),t=typeof t=="function"?t:t===void 0?A3:dt(t);function c(f){var h,m=(f=Uw(f)).length,g,y=!1,b;for(r==null&&(o=i(b=l())),h=0;h<=m;++h)!(h<m&&n(g=f[h],h,f))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(g,h,f),+t(g,h,f));if(b)return o=null,b+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:dt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:dt(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(o=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=o=null:o=i(r=f),c):r},c}function Mh(e,t,n){var r=null,i=dt(!0),o=null,l=Cp,c=null,f=Bw(h);e=typeof e=="function"?e:e===void 0?j3:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?A3:dt(+n);function h(g){var y,b,S,j=(g=Uw(g)).length,A,O=!1,T,N=new Array(j),C=new Array(j);for(o==null&&(c=l(T=f())),y=0;y<=j;++y){if(!(y<j&&i(A=g[y],y,g))===O)if(O=!O)b=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=y-1;S>=b;--S)c.point(N[S],C[S]);c.lineEnd(),c.areaEnd()}O&&(N[y]=+e(A,y,g),C[y]=+t(A,y,g),c.point(r?+r(A,y,g):N[y],n?+n(A,y,g):C[y]))}if(T)return c=null,T+""||null}function m(){return O3().defined(i).curve(l).context(o)}return h.x=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),r=null,h):e},h.x0=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),h):e},h.x1=function(g){return arguments.length?(r=g==null?null:typeof g=="function"?g:dt(+g),h):r},h.y=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),n=null,h):t},h.y0=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),h):t},h.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:dt(+g),h):n},h.lineX0=h.lineY0=function(){return m().x(e).y(t)},h.lineY1=function(){return m().x(e).y(n)},h.lineX1=function(){return m().x(r).y(t)},h.defined=function(g){return arguments.length?(i=typeof g=="function"?g:dt(!!g),h):i},h.curve=function(g){return arguments.length?(l=g,o!=null&&(c=l(o)),h):l},h.context=function(g){return arguments.length?(g==null?o=c=null:c=l(o=g),h):o},h}class E3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function VK(e){return new E3(e,!0)}function FK(e){return new E3(e,!1)}const $w={draw(e,t){const n=ia(t/Sm);e.moveTo(n,0),e.arc(0,0,n,0,Tp)}},HK={draw(e,t){const n=ia(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},N3=ia(1/3),KK=N3*2,YK={draw(e,t){const n=ia(t/KK),r=n*N3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GK={draw(e,t){const n=ia(t),r=-n/2;e.rect(r,r,n,n)}},WK=.8908130915292852,T3=wm(Sm/10)/wm(7*Sm/10),QK=wm(Tp/10)*T3,XK=-b3(Tp/10)*T3,ZK={draw(e,t){const n=ia(t*WK),r=QK*n,i=XK*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const l=Tp*o/5,c=b3(l),f=wm(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},u0=ia(3),JK={draw(e,t){const n=-ia(t/(u0*3));e.moveTo(0,n*2),e.lineTo(-u0*n,-n),e.lineTo(u0*n,-n),e.closePath()}},Or=-.5,Er=ia(3)/2,$b=1/ia(12),eY=($b/2+1)*3,tY={draw(e,t){const n=ia(t/eY),r=n/2,i=n*$b,o=r,l=n*$b+n,c=-o,f=l;e.moveTo(r,i),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Or*r-Er*i,Er*r+Or*i),e.lineTo(Or*o-Er*l,Er*o+Or*l),e.lineTo(Or*c-Er*f,Er*c+Or*f),e.lineTo(Or*r+Er*i,Or*i-Er*r),e.lineTo(Or*o+Er*l,Or*l-Er*o),e.lineTo(Or*c+Er*f,Or*f-Er*c),e.closePath()}};function nY(e,t){let n=null,r=Bw(i);e=typeof e=="function"?e:dt(e||$w),t=typeof t=="function"?t:dt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:dt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:dt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function jm(){}function Am(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function C3(e){this._context=e}C3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Am(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rY(e){return new C3(e)}function k3(e){this._context=e}k3.prototype={areaStart:jm,areaEnd:jm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aY(e){return new k3(e)}function M3(e){this._context=e}M3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iY(e){return new M3(e)}function P3(e){this._context=e}P3.prototype={areaStart:jm,areaEnd:jm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function sY(e){return new P3(e)}function cT(e){return e<0?-1:1}function fT(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),c=(o*i+l*r)/(r+i);return(cT(o)+cT(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function dT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function c0(e,t,n){var r=e._x0,i=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,i+c*t,o-c,l-c*n,o,l)}function Om(e){this._context=e}Om.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:c0(this,this._t0,dT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,c0(this,dT(this,n=fT(this,e,t)),n);break;default:c0(this,this._t0,n=fT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _3(e){this._context=new D3(e)}(_3.prototype=Object.create(Om.prototype)).point=function(e,t){Om.prototype.point.call(this,t,e)};function D3(e){this._context=e}D3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function oY(e){return new Om(e)}function lY(e){return new _3(e)}function R3(e){this._context=e}R3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hT(e),i=hT(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hT(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),l=new Array(n);for(i[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function uY(e){return new R3(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function cY(e){return new kp(e,.5)}function fY(e){return new kp(e,0)}function dY(e){return new kp(e,1)}function Ao(e,t){if((l=e.length)>1)for(var n=1,r,i,o=e[t[0]],l,c=o.length;n<l;++n)for(i=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function qb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hY(e,t){return e[t]}function mY(e){const t=[];return t.key=e,t}function pY(){var e=dt([]),t=qb,n=Ao,r=hY;function i(o){var l=Array.from(e.apply(this,arguments),mY),c,f=l.length,h=-1,m;for(const g of o)for(c=0,++h;c<f;++c)(l[c][h]=[0,+r(g,l[c].key,h,o)]).data=g;for(c=0,m=Uw(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:dt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:dt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?qb:typeof o=="function"?o:dt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Ao,i):n},i}function gY(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,l;i<o;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}Ao(e,t)}}function vY(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var l=0,c=0;l<i;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Ao(e,t)}}function yY(e,t){if(!(!((l=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,l;r<o;++r){for(var c=0,f=0,h=0;c<l;++c){for(var m=e[t[c]],g=m[r][1]||0,y=m[r-1][1]||0,b=(g-y)/2,S=0;S<c;++S){var j=e[t[S]],A=j[r][1]||0,O=j[r-1][1]||0;b+=A-O}f+=g,h+=b*g}i[r-1][1]+=i[r-1][0]=n,f&&(n-=h/f)}i[r-1][1]+=i[r-1][0]=n,Ao(e,t)}}var f0={},d0={},mT;function xY(){return mT||(mT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(d0)),d0}var h0={},pT;function z3(){return pT||(pT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(h0)),h0}var m0={},gT;function qw(){return gT||(gT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(m0)),m0}var p0={},g0={},vT;function bY(){return vT||(vT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(g0)),g0}var yT;function Vw(){return yT||(yT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bY(),n=qw();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],l=i.length;if(l===0)return o;let c=0,f="",h="",m=!1;for(i.charCodeAt(0)===46&&(o.push(""),c++);c<l;){const g=i[c];h?g==="\\"&&c+1<l?(c++,f+=i[c]):g===h?h="":f+=g:m?g==='"'||g==="'"?h=g:g==="]"?(m=!1,o.push(f),f=""):f+=g:g==="["?(m=!0,f&&(o.push(f),f="")):g==="."?f&&(o.push(f),f=""):f+=g,c++}return f&&o.push(f),o}e.toPath=r})(p0)),p0}var xT;function Fw(){return xT||(xT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xY(),n=z3(),r=qw(),i=Vw();function o(c,f,h){if(c==null)return h;switch(typeof f){case"string":{if(t.isUnsafeProperty(f))return h;const m=c[f];return m===void 0?n.isDeepKey(f)?o(c,i.toPath(f),h):h:m}case"number":case"symbol":{typeof f=="number"&&(f=r.toKey(f));const m=c[f];return m===void 0?h:m}default:{if(Array.isArray(f))return l(c,f,h);if(Object.is(f==null?void 0:f.valueOf(),-0)?f="-0":f=String(f),t.isUnsafeProperty(f))return h;const m=c[f];return m===void 0?h:m}}}function l(c,f,h){if(f.length===0)return h;let m=c;for(let g=0;g<f.length;g++){if(m==null||t.isUnsafeProperty(f[g]))return h;m=m[f[g]]}return m===void 0?h:m}e.get=o})(f0)),f0}var v0,bT;function wY(){return bT||(bT=1,v0=Fw().get),v0}var SY=wY();const tu=wa(SY);var jY=4;function ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jY,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,o,l)=>{var c=n[l-1];return typeof c=="string"?i+c+o:c!==void 0?i+ms(c)+o:i+o},"")}var Qn=e=>e===0?0:e>0?1:-1,zr=e=>typeof e=="number"&&e!=+e,oi=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!zr(e),ya=e=>he(e)||typeof e=="string",AY=0,of=e=>{var t=++AY;return"".concat(e||"").concat(t)},ra=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!he(t)&&typeof t!="string")return r;var o;if(oi(t)){if(n==null)return r;var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return zr(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},L3=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function wt(e,t,n){return he(e)&&he(t)?ms(e+n*(t-e)):t}function I3(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):tu(r,t))===n)}var jt=e=>e===null||typeof e>"u",If=e=>jt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function OY(e){return e!=null}function Bf(){}var EY=["type","size","sizeType"];function Vb(){return Vb=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},Vb.apply(null,arguments)}function wT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ST(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wT(Object(n),!0).forEach(function(r){NY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NY(e,t,n){return(t=TY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TY(e){var t=CY(e,"string");return typeof t=="symbol"?t:t+""}function CY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kY(e,t){if(e==null)return{};var n,r,i=MY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MY(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 B3={symbolCircle:$w,symbolCross:HK,symbolDiamond:YK,symbolSquare:GK,symbolStar:ZK,symbolTriangle:JK,symbolWye:tY},PY=Math.PI/180,_Y=e=>{var t="symbol".concat(If(e));return B3[t]||$w},DY=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*PY;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},RY=(e,t)=>{B3["symbol".concat(If(e))]=t},Hw=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=kY(e,EY),o=ST(ST({},i),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var c=()=>{var y=_Y(l),b=nY().type(y).size(DY(n,r,l)),S=b();if(S!==null)return S},{className:f,cx:h,cy:m}=o,g=zn(o);return he(h)&&he(m)&&he(n)?w.createElement("path",Vb({},g,{className:Ze("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:c()})):null};Hw.registerSymbol=RY;var U3=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Kw=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(w.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Lw(i)&&(r[i]=(o=>n[i](n,o)))}),r},zY=(e,t,n)=>r=>(e(t,n,r),null),Mp=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Lw(i)&&typeof o=="function"&&(r||(r={}),r[i]=zY(o,t,n))}),r};function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){IY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IY(e,t,n){return(t=BY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BY(e){var t=UY(e,"string");return typeof t=="symbol"?t:t+""}function UY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sn(e,t){var n=LY({},e),r=t,i=Object.keys(t),o=i.reduce((l,c)=>(l[c]===void 0&&r[c]!==void 0&&(l[c]=r[c]),l),n);return o}function Em(){return Em=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},Em.apply(null,arguments)}function AT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AT(Object(n),!0).forEach(function(r){qY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qY(e,t,n){return(t=VY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VY(e){var t=FY(e,"string");return typeof t=="symbol"?t:t+""}function FY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cr=32,HY={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function KY(e){var{data:t,iconType:n,inactiveColor:r}=e,i=Cr/2,o=Cr/6,l=Cr/3,c=t.inactive?r:t.color,f=n??t.type;if(f==="none")return null;if(f==="plainline"){var h;return w.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:(h=t.payload)===null||h===void 0?void 0:h.strokeDasharray,x1:0,y1:i,x2:Cr,y2:i,className:"recharts-legend-icon"})}if(f==="line")return w.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,`
364
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
365
+ H`).concat(Cr,"M").concat(2*l,",").concat(i,`
366
+ A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(f==="rect")return w.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Cr/8,"h").concat(Cr,"v").concat(Cr*3/4,"h").concat(-Cr,"z"),className:"recharts-legend-icon"});if(w.isValidElement(t.legendIcon)){var m=$Y({},t);return delete m.legendIcon,w.cloneElement(t.legendIcon,m)}return w.createElement(Hw,{fill:c,cx:i,cy:i,size:Cr,sizeType:"diameter",type:f})}function YY(e){var{payload:t,iconSize:n,layout:r,formatter:i,inactiveColor:o,iconType:l}=e,c={x:0,y:0,width:Cr,height:Cr},f={display:r==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((m,g)=>{var y=m.formatter||i,b=Ze({"recharts-legend-item":!0,["legend-item-".concat(g)]:!0,inactive:m.inactive});if(m.type==="none")return null;var S=m.inactive?o:m.color,j=y?y(m.value,m,g):m.value;return w.createElement("li",Em({className:b,style:f,key:"legend-item-".concat(g)},Mp(e,m,g)),w.createElement(Iw,{width:n,height:n,viewBox:c,style:h,"aria-label":"".concat(j," legend icon")},w.createElement(KY,{data:m,iconType:l,inactiveColor:o})),w.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},j))})}var GY=e=>{var t=Sn(e,HY),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?i:"left"};return w.createElement("ul",{className:"recharts-default-legend",style:o},w.createElement(YY,Em({},t,{payload:n})))},y0={},x0={},OT;function WY(){return OT||(OT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const l=n[o],c=r(l);i.has(c)||i.set(c,l)}return Array.from(i.values())}e.uniqBy=t})(x0)),x0}var b0={},ET;function $3(){return ET||(ET=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(b0)),b0}var w0={},S0={},j0={},NT;function QY(){return NT||(NT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(j0)),j0}var TT;function Yw(){return TT||(TT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QY();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(S0)),S0}var A0={},CT;function XY(){return CT||(CT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(A0)),A0}var kT;function ZY(){return kT||(kT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yw(),n=XY();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(w0)),w0}var O0={},E0={},MT;function JY(){return MT||(MT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fw();function n(r){return function(i){return t.get(i,r)}}e.property=n})(E0)),E0}var N0={},T0={},C0={},k0={},PT;function q3(){return PT||(PT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(k0)),k0}var M0={},_T;function V3(){return _T||(_T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(M0)),M0}var P0={},DT;function F3(){return DT||(DT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(P0)),P0}var RT;function eG(){return RT||(RT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q3(),n=V3(),r=F3();function i(m,g,y){return typeof y!="function"?i(m,g,()=>{}):o(m,g,function b(S,j,A,O,T,N){const C=y(S,j,A,O,T,N);return C!==void 0?!!C:o(S,j,b,N)},new Map)}function o(m,g,y,b){if(g===m)return!0;switch(typeof g){case"object":return l(m,g,y,b);case"function":return Object.keys(g).length>0?o(m,{...g},y,b):r.eq(m,g);default:return t.isObject(m)?typeof g=="string"?g==="":!0:r.eq(m,g)}}function l(m,g,y,b){if(g==null)return!0;if(Array.isArray(g))return f(m,g,y,b);if(g instanceof Map)return c(m,g,y,b);if(g instanceof Set)return h(m,g,y,b);const S=Object.keys(g);if(m==null||n.isPrimitive(m))return S.length===0;if(S.length===0)return!0;if(b!=null&&b.has(g))return b.get(g)===m;b==null||b.set(g,m);try{for(let j=0;j<S.length;j++){const A=S[j];if(!n.isPrimitive(m)&&!(A in m)||g[A]===void 0&&m[A]!==void 0||g[A]===null&&m[A]!==null||!y(m[A],g[A],A,m,g,b))return!1}return!0}finally{b==null||b.delete(g)}}function c(m,g,y,b){if(g.size===0)return!0;if(!(m instanceof Map))return!1;for(const[S,j]of g.entries()){const A=m.get(S);if(y(A,j,S,m,g,b)===!1)return!1}return!0}function f(m,g,y,b){if(g.length===0)return!0;if(!Array.isArray(m))return!1;const S=new Set;for(let j=0;j<g.length;j++){const A=g[j];let O=!1;for(let T=0;T<m.length;T++){if(S.has(T))continue;const N=m[T];let C=!1;if(y(N,A,j,m,g,b)&&(C=!0),C){S.add(T),O=!0;break}}if(!O)return!1}return!0}function h(m,g,y,b){return g.size===0?!0:m instanceof Set?f([...m],[...g],y,b):!1}e.isMatchWith=i,e.isSetMatch=h})(C0)),C0}var zT;function H3(){return zT||(zT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eG();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(T0)),T0}var _0={},D0={},R0={},LT;function tG(){return LT||(LT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(R0)),R0}var z0={},IT;function K3(){return IT||(IT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(z0)),z0}var L0={},BT;function Y3(){return BT||(BT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",f="[object Map]",h="[object Set]",m="[object Array]",g="[object Function]",y="[object ArrayBuffer]",b="[object Object]",S="[object Error]",j="[object DataView]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",C="[object BigUint64Array]",M="[object Int8Array]",_="[object Int16Array]",k="[object Int32Array]",D="[object BigInt64Array]",B="[object Float32Array]",K="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=y,e.arrayTag=m,e.bigInt64ArrayTag=D,e.bigUint64ArrayTag=C,e.booleanTag=i,e.dataViewTag=j,e.dateTag=c,e.errorTag=S,e.float32ArrayTag=B,e.float64ArrayTag=K,e.functionTag=g,e.int16ArrayTag=_,e.int32ArrayTag=k,e.int8ArrayTag=M,e.mapTag=f,e.numberTag=r,e.objectTag=b,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=T,e.uint32ArrayTag=N,e.uint8ArrayTag=A,e.uint8ClampedArrayTag=O})(L0)),L0}var I0={},UT;function nG(){return UT||(UT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(I0)),I0}var $T;function G3(){return $T||($T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tG(),n=K3(),r=Y3(),i=V3(),o=nG();function l(m,g){return c(m,void 0,m,new Map,g)}function c(m,g,y,b=new Map,S=void 0){const j=S==null?void 0:S(m,g,y,b);if(j!==void 0)return j;if(i.isPrimitive(m))return m;if(b.has(m))return b.get(m);if(Array.isArray(m)){const A=new Array(m.length);b.set(m,A);for(let O=0;O<m.length;O++)A[O]=c(m[O],O,y,b,S);return Object.hasOwn(m,"index")&&(A.index=m.index),Object.hasOwn(m,"input")&&(A.input=m.input),A}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const A=new RegExp(m.source,m.flags);return A.lastIndex=m.lastIndex,A}if(m instanceof Map){const A=new Map;b.set(m,A);for(const[O,T]of m)A.set(O,c(T,O,y,b,S));return A}if(m instanceof Set){const A=new Set;b.set(m,A);for(const O of m)A.add(c(O,void 0,y,b,S));return A}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const A=new(Object.getPrototypeOf(m)).constructor(m.length);b.set(m,A);for(let O=0;O<m.length;O++)A[O]=c(m[O],O,y,b,S);return A}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const A=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return b.set(m,A),f(A,m,y,b,S),A}if(typeof File<"u"&&m instanceof File){const A=new File([m],m.name,{type:m.type});return b.set(m,A),f(A,m,y,b,S),A}if(typeof Blob<"u"&&m instanceof Blob){const A=new Blob([m],{type:m.type});return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof Error){const A=new m.constructor;return b.set(m,A),A.message=m.message,A.name=m.name,A.stack=m.stack,A.cause=m.cause,f(A,m,y,b,S),A}if(m instanceof Boolean){const A=new Boolean(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof Number){const A=new Number(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof String){const A=new String(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(typeof m=="object"&&h(m)){const A=Object.create(Object.getPrototypeOf(m));return b.set(m,A),f(A,m,y,b,S),A}return m}function f(m,g,y=m,b,S){const j=[...Object.keys(g),...t.getSymbols(g)];for(let A=0;A<j.length;A++){const O=j[A],T=Object.getOwnPropertyDescriptor(m,O);(T==null||T.writable)&&(m[O]=c(g[O],O,y,b,S))}}function h(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=c,e.copyProperties=f})(D0)),D0}var qT;function rG(){return qT||(qT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G3();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(_0)),_0}var VT;function aG(){return VT||(VT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H3(),n=rG();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(N0)),N0}var B0={},U0={},$0={},FT;function iG(){return FT||(FT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G3(),n=Y3();function r(i,o){return t.cloneDeepWith(i,(l,c,f,h)=>{const m=o==null?void 0:o(l,c,f,h);if(m!==void 0)return m;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const g=new i.constructor(i==null?void 0:i.valueOf());return t.copyProperties(g,i),g}case n.argumentsTag:{const g={};return t.copyProperties(g,i),g.length=i.length,g[Symbol.iterator]=i[Symbol.iterator],g}default:return}})}e.cloneDeepWith=r})($0)),$0}var HT;function sG(){return HT||(HT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iG();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(U0)),U0}var q0={},V0={},KT;function W3(){return KT||(KT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(V0)),V0}var F0={},YT;function oG(){return YT||(YT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=K3();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(F0)),F0}var GT;function lG(){return GT||(GT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z3(),n=W3(),r=oG(),i=Vw();function o(l,c){let f;if(Array.isArray(c)?f=c:typeof c=="string"&&t.isDeepKey(c)&&(l==null?void 0:l[c])==null?f=i.toPath(c):f=[c],f.length===0)return!1;let h=l;for(let m=0;m<f.length;m++){const g=f[m];if((h==null||!Object.hasOwn(h,g))&&!((Array.isArray(h)||r.isArguments(h))&&n.isIndex(g)&&g<h.length))return!1;h=h[g]}return!0}e.has=o})(q0)),q0}var WT;function uG(){return WT||(WT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H3(),n=qw(),r=sG(),i=Fw(),o=lG();function l(c,f){switch(typeof c){case"object":{Object.is(c==null?void 0:c.valueOf(),-0)&&(c="-0");break}case"number":{c=n.toKey(c);break}}return f=r.cloneDeep(f),function(h){const m=i.get(h,c);return m===void 0?o.has(h,c):f===void 0?m===void 0:t.isMatch(m,f)}}e.matchesProperty=l})(B0)),B0}var QT;function cG(){return QT||(QT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$3(),n=JY(),r=aG(),i=uG();function o(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?i.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=o})(O0)),O0}var XT;function fG(){return XT||(XT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WY(),n=$3(),r=ZY(),i=cG();function o(l,c=n.identity){return r.isArrayLikeObject(l)?t.uniqBy(Array.from(l),i.iteratee(c)):[]}e.uniqBy=o})(y0)),y0}var H0,ZT;function dG(){return ZT||(ZT=1,H0=fG().uniqBy),H0}var hG=dG();const JT=wa(hG);function Q3(e,t,n){return t===!0?JT(e,n):typeof t=="function"?JT(e,t):e}var K0={exports:{}},Y0={},G0={exports:{}},W0={};/**
367
+ * @license React
368
+ * use-sync-external-store-shim.production.js
369
+ *
370
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
371
+ *
372
+ * This source code is licensed under the MIT license found in the
373
+ * LICENSE file in the root directory of this source tree.
374
+ */var eC;function mG(){if(eC)return W0;eC=1;var e=cu();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(g,y){var b=y(),S=r({inst:{value:b,getSnapshot:y}}),j=S[0].inst,A=S[1];return o(function(){j.value=b,j.getSnapshot=y,f(j)&&A({inst:j})},[g,b,y]),i(function(){return f(j)&&A({inst:j}),g(function(){f(j)&&A({inst:j})})},[g]),l(b),b}function f(g){var y=g.getSnapshot;g=g.value;try{var b=y();return!n(g,b)}catch{return!0}}function h(g,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return W0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,W0}var tC;function pG(){return tC||(tC=1,G0.exports=mG()),G0.exports}/**
375
+ * @license React
376
+ * use-sync-external-store-shim/with-selector.production.js
377
+ *
378
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
379
+ *
380
+ * This source code is licensed under the MIT license found in the
381
+ * LICENSE file in the root directory of this source tree.
382
+ */var nC;function gG(){if(nC)return Y0;nC=1;var e=cu(),t=pG();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Y0.useSyncExternalStoreWithSelector=function(h,m,g,y,b){var S=o(null);if(S.current===null){var j={hasValue:!1,value:null};S.current=j}else j=S.current;S=c(function(){function O(_){if(!T){if(T=!0,N=_,_=y(_),b!==void 0&&j.hasValue){var k=j.value;if(b(k,_))return C=k}return C=_}if(k=C,r(N,_))return k;var D=y(_);return b!==void 0&&b(k,D)?(N=_,k):(N=_,C=D)}var T=!1,N,C,M=g===void 0?null:g;return[function(){return O(m())},M===null?void 0:function(){return O(M())}]},[m,g,y,b]);var A=i(h,S[0],S[1]);return l(function(){j.hasValue=!0,j.value=A},[A]),f(A),A},Y0}var rC;function vG(){return rC||(rC=1,K0.exports=gG()),K0.exports}var yG=vG(),Gw=w.createContext(null),xG=e=>e,At=()=>{var e=w.useContext(Gw);return e?e.store.dispatch:xG},rm=()=>{},bG=()=>rm,wG=(e,t)=>e===t;function we(e){var t=w.useContext(Gw);return yG.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:bG,t?t.store.getState:rm,t?t.store.getState:rm,t?e:rm,wG)}function SG(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jG(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function AG(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var aC=e=>Array.isArray(e)?e:[e];function OG(e){const t=Array.isArray(e[0])?e[0]:e;return AG(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function EG(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var NG=class{constructor(e){this.value=e}deref(){return this.value}},TG=typeof WeakRef<"u"?WeakRef:NG,CG=0,iC=1;function Ph(){return{s:CG,v:void 0,o:null,p:null}}function X3(e,t={}){let n=Ph();const{resultEqualityCheck:r}=t;let i,o=0;function l(){var g;let c=n;const{length:f}=arguments;for(let y=0,b=f;y<b;y++){const S=arguments[y];if(typeof S=="function"||typeof S=="object"&&S!==null){let j=c.o;j===null&&(c.o=j=new WeakMap);const A=j.get(S);A===void 0?(c=Ph(),j.set(S,c)):c=A}else{let j=c.p;j===null&&(c.p=j=new Map);const A=j.get(S);A===void 0?(c=Ph(),j.set(S,c)):c=A}}const h=c;let m;if(c.s===iC)m=c.v;else if(m=e.apply(null,arguments),o++,r){const y=((g=i==null?void 0:i.deref)==null?void 0:g.call(i))??i;y!=null&&r(y,m)&&(m=y,o!==0&&o--),i=typeof m=="object"&&m!==null||typeof m=="function"?new TG(m):m}return h.s=iC,h.v=m,m}return l.clearCache=()=>{n=Ph(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function kG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,l=0,c,f={},h=i.pop();typeof h=="object"&&(f=h,h=i.pop()),SG(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const m={...n,...f},{memoize:g,memoizeOptions:y=[],argsMemoize:b=X3,argsMemoizeOptions:S=[]}=m,j=aC(y),A=aC(S),O=OG(i),T=g(function(){return o++,h.apply(null,arguments)},...j),N=b(function(){l++;const M=EG(O,arguments);return c=T.apply(null,M),c},...A);return Object.assign(N,{resultFunc:h,memoizedResultFunc:T,dependencies:O,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:g,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var Q=kG(X3),MG=Object.assign((e,t=Q)=>{jG(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,c,f)=>(l[n[f]]=c,l),{}))},{withTypes:()=>MG}),Q0={},X0={},Z0={},sC;function PG(){return sC||(sC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const l=t(r),c=t(i);if(l===c&&l===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?c-l:l-c}return 0};e.compareValues=n})(Z0)),Z0}var J0={},ex={},oC;function Z3(){return oC||(oC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(ex)),ex}var lC;function _G(){return lC||(lC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,l){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||l!=null&&Object.hasOwn(l,o)}e.isKey=i})(J0)),J0}var uC;function DG(){return uC||(uC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PG(),n=_G(),r=Vw();function i(o,l,c,f){if(o==null)return[];c=f?void 0:c,Array.isArray(o)||(o=Object.values(o)),Array.isArray(l)||(l=l==null?[null]:[l]),l.length===0&&(l=[null]),Array.isArray(c)||(c=c==null?[]:[c]),c=c.map(b=>String(b));const h=(b,S)=>{let j=b;for(let A=0;A<S.length&&j!=null;++A)j=j[S[A]];return j},m=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:h(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?h(S,b):typeof S=="object"?S[b]:S,g=l.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||n.isKey(b)?b:{key:b,path:r.toPath(b)}));return o.map(b=>({original:b,criteria:g.map(S=>m(S,b))})).slice().sort((b,S)=>{for(let j=0;j<g.length;j++){const A=t.compareValues(b.criteria[j],S.criteria[j],c[j]);if(A!==0)return A}return 0}).map(b=>b.original)}e.orderBy=i})(X0)),X0}var tx={},cC;function RG(){return cC||(cC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),l=(c,f)=>{for(let h=0;h<c.length;h++){const m=c[h];Array.isArray(m)&&f<o?l(m,f+1):i.push(m)}};return l(n,0),i}e.flatten=t})(tx)),tx}var nx={},fC;function J3(){return fC||(fC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W3(),n=Yw(),r=q3(),i=F3();function o(l,c,f){return r.isObject(f)&&(typeof c=="number"&&n.isArrayLike(f)&&t.isIndex(c)&&c<f.length||typeof c=="string"&&c in f)?i.eq(f[c],l):!1}e.isIterateeCall=o})(nx)),nx}var dC;function zG(){return dC||(dC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DG(),n=RG(),r=J3();function i(o,...l){const c=l.length;return c>1&&r.isIterateeCall(o,l[0],l[1])?l=[]:c>2&&r.isIterateeCall(l[0],l[1],l[2])&&(l=[l[0]]),t.orderBy(o,n.flatten(l),["asc"])}e.sortBy=i})(Q0)),Q0}var rx,hC;function LG(){return hC||(hC=1,rx=zG().sortBy),rx}var IG=LG();const Pp=wa(IG);var eR=e=>e.legend.settings,BG=e=>e.legend.size,UG=e=>e.legend.payload,$G=Q([UG,eR],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Pp(r,n):r});function qG(){return we($G)}var _h=1;function tR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=w.useState({height:0,left:0,top:0,width:0}),r=w.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),l={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(l.height-t.height)>_h||Math.abs(l.left-t.left)>_h||Math.abs(l.top-t.top)>_h||Math.abs(l.width-t.width)>_h)&&n({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function yn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var VG=typeof Symbol=="function"&&Symbol.observable||"@@observable",mC=VG,ax=()=>Math.random().toString(36).substring(7).split("").join("."),FG={INIT:`@@redux/INIT${ax()}`,REPLACE:`@@redux/REPLACE${ax()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ax()}`},Nm=FG;function Ww(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nR(e,t,n){if(typeof e!="function")throw new Error(yn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(yn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(yn(1));return n(nR)(e,t)}let r=e,i=t,o=new Map,l=o,c=0,f=!1;function h(){l===o&&(l=new Map,o.forEach((A,O)=>{l.set(O,A)}))}function m(){if(f)throw new Error(yn(3));return i}function g(A){if(typeof A!="function")throw new Error(yn(4));if(f)throw new Error(yn(5));let O=!0;h();const T=c++;return l.set(T,A),function(){if(O){if(f)throw new Error(yn(6));O=!1,h(),l.delete(T),o=null}}}function y(A){if(!Ww(A))throw new Error(yn(7));if(typeof A.type>"u")throw new Error(yn(8));if(typeof A.type!="string")throw new Error(yn(17));if(f)throw new Error(yn(9));try{f=!0,i=r(i,A)}finally{f=!1}return(o=l).forEach(T=>{T()}),A}function b(A){if(typeof A!="function")throw new Error(yn(10));r=A,y({type:Nm.REPLACE})}function S(){const A=g;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(yn(11));function T(){const C=O;C.next&&C.next(m())}return T(),{unsubscribe:A(T)}},[mC](){return this}}}return y({type:Nm.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:b,[mC]:S}}function HG(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Nm.INIT})>"u")throw new Error(yn(12));if(typeof n(void 0,{type:Nm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yn(13))})}function rR(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const l=t[o];typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;try{HG(n)}catch(o){i=o}return function(l={},c){if(i)throw i;let f=!1;const h={};for(let m=0;m<r.length;m++){const g=r[m],y=n[g],b=l[g],S=y(b,c);if(typeof S>"u")throw c&&c.type,new Error(yn(14));h[g]=S,f=f||S!==b}return f=f||r.length!==Object.keys(l).length,f?h:l}}function Tm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function KG(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(yn(15))};const l={getState:i.getState,dispatch:(f,...h)=>o(f,...h)},c=e.map(f=>f(l));return o=Tm(...c)(i.dispatch),{...i,dispatch:o}}}function aR(e){return Ww(e)&&"type"in e&&typeof e.type=="string"}var iR=Symbol.for("immer-nothing"),pC=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fr=Object,nu=fr.getPrototypeOf,Cm="constructor",_p="prototype",Fb="configurable",km="enumerable",am="writable",lf="value",li=e=>!!e&&!!e[In];function aa(e){var t;return e?sR(e)||Rp(e)||!!e[pC]||!!((t=e[Cm])!=null&&t[pC])||zp(e)||Lp(e):!1}var YG=fr[_p][Cm].toString(),gC=new WeakMap;function sR(e){if(!e||!Qw(e))return!1;const t=nu(e);if(t===null||t===fr[_p])return!0;const n=fr.hasOwnProperty.call(t,Cm)&&t[Cm];if(n===Object)return!0;if(!Tl(n))return!1;let r=gC.get(n);return r===void 0&&(r=Function.toString.call(n),gC.set(n,r)),r===YG}function Dp(e,t,n=!0){Uf(e)===0?(n?Reflect.ownKeys(e):fr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Uf(e){const t=e[In];return t?t.type_:Rp(e)?1:zp(e)?2:Lp(e)?3:0}var vC=(e,t,n=Uf(e))=>n===2?e.has(t):fr[_p].hasOwnProperty.call(e,t),Hb=(e,t,n=Uf(e))=>n===2?e.get(t):e[t],Mm=(e,t,n,r=Uf(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function GG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Rp=Array.isArray,zp=e=>e instanceof Map,Lp=e=>e instanceof Set,Qw=e=>typeof e=="object",Tl=e=>typeof e=="function",ix=e=>typeof e=="boolean";function WG(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Fa=e=>e.copy_||e.base_,Xw=e=>e.modified_?e.copy_:e.base_;function Kb(e,t){if(zp(e))return new Map(e);if(Lp(e))return new Set(e);if(Rp(e))return Array[_p].slice.call(e);const n=sR(e);if(t===!0||t==="class_only"&&!n){const r=fr.getOwnPropertyDescriptors(e);delete r[In];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],c=r[l];c[am]===!1&&(c[am]=!0,c[Fb]=!0),(c.get||c.set)&&(r[l]={[Fb]:!0,[am]:!0,[km]:c[km],[lf]:e[l]})}return fr.create(nu(e),r)}else{const r=nu(e);if(r!==null&&n)return{...e};const i=fr.create(r);return fr.assign(i,e)}}function Zw(e,t=!1){return Ip(e)||li(e)||!aa(e)||(Uf(e)>1&&fr.defineProperties(e,{set:Dh,add:Dh,clear:Dh,delete:Dh}),fr.freeze(e),t&&Dp(e,(n,r)=>{Zw(r,!0)},!1)),e}function QG(){Wr(2)}var Dh={[lf]:QG};function Ip(e){return e===null||!Qw(e)?!0:fr.isFrozen(e)}var Pm="MapSet",Yb="Patches",yC="ArrayMethods",oR={};function Oo(e){const t=oR[e];return t||Wr(0,e),t}var xC=e=>!!oR[e],uf,lR=()=>uf,XG=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:xC(Pm)?Oo(Pm):void 0,arrayMethodsPlugin_:xC(yC)?Oo(yC):void 0});function bC(e,t){t&&(e.patchPlugin_=Oo(Yb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gb(e){Wb(e),e.drafts_.forEach(ZG),e.drafts_=null}function Wb(e){e===uf&&(uf=e.parent_)}var wC=e=>uf=XG(uf,e);function ZG(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function SC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[In].modified_&&(Gb(t),Wr(4)),aa(e)&&(e=jC(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[In].base_,e,t)}else e=jC(t,n);return JG(t,e,!0),Gb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iR?e:void 0}function jC(e,t){if(Ip(t))return t;const n=t[In];if(!n)return _m(t,e.handledSet_,e);if(!Bp(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);fR(n,e)}return n.copy_}function JG(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zw(t,n)}function uR(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Bp=(e,t)=>e.scope_===t,eW=[];function cR(e,t,n,r){const i=Fa(e),o=e.type_;if(r!==void 0&&Hb(i,r,o)===t){Mm(i,r,n,o);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Dp(i,(f,h)=>{if(li(h)){const m=c.get(h)||[];m.push(f),c.set(h,m)}})}const l=e.draftLocations_.get(t)??eW;for(const c of l)Mm(i,c,n,o)}function tW(e,t,n){e.callbacks_.push(function(i){var c;const o=t;if(!o||!Bp(o,i))return;(c=i.mapSetPlugin_)==null||c.fixSetContents(o);const l=Xw(o);cR(e,o.draft_??o,l,n),fR(o,i)})}function fR(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}uR(e)}}function nW(e,t,n){const{scope_:r}=e;if(li(n)){const i=n[In];Bp(i,r)&&i.callbacks_.push(function(){im(e);const l=Xw(i);cR(e,n,l,t)})}else aa(n)&&e.callbacks_.push(function(){const o=Fa(e);e.type_===3?o.has(n)&&_m(n,r.handledSet_,r):Hb(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_m(Hb(e.copy_,t,e.type_),r.handledSet_,r)})}function _m(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||li(e)||t.has(e)||!aa(e)||Ip(e)||(t.add(e),Dp(e,(r,i)=>{if(li(i)){const o=i[In];if(Bp(o,n)){const l=Xw(o);Mm(e,r,l,e.type_),uR(o)}}else aa(i)&&_m(i,t,n)})),e}function rW(e,t){const n=Rp(e),r={type_:n?1:0,scope_:t?t.scope_:lR(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=Dm;n&&(i=[r],o=cf);const{revoke:l,proxy:c}=Proxy.revocable(i,o);return r.draft_=c,r.revoke_=l,[c,r]}var Dm={get(e,t){if(t===In)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Fa(e);if(!vC(i,t,e.type_))return aW(e,i,t);const o=i[t];if(e.finalized_||!aa(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&WG(t))return o;if(o===sx(e.base_,t)){im(e);const l=e.type_===1?+t:t,c=Xb(e.scope_,o,e,l);return e.copy_[l]=c}return o},has(e,t){return t in Fa(e)},ownKeys(e){return Reflect.ownKeys(Fa(e))},set(e,t,n){const r=dR(Fa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=sx(Fa(e),t),o=i==null?void 0:i[In];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(GG(n,i)&&(n!==void 0||vC(e.base_,t,e.type_)))return!0;im(e),Qb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),nW(e,t,n)),!0},deleteProperty(e,t){return im(e),sx(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Qb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[am]:!0,[Fb]:e.type_!==1||t!=="length",[km]:r[km],[lf]:n[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return nu(e.base_)},setPrototypeOf(){Wr(12)}},cf={};for(let e in Dm){let t=Dm[e];cf[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}cf.deleteProperty=function(e,t){return cf.set.call(this,e,t,void 0)};cf.set=function(e,t,n){return Dm.set.call(this,e[0],t,n,e[0])};function sx(e,t){const n=e[In];return(n?Fa(n):e)[t]}function aW(e,t,n){var i;const r=dR(t,n);return r?lf in r?r[lf]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function dR(e,t){if(!(t in e))return;let n=nu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=nu(n)}}function Qb(e){e.modified_||(e.modified_=!0,e.parent_&&Qb(e.parent_))}function im(e){e.copy_||(e.assigned_=new Map,e.copy_=Kb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var iW=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(Tl(n)&&!Tl(r)){const l=r;r=n;const c=this;return function(h=l,...m){return c.produce(h,g=>r.call(this,g,...m))}}Tl(r)||Wr(6),i!==void 0&&!Tl(i)&&Wr(7);let o;if(aa(n)){const l=wC(this),c=Xb(l,n,void 0);let f=!0;try{o=r(c),f=!1}finally{f?Gb(l):Wb(l)}return bC(l,i),SC(o,l)}else if(!n||!Qw(n)){if(o=r(n),o===void 0&&(o=n),o===iR&&(o=void 0),this.autoFreeze_&&Zw(o,!0),i){const l=[],c=[];Oo(Yb).generateReplacementPatches_(n,o,{patches_:l,inversePatches_:c}),i(l,c)}return o}else Wr(1,n)},this.produceWithPatches=(n,r)=>{if(Tl(n))return(c,...f)=>this.produceWithPatches(c,h=>n(h,...f));let i,o;return[this.produce(n,r,(c,f)=>{i=c,o=f}),i,o]},ix(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ix(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ix(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){aa(t)||Wr(8),li(t)&&(t=ta(t));const n=wC(this),r=Xb(n,t,void 0);return r[In].isManual_=!0,Wb(n),r}finishDraft(t,n){const r=t&&t[In];(!r||!r.isManual_)&&Wr(9);const{scope_:i}=r;return bC(i,n),SC(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=Oo(Yb).applyPatches_;return li(t)?i(t,n):this.produce(t,o=>i(o,n))}};function Xb(e,t,n,r){const[i,o]=zp(t)?Oo(Pm).proxyMap_(t,n):Lp(t)?Oo(Pm).proxySet_(t,n):rW(t,n);return((n==null?void 0:n.scope_)??lR()).drafts_.push(i),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?tW(n,o,r):o.callbacks_.push(function(f){var m;(m=f.mapSetPlugin_)==null||m.fixSetContents(o);const{patchPlugin_:h}=f;o.modified_&&h&&h.generatePatches_(o,[],f)}),i}function ta(e){return li(e)||Wr(10,e),hR(e)}function hR(e){if(!aa(e)||Ip(e))return e;const t=e[In];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Kb(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Kb(e,!0);return Dp(n,(i,o)=>{Mm(n,i,hR(o))},r),t&&(t.finalized_=!1),n}var sW=new iW,mR=sW.produce;function pR(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var oW=pR(),lW=pR,uW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tm:Tm.apply(null,arguments)};function Lr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(dr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>aR(r)&&r.type===e,n}var gR=class Lc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Lc.prototype)}static get[Symbol.species](){return Lc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Lc(...t[0].concat(this)):new Lc(...t.concat(this))}};function AC(e){return aa(e)?mR(e,()=>{}):e}function Rh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function cW(e){return typeof e=="boolean"}var fW=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let l=new gR;return n&&(cW(n)?l.push(oW):l.push(lW(n.extraArgument))),l},vR="RTK_autoBatch",vt=()=>e=>({payload:e,meta:{[vR]:!0}}),OC=e=>t=>{setTimeout(t,e)},yR=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,l=!1;const c=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:OC(10):e.type==="callback"?e.queueNotification:OC(e.timeout),h=()=>{l=!1,o&&(o=!1,c.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const g=()=>i&&m(),y=r.subscribe(g);return c.add(m),()=>{y(),c.delete(m)}},dispatch(m){var g;try{return i=!((g=m==null?void 0:m.meta)!=null&&g[vR]),o=!i,o&&(l||(l=!0,f(h))),r.dispatch(m)}finally{i=!0}}})},dW=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new gR(e);return r&&i.push(yR(typeof r=="object"?r:void 0)),i};function hW(e){const t=fW(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Ww(n))c=rR(n);else throw new Error(dr(1));let f;typeof r=="function"?f=r(t):f=t();let h=Tm;i&&(h=uW({trace:!1,...typeof i=="object"&&i}));const m=KG(...f),g=dW(m);let y=typeof l=="function"?l(g):g();const b=h(...y);return nR(c,o,b)}function xR(e){const t={},n=[];let r;const i={addCase(o,l){const c=typeof o=="string"?o:o.type;if(!c)throw new Error(dr(28));if(c in t)throw new Error(dr(29));return t[c]=l,i},addAsyncThunk(o,l){return l.pending&&(t[o.pending.type]=l.pending),l.rejected&&(t[o.rejected.type]=l.rejected),l.fulfilled&&(t[o.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:o.settled,reducer:l.settled}),i},addMatcher(o,l){return n.push({matcher:o,reducer:l}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function mW(e){return typeof e=="function"}function pW(e,t){let[n,r,i]=xR(t),o;if(mW(e))o=()=>AC(e());else{const c=AC(e);o=()=>c}function l(c=o(),f){let h=[n[f.type],...r.filter(({matcher:m})=>m(f)).map(({reducer:m})=>m)];return h.filter(m=>!!m).length===0&&(h=[i]),h.reduce((m,g)=>{if(g)if(li(m)){const b=g(m,f);return b===void 0?m:b}else{if(aa(m))return mR(m,y=>g(y,f));{const y=g(m,f);if(y===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return m},c)}return l.getInitialState=o,l}var gW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",vW=(e=21)=>{let t="",n=e;for(;n--;)t+=gW[Math.random()*64|0];return t},yW=Symbol.for("rtk-slice-createasyncthunk");function xW(e,t){return`${e}/${t}`}function bW({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[yW];return function(i){const{name:o,reducerPath:l=o}=i;if(!o)throw new Error(dr(11));const c=(typeof i.reducers=="function"?i.reducers(SW()):i.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(C,M){const _=typeof C=="string"?C:C.type;if(!_)throw new Error(dr(12));if(_ in h.sliceCaseReducersByType)throw new Error(dr(13));return h.sliceCaseReducersByType[_]=M,m},addMatcher(C,M){return h.sliceMatchers.push({matcher:C,reducer:M}),m},exposeAction(C,M){return h.actionCreators[C]=M,m},exposeCaseReducer(C,M){return h.sliceCaseReducersByName[C]=M,m}};f.forEach(C=>{const M=c[C],_={reducerName:C,type:xW(o,C),createNotation:typeof i.reducers=="function"};AW(M)?EW(_,M,m,t):jW(_,M,m)});function g(){const[C={},M=[],_=void 0]=typeof i.extraReducers=="function"?xR(i.extraReducers):[i.extraReducers],k={...C,...h.sliceCaseReducersByType};return pW(i.initialState,D=>{for(let B in k)D.addCase(B,k[B]);for(let B of h.sliceMatchers)D.addMatcher(B.matcher,B.reducer);for(let B of M)D.addMatcher(B.matcher,B.reducer);_&&D.addDefaultCase(_)})}const y=C=>C,b=new Map,S=new WeakMap;let j;function A(C,M){return j||(j=g()),j(C,M)}function O(){return j||(j=g()),j.getInitialState()}function T(C,M=!1){function _(D){let B=D[C];return typeof B>"u"&&M&&(B=Rh(S,_,O)),B}function k(D=y){const B=Rh(b,M,()=>new WeakMap);return Rh(B,D,()=>{const K={};for(const[$,Z]of Object.entries(i.selectors??{}))K[$]=wW(Z,D,()=>Rh(S,D,O),M);return K})}return{reducerPath:C,getSelectors:k,get selectors(){return k(_)},selectSlice:_}}const N={name:o,reducer:A,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:O,...T(l),injectInto(C,{reducerPath:M,..._}={}){const k=M??l;return C.inject({reducerPath:k,reducer:A},_),{...N,...T(k,!0)}}};return N}}function wW(e,t,n,r){function i(o,...l){let c=t(o);return typeof c>"u"&&r&&(c=n()),e(c,...l)}return i.unwrapped=e,i}var Jn=bW();function SW(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function jW({type:e,reducerName:t,createNotation:n},r,i){let o,l;if("reducer"in r){if(n&&!OW(r))throw new Error(dr(17));o=r.reducer,l=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?Lr(e,l):Lr(e))}function AW(e){return e._reducerDefinitionType==="asyncThunk"}function OW(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EW({type:e,reducerName:t},n,r,i){if(!i)throw new Error(dr(18));const{payloadCreator:o,fulfilled:l,pending:c,rejected:f,settled:h,options:m}=n,g=i(e,o,m);r.exposeAction(t,g),l&&r.addCase(g.fulfilled,l),c&&r.addCase(g.pending,c),f&&r.addCase(g.rejected,f),h&&r.addMatcher(g.settled,h),r.exposeCaseReducer(t,{fulfilled:l||zh,pending:c||zh,rejected:f||zh,settled:h||zh})}function zh(){}var NW="task",bR="listener",wR="completed",Jw="cancelled",TW=`task-${Jw}`,CW=`task-${wR}`,Zb=`${bR}-${Jw}`,kW=`${bR}-${wR}`,Up=class{constructor(e){_y(this,"name","TaskAbortError");_y(this,"message");this.code=e,this.message=`${NW} ${Jw} (reason: ${e})`}},eS=(e,t)=>{if(typeof e!="function")throw new TypeError(dr(32))},Rm=()=>{},SR=(e,t=Rm)=>(e.catch(t),e),jR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),vo=e=>{if(e.aborted)throw new Up(e.reason)};function AR(e,t){let n=Rm;return new Promise((r,i)=>{const o=()=>i(new Up(e.reason));if(e.aborted){o();return}n=jR(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Rm})}var MW=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Up?"cancelled":"rejected",error:n}}finally{t==null||t()}},zm=e=>t=>SR(AR(e,t).then(n=>(vo(e),n))),OR=e=>{const t=zm(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Il}=Object,EC={},$p="listenerMiddleware",PW=(e,t)=>{const n=r=>jR(e,()=>r.abort(e.reason));return(r,i)=>{eS(r);const o=new AbortController;n(o);const l=MW(async()=>{vo(e),vo(o.signal);const c=await r({pause:zm(o.signal),delay:OR(o.signal),signal:o.signal});return vo(o.signal),c},()=>o.abort(CW));return i!=null&&i.autoJoin&&t.push(l.catch(Rm)),{result:zm(e)(l),cancel(){o.abort(TW)}}}},_W=(e,t)=>{const n=async(r,i)=>{vo(t);let o=()=>{};const c=[new Promise((f,h)=>{let m=e({predicate:r,effect:(g,y)=>{y.unsubscribe(),f([g,y.getState(),y.getOriginalState()])}});o=()=>{m(),h()}})];i!=null&&c.push(new Promise(f=>setTimeout(f,i,null)));try{const f=await AR(t,Promise.race(c));return vo(t),f}finally{o()}};return(r,i)=>SR(n(r,i))},ER=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Lr(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(dr(21));return eS(o),{predicate:i,type:t,effect:o}},NR=Il(e=>{const{type:t,predicate:n,effect:r}=ER(e);return{id:vW(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(dr(22))}}},{withTypes:()=>NR}),NC=(e,t)=>{const{type:n,effect:r,predicate:i}=ER(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},Jb=e=>{e.pending.forEach(t=>{t.abort(Zb)})},DW=(e,t)=>()=>{for(const n of t.keys())Jb(n);e.clear()},TC=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},TR=Il(Lr(`${$p}/add`),{withTypes:()=>TR}),RW=Lr(`${$p}/removeAll`),CR=Il(Lr(`${$p}/remove`),{withTypes:()=>CR}),zW=(...e)=>{console.error(`${$p}/error`,...e)},$f=(e={})=>{const t=new Map,n=new Map,r=b=>{const S=n.get(b)??0;n.set(b,S+1)},i=b=>{const S=n.get(b)??1;S===1?n.delete(b):n.set(b,S-1)},{extra:o,onError:l=zW}=e;eS(l);const c=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&Jb(b)}),f=b=>{const S=NC(t,b)??NR(b);return c(S)};Il(f,{withTypes:()=>f});const h=b=>{const S=NC(t,b);return S&&(S.unsubscribe(),b.cancelActive&&Jb(S)),!!S};Il(h,{withTypes:()=>h});const m=async(b,S,j,A)=>{const O=new AbortController,T=_W(f,O.signal),N=[];try{b.pending.add(O),r(b),await Promise.resolve(b.effect(S,Il({},j,{getOriginalState:A,condition:(C,M)=>T(C,M).then(Boolean),take:T,delay:OR(O.signal),pause:zm(O.signal),extra:o,signal:O.signal,fork:PW(O.signal,N),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((C,M,_)=>{C!==O&&(C.abort(Zb),_.delete(C))})},cancel:()=>{O.abort(Zb),b.pending.delete(O)},throwIfCancelled:()=>{vo(O.signal)}})))}catch(C){C instanceof Up||TC(l,C,{raisedBy:"effect"})}finally{await Promise.all(N),O.abort(kW),i(b),b.pending.delete(O)}},g=DW(t,n);return{middleware:b=>S=>j=>{if(!aR(j))return S(j);if(TR.match(j))return f(j.payload);if(RW.match(j)){g();return}if(CR.match(j))return h(j.payload);let A=b.getState();const O=()=>{if(A===EC)throw new Error(dr(23));return A};let T;try{if(T=S(j),t.size>0){const N=b.getState(),C=Array.from(t.values());for(const M of C){let _=!1;try{_=M.predicate(j,N,A)}catch(k){_=!1,TC(l,k,{raisedBy:"predicate"})}_&&m(M,j,b,O)}}}finally{A=EC}return T},startListening:f,stopListening:h,clearListeners:g}};function dr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var LW={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},kR=Jn({name:"chartLayout",initialState:LW,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:IW,setLayout:BW,setChartSize:UW,setScale:$W}=kR.actions,qW=kR.reducer;function MR(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function ft(e){return Number.isFinite(e)}function xa(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){VW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VW(e,t,n){return(t=FW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FW(e){var t=HW(e,"string");return typeof t=="symbol"?t:t+""}function HW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,n){return jt(e)||jt(t)?n:ya(t)?tu(e,t,n):typeof t=="function"?t(e):n}var KW=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:l,layout:c}=t;if((c==="vertical"||c==="horizontal"&&l==="middle")&&o!=="center"&&he(e[o]))return Dl(Dl({},e),{},{[o]:e[o]+(r||0)});if((c==="horizontal"||c==="vertical"&&o==="center")&&l!=="middle"&&he(e[l]))return Dl(Dl({},e),{},{[l]:e[l]+(i||0)})}return e},vi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",PR=(e,t,n,r)=>{if(r)return e.map(c=>c.coordinate);var i,o,l=e.map(c=>(c.coordinate===t&&(i=!0),c.coordinate===n&&(o=!0),c.coordinate));return i||l.push(t),o||l.push(n),l},_R=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:l,realScaleType:c,isCategorical:f,categoricalDomain:h,tickCount:m,ticks:g,niceTicks:y,axisType:b}=e;if(!l)return null;var S=c==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,j=i==="category"&&l.bandwidth?l.bandwidth()/S:0;if(j=b==="angleAxis"&&o&&o.length>=2?Qn(o[0]-o[1])*2*j:j,g||y){var A=(g||y||[]).map((O,T)=>{var N=r?r.indexOf(O):O;return{coordinate:l(N)+j,value:O,offset:j,index:T}});return A.filter(O=>!zr(O.coordinate))}return f&&h?h.map((O,T)=>({coordinate:l(O)+j,value:O,index:T,offset:j})):l.ticks&&m!=null?l.ticks(m).map((O,T)=>({coordinate:l(O)+j,value:O,offset:j,index:T})):l.domain().map((O,T)=>({coordinate:l(O)+j,value:r?r[O]:O,index:T,offset:j}))},kC=1e-4,YW=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-kC,o=Math.max(r[0],r[1])+kC,l=e(t[0]),c=e(t[n-1]);(l<i||l>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},GW=(e,t)=>{if(!t||t.length!==2||!he(t[0])||!he(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!he(e[0])||e[0]<n)&&(i[0]=n),(!he(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},WW=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,l=0,c=0;c<n;++c){var f=e[c],h=f==null?void 0:f[i];if(h!=null){var m=h[1],g=h[0],y=zr(m)?g:m;y>=0?(h[0]=o,h[1]=o+y,o=m):(h[0]=l,h[1]=l+y,l=m)}}}},QW=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,l=0;l<n;++l){var c=e[l],f=c==null?void 0:c[i];if(f!=null){var h=zr(f[1])?f[0]:f[1];h>=0?(f[0]=o,f[1]=o+h,o=f[1]):(f[0]=0,f[1]=0)}}}},XW={sign:WW,expand:gY,none:Ao,silhouette:vY,wiggle:yY,positive:QW},ZW=(e,t,n)=>{var r,i=(r=XW[n])!==null&&r!==void 0?r:Ao,o=pY().keys(t).value((c,f)=>Number(Ft(c,f,0))).order(qb).offset(i),l=o(e);return l.forEach((c,f)=>{c.forEach((h,m)=>{var g=Ft(e[m],t[f],0);Array.isArray(g)&&g.length===2&&he(g[0])&&he(g[1])&&(h[0]=g[0],h[1]=g[1])})}),l};function DR(e){return e==null?void 0:String(e)}function MC(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:l}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!jt(i[t.dataKey])){var c=I3(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Ft(i,jt(l)?t.dataKey:l);return jt(f)?null:t.scale(f)}var PC=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:l}=e;if(t.type==="category")return n[l]?n[l].coordinate+r:null;var c=Ft(o,t.dataKey,t.scale.domain()[l]);return jt(c)?null:t.scale(c)-i/2+r},JW=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},eQ=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},tQ=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],nQ=(e,t,n)=>{if(e!=null)return tQ(Object.keys(e).reduce((r,i)=>{var o=e[i];if(!o)return r;var{stackedData:l}=o,c=l.reduce((f,h)=>{var m=MR(h,t,n),g=eQ(m);return!ft(g[0])||!ft(g[1])?f:[Math.min(f[0],g[0]),Math.max(f[1],g[1])]},[1/0,-1/0]);return[Math.min(c[0],r[0]),Math.max(c[1],r[1])]},[1/0,-1/0]))},_C=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,DC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ru=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Pp(t,m=>m.coordinate),o=1/0,l=1,c=i.length;l<c;l++){var f=i[l],h=i[l-1];o=Math.min(((f==null?void 0:f.coordinate)||0)-((h==null?void 0:h.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function RC(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return Dl(Dl({},t),{},{dataKey:n,payload:r,value:i,name:o})}function qp(e,t){if(e)return String(e);if(typeof t=="string")return t}var rQ=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},aQ=(e,t)=>t==="centric"?e.angle:e.radius,yi=e=>e.layout.width,xi=e=>e.layout.height,iQ=e=>e.layout.scale,RR=e=>e.layout.margin,Vp=Q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fp=Q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),sQ="data-recharts-item-index",oQ="data-recharts-item-id",qf=60;function zC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zC(Object(n),!0).forEach(function(r){lQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lQ(e,t,n){return(t=uQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uQ(e){var t=cQ(e,"string");return typeof t=="symbol"?t:t+""}function cQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fQ=e=>e.brush.height;function dQ(e){var t=Fp(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:qf;return n+i}return n},0)}function hQ(e){var t=Fp(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:qf;return n+i}return n},0)}function mQ(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function pQ(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var cn=Q([yi,xi,RR,fQ,dQ,hQ,mQ,pQ,eR,BG],(e,t,n,r,i,o,l,c,f,h)=>{var m={left:(n.left||0)+i,right:(n.right||0)+o},g={top:(n.top||0)+l,bottom:(n.bottom||0)+c},y=Lh(Lh({},g),m),b=y.bottom;y.bottom+=r,y=KW(y,f,h);var S=e-y.left-y.right,j=t-y.top-y.bottom;return Lh(Lh({brushBottom:b},y),{},{width:Math.max(S,0),height:Math.max(j,0)})}),gQ=Q(cn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),tS=Q(yi,xi,(e,t)=>({x:0,y:0,width:e,height:t})),vQ=w.createContext(null),Tn=()=>w.useContext(vQ)!=null,Hp=e=>e.brush,Kp=Q([Hp,cn,RR],(e,t,n)=>({height:e.height,x:he(e.x)?e.x:t.left,y:he(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:he(e.width)?e.width:t.width})),ox={},lx={},ux={},LC;function yQ(){return LC||(LC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let l,c=null;const f=o!=null&&o.includes("leading"),h=o==null||o.includes("trailing"),m=()=>{c!==null&&(n.apply(l,c),l=void 0,c=null)},g=()=>{h&&m(),j()};let y=null;const b=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,g()},r)},S=()=>{y!==null&&(clearTimeout(y),y=null)},j=()=>{S(),l=void 0,c=null},A=()=>{m()},O=function(...T){if(i!=null&&i.aborted)return;l=this,c=T;const N=y==null;b(),f&&N&&m()};return O.schedule=b,O.cancel=j,O.flush=A,i==null||i.addEventListener("abort",j,{once:!0}),O}e.debounce=t})(ux)),ux}var IC;function xQ(){return IC||(IC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yQ();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:l=!1,trailing:c=!0,maxWait:f}=o,h=Array(2);l&&(h[0]="leading"),c&&(h[1]="trailing");let m,g=null;const y=t.debounce(function(...j){m=r.apply(this,j),g=null},i,{edges:h}),b=function(...j){return f!=null&&(g===null&&(g=Date.now()),Date.now()-g>=f)?(m=r.apply(this,j),g=Date.now(),y.cancel(),y.schedule(),m):(y.apply(this,j),m)},S=()=>(y.flush(),m);return b.cancel=y.cancel,b.flush=S,b}e.debounce=n})(lx)),lx}var BC;function bQ(){return BC||(BC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xQ();function n(r,i=0,o={}){const{leading:l=!0,trailing:c=!0}=o;return t.debounce(r,i,{leading:l,maxWait:i,trailing:c})}e.throttle=n})(ox)),ox}var cx,UC;function wQ(){return UC||(UC=1,cx=bQ().throttle),cx}var SQ=wQ();const jQ=wa(SQ);var Lm=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;console.warn(n.replace(/%s/g,()=>i[l++]))}},zR=(e,t,n)=>{var{width:r="100%",height:i="100%",aspect:o,maxHeight:l}=n,c=oi(r)?e:Number(r),f=oi(i)?t:Number(i);return o&&o>0&&(c?f=c/o:f&&(c=f*o),l&&f!=null&&f>l&&(f=l)),{calculatedWidth:c,calculatedHeight:f}},AQ={width:0,height:0,overflow:"visible"},OQ={width:0,overflowX:"visible"},EQ={height:0,overflowY:"visible"},NQ={},TQ=e=>{var{width:t,height:n}=e,r=oi(t),i=oi(n);return r&&i?AQ:r?OQ:i?EQ:NQ};function CQ(e){var{width:t,height:n,aspect:r}=e,i=t,o=n;return i===void 0&&o===void 0?(i="100%",o="100%"):i===void 0?i=r&&r>0?void 0:"100%":o===void 0&&(o=r&&r>0?void 0:"100%"),{width:i,height:o}}function e1(){return e1=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},e1.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(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){kQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kQ(e,t,n){return(t=MQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MQ(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LR=w.createContext({width:-1,height:-1});function _Q(e){return xa(e.width)&&xa(e.height)}function IR(e){var{children:t,width:n,height:r}=e,i=w.useMemo(()=>({width:n,height:r}),[n,r]);return _Q(i)?w.createElement(LR.Provider,{value:i},t):null}var nS=()=>w.useContext(LR),DQ=w.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i,height:o,minWidth:l=0,minHeight:c,maxHeight:f,children:h,debounce:m=0,id:g,className:y,onResize:b,style:S={}}=e,j=w.useRef(null),A=w.useRef();A.current=b,w.useImperativeHandle(t,()=>j.current);var[O,T]=w.useState({containerWidth:r.width,containerHeight:r.height}),N=w.useCallback((D,B)=>{T(K=>{var $=Math.round(D),Z=Math.round(B);return K.containerWidth===$&&K.containerHeight===Z?K:{containerWidth:$,containerHeight:Z}})},[]);w.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return Bf;var D=Z=>{var le,{width:de,height:me}=Z[0].contentRect;N(de,me),(le=A.current)===null||le===void 0||le.call(A,de,me)};m>0&&(D=jQ(D,m,{trailing:!0,leading:!1}));var B=new ResizeObserver(D),{width:K,height:$}=j.current.getBoundingClientRect();return N(K,$),B.observe(j.current),()=>{B.disconnect()}},[N,m]);var{containerWidth:C,containerHeight:M}=O;Lm(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:_,calculatedHeight:k}=zR(C,M,{width:i,height:o,aspect:n,maxHeight:f});return Lm(_!=null&&_>0||k!=null&&k>0,`The width(%s) and height(%s) of chart should be greater than 0,
383
+ please check the style of container, or the props width(%s) and height(%s),
384
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
385
+ height and width.`,_,k,i,o,l,c,n),w.createElement("div",{id:g?"".concat(g):void 0,className:Ze("recharts-responsive-container",y),style:qC(qC({},S),{},{width:i,height:o,minWidth:l,minHeight:c,maxHeight:f}),ref:j},w.createElement("div",{style:TQ({width:i,height:o})},w.createElement(IR,{width:_,height:k},h)))}),sm=w.forwardRef((e,t)=>{var n=nS();if(xa(n.width)&&xa(n.height))return e.children;var{width:r,height:i}=CQ({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=zR(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(l)?w.createElement(IR,{width:o,height:l},e.children):w.createElement(DQ,e1({},e,{width:r,height:i,ref:t}))});function BR(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Yp=()=>{var e,t=Tn(),n=we(gQ),r=we(Kp),i=(e=we(Hp))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},RQ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},UR=()=>{var e;return(e=we(cn))!==null&&e!==void 0?e:RQ},rS=()=>we(yi),aS=()=>we(xi),zQ=()=>we(e=>e.layout.margin),We=e=>e.layout.layoutType,Po=()=>we(We),LQ=()=>{var e=Po();if(e==="horizontal"||e==="vertical")return e},IQ=()=>{var e=Po();return e!==void 0},Gp=e=>{var t=At(),n=Tn(),{width:r,height:i}=e,o=nS(),l=r,c=i;return o&&(l=o.width>0?o.width:r,c=o.height>0?o.height:i),w.useEffect(()=>{!n&&xa(l)&&xa(c)&&t(UW({width:l,height:c}))},[t,n,l,c]),null},$R=Symbol.for("immer-nothing"),VC=Symbol.for("immer-draftable"),hr=Symbol.for("immer-state");function Qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ff=Object.getPrototypeOf;function au(e){return!!e&&!!e[hr]}function Eo(e){var t;return e?qR(e)||Array.isArray(e)||!!e[VC]||!!((t=e.constructor)!=null&&t[VC])||Vf(e)||Qp(e):!1}var BQ=Object.prototype.constructor.toString(),FC=new WeakMap;function qR(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=FC.get(n);return r===void 0&&(r=Function.toString.call(n),FC.set(n,r)),r===BQ}function Im(e,t,n=!0){Wp(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Wp(e){const t=e[hr];return t?t.type_:Array.isArray(e)?1:Vf(e)?2:Qp(e)?3:0}function t1(e,t){return Wp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function VR(e,t,n){const r=Wp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function UQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Vf(e){return e instanceof Map}function Qp(e){return e instanceof Set}function Ws(e){return e.copy_||e.base_}function n1(e,t){if(Vf(e))return new Map(e);if(Qp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=qR(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[hr];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],c=r[l];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[l]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[l]})}return Object.create(ff(e),r)}else{const r=ff(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function iS(e,t=!1){return Xp(e)||au(e)||!Eo(e)||(Wp(e)>1&&Object.defineProperties(e,{set:Ih,add:Ih,clear:Ih,delete:Ih}),Object.freeze(e),t&&Object.values(e).forEach(n=>iS(n,!0))),e}function $Q(){Qr(2)}var Ih={value:$Q};function Xp(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var qQ={};function No(e){const t=qQ[e];return t||Qr(0,e),t}var df;function FR(){return df}function VQ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function HC(e,t){t&&(No("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function r1(e){a1(e),e.drafts_.forEach(FQ),e.drafts_=null}function a1(e){e===df&&(df=e.parent_)}function KC(e){return df=VQ(df,e)}function FQ(e){const t=e[hr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function YC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hr].modified_&&(r1(t),Qr(4)),Eo(e)&&(e=Bm(t,e),t.parent_||Um(t,e)),t.patches_&&No("Patches").generateReplacementPatches_(n[hr].base_,e,t.patches_,t.inversePatches_)):e=Bm(t,n,[]),r1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$R?e:void 0}function Bm(e,t,n){if(Xp(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[hr];if(!i)return Im(t,(o,l)=>GC(e,i,t,o,l,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return Um(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let l=o,c=!1;i.type_===3&&(l=new Set(o),o.clear(),c=!0),Im(l,(f,h)=>GC(e,i,o,f,h,n,c),r),Um(e,o,!1),n&&e.patches_&&No("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function GC(e,t,n,r,i,o,l){if(i==null||typeof i!="object"&&!l)return;const c=Xp(i);if(!(c&&!l)){if(au(i)){const f=o&&t&&t.type_!==3&&!t1(t.assigned_,r)?o.concat(r):void 0,h=Bm(e,i,f);if(VR(n,r,h),au(h))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Eo(i)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&c)return;Bm(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Vf(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Um(e,i)}}}function Um(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iS(t,n)}function HQ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:FR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=sS;n&&(i=[r],o=hf);const{revoke:l,proxy:c}=Proxy.revocable(i,o);return r.draft_=c,r.revoke_=l,c}var sS={get(e,t){if(t===hr)return e;const n=Ws(e);if(!t1(n,t))return KQ(e,n,t);const r=n[t];return e.finalized_||!Eo(r)?r:r===fx(e.base_,t)?(dx(e),e.copy_[t]=s1(r,e)):r},has(e,t){return t in Ws(e)},ownKeys(e){return Reflect.ownKeys(Ws(e))},set(e,t,n){const r=HR(Ws(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=fx(Ws(e),t),o=i==null?void 0:i[hr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(UQ(n,i)&&(n!==void 0||t1(e.base_,t)))return!0;dx(e),i1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return fx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dx(e),i1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ws(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qr(11)},getPrototypeOf(e){return ff(e.base_)},setPrototypeOf(){Qr(12)}},hf={};Im(sS,(e,t)=>{hf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});hf.deleteProperty=function(e,t){return hf.set.call(this,e,t,void 0)};hf.set=function(e,t,n){return sS.set.call(this,e[0],t,n,e[0])};function fx(e,t){const n=e[hr];return(n?Ws(n):e)[t]}function KQ(e,t,n){var i;const r=HR(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function HR(e,t){if(!(t in e))return;let n=ff(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ff(n)}}function i1(e){e.modified_||(e.modified_=!0,e.parent_&&i1(e.parent_))}function dx(e){e.copy_||(e.copy_=n1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YQ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(f=o,...h){return l.produce(f,m=>n.call(this,m,...h))}}typeof n!="function"&&Qr(6),r!==void 0&&typeof r!="function"&&Qr(7);let i;if(Eo(t)){const o=KC(this),l=s1(t,void 0);let c=!0;try{i=n(l),c=!1}finally{c?r1(o):a1(o)}return HC(o,r),YC(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===$R&&(i=void 0),this.autoFreeze_&&iS(i,!0),r){const o=[],l=[];No("Patches").generateReplacementPatches_(t,i,o,l),r(o,l)}return i}else Qr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...c)=>this.produceWithPatches(l,f=>t(f,...c));let r,i;return[this.produce(t,n,(l,c)=>{r=l,i=c}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Eo(e)||Qr(8),au(e)&&(e=GQ(e));const t=KC(this),n=s1(e,void 0);return n[hr].isManual_=!0,a1(t),n}finishDraft(e,t){const n=e&&e[hr];(!n||!n.isManual_)&&Qr(9);const{scope_:r}=n;return HC(r,t),YC(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=No("Patches").applyPatches_;return au(e)?r(e,t):this.produce(e,i=>r(i,t))}};function s1(e,t){const n=Vf(e)?No("MapSet").proxyMap_(e,t):Qp(e)?No("MapSet").proxySet_(e,t):HQ(e,t);return(t?t.scope_:FR()).drafts_.push(n),n}function GQ(e){return au(e)||Qr(10,e),KR(e)}function KR(e){if(!Eo(e)||Xp(e))return e;const t=e[hr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=n1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=n1(e,!0);return Im(n,(i,o)=>{VR(n,i,KR(o))},r),t&&(t.finalized_=!1),n}var WQ=new YQ;WQ.produce;var QQ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},YR=Jn({name:"legend",initialState:QQ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:vt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=ta(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:vt()},removeLegendPayload:{reducer(e,t){var n=ta(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:vt()}}}),{setLegendSize:WC,setLegendSettings:XQ,addLegendPayload:ZQ,replaceLegendPayload:JQ,removeLegendPayload:eX}=YR.actions,tX=YR.reducer,nX=["contextPayload"];function o1(){return o1=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},o1.apply(null,arguments)}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?QC(Object(n),!0).forEach(function(r){rX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rX(e,t,n){return(t=aX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aX(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sX(e,t){if(e==null)return{};var n,r,i=oX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oX(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 lX(e){return e.value}function uX(e){var{contextPayload:t}=e,n=sX(e,nX),r=Q3(t,e.payloadUniqBy,lX),i=iu(iu({},n),{},{payload:r});return w.isValidElement(e.content)?w.cloneElement(e.content,i):typeof e.content=="function"?w.createElement(e.content,i):w.createElement(GY,i)}function cX(e,t,n,r,i,o){var{layout:l,align:c,verticalAlign:f}=t,h,m;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(c==="center"&&l==="vertical"?h={left:((r||0)-o.width)/2}:h=c==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(f==="middle"?m={top:((i||0)-o.height)/2}:m=f==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),iu(iu({},h),m)}function fX(e){var t=At();return w.useEffect(()=>{t(XQ(e))},[t,e]),null}function dX(e){var t=At();return w.useEffect(()=>(t(WC(e)),()=>{t(WC({width:0,height:0}))}),[t,e]),null}function hX(e,t,n,r){return e==="vertical"&&he(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var mX={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function GR(e){var t=Sn(e,mX),n=qG(),r=BK(),i=zQ(),{width:o,height:l,wrapperStyle:c,portal:f}=t,[h,m]=tR([n]),g=rS(),y=aS();if(g==null||y==null)return null;var b=g-((i==null?void 0:i.left)||0)-((i==null?void 0:i.right)||0),S=hX(t.layout,l,o,b),j=f?c:iu(iu({position:"absolute",width:(S==null?void 0:S.width)||o||"auto",height:(S==null?void 0:S.height)||l||"auto"},cX(c,t,i,g,y,h)),c),A=f??r;if(A==null||n==null)return null;var O=w.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:m},w.createElement(fX,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!f&&w.createElement(dX,{width:h.width,height:h.height}),w.createElement(uX,o1({},t,S,{margin:i,chartWidth:g,chartHeight:y,contextPayload:n})));return Pf.createPortal(O,A)}GR.displayName="Legend";function l1(){return l1=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},l1.apply(null,arguments)}function XC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XC(Object(n),!0).forEach(function(r){pX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=vX(e,"string");return typeof t=="symbol"?t:t+""}function vX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yX(e){return Array.isArray(e)&&ya(e[0])&&ya(e[1])?e.join(" ~ "):e}var xX=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:l,itemSorter:c,wrapperClassName:f,labelClassName:h,label:m,labelFormatter:g,accessibilityLayer:y=!1}=e,b=()=>{if(o&&o.length){var M={padding:0,margin:0},_=(c?Pp(o,c):o).map((k,D)=>{if(k.type==="none")return null;var B=k.formatter||l||yX,{value:K,name:$}=k,Z=K,le=$;if(B){var de=B(K,$,k,D,o);if(Array.isArray(de))[Z,le]=de;else if(de!=null)Z=de;else return null}var me=hx({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},r);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:me},ya(le)?w.createElement("span",{className:"recharts-tooltip-item-name"},le):null,ya(le)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},Z),w.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:M},_)}return null},S=hx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),j=hx({margin:0},i),A=!jt(m),O=A?m:"",T=Ze("recharts-default-tooltip",f),N=Ze("recharts-tooltip-label",h);A&&g&&o!==void 0&&o!==null&&(O=g(m,o));var C=y?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",l1({className:T,style:S},C),w.createElement("p",{className:N,style:j},w.isValidElement(O)?O:"".concat(O)),b())},Ac="recharts-tooltip-wrapper",bX={visibility:"hidden"};function wX(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ze(Ac,{["".concat(Ac,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Ac,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Ac,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Ac,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function ZC(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:l,tooltipDimension:c,viewBox:f,viewBoxDimension:h}=e;if(o&&he(o[r]))return o[r];var m=n[r]-c-(i>0?i:0),g=n[r]+i;if(t[r])return l[r]?m:g;var y=f[r];if(y==null)return 0;if(l[r]){var b=m,S=y;return b<S?Math.max(g,y):Math.max(m,y)}if(h==null)return 0;var j=g+c,A=y+h;return j>A?Math.max(m,y):Math.max(g,y)}function SX(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function jX(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:l,useTranslate3d:c,viewBox:f}=e,h,m,g;return l.height>0&&l.width>0&&n?(m=ZC({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),g=ZC({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),h=SX({translateX:m,translateY:g,useTranslate3d:c})):h=bX,{cssProperties:h,cssClasses:wX({translateX:m,translateY:g,coordinate:n})}}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return(t=AX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AX(e){var t=OX(e,"string");return typeof t=="symbol"?t:t+""}function OX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class EX extends w.PureComponent{constructor(){super(...arguments),u1(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),u1(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:l,hasPayload:c,isAnimationActive:f,offset:h,position:m,reverseDirection:g,useTranslate3d:y,viewBox:b,wrapperStyle:S,lastBoundingBox:j,innerRef:A,hasPortalFromProps:O}=this.props,{cssClasses:T,cssProperties:N}=jX({allowEscapeViewBox:n,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:g,tooltipBox:{height:j.height,width:j.width},useTranslate3d:y,viewBox:b}),C=O?{}:Bh(Bh({transition:f&&t?"transform ".concat(r,"ms ").concat(i):void 0},N),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&c?"visible":"hidden",position:"absolute",top:0,left:0}),M=Bh(Bh({},C),{},{visibility:!this.state.dismissed&&t&&c?"visible":"hidden"},S);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:T,style:M,ref:A},o)}}var WR=()=>{var e;return(e=we(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function c1(){return c1=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},c1.apply(null,arguments)}function ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(r){NX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NX(e,t,n){return(t=TX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TX(e){var t=CX(e,"string");return typeof t=="symbol"?t:t+""}function CX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nk={curveBasisClosed:aY,curveBasisOpen:iY,curveBasis:rY,curveBumpX:VK,curveBumpY:FK,curveLinearClosed:sY,curveLinear:Cp,curveMonotoneX:oY,curveMonotoneY:lY,curveNatural:uY,curveStep:cY,curveStepAfter:dY,curveStepBefore:fY},$m=e=>ft(e.x)&&ft(e.y),rk=e=>e.base!=null&&$m(e.base)&&$m(e),Oc=e=>e.x,Ec=e=>e.y,kX=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(If(e));return(n==="curveMonotone"||n==="curveBump")&&t?nk["".concat(n).concat(t==="vertical"?"Y":"X")]:nk[n]||Cp},MX=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,l=kX(t,i),c=o?n.filter($m):n,f;if(Array.isArray(r)){var h=n.map((b,S)=>tk(tk({},b),{},{base:r[S]}));i==="vertical"?f=Mh().y(Ec).x1(Oc).x0(b=>b.base.x):f=Mh().x(Oc).y1(Ec).y0(b=>b.base.y);var m=f.defined(rk).curve(l),g=o?h.filter(rk):h;return m(g)}i==="vertical"&&he(r)?f=Mh().y(Ec).x1(Oc).x0(r):he(r)?f=Mh().x(Oc).y1(Ec).y0(r):f=O3().x(Oc).y(Ec);var y=f.defined($m).curve(l);return y(c)},Fc=e=>{var{className:t,points:n,path:r,pathRef:i}=e,o=Po();if((!n||!n.length)&&!r)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},c=n&&n.length?MX(l):r;return w.createElement("path",c1({},Rr(e),Kw(e),{className:Ze("recharts-curve",t),d:c===null?void 0:c,ref:i}))},PX=["x","y","top","left","width","height","className"];function f1(){return f1=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},f1.apply(null,arguments)}function ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ak(Object(n),!0).forEach(function(r){DX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DX(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=zX(e,"string");return typeof t=="symbol"?t:t+""}function zX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LX(e,t){if(e==null)return{};var n,r,i=IX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function IX(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 BX=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),UX=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:l=0,className:c}=e,f=LX(e,PX),h=_X({x:t,y:n,top:r,left:i,width:o,height:l},f);return!he(t)||!he(n)||!he(o)||!he(l)||!he(r)||!he(i)?null:w.createElement("path",f1({},zn(h),{className:Ze("recharts-cross",c),d:BX(t,n,o,l,r,i)}))};function $X(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(n),!0).forEach(function(r){qX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qX(e,t,n){return(t=VX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=FX(e,"string");return typeof t=="symbol"?t:t+""}function FX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HX=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),QR=(e,t,n)=>e.map(r=>"".concat(HX(r)," ").concat(t,"ms ").concat(n)).join(","),KX=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),mf=(e,t)=>Object.keys(t).reduce((n,r)=>sk(sk({},n),{},{[r]:e(r,t[r])}),{});function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){YX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YX(e,t,n){return(t=GX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GX(e){var t=WX(e,"string");return typeof t=="symbol"?t:t+""}function WX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qm=(e,t,n)=>e+(t-e)*n,d1=e=>{var{from:t,to:n}=e;return t!==n},XR=(e,t,n)=>{var r=mf((i,o)=>{if(d1(o)){var[l,c]=e(o.from,o.to,o.velocity);return Wt(Wt({},o),{},{from:l,velocity:c})}return o},t);return n<1?mf((i,o)=>d1(o)&&r[i]!=null?Wt(Wt({},o),{},{velocity:qm(o.velocity,r[i].velocity,n),from:qm(o.from,r[i].from,n)}):o,t):XR(e,r,n-1)};function QX(e,t,n,r,i,o){var l,c=r.reduce((y,b)=>Wt(Wt({},y),{},{[b]:{from:e[b],velocity:0,to:t[b]}}),{}),f=()=>mf((y,b)=>b.from,c),h=()=>!Object.values(c).filter(d1).length,m=null,g=y=>{l||(l=y);var b=y-l,S=b/n.dt;c=XR(n,c,S),i(Wt(Wt(Wt({},e),t),f())),l=y,h()||(m=o.setTimeout(g))};return()=>(m=o.setTimeout(g),()=>{var y;(y=m)===null||y===void 0||y()})}function XX(e,t,n,r,i,o,l){var c=null,f=i.reduce((g,y)=>{var b=e[y],S=t[y];return b==null||S==null?g:Wt(Wt({},g),{},{[y]:[b,S]})},{}),h,m=g=>{h||(h=g);var y=(g-h)/r,b=mf((j,A)=>qm(...A,n(y)),f);if(o(Wt(Wt(Wt({},e),t),b)),y<1)c=l.setTimeout(m);else{var S=mf((j,A)=>qm(...A,n(1)),f);o(Wt(Wt(Wt({},e),t),S))}};return()=>(c=l.setTimeout(m),()=>{var g;(g=c)===null||g===void 0||g()})}const ZX=(e,t,n,r,i,o)=>{var l=KX(e,t);return n==null?()=>(i(Wt(Wt({},e),t)),()=>{}):n.isStepper===!0?QX(e,t,n,l,i,o):XX(e,t,n,r,l,i,o)};var Vm=1e-4,ZR=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],JR=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),lk=(e,t)=>n=>{var r=ZR(e,t);return JR(r,n)},JX=(e,t)=>n=>{var r=ZR(e,t),i=[...r.map((o,l)=>o*l).slice(1),0];return JR(i,n)},eZ=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(o=>parseFloat(o));return[i[0],i[1],i[2],i[3]]},tZ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=eZ(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},nZ=(e,t,n,r)=>{var i=lk(e,n),o=lk(t,r),l=JX(e,n),c=h=>h>1?1:h<0?0:h,f=h=>{for(var m=h>1?1:h,g=m,y=0;y<8;++y){var b=i(g)-m,S=l(g);if(Math.abs(b-m)<Vm||S<Vm)return o(g);g=c(g-b/S)}return o(g)};return f.isStepper=!1,f},uk=function(){return nZ(...tZ(...arguments))},rZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(l,c,f)=>{var h=-(l-c)*n,m=f*r,g=f+(h-m)*i/1e3,y=f*i/1e3+l;return Math.abs(y-c)<Vm&&Math.abs(g)<Vm?[c,0]:[y,g]};return o.isStepper=!0,o.dt=i,o},aZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return uk(e);case"spring":return rZ();default:if(e.split("(")[0]==="cubic-bezier")return uk(e)}return typeof e=="function"?e:null};function iZ(e){var t,n=()=>null,r=!1,i=null,o=l=>{if(!r){if(Array.isArray(l)){if(!l.length)return;var c=l,[f,...h]=c;if(typeof f=="number"){i=e.setTimeout(o.bind(null,h),f);return}o(f),i=e.setTimeout(o.bind(null,h));return}typeof l=="string"&&(t=l,n(t)),typeof l=="object"&&(t=l,n(t)),typeof l=="function"&&l()}};return{stop:()=>{r=!0},start:l=>{r=!1,i&&(i(),i=null),o(l)},subscribe:l=>(n=l,()=>{n=()=>null}),getTimeoutController:()=>e}}class sZ{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=l=>{l-r>=n?t(l):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}}function oZ(){return iZ(new sZ)}var lZ=w.createContext(oZ);function uZ(e,t){var n=w.useContext(lZ);return w.useMemo(()=>t??n(e),[e,t,n])}var cZ=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ff={isSsr:cZ()},fZ={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},ck={t:0},mx={t:1};function Zp(e){var t=Sn(e,fZ),{isActive:n,canBegin:r,duration:i,easing:o,begin:l,onAnimationEnd:c,onAnimationStart:f,children:h}=t,m=n==="auto"?!Ff.isSsr:n,g=uZ(t.animationId,t.animationManager),[y,b]=w.useState(m?ck:mx),S=w.useRef(null);return w.useEffect(()=>{m||b(mx)},[m]),w.useEffect(()=>{if(!m||!r)return Bf;var j=ZX(ck,mx,aZ(o),i,b,g.getTimeoutController()),A=()=>{S.current=j()};return g.start([f,l,A,i,c]),()=>{g.stop(),S.current&&S.current(),c()}},[m,r,i,o,l,f,c,g]),h(y.t)}function Jp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=w.useRef(of(t)),r=w.useRef(e);return r.current!==e&&(n.current=of(t),r.current=e),n.current}var dZ=["radius"],hZ=["radius"],fk,dk,hk,mk,pk,gk,vk,yk,xk,bk;function wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){mZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mZ(e,t,n){return(t=pZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pZ(e){var t=gZ(e,"string");return typeof t=="symbol"?t:t+""}function gZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fm(){return Fm=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},Fm.apply(null,arguments)}function jk(e,t){if(e==null)return{};var n,r,i=vZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vZ(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 fa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ak=(e,t,n,r,i)=>{var o=ms(n),l=ms(r),c=Math.min(Math.abs(o)/2,Math.abs(l)/2),f=l>=0?1:-1,h=o>=0?1:-1,m=l>=0&&o>=0||l<0&&o<0?1:0,g;if(c>0&&i instanceof Array){for(var y=[0,0,0,0],b=0,S=4;b<S;b++)y[b]=i[b]>c?c:i[b];g=kt(fk||(fk=fa(["M",",",""])),e,t+f*y[0]),y[0]>0&&(g+=kt(dk||(dk=fa(["A ",",",",0,0,",",",",",""])),y[0],y[0],m,e+h*y[0],t)),g+=kt(hk||(hk=fa(["L ",",",""])),e+n-h*y[1],t),y[1]>0&&(g+=kt(mk||(mk=fa(["A ",",",",0,0,",`,
386
+ `,",",""])),y[1],y[1],m,e+n,t+f*y[1])),g+=kt(pk||(pk=fa(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(g+=kt(gk||(gk=fa(["A ",",",",0,0,",`,
387
+ `,",",""])),y[2],y[2],m,e+n-h*y[2],t+r)),g+=kt(vk||(vk=fa(["L ",",",""])),e+h*y[3],t+r),y[3]>0&&(g+=kt(yk||(yk=fa(["A ",",",",0,0,",`,
388
+ `,",",""])),y[3],y[3],m,e,t+r-f*y[3])),g+="Z"}else if(c>0&&i===+i&&i>0){var j=Math.min(c,i);g=kt(xk||(xk=fa(["M ",",",`
389
+ A `,",",",0,0,",",",",",`
390
+ L `,",",`
391
+ A `,",",",0,0,",",",",",`
392
+ L `,",",`
393
+ A `,",",",0,0,",",",",",`
394
+ L `,",",`
395
+ A `,",",",0,0,",",",","," Z"])),e,t+f*j,j,j,m,e+h*j,t,e+n-h*j,t,j,j,m,e+n,t+f*j,e+n,t+r-f*j,j,j,m,e+n-h*j,t+r,e+h*j,t+r,j,j,m,e,t+r-f*j)}else g=kt(bk||(bk=fa(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return g},Ok={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},e4=e=>{var t=Sn(e,Ok),n=w.useRef(null),[r,i]=w.useState(-1);w.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var W=n.current.getTotalLength();W&&i(W)}catch{}},[]);var{x:o,y:l,width:c,height:f,radius:h,className:m}=t,{animationEasing:g,animationDuration:y,animationBegin:b,isAnimationActive:S,isUpdateAnimationActive:j}=t,A=w.useRef(c),O=w.useRef(f),T=w.useRef(o),N=w.useRef(l),C=w.useMemo(()=>({x:o,y:l,width:c,height:f,radius:h}),[o,l,c,f,h]),M=Jp(C,"rectangle-");if(o!==+o||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var _=Ze("recharts-rectangle",m);if(!j){var k=zn(t),{radius:D}=k,B=jk(k,dZ);return w.createElement("path",Fm({},B,{x:ms(o),y:ms(l),width:ms(c),height:ms(f),radius:typeof h=="number"?h:void 0,className:_,d:Ak(o,l,c,f,h)}))}var K=A.current,$=O.current,Z=T.current,le=N.current,de="0px ".concat(r===-1?1:r,"px"),me="".concat(r,"px 0px"),q=QR(["strokeDasharray"],y,typeof g=="string"?g:Ok.animationEasing);return w.createElement(Zp,{animationId:M,key:M,canBegin:r>0,duration:y,easing:g,isActive:j,begin:b},W=>{var Y=wt(K,c,W),oe=wt($,f,W),ne=wt(Z,o,W),R=wt(le,l,W);n.current&&(A.current=Y,O.current=oe,T.current=ne,N.current=R);var F;S?W>0?F={transition:q,strokeDasharray:me}:F={strokeDasharray:de}:F={strokeDasharray:me};var ae=zn(t),{radius:se}=ae,ve=jk(ae,hZ);return w.createElement("path",Fm({},ve,{radius:typeof h=="number"?h:void 0,className:_,d:Ak(ne,R,Y,oe,h),ref:n,style:Sk(Sk({},F),t.style)}))})};function Ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){yZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yZ(e,t,n){return(t=xZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xZ(e){var t=bZ(e,"string");return typeof t=="symbol"?t:t+""}function bZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hm=Math.PI/180,wZ=e=>e*180/Math.PI,wn=(e,t,n,r)=>({x:e+Math.cos(-Hm*r)*n,y:t+Math.sin(-Hm*r)*n}),SZ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},jZ=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},AZ=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,l=jZ({x:n,y:r},{x:i,y:o});if(l<=0)return{radius:l,angle:0};var c=(n-i)/l,f=Math.acos(c);return r>o&&(f=2*Math.PI-f),{radius:l,angle:wZ(f),angleInRadian:f}},OZ=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},EZ=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(i,o);return e+l*360},NZ=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:i,angle:o}=AZ({x:n,y:r},t),{innerRadius:l,outerRadius:c}=t;if(i<l||i>c||i===0)return null;var{startAngle:f,endAngle:h}=OZ(t),m=o,g;if(f<=h){for(;m>h;)m-=360;for(;m<f;)m+=360;g=m>=f&&m<=h}else{for(;m>f;)m-=360;for(;m<h;)m+=360;g=m>=h&&m<=f}return g?Nk(Nk({},t),{},{radius:i,angle:EZ(m,t)}):null};function t4(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,l=wn(t,n,r,i),c=wn(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}var Tk,Ck,kk,Mk,Pk,_k,Dk;function h1(){return h1=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},h1.apply(null,arguments)}function to(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var TZ=(e,t)=>{var n=Qn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Uh=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:l,cornerRadius:c,cornerIsExternal:f}=e,h=c*(l?1:-1)+r,m=Math.asin(c/h)/Hm,g=f?i:i+o*m,y=wn(t,n,h,g),b=wn(t,n,r,g),S=f?i-o*m:i,j=wn(t,n,h*Math.cos(m*Hm),S);return{center:y,circleTangency:b,lineTangency:j,theta:m}},n4=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:l}=e,c=TZ(o,l),f=o+c,h=wn(t,n,i,o),m=wn(t,n,i,f),g=kt(Tk||(Tk=to(["M ",",",`
396
+ A `,",",`,0,
397
+ `,",",`,
398
+ `,",",`
399
+ `])),h.x,h.y,i,i,+(Math.abs(c)>180),+(o>f),m.x,m.y);if(r>0){var y=wn(t,n,r,o),b=wn(t,n,r,f);g+=kt(Ck||(Ck=to(["L ",",",`
400
+ A `,",",`,0,
401
+ `,",",`,
402
+ `,","," Z"])),b.x,b.y,r,r,+(Math.abs(c)>180),+(o<=f),y.x,y.y)}else g+=kt(kk||(kk=to(["L ",","," Z"])),t,n);return g},CZ=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:h}=e,m=Qn(h-f),{circleTangency:g,lineTangency:y,theta:b}=Uh({cx:t,cy:n,radius:i,angle:f,sign:m,cornerRadius:o,cornerIsExternal:c}),{circleTangency:S,lineTangency:j,theta:A}=Uh({cx:t,cy:n,radius:i,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:c}),O=c?Math.abs(f-h):Math.abs(f-h)-b-A;if(O<0)return l?kt(Mk||(Mk=to(["M ",",",`
403
+ a`,",",",0,0,1,",`,0
404
+ a`,",",",0,0,1,",`,0
405
+ `])),y.x,y.y,o,o,o*2,o,o,-o*2):n4({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:f,endAngle:h});var T=kt(Pk||(Pk=to(["M ",",",`
406
+ A`,",",",0,0,",",",",",`
407
+ A`,",",",0,",",",",",",",`
408
+ A`,",",",0,0,",",",",",`
409
+ `])),y.x,y.y,o,o,+(m<0),g.x,g.y,i,i,+(O>180),+(m<0),S.x,S.y,o,o,+(m<0),j.x,j.y);if(r>0){var{circleTangency:N,lineTangency:C,theta:M}=Uh({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),{circleTangency:_,lineTangency:k,theta:D}=Uh({cx:t,cy:n,radius:r,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),B=c?Math.abs(f-h):Math.abs(f-h)-M-D;if(B<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+=kt(_k||(_k=to(["L",",",`
410
+ A`,",",",0,0,",",",",",`
411
+ A`,",",",0,",",",",",",",`
412
+ A`,",",",0,0,",",",",","Z"])),k.x,k.y,o,o,+(m<0),_.x,_.y,r,r,+(B>180),+(m>0),N.x,N.y,o,o,+(m<0),C.x,C.y)}else T+=kt(Dk||(Dk=to(["L",",","Z"])),t,n);return T},kZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},r4=e=>{var t=Sn(e,kZ),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:l,forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m,className:g}=t;if(o<i||h===m)return null;var y=Ze("recharts-sector",g),b=o-i,S=ra(l,b,0,!0),j;return S>0&&Math.abs(h-m)<360?j=CZ({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m}):j=n4({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:h,endAngle:m}),w.createElement("path",h1({},zn(t),{className:y,d:j}))};function MZ(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(U3(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:o,outerRadius:l,angle:c}=t,f=wn(r,i,o,c),h=wn(r,i,l,c);return[{x:f.x,y:f.y},{x:h.x,y:h.y}]}return t4(t)}}var px={},gx={},vx={},Rk;function PZ(){return Rk||(Rk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z3();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(vx)),vx}var zk;function _Z(){return zk||(zk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PZ();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(gx)),gx}var Lk;function DZ(){return Lk||(Lk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=J3(),n=_Z();function r(i,o,l){l&&typeof l!="number"&&t.isIterateeCall(i,o,l)&&(o=l=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),l=l===void 0?i<o?1:-1:n.toFinite(l);const c=Math.max(Math.ceil((o-i)/(l||1)),0),f=new Array(c);for(let h=0;h<c;h++)f[h]=i,i+=l;return f}e.range=r})(px)),px}var yx,Ik;function RZ(){return Ik||(Ik=1,yx=DZ().range),yx}var zZ=RZ();const a4=wa(zZ);function gs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LZ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oS(e){let t,n,r;e.length!==2?(t=gs,n=(c,f)=>gs(e(c),f),r=(c,f)=>e(c)-f):(t=e===gs||e===LZ?e:IZ,n=e,r=e);function i(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const g=h+m>>>1;n(c[g],f)<0?h=g+1:m=g}while(h<m)}return h}function o(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const g=h+m>>>1;n(c[g],f)<=0?h=g+1:m=g}while(h<m)}return h}function l(c,f,h=0,m=c.length){const g=i(c,f,h,m-1);return g>h&&r(c[g-1],f)>-r(c[g],f)?g-1:g}return{left:i,center:l,right:o}}function IZ(){return 0}function i4(e){return e===null?NaN:+e}function*BZ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const UZ=oS(gs),Hf=UZ.right;oS(i4).center;class Bk extends Map{constructor(t,n=VZ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Uk(this,t))}has(t){return super.has(Uk(this,t))}set(t,n){return super.set($Z(this,t),n)}delete(t){return super.delete(qZ(this,t))}}function Uk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $Z({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qZ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VZ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function FZ(e=gs){if(e===gs)return s4;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function s4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HZ=Math.sqrt(50),KZ=Math.sqrt(10),YZ=Math.sqrt(2);function Km(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),l=o>=HZ?10:o>=KZ?5:o>=YZ?2:1;let c,f,h;return i<0?(h=Math.pow(10,-i)/l,c=Math.round(e*h),f=Math.round(t*h),c/h<e&&++c,f/h>t&&--f,h=-h):(h=Math.pow(10,i)*l,c=Math.round(e/h),f=Math.round(t/h),c*h<e&&++c,f*h>t&&--f),f<c&&.5<=n&&n<2?Km(e,t,n*2):[c,f,h]}function m1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,l]=r?Km(t,e,n):Km(e,t,n);if(!(o>=i))return[];const c=o-i+1,f=new Array(c);if(r)if(l<0)for(let h=0;h<c;++h)f[h]=(o-h)/-l;else for(let h=0;h<c;++h)f[h]=(o-h)*l;else if(l<0)for(let h=0;h<c;++h)f[h]=(i+h)/-l;else for(let h=0;h<c;++h)f[h]=(i+h)*l;return f}function p1(e,t,n){return t=+t,e=+e,n=+n,Km(e,t,n)[2]}function g1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?p1(t,e,n):p1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function $k(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function qk(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function o4(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?s4:FZ(i);r>n;){if(r-n>600){const f=r-n+1,h=t-n+1,m=Math.log(f),g=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*g*(f-g)/f)*(h-f/2<0?-1:1),b=Math.max(n,Math.floor(t-h*g/f+y)),S=Math.min(r,Math.floor(t+(f-h)*g/f+y));o4(e,t,b,S,i)}const o=e[t];let l=n,c=r;for(Nc(e,n,t),i(e[r],o)>0&&Nc(e,n,r);l<c;){for(Nc(e,l,c),++l,--c;i(e[l],o)<0;)++l;for(;i(e[c],o)>0;)--c}i(e[n],o)===0?Nc(e,n,c):(++c,Nc(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Nc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function GZ(e,t,n){if(e=Float64Array.from(BZ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qk(e);if(t>=1)return $k(e);var r,i=(r-1)*t,o=Math.floor(i),l=$k(o4(e,o).subarray(0,o+1)),c=qk(e.subarray(o+1));return l+(c-l)*(i-o)}}function WZ(e,t,n=i4){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,o=Math.floor(i),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(i-o)}}function QZ(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,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Ur(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function bi(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}const v1=Symbol("implicit");function lS(){var e=new Bk,t=[],n=[],r=v1;function i(o){let l=e.get(o);if(l===void 0){if(r!==v1)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Bk;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return lS(t,n).unknown(r)},Ur.apply(i,arguments),i}function uS(){var e=lS().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,l,c=!1,f=0,h=0,m=.5;delete e.unknown;function g(){var y=t().length,b=i<r,S=b?i:r,j=b?r:i;o=(j-S)/Math.max(1,y-f+h*2),c&&(o=Math.floor(o)),S+=(j-S-o*(y-f))*m,l=o*(1-f),c&&(S=Math.round(S),l=Math.round(l));var A=QZ(y).map(function(O){return S+o*O});return n(b?A.reverse():A)}return e.domain=function(y){return arguments.length?(t(y),g()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,g()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,c=!0,g()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(y){return arguments.length?(c=!!y,g()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,h=+y),g()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),g()):f},e.paddingOuter=function(y){return arguments.length?(h=+y,g()):h},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),g()):m},e.copy=function(){return uS(t(),[r,i]).round(c).paddingInner(f).paddingOuter(h).align(m)},Ur.apply(g(),arguments)}function l4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return l4(t())},e}function XZ(){return l4(uS.apply(null,arguments).paddingInner(1))}function cS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function u4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kf(){}var pf=.7,Ym=1/pf,Bl="\\s*([+-]?\\d+)\\s*",gf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZZ=/^#([0-9a-f]{3,8})$/,JZ=new RegExp(`^rgb\\(${Bl},${Bl},${Bl}\\)$`),eJ=new RegExp(`^rgb\\(${va},${va},${va}\\)$`),tJ=new RegExp(`^rgba\\(${Bl},${Bl},${Bl},${gf}\\)$`),nJ=new RegExp(`^rgba\\(${va},${va},${va},${gf}\\)$`),rJ=new RegExp(`^hsl\\(${gf},${va},${va}\\)$`),aJ=new RegExp(`^hsla\\(${gf},${va},${va},${gf}\\)$`),Vk={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};cS(Kf,vf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fk,formatHex:Fk,formatHex8:iJ,formatHsl:sJ,formatRgb:Hk,toString:Hk});function Fk(){return this.rgb().formatHex()}function iJ(){return this.rgb().formatHex8()}function sJ(){return c4(this).formatHsl()}function Hk(){return this.rgb().formatRgb()}function vf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ZZ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Kk(t):n===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$h(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$h(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=JZ.exec(e))?new Xn(t[1],t[2],t[3],1):(t=eJ.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tJ.exec(e))?$h(t[1],t[2],t[3],t[4]):(t=nJ.exec(e))?$h(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rJ.exec(e))?Wk(t[1],t[2]/100,t[3]/100,1):(t=aJ.exec(e))?Wk(t[1],t[2]/100,t[3]/100,t[4]):Vk.hasOwnProperty(e)?Kk(Vk[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function Kk(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function $h(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xn(e,t,n,r)}function oJ(e){return e instanceof Kf||(e=vf(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function y1(e,t,n,r){return arguments.length===1?oJ(e):new Xn(e,t,n,r??1)}function Xn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cS(Xn,y1,u4(Kf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pf:Math.pow(pf,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(yo(this.r),yo(this.g),yo(this.b),Gm(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:Yk,formatHex:Yk,formatHex8:lJ,formatRgb:Gk,toString:Gk}));function Yk(){return`#${no(this.r)}${no(this.g)}${no(this.b)}`}function lJ(){return`#${no(this.r)}${no(this.g)}${no(this.b)}${no((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gk(){const e=Gm(this.opacity);return`${e===1?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${e===1?")":`, ${e})`}`}function Gm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function no(e){return e=yo(e),(e<16?"0":"")+e.toString(16)}function Wk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xr(e,t,n,r)}function c4(e){if(e instanceof Xr)return new Xr(e.h,e.s,e.l,e.opacity);if(e instanceof Kf||(e=vf(e)),!e)return new Xr;if(e instanceof Xr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-i,f=(o+i)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?o+i:2-o-i,l*=60):c=f>0&&f<1?0:l,new Xr(l,c,f,e.opacity)}function uJ(e,t,n,r){return arguments.length===1?c4(e):new Xr(e,t,n,r??1)}function Xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cS(Xr,uJ,u4(Kf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pf:Math.pow(pf,e),new Xr(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 Xn(xx(e>=240?e-240:e+120,i,r),xx(e,i,r),xx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Xr(Qk(this.h),qh(this.s),qh(this.l),Gm(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(){const e=Gm(this.opacity);return`${e===1?"hsl(":"hsla("}${Qk(this.h)}, ${qh(this.s)*100}%, ${qh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qk(e){return e=(e||0)%360,e<0?e+360:e}function qh(e){return Math.max(0,Math.min(1,e||0))}function xx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fS=e=>()=>e;function cJ(e,t){return function(n){return e+n*t}}function fJ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function dJ(e){return(e=+e)==1?f4:function(t,n){return n-t?fJ(t,n,e):fS(isNaN(t)?n:t)}}function f4(e,t){var n=t-e;return n?cJ(e,n):fS(isNaN(e)?t:e)}const Xk=(function e(t){var n=dJ(t);function r(i,o){var l=n((i=y1(i)).r,(o=y1(o)).r),c=n(i.g,o.g),f=n(i.b,o.b),h=f4(i.opacity,o.opacity);return function(m){return i.r=l(m),i.g=c(m),i.b=f(m),i.opacity=h(m),i+""}}return r.gamma=e,r})(1);function hJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function mJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)i[l]=xu(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=i[l](c);return o}}function gJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function vJ(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=xu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var x1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bx=new RegExp(x1.source,"g");function yJ(e){return function(){return e}}function xJ(e){return function(t){return e(t)+""}}function bJ(e,t){var n=x1.lastIndex=bx.lastIndex=0,r,i,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=x1.exec(e))&&(i=bx.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(i=i[0])?c[l]?c[l]+=i:c[++l]=i:(c[++l]=null,f.push({i:l,x:Wm(r,i)})),n=bx.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?xJ(f[0].x):yJ(t):(t=f.length,function(h){for(var m=0,g;m<t;++m)c[(g=f[m]).i]=g.x(h);return c.join("")})}function xu(e,t){var n=typeof t,r;return t==null||n==="boolean"?fS(t):(n==="number"?Wm:n==="string"?(r=vf(t))?(t=r,Xk):bJ:t instanceof vf?Xk:t instanceof Date?gJ:mJ(t)?hJ:Array.isArray(t)?pJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vJ:Wm)(e,t)}function dS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function wJ(e,t){t===void 0&&(t=e,e=xu);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function SJ(e){return function(){return e}}function Qm(e){return+e}var Zk=[0,1];function Rn(e){return e}function b1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:SJ(isNaN(t)?NaN:.5)}function jJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function AJ(e,t,n){var r=e[0],i=e[1],o=t[0],l=t[1];return i<r?(r=b1(i,r),o=n(l,o)):(r=b1(r,i),o=n(o,l)),function(c){return o(r(c))}}function OJ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=b1(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=Hf(e,c,1,r)-1;return o[f](i[f](c))}}function Yf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eg(){var e=Zk,t=Zk,n=xu,r,i,o,l=Rn,c,f,h;function m(){var y=Math.min(e.length,t.length);return l!==Rn&&(l=jJ(e[0],e[y-1])),c=y>2?OJ:AJ,f=h=null,g}function g(y){return y==null||isNaN(y=+y)?o:(f||(f=c(e.map(r),t,n)))(r(l(y)))}return g.invert=function(y){return l(i((h||(h=c(t,e.map(r),Wm)))(y)))},g.domain=function(y){return arguments.length?(e=Array.from(y,Qm),m()):e.slice()},g.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},g.rangeRound=function(y){return t=Array.from(y),n=dS,m()},g.clamp=function(y){return arguments.length?(l=y?!0:Rn,m()):l!==Rn},g.interpolate=function(y){return arguments.length?(n=y,m()):n},g.unknown=function(y){return arguments.length?(o=y,g):o},function(y,b){return r=y,i=b,m()}}function hS(){return eg()(Rn,Rn)}function EJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xm(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function su(e){return e=Xm(Math.abs(e)),e?e[1]:NaN}function NJ(e,t){return function(n,r){for(var i=n.length,o=[],l=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function TJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yf(e){if(!(t=CJ.exec(e)))throw new Error("invalid format: "+e);var t;return new mS({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]})}yf.prototype=mS.prototype;function mS(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+""}mS.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 kJ(e){e: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 e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var d4;function MJ(e,t){var n=Xm(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(d4=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Xm(e,Math.max(0,t+o-1))[0]}function Jk(e,t){var n=Xm(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const eM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:EJ,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)=>Jk(e*100,t),r:Jk,s:MJ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tM(e){return e}var nM=Array.prototype.map,rM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PJ(e){var t=e.grouping===void 0||e.thousands===void 0?tM:NJ(nM.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+"",o=e.numerals===void 0?tM:TJ(nM.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function h(g){g=yf(g);var y=g.fill,b=g.align,S=g.sign,j=g.symbol,A=g.zero,O=g.width,T=g.comma,N=g.precision,C=g.trim,M=g.type;M==="n"?(T=!0,M="g"):eM[M]||(N===void 0&&(N=12),C=!0,M="g"),(A||y==="0"&&b==="=")&&(A=!0,y="0",b="=");var _=j==="$"?n:j==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",k=j==="$"?r:/[%p]/.test(M)?l:"",D=eM[M],B=/[defgprs%]/.test(M);N=N===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function K($){var Z=_,le=k,de,me,q;if(M==="c")le=D($)+le,$="";else{$=+$;var W=$<0||1/$<0;if($=isNaN($)?f:D(Math.abs($),N),C&&($=kJ($)),W&&+$==0&&S!=="+"&&(W=!1),Z=(W?S==="("?S:c:S==="-"||S==="("?"":S)+Z,le=(M==="s"?rM[8+d4/3]:"")+le+(W&&S==="("?")":""),B){for(de=-1,me=$.length;++de<me;)if(q=$.charCodeAt(de),48>q||q>57){le=(q===46?i+$.slice(de+1):$.slice(de))+le,$=$.slice(0,de);break}}}T&&!A&&($=t($,1/0));var Y=Z.length+$.length+le.length,oe=Y<O?new Array(O-Y+1).join(y):"";switch(T&&A&&($=t(oe+$,oe.length?O-le.length:1/0),oe=""),b){case"<":$=Z+$+le+oe;break;case"=":$=Z+oe+$+le;break;case"^":$=oe.slice(0,Y=oe.length>>1)+Z+$+le+oe.slice(Y);break;default:$=oe+Z+$+le;break}return o($)}return K.toString=function(){return g+""},K}function m(g,y){var b=h((g=yf(g),g.type="f",g)),S=Math.max(-8,Math.min(8,Math.floor(su(y)/3)))*3,j=Math.pow(10,-S),A=rM[8+S/3];return function(O){return b(j*O)+A}}return{format:h,formatPrefix:m}}var Vh,pS,h4;_J({thousands:",",grouping:[3],currency:["$",""]});function _J(e){return Vh=PJ(e),pS=Vh.format,h4=Vh.formatPrefix,Vh}function DJ(e){return Math.max(0,-su(Math.abs(e)))}function RJ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(su(t)/3)))*3-su(Math.abs(e)))}function zJ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,su(t)-su(e))+1}function m4(e,t,n,r){var i=g1(e,t,n),o;switch(r=yf(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=RJ(i,l))&&(r.precision=o),h4(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=zJ(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=DJ(i))&&(r.precision=o-(r.type==="%")*2);break}}return pS(r)}function Os(e){var t=e.domain;return e.ticks=function(n){var r=t();return m1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return m4(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,l=r[i],c=r[o],f,h,m=10;for(c<l&&(h=l,l=c,c=h,h=i,i=o,o=h);m-- >0;){if(h=p1(l,c,n),h===f)return r[i]=l,r[o]=c,t(r);if(h>0)l=Math.floor(l/h)*h,c=Math.ceil(c/h)*h;else if(h<0)l=Math.ceil(l*h)/h,c=Math.floor(c*h)/h;else break;f=h}return e},e}function p4(){var e=hS();return e.copy=function(){return Yf(e,p4())},Ur.apply(e,arguments),Os(e)}function g4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Qm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return g4(e).unknown(t)},e=arguments.length?Array.from(e,Qm):[0,1],Os(n)}function v4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],l;return o<i&&(l=n,n=r,r=l,l=i,i=o,o=l),e[n]=t.floor(i),e[r]=t.ceil(o),e}function aM(e){return Math.log(e)}function iM(e){return Math.exp(e)}function LJ(e){return-Math.log(-e)}function IJ(e){return-Math.exp(-e)}function BJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function UJ(e){return e===10?BJ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $J(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 sM(e){return(t,n)=>-e(-t,n)}function gS(e){const t=e(aM,iM),n=t.domain;let r=10,i,o;function l(){return i=$J(r),o=UJ(r),n()[0]<0?(i=sM(i),o=sM(o),e(LJ,IJ)):e(aM,iM),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let h=f[0],m=f[f.length-1];const g=m<h;g&&([h,m]=[m,h]);let y=i(h),b=i(m),S,j;const A=c==null?10:+c;let O=[];if(!(r%1)&&b-y<A){if(y=Math.floor(y),b=Math.ceil(b),h>0){for(;y<=b;++y)for(S=1;S<r;++S)if(j=y<0?S/o(-y):S*o(y),!(j<h)){if(j>m)break;O.push(j)}}else for(;y<=b;++y)for(S=r-1;S>=1;--S)if(j=y>0?S/o(-y):S*o(y),!(j<h)){if(j>m)break;O.push(j)}O.length*2<A&&(O=m1(h,m,A))}else O=m1(y,b,Math.min(b-y,A)).map(o);return g?O.reverse():O},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=yf(f)).precision==null&&(f.trim=!0),f=pS(f)),c===1/0)return f;const h=Math.max(1,r*c/t.ticks().length);return m=>{let g=m/o(Math.round(i(m)));return g*r<r-.5&&(g*=r),g<=h?f(m):""}},t.nice=()=>n(v4(n(),{floor:c=>o(Math.floor(i(c))),ceil:c=>o(Math.ceil(i(c)))})),t}function y4(){const e=gS(eg()).domain([1,10]);return e.copy=()=>Yf(e,y4()).base(e.base()),Ur.apply(e,arguments),e}function oM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function lM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vS(e){var t=1,n=e(oM(t),lM(t));return n.constant=function(r){return arguments.length?e(oM(t=+r),lM(t)):t},Os(n)}function x4(){var e=vS(eg());return e.copy=function(){return Yf(e,x4()).constant(e.constant())},Ur.apply(e,arguments)}function uM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qJ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function VJ(e){return e<0?-e*e:e*e}function yS(e){var t=e(Rn,Rn),n=1;function r(){return n===1?e(Rn,Rn):n===.5?e(qJ,VJ):e(uM(n),uM(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Os(t)}function xS(){var e=yS(eg());return e.copy=function(){return Yf(e,xS()).exponent(e.exponent())},Ur.apply(e,arguments),e}function FJ(){return xS.apply(null,arguments).exponent(.5)}function cM(e){return Math.sign(e)*e*e}function HJ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function b4(){var e=hS(),t=[0,1],n=!1,r;function i(o){var l=HJ(e(o));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(o){return e.invert(cM(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Qm)).map(cM)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return b4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ur.apply(i,arguments),Os(i)}function w4(){var e=[],t=[],n=[],r;function i(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=WZ(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[Hf(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(gs),i()},o.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return w4().domain(e).range(t).unknown(r)},Ur.apply(o,arguments)}function S4(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function l(f){return f!=null&&f<=f?i[Hf(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},l.invertExtent=function(f){var h=i.indexOf(f);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return S4().domain([e,t]).range(i).unknown(o)},Ur.apply(Os(l),arguments)}function j4(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Hf(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return j4().domain(e).range(t).unknown(n)},Ur.apply(i,arguments)}const wx=new Date,Sx=new Date;function Xt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const l=i(o),c=i.ceil(o);return o-l<c-o?l:c},i.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),i.range=(o,l,c)=>{const f=[];if(o=i.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let h;do f.push(h=new Date(+o)),t(o,c),e(o);while(h<o&&o<l);return f},i.filter=o=>Xt(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(i.count=(o,l)=>(wx.setTime(+o),Sx.setTime(+l),e(wx),e(Sx),Math.floor(n(wx,Sx))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?l=>r(l)%o===0:l=>i.count(0,l)%o===0):i)),i}const Zm=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zm);Zm.range;const Xa=1e3,_r=Xa*60,Za=_r*60,ui=Za*24,bS=ui*7,fM=ui*30,jx=ui*365,ro=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xa)},(e,t)=>(t-e)/Xa,e=>e.getUTCSeconds());ro.range;const wS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xa)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getMinutes());wS.range;const SS=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCMinutes());SS.range;const jS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xa-e.getMinutes()*_r)},(e,t)=>{e.setTime(+e+t*Za)},(e,t)=>(t-e)/Za,e=>e.getHours());jS.range;const AS=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Za)},(e,t)=>(t-e)/Za,e=>e.getUTCHours());AS.range;const Gf=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_r)/ui,e=>e.getDate()-1);Gf.range;const tg=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ui,e=>e.getUTCDate()-1);tg.range;const A4=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ui,e=>Math.floor(e/ui));A4.range;function _o(e){return Xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*_r)/bS)}const ng=_o(0),Jm=_o(1),KJ=_o(2),YJ=_o(3),ou=_o(4),GJ=_o(5),WJ=_o(6);ng.range;Jm.range;KJ.range;YJ.range;ou.range;GJ.range;WJ.range;function Do(e){return Xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bS)}const rg=Do(0),ep=Do(1),QJ=Do(2),XJ=Do(3),lu=Do(4),ZJ=Do(5),JJ=Do(6);rg.range;ep.range;QJ.range;XJ.range;lu.range;ZJ.range;JJ.range;const OS=Xt(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());OS.range;const ES=Xt(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());ES.range;const ci=Xt(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());ci.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});ci.range;const fi=Xt(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());fi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});fi.range;function O4(e,t,n,r,i,o){const l=[[ro,1,Xa],[ro,5,5*Xa],[ro,15,15*Xa],[ro,30,30*Xa],[o,1,_r],[o,5,5*_r],[o,15,15*_r],[o,30,30*_r],[i,1,Za],[i,3,3*Za],[i,6,6*Za],[i,12,12*Za],[r,1,ui],[r,2,2*ui],[n,1,bS],[t,1,fM],[t,3,3*fM],[e,1,jx]];function c(h,m,g){const y=m<h;y&&([h,m]=[m,h]);const b=g&&typeof g.range=="function"?g:f(h,m,g),S=b?b.range(h,+m+1):[];return y?S.reverse():S}function f(h,m,g){const y=Math.abs(m-h)/g,b=oS(([,,A])=>A).right(l,y);if(b===l.length)return e.every(g1(h/jx,m/jx,g));if(b===0)return Zm.every(Math.max(g1(h,m,g),1));const[S,j]=l[y/l[b-1][2]<l[b][2]/y?b-1:b];return S.every(j)}return[c,f]}const[eee,tee]=O4(fi,ES,rg,A4,AS,SS),[nee,ree]=O4(ci,OS,ng,Gf,jS,wS);function Ax(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 Ox(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 Tc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function aee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,h=Cc(i),m=kc(i),g=Cc(o),y=kc(o),b=Cc(l),S=kc(l),j=Cc(c),A=kc(c),O=Cc(f),T=kc(f),N={a:W,A:Y,b:oe,B:ne,c:null,d:vM,e:vM,f:Nee,g:Lee,G:Bee,H:Aee,I:Oee,j:Eee,L:E4,m:Tee,M:Cee,p:R,q:F,Q:bM,s:wM,S:kee,u:Mee,U:Pee,V:_ee,w:Dee,W:Ree,x:null,X:null,y:zee,Y:Iee,Z:Uee,"%":xM},C={a:ae,A:se,b:ve,B:Oe,c:null,d:yM,e:yM,f:Fee,g:ete,G:nte,H:$ee,I:qee,j:Vee,L:T4,m:Hee,M:Kee,p:fe,q:Qe,Q:bM,s:wM,S:Yee,u:Gee,U:Wee,V:Qee,w:Xee,W:Zee,x:null,X:null,y:Jee,Y:tte,Z:rte,"%":xM},M={a:K,A:$,b:Z,B:le,c:de,d:pM,e:pM,f:bee,g:mM,G:hM,H:gM,I:gM,j:gee,L:xee,m:pee,M:vee,p:B,q:mee,Q:See,s:jee,S:yee,u:uee,U:cee,V:fee,w:lee,W:dee,x:me,X:q,y:mM,Y:hM,Z:hee,"%":wee};N.x=_(n,N),N.X=_(r,N),N.c=_(t,N),C.x=_(n,C),C.X=_(r,C),C.c=_(t,C);function _(J,Te){return function(Pe){var ie=[],Dt=-1,Be=0,Rt=J.length,zt,mr,Oi;for(Pe instanceof Date||(Pe=new Date(+Pe));++Dt<Rt;)J.charCodeAt(Dt)===37&&(ie.push(J.slice(Be,Dt)),(mr=dM[zt=J.charAt(++Dt)])!=null?zt=J.charAt(++Dt):mr=zt==="e"?" ":"0",(Oi=Te[zt])&&(zt=Oi(Pe,mr)),ie.push(zt),Be=Dt+1);return ie.push(J.slice(Be,Dt)),ie.join("")}}function k(J,Te){return function(Pe){var ie=Tc(1900,void 0,1),Dt=D(ie,J,Pe+="",0),Be,Rt;if(Dt!=Pe.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Te&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Be=Ox(Tc(ie.y,0,1)),Rt=Be.getUTCDay(),Be=Rt>4||Rt===0?ep.ceil(Be):ep(Be),Be=tg.offset(Be,(ie.V-1)*7),ie.y=Be.getUTCFullYear(),ie.m=Be.getUTCMonth(),ie.d=Be.getUTCDate()+(ie.w+6)%7):(Be=Ax(Tc(ie.y,0,1)),Rt=Be.getDay(),Be=Rt>4||Rt===0?Jm.ceil(Be):Jm(Be),Be=Gf.offset(Be,(ie.V-1)*7),ie.y=Be.getFullYear(),ie.m=Be.getMonth(),ie.d=Be.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Rt="Z"in ie?Ox(Tc(ie.y,0,1)).getUTCDay():Ax(Tc(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Rt+5)%7:ie.w+ie.U*7-(Rt+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,Ox(ie)):Ax(ie)}}function D(J,Te,Pe,ie){for(var Dt=0,Be=Te.length,Rt=Pe.length,zt,mr;Dt<Be;){if(ie>=Rt)return-1;if(zt=Te.charCodeAt(Dt++),zt===37){if(zt=Te.charAt(Dt++),mr=M[zt in dM?Te.charAt(Dt++):zt],!mr||(ie=mr(J,Pe,ie))<0)return-1}else if(zt!=Pe.charCodeAt(ie++))return-1}return ie}function B(J,Te,Pe){var ie=h.exec(Te.slice(Pe));return ie?(J.p=m.get(ie[0].toLowerCase()),Pe+ie[0].length):-1}function K(J,Te,Pe){var ie=b.exec(Te.slice(Pe));return ie?(J.w=S.get(ie[0].toLowerCase()),Pe+ie[0].length):-1}function $(J,Te,Pe){var ie=g.exec(Te.slice(Pe));return ie?(J.w=y.get(ie[0].toLowerCase()),Pe+ie[0].length):-1}function Z(J,Te,Pe){var ie=O.exec(Te.slice(Pe));return ie?(J.m=T.get(ie[0].toLowerCase()),Pe+ie[0].length):-1}function le(J,Te,Pe){var ie=j.exec(Te.slice(Pe));return ie?(J.m=A.get(ie[0].toLowerCase()),Pe+ie[0].length):-1}function de(J,Te,Pe){return D(J,t,Te,Pe)}function me(J,Te,Pe){return D(J,n,Te,Pe)}function q(J,Te,Pe){return D(J,r,Te,Pe)}function W(J){return l[J.getDay()]}function Y(J){return o[J.getDay()]}function oe(J){return f[J.getMonth()]}function ne(J){return c[J.getMonth()]}function R(J){return i[+(J.getHours()>=12)]}function F(J){return 1+~~(J.getMonth()/3)}function ae(J){return l[J.getUTCDay()]}function se(J){return o[J.getUTCDay()]}function ve(J){return f[J.getUTCMonth()]}function Oe(J){return c[J.getUTCMonth()]}function fe(J){return i[+(J.getUTCHours()>=12)]}function Qe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var Te=_(J+="",N);return Te.toString=function(){return J},Te},parse:function(J){var Te=k(J+="",!1);return Te.toString=function(){return J},Te},utcFormat:function(J){var Te=_(J+="",C);return Te.toString=function(){return J},Te},utcParse:function(J){var Te=k(J+="",!0);return Te.toString=function(){return J},Te}}}var dM={"-":"",_:" ",0:"0"},fn=/^\s*\d+/,iee=/^%/,see=/[\\^$*+?|[\]().{}]/g;function Ge(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function oee(e){return e.replace(see,"\\$&")}function Cc(e){return new RegExp("^(?:"+e.map(oee).join("|")+")","i")}function kc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function lee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function uee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hM(e,t,n){var r=fn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hee(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 mee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function pee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function gee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function vee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function yee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bee(e,t,n){var r=fn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wee(e,t,n){var r=iee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function See(e,t,n){var r=fn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=fn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vM(e,t){return Ge(e.getDate(),t,2)}function Aee(e,t){return Ge(e.getHours(),t,2)}function Oee(e,t){return Ge(e.getHours()%12||12,t,2)}function Eee(e,t){return Ge(1+Gf.count(ci(e),e),t,3)}function E4(e,t){return Ge(e.getMilliseconds(),t,3)}function Nee(e,t){return E4(e,t)+"000"}function Tee(e,t){return Ge(e.getMonth()+1,t,2)}function Cee(e,t){return Ge(e.getMinutes(),t,2)}function kee(e,t){return Ge(e.getSeconds(),t,2)}function Mee(e){var t=e.getDay();return t===0?7:t}function Pee(e,t){return Ge(ng.count(ci(e)-1,e),t,2)}function N4(e){var t=e.getDay();return t>=4||t===0?ou(e):ou.ceil(e)}function _ee(e,t){return e=N4(e),Ge(ou.count(ci(e),e)+(ci(e).getDay()===4),t,2)}function Dee(e){return e.getDay()}function Ree(e,t){return Ge(Jm.count(ci(e)-1,e),t,2)}function zee(e,t){return Ge(e.getFullYear()%100,t,2)}function Lee(e,t){return e=N4(e),Ge(e.getFullYear()%100,t,2)}function Iee(e,t){return Ge(e.getFullYear()%1e4,t,4)}function Bee(e,t){var n=e.getDay();return e=n>=4||n===0?ou(e):ou.ceil(e),Ge(e.getFullYear()%1e4,t,4)}function Uee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ge(t/60|0,"0",2)+Ge(t%60,"0",2)}function yM(e,t){return Ge(e.getUTCDate(),t,2)}function $ee(e,t){return Ge(e.getUTCHours(),t,2)}function qee(e,t){return Ge(e.getUTCHours()%12||12,t,2)}function Vee(e,t){return Ge(1+tg.count(fi(e),e),t,3)}function T4(e,t){return Ge(e.getUTCMilliseconds(),t,3)}function Fee(e,t){return T4(e,t)+"000"}function Hee(e,t){return Ge(e.getUTCMonth()+1,t,2)}function Kee(e,t){return Ge(e.getUTCMinutes(),t,2)}function Yee(e,t){return Ge(e.getUTCSeconds(),t,2)}function Gee(e){var t=e.getUTCDay();return t===0?7:t}function Wee(e,t){return Ge(rg.count(fi(e)-1,e),t,2)}function C4(e){var t=e.getUTCDay();return t>=4||t===0?lu(e):lu.ceil(e)}function Qee(e,t){return e=C4(e),Ge(lu.count(fi(e),e)+(fi(e).getUTCDay()===4),t,2)}function Xee(e){return e.getUTCDay()}function Zee(e,t){return Ge(ep.count(fi(e)-1,e),t,2)}function Jee(e,t){return Ge(e.getUTCFullYear()%100,t,2)}function ete(e,t){return e=C4(e),Ge(e.getUTCFullYear()%100,t,2)}function tte(e,t){return Ge(e.getUTCFullYear()%1e4,t,4)}function nte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?lu(e):lu.ceil(e),Ge(e.getUTCFullYear()%1e4,t,4)}function rte(){return"+0000"}function xM(){return"%"}function bM(e){return+e}function wM(e){return Math.floor(+e/1e3)}var jl,k4,M4;ate({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 ate(e){return jl=aee(e),k4=jl.format,jl.parse,M4=jl.utcFormat,jl.utcParse,jl}function ite(e){return new Date(e)}function ste(e){return e instanceof Date?+e:+new Date(+e)}function NS(e,t,n,r,i,o,l,c,f,h){var m=hS(),g=m.invert,y=m.domain,b=h(".%L"),S=h(":%S"),j=h("%I:%M"),A=h("%I %p"),O=h("%a %d"),T=h("%b %d"),N=h("%B"),C=h("%Y");function M(_){return(f(_)<_?b:c(_)<_?S:l(_)<_?j:o(_)<_?A:r(_)<_?i(_)<_?O:T:n(_)<_?N:C)(_)}return m.invert=function(_){return new Date(g(_))},m.domain=function(_){return arguments.length?y(Array.from(_,ste)):y().map(ite)},m.ticks=function(_){var k=y();return e(k[0],k[k.length-1],_??10)},m.tickFormat=function(_,k){return k==null?M:h(k)},m.nice=function(_){var k=y();return(!_||typeof _.range!="function")&&(_=t(k[0],k[k.length-1],_??10)),_?y(v4(k,_)):m},m.copy=function(){return Yf(m,NS(e,t,n,r,i,o,l,c,f,h))},m}function ote(){return Ur.apply(NS(nee,ree,ci,OS,ng,Gf,jS,wS,ro,k4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lte(){return Ur.apply(NS(eee,tee,fi,ES,rg,tg,AS,SS,ro,M4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ag(){var e=0,t=1,n,r,i,o,l=Rn,c=!1,f;function h(g){return g==null||isNaN(g=+g)?f:l(i===0?.5:(g=(o(g)-n)*i,c?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t]=g,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(g){return arguments.length?(c=!!g,h):c},h.interpolator=function(g){return arguments.length?(l=g,h):l};function m(g){return function(y){var b,S;return arguments.length?([b,S]=y,l=g(b,S),h):[l(0),l(1)]}}return h.range=m(xu),h.rangeRound=m(dS),h.unknown=function(g){return arguments.length?(f=g,h):f},function(g){return o=g,n=g(e),r=g(t),i=n===r?0:1/(r-n),h}}function Es(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function P4(){var e=Os(ag()(Rn));return e.copy=function(){return Es(e,P4())},bi.apply(e,arguments)}function _4(){var e=gS(ag()).domain([1,10]);return e.copy=function(){return Es(e,_4()).base(e.base())},bi.apply(e,arguments)}function D4(){var e=vS(ag());return e.copy=function(){return Es(e,D4()).constant(e.constant())},bi.apply(e,arguments)}function TS(){var e=yS(ag());return e.copy=function(){return Es(e,TS()).exponent(e.exponent())},bi.apply(e,arguments)}function ute(){return TS.apply(null,arguments).exponent(.5)}function R4(){var e=[],t=Rn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Hf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(gs),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>GZ(e,o/r))},n.copy=function(){return R4(t).domain(e)},bi.apply(n,arguments)}function ig(){var e=0,t=.5,n=1,r=1,i,o,l,c,f,h=Rn,m,g=!1,y;function b(j){return isNaN(j=+j)?y:(j=.5+((j=+m(j))-o)*(r*j<r*o?c:f),h(g?Math.max(0,Math.min(1,j)):j))}b.domain=function(j){return arguments.length?([e,t,n]=j,i=m(e=+e),o=m(t=+t),l=m(n=+n),c=i===o?0:.5/(o-i),f=o===l?0:.5/(l-o),r=o<i?-1:1,b):[e,t,n]},b.clamp=function(j){return arguments.length?(g=!!j,b):g},b.interpolator=function(j){return arguments.length?(h=j,b):h};function S(j){return function(A){var O,T,N;return arguments.length?([O,T,N]=A,h=wJ(j,[O,T,N]),b):[h(0),h(.5),h(1)]}}return b.range=S(xu),b.rangeRound=S(dS),b.unknown=function(j){return arguments.length?(y=j,b):y},function(j){return m=j,i=j(e),o=j(t),l=j(n),c=i===o?0:.5/(o-i),f=o===l?0:.5/(l-o),r=o<i?-1:1,b}}function z4(){var e=Os(ig()(Rn));return e.copy=function(){return Es(e,z4())},bi.apply(e,arguments)}function L4(){var e=gS(ig()).domain([.1,1,10]);return e.copy=function(){return Es(e,L4()).base(e.base())},bi.apply(e,arguments)}function I4(){var e=vS(ig());return e.copy=function(){return Es(e,I4()).constant(e.constant())},bi.apply(e,arguments)}function CS(){var e=yS(ig());return e.copy=function(){return Es(e,CS()).exponent(e.exponent())},bi.apply(e,arguments)}function cte(){return CS.apply(null,arguments).exponent(.5)}const Ic=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:uS,scaleDiverging:z4,scaleDivergingLog:L4,scaleDivergingPow:CS,scaleDivergingSqrt:cte,scaleDivergingSymlog:I4,scaleIdentity:g4,scaleImplicit:v1,scaleLinear:p4,scaleLog:y4,scaleOrdinal:lS,scalePoint:XZ,scalePow:xS,scaleQuantile:w4,scaleQuantize:S4,scaleRadial:b4,scaleSequential:P4,scaleSequentialLog:_4,scaleSequentialPow:TS,scaleSequentialQuantile:R4,scaleSequentialSqrt:ute,scaleSequentialSymlog:D4,scaleSqrt:FJ,scaleSymlog:x4,scaleThreshold:j4,scaleTime:ote,scaleUtc:lte,tickFormat:m4},Symbol.toStringTag,{value:"Module"}));var wi=e=>e.chartData,B4=Q([wi],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),U4=(e,t,n,r)=>r?B4(e):wi(e),$4=(e,t,n)=>n?B4(e):wi(e);function xs(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(ft(t)&&ft(n))return!0}return!1}function SM(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function q4(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(ft(n))i=n;else if(typeof n=="function")return;if(ft(r))o=r;else if(typeof r=="function")return;var l=[i,o];if(xs(l))return l}}function fte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(xs(r))return SM(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,l,c;if(i==="auto")t!=null&&(l=Math.min(...t));else if(he(i))l=i;else if(typeof i=="function")try{t!=null&&(l=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&_C.test(i)){var f=_C.exec(i);if(f==null||f[1]==null||t==null)l=void 0;else{var h=+f[1];l=t[0]-h}}else l=t==null?void 0:t[0];if(o==="auto")t!=null&&(c=Math.max(...t));else if(he(o))c=o;else if(typeof o=="function")try{t!=null&&(c=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&DC.test(o)){var m=DC.exec(o);if(m==null||m[1]==null||t==null)c=void 0;else{var g=+m[1];c=t[1]+g}}else c=t==null?void 0:t[1];var y=[l,c];if(xs(y))return t==null?y:SM(y,t,n)}}}var bu=1e9,dte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},MS,bt=!0,Ir="[DecimalError] ",xo=Ir+"Invalid argument: ",kS=Ir+"Exponent out of range: ",wu=Math.floor,Qs=Math.pow,hte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cr,on=1e7,pt=7,V4=9007199254740991,tp=wu(V4/pt),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*pt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return ti(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return ct(ti(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return Ht(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(cr))throw Error(Ir+"NaN");if(n.s<1)throw Error(Ir+(n.s?"NaN":"-Infinity"));return n.eq(cr)?new r(0):(bt=!1,t=ti(xf(n,o),xf(e,o),o),bt=!0,ct(t,i))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?K4(t,e):F4(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ir+"NaN");return n.s?(bt=!1,t=ti(n,e,0,1).times(e),bt=!0,n.minus(t)):ct(new r(n),i)};pe.naturalExponential=pe.exp=function(){return H4(this)};pe.naturalLogarithm=pe.ln=function(){return xf(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?F4(t,e):K4(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(xo+e);if(t=Ht(i)+1,r=i.d.length-1,n=r*pt+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};pe.squareRoot=pe.sqrt=function(){var e,t,n,r,i,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(Ir+"NaN")}for(e=Ht(c),bt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=pa(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=wu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=l=n+3;;)if(o=r,r=o.plus(ti(c,o,l+2)).times(.5),pa(o.d).slice(0,l)===(t=pa(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(ct(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return bt=!0,ct(r,n)};pe.times=pe.mul=function(e){var t,n,r,i,o,l,c,f,h,m=this,g=m.constructor,y=m.d,b=(e=new g(e)).d;if(!m.s||!e.s)return new g(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,h=b.length,f<h&&(o=y,y=b,b=o,l=f,f=h,h=l),o=[],l=f+h,r=l;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,i=f+r;i>r;)c=o[i]+b[r]*y[i-r-1]+t,o[i--]=c%on|0,t=c/on|0;o[i]=(o[i]+t)%on|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,bt?ct(e,g.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ba(e,0,bu),t===void 0?t=r.rounding:ba(t,0,8),ct(n,e+Ht(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=To(r,!0):(ba(e,0,bu),t===void 0?t=i.rounding:ba(t,0,8),r=ct(new i(r),e+1,t),n=To(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?To(i):(ba(e,0,bu),t===void 0?t=o.rounding:ba(t,0,8),r=ct(new o(i),e+Ht(i)+1,t),n=To(r.abs(),!1,e+Ht(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return ct(new t(e),Ht(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,n,r,i,o,l,c=this,f=c.constructor,h=12,m=+(e=new f(e));if(!e.s)return new f(cr);if(c=new f(c),!c.s){if(e.s<1)throw Error(Ir+"Infinity");return c}if(c.eq(cr))return c;if(r=f.precision,e.eq(cr))return ct(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=V4){for(i=new f(cr),t=Math.ceil(r/pt+4),bt=!1;n%2&&(i=i.times(c),AM(i.d,t)),n=wu(n/2),n!==0;)c=c.times(c),AM(c.d,t);return bt=!0,e.s<0?new f(cr).div(i):ct(i,r)}}else if(o<0)throw Error(Ir+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,bt=!1,i=e.times(xf(c,r+h)),bt=!0,i=H4(i),i.s=o,i};pe.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Ht(i),r=To(i,n<=o.toExpNeg||n>=o.toExpPos)):(ba(e,1,bu),t===void 0?t=o.rounding:ba(t,0,8),i=ct(new o(i),e,t),n=Ht(i),r=To(i,e<=n||n<=o.toExpNeg,e)),r};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ba(e,1,bu),t===void 0?t=r.rounding:ba(t,0,8)),ct(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ht(e),n=e.constructor;return To(e,t<=n.toExpNeg||t>=n.toExpPos)};function F4(e,t){var n,r,i,o,l,c,f,h,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),bt?ct(t,g):t;if(f=e.d,h=t.d,l=e.e,i=t.e,f=f.slice(),o=l-i,o){for(o<0?(r=f,o=-o,c=h.length):(r=h,i=l,c=f.length),l=Math.ceil(g/pt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=h.length,c-o<0&&(o=c,r=h,h=f,f=r),n=0;o;)n=(f[--o]=f[o]+h[o]+n)/on|0,f[o]%=on;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,bt?ct(t,g):t}function ba(e,t,n){if(e!==~~e||e<t||e>n)throw Error(xo+e)}function pa(e){var t,n,r,i=e.length-1,o="",l=e[0];if(i>0){for(o+=l,t=1;t<i;t++)r=e[t]+"",n=pt-r.length,n&&(o+=ns(n)),o+=r;l=e[t],r=l+"",n=pt-r.length,n&&(o+=ns(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ti=(function(){function e(r,i){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*i+l,r[c]=o%on|0,l=o/on|0;return l&&r.unshift(l),r}function t(r,i,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,o){for(var l=0;o--;)r[o]-=l,l=r[o]<i[o]?1:0,r[o]=l*on+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,l){var c,f,h,m,g,y,b,S,j,A,O,T,N,C,M,_,k,D,B=r.constructor,K=r.s==i.s?1:-1,$=r.d,Z=i.d;if(!r.s)return new B(r);if(!i.s)throw Error(Ir+"Division by zero");for(f=r.e-i.e,k=Z.length,M=$.length,b=new B(K),S=b.d=[],h=0;Z[h]==($[h]||0);)++h;if(Z[h]>($[h]||0)&&--f,o==null?T=o=B.precision:l?T=o+(Ht(r)-Ht(i))+1:T=o,T<0)return new B(0);if(T=T/pt+2|0,h=0,k==1)for(m=0,Z=Z[0],T++;(h<M||m)&&T--;h++)N=m*on+($[h]||0),S[h]=N/Z|0,m=N%Z|0;else{for(m=on/(Z[0]+1)|0,m>1&&(Z=e(Z,m),$=e($,m),k=Z.length,M=$.length),C=k,j=$.slice(0,k),A=j.length;A<k;)j[A++]=0;D=Z.slice(),D.unshift(0),_=Z[0],Z[1]>=on/2&&++_;do m=0,c=t(Z,j,k,A),c<0?(O=j[0],k!=A&&(O=O*on+(j[1]||0)),m=O/_|0,m>1?(m>=on&&(m=on-1),g=e(Z,m),y=g.length,A=j.length,c=t(g,j,y,A),c==1&&(m--,n(g,k<y?D:Z,y))):(m==0&&(c=m=1),g=Z.slice()),y=g.length,y<A&&g.unshift(0),n(j,g,A),c==-1&&(A=j.length,c=t(Z,j,k,A),c<1&&(m++,n(j,k<A?D:Z,A))),A=j.length):c===0&&(m++,j=[0]),S[h++]=m,c&&j[0]?j[A++]=$[C]||0:(j=[$[C]],A=1);while((C++<M||j[0]!==void 0)&&T--)}return S[0]||S.shift(),b.e=f,ct(b,l?o+Ht(b)+1:o)}})();function H4(e,t){var n,r,i,o,l,c,f=0,h=0,m=e.constructor,g=m.precision;if(Ht(e)>16)throw Error(kS+Ht(e));if(!e.s)return new m(cr);for(bt=!1,c=g,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),h+=5;for(r=Math.log(Qs(2,h))/Math.LN10*2+5|0,c+=r,n=i=o=new m(cr),m.precision=c;;){if(i=ct(i.times(e),c),n=n.times(++f),l=o.plus(ti(i,n,c)),pa(l.d).slice(0,c)===pa(o.d).slice(0,c)){for(;h--;)o=ct(o.times(o),c);return m.precision=g,t==null?(bt=!0,ct(o,g)):o}o=l}}function Ht(e){for(var t=e.e*pt,n=e.d[0];n>=10;n/=10)t++;return t}function Ex(e,t,n){if(t>e.LN10.sd())throw bt=!0,n&&(e.precision=n),Error(Ir+"LN10 precision limit exceeded");return ct(new e(e.LN10),t)}function ns(e){for(var t="";e--;)t+="0";return t}function xf(e,t){var n,r,i,o,l,c,f,h,m,g=1,y=10,b=e,S=b.d,j=b.constructor,A=j.precision;if(b.s<1)throw Error(Ir+(b.s?"NaN":"-Infinity"));if(b.eq(cr))return new j(0);if(t==null?(bt=!1,h=A):h=t,b.eq(10))return t==null&&(bt=!0),Ex(j,h);if(h+=y,j.precision=h,n=pa(S),r=n.charAt(0),o=Ht(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=pa(b.d),r=n.charAt(0),g++;o=Ht(b),r>1?(b=new j("0."+n),o++):b=new j(r+"."+n.slice(1))}else return f=Ex(j,h+2,A).times(o+""),b=xf(new j(r+"."+n.slice(1)),h-y).plus(f),j.precision=A,t==null?(bt=!0,ct(b,A)):b;for(c=l=b=ti(b.minus(cr),b.plus(cr),h),m=ct(b.times(b),h),i=3;;){if(l=ct(l.times(m),h),f=c.plus(ti(l,new j(i),h)),pa(f.d).slice(0,h)===pa(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(Ex(j,h+2,A).times(o+""))),c=ti(c,new j(g),h),j.precision=A,t==null?(bt=!0,ct(c,A)):c;c=f,i+=2}}function jM(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=wu(n/pt),e.d=[],r=(n+1)%pt,n<0&&(r+=pt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=pt;r<i;)e.d.push(+t.slice(r,r+=pt));t=t.slice(r),r=pt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),bt&&(e.e>tp||e.e<-tp))throw Error(kS+n)}else e.s=0,e.e=0,e.d=[0];return e}function ct(e,t,n){var r,i,o,l,c,f,h,m,g=e.d;for(l=1,o=g[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=pt,i=t,h=g[m=0];else{if(m=Math.ceil((r+1)/pt),o=g.length,m>=o)return e;for(h=o=g[m],l=1;o>=10;o/=10)l++;r%=pt,i=r-pt+l}if(n!==void 0&&(o=Qs(10,l-i-1),c=h/o%10|0,f=t<0||g[m+1]!==void 0||h%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?h/Qs(10,l-i):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return f?(o=Ht(e),g.length=1,t=t-o-1,g[0]=Qs(10,(pt-t%pt)%pt),e.e=wu(-t/pt)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(r==0?(g.length=m,o=1,m--):(g.length=m+1,o=Qs(10,pt-r),g[m]=i>0?(h/Qs(10,l-i)%Qs(10,i)|0)*o:0),f)for(;;)if(m==0){(g[0]+=o)==on&&(g[0]=1,++e.e);break}else{if(g[m]+=o,g[m]!=on)break;g[m--]=0,o=1}for(r=g.length;g[--r]===0;)g.pop();if(bt&&(e.e>tp||e.e<-tp))throw Error(kS+Ht(e));return e}function K4(e,t){var n,r,i,o,l,c,f,h,m,g,y=e.constructor,b=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),bt?ct(t,b):t;if(f=e.d,g=t.d,r=t.e,h=e.e,f=f.slice(),l=h-r,l){for(m=l<0,m?(n=f,l=-l,c=g.length):(n=g,r=h,c=f.length),i=Math.max(Math.ceil(b/pt),c)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=g.length,m=i<c,m&&(c=i),i=0;i<c;i++)if(f[i]!=g[i]){m=f[i]<g[i];break}l=0}for(m&&(n=f,f=g,g=n,t.s=-t.s),c=f.length,i=g.length-c;i>0;--i)f[c++]=0;for(i=g.length;i>l;){if(f[--i]<g[i]){for(o=i;o&&f[--o]===0;)f[o]=on-1;--f[o],f[i]+=on}f[i]-=g[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,bt?ct(t,b):t):new y(0)}function To(e,t,n){var r,i=Ht(e),o=pa(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+ns(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ns(-i-1)+o,n&&(r=n-l)>0&&(o+=ns(r))):i>=l?(o+=ns(i+1-l),n&&(r=n-i-1)>0&&(o=o+"."+ns(r))):((r=i+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(o+="."),o+=ns(r))),e.s<0?"-"+o:o}function AM(e,t){if(e.length>t)return e.length=t,!0}function Y4(e){var t,n,r;function i(o){var l=this;if(!(l instanceof i))return new i(o);if(l.constructor=i,o instanceof i){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(xo+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return jM(l,o.toString())}else if(typeof o!="string")throw Error(xo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,hte.test(o))jM(l,o);else throw Error(xo+o)}if(i.prototype=pe,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=Y4,i.config=i.set=mte,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 mte(e){if(!e||typeof e!="object")throw Error(Ir+"Object expected");var t,n,r,i=["precision",1,bu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(wu(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(xo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(xo+n+": "+r);return this}var MS=Y4(dte);cr=new MS(1);const rt=MS;var pte=e=>e,G4={},W4=e=>e===G4,OM=e=>function t(){return arguments.length===0||arguments.length===1&&W4(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Q4=(e,t)=>e===1?t:OM(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(l=>l!==G4).length;return o>=e?t(...r):Q4(e-o,OM(function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var h=r.map(m=>W4(m)?c.shift():m);return t(...h,...c)}))}),gte=e=>Q4(e.length,e),w1=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},vte=gte((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),yte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return pte;var i=n.reverse(),o=i[0],l=i.slice(1);return function(){return l.reduce((c,f)=>f(c),o(...arguments))}};function X4(e){var t;return e===0?t=1:t=Math.floor(new rt(e).abs().log(10).toNumber())+1,t}function Z4(e,t,n){for(var r=new rt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var J4=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},ez=(e,t,n)=>{if(e.lte(0))return new rt(0);var r=X4(e.toNumber()),i=new rt(10).pow(r),o=e.div(i),l=r!==1?.05:.1,c=new rt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(i);return t?new rt(f.toNumber()):new rt(Math.ceil(f.toNumber()))},xte=(e,t,n)=>{var r=new rt(1),i=new rt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new rt(10).pow(X4(e)-1),i=new rt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new rt(Math.floor(e)))}else e===0?i=new rt(Math.floor((t-1)/2)):n||(i=new rt(Math.floor(e)));var l=Math.floor((t-1)/2),c=yte(vte(f=>i.add(new rt(f-l).mul(r)).toNumber()),w1);return c(0,t)},tz=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new rt(0),tickMin:new rt(0),tickMax:new rt(0)};var l=ez(new rt(n).sub(t).div(r-1),i,o),c;t<=0&&n>=0?c=new rt(0):(c=new rt(t).add(n).div(2),c=c.sub(new rt(c).mod(l)));var f=Math.ceil(c.sub(t).div(l).toNumber()),h=Math.ceil(new rt(n).sub(c).div(l).toNumber()),m=f+h+1;return m>r?tz(t,n,r,i,o+1):(m<r&&(h=n>0?h+(r-m):h,f=n>0?f:f+(r-m)),{step:l,tickMin:c.sub(new rt(f).mul(l)),tickMax:c.add(new rt(h).mul(l))})},bte=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(i,2),[c,f]=J4([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...w1(0,i-1).map(()=>1/0)]:[...w1(0,i-1).map(()=>-1/0),f];return n>r?h.reverse():h}if(c===f)return xte(c,i,o);var{step:m,tickMin:g,tickMax:y}=tz(c,f,l,o,0),b=Z4(g,y.add(new rt(.1).mul(m)),m);return n>r?b.reverse():b},wte=function(t,n){var[r,i]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[l,c]=J4([r,i]);if(l===-1/0||c===1/0)return[r,i];if(l===c)return[l];var f=Math.max(n,2),h=ez(new rt(c).sub(l).div(f-1),o,0),m=[...Z4(new rt(l),new rt(c),h),c];return o===!1&&(m=m.map(g=>Math.round(g))),r>i?m.reverse():m},nz=e=>e.rootProps.maxBarSize,Ste=e=>e.rootProps.barGap,rz=e=>e.rootProps.barCategoryGap,jte=e=>e.rootProps.barSize,sg=e=>e.rootProps.stackOffset,az=e=>e.rootProps.reverseStackOrder,PS=e=>e.options.chartName,_S=e=>e.rootProps.syncId,iz=e=>e.rootProps.syncMethod,DS=e=>e.options.eventEmitter,Ate=e=>e.rootProps.baseValue,un={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Wa={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},ur={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},og=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Ote={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Wa.angleAxisId,includeHidden:!1,name:void 0,reversed:Wa.reversed,scale:Wa.scale,tick:Wa.tick,tickCount:void 0,ticks:void 0,type:Wa.type,unit:void 0},Ete={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:ur.type,unit:void 0},Nte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Wa.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Wa.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Wa.scale,tick:Wa.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Tte={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:"category",unit:void 0},RS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Nte:Ote,zS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Tte:Ete,lg=e=>e.polarOptions,LS=Q([yi,xi,cn],SZ),sz=Q([lg,LS],(e,t)=>{if(e!=null)return ra(e.innerRadius,t,0)}),oz=Q([lg,LS],(e,t)=>{if(e!=null)return ra(e.outerRadius,t,t*.8)}),Cte=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},lz=Q([lg],Cte);Q([RS,lz],og);var uz=Q([LS,sz,oz],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Q([zS,uz],og);var cz=Q([We,lg,sz,oz,yi,xi],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:l,cy:c,startAngle:f,endAngle:h}=t;return{cx:ra(l,i,i/2),cy:ra(c,o,o/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:h,clockWise:!1}}}),Zt=(e,t)=>t,ug=(e,t,n)=>n;function cg(e){return e==null?void 0:e.id}function fz(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,l=new Map;return e.forEach(c=>{var f,h=(f=c.data)!==null&&f!==void 0?f:r;if(!(h==null||h.length===0)){var m=cg(c);h.forEach((g,y)=>{var b=o==null||i?y:String(Ft(g,o,null)),S=Ft(g,c.dataKey,0),j;l.has(b)?j=l.get(b):j={},Object.assign(j,{[m]:S}),l.set(b,j)})}}),Array.from(l.values())}function fg(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var dg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function hg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function kte(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 Jt=e=>{var t=We(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Su=e=>e.tooltip.settings.axisId;function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){Mte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mte(e,t,n){return(t=Pte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e){var t=_te(e,"string");return typeof t=="symbol"?t:t+""}function _te(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S1=[0,"auto"],rn={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},dz=(e,t)=>e.cartesianAxis.xAxis[t],Si=(e,t)=>{var n=dz(e,t);return n??rn},an={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:S1,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,width:qf},hz=(e,t)=>e.cartesianAxis.yAxis[t],ji=(e,t)=>{var n=hz(e,t);return n??an},Dte={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:""},IS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Dte},Bn=(e,t,n)=>{switch(t){case"xAxis":return Si(e,n);case"yAxis":return ji(e,n);case"zAxis":return IS(e,n);case"angleAxis":return RS(e,n);case"radiusAxis":return zS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Rte=(e,t,n)=>{switch(t){case"xAxis":return Si(e,n);case"yAxis":return ji(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Wf=(e,t,n)=>{switch(t){case"xAxis":return Si(e,n);case"yAxis":return ji(e,n);case"angleAxis":return RS(e,n);case"radiusAxis":return zS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},mz=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function pz(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 mg=e=>e.graphicalItems.cartesianItems,zte=Q([Zt,ug],pz),gz=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Qf=Q([mg,Bn,zte],gz,{memoizeOptions:{resultEqualityCheck:hg}}),vz=Q([Qf],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(fg)),yz=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Lte=Q([Qf],yz),xz=e=>e.map(t=>t.data).filter(Boolean).flat(1),Ite=Q([Qf],xz,{memoizeOptions:{resultEqualityCheck:hg}}),bz=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},BS=Q([Ite,U4],bz),wz=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Ft(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:Ft(i,r)}))):e.map(r=>({value:r})),pg=Q([BS,Bn,Qf],wz);function Sz(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function om(e){if(ya(e)||e instanceof Date){var t=Number(e);if(ft(t))return t}}function NM(e){if(Array.isArray(e)){var t=[om(e[0]),om(e[1])];return xs(t)?t:void 0}var n=om(e);if(n!=null)return[n,n]}function di(e){return e.map(om).filter(OY)}function Bte(e,t,n){return!n||typeof t!="number"||zr(t)?[]:n.length?di(n.flatMap(r=>{var i=Ft(e,r.dataKey),o,l;if(Array.isArray(i)?[o,l]=i:o=l=i,!(!ft(o)||!ft(l)))return[t-o,t+l]})):[]}var en=e=>{var t=Jt(e),n=Su(e);return Wf(e,t,n)},Xf=Q([en],e=>e==null?void 0:e.dataKey),Ute=Q([vz,U4,en],fz),jz=(e,t,n,r)=>{var i={},o=t.reduce((l,c)=>{if(c.stackId==null)return l;var f=l[c.stackId];return f==null&&(f=[]),f.push(c),l[c.stackId]=f,l},i);return Object.fromEntries(Object.entries(o).map(l=>{var[c,f]=l,h=r?[...f].reverse():f,m=h.map(cg);return[c,{stackedData:ZW(e,m,n),graphicalItems:h}]}))},rp=Q([Ute,vz,sg,az],jz),Az=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var l=nQ(e,i,o);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},$te=Q([Bn],e=>e.allowDataOverflow),US=e=>{var t;if(e==null||!("domain"in e))return S1;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=di(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:S1},Oz=Q([Bn],US),Ez=Q([Oz,$te],q4),qte=Q([rp,wi,Zt,Ez],Az,{memoizeOptions:{resultEqualityCheck:dg}}),$S=e=>e.errorBars,Vte=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Sz(n,r)),ap=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),l=Math.min(...o),c=Math.max(...o);return[l,c]}},Nz=(e,t,n,r,i)=>{var o,l;if(n.length>0&&e.forEach(c=>{n.forEach(f=>{var h,m,g=(h=r[f.id])===null||h===void 0?void 0:h.filter(O=>Sz(i,O)),y=Ft(c,(m=t.dataKey)!==null&&m!==void 0?m:f.dataKey),b=Bte(c,y,g);if(b.length>=2){var S=Math.min(...b),j=Math.max(...b);(o==null||S<o)&&(o=S),(l==null||j>l)&&(l=j)}var A=NM(y);A!=null&&(o=o==null?A[0]:Math.min(o,A[0]),l=l==null?A[1]:Math.max(l,A[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(c=>{var f=NM(Ft(c,t.dataKey));f!=null&&(o=o==null?f[0]:Math.min(o,f[0]),l=l==null?f[1]:Math.max(l,f[1]))}),ft(o)&&ft(l))return[o,l]},Fte=Q([BS,Bn,Lte,$S,Zt],Nz,{memoizeOptions:{resultEqualityCheck:dg}});function Hte(e){var{value:t}=e;if(ya(t)||t instanceof Date)return t}var Kte=(e,t,n)=>{var r=e.map(Hte).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&L3(r))?a4(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Tz=e=>e.referenceElements.dots,ju=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Yte=Q([Tz,Zt,ug],ju),Cz=e=>e.referenceElements.areas,Gte=Q([Cz,Zt,ug],ju),kz=e=>e.referenceElements.lines,Wte=Q([kz,Zt,ug],ju),Mz=(e,t)=>{if(e!=null){var n=di(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Qte=Q(Yte,Zt,Mz),Pz=(e,t)=>{if(e!=null){var n=di(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Xte=Q([Gte,Zt],Pz);function Zte(e){var t;if(e.x!=null)return di([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:di(n)}function Jte(e){var t;if(e.y!=null)return di([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:di(n)}var _z=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Zte(r):Jte(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ene=Q([Wte,Zt],_z),tne=Q(Qte,ene,Xte,(e,t,n)=>ap(e,n,t)),Dz=(e,t,n,r,i,o,l,c)=>{if(n!=null)return n;var f=l==="vertical"&&c==="xAxis"||l==="horizontal"&&c==="yAxis",h=f?ap(r,o,i):ap(o,i);return fte(t,h,e.allowDataOverflow)},nne=Q([Bn,Oz,Ez,qte,Fte,tne,We,Zt],Dz,{memoizeOptions:{resultEqualityCheck:dg}}),rne=[0,1],Rz=(e,t,n,r,i,o,l)=>{if(!((e==null||n==null||n.length===0)&&l===void 0)){var{dataKey:c,type:f}=e,h=vi(t,o);if(h&&c==null){var m;return a4(0,(m=n==null?void 0:n.length)!==null&&m!==void 0?m:0)}return f==="category"?Kte(r,e,h):i==="expand"?rne:l}},qS=Q([Bn,We,BS,pg,sg,Zt,nne],Rz),zz=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:l}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":l==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":l==="category"?"band":"linear";if(typeof o=="string"){var c="scale".concat(If(o));return c in Ic?c:"point"}}},Zf=Q([Bn,We,mz,PS,Zt],zz);function ane(e){if(e!=null){if(e in Ic)return Ic[e]();var t="scale".concat(If(e));if(t in Ic)return Ic[t]()}}function VS(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=ane(t);if(i!=null){var o=i.domain(n).range(r);return YW(o),o}}}var Lz=(e,t,n)=>{var r=US(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&xs(e))return bte(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&xs(e))return wte(e,t.tickCount,t.allowDecimals)}},FS=Q([qS,Wf,Zf],Lz),Iz=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&xs(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],l=t[1],c=n[n.length-1];return[Math.min(i,o),Math.max(l,c)]}return t},ine=Q([Bn,qS,FS,Zt],Iz),sne=Q(pg,Bn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(di(e.map(g=>g.value))).sort((g,y)=>g-y),i=r[0],o=r[r.length-1];if(i==null||o==null)return 1/0;var l=o-i;if(l===0)return 1/0;for(var c=0;c<r.length-1;c++){var f=r[c],h=r[c+1];if(!(f==null||h==null)){var m=h-f;n=Math.min(n,m)}}return n/l}}),Bz=Q(sne,We,rz,cn,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!ft(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var l=ra(n,e*o),c=e*o/2;return c-l-(c-l)/o*l}return 0}),one=(e,t,n)=>{var r=Si(e,t);return r==null||typeof r.padding!="string"?0:Bz(e,"xAxis",t,n,r.padding)},lne=(e,t,n)=>{var r=ji(e,t);return r==null||typeof r.padding!="string"?0:Bz(e,"yAxis",t,n,r.padding)},une=Q(Si,one,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),cne=Q(ji,lne,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),fne=Q([cn,une,Kp,Hp,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),dne=Q([cn,We,cne,Kp,Hp,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:l}=i;return o?[r.height-l.bottom,l.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Jf=(e,t,n,r)=>{var i;switch(t){case"xAxis":return fne(e,n,r);case"yAxis":return dne(e,n,r);case"zAxis":return(i=IS(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return lz(e);case"radiusAxis":return uz(e,n);default:return}},Uz=Q([Bn,Jf],og),gg=Q([Bn,Zf,ine,Uz],VS);Q([Qf,$S,Zt],Vte);function $z(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vg=(e,t)=>t,yg=(e,t,n)=>n,hne=Q(Vp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort($z)),mne=Q(Fp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort($z)),qz=(e,t)=>({width:e.width,height:t.height}),pne=(e,t)=>{var n=typeof t.width=="number"?t.width:qf;return{width:n,height:e.height}},Vz=Q(cn,Si,qz),gne=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},vne=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},yne=Q(xi,cn,hne,vg,yg,(e,t,n,r,i)=>{var o={},l;return n.forEach(c=>{var f=qz(t,c);l==null&&(l=gne(t,r,e));var h=r==="top"&&!i||r==="bottom"&&i;o[c.id]=l-Number(h)*f.height,l+=(h?-1:1)*f.height}),o}),xne=Q(yi,cn,mne,vg,yg,(e,t,n,r,i)=>{var o={},l;return n.forEach(c=>{var f=pne(t,c);l==null&&(l=vne(t,r,e));var h=r==="left"&&!i||r==="right"&&i;o[c.id]=l-Number(h)*f.width,l+=(h?-1:1)*f.width}),o}),bne=(e,t)=>{var n=Si(e,t);if(n!=null)return yne(e,n.orientation,n.mirror)},wne=Q([cn,Si,bne,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Sne=(e,t)=>{var n=ji(e,t);if(n!=null)return xne(e,n.orientation,n.mirror)},jne=Q([cn,ji,Sne,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Fz=Q(cn,ji,(e,t)=>{var n=typeof t.width=="number"?t.width:qf;return{width:n,height:e.height}}),TM=(e,t,n)=>{switch(t){case"xAxis":return Vz(e,n).width;case"yAxis":return Fz(e,n).height;default:return}},Hz=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:l}=n,c=vi(e,r),f=t.map(h=>h.value);if(l&&c&&o==="category"&&i&&L3(f))return f}},HS=Q([We,pg,Bn,Zt],Hz),Kz=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,l=vi(e,r);if(l&&(i==="number"||o!=="auto"))return t.map(c=>c.value)}},KS=Q([We,pg,Wf,Zt],Kz),CM=Q([We,Rte,Zf,gg,HS,KS,Jf,FS,Zt],(e,t,n,r,i,o,l,c,f)=>{if(t!=null){var h=vi(e,f);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:f,categoricalDomain:o,duplicateDomain:i,isCategorical:h,niceTicks:c,range:l,realScaleType:n,scale:r}}}),Ane=(e,t,n,r,i,o,l,c,f)=>{if(!(t==null||r==null)){var h=vi(e,f),{type:m,ticks:g,tickCount:y}=t,b=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,S=m==="category"&&r.bandwidth?r.bandwidth()/b:0;S=f==="angleAxis"&&o!=null&&o.length>=2?Qn(o[0]-o[1])*2*S:S;var j=g||i;if(j){var A=j.map((O,T)=>{var N=l?l.indexOf(O):O;return{index:T,coordinate:r(N)+S,value:O,offset:S}});return A.filter(O=>ft(O.coordinate))}return h&&c?c.map((O,T)=>({coordinate:r(O)+S,value:O,index:T,offset:S})).filter(O=>ft(O.coordinate)):r.ticks?r.ticks(y).map(O=>({coordinate:r(O)+S,value:O,offset:S})):r.domain().map((O,T)=>({coordinate:r(O)+S,value:l?l[O]:O,index:T,offset:S}))}},Yz=Q([We,Wf,Zf,gg,FS,Jf,HS,KS,Zt],Ane),One=(e,t,n,r,i,o,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var c=vi(e,l),{tickCount:f}=t,h=0;return h=l==="angleAxis"&&(r==null?void 0:r.length)>=2?Qn(r[0]-r[1])*2*h:h,c&&o?o.map((m,g)=>({coordinate:n(m)+h,value:m,index:g,offset:h})):n.ticks?n.ticks(f).map(m=>({coordinate:n(m)+h,value:m,offset:h})):n.domain().map((m,g)=>({coordinate:n(m)+h,value:i?i[m]:m,index:g,offset:h}))}},bs=Q([We,Wf,gg,Jf,HS,KS,Zt],One),ws=Q(Bn,gg,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})}),Ene=Q([Bn,Zf,qS,Uz],VS);Q((e,t,n)=>IS(e,n),Ene,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})});var Nne=Q([We,Vp,Fp],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Gz=e=>e.options.defaultTooltipEventType,Wz=e=>e.options.validateTooltipEventTypes;function Qz(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function YS(e,t){var n=Gz(e),r=Wz(e);return Qz(t,n,r)}function Tne(e){return we(t=>YS(t,e))}var Xz=(e,t)=>{var n,r=Number(t);if(!(zr(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Cne=e=>e.tooltip.settings,as={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},kne={itemInteraction:{click:as,hover:as},axisInteraction:{click:as,hover:as},keyboardInteraction:as,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}},Zz=Jn({name:"tooltip",initialState:kne,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:vt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=ta(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:vt()},removeTooltipEntrySettings:{reducer(e,t){var n=ta(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:vt()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,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.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.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.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:Mne,replaceTooltipEntrySettings:Pne,removeTooltipEntrySettings:_ne,setTooltipSettingsState:Dne,setActiveMouseOverItemIndex:Jz,mouseLeaveItem:Rne,mouseLeaveChart:eL,setActiveClickItemIndex:zne,setMouseOverAxisIndex:tL,setMouseClickAxisIndex:Lne,setSyncInteraction:j1,setKeyboardInteraction:A1}=Zz.actions,Ine=Zz.reducer;function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){Bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bne(e,t,n){return(t=Une(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){var t=$ne(e,"string");return typeof t=="symbol"?t:t+""}function $ne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qne(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Vne(e){return e.index!=null}var nL=(e,t,n,r)=>{if(t==null)return as;var i=qne(e,t,n);if(i==null)return as;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Vne(i)){if(o)return Fh(Fh({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Fh(Fh({},as),{},{coordinate:i.coordinate})};function Fne(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 Hne(e,t){var n=Fne(e),r=t[0],i=t[1];if(n===void 0)return!1;var o=Math.min(r,i),l=Math.max(r,i);return n>=o&&n<=l}function Kne(e,t,n){if(n==null||t==null)return!0;var r=Ft(e,t);return r==null||!xs(n)?!0:Hne(r,n)}var GS=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var o=Number(i);if(!ft(o))return i;var l=0,c=1/0;t.length>0&&(c=t.length-1);var f=Math.max(l,Math.min(o,c)),h=t[f];return h==null||Kne(h,n,r)?String(f):null},rL=(e,t,n,r,i,o,l,c)=>{if(!(o==null||c==null)){var f=l[0],h=f==null?void 0:c(f.positions,o);if(h!=null)return h;var m=i==null?void 0:i[Number(o)];if(m)switch(n){case"horizontal":return{x:m.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:m.coordinate}}}},aL=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,i==null&&r!=null){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(l=>{var c;return((c=l.settings)===null||c===void 0?void 0:c.graphicalItemId)===i})},ed=e=>e.options.tooltipPayloadSearcher,Au=e=>e.tooltip;function MM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MM(Object(n),!0).forEach(function(r){Yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yne(e,t,n){return(t=Gne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gne(e){var t=Wne(e,"string");return typeof t=="symbol"?t:t+""}function Wne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qne(e,t){return e??t}var iL=(e,t,n,r,i,o,l)=>{if(!(t==null||o==null)){var{chartData:c,computedData:f,dataStartIndex:h,dataEndIndex:m}=n,g=[];return e.reduce((y,b)=>{var S,{dataDefinedOnItem:j,settings:A}=b,O=Qne(j,c),T=Array.isArray(O)?MR(O,h,m):O,N=(S=A==null?void 0:A.dataKey)!==null&&S!==void 0?S:r,C=A==null?void 0:A.nameKey,M;if(r&&Array.isArray(T)&&!Array.isArray(T[0])&&l==="axis"?M=I3(T,r,i):M=o(T,t,f,C),Array.isArray(M))M.forEach(k=>{var D=PM(PM({},A),{},{name:k.name,unit:k.unit,color:void 0,fill:void 0});y.push(RC({tooltipEntrySettings:D,dataKey:k.dataKey,payload:k.payload,value:Ft(k.payload,k.dataKey),name:k.name}))});else{var _;y.push(RC({tooltipEntrySettings:A,dataKey:N,payload:M,value:Ft(M,N),name:(_=Ft(M,C))!==null&&_!==void 0?_:A==null?void 0:A.name}))}return y},g)}},WS=Q([en,We,mz,PS,Jt],zz),Xne=Q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Zne=Q([Jt,Su],pz),Ou=Q([Xne,en,Zne],gz,{memoizeOptions:{resultEqualityCheck:hg}}),Jne=Q([Ou],e=>e.filter(fg)),ere=Q([Ou],xz,{memoizeOptions:{resultEqualityCheck:hg}}),Eu=Q([ere,wi],bz),tre=Q([Jne,wi,en],fz),QS=Q([Eu,en,Ou],wz),sL=Q([en],US),nre=Q([en],e=>e.allowDataOverflow),oL=Q([sL,nre],q4),rre=Q([Ou],e=>e.filter(fg)),are=Q([tre,rre,sg,az],jz),ire=Q([are,wi,Jt,oL],Az),sre=Q([Ou],yz),ore=Q([Eu,en,sre,$S,Jt],Nz,{memoizeOptions:{resultEqualityCheck:dg}}),lre=Q([Tz,Jt,Su],ju),ure=Q([lre,Jt],Mz),cre=Q([Cz,Jt,Su],ju),fre=Q([cre,Jt],Pz),dre=Q([kz,Jt,Su],ju),hre=Q([dre,Jt],_z),mre=Q([ure,hre,fre],ap),pre=Q([en,sL,oL,ire,ore,mre,We,Jt],Dz),td=Q([en,We,Eu,QS,sg,Jt,pre],Rz),gre=Q([td,en,WS],Lz),vre=Q([en,td,gre,Jt],Iz),lL=e=>{var t=Jt(e),n=Su(e),r=!1;return Jf(e,t,n,r)},uL=Q([en,lL],og),cL=Q([en,WS,vre,uL],VS),yre=Q([We,QS,en,Jt],Hz),xre=Q([We,QS,en,Jt],Kz),bre=(e,t,n,r,i,o,l,c)=>{if(t){var{type:f}=t,h=vi(e,c);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,g=f==="category"&&r.bandwidth?r.bandwidth()/m:0;return g=c==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Qn(i[0]-i[1])*2*g:g,h&&l?l.map((y,b)=>({coordinate:r(y)+g,value:y,index:b,offset:g})):r.domain().map((y,b)=>({coordinate:r(y)+g,value:o?o[y]:y,index:b,offset:g}))}}},Ai=Q([We,en,WS,cL,lL,yre,xre,Jt],bre),XS=Q([Gz,Wz,Cne],(e,t,n)=>Qz(n.shared,e,t)),fL=e=>e.tooltip.settings.trigger,ZS=e=>e.tooltip.settings.defaultIndex,nd=Q([Au,XS,fL,ZS],nL),Co=Q([nd,Eu,Xf,td],GS),dL=Q([Ai,Co],Xz),hL=Q([nd],e=>{if(e)return e.dataKey});Q([nd],e=>{if(e)return e.graphicalItemId});var mL=Q([Au,XS,fL,ZS],aL),wre=Q([yi,xi,We,cn,Ai,ZS,mL,ed],rL),Sre=Q([nd,wre],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jre=Q([nd],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Are=Q([mL,Co,wi,Xf,dL,ed,XS],iL),Ore=Q([Are],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){Ere(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ere(e,t,n){return(t=Nre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=Tre(e,"string");return typeof t=="symbol"?t:t+""}function Tre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cre=()=>we(en),kre=()=>{var e=Cre(),t=we(Ai),n=we(cL);return ru(!e||!n?void 0:DM(DM({},e),{},{scale:n}),t)};function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RM(Object(n),!0).forEach(function(r){Mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mre(e,t,n){return(t=Pre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pre(e){var t=_re(e,"string");return typeof t=="symbol"?t:t+""}function _re(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dre=(e,t,n,r)=>{var i=t.find(o=>o&&o.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:i.coordinate}}return{x:0,y:0}},Rre=(e,t,n,r)=>{var i=t.find(h=>h&&h.index===n);if(i){if(e==="centric"){var o=i.coordinate,{radius:l}=r;return Al(Al(Al({},r),wn(r.cx,r.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,{angle:f}=r;return Al(Al(Al({},r),wn(r.cx,r.cy,c,f)),{},{angle:f,radius:c})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function zre(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var pL=(e,t,n,r,i)=>{var o,l=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(l<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c<l;c++){var f,h,m,g,y,b=c>0?(f=n[c-1])===null||f===void 0?void 0:f.coordinate:(h=n[l-1])===null||h===void 0?void 0:h.coordinate,S=(m=n[c])===null||m===void 0?void 0:m.coordinate,j=c>=l-1?(g=n[0])===null||g===void 0?void 0:g.coordinate:(y=n[c+1])===null||y===void 0?void 0:y.coordinate,A=void 0;if(!(b==null||S==null||j==null))if(Qn(S-b)!==Qn(j-S)){var O=[];if(Qn(j-S)===Qn(i[1]-i[0])){A=j;var T=S+i[1]-i[0];O[0]=Math.min(T,(T+b)/2),O[1]=Math.max(T,(T+b)/2)}else{A=b;var N=j+i[1]-i[0];O[0]=Math.min(S,(N+S)/2),O[1]=Math.max(S,(N+S)/2)}var C=[Math.min(S,(A+S)/2),Math.max(S,(A+S)/2)];if(e>C[0]&&e<=C[1]||e>=O[0]&&e<=O[1]){var M;return(M=n[c])===null||M===void 0?void 0:M.index}}else{var _=Math.min(b,j),k=Math.max(b,j);if(e>(_+S)/2&&e<=(k+S)/2){var D;return(D=n[c])===null||D===void 0?void 0:D.index}}}else if(t)for(var B=0;B<l;B++){var K=t[B];if(K!=null){var $=t[B+1],Z=t[B-1];if(B===0&&$!=null&&e<=(K.coordinate+$.coordinate)/2||B===l-1&&Z!=null&&e>(K.coordinate+Z.coordinate)/2||B>0&&B<l-1&&Z!=null&&$!=null&&e>(K.coordinate+Z.coordinate)/2&&e<=(K.coordinate+$.coordinate)/2)return K.index}}return-1},gL=()=>we(PS),JS=(e,t)=>t,vL=(e,t,n)=>n,ej=(e,t,n,r)=>r,Lre=Q(Ai,e=>Pp(e,t=>t.coordinate)),tj=Q([Au,JS,vL,ej],nL),nj=Q([tj,Eu,Xf,td],GS),Ire=(e,t,n)=>{if(t!=null){var r=Au(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},yL=Q([Au,JS,vL,ej],aL),ip=Q([yi,xi,We,cn,Ai,ej,yL,ed],rL),Bre=Q([tj,ip],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),xL=Q([Ai,nj],Xz),Ure=Q([yL,nj,wi,Xf,xL,ed,JS],iL),$re=Q([tj,nj],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),qre=(e,t,n,r,i,o,l)=>{if(!(!e||!n||!r||!i)&&zre(e,l)){var c=rQ(e,t),f=pL(c,o,i,n,r),h=Dre(t,i,f,e);return{activeIndex:String(f),activeCoordinate:h}}},Vre=(e,t,n,r,i,o,l)=>{if(!(!e||!r||!i||!o||!n)){var c=NZ(e,n);if(c){var f=aQ(c,t),h=pL(f,l,o,r,i),m=Rre(t,o,h,c);return{activeIndex:String(h),activeCoordinate:m}}}},Fre=(e,t,n,r,i,o,l,c)=>{if(!(!e||!t||!r||!i||!o))return t==="horizontal"||t==="vertical"?qre(e,t,r,i,o,l,c):Vre(e,t,n,r,i,o,l)},Hre=Q(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}}),Kre=Q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(un)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:kte}});function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){Yre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yre(e,t,n){return(t=Gre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gre(e){var t=Wre(e,"string");return typeof t=="symbol"?t:t+""}function Wre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qre={},Xre={zIndexMap:Object.values(un).reduce((e,t)=>LM(LM({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Qre)},Zre=new Set(Object.values(un));function Jre(e){return Zre.has(e)}var bL=Jn({name:"zIndex",initialState:Xre,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:vt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Jre(n)&&delete e.zIndexMap[n])},prepare:vt()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:vt()},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:vt()}}}),{registerZIndexPortal:eae,unregisterZIndexPortal:tae,registerZIndexPortalElement:nae,unregisterZIndexPortalElement:rae}=bL.actions,aae=bL.reducer;function $r(e){var{zIndex:t,children:n}=e,r=IQ(),i=r&&t!==void 0&&t!==0,o=Tn(),l=At();w.useLayoutEffect(()=>i?(l(eae({zIndex:t})),()=>{l(tae({zIndex:t}))}):Bf,[l,t,i]);var c=we(f=>Hre(f,t,o));return i?c?Pf.createPortal(n,c):null:n}function O1(){return O1=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},O1.apply(null,arguments)}function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){iae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iae(e,t,n){return(t=sae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sae(e){var t=oae(e,"string");return typeof t=="symbol"?t:t+""}function oae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lae(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return w.isValidElement(t)?w.cloneElement(t,r):w.createElement(n,r)}function uae(e){var t,{coordinate:n,payload:r,index:i,offset:o,tooltipAxisBandSize:l,layout:c,cursor:f,tooltipEventType:h,chartName:m}=e,g=n,y=r,b=i;if(!f||!g||m!=="ScatterChart"&&h!=="axis")return null;var S,j,A;if(m==="ScatterChart")S=g,j=UX,A=un.cursorLine;else if(m==="BarChart")S=$X(c,g,o,l),j=e4,A=un.cursorRectangle;else if(c==="radial"&&U3(g)){var{cx:O,cy:T,radius:N,startAngle:C,endAngle:M}=t4(g);S={cx:O,cy:T,startAngle:C,endAngle:M,innerRadius:N,outerRadius:N},j=r4,A=un.cursorLine}else S={points:MZ(c,g,o)},j=Fc,A=un.cursorLine;var _=typeof f=="object"&&"className"in f?f.className:void 0,k=Hh(Hh(Hh(Hh({stroke:"#ccc",pointerEvents:"none"},o),S),Lf(f)),{},{payload:y,payloadIndex:b,className:Ze("recharts-tooltip-cursor",_)});return w.createElement($r,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:A},w.createElement(lae,{cursor:f,cursorComp:j,cursorProps:k}))}function cae(e){var t=kre(),n=UR(),r=Po(),i=gL();return t==null||n==null||r==null||i==null?null:w.createElement(uae,O1({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var wL=w.createContext(null),fae=()=>w.useContext(wL),Nx={exports:{}},BM;function dae(){return BM||(BM=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,h,m){this.fn=f,this.context=h,this.once=m||!1}function o(f,h,m,g,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new i(m,g||f,y),S=n?n+h:h;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],b]:f._events[S].push(b):(f._events[S]=b,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new r:delete f._events[h]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],m,g;if(this._eventsCount===0)return h;for(g in m=this._events)t.call(m,g)&&h.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},c.prototype.listeners=function(h){var m=n?n+h:h,g=this._events[m];if(!g)return[];if(g.fn)return[g.fn];for(var y=0,b=g.length,S=new Array(b);y<b;y++)S[y]=g[y].fn;return S},c.prototype.listenerCount=function(h){var m=n?n+h:h,g=this._events[m];return g?g.fn?1:g.length:0},c.prototype.emit=function(h,m,g,y,b,S){var j=n?n+h:h;if(!this._events[j])return!1;var A=this._events[j],O=arguments.length,T,N;if(A.fn){switch(A.once&&this.removeListener(h,A.fn,void 0,!0),O){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,m),!0;case 3:return A.fn.call(A.context,m,g),!0;case 4:return A.fn.call(A.context,m,g,y),!0;case 5:return A.fn.call(A.context,m,g,y,b),!0;case 6:return A.fn.call(A.context,m,g,y,b,S),!0}for(N=1,T=new Array(O-1);N<O;N++)T[N-1]=arguments[N];A.fn.apply(A.context,T)}else{var C=A.length,M;for(N=0;N<C;N++)switch(A[N].once&&this.removeListener(h,A[N].fn,void 0,!0),O){case 1:A[N].fn.call(A[N].context);break;case 2:A[N].fn.call(A[N].context,m);break;case 3:A[N].fn.call(A[N].context,m,g);break;case 4:A[N].fn.call(A[N].context,m,g,y);break;default:if(!T)for(M=1,T=new Array(O-1);M<O;M++)T[M-1]=arguments[M];A[N].fn.apply(A[N].context,T)}}return!0},c.prototype.on=function(h,m,g){return o(this,h,m,g,!1)},c.prototype.once=function(h,m,g){return o(this,h,m,g,!0)},c.prototype.removeListener=function(h,m,g,y){var b=n?n+h:h;if(!this._events[b])return this;if(!m)return l(this,b),this;var S=this._events[b];if(S.fn)S.fn===m&&(!y||S.once)&&(!g||S.context===g)&&l(this,b);else{for(var j=0,A=[],O=S.length;j<O;j++)(S[j].fn!==m||y&&!S[j].once||g&&S[j].context!==g)&&A.push(S[j]);A.length?this._events[b]=A.length===1?A[0]:A:l(this,b)}return this},c.prototype.removeAllListeners=function(h){var m;return h?(m=n?n+h:h,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Nx)),Nx.exports}var hae=dae();const mae=wa(hae);var bf=new mae,E1="recharts.syncEvent.tooltip",UM="recharts.syncEvent.brush";function SL(e,t){if(t){var n=Number.parseInt(t,10);if(!zr(n))return e==null?void 0:e[n]}}var pae={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},jL=Jn({name:"options",initialState:pae,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),gae=jL.reducer,{createEventEmitter:vae}=jL.actions;function yae(e){return e.tooltip.syncInteraction}var xae={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},AL=Jn({name:"chartData",initialState:xae,reducers:{setChartData(e,t){if(e.chartData=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:$M,setDataStartEndIndexes:bae,setComputedData:Fde}=AL.actions,wae=AL.reducer,Sae=["x","y"];function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){jae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jae(e,t,n){return(t=Aae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aae(e){var t=Oae(e,"string");return typeof t=="symbol"?t:t+""}function Oae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eae(e,t){if(e==null)return{};var n,r,i=Nae(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nae(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 Tae(){var e=we(_S),t=we(DS),n=At(),r=we(iz),i=we(Ai),o=Po(),l=Yp(),c=we(f=>f.rootProps.className);w.useEffect(()=>{if(e==null)return Bf;var f=(h,m,g)=>{if(t!==g&&e===h){if(r==="index"){var y;if(l&&m!==null&&m!==void 0&&(y=m.payload)!==null&&y!==void 0&&y.coordinate&&m.payload.sourceViewBox){var b=m.payload.coordinate,{x:S,y:j}=b,A=Eae(b,Sae),{x:O,y:T,width:N,height:C}=m.payload.sourceViewBox,M=Ol(Ol({},A),{},{x:l.x+(N?(S-O)/N:0)*l.width,y:l.y+(C?(j-T)/C:0)*l.height});n(Ol(Ol({},m),{},{payload:Ol(Ol({},m.payload),{},{coordinate:M})}))}else n(m);return}if(i!=null){var _;if(typeof r=="function"){var k={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},D=r(i,k);_=i[D]}else r==="value"&&(_=i.find(q=>String(q.value)===m.payload.label));var{coordinate:B}=m.payload;if(_==null||m.payload.active===!1||B==null||l==null){n(j1({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:K,y:$}=B,Z=Math.min(K,l.x+l.width),le=Math.min($,l.y+l.height),de={x:o==="horizontal"?_.coordinate:Z,y:o==="horizontal"?le:_.coordinate},me=j1({active:m.payload.active,coordinate:de,dataKey:m.payload.dataKey,index:String(_.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(me)}}};return bf.on(E1,f),()=>{bf.off(E1,f)}},[c,n,t,e,r,i,o,l])}function Cae(){var e=we(_S),t=we(DS),n=At();w.useEffect(()=>{if(e==null)return Bf;var r=(i,o,l)=>{t!==l&&e===i&&n(bae(o))};return bf.on(UM,r),()=>{bf.off(UM,r)}},[n,t,e])}function kae(){var e=At();w.useEffect(()=>{e(vae())},[e]),Tae(),Cae()}function Mae(e,t,n,r,i,o){var l=we(b=>Ire(b,e,t)),c=we(DS),f=we(_S),h=we(iz),m=we(yae),g=m==null?void 0:m.active,y=Yp();w.useEffect(()=>{if(!g&&f!=null&&c!=null){var b=j1({active:o,coordinate:n,dataKey:l,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:void 0});bf.emit(E1,f,b,c)}},[g,n,l,i,r,c,f,h,o,y])}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(e,t,n){return(t=_ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ae(e){var t=Dae(e,"string");return typeof t=="symbol"?t:t+""}function Dae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rae(e){return e.dataKey}function zae(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(xX,t)}var HM=[],Lae={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 lm(e){var t,n,r=Sn(e,Lae),{active:i,allowEscapeViewBox:o,animationDuration:l,animationEasing:c,content:f,filterNull:h,isAnimationActive:m,offset:g,payloadUniqBy:y,position:b,reverseDirection:S,useTranslate3d:j,wrapperStyle:A,cursor:O,shared:T,trigger:N,defaultIndex:C,portal:M,axisId:_}=r,k=At(),D=typeof C=="number"?String(C):C;w.useEffect(()=>{k(Dne({shared:T,trigger:N,axisId:_,active:i,defaultIndex:D}))},[k,T,N,_,i,D]);var B=Yp(),K=WR(),$=Tne(T),{activeIndex:Z,isActive:le}=(t=we(fe=>$re(fe,$,N,D)))!==null&&t!==void 0?t:{},de=we(fe=>Ure(fe,$,N,D)),me=we(fe=>xL(fe,$,N,D)),q=we(fe=>Bre(fe,$,N,D)),W=de,Y=fae(),oe=(n=i??le)!==null&&n!==void 0?n:!1,[ne,R]=tR([W,oe]),F=$==="axis"?me:void 0;Mae($,N,q,F,Z,oe);var ae=M??Y;if(ae==null||B==null||$==null)return null;var se=W??HM;oe||(se=HM),h&&se.length&&(se=Q3(se.filter(fe=>fe.value!=null&&(fe.hide!==!0||r.includeHidden)),y,Rae));var ve=se.length>0,Oe=w.createElement(EX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:oe,coordinate:q,hasPayload:ve,offset:g,position:b,reverseDirection:S,useTranslate3d:j,viewBox:B,wrapperStyle:A,lastBoundingBox:ne,innerRef:R,hasPortalFromProps:!!M},zae(f,FM(FM({},r),{},{payload:se,label:F,active:oe,activeIndex:Z,coordinate:q,accessibilityLayer:K})));return w.createElement(w.Fragment,null,Pf.createPortal(Oe,ae),oe&&w.createElement(cae,{cursor:O,tooltipEventType:$,coordinate:q,payload:se,index:Z}))}var OL=e=>null;OL.displayName="Cell";function Iae(e,t,n){return(t=Bae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bae(e){var t=Uae(e,"string");return typeof t=="symbol"?t:t+""}function Uae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class $ae{constructor(t){Iae(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return(t=Fae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fae(e){var t=Hae(e,"string");return typeof t=="symbol"?t:t+""}function Hae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kae={cacheSize:2e3,enableCache:!0},EL=qae({},Kae),YM=new $ae(EL.cacheSize),Yae={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},GM="recharts_measurement_span";function Gae(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",l=t.letterSpacing||"",c=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(l,"|").concat(c)}var WM=(e,t)=>{try{var n=document.getElementById(GM);n||(n=document.createElement("span"),n.setAttribute("id",GM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Yae,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Hc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ff.isSsr)return{width:0,height:0};if(!EL.enableCache)return WM(t,n);var r=Gae(t,n),i=YM.get(r);if(i)return i;var o=WM(t,n);return YM.set(r,o),o},NL;function Wae(e,t,n){return(t=Qae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qae(e){var t=Xae(e,"string");return typeof t=="symbol"?t:t+""}function Xae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zae=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Jae=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,eie={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},tie=["cm","mm","pt","pc","in","Q","px"];function nie(e){return tie.includes(e)}var Rl="NaN";function rie(e,t){return e*eie[t]}class bn{static parse(t){var n,[,r,i]=(n=Jae.exec(t))!==null&&n!==void 0?n:[];return r==null?bn.NaN:new bn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,zr(t)&&(this.unit=""),n!==""&&!Zae.test(n)&&(this.num=NaN,this.unit=""),nie(n)&&(this.num=rie(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return zr(this.num)}}NL=bn;Wae(bn,"NaN",new NL(NaN,""));function TL(e){if(e==null||e.includes(Rl))return Rl;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=QM.exec(t))!==null&&n!==void 0?n:[],l=bn.parse(r??""),c=bn.parse(o??""),f=i==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return Rl;t=t.replace(QM,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,m,g,y]=(h=XM.exec(t))!==null&&h!==void 0?h:[],b=bn.parse(m??""),S=bn.parse(y??""),j=g==="+"?b.add(S):b.subtract(S);if(j.isNaN())return Rl;t=t.replace(XM,j.toString())}return t}var ZM=/\(([^()]*)\)/;function aie(e){for(var t=e,n;(n=ZM.exec(t))!=null;){var[,r]=n;t=t.replace(ZM,TL(r))}return t}function iie(e){var t=e.replace(/\s+/g,"");return t=aie(t),t=TL(t),t}function sie(e){try{return iie(e)}catch{return Rl}}function Tx(e){var t=sie(e.slice(5,-1));return t===Rl?"":t}var oie=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],lie=["dx","dy","angle","className","breakAll"];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 JM(e,t){if(e==null)return{};var n,r,i=uie(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uie(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 CL=/[ \f\n\r\t\v\u2028\u2029]+/,kL=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];jt(t)||(n?i=t.toString().split(""):i=t.toString().split(CL));var o=i.map(c=>({word:c,width:Hc(c,r).width})),l=n?0:Hc(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}};function cie(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var ML=(e,t,n,r)=>e.reduce((i,o)=>{var{word:l,width:c}=o,f=i[i.length-1];if(f&&c!=null&&(t==null||r||f.width+c+n<Number(t)))f.words.push(l),f.width+=c+n;else{var h={words:[l],width:c};i.push(h)}return i},[]),PL=e=>e.reduce((t,n)=>t.width>n.width?t:n),fie="…",eP=(e,t,n,r,i,o,l,c)=>{var f=e.slice(0,t),h=kL({breakAll:n,style:r,children:f+fie});if(!h)return[!1,[]];var m=ML(h.wordsWithComputedWidth,o,l,c),g=m.length>i||PL(m).width>Number(o);return[g,m]},die=(e,t,n,r,i)=>{var{maxLines:o,children:l,style:c,breakAll:f}=e,h=he(o),m=String(l),g=ML(t,r,n,i);if(!h||i)return g;var y=g.length>o||PL(g).width>Number(r);if(!y)return g;for(var b=0,S=m.length-1,j=0,A;b<=S&&j<=m.length-1;){var O=Math.floor((b+S)/2),T=O-1,[N,C]=eP(m,T,f,c,o,r,n,i),[M]=eP(m,O,f,c,o,r,n,i);if(!N&&!M&&(b=O+1),N&&M&&(S=O-1),!N&&M){A=C;break}j++}return A||g},tP=e=>{var t=jt(e)?[]:e.toString().split(CL);return[{words:t,width:void 0}]},hie=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:l}=e;if((t||n)&&!Ff.isSsr){var c,f,h=kL({breakAll:o,children:r,style:i});if(h){var{wordsWithComputedWidth:m,spaceWidth:g}=h;c=m,f=g}else return tP(r);return die({breakAll:o,children:r,maxLines:l,style:i},c,f,t,!!n)}return tP(r)},_L="#808080",mie={angle:0,breakAll:!1,capHeight:"0.71em",fill:_L,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},rj=w.forwardRef((e,t)=>{var n=Sn(e,mie),{x:r,y:i,lineHeight:o,capHeight:l,fill:c,scaleToFit:f,textAnchor:h,verticalAnchor:m}=n,g=JM(n,oie),y=w.useMemo(()=>hie({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width}),[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),{dx:b,dy:S,angle:j,className:A,breakAll:O}=g,T=JM(g,lie);if(!ya(r)||!ya(i)||y.length===0)return null;var N=Number(r)+(he(b)?b:0),C=Number(i)+(he(S)?S:0);if(!ft(N)||!ft(C))return null;var M;switch(m){case"start":M=Tx("calc(".concat(l,")"));break;case"middle":M=Tx("calc(".concat((y.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:M=Tx("calc(".concat(y.length-1," * -").concat(o,")"));break}var _=[];if(f){var k=y[0].width,{width:D}=g;_.push("scale(".concat(he(D)&&he(k)?D/k:1,")"))}return j&&_.push("rotate(".concat(j,", ").concat(N,", ").concat(C,")")),_.length&&(T.transform=_.join(" ")),w.createElement("text",N1({},zn(T),{ref:t,x:N,y:C,className:Ze("recharts-text",A),textAnchor:h,fill:c.includes("url")?_L:c}),y.map((B,K)=>{var $=B.words.join(O?"":" ");return w.createElement("tspan",{x:N,dy:K===0?M:o,key:"".concat($,"-").concat(K)},$)}))});rj.displayName="Text";var pie=["labelRef"],gie=["content"];function nP(e,t){if(e==null)return{};var n,r,i=vie(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vie(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 rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(n),!0).forEach(function(r){yie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yie(e,t,n){return(t=xie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xie(e){var t=bie(e,"string");return typeof t=="symbol"?t:t+""}function bie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(){return Qa=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},Qa.apply(null,arguments)}var DL=w.createContext(null),wie=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:l,children:c}=e,f=w.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:l}),[t,n,r,i,o,l]);return w.createElement(DL.Provider,{value:f},c)},RL=()=>{var e=w.useContext(DL),t=Yp();return e||BR(t)},Sie=w.createContext(null),jie=()=>{var e=w.useContext(Sie),t=we(cz);return e||t},Aie=e=>{var{value:t,formatter:n}=e,r=jt(e.children)?t:e.children;return typeof n=="function"?n(r):r},aj=e=>e!=null&&typeof e=="function",Oie=(e,t)=>{var n=Qn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Eie=(e,t,n,r,i)=>{var{offset:o,className:l}=e,{cx:c,cy:f,innerRadius:h,outerRadius:m,startAngle:g,endAngle:y,clockWise:b}=i,S=(h+m)/2,j=Oie(g,y),A=j>=0?1:-1,O,T;switch(t){case"insideStart":O=g+A*o,T=b;break;case"insideEnd":O=y-A*o,T=!b;break;case"end":O=y+A*o,T=b;break;default:throw new Error("Unsupported position ".concat(t))}T=j<=0?T:!T;var N=wn(c,f,S,O),C=wn(c,f,S,O+(T?1:-1)*359),M="M".concat(N.x,",").concat(N.y,`
413
+ A`).concat(S,",").concat(S,",0,1,").concat(T?0:1,`,
414
+ `).concat(C.x,",").concat(C.y),_=jt(e.id)?of("recharts-radial-line-"):e.id;return w.createElement("text",Qa({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",l)}),w.createElement("defs",null,w.createElement("path",{id:_,d:M})),w.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Nie=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:l,startAngle:c,endAngle:f}=e,h=(c+f)/2;if(n==="outside"){var{x:m,y:g}=wn(r,i,l+t,h);return{x:m,y:g,textAnchor:m>=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 y=(o+l)/2,{x:b,y:S}=wn(r,i,y,h);return{x:b,y:S,textAnchor:"middle",verticalAnchor:"middle"}},T1=e=>"cx"in e&&he(e.cx),Tie=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,o;n!=null&&!T1(n)&&(o=n);var{x:l,y:c,upperWidth:f,lowerWidth:h,height:m}=t,g=l,y=l+(f-h)/2,b=(g+y)/2,S=(f+h)/2,j=g+f/2,A=m>=0?1:-1,O=A*r,T=A>0?"end":"start",N=A>0?"start":"end",C=f>=0?1:-1,M=C*r,_=C>0?"end":"start",k=C>0?"start":"end";if(i==="top"){var D={x:g+f/2,y:c-O,textAnchor:"middle",verticalAnchor:T};return _t(_t({},D),o?{height:Math.max(c-o.y,0),width:f}:{})}if(i==="bottom"){var B={x:y+h/2,y:c+m+O,textAnchor:"middle",verticalAnchor:N};return _t(_t({},B),o?{height:Math.max(o.y+o.height-(c+m),0),width:h}:{})}if(i==="left"){var K={x:b-M,y:c+m/2,textAnchor:_,verticalAnchor:"middle"};return _t(_t({},K),o?{width:Math.max(K.x-o.x,0),height:m}:{})}if(i==="right"){var $={x:b+S+M,y:c+m/2,textAnchor:k,verticalAnchor:"middle"};return _t(_t({},$),o?{width:Math.max(o.x+o.width-$.x,0),height:m}:{})}var Z=o?{width:S,height:m}:{};return i==="insideLeft"?_t({x:b+M,y:c+m/2,textAnchor:k,verticalAnchor:"middle"},Z):i==="insideRight"?_t({x:b+S-M,y:c+m/2,textAnchor:_,verticalAnchor:"middle"},Z):i==="insideTop"?_t({x:g+f/2,y:c+O,textAnchor:"middle",verticalAnchor:N},Z):i==="insideBottom"?_t({x:y+h/2,y:c+m-O,textAnchor:"middle",verticalAnchor:T},Z):i==="insideTopLeft"?_t({x:g+M,y:c+O,textAnchor:k,verticalAnchor:N},Z):i==="insideTopRight"?_t({x:g+f-M,y:c+O,textAnchor:_,verticalAnchor:N},Z):i==="insideBottomLeft"?_t({x:y+M,y:c+m-O,textAnchor:k,verticalAnchor:T},Z):i==="insideBottomRight"?_t({x:y+h-M,y:c+m-O,textAnchor:_,verticalAnchor:T},Z):i&&typeof i=="object"&&(he(i.x)||oi(i.x))&&(he(i.y)||oi(i.y))?_t({x:l+ra(i.x,S),y:c+ra(i.y,m),textAnchor:"end",verticalAnchor:"end"},Z):_t({x:j,y:c+m/2,textAnchor:"middle",verticalAnchor:"middle"},Z)},Cie={angle:0,offset:5,zIndex:un.label,position:"middle",textBreakAll:!1};function rs(e){var t=Sn(e,Cie),{viewBox:n,position:r,value:i,children:o,content:l,className:c="",textBreakAll:f,labelRef:h}=t,m=jie(),g=RL(),y=r==="center"?g:m??g,b,S,j;if(n==null?b=y:T1(n)?b=n:b=BR(n),!b||jt(i)&&jt(o)&&!w.isValidElement(l)&&typeof l!="function")return null;var A=_t(_t({},t),{},{viewBox:b});if(w.isValidElement(l)){var{labelRef:O}=A,T=nP(A,pie);return w.cloneElement(l,T)}if(typeof l=="function"){var{content:N}=A,C=nP(A,gie);if(S=w.createElement(l,C),w.isValidElement(S))return S}else S=Aie(t);var M=zn(t);if(T1(b)){if(r==="insideStart"||r==="insideEnd"||r==="end")return Eie(t,r,S,M,b);j=Nie(b,t.offset,t.position)}else j=Tie(t,b);return w.createElement($r,{zIndex:t.zIndex},w.createElement(rj,Qa({ref:h,className:Ze("recharts-label",c)},M,j,{textAnchor:cie(M.textAnchor)?M.textAnchor:j.textAnchor,breakAll:f}),S))}rs.displayName="Label";var kie=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?w.createElement(rs,Qa({key:"label-implicit"},r)):ya(e)?w.createElement(rs,Qa({key:"label-implicit",value:e},r)):w.isValidElement(e)?e.type===rs?w.cloneElement(e,_t({key:"label-implicit"},r)):w.createElement(rs,Qa({key:"label-implicit",content:e},r)):aj(e)?w.createElement(rs,Qa({key:"label-implicit",content:e},r)):e&&typeof e=="object"?w.createElement(rs,Qa({},e,{key:"label-implicit"},r)):null};function Mie(e){var{label:t,labelRef:n}=e,r=RL();return kie(t,r,n)||null}var Cx={},kx={},aP;function Pie(){return aP||(aP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(kx)),kx}var Mx={},iP;function _ie(){return iP||(iP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Mx)),Mx}var sP;function Die(){return sP||(sP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pie(),n=_ie(),r=Yw();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i})(Cx)),Cx}var Px,oP;function Rie(){return oP||(oP=1,Px=Die().last),Px}var zie=Rie();const Lie=wa(zie);var Iie=["valueAccessor"],Bie=["dataKey","clockWise","id","textBreakAll","zIndex"];function sp(){return sp=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},sp.apply(null,arguments)}function lP(e,t){if(e==null)return{};var n,r,i=Uie(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uie(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 $ie=e=>Array.isArray(e.value)?Lie(e.value):e.value,zL=w.createContext(void 0),LL=zL.Provider,IL=w.createContext(void 0);IL.Provider;function qie(){return w.useContext(zL)}function Vie(){return w.useContext(IL)}function um(e){var{valueAccessor:t=$ie}=e,n=lP(e,Iie),{dataKey:r,clockWise:i,id:o,textBreakAll:l,zIndex:c}=n,f=lP(n,Bie),h=qie(),m=Vie(),g=h||m;return!g||!g.length?null:w.createElement($r,{zIndex:c??un.label},w.createElement(Ln,{className:"recharts-label-list"},g.map((y,b)=>{var S,j=jt(r)?t(y,b):Ft(y&&y.payload,r),A=jt(o)?{}:{id:"".concat(o,"-").concat(b)};return w.createElement(rs,sp({key:"label-".concat(b)},zn(y),f,A,{fill:(S=n.fill)!==null&&S!==void 0?S:y.fill,parentViewBox:y.parentViewBox,value:j,textBreakAll:l,viewBox:y.viewBox,index:b,zIndex:0}))})))}um.displayName="LabelList";function BL(e){var{label:t}=e;return t?t===!0?w.createElement(um,{key:"labelList-implicit"}):w.isValidElement(t)||aj(t)?w.createElement(um,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(um,sp({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function C1(){return C1=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},C1.apply(null,arguments)}var UL=e=>{var{cx:t,cy:n,r,className:i}=e,o=Ze("recharts-dot",i);return he(t)&&he(n)&&he(r)?w.createElement("circle",C1({},Rr(e),Kw(e),{className:o,cx:t,cy:n,r})):null},Fie={radiusAxis:{},angleAxis:{}},$L=Jn({name:"polarAxis",initialState:Fie,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Hde,removeRadiusAxis:Kde,addAngleAxis:Yde,removeAngleAxis:Gde}=$L.actions,Hie=$L.reducer,_x={exports:{}},ot={};/**
415
+ * @license React
416
+ * react-is.production.js
417
+ *
418
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
419
+ *
420
+ * This source code is licensed under the MIT license found in the
421
+ * LICENSE file in the root directory of this source tree.
422
+ */var uP;function Kie(){if(uP)return ot;uP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(j){if(typeof j=="object"&&j!==null){var A=j.$$typeof;switch(A){case e:switch(j=j.type,j){case n:case i:case r:case f:case h:case y:return j;default:switch(j=j&&j.$$typeof,j){case l:case c:case g:case m:return j;case o:return j;default:return A}}case t:return A}}}return ot.ContextConsumer=o,ot.ContextProvider=l,ot.Element=e,ot.ForwardRef=c,ot.Fragment=n,ot.Lazy=g,ot.Memo=m,ot.Portal=t,ot.Profiler=i,ot.StrictMode=r,ot.Suspense=f,ot.SuspenseList=h,ot.isContextConsumer=function(j){return S(j)===o},ot.isContextProvider=function(j){return S(j)===l},ot.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ot.isForwardRef=function(j){return S(j)===c},ot.isFragment=function(j){return S(j)===n},ot.isLazy=function(j){return S(j)===g},ot.isMemo=function(j){return S(j)===m},ot.isPortal=function(j){return S(j)===t},ot.isProfiler=function(j){return S(j)===i},ot.isStrictMode=function(j){return S(j)===r},ot.isSuspense=function(j){return S(j)===f},ot.isSuspenseList=function(j){return S(j)===h},ot.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===i||j===r||j===f||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===m||j.$$typeof===l||j.$$typeof===o||j.$$typeof===c||j.$$typeof===b||j.getModuleId!==void 0)},ot.typeOf=S,ot}var cP;function Yie(){return cP||(cP=1,_x.exports=Kie()),_x.exports}var Gie=Yie(),fP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",dP=null,Dx=null,qL=e=>{if(e===dP&&Array.isArray(Dx))return Dx;var t=[];return w.Children.forEach(e,n=>{jt(n)||(Gie.isFragment(n)?t=t.concat(qL(n.props.children)):t.push(n))}),Dx=t,dP=e,t};function Wie(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>fP(i)):r=[fP(t)],qL(e).forEach(i=>{var o=tu(i,"type.displayName")||tu(i,"type.name");o&&r.indexOf(o)!==-1&&n.push(i)}),n}var VL=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Rx={},hP;function Qie(){return hP||(hP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(Rx)),Rx}var zx,mP;function Xie(){return mP||(mP=1,zx=Qie().isPlainObject),zx}var Zie=Xie();const Jie=wa(Zie);var pP,gP,vP,yP,xP;function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ese(e,t,n){return(t=tse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tse(e){var t=nse(e,"string");return typeof t=="symbol"?t:t+""}function nse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function op(){return op=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},op.apply(null,arguments)}function Mc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var SP=(e,t,n,r,i)=>{var o=n-r,l;return l=kt(pP||(pP=Mc(["M ",",",""])),e,t),l+=kt(gP||(gP=Mc(["L ",",",""])),e+n,t),l+=kt(vP||(vP=Mc(["L ",",",""])),e+n-o/2,t+i),l+=kt(yP||(yP=Mc(["L ",",",""])),e+n-o/2-r,t+i),l+=kt(xP||(xP=Mc(["L ",","," Z"])),e,t),l},rse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ase=e=>{var t=Sn(e,rse),{x:n,y:r,upperWidth:i,lowerWidth:o,height:l,className:c}=t,{animationEasing:f,animationDuration:h,animationBegin:m,isUpdateAnimationActive:g}=t,y=w.useRef(null),[b,S]=w.useState(-1),j=w.useRef(i),A=w.useRef(o),O=w.useRef(l),T=w.useRef(n),N=w.useRef(r),C=Jp(e,"trapezoid-");if(w.useEffect(()=>{if(y.current&&y.current.getTotalLength)try{var de=y.current.getTotalLength();de&&S(de)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||l!==+l||i===0&&o===0||l===0)return null;var M=Ze("recharts-trapezoid",c);if(!g)return w.createElement("g",null,w.createElement("path",op({},zn(t),{className:M,d:SP(n,r,i,o,l)})));var _=j.current,k=A.current,D=O.current,B=T.current,K=N.current,$="0px ".concat(b===-1?1:b,"px"),Z="".concat(b,"px 0px"),le=QR(["strokeDasharray"],h,f);return w.createElement(Zp,{animationId:C,key:C,canBegin:b>0,duration:h,easing:f,isActive:g,begin:m},de=>{var me=wt(_,i,de),q=wt(k,o,de),W=wt(D,l,de),Y=wt(B,n,de),oe=wt(K,r,de);y.current&&(j.current=me,A.current=q,O.current=W,T.current=Y,N.current=oe);var ne=de>0?{transition:le,strokeDasharray:Z}:{strokeDasharray:$};return w.createElement("path",op({},zn(t),{className:M,d:SP(Y,oe,me,q,W),ref:y,style:wP(wP({},ne),t.style)}))})},ise=["option","shapeType","activeClassName"];function sse(e,t){if(e==null)return{};var n,r,i=ose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ose(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 jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){lse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lse(e,t,n){return(t=use(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function use(e){var t=cse(e,"string");return typeof t=="symbol"?t:t+""}function cse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fse(e,t){return lp(lp({},t),e)}function dse(e,t){return e==="symbols"}function AP(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return w.createElement(e4,n);case"trapezoid":return w.createElement(ase,n);case"sector":return w.createElement(r4,n);case"symbols":if(dse(t))return w.createElement(Hw,n);break;case"curve":return w.createElement(Fc,n);default:return null}}function hse(e){return w.isValidElement(e)?e.props:e}function mse(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,i=sse(e,ise),o;if(w.isValidElement(t))o=w.cloneElement(t,lp(lp({},i),hse(t)));else if(typeof t=="function")o=t(i,i.index);else if(Jie(t)&&typeof t!="boolean"){var l=fse(t,i);o=w.createElement(AP,{shapeType:n,elementProps:l})}else{var c=i;o=w.createElement(AP,{shapeType:n,elementProps:c})}return i.isActive?w.createElement(Ln,{className:r},o):o}var FL=(e,t,n)=>{var r=At();return(i,o)=>l=>{e==null||e(i,o,l),r(Jz({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},HL=e=>{var t=At();return(n,r)=>i=>{e==null||e(n,r,i),t(Rne())}},KL=(e,t,n)=>{var r=At();return(i,o)=>l=>{e==null||e(i,o,l),r(zne({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function YL(e){var{tooltipEntrySettings:t}=e,n=At(),r=Tn(),i=w.useRef(null);return w.useLayoutEffect(()=>{r||(i.current===null?n(Mne(t)):i.current!==t&&n(Pne({prev:i.current,next:t})),i.current=t)},[t,n,r]),w.useLayoutEffect(()=>()=>{i.current&&(n(_ne(i.current)),i.current=null)},[n]),null}function GL(e){var{legendPayload:t}=e,n=At(),r=Tn(),i=w.useRef(null);return w.useLayoutEffect(()=>{r||(i.current===null?n(ZQ(t)):i.current!==t&&n(JQ({prev:i.current,next:t})),i.current=t)},[n,r,t]),w.useLayoutEffect(()=>()=>{i.current&&(n(eX(i.current)),i.current=null)},[n]),null}var Lx,pse=()=>{var[e]=w.useState(()=>of("uid-"));return e},gse=(Lx=N8.useId)!==null&&Lx!==void 0?Lx:pse;function vse(e,t){var n=gse();return t||(e?"".concat(e,"-").concat(n):n)}var yse=w.createContext(void 0),WL=e=>{var{id:t,type:n,children:r}=e,i=vse("recharts-".concat(n),t);return w.createElement(yse.Provider,{value:i},r(i))},xse={cartesianItems:[],polarItems:[]},QL=Jn({name:"graphicalItems",initialState:xse,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:vt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=ta(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:vt()},removeCartesianGraphicalItem:{reducer(e,t){var n=ta(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:vt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:vt()},removePolarGraphicalItem:{reducer(e,t){var n=ta(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:vt()}}}),{addCartesianGraphicalItem:bse,replaceCartesianGraphicalItem:wse,removeCartesianGraphicalItem:Sse,addPolarGraphicalItem:Wde,removePolarGraphicalItem:Qde}=QL.actions,jse=QL.reducer,Ase=e=>{var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(bse(e)):n.current!==e&&t(wse({prev:n.current,next:e})),n.current=e},[t,e]),w.useLayoutEffect(()=>()=>{n.current&&(t(Sse(n.current)),n.current=null)},[t]),null},XL=w.memo(Ase),Ose=["points"];function OP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ix(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(r){Ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ese(e,t,n){return(t=Nse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nse(e){var t=Tse(e,"string");return typeof t=="symbol"?t:t+""}function Tse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function up(){return up=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},up.apply(null,arguments)}function Cse(e,t){if(e==null)return{};var n,r,i=kse(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kse(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 Mse(e){var{option:t,dotProps:n,className:r}=e;if(w.isValidElement(t))return w.cloneElement(t,n);if(typeof t=="function")return t(n);var i=Ze(r,typeof t!="boolean"?t.className:""),o=n??{},{points:l}=o,c=Cse(o,Ose);return w.createElement(UL,up({},c,{className:i}))}function Pse(e,t){return e==null?!1:t?!0:e.length===1}function _se(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:o,baseProps:l,needClip:c,clipPathId:f,zIndex:h=un.scatter}=e;if(!Pse(t,n))return null;var m=VL(n),g=PK(n),y=t.map((S,j)=>{var A,O,T=Ix(Ix(Ix({r:3},l),g),{},{index:j,cx:(A=S.x)!==null&&A!==void 0?A:void 0,cy:(O=S.y)!==null&&O!==void 0?O:void 0,dataKey:o,value:S.value,payload:S.payload,points:t});return w.createElement(Mse,{key:"dot-".concat(j),option:n,dotProps:T,className:i})}),b={};return c&&f!=null&&(b.clipPath="url(#clipPath-".concat(m?"":"dots-").concat(f,")")),w.createElement($r,{zIndex:h},w.createElement(Ln,up({className:r},b),y))}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){Dse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dse(e,t,n){return(t=Rse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rse(e){var t=zse(e,"string");return typeof t=="symbol"?t:t+""}function zse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZL=0,Lse={xAxis:{},yAxis:{},zAxis:{}},JL=Jn({name:"cartesianAxis",initialState:Lse,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:vt()},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]=r)},prepare:vt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:vt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:vt()},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]=r)},prepare:vt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:vt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:vt()},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]=r)},prepare:vt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:vt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&r===o[1]&&r!==i.width&&Math.abs(r-o[0])<=1)return;var l=[...o,r].slice(-3);e.yAxis[n]=NP(NP({},e.yAxis[n]),{},{width:r,widthHistory:l})}}}}),{addXAxis:Ise,replaceXAxis:Bse,removeXAxis:Use,addYAxis:$se,replaceYAxis:qse,removeYAxis:Vse,addZAxis:Xde,replaceZAxis:Zde,removeZAxis:Jde,updateYAxisWidth:Fse}=JL.actions,Hse=JL.reducer,Kse=Q([cn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Yse=Q([Kse,yi,xi],(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)}}),ij=()=>we(Yse),Gse=()=>we(Ore);function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(n),!0).forEach(function(r){Wse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wse(e,t,n){return(t=Qse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qse(e){var t=Xse(e,"string");return typeof t=="symbol"?t:t+""}function Xse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zse=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o,clipPath:l}=e;if(i===!1||t.x==null||t.y==null)return null;var c={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},f=Bx(Bx(Bx({},c),Lf(i)),Kw(i)),h;return w.isValidElement(i)?h=w.cloneElement(i,f):typeof i=="function"?h=i(f):h=w.createElement(UL,f),w.createElement(Ln,{className:"recharts-active-dot",clipPath:l},h)};function CP(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:o,zIndex:l=un.activeDot}=e,c=we(Co),f=Gse();if(t==null||f==null)return null;var h=t.find(m=>f.includes(m.payload));return jt(h)?null:w.createElement($r,{zIndex:l},w.createElement(Zse,{point:h,childIndex:Number(c),mainColor:n,dataKey:i,activeDot:r,clipPath:o}))}var kP=(e,t,n)=>{var r=n??e;if(!jt(r))return ra(r,t,0)},Jse=(e,t,n)=>{var r={},i=e.filter(fg),o=e.filter(h=>h.stackId==null),l=i.reduce((h,m)=>(h[m.stackId]||(h[m.stackId]=[]),h[m.stackId].push(m),h),r),c=Object.entries(l).map(h=>{var[m,g]=h,y=g.map(S=>S.dataKey),b=kP(t,n,g[0].barSize);return{stackId:m,dataKeys:y,barSize:b}}),f=o.map(h=>{var m=[h.dataKey].filter(y=>y!=null),g=kP(t,n,h.barSize);return{stackId:void 0,dataKeys:m,barSize:g}});return[...c,...f]};function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){eoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eoe(e,t,n){return(t=toe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function toe(e){var t=noe(e,"string");return typeof t=="symbol"?t:t+""}function noe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function roe(e,t,n,r,i){var o=r.length;if(!(o<1)){var l=ra(e,n,0,!0),c,f=[];if(ft(r[0].barSize)){var h=!1,m=n/o,g=r.reduce((O,T)=>O+(T.barSize||0),0);g+=(o-1)*l,g>=n&&(g-=(o-1)*l,l=0),g>=n&&m>0&&(h=!0,m*=.9,g=o*m);var y=(n-g)/2>>0,b={offset:y-l,size:0};c=r.reduce((O,T)=>{var N,C={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:b.offset+b.size+l,size:h?m:(N=T.barSize)!==null&&N!==void 0?N:0}},M=[...O,C];return b=M[M.length-1].position,M},f)}else{var S=ra(t,n,0,!0);n-2*S-(o-1)*l<=0&&(l=0);var j=(n-2*S-(o-1)*l)/o;j>1&&(j>>=0);var A=ft(i)?Math.min(j,i):j;c=r.reduce((O,T,N)=>[...O,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:S+(j+l)*N+(j-A)/2,size:A}}],f)}return c}}var aoe=(e,t,n,r,i,o,l)=>{var c=jt(l)?t:l,f=roe(n,r,i!==o?i:o,e,c);return i!==o&&f!=null&&(f=f.map(h=>Kh(Kh({},h),{},{position:Kh(Kh({},h.position),{},{offset:h.position.offset-i/2})}))),f},ioe=(e,t)=>{var n=cg(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(l=>l.key===n)}}}};function soe(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ft(e.zIndex)?e.zIndex:t}var ooe=e=>{var{chartData:t}=e,n=At(),r=Tn();return w.useEffect(()=>r?()=>{}:(n($M(t)),()=>{n($M(void 0))}),[t,n,r]),null},PP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},e6=Jn({name:"brush",initialState:PP,reducers:{setBrushSettings(e,t){return t.payload==null?PP:t.payload}}}),{setBrushSettings:ehe}=e6.actions,loe=e6.reducer;function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=foe(e,"string");return typeof t=="symbol"?t:t+""}function foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class sj{static create(t){return new sj(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+l}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}uoe(sj,"EPS",1e-4);function doe(e){return(e%180+180)%180}var hoe=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=doe(i),l=o*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},moe={dots:[],areas:[],lines:[]},t6=Jn({name:"referenceElements",initialState:moe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ta(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=ta(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=ta(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:the,removeDot:nhe,addArea:rhe,removeArea:ahe,addLine:ihe,removeLine:she}=t6.actions,poe=t6.reducer,goe=w.createContext(void 0),voe=e=>{var{children:t}=e,[n]=w.useState("".concat(of("recharts"),"-clip")),r=ij();if(r==null)return null;var{x:i,y:o,width:l,height:c}=r;return w.createElement(goe.Provider,{value:n},w.createElement("defs",null,w.createElement("clipPath",{id:n},w.createElement("rect",{x:i,y:o,height:c,width:l}))),t)};function n6(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 yoe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return hoe(r,n)}function xoe(e,t,n){var r=n==="width",{x:i,y:o,width:l,height:c}=e;return t===1?{start:r?i:o,end:r?i+l:o+c}:{start:r?i+l:o+c,end:r?i:o}}function wf(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function boe(e,t){return n6(e,t+1)}function woe(e,t,n,r,i){for(var o=(r||[]).slice(),{start:l,end:c}=t,f=0,h=1,m=l,g=function(){var S=r==null?void 0:r[f];if(S===void 0)return{v:n6(r,h)};var j=f,A,O=()=>(A===void 0&&(A=n(S,j)),A),T=S.coordinate,N=f===0||wf(e,T,O,m,c);N||(f=0,m=l,h+=1),N&&(m=T+e*(O()/2+i),f+=h)},y;h<=o.length;)if(y=g(),y)return y.v;return[]}function Soe(e,t,n,r,i){var o=(r||[]).slice(),l=o.length;if(l===0)return[];for(var{start:c,end:f}=t,h=1;h<=l;h++){for(var m=(l-1)%h,g=c,y=!0,b=function(){var T=r[S],N=S,C,M=()=>(C===void 0&&(C=n(T,N)),C),_=T.coordinate,k=S===m||wf(e,_,M,g,f);if(!k)return y=!1,1;k&&(g=_+e*(M()/2+i))},S=m;S<l&&!b();S+=h);if(y){for(var j=[],A=m;A<l;A+=h)j.push(r[A]);return j}}return[]}function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function joe(e,t,n){return(t=Aoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aoe(e){var t=Ooe(e,"string");return typeof t=="symbol"?t:t+""}function Ooe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eoe(e,t,n,r,i){for(var o=(r||[]).slice(),l=o.length,{start:c}=t,{end:f}=t,h=function(y){var b=o[y],S,j=()=>(S===void 0&&(S=n(b,y)),S);if(y===l-1){var A=e*(b.coordinate+e*j()/2-f);o[y]=b=On(On({},b),{},{tickCoord:A>0?b.coordinate-A*e:b.coordinate})}else o[y]=b=On(On({},b),{},{tickCoord:b.coordinate});if(b.tickCoord!=null){var O=wf(e,b.tickCoord,j,c,f);O&&(f=b.tickCoord-e*(j()/2+i),o[y]=On(On({},b),{},{isShow:!0}))}},m=l-1;m>=0;m--)h(m);return o}function Noe(e,t,n,r,i,o){var l=(r||[]).slice(),c=l.length,{start:f,end:h}=t;if(o){var m=r[c-1],g=n(m,c-1),y=e*(m.coordinate+e*g/2-h);if(l[c-1]=m=On(On({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate}),m.tickCoord!=null){var b=wf(e,m.tickCoord,()=>g,f,h);b&&(h=m.tickCoord-e*(g/2+i),l[c-1]=On(On({},m),{},{isShow:!0}))}}for(var S=o?c-1:c,j=function(T){var N=l[T],C,M=()=>(C===void 0&&(C=n(N,T)),C);if(T===0){var _=e*(N.coordinate-e*M()/2-f);l[T]=N=On(On({},N),{},{tickCoord:_<0?N.coordinate-_*e:N.coordinate})}else l[T]=N=On(On({},N),{},{tickCoord:N.coordinate});if(N.tickCoord!=null){var k=wf(e,N.tickCoord,M,f,h);k&&(f=N.tickCoord+e*(M()/2+i),l[T]=On(On({},N),{},{isShow:!0}))}},A=0;A<S;A++)j(A);return l}function oj(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:l,orientation:c,interval:f,tickFormatter:h,unit:m,angle:g}=e;if(!i||!i.length||!r)return[];if(he(f)||Ff.isSsr){var y;return(y=boe(i,he(f)?f:0))!==null&&y!==void 0?y:[]}var b=[],S=c==="top"||c==="bottom"?"width":"height",j=m&&S==="width"?Hc(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},A=(N,C)=>{var M=typeof h=="function"?h(N.value,C):N.value;return S==="width"?yoe(Hc(M,{fontSize:t,letterSpacing:n}),j,g):Hc(M,{fontSize:t,letterSpacing:n})[S]},O=i.length>=2?Qn(i[1].coordinate-i[0].coordinate):1,T=xoe(o,O,S);return f==="equidistantPreserveStart"?woe(O,T,A,i,l):f==="equidistantPreserveEnd"?Soe(O,T,A,i,l):(f==="preserveStart"||f==="preserveStartEnd"?b=Noe(O,T,A,i,l,f==="preserveStartEnd"):b=Eoe(O,T,A,i,l),b.filter(N=>N.isShow))}var Toe=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,l=0;if(t){Array.from(t).forEach(m=>{if(m){var g=m.getBoundingClientRect();g.width>l&&(l=g.width)}});var c=n?n.getBoundingClientRect().width:0,f=i+o,h=l+f+c+(n?r:0);return Math.round(h)}return 0},Coe=["axisLine","width","height","className","hide","ticks","axisType"];function koe(e,t){if(e==null)return{};var n,r,i=Moe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Moe(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 ko(){return ko=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},ko.apply(null,arguments)}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(r){Poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Poe(e,t,n){return(t=_oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e){var t=Doe(e,"string");return typeof t=="symbol"?t:t+""}function Doe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ni={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:un.axis};function Roe(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:l,axisLine:c,otherSvgProps:f}=e;if(!c)return null;var h=Vt(Vt(Vt({},f),Rr(c)),{},{fill:"none"});if(o==="top"||o==="bottom"){var m=+(o==="top"&&!l||o==="bottom"&&l);h=Vt(Vt({},h),{},{x1:t,y1:n+m*i,x2:t+r,y2:n+m*i})}else{var g=+(o==="left"&&!l||o==="right"&&l);h=Vt(Vt({},h),{},{x1:t+g*r,y1:n,x2:t+g*r,y2:n+i})}return w.createElement("line",ko({},h,{className:Ze("recharts-cartesian-axis-line",tu(c,"className"))}))}function zoe(e,t,n,r,i,o,l,c,f){var h,m,g,y,b,S,j=c?-1:1,A=e.tickSize||l,O=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=m=e.coordinate,y=n+ +!c*i,g=y-j*A,S=g-j*f,b=O;break;case"left":g=y=e.coordinate,m=t+ +!c*r,h=m-j*A,b=h-j*f,S=O;break;case"right":g=y=e.coordinate,m=t+ +c*r,h=m+j*A,b=h+j*f,S=O;break;default:h=m=e.coordinate,y=n+ +c*i,g=y+j*A,S=g+j*f,b=O;break}return{line:{x1:h,y1:g,x2:m,y2:y},tick:{x:b,y:S}}}function Loe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Ioe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Boe(e){var{option:t,tickProps:n,value:r}=e,i,o=Ze(n.className,"recharts-cartesian-axis-tick-value");if(w.isValidElement(t))i=w.cloneElement(t,Vt(Vt({},n),{},{className:o}));else if(typeof t=="function")i=t(Vt(Vt({},n),{},{className:o}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=Ze(l,t==null?void 0:t.className)),i=w.createElement(rj,ko({},n,{className:l}),r)}return i}var Uoe=w.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:o,tickFormatter:l,unit:c,padding:f,tickTextProps:h,orientation:m,mirror:g,x:y,y:b,width:S,height:j,tickSize:A,tickMargin:O,fontSize:T,letterSpacing:N,getTicksConfig:C,events:M,axisType:_}=e,k=oj(Vt(Vt({},C),{},{ticks:n}),T,N),D=Loe(m,g),B=Ioe(m,g),K=Rr(C),$=Lf(r),Z={};typeof i=="object"&&(Z=i);var le=Vt(Vt({},K),{},{fill:"none"},Z),de=k.map(W=>Vt({entry:W},zoe(W,y,b,S,j,m,A,g,O))),me=de.map(W=>{var{entry:Y,line:oe}=W;return w.createElement(Ln,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(Y.value,"-").concat(Y.coordinate,"-").concat(Y.tickCoord)},i&&w.createElement("line",ko({},le,oe,{className:Ze("recharts-cartesian-axis-tick-line",tu(i,"className"))})))}),q=de.map((W,Y)=>{var{entry:oe,tick:ne}=W,R=Vt(Vt(Vt(Vt({textAnchor:D,verticalAnchor:B},K),{},{stroke:"none",fill:o},$),ne),{},{index:Y,payload:oe,visibleTicksCount:k.length,tickFormatter:l,padding:f},h);return w.createElement(Ln,ko({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(oe.value,"-").concat(oe.coordinate,"-").concat(oe.tickCoord)},Mp(M,oe,Y)),r&&w.createElement(Boe,{option:r,tickProps:R,value:"".concat(typeof l=="function"?l(oe.value,Y):oe.value).concat(c||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(_,"-ticks")},q.length>0&&w.createElement($r,{zIndex:un.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(_,"-tick-labels"),ref:t},q)),me.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(_,"-tick-lines")},me))}),$oe=w.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:o,hide:l,ticks:c,axisType:f}=e,h=koe(e,Coe),[m,g]=w.useState(""),[y,b]=w.useState(""),S=w.useRef(null);w.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var A;return Toe({ticks:S.current,label:(A=e.labelRef)===null||A===void 0?void 0:A.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=w.useCallback(A=>{if(A){var O=A.getElementsByClassName("recharts-cartesian-axis-tick-value");S.current=O;var T=O[0];if(T){var N=window.getComputedStyle(T),C=N.fontSize,M=N.letterSpacing;(C!==m||M!==y)&&(g(C),b(M))}}},[m,y]);return l||r!=null&&r<=0||i!=null&&i<=0?null:w.createElement($r,{zIndex:e.zIndex},w.createElement(Ln,{className:Ze("recharts-cartesian-axis",o)},w.createElement(Roe,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Rr(e)}),w.createElement(Uoe,{ref:j,axisType:f,events:h,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:y,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:c,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(wie,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Mie,{label:e.label,labelRef:e.labelRef}),e.children)))}),lj=w.forwardRef((e,t)=>{var n=Sn(e,ni);return w.createElement($oe,ko({},n,{ref:t}))});lj.displayName="CartesianAxis";var qoe=["x1","y1","x2","y2","key"],Voe=["offset"],Foe=["xAxisId","yAxisId"],Hoe=["xAxisId","yAxisId"];function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){Koe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Koe(e,t,n){return(t=Yoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yoe(e){var t=Goe(e,"string");return typeof t=="symbol"?t:t+""}function Goe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ao(){return ao=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},ao.apply(null,arguments)}function cp(e,t){if(e==null)return{};var n,r,i=Woe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Woe(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 Qoe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:l,ry:c}=e;return w.createElement("rect",{x:r,y:i,ry:c,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function r6(e){var{option:t,lineItemProps:n}=e,r;if(w.isValidElement(t))r=w.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:o,y1:l,x2:c,y2:f,key:h}=n,m=cp(n,qoe),g=(i=Rr(m))!==null&&i!==void 0?i:{},{offset:y}=g,b=cp(g,Voe);r=w.createElement("line",ao({},b,{x1:o,y1:l,x2:c,y2:f,fill:"none",key:h}))}return r}function Xoe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,c=cp(e,Foe),f=i.map((h,m)=>{var g=En(En({},c),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(m),index:m});return w.createElement(r6,{key:"line-".concat(m),option:r,lineItemProps:g})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function Zoe(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,c=cp(e,Hoe),f=i.map((h,m)=>{var g=En(En({},c),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(m),index:m});return w.createElement(r6,{option:r,lineItemProps:g,key:"line-".concat(m)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function Joe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:l,horizontalPoints:c,horizontal:f=!0}=e;if(!f||!t||!t.length||c==null)return null;var h=c.map(g=>Math.round(g+i-i)).sort((g,y)=>g-y);i!==h[0]&&h.unshift(0);var m=h.map((g,y)=>{var b=!h[y+1],S=b?i+l-g:h[y+1]-g;if(S<=0)return null;var j=y%t.length;return w.createElement("rect",{key:"react-".concat(y),y:g,x:r,height:S,width:o,stroke:"none",fill:t[j],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function ele(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:l,height:c,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var h=f.map(g=>Math.round(g+i-i)).sort((g,y)=>g-y);i!==h[0]&&h.unshift(0);var m=h.map((g,y)=>{var b=!h[y+1],S=b?i+l-g:h[y+1]-g;if(S<=0)return null;var j=y%n.length;return w.createElement("rect",{key:"react-".concat(y),x:g,y:o,width:S,height:c,stroke:"none",fill:n[j],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var tle=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return PR(oj(En(En(En({},ni),n),{},{ticks:_R(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},nle=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return PR(oj(En(En(En({},ni),n),{},{ticks:_R(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},rle={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:un.grid};function Kc(e){var t=rS(),n=aS(),r=UR(),i=En(En({},Sn(e,rle)),{},{x:he(e.x)?e.x:r.left,y:he(e.y)?e.y:r.top,width:he(e.width)?e.width:r.width,height:he(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:l,x:c,y:f,width:h,height:m,syncWithTicks:g,horizontalValues:y,verticalValues:b}=i,S=Tn(),j=we(B=>CM(B,"xAxis",o,S)),A=we(B=>CM(B,"yAxis",l,S));if(!xa(h)||!xa(m)||!he(c)||!he(f))return null;var O=i.verticalCoordinatesGenerator||tle,T=i.horizontalCoordinatesGenerator||nle,{horizontalPoints:N,verticalPoints:C}=i;if((!N||!N.length)&&typeof T=="function"){var M=y&&y.length,_=T({yAxis:A?En(En({},A),{},{ticks:M?y:A.ticks}):void 0,width:t??h,height:n??m,offset:r},M?!0:g);Lm(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(N=_)}if((!C||!C.length)&&typeof O=="function"){var k=b&&b.length,D=O({xAxis:j?En(En({},j),{},{ticks:k?b:j.ticks}):void 0,width:t??h,height:n??m,offset:r},k?!0:g);Lm(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(C=D)}return w.createElement($r,{zIndex:i.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(Qoe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(Joe,ao({},i,{horizontalPoints:N})),w.createElement(ele,ao({},i,{verticalPoints:C})),w.createElement(Xoe,ao({},i,{offset:r,horizontalPoints:N,xAxis:j,yAxis:A})),w.createElement(Zoe,ao({},i,{offset:r,verticalPoints:C,xAxis:j,yAxis:A}))))}Kc.displayName="CartesianGrid";var ale={},a6=Jn({name:"errorBars",initialState:ale,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(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:ohe,replaceErrorBar:lhe,removeErrorBar:uhe}=a6.actions,ile=a6.reducer,sle=["children"];function ole(e,t){if(e==null)return{};var n,r,i=lle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lle(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 ule={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},cle=w.createContext(ule);function fle(e){var{children:t}=e,n=ole(e,sle);return w.createElement(cle.Provider,{value:n},t)}function uj(e,t){var n,r,i=we(h=>Si(h,e)),o=we(h=>ji(h,t)),l=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:rn.allowDataOverflow,c=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:an.allowDataOverflow,f=l||c;return{needClip:f,needClipX:l,needClipY:c}}function i6(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=ij(),{needClipX:o,needClipY:l,needClip:c}=uj(t,n);if(!c||!i)return null;var{x:f,y:h,width:m,height:g}=i;return w.createElement("clipPath",{id:"clipPath-".concat(r)},w.createElement("rect",{x:o?f:f-m/2,y:l?h:h-g/2,width:o?m:m*2,height:l?g:g*2}))}function dle(e){var t=Lf(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:o}=t,l=Number(i),c=Number(o);return(Number.isNaN(l)||l<0)&&(l=n),(Number.isNaN(c)||c<0)&&(c=r),{r:l,strokeWidth:c}}return{r:n,strokeWidth:r}}var Ux={exports:{}},$x={};/**
423
+ * @license React
424
+ * use-sync-external-store-with-selector.production.js
425
+ *
426
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
427
+ *
428
+ * This source code is licensed under the MIT license found in the
429
+ * LICENSE file in the root directory of this source tree.
430
+ */var zP;function hle(){if(zP)return $x;zP=1;var e=cu();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return $x.useSyncExternalStoreWithSelector=function(f,h,m,g,y){var b=i(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=l(function(){function A(M){if(!O){if(O=!0,T=M,M=g(M),y!==void 0&&S.hasValue){var _=S.value;if(y(_,M))return N=_}return N=M}if(_=N,n(T,M))return _;var k=g(M);return y!==void 0&&y(_,k)?(T=M,_):(T=M,N=k)}var O=!1,T,N,C=m===void 0?null:m;return[function(){return A(h())},C===null?void 0:function(){return A(C())}]},[h,m,g,y]);var j=r(f,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=j},[j]),c(j),j},$x}var LP;function mle(){return LP||(LP=1,Ux.exports=hle()),Ux.exports}mle();function ple(e){e()}function gle(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ple(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var IP={notify(){},get:()=>[]};function vle(e,t){let n,r=IP,i=0,o=!1;function l(j){m();const A=r.subscribe(j);let O=!1;return()=>{O||(O=!0,A(),g())}}function c(){r.notify()}function f(){S.onStateChange&&S.onStateChange()}function h(){return o}function m(){i++,n||(n=e.subscribe(f),r=gle())}function g(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=IP)}function y(){o||(o=!0,m())}function b(){o&&(o=!1,g())}const S={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return S}var yle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xle=yle(),ble=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wle=ble(),Sle=()=>xle||wle?w.useLayoutEffect:w.useEffect,jle=Sle();function BP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ale(e,t){if(BP(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!BP(e[n[i]],t[n[i]]))return!1;return!0}var qx=Symbol.for("react-redux-context"),Vx=typeof globalThis<"u"?globalThis:{};function Ole(){if(!w.createContext)return{};const e=Vx[qx]??(Vx[qx]=new Map);let t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}var Ele=Ole();function Nle(e){const{children:t,context:n,serverState:r,store:i}=e,o=w.useMemo(()=>{const f=vle(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),l=w.useMemo(()=>i.getState(),[i]);jle(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,l]);const c=n||Ele;return w.createElement(c.Provider,{value:o},t)}var Tle=Nle,Cle=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function kle(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function xg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Cle.has(r)){if(e[r]==null&&t[r]==null)continue;if(!Ale(e[r],t[r]))return!1}else if(!kle(e[r],t[r]))return!1;return!0}function Sa(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:ZL}function ja(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:ZL}var s6=(e,t,n)=>ws(e,"xAxis",Sa(e,t),n),o6=(e,t,n)=>bs(e,"xAxis",Sa(e,t),n),l6=(e,t,n)=>ws(e,"yAxis",ja(e,t),n),u6=(e,t,n)=>bs(e,"yAxis",ja(e,t),n),Mle=Q([We,s6,l6,o6,u6],(e,t,n,r,i)=>vi(e,"xAxis")?ru(t,r,!1):ru(n,i,!1)),Ple=(e,t)=>t,c6=Q([mg,Ple],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),f6=e=>{var t=We(e),n=vi(t,"xAxis");return n?"yAxis":"xAxis"},_le=(e,t)=>{var n=f6(e);return n==="yAxis"?ja(e,t):Sa(e,t)},Dle=(e,t,n)=>rp(e,f6(e),_le(e,t),n),Rle=Q([c6,Dle],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=cg(e);if(!(r==null||i==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,l=o==null?void 0:o.find(c=>c.key===i);if(l!=null)return l.map(c=>[c[0],c[1]])}}}),zle=Q([We,s6,l6,o6,u6,Rle,$4,Mle,c6,Ate],(e,t,n,r,i,o,l,c,f,h)=>{var{chartData:m,dataStartIndex:g,dataEndIndex:y}=l;if(!(f==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||c==null)){var{data:b}=f,S;if(b&&b.length>0?S=b:S=m==null?void 0:m.slice(g,y+1),S!=null)return tue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:g,areaSettings:f,stackedData:o,displayedData:S,chartBaseValue:h,bandSize:c})}}),Lle=["id"],Ile=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function bo(){return bo=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},bo.apply(null,arguments)}function d6(e,t){if(e==null)return{};var n,r,i=Ble(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ble(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 UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){Ule(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ule(e,t,n){return(t=$le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $le(e){var t=qle(e,"string");return typeof t=="symbol"?t:t+""}function qle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fp(e,t){return e&&e!=="none"?e:t}var Vle=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:o,hide:l}=e;return[{inactive:l,dataKey:t,type:o,color:fp(r,i),value:qp(n,t),payload:e}]},Fle=w.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:l,hide:c,unit:f,tooltipType:h,id:m}=e,g={dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:qp(l,t),hide:c,type:h,color:fp(r,o),unit:f,graphicalItemId:m}};return w.createElement(YL,{tooltipEntrySettings:g})});function Hle(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:o,dataKey:l}=r,c=Rr(r);return w.createElement(_se,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:c,needClip:i,clipPathId:t})}function Kle(e){var{showLabels:t,children:n,points:r}=e,i=r.map(o=>{var l,c,f={x:(l=o.x)!==null&&l!==void 0?l:0,y:(c=o.y)!==null&&c!==void 0?c:0,width:0,lowerWidth:0,upperWidth:0,height:0};return zl(zl({},f),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return w.createElement(LL,{value:t?i:void 0},n)}function $P(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:o}=e,{layout:l,type:c,stroke:f,connectNulls:h,isRange:m}=o,{id:g}=o,y=d6(o,Lle),b=Rr(y),S=zn(y);return w.createElement(w.Fragment,null,(t==null?void 0:t.length)>1&&w.createElement(Ln,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},w.createElement(Fc,bo({},S,{id:g,points:t,connectNulls:h,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&w.createElement(Fc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:t})),f!=="none"&&m&&w.createElement(Fc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:n}))),w.createElement(Hle,{points:t,props:y,clipPathId:i}))}function Yle(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:l}=e,c=(t=o[0])===null||t===void 0?void 0:t.y,f=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!ft(c)||!ft(f))return null;var h=r*Math.abs(c-f),m=Math.max(...o.map(g=>g.x||0));return he(i)?m=Math.max(i,m):i&&Array.isArray(i)&&i.length&&(m=Math.max(...i.map(g=>g.x||0),m)),he(m)?w.createElement("rect",{x:0,y:c<f?c:c-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}function Gle(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:l}=e,c=(t=o[0])===null||t===void 0?void 0:t.x,f=(n=o[o.length-1])===null||n===void 0?void 0:n.x;if(!ft(c)||!ft(f))return null;var h=r*Math.abs(c-f),m=Math.max(...o.map(g=>g.y||0));return he(i)?m=Math.max(i,m):i&&Array.isArray(i)&&i.length&&(m=Math.max(...i.map(g=>g.y||0),m)),he(m)?w.createElement("rect",{x:c<f?c:c-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}function Wle(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:o}=e;return n==="vertical"?w.createElement(Yle,{alpha:t,points:r,baseLine:i,strokeWidth:o}):w.createElement(Gle,{alpha:t,points:r,baseLine:i,strokeWidth:o})}function Qle(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o}=e,{points:l,baseLine:c,isAnimationActive:f,animationBegin:h,animationDuration:m,animationEasing:g,onAnimationStart:y,onAnimationEnd:b}=r,S=w.useMemo(()=>({points:l,baseLine:c}),[l,c]),j=Jp(S,"recharts-area-"),A=LQ(),[O,T]=w.useState(!1),N=!O,C=w.useCallback(()=>{typeof b=="function"&&b(),T(!1)},[b]),M=w.useCallback(()=>{typeof y=="function"&&y(),T(!0)},[y]);if(A==null)return null;var _=i.current,k=o.current;return w.createElement(Kle,{showLabels:N,points:l},r.children,w.createElement(Zp,{animationId:j,begin:h,duration:m,isActive:f,easing:g,onAnimationEnd:C,onAnimationStart:M,key:j},D=>{if(_){var B=_.length/l.length,K=D===1?l:l.map((Z,le)=>{var de=Math.floor(le*B);if(_[de]){var me=_[de];return zl(zl({},Z),{},{x:wt(me.x,Z.x,D),y:wt(me.y,Z.y,D)})}return Z}),$;return he(c)?$=wt(k,c,D):jt(c)||zr(c)?$=wt(k,0,D):$=c.map((Z,le)=>{var de=Math.floor(le*B);if(Array.isArray(k)&&k[de]){var me=k[de];return zl(zl({},Z),{},{x:wt(me.x,Z.x,D),y:wt(me.y,Z.y,D)})}return Z}),D>0&&(i.current=K,o.current=$),w.createElement($P,{points:K,baseLine:$,needClip:t,clipPathId:n,props:r})}return D>0&&(i.current=l,o.current=c),w.createElement(Ln,null,f&&w.createElement("defs",null,w.createElement("clipPath",{id:"animationClipPath-".concat(n)},w.createElement(Wle,{alpha:D,points:l,baseLine:c,layout:A,strokeWidth:r.strokeWidth}))),w.createElement(Ln,{clipPath:"url(#animationClipPath-".concat(n,")")},w.createElement($P,{points:l,baseLine:c,needClip:t,clipPathId:n,props:r})))}),w.createElement(BL,{label:r.label}))}function Xle(e){var{needClip:t,clipPathId:n,props:r}=e,i=w.useRef(null),o=w.useRef();return w.createElement(Qle,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o})}class Zle extends w.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:o,left:l,needClip:c,xAxisId:f,yAxisId:h,width:m,height:g,id:y,baseLine:b,zIndex:S}=this.props;if(t)return null;var j=Ze("recharts-area",i),A=y,{r:O,strokeWidth:T}=dle(n),N=VL(n),C=O*2+T,M=c?"url(#clipPath-".concat(N?"":"dots-").concat(A,")"):void 0;return w.createElement($r,{zIndex:S},w.createElement(Ln,{className:j},c&&w.createElement("defs",null,w.createElement(i6,{clipPathId:A,xAxisId:f,yAxisId:h}),!N&&w.createElement("clipPath",{id:"clipPath-dots-".concat(A)},w.createElement("rect",{x:l-C/2,y:o-C/2,width:m+C,height:g+C}))),w.createElement(Xle,{needClip:c,clipPathId:A,props:this.props})),w.createElement(CP,{points:r,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:M}),this.props.isRange&&Array.isArray(b)&&w.createElement(CP,{points:b,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:M}))}}var h6={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:un.area};function Jle(e){var t,n=Sn(e,h6),{activeDot:r,animationBegin:i,animationDuration:o,animationEasing:l,connectNulls:c,dot:f,fill:h,fillOpacity:m,hide:g,isAnimationActive:y,legendType:b,stroke:S,xAxisId:j,yAxisId:A}=n,O=d6(n,Ile),T=Po(),N=gL(),{needClip:C}=uj(j,A),M=Tn(),{points:_,isRange:k,baseLine:D}=(t=we(de=>zle(de,e.id,M)))!==null&&t!==void 0?t:{},B=ij();if(T!=="horizontal"&&T!=="vertical"||B==null||N!=="AreaChart"&&N!=="ComposedChart")return null;var{height:K,width:$,x:Z,y:le}=B;return!_||!_.length?null:w.createElement(Zle,bo({},O,{activeDot:r,animationBegin:i,animationDuration:o,animationEasing:l,baseLine:D,connectNulls:c,dot:f,fill:h,fillOpacity:m,height:K,hide:g,layout:T,isAnimationActive:y==="auto"?!Ff.isSsr:y,isRange:k,legendType:b,needClip:C,points:_,stroke:S,width:$,left:Z,top:le,xAxisId:j,yAxisId:A}))}var eue=(e,t,n,r,i)=>{var o=n??t;if(he(o))return o;var l=e==="horizontal"?i:r,c=l.scale.domain();if(l.type==="number"){var f=Math.max(c[0],c[1]),h=Math.min(c[0],c[1]);return o==="dataMin"?h:o==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return o==="dataMin"?c[0]:o==="dataMax"?c[1]:c[0]};function tue(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:o,chartBaseValue:l,xAxis:c,yAxis:f,displayedData:h,dataStartIndex:m,xAxisTicks:g,yAxisTicks:y,bandSize:b}=e,S=i&&i.length,j=eue(o,l,n,c,f),A=o==="horizontal",O=!1,T=h.map((C,M)=>{var _,k,D;if(S)D=i[m+M];else{var B=Ft(C,r);Array.isArray(B)?(D=B,O=!0):D=[j,B]}var K=(_=(k=D)===null||k===void 0?void 0:k[1])!==null&&_!==void 0?_:null,$=K==null||S&&!t&&Ft(C,r)==null;return A?{x:MC({axis:c,ticks:g,bandSize:b,entry:C,index:M}),y:$?null:f.scale(K),value:D,payload:C}:{x:$?null:c.scale(K),y:MC({axis:f,ticks:y,bandSize:b,entry:C,index:M}),value:D,payload:C}}),N;return S||O?N=T.map(C=>{var M=Array.isArray(C.value)?C.value[0]:null;return A?{x:C.x,y:M!=null&&C.y!=null?f.scale(M):null,payload:C.payload}:{x:M!=null?c.scale(M):null,y:C.y,payload:C.payload}}):N=A?f.scale(j):c.scale(j),{points:T,baseLine:N,isRange:O}}function nue(e){var t=Sn(e,h6),n=Tn();return w.createElement(WL,{id:t.id,type:"area"},r=>w.createElement(w.Fragment,null,w.createElement(GL,{legendPayload:Vle(t)}),w.createElement(Fle,{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:r}),w.createElement(XL,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:DR(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),w.createElement(Jle,bo({},t,{id:r}))))}var Yc=w.memo(nue,xg);Yc.displayName="Area";var rue="Invariant failed";function aue(e,t){throw new Error(rue)}function k1(){return k1=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},k1.apply(null,arguments)}function dp(e){return w.createElement(mse,k1({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var iue=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(he(t))return t;var o=he(r)||jt(r);return o?t(r,i):(o||aue(),n)}},sue=(e,t,n)=>n,oue=(e,t)=>t,rd=Q([mg,oue],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),lue=Q([rd],e=>e==null?void 0:e.maxBarSize),uue=(e,t,n,r)=>r,cue=Q([We,mg,Sa,ja,sue],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),fue=(e,t,n)=>{var r=We(e),i=Sa(e,t),o=ja(e,t);if(!(i==null||o==null))return r==="horizontal"?rp(e,"yAxis",o,n):rp(e,"xAxis",i,n)},due=(e,t)=>{var n=We(e),r=Sa(e,t),i=ja(e,t);if(!(r==null||i==null))return n==="horizontal"?TM(e,"xAxis",r):TM(e,"yAxis",i)},hue=Q([cue,jte,due],Jse),mue=(e,t,n)=>{var r,i,o=rd(e,t);if(o!=null){var l=Sa(e,t),c=ja(e,t);if(!(l==null||c==null)){var f=We(e),h=nz(e),{maxBarSize:m}=o,g=jt(m)?h:m,y,b;return f==="horizontal"?(y=ws(e,"xAxis",l,n),b=bs(e,"xAxis",l,n)):(y=ws(e,"yAxis",c,n),b=bs(e,"yAxis",c,n)),(r=(i=ru(y,b,!0))!==null&&i!==void 0?i:g)!==null&&r!==void 0?r:0}}},m6=(e,t,n)=>{var r=We(e),i=Sa(e,t),o=ja(e,t);if(!(i==null||o==null)){var l,c;return r==="horizontal"?(l=ws(e,"xAxis",i,n),c=bs(e,"xAxis",i,n)):(l=ws(e,"yAxis",o,n),c=bs(e,"yAxis",o,n)),ru(l,c)}},pue=Q([hue,nz,Ste,rz,mue,m6,lue],aoe),gue=(e,t,n)=>{var r=Sa(e,t);if(r!=null)return ws(e,"xAxis",r,n)},vue=(e,t,n)=>{var r=ja(e,t);if(r!=null)return ws(e,"yAxis",r,n)},yue=(e,t,n)=>{var r=Sa(e,t);if(r!=null)return bs(e,"xAxis",r,n)},xue=(e,t,n)=>{var r=ja(e,t);if(r!=null)return bs(e,"yAxis",r,n)},bue=Q([pue,rd],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),wue=Q([fue,rd],ioe),Sue=Q([cn,tS,gue,vue,yue,xue,bue,We,$4,m6,wue,rd,uue],(e,t,n,r,i,o,l,c,f,h,m,g,y)=>{var{chartData:b,dataStartIndex:S,dataEndIndex:j}=f;if(!(g==null||l==null||t==null||c!=="horizontal"&&c!=="vertical"||n==null||r==null||i==null||o==null||h==null)){var{data:A}=g,O;if(A!=null&&A.length>0?O=A:O=b==null?void 0:b.slice(S,j+1),O!=null)return Xue({layout:c,barSettings:g,pos:l,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:m,displayedData:O,offset:e,cells:y,dataStartIndex:S})}}),jue=["index"];function M1(){return M1=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},M1.apply(null,arguments)}function Aue(e,t){if(e==null)return{};var n,r,i=Oue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oue(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 p6=w.createContext(void 0),Eue=e=>{var t=w.useContext(p6);if(t!=null)return t.stackId;if(e!=null)return DR(e)},Nue=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Tue=e=>{var t=w.useContext(p6);if(t!=null){var{stackId:n}=t;return"url(#".concat(Nue(n,e),")")}},Cue=e=>{var{index:t}=e,n=Aue(e,jue),r=Tue(t);return w.createElement(Ln,M1({className:"recharts-bar-stack-layer",clipPath:r},n))},kue=["onMouseEnter","onMouseLeave","onClick"],Mue=["value","background","tooltipPosition"],Pue=["id"],_ue=["onMouseEnter","onClick","onMouseLeave"];function hi(){return hi=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},hi.apply(null,arguments)}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qP(Object(n),!0).forEach(function(r){Due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Due(e,t,n){return(t=Rue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rue(e){var t=zue(e,"string");return typeof t=="symbol"?t:t+""}function zue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hp(e,t){if(e==null)return{};var n,r,i=Lue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lue(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 Iue=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:qp(n,t),payload:e}]},Bue=w.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:l,unit:c,tooltipType:f,id:h}=e,m={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:qp(o,t),hide:l,type:f,color:i,unit:c,graphicalItemId:h}};return w.createElement(YL,{tooltipEntrySettings:m})});function Uue(e){var t=we(Co),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:c,onClick:f}=o,h=hp(o,kue),m=FL(l,r,o.id),g=HL(c),y=KL(f,r,o.id);if(!i||n==null)return null;var b=Lf(i);return w.createElement($r,{zIndex:soe(i,un.barBackground)},n.map((S,j)=>{var{value:A,background:O,tooltipPosition:T}=S,N=hp(S,Mue);if(!O)return null;var C=m(S,j),M=g(S,j),_=y(S,j),k=_n(_n(_n(_n(_n({option:i,isActive:String(j)===t},N),{},{fill:"#eee"},O),b),Mp(h,S,j)),{},{onMouseEnter:C,onMouseLeave:M,onClick:_,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return w.createElement(dp,hi({key:"background-bar-".concat(j)},k))}))}function $ue(e){var{showLabels:t,children:n,rects:r}=e,i=r==null?void 0:r.map(o=>{var l={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return _n(_n({},l),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:l,fill:o.fill})});return w.createElement(LL,{value:t?i:void 0},n)}function que(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:o,dataKey:l}=e,c=we(Co),f=we(hL),h=n&&String(o)===c&&(f==null||l===f),m=h?n:t;return h?w.createElement($r,{zIndex:un.activeBar},w.createElement(dp,hi({},r,{name:String(r.name)},i,{isActive:h,option:m,index:o,dataKey:l}))):w.createElement(dp,hi({},r,{name:String(r.name)},i,{isActive:h,option:m,index:o,dataKey:l}))}function Vue(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:o}=e;return w.createElement(dp,hi({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:o}))}function Fue(e){var t,{data:n,props:r}=e,i=(t=Rr(r))!==null&&t!==void 0?t:{},{id:o}=i,l=hp(i,Pue),{shape:c,dataKey:f,activeBar:h}=r,{onMouseEnter:m,onClick:g,onMouseLeave:y}=r,b=hp(r,_ue),S=FL(m,f,o),j=HL(y),A=KL(g,f,o);return n?w.createElement(w.Fragment,null,n.map((O,T)=>w.createElement(Cue,hi({index:T,key:"rectangle-".concat(O==null?void 0:O.x,"-").concat(O==null?void 0:O.y,"-").concat(O==null?void 0:O.value,"-").concat(T),className:"recharts-bar-rectangle"},Mp(b,O,T),{onMouseEnter:S(O,T),onMouseLeave:j(O,T),onClick:A(O,T)}),h?w.createElement(que,{shape:c,activeBar:h,baseProps:l,entry:O,index:T,dataKey:f}):w.createElement(Vue,{shape:c,baseProps:l,entry:O,index:T,dataKey:f})))):null}function Hue(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:l,animationDuration:c,animationEasing:f,onAnimationEnd:h,onAnimationStart:m}=t,g=n.current,y=Jp(t,"recharts-bar-"),[b,S]=w.useState(!1),j=!b,A=w.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),O=w.useCallback(()=>{typeof m=="function"&&m(),S(!0)},[m]);return w.createElement($ue,{showLabels:j,rects:r},w.createElement(Zp,{animationId:y,begin:l,duration:c,isActive:o,easing:f,onAnimationEnd:A,onAnimationStart:O,key:y},T=>{var N=T===1?r:r==null?void 0:r.map((C,M)=>{var _=g&&g[M];if(_)return _n(_n({},C),{},{x:wt(_.x,C.x,T),y:wt(_.y,C.y,T),width:wt(_.width,C.width,T),height:wt(_.height,C.height,T)});if(i==="horizontal"){var k=wt(0,C.height,T),D=wt(C.stackedBarStart,C.y,T);return _n(_n({},C),{},{y:D,height:k})}var B=wt(0,C.width,T),K=wt(C.stackedBarStart,C.x,T);return _n(_n({},C),{},{width:B,x:K})});return T>0&&(n.current=N??null),N==null?null:w.createElement(Ln,null,w.createElement(Fue,{props:t,data:N}))}),w.createElement(BL,{label:t.label}),t.children)}function Kue(e){var t=w.useRef(null);return w.createElement(Hue,{previousRectanglesRef:t,props:e})}var g6=0,Yue=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Ft(e,t)}};class Gue extends w.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:l,needClip:c,background:f,id:h}=this.props;if(t||n==null)return null;var m=Ze("recharts-bar",i),g=h;return w.createElement(Ln,{className:m,id:h},c&&w.createElement("defs",null,w.createElement(i6,{clipPathId:g,xAxisId:o,yAxisId:l})),w.createElement(Ln,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(g,")"):void 0},w.createElement(Uue,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),w.createElement(Kue,this.props)))}}var Wue={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:g6,xAxisId:0,yAxisId:0,zIndex:un.bar};function Que(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m}=e,{needClip:g}=uj(t,n),y=Po(),b=Tn(),S=Wie(e.children,OL),j=we(T=>Sue(T,e.id,b,S));if(y!=="vertical"&&y!=="horizontal")return null;var A,O=j==null?void 0:j[0];return O==null||O.height==null||O.width==null?A=0:A=y==="vertical"?O.height/2:O.width/2,w.createElement(fle,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:Yue,errorBarOffset:A},w.createElement(Gue,hi({},e,{layout:y,needClip:g,data:j,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m})))}function Xue(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:l,yAxis:c,xAxisTicks:f,yAxisTicks:h,stackedData:m,displayedData:g,offset:y,cells:b,parentViewBox:S,dataStartIndex:j}=e,A=t==="horizontal"?c:l,O=m?A.scale.domain():null,T=JW({numericAxis:A}),N=A.scale(T);return g.map((C,M)=>{var _,k,D,B,K,$;if(m){var Z=m[M+j];if(Z==null)return null;_=GW(Z,O)}else _=Ft(C,n),Array.isArray(_)||(_=[T,_]);var le=iue(r,g6)(_[1],M);if(t==="horizontal"){var de,[me,q]=[c.scale(_[0]),c.scale(_[1])];k=PC({axis:l,ticks:f,bandSize:o,offset:i.offset,entry:C,index:M}),D=(de=q??me)!==null&&de!==void 0?de:void 0,B=i.size;var W=me-q;if(K=zr(W)?0:W,$={x:k,y:y.top,width:B,height:y.height},Math.abs(le)>0&&Math.abs(K)<Math.abs(le)){var Y=Qn(K||le)*(Math.abs(le)-Math.abs(K));D-=Y,K+=Y}}else{var[oe,ne]=[l.scale(_[0]),l.scale(_[1])];if(k=oe,D=PC({axis:c,ticks:h,bandSize:o,offset:i.offset,entry:C,index:M}),B=ne-oe,K=i.size,$={x:y.left,y:D,width:y.width,height:K},Math.abs(le)>0&&Math.abs(B)<Math.abs(le)){var R=Qn(B||le)*(Math.abs(le)-Math.abs(B));B+=R}}if(k==null||D==null||B==null||K==null)return null;var F=_n(_n({},C),{},{stackedBarStart:N,x:k,y:D,width:B,height:K,value:m?_:_[1],payload:C,background:$,tooltipPosition:{x:k+B/2,y:D+K/2},parentViewBox:S},b&&b[M]&&b[M].props);return F}).filter(Boolean)}function Zue(e){var t=Sn(e,Wue),n=Eue(t.stackId),r=Tn();return w.createElement(WL,{id:t.id,type:"bar"},i=>w.createElement(w.Fragment,null,w.createElement(GL,{legendPayload:Iue(t)}),w.createElement(Bue,{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:i}),w.createElement(XL,{type:"bar",id:i,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}),w.createElement($r,{zIndex:t.zIndex},w.createElement(Que,hi({},t,{id:i})))))}var cm=w.memo(Zue,xg);cm.displayName="Bar";var Jue=["domain","range"],ece=["domain","range"];function VP(e,t){if(e==null)return{};var n,r,i=tce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tce(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 FP(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 v6(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=VP(e,Jue),{domain:o,range:l}=t,c=VP(t,ece);return!FP(n,o)||!FP(r,l)?!1:xg(i,c)}var nce=["dangerouslySetInnerHTML","ticks","scale"],rce=["id","scale"];function P1(){return P1=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},P1.apply(null,arguments)}function HP(e,t){if(e==null)return{};var n,r,i=ace(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ace(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 ice(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(Ise(e)):n.current!==e&&t(Bse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Use(n.current)),n.current=null)},[t]),null}var sce=e=>{var{xAxisId:t,className:n}=e,r=we(tS),i=Tn(),o="xAxis",l=we(O=>Yz(O,o,t,i)),c=we(O=>Vz(O,t)),f=we(O=>wne(O,t)),h=we(O=>dz(O,t));if(c==null||f==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:g,scale:y}=e,b=HP(e,nce),{id:S,scale:j}=h,A=HP(h,rce);return w.createElement(lj,P1({},b,A,{x:f.x,y:f.y,width:c.width,height:c.height,className:Ze("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:l,axisType:o}))},oce={allowDataOverflow:rn.allowDataOverflow,allowDecimals:rn.allowDecimals,allowDuplicatedCategory:rn.allowDuplicatedCategory,angle:rn.angle,axisLine:ni.axisLine,height:rn.height,hide:!1,includeHidden:rn.includeHidden,interval:rn.interval,minTickGap:rn.minTickGap,mirror:rn.mirror,orientation:rn.orientation,padding:rn.padding,reversed:rn.reversed,scale:rn.scale,tick:rn.tick,tickCount:rn.tickCount,tickLine:ni.tickLine,tickSize:ni.tickSize,type:rn.type,xAxisId:0},lce=e=>{var t=Sn(e,oce);return w.createElement(w.Fragment,null,w.createElement(ice,{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}),w.createElement(sce,t))},Gc=w.memo(lce,v6);Gc.displayName="XAxis";var uce=["dangerouslySetInnerHTML","ticks","scale"],cce=["id","scale"];function _1(){return _1=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},_1.apply(null,arguments)}function KP(e,t){if(e==null)return{};var n,r,i=fce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fce(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 dce(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t($se(e)):n.current!==e&&t(qse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Vse(n.current)),n.current=null)},[t]),null}var hce=e=>{var{yAxisId:t,className:n,width:r,label:i}=e,o=w.useRef(null),l=w.useRef(null),c=we(tS),f=Tn(),h=At(),m="yAxis",g=we(_=>Fz(_,t)),y=we(_=>jne(_,t)),b=we(_=>Yz(_,m,t,f)),S=we(_=>hz(_,t));if(w.useLayoutEffect(()=>{if(!(r!=="auto"||!g||aj(i)||w.isValidElement(i)||S==null)){var _=o.current;if(_){var k=_.getCalculatedWidth();Math.round(g.width)!==Math.round(k)&&h(Fse({id:t,width:k}))}}},[b,g,h,i,t,r,S]),g==null||y==null||S==null)return null;var{dangerouslySetInnerHTML:j,ticks:A,scale:O}=e,T=KP(e,uce),{id:N,scale:C}=S,M=KP(S,cce);return w.createElement(lj,_1({},T,M,{ref:o,labelRef:l,x:y.x,y:y.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:g.width,height:g.height,className:Ze("recharts-".concat(m," ").concat(m),n),viewBox:c,ticks:b,axisType:m}))},mce={allowDataOverflow:an.allowDataOverflow,allowDecimals:an.allowDecimals,allowDuplicatedCategory:an.allowDuplicatedCategory,angle:an.angle,axisLine:ni.axisLine,hide:!1,includeHidden:an.includeHidden,interval:an.interval,minTickGap:an.minTickGap,mirror:an.mirror,orientation:an.orientation,padding:an.padding,reversed:an.reversed,scale:an.scale,tick:an.tick,tickCount:an.tickCount,tickLine:ni.tickLine,tickSize:ni.tickSize,type:an.type,width:an.width,yAxisId:0},pce=e=>{var t=Sn(e,mce);return w.createElement(w.Fragment,null,w.createElement(dce,{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}),w.createElement(hce,t))},Wc=w.memo(pce,v6);Wc.displayName="YAxis";var gce=(e,t)=>t,cj=Q([gce,We,cz,Jt,uL,Ai,Lre,cn],Fre),fj=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},y6=Lr("mouseClick"),x6=$f();x6.startListening({actionCreator:y6,effect:(e,t)=>{var n=e.payload,r=cj(t.getState(),fj(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Lne({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var D1=Lr("mouseMove"),b6=$f(),Yh=null;b6.startListening({actionCreator:D1,effect:(e,t)=>{var n=e.payload;Yh!==null&&cancelAnimationFrame(Yh);var r=fj(n);Yh=requestAnimationFrame(()=>{var i=t.getState(),o=YS(i,i.tooltip.settings.shared);if(o==="axis"){var l=cj(i,r);(l==null?void 0:l.activeIndex)!=null?t.dispatch(tL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate})):t.dispatch(eL())}Yh=null})}});function vce(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var YP={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},w6=Jn({name:"rootProps",initialState:YP,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:YP.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}}}),yce=w6.reducer,{updateOptions:xce}=w6.actions,S6=Jn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:che}=S6.actions,bce=S6.reducer,j6=Lr("keyDown"),A6=Lr("focus"),dj=$f();dj.startListening({actionCreator:j6,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var l=GS(i,Eu(n),Xf(n),td(n)),c=l==null?-1:Number(l);if(!(!Number.isFinite(c)||c<0)){var f=Ai(n);if(o==="Enter"){var h=ip(n,"axis","hover",String(i.index));t.dispatch(A1({active:!i.active,activeIndex:i.index,activeCoordinate:h}));return}var m=Nne(n),g=m==="left-to-right"?1:-1,y=o==="ArrowRight"?1:-1,b=c+y*g;if(!(f==null||b>=f.length||b<0)){var S=ip(n,"axis","hover",String(b));t.dispatch(A1({active:!0,activeIndex:b.toString(),activeCoordinate:S}))}}}}}});dj.startListening({actionCreator:A6,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",l=ip(n,"axis","hover",String(o));t.dispatch(A1({active:!0,activeIndex:o,activeCoordinate:l}))}}}});var Nr=Lr("externalEvent"),O6=$f(),Fx=new Map;O6.startListening({actionCreator:Nr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var i=r.type,o=Fx.get(i);o!==void 0&&cancelAnimationFrame(o);var l=requestAnimationFrame(()=>{try{var c=t.getState(),f={activeCoordinate:Sre(c),activeDataKey:hL(c),activeIndex:Co(c),activeLabel:dL(c),activeTooltipIndex:Co(c),isTooltipActive:jre(c)};n(f,r)}finally{Fx.delete(i)}});Fx.set(i,l)}}});var wce=Q([Au],e=>e.tooltipItemPayloads),Sce=Q([wce,ed,(e,t)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(c=>c.settings.graphicalItemId===r);if(i!=null){var{positions:o}=i;if(o!=null){var l=t(o,n);return l}}}),E6=Lr("touchMove"),N6=$f();N6.startListening({actionCreator:E6,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),i=YS(r,r.tooltip.settings.shared);if(i==="axis"){var o=n.touches[0];if(o==null)return;var l=cj(r,fj({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(l==null?void 0:l.activeIndex)!=null&&t.dispatch(tL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate}))}else if(i==="item"){var c,f=n.touches[0];if(document.elementFromPoint==null||f==null)return;var h=document.elementFromPoint(f.clientX,f.clientY);if(!h||!h.getAttribute)return;var m=h.getAttribute(sQ),g=(c=h.getAttribute(oQ))!==null&&c!==void 0?c:void 0,y=Ou(r).find(j=>j.id===g);if(m==null||y==null||g==null)return;var{dataKey:b}=y,S=Sce(r,m,g);t.dispatch(Jz({activeDataKey:b,activeIndex:m,activeCoordinate:S,activeGraphicalItemId:g}))}}}});var jce=rR({brush:loe,cartesianAxis:Hse,chartData:wae,errorBars:ile,graphicalItems:jse,layout:qW,legend:tX,options:gae,polarAxis:Hie,polarOptions:bce,referenceElements:poe,rootProps:yce,tooltip:Ine,zIndex:aae}),Ace=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return hW({reducer:jce,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([x6.middleware,b6.middleware,dj.middleware,O6.middleware,N6.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(yR({type:"raf"}))},devTools:{serialize:{replacer:vce},name:"recharts-".concat(n)}})};function Oce(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Tn(),o=w.useRef(null);if(i)return n;o.current==null&&(o.current=Ace(t,r));var l=Gw;return w.createElement(Tle,{context:l,store:o.current},n)}function Ece(e){var{layout:t,margin:n}=e,r=At(),i=Tn();return w.useEffect(()=>{i||(r(BW(t)),r(IW(n)))},[r,i,t,n]),null}var Nce=w.memo(Ece,xg);function Tce(e){var t=At();return w.useEffect(()=>{t(xce(e))},[t,e]),null}function GP(e){var{zIndex:t,isPanorama:n}=e,r=w.useRef(null),i=At();return w.useLayoutEffect(()=>(r.current&&i(nae({zIndex:t,element:r.current,isPanorama:n})),()=>{i(rae({zIndex:t,isPanorama:n}))}),[i,t,n]),w.createElement("g",{tabIndex:-1,ref:r})}function WP(e){var{children:t,isPanorama:n}=e,r=we(Kre);if(!r||r.length===0)return t;var i=r.filter(l=>l<0),o=r.filter(l=>l>0);return w.createElement(w.Fragment,null,i.map(l=>w.createElement(GP,{key:l,zIndex:l,isPanorama:n})),t,o.map(l=>w.createElement(GP,{key:l,zIndex:l,isPanorama:n})))}var Cce=["children"];function kce(e,t){if(e==null)return{};var n,r,i=Mce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mce(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 mp(){return mp=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},mp.apply(null,arguments)}var Pce={width:"100%",height:"100%",display:"block"},_ce=w.forwardRef((e,t)=>{var n=rS(),r=aS(),i=WR();if(!xa(n)||!xa(r))return null;var{children:o,otherAttributes:l,title:c,desc:f}=e,h,m;return l!=null&&(typeof l.tabIndex=="number"?h=l.tabIndex:h=i?0:void 0,typeof l.role=="string"?m=l.role:m=i?"application":void 0),w.createElement(Iw,mp({},l,{title:c,desc:f,role:m,tabIndex:h,width:n,height:r,style:Pce,ref:t}),o)}),Dce=e=>{var{children:t}=e,n=we(Kp);if(!n)return null;var{width:r,height:i,y:o,x:l}=n;return w.createElement(Iw,{width:r,height:i,x:l,y:o},t)},QP=w.forwardRef((e,t)=>{var{children:n}=e,r=kce(e,Cce),i=Tn();return i?w.createElement(Dce,null,w.createElement(WP,{isPanorama:!0},n)):w.createElement(_ce,mp({ref:t},r),w.createElement(WP,{isPanorama:!1},n))});function Rce(){var e=At(),[t,n]=w.useState(null),r=we(iQ);return w.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;ft(o)&&o!==r&&e($W(o))}},[t,e,r]),n}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XP(Object(n),!0).forEach(function(r){Lce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lce(e,t,n){return(t=Ice(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ice(e){var t=Bce(e,"string");return typeof t=="symbol"?t:t+""}function Bce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mo(){return Mo=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},Mo.apply(null,arguments)}var Uce=()=>(kae(),null);function pp(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var $ce=w.forwardRef((e,t)=>{var n,r,i=w.useRef(null),[o,l]=w.useState({containerWidth:pp((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:pp((r=e.style)===null||r===void 0?void 0:r.height)}),c=w.useCallback((h,m)=>{l(g=>{var y=Math.round(h),b=Math.round(m);return g.containerWidth===y&&g.containerHeight===b?g:{containerWidth:y,containerHeight:b}})},[]),f=w.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:m,height:g}=h.getBoundingClientRect();c(m,g);var y=S=>{var{width:j,height:A}=S[0].contentRect;c(j,A)},b=new ResizeObserver(y);b.observe(h),i.current=b}},[t,c]);return w.useEffect(()=>()=>{var h=i.current;h!=null&&h.disconnect()},[c]),w.createElement(w.Fragment,null,w.createElement(Gp,{width:o.containerWidth,height:o.containerHeight}),w.createElement("div",Mo({ref:f},e)))}),qce=w.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,o]=w.useState({containerWidth:pp(n),containerHeight:pp(r)}),l=w.useCallback((f,h)=>{o(m=>{var g=Math.round(f),y=Math.round(h);return m.containerWidth===g&&m.containerHeight===y?m:{containerWidth:g,containerHeight:y}})},[]),c=w.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:h,height:m}=f.getBoundingClientRect();l(h,m)}},[t,l]);return w.createElement(w.Fragment,null,w.createElement(Gp,{width:i.containerWidth,height:i.containerHeight}),w.createElement("div",Mo({ref:c},e)))}),Vce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement("div",Mo({ref:t},e)))}),Fce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return oi(n)||oi(r)?w.createElement(qce,Mo({},e,{ref:t})):w.createElement(Vce,Mo({},e,{ref:t}))});function Hce(e){return e===!0?$ce:Fce}var Kce=w.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:l,onDoubleClick:c,onMouseDown:f,onMouseEnter:h,onMouseLeave:m,onMouseMove:g,onMouseUp:y,onTouchEnd:b,onTouchMove:S,onTouchStart:j,style:A,width:O,responsive:T,dispatchTouchEvents:N=!0}=e,C=w.useRef(null),M=At(),[_,k]=w.useState(null),[D,B]=w.useState(null),K=Rce(),$=nS(),Z=($==null?void 0:$.width)>0?$.width:O,le=($==null?void 0:$.height)>0?$.height:i,de=w.useCallback(J=>{K(J),typeof t=="function"&&t(J),k(J),B(J),J!=null&&(C.current=J)},[K,t,k,B]),me=w.useCallback(J=>{M(y6(J)),M(Nr({handler:o,reactEvent:J}))},[M,o]),q=w.useCallback(J=>{M(D1(J)),M(Nr({handler:h,reactEvent:J}))},[M,h]),W=w.useCallback(J=>{M(eL()),M(Nr({handler:m,reactEvent:J}))},[M,m]),Y=w.useCallback(J=>{M(D1(J)),M(Nr({handler:g,reactEvent:J}))},[M,g]),oe=w.useCallback(()=>{M(A6())},[M]),ne=w.useCallback(J=>{M(j6(J.key))},[M]),R=w.useCallback(J=>{M(Nr({handler:l,reactEvent:J}))},[M,l]),F=w.useCallback(J=>{M(Nr({handler:c,reactEvent:J}))},[M,c]),ae=w.useCallback(J=>{M(Nr({handler:f,reactEvent:J}))},[M,f]),se=w.useCallback(J=>{M(Nr({handler:y,reactEvent:J}))},[M,y]),ve=w.useCallback(J=>{M(Nr({handler:j,reactEvent:J}))},[M,j]),Oe=w.useCallback(J=>{N&&M(E6(J)),M(Nr({handler:S,reactEvent:J}))},[M,N,S]),fe=w.useCallback(J=>{M(Nr({handler:b,reactEvent:J}))},[M,b]),Qe=Hce(T);return w.createElement(wL.Provider,{value:_},w.createElement(x3.Provider,{value:D},w.createElement(Qe,{width:Z??(A==null?void 0:A.width),height:le??(A==null?void 0:A.height),className:Ze("recharts-wrapper",r),style:zce({position:"relative",cursor:"default",width:Z,height:le},A),onClick:me,onContextMenu:R,onDoubleClick:F,onFocus:oe,onKeyDown:ne,onMouseDown:ae,onMouseEnter:q,onMouseLeave:W,onMouseMove:Y,onMouseUp:se,onTouchEnd:fe,onTouchMove:Oe,onTouchStart:ve,ref:de},w.createElement(Uce,null),n)))}),Yce=["width","height","responsive","children","className","style","compact","title","desc"];function Gce(e,t){if(e==null)return{};var n,r,i=Wce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wce(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 Qce=w.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:o,className:l,style:c,compact:f,title:h,desc:m}=e,g=Gce(e,Yce),y=Rr(g);return f?w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement(QP,{otherAttributes:y,title:h,desc:m},o)):w.createElement(Kce,{className:l,style:c,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},w.createElement(QP,{otherAttributes:y,title:h,desc:m,ref:t},w.createElement(voe,null,o)))});function R1(){return R1=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},R1.apply(null,arguments)}var Xce={top:5,right:5,bottom:5,left:5},Zce={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Xce,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},T6=w.forwardRef(function(t,n){var r,i=Sn(t.categoricalChartProps,Zce),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,categoricalChartProps:h}=t,m={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return w.createElement(Oce,{preloadedState:{options:m},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},w.createElement(ooe,{chartData:h.data}),w.createElement(Nce,{layout:i.layout,margin:i.margin}),w.createElement(Tce,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),w.createElement(Qce,R1({},i,{ref:n})))}),Jce=["axis","item"],efe=w.forwardRef((e,t)=>w.createElement(T6,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Jce,tooltipPayloadSearcher:SL,categoricalChartProps:e,ref:t})),tfe=["axis"],z1=w.forwardRef((e,t)=>w.createElement(T6,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tfe,tooltipPayloadSearcher:SL,categoricalChartProps:e,ref:t}));function nfe(){var _;const[e,t]=Me.useState("15m"),{data:n}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),{data:r}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(k=>k.json()),refetchInterval:3e4}),{isPending:i,data:o}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(k=>k.json()),staleTime:1/0}),{data:l}=Nn({queryKey:["workers"],queryFn:()=>fetch("/api/workers").then(k=>k.json()),staleTime:1/0}),c=mi();Me.useEffect(()=>{const k=D=>{const B=D.detail;B&&(B.queues&&c.setQueryData(["queues"],{queues:B.queues}),B.workers&&c.setQueryData(["workers"],{workers:B.workers}),B.throughput&&c.setQueryData(["throughput"],B.throughput))};return window.addEventListener("flux-stats-update",k),()=>window.removeEventListener("flux-stats-update",k)},[c]);const f=(r==null?void 0:r.history)||{},h=(o==null?void 0:o.queues)||[],m=(l==null?void 0:l.workers)||[],g=(n==null?void 0:n.map(k=>({time:k.timestamp,value:k.count})))||[],y=h.reduce((k,D)=>k+D.waiting,0),b=h.reduce((k,D)=>k+D.delayed,0),S=h.reduce((k,D)=>k+D.failed,0),j=h.reduce((k,D)=>k+D.active,0),A=((_=g[g.length-1])==null?void 0:_.value)||0,O=g.length>0?Math.round(g.reduce((k,D)=>k+D.value,0)/g.length):0,T=g.length>0?Math.max(...g.map(k=>k.value)):0,N=h.slice(0,10).map(k=>({name:k.name.length>12?`${k.name.slice(0,12)}...`:k.name,waiting:k.waiting,delayed:k.delayed,failed:k.failed})),M=Array.from({length:15},(k,D)=>`${14-D}m ago`).map((k,D)=>{var B,K,$,Z;return{time:k,waiting:((B=f.waiting)==null?void 0:B[D])||0,delayed:((K=f.delayed)==null?void 0:K[D])||0,failed:(($=f.failed)==null?void 0:$[D])||0,workers:((Z=f.workers)==null?void 0:Z[D])||0}});return i?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ja,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading metrics..."})]}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Metrics"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Real-time performance analytics and trends."})]}),p.jsx("div",{className:"flex items-center gap-2",children:["15m","1h","6h","24h"].map(k=>p.jsx("button",{type:"button",onClick:()=>t(k),className:Ce("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",e===k?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"hover:bg-muted text-muted-foreground"),children:k},k))})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-4",children:[p.jsx(El,{icon:L_,label:"Waiting",value:y,color:"amber"}),p.jsx(El,{icon:Jr,label:"Delayed",value:b,color:"blue"}),p.jsx(El,{icon:Zn,label:"Active",value:j,color:"green"}),p.jsx(El,{icon:z_,label:"Failed",value:S,color:"red"}),p.jsx(El,{icon:R_,label:"Workers",value:m.length,color:"indigo"}),p.jsx(El,{icon:DE,label:"Jobs/min",value:A,color:"primary"})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex justify-between items-start mb-6",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(iU,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-xl font-bold tracking-tight",children:"Throughput Over Time"})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),p.jsx("div",{className:"text-right",children:p.jsxs("div",{className:"flex gap-6",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Current"}),p.jsx("p",{className:"text-2xl font-black text-primary",children:A})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Average"}),p.jsx("p",{className:"text-2xl font-black",children:O})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Peak"}),p.jsx("p",{className:"text-2xl font-black text-green-500",children:T})]})]})})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:g,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorThroughput",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.4}),p.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),p.jsx(Kc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Gc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(Wc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(Yc,{type:"monotone",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorThroughput)",strokeWidth:2})]})})})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[p.jsx(__,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"Queue Distribution"})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(efe,{data:N,margin:{top:10,right:10,left:-20,bottom:40},children:[p.jsx(Kc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Gc,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},angle:-45,textAnchor:"end"}),p.jsx(Wc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(GR,{}),p.jsx(cm,{dataKey:"waiting",fill:"hsl(45, 93%, 47%)",name:"Waiting",radius:[4,4,0,0]}),p.jsx(cm,{dataKey:"delayed",fill:"hsl(217, 91%, 60%)",name:"Delayed",radius:[4,4,0,0]}),p.jsx(cm,{dataKey:"failed",fill:"hsl(0, 84%, 60%)",name:"Failed",radius:[4,4,0,0]})]})})})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[p.jsx(DE,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"15-Minute Trends"})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:M,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsxs("defs",{children:[p.jsxs("linearGradient",{id:"colorWaiting",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:.3}),p.jsx("stop",{offset:"95%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:0})]}),p.jsxs("linearGradient",{id:"colorFailed",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:.3}),p.jsx("stop",{offset:"95%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:0})]})]}),p.jsx(Kc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Gc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(Wc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(Yc,{type:"monotone",dataKey:"waiting",stroke:"hsl(45, 93%, 47%)",fill:"url(#colorWaiting)",strokeWidth:2}),p.jsx(Yc,{type:"monotone",dataKey:"failed",stroke:"hsl(0, 84%, 60%)",fill:"url(#colorFailed)",strokeWidth:2})]})})})]})]})]})}function El({icon:e,label:t,value:n,color:r}){const i={amber:"text-amber-500 bg-amber-500/10",blue:"text-blue-500 bg-blue-500/10",green:"text-green-500 bg-green-500/10",red:"text-red-500 bg-red-500/10",indigo:"text-indigo-500 bg-indigo-500/10",primary:"text-primary bg-primary/10"};return p.jsxs("div",{className:"card-premium p-4 flex items-center gap-3",children:[p.jsx("div",{className:Ce("w-10 h-10 rounded-xl flex items-center justify-center",i[r]),children:p.jsx(e,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest",children:t}),p.jsx("p",{className:"text-xl font-black",children:n.toLocaleString()})]})]})}function L1({open:e,title:t,message:n,confirmText:r="Confirm",cancelText:i="Cancel",onConfirm:o,onCancel:l,variant:c="danger",isProcessing:f=!1}){return Pf.createPortal(p.jsx(gi,{children:e&&p.jsx("div",{role:"presentation",className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-[5000] pointer-events-auto",onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),children:p.jsxs(lt.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border rounded-2xl p-6 max-w-md shadow-2xl",onClick:h=>h.stopPropagation(),children:[p.jsx("h3",{className:"text-xl font-black mb-2",children:t}),p.jsx("p",{className:"text-sm text-muted-foreground mb-6 whitespace-pre-line",children:n}),p.jsxs("div",{className:"flex gap-3 justify-end",children:[p.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),l()},disabled:f,className:"px-4 py-2 bg-muted text-foreground rounded-lg hover:bg-muted/80 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:i}),p.jsxs("button",{type:"button",onClick:h=>{h.stopPropagation(),o()},disabled:f,className:Ce("px-4 py-2 rounded-lg text-white transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",c==="danger"&&"bg-red-500 hover:bg-red-600",c==="warning"&&"bg-amber-500 hover:bg-amber-600",c==="info"&&"bg-blue-500 hover:bg-blue-600"),children:[f&&p.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-label":"Loading",children:[p.jsx("title",{children:"Loading"}),p.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),p.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),f?"Processing...":r]})]})]})})}),document.body)}function C6({queueName:e,onClose:t}){const[n,r]=Me.useState("waiting"),[i,o]=Me.useState(1),[l,c]=Me.useState(new Set),[f,h]=Me.useState(0),[m,g]=Me.useState(!1),[y,b]=Me.useState(null),S=mi(),{isPending:j,error:A,data:O}=Nn({queryKey:["jobs",e,n,i],queryFn:()=>{const k=n==="archive"?`/api/queues/${e}/archive?page=${i}&limit=50`:`/api/queues/${e}/jobs?type=${n}`;return fetch(k).then(D=>D.json())}});Me.useEffect(()=>{n!=="archive"?fetch(`/api/queues/${e}/jobs/count?type=${n}`).then(k=>k.json()).then(k=>h(k.count)).catch(()=>h(0)):h((O==null?void 0:O.total)||0)},[e,n,O==null?void 0:O.total]),Me.useEffect(()=>{c(new Set),o(1)},[n]);const T=k=>{const D=new Set(l);D.has(k)?D.delete(k):D.add(k),c(D)},N=Me.useCallback(()=>{if(!(O!=null&&O.jobs))return;const k=O.jobs.filter(D=>D._raw&&!D._archived).length;if(l.size===k&&k>0)c(new Set);else{const D=new Set;O.jobs.forEach((B,K)=>{B._raw&&!B._archived&&D.add(K)}),c(D)}},[O==null?void 0:O.jobs,l]);Me.useEffect(()=>{const k=D=>{(D.ctrlKey||D.metaKey)&&D.key==="a"&&(D.preventDefault(),N()),D.key==="Escape"&&(y!=null&&y.open?b(null):l.size>0?c(new Set):t())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[l,y,N,t]),Me.useEffect(()=>{const k=document.body.style.overflow,D=document.body.style.paddingRight,B=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${B}px`,()=>{document.body.style.overflow=k,document.body.style.paddingRight=D}},[]);const C=async(k,D)=>{if(!D._raw)return;const B=k==="delete"?"delete":"retry",K={raw:D._raw};k==="delete"&&(K.type=n),await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)}),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]})},M=async k=>{if(l.size===0||!(O!=null&&O.jobs))return;const D=l.size;b({open:!0,title:`${k==="delete"?"Delete":"Retry"} ${D} Jobs?`,message:`Are you sure you want to ${k} ${D} selected ${n} jobs in "${e}"?
431
+
432
+ This action cannot be undone.`,variant:k==="delete"?"danger":"warning",action:async()=>{g(!0);try{const B=k==="delete"?"bulk-delete":"bulk-retry",K=Array.from(l).map($=>{var Z;return(Z=O==null?void 0:O.jobs[$])==null?void 0:Z._raw}).filter(Boolean);await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n,raws:K})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(B){console.error(`Failed to ${k} jobs:`,B)}finally{g(!1)}}})},_=async k=>{n!=="archive"&&b({open:!0,title:`${k==="delete"?"Delete":"Retry"} ALL ${f} Jobs?`,message:`⚠️ WARNING: This will ${k} ALL ${f} ${n} jobs in "${e}".
433
+
434
+ This is a destructive operation that cannot be undone.`,variant:"danger",action:async()=>{g(!0);try{await fetch(`/api/queues/${e}/jobs/${k==="delete"?"bulk-delete-all":"bulk-retry-all"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(D){console.error(`Failed to ${k} all jobs:`,D)}finally{g(!1)}}})};return Pf.createPortal(p.jsxs("div",{className:"fixed inset-0 z-[1001] flex items-center justify-end p-4 sm:p-6 outline-none pointer-events-none",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md cursor-default pointer-events-auto",onClick:t}),p.jsxs(lt.div,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border border-border/50 h-[85vh] w-full max-w-2xl shadow-2xl flex flex-col overflow-hidden rounded-2xl relative z-[1002] pointer-events-auto",onClick:k=>k.stopPropagation(),children:[p.jsxs("div",{className:"p-6 border-b flex justify-between items-center bg-muted/20 flex-shrink-0",children:[p.jsxs("div",{children:[p.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[p.jsx(fu,{className:"text-primary",size:20}),"Queue Insight: ",p.jsx("span",{className:"text-primary",children:e})]}),p.jsx("div",{className:"flex items-center gap-4 mt-2",children:["waiting","delayed","failed","archive"].map(k=>p.jsx("button",{type:"button",onClick:()=>r(k),className:Ce("text-[9px] font-black px-3 py-1 rounded-sm transition-all border shrink-0 uppercase tracking-widest",n===k?k==="failed"?"bg-red-500 text-white border-red-500 shadow-lg shadow-red-500/20":k==="delayed"?"bg-amber-500 text-white border-amber-500 shadow-lg shadow-amber-500/20":k==="archive"?"bg-indigo-500 text-white border-indigo-500 shadow-lg shadow-indigo-500/20":"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-muted text-muted-foreground border-transparent hover:bg-muted/80"),children:k},k))})]}),p.jsx("button",{type:"button",onClick:t,className:"w-10 h-10 rounded-full hover:bg-muted flex items-center justify-center transition-colors",children:"✕"})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto bg-muted/5 min-h-0",children:[j&&p.jsx("div",{className:"p-12 text-center text-muted-foreground font-medium animate-pulse",children:"Loading jobs..."}),A&&p.jsx("div",{className:"p-12 text-center text-red-500 font-bold",children:"Error loading jobs"}),(O==null?void 0:O.jobs)&&O.jobs.length>0&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"px-6 py-3 border-b bg-muted/5 flex items-center gap-3",children:[p.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.size===O.jobs.filter(k=>k._raw&&!k._archived).length&&l.size>0,onChange:N}),p.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground",children:"Select All (Page)"}),n!=="archive"&&f>0&&p.jsxs("span",{className:"text-[9px] text-muted-foreground/60 ml-2",children:[O.jobs.filter(k=>!k._archived).length," of ",f," total"]}),l.size>0&&p.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[p.jsxs("span",{className:"text-[10px] font-black uppercase text-primary mr-2",children:[l.size," items selected"]}),p.jsx("button",{type:"button",onClick:()=>M("delete"),className:"px-3 py-1 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:"Delete Selected"}),(n==="delayed"||n==="failed")&&p.jsx("button",{type:"button",onClick:()=>M("retry"),className:"px-3 py-1 bg-primary/10 text-primary rounded-md text-[10px] font-black uppercase hover:bg-primary hover:text-primary-foreground transition-all",children:"Retry Selected"})]})]}),n!=="archive"&&f>O.jobs.filter(k=>!k._archived).length&&p.jsxs("div",{className:"px-6 py-3 border-b bg-amber-500/5 flex items-center justify-between",children:[p.jsxs("span",{className:"text-xs font-bold text-amber-600 flex items-center gap-2",children:[p.jsx(Zr,{size:14}),"Showing ",O.jobs.filter(k=>!k._archived).length," of ",f," total"," ",n," jobs"]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("button",{type:"button",onClick:()=>_("delete"),className:"px-3 py-1.5 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:["Delete All ",f]}),(n==="delayed"||n==="failed")&&p.jsxs("button",{type:"button",onClick:()=>_("retry"),className:"px-3 py-1.5 bg-amber-500/10 text-amber-600 rounded-md text-[10px] font-black uppercase hover:bg-amber-500 hover:text-white transition-all",children:["Retry All ",f]})]})]})]}),(O==null?void 0:O.jobs)&&O.jobs.length===0&&p.jsxs("div",{className:"p-12 text-center text-muted-foreground flex flex-col items-center gap-4",children:[p.jsx("div",{className:"w-16 h-16 bg-muted/50 rounded-full flex items-center justify-center text-muted-foreground/30",children:p.jsx(F1,{size:32})}),p.jsx("p",{className:"text-lg font-bold",children:"Clear Sky!"}),p.jsx("p",{className:"text-sm opacity-60",children:"No jobs found in this queue."})]}),(O==null?void 0:O.jobs)&&p.jsxs("div",{className:"p-6 space-y-4",children:[O.jobs.map((k,D)=>p.jsxs("div",{className:Ce("bg-card border rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all group border-border/50",l.has(D)&&"ring-2 ring-primary border-primary"),children:[p.jsxs("div",{className:"p-4 border-b bg-muted/10 flex justify-between items-center text-[10px]",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[k._raw&&!k._archived&&p.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.has(D),onChange:()=>T(D)}),p.jsxs("span",{className:"font-mono bg-primary/10 text-primary px-2 py-1 rounded-md font-bold uppercase tracking-wider flex items-center gap-2",children:["ID: ",k.id||"N/A",k._archived&&p.jsxs("span",{className:Ce("px-1.5 py-0.5 rounded text-[8px] border",k._status==="completed"?"bg-green-500/20 text-green-500 border-green-500/20":"bg-red-500/20 text-red-500 border-red-500/20"),children:["Archive: ",k._status]})]})]}),p.jsxs("span",{className:"text-muted-foreground font-semibold flex items-center gap-3",children:[n==="delayed"&&k.scheduledAt&&p.jsxs("span",{className:"text-amber-500 flex items-center gap-1 font-bold",children:[p.jsx(Jr,{size:12})," ",new Date(k.scheduledAt).toLocaleString()]}),n==="failed"&&k.failedAt&&p.jsxs("span",{className:"text-red-500 flex items-center gap-1 font-bold",children:[p.jsx(Zr,{size:12})," ",new Date(k.failedAt).toLocaleString()]}),k._archivedAt&&p.jsxs("span",{className:"text-indigo-400 flex items-center gap-1 font-bold",children:[p.jsx(Tf,{size:12})," ",new Date(k._archivedAt).toLocaleString()]}),k.timestamp&&!k._archivedAt&&new Date(k.timestamp).toLocaleString()]})]}),p.jsxs("button",{type:"button",onClick:()=>k._raw&&!k._archived&&T(D),className:"w-full text-left cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary focus:ring-inset",children:[k.error&&p.jsxs("div",{className:"p-4 bg-red-500/10 text-red-500 text-xs font-semibold border-b border-red-500/10 flex items-start gap-2",children:[p.jsx(Zr,{size:14,className:"mt-0.5 shrink-0"}),p.jsx("p",{children:k.error})]}),p.jsx("pre",{className:"text-[11px] font-mono p-4 overflow-x-auto text-foreground/80 leading-relaxed bg-muted/5",children:JSON.stringify(k,null,2)})]}),p.jsxs("div",{className:"p-3 bg-muted/5 border-t border-border/50 flex justify-end gap-2",children:[!k._archived&&p.jsx("button",{type:"button",onClick:()=>C("delete",k),className:"text-[10px] font-bold uppercase tracking-widest px-4 py-2 rounded-lg hover:bg-red-500/10 text-red-500 transition-colors",children:"Terminate"}),!k._archived&&(n==="delayed"||n==="failed")&&p.jsx("button",{type:"button",onClick:()=>C("retry",k),className:Ce("text-[10px] font-bold uppercase tracking-widest px-4 py-2 rounded-lg text-white shadow-sm transition-all",n==="delayed"?"bg-amber-500 hover:bg-amber-600":"bg-blue-500 hover:bg-blue-600"),children:n==="delayed"?"Process Now":"Retry Job"})]})]},D)),n==="archive"&&(O==null?void 0:O.total)&&O.total>50&&p.jsxs("div",{className:"flex items-center justify-between py-6 border-t border-border/30",children:[p.jsxs("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:["Total ",O.total," archived jobs"]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",onClick:()=>o(k=>Math.max(1,k-1)),disabled:i===1,className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"←"}),p.jsx("span",{className:"text-xs font-bold px-4",children:i}),p.jsx("button",{type:"button",onClick:()=>o(k=>k+1),disabled:i*50>=(O.total||0),className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"→"})]})]})]})]}),p.jsx("div",{className:"p-4 border-t bg-card text-right flex-shrink-0",children:p.jsx("button",{type:"button",onClick:t,className:"px-8 py-3 bg-muted text-foreground rounded-xl hover:bg-muted/80 text-sm font-bold transition-all active:scale-95 uppercase tracking-widest",children:"Dismiss"})})]}),y&&p.jsx(L1,{open:y.open,title:y.title,message:y.message,variant:y.variant,isProcessing:m,onConfirm:y.action,onCancel:()=>b(null)})]}),document.body)}function rfe({isOpen:e,onClose:t}){const[n,r]=Me.useState(1),[i,o]=Me.useState(""),[l,c]=Me.useState("all"),[f,h]=Me.useState([]),[m,g]=Me.useState(0),[y,b]=Me.useState(!1),[S,j]=Me.useState({}),A=Me.useCallback(async()=>{b(!0);try{const N=new URLSearchParams({page:String(n),limit:"20",search:i,...l!=="all"&&{status:l},...S.start&&{startTime:S.start},...S.end&&{endTime:S.end}}),C=await fetch(`/api/logs/archive?${N}`).then(M=>M.json());h(C.logs||[]),g(C.total||0)}catch(N){console.error("Failed to fetch archived logs",N)}finally{b(!1)}},[n,i,l,S]);Me.useEffect(()=>{e&&A()},[e,A]);const O=N=>{N.preventDefault(),r(1),A()},T=Math.ceil(m/20);return p.jsx(gi,{children:e&&p.jsxs("div",{className:"fixed inset-0 z-[4000] flex items-center justify-center p-4 sm:p-8",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:t}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-6xl h-full max-h-[850px] bg-card border border-border/50 rounded-3xl shadow-2xl flex flex-col overflow-hidden scanline",children:[p.jsxs("div",{className:"p-6 border-b bg-muted/10 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(Jr,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-black tracking-tight",children:"Time Travel Audit"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold opacity-60",children:"Trace events and system logs across time"})]})]}),p.jsx("button",{type:"button",onClick:t,className:"p-2 hover:bg-muted rounded-xl text-muted-foreground transition-colors",children:p.jsx(xp,{size:20})})]}),p.jsxs("div",{className:"p-4 bg-muted/5 border-b grid grid-cols-1 md:grid-cols-4 gap-4 items-end",children:[p.jsxs("form",{onSubmit:O,className:"md:col-span-2 relative",children:[p.jsx("label",{htmlFor:"log-search",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Search Query"}),p.jsxs("div",{className:"relative",children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:16}),p.jsx("input",{id:"log-search",type:"text",placeholder:"Search message...",className:"w-full bg-background border border-border/50 rounded-xl py-2.5 pl-10 pr-4 text-sm font-medium outline-none focus:ring-1 focus:ring-primary/30 transition-all font-mono",value:i,onChange:N=>o(N.target.value)})]})]}),p.jsxs("div",{className:"relative",children:[p.jsx("label",{htmlFor:"start-time",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Time Range"}),p.jsxs("div",{className:"flex items-center gap-2 bg-background border border-border/50 rounded-xl px-3 py-2.5",children:[p.jsx(ob,{size:14,className:"text-muted-foreground/50"}),p.jsx("input",{id:"start-time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(M=>({...M,start:C})),r(1)}}),p.jsx("span",{className:"text-muted-foreground/30 text-[10px]",children:"to"}),p.jsx("input",{"aria-label":"End Time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(M=>({...M,end:C})),r(1)}})]})]}),p.jsxs("div",{className:"relative",children:[p.jsx("label",{htmlFor:"log-level",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Level / Status"}),p.jsxs("div",{className:"relative",children:[p.jsx(H1,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:14}),p.jsxs("select",{id:"log-level",className:"w-full bg-background border border-border/50 rounded-xl py-2.5 pl-9 pr-4 text-sm font-bold outline-none focus:ring-1 focus:ring-primary/30 transition-all appearance-none",value:l,onChange:N=>{c(N.target.value),r(1)},children:[p.jsx("option",{value:"all",children:"Every Event"}),p.jsx("option",{value:"info",children:"Info / Logs"}),p.jsx("option",{value:"error",children:"Errors / Failed"}),p.jsx("option",{value:"warn",children:"Warnings"}),p.jsx("option",{value:"success",children:"Success / Completed"})]})]})]})]}),p.jsx("div",{className:"flex-1 overflow-y-auto p-0 scrollbar-thin bg-black/20",children:y?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 py-20",children:[p.jsx(afe,{className:"animate-spin text-primary",size:32}),p.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em] text-muted-foreground animate-pulse",children:"Time Traveling..."})]}):f.length===0?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-4 py-20",children:[p.jsx(Zn,{size:48,className:"opacity-10 animate-pulse"}),p.jsx("p",{className:"font-bold uppercase tracking-widest italic text-sm",children:"No events found in this timeline"})]}):p.jsx("div",{className:"divide-y divide-border/10",children:f.map(N=>p.jsxs("div",{className:"p-4 flex gap-4 hover:bg-white/[0.02] transition-colors group cursor-default",children:[p.jsx("div",{className:"shrink-0 w-32 pt-1",children:p.jsxs("div",{className:"flex flex-col text-right",children:[p.jsx("span",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-tighter tabular-nums",children:new Date(N.timestamp).toLocaleDateString()}),p.jsx("span",{className:"text-xs font-mono font-bold tabular-nums text-foreground/80",children:new Date(N.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})}),p.jsxs("div",{className:"shrink-0 pt-1.5 relative",children:[p.jsx("div",{className:"w-px h-full absolute left-1/2 -translate-x-1/2 top-4 bg-border/30 last:hidden"}),p.jsx("div",{className:Ce("w-3 h-3 rounded-full border-2 relative z-10",N.level==="error"?"border-red-500 bg-red-500/20":N.level==="warn"?"border-amber-500 bg-amber-500/20":N.level==="success"?"border-green-500 bg-green-500/20":"border-blue-500 bg-blue-500/20")})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-1.5",children:[p.jsx("span",{className:Ce("px-1.5 py-0.5 rounded text-[9px] font-black uppercase tracking-widest",N.level==="error"?"bg-red-500/10 text-red-500":N.level==="warn"?"bg-amber-500/10 text-amber-500":N.level==="success"?"bg-green-500/10 text-green-500":"bg-blue-500/10 text-blue-500"),children:N.level}),p.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:N.worker_id}),N.queue&&p.jsx("span",{className:"text-[10px] font-black text-indigo-400/80 uppercase tracking-wider bg-indigo-500/10 px-1.5 rounded",children:N.queue})]}),p.jsx("p",{className:"text-sm text-foreground/90 font-mono break-all leading-relaxed opacity-90",children:N.message})]})]},N.id))})}),p.jsxs("div",{className:"p-4 border-t bg-muted/5 flex flex-col sm:flex-row justify-between items-center gap-4 text-[10px] uppercase font-bold text-muted-foreground",children:[p.jsxs("div",{children:["Scanning ",m.toLocaleString()," events • Page ",n," of ",T||1]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",disabled:n===1||y,onClick:()=>r(N=>N-1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:p.jsx(D_,{size:16})}),p.jsx("button",{type:"button",disabled:n>=T||y,onClick:()=>r(N=>N+1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:p.jsx(vp,{size:16})})]})]})]})]})})}function afe({className:e,size:t}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-label":"Refreshing",children:[p.jsx("title",{children:"Refreshing"}),p.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),p.jsx("path",{d:"M21 3v5h-5"}),p.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),p.jsx("path",{d:"M3 21v-5h5"})]})}function ife(){var i;const{data:e}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),[t,n]=Me.useState([]);Me.useEffect(()=>{e&&n(e)},[e]),Me.useEffect(()=>{const o=l=>{var f;const c=l;(f=c.detail)!=null&&f.throughput&&n(c.detail.throughput)};return window.addEventListener("flux-stats-update",o),()=>window.removeEventListener("flux-stats-update",o)},[]);const r=(t==null?void 0:t.map(o=>({time:o.timestamp,value:o.count})))||[];return p.jsxs("div",{className:"card-premium h-[350px] w-full p-6 flex flex-col relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full -translate-y-1/2 translate-x-1/2 blur-3xl"}),p.jsxs("div",{className:"flex justify-between items-start mb-6 z-10",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h3",{className:"text-xl font-bold tracking-tight",children:"System Throughput"}),p.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-green-500/10 text-green-500 text-[8px] font-black uppercase tracking-widest rounded-full border border-green-500/20",children:[p.jsx("span",{className:"w-1 h-1 bg-green-500 rounded-full animate-ping"}),"Live"]})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),p.jsxs("div",{className:"text-right",children:[p.jsx("p",{className:"text-2xl font-black text-foreground",children:((i=r[r.length-1])==null?void 0:i.value)||0}),p.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-bold",children:"Current Rate"})]})]}),p.jsx("div",{className:"flex-1 w-full min-h-0",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:r,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorValue",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.4}),p.jsx("stop",{offset:"50%",stopColor:"hsl(var(--primary))",stopOpacity:.1}),p.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),p.jsx(Kc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Gc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},dy:10}),p.jsx(Wc,{axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{cursor:{stroke:"hsl(var(--primary))",strokeWidth:1,strokeDasharray:"4 4"},contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"16px",fontSize:"12px",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"},itemStyle:{fontWeight:"bold",color:"hsl(var(--primary))"}}),p.jsx(Yc,{type:"stepAfter",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorValue)",strokeWidth:2.5,animationDuration:1500})]})})})]})}function Gh(...e){return g3(Ze(e))}function sfe(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**r).toFixed(1))+" "+n[r]}function ofe(e,t){const n=e.match(/^(.*)-(\d+)$/);if(n&&parseInt(n[2])===t){let r=n[1];return r.endsWith(".local")&&(r=r.replace(".local","")),r}return e.replace(".local","")}function lfe({highlightedWorkerId:e,workers:t=[]}){const n=t.filter(r=>r.status==="online").length;return p.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[p.jsx("div",{className:"p-6 pb-0 flex-none",children:p.jsxs("div",{className:"flex justify-between items-center mb-6",children:[p.jsxs("div",{children:[p.jsxs("h3",{className:"text-lg font-black flex items-center gap-2 tracking-tight",children:[p.jsx(Xc,{size:20,className:"text-primary"}),"Cluster Nodes"]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase font-black tracking-widest opacity-60",children:"Real-time load"})]}),p.jsxs("span",{className:"text-[10px] font-black text-green-500 bg-green-500/10 px-3 py-1 rounded-full uppercase tracking-widest border border-green-500/20",children:[n," ACTIVE"]})]})}),p.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 px-6 space-y-3 scrollbar-thin pb-6",children:[t.length===0&&p.jsxs("div",{className:"py-12 text-center text-muted-foreground/30 flex flex-col items-center gap-2",children:[p.jsx(Zn,{size:24,className:"opacity-20 animate-pulse"}),p.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest",children:"No nodes connected"})]}),t.map(r=>{var i;return p.jsxs("div",{className:Gh("relative flex items-center gap-4 p-4 rounded-2xl border transition-all group overflow-hidden shrink-0",r.id===e?"bg-primary/5 border-primary/50 shadow-[0_0_20px_rgba(var(--primary-rgb),0.1)] -translate-y-1 scale-[1.02] z-10":"bg-card hover:bg-muted/10 border-border/50 hover:border-primary/20"),children:[p.jsx("div",{className:Gh("absolute left-0 top-0 bottom-0 w-1 transition-all",r.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),p.jsx("div",{className:"relative shrink-0 ml-1",children:p.jsx("div",{className:Gh("w-3 h-3 rounded-full",r.status==="online"?"bg-green-500 animate-pulse shadow-[0_0_12px_rgba(34,197,94,0.6)]":"bg-muted-foreground/40")})}),p.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center mr-2",children:[r.service&&p.jsx("span",{className:"text-[10px] font-black text-primary/80 uppercase tracking-widest mb-0.5 whitespace-nowrap",children:r.service}),p.jsx("h4",{className:"text-sm font-black tracking-tight text-foreground truncate",title:r.id,children:ofe(r.id,r.pid)||r.id}),p.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[p.jsxs("span",{className:"text-[9px] font-bold text-muted-foreground uppercase tracking-wider whitespace-nowrap",children:["PID ",r.pid]}),((i=r.meta)==null?void 0:i.laravel)&&r.meta.laravel.workerCount>0&&p.jsxs("span",{className:"inline-flex items-center gap-1 text-[9px] font-black text-white bg-red-500 px-1.5 py-0.5 rounded shadow-sm uppercase tracking-widest leading-none whitespace-nowrap",children:[p.jsx(q_,{size:8}),r.meta.laravel.workerCount," PHP"]})]})]}),p.jsxs("div",{className:"flex items-center gap-3 text-right shrink-0",children:[r.metrics&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"hidden sm:block space-y-1 w-12",children:[p.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[p.jsx("span",{children:"CPU"}),p.jsxs("span",{className:Gh(r.metrics.cpu>(r.metrics.cores||1)*100&&"text-red-500"),children:[r.metrics.cpu.toFixed(0),"%"]})]}),p.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-foreground transition-all duration-700",style:{width:`${Math.min(100,r.metrics.cpu)}%`}})})]}),p.jsxs("div",{className:"hidden sm:block space-y-1 w-12",children:[p.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[p.jsx("span",{children:"RAM"}),p.jsx("span",{className:"truncate ml-1",children:sfe(r.metrics.ram.rss).split(" ")[0]})]}),p.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-indigo-500 transition-all duration-700",style:{width:`${Math.min(100,r.metrics.ram.rss/2e9*100)}%`}})})]})]}),p.jsxs("div",{className:"w-12",children:[p.jsx("p",{className:"text-xs font-black tracking-tighter tabular-nums text-foreground",children:r.uptime>3600?`${(r.uptime/3600).toFixed(1)}h`:r.uptime>60?`${(r.uptime/60).toFixed(0)}m`:`${r.uptime.toFixed(0)}s`}),p.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-black tracking-widest opacity-50",children:"UP"})]})]})]},r.id)})]}),p.jsx("div",{className:"p-6 pt-0 flex-none",children:p.jsx("button",{type:"button",className:"w-full py-3 bg-muted text-[10px] font-black rounded-xl hover:bg-primary hover:text-primary-foreground transition-all uppercase tracking-[0.2em] opacity-60 hover:opacity-100 active:scale-95 shadow-lg shadow-transparent hover:shadow-primary/20",children:"Manage Nodes"})})]})}const ufe={queues:[],workers:[]};function cfe({logs:e,onSearchArchive:t,onWorkerHover:n}){const r=Me.useRef(null);return Me.useEffect(()=>{r.current&&e&&(r.current.scrollTop=r.current.scrollHeight)},[e]),p.jsxs("div",{className:"absolute inset-0 card-premium flex flex-col overflow-hidden group",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(q_,{size:14,className:"text-primary"}),p.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Operational Logs"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{type:"button",onClick:t,className:"flex items-center gap-1.5 px-2 py-1 hover:bg-muted rounded-md text-[10px] font-black uppercase tracking-tighter text-muted-foreground transition-all",children:[p.jsx(fu,{size:12}),"Search Archive"]}),p.jsxs("div",{className:"flex gap-1",children:[p.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),p.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500/40"})]})]})]}),p.jsx("ul",{ref:r,className:"flex-1 min-h-0 overflow-y-auto p-4 font-mono text-[11px] space-y-2.5 scrollbar-thin scroll-smooth",children:e.length===0?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-2 opacity-50",children:[p.jsx(Zn,{size:24,className:"animate-pulse"}),p.jsx("p",{className:"font-bold uppercase tracking-widest text-[9px]",children:"Awaiting signals..."})]}):e.map((i,o)=>p.jsxs("li",{onMouseEnter:()=>n==null?void 0:n(i.workerId),onMouseLeave:()=>n==null?void 0:n(null),className:"group flex gap-3 hover:bg-primary/[0.02] -mx-2 px-2 py-0.5 rounded transition-all animate-in fade-in slide-in-from-left-2 duration-300 cursor-default",children:[p.jsx("span",{className:"text-muted-foreground/40 shrink-0 tabular-nums select-none opacity-0 group-hover:opacity-100 transition-opacity",children:new Date(i.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}),p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsxs("span",{className:Ce("text-[9px] font-black uppercase tracking-tighter",i.level==="error"?"text-red-500":i.level==="warn"?"text-amber-500":i.level==="success"?"text-green-500":"text-blue-500"),children:["[",i.level,"]"]}),p.jsx("span",{className:"text-[9px] font-black text-muted-foreground/40 uppercase opacity-0 group-hover:opacity-100 transition-all",children:i.workerId})]}),p.jsx("p",{className:"text-foreground/80 leading-relaxed whitespace-pre-wrap break-all",children:i.message})]})]},o))})]})}function ffe({queues:e}){return p.jsxs("div",{className:"card-premium p-6 mb-8 overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 opacity-10 group-hover:opacity-20 transition-opacity scanline pointer-events-none"}),p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zn,{size:14,className:"text-primary animate-pulse"}),p.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground/60",children:"Pipeline Load Distribution"})]}),p.jsx("div",{className:"flex gap-1",children:[.2,.4,.6,.8,1].map(t=>p.jsx("div",{className:"w-2 h-2 rounded-sm bg-primary",style:{opacity:t}},t))})]}),p.jsxs("div",{className:"grid grid-cols-10 sm:grid-cols-20 gap-1.5",children:[e.map((t,n)=>{const r=Math.min(1,t.waiting/200);return p.jsx("div",{className:"aspect-square rounded-sm transition-all duration-500 hover:scale-125 cursor-help group/tile relative",style:{backgroundColor:`hsl(var(--primary) / ${.1+r*.9})`,boxShadow:r>.7?`0 0 10px hsl(var(--primary) / ${r})`:"none"},children:p.jsxs("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 p-2 bg-popover text-popover-foreground rounded-lg text-[10px] whitespace-nowrap opacity-0 group-hover/tile:opacity-100 transition-opacity pointer-events-none border border-border z-50",children:[p.jsx("span",{className:"font-black",children:t.name}),": ",t.waiting," items"]})},n)}),Array.from({length:Math.max(0,40-e.length)}).map((t,n)=>p.jsx("div",{className:"aspect-square rounded-sm bg-muted/20 border border-border/5 group-hover:border-border/10 transition-colors"},`empty-${n}`))]})]})}function dfe({value:e}){const[t,n]=Me.useState(e);return Me.useEffect(()=>{const r=RH(t,e,{duration:1.5,ease:"easeOut",onUpdate:i=>n(Math.round(i))});return()=>r.stop()},[e,t]),p.jsx("span",{children:t.toLocaleString()})}function Wh({title:e,value:t,icon:n,color:r,trend:i,data:o}){const l=o&&o.length>0?o:[20,30,25,40,35,50,45,60,55,70],c=Math.max(...l,10);return p.jsxs("div",{className:"card-premium p-8 hover:shadow-2xl transform hover:-translate-y-2 group relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none scanline z-0"}),p.jsxs("div",{className:"flex justify-between items-start mb-6 z-10 relative",children:[p.jsx("div",{className:Ce("p-4 rounded-2xl bg-muted/30 transition-all group-hover:bg-primary/20 group-hover:text-primary group-hover:rotate-12 duration-500 border border-transparent group-hover:border-primary/20 shadow-inner",r),children:n}),i&&p.jsxs("div",{className:"flex flex-col items-end",children:[p.jsx("span",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest",children:i}),p.jsx("div",{className:"w-8 h-1 bg-muted/50 rounded-full mt-1 overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:1,repeat:1/0,repeatType:"reverse"},className:Ce("h-full",r.replace("text-","bg-"))})})]})]}),p.jsxs("div",{className:"z-10 relative",children:[p.jsx("p",{className:"text-[11px] font-black text-muted-foreground/50 uppercase tracking-[0.2em] mb-2",children:e}),p.jsxs("div",{className:"text-4xl font-black tracking-tighter flex items-center gap-1",children:[p.jsx(dfe,{value:t}),e==="Waiting Jobs"&&t>100&&p.jsx("span",{className:"text-red-500 animate-pulse text-xs",children:"!"})]})]}),p.jsx("div",{className:"mt-8 flex items-end gap-1.5 h-16 opacity-5 group-hover:opacity-20 transition-all duration-700 absolute bottom-0 left-0 right-0 p-1.5 pointer-events-none",children:l.map((f,h)=>p.jsx("div",{className:Ce("flex-1 rounded-t-lg transition-all duration-1000",r.replace("text-","bg-")),style:{height:`${f/c*100}%`,opacity:.1+h/l.length*.9,transitionDelay:`${h*30}ms`}},h))})]})}function hfe({queues:e,setSelectedQueue:t}){return p.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zc,{size:14,className:"text-primary"}),p.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Processing Pipelines"})]}),p.jsxs("button",{type:"button",className:"text-[10px] font-black text-primary hover:underline flex items-center gap-2 uppercase tracking-widest transition-opacity",children:["Stats ",p.jsx(vp,{size:12})]})]}),p.jsx("div",{className:"flex-1 overflow-auto scrollbar-thin",children:p.jsxs("table",{className:"w-full text-left",children:[p.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[9px] font-black tracking-widest sticky top-0",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-4 py-3",children:"Queue"}),p.jsx("th",{className:"px-4 py-3",children:"Waiting"}),p.jsx("th",{className:"px-4 py-3 text-right",children:"Ops"})]})}),p.jsx("tbody",{className:"divide-y divide-border/30 text-xs",children:e.map(n=>p.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[p.jsx("td",{className:"px-4 py-4",children:p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"font-black text-foreground",children:n.name}),n.failed>0&&p.jsxs("span",{className:"text-[9px] text-red-500 font-bold uppercase",children:[n.failed," FAILED"]})]})}),p.jsx("td",{className:"px-4 py-4 font-mono font-black",children:n.waiting.toLocaleString()}),p.jsx("td",{className:"px-4 py-4 text-right",children:p.jsx("div",{className:"flex justify-end gap-2",children:p.jsx("button",{type:"button",onClick:()=>t(n.name),className:"p-1.5 bg-muted hover:bg-primary/20 hover:text-primary rounded text-muted-foreground transition-all active:scale-90",title:"Inspect",children:p.jsx(Tf,{size:14})})})})]},n.name))})]})})]})}function mfe(){const[e,t]=Me.useState(null),[n,r]=Me.useState(null),[i,o]=Me.useState([]),[l,c]=Me.useState(ufe),[f,h]=Me.useState(!1);Me.useEffect(()=>{const T=N=>t(N.detail);return window.addEventListener("select-queue",T),()=>window.removeEventListener("select-queue",T)},[]),Me.useEffect(()=>{fetch("/api/queues").then(T=>T.json()).then(T=>{T.queues&&c(N=>({...N,queues:T.queues}))}),fetch("/api/workers").then(T=>T.json()).then(T=>{T.workers&&c(N=>({...N,workers:T.workers}))})},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;C&&c(M=>({queues:C.queues||M.queues,workers:C.workers||M.workers}))};return window.addEventListener("flux-stats-update",T),()=>window.removeEventListener("flux-stats-update",T)},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;o(M=>[...M.slice(-99),C])};return window.addEventListener("flux-log-update",T),()=>window.removeEventListener("flux-log-update",T)},[]),Me.useEffect(()=>{const T=()=>o([]);return window.addEventListener("clear-logs",T),()=>window.removeEventListener("clear-logs",T)},[]);const{data:m}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(T=>T.json()),refetchInterval:3e4}),g=(m==null?void 0:m.history)||{},{queues:y,workers:b}=l,S=y.reduce((T,N)=>T+N.waiting,0),j=y.reduce((T,N)=>T+N.delayed,0),A=y.reduce((T,N)=>T+N.failed,0),O=b.length;return p.jsxs("div",{className:"space-y-12",children:[p.jsx(rfe,{isOpen:f,onClose:()=>h(!1)}),p.jsx(gi,{children:e&&p.jsx(C6,{queueName:e,onClose:()=>t(null)})}),p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Overview"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Real-time status of your processing pipelines."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em] animate-pulse",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),"Live Syncing"]})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[p.jsx(Wh,{title:"Waiting Jobs",value:S,icon:p.jsx(L_,{size:20}),color:"text-amber-500",trend:"+12% / hr",data:g.waiting}),p.jsx(Wh,{title:"Delayed Jobs",value:j,icon:p.jsx(Jr,{size:20}),color:"text-blue-500",trend:"Stable",data:g.delayed}),p.jsx(Wh,{title:"Failed Jobs",value:A,icon:p.jsx(Zr,{size:20}),color:"text-red-500",trend:A>0?"CRITICAL":"CLEAN",data:g.failed}),p.jsx(Wh,{title:"Active Workers",value:O,icon:p.jsx(Xc,{size:20}),color:"text-indigo-500",trend:O>0?"ONLINE":"IDLE",data:g.workers})]}),p.jsx(ife,{}),p.jsx(ffe,{queues:y}),p.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-3 gap-8 lg:h-[600px]",children:[p.jsx("div",{className:"lg:col-span-1 h-[400px] lg:h-full",children:p.jsx(lfe,{highlightedWorkerId:n,workers:b})}),p.jsxs("div",{className:"lg:col-span-2 flex flex-col lg:grid lg:grid-rows-2 gap-6 lg:h-full",children:[p.jsx("div",{className:"relative h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:p.jsx(cfe,{logs:i,onSearchArchive:()=>h(!0),onWorkerHover:r})}),p.jsx("div",{className:"h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:p.jsx(hfe,{queues:y,setSelectedQueue:t})})]})]})]})}function pfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Node.js",...e,children:[p.jsx("path",{d:"M16 2L2.1 9.9v12.2L16 30l13.9-7.9V9.9L16 2zm11.9 19.1L16 27.8l-11.9-6.7V11.1L16 4.2l11.9 6.9v10z",fill:"#339933"}),p.jsx("path",{d:"M16 22.5l-6-3.4v-6.8l6-3.4 6 3.4v6.8l-6 3.4z",fill:"#339933"})]})}function gfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Bun",...e,children:[p.jsx("path",{d:"M30 17.045a9.8 9.8 0 0 0-.32-2.306l-.004.034a11.2 11.2 0 0 0-5.762-6.786c-3.495-1.89-5.243-3.326-6.8-3.811h.003c-1.95-.695-3.949.82-5.825 1.927-4.52 2.481-9.573 5.45-9.28 11.417.008-.029.017-.052.026-.08a9.97 9.97 0 0 0 3.934 7.257l-.01-.006C13.747 31.473 30.05 27.292 30 17.045",fill:"#fbf0df",stroke:"#4a4a4a",strokeWidth:"1.5"}),p.jsx("path",{fill:"#37474f",d:"M19.855 20.236A.8.8 0 0 0 19.26 20h-6.514a.8.8 0 0 0-.596.236.51.51 0 0 0-.137.463 4.37 4.37 0 0 0 1.641 2.339 4.2 4.2 0 0 0 2.349.926 4.2 4.2 0 0 0 2.343-.926 4.37 4.37 0 0 0 1.642-2.339.5.5 0 0 0-.132-.463Z"}),p.jsx("ellipse",{cx:"22.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),p.jsx("ellipse",{cx:"9.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),p.jsx("circle",{cx:"10",cy:"16",r:"2",fill:"#37474f"}),p.jsx("circle",{cx:"22",cy:"16",r:"2",fill:"#37474f"})]})}function vfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Deno",...e,children:[p.jsx("circle",{cx:"16",cy:"16",r:"14",fill:"currentColor"}),p.jsx("path",{d:"M16 6C16 6 24 10 24 18C24 23.5228 19.5228 28 14 28C8.47715 28 4 23.5228 4 18C4 10 16 6 16 6Z",fill:"white"}),p.jsx("circle",{cx:"12",cy:"18",r:"2",fill:"black"})]})}function ZP(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"PHP",...e,children:[p.jsx("ellipse",{cx:"16",cy:"16",rx:"14",ry:"10",fill:"#777BB4"}),p.jsx("text",{x:"50%",y:"54%",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",children:"PHP"})]})}function yfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Go",...e,children:[p.jsx("path",{d:"M5 16C5 10 10 5 16 5H24V13H16C14.3431 13 13 14.3431 13 16C13 17.6569 14.3431 19 16 19H27V27H16C10 27 5 22 5 16Z",fill:"#00ADD8"}),p.jsx("circle",{cx:"9",cy:"16",r:"2",fill:"white"}),p.jsx("circle",{cx:"23",cy:"9",r:"2",fill:"white"})]})}function xfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Python",...e,children:[p.jsx("path",{d:"M16 2C10 2 10 5 10 5L10 9L18 9L18 11L8 11L8 20L12 20L12 14L22 14C22 14 22 12 16 2Z",fill:"#3776AB"}),p.jsx("path",{d:"M16 30C22 30 22 27 22 27L22 23L14 23L14 21L24 21L24 12L20 12L20 18L10 18C10 18 10 20 16 30Z",fill:"#FFD43B"})]})}function bfe({icon:e,title:t,description:n,children:r,className:i}){return p.jsxs("div",{className:Ce("flex justify-between items-end",i),children:[p.jsxs("div",{children:[p.jsxs("h1",{className:"text-4xl font-black tracking-tighter flex items-center gap-3",children:[p.jsx("div",{className:"p-2 bg-primary/10 rounded-xl text-primary",children:p.jsx(e,{size:32})}),t]}),n&&p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest pl-[3.75rem]",children:n})]}),p.jsx("div",{children:r})]})}const Hx=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**r).toFixed(2))} ${n[r]}`},Pc=async(e,t,n,r,i)=>{try{const l=await(await fetch("/api/pulse/command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({service:e,nodeId:t,type:n,queue:r,action:i,jobKey:"*",driver:"redis"})})).json();l.success?console.log(`[Pulse] ${n} command sent:`,l.message):console.error("[Pulse] Command failed:",l.error)}catch(o){console.error("[Pulse] Failed to send command:",o)}};function wfe({node:e}){var o,l;const t=Date.now()-e.timestamp<3e4,n=!t&&Date.now()-e.timestamp<6e4,r=()=>{switch(e.language){case"node":return p.jsx(pfe,{className:"w-6 h-6"});case"bun":return p.jsx(gfe,{className:"w-6 h-6 text-black"});case"deno":return p.jsx(vfe,{className:"w-6 h-6"});case"php":return p.jsx(ZP,{className:"w-6 h-6"});case"go":return p.jsx(yfe,{className:"w-6 h-6"});case"python":return p.jsx(xfe,{className:"w-6 h-6"});default:return p.jsx(gU,{className:"w-6 h-6 text-white"})}},i=(o=e.meta)==null?void 0:o.laravel;return p.jsxs(lt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-card border border-border/50 rounded-xl p-4 shadow-sm relative overflow-hidden group",children:[p.jsx("div",{className:Ce("absolute top-0 right-0 w-24 h-24 bg-gradient-to-bl opacity-10 rounded-bl-full transition-all duration-500",t?"from-emerald-500 to-transparent":n?"from-yellow-500 to-transparent":"from-red-500 to-transparent")}),p.jsxs("div",{className:"flex items-start justify-between mb-4 relative z-10",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center bg-white dark:bg-card border border-border/20 shadow-sm shrink-0",children:r()}),p.jsxs("div",{children:[p.jsxs("h3",{className:"font-bold text-foreground text-sm flex items-center gap-2",children:[e.id,p.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-muted text-muted-foreground uppercase tracking-wider",children:e.platform})]}),p.jsxs("div",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-0.5",children:[p.jsx(zU,{size:10})," ",e.hostname," ",p.jsx("span",{className:"opacity-30",children:"|"})," PID:"," ",e.pid]})]})]}),p.jsx("div",{className:Ce("w-2.5 h-2.5 rounded-full shadow-[0_0_10px_currentColor]",t?"bg-emerald-500 text-emerald-500":n?"bg-yellow-500 text-yellow-500":"bg-red-500 text-red-500")})]}),p.jsxs("div",{className:"space-y-3",children:[i&&i.workerCount>0&&p.jsxs("div",{className:"bg-amber-500/5 rounded-lg p-2.5 border border-amber-500/20",children:[p.jsx("div",{className:"flex items-center justify-between text-xs mb-2",children:p.jsxs("div",{className:"flex items-center gap-2 font-bold text-amber-600 dark:text-amber-400",children:[p.jsx(ZP,{className:"w-3 h-3"}),"Laravel Workers (",i.workerCount,")"]})}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[p.jsxs("button",{type:"button",onClick:()=>{confirm("Are you sure you want to retry ALL failed Laravel jobs on this host?")&&Pc(e.service,e.id,"LARAVEL_ACTION","default","retry-all")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[p.jsx(qy,{size:10})," Retry All"]}),p.jsxs("button",{type:"button",onClick:()=>{confirm("Artisan queue:restart will signal all workers to quit. Supervisor will restart them. Proceed?")&&Pc(e.service,e.id,"LARAVEL_ACTION","default","restart")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[p.jsx(qy,{size:10})," Restart Workers"]})]}),((l=i.roots)==null?void 0:l.length)>0&&p.jsxs("div",{className:"mt-2 text-[9px] text-muted-foreground font-mono opacity-60 truncate",children:["Root: ",i.roots[0]]})]}),e.queues&&e.queues.length>0&&p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-2",children:p.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground",children:[p.jsx("span",{className:Ce("w-1.5 h-1.5 rounded-full",e.queues.some(c=>c.size.failed>0)?"bg-red-500 animate-pulse":"bg-emerald-500")}),"Queues (",e.queues.length,")"]})}),p.jsx("div",{className:"space-y-2",children:e.queues.map(c=>p.jsxs("div",{className:"flex flex-col gap-1 text-xs",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"font-mono text-muted-foreground",children:c.name}),p.jsxs("div",{className:"flex gap-2 font-mono items-center",children:[c.size.failed>0&&p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"text-red-500 font-bold",children:[c.size.failed," fail"]}),p.jsxs("div",{className:"flex gap-1 ml-1",children:[p.jsx("button",{type:"button",onClick:async()=>{if(c.driver==="redis"&&e.language==="php"&&confirm("Use php artisan queue:retry for precision?")){await Pc(e.service,e.id,"LARAVEL_ACTION",c.name,"retry-all");return}Pc(e.service,e.id,"RETRY_JOB",c.name)},className:"p-1 rounded hover:bg-emerald-500/20 text-emerald-500 transition-colors",title:"Retry all failed jobs",children:p.jsx(qy,{size:12})}),p.jsx("button",{type:"button",onClick:()=>Pc(e.service,e.id,"DELETE_JOB",c.name),className:"p-1 rounded hover:bg-red-500/20 text-red-400 transition-colors",title:"Delete all failed jobs",children:p.jsx(jo,{size:12})})]})]}),c.size.active>0&&p.jsxs("span",{className:"text-emerald-500",children:[c.size.active," act"]}),p.jsxs("span",{className:Ce(c.size.waiting>100?"text-yellow-500":"text-muted-foreground"),children:[c.size.waiting," wait"]})]})]}),c.size.waiting+c.size.active+c.size.failed>0&&p.jsxs("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden flex",children:[p.jsx("div",{className:"bg-red-500 h-full transition-all",style:{width:`${c.size.failed/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),p.jsx("div",{className:"bg-yellow-500 h-full transition-all",style:{width:`${c.size.waiting/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),p.jsx("div",{className:"bg-emerald-500 h-full transition-all",style:{width:`${c.size.active/(c.size.waiting+c.size.active+c.size.failed)*100}%`}})]})]},c.name))})]}),p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Xc,{size:12})," CPU Usage"]}),p.jsxs("span",{className:"text-[10px]",children:[e.cpu.cores," cores"]})]}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsxs("span",{className:"text-xl font-bold text-foreground",children:[e.cpu.process,"%"]}),p.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"proc"})]}),p.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[p.jsx("div",{className:Ce("h-full rounded-full transition-all duration-500 absolute top-0 left-0 z-20 shadow-sm",e.cpu.process>80?"bg-red-500":"bg-primary"),style:{width:`${Math.min(e.cpu.process,100)}%`}}),p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.cpu.system,100)}%`}})]}),p.jsxs("div",{className:"flex justify-between text-[9px] text-muted-foreground mt-1 font-mono",children:[p.jsxs("span",{className:"text-primary font-bold",children:["Proc: ",e.cpu.process,"%"]}),p.jsxs("span",{children:["Sys: ",e.cpu.system,"%"]})]})]}),p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(lb,{size:12})," RAM Usage"]})}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsx("span",{className:"text-xl font-bold text-foreground",children:Hx(e.memory.process.rss)}),p.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"RSS"})]}),p.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 z-20 shadow-sm bg-indigo-500",style:{width:`${Math.min(e.memory.process.rss/e.memory.system.total*100,100)}%`}}),p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.memory.system.used/e.memory.system.total*100,100)}%`}})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[10px] text-muted-foreground mt-3 border-t border-border/30 pt-2 font-mono",children:[p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"opacity-70",children:"Heap"}),p.jsx("span",{className:"font-bold",children:Hx(e.memory.process.heapUsed)})]}),p.jsxs("div",{className:"flex flex-col text-right",children:[p.jsx("span",{className:"opacity-70",children:"Sys Free"}),p.jsx("span",{className:"",children:Hx(e.memory.system.free)})]})]})]})]}),p.jsxs("div",{className:"mt-3 pt-3 border-t border-border/50 flex items-center justify-between text-[10px] text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(yp,{size:10})," ",e.runtime.framework]}),p.jsxs("span",{children:["Ups: ",Math.floor(e.runtime.uptime/60),"m"]})]})]})}function Sfe({service:e,nodes:t}){const n=t.length===1;return p.jsxs("div",{className:"bg-card/50 border border-border/40 rounded-xl p-4 flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-3 border-b border-border/40",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"}),p.jsx("h2",{className:"text-sm font-bold uppercase tracking-widest text-muted-foreground flex-1",children:e}),p.jsx("span",{className:"bg-muted text-foreground px-2 py-0.5 rounded-md text-xs font-mono",children:t.length})]}),p.jsx("div",{className:Ce("grid gap-3",n?"grid-cols-1":"grid-cols-1 xl:grid-cols-2"),children:t.map(r=>p.jsx(wfe,{node:r},r.id))})]})}function jfe(){const{data:e,isLoading:t}=Nn({queryKey:["pulse-nodes"],queryFn:async()=>(await fetch("/api/pulse/nodes")).json()}),[n,r]=w.useState({});if(w.useEffect(()=>{e!=null&&e.nodes&&r(e.nodes)},[e]),w.useEffect(()=>{const o=l=>{var f;const c=l;(f=c.detail)!=null&&f.nodes&&r(c.detail.nodes)};return window.addEventListener("flux-pulse-update",o),()=>window.removeEventListener("flux-pulse-update",o)},[]),t&&Object.keys(n).length===0)return p.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8 animate-pulse",children:[p.jsx("div",{className:"h-8 w-48 bg-muted rounded-lg"}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[1,2,3].map(o=>p.jsx("div",{className:"h-48 bg-muted rounded-xl"},o))})]});const i=Object.entries(n).sort(([o],[l])=>o.localeCompare(l));return p.jsx("div",{className:"min-h-screen bg-background text-foreground pb-20",children:p.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8",children:[p.jsx(bfe,{icon:Zn,title:"System Pulse",description:"Real-time infrastructure monitoring across your entire stack.",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-muted-foreground bg-muted px-3 py-1.5 rounded-lg border border-border/50",children:[p.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),"LIVE CONNECTION"]})}),i.length===0?p.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center border-2 border-dashed border-border rounded-xl",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-muted flex items-center justify-center mb-4",children:p.jsx(Zn,{className:"text-muted-foreground",size:32})}),p.jsx("h3",{className:"text-lg font-bold",children:"No Pulse Signals Detected"}),p.jsx("p",{className:"text-muted-foreground max-w-sm mt-2",children:"Start a worker with the pulse agent enabled or check your Redis connection."})]}):p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-start",children:i.map(([o,l])=>p.jsx(Sfe,{service:o,nodes:l},o))})]})})}function Afe(){const[e,t]=Me.useState(null),[n,r]=Me.useState(""),[i,o]=Me.useState("all"),l=mi(),{isPending:c,error:f,data:h}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(A=>A.json()),staleTime:1/0});Me.useEffect(()=>{const A=O=>{var T;(T=O.detail)!=null&&T.queues&&l.setQueryData(["queues"],{queues:O.detail.queues})};return window.addEventListener("flux-stats-update",A),()=>window.removeEventListener("flux-stats-update",A)},[l]);const m=(h==null?void 0:h.queues)||[],g=m.filter(A=>{const O=A.name.toLowerCase().includes(n.toLowerCase()),T=A.failed>0?"critical":A.active>0?"active":"idle";return O&&(i==="all"||T===i)}),y=m.reduce((A,O)=>A+O.waiting,0),b=m.reduce((A,O)=>A+O.delayed,0),S=m.reduce((A,O)=>A+O.failed,0),j=m.reduce((A,O)=>A+O.active,0);return c?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ja,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading queues..."})]}):f?p.jsx("div",{className:"text-center p-20",children:p.jsxs("div",{className:"bg-red-500/10 text-red-500 p-10 rounded-3xl border border-red-500/20 max-w-md mx-auto shadow-2xl",children:[p.jsx(Zr,{size:56,className:"mx-auto mb-6 opacity-80"}),p.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Queues"}),p.jsx("p",{className:"text-sm font-medium opacity-70 mb-8",children:f.message})]})}):p.jsxs(p.Fragment,{children:[p.jsx(gi,{children:e&&p.jsx(C6,{queueName:e,onClose:()=>t(null)})}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Processing Queues"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Manage and monitor all processing pipelines."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em] animate-pulse",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),m.length," Queues"]})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Waiting"}),p.jsx("p",{className:"text-3xl font-black",children:y.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Delayed"}),p.jsx("p",{className:"text-3xl font-black text-amber-500",children:b.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Failed"}),p.jsx("p",{className:"text-3xl font-black text-red-500",children:S.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Currently Active"}),p.jsx("p",{className:"text-3xl font-black text-green-500",children:j.toLocaleString()})]})]}),p.jsxs("div",{className:"card-premium p-4 flex flex-wrap gap-4 items-center",children:[p.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),p.jsx("input",{type:"text",placeholder:"Search queues...",value:n,onChange:A=>r(A.target.value),className:"w-full bg-muted/40 border border-border/50 rounded-xl py-2.5 pl-10 pr-4 text-sm font-medium placeholder:text-muted-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary/20"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(H1,{size:16,className:"text-muted-foreground"}),["all","active","idle","critical"].map(A=>p.jsx("button",{type:"button",onClick:()=>o(A),className:Ce("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",i===A?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"),children:A},A))]})]}),p.jsx("div",{className:"card-premium overflow-hidden",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full text-left",children:[p.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[10px] font-black tracking-[0.2em]",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-6 py-5",children:"Queue Name"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Waiting"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Delayed"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Active"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Failed"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Status"}),p.jsx("th",{className:"px-6 py-5 text-right",children:"Actions"})]})}),p.jsxs("tbody",{className:"divide-y divide-border/30 text-sm",children:[g.map(A=>{const O=A.failed>0?"critical":A.active>0?"active":"idle";return p.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[p.jsx("td",{className:"px-6 py-5",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 bg-primary/5 rounded-xl flex items-center justify-center text-primary group-hover:scale-110 transition-transform",children:p.jsx(Zc,{size:20})}),p.jsx("span",{className:"font-black tracking-tight",children:A.name})]})}),p.jsx("td",{className:"px-6 py-5 text-center font-mono font-bold",children:A.waiting.toLocaleString()}),p.jsx("td",{className:"px-6 py-5 text-center font-mono text-amber-500",children:A.delayed}),p.jsx("td",{className:"px-6 py-5 text-center font-mono text-green-500",children:A.active}),p.jsx("td",{className:"px-6 py-5 text-center",children:p.jsx("span",{className:Ce("font-mono font-black",A.failed>0?"text-red-500":"text-muted-foreground/40"),children:A.failed})}),p.jsx("td",{className:"px-6 py-5 text-center",children:p.jsx("span",{className:Ce("px-3 py-1.5 rounded-full text-[9px] font-black uppercase tracking-widest border",A.paused?"bg-amber-500/20 text-amber-500 border-amber-500/30":O==="critical"?"bg-red-500 text-white border-red-600":O==="active"?"bg-green-500/10 text-green-500 border-green-500/20":"bg-muted/40 text-muted-foreground border-transparent"),children:A.paused?"paused":O})}),p.jsx("td",{className:"px-6 py-5",children:p.jsxs("div",{className:"flex justify-end gap-2 items-center",children:[p.jsx("button",{type:"button",onClick:async()=>{const T=A.paused?"resume":"pause";await fetch(`/api/queues/${A.name}/${T}`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]})},className:Ce("p-2 rounded-lg transition-all",A.paused?"text-green-500 hover:bg-green-500/10":"text-muted-foreground hover:bg-amber-500/10 hover:text-amber-500"),title:A.paused?"Resume Queue":"Pause Queue",children:A.paused?p.jsx(U_,{size:16}):p.jsx(WU,{size:16})}),A.delayed>0&&p.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-amber-500 hover:bg-amber-500/10 rounded-lg transition-all",title:"Retry All Delayed",children:p.jsx(Ja,{size:16})}),A.failed>0&&p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-blue-500 hover:bg-blue-500/10 rounded-lg transition-all",title:"Retry All Failed",children:p.jsx(Ja,{size:16})}),p.jsx("button",{type:"button",onClick:()=>{confirm(`Are you sure you want to clear all failed jobs in queue "${A.name}"?`)&&fetch(`/api/queues/${A.name}/clear-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-red-500 hover:bg-red-500/10 rounded-lg transition-all",title:"Clear Failed Jobs",children:p.jsx(z_,{size:16})})]}),p.jsx("button",{type:"button",onClick:async()=>{confirm(`Are you sure you want to purge all jobs in queue "${A.name}"?`)&&(await fetch(`/api/queues/${A.name}/purge`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-muted-foreground hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all",title:"Purge Queue",children:p.jsx(jo,{size:16})}),p.jsxs("button",{type:"button",onClick:()=>t(A.name),className:"px-4 py-1.5 bg-muted text-foreground rounded-lg transition-all flex items-center gap-2 text-[10px] font-black uppercase tracking-widest border border-border/50 hover:border-primary/50 hover:bg-background",children:["Inspect ",p.jsx(Tf,{size:12})]})]})})]},A.name)}),g.length===0&&p.jsx("tr",{children:p.jsxs("td",{colSpan:7,className:"px-6 py-20 text-center text-muted-foreground",children:[p.jsx(Zn,{size:40,className:"mx-auto mb-4 opacity-10 animate-pulse"}),p.jsx("p",{className:"text-sm font-bold opacity-30 italic uppercase tracking-widest",children:n||i!=="all"?"No queues match your filters":"No queues available"})]})})]})]})})})]})]})}const k6=6048e5,Ofe=864e5,JP=Symbol.for("constructDateFrom");function Ss(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&JP in e?e[JP](t):e instanceof Date?new e.constructor(t):new Date(t)}function sa(e,t){return Ss(t||e,e)}let Efe={};function bg(){return Efe}function Sf(e,t){var c,f,h,m;const n=bg(),r=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,i=sa(e,t==null?void 0:t.in),o=i.getDay(),l=(o<r?7:0)+o-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function gp(e,t){return Sf(e,{...t,weekStartsOn:1})}function M6(e,t){const n=sa(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ss(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=gp(i),l=Ss(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=gp(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function e_(e){const t=sa(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 Nfe(e,...t){const n=Ss.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function t_(e,t){const n=sa(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Tfe(e,t,n){const[r,i]=Nfe(n==null?void 0:n.in,e,t),o=t_(r),l=t_(i),c=+o-e_(o),f=+l-e_(l);return Math.round((c-f)/Ofe)}function Cfe(e,t){const n=M6(e,t),r=Ss(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gp(r)}function kfe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Mfe(e){return!(!kfe(e)&&typeof e!="number"||isNaN(+sa(e)))}function Pfe(e,t){const n=sa(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const _fe={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"}},Dfe=(e,t,n)=>{let r;const i=_fe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Kx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Rfe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ife={date:Kx({formats:Rfe,defaultWidth:"full"}),time:Kx({formats:zfe,defaultWidth:"full"}),dateTime:Kx({formats:Lfe,defaultWidth:"full"})},Bfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ufe=(e,t,n,r)=>Bfe[e];function _c(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):l;i=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const $fe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qfe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vfe={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"]},Ffe={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"]},Hfe={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"}},Kfe={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"}},Yfe=(e,t)=>{const 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"},Gfe={ordinalNumber:Yfe,era:_c({values:$fe,defaultWidth:"wide"}),quarter:_c({values:qfe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_c({values:Vfe,defaultWidth:"wide"}),day:_c({values:Ffe,defaultWidth:"wide"}),dayPeriod:_c({values:Hfe,defaultWidth:"wide",formattingValues:Kfe,defaultFormattingWidth:"wide"})};function Dc(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?Qfe(c,g=>g.test(l)):Wfe(c,g=>g.test(l));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(l.length);return{value:h,rest:m}}}function Wfe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Qfe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Xfe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(i.length);return{value:l,rest:c}}}const Zfe=/^(\d+)(th|st|nd|rd)?/i,Jfe=/\d+/i,ede={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},tde={any:[/^b/i,/^(a|c)/i]},nde={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rde={any:[/1/i,/2/i,/3/i,/4/i]},ade={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},ide={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]},sde={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},ode={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]},lde={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},ude={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}},cde={ordinalNumber:Xfe({matchPattern:Zfe,parsePattern:Jfe,valueCallback:e=>parseInt(e,10)}),era:Dc({matchPatterns:ede,defaultMatchWidth:"wide",parsePatterns:tde,defaultParseWidth:"any"}),quarter:Dc({matchPatterns:nde,defaultMatchWidth:"wide",parsePatterns:rde,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dc({matchPatterns:ade,defaultMatchWidth:"wide",parsePatterns:ide,defaultParseWidth:"any"}),day:Dc({matchPatterns:sde,defaultMatchWidth:"wide",parsePatterns:ode,defaultParseWidth:"any"}),dayPeriod:Dc({matchPatterns:lde,defaultMatchWidth:"any",parsePatterns:ude,defaultParseWidth:"any"})},fde={code:"en-US",formatDistance:Dfe,formatLong:Ife,formatRelative:Ufe,localize:Gfe,match:cde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dde(e,t){const n=sa(e,t==null?void 0:t.in);return Tfe(n,Pfe(n))+1}function hde(e,t){const n=sa(e,t==null?void 0:t.in),r=+gp(n)-+Cfe(n);return Math.round(r/k6)+1}function P6(e,t){var m,g,y,b;const n=sa(e,t==null?void 0:t.in),r=n.getFullYear(),i=bg(),o=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(y=i.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??1,l=Ss((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=Sf(l,t),f=Ss((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=Sf(f,t);return+n>=+c?r+1:+n>=+h?r:r-1}function mde(e,t){var c,f,h,m;const n=bg(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,i=P6(e,t),o=Ss((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Sf(o,t)}function pde(e,t){const n=sa(e,t==null?void 0:t.in),r=+Sf(n,t)-+mde(n,t);return Math.round(r/k6)+1}function nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Zi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):nt(n+1,2)},d(e,t){return nt(e.getDate(),t.length)},a(e,t){const 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];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return nt(e.getHours()%12||12,t.length)},H(e,t){return nt(e.getHours(),t.length)},m(e,t){return nt(e.getMinutes(),t.length)},s(e,t){return nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return nt(i,t.length)}},Nl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},n_={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Zi.y(e,t)},Y:function(e,t,n,r){const i=P6(e,r),o=i>0?i:1-i;if(t==="YY"){const l=o%100;return nt(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):nt(o,t.length)},R:function(e,t){const n=M6(e);return nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return nt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return nt(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"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return nt(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"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Zi.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"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return nt(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"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=pde(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):nt(i,t.length)},I:function(e,t,n){const r=hde(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Zi.d(e,t)},D:function(e,t,n){const r=dde(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,t.length)},E:function(e,t,n){const 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"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return nt(o,2);case"eo":return n.ordinalNumber(o,{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"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return nt(o,t.length);case"co":return n.ordinalNumber(o,{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"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return nt(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"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Nl.noon:r===0?i=Nl.midnight:i=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"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Nl.evening:r>=12?i=Nl.afternoon:r>=4?i=Nl.morning:i=Nl.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"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Zi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Zi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Zi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Zi.s(e,t)},S:function(e,t){return Zi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return a_(r);case"XXXX":case"XX":return Xs(r);case"XXXXX":case"XXX":default:return Xs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return a_(r);case"xxxx":case"xx":return Xs(r);case"xxxxx":case"xxx":default:return Xs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+r_(r,":");case"OOOO":default:return"GMT"+Xs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+r_(r,":");case"zzzz":default:return"GMT"+Xs(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return nt(r,t.length)},T:function(e,t,n){return nt(+e,t.length)}};function r_(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+nt(o,2)}function a_(e,t){return e%60===0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):Xs(e,t)}function Xs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=nt(Math.trunc(r/60),2),o=nt(r%60,2);return n+i+t+o}const i_=(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"});case"PPPP":default:return t.date({width:"full"})}},_6=(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"});case"pppp":default:return t.time({width:"full"})}},gde=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return i_(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",i_(r,t)).replace("{{time}}",_6(i,t))},vde={p:_6,P:gde},yde=/^D+$/,xde=/^Y+$/,bde=["D","DD","YY","YYYY"];function wde(e){return yde.test(e)}function Sde(e){return xde.test(e)}function jde(e,t,n){const r=Ade(e,t,n);if(console.warn(r),bde.includes(e))throw new RangeError(r)}function Ade(e,t,n){const 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`}const Ode=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ede=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nde=/^'([^]*?)'?$/,Tde=/''/g,Cde=/[a-zA-Z]/;function s_(e,t,n){var m,g,y,b;const r=bg(),i=r.locale??fde,o=r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,l=r.weekStartsOn??((b=(y=r.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,c=sa(e,n==null?void 0:n.in);if(!Mfe(c))throw new RangeError("Invalid time value");let f=t.match(Ede).map(S=>{const j=S[0];if(j==="p"||j==="P"){const A=vde[j];return A(S,i.formatLong)}return S}).join("").match(Ode).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const j=S[0];if(j==="'")return{isToken:!1,value:kde(S)};if(n_[j])return{isToken:!0,value:S};if(j.match(Cde))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return{isToken:!1,value:S}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return f.map(S=>{if(!S.isToken)return S.value;const j=S.value;(Sde(j)||wde(j))&&jde(j,t,String(e));const A=n_[j[0]];return A(c,j,i.localize,h)}).join("")}function kde(e){const t=e.match(Nde);return t?t[1].replace(Tde,"'"):e}function Mde(){var N;const e=mi(),[t,n]=w.useState(!1),[r,i]=w.useState({id:"",cron:"",queue:"default",className:"",payload:"{}"}),[o,l]=w.useState(null),[c,f]=w.useState(null),{addNotification:h}=J1(),{data:m}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(C=>C.json())}),{data:g,isLoading:y}=Nn({queryKey:["schedules"],queryFn:()=>fetch("/api/schedules").then(C=>C.json())}),b=Ly({mutationFn:C=>fetch(`/api/schedules/run/${C}`,{method:"POST"}),onSuccess:(C,M)=>{e.invalidateQueries({queryKey:["queues"]}),h({type:"success",title:"Schedule Triggered",message:`Job ${M} has been manually pushed to the queue.`}),l(null)},onError:C=>{h({type:"error",title:"Trigger Failed",message:C.message||"Failed to run schedule manually."}),l(null)}}),S=Ly({mutationFn:C=>fetch(`/api/schedules/${C}`,{method:"DELETE"}),onSuccess:(C,M)=>{e.invalidateQueries({queryKey:["schedules"]}),h({type:"info",title:"Schedule Deleted",message:`Schedule ${M} was removed.`}),f(null)}}),j=Ly({mutationFn:C=>fetch("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),onSuccess:()=>{e.invalidateQueries({queryKey:["schedules"]}),n(!1),i({id:"",cron:"",queue:"default",className:"",payload:"{}"}),h({type:"success",title:"Schedule Registered",message:"New recurring task is now active."})}}),A=(g==null?void 0:g.schedules)||[],O=(m==null?void 0:m.queues)||[],T=C=>{C.preventDefault();try{const M=JSON.parse(r.payload);j.mutate({id:r.id,cron:r.cron,queue:r.queue,job:{className:r.className,payload:M}})}catch{alert("Invalid JSON payload")}};return p.jsxs("div",{className:"space-y-8 max-w-6xl",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Schedules"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest text-[10px]",children:"Manage recurring tasks and cron workflows."})]}),p.jsxs("button",{type:"button",onClick:()=>n(!0),className:"px-6 py-3 bg-primary text-primary-foreground rounded-xl flex items-center gap-2 text-sm font-black uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all",children:[p.jsx(_E,{size:18}),"New Schedule"]})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(Zn,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Active Schedules"}),p.jsx("p",{className:"text-2xl font-black",children:y?"...":A.length})]})]}),p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(ob,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Total Executions"}),p.jsx("p",{className:"text-2xl font-black",children:"---"})]})]}),p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-green-500/10 flex items-center justify-center text-green-500",children:p.jsx(F1,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Health Score"}),p.jsx("p",{className:"text-2xl font-black text-green-500",children:"99.8%"})]})]})]}),p.jsxs("div",{className:"flex gap-4 items-center",children:[p.jsxs("div",{className:"relative flex-1",children:[p.jsx(fu,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:18}),p.jsx("input",{type:"text",placeholder:"Search schedules by name, cron or ID...",className:"w-full bg-muted/40 border-border/50 rounded-xl pl-12 pr-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all"})]}),p.jsx("button",{type:"button",className:"p-3 bg-muted/40 border border-border/50 rounded-xl hover:bg-muted/60 transition-all",children:p.jsx(H1,{size:18})})]}),y&&p.jsx("div",{className:"space-y-4",children:[1,2,3].map(C=>p.jsx("div",{className:"card-premium p-6 h-32 animate-pulse bg-muted/20"},C))}),A.length===0&&!y&&p.jsxs("div",{className:"card-premium p-20 flex flex-col items-center justify-center text-center opacity-60",children:[p.jsx("div",{className:"w-20 h-20 rounded-3xl bg-muted flex items-center justify-center mb-6",children:p.jsx(Jr,{size:32,className:"text-muted-foreground/30"})}),p.jsx("h3",{className:"text-xl font-bold mb-2",children:"No Scheduled Tasks Yet"}),p.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mb-8",children:"Register recurring jobs using the @gravito/stream scheduler to see them appear here."})]}),p.jsx("div",{className:"grid grid-cols-1 gap-4",children:A.map(C=>p.jsxs("div",{className:"card-premium p-6 group hover:border-primary/30 transition-all",children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"flex gap-5",children:[p.jsx("div",{className:"w-14 h-14 rounded-2xl bg-muted flex items-center justify-center text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary transition-all",children:p.jsx(Jr,{size:28})}),p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("h3",{className:"text-lg font-bold",children:C.id}),p.jsx("span",{className:"px-2 py-0.5 bg-green-500/10 text-green-500 text-[10px] font-black uppercase tracking-widest rounded",children:"Enabled"})]}),p.jsxs("div",{className:"flex items-center gap-4 text-xs font-bold text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Jr,{size:12})," ",C.cron]}),p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Tf,{size:12})," ",C.queue]}),p.jsx("span",{className:"px-2 py-0.5 bg-muted rounded font-mono text-[10px] uppercase font-black",children:C.job.className})]})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",disabled:b.isPending,onClick:()=>l(C.id),className:"px-4 py-2 bg-muted hover:bg-primary hover:text-primary-foreground rounded-lg text-[10px] font-black uppercase tracking-widest transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50",children:b.isPending&&b.variables===C.id?p.jsxs(p.Fragment,{children:[p.jsx(Ja,{size:12,className:"animate-spin"}),"Running..."]}):"Run Now"}),p.jsx("button",{type:"button",className:"p-2 hover:bg-muted rounded-lg transition-all text-muted-foreground",children:p.jsx(Zr,{size:18})}),p.jsx("button",{type:"button",onClick:()=>f(C.id),className:"p-2 hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all text-muted-foreground",children:p.jsx(jo,{size:18})})]})]}),p.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4 pt-6 border-t border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-muted flex items-center justify-center text-muted-foreground/60",children:p.jsx(ob,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Last Run"}),p.jsx("p",{className:"text-xs font-bold",children:C.lastRun?s_(new Date(C.lastRun),"HH:mm:ss MMM dd"):"Never"})]})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(U_,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Next Run"}),p.jsx("p",{className:"text-xs font-bold",children:C.nextRun?s_(new Date(C.nextRun),"HH:mm:ss MMM dd"):"Scheduled"})]})]})]})]},C.id))}),p.jsx(gi,{children:t&&p.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>n(!1),className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-lg bg-card border border-border/50 rounded-3xl shadow-2xl overflow-hidden",children:[p.jsxs("div",{className:"p-6 border-b flex items-center justify-between bg-muted/5",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(_E,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold leading-none",children:"Register Schedule"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest mt-1",children:"Add new recurring job"})]})]}),p.jsx("button",{type:"button",onClick:()=>n(!1),className:"p-2 hover:bg-muted rounded-full transition-all",children:p.jsx(xp,{size:20})})]}),p.jsxs("form",{onSubmit:T,className:"p-6 space-y-5",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"schedule-id",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Schedule Identifier (ID)"}),p.jsx("input",{id:"schedule-id",required:!0,type:"text",placeholder:"daily-cleanup-job",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all",value:r.id,onChange:C=>i({...r,id:C.target.value})})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"cron-expression",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Cron Expression"}),p.jsx("input",{id:"cron-expression",required:!0,type:"text",placeholder:"* * * * *",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm font-mono focus:ring-1 focus:ring-primary/30 outline-none transition-all",value:r.cron,onChange:C=>i({...r,cron:C.target.value})})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"target-queue",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Target Queue"}),p.jsxs("div",{className:"relative",children:[p.jsx("select",{id:"target-queue",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all appearance-none cursor-pointer",value:r.queue,onChange:C=>i({...r,queue:C.target.value}),children:O.map(C=>p.jsx("option",{value:C.name,children:C.name},C.name))}),p.jsx(uU,{className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none",size:16})]})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"job-class-name",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Class Name"}),p.jsx("input",{id:"job-class-name",required:!0,type:"text",placeholder:"CleanupJob",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all font-mono",value:r.className,onChange:C=>i({...r,className:C.target.value})})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"job-payload",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Payload (JSON)"}),p.jsx("textarea",{id:"job-payload",rows:3,className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm font-mono focus:ring-1 focus:ring-primary/30 outline-none transition-all resize-none",value:r.payload,onChange:C=>i({...r,payload:C.target.value})})]}),p.jsxs("div",{className:"pt-4 flex gap-3",children:[p.jsx("button",{type:"button",onClick:()=>n(!1),className:"flex-1 py-3 border border-border/50 rounded-xl text-xs font-black uppercase tracking-widest hover:bg-muted transition-all",children:"Cancel"}),p.jsx("button",{type:"submit",disabled:j.isPending,className:"flex-1 py-3 bg-primary text-primary-foreground rounded-xl text-xs font-black uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all disabled:opacity-50",children:j.isPending?"Registering...":"Register Schedule"})]})]})]})]})}),p.jsx(L1,{open:!!o,title:"Manual trigger confirmation",message:`Are you sure you want to run "${o}" immediately?
435
+ This will bypass the next scheduled time and push a job to the "${(N=A.find(C=>C.id===o))==null?void 0:N.queue}" queue.`,confirmText:"Run Now",variant:"info",isProcessing:b.isPending,onConfirm:()=>o&&b.mutate(o),onCancel:()=>l(null)}),p.jsx(L1,{open:!!c,title:"Delete Schedule",message:`Are you sure you want to delete "${c}"?
436
+ This action cannot be undone and recurring jobs for this schedule will stop.`,confirmText:"Delete",variant:"danger",isProcessing:S.isPending,onConfirm:()=>c&&S.mutate(c),onCancel:()=>f(null)})]})}function Pde(){var f,h,m,g,y,b,S,j,A,O,T,N,C,M,_,k,D,B,K,$,Z,le,de,me,q,W,Y,oe,ne,R,F,ae,se,ve,Oe,fe,Qe,J,Te,Pe,ie,Dt,Be,Rt,zt,mr,Oi,Ro,zo,Lo,ad,id;const e=mi(),[t,n]=Me.useState(!1),[r,i]=Me.useState(()=>{if(typeof window<"u"){const ue=localStorage.getItem("theme");if(ue==="light"||ue==="dark")return ue}return"system"}),{data:o}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(ue=>ue.json()),refetchInterval:3e4}),{data:l}=Nn({queryKey:["alerts-config"],queryFn:()=>fetch("/api/alerts/config").then(ue=>ue.json())}),c=ue=>{i(ue);const Ee=window.document.documentElement;ue==="system"?(window.matchMedia("(prefers-color-scheme: dark)").matches?Ee.classList.add("dark"):Ee.classList.remove("dark"),localStorage.removeItem("theme")):ue==="dark"?(Ee.classList.add("dark"),localStorage.setItem("theme","dark")):(Ee.classList.remove("dark"),localStorage.setItem("theme","light"))};return p.jsxs("div",{className:"space-y-8 max-w-4xl",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Settings"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Configure your Flux Console preferences."})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(YU,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Appearance"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Customize the look and feel"})]})]}),p.jsx("div",{className:"space-y-4",children:p.jsxs("div",{children:[p.jsx("label",{htmlFor:"theme-select",className:"text-sm font-bold mb-3 block",children:"Theme"}),p.jsx("div",{id:"theme-select",className:"flex gap-3",children:[{value:"light",icon:fb,label:"Light"},{value:"dark",icon:cb,label:"Dark"},{value:"system",icon:PE,label:"System"}].map(({value:ue,icon:Ee,label:De})=>p.jsxs("button",{type:"button",onClick:()=>c(ue),className:Ce("flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-xl border transition-all",r===ue?"bg-primary text-primary-foreground border-primary":"bg-muted/40 border-border/50 hover:border-primary/30"),children:[p.jsx(Ee,{size:18}),p.jsx("span",{className:"font-bold text-sm",children:De})]},ue))})]})})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(lb,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Connection Status"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Redis and system connectivity"})]})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(yp,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Redis Connection"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),p.jsx("span",{className:"text-sm font-bold text-green-500",children:"Connected"})]})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(lb,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Redis URL"})]}),p.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.redisUrl)||"redis://localhost:6379"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Jr,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Service Uptime"})]}),p.jsx("span",{className:"text-sm font-mono font-bold",children:o!=null&&o.uptime?_de(o.uptime):"Loading..."})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Ja,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Engine Version"})]}),p.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.engine)||"Loading..."})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-green-500/10 flex items-center justify-center text-green-500",children:p.jsx(Bc,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"System Information"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Runtime and memory details"})]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Node.js Version"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.node)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Environment"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.env)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Memory (RSS)"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((f=o==null?void 0:o.memory)==null?void 0:f.rss)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Heap Used"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((h=o==null?void 0:o.memory)==null?void 0:h.heapUsed)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total System RAM"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((m=o==null?void 0:o.memory)==null?void 0:m.total)||"..."})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-orange-500/10 flex items-center justify-center text-orange-500",children:p.jsx(hm,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Alerting & Notifications"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"System health and failure monitoring"})]})]}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60 mb-2",children:"Notification Channels"}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-[#4A154B]/10 flex items-center justify-center text-[#4A154B] dark:text-[#E01E5A]",children:p.jsx(hm,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Slack"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard notification webhook"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Ce("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(b=(y=(g=l==null?void 0:l.config)==null?void 0:g.channels)==null?void 0:y.slack)!=null&&b.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(A=(j=(S=l==null?void 0:l.config)==null?void 0:S.channels)==null?void 0:j.slack)!=null&&A.enabled?"Enabled":"Disabled"})]}),p.jsx("div",{className:"flex gap-3",children:p.jsx("input",{type:"password",placeholder:"https://hooks.slack.com/services/...",defaultValue:((N=(T=(O=l==null?void 0:l.config)==null?void 0:O.channels)==null?void 0:T.slack)==null?void 0:N.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ee=ue.target.value;Ee!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack,webhookUrl:Ee}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-[#5865F2]/10 flex items-center justify-center text-[#5865F2]",children:p.jsx(PE,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Discord"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Webhook integration for servers"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Ce("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(_=(M=(C=l==null?void 0:l.config)==null?void 0:C.channels)==null?void 0:M.discord)!=null&&_.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(B=(D=(k=l==null?void 0:l.config)==null?void 0:k.channels)==null?void 0:D.discord)!=null&&B.enabled?"Enabled":"Disabled"})]}),p.jsx("div",{className:"flex gap-3",children:p.jsx("input",{type:"password",placeholder:"https://discord.com/api/webhooks/...",defaultValue:((Z=($=(K=l==null?void 0:l.config)==null?void 0:K.channels)==null?void 0:$.discord)==null?void 0:Z.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ee=ue.target.value;Ee!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord,webhookUrl:Ee}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-red-500/10 flex items-center justify-center text-red-500",children:p.jsx(Bc,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Email (SMTP)"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard mail delivery"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.email)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Ce("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(me=(de=(le=l==null?void 0:l.config)==null?void 0:le.channels)==null?void 0:de.email)!=null&&me.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(Y=(W=(q=l==null?void 0:l.config)==null?void 0:q.channels)==null?void 0:W.email)!=null&&Y.enabled?"Enabled":"Disabled"})]}),((R=(ne=(oe=l==null?void 0:l.config)==null?void 0:oe.channels)==null?void 0:ne.email)==null?void 0:R.enabled)&&p.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-4 animate-in fade-in slide-in-from-top-2",children:[p.jsxs("div",{className:"col-span-2 space-y-1",children:[p.jsx("label",{htmlFor:"email-to",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Destination Address"}),p.jsx("input",{id:"email-to",placeholder:"admin@example.com",defaultValue:((se=(ae=(F=l==null?void 0:l.config)==null?void 0:F.channels)==null?void 0:ae.email)==null?void 0:se.to)||"",onBlur:async ue=>{var De,Ot;const Ee=ue.target.value;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email,to:Ee}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"smtp-host",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"SMTP Host"}),p.jsx("input",{id:"smtp-host",placeholder:"smtp.gmail.com",defaultValue:((fe=(Oe=(ve=l==null?void 0:l.config)==null?void 0:ve.channels)==null?void 0:Oe.email)==null?void 0:fe.smtpHost)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpHost:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"smtp-port",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Port"}),p.jsx("input",{id:"smtp-port",type:"number",placeholder:"465",defaultValue:((Te=(J=(Qe=l==null?void 0:l.config)==null?void 0:Qe.channels)==null?void 0:J.email)==null?void 0:Te.smtpPort)||465,onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpPort:parseInt(ue.target.value,10)}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"smtp-user",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Username"}),p.jsx("input",{id:"smtp-user",placeholder:"user@example.com",defaultValue:((Dt=(ie=(Pe=l==null?void 0:l.config)==null?void 0:Pe.channels)==null?void 0:ie.email)==null?void 0:Dt.smtpUser)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpUser:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"smtp-pass",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Password"}),p.jsx("input",{id:"smtp-pass",type:"password",placeholder:"••••••••",defaultValue:((zt=(Rt=(Be=l==null?void 0:l.config)==null?void 0:Be.channels)==null?void 0:Rt.email)==null?void 0:zt.smtpPass)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpPass:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"col-span-2 space-y-1",children:[p.jsx("label",{htmlFor:"email-from",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"From Address"}),p.jsx("input",{id:"email-from",placeholder:"Zenith Monitor <noreply@example.com>",defaultValue:((Ro=(Oi=(mr=l==null?void 0:l.config)==null?void 0:mr.channels)==null?void 0:Oi.email)==null?void 0:Ro.from)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,from:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]})]})]})]}),p.jsxs("div",{className:"flex items-center justify-between mb-3 mt-8",children:[p.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60",children:"Active Rules"}),p.jsx("button",{type:"button",onClick:()=>n(!t),className:"text-[10px] font-black uppercase tracking-widest text-primary hover:underline border-none bg-transparent cursor-pointer",children:t?"Cancel":"+ Add Rule"})]}),t&&p.jsxs("form",{onSubmit:async ue=>{ue.preventDefault();const Ee=new FormData(ue.currentTarget),De={id:Math.random().toString(36).substring(7),name:Ee.get("name"),type:Ee.get("type"),threshold:parseInt(Ee.get("threshold"),10),cooldownMinutes:parseInt(Ee.get("cooldown"),10),queue:Ee.get("queue")||void 0};await fetch("/api/alerts/rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(De)}),n(!1),e.invalidateQueries({queryKey:["alerts-config"]})},className:"p-4 bg-muted/40 rounded-xl border border-primary/20 space-y-4 mb-6",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"rule-name",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Rule Name"}),p.jsx("input",{id:"rule-name",name:"name",required:!0,placeholder:"High CPU",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"rule-type",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Type"}),p.jsxs("select",{id:"rule-type",name:"type",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none cursor-pointer",children:[p.jsx("option",{value:"backlog",children:"Queue Backlog"}),p.jsx("option",{value:"failure",children:"High Failure Count"}),p.jsx("option",{value:"worker_lost",children:"Worker Loss"}),p.jsx("option",{value:"node_cpu",children:"Node CPU (%)"}),p.jsx("option",{value:"node_ram",children:"Node RAM (%)"})]})]})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"rule-threshold",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Threshold"}),p.jsx("input",{id:"rule-threshold",name:"threshold",type:"number",required:!0,defaultValue:"80",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"rule-cooldown",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Cooldown (Min)"}),p.jsx("input",{id:"rule-cooldown",name:"cooldown",type:"number",required:!0,defaultValue:"30",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{htmlFor:"rule-queue",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Queue (Optional)"}),p.jsx("input",{id:"rule-queue",name:"queue",placeholder:"default",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]})]}),p.jsx("button",{type:"submit",className:"w-full py-2 bg-primary text-primary-foreground rounded-lg text-xs font-black uppercase tracking-widest shadow-lg shadow-primary/20 cursor-pointer",children:"Save Alert Rule"})]}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:(zo=l==null?void 0:l.rules)==null?void 0:zo.map(ue=>p.jsxs("div",{className:"p-3 bg-muted/20 border border-border/10 rounded-xl flex items-center justify-between group",children:[p.jsxs("div",{className:"flex-1",children:[p.jsxs("p",{className:"text-[11px] font-black uppercase tracking-tight flex items-center gap-2",children:[ue.name,ue.queue&&p.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-primary/10 text-primary",children:ue.queue})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground opacity-70",children:ue.type==="backlog"?`Waiting > ${ue.threshold}`:ue.type==="failure"?`Failed > ${ue.threshold}`:ue.type==="worker_lost"?`Workers < ${ue.threshold}`:ue.type==="node_cpu"?`CPU > ${ue.threshold}%`:`RAM > ${ue.threshold}%`})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"px-2 py-0.5 bg-muted rounded text-[9px] font-bold text-muted-foreground",children:[ue.cooldownMinutes,"m"]}),p.jsx("button",{type:"button",onClick:async()=>{confirm("Delete this alert rule?")&&(await fetch(`/api/alerts/rules/${ue.id}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"p-1 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-all",children:p.jsx(jo,{size:12})})]})]},ue.id))}),p.jsxs("div",{className:"pt-4 flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border/30",children:[p.jsx("p",{className:"text-xs text-muted-foreground max-w-md",children:"Configure notification channels above to receive real-time alerts."}),p.jsx("button",{type:"button",onClick:async()=>{(await fetch("/api/alerts/test",{method:"POST"}).then(Ee=>Ee.json())).success&&alert("Test alert dispatched to all enabled channels.")},className:"w-full sm:w-auto px-4 py-2 border border-primary/20 hover:bg-primary/5 text-primary rounded-lg text-xs font-black uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-primary/10 cursor-pointer",children:"Test Dispatch Now"})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-red-500/10 flex items-center justify-center text-red-500",children:p.jsx(jo,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Data Retention"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Manage persistent archive storage"})]})]}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold",children:"SQL Job Archive Preservation"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Keep archived jobs for a specific number of days before permanent removal."})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Auto-Cleanup"}),p.jsx("button",{type:"button",onClick:async()=>{var Ee;const ue=!((Ee=l==null?void 0:l.maintenance)!=null&&Ee.autoCleanup);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,autoCleanup:ue})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Ce("w-10 h-5 rounded-full p-1 transition-all flex items-center",(Lo=l==null?void 0:l.maintenance)!=null&&Lo.autoCleanup?"bg-green-500 justify-end":"bg-muted justify-start"),children:p.jsx("div",{className:"w-3 h-3 bg-white rounded-full shadow-sm"})})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Retention Days"}),p.jsxs("select",{className:"bg-muted border border-border/50 rounded-lg px-3 py-1.5 text-sm font-bold outline-none focus:ring-1 focus:ring-primary/30 transition-all cursor-pointer",value:((ad=l==null?void 0:l.maintenance)==null?void 0:ad.retentionDays)||30,onChange:async ue=>{const Ee=parseInt(ue.target.value,10);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,retentionDays:Ee})}),e.invalidateQueries({queryKey:["alerts-config"]})},children:[p.jsx("option",{value:"7",children:"7 Days"}),p.jsx("option",{value:"15",children:"15 Days"}),p.jsx("option",{value:"30",children:"30 Days"}),p.jsx("option",{value:"90",children:"90 Days"}),p.jsx("option",{value:"365",children:"1 Year"})]})]})]})]}),p.jsxs("div",{className:"bg-red-500/5 border border-red-500/10 rounded-xl p-4 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Bc,{size:16,className:"text-red-500/60"}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"text-xs font-medium text-red-900/60 dark:text-red-400/60",children:"Manual prune will remove all jobs older than the selected period."}),((id=l==null?void 0:l.maintenance)==null?void 0:id.lastRun)&&p.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:["Last auto-cleanup run:"," ",new Date(l.maintenance.lastRun).toLocaleString()]})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var Ee;const ue=((Ee=l==null?void 0:l.maintenance)==null?void 0:Ee.retentionDays)||30;if(confirm(`Are you sure you want to prune logs older than ${ue} days?`)){const De=await fetch("/api/maintenance/cleanup-archive",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({days:ue})}).then(Ot=>Ot.json());alert(`Cleanup complete. Removed ${De.deleted||0} archived jobs.`)}},className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-lg text-xs font-black uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-red-500/20",children:"Prune Archive Now"})]})]}),p.jsx("div",{className:"pt-4 border-t border-border/30",children:p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold",children:"Live Stats History (Redis)"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Minute-by-minute metrics used for dashboard charts."})]}),p.jsx("div",{className:"px-3 py-1 bg-muted rounded-full text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Auto-Prunes (60m)"})]})})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 flex items-center justify-center text-amber-500",children:p.jsx($_,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"About Flux Console"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Version and documentation"})]})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsx("span",{className:"font-medium",children:"Version"}),p.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.version)||"0.1.0-alpha.1"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsx("span",{className:"font-medium",children:"Package"}),p.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.package)||"@gravito/flux-console"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsx("span",{className:"font-medium",children:"Documentation"}),p.jsxs("a",{href:"https://github.com/gravito-framework/gravito",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-sm text-primary hover:underline font-bold",children:["View Docs ",p.jsx(AU,{size:14})]})]})]})]})]})}function _de(e){const t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60);return t>0?`${t}d ${n}h ${r}m`:n>0?`${n}h ${r}m`:`${r}m ${Math.floor(e%60)}s`}function Dde(){const e=mi(),{isPending:t,error:n,data:r}=Nn({queryKey:["workers"],queryFn:async()=>(await fetch("/api/workers")).json(),refetchInterval:5e3});w.useEffect(()=>{const g=y=>{var b;(b=y.detail)!=null&&b.workers&&e.setQueryData(["workers"],{workers:y.detail.workers})};return window.addEventListener("flux-stats-update",g),()=>window.removeEventListener("flux-stats-update",g)},[e]);const i=(r==null?void 0:r.workers)||[],o=i.filter(g=>g.status==="online"),l=i.filter(g=>g.status!=="online"),c=i.reduce((g,y)=>{var b;return g+(((b=y.metrics)==null?void 0:b.cpu)||0)},0),f=i.length>0?c/i.length:0,h=i.reduce((g,y)=>{var b,S;return g+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.rss)||0)},0),m=i.reduce((g,y)=>{var b,S;return g+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.total)||0)},0);return t?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ja,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading workers..."})]}):n?p.jsx("div",{className:"text-center p-20",children:p.jsxs("div",{className:"bg-red-500/10 text-red-500 p-10 rounded-3xl border border-red-500/20 max-w-md mx-auto shadow-2xl",children:[p.jsx(Zr,{size:56,className:"mx-auto mb-6 opacity-80"}),p.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Workers"}),p.jsx("p",{className:"text-sm font-medium opacity-70",children:n.message})]})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Worker Nodes"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Monitor and manage cluster processing nodes."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em]",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)] animate-pulse"}),o.length," Online"]})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-green-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(yp,{size:16,className:"text-green-500"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Online Nodes"})]}),p.jsx("p",{className:"text-3xl font-black text-green-500",children:o.length})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-muted/20 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(V_,{size:16,className:"text-muted-foreground"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Offline Nodes"})]}),p.jsx("p",{className:"text-3xl font-black text-muted-foreground",children:l.length})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-primary/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(MU,{size:16,className:"text-primary"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Avg Load"})]}),p.jsx("p",{className:"text-3xl font-black",children:f.toFixed(2)})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-indigo-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(VU,{size:16,className:"text-indigo-500"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Cluster RAM"})]}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsx("p",{className:"text-3xl font-black text-indigo-500",children:(h/1024).toFixed(2)}),m>0&&p.jsxs("span",{className:"text-sm font-bold text-muted-foreground opacity-50",children:["/ ",(m/1024).toFixed(0)," GB"]})]})]})]})]}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:[i.length===0&&p.jsxs("div",{className:"col-span-full py-20 text-center text-muted-foreground/30",children:[p.jsx(Xc,{size:48,className:"mx-auto mb-4 opacity-20 animate-pulse"}),p.jsx("p",{className:"text-sm font-bold uppercase tracking-widest",children:"No worker nodes connected"}),p.jsx("p",{className:"text-xs opacity-60 mt-2",children:"Start a worker to see it appear here"})]}),i.map((g,y)=>{var b;return p.jsxs(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:y*.1},className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:Ce("absolute left-0 top-0 bottom-0 w-1.5 transition-all",g.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),p.jsxs("div",{className:"flex items-start justify-between mb-6",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:Ce("w-12 h-12 rounded-2xl flex items-center justify-center transition-all",g.status==="online"?"bg-green-500/10 text-green-500":"bg-muted text-muted-foreground"),children:p.jsx(Xc,{size:24})}),p.jsx("div",{className:Ce("absolute -bottom-1 -right-1 w-4 h-4 rounded-full border-2 border-card",g.status==="online"?"bg-green-500 animate-pulse":"bg-muted-foreground")})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-black tracking-tight text-lg group-hover:text-primary transition-colors",children:g.id}),p.jsxs("p",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-widest",children:["PID: ",g.pid]})]})]}),p.jsx("span",{className:Ce("px-3 py-1 rounded-full text-[9px] font-black uppercase tracking-widest border",g.status==="online"?"bg-green-500/10 text-green-500 border-green-500/20":"bg-muted/40 text-muted-foreground border-transparent"),children:g.status})]}),g.metrics&&p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[p.jsxs("span",{className:"text-muted-foreground",children:["Load (Cap: ",g.metrics.cores||"-",")"]}),p.jsx("span",{className:Ce(g.metrics.cpu>(g.metrics.cores||4)?"text-red-500":g.metrics.cpu>(g.metrics.cores||4)*.7?"text-amber-500":"text-green-500"),children:g.metrics.cpu.toFixed(2)})]}),p.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,g.metrics.cpu/(g.metrics.cores||1)*100)}%`},transition:{duration:.5},className:Ce("h-full transition-colors",g.metrics.cpu>(g.metrics.cores||4)?"bg-red-500":g.metrics.cpu>(g.metrics.cores||4)*.7?"bg-amber-500":"bg-green-500")})})]}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[p.jsx("span",{className:"text-muted-foreground",children:"Memory (RSS / Total)"}),p.jsxs("span",{className:"text-indigo-500",children:[(g.metrics.ram.rss/1024).toFixed(2)," GB /"," ",g.metrics.ram.total?(g.metrics.ram.total/1024).toFixed(0):"-"," ","GB"]})]}),p.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,g.metrics.ram.rss/(g.metrics.ram.total||2048)*100)}%`},transition:{duration:.5},className:"h-full bg-indigo-500"})})]})]}),p.jsxs("div",{className:"mt-6 space-y-3",children:[g.queues&&g.queues.length>0&&p.jsxs("div",{className:"bg-muted/10 p-3 rounded-xl border border-border/50",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx("div",{className:"w-1.5 h-1.5 bg-orange-500 rounded-full"}),p.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-muted-foreground",children:"Monitored Queues"})]}),p.jsx("div",{className:"flex flex-wrap gap-2",children:g.queues.map((S,j)=>p.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-bold text-foreground/80 bg-background/80 px-2 py-1 rounded-md shadow-sm border border-border/50",children:[p.jsx("span",{className:"opacity-70",children:S.name}),(S.size.waiting>0||S.size.failed>0)&&p.jsx("span",{className:Ce("px-1 rounded bg-muted text-[9px]",S.size.failed>0?"text-red-500 bg-red-500/10":"text-amber-500 bg-amber-500/10"),children:S.size.failed>0?`${S.size.failed} failed`:`${S.size.waiting} wait`})]},j))})]}),((b=g.meta)==null?void 0:b.laravel)&&p.jsxs("div",{className:"flex items-center justify-between p-3 bg-red-500/5 border border-red-500/10 rounded-xl",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"w-1.5 h-1.5 bg-red-500 rounded-full animate-pulse"}),p.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-red-500/80",children:"Laravel Workers"})]}),p.jsx("span",{className:"font-mono text-sm font-black text-red-500",children:g.meta.laravel.workerCount||0})]})]}),p.jsxs("div",{className:"mt-4 pt-4 border-t border-border/30 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[p.jsx(Jr,{size:14}),p.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest",children:"Uptime"})]}),p.jsx("span",{className:"font-mono text-sm font-bold",children:Rde(g.uptime)})]})]},g.id)})]})]})}function Rde(e){if(e<60)return`${Math.floor(e)}s`;if(e<3600)return`${Math.floor(e/60)}m ${Math.floor(e%60)}s`;const t=Math.floor(e/3600),n=Math.floor(e%3600/60);return`${t}h ${n}m`}const zde=new N_;function Lde(){const{isAuthenticated:e,isAuthEnabled:t,isLoading:n}=Sp();return n?p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:p.jsxs("div",{className:"flex flex-col items-center gap-4",children:[p.jsx(Ja,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Initializing..."})]})}):t&&!e?p.jsx(TK,{}):p.jsx(H$,{children:p.jsx(NK,{children:p.jsxs(f$,{children:[p.jsx(es,{path:"/",element:p.jsx(mfe,{})}),p.jsx(es,{path:"/queues",element:p.jsx(Afe,{})}),p.jsx(es,{path:"/schedules",element:p.jsx(Mde,{})}),p.jsx(es,{path:"/workers",element:p.jsx(Dde,{})}),p.jsx(es,{path:"/metrics",element:p.jsx(nfe,{})}),p.jsx(es,{path:"/pulse",element:p.jsx(jfe,{})}),p.jsx(es,{path:"/settings",element:p.jsx(Pde,{})})]})})})}function Ide(){return p.jsx(C_,{client:zde,children:p.jsx(R$,{children:p.jsx(F$,{children:p.jsx(Lde,{})})})})}const Bde=new N_;H8.createRoot(document.getElementById("root")).render(p.jsx(Me.StrictMode,{children:p.jsx(C_,{client:Bde,children:p.jsx(Ide,{})})}));