@gravito/zenith 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +77 -22
- package/README.zh-TW.md +88 -0
- package/dist/bin.js +64681 -15842
- package/dist/client/assets/index-C80c1frR.css +1 -0
- package/dist/client/assets/index-CrWem9u3.js +434 -0
- package/dist/server/index.js +64681 -15842
- package/package.json +9 -7
- package/postcss.config.js +4 -4
- package/src/client/Layout.tsx +36 -39
- package/src/client/Sidebar.tsx +7 -7
- package/src/client/ThroughputChart.tsx +31 -17
- package/src/client/WorkerStatus.tsx +56 -80
- package/src/client/components/ConfirmDialog.tsx +22 -14
- package/src/client/components/JobInspector.tsx +95 -162
- package/src/client/index.css +29 -31
- package/src/client/pages/LoginPage.tsx +33 -31
- package/src/client/pages/MetricsPage.tsx +65 -37
- package/src/client/pages/OverviewPage.tsx +30 -28
- package/src/client/pages/PulsePage.tsx +111 -190
- package/src/client/pages/QueuesPage.tsx +82 -83
- package/src/client/pages/SchedulesPage.tsx +56 -61
- package/src/client/pages/SettingsPage.tsx +118 -137
- package/src/client/pages/WorkersPage.tsx +101 -115
- package/src/server/services/CommandService.ts +8 -9
- package/src/server/services/PulseService.ts +61 -4
- package/src/server/services/QueueService.ts +293 -0
- package/src/shared/types.ts +38 -13
- package/tailwind.config.js +75 -68
- package/tsconfig.json +28 -37
- package/tsconfig.node.json +9 -11
- package/dist/client/assets/index-BSMp8oq_.js +0 -436
- package/dist/client/assets/index-BwxlHx-_.css +0 -1
- package/dist/client/index.html +0 -13
- package/src/client/index.html +0 -12
- /package/{ECOSYSTEM_EXPANSION_RFC.md → doc/ECOSYSTEM_EXPANSION_RFC.md} +0 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
var CB=Object.defineProperty;var OE=e=>{throw TypeError(e)};var MB=(e,t,n)=>t in e?CB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Vy=(e,t,n)=>MB(e,typeof t!="symbol"?t+"":t,n),Fy=(e,t,n)=>t.has(e)||OE("Cannot "+n);var I=(e,t,n)=>(Fy(e,t,"read from private field"),n?n.call(e):t.get(e)),Oe=(e,t,n)=>t.has(e)?OE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),de=(e,t,n,r)=>(Fy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(Fy(e,t,"access private method"),n);var Ah=(e,t,n,r)=>({set _(a){de(e,t,a,n)},get _(){return I(e,t,r)}});function PB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)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(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hy={exports:{}},Ac={};/**
|
|
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 AE;function _B(){if(AE)return Ac;AE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Ac.Fragment=t,Ac.jsx=n,Ac.jsxs=n,Ac}var EE;function DB(){return EE||(EE=1,Hy.exports=_B()),Hy.exports}var g=DB(),gu=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(){}},RB={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},us,Q1,R_,zB=(R_=class{constructor(){Oe(this,us,RB);Oe(this,Q1,!1)}setTimeoutProvider(e){de(this,us,e)}setTimeout(e,t){return I(this,us).setTimeout(e,t)}clearTimeout(e){I(this,us).clearTimeout(e)}setInterval(e,t){return I(this,us).setInterval(e,t)}clearInterval(e){I(this,us).clearInterval(e)}},us=new WeakMap,Q1=new WeakMap,R_),io=new zB;function LB(e){setTimeout(e,0)}var Eo=typeof window>"u"||"Deno"in globalThis;function Mn(){}function IB(e,t){return typeof e=="function"?e(t):e}function ax(e){return typeof e=="number"&&e>=0&&e!==1/0}function K_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xs(e,t){return typeof e=="function"?e(t):e}function Tr(e,t){return typeof e=="function"?e(t):e}function NE(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Z1(l,t.options))return!1}else if(!rf(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||a&&a!==t.state.fetchStatus||o&&!o(t))}function kE(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(No(t.options.mutationKey)!==No(o))return!1}else if(!rf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Z1(e,t){return((t==null?void 0:t.queryKeyHashFn)||No)(e)}function No(e){return JSON.stringify(e,(t,n)=>sx(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function rf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rf(e[n],t[n])):!1}var BB=Object.prototype.hasOwnProperty;function G_(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=TE(e)&&TE(t);if(!r&&!(sx(e)&&sx(t)))return t;const o=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,f=r?new Array(c):{};let h=0;for(let m=0;m<c;m++){const p=r?m:l[m],v=e[p],x=t[p];if(v===x){f[p]=v,(r?m<o:BB.call(e,p))&&h++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){f[p]=x;continue}const j=G_(v,x,n+1);f[p]=j,j===v&&h++}return o===c&&h===o?e:f}function gm(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 TE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sx(e){if(!CE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!CE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function CE(e){return Object.prototype.toString.call(e)==="[object Object]"}function UB(e){return new Promise(t=>{io.setTimeout(t,e)})}function ox(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?G_(e,t):t}function qB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function $B(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var J1=Symbol();function Y_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===J1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ew(e,t){return typeof e=="function"?e(...t):!!e}function VB(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var fo,cs,Yl,z_,FB=(z_=class extends gu{constructor(){super();Oe(this,fo);Oe(this,cs);Oe(this,Yl);de(this,Yl,t=>{if(!Eo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){I(this,cs)||this.setEventListener(I(this,Yl))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,cs))==null||t.call(this),de(this,cs,void 0))}setEventListener(t){var n;de(this,Yl,t),(n=I(this,cs))==null||n.call(this),de(this,cs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){I(this,fo)!==t&&(de(this,fo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof I(this,fo)=="boolean"?I(this,fo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fo=new WeakMap,cs=new WeakMap,Yl=new WeakMap,z_),tw=new FB;function lx(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var HB=LB;function KB(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=HB;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{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=>{a=c}}}var Wt=KB(),Wl,fs,Xl,L_,GB=(L_=class extends gu{constructor(){super();Oe(this,Wl,!0);Oe(this,fs);Oe(this,Xl);de(this,Xl,t=>{if(!Eo&&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(){I(this,fs)||this.setEventListener(I(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,fs))==null||t.call(this),de(this,fs,void 0))}setEventListener(t){var n;de(this,Xl,t),(n=I(this,fs))==null||n.call(this),de(this,fs,t(this.setOnline.bind(this)))}setOnline(t){I(this,Wl)!==t&&(de(this,Wl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return I(this,Wl)}},Wl=new WeakMap,fs=new WeakMap,Xl=new WeakMap,L_),vm=new GB;function YB(e){return Math.min(1e3*2**e,3e4)}function W_(e){return(e??"online")==="online"?vm.isOnline():!0}var ux=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function X_(e){let t=!1,n=0,r;const a=lx(),o=()=>a.status!=="pending",l=O=>{var w;if(!o()){const A=new ux(O);v(A),(w=e.onCancel)==null||w.call(e,A)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>tw.isFocused()&&(e.networkMode==="always"||vm.isOnline())&&e.canRun(),m=()=>W_(e.networkMode)&&e.canRun(),p=O=>{o()||(r==null||r(),a.resolve(O))},v=O=>{o()||(r==null||r(),a.reject(O))},x=()=>new Promise(O=>{var w;r=A=>{(o()||h())&&O(A)},(w=e.onPause)==null||w.call(e)}).then(()=>{var O;r=void 0,o()||(O=e.onContinue)==null||O.call(e)}),j=()=>{if(o())return;let O;const w=n===0?e.initialPromise:void 0;try{O=w??e.fn()}catch(A){O=Promise.reject(A)}Promise.resolve(O).then(p).catch(A=>{var P;if(o())return;const T=e.retry??(Eo?0:3),k=e.retryDelay??YB,E=typeof k=="function"?k(n,A):k,C=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,A);if(t||!C){v(A);return}n++,(P=e.onFail)==null||P.call(e,n,A),UB(E).then(()=>h()?void 0:x()).then(()=>{t?v(A):j()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?j():x().then(j),a)}}var ho,I_,Q_=(I_=class{constructor(){Oe(this,ho)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ax(this.gcTime)&&de(this,ho,io.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Eo?1/0:300*1e3))}clearGcTimeout(){I(this,ho)&&(io.clearTimeout(I(this,ho)),de(this,ho,void 0))}},ho=new WeakMap,I_),mo,Ql,kr,po,nn,Mf,go,Hr,Gi,B_,WB=(B_=class extends Q_{constructor(t){super();Oe(this,Hr);Oe(this,mo);Oe(this,Ql);Oe(this,kr);Oe(this,po);Oe(this,nn);Oe(this,Mf);Oe(this,go);de(this,go,!1),de(this,Mf,t.defaultOptions),this.setOptions(t.options),this.observers=[],de(this,po,t.client),de(this,kr,I(this,po).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,de(this,mo,PE(this.options)),this.state=t.state??I(this,mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,nn))==null?void 0:t.promise}setOptions(t){if(this.options={...I(this,Mf),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=PE(this.options);n.data!==void 0&&(this.setState(ME(n.data,n.dataUpdatedAt)),de(this,mo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,kr).remove(this)}setData(t,n){const r=ox(this.state.data,t,this.options);return Ie(this,Hr,Gi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,Hr,Gi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=I(this,nn))==null?void 0:r.promise;return(a=I(this,nn))==null||a.cancel(t),n?n.then(Mn).catch(Mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,mo))}isActive(){return this.observers.some(t=>Tr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===J1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>xs(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:!K_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,nn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,nn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(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||(I(this,nn)&&(I(this,go)?I(this,nn).cancel({revert:!0}):I(this,nn).cancelRetry()),this.scheduleGc()),I(this,kr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,Hr,Gi).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,p,v,x,j,O,w,A,T,k;if(this.state.fetchStatus!=="idle"&&((f=I(this,nn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(I(this,nn))return I(this,nn).continueRetry(),I(this,nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const E=this.observers.find(C=>C.options.queryFn);E&&this.setOptions(E.options)}const r=new AbortController,a=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(de(this,go,!0),r.signal)})},o=()=>{const E=Y_(this.options,n),P=(()=>{const _={client:I(this,po),queryKey:this.queryKey,meta:this.meta};return a(_),_})();return de(this,go,!1),this.options.persister?this.options.persister(E,P,this):E(P)},c=(()=>{const E={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:I(this,po),state:this.state,fetchFn:o};return a(E),E})();(h=this.options.behavior)==null||h.onFetch(c,this),de(this,Ql,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Ie(this,Hr,Gi).call(this,{type:"fetch",meta:(p=c.fetchOptions)==null?void 0:p.meta}),de(this,nn,X_({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:E=>{E instanceof ux&&E.revert&&this.setState({...I(this,Ql),fetchStatus:"idle"}),r.abort()},onFail:(E,C)=>{Ie(this,Hr,Gi).call(this,{type:"failed",failureCount:E,error:C})},onPause:()=>{Ie(this,Hr,Gi).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Hr,Gi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const E=await I(this,nn).start();if(E===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(E),(x=(v=I(this,kr).config).onSuccess)==null||x.call(v,E,this),(O=(j=I(this,kr).config).onSettled)==null||O.call(j,E,this.state.error,this),E}catch(E){if(E instanceof ux){if(E.silent)return I(this,nn).promise;if(E.revert){if(this.state.data===void 0)throw E;return this.state.data}}throw Ie(this,Hr,Gi).call(this,{type:"error",error:E}),(A=(w=I(this,kr).config).onError)==null||A.call(w,E,this),(k=(T=I(this,kr).config).onSettled)==null||k.call(T,this.state.data,E,this),E}finally{this.scheduleGc()}}},mo=new WeakMap,Ql=new WeakMap,kr=new WeakMap,po=new WeakMap,nn=new WeakMap,Mf=new WeakMap,go=new WeakMap,Hr=new WeakSet,Gi=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,...Z_(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...ME(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return de(this,Ql,t.manual?a:void 0),a;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),Wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),I(this,kr).notify({query:this,type:"updated",action:t})})},B_);function Z_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ME(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function PE(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 Gn,Ke,Pf,Cn,vo,Zl,Wi,ds,_f,Jl,eu,yo,bo,hs,tu,et,qc,cx,fx,dx,hx,mx,px,gx,J_,U_,XB=(U_=class extends gu{constructor(t,n){super();Oe(this,et);Oe(this,Gn);Oe(this,Ke);Oe(this,Pf);Oe(this,Cn);Oe(this,vo);Oe(this,Zl);Oe(this,Wi);Oe(this,ds);Oe(this,_f);Oe(this,Jl);Oe(this,eu);Oe(this,yo);Oe(this,bo);Oe(this,hs);Oe(this,tu,new Set);this.options=n,de(this,Gn,t),de(this,ds,null),de(this,Wi,lx()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(I(this,Ke).addObserver(this),_E(I(this,Ke),this.options)?Ie(this,et,qc).call(this):this.updateResult(),Ie(this,et,hx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vx(I(this,Ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vx(I(this,Ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,et,mx).call(this),Ie(this,et,px).call(this),I(this,Ke).removeObserver(this)}setOptions(t){const n=this.options,r=I(this,Ke);if(this.options=I(this,Gn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tr(this.options.enabled,I(this,Ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,et,gx).call(this),I(this,Ke).setOptions(this.options),n._defaulted&&!gm(this.options,n)&&I(this,Gn).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,Ke),observer:this});const a=this.hasListeners();a&&DE(I(this,Ke),r,this.options,n)&&Ie(this,et,qc).call(this),this.updateResult(),a&&(I(this,Ke)!==r||Tr(this.options.enabled,I(this,Ke))!==Tr(n.enabled,I(this,Ke))||xs(this.options.staleTime,I(this,Ke))!==xs(n.staleTime,I(this,Ke)))&&Ie(this,et,cx).call(this);const o=Ie(this,et,fx).call(this);a&&(I(this,Ke)!==r||Tr(this.options.enabled,I(this,Ke))!==Tr(n.enabled,I(this,Ke))||o!==I(this,hs))&&Ie(this,et,dx).call(this,o)}getOptimisticResult(t){const n=I(this,Gn).getQueryCache().build(I(this,Gn),t),r=this.createResult(n,t);return ZB(this,r)&&(de(this,Cn,r),de(this,Zl,this.options),de(this,vo,I(this,Ke).state)),r}getCurrentResult(){return I(this,Cn)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&I(this,Wi).status==="pending"&&I(this,Wi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){I(this,tu).add(t)}getCurrentQuery(){return I(this,Ke)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=I(this,Gn).defaultQueryOptions(t),r=I(this,Gn).getQueryCache().build(I(this,Gn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ie(this,et,qc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,Cn)))}createResult(t,n){var L;const r=I(this,Ke),a=this.options,o=I(this,Cn),l=I(this,vo),c=I(this,Zl),h=t!==r?t.state:I(this,Pf),{state:m}=t;let p={...m},v=!1,x;if(n._optimisticResults){const Z=this.hasListeners(),ee=!Z&&_E(t,n),V=Z&&DE(t,r,n,a);(ee||V)&&(p={...p,...Z_(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:j,errorUpdatedAt:O,status:w}=p;x=p.data;let A=!1;if(n.placeholderData!==void 0&&x===void 0&&w==="pending"){let Z;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(Z=o.data,A=!0):Z=typeof n.placeholderData=="function"?n.placeholderData((L=I(this,eu))==null?void 0:L.state.data,I(this,eu)):n.placeholderData,Z!==void 0&&(w="success",x=ox(o==null?void 0:o.data,Z,n),v=!0)}if(n.select&&x!==void 0&&!A)if(o&&x===(l==null?void 0:l.data)&&n.select===I(this,_f))x=I(this,Jl);else try{de(this,_f,n.select),x=n.select(x),x=ox(o==null?void 0:o.data,x,n),de(this,Jl,x),de(this,ds,null)}catch(Z){de(this,ds,Z)}I(this,ds)&&(j=I(this,ds),x=I(this,Jl),O=Date.now(),w="error");const T=p.fetchStatus==="fetching",k=w==="pending",E=w==="error",C=k&&T,P=x!==void 0,D={status:w,fetchStatus:p.fetchStatus,isPending:k,isSuccess:w==="success",isError:E,isInitialLoading:C,isLoading:C,data:x,dataUpdatedAt:p.dataUpdatedAt,error:j,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!k,isLoadingError:E&&!P,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:E&&P,isStale:nw(t,n),refetch:this.refetch,promise:I(this,Wi),isEnabled:Tr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Z=D.data!==void 0,ee=D.status==="error"&&!Z,V=ce=>{ee?ce.reject(D.error):Z&&ce.resolve(D.data)},ue=()=>{const ce=de(this,Wi,D.promise=lx());V(ce)},le=I(this,Wi);switch(le.status){case"pending":t.queryHash===r.queryHash&&V(le);break;case"fulfilled":(ee||D.data!==le.value)&&ue();break;case"rejected":(!ee||D.error!==le.reason)&&ue();break}}return D}updateResult(){const t=I(this,Cn),n=this.createResult(I(this,Ke),this.options);if(de(this,vo,I(this,Ke).state),de(this,Zl,this.options),I(this,vo).data!==void 0&&de(this,eu,I(this,Ke)),gm(n,t))return;de(this,Cn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!I(this,tu).size)return!0;const l=new Set(o??I(this,tu));return this.options.throwOnError&&l.add("error"),Object.keys(I(this,Cn)).some(c=>{const f=c;return I(this,Cn)[f]!==t[f]&&l.has(f)})};Ie(this,et,J_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,et,hx).call(this)}},Gn=new WeakMap,Ke=new WeakMap,Pf=new WeakMap,Cn=new WeakMap,vo=new WeakMap,Zl=new WeakMap,Wi=new WeakMap,ds=new WeakMap,_f=new WeakMap,Jl=new WeakMap,eu=new WeakMap,yo=new WeakMap,bo=new WeakMap,hs=new WeakMap,tu=new WeakMap,et=new WeakSet,qc=function(t){Ie(this,et,gx).call(this);let n=I(this,Ke).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Mn)),n},cx=function(){Ie(this,et,mx).call(this);const t=xs(this.options.staleTime,I(this,Ke));if(Eo||I(this,Cn).isStale||!ax(t))return;const r=K_(I(this,Cn).dataUpdatedAt,t)+1;de(this,yo,io.setTimeout(()=>{I(this,Cn).isStale||this.updateResult()},r))},fx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,Ke)):this.options.refetchInterval)??!1},dx=function(t){Ie(this,et,px).call(this),de(this,hs,t),!(Eo||Tr(this.options.enabled,I(this,Ke))===!1||!ax(I(this,hs))||I(this,hs)===0)&&de(this,bo,io.setInterval(()=>{(this.options.refetchIntervalInBackground||tw.isFocused())&&Ie(this,et,qc).call(this)},I(this,hs)))},hx=function(){Ie(this,et,cx).call(this),Ie(this,et,dx).call(this,Ie(this,et,fx).call(this))},mx=function(){I(this,yo)&&(io.clearTimeout(I(this,yo)),de(this,yo,void 0))},px=function(){I(this,bo)&&(io.clearInterval(I(this,bo)),de(this,bo,void 0))},gx=function(){const t=I(this,Gn).getQueryCache().build(I(this,Gn),this.options);if(t===I(this,Ke))return;const n=I(this,Ke);de(this,Ke,t),de(this,Pf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},J_=function(t){Wt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(I(this,Cn))}),I(this,Gn).getQueryCache().notify({query:I(this,Ke),type:"observerResultsUpdated"})})},U_);function QB(e,t){return Tr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _E(e,t){return QB(e,t)||e.state.data!==void 0&&vx(e,t,t.refetchOnMount)}function vx(e,t,n){if(Tr(t.enabled,e)!==!1&&xs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&nw(e,t)}return!1}function DE(e,t,n,r){return(e!==t||Tr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&nw(e,n)}function nw(e,t){return Tr(t.enabled,e)!==!1&&e.isStaleByTime(xs(t.staleTime,e))}function ZB(e,t){return!gm(e.getCurrentResult(),t)}function RE(e){return{onFetch:(t,n)=>{var m,p,v,x,j;const r=t.options,a=(v=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((x=t.state.data)==null?void 0:x.pages)||[],l=((j=t.state.data)==null?void 0:j.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let O=!1;const w=k=>{VB(k,()=>t.signal,()=>O=!0)},A=Y_(t.options,t.fetchOptions),T=async(k,E,C)=>{if(O)return Promise.reject();if(E==null&&k.pages.length)return Promise.resolve(k);const _=(()=>{const ee={client:t.client,queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};return w(ee),ee})(),D=await A(_),{maxPages:L}=t.options,Z=C?$B:qB;return{pages:Z(k.pages,D,L),pageParams:Z(k.pageParams,E,L)}};if(a&&o.length){const k=a==="backward",E=k?JB:zE,C={pages:o,pageParams:l},P=E(r,C);c=await T(C,P,k)}else{const k=e??o.length;do{const E=f===0?l[0]??r.initialPageParam:zE(r,c);if(f>0&&E==null)break;c=await T(c,E),f++}while(f<k)}return c};t.options.persister?t.fetchFn=()=>{var O,w;return(w=(O=t.options).persister)==null?void 0:w.call(O,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function zE(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 JB(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 Df,fi,On,xo,di,ns,q_,e9=(q_=class extends Q_{constructor(t){super();Oe(this,di);Oe(this,Df);Oe(this,fi);Oe(this,On);Oe(this,xo);de(this,Df,t.client),this.mutationId=t.mutationId,de(this,On,t.mutationCache),de(this,fi,[]),this.state=t.state||eD(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,fi).includes(t)||(I(this,fi).push(t),this.clearGcTimeout(),I(this,On).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){de(this,fi,I(this,fi).filter(n=>n!==t)),this.scheduleGc(),I(this,On).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,fi).length||(this.state.status==="pending"?this.scheduleGc():I(this,On).remove(this))}continue(){var t;return((t=I(this,xo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,f,h,m,p,v,x,j,O,w,A,T,k,E,C,P,_;const n=()=>{Ie(this,di,ns).call(this,{type:"continue"})},r={client:I(this,Df),meta:this.options.meta,mutationKey:this.options.mutationKey};de(this,xo,X_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(D,L)=>{Ie(this,di,ns).call(this,{type:"failed",failureCount:D,error:L})},onPause:()=>{Ie(this,di,ns).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,On).canRun(this)}));const a=this.state.status==="pending",o=!I(this,xo).canStart();try{if(a)n();else{Ie(this,di,ns).call(this,{type:"pending",variables:t,isPaused:o}),I(this,On).config.onMutate&&await I(this,On).config.onMutate(t,this,r);const L=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));L!==this.state.context&&Ie(this,di,ns).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const D=await I(this,xo).start();return await((h=(f=I(this,On).config).onSuccess)==null?void 0:h.call(f,D,t,this.state.context,this,r)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,D,t,this.state.context,r)),await((x=(v=I(this,On).config).onSettled)==null?void 0:x.call(v,D,null,this.state.variables,this.state.context,this,r)),await((O=(j=this.options).onSettled)==null?void 0:O.call(j,D,null,t,this.state.context,r)),Ie(this,di,ns).call(this,{type:"success",data:D}),D}catch(D){try{await((A=(w=I(this,On).config).onError)==null?void 0:A.call(w,D,t,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((k=(T=this.options).onError)==null?void 0:k.call(T,D,t,this.state.context,r))}catch(L){Promise.reject(L)}try{await((C=(E=I(this,On).config).onSettled)==null?void 0:C.call(E,void 0,D,this.state.variables,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((_=(P=this.options).onSettled)==null?void 0:_.call(P,void 0,D,t,this.state.context,r))}catch(L){Promise.reject(L)}throw Ie(this,di,ns).call(this,{type:"error",error:D}),D}finally{I(this,On).runNext(this)}}},Df=new WeakMap,fi=new WeakMap,On=new WeakMap,xo=new WeakMap,di=new WeakSet,ns=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),Wt.batch(()=>{I(this,fi).forEach(r=>{r.onMutationUpdate(t)}),I(this,On).notify({mutation:this,type:"updated",action:t})})},q_);function eD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xi,Kr,Rf,$_,t9=($_=class extends gu{constructor(t={}){super();Oe(this,Xi);Oe(this,Kr);Oe(this,Rf);this.config=t,de(this,Xi,new Set),de(this,Kr,new Map),de(this,Rf,0)}build(t,n,r){const a=new e9({client:t,mutationCache:this,mutationId:++Ah(this,Rf)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){I(this,Xi).add(t);const n=Eh(t);if(typeof n=="string"){const r=I(this,Kr).get(n);r?r.push(t):I(this,Kr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,Xi).delete(t)){const n=Eh(t);if(typeof n=="string"){const r=I(this,Kr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&I(this,Kr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Eh(t);if(typeof n=="string"){const r=I(this,Kr).get(n),a=r==null?void 0:r.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Eh(t);if(typeof n=="string"){const a=(r=I(this,Kr).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Wt.batch(()=>{I(this,Xi).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,Xi).clear(),I(this,Kr).clear()})}getAll(){return Array.from(I(this,Xi))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kE(n,r))}findAll(t={}){return this.getAll().filter(n=>kE(t,n))}notify(t){Wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Wt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Mn))))}},Xi=new WeakMap,Kr=new WeakMap,Rf=new WeakMap,$_);function Eh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qi,ms,Yn,Zi,sa,Zh,yx,V_,n9=(V_=class extends gu{constructor(n,r){super();Oe(this,sa);Oe(this,Qi);Oe(this,ms);Oe(this,Yn);Oe(this,Zi);de(this,Qi,n),this.setOptions(r),this.bindMethods(),Ie(this,sa,Zh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=I(this,Qi).defaultMutationOptions(n),gm(this.options,r)||I(this,Qi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:I(this,Yn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&No(r.mutationKey)!==No(this.options.mutationKey)?this.reset():((a=I(this,Yn))==null?void 0:a.state.status)==="pending"&&I(this,Yn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=I(this,Yn))==null||n.removeObserver(this)}onMutationUpdate(n){Ie(this,sa,Zh).call(this),Ie(this,sa,yx).call(this,n)}getCurrentResult(){return I(this,ms)}reset(){var n;(n=I(this,Yn))==null||n.removeObserver(this),de(this,Yn,void 0),Ie(this,sa,Zh).call(this),Ie(this,sa,yx).call(this)}mutate(n,r){var a;return de(this,Zi,r),(a=I(this,Yn))==null||a.removeObserver(this),de(this,Yn,I(this,Qi).getMutationCache().build(I(this,Qi),this.options)),I(this,Yn).addObserver(this),I(this,Yn).execute(n)}},Qi=new WeakMap,ms=new WeakMap,Yn=new WeakMap,Zi=new WeakMap,sa=new WeakSet,Zh=function(){var r;const n=((r=I(this,Yn))==null?void 0:r.state)??eD();de(this,ms,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},yx=function(n){Wt.batch(()=>{var r,a,o,l,c,f,h,m;if(I(this,Zi)&&this.hasListeners()){const p=I(this,ms).variables,v=I(this,ms).context,x={client:I(this,Qi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=I(this,Zi)).onSuccess)==null||a.call(r,n.data,p,v,x)}catch(j){Promise.reject(j)}try{(l=(o=I(this,Zi)).onSettled)==null||l.call(o,n.data,null,p,v,x)}catch(j){Promise.reject(j)}}else if((n==null?void 0:n.type)==="error"){try{(f=(c=I(this,Zi)).onError)==null||f.call(c,n.error,p,v,x)}catch(j){Promise.reject(j)}try{(m=(h=I(this,Zi)).onSettled)==null||m.call(h,void 0,n.error,p,v,x)}catch(j){Promise.reject(j)}}}this.listeners.forEach(p=>{p(I(this,ms))})})},V_),hi,F_,r9=(F_=class extends gu{constructor(t={}){super();Oe(this,hi);this.config=t,de(this,hi,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??Z1(a,n);let l=this.get(o);return l||(l=new WB({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){I(this,hi).has(t.queryHash)||(I(this,hi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=I(this,hi).get(t.queryHash);n&&(t.destroy(),n===t&&I(this,hi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Wt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,hi).get(t)}getAll(){return[...I(this,hi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>NE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>NE(t,r)):n}notify(t){Wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hi=new WeakMap,F_),Nt,ps,gs,nu,ru,vs,iu,au,H_,tD=(H_=class{constructor(e={}){Oe(this,Nt);Oe(this,ps);Oe(this,gs);Oe(this,nu);Oe(this,ru);Oe(this,vs);Oe(this,iu);Oe(this,au);de(this,Nt,e.queryCache||new r9),de(this,ps,e.mutationCache||new t9),de(this,gs,e.defaultOptions||{}),de(this,nu,new Map),de(this,ru,new Map),de(this,vs,0)}mount(){Ah(this,vs)._++,I(this,vs)===1&&(de(this,iu,tw.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,Nt).onFocus())})),de(this,au,vm.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,Nt).onOnline())})))}unmount(){var e,t;Ah(this,vs)._--,I(this,vs)===0&&((e=I(this,iu))==null||e.call(this),de(this,iu,void 0),(t=I(this,au))==null||t.call(this),de(this,au,void 0))}isFetching(e){return I(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,Nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=I(this,Nt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return I(this,Nt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=I(this,Nt).get(r.queryHash),o=a==null?void 0:a.state.data,l=IB(t,o);if(l!==void 0)return I(this,Nt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Wt.batch(()=>I(this,Nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,Nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=I(this,Nt);Wt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=I(this,Nt);return Wt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wt.batch(()=>I(this,Nt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Mn).catch(Mn)}invalidateQueries(e,t={}){return Wt.batch(()=>(I(this,Nt).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=Wt.batch(()=>I(this,Nt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Mn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Mn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=I(this,Nt).build(this,t);return n.isStaleByTime(xs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Mn).catch(Mn)}fetchInfiniteQuery(e){return e.behavior=RE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Mn).catch(Mn)}ensureInfiniteQueryData(e){return e.behavior=RE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vm.isOnline()?I(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,Nt)}getMutationCache(){return I(this,ps)}getDefaultOptions(){return I(this,gs)}setDefaultOptions(e){de(this,gs,e)}setQueryDefaults(e,t){I(this,nu).set(No(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,nu).values()],n={};return t.forEach(r=>{rf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){I(this,ru).set(No(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,ru).values()],n={};return t.forEach(r=>{rf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,gs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Z1(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===J1&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,gs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,Nt).clear(),I(this,ps).clear()}},Nt=new WeakMap,ps=new WeakMap,gs=new WeakMap,nu=new WeakMap,ru=new WeakMap,vs=new WeakMap,iu=new WeakMap,au=new WeakMap,H_),Ky={exports:{}},De={};/**
|
|
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 LE;function i9(){if(LE)return De;LE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=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"),p=Symbol.for("react.activity"),v=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,w={};function A(R,Q,se){this.props=R,this.context=Q,this.refs=w,this.updater=se||j}A.prototype.isReactComponent={},A.prototype.setState=function(R,Q){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,Q,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function T(){}T.prototype=A.prototype;function k(R,Q,se){this.props=R,this.context=Q,this.refs=w,this.updater=se||j}var E=k.prototype=new T;E.constructor=k,O(E,A.prototype),E.isPureReactComponent=!0;var C=Array.isArray;function P(){}var _={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(R,Q,se){var oe=se.ref;return{$$typeof:e,type:R,key:Q,ref:oe!==void 0?oe:null,props:se}}function Z(R,Q){return L(R.type,Q,R.props)}function ee(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function V(R){var Q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(se){return Q[se]})}var ue=/\/+/g;function le(R,Q){return typeof R=="object"&&R!==null&&R.key!=null?V(""+R.key):Q.toString(36)}function ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(P,P):(R.status="pending",R.then(function(Q){R.status==="pending"&&(R.status="fulfilled",R.value=Q)},function(Q){R.status==="pending"&&(R.status="rejected",R.reason=Q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,Q,se,oe,fe){var me=typeof R;(me==="undefined"||me==="boolean")&&(R=null);var Se=!1;if(R===null)Se=!0;else switch(me){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(R.$$typeof){case e:case t:Se=!0;break;case m:return Se=R._init,q(Se(R._payload),Q,se,oe,fe)}}if(Se)return fe=fe(R),Se=oe===""?"."+le(R,0):oe,C(fe)?(se="",Se!=null&&(se=Se.replace(ue,"$&/")+"/"),q(fe,Q,se,"",function(Ce){return Ce})):fe!=null&&(ee(fe)&&(fe=Z(fe,se+(fe.key==null||R&&R.key===fe.key?"":(""+fe.key).replace(ue,"$&/")+"/")+Se)),Q.push(fe)),1;Se=0;var Xe=oe===""?".":oe+":";if(C(R))for(var Y=0;Y<R.length;Y++)oe=R[Y],me=Xe+le(oe,Y),Se+=q(oe,Q,se,me,fe);else if(Y=x(R),typeof Y=="function")for(R=Y.call(R),Y=0;!(oe=R.next()).done;)oe=oe.value,me=Xe+le(oe,Y++),Se+=q(oe,Q,se,me,fe);else if(me==="object"){if(typeof R.then=="function")return q(ce(R),Q,se,oe,fe);throw Q=String(R),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function G(R,Q,se){if(R==null)return R;var oe=[],fe=0;return q(R,oe,"","",function(me){return Q.call(se,me,fe++)}),oe}function ie(R){if(R._status===-1){var Q=R._result;Q=Q(),Q.then(function(se){(R._status===0||R._status===-1)&&(R._status=1,R._result=se)},function(se){(R._status===0||R._status===-1)&&(R._status=2,R._result=se)}),R._status===-1&&(R._status=0,R._result=Q)}if(R._status===1)return R._result.default;throw R._result}var J=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},$={map:G,forEach:function(R,Q,se){G(R,function(){Q.apply(this,arguments)},se)},count:function(R){var Q=0;return G(R,function(){Q++}),Q},toArray:function(R){return G(R,function(Q){return Q})||[]},only:function(R){if(!ee(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return De.Activity=p,De.Children=$,De.Component=A,De.Fragment=n,De.Profiler=a,De.PureComponent=k,De.StrictMode=r,De.Suspense=f,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,De.__COMPILER_RUNTIME={__proto__:null,c:function(R){return _.H.useMemoCache(R)}},De.cache=function(R){return function(){return R.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(R,Q,se){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var oe=O({},R.props),fe=R.key;if(Q!=null)for(me in Q.key!==void 0&&(fe=""+Q.key),Q)!D.call(Q,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Q.ref===void 0||(oe[me]=Q[me]);var me=arguments.length-2;if(me===1)oe.children=se;else if(1<me){for(var Se=Array(me),Xe=0;Xe<me;Xe++)Se[Xe]=arguments[Xe+2];oe.children=Se}return L(R.type,fe,oe)},De.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},De.createElement=function(R,Q,se){var oe,fe={},me=null;if(Q!=null)for(oe in Q.key!==void 0&&(me=""+Q.key),Q)D.call(Q,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(fe[oe]=Q[oe]);var Se=arguments.length-2;if(Se===1)fe.children=se;else if(1<Se){for(var Xe=Array(Se),Y=0;Y<Se;Y++)Xe[Y]=arguments[Y+2];fe.children=Xe}if(R&&R.defaultProps)for(oe in Se=R.defaultProps,Se)fe[oe]===void 0&&(fe[oe]=Se[oe]);return L(R,me,fe)},De.createRef=function(){return{current:null}},De.forwardRef=function(R){return{$$typeof:c,render:R}},De.isValidElement=ee,De.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:ie}},De.memo=function(R,Q){return{$$typeof:h,type:R,compare:Q===void 0?null:Q}},De.startTransition=function(R){var Q=_.T,se={};_.T=se;try{var oe=R(),fe=_.S;fe!==null&&fe(se,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(P,J)}catch(me){J(me)}finally{Q!==null&&se.types!==null&&(Q.types=se.types),_.T=Q}},De.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},De.use=function(R){return _.H.use(R)},De.useActionState=function(R,Q,se){return _.H.useActionState(R,Q,se)},De.useCallback=function(R,Q){return _.H.useCallback(R,Q)},De.useContext=function(R){return _.H.useContext(R)},De.useDebugValue=function(){},De.useDeferredValue=function(R,Q){return _.H.useDeferredValue(R,Q)},De.useEffect=function(R,Q){return _.H.useEffect(R,Q)},De.useEffectEvent=function(R){return _.H.useEffectEvent(R)},De.useId=function(){return _.H.useId()},De.useImperativeHandle=function(R,Q,se){return _.H.useImperativeHandle(R,Q,se)},De.useInsertionEffect=function(R,Q){return _.H.useInsertionEffect(R,Q)},De.useLayoutEffect=function(R,Q){return _.H.useLayoutEffect(R,Q)},De.useMemo=function(R,Q){return _.H.useMemo(R,Q)},De.useOptimistic=function(R,Q){return _.H.useOptimistic(R,Q)},De.useReducer=function(R,Q,se){return _.H.useReducer(R,Q,se)},De.useRef=function(R){return _.H.useRef(R)},De.useState=function(R){return _.H.useState(R)},De.useSyncExternalStore=function(R,Q,se){return _.H.useSyncExternalStore(R,Q,se)},De.useTransition=function(){return _.H.useTransition()},De.version="19.2.4",De}var IE;function vu(){return IE||(IE=1,Ky.exports=i9()),Ky.exports}var S=vu();const _e=Oi(S),a9=PB({__proto__:null,default:_e},[S]);var nD=S.createContext(void 0),va=e=>{const t=S.useContext(nD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rD=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(nD.Provider,{value:e,children:t})),iD=S.createContext(!1),s9=()=>S.useContext(iD);iD.Provider;function o9(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var l9=S.createContext(o9()),u9=()=>S.useContext(l9),c9=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ew(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},f9=e=>{S.useEffect(()=>{e.clearReset()},[e])},d9=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ew(n,[e.error,r])),h9=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},m9=(e,t)=>e.isLoading&&e.isFetching&&!t,p9=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,BE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function g9(e,t,n){var v,x,j,O;const r=s9(),a=u9(),o=va(),l=o.defaultQueryOptions(e);(x=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||x.call(v,l);const c=o.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",h9(l),c9(l,a,c),f9(a);const f=!o.getQueryCache().get(l.queryHash),[h]=S.useState(()=>new t(o,l)),m=h.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(w=>{const A=p?h.subscribe(Wt.batchCalls(w)):Mn;return h.updateResult(),A},[h,p]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(l)},[l,h]),p9(l,m))throw BE(l,h,a);if(d9({result:m,errorResetBoundary:a,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw m.error;if((O=(j=o.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||O.call(j,l,m),l.experimental_prefetchInRender&&!Eo&&m9(m,r)){const w=f?BE(l,h,a):c==null?void 0:c.promise;w==null||w.catch(Mn).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?m:h.trackResult(m)}function Nn(e,t){return g9(e,XB)}function Gy(e,t){const n=va(),[r]=S.useState(()=>new n9(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const a=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(Wt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=S.useCallback((l,c)=>{r.mutate(l,c).catch(Mn)},[r]);if(a.error&&ew(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Yy={exports:{}},Ec={},Wy={exports:{}},Xy={};/**
|
|
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 UE;function v9(){return UE||(UE=1,(function(e){function t(q,G){var ie=q.length;q.push(G);e:for(;0<ie;){var J=ie-1>>>1,$=q[J];if(0<a($,G))q[J]=G,q[ie]=$,ie=J;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var G=q[0],ie=q.pop();if(ie!==G){q[0]=ie;e:for(var J=0,$=q.length,R=$>>>1;J<R;){var Q=2*(J+1)-1,se=q[Q],oe=Q+1,fe=q[oe];if(0>a(se,ie))oe<$&&0>a(fe,se)?(q[J]=fe,q[oe]=ie,J=oe):(q[J]=se,q[Q]=ie,J=Q);else if(oe<$&&0>a(fe,ie))q[J]=fe,q[oe]=ie,J=oe;else break e}}return G}function a(q,G){var ie=q.sortIndex-G.sortIndex;return ie!==0?ie:q.id-G.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,p=null,v=3,x=!1,j=!1,O=!1,w=!1,A=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function E(q){for(var G=n(h);G!==null;){if(G.callback===null)r(h);else if(G.startTime<=q)r(h),G.sortIndex=G.expirationTime,t(f,G);else break;G=n(h)}}function C(q){if(O=!1,E(q),!j)if(n(f)!==null)j=!0,P||(P=!0,V());else{var G=n(h);G!==null&&ce(C,G.startTime-q)}}var P=!1,_=-1,D=5,L=-1;function Z(){return w?!0:!(e.unstable_now()-L<D)}function ee(){if(w=!1,P){var q=e.unstable_now();L=q;var G=!0;try{e:{j=!1,O&&(O=!1,T(_),_=-1),x=!0;var ie=v;try{t:{for(E(q),p=n(f);p!==null&&!(p.expirationTime>q&&Z());){var J=p.callback;if(typeof J=="function"){p.callback=null,v=p.priorityLevel;var $=J(p.expirationTime<=q);if(q=e.unstable_now(),typeof $=="function"){p.callback=$,E(q),G=!0;break t}p===n(f)&&r(f),E(q)}else r(f);p=n(f)}if(p!==null)G=!0;else{var R=n(h);R!==null&&ce(C,R.startTime-q),G=!1}}break e}finally{p=null,v=ie,x=!1}G=void 0}}finally{G?V():P=!1}}}var V;if(typeof k=="function")V=function(){k(ee)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,le=ue.port2;ue.port1.onmessage=ee,V=function(){le.postMessage(null)}}else V=function(){A(ee,0)};function ce(q,G){_=A(function(){q(e.unstable_now())},G)}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 v},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var ie=v;v=G;try{return q()}finally{v=ie}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(q,G){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ie=v;v=q;try{return G()}finally{v=ie}},e.unstable_scheduleCallback=function(q,G,ie){var J=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?J+ie:J):ie=J,q){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=ie+$,q={id:m++,callback:G,priorityLevel:q,startTime:ie,expirationTime:$,sortIndex:-1},ie>J?(q.sortIndex=ie,t(h,q),n(f)===null&&q===n(h)&&(O?(T(_),_=-1):O=!0,ce(C,ie-J))):(q.sortIndex=$,t(f,q),j||x||(j=!0,P||(P=!0,V()))),q},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(q){var G=v;return function(){var ie=v;v=G;try{return q.apply(this,arguments)}finally{v=ie}}}})(Xy)),Xy}var qE;function y9(){return qE||(qE=1,Wy.exports=v9()),Wy.exports}var Qy={exports:{}},jn={};/**
|
|
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 $E;function b9(){if($E)return jn;$E=1;var e=vu();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},a=Symbol.for("react.portal");function o(f,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,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 jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,jn.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)},jn.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()}},jn.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))},jn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},jn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:v,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},jn.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)},jn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:p,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})}},jn.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)},jn.requestFormReset=function(f){r.d.r(f)},jn.unstable_batchedUpdates=function(f,h){return f(h)},jn.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},jn.useFormStatus=function(){return l.H.useHostTransitionStatus()},jn.version="19.2.4",jn}var VE;function aD(){if(VE)return Qy.exports;VE=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(),Qy.exports=b9(),Qy.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 FE;function x9(){if(FE)return Ec;FE=1;var e=y9(),t=vu(),n=aD();function r(i){var s="https://react.dev/errors/"+i;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 #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function h(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,d=s;;){var y=u.return;if(y===null)break;var b=y.alternate;if(b===null){if(d=y.return,d!==null){u=d;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===u)return f(y),i;if(b===d)return f(y),s;b=b.sibling}throw Error(r(188))}if(u.return!==d.return)u=y,d=b;else{for(var N=!1,M=y.child;M;){if(M===u){N=!0,u=y,d=b;break}if(M===d){N=!0,d=y,u=b;break}M=M.sibling}if(!N){for(M=b.child;M;){if(M===u){N=!0,u=b,d=y;break}if(M===d){N=!0,d=b,u=y;break}M=M.sibling}if(!N)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?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function V(i){return i===null||typeof i!="object"?null:(i=ee&&i[ee]||i["@@iterator"],typeof i=="function"?i:null)}var ue=Symbol.for("react.client.reference");function le(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ue?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case O:return"Fragment";case A:return"Profiler";case w:return"StrictMode";case C:return"Suspense";case P:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case j:return"Portal";case k:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case E:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case _:return s=i.displayName||null,s!==null?s:le(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return le(i(s))}catch{}}return null}var ce=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},J=[],$=-1;function R(i){return{current:i}}function Q(i){0>$||(i.current=J[$],J[$]=null,$--)}function se(i,s){$++,J[$]=i.current,i.current=s}var oe=R(null),fe=R(null),me=R(null),Se=R(null);function Xe(i,s){switch(se(me,s),se(fe,i),se(oe,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?GA(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=GA(s),i=YA(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Q(oe),se(oe,i)}function Y(){Q(oe),Q(fe),Q(me)}function Ce(i){i.memoizedState!==null&&se(Se,i);var s=oe.current,u=YA(s,i.type);s!==u&&(se(fe,i),se(oe,u))}function Pe(i){fe.current===i&&(Q(oe),Q(fe)),Se.current===i&&(Q(Se),wc._currentValue=ie)}var ae,vt;function Re(i){if(ae===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",vt=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ae+i+vt}var Rt=!1;function zt(i,s){if(!i||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 K=X}Reflect.construct(i,[],re)}else{try{re.call()}catch(X){K=X}i.call(re.prototype)}}else{try{throw Error()}catch(X){K=X}(re=i())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&K&&typeof X.stack=="string")return[X.stack,K.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=d.DetermineComponentFrameRoot(),N=b[0],M=b[1];if(N&&M){var z=N.split(`
|
|
44
|
+
`),H=M.split(`
|
|
45
|
+
`);for(y=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;y<H.length&&!H[y].includes("DetermineComponentFrameRoot");)y++;if(d===z.length||y===H.length)for(d=z.length-1,y=H.length-1;1<=d&&0<=y&&z[d]!==H[y];)y--;for(;1<=d&&0<=y;d--,y--)if(z[d]!==H[y]){if(d!==1||y!==1)do if(d--,y--,0>y||z[d]!==H[y]){var te=`
|
|
46
|
+
`+z[d].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=d&&0<=y);break}}}finally{Rt=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Re(u):""}function hr(i,s){switch(i.tag){case 26:case 27:case 5:return Re(i.type);case 16:return Re("Lazy");case 13:return i.child!==s&&s!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return zt(i.type,!1);case 11:return zt(i.type.render,!1);case 1:return zt(i.type,!0);case 31:return Re("Activity");default:return""}}function Na(i){try{var s="",u=null;do s+=hr(i,u),u=i,i=i.return;while(i);return s}catch(d){return`
|
|
47
|
+
Error generating stack: `+d.message+`
|
|
48
|
+
`+d.stack}}var $o=Object.prototype.hasOwnProperty,Vo=e.unstable_scheduleCallback,Fo=e.unstable_cancelCallback,pe=e.unstable_shouldYield,Ne=e.unstable_requestPaint,ke=e.unstable_now,Pt=e.unstable_getCurrentPriorityLevel,fn=e.unstable_ImmediatePriority,dn=e.unstable_UserBlockingPriority,Ht=e.unstable_NormalPriority,fI=e.unstable_LowPriority,Nj=e.unstable_IdlePriority,dI=e.log,hI=e.unstable_setDisableYieldValue,_u=null,er=null;function ka(i){if(typeof dI=="function"&&hI(i),er&&typeof er.setStrictMode=="function")try{er.setStrictMode(_u,i)}catch{}}var tr=Math.clz32?Math.clz32:gI,mI=Math.log,pI=Math.LN2;function gI(i){return i>>>=0,i===0?32:31-(mI(i)/pI|0)|0}var ud=256,cd=262144,fd=4194304;function Ps(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function dd(i,s,u){var d=i.pendingLanes;if(d===0)return 0;var y=0,b=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var M=d&134217727;return M!==0?(d=M&~b,d!==0?y=Ps(d):(N&=M,N!==0?y=Ps(N):u||(u=M&~i,u!==0&&(y=Ps(u))))):(M=d&~b,M!==0?y=Ps(M):N!==0?y=Ps(N):u||(u=d&~i,u!==0&&(y=Ps(u)))),y===0?0:s!==0&&s!==y&&(s&b)===0&&(b=y&-y,u=s&-s,b>=u||b===32&&(u&4194048)!==0)?s:y}function Du(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function vI(i,s){switch(i){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 kj(){var i=fd;return fd<<=1,(fd&62914560)===0&&(fd=4194304),i}function Mg(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Ru(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function yI(i,s,u,d,y,b){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var M=i.entanglements,z=i.expirationTimes,H=i.hiddenUpdates;for(u=N&~u;0<u;){var te=31-tr(u),re=1<<te;M[te]=0,z[te]=-1;var K=H[te];if(K!==null)for(H[te]=null,te=0;te<K.length;te++){var X=K[te];X!==null&&(X.lane&=-536870913)}u&=~re}d!==0&&Tj(i,d,0),b!==0&&y===0&&i.tag!==0&&(i.suspendedLanes|=b&~(N&~s))}function Tj(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var d=31-tr(s);i.entangledLanes|=s,i.entanglements[d]=i.entanglements[d]|1073741824|u&261930}function Cj(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var d=31-tr(u),y=1<<d;y&s|i[d]&s&&(i[d]|=s),u&=~y}}function Mj(i,s){var u=s&-s;return u=(u&42)!==0?1:Pg(u),(u&(i.suspendedLanes|s))!==0?0:u}function Pg(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function _g(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Pj(){var i=G.p;return i!==0?i:(i=window.event,i===void 0?32:vE(i.type))}function _j(i,s){var u=G.p;try{return G.p=i,s()}finally{G.p=u}}var Ta=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ta,Un="__reactProps$"+Ta,Ho="__reactContainer$"+Ta,Dg="__reactEvents$"+Ta,bI="__reactListeners$"+Ta,xI="__reactHandles$"+Ta,Dj="__reactResources$"+Ta,zu="__reactMarker$"+Ta;function Rg(i){delete i[hn],delete i[Un],delete i[Dg],delete i[bI],delete i[xI]}function Ko(i){var s=i[hn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[Ho]||u[hn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=tE(i);i!==null;){if(u=i[hn])return u;i=tE(i)}return s}i=u,u=i.parentNode}return null}function Go(i){if(i=i[hn]||i[Ho]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function Lu(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function Yo(i){var s=i[Dj];return s||(s=i[Dj]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Zt(i){i[zu]=!0}var Rj=new Set,zj={};function _s(i,s){Wo(i,s),Wo(i+"Capture",s)}function Wo(i,s){for(zj[i]=s,i=0;i<s.length;i++)Rj.add(s[i])}var wI=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]*$"),Lj={},Ij={};function SI(i){return $o.call(Ij,i)?!0:$o.call(Lj,i)?!1:wI.test(i)?Ij[i]=!0:(Lj[i]=!0,!1)}function hd(i,s,u){if(SI(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var d=s.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function md(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function ki(i,s,u,d){if(d===null)i.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+d)}}function mr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Bj(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function jI(i,s,u){var d=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var y=d.get,b=d.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return y.call(this)},set:function(N){u=""+N,b.call(this,N)}}),Object.defineProperty(i,s,{enumerable:d.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function zg(i){if(!i._valueTracker){var s=Bj(i)?"checked":"value";i._valueTracker=jI(i,s,""+i[s])}}function Uj(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),d="";return i&&(d=Bj(i)?i.checked?"true":"false":i.value),i=d,i!==u?(s.setValue(i),!0):!1}function pd(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var OI=/[\n"\\]/g;function pr(i){return i.replace(OI,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Lg(i,s,u,d,y,b,N,M){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),s!=null?N==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+mr(s)):i.value!==""+mr(s)&&(i.value=""+mr(s)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),s!=null?Ig(i,N,mr(s)):u!=null?Ig(i,N,mr(u)):d!=null&&i.removeAttribute("value"),y==null&&b!=null&&(i.defaultChecked=!!b),y!=null&&(i.checked=y&&typeof y!="function"&&typeof y!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?i.name=""+mr(M):i.removeAttribute("name")}function qj(i,s,u,d,y,b,N,M){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(i.type=b),s!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||s!=null)){zg(i);return}u=u!=null?""+mr(u):"",s=s!=null?""+mr(s):u,M||s===i.value||(i.value=s),i.defaultValue=s}d=d??y,d=typeof d!="function"&&typeof d!="symbol"&&!!d,i.checked=M?i.checked:!!d,i.defaultChecked=!!d,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),zg(i)}function Ig(i,s,u){s==="number"&&pd(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Xo(i,s,u,d){if(i=i.options,s){s={};for(var y=0;y<u.length;y++)s["$"+u[y]]=!0;for(u=0;u<i.length;u++)y=s.hasOwnProperty("$"+i[u].value),i[u].selected!==y&&(i[u].selected=y),y&&d&&(i[u].defaultSelected=!0)}else{for(u=""+mr(u),s=null,y=0;y<i.length;y++){if(i[y].value===u){i[y].selected=!0,d&&(i[y].defaultSelected=!0);return}s!==null||i[y].disabled||(s=i[y])}s!==null&&(s.selected=!0)}}function $j(i,s,u){if(s!=null&&(s=""+mr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+mr(u):""}function Vj(i,s,u,d){if(s==null){if(d!=null){if(u!=null)throw Error(r(92));if(ce(d)){if(1<d.length)throw Error(r(93));d=d[0]}u=d}u==null&&(u=""),s=u}u=mr(s),i.defaultValue=u,d=i.textContent,d===u&&d!==""&&d!==null&&(i.value=d),zg(i)}function Qo(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var AI=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 Fj(i,s,u){var d=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?d?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":d?i.setProperty(s,u):typeof u!="number"||u===0||AI.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function Hj(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var d in u)!u.hasOwnProperty(d)||s!=null&&s.hasOwnProperty(d)||(d.indexOf("--")===0?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="");for(var y in s)d=s[y],s.hasOwnProperty(y)&&u[y]!==d&&Fj(i,y,d)}else for(var b in s)s.hasOwnProperty(b)&&Fj(i,b,s[b])}function Bg(i){if(i.indexOf("-")===-1)return!1;switch(i){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 EI=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"]]),NI=/^[\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 gd(i){return NI.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ti(){}var Ug=null;function qg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Zo=null,Jo=null;function Kj(i){var s=Go(i);if(s&&(i=s.stateNode)){var u=i[Un]||null;e:switch(i=s.stateNode,s.type){case"input":if(Lg(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+pr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var d=u[s];if(d!==i&&d.form===i.form){var y=d[Un]||null;if(!y)throw Error(r(90));Lg(d,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(s=0;s<u.length;s++)d=u[s],d.form===i.form&&Uj(d)}break e;case"textarea":$j(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Xo(i,!!u.multiple,s,!1)}}}var $g=!1;function Gj(i,s,u){if($g)return i(s,u);$g=!0;try{var d=i(s);return d}finally{if($g=!1,(Zo!==null||Jo!==null)&&(rh(),Zo&&(s=Zo,i=Jo,Jo=Zo=null,Kj(s),i)))for(s=0;s<i.length;s++)Kj(i[s])}}function Iu(i,s){var u=i.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)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var Ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vg=!1;if(Ci)try{var Bu={};Object.defineProperty(Bu,"passive",{get:function(){Vg=!0}}),window.addEventListener("test",Bu,Bu),window.removeEventListener("test",Bu,Bu)}catch{Vg=!1}var Ca=null,Fg=null,vd=null;function Yj(){if(vd)return vd;var i,s=Fg,u=s.length,d,y="value"in Ca?Ca.value:Ca.textContent,b=y.length;for(i=0;i<u&&s[i]===y[i];i++);var N=u-i;for(d=1;d<=N&&s[u-d]===y[b-d];d++);return vd=y.slice(i,1<d?1-d:void 0)}function yd(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function bd(){return!0}function Wj(){return!1}function qn(i){function s(u,d,y,b,N){this._reactName=u,this._targetInst=y,this.type=d,this.nativeEvent=b,this.target=N,this.currentTarget=null;for(var M in i)i.hasOwnProperty(M)&&(u=i[M],this[M]=u?u(b):b[M]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?bd:Wj,this.isPropagationStopped=Wj,this}return p(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=bd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=bd)},persist:function(){},isPersistent:bd}),s}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xd=qn(Ds),Uu=p({},Ds,{view:0,detail:0}),kI=qn(Uu),Hg,Kg,qu,wd=p({},Uu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yg,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==qu&&(qu&&i.type==="mousemove"?(Hg=i.screenX-qu.screenX,Kg=i.screenY-qu.screenY):Kg=Hg=0,qu=i),Hg)},movementY:function(i){return"movementY"in i?i.movementY:Kg}}),Xj=qn(wd),TI=p({},wd,{dataTransfer:0}),CI=qn(TI),MI=p({},Uu,{relatedTarget:0}),Gg=qn(MI),PI=p({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),_I=qn(PI),DI=p({},Ds,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),RI=qn(DI),zI=p({},Ds,{data:0}),Qj=qn(zI),LI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},II={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"},BI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UI(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=BI[i])?!!s[i]:!1}function Yg(){return UI}var qI=p({},Uu,{key:function(i){if(i.key){var s=LI[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=yd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?II[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yg,charCode:function(i){return i.type==="keypress"?yd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?yd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),$I=qn(qI),VI=p({},wd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zj=qn(VI),FI=p({},Uu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yg}),HI=qn(FI),KI=p({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),GI=qn(KI),YI=p({},wd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),WI=qn(YI),XI=p({},Ds,{newState:0,oldState:0}),QI=qn(XI),ZI=[9,13,27,32],Wg=Ci&&"CompositionEvent"in window,$u=null;Ci&&"documentMode"in document&&($u=document.documentMode);var JI=Ci&&"TextEvent"in window&&!$u,Jj=Ci&&(!Wg||$u&&8<$u&&11>=$u),e2=" ",t2=!1;function n2(i,s){switch(i){case"keyup":return ZI.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r2(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var el=!1;function e8(i,s){switch(i){case"compositionend":return r2(s);case"keypress":return s.which!==32?null:(t2=!0,e2);case"textInput":return i=s.data,i===e2&&t2?null:i;default:return null}}function t8(i,s){if(el)return i==="compositionend"||!Wg&&n2(i,s)?(i=Yj(),vd=Fg=Ca=null,el=!1,i):null;switch(i){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 Jj&&s.locale!=="ko"?null:s.data;default:return null}}var n8={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 i2(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!n8[i.type]:s==="textarea"}function a2(i,s,u,d){Zo?Jo?Jo.push(d):Jo=[d]:Zo=d,s=ch(s,"onChange"),0<s.length&&(u=new xd("onChange","change",null,u,d),i.push({event:u,listeners:s}))}var Vu=null,Fu=null;function r8(i){qA(i,0)}function Sd(i){var s=Lu(i);if(Uj(s))return i}function s2(i,s){if(i==="change")return s}var o2=!1;if(Ci){var Xg;if(Ci){var Qg="oninput"in document;if(!Qg){var l2=document.createElement("div");l2.setAttribute("oninput","return;"),Qg=typeof l2.oninput=="function"}Xg=Qg}else Xg=!1;o2=Xg&&(!document.documentMode||9<document.documentMode)}function u2(){Vu&&(Vu.detachEvent("onpropertychange",c2),Fu=Vu=null)}function c2(i){if(i.propertyName==="value"&&Sd(Fu)){var s=[];a2(s,Fu,i,qg(i)),Gj(r8,s)}}function i8(i,s,u){i==="focusin"?(u2(),Vu=s,Fu=u,Vu.attachEvent("onpropertychange",c2)):i==="focusout"&&u2()}function a8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Sd(Fu)}function s8(i,s){if(i==="click")return Sd(s)}function o8(i,s){if(i==="input"||i==="change")return Sd(s)}function l8(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var nr=typeof Object.is=="function"?Object.is:l8;function Hu(i,s){if(nr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),d=Object.keys(s);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var y=u[d];if(!$o.call(s,y)||!nr(i[y],s[y]))return!1}return!0}function f2(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function d2(i,s){var u=f2(i);i=0;for(var d;u;){if(u.nodeType===3){if(d=i+u.textContent.length,i<=s&&d>=s)return{node:u,offset:s-i};i=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=f2(u)}}function h2(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?h2(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function m2(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=pd(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=pd(i.document)}return s}function Zg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var u8=Ci&&"documentMode"in document&&11>=document.documentMode,tl=null,Jg=null,Ku=null,ev=!1;function p2(i,s,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ev||tl==null||tl!==pd(d)||(d=tl,"selectionStart"in d&&Zg(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}),Ku&&Hu(Ku,d)||(Ku=d,d=ch(Jg,"onSelect"),0<d.length&&(s=new xd("onSelect","select",null,s,u),i.push({event:s,listeners:d}),s.target=tl)))}function Rs(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var nl={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionrun:Rs("Transition","TransitionRun"),transitionstart:Rs("Transition","TransitionStart"),transitioncancel:Rs("Transition","TransitionCancel"),transitionend:Rs("Transition","TransitionEnd")},tv={},g2={};Ci&&(g2=document.createElement("div").style,"AnimationEvent"in window||(delete nl.animationend.animation,delete nl.animationiteration.animation,delete nl.animationstart.animation),"TransitionEvent"in window||delete nl.transitionend.transition);function zs(i){if(tv[i])return tv[i];if(!nl[i])return i;var s=nl[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in g2)return tv[i]=s[u];return i}var v2=zs("animationend"),y2=zs("animationiteration"),b2=zs("animationstart"),c8=zs("transitionrun"),f8=zs("transitionstart"),d8=zs("transitioncancel"),x2=zs("transitionend"),w2=new Map,nv="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(" ");nv.push("scrollEnd");function Ur(i,s){w2.set(i,s),_s(s,[i])}var jd=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},gr=[],rl=0,rv=0;function Od(){for(var i=rl,s=rv=rl=0;s<i;){var u=gr[s];gr[s++]=null;var d=gr[s];gr[s++]=null;var y=gr[s];gr[s++]=null;var b=gr[s];if(gr[s++]=null,d!==null&&y!==null){var N=d.pending;N===null?y.next=y:(y.next=N.next,N.next=y),d.pending=y}b!==0&&S2(u,y,b)}}function Ad(i,s,u,d){gr[rl++]=i,gr[rl++]=s,gr[rl++]=u,gr[rl++]=d,rv|=d,i.lanes|=d,i=i.alternate,i!==null&&(i.lanes|=d)}function iv(i,s,u,d){return Ad(i,s,u,d),Ed(i)}function Ls(i,s){return Ad(i,null,null,s),Ed(i)}function S2(i,s,u){i.lanes|=u;var d=i.alternate;d!==null&&(d.lanes|=u);for(var y=!1,b=i.return;b!==null;)b.childLanes|=u,d=b.alternate,d!==null&&(d.childLanes|=u),b.tag===22&&(i=b.stateNode,i===null||i._visibility&1||(y=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,y&&s!==null&&(y=31-tr(u),i=b.hiddenUpdates,d=i[y],d===null?i[y]=[s]:d.push(s),s.lane=u|536870912),b):null}function Ed(i){if(50<mc)throw mc=0,hy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var il={};function h8(i,s,u,d){this.tag=i,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(i,s,u,d){return new h8(i,s,u,d)}function av(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Mi(i,s){var u=i.alternate;return u===null?(u=rr(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function j2(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Nd(i,s,u,d,y,b){var N=0;if(d=i,typeof i=="function")av(i)&&(N=1);else if(typeof i=="string")N=yB(i,u,oe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case L:return i=rr(31,u,s,y),i.elementType=L,i.lanes=b,i;case O:return Is(u.children,y,b,s);case w:N=8,y|=24;break;case A:return i=rr(12,u,s,y|2),i.elementType=A,i.lanes=b,i;case C:return i=rr(13,u,s,y),i.elementType=C,i.lanes=b,i;case P:return i=rr(19,u,s,y),i.elementType=P,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:N=10;break e;case T:N=9;break e;case E:N=11;break e;case _:N=14;break e;case D:N=16,d=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),d=null}return s=rr(N,u,s,y),s.elementType=i,s.type=d,s.lanes=b,s}function Is(i,s,u,d){return i=rr(7,i,d,s),i.lanes=u,i}function sv(i,s,u){return i=rr(6,i,null,s),i.lanes=u,i}function O2(i){var s=rr(18,null,null,0);return s.stateNode=i,s}function ov(i,s,u){return s=rr(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var A2=new WeakMap;function vr(i,s){if(typeof i=="object"&&i!==null){var u=A2.get(i);return u!==void 0?u:(s={value:i,source:s,stack:Na(s)},A2.set(i,s),s)}return{value:i,source:s,stack:Na(s)}}var al=[],sl=0,kd=null,Gu=0,yr=[],br=0,Ma=null,ri=1,ii="";function Pi(i,s){al[sl++]=Gu,al[sl++]=kd,kd=i,Gu=s}function E2(i,s,u){yr[br++]=ri,yr[br++]=ii,yr[br++]=Ma,Ma=i;var d=ri;i=ii;var y=32-tr(d)-1;d&=~(1<<y),u+=1;var b=32-tr(s)+y;if(30<b){var N=y-y%5;b=(d&(1<<N)-1).toString(32),d>>=N,y-=N,ri=1<<32-tr(s)+y|u<<y|d,ii=b+i}else ri=1<<b|u<<y|d,ii=i}function lv(i){i.return!==null&&(Pi(i,1),E2(i,1,0))}function uv(i){for(;i===kd;)kd=al[--sl],al[sl]=null,Gu=al[--sl],al[sl]=null;for(;i===Ma;)Ma=yr[--br],yr[br]=null,ii=yr[--br],yr[br]=null,ri=yr[--br],yr[br]=null}function N2(i,s){yr[br++]=ri,yr[br++]=ii,yr[br++]=Ma,ri=s.id,ii=s.overflow,Ma=i}var mn=null,mt=null,He=!1,Pa=null,xr=!1,cv=Error(r(519));function _a(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yu(vr(s,i)),cv}function k2(i){var s=i.stateNode,u=i.type,d=i.memoizedProps;switch(s[hn]=i,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<gc.length;u++)$e(gc[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),qj(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),Vj(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||HA(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=Ti),s=!0):s=!1,s||_a(i,!0)}function T2(i){for(mn=i.return;mn;)switch(mn.tag){case 5:case 31:case 13:xr=!1;return;case 27:case 3:xr=!0;return;default:mn=mn.return}}function ol(i){if(i!==mn)return!1;if(!He)return T2(i),He=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||ky(i.type,i.memoizedProps)),u=!u),u&&mt&&_a(i),T2(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));mt=eE(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));mt=eE(i)}else s===27?(s=mt,Ga(i.type)?(i=_y,_y=null,mt=i):mt=s):mt=mn?Sr(i.stateNode.nextSibling):null;return!0}function Bs(){mt=mn=null,He=!1}function fv(){var i=Pa;return i!==null&&(Hn===null?Hn=i:Hn.push.apply(Hn,i),Pa=null),i}function Yu(i){Pa===null?Pa=[i]:Pa.push(i)}var dv=R(null),Us=null,_i=null;function Da(i,s,u){se(dv,s._currentValue),s._currentValue=u}function Di(i){i._currentValue=dv.current,Q(dv)}function hv(i,s,u){for(;i!==null;){var d=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),i===u)break;i=i.return}}function mv(i,s,u,d){var y=i.child;for(y!==null&&(y.return=i);y!==null;){var b=y.dependencies;if(b!==null){var N=y.child;b=b.firstContext;e:for(;b!==null;){var M=b;b=y;for(var z=0;z<s.length;z++)if(M.context===s[z]){b.lanes|=u,M=b.alternate,M!==null&&(M.lanes|=u),hv(b.return,u,i),d||(N=null);break e}b=M.next}}else if(y.tag===18){if(N=y.return,N===null)throw Error(r(341));N.lanes|=u,b=N.alternate,b!==null&&(b.lanes|=u),hv(N,u,i),N=null}else N=y.child;if(N!==null)N.return=y;else for(N=y;N!==null;){if(N===i){N=null;break}if(y=N.sibling,y!==null){y.return=N.return,N=y;break}N=N.return}y=N}}function ll(i,s,u,d){i=null;for(var y=s,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var N=y.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var M=y.type;nr(y.pendingProps.value,N.value)||(i!==null?i.push(M):i=[M])}}else if(y===Se.current){if(N=y.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(i!==null?i.push(wc):i=[wc])}y=y.return}i!==null&&mv(s,i,u,d),s.flags|=262144}function Td(i){for(i=i.firstContext;i!==null;){if(!nr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function qs(i){Us=i,_i=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return C2(Us,i)}function Cd(i,s){return Us===null&&qs(i),C2(i,s)}function C2(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},_i===null){if(i===null)throw Error(r(308));_i=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else _i=_i.next=s;return u}var m8=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,d){i.push(d)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},p8=e.unstable_scheduleCallback,g8=e.unstable_NormalPriority,Lt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pv(){return{controller:new m8,data:new Map,refCount:0}}function Wu(i){i.refCount--,i.refCount===0&&p8(g8,function(){i.controller.abort()})}var Xu=null,gv=0,ul=0,cl=null;function v8(i,s){if(Xu===null){var u=Xu=[];gv=0,ul=by(),cl={status:"pending",value:void 0,then:function(d){u.push(d)}}}return gv++,s.then(M2,M2),s}function M2(){if(--gv===0&&Xu!==null){cl!==null&&(cl.status="fulfilled");var i=Xu;Xu=null,ul=0,cl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function y8(i,s){var u=[],d={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return i.then(function(){d.status="fulfilled",d.value=s;for(var y=0;y<u.length;y++)(0,u[y])(s)},function(y){for(d.status="rejected",d.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),d}var P2=q.S;q.S=function(i,s){pA=ke(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&v8(i,s),P2!==null&&P2(i,s)};var $s=R(null);function vv(){var i=$s.current;return i!==null?i:ct.pooledCache}function Md(i,s){s===null?se($s,$s.current):se($s,s.pool)}function _2(){var i=vv();return i===null?null:{parent:Lt._currentValue,pool:i}}var fl=Error(r(460)),yv=Error(r(474)),Pd=Error(r(542)),_d={then:function(){}};function D2(i){return i=i.status,i==="fulfilled"||i==="rejected"}function R2(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(Ti,Ti),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,L2(i),i;default:if(typeof s.status=="string")s.then(Ti,Ti);else{if(i=ct,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(d){if(s.status==="pending"){var y=s;y.status="fulfilled",y.value=d}},function(d){if(s.status==="pending"){var y=s;y.status="rejected",y.reason=d}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,L2(i),i}throw Fs=s,fl}}function Vs(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Fs=u,fl):u}}var Fs=null;function z2(){if(Fs===null)throw Error(r(459));var i=Fs;return Fs=null,i}function L2(i){if(i===fl||i===Pd)throw Error(r(483))}var dl=null,Qu=0;function Dd(i){var s=Qu;return Qu+=1,dl===null&&(dl=[]),R2(dl,i,s)}function Zu(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Rd(i,s){throw s.$$typeof===v?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function I2(i){function s(U,B){if(i){var F=U.deletions;F===null?(U.deletions=[B],U.flags|=16):F.push(B)}}function u(U,B){if(!i)return null;for(;B!==null;)s(U,B),B=B.sibling;return null}function d(U){for(var B=new Map;U!==null;)U.key!==null?B.set(U.key,U):B.set(U.index,U),U=U.sibling;return B}function y(U,B){return U=Mi(U,B),U.index=0,U.sibling=null,U}function b(U,B,F){return U.index=F,i?(F=U.alternate,F!==null?(F=F.index,F<B?(U.flags|=67108866,B):F):(U.flags|=67108866,B)):(U.flags|=1048576,B)}function N(U){return i&&U.alternate===null&&(U.flags|=67108866),U}function M(U,B,F,ne){return B===null||B.tag!==6?(B=sv(F,U.mode,ne),B.return=U,B):(B=y(B,F),B.return=U,B)}function z(U,B,F,ne){var Ae=F.type;return Ae===O?te(U,B,F.props.children,ne,F.key):B!==null&&(B.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===D&&Vs(Ae)===B.type)?(B=y(B,F.props),Zu(B,F),B.return=U,B):(B=Nd(F.type,F.key,F.props,null,U.mode,ne),Zu(B,F),B.return=U,B)}function H(U,B,F,ne){return B===null||B.tag!==4||B.stateNode.containerInfo!==F.containerInfo||B.stateNode.implementation!==F.implementation?(B=ov(F,U.mode,ne),B.return=U,B):(B=y(B,F.children||[]),B.return=U,B)}function te(U,B,F,ne,Ae){return B===null||B.tag!==7?(B=Is(F,U.mode,ne,Ae),B.return=U,B):(B=y(B,F),B.return=U,B)}function re(U,B,F){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=sv(""+B,U.mode,F),B.return=U,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case x:return F=Nd(B.type,B.key,B.props,null,U.mode,F),Zu(F,B),F.return=U,F;case j:return B=ov(B,U.mode,F),B.return=U,B;case D:return B=Vs(B),re(U,B,F)}if(ce(B)||V(B))return B=Is(B,U.mode,F,null),B.return=U,B;if(typeof B.then=="function")return re(U,Dd(B),F);if(B.$$typeof===k)return re(U,Cd(U,B),F);Rd(U,B)}return null}function K(U,B,F,ne){var Ae=B!==null?B.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return Ae!==null?null:M(U,B,""+F,ne);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case x:return F.key===Ae?z(U,B,F,ne):null;case j:return F.key===Ae?H(U,B,F,ne):null;case D:return F=Vs(F),K(U,B,F,ne)}if(ce(F)||V(F))return Ae!==null?null:te(U,B,F,ne,null);if(typeof F.then=="function")return K(U,B,Dd(F),ne);if(F.$$typeof===k)return K(U,B,Cd(U,F),ne);Rd(U,F)}return null}function X(U,B,F,ne,Ae){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return U=U.get(F)||null,M(B,U,""+ne,Ae);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return U=U.get(ne.key===null?F:ne.key)||null,z(B,U,ne,Ae);case j:return U=U.get(ne.key===null?F:ne.key)||null,H(B,U,ne,Ae);case D:return ne=Vs(ne),X(U,B,F,ne,Ae)}if(ce(ne)||V(ne))return U=U.get(F)||null,te(B,U,ne,Ae,null);if(typeof ne.then=="function")return X(U,B,F,Dd(ne),Ae);if(ne.$$typeof===k)return X(U,B,F,Cd(B,ne),Ae);Rd(B,ne)}return null}function ve(U,B,F,ne){for(var Ae=null,Ge=null,we=B,Le=B=0,Fe=null;we!==null&&Le<F.length;Le++){we.index>Le?(Fe=we,we=null):Fe=we.sibling;var Ye=K(U,we,F[Le],ne);if(Ye===null){we===null&&(we=Fe);break}i&&we&&Ye.alternate===null&&s(U,we),B=b(Ye,B,Le),Ge===null?Ae=Ye:Ge.sibling=Ye,Ge=Ye,we=Fe}if(Le===F.length)return u(U,we),He&&Pi(U,Le),Ae;if(we===null){for(;Le<F.length;Le++)we=re(U,F[Le],ne),we!==null&&(B=b(we,B,Le),Ge===null?Ae=we:Ge.sibling=we,Ge=we);return He&&Pi(U,Le),Ae}for(we=d(we);Le<F.length;Le++)Fe=X(we,U,Le,F[Le],ne),Fe!==null&&(i&&Fe.alternate!==null&&we.delete(Fe.key===null?Le:Fe.key),B=b(Fe,B,Le),Ge===null?Ae=Fe:Ge.sibling=Fe,Ge=Fe);return i&&we.forEach(function(Za){return s(U,Za)}),He&&Pi(U,Le),Ae}function Te(U,B,F,ne){if(F==null)throw Error(r(151));for(var Ae=null,Ge=null,we=B,Le=B=0,Fe=null,Ye=F.next();we!==null&&!Ye.done;Le++,Ye=F.next()){we.index>Le?(Fe=we,we=null):Fe=we.sibling;var Za=K(U,we,Ye.value,ne);if(Za===null){we===null&&(we=Fe);break}i&&we&&Za.alternate===null&&s(U,we),B=b(Za,B,Le),Ge===null?Ae=Za:Ge.sibling=Za,Ge=Za,we=Fe}if(Ye.done)return u(U,we),He&&Pi(U,Le),Ae;if(we===null){for(;!Ye.done;Le++,Ye=F.next())Ye=re(U,Ye.value,ne),Ye!==null&&(B=b(Ye,B,Le),Ge===null?Ae=Ye:Ge.sibling=Ye,Ge=Ye);return He&&Pi(U,Le),Ae}for(we=d(we);!Ye.done;Le++,Ye=F.next())Ye=X(we,U,Le,Ye.value,ne),Ye!==null&&(i&&Ye.alternate!==null&&we.delete(Ye.key===null?Le:Ye.key),B=b(Ye,B,Le),Ge===null?Ae=Ye:Ge.sibling=Ye,Ge=Ye);return i&&we.forEach(function(TB){return s(U,TB)}),He&&Pi(U,Le),Ae}function lt(U,B,F,ne){if(typeof F=="object"&&F!==null&&F.type===O&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case x:e:{for(var Ae=F.key;B!==null;){if(B.key===Ae){if(Ae=F.type,Ae===O){if(B.tag===7){u(U,B.sibling),ne=y(B,F.props.children),ne.return=U,U=ne;break e}}else if(B.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===D&&Vs(Ae)===B.type){u(U,B.sibling),ne=y(B,F.props),Zu(ne,F),ne.return=U,U=ne;break e}u(U,B);break}else s(U,B);B=B.sibling}F.type===O?(ne=Is(F.props.children,U.mode,ne,F.key),ne.return=U,U=ne):(ne=Nd(F.type,F.key,F.props,null,U.mode,ne),Zu(ne,F),ne.return=U,U=ne)}return N(U);case j:e:{for(Ae=F.key;B!==null;){if(B.key===Ae)if(B.tag===4&&B.stateNode.containerInfo===F.containerInfo&&B.stateNode.implementation===F.implementation){u(U,B.sibling),ne=y(B,F.children||[]),ne.return=U,U=ne;break e}else{u(U,B);break}else s(U,B);B=B.sibling}ne=ov(F,U.mode,ne),ne.return=U,U=ne}return N(U);case D:return F=Vs(F),lt(U,B,F,ne)}if(ce(F))return ve(U,B,F,ne);if(V(F)){if(Ae=V(F),typeof Ae!="function")throw Error(r(150));return F=Ae.call(F),Te(U,B,F,ne)}if(typeof F.then=="function")return lt(U,B,Dd(F),ne);if(F.$$typeof===k)return lt(U,B,Cd(U,F),ne);Rd(U,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,B!==null&&B.tag===6?(u(U,B.sibling),ne=y(B,F),ne.return=U,U=ne):(u(U,B),ne=sv(F,U.mode,ne),ne.return=U,U=ne),N(U)):u(U,B)}return function(U,B,F,ne){try{Qu=0;var Ae=lt(U,B,F,ne);return dl=null,Ae}catch(we){if(we===fl||we===Pd)throw we;var Ge=rr(29,we,null,U.mode);return Ge.lanes=ne,Ge.return=U,Ge}finally{}}}var Hs=I2(!0),B2=I2(!1),Ra=!1;function bv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xv(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function za(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function La(i,s,u){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(Qe&2)!==0){var y=d.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),d.pending=s,s=Ed(i),S2(i,null,u),s}return Ad(i,d,s,u),Ed(i)}function Ju(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var d=s.lanes;d&=i.pendingLanes,u|=d,s.lanes=u,Cj(i,u)}}function wv(i,s){var u=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var y=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?y=b=N:b=b.next=N,u=u.next}while(u!==null);b===null?y=b=s:b=b.next=s}else y=b=s;u={baseState:d.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Sv=!1;function ec(){if(Sv){var i=cl;if(i!==null)throw i}}function tc(i,s,u,d){Sv=!1;var y=i.updateQueue;Ra=!1;var b=y.firstBaseUpdate,N=y.lastBaseUpdate,M=y.shared.pending;if(M!==null){y.shared.pending=null;var z=M,H=z.next;z.next=null,N===null?b=H:N.next=H,N=z;var te=i.alternate;te!==null&&(te=te.updateQueue,M=te.lastBaseUpdate,M!==N&&(M===null?te.firstBaseUpdate=H:M.next=H,te.lastBaseUpdate=z))}if(b!==null){var re=y.baseState;N=0,te=H=z=null,M=b;do{var K=M.lane&-536870913,X=K!==M.lane;if(X?(Ve&K)===K:(d&K)===K){K!==0&&K===ul&&(Sv=!0),te!==null&&(te=te.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var ve=i,Te=M;K=s;var lt=u;switch(Te.tag){case 1:if(ve=Te.payload,typeof ve=="function"){re=ve.call(lt,re,K);break e}re=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Te.payload,K=typeof ve=="function"?ve.call(lt,re,K):ve,K==null)break e;re=p({},re,K);break e;case 2:Ra=!0}}K=M.callback,K!==null&&(i.flags|=64,X&&(i.flags|=8192),X=y.callbacks,X===null?y.callbacks=[K]:X.push(K))}else X={lane:K,tag:M.tag,payload:M.payload,callback:M.callback,next:null},te===null?(H=te=X,z=re):te=te.next=X,N|=K;if(M=M.next,M===null){if(M=y.shared.pending,M===null)break;X=M,M=X.next,X.next=null,y.lastBaseUpdate=X,y.shared.pending=null}}while(!0);te===null&&(z=re),y.baseState=z,y.firstBaseUpdate=H,y.lastBaseUpdate=te,b===null&&(y.shared.lanes=0),$a|=N,i.lanes=N,i.memoizedState=re}}function U2(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function q2(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)U2(u[i],s)}var hl=R(null),zd=R(0);function $2(i,s){i=Vi,se(zd,i),se(hl,s),Vi=i|s.baseLanes}function jv(){se(zd,Vi),se(hl,hl.current)}function Ov(){Vi=zd.current,Q(hl),Q(zd)}var ir=R(null),wr=null;function Ia(i){var s=i.alternate;se(_t,_t.current&1),se(ir,i),wr===null&&(s===null||hl.current!==null||s.memoizedState!==null)&&(wr=i)}function Av(i){se(_t,_t.current),se(ir,i),wr===null&&(wr=i)}function V2(i){i.tag===22?(se(_t,_t.current),se(ir,i),wr===null&&(wr=i)):Ba()}function Ba(){se(_t,_t.current),se(ir,ir.current)}function ar(i){Q(ir),wr===i&&(wr=null),Q(_t)}var _t=R(0);function Ld(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||My(u)||Py(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===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ri=0,ze=null,st=null,It=null,Id=!1,ml=!1,Ks=!1,Bd=0,nc=0,pl=null,b8=0;function At(){throw Error(r(321))}function Ev(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!nr(i[u],s[u]))return!1;return!0}function Nv(i,s,u,d,y,b){return Ri=b,ze=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,q.H=i===null||i.memoizedState===null?EO:$v,Ks=!1,b=u(d,y),Ks=!1,ml&&(b=H2(s,u,d,y)),F2(i),b}function F2(i){q.H=ac;var s=st!==null&&st.next!==null;if(Ri=0,It=st=ze=null,Id=!1,nc=0,pl=null,s)throw Error(r(300));i===null||Bt||(i=i.dependencies,i!==null&&Td(i)&&(Bt=!0))}function H2(i,s,u,d){ze=i;var y=0;do{if(ml&&(pl=null),nc=0,ml=!1,25<=y)throw Error(r(301));if(y+=1,It=st=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}q.H=NO,b=s(u,d)}while(ml);return b}function x8(){var i=q.H,s=i.useState()[0];return s=typeof s.then=="function"?rc(s):s,i=i.useState()[0],(st!==null?st.memoizedState:null)!==i&&(ze.flags|=1024),s}function kv(){var i=Bd!==0;return Bd=0,i}function Tv(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function Cv(i){if(Id){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Id=!1}Ri=0,It=st=ze=null,ml=!1,nc=Bd=0,pl=null}function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ze.memoizedState=It=i:It=It.next=i,It}function Dt(){if(st===null){var i=ze.alternate;i=i!==null?i.memoizedState:null}else i=st.next;var s=It===null?ze.memoizedState:It.next;if(s!==null)It=s,st=i;else{if(i===null)throw ze.alternate===null?Error(r(467)):Error(r(310));st=i,i={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},It===null?ze.memoizedState=It=i:It=It.next=i}return It}function Ud(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rc(i){var s=nc;return nc+=1,pl===null&&(pl=[]),i=R2(pl,i,s),s=ze,(It===null?s.memoizedState:It.next)===null&&(s=s.alternate,q.H=s===null||s.memoizedState===null?EO:$v),i}function qd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return rc(i);if(i.$$typeof===k)return pn(i)}throw Error(r(438,String(i)))}function Mv(i){var s=null,u=ze.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var d=ze.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(s={data:d.data.map(function(y){return y.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Ud(),ze.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),d=0;d<i;d++)u[d]=Z;return s.index++,u}function zi(i,s){return typeof s=="function"?s(i):s}function $d(i){var s=Dt();return Pv(s,st,i)}function Pv(i,s,u){var d=i.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var y=i.baseQueue,b=d.pending;if(b!==null){if(y!==null){var N=y.next;y.next=b.next,b.next=N}s.baseQueue=y=b,d.pending=null}if(b=i.baseState,y===null)i.memoizedState=b;else{s=y.next;var M=N=null,z=null,H=s,te=!1;do{var re=H.lane&-536870913;if(re!==H.lane?(Ve&re)===re:(Ri&re)===re){var K=H.revertLane;if(K===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),re===ul&&(te=!0);else if((Ri&K)===K){H=H.next,K===ul&&(te=!0);continue}else re={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(M=z=re,N=b):z=z.next=re,ze.lanes|=K,$a|=K;re=H.action,Ks&&u(b,re),b=H.hasEagerState?H.eagerState:u(b,re)}else K={lane:re,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(M=z=K,N=b):z=z.next=K,ze.lanes|=re,$a|=re;H=H.next}while(H!==null&&H!==s);if(z===null?N=b:z.next=M,!nr(b,i.memoizedState)&&(Bt=!0,te&&(u=cl,u!==null)))throw u;i.memoizedState=b,i.baseState=N,i.baseQueue=z,d.lastRenderedState=b}return y===null&&(d.lanes=0),[i.memoizedState,d.dispatch]}function _v(i){var s=Dt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var d=u.dispatch,y=u.pending,b=s.memoizedState;if(y!==null){u.pending=null;var N=y=y.next;do b=i(b,N.action),N=N.next;while(N!==y);nr(b,s.memoizedState)||(Bt=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),u.lastRenderedState=b}return[b,d]}function K2(i,s,u){var d=ze,y=Dt(),b=He;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=s();var N=!nr((st||y).memoizedState,u);if(N&&(y.memoizedState=u,Bt=!0),y=y.queue,zv(W2.bind(null,d,y,i),[i]),y.getSnapshot!==s||N||It!==null&&It.memoizedState.tag&1){if(d.flags|=2048,gl(9,{destroy:void 0},Y2.bind(null,d,y,u,s),null),ct===null)throw Error(r(349));b||(Ri&127)!==0||G2(d,s,u)}return u}function G2(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=ze.updateQueue,s===null?(s=Ud(),ze.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function Y2(i,s,u,d){s.value=u,s.getSnapshot=d,X2(s)&&Q2(i)}function W2(i,s,u){return u(function(){X2(s)&&Q2(i)})}function X2(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!nr(i,u)}catch{return!0}}function Q2(i){var s=Ls(i,2);s!==null&&Kn(s,i,2)}function Dv(i){var s=Tn();if(typeof i=="function"){var u=i;if(i=u(),Ks){ka(!0);try{u()}finally{ka(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:i},s}function Z2(i,s,u,d){return i.baseState=u,Pv(i,st,typeof d=="function"?d:zi)}function w8(i,s,u,d,y){if(Hd(i))throw Error(r(485));if(i=s.action,i!==null){var b={payload:y,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){b.listeners.push(N)}};q.T!==null?u(!0):b.isTransition=!1,d(b),u=s.pending,u===null?(b.next=s.pending=b,J2(s,b)):(b.next=u.next,s.pending=u.next=b)}}function J2(i,s){var u=s.action,d=s.payload,y=i.state;if(s.isTransition){var b=q.T,N={};q.T=N;try{var M=u(y,d),z=q.S;z!==null&&z(N,M),eO(i,s,M)}catch(H){Rv(i,s,H)}finally{b!==null&&N.types!==null&&(b.types=N.types),q.T=b}}else try{b=u(y,d),eO(i,s,b)}catch(H){Rv(i,s,H)}}function eO(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(d){tO(i,s,d)},function(d){return Rv(i,s,d)}):tO(i,s,u)}function tO(i,s,u){s.status="fulfilled",s.value=u,nO(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,J2(i,u)))}function Rv(i,s,u){var d=i.pending;if(i.pending=null,d!==null){d=d.next;do s.status="rejected",s.reason=u,nO(s),s=s.next;while(s!==d)}i.action=null}function nO(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function rO(i,s){return s}function iO(i,s){if(He){var u=ct.formState;if(u!==null){e:{var d=ze;if(He){if(mt){t:{for(var y=mt,b=xr;y.nodeType!==8;){if(!b){y=null;break t}if(y=Sr(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){mt=Sr(y.nextSibling),d=y.data==="F!";break e}}_a(d)}d=!1}d&&(s=u[0])}}return u=Tn(),u.memoizedState=u.baseState=s,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rO,lastRenderedState:s},u.queue=d,u=jO.bind(null,ze,d),d.dispatch=u,d=Dv(!1),b=qv.bind(null,ze,!1,d.queue),d=Tn(),y={state:s,dispatch:null,action:i,pending:null},d.queue=y,u=w8.bind(null,ze,y,b,u),y.dispatch=u,d.memoizedState=i,[s,u,!1]}function aO(i){var s=Dt();return sO(s,st,i)}function sO(i,s,u){if(s=Pv(i,s,rO)[0],i=$d(zi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=rc(s)}catch(N){throw N===fl?Pd:N}else d=s;s=Dt();var y=s.queue,b=y.dispatch;return u!==s.memoizedState&&(ze.flags|=2048,gl(9,{destroy:void 0},S8.bind(null,y,u),null)),[d,b,i]}function S8(i,s){i.action=s}function oO(i){var s=Dt(),u=st;if(u!==null)return sO(s,u,i);Dt(),s=s.memoizedState,u=Dt();var d=u.queue.dispatch;return u.memoizedState=i,[s,d,!1]}function gl(i,s,u,d){return i={tag:i,create:u,deps:d,inst:s,next:null},s=ze.updateQueue,s===null&&(s=Ud(),ze.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(d=u.next,u.next=i,i.next=d,s.lastEffect=i),i}function lO(){return Dt().memoizedState}function Vd(i,s,u,d){var y=Tn();ze.flags|=i,y.memoizedState=gl(1|s,{destroy:void 0},u,d===void 0?null:d)}function Fd(i,s,u,d){var y=Dt();d=d===void 0?null:d;var b=y.memoizedState.inst;st!==null&&d!==null&&Ev(d,st.memoizedState.deps)?y.memoizedState=gl(s,b,u,d):(ze.flags|=i,y.memoizedState=gl(1|s,b,u,d))}function uO(i,s){Vd(8390656,8,i,s)}function zv(i,s){Fd(2048,8,i,s)}function j8(i){ze.flags|=4;var s=ze.updateQueue;if(s===null)s=Ud(),ze.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function cO(i){var s=Dt().memoizedState;return j8({ref:s,nextImpl:i}),function(){if((Qe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function fO(i,s){return Fd(4,2,i,s)}function dO(i,s){return Fd(4,4,i,s)}function hO(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function mO(i,s,u){u=u!=null?u.concat([i]):null,Fd(4,4,hO.bind(null,s,i),u)}function Lv(){}function pO(i,s){var u=Dt();s=s===void 0?null:s;var d=u.memoizedState;return s!==null&&Ev(s,d[1])?d[0]:(u.memoizedState=[i,s],i)}function gO(i,s){var u=Dt();s=s===void 0?null:s;var d=u.memoizedState;if(s!==null&&Ev(s,d[1]))return d[0];if(d=i(),Ks){ka(!0);try{i()}finally{ka(!1)}}return u.memoizedState=[d,s],d}function Iv(i,s,u){return u===void 0||(Ri&1073741824)!==0&&(Ve&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=vA(),ze.lanes|=i,$a|=i,u)}function vO(i,s,u,d){return nr(u,s)?u:hl.current!==null?(i=Iv(i,u,d),nr(i,s)||(Bt=!0),i):(Ri&42)===0||(Ri&1073741824)!==0&&(Ve&261930)===0?(Bt=!0,i.memoizedState=u):(i=vA(),ze.lanes|=i,$a|=i,s)}function yO(i,s,u,d,y){var b=G.p;G.p=b!==0&&8>b?b:8;var N=q.T,M={};q.T=M,qv(i,!1,s,u);try{var z=y(),H=q.S;if(H!==null&&H(M,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var te=y8(z,d);ic(i,s,te,lr(i))}else ic(i,s,d,lr(i))}catch(re){ic(i,s,{then:function(){},status:"rejected",reason:re},lr())}finally{G.p=b,N!==null&&M.types!==null&&(N.types=M.types),q.T=N}}function O8(){}function Bv(i,s,u,d){if(i.tag!==5)throw Error(r(476));var y=bO(i).queue;yO(i,y,s,ie,u===null?O8:function(){return xO(i),u(d)})}function bO(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:ie},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function xO(i){var s=bO(i);s.next===null&&(s=i.alternate.memoizedState),ic(i,s.next.queue,{},lr())}function Uv(){return pn(wc)}function wO(){return Dt().memoizedState}function SO(){return Dt().memoizedState}function A8(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=lr();i=za(u);var d=La(s,i,u);d!==null&&(Kn(d,s,u),Ju(d,s,u)),s={cache:pv()},i.payload=s;return}s=s.return}}function E8(i,s,u){var d=lr();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Hd(i)?OO(s,u):(u=iv(i,s,u,d),u!==null&&(Kn(u,i,d),AO(u,s,d)))}function jO(i,s,u){var d=lr();ic(i,s,u,d)}function ic(i,s,u,d){var y={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Hd(i))OO(s,y);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var N=s.lastRenderedState,M=b(N,u);if(y.hasEagerState=!0,y.eagerState=M,nr(M,N))return Ad(i,s,y,0),ct===null&&Od(),!1}catch{}finally{}if(u=iv(i,s,y,d),u!==null)return Kn(u,i,d),AO(u,s,d),!0}return!1}function qv(i,s,u,d){if(d={lane:2,revertLane:by(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Hd(i)){if(s)throw Error(r(479))}else s=iv(i,u,d,2),s!==null&&Kn(s,i,2)}function Hd(i){var s=i.alternate;return i===ze||s!==null&&s===ze}function OO(i,s){ml=Id=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function AO(i,s,u){if((u&4194048)!==0){var d=s.lanes;d&=i.pendingLanes,u|=d,s.lanes=u,Cj(i,u)}}var ac={readContext:pn,use:qd,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At};ac.useEffectEvent=At;var EO={readContext:pn,use:qd,useCallback:function(i,s){return Tn().memoizedState=[i,s===void 0?null:s],i},useContext:pn,useEffect:uO,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Vd(4194308,4,hO.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Vd(4194308,4,i,s)},useInsertionEffect:function(i,s){Vd(4,2,i,s)},useMemo:function(i,s){var u=Tn();s=s===void 0?null:s;var d=i();if(Ks){ka(!0);try{i()}finally{ka(!1)}}return u.memoizedState=[d,s],d},useReducer:function(i,s,u){var d=Tn();if(u!==void 0){var y=u(s);if(Ks){ka(!0);try{u(s)}finally{ka(!1)}}}else y=s;return d.memoizedState=d.baseState=y,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:y},d.queue=i,i=i.dispatch=E8.bind(null,ze,i),[d.memoizedState,i]},useRef:function(i){var s=Tn();return i={current:i},s.memoizedState=i},useState:function(i){i=Dv(i);var s=i.queue,u=jO.bind(null,ze,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Lv,useDeferredValue:function(i,s){var u=Tn();return Iv(u,i,s)},useTransition:function(){var i=Dv(!1);return i=yO.bind(null,ze,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var d=ze,y=Tn();if(He){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ct===null)throw Error(r(349));(Ve&127)!==0||G2(d,s,u)}y.memoizedState=u;var b={value:u,getSnapshot:s};return y.queue=b,uO(W2.bind(null,d,b,i),[i]),d.flags|=2048,gl(9,{destroy:void 0},Y2.bind(null,d,b,u,s),null),u},useId:function(){var i=Tn(),s=ct.identifierPrefix;if(He){var u=ii,d=ri;u=(d&~(1<<32-tr(d)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Bd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=b8++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Uv,useFormState:iO,useActionState:iO,useOptimistic:function(i){var s=Tn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=qv.bind(null,ze,!0,u),u.dispatch=s,[i,s]},useMemoCache:Mv,useCacheRefresh:function(){return Tn().memoizedState=A8.bind(null,ze)},useEffectEvent:function(i){var s=Tn(),u={impl:i};return s.memoizedState=u,function(){if((Qe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},$v={readContext:pn,use:qd,useCallback:pO,useContext:pn,useEffect:zv,useImperativeHandle:mO,useInsertionEffect:fO,useLayoutEffect:dO,useMemo:gO,useReducer:$d,useRef:lO,useState:function(){return $d(zi)},useDebugValue:Lv,useDeferredValue:function(i,s){var u=Dt();return vO(u,st.memoizedState,i,s)},useTransition:function(){var i=$d(zi)[0],s=Dt().memoizedState;return[typeof i=="boolean"?i:rc(i),s]},useSyncExternalStore:K2,useId:wO,useHostTransitionStatus:Uv,useFormState:aO,useActionState:aO,useOptimistic:function(i,s){var u=Dt();return Z2(u,st,i,s)},useMemoCache:Mv,useCacheRefresh:SO};$v.useEffectEvent=cO;var NO={readContext:pn,use:qd,useCallback:pO,useContext:pn,useEffect:zv,useImperativeHandle:mO,useInsertionEffect:fO,useLayoutEffect:dO,useMemo:gO,useReducer:_v,useRef:lO,useState:function(){return _v(zi)},useDebugValue:Lv,useDeferredValue:function(i,s){var u=Dt();return st===null?Iv(u,i,s):vO(u,st.memoizedState,i,s)},useTransition:function(){var i=_v(zi)[0],s=Dt().memoizedState;return[typeof i=="boolean"?i:rc(i),s]},useSyncExternalStore:K2,useId:wO,useHostTransitionStatus:Uv,useFormState:oO,useActionState:oO,useOptimistic:function(i,s){var u=Dt();return st!==null?Z2(u,st,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Mv,useCacheRefresh:SO};NO.useEffectEvent=cO;function Vv(i,s,u,d){s=i.memoizedState,u=u(d,s),u=u==null?s:p({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Fv={enqueueSetState:function(i,s,u){i=i._reactInternals;var d=lr(),y=za(d);y.payload=s,u!=null&&(y.callback=u),s=La(i,y,d),s!==null&&(Kn(s,i,d),Ju(s,i,d))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var d=lr(),y=za(d);y.tag=1,y.payload=s,u!=null&&(y.callback=u),s=La(i,y,d),s!==null&&(Kn(s,i,d),Ju(s,i,d))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=lr(),d=za(u);d.tag=2,s!=null&&(d.callback=s),s=La(i,d,u),s!==null&&(Kn(s,i,u),Ju(s,i,u))}};function kO(i,s,u,d,y,b,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,b,N):s.prototype&&s.prototype.isPureReactComponent?!Hu(u,d)||!Hu(y,b):!0}function TO(i,s,u,d){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,d),s.state!==i&&Fv.enqueueReplaceState(s,s.state,null)}function Gs(i,s){var u=s;if("ref"in s){u={};for(var d in s)d!=="ref"&&(u[d]=s[d])}if(i=i.defaultProps){u===s&&(u=p({},u));for(var y in i)u[y]===void 0&&(u[y]=i[y])}return u}function CO(i){jd(i)}function MO(i){console.error(i)}function PO(i){jd(i)}function Kd(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(d){setTimeout(function(){throw d})}}function _O(i,s,u){try{var d=i.onCaughtError;d(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Hv(i,s,u){return u=za(u),u.tag=3,u.payload={element:null},u.callback=function(){Kd(i,s)},u}function DO(i){return i=za(i),i.tag=3,i}function RO(i,s,u,d){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var b=d.value;i.payload=function(){return y(b)},i.callback=function(){_O(s,u,d)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){_O(s,u,d),typeof y!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var M=d.stack;this.componentDidCatch(d.value,{componentStack:M!==null?M:""})})}function N8(i,s,u,d,y){if(u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(s=u.alternate,s!==null&&ll(s,u,y,!0),u=ir.current,u!==null){switch(u.tag){case 31:case 13:return wr===null?ih():u.alternate===null&&Et===0&&(Et=3),u.flags&=-257,u.flags|=65536,u.lanes=y,d===_d?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([d]):s.add(d),gy(i,d,y)),!1;case 22:return u.flags|=65536,d===_d?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)),gy(i,d,y)),!1}throw Error(r(435,u.tag))}return gy(i,d,y),ih(),!1}if(He)return s=ir.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=y,d!==cv&&(i=Error(r(422),{cause:d}),Yu(vr(i,u)))):(d!==cv&&(s=Error(r(423),{cause:d}),Yu(vr(s,u))),i=i.current.alternate,i.flags|=65536,y&=-y,i.lanes|=y,d=vr(d,u),y=Hv(i.stateNode,d,y),wv(i,y),Et!==4&&(Et=2)),!1;var b=Error(r(520),{cause:d});if(b=vr(b,u),hc===null?hc=[b]:hc.push(b),Et!==4&&(Et=2),s===null)return!0;d=vr(d,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=y&-y,u.lanes|=i,i=Hv(u.stateNode,d,i),wv(u,i),!1;case 1:if(s=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Va===null||!Va.has(b))))return u.flags|=65536,y&=-y,u.lanes|=y,y=DO(y),RO(y,i,u,d),wv(u,y),!1}u=u.return}while(u!==null);return!1}var Kv=Error(r(461)),Bt=!1;function gn(i,s,u,d){s.child=i===null?B2(s,null,u,d):Hs(s,i.child,u,d)}function zO(i,s,u,d,y){u=u.render;var b=s.ref;if("ref"in d){var N={};for(var M in d)M!=="ref"&&(N[M]=d[M])}else N=d;return qs(s),d=Nv(i,s,u,N,b,y),M=kv(),i!==null&&!Bt?(Tv(i,s,y),Li(i,s,y)):(He&&M&&lv(s),s.flags|=1,gn(i,s,d,y),s.child)}function LO(i,s,u,d,y){if(i===null){var b=u.type;return typeof b=="function"&&!av(b)&&b.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=b,IO(i,s,b,d,y)):(i=Nd(u.type,null,d,s,s.mode,y),i.ref=s.ref,i.return=s,s.child=i)}if(b=i.child,!ey(i,y)){var N=b.memoizedProps;if(u=u.compare,u=u!==null?u:Hu,u(N,d)&&i.ref===s.ref)return Li(i,s,y)}return s.flags|=1,i=Mi(b,d),i.ref=s.ref,i.return=s,s.child=i}function IO(i,s,u,d,y){if(i!==null){var b=i.memoizedProps;if(Hu(b,d)&&i.ref===s.ref)if(Bt=!1,s.pendingProps=d=b,ey(i,y))(i.flags&131072)!==0&&(Bt=!0);else return s.lanes=i.lanes,Li(i,s,y)}return Gv(i,s,u,d,y)}function BO(i,s,u,d){var y=d.children,b=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((s.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,i!==null){for(d=s.child=i.child,y=0;d!==null;)y=y|d.lanes|d.childLanes,d=d.sibling;d=y&~b}else d=0,s.child=null;return UO(i,s,b,u,d)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Md(s,b!==null?b.cachePool:null),b!==null?$2(s,b):jv(),V2(s);else return d=s.lanes=536870912,UO(i,s,b!==null?b.baseLanes|u:u,u,d)}else b!==null?(Md(s,b.cachePool),$2(s,b),Ba(),s.memoizedState=null):(i!==null&&Md(s,null),jv(),Ba());return gn(i,s,y,u),s.child}function sc(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function UO(i,s,u,d,y){var b=vv();return b=b===null?null:{parent:Lt._currentValue,pool:b},s.memoizedState={baseLanes:u,cachePool:b},i!==null&&Md(s,null),jv(),V2(s),i!==null&&ll(i,s,d,!0),s.childLanes=y,null}function Gd(i,s){return s=Wd({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function qO(i,s,u){return Hs(s,i.child,null,u),i=Gd(s,s.pendingProps),i.flags|=2,ar(s),s.memoizedState=null,i}function k8(i,s,u){var d=s.pendingProps,y=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(He){if(d.mode==="hidden")return i=Gd(s,d),s.lanes=536870912,sc(null,i);if(Av(s),(i=mt)?(i=JA(i,xr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Ma!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},u=O2(i),u.return=s,s.child=u,mn=s,mt=null)):i=null,i===null)throw _a(s);return s.lanes=536870912,null}return Gd(s,d)}var b=i.memoizedState;if(b!==null){var N=b.dehydrated;if(Av(s),y)if(s.flags&256)s.flags&=-257,s=qO(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(Bt||ll(i,s,u,!1),y=(u&i.childLanes)!==0,Bt||y){if(d=ct,d!==null&&(N=Mj(d,u),N!==0&&N!==b.retryLane))throw b.retryLane=N,Ls(i,N),Kn(d,i,N),Kv;ih(),s=qO(i,s,u)}else i=b.treeContext,mt=Sr(N.nextSibling),mn=s,He=!0,Pa=null,xr=!1,i!==null&&N2(s,i),s=Gd(s,d),s.flags|=4096;return s}return i=Mi(i.child,{mode:d.mode,children:d.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Yd(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function Gv(i,s,u,d,y){return qs(s),u=Nv(i,s,u,d,void 0,y),d=kv(),i!==null&&!Bt?(Tv(i,s,y),Li(i,s,y)):(He&&d&&lv(s),s.flags|=1,gn(i,s,u,y),s.child)}function $O(i,s,u,d,y,b){return qs(s),s.updateQueue=null,u=H2(s,d,u,y),F2(i),d=kv(),i!==null&&!Bt?(Tv(i,s,b),Li(i,s,b)):(He&&d&&lv(s),s.flags|=1,gn(i,s,u,b),s.child)}function VO(i,s,u,d,y){if(qs(s),s.stateNode===null){var b=il,N=u.contextType;typeof N=="object"&&N!==null&&(b=pn(N)),b=new u(d,b),s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Fv,s.stateNode=b,b._reactInternals=s,b=s.stateNode,b.props=d,b.state=s.memoizedState,b.refs={},bv(s),N=u.contextType,b.context=typeof N=="object"&&N!==null?pn(N):il,b.state=s.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(Vv(s,u,N,d),b.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(N=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),N!==b.state&&Fv.enqueueReplaceState(b,b.state,null),tc(s,d,b,y),ec(),b.state=s.memoizedState),typeof b.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(i===null){b=s.stateNode;var M=s.memoizedProps,z=Gs(u,M);b.props=z;var H=b.context,te=u.contextType;N=il,typeof te=="object"&&te!==null&&(N=pn(te));var re=u.getDerivedStateFromProps;te=typeof re=="function"||typeof b.getSnapshotBeforeUpdate=="function",M=s.pendingProps!==M,te||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M||H!==N)&&TO(s,b,d,N),Ra=!1;var K=s.memoizedState;b.state=K,tc(s,d,b,y),ec(),H=s.memoizedState,M||K!==H||Ra?(typeof re=="function"&&(Vv(s,u,re,d),H=s.memoizedState),(z=Ra||kO(s,u,z,d,K,H,N))?(te||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=H),b.props=d,b.state=H,b.context=N,d=z):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{b=s.stateNode,xv(i,s),N=s.memoizedProps,te=Gs(u,N),b.props=te,re=s.pendingProps,K=b.context,H=u.contextType,z=il,typeof H=="object"&&H!==null&&(z=pn(H)),M=u.getDerivedStateFromProps,(H=typeof M=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N!==re||K!==z)&&TO(s,b,d,z),Ra=!1,K=s.memoizedState,b.state=K,tc(s,d,b,y),ec();var X=s.memoizedState;N!==re||K!==X||Ra||i!==null&&i.dependencies!==null&&Td(i.dependencies)?(typeof M=="function"&&(Vv(s,u,M,d),X=s.memoizedState),(te=Ra||kO(s,u,te,d,K,X,z)||i!==null&&i.dependencies!==null&&Td(i.dependencies))?(H||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,X,z),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,X,z)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||N===i.memoizedProps&&K===i.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&K===i.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=X),b.props=d,b.state=X,b.context=z,d=te):(typeof b.componentDidUpdate!="function"||N===i.memoizedProps&&K===i.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&K===i.memoizedState||(s.flags|=1024),d=!1)}return b=d,Yd(i,s),d=(s.flags&128)!==0,b||d?(b=s.stateNode,u=d&&typeof u.getDerivedStateFromError!="function"?null:b.render(),s.flags|=1,i!==null&&d?(s.child=Hs(s,i.child,null,y),s.child=Hs(s,null,u,y)):gn(i,s,u,y),s.memoizedState=b.state,i=s.child):i=Li(i,s,y),i}function FO(i,s,u,d){return Bs(),s.flags|=256,gn(i,s,u,d),s.child}var Yv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wv(i){return{baseLanes:i,cachePool:_2()}}function Xv(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=or),i}function HO(i,s,u){var d=s.pendingProps,y=!1,b=(s.flags&128)!==0,N;if((N=b)||(N=i!==null&&i.memoizedState===null?!1:(_t.current&2)!==0),N&&(y=!0,s.flags&=-129),N=(s.flags&32)!==0,s.flags&=-33,i===null){if(He){if(y?Ia(s):Ba(),(i=mt)?(i=JA(i,xr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Ma!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},u=O2(i),u.return=s,s.child=u,mn=s,mt=null)):i=null,i===null)throw _a(s);return Py(i)?s.lanes=32:s.lanes=536870912,null}var M=d.children;return d=d.fallback,y?(Ba(),y=s.mode,M=Wd({mode:"hidden",children:M},y),d=Is(d,y,u,null),M.return=s,d.return=s,M.sibling=d,s.child=M,d=s.child,d.memoizedState=Wv(u),d.childLanes=Xv(i,N,u),s.memoizedState=Yv,sc(null,d)):(Ia(s),Qv(s,M))}var z=i.memoizedState;if(z!==null&&(M=z.dehydrated,M!==null)){if(b)s.flags&256?(Ia(s),s.flags&=-257,s=Zv(i,s,u)):s.memoizedState!==null?(Ba(),s.child=i.child,s.flags|=128,s=null):(Ba(),M=d.fallback,y=s.mode,d=Wd({mode:"visible",children:d.children},y),M=Is(M,y,u,null),M.flags|=2,d.return=s,M.return=s,d.sibling=M,s.child=d,Hs(s,i.child,null,u),d=s.child,d.memoizedState=Wv(u),d.childLanes=Xv(i,N,u),s.memoizedState=Yv,s=sc(null,d));else if(Ia(s),Py(M)){if(N=M.nextSibling&&M.nextSibling.dataset,N)var H=N.dgst;N=H,d=Error(r(419)),d.stack="",d.digest=N,Yu({value:d,source:null,stack:null}),s=Zv(i,s,u)}else if(Bt||ll(i,s,u,!1),N=(u&i.childLanes)!==0,Bt||N){if(N=ct,N!==null&&(d=Mj(N,u),d!==0&&d!==z.retryLane))throw z.retryLane=d,Ls(i,d),Kn(N,i,d),Kv;My(M)||ih(),s=Zv(i,s,u)}else My(M)?(s.flags|=192,s.child=i.child,s=null):(i=z.treeContext,mt=Sr(M.nextSibling),mn=s,He=!0,Pa=null,xr=!1,i!==null&&N2(s,i),s=Qv(s,d.children),s.flags|=4096);return s}return y?(Ba(),M=d.fallback,y=s.mode,z=i.child,H=z.sibling,d=Mi(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,H!==null?M=Mi(H,M):(M=Is(M,y,u,null),M.flags|=2),M.return=s,d.return=s,d.sibling=M,s.child=d,sc(null,d),d=s.child,M=i.child.memoizedState,M===null?M=Wv(u):(y=M.cachePool,y!==null?(z=Lt._currentValue,y=y.parent!==z?{parent:z,pool:z}:y):y=_2(),M={baseLanes:M.baseLanes|u,cachePool:y}),d.memoizedState=M,d.childLanes=Xv(i,N,u),s.memoizedState=Yv,sc(i.child,d)):(Ia(s),u=i.child,i=u.sibling,u=Mi(u,{mode:"visible",children:d.children}),u.return=s,u.sibling=null,i!==null&&(N=s.deletions,N===null?(s.deletions=[i],s.flags|=16):N.push(i)),s.child=u,s.memoizedState=null,u)}function Qv(i,s){return s=Wd({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Wd(i,s){return i=rr(22,i,null,s),i.lanes=0,i}function Zv(i,s,u){return Hs(s,i.child,null,u),i=Qv(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function KO(i,s,u){i.lanes|=s;var d=i.alternate;d!==null&&(d.lanes|=s),hv(i.return,s,u)}function Jv(i,s,u,d,y,b){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:y,treeForkCount:b}:(N.isBackwards=s,N.rendering=null,N.renderingStartTime=0,N.last=d,N.tail=u,N.tailMode=y,N.treeForkCount=b)}function GO(i,s,u){var d=s.pendingProps,y=d.revealOrder,b=d.tail;d=d.children;var N=_t.current,M=(N&2)!==0;if(M?(N=N&1|2,s.flags|=128):N&=1,se(_t,N),gn(i,s,d,u),d=He?Gu:0,!M&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&KO(i,u,s);else if(i.tag===19)KO(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(y){case"forwards":for(u=s.child,y=null;u!==null;)i=u.alternate,i!==null&&Ld(i)===null&&(y=u),u=u.sibling;u=y,u===null?(y=s.child,s.child=null):(y=u.sibling,u.sibling=null),Jv(s,!1,y,u,b,d);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=s.child,s.child=null;y!==null;){if(i=y.alternate,i!==null&&Ld(i)===null){s.child=y;break}i=y.sibling,y.sibling=u,u=y,y=i}Jv(s,!0,u,null,b,d);break;case"together":Jv(s,!1,null,null,void 0,d);break;default:s.memoizedState=null}return s.child}function Li(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),$a|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(ll(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=Mi(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Mi(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function ey(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Td(i)))}function T8(i,s,u){switch(s.tag){case 3:Xe(s,s.stateNode.containerInfo),Da(s,Lt,i.memoizedState.cache),Bs();break;case 27:case 5:Ce(s);break;case 4:Xe(s,s.stateNode.containerInfo);break;case 10:Da(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Av(s),null;break;case 13:var d=s.memoizedState;if(d!==null)return d.dehydrated!==null?(Ia(s),s.flags|=128,null):(u&s.child.childLanes)!==0?HO(i,s,u):(Ia(s),i=Li(i,s,u),i!==null?i.sibling:null);Ia(s);break;case 19:var y=(i.flags&128)!==0;if(d=(u&s.childLanes)!==0,d||(ll(i,s,u,!1),d=(u&s.childLanes)!==0),y){if(d)return GO(i,s,u);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),se(_t,_t.current),d)break;return null;case 22:return s.lanes=0,BO(i,s,u,s.pendingProps);case 24:Da(s,Lt,i.memoizedState.cache)}return Li(i,s,u)}function YO(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Bt=!0;else{if(!ey(i,u)&&(s.flags&128)===0)return Bt=!1,T8(i,s,u);Bt=(i.flags&131072)!==0}else Bt=!1,He&&(s.flags&1048576)!==0&&E2(s,Gu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var d=s.pendingProps;if(i=Vs(s.elementType),s.type=i,typeof i=="function")av(i)?(d=Gs(i,d),s.tag=1,s=VO(null,s,i,d,u)):(s.tag=0,s=Gv(null,s,i,d,u));else{if(i!=null){var y=i.$$typeof;if(y===E){s.tag=11,s=zO(null,s,i,d,u);break e}else if(y===_){s.tag=14,s=LO(null,s,i,d,u);break e}}throw s=le(i)||i,Error(r(306,s,""))}}return s;case 0:return Gv(i,s,s.type,s.pendingProps,u);case 1:return d=s.type,y=Gs(d,s.pendingProps),VO(i,s,d,y,u);case 3:e:{if(Xe(s,s.stateNode.containerInfo),i===null)throw Error(r(387));d=s.pendingProps;var b=s.memoizedState;y=b.element,xv(i,s),tc(s,d,null,u);var N=s.memoizedState;if(d=N.cache,Da(s,Lt,d),d!==b.cache&&mv(s,[Lt],u,!0),ec(),d=N.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:N.cache},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){s=FO(i,s,d,u);break e}else if(d!==y){y=vr(Error(r(424)),s),Yu(y),s=FO(i,s,d,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(mt=Sr(i.firstChild),mn=s,He=!0,Pa=null,xr=!0,u=B2(s,null,d,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Bs(),d===y){s=Li(i,s,u);break e}gn(i,s,d,u)}s=s.child}return s;case 26:return Yd(i,s),i===null?(u=aE(s.type,null,s.pendingProps,null))?s.memoizedState=u:He||(u=s.type,i=s.pendingProps,d=fh(me.current).createElement(u),d[hn]=s,d[Un]=i,vn(d,u,i),Zt(d),s.stateNode=d):s.memoizedState=aE(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Ce(s),i===null&&He&&(d=s.stateNode=nE(s.type,s.pendingProps,me.current),mn=s,xr=!0,y=mt,Ga(s.type)?(_y=y,mt=Sr(d.firstChild)):mt=y),gn(i,s,s.pendingProps.children,u),Yd(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&He&&((y=d=mt)&&(d=aB(d,s.type,s.pendingProps,xr),d!==null?(s.stateNode=d,mn=s,mt=Sr(d.firstChild),xr=!1,y=!0):y=!1),y||_a(s)),Ce(s),y=s.type,b=s.pendingProps,N=i!==null?i.memoizedProps:null,d=b.children,ky(y,b)?d=null:N!==null&&ky(y,N)&&(s.flags|=32),s.memoizedState!==null&&(y=Nv(i,s,x8,null,null,u),wc._currentValue=y),Yd(i,s),gn(i,s,d,u),s.child;case 6:return i===null&&He&&((i=u=mt)&&(u=sB(u,s.pendingProps,xr),u!==null?(s.stateNode=u,mn=s,mt=null,i=!0):i=!1),i||_a(s)),null;case 13:return HO(i,s,u);case 4:return Xe(s,s.stateNode.containerInfo),d=s.pendingProps,i===null?s.child=Hs(s,null,d,u):gn(i,s,d,u),s.child;case 11:return zO(i,s,s.type,s.pendingProps,u);case 7:return gn(i,s,s.pendingProps,u),s.child;case 8:return gn(i,s,s.pendingProps.children,u),s.child;case 12:return gn(i,s,s.pendingProps.children,u),s.child;case 10:return d=s.pendingProps,Da(s,s.type,d.value),gn(i,s,d.children,u),s.child;case 9:return y=s.type._context,d=s.pendingProps.children,qs(s),y=pn(y),d=d(y),s.flags|=1,gn(i,s,d,u),s.child;case 14:return LO(i,s,s.type,s.pendingProps,u);case 15:return IO(i,s,s.type,s.pendingProps,u);case 19:return GO(i,s,u);case 31:return k8(i,s,u);case 22:return BO(i,s,u,s.pendingProps);case 24:return qs(s),d=pn(Lt),i===null?(y=vv(),y===null&&(y=ct,b=pv(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=u),y=b),s.memoizedState={parent:d,cache:y},bv(s),Da(s,Lt,y)):((i.lanes&u)!==0&&(xv(i,s),tc(s,null,null,u),ec()),y=i.memoizedState,b=s.memoizedState,y.parent!==d?(y={parent:d,cache:d},s.memoizedState=y,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=y),Da(s,Lt,d)):(d=b.cache,Da(s,Lt,d),d!==y.cache&&mv(s,[Lt],u,!0))),gn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Ii(i){i.flags|=4}function ty(i,s,u,d,y){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(y&335544128)===y)if(i.stateNode.complete)i.flags|=8192;else if(wA())i.flags|=8192;else throw Fs=_d,yv}else i.flags&=-16777217}function WO(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!cE(s))if(wA())i.flags|=8192;else throw Fs=_d,yv}function Xd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?kj():536870912,i.lanes|=s,xl|=s)}function oc(i,s){if(!He)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function pt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,d=0;if(s)for(var y=i.child;y!==null;)u|=y.lanes|y.childLanes,d|=y.subtreeFlags&65011712,d|=y.flags&65011712,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)u|=y.lanes|y.childLanes,d|=y.subtreeFlags,d|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=d,i.childLanes=u,s}function C8(i,s,u){var d=s.pendingProps;switch(uv(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(s),null;case 1:return pt(s),null;case 3:return u=s.stateNode,d=null,i!==null&&(d=i.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),Di(Lt),Y(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(ol(s)?Ii(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,fv())),pt(s),null;case 26:var y=s.type,b=s.memoizedState;return i===null?(Ii(s),b!==null?(pt(s),WO(s,b)):(pt(s),ty(s,y,null,d,u))):b?b!==i.memoizedState?(Ii(s),pt(s),WO(s,b)):(pt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==d&&Ii(s),pt(s),ty(s,y,i,d,u)),null;case 27:if(Pe(s),u=me.current,y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Ii(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return pt(s),null}i=oe.current,ol(s)?k2(s):(i=nE(y,d,u),s.stateNode=i,Ii(s))}return pt(s),null;case 5:if(Pe(s),y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Ii(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return pt(s),null}if(b=oe.current,ol(s))k2(s);else{var N=fh(me.current);switch(b){case 1:b=N.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=N.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":b=N.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof d.is=="string"?N.createElement("select",{is:d.is}):N.createElement("select"),d.multiple?b.multiple=!0:d.size&&(b.size=d.size);break;default:b=typeof d.is=="string"?N.createElement(y,{is:d.is}):N.createElement(y)}}b[hn]=s,b[Un]=d;e:for(N=s.child;N!==null;){if(N.tag===5||N.tag===6)b.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===s)break e;for(;N.sibling===null;){if(N.return===null||N.return===s)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}s.stateNode=b;e:switch(vn(b,y,d),y){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ii(s)}}return pt(s),ty(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==d&&Ii(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(r(166));if(i=me.current,ol(s)){if(i=s.stateNode,u=s.memoizedProps,d=null,y=mn,y!==null)switch(y.tag){case 27:case 5:d=y.memoizedProps}i[hn]=s,i=!!(i.nodeValue===u||d!==null&&d.suppressHydrationWarning===!0||HA(i.nodeValue,u)),i||_a(s,!0)}else i=fh(i).createTextNode(d),i[hn]=s,s.stateNode=i}return pt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(d=ol(s),u!==null){if(i===null){if(!d)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[hn]=s}else Bs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pt(s),i=!1}else u=fv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?(ar(s),s):(ar(s),null);if((s.flags&128)!==0)throw Error(r(558))}return pt(s),null;case 13:if(d=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(y=ol(s),d!==null&&d.dehydrated!==null){if(i===null){if(!y)throw Error(r(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[hn]=s}else Bs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pt(s),y=!1}else y=fv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=y),y=!0;if(!y)return s.flags&256?(ar(s),s):(ar(s),null)}return ar(s),(s.flags&128)!==0?(s.lanes=u,s):(u=d!==null,i=i!==null&&i.memoizedState!==null,u&&(d=s.child,y=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(y=d.alternate.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==y&&(d.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),Xd(s,s.updateQueue),pt(s),null);case 4:return Y(),i===null&&jy(s.stateNode.containerInfo),pt(s),null;case 10:return Di(s.type),pt(s),null;case 19:if(Q(_t),d=s.memoizedState,d===null)return pt(s),null;if(y=(s.flags&128)!==0,b=d.rendering,b===null)if(y)oc(d,!1);else{if(Et!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(b=Ld(i),b!==null){for(s.flags|=128,oc(d,!1),i=b.updateQueue,s.updateQueue=i,Xd(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)j2(u,i),u=u.sibling;return se(_t,_t.current&1|2),He&&Pi(s,d.treeForkCount),s.child}i=i.sibling}d.tail!==null&&ke()>th&&(s.flags|=128,y=!0,oc(d,!1),s.lanes=4194304)}else{if(!y)if(i=Ld(b),i!==null){if(s.flags|=128,y=!0,i=i.updateQueue,s.updateQueue=i,Xd(s,i),oc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!b.alternate&&!He)return pt(s),null}else 2*ke()-d.renderingStartTime>th&&u!==536870912&&(s.flags|=128,y=!0,oc(d,!1),s.lanes=4194304);d.isBackwards?(b.sibling=s.child,s.child=b):(i=d.last,i!==null?i.sibling=b:s.child=b,d.last=b)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=ke(),i.sibling=null,u=_t.current,se(_t,y?u&1|2:u&1),He&&Pi(s,d.treeForkCount),i):(pt(s),null);case 22:case 23:return ar(s),Ov(),d=s.memoizedState!==null,i!==null?i.memoizedState!==null!==d&&(s.flags|=8192):d&&(s.flags|=8192),d?(u&536870912)!==0&&(s.flags&128)===0&&(pt(s),s.subtreeFlags&6&&(s.flags|=8192)):pt(s),u=s.updateQueue,u!==null&&Xd(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==u&&(s.flags|=2048),i!==null&&Q($s),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Di(Lt),pt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function M8(i,s){switch(uv(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Di(Lt),Y(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Pe(s),null;case 31:if(s.memoizedState!==null){if(ar(s),s.alternate===null)throw Error(r(340));Bs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(ar(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Bs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return Q(_t),null;case 4:return Y(),null;case 10:return Di(s.type),null;case 22:case 23:return ar(s),Ov(),i!==null&&Q($s),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Di(Lt),null;case 25:return null;default:return null}}function XO(i,s){switch(uv(s),s.tag){case 3:Di(Lt),Y();break;case 26:case 27:case 5:Pe(s);break;case 4:Y();break;case 31:s.memoizedState!==null&&ar(s);break;case 13:ar(s);break;case 19:Q(_t);break;case 10:Di(s.type);break;case 22:case 23:ar(s),Ov(),i!==null&&Q($s);break;case 24:Di(Lt)}}function lc(i,s){try{var u=s.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var y=d.next;u=y;do{if((u.tag&i)===i){d=void 0;var b=u.create,N=u.inst;d=b(),N.destroy=d}u=u.next}while(u!==y)}}catch(M){rt(s,s.return,M)}}function Ua(i,s,u){try{var d=s.updateQueue,y=d!==null?d.lastEffect:null;if(y!==null){var b=y.next;d=b;do{if((d.tag&i)===i){var N=d.inst,M=N.destroy;if(M!==void 0){N.destroy=void 0,y=s;var z=u,H=M;try{H()}catch(te){rt(y,z,te)}}}d=d.next}while(d!==b)}}catch(te){rt(s,s.return,te)}}function QO(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{q2(s,u)}catch(d){rt(i,i.return,d)}}}function ZO(i,s,u){u.props=Gs(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(d){rt(i,s,d)}}function uc(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var d=i.stateNode;break;case 30:d=i.stateNode;break;default:d=i.stateNode}typeof u=="function"?i.refCleanup=u(d):u.current=d}}catch(y){rt(i,s,y)}}function ai(i,s){var u=i.ref,d=i.refCleanup;if(u!==null)if(typeof d=="function")try{d()}catch(y){rt(i,s,y)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){rt(i,s,y)}else u.current=null}function JO(i){var s=i.type,u=i.memoizedProps,d=i.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(y){rt(i,i.return,y)}}function ny(i,s,u){try{var d=i.stateNode;J8(d,i.type,u,s),d[Un]=s}catch(y){rt(i,i.return,y)}}function eA(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ga(i.type)||i.tag===4}function ry(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||eA(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ga(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function iy(i,s,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=Ti));else if(d!==4&&(d===27&&Ga(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(iy(i,s,u),i=i.sibling;i!==null;)iy(i,s,u),i=i.sibling}function Qd(i,s,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(d!==4&&(d===27&&Ga(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Qd(i,s,u),i=i.sibling;i!==null;)Qd(i,s,u),i=i.sibling}function tA(i){var s=i.stateNode,u=i.memoizedProps;try{for(var d=i.type,y=s.attributes;y.length;)s.removeAttributeNode(y[0]);vn(s,d,u),s[hn]=i,s[Un]=u}catch(b){rt(i,i.return,b)}}var Bi=!1,Ut=!1,ay=!1,nA=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function P8(i,s){if(i=i.containerInfo,Ey=yh,i=m2(i),Zg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var y=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var N=0,M=-1,z=-1,H=0,te=0,re=i,K=null;t:for(;;){for(var X;re!==u||y!==0&&re.nodeType!==3||(M=N+y),re!==b||d!==0&&re.nodeType!==3||(z=N+d),re.nodeType===3&&(N+=re.nodeValue.length),(X=re.firstChild)!==null;)K=re,re=X;for(;;){if(re===i)break t;if(K===u&&++H===y&&(M=N),K===b&&++te===d&&(z=N),(X=re.nextSibling)!==null)break;re=K,K=re.parentNode}re=X}u=M===-1||z===-1?null:{start:M,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(Ny={focusedElem:i,selectionRange:u},yh=!1,Jt=s;Jt!==null;)if(s=Jt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Jt=i;else for(;Jt!==null;){switch(s=Jt,b=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)y=i[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&b!==null){i=void 0,u=s,y=b.memoizedProps,b=b.memoizedState,d=u.stateNode;try{var ve=Gs(u.type,y);i=d.getSnapshotBeforeUpdate(ve,b),d.__reactInternalSnapshotBeforeUpdate=i}catch(Te){rt(u,u.return,Te)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)Cy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Cy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Jt=i;break}Jt=s.return}}function rA(i,s,u){var d=u.flags;switch(u.tag){case 0:case 11:case 15:qi(i,u),d&4&&lc(5,u);break;case 1:if(qi(i,u),d&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(N){rt(u,u.return,N)}else{var y=Gs(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(y,s,i.__reactInternalSnapshotBeforeUpdate)}catch(N){rt(u,u.return,N)}}d&64&&QO(u),d&512&&uc(u,u.return);break;case 3:if(qi(i,u),d&64&&(i=u.updateQueue,i!==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{q2(i,s)}catch(N){rt(u,u.return,N)}}break;case 27:s===null&&d&4&&tA(u);case 26:case 5:qi(i,u),s===null&&d&4&&JO(u),d&512&&uc(u,u.return);break;case 12:qi(i,u);break;case 31:qi(i,u),d&4&&sA(i,u);break;case 13:qi(i,u),d&4&&oA(i,u),d&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=q8.bind(null,u),oB(i,u))));break;case 22:if(d=u.memoizedState!==null||Bi,!d){s=s!==null&&s.memoizedState!==null||Ut,y=Bi;var b=Ut;Bi=d,(Ut=s)&&!b?$i(i,u,(u.subtreeFlags&8772)!==0):qi(i,u),Bi=y,Ut=b}break;case 30:break;default:qi(i,u)}}function iA(i){var s=i.alternate;s!==null&&(i.alternate=null,iA(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&Rg(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var yt=null,$n=!1;function Ui(i,s,u){for(u=u.child;u!==null;)aA(i,s,u),u=u.sibling}function aA(i,s,u){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(_u,u)}catch{}switch(u.tag){case 26:Ut||ai(u,s),Ui(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Ut||ai(u,s);var d=yt,y=$n;Ga(u.type)&&(yt=u.stateNode,$n=!1),Ui(i,s,u),yc(u.stateNode),yt=d,$n=y;break;case 5:Ut||ai(u,s);case 6:if(d=yt,y=$n,yt=null,Ui(i,s,u),yt=d,$n=y,yt!==null)if($n)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(u.stateNode)}catch(b){rt(u,s,b)}else try{yt.removeChild(u.stateNode)}catch(b){rt(u,s,b)}break;case 18:yt!==null&&($n?(i=yt,QA(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),kl(i)):QA(yt,u.stateNode));break;case 4:d=yt,y=$n,yt=u.stateNode.containerInfo,$n=!0,Ui(i,s,u),yt=d,$n=y;break;case 0:case 11:case 14:case 15:Ua(2,u,s),Ut||Ua(4,u,s),Ui(i,s,u);break;case 1:Ut||(ai(u,s),d=u.stateNode,typeof d.componentWillUnmount=="function"&&ZO(u,s,d)),Ui(i,s,u);break;case 21:Ui(i,s,u);break;case 22:Ut=(d=Ut)||u.memoizedState!==null,Ui(i,s,u),Ut=d;break;default:Ui(i,s,u)}}function sA(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{kl(i)}catch(u){rt(s,s.return,u)}}}function oA(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{kl(i)}catch(u){rt(s,s.return,u)}}function _8(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new nA),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new nA),s;default:throw Error(r(435,i.tag))}}function Zd(i,s){var u=_8(i);s.forEach(function(d){if(!u.has(d)){u.add(d);var y=$8.bind(null,i,d);d.then(y,y)}})}function Vn(i,s){var u=s.deletions;if(u!==null)for(var d=0;d<u.length;d++){var y=u[d],b=i,N=s,M=N;e:for(;M!==null;){switch(M.tag){case 27:if(Ga(M.type)){yt=M.stateNode,$n=!1;break e}break;case 5:yt=M.stateNode,$n=!1;break e;case 3:case 4:yt=M.stateNode.containerInfo,$n=!0;break e}M=M.return}if(yt===null)throw Error(r(160));aA(b,N,y),yt=null,$n=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)lA(s,i),s=s.sibling}var qr=null;function lA(i,s){var u=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Vn(s,i),Fn(i),d&4&&(Ua(3,i,i.return),lc(3,i),Ua(5,i,i.return));break;case 1:Vn(s,i),Fn(i),d&512&&(Ut||u===null||ai(u,u.return)),d&64&&Bi&&(i=i.updateQueue,i!==null&&(d=i.callbacks,d!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?d:u.concat(d))));break;case 26:var y=qr;if(Vn(s,i),Fn(i),d&512&&(Ut||u===null||ai(u,u.return)),d&4){var b=u!==null?u.memoizedState:null;if(d=i.memoizedState,u===null)if(d===null)if(i.stateNode===null){e:{d=i.type,u=i.memoizedProps,y=y.ownerDocument||y;t:switch(d){case"title":b=y.getElementsByTagName("title")[0],(!b||b[zu]||b[hn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(d),y.head.insertBefore(b,y.querySelector("head > title"))),vn(b,d,u),b[hn]=i,Zt(b),d=b;break e;case"link":var N=lE("link","href",y).get(d+(u.href||""));if(N){for(var M=0;M<N.length;M++)if(b=N[M],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(M,1);break t}}b=y.createElement(d),vn(b,d,u),y.head.appendChild(b);break;case"meta":if(N=lE("meta","content",y).get(d+(u.content||""))){for(M=0;M<N.length;M++)if(b=N[M],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(M,1);break t}}b=y.createElement(d),vn(b,d,u),y.head.appendChild(b);break;default:throw Error(r(468,d))}b[hn]=i,Zt(b),d=b}i.stateNode=d}else uE(y,i.type,i.stateNode);else i.stateNode=oE(y,d,i.memoizedProps);else b!==d?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,d===null?uE(y,i.type,i.stateNode):oE(y,d,i.memoizedProps)):d===null&&i.stateNode!==null&&ny(i,i.memoizedProps,u.memoizedProps)}break;case 27:Vn(s,i),Fn(i),d&512&&(Ut||u===null||ai(u,u.return)),u!==null&&d&4&&ny(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Vn(s,i),Fn(i),d&512&&(Ut||u===null||ai(u,u.return)),i.flags&32){y=i.stateNode;try{Qo(y,"")}catch(ve){rt(i,i.return,ve)}}d&4&&i.stateNode!=null&&(y=i.memoizedProps,ny(i,y,u!==null?u.memoizedProps:y)),d&1024&&(ay=!0);break;case 6:if(Vn(s,i),Fn(i),d&4){if(i.stateNode===null)throw Error(r(162));d=i.memoizedProps,u=i.stateNode;try{u.nodeValue=d}catch(ve){rt(i,i.return,ve)}}break;case 3:if(mh=null,y=qr,qr=dh(s.containerInfo),Vn(s,i),qr=y,Fn(i),d&4&&u!==null&&u.memoizedState.isDehydrated)try{kl(s.containerInfo)}catch(ve){rt(i,i.return,ve)}ay&&(ay=!1,uA(i));break;case 4:d=qr,qr=dh(i.stateNode.containerInfo),Vn(s,i),Fn(i),qr=d;break;case 12:Vn(s,i),Fn(i);break;case 31:Vn(s,i),Fn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Zd(i,d)));break;case 13:Vn(s,i),Fn(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(eh=ke()),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Zd(i,d)));break;case 22:y=i.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,H=Bi,te=Ut;if(Bi=H||y,Ut=te||z,Vn(s,i),Ut=te,Bi=H,Fn(i),d&8192)e:for(s=i.stateNode,s._visibility=y?s._visibility&-2:s._visibility|1,y&&(u===null||z||Bi||Ut||Ys(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){z=u=s;try{if(b=z.stateNode,y)N=b.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{M=z.stateNode;var re=z.memoizedProps.style,K=re!=null&&re.hasOwnProperty("display")?re.display:null;M.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(ve){rt(z,z.return,ve)}}}else if(s.tag===6){if(u===null){z=s;try{z.stateNode.nodeValue=y?"":z.memoizedProps}catch(ve){rt(z,z.return,ve)}}}else if(s.tag===18){if(u===null){z=s;try{var X=z.stateNode;y?ZA(X,!0):ZA(z.stateNode,!1)}catch(ve){rt(z,z.return,ve)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}d&4&&(d=i.updateQueue,d!==null&&(u=d.retryQueue,u!==null&&(d.retryQueue=null,Zd(i,u))));break;case 19:Vn(s,i),Fn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Zd(i,d)));break;case 30:break;case 21:break;default:Vn(s,i),Fn(i)}}function Fn(i){var s=i.flags;if(s&2){try{for(var u,d=i.return;d!==null;){if(eA(d)){u=d;break}d=d.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,b=ry(i);Qd(i,b,y);break;case 5:var N=u.stateNode;u.flags&32&&(Qo(N,""),u.flags&=-33);var M=ry(i);Qd(i,M,N);break;case 3:case 4:var z=u.stateNode.containerInfo,H=ry(i);iy(i,H,z);break;default:throw Error(r(161))}}catch(te){rt(i,i.return,te)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function uA(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;uA(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function qi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)rA(i,s.alternate,s),s=s.sibling}function Ys(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Ua(4,s,s.return),Ys(s);break;case 1:ai(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&ZO(s,s.return,u),Ys(s);break;case 27:yc(s.stateNode);case 26:case 5:ai(s,s.return),Ys(s);break;case 22:s.memoizedState===null&&Ys(s);break;case 30:Ys(s);break;default:Ys(s)}i=i.sibling}}function $i(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var d=s.alternate,y=i,b=s,N=b.flags;switch(b.tag){case 0:case 11:case 15:$i(y,b,u),lc(4,b);break;case 1:if($i(y,b,u),d=b,y=d.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(H){rt(d,d.return,H)}if(d=b,y=d.updateQueue,y!==null){var M=d.stateNode;try{var z=y.shared.hiddenCallbacks;if(z!==null)for(y.shared.hiddenCallbacks=null,y=0;y<z.length;y++)U2(z[y],M)}catch(H){rt(d,d.return,H)}}u&&N&64&&QO(b),uc(b,b.return);break;case 27:tA(b);case 26:case 5:$i(y,b,u),u&&d===null&&N&4&&JO(b),uc(b,b.return);break;case 12:$i(y,b,u);break;case 31:$i(y,b,u),u&&N&4&&sA(y,b);break;case 13:$i(y,b,u),u&&N&4&&oA(y,b);break;case 22:b.memoizedState===null&&$i(y,b,u),uc(b,b.return);break;case 30:break;default:$i(y,b,u)}s=s.sibling}}function sy(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Wu(u))}function oy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Wu(i))}function $r(i,s,u,d){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)cA(i,s,u,d),s=s.sibling}function cA(i,s,u,d){var y=s.flags;switch(s.tag){case 0:case 11:case 15:$r(i,s,u,d),y&2048&&lc(9,s);break;case 1:$r(i,s,u,d);break;case 3:$r(i,s,u,d),y&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Wu(i)));break;case 12:if(y&2048){$r(i,s,u,d),i=s.stateNode;try{var b=s.memoizedProps,N=b.id,M=b.onPostCommit;typeof M=="function"&&M(N,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){rt(s,s.return,z)}}else $r(i,s,u,d);break;case 31:$r(i,s,u,d);break;case 13:$r(i,s,u,d);break;case 23:break;case 22:b=s.stateNode,N=s.alternate,s.memoizedState!==null?b._visibility&2?$r(i,s,u,d):cc(i,s):b._visibility&2?$r(i,s,u,d):(b._visibility|=2,vl(i,s,u,d,(s.subtreeFlags&10256)!==0||!1)),y&2048&&sy(N,s);break;case 24:$r(i,s,u,d),y&2048&&oy(s.alternate,s);break;default:$r(i,s,u,d)}}function vl(i,s,u,d,y){for(y=y&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var b=i,N=s,M=u,z=d,H=N.flags;switch(N.tag){case 0:case 11:case 15:vl(b,N,M,z,y),lc(8,N);break;case 23:break;case 22:var te=N.stateNode;N.memoizedState!==null?te._visibility&2?vl(b,N,M,z,y):cc(b,N):(te._visibility|=2,vl(b,N,M,z,y)),y&&H&2048&&sy(N.alternate,N);break;case 24:vl(b,N,M,z,y),y&&H&2048&&oy(N.alternate,N);break;default:vl(b,N,M,z,y)}s=s.sibling}}function cc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,d=s,y=d.flags;switch(d.tag){case 22:cc(u,d),y&2048&&sy(d.alternate,d);break;case 24:cc(u,d),y&2048&&oy(d.alternate,d);break;default:cc(u,d)}s=s.sibling}}var fc=8192;function yl(i,s,u){if(i.subtreeFlags&fc)for(i=i.child;i!==null;)fA(i,s,u),i=i.sibling}function fA(i,s,u){switch(i.tag){case 26:yl(i,s,u),i.flags&fc&&i.memoizedState!==null&&bB(u,qr,i.memoizedState,i.memoizedProps);break;case 5:yl(i,s,u);break;case 3:case 4:var d=qr;qr=dh(i.stateNode.containerInfo),yl(i,s,u),qr=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=fc,fc=16777216,yl(i,s,u),fc=d):yl(i,s,u));break;default:yl(i,s,u)}}function dA(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function dc(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var d=s[u];Jt=d,mA(d,i)}dA(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)hA(i),i=i.sibling}function hA(i){switch(i.tag){case 0:case 11:case 15:dc(i),i.flags&2048&&Ua(9,i,i.return);break;case 3:dc(i);break;case 12:dc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Jd(i)):dc(i);break;default:dc(i)}}function Jd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var d=s[u];Jt=d,mA(d,i)}dA(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ua(8,s,s.return),Jd(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Jd(s));break;default:Jd(s)}i=i.sibling}}function mA(i,s){for(;Jt!==null;){var u=Jt;switch(u.tag){case 0:case 11:case 15:Ua(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:Wu(u.memoizedState.cache)}if(d=u.child,d!==null)d.return=u,Jt=d;else e:for(u=i;Jt!==null;){d=Jt;var y=d.sibling,b=d.return;if(iA(d),d===u){Jt=null;break e}if(y!==null){y.return=b,Jt=y;break e}Jt=b}}}var D8={getCacheForType:function(i){var s=pn(Lt),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return pn(Lt).controller.signal}},R8=typeof WeakMap=="function"?WeakMap:Map,Qe=0,ct=null,qe=null,Ve=0,nt=0,sr=null,qa=!1,bl=!1,ly=!1,Vi=0,Et=0,$a=0,Ws=0,uy=0,or=0,xl=0,hc=null,Hn=null,cy=!1,eh=0,pA=0,th=1/0,nh=null,Va=null,Kt=0,Fa=null,wl=null,Fi=0,fy=0,dy=null,gA=null,mc=0,hy=null;function lr(){return(Qe&2)!==0&&Ve!==0?Ve&-Ve:q.T!==null?by():Pj()}function vA(){if(or===0)if((Ve&536870912)===0||He){var i=cd;cd<<=1,(cd&3932160)===0&&(cd=262144),or=i}else or=536870912;return i=ir.current,i!==null&&(i.flags|=32),or}function Kn(i,s,u){(i===ct&&(nt===2||nt===9)||i.cancelPendingCommit!==null)&&(Sl(i,0),Ha(i,Ve,or,!1)),Ru(i,u),((Qe&2)===0||i!==ct)&&(i===ct&&((Qe&2)===0&&(Ws|=u),Et===4&&Ha(i,Ve,or,!1)),si(i))}function yA(i,s,u){if((Qe&6)!==0)throw Error(r(327));var d=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Du(i,s),y=d?I8(i,s):py(i,s,!0),b=d;do{if(y===0){bl&&!d&&Ha(i,s,0,!1);break}else{if(u=i.current.alternate,b&&!z8(u)){y=py(i,s,!1),b=!1;continue}if(y===2){if(b=s,i.errorRecoveryDisabledLanes&b)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){s=N;e:{var M=i;y=hc;var z=M.current.memoizedState.isDehydrated;if(z&&(Sl(M,N).flags|=256),N=py(M,N,!1),N!==2){if(ly&&!z){M.errorRecoveryDisabledLanes|=b,Ws|=b,y=4;break e}b=Hn,Hn=y,b!==null&&(Hn===null?Hn=b:Hn.push.apply(Hn,b))}y=N}if(b=!1,y!==2)continue}}if(y===1){Sl(i,0),Ha(i,s,0,!0);break}e:{switch(d=i,b=y,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ha(d,s,or,!qa);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(y=eh+300-ke(),10<y)){if(Ha(d,s,or,!qa),dd(d,0,!0)!==0)break e;Fi=s,d.timeoutHandle=WA(bA.bind(null,d,u,Hn,nh,cy,s,or,Ws,xl,qa,b,"Throttled",-0,0),y);break e}bA(d,u,Hn,nh,cy,s,or,Ws,xl,qa,b,null,-0,0)}}break}while(!0);si(i)}function bA(i,s,u,d,y,b,N,M,z,H,te,re,K,X){if(i.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:Ti},fA(s,b,re);var ve=(b&62914560)===b?eh-ke():(b&4194048)===b?pA-ke():0;if(ve=xB(re,ve),ve!==null){Fi=b,i.cancelPendingCommit=ve(NA.bind(null,i,s,b,u,d,y,N,M,z,te,re,null,K,X)),Ha(i,b,N,!H);return}}NA(i,s,b,u,d,y,N,M,z)}function z8(i){for(var s=i;;){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 y=u[d],b=y.getSnapshot;y=y.value;try{if(!nr(b(),y))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ha(i,s,u,d){s&=~uy,s&=~Ws,i.suspendedLanes|=s,i.pingedLanes&=~s,d&&(i.warmLanes|=s),d=i.expirationTimes;for(var y=s;0<y;){var b=31-tr(y),N=1<<b;d[b]=-1,y&=~N}u!==0&&Tj(i,u,s)}function rh(){return(Qe&6)===0?(pc(0),!1):!0}function my(){if(qe!==null){if(nt===0)var i=qe.return;else i=qe,_i=Us=null,Cv(i),dl=null,Qu=0,i=qe;for(;i!==null;)XO(i.alternate,i),i=i.return;qe=null}}function Sl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,nB(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Fi=0,my(),ct=i,qe=u=Mi(i.current,null),Ve=s,nt=0,sr=null,qa=!1,bl=Du(i,s),ly=!1,xl=or=uy=Ws=$a=Et=0,Hn=hc=null,cy=!1,(s&8)!==0&&(s|=s&32);var d=i.entangledLanes;if(d!==0)for(i=i.entanglements,d&=s;0<d;){var y=31-tr(d),b=1<<y;s|=i[y],d&=~b}return Vi=s,Od(),u}function xA(i,s){ze=null,q.H=ac,s===fl||s===Pd?(s=z2(),nt=3):s===yv?(s=z2(),nt=4):nt=s===Kv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,sr=s,qe===null&&(Et=1,Kd(i,vr(s,i.current)))}function wA(){var i=ir.current;return i===null?!0:(Ve&4194048)===Ve?wr===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?i===wr:!1}function SA(){var i=q.H;return q.H=ac,i===null?ac:i}function jA(){var i=q.A;return q.A=D8,i}function ih(){Et=4,qa||(Ve&4194048)!==Ve&&ir.current!==null||(bl=!0),($a&134217727)===0&&(Ws&134217727)===0||ct===null||Ha(ct,Ve,or,!1)}function py(i,s,u){var d=Qe;Qe|=2;var y=SA(),b=jA();(ct!==i||Ve!==s)&&(nh=null,Sl(i,s)),s=!1;var N=Et;e:do try{if(nt!==0&&qe!==null){var M=qe,z=sr;switch(nt){case 8:my(),N=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(s=!0);var H=nt;if(nt=0,sr=null,jl(i,M,z,H),u&&bl){N=0;break e}break;default:H=nt,nt=0,sr=null,jl(i,M,z,H)}}L8(),N=Et;break}catch(te){xA(i,te)}while(!0);return s&&i.shellSuspendCounter++,_i=Us=null,Qe=d,q.H=y,q.A=b,qe===null&&(ct=null,Ve=0,Od()),N}function L8(){for(;qe!==null;)OA(qe)}function I8(i,s){var u=Qe;Qe|=2;var d=SA(),y=jA();ct!==i||Ve!==s?(nh=null,th=ke()+500,Sl(i,s)):bl=Du(i,s);e:do try{if(nt!==0&&qe!==null){s=qe;var b=sr;t:switch(nt){case 1:nt=0,sr=null,jl(i,s,b,1);break;case 2:case 9:if(D2(b)){nt=0,sr=null,AA(s);break}s=function(){nt!==2&&nt!==9||ct!==i||(nt=7),si(i)},b.then(s,s);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:D2(b)?(nt=0,sr=null,AA(s)):(nt=0,sr=null,jl(i,s,b,7));break;case 5:var N=null;switch(qe.tag){case 26:N=qe.memoizedState;case 5:case 27:var M=qe;if(N?cE(N):M.stateNode.complete){nt=0,sr=null;var z=M.sibling;if(z!==null)qe=z;else{var H=M.return;H!==null?(qe=H,ah(H)):qe=null}break t}}nt=0,sr=null,jl(i,s,b,5);break;case 6:nt=0,sr=null,jl(i,s,b,6);break;case 8:my(),Et=6;break e;default:throw Error(r(462))}}B8();break}catch(te){xA(i,te)}while(!0);return _i=Us=null,q.H=d,q.A=y,Qe=u,qe!==null?0:(ct=null,Ve=0,Od(),Et)}function B8(){for(;qe!==null&&!pe();)OA(qe)}function OA(i){var s=YO(i.alternate,i,Vi);i.memoizedProps=i.pendingProps,s===null?ah(i):qe=s}function AA(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=$O(u,s,s.pendingProps,s.type,void 0,Ve);break;case 11:s=$O(u,s,s.pendingProps,s.type.render,s.ref,Ve);break;case 5:Cv(s);default:XO(u,s),s=qe=j2(s,Vi),s=YO(u,s,Vi)}i.memoizedProps=i.pendingProps,s===null?ah(i):qe=s}function jl(i,s,u,d){_i=Us=null,Cv(s),dl=null,Qu=0;var y=s.return;try{if(N8(i,y,s,u,Ve)){Et=1,Kd(i,vr(u,i.current)),qe=null;return}}catch(b){if(y!==null)throw qe=y,b;Et=1,Kd(i,vr(u,i.current)),qe=null;return}s.flags&32768?(He||d===1?i=!0:bl||(Ve&536870912)!==0?i=!1:(qa=i=!0,(d===2||d===9||d===3||d===6)&&(d=ir.current,d!==null&&d.tag===13&&(d.flags|=16384))),EA(s,i)):ah(s)}function ah(i){var s=i;do{if((s.flags&32768)!==0){EA(s,qa);return}i=s.return;var u=C8(s.alternate,s,Vi);if(u!==null){qe=u;return}if(s=s.sibling,s!==null){qe=s;return}qe=s=i}while(s!==null);Et===0&&(Et=5)}function EA(i,s){do{var u=M8(i.alternate,i);if(u!==null){u.flags&=32767,qe=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){qe=i;return}qe=i=u}while(i!==null);Et=6,qe=null}function NA(i,s,u,d,y,b,N,M,z){i.cancelPendingCommit=null;do sh();while(Kt!==0);if((Qe&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(b=s.lanes|s.childLanes,b|=rv,yI(i,u,b,N,M,z),i===ct&&(qe=ct=null,Ve=0),wl=s,Fa=i,Fi=u,fy=b,dy=y,gA=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,V8(Ht,function(){return PA(),null})):(i.callbackNode=null,i.callbackPriority=0),d=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||d){d=q.T,q.T=null,y=G.p,G.p=2,N=Qe,Qe|=4;try{P8(i,s,u)}finally{Qe=N,G.p=y,q.T=d}}Kt=1,kA(),TA(),CA()}}function kA(){if(Kt===1){Kt=0;var i=Fa,s=wl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=q.T,q.T=null;var d=G.p;G.p=2;var y=Qe;Qe|=4;try{lA(s,i);var b=Ny,N=m2(i.containerInfo),M=b.focusedElem,z=b.selectionRange;if(N!==M&&M&&M.ownerDocument&&h2(M.ownerDocument.documentElement,M)){if(z!==null&&Zg(M)){var H=z.start,te=z.end;if(te===void 0&&(te=H),"selectionStart"in M)M.selectionStart=H,M.selectionEnd=Math.min(te,M.value.length);else{var re=M.ownerDocument||document,K=re&&re.defaultView||window;if(K.getSelection){var X=K.getSelection(),ve=M.textContent.length,Te=Math.min(z.start,ve),lt=z.end===void 0?Te:Math.min(z.end,ve);!X.extend&&Te>lt&&(N=lt,lt=Te,Te=N);var U=d2(M,Te),B=d2(M,lt);if(U&&B&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==B.node||X.focusOffset!==B.offset)){var F=re.createRange();F.setStart(U.node,U.offset),X.removeAllRanges(),Te>lt?(X.addRange(F),X.extend(B.node,B.offset)):(F.setEnd(B.node,B.offset),X.addRange(F))}}}}for(re=[],X=M;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<re.length;M++){var ne=re[M];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}yh=!!Ey,Ny=Ey=null}finally{Qe=y,G.p=d,q.T=u}}i.current=s,Kt=2}}function TA(){if(Kt===2){Kt=0;var i=Fa,s=wl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=q.T,q.T=null;var d=G.p;G.p=2;var y=Qe;Qe|=4;try{rA(i,s.alternate,s)}finally{Qe=y,G.p=d,q.T=u}}Kt=3}}function CA(){if(Kt===4||Kt===3){Kt=0,Ne();var i=Fa,s=wl,u=Fi,d=gA;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Kt=5:(Kt=0,wl=Fa=null,MA(i,i.pendingLanes));var y=i.pendingLanes;if(y===0&&(Va=null),_g(u),s=s.stateNode,er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(_u,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=q.T,y=G.p,G.p=2,q.T=null;try{for(var b=i.onRecoverableError,N=0;N<d.length;N++){var M=d[N];b(M.value,{componentStack:M.stack})}}finally{q.T=s,G.p=y}}(Fi&3)!==0&&sh(),si(i),y=i.pendingLanes,(u&261930)!==0&&(y&42)!==0?i===hy?mc++:(mc=0,hy=i):mc=0,pc(0)}}function MA(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Wu(s)))}function sh(){return kA(),TA(),CA(),PA()}function PA(){if(Kt!==5)return!1;var i=Fa,s=fy;fy=0;var u=_g(Fi),d=q.T,y=G.p;try{G.p=32>u?32:u,q.T=null,u=dy,dy=null;var b=Fa,N=Fi;if(Kt=0,wl=Fa=null,Fi=0,(Qe&6)!==0)throw Error(r(331));var M=Qe;if(Qe|=4,hA(b.current),cA(b,b.current,N,u),Qe=M,pc(0,!1),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(_u,b)}catch{}return!0}finally{G.p=y,q.T=d,MA(i,s)}}function _A(i,s,u){s=vr(u,s),s=Hv(i.stateNode,s,2),i=La(i,s,2),i!==null&&(Ru(i,2),si(i))}function rt(i,s,u){if(i.tag===3)_A(i,i,u);else for(;s!==null;){if(s.tag===3){_A(s,i,u);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Va===null||!Va.has(d))){i=vr(u,i),u=DO(2),d=La(s,u,2),d!==null&&(RO(u,d,s,i),Ru(d,2),si(d));break}}s=s.return}}function gy(i,s,u){var d=i.pingCache;if(d===null){d=i.pingCache=new R8;var y=new Set;d.set(s,y)}else y=d.get(s),y===void 0&&(y=new Set,d.set(s,y));y.has(u)||(ly=!0,y.add(u),i=U8.bind(null,i,s,u),s.then(i,i))}function U8(i,s,u){var d=i.pingCache;d!==null&&d.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,ct===i&&(Ve&u)===u&&(Et===4||Et===3&&(Ve&62914560)===Ve&&300>ke()-eh?(Qe&2)===0&&Sl(i,0):uy|=u,xl===Ve&&(xl=0)),si(i)}function DA(i,s){s===0&&(s=kj()),i=Ls(i,s),i!==null&&(Ru(i,s),si(i))}function q8(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),DA(i,u)}function $8(i,s){var u=0;switch(i.tag){case 31:case 13:var d=i.stateNode,y=i.memoizedState;y!==null&&(u=y.retryLane);break;case 19:d=i.stateNode;break;case 22:d=i.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(s),DA(i,u)}function V8(i,s){return Vo(i,s)}var oh=null,Ol=null,vy=!1,lh=!1,yy=!1,Ka=0;function si(i){i!==Ol&&i.next===null&&(Ol===null?oh=Ol=i:Ol=Ol.next=i),lh=!0,vy||(vy=!0,H8())}function pc(i,s){if(!yy&&lh){yy=!0;do for(var u=!1,d=oh;d!==null;){if(i!==0){var y=d.pendingLanes;if(y===0)var b=0;else{var N=d.suspendedLanes,M=d.pingedLanes;b=(1<<31-tr(42|i)+1)-1,b&=y&~(N&~M),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,IA(d,b))}else b=Ve,b=dd(d,d===ct?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||Du(d,b)||(u=!0,IA(d,b));d=d.next}while(u);yy=!1}}function F8(){RA()}function RA(){lh=vy=!1;var i=0;Ka!==0&&tB()&&(i=Ka);for(var s=ke(),u=null,d=oh;d!==null;){var y=d.next,b=zA(d,s);b===0?(d.next=null,u===null?oh=y:u.next=y,y===null&&(Ol=u)):(u=d,(i!==0||(b&3)!==0)&&(lh=!0)),d=y}Kt!==0&&Kt!==5||pc(i),Ka!==0&&(Ka=0)}function zA(i,s){for(var u=i.suspendedLanes,d=i.pingedLanes,y=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var N=31-tr(b),M=1<<N,z=y[N];z===-1?((M&u)===0||(M&d)!==0)&&(y[N]=vI(M,s)):z<=s&&(i.expiredLanes|=M),b&=~M}if(s=ct,u=Ve,u=dd(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d=i.callbackNode,u===0||i===s&&(nt===2||nt===9)||i.cancelPendingCommit!==null)return d!==null&&d!==null&&Fo(d),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Du(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(d!==null&&Fo(d),_g(u)){case 2:case 8:u=dn;break;case 32:u=Ht;break;case 268435456:u=Nj;break;default:u=Ht}return d=LA.bind(null,i),u=Vo(u,d),i.callbackPriority=s,i.callbackNode=u,s}return d!==null&&d!==null&&Fo(d),i.callbackPriority=2,i.callbackNode=null,2}function LA(i,s){if(Kt!==0&&Kt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(sh()&&i.callbackNode!==u)return null;var d=Ve;return d=dd(i,i===ct?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d===0?null:(yA(i,d,s),zA(i,ke()),i.callbackNode!=null&&i.callbackNode===u?LA.bind(null,i):null)}function IA(i,s){if(sh())return null;yA(i,s,!0)}function H8(){rB(function(){(Qe&6)!==0?Vo(fn,F8):RA()})}function by(){if(Ka===0){var i=ul;i===0&&(i=ud,ud<<=1,(ud&261888)===0&&(ud=256)),Ka=i}return Ka}function BA(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:gd(""+i)}function UA(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function K8(i,s,u,d,y){if(s==="submit"&&u&&u.stateNode===y){var b=BA((y[Un]||null).action),N=d.submitter;N&&(s=(s=N[Un]||null)?BA(s.formAction):N.getAttribute("formAction"),s!==null&&(b=s,N=null));var M=new xd("action","action",null,d,y);i.push({event:M,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ka!==0){var z=N?UA(y,N):new FormData(y);Bv(u,{pending:!0,data:z,method:y.method,action:b},null,z)}}else typeof b=="function"&&(M.preventDefault(),z=N?UA(y,N):new FormData(y),Bv(u,{pending:!0,data:z,method:y.method,action:b},b,z))},currentTarget:y}]})}}for(var xy=0;xy<nv.length;xy++){var wy=nv[xy],G8=wy.toLowerCase(),Y8=wy[0].toUpperCase()+wy.slice(1);Ur(G8,"on"+Y8)}Ur(v2,"onAnimationEnd"),Ur(y2,"onAnimationIteration"),Ur(b2,"onAnimationStart"),Ur("dblclick","onDoubleClick"),Ur("focusin","onFocus"),Ur("focusout","onBlur"),Ur(c8,"onTransitionRun"),Ur(f8,"onTransitionStart"),Ur(d8,"onTransitionCancel"),Ur(x2,"onTransitionEnd"),Wo("onMouseEnter",["mouseout","mouseover"]),Wo("onMouseLeave",["mouseout","mouseover"]),Wo("onPointerEnter",["pointerout","pointerover"]),Wo("onPointerLeave",["pointerout","pointerover"]),_s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_s("onBeforeInput",["compositionend","keypress","textInput","paste"]),_s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gc="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(" "),W8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gc));function qA(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var d=i[u],y=d.event;d=d.listeners;e:{var b=void 0;if(s)for(var N=d.length-1;0<=N;N--){var M=d[N],z=M.instance,H=M.currentTarget;if(M=M.listener,z!==b&&y.isPropagationStopped())break e;b=M,y.currentTarget=H;try{b(y)}catch(te){jd(te)}y.currentTarget=null,b=z}else for(N=0;N<d.length;N++){if(M=d[N],z=M.instance,H=M.currentTarget,M=M.listener,z!==b&&y.isPropagationStopped())break e;b=M,y.currentTarget=H;try{b(y)}catch(te){jd(te)}y.currentTarget=null,b=z}}}}function $e(i,s){var u=s[Dg];u===void 0&&(u=s[Dg]=new Set);var d=i+"__bubble";u.has(d)||($A(s,i,2,!1),u.add(d))}function Sy(i,s,u){var d=0;s&&(d|=4),$A(u,i,d,s)}var uh="_reactListening"+Math.random().toString(36).slice(2);function jy(i){if(!i[uh]){i[uh]=!0,Rj.forEach(function(u){u!=="selectionchange"&&(W8.has(u)||Sy(u,!1,i),Sy(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[uh]||(s[uh]=!0,Sy("selectionchange",!1,s))}}function $A(i,s,u,d){switch(vE(s)){case 2:var y=jB;break;case 8:y=OB;break;default:y=Iy}u=y.bind(null,s,u,i),y=void 0,!Vg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(y=!0),d?y!==void 0?i.addEventListener(s,u,{capture:!0,passive:y}):i.addEventListener(s,u,!0):y!==void 0?i.addEventListener(s,u,{passive:y}):i.addEventListener(s,u,!1)}function Oy(i,s,u,d,y){var b=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var N=d.tag;if(N===3||N===4){var M=d.stateNode.containerInfo;if(M===y)break;if(N===4)for(N=d.return;N!==null;){var z=N.tag;if((z===3||z===4)&&N.stateNode.containerInfo===y)return;N=N.return}for(;M!==null;){if(N=Ko(M),N===null)return;if(z=N.tag,z===5||z===6||z===26||z===27){d=b=N;continue e}M=M.parentNode}}d=d.return}Gj(function(){var H=b,te=qg(u),re=[];e:{var K=w2.get(i);if(K!==void 0){var X=xd,ve=i;switch(i){case"keypress":if(yd(u)===0)break e;case"keydown":case"keyup":X=$I;break;case"focusin":ve="focus",X=Gg;break;case"focusout":ve="blur",X=Gg;break;case"beforeblur":case"afterblur":X=Gg;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=Xj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=CI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=HI;break;case v2:case y2:case b2:X=_I;break;case x2:X=GI;break;case"scroll":case"scrollend":X=kI;break;case"wheel":X=WI;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=Zj;break;case"toggle":case"beforetoggle":X=QI}var Te=(s&4)!==0,lt=!Te&&(i==="scroll"||i==="scrollend"),U=Te?K!==null?K+"Capture":null:K;Te=[];for(var B=H,F;B!==null;){var ne=B;if(F=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||F===null||U===null||(ne=Iu(B,U),ne!=null&&Te.push(vc(B,ne,F))),lt)break;B=B.return}0<Te.length&&(K=new X(K,ve,null,u,te),re.push({event:K,listeners:Te}))}}if((s&7)===0){e:{if(K=i==="mouseover"||i==="pointerover",X=i==="mouseout"||i==="pointerout",K&&u!==Ug&&(ve=u.relatedTarget||u.fromElement)&&(Ko(ve)||ve[Ho]))break e;if((X||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,X?(ve=u.relatedTarget||u.toElement,X=H,ve=ve?Ko(ve):null,ve!==null&&(lt=o(ve),Te=ve.tag,ve!==lt||Te!==5&&Te!==27&&Te!==6)&&(ve=null)):(X=null,ve=H),X!==ve)){if(Te=Xj,ne="onMouseLeave",U="onMouseEnter",B="mouse",(i==="pointerout"||i==="pointerover")&&(Te=Zj,ne="onPointerLeave",U="onPointerEnter",B="pointer"),lt=X==null?K:Lu(X),F=ve==null?K:Lu(ve),K=new Te(ne,B+"leave",X,u,te),K.target=lt,K.relatedTarget=F,ne=null,Ko(te)===H&&(Te=new Te(U,B+"enter",ve,u,te),Te.target=F,Te.relatedTarget=lt,ne=Te),lt=ne,X&&ve)t:{for(Te=X8,U=X,B=ve,F=0,ne=U;ne;ne=Te(ne))F++;ne=0;for(var Ae=B;Ae;Ae=Te(Ae))ne++;for(;0<F-ne;)U=Te(U),F--;for(;0<ne-F;)B=Te(B),ne--;for(;F--;){if(U===B||B!==null&&U===B.alternate){Te=U;break t}U=Te(U),B=Te(B)}Te=null}else Te=null;X!==null&&VA(re,K,X,Te,!1),ve!==null&<!==null&&VA(re,lt,ve,Te,!0)}}e:{if(K=H?Lu(H):window,X=K.nodeName&&K.nodeName.toLowerCase(),X==="select"||X==="input"&&K.type==="file")var Ge=s2;else if(i2(K))if(o2)Ge=o8;else{Ge=a8;var we=i8}else X=K.nodeName,!X||X.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?H&&Bg(H.elementType)&&(Ge=s2):Ge=s8;if(Ge&&(Ge=Ge(i,H))){a2(re,Ge,u,te);break e}we&&we(i,K,H),i==="focusout"&&H&&K.type==="number"&&H.memoizedProps.value!=null&&Ig(K,"number",K.value)}switch(we=H?Lu(H):window,i){case"focusin":(i2(we)||we.contentEditable==="true")&&(tl=we,Jg=H,Ku=null);break;case"focusout":Ku=Jg=tl=null;break;case"mousedown":ev=!0;break;case"contextmenu":case"mouseup":case"dragend":ev=!1,p2(re,u,te);break;case"selectionchange":if(u8)break;case"keydown":case"keyup":p2(re,u,te)}var Le;if(Wg)e:{switch(i){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else el?n2(i,u)&&(Fe="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Fe="onCompositionStart");Fe&&(Jj&&u.locale!=="ko"&&(el||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&el&&(Le=Yj()):(Ca=te,Fg="value"in Ca?Ca.value:Ca.textContent,el=!0)),we=ch(H,Fe),0<we.length&&(Fe=new Qj(Fe,i,null,u,te),re.push({event:Fe,listeners:we}),Le?Fe.data=Le:(Le=r2(u),Le!==null&&(Fe.data=Le)))),(Le=JI?e8(i,u):t8(i,u))&&(Fe=ch(H,"onBeforeInput"),0<Fe.length&&(we=new Qj("onBeforeInput","beforeinput",null,u,te),re.push({event:we,listeners:Fe}),we.data=Le)),K8(re,i,H,u,te)}qA(re,s)})}function vc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function ch(i,s){for(var u=s+"Capture",d=[];i!==null;){var y=i,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=Iu(i,u),y!=null&&d.unshift(vc(i,y,b)),y=Iu(i,s),y!=null&&d.push(vc(i,y,b))),i.tag===3)return d;i=i.return}return[]}function X8(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function VA(i,s,u,d,y){for(var b=s._reactName,N=[];u!==null&&u!==d;){var M=u,z=M.alternate,H=M.stateNode;if(M=M.tag,z!==null&&z===d)break;M!==5&&M!==26&&M!==27||H===null||(z=H,y?(H=Iu(u,b),H!=null&&N.unshift(vc(u,H,z))):y||(H=Iu(u,b),H!=null&&N.push(vc(u,H,z)))),u=u.return}N.length!==0&&i.push({event:s,listeners:N})}var Q8=/\r\n?/g,Z8=/\u0000|\uFFFD/g;function FA(i){return(typeof i=="string"?i:""+i).replace(Q8,`
|
|
49
|
+
`).replace(Z8,"")}function HA(i,s){return s=FA(s),FA(i)===s}function ot(i,s,u,d,y,b){switch(u){case"children":typeof d=="string"?s==="body"||s==="textarea"&&d===""||Qo(i,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&Qo(i,""+d);break;case"className":md(i,"class",d);break;case"tabIndex":md(i,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":md(i,u,d);break;case"style":Hj(i,d,b);break;case"data":if(s!=="object"){md(i,"data",d);break}case"src":case"href":if(d===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(u);break}d=gd(""+d),i.setAttribute(u,d);break;case"action":case"formAction":if(typeof d=="function"){i.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 b=="function"&&(u==="formAction"?(s!=="input"&&ot(i,s,"name",y.name,y,null),ot(i,s,"formEncType",y.formEncType,y,null),ot(i,s,"formMethod",y.formMethod,y,null),ot(i,s,"formTarget",y.formTarget,y,null)):(ot(i,s,"encType",y.encType,y,null),ot(i,s,"method",y.method,y,null),ot(i,s,"target",y.target,y,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(u);break}d=gd(""+d),i.setAttribute(u,d);break;case"onClick":d!=null&&(i.onclick=Ti);break;case"onScroll":d!=null&&$e("scroll",i);break;case"onScrollEnd":d!=null&&$e("scrollend",i);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":i.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"){i.removeAttribute("xlink:href");break}u=gd(""+d),i.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"?i.setAttribute(u,""+d):i.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"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":d===!0?i.setAttribute(u,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(u,d):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?i.setAttribute(u,d):i.removeAttribute(u);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?i.removeAttribute(u):i.setAttribute(u,d);break;case"popover":$e("beforetoggle",i),$e("toggle",i),hd(i,"popover",d);break;case"xlinkActuate":ki(i,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":ki(i,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":ki(i,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":ki(i,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":ki(i,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":ki(i,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":ki(i,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":ki(i,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":ki(i,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":hd(i,"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=EI.get(u)||u,hd(i,u,d))}}function Ay(i,s,u,d,y,b){switch(u){case"style":Hj(i,d,b);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof d=="string"?Qo(i,d):(typeof d=="number"||typeof d=="bigint")&&Qo(i,""+d);break;case"onScroll":d!=null&&$e("scroll",i);break;case"onScrollEnd":d!=null&&$e("scrollend",i);break;case"onClick":d!=null&&(i.onclick=Ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zj.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),s=u.slice(2,y?u.length-7:void 0),b=i[Un]||null,b=b!=null?b[u]:null,typeof b=="function"&&i.removeEventListener(s,b,y),typeof d=="function")){typeof b!="function"&&b!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,d,y);break e}u in i?i[u]=d:d===!0?i.setAttribute(u,""):hd(i,u,d)}}}function vn(i,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",i),$e("load",i);var d=!1,y=!1,b;for(b in u)if(u.hasOwnProperty(b)){var N=u[b];if(N!=null)switch(b){case"src":d=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ot(i,s,b,N,u,null)}}y&&ot(i,s,"srcSet",u.srcSet,u,null),d&&ot(i,s,"src",u.src,u,null);return;case"input":$e("invalid",i);var M=b=N=y=null,z=null,H=null;for(d in u)if(u.hasOwnProperty(d)){var te=u[d];if(te!=null)switch(d){case"name":y=te;break;case"type":N=te;break;case"checked":z=te;break;case"defaultChecked":H=te;break;case"value":b=te;break;case"defaultValue":M=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,s));break;default:ot(i,s,d,te,u,null)}}qj(i,b,M,z,H,N,y,!1);return;case"select":$e("invalid",i),d=N=b=null;for(y in u)if(u.hasOwnProperty(y)&&(M=u[y],M!=null))switch(y){case"value":b=M;break;case"defaultValue":N=M;break;case"multiple":d=M;default:ot(i,s,y,M,u,null)}s=b,u=N,i.multiple=!!d,s!=null?Xo(i,!!d,s,!1):u!=null&&Xo(i,!!d,u,!0);return;case"textarea":$e("invalid",i),b=y=d=null;for(N in u)if(u.hasOwnProperty(N)&&(M=u[N],M!=null))switch(N){case"value":d=M;break;case"defaultValue":y=M;break;case"children":b=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:ot(i,s,N,M,u,null)}Vj(i,d,y,b);return;case"option":for(z in u)if(u.hasOwnProperty(z)&&(d=u[z],d!=null))switch(z){case"selected":i.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ot(i,s,z,d,u,null)}return;case"dialog":$e("beforetoggle",i),$e("toggle",i),$e("cancel",i),$e("close",i);break;case"iframe":case"object":$e("load",i);break;case"video":case"audio":for(d=0;d<gc.length;d++)$e(gc[d],i);break;case"image":$e("error",i),$e("load",i);break;case"details":$e("toggle",i);break;case"embed":case"source":case"link":$e("error",i),$e("load",i);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:ot(i,s,H,d,u,null)}return;default:if(Bg(s)){for(te in u)u.hasOwnProperty(te)&&(d=u[te],d!==void 0&&Ay(i,s,te,d,u,void 0));return}}for(M in u)u.hasOwnProperty(M)&&(d=u[M],d!=null&&ot(i,s,M,d,u,null))}function J8(i,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 y=null,b=null,N=null,M=null,z=null,H=null,te=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)||ot(i,s,X,null,d,re)}}for(var K in d){var X=d[K];if(re=u[K],d.hasOwnProperty(K)&&(X!=null||re!=null))switch(K){case"type":b=X;break;case"name":y=X;break;case"checked":H=X;break;case"defaultChecked":te=X;break;case"value":N=X;break;case"defaultValue":M=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:X!==re&&ot(i,s,K,X,d,re)}}Lg(i,N,M,z,H,te,b,y);return;case"select":X=N=M=K=null;for(b in u)if(z=u[b],u.hasOwnProperty(b)&&z!=null)switch(b){case"value":break;case"multiple":X=z;default:d.hasOwnProperty(b)||ot(i,s,b,null,d,z)}for(y in d)if(b=d[y],z=u[y],d.hasOwnProperty(y)&&(b!=null||z!=null))switch(y){case"value":K=b;break;case"defaultValue":M=b;break;case"multiple":N=b;default:b!==z&&ot(i,s,y,b,d,z)}s=M,u=N,d=X,K!=null?Xo(i,!!u,K,!1):!!d!=!!u&&(s!=null?Xo(i,!!u,s,!0):Xo(i,!!u,u?[]:"",!1));return;case"textarea":X=K=null;for(M in u)if(y=u[M],u.hasOwnProperty(M)&&y!=null&&!d.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:ot(i,s,M,null,d,y)}for(N in d)if(y=d[N],b=u[N],d.hasOwnProperty(N)&&(y!=null||b!=null))switch(N){case"value":K=y;break;case"defaultValue":X=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==b&&ot(i,s,N,y,d,b)}$j(i,K,X);return;case"option":for(var ve in u)if(K=u[ve],u.hasOwnProperty(ve)&&K!=null&&!d.hasOwnProperty(ve))switch(ve){case"selected":i.selected=!1;break;default:ot(i,s,ve,null,d,K)}for(z in d)if(K=d[z],X=u[z],d.hasOwnProperty(z)&&K!==X&&(K!=null||X!=null))switch(z){case"selected":i.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ot(i,s,z,K,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 Te in u)K=u[Te],u.hasOwnProperty(Te)&&K!=null&&!d.hasOwnProperty(Te)&&ot(i,s,Te,null,d,K);for(H in d)if(K=d[H],X=u[H],d.hasOwnProperty(H)&&K!==X&&(K!=null||X!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,s));break;default:ot(i,s,H,K,d,X)}return;default:if(Bg(s)){for(var lt in u)K=u[lt],u.hasOwnProperty(lt)&&K!==void 0&&!d.hasOwnProperty(lt)&&Ay(i,s,lt,void 0,d,K);for(te in d)K=d[te],X=u[te],!d.hasOwnProperty(te)||K===X||K===void 0&&X===void 0||Ay(i,s,te,K,d,X);return}}for(var U in u)K=u[U],u.hasOwnProperty(U)&&K!=null&&!d.hasOwnProperty(U)&&ot(i,s,U,null,d,K);for(re in d)K=d[re],X=u[re],!d.hasOwnProperty(re)||K===X||K==null&&X==null||ot(i,s,re,K,d,X)}function KA(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eB(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),d=0;d<u.length;d++){var y=u[d],b=y.transferSize,N=y.initiatorType,M=y.duration;if(b&&M&&KA(N)){for(N=0,M=y.responseEnd,d+=1;d<u.length;d++){var z=u[d],H=z.startTime;if(H>M)break;var te=z.transferSize,re=z.initiatorType;te&&KA(re)&&(z=z.responseEnd,N+=te*(z<M?1:(M-H)/(z-H)))}if(--d,s+=8*(b+N)/(y.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Ey=null,Ny=null;function fh(i){return i.nodeType===9?i:i.ownerDocument}function GA(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function YA(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function ky(i,s){return i==="textarea"||i==="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 Ty=null;function tB(){var i=window.event;return i&&i.type==="popstate"?i===Ty?!1:(Ty=i,!0):(Ty=null,!1)}var WA=typeof setTimeout=="function"?setTimeout:void 0,nB=typeof clearTimeout=="function"?clearTimeout:void 0,XA=typeof Promise=="function"?Promise:void 0,rB=typeof queueMicrotask=="function"?queueMicrotask:typeof XA<"u"?function(i){return XA.resolve(null).then(i).catch(iB)}:WA;function iB(i){setTimeout(function(){throw i})}function Ga(i){return i==="head"}function QA(i,s){var u=s,d=0;do{var y=u.nextSibling;if(i.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(d===0){i.removeChild(y),kl(s);return}d--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")d++;else if(u==="html")yc(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,yc(u);for(var b=u.firstChild;b;){var N=b.nextSibling,M=b.nodeName;b[zu]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=N}}else u==="body"&&yc(i.ownerDocument.body);u=y}while(u);kl(s)}function ZA(i,s){var u=i;i=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(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=d}while(u)}function Cy(i){var s=i.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":Cy(u),Rg(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function aB(i,s,u,d){for(;i.nodeType===1;){var y=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!d&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(d){if(!i[zu])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(b=i.getAttribute("rel"),b==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(b!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(b=i.getAttribute("src"),(b!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=Sr(i.nextSibling),i===null)break}return null}function sB(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Sr(i.nextSibling),i===null))return null;return i}function JA(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Sr(i.nextSibling),i===null))return null;return i}function My(i){return i.data==="$?"||i.data==="$~"}function Py(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function oB(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var d=function(){s(),u.removeEventListener("DOMContentLoaded",d)};u.addEventListener("DOMContentLoaded",d),i._reactRetry=d}}function Sr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var _y=null;function eE(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return Sr(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function tE(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function nE(i,s,u){switch(s=fh(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function yc(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Rg(i)}var jr=new Map,rE=new Set;function dh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Hi=G.d;G.d={f:lB,r:uB,D:cB,C:fB,L:dB,m:hB,X:pB,S:mB,M:gB};function lB(){var i=Hi.f(),s=rh();return i||s}function uB(i){var s=Go(i);s!==null&&s.tag===5&&s.type==="form"?xO(s):Hi.r(i)}var Al=typeof document>"u"?null:document;function iE(i,s,u){var d=Al;if(d&&typeof s=="string"&&s){var y=pr(s);y='link[rel="'+i+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),rE.has(y)||(rE.add(y),i={rel:i,crossOrigin:u,href:s},d.querySelector(y)===null&&(s=d.createElement("link"),vn(s,"link",i),Zt(s),d.head.appendChild(s)))}}function cB(i){Hi.D(i),iE("dns-prefetch",i,null)}function fB(i,s){Hi.C(i,s),iE("preconnect",i,s)}function dB(i,s,u){Hi.L(i,s,u);var d=Al;if(d&&i&&s){var y='link[rel="preload"][as="'+pr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+pr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+pr(u.imageSizes)+'"]')):y+='[href="'+pr(i)+'"]';var b=y;switch(s){case"style":b=El(i);break;case"script":b=Nl(i)}jr.has(b)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),jr.set(b,i),d.querySelector(y)!==null||s==="style"&&d.querySelector(bc(b))||s==="script"&&d.querySelector(xc(b))||(s=d.createElement("link"),vn(s,"link",i),Zt(s),d.head.appendChild(s)))}}function hB(i,s){Hi.m(i,s);var u=Al;if(u&&i){var d=s&&typeof s.as=="string"?s.as:"script",y='link[rel="modulepreload"][as="'+pr(d)+'"][href="'+pr(i)+'"]',b=y;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Nl(i)}if(!jr.has(b)&&(i=p({rel:"modulepreload",href:i},s),jr.set(b,i),u.querySelector(y)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(xc(b)))return}d=u.createElement("link"),vn(d,"link",i),Zt(d),u.head.appendChild(d)}}}function mB(i,s,u){Hi.S(i,s,u);var d=Al;if(d&&i){var y=Yo(d).hoistableStyles,b=El(i);s=s||"default";var N=y.get(b);if(!N){var M={loading:0,preload:null};if(N=d.querySelector(bc(b)))M.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=jr.get(b))&&Dy(i,u);var z=N=d.createElement("link");Zt(z),vn(z,"link",i),z._p=new Promise(function(H,te){z.onload=H,z.onerror=te}),z.addEventListener("load",function(){M.loading|=1}),z.addEventListener("error",function(){M.loading|=2}),M.loading|=4,hh(N,s,d)}N={type:"stylesheet",instance:N,count:1,state:M},y.set(b,N)}}}function pB(i,s){Hi.X(i,s);var u=Al;if(u&&i){var d=Yo(u).hoistableScripts,y=Nl(i),b=d.get(y);b||(b=u.querySelector(xc(y)),b||(i=p({src:i,async:!0},s),(s=jr.get(y))&&Ry(i,s),b=u.createElement("script"),Zt(b),vn(b,"link",i),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(y,b))}}function gB(i,s){Hi.M(i,s);var u=Al;if(u&&i){var d=Yo(u).hoistableScripts,y=Nl(i),b=d.get(y);b||(b=u.querySelector(xc(y)),b||(i=p({src:i,async:!0,type:"module"},s),(s=jr.get(y))&&Ry(i,s),b=u.createElement("script"),Zt(b),vn(b,"link",i),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(y,b))}}function aE(i,s,u,d){var y=(y=me.current)?dh(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=El(u.href),u=Yo(y).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"){i=El(u.href);var b=Yo(y).hoistableStyles,N=b.get(i);if(N||(y=y.ownerDocument||y,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,N),(b=y.querySelector(bc(i)))&&!b._p&&(N.instance=b,N.state.loading=5),jr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},jr.set(i,u),b||vB(y,i,u,N.state))),s&&d===null)throw Error(r(528,""));return N}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=Nl(u),u=Yo(y).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,i))}}function El(i){return'href="'+pr(i)+'"'}function bc(i){return'link[rel="stylesheet"]['+i+"]"}function sE(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function vB(i,s,u,d){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?d.loading=1:(s=i.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),Zt(s),i.head.appendChild(s))}function Nl(i){return'[src="'+pr(i)+'"]'}function xc(i){return"script[async]"+i}function oE(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var d=i.querySelector('style[data-href~="'+pr(u.href)+'"]');if(d)return s.instance=d,Zt(d),d;var y=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return d=(i.ownerDocument||i).createElement("style"),Zt(d),vn(d,"style",y),hh(d,u.precedence,i),s.instance=d;case"stylesheet":y=El(u.href);var b=i.querySelector(bc(y));if(b)return s.state.loading|=4,s.instance=b,Zt(b),b;d=sE(u),(y=jr.get(y))&&Dy(d,y),b=(i.ownerDocument||i).createElement("link"),Zt(b);var N=b;return N._p=new Promise(function(M,z){N.onload=M,N.onerror=z}),vn(b,"link",d),s.state.loading|=4,hh(b,u.precedence,i),s.instance=b;case"script":return b=Nl(u.src),(y=i.querySelector(xc(b)))?(s.instance=y,Zt(y),y):(d=u,(y=jr.get(b))&&(d=p({},u),Ry(d,y)),i=i.ownerDocument||i,y=i.createElement("script"),Zt(y),vn(y,"link",d),i.head.appendChild(y),s.instance=y);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,hh(d,u.precedence,i));return s.instance}function hh(i,s,u){for(var d=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=d.length?d[d.length-1]:null,b=y,N=0;N<d.length;N++){var M=d[N];if(M.dataset.precedence===s)b=M;else if(b!==y)break}b?b.parentNode.insertBefore(i,b.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function Dy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Ry(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var mh=null;function lE(i,s,u){if(mh===null){var d=new Map,y=mh=new Map;y.set(u,d)}else y=mh,d=y.get(u),d||(d=new Map,y.set(u,d));if(d.has(i))return d;for(d.set(i,null),u=u.getElementsByTagName(i),y=0;y<u.length;y++){var b=u[y];if(!(b[zu]||b[hn]||i==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var N=b.getAttribute(s)||"";N=i+N;var M=d.get(N);M?M.push(b):d.set(N,[b])}}return d}function uE(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function yB(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){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 i=s.disabled,typeof s.precedence=="string"&&i==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 cE(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function bB(i,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 y=El(d.href),b=s.querySelector(bc(y));if(b){s=b._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=ph.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=b,Zt(b);return}b=s.ownerDocument||s,d=sE(d),(y=jr.get(y))&&Dy(d,y),b=b.createElement("link"),Zt(b);var N=b;N._p=new Promise(function(M,z){N.onload=M,N.onerror=z}),vn(b,"link",d),u.instance=b}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=ph.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var zy=0;function xB(i,s){return i.stylesheets&&i.count===0&&vh(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var d=setTimeout(function(){if(i.stylesheets&&vh(i,i.stylesheets),i.unsuspend){var b=i.unsuspend;i.unsuspend=null,b()}},6e4+s);0<i.imgBytes&&zy===0&&(zy=62500*eB());var y=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&vh(i,i.stylesheets),i.unsuspend)){var b=i.unsuspend;i.unsuspend=null,b()}},(i.imgBytes>zy?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(d),clearTimeout(y)}}:null}function ph(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gh=null;function vh(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gh=new Map,s.forEach(wB,i),gh=null,ph.call(i))}function wB(i,s){if(!(s.state.loading&4)){var u=gh.get(i);if(u)var d=u.get(null);else{u=new Map,gh.set(i,u);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var N=y[b];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),d=N)}d&&u.set(null,d)}y=s.instance,N=y.getAttribute("data-precedence"),b=u.get(N)||d,b===d&&u.set(null,y),u.set(N,y),this.count++,d=ph.bind(this),y.addEventListener("load",d),y.addEventListener("error",d),b?b.parentNode.insertBefore(y,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),s.state.loading|=4}}var wc={$$typeof:k,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function SB(i,s,u,d,y,b,N,M,z){this.tag=1,this.containerInfo=i,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=Mg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mg(0),this.hiddenUpdates=Mg(null),this.identifierPrefix=d,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function fE(i,s,u,d,y,b,N,M,z,H,te,re){return i=new SB(i,s,u,N,z,H,te,re,M),s=1,b===!0&&(s|=24),b=rr(3,null,null,s),i.current=b,b.stateNode=i,s=pv(),s.refCount++,i.pooledCache=s,s.refCount++,b.memoizedState={element:d,isDehydrated:u,cache:s},bv(b),i}function dE(i){return i?(i=il,i):il}function hE(i,s,u,d,y,b){y=dE(y),d.context===null?d.context=y:d.pendingContext=y,d=za(s),d.payload={element:u},b=b===void 0?null:b,b!==null&&(d.callback=b),u=La(i,d,s),u!==null&&(Kn(u,i,s),Ju(u,i,s))}function mE(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function Ly(i,s){mE(i,s),(i=i.alternate)&&mE(i,s)}function pE(i){if(i.tag===13||i.tag===31){var s=Ls(i,67108864);s!==null&&Kn(s,i,67108864),Ly(i,67108864)}}function gE(i){if(i.tag===13||i.tag===31){var s=lr();s=Pg(s);var u=Ls(i,s);u!==null&&Kn(u,i,s),Ly(i,s)}}var yh=!0;function jB(i,s,u,d){var y=q.T;q.T=null;var b=G.p;try{G.p=2,Iy(i,s,u,d)}finally{G.p=b,q.T=y}}function OB(i,s,u,d){var y=q.T;q.T=null;var b=G.p;try{G.p=8,Iy(i,s,u,d)}finally{G.p=b,q.T=y}}function Iy(i,s,u,d){if(yh){var y=By(d);if(y===null)Oy(i,s,d,bh,u),yE(i,d);else if(EB(y,i,s,u,d))d.stopPropagation();else if(yE(i,d),s&4&&-1<AB.indexOf(i)){for(;y!==null;){var b=Go(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var N=Ps(b.pendingLanes);if(N!==0){var M=b;for(M.pendingLanes|=2,M.entangledLanes|=2;N;){var z=1<<31-tr(N);M.entanglements[1]|=z,N&=~z}si(b),(Qe&6)===0&&(th=ke()+500,pc(0))}}break;case 31:case 13:M=Ls(b,2),M!==null&&Kn(M,b,2),rh(),Ly(b,2)}if(b=By(d),b===null&&Oy(i,s,d,bh,u),b===y)break;y=b}y!==null&&d.stopPropagation()}else Oy(i,s,d,null,u)}}function By(i){return i=qg(i),Uy(i)}var bh=null;function Uy(i){if(bh=null,i=Ko(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return bh=i,null}function vE(i){switch(i){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(Pt()){case fn:return 2;case dn:return 8;case Ht:case fI:return 32;case Nj:return 268435456;default:return 32}default:return 32}}var qy=!1,Ya=null,Wa=null,Xa=null,Sc=new Map,jc=new Map,Qa=[],AB="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 yE(i,s){switch(i){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":Sc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(s.pointerId)}}function Oc(i,s,u,d,y,b){return i===null||i.nativeEvent!==b?(i={blockedOn:s,domEventName:u,eventSystemFlags:d,nativeEvent:b,targetContainers:[y]},s!==null&&(s=Go(s),s!==null&&pE(s)),i):(i.eventSystemFlags|=d,s=i.targetContainers,y!==null&&s.indexOf(y)===-1&&s.push(y),i)}function EB(i,s,u,d,y){switch(s){case"focusin":return Ya=Oc(Ya,i,s,u,d,y),!0;case"dragenter":return Wa=Oc(Wa,i,s,u,d,y),!0;case"mouseover":return Xa=Oc(Xa,i,s,u,d,y),!0;case"pointerover":var b=y.pointerId;return Sc.set(b,Oc(Sc.get(b)||null,i,s,u,d,y)),!0;case"gotpointercapture":return b=y.pointerId,jc.set(b,Oc(jc.get(b)||null,i,s,u,d,y)),!0}return!1}function bE(i){var s=Ko(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,_j(i.priority,function(){gE(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,_j(i.priority,function(){gE(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function xh(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=By(i.nativeEvent);if(u===null){u=i.nativeEvent;var d=new u.constructor(u.type,u);Ug=d,u.target.dispatchEvent(d),Ug=null}else return s=Go(u),s!==null&&pE(s),i.blockedOn=u,!1;s.shift()}return!0}function xE(i,s,u){xh(i)&&u.delete(s)}function NB(){qy=!1,Ya!==null&&xh(Ya)&&(Ya=null),Wa!==null&&xh(Wa)&&(Wa=null),Xa!==null&&xh(Xa)&&(Xa=null),Sc.forEach(xE),jc.forEach(xE)}function wh(i,s){i.blockedOn===s&&(i.blockedOn=null,qy||(qy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,NB)))}var Sh=null;function wE(i){Sh!==i&&(Sh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Sh===i&&(Sh=null);for(var s=0;s<i.length;s+=3){var u=i[s],d=i[s+1],y=i[s+2];if(typeof d!="function"){if(Uy(d||u)===null)continue;break}var b=Go(u);b!==null&&(i.splice(s,3),s-=3,Bv(b,{pending:!0,data:y,method:u.method,action:d},d,y))}}))}function kl(i){function s(z){return wh(z,i)}Ya!==null&&wh(Ya,i),Wa!==null&&wh(Wa,i),Xa!==null&&wh(Xa,i),Sc.forEach(s),jc.forEach(s);for(var u=0;u<Qa.length;u++){var d=Qa[u];d.blockedOn===i&&(d.blockedOn=null)}for(;0<Qa.length&&(u=Qa[0],u.blockedOn===null);)bE(u),u.blockedOn===null&&Qa.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(d=0;d<u.length;d+=3){var y=u[d],b=u[d+1],N=y[Un]||null;if(typeof b=="function")N||wE(u);else if(N){var M=null;if(b&&b.hasAttribute("formAction")){if(y=b,N=b[Un]||null)M=N.formAction;else if(Uy(y)!==null)continue}else M=N.action;typeof M=="function"?u[d+1]=M:(u.splice(d,3),d-=3),wE(u)}}}function SE(){function i(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(N){return y=N})},focusReset:"manual",scroll:"manual"})}function s(){y!==null&&(y(),y=null),d||setTimeout(u,20)}function u(){if(!d&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,y=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){d=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),y!==null&&(y(),y=null)}}}function $y(i){this._internalRoot=i}jh.prototype.render=$y.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,d=lr();hE(u,d,i,s,null,null)},jh.prototype.unmount=$y.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;hE(i.current,2,null,i,null,null),rh(),s[Ho]=null}};function jh(i){this._internalRoot=i}jh.prototype.unstable_scheduleHydration=function(i){if(i){var s=Pj();i={blockedOn:null,target:i,priority:s};for(var u=0;u<Qa.length&&s!==0&&s<Qa[u].priority;u++);Qa.splice(u,0,i),u===0&&bE(i)}};var jE=t.version;if(jE!=="19.2.4")throw Error(r(527,jE,"19.2.4"));G.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=h(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var kB={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oh.isDisabled&&Oh.supportsFiber)try{_u=Oh.inject(kB),er=Oh}catch{}}return Ec.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,d="",y=CO,b=MO,N=PO;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError)),s=fE(i,1,!1,null,null,u,d,null,y,b,N,SE),i[Ho]=s.current,jy(i),new $y(s)},Ec.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var d=!1,y="",b=CO,N=MO,M=PO,z=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(M=u.onRecoverableError),u.formState!==void 0&&(z=u.formState)),s=fE(i,1,!0,s,u??null,d,y,z,b,N,M,SE),s.context=dE(null),u=s.current,d=lr(),d=Pg(d),y=za(d),y.callback=null,La(u,y,d),u=d,s.current.lanes=u,Ru(s,u),si(s),i[Ho]=s.current,jy(i),new jh(s)},Ec.version="19.2.4",Ec}var HE;function w9(){if(HE)return Yy.exports;HE=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(),Yy.exports=x9(),Yy.exports}var S9=w9();const j9=Oi(S9);/**
|
|
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 O9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),KE=e=>{const t=A9(e);return t.charAt(0).toUpperCase()+t.slice(1)},sD=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),E9=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 N9={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 k9=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>S.createElement("svg",{ref:f,...N9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sD("lucide",a),...!o&&!E9(c)&&{"aria-hidden":"true"},...c},[...l.map(([h,m])=>S.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 Ee=(e,t)=>{const n=S.forwardRef(({className:r,...a},o)=>S.createElement(k9,{ref:o,iconNode:t,className:sD(`lucide-${O9(KE(e))}`,`lucide-${e}`,r),...a}));return n.displayName=KE(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 T9=[["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=Ee("activity",T9);/**
|
|
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 C9=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ep=Ee("arrow-right",C9);/**
|
|
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 M9=[["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"}]],ym=Ee("bell",M9);/**
|
|
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 P9=[["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"}]],_9=Ee("briefcase",P9);/**
|
|
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 D9=[["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"}]],bx=Ee("calendar",D9);/**
|
|
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 R9=[["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"}]],oD=Ee("chart-column",R9);/**
|
|
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 z9=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],L9=Ee("chart-line",z9);/**
|
|
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 I9=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],B9=Ee("check-check",I9);/**
|
|
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 U9=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],q9=Ee("chevron-down",U9);/**
|
|
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 $9=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],lD=Ee("chevron-left",$9);/**
|
|
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 V9=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Np=Ee("chevron-right",V9);/**
|
|
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 F9=[["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"}]],oa=Ee("circle-alert",F9);/**
|
|
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 H9=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],uD=Ee("circle-check-big",H9);/**
|
|
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 K9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],rw=Ee("circle-check",K9);/**
|
|
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 G9=[["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"}]],Y9=Ee("circle-question-mark",G9);/**
|
|
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 W9=[["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"}]],cD=Ee("circle-x",W9);/**
|
|
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 X9=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],gi=Ee("clock",X9);/**
|
|
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 Q9=[["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"}]],Z9=Ee("command",Q9);/**
|
|
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 J9=[["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"}]],af=Ee("cpu",J9);/**
|
|
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 eU=[["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"}]],bm=Ee("database",eU);/**
|
|
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 tU=[["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"}]],nU=Ee("external-link",tU);/**
|
|
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 rU=[["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"}]],iU=Ee("eye-off",rU);/**
|
|
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 aU=[["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"}]],sU=Ee("eye",aU);/**
|
|
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 oU=[["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"}]],iw=Ee("funnel",oU);/**
|
|
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 lU=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],uU=Ee("gauge",lU);/**
|
|
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 cU=[["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"}]],xx=Ee("hard-drive",cU);/**
|
|
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 fU=[["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"}]],fD=Ee("hourglass",fU);/**
|
|
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"}]],Kc=Ee("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 hU=[["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"}]],mU=Ee("laptop",hU);/**
|
|
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 pU=[["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"}]],dD=Ee("layout-dashboard",pU);/**
|
|
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 gU=[["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"}]],sf=Ee("list-tree",gU);/**
|
|
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 vU=[["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"}]],yU=Ee("lock",vU);/**
|
|
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 bU=[["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"}]],hD=Ee("log-out",bU);/**
|
|
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 xU=[["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"}]],wU=Ee("memory-stick",xU);/**
|
|
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 SU=[["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"}]],GE=Ee("monitor",SU);/**
|
|
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 jU=[["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"}]],wx=Ee("moon",jU);/**
|
|
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 OU=[["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"}]],AU=Ee("palette",OU);/**
|
|
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 EU=[["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"}]],NU=Ee("pause",EU);/**
|
|
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 kU=[["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"}]],mD=Ee("play",kU);/**
|
|
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 TU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],YE=Ee("plus",TU);/**
|
|
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 CU=[["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"}]],na=Ee("refresh-ccw",CU);/**
|
|
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 MU=[["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"}]],Zy=Ee("rotate-cw",MU);/**
|
|
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 PU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yu=Ee("search",PU);/**
|
|
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 _U=[["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"}]],kp=Ee("server",_U);/**
|
|
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 DU=[["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"}]],aw=Ee("settings",DU);/**
|
|
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 RU=[["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"}]],zU=Ee("shield-check",RU);/**
|
|
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 LU=[["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"}]],pD=Ee("shield",LU);/**
|
|
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 IU=[["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"}]],Sx=Ee("sun",IU);/**
|
|
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 BU=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],UU=Ee("terminal",BU);/**
|
|
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 qU=[["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"}]],of=Ee("trash-2",qU);/**
|
|
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 $U=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],WE=Ee("trending-up",$U);/**
|
|
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 VU=[["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"}]],FU=Ee("triangle-alert",VU);/**
|
|
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 HU=[["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"}]],XE=Ee("user",HU);/**
|
|
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 KU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tp=Ee("x",KU);/**
|
|
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 GU=[["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"}]],gD=Ee("zap",GU);/**
|
|
345
|
+
* react-router v7.13.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 QE="popstate";function YU(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return jx("",{pathname:o,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:lf(a)}return XU(t,n,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function bi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WU(){return Math.random().toString(36).substring(2,10)}function ZE(e,t){return{usr:e.state,key:e.key,idx:t}}function jx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bu(t):t,state:n,key:t&&t.key||r||WU()}}function lf({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 bu(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 XU(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.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 p(){c="POP";let w=m(),A=w==null?null:w-h;h=w,f&&f({action:c,location:O.location,delta:A})}function v(w,A){c="PUSH";let T=jx(O.location,w,A);h=m()+1;let k=ZE(T,h),E=O.createHref(T);try{l.pushState(k,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(E)}o&&f&&f({action:c,location:O.location,delta:1})}function x(w,A){c="REPLACE";let T=jx(O.location,w,A);h=m();let k=ZE(T,h),E=O.createHref(T);l.replaceState(k,"",E),o&&f&&f({action:c,location:O.location,delta:0})}function j(w){return QU(w)}let O={get action(){return c},get location(){return e(a,l)},listen(w){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(QE,p),f=w,()=>{a.removeEventListener(QE,p),f=null}},createHref(w){return t(a,w)},createURL:j,encodeLocation(w){let A=j(w);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:v,replace:x,go(w){return l.go(w)}};return O}function QU(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),jt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:lf(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function vD(e,t,n="/"){return ZU(e,t,n,!1)}function ZU(e,t,n,r){let a=typeof t=="string"?bu(t):t,o=la(a.pathname||"/",n);if(o==null)return null;let l=yD(e);JU(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=cq(o);c=lq(l[f],h,r)}return c}function yD(e,t=[],n=[],r="",a=!1){let o=(l,c,f=a,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;jt(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 p=ra([r,m.relativePath]),v=n.concat(m);l.children&&l.children.length>0&&(jt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),yD(l.children,t,v,p,f)),!(l.path==null&&!l.index)&&t.push({path:p,score:sq(p,l.index),routesMeta:v})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of bD(l.path))o(l,c,!0,h)}),t}function bD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=bD(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function JU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var eq=/^:[\w-]+$/,tq=3,nq=2,rq=1,iq=10,aq=-2,JE=e=>e==="*";function sq(e,t){let n=e.split("/"),r=n.length;return n.some(JE)&&(r+=aq),t&&(r+=nq),n.filter(a=>!JE(a)).reduce((a,o)=>a+(eq.test(o)?tq:o===""?rq:iq),r)}function oq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function lq(e,t,n=!1){let{routesMeta:r}=e,a={},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)||"/",p=xm({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),v=f.route;if(!p&&h&&n&&!r[r.length-1].route.index&&(p=xm({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),l.push({params:a,pathname:ra([o,p.pathname]),pathnameBase:mq(ra([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=ra([o,p.pathnameBase]))}return l}function xm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uq(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:p},v)=>{if(m==="*"){let j=c[v]||"";l=o.slice(0,o.length-j.length).replace(/(.)\/+$/,"$1")}const x=c[v];return p&&!x?h[m]=void 0:h[m]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function uq(e,t=!1,n=!0){bi(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=[],a="^"+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:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function cq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bi(!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 la(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 fq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dq(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?bu(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=eN(n.substring(1),"/"):o=eN(n,t)):o=t,{pathname:o,search:pq(r),hash:gq(a)}}function eN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Jy(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 hq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xD(e){let t=hq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function wD(e,t,n,r=!1){let a;typeof e=="string"?a=bu(e):(a={...e},jt(!a.pathname||!a.pathname.includes("?"),Jy("?","pathname","search",a)),jt(!a.pathname||!a.pathname.includes("#"),Jy("#","pathname","hash",a)),jt(!a.search||!a.search.includes("#"),Jy("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}c=p>=0?t[p]:"/"}let f=dq(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var ra=e=>e.join("/").replace(/\/\/+/g,"/"),mq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,vq=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 yq(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function bq(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var SD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jD(e,t){let n=e;if(typeof n!="string"||!fq.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(SD)try{let o=new URL(window.location.href),l=n.startsWith("//")?new URL(o.protocol+n):new URL(n),c=la(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{bi(!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:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var OD=["POST","PUT","PATCH","DELETE"];new Set(OD);var xq=["GET",...OD];new Set(xq);var xu=S.createContext(null);xu.displayName="DataRouter";var Cp=S.createContext(null);Cp.displayName="DataRouterState";var wq=S.createContext(!1),AD=S.createContext({isTransitioning:!1});AD.displayName="ViewTransition";var Sq=S.createContext(new Map);Sq.displayName="Fetchers";var jq=S.createContext(null);jq.displayName="Await";var Lr=S.createContext(null);Lr.displayName="Navigation";var zf=S.createContext(null);zf.displayName="Location";var ya=S.createContext({outlet:null,matches:[],isDataRoute:!1});ya.displayName="Route";var sw=S.createContext(null);sw.displayName="RouteError";var ED="REACT_ROUTER_ERROR",Oq="REDIRECT",Aq="ROUTE_ERROR_RESPONSE";function Eq(e){if(e.startsWith(`${ED}:${Oq}:{`))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 Nq(e){if(e.startsWith(`${ED}:${Aq}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new vq(t.status,t.statusText,t.data)}catch{}}function kq(e,{relative:t}={}){jt(Lf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Lr),{hash:a,pathname:o,search:l}=If(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ra([n,o])),r.createHref({pathname:c,search:l,hash:a})}function Lf(){return S.useContext(zf)!=null}function Ns(){return jt(Lf(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(zf).location}var ND="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kD(e){S.useContext(Lr).static||S.useLayoutEffect(e)}function ow(){let{isDataRoute:e}=S.useContext(ya);return e?qq():Tq()}function Tq(){jt(Lf(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(xu),{basename:t,navigator:n}=S.useContext(Lr),{matches:r}=S.useContext(ya),{pathname:a}=Ns(),o=JSON.stringify(xD(r)),l=S.useRef(!1);return kD(()=>{l.current=!0}),S.useCallback((f,h={})=>{if(bi(l.current,ND),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=wD(f,JSON.parse(o),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ra([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,a,e])}S.createContext(null);function If(e,{relative:t}={}){let{matches:n}=S.useContext(ya),{pathname:r}=Ns(),a=JSON.stringify(xD(n));return S.useMemo(()=>wD(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Cq(e,t){return TD(e,t)}function TD(e,t,n,r,a){var T;jt(Lf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(Lr),{matches:l}=S.useContext(ya),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let k=p&&p.path||"";MD(h,!p||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${k}">) 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="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let v=Ns(),x;if(t){let k=typeof t=="string"?bu(t):t;jt(m==="/"||((T=k.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 "${k.pathname}" was given in the \`location\` prop.`),x=k}else x=v;let j=x.pathname||"/",O=j;if(m!=="/"){let k=m.replace(/^\//,"").split("/");O="/"+j.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=vD(e,{pathname:O});bi(p||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),bi(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 A=Rq(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},f,k.params),pathname:ra([m,o.encodeLocation?o.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?m:ra([m,o.encodeLocation?o.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),l,n,r,a);return t&&A?S.createElement(zf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},A):A}function Mq(){let e=Uq(),t=yq(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)",a={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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,l)}var Pq=S.createElement(Mq,null),CD=class extends S.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=Nq(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ya.Provider,{value:this.props.routeContext},S.createElement(sw.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(_q,{error:e},t):t}};CD.contextType=wq;var e0=new WeakMap;function _q({children:e,error:t}){let{basename:n}=S.useContext(Lr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Eq(t.digest);if(r){let a=e0.get(t);if(a)throw a;let o=jD(r.location,n);if(SD&&!e0.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 e0.set(t,l),l}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Dq({routeContext:e,match:t,children:n}){let r=S.useContext(xu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ya.Provider,{value:e},n)}function Rq(e,t=[],n=null,r=null,a=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(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);jt(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 p=o[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=m),p.route.id){let{loaderData:v,errors:x}=n,j=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!x||x[p.route.id]===void 0);if(p.route.lazy||j){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}let h=n&&r?(m,p)=>{var v,x;r(m,{location:n.location,params:((x=(v=n.matches)==null?void 0:v[0])==null?void 0:x.params)??{},unstable_pattern:bq(n.matches),errorInfo:p})}:void 0;return o.reduceRight((m,p,v)=>{let x,j=!1,O=null,w=null;n&&(x=l&&p.route.id?l[p.route.id]:void 0,O=p.route.errorElement||Pq,c&&(f<0&&v===0?(MD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,w=null):f===v&&(j=!0,w=p.route.hydrateFallbackElement||null)));let A=t.concat(o.slice(0,v+1)),T=()=>{let k;return x?k=O:j?k=w:p.route.Component?k=S.createElement(p.route.Component,null):p.route.element?k=p.route.element:k=m,S.createElement(Dq,{match:p,routeContext:{outlet:m,matches:A,isDataRoute:n!=null},children:k})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?S.createElement(CD,{location:n.location,revalidation:n.revalidation,component:O,error:x,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):T()},null)}function lw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zq(e){let t=S.useContext(xu);return jt(t,lw(e)),t}function Lq(e){let t=S.useContext(Cp);return jt(t,lw(e)),t}function Iq(e){let t=S.useContext(ya);return jt(t,lw(e)),t}function uw(e){let t=Iq(e),n=t.matches[t.matches.length-1];return jt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Bq(){return uw("useRouteId")}function Uq(){var r;let e=S.useContext(sw),t=Lq("useRouteError"),n=uw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function qq(){let{router:e}=zq("useNavigate"),t=uw("useNavigate"),n=S.useRef(!1);return kD(()=>{n.current=!0}),S.useCallback(async(a,o={})=>{bi(n.current,ND),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var tN={};function MD(e,t,n){!t&&!tN[e]&&(tN[e]=!0,bi(!1,n))}S.memo($q);function $q({routes:e,future:t,state:n,onError:r}){return TD(e,void 0,n,r,t)}function rs(e){jt(!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 Vq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){jt(!Lf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:c,navigator:a,static:o,unstable_useTransitions:l,future:{}}),[c,a,o,l]);typeof n=="string"&&(n=bu(n));let{pathname:h="/",search:m="",hash:p="",state:v=null,key:x="default"}=n,j=S.useMemo(()=>{let O=la(h,c);return O==null?null:{location:{pathname:O,search:m,hash:p,state:v,key:x},navigationType:r}},[c,h,m,p,v,x,r]);return bi(j!=null,`<Router basename="${c}"> is not able to match the URL "${h}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:S.createElement(Lr.Provider,{value:f},S.createElement(zf.Provider,{children:t,value:j}))}function Fq({children:e,location:t}){return Cq(Ox(e),t)}function Ox(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let o=[...t,a];if(r.type===S.Fragment){n.push.apply(n,Ox(r.props.children,o));return}jt(r.type===rs,`[${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>`),jt(!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=Ox(r.props.children,o)),n.push(l)}),n}var Jh="get",em="application/x-www-form-urlencoded";function Mp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Hq(e){return Mp(e)&&e.tagName.toLowerCase()==="button"}function Kq(e){return Mp(e)&&e.tagName.toLowerCase()==="form"}function Gq(e){return Mp(e)&&e.tagName.toLowerCase()==="input"}function Yq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wq(e,t){return e.button===0&&(!t||t==="_self")&&!Yq(e)}var Nh=null;function Xq(){if(Nh===null)try{new FormData(document.createElement("form"),0),Nh=!1}catch{Nh=!0}return Nh}var Qq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t0(e){return e!=null&&!Qq.has(e)?(bi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${em}"`),null):e}function Zq(e,t){let n,r,a,o,l;if(Kq(e)){let c=e.getAttribute("action");r=c?la(c,t):null,n=e.getAttribute("method")||Jh,a=t0(e.getAttribute("enctype"))||em,o=new FormData(e)}else if(Hq(e)||Gq(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?la(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Jh,a=t0(e.getAttribute("formenctype"))||t0(c.getAttribute("enctype"))||em,o=new FormData(c,e),!Xq()){let{name:h,type:m,value:p}=e;if(m==="image"){let v=h?`${h}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else h&&o.append(h,p)}}else{if(Mp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jh,r=null,a=em,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jq(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&la(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function e$(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 t$(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 n$(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await e$(o,n);return l.links?l.links():[]}return[]}));return s$(r.flat(1).filter(t$).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function nN(e,t,n,r,a,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 p;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 v=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function r$(e,t,{includeHydrateFallback:n}={}){return i$(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function i$(e){return[...new Set(e)]}function a$(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function s$(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(a$(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function PD(){let e=S.useContext(xu);return cw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function o$(){let e=S.useContext(Cp);return cw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fw=S.createContext(void 0);fw.displayName="FrameworkContext";function _D(){let e=S.useContext(fw);return cw(e,"You must render this element inside a <HydratedRouter> element"),e}function l$(e,t){let n=S.useContext(fw),[r,a]=S.useState(!1),[o,l]=S.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:p}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let O=A=>{A.forEach(T=>{l(T.isIntersecting)})},w=new IntersectionObserver(O,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),S.useEffect(()=>{if(r){let O=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(O)}}},[r]);let x=()=>{a(!0)},j=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,v,{}]:[o,v,{onFocus:Nc(c,x),onBlur:Nc(f,j),onMouseEnter:Nc(h,x),onMouseLeave:Nc(m,j),onTouchStart:Nc(p,x)}]:[!1,v,{}]}function Nc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function u$({page:e,...t}){let{router:n}=PD(),r=S.useMemo(()=>vD(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(f$,{page:e,matches:r,...t}):null}function c$(e){let{manifest:t,routeModules:n}=_D(),[r,a]=S.useState([]);return S.useEffect(()=>{let o=!1;return n$(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function f$({page:e,matches:t,...n}){let r=Ns(),{future:a,manifest:o,routeModules:l}=_D(),{basename:c}=PD(),{loaderData:f,matches:h}=o$(),m=S.useMemo(()=>nN(e,t,h,o,r,"data"),[e,t,h,o,r]),p=S.useMemo(()=>nN(e,t,h,o,r,"assets"),[e,t,h,o,r]),v=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let O=new Set,w=!1;if(t.forEach(T=>{var E;let k=o.routes[T.route.id];!k||!k.hasLoader||(!m.some(C=>C.route.id===T.route.id)&&T.route.id in f&&((E=l[T.route.id])!=null&&E.shouldRevalidate)||k.hasClientLoader?w=!0:O.add(T.route.id))}),O.size===0)return[];let A=Jq(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return w&&O.size>0&&A.searchParams.set("_routes",t.filter(T=>O.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[c,a.unstable_trailingSlashAwareDataRequests,f,r,o,m,t,e,l]),x=S.useMemo(()=>r$(p,o),[p,o]),j=c$(p);return S.createElement(S.Fragment,null,v.map(O=>S.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...n})),x.map(O=>S.createElement("link",{key:O,rel:"modulepreload",href:O,...n})),j.map(({key:O,link:w})=>S.createElement("link",{key:O,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function d$(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var h$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{h$&&(window.__reactRouterVersion="7.13.0")}catch{}function m$({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=S.useRef();a.current==null&&(a.current=YU({window:r,v5Compat:!0}));let o=a.current,[l,c]=S.useState({action:o.action,location:o.location}),f=S.useCallback(h=>{n===!1?c(h):S.startTransition(()=>c(h))},[n]);return S.useLayoutEffect(()=>o.listen(f),[o,f]),S.createElement(Vq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var DD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RD=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:c,target:f,to:h,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:v,...x},j){let{basename:O,unstable_useTransitions:w}=S.useContext(Lr),A=typeof h=="string"&&DD.test(h),T=jD(h,O);h=T.to;let k=kq(h,{relative:a}),[E,C,P]=l$(r,x),_=v$(h,{replace:l,state:c,target:f,preventScrollReset:m,relative:a,viewTransition:p,unstable_defaultShouldRevalidate:v,unstable_useTransitions:w});function D(Z){t&&t(Z),Z.defaultPrevented||_(Z)}let L=S.createElement("a",{...x,...P,href:T.absoluteURL||k,onClick:T.isExternal||o?t:D,ref:d$(j,C),target:f,"data-discover":!A&&n==="render"?"true":void 0});return E&&!A?S.createElement(S.Fragment,null,L,S.createElement(u$,{page:k})):L});RD.displayName="Link";var zD=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:f,...h},m){let p=If(l,{relative:h.relative}),v=Ns(),x=S.useContext(Cp),{navigator:j,basename:O}=S.useContext(Lr),w=x!=null&&S$(p)&&c===!0,A=j.encodeLocation?j.encodeLocation(p).pathname:p.pathname,T=v.pathname,k=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(T=T.toLowerCase(),k=k?k.toLowerCase():null,A=A.toLowerCase()),k&&O&&(k=la(k,O)||k);const E=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let C=T===A||!a&&T.startsWith(A)&&T.charAt(E)==="/",P=k!=null&&(k===A||!a&&k.startsWith(A)&&k.charAt(A.length)==="/"),_={isActive:C,isPending:P,isTransitioning:w},D=C?t:void 0,L;typeof r=="function"?L=r(_):L=[r,C?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Z=typeof o=="function"?o(_):o;return S.createElement(RD,{...h,"aria-current":D,className:L,ref:m,style:Z,to:l,viewTransition:c},typeof f=="function"?f(_):f)});zD.displayName="NavLink";var p$=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=Jh,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:v,...x},j)=>{let{unstable_useTransitions:O}=S.useContext(Lr),w=x$(),A=w$(c,{relative:h}),T=l.toLowerCase()==="get"?"get":"post",k=typeof c=="string"&&DD.test(c),E=C=>{if(f&&f(C),C.defaultPrevented)return;C.preventDefault();let P=C.nativeEvent.submitter,_=(P==null?void 0:P.getAttribute("formmethod"))||l,D=()=>w(P||C.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:a,state:o,relative:h,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:v});O&&n!==!1?S.startTransition(()=>D()):D()};return S.createElement("form",{ref:j,method:T,action:A,onSubmit:r?f:E,...x,"data-discover":!k&&e==="render"?"true":void 0})});p$.displayName="Form";function g$(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function LD(e){let t=S.useContext(xu);return jt(t,g$(e)),t}function v$(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=ow(),m=Ns(),p=If(e,{relative:o});return S.useCallback(v=>{if(Wq(v,t)){v.preventDefault();let x=n!==void 0?n:lf(m)===lf(p),j=()=>h(e,{replace:x,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});f?S.startTransition(()=>j()):j()}},[m,h,p,n,r,t,e,a,o,l,c,f])}var y$=0,b$=()=>`__${String(++y$)}__`;function x$(){let{router:e}=LD("useSubmit"),{basename:t}=S.useContext(Lr),n=Bq(),r=e.fetch,a=e.navigate;return S.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:p}=Zq(o,t);if(l.navigate===!1){let v=l.fetcherKey||b$();await r(v,n,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:p,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await a(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:p,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function w$(e,{relative:t}={}){let{basename:n}=S.useContext(Lr),r=S.useContext(ya);jt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...If(e||".",{relative:t})},l=Ns();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(p=>p).forEach(p=>c.append("index",p));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ra([n,o.pathname])),lf(o)}function S$(e,{relative:t}={}){let n=S.useContext(AD);jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=LD("useViewTransitionState"),a=If(e,{relative:t});if(!n.isTransitioning)return!1;let o=la(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=la(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xm(a.pathname,l)!=null||xm(a.pathname,o)!=null}var Bf=aD();const ID=S.createContext(null);function Pp(){const e=S.useContext(ID);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function j$({children:e}){const[t,n]=S.useState(!1),[r,a]=S.useState(!1),[o,l]=S.useState(!0),c=S.useCallback(async()=>{try{const p=await(await fetch("/api/auth/status")).json();a(p.enabled),n(p.authenticated)}catch(m){console.error("Failed to check auth status:",m),n(!1)}finally{l(!1)}},[]),f=async m=>{try{const v=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:m})})).json();return v.success?(n(!0),{success:!0}):{success:!1,error:v.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 S.useEffect(()=>{c()},[c]),g.jsx(ID.Provider,{value:{isAuthenticated:t,isAuthEnabled:r,isLoading:o,login:f,logout:h,checkAuth:c},children:e})}const BD=S.createContext(null);function dw(){const e=S.useContext(BD);if(!e)throw new Error("useNotifications must be used within a NotificationProvider");return e}function O$({children:e}){const[t,n]=S.useState([]),r=t.filter(h=>!h.read).length,a=S.useCallback(h=>{const m={...h,id:crypto.randomUUID(),timestamp:Date.now(),read:!1};n(p=>[m,...p].slice(0,50))},[]),o=S.useCallback(h=>{n(m=>m.map(p=>p.id===h?{...p,read:!0}:p))},[]),l=S.useCallback(()=>{n(h=>h.map(m=>({...m,read:!0})))},[]),c=S.useCallback(()=>{n([])},[]),f=S.useCallback(h=>{n(m=>m.filter(p=>p.id!==h))},[]);return S.useEffect(()=>{const h=m=>{const p=m.detail;(p.level==="error"||p.level==="warn")&&a({type:p.level==="error"?"error":"warning",title:p.level==="error"?"Job Failed":"Warning",message:p.message||"An event occurred",source:p.queue||p.source})};return window.addEventListener("flux-log-update",h),()=>window.removeEventListener("flux-log-update",h)},[a]),g.jsx(BD.Provider,{value:{notifications:t,unreadCount:r,addNotification:a,markAsRead:o,markAllAsRead:l,clearAll:c,removeNotification:f},children:e})}const hw=S.createContext({});function mw(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const UD=typeof window<"u",qD=UD?S.useLayoutEffect:S.useEffect,_p=S.createContext(null);function pw(e,t){e.indexOf(t)===-1&&e.push(t)}function su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const xi=(e,t,n)=>n>t?t:n<e?e:n;let gw=()=>{};const ua={},$D=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VD(e){return typeof e=="object"&&e!==null}const FD=e=>/^0[^.\s]+$/u.test(e);function HD(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pr=e=>e,A$=(e,t)=>n=>t(e(n)),Uf=(...e)=>e.reduce(A$),ou=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vw{constructor(){this.subscriptions=[]}add(t){return pw(this.subscriptions,t),()=>su(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _r=e=>e*1e3,Cr=e=>e/1e3;function KD(e,t){return t?e*(1e3/t):0}const E$=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},GD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,N$=1e-7,k$=12;function T$(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=GD(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>N$&&++c<k$);return l}function qf(e,t,n,r){if(e===t&&n===r)return Pr;const a=o=>T$(o,0,1,e,n);return o=>o===0||o===1?o:GD(a(o),t,r)}const YD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WD=e=>t=>1-e(1-t),XD=qf(.33,1.53,.69,.99),yw=WD(XD),QD=YD(yw),ZD=e=>(e*=2)<1?.5*yw(e):.5*(2-Math.pow(2,-10*(e-1))),bw=e=>1-Math.sin(Math.acos(e)),JD=WD(bw),e5=YD(bw),C$=qf(.42,0,1,1),M$=qf(0,0,.58,1),t5=qf(.42,0,.58,1),n5=e=>Array.isArray(e)&&typeof e[0]!="number";function r5(e,t){return n5(e)?e[E$(0,e.length,t)]:e}const i5=e=>Array.isArray(e)&&typeof e[0]=="number",P$={linear:Pr,easeIn:C$,easeInOut:t5,easeOut:M$,circIn:bw,circInOut:e5,circOut:JD,backIn:yw,backInOut:QD,backOut:XD,anticipate:ZD},_$=e=>typeof e=="string",rN=e=>{if(i5(e)){gw(e.length===4);const[t,n,r,a]=e;return qf(t,n,r,a)}else if(_$(e))return P$[e];return e},kh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function D$(e,t){let n=new Set,r=new Set,a=!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,p=!1,v=!1)=>{const j=v&&a?n:r;return p&&l.add(m),j.has(m)||j.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,a){o=!0;return}a=!0,[n,r]=[r,n],n.forEach(f),n.clear(),a=!1,o&&(o=!1,h.process(m))}};return h}const R$=40;function a5(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=kh.reduce((k,E)=>(k[E]=D$(o),k),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:p,preRender:v,render:x,postRender:j}=l,O=()=>{const k=ua.useManualTiming?a.timestamp:performance.now();n=!1,ua.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(k-a.timestamp,R$),1)),a.timestamp=k,a.isProcessing=!0,c.process(a),f.process(a),h.process(a),m.process(a),p.process(a),v.process(a),x.process(a),j.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(O))},w=()=>{n=!0,r=!0,a.isProcessing||e(O)};return{schedule:kh.reduce((k,E)=>{const C=l[E];return k[E]=(P,_=!1,D=!1)=>(n||w(),C.schedule(P,_,D)),k},{}),cancel:k=>{for(let E=0;E<kh.length;E++)l[kh[E]].cancel(k)},state:a,steps:l}}const{schedule:ht,cancel:js,state:bn,steps:n0}=a5(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pr,!0);let tm;function z$(){tm=void 0}const _n={now:()=>(tm===void 0&&_n.set(bn.isProcessing||ua.useManualTiming?bn.timestamp:performance.now()),tm),set:e=>{tm=e,queueMicrotask(z$)}},s5=e=>t=>typeof t=="string"&&t.startsWith(e),o5=s5("--"),L$=s5("var(--"),xw=e=>L$(e)?I$.test(e.split("/*")[0].trim()):!1,I$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iN(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const wu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uf={...wu,transform:e=>xi(0,1,e)},Th={...wu,default:1},Gc=e=>Math.round(e*1e5)/1e5,ww=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function B$(e){return e==null}const U$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sw=(e,t)=>n=>!!(typeof n=="string"&&U$.test(n)&&n.startsWith(e)||t&&!B$(n)&&Object.prototype.hasOwnProperty.call(n,t)),l5=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,c]=r.match(ww);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},q$=e=>xi(0,255,e),r0={...wu,transform:e=>Math.round(q$(e))},ao={test:Sw("rgb","red"),parse:l5("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+r0.transform(e)+", "+r0.transform(t)+", "+r0.transform(n)+", "+Gc(uf.transform(r))+")"};function $$(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Ax={test:Sw("#"),parse:$$,transform:ao.transform},$f=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),is=$f("deg"),vi=$f("%"),be=$f("px"),V$=$f("vh"),F$=$f("vw"),aN={...vi,parse:e=>vi.parse(e)/100,transform:e=>vi.transform(e*100)},Ll={test:Sw("hsl","hue"),parse:l5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vi.transform(Gc(t))+", "+vi.transform(Gc(n))+", "+Gc(uf.transform(r))+")"},$t={test:e=>ao.test(e)||Ax.test(e)||Ll.test(e),parse:e=>ao.test(e)?ao.parse(e):Ll.test(e)?Ll.parse(e):Ax.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ao.transform(e):Ll.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},H$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function K$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ww))==null?void 0:t.length)||0)+(((n=e.match(H$))==null?void 0:n.length)||0)>0}const u5="number",c5="color",G$="var",Y$="var(",sN="${}",W$=/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 cf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(W$,f=>($t.test(f)?(r.color.push(o),a.push(c5),n.push($t.parse(f))):f.startsWith(Y$)?(r.var.push(o),a.push(G$),n.push(f)):(r.number.push(o),a.push(u5),n.push(parseFloat(f))),++o,sN)).split(sN);return{values:n,split:c,indexes:r,types:a}}function f5(e){return cf(e).values}function d5(e){const{split:t,types:n}=cf(e),r=t.length;return a=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],a[l]!==void 0){const c=n[l];c===u5?o+=Gc(a[l]):c===c5?o+=$t.transform(a[l]):o+=a[l]}return o}}const X$=e=>typeof e=="number"?0:$t.test(e)?$t.getAnimatableNone(e):e;function Q$(e){const t=f5(e);return d5(e)(t.map(X$))}const Xr={test:K$,parse:f5,createTransformer:d5,getAnimatableNone:Q$};function i0(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 Z$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=i0(f,c,e+1/3),o=i0(f,c,e),l=i0(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function wm(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,a0=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},J$=[Ax,ao,Ll],eV=e=>J$.find(t=>t.test(e));function oN(e){const t=eV(e);if(!t)return!1;let n=t.parse(e);return t===Ll&&(n=Z$(n)),n}const lN=(e,t)=>{const n=oN(e),r=oN(t);if(!n||!r)return wm(e,t);const a={...n};return o=>(a.red=a0(n.red,r.red,o),a.green=a0(n.green,r.green,o),a.blue=a0(n.blue,r.blue,o),a.alpha=xt(n.alpha,r.alpha,o),ao.transform(a))},Ex=new Set(["none","hidden"]);function tV(e,t){return Ex.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nV(e,t){return n=>xt(e,t,n)}function jw(e){return typeof e=="number"?nV:typeof e=="string"?xw(e)?wm:$t.test(e)?lN:aV:Array.isArray(e)?h5:typeof e=="object"?$t.test(e)?lN:rV:wm}function h5(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>jw(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function rV(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=jw(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function iV(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],l=e.indexes[o][r[o]],c=e.values[l]??0;n[a]=c,r[o]++}return n}const aV=(e,t)=>{const n=Xr.createTransformer(t),r=cf(e),a=cf(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Ex.has(e)&&!a.values.length||Ex.has(t)&&!r.values.length?tV(e,t):Uf(h5(iV(r,a),a.values),n):wm(e,t)};function m5(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):jw(e)(e,t)}const sV=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ht.update(t,n),stop:()=>js(t),now:()=>bn.isProcessing?bn.timestamp:_n.now()}},p5=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=Math.round(e(o/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Sm=2e4;function Ow(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Sm;)t+=n,r=e.next(t);return t>=Sm?1/0:t}function g5(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Ow(r),Sm);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:Cr(a)}}const oV=5;function v5(e,t,n){const r=Math.max(t-oV,0);return KD(n-e(r),t-r)}const Tt={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},s0=.001;function lV({duration:e=Tt.duration,bounce:t=Tt.bounce,velocity:n=Tt.velocity,mass:r=Tt.mass}){let a,o,l=1-t;l=xi(Tt.minDamping,Tt.maxDamping,l),e=xi(Tt.minDuration,Tt.maxDuration,Cr(e)),l<1?(a=h=>{const m=h*l,p=m*e,v=m-n,x=Nx(h,l),j=Math.exp(-p);return s0-v/x*j},o=h=>{const p=h*l*e,v=p*n+n,x=Math.pow(l,2)*Math.pow(h,2)*e,j=Math.exp(-p),O=Nx(Math.pow(h,2),l);return(-a(h)+s0>0?-1:1)*((v-x)*j)/O}):(a=h=>{const m=Math.exp(-h*e),p=(h-n)*e+1;return-s0+m*p},o=h=>{const m=Math.exp(-h*e),p=(n-h)*(e*e);return m*p});const c=5/e,f=cV(a,o,c);if(e=_r(e),isNaN(f))return{stiffness:Tt.stiffness,damping:Tt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const uV=12;function cV(e,t,n){let r=n;for(let a=1;a<uV;a++)r=r-e(r)/t(r);return r}function Nx(e,t){return e*Math.sqrt(1-t*t)}const fV=["duration","bounce"],dV=["stiffness","damping","mass"];function uN(e,t){return t.some(n=>e[n]!==void 0)}function hV(e){let t={velocity:Tt.velocity,stiffness:Tt.stiffness,damping:Tt.damping,mass:Tt.mass,isResolvedFromDuration:!1,...e};if(!uN(e,dV)&&uN(e,fV))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*xi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Tt.mass,stiffness:a,damping:o}}else{const n=lV({...e,velocity:0});t={...t,...n,mass:Tt.mass},t.isResolvedFromDuration=!0}return t}function ff(e=Tt.visualDuration,t=Tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=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:p,velocity:v,isResolvedFromDuration:x}=hV({...n,velocity:-Cr(n.velocity||0)}),j=v||0,O=h/(2*Math.sqrt(f*m)),w=l-o,A=Cr(Math.sqrt(f/m)),T=Math.abs(w)<5;r||(r=T?Tt.restSpeed.granular:Tt.restSpeed.default),a||(a=T?Tt.restDelta.granular:Tt.restDelta.default);let k;if(O<1){const C=Nx(A,O);k=P=>{const _=Math.exp(-O*A*P);return l-_*((j+O*A*w)/C*Math.sin(C*P)+w*Math.cos(C*P))}}else if(O===1)k=C=>l-Math.exp(-A*C)*(w+(j+A*w)*C);else{const C=A*Math.sqrt(O*O-1);k=P=>{const _=Math.exp(-O*A*P),D=Math.min(C*P,300);return l-_*((j+O*A*w)*Math.sinh(D)+C*w*Math.cosh(D))/C}}const E={calculatedDuration:x&&p||null,next:C=>{const P=k(C);if(x)c.done=C>=p;else{let _=C===0?j:0;O<1&&(_=C===0?_r(j):v5(k,C,P));const D=Math.abs(_)<=r,L=Math.abs(l-P)<=a;c.done=D&&L}return c.value=c.done?l:P,c},toString:()=>{const C=Math.min(Ow(E),Sm),P=p5(_=>E.next(C*_).value,C,30);return C+"ms "+P},toTransition:()=>{}};return E}ff.applyToOptions=e=>{const t=g5(e,100,ff);return e.ease=t.ease,e.duration=_r(t.duration),e.type="keyframes",e};function kx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const p=e[0],v={done:!1,value:p},x=D=>c!==void 0&&D<c||f!==void 0&&D>f,j=D=>c===void 0?f:f===void 0||Math.abs(c-D)<Math.abs(f-D)?c:f;let O=n*t;const w=p+O,A=l===void 0?w:l(w);A!==w&&(O=A-p);const T=D=>-O*Math.exp(-D/r),k=D=>A+T(D),E=D=>{const L=T(D),Z=k(D);v.done=Math.abs(L)<=h,v.value=v.done?A:Z};let C,P;const _=D=>{x(v.value)&&(C=D,P=ff({keyframes:[v.value,j(v.value)],velocity:v5(k,D,v.value),damping:a,stiffness:o,restDelta:h,restSpeed:m}))};return _(0),{calculatedDuration:null,next:D=>{let L=!1;return!P&&C===void 0&&(L=!0,E(D),_(D)),C!==void 0&&D>=C?P.next(D-C):(!L&&E(D),v)}}}function mV(e,t,n){const r=[],a=n||ua.mix||m5,o=e.length-1;for(let l=0;l<o;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Pr:t;c=Uf(f,c)}r.push(c)}return r}function pV(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(gw(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=mV(t,r,a),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let p=0;if(f>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const v=ou(e[p],e[p+1],m);return c[p](v)};return n?m=>h(xi(e[0],e[o-1],m)):h}function y5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ou(0,t,r);e.push(xt(n,1,a))}}function b5(e){const t=[0];return y5(t,e.length-1),t}function gV(e,t){return e.map(n=>n*t)}function vV(e,t){return e.map(()=>t||t5).splice(0,e.length-1)}function Yc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=n5(r)?r.map(rN):rN(r),o={done:!1,value:t[0]},l=gV(n&&n.length===t.length?n:b5(t),e),c=pV(l,t,{ease:Array.isArray(a)?a:vV(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const yV=e=>e!==null;function Aw(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(yV),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const bV={decay:kx,inertia:kx,tween:Yc,keyframes:Yc,spring:ff};function x5(e){typeof e.type=="string"&&(e.type=bV[e.type])}class Ew{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 xV=e=>e/100;class Nw extends Ew{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,a;const{motionValue:n}=this.options;n&&n.updatedAt!==_n.now()&&this.tick(_n.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;x5(t);const{type:n=Yc,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Yc;f!==Yc&&typeof c[0]!="number"&&(this.mixKeyframes=Uf(xV,m5(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=Ow(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,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:a,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:p,repeatType:v,repeatDelay:x,type:j,onUpdate:O,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-h*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let k=this.currentTime,E=r;if(p){const D=Math.min(this.currentTime,a)/c;let L=Math.floor(D),Z=D%1;!Z&&D>=1&&(Z=1),Z===1&&L--,L=Math.min(L,p+1),!!(L%2)&&(v==="reverse"?(Z=1-Z,x&&(Z-=x/c)):v==="mirror"&&(E=l)),k=xi(0,1,Z)*c}const C=T?{done:!1,value:m[0]}:E.next(k);o&&(C.value=o(C.value));let{done:P}=C;!T&&f!==null&&(P=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return _&&j!==kx&&(C.value=Aw(m,this.options,w,this.speed)),O&&O(C.value),_&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Cr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Cr(t)}get time(){return Cr(this.currentTime)}set time(t){var n;t=_r(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(_n.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Cr(this.currentTime))}play(){var a,o;if(this.isStopped)return;const{driver:t=sV,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(o=(a=this.options).onPlay)==null||o.call(a);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(_n.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 wV(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const so=e=>e*180/Math.PI,Tx=e=>{const t=so(Math.atan2(e[1],e[0]));return Cx(t)},SV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Tx,rotateZ:Tx,skewX:e=>so(Math.atan(e[1])),skewY:e=>so(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Cx=e=>(e=e%360,e<0&&(e+=360),e),cN=Tx,fN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dN=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),jV={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fN,scaleY:dN,scale:e=>(fN(e)+dN(e))/2,rotateX:e=>Cx(so(Math.atan2(e[6],e[5]))),rotateY:e=>Cx(so(Math.atan2(-e[2],e[0]))),rotateZ:cN,rotate:cN,skewX:e=>so(Math.atan(e[4])),skewY:e=>so(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mx(e){return e.includes("scale")?1:0}function Px(e,t){if(!e||e==="none")return Mx(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=jV,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=SV,a=c}if(!a)return Mx(t);const o=r[t],l=a[1].split(",").map(AV);return typeof o=="function"?o(l):l[o]}const OV=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Px(n,t)};function AV(e){return parseFloat(e.trim())}const Su=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ju=new Set(Su),hN=e=>e===wu||e===be,EV=new Set(["x","y","z"]),NV=Su.filter(e=>!EV.has(e));function kV(e){const t=[];return NV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ys={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})=>Px(t,"x"),y:(e,{transform:t})=>Px(t,"y")};ys.translateX=ys.x;ys.translateY=ys.y;const wo=new Set;let _x=!1,Dx=!1,Rx=!1;function w5(){if(Dx){const e=Array.from(wo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=kV(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.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)})}Dx=!1,_x=!1,wo.forEach(e=>e.complete(Rx)),wo.clear()}function S5(){wo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dx=!0)})}function TV(){Rx=!0,S5(),w5(),Rx=!1}class kw{constructor(t,n,r,a,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(wo.add(this),_x||(_x=!0,ht.read(S5),ht.resolveKeyframes(w5))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const o=a==null?void 0:a.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),a&&o===void 0&&a.set(t[0])}wV(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wo.delete(this)}cancel(){this.state==="scheduled"&&(wo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const CV=e=>e.startsWith("--");function MV(e,t,n){CV(t)?e.style.setProperty(t,n):e.style[t]=n}const PV={};function j5(e,t){const n=HD(e);return()=>PV[t]??n()}const _V=j5(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),O5=j5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$c=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mN={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$c([0,.65,.55,1]),circOut:$c([.55,0,1,.45]),backIn:$c([.31,.01,.66,-.59]),backOut:$c([.33,1.53,.69,.99])};function A5(e,t){if(e)return typeof e=="function"?O5()?p5(e,t):"ease-out":i5(e)?$c(e):Array.isArray(e)?e.map(n=>A5(n,t)||mN.easeOut):mN[e]}function DV(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:c="easeOut",times:f}={},h=void 0){const m={[t]:n};f&&(m.offset=f);const p=A5(c,a);Array.isArray(p)&&(m.easing=p);const v={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(m,v)}function Tw(e){return typeof e=="function"&&"applyToOptions"in e}function RV({type:e,...t}){return Tw(e)&&O5()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class E5 extends Ew{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,gw(typeof t.type!="string");const h=RV(t);this.animation=DV(n,r,a,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=Aw(a,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):MV(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}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 Cr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Cr(t)}get time(){return Cr(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_r(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=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&&_V()?(this.animation.timeline=t,Pr):n(this)}}const N5={anticipate:ZD,backInOut:QD,circInOut:e5};function zV(e){return e in N5}function LV(e){typeof e.ease=="string"&&zV(e.ease)&&(e.ease=N5[e.ease])}const o0=10;class IV extends E5{constructor(t){LV(t),x5(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Nw({...l,autoplay:!1}),f=Math.max(o0,_n.now()-this.startTime),h=xi(0,o0,f-o0);n.setWithVelocity(c.sample(Math.max(0,f-h)).value,c.sample(f).value,h),c.stop()}}const pN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xr.test(e)||e==="0")&&!e.startsWith("url("));function BV(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 a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=pN(a,t),c=pN(o,t);return!l||!c?!1:BV(e)||(n==="spring"||Tw(n))&&r}function zx(e){e.duration=0,e.type="keyframes"}const qV=new Set(["opacity","clipPath","filter","transform"]),$V=HD(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function VV(e){var m;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,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 $V()&&n&&qV.has(n)&&(n!=="transform"||!h)&&!f&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const FV=40;class HV extends Ew{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",keyframes:c,name:f,motionValue:h,element:m,...p}){var j;super(),this.stop=()=>{var O,w;this._animation&&(this._animation.stop(),(O=this.stopTimeline)==null||O.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=_n.now();const v={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:m,...p},x=(m==null?void 0:m.KeyframeResolver)||kw;this.keyframeResolver=new x(c,(O,w,A)=>this.onKeyframesResolved(O,w,v,!A),f,h,m),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(t,n,r,a){var w,A;this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=_n.now(),UV(t,o,l,c)||((ua.instantAnimations||!f)&&(m==null||m(Aw(t,r,n))),t[0]=t[t.length-1],zx(r),r.repeat=0);const v={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>FV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!h&&VV(v),j=(A=(w=v.motionValue)==null?void 0:w.owner)==null?void 0:A.current,O=x?new IV({...v,element:j}):new Nw(v);O.finished.then(()=>{this.notifyFinished()}).catch(Pr),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}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(),TV()),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 KV{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,a)=>{r&&r(),this.animations[a].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 gN(this.animations,"duration")}get iterationDuration(){return gN(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 gN(e,t){let n=0;for(let r=0;r<e.length;r++){const a=e[r][t];a!==null&&a>n&&(n=a)}return n}class GV extends KV{then(t,n){return this.finished.finally(t).then(()=>{})}}function k5(e,t,n,r=0,a=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):a===1?o*r:c-o*r}const YV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WV(e){const t=YV.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function T5(e,t,n=1){const[r,a]=WV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return $D(l)?parseFloat(l):l}return xw(a)?T5(a,t,n+1):a}const XV={type:"spring",stiffness:500,damping:25,restSpeed:10},QV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZV={type:"keyframes",duration:.8},JV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e7=(e,{keyframes:t})=>t.length>2?ZV:ju.has(e)?e.startsWith("scale")?QV(t[1]):XV:JV,t7=e=>e!==null;function n7(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(t7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[o]}function C5(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Cw(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?C5(n,e):n}function r7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const Mw=(e,t,n,r={},a,o)=>l=>{const c=Cw(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-_r(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:a};r7(c)||Object.assign(m,e7(e,m)),m.duration&&(m.duration=_r(m.duration)),m.repeatDelay&&(m.repeatDelay=_r(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(zx(m),m.delay===0&&(p=!0)),(ua.instantAnimations||ua.skipAnimations||a!=null&&a.shouldSkipAnimations)&&(p=!0,zx(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,p&&!o&&t.get()!==void 0){const v=n7(m.keyframes,c);if(v!==void 0){ht.update(()=>{m.onUpdate(v),m.onComplete()});return}}return c.isSync?new Nw(m):new HV(m)};function vN(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pw(e,t,n,r){if(typeof t=="function"){const[a,o]=vN(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=vN(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function Hl(e,t,n){const r=e.getProps();return Pw(r,t,n!==void 0?n:r.custom,e)}const M5=new Set(["width","height","top","left","right","bottom",...Su]),yN=30,i7=e=>!isNaN(parseFloat(e));class a7{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const a=_n.now();if(this.updatedAt!==a&&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=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=i7(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 vw);const r=this.events[t].add(n);return t==="change"?()=>{r(),ht.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=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yN)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yN);return KD(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 ko(e,t){return new a7(e,t)}const Lx=e=>Array.isArray(e);function s7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ko(n))}function o7(e){return Lx(e)?e[e.length-1]||0:e}function l7(e,t){const n=Hl(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=o7(o[l]);s7(e,l,c)}}const an=e=>!!(e&&e.getVelocity);function u7(e){return!!(an(e)&&e.add)}function Ix(e,t){const n=e.getValue("willChange");if(u7(n))return n.add(t);if(!n&&ua.WillChange){const r=new ua.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function _w(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const c7="framerAppearId",P5="data-"+_w(c7);function _5(e){return e.props[P5]}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:a}={}){let{transition:o,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();o=o?C5(o,f):f;const h=o==null?void 0:o.reduceMotion;r&&(o=r);const m=[],p=a&&e.animationState&&e.animationState.getState()[a];for(const v in c){const x=e.getValue(v,e.latestValues[v]??null),j=c[v];if(j===void 0||p&&f7(p,v))continue;const O={delay:n,...Cw(o||{},v)},w=x.get();if(w!==void 0&&!x.isAnimating&&!Array.isArray(j)&&j===w&&!O.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const E=_5(e);if(E){const C=window.MotionHandoffAnimation(E,v,ht);C!==null&&(O.startTime=C,A=!0)}}Ix(e,v);const T=h??e.shouldReduceMotion;x.start(Mw(v,x,j,T&&M5.has(v)?{type:!1}:O,e,A));const k=x.animation;k&&m.push(k)}if(l){const v=()=>ht.update(()=>{l&&l7(e,l)});m.length?Promise.all(m).then(v):v()}return m}function Bx(e,t,n={}){var f;const r=Hl(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=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:p,staggerDirection:v}=a;return d7(e,t,h,m,p,v,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[h,m]=c==="beforeChildren"?[o,l]:[l,o];return h().then(()=>m())}else return Promise.all([o(),l(n.delay)])}function d7(e,t,n=0,r=0,a=0,o=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(Bx(f,t,{...l,delay:n+(typeof r=="function"?0:r)+k5(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function h7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>Bx(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=Bx(e,t,n);else{const a=typeof t=="function"?Hl(e,t,n.custom):t;r=Promise.all(Dw(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const m7={test:e=>e==="auto",parse:e=>e},D5=e=>t=>t.test(e),R5=[wu,be,vi,is,F$,V$,m7],bN=e=>R5.find(D5(e));function p7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||FD(e):!0}const g7=new Set(["brightness","contrast","saturate","opacity"]);function v7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ww)||[];if(!r)return e;const a=n.replace(r,"");let o=g7.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const y7=/\b([a-z-]*)\(.*?\)/gu,Ux={...Xr,getAnimatableNone:e=>{const t=e.match(y7);return t?t.map(v7).join(" "):e}},qx={...Xr,getAnimatableNone:e=>{const t=Xr.parse(e);return Xr.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},xN={...wu,transform:Math.round},b7={rotate:is,rotateX:is,rotateY:is,rotateZ:is,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:is,skewX:is,skewY:is,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:uf,originX:aN,originY:aN,originZ:be},Rw={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,inset:be,insetBlock:be,insetBlockStart:be,insetBlockEnd:be,insetInline:be,insetInlineStart:be,insetInlineEnd:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,paddingBlock:be,paddingBlockStart:be,paddingBlockEnd:be,paddingInline:be,paddingInlineStart:be,paddingInlineEnd:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,marginBlock:be,marginBlockStart:be,marginBlockEnd:be,marginInline:be,marginInlineStart:be,marginInlineEnd:be,fontSize:be,backgroundPositionX:be,backgroundPositionY:be,...b7,zIndex:xN,fillOpacity:uf,strokeOpacity:uf,numOctaves:xN},x7={...Rw,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:Ux,WebkitFilter:Ux,mask:qx,WebkitMask:qx},z5=e=>x7[e],w7=new Set([Ux,qx]);function L5(e,t){let n=z5(e);return w7.has(n)||(n=Xr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const S7=new Set(["auto","none","0"]);function j7(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!S7.has(o)&&cf(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=L5(n,a)}class O7 extends kw{constructor(t,n,r,a,o){super(t,n,r,a,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),xw(p))){const v=T5(p,n.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!M5.has(r)||t.length!==2)return;const[a,o]=t,l=bN(a),c=bN(o),f=iN(a),h=iN(o);if(f!==h&&ys[r]){this.needsMeasurement=!0;return}if(l!==c)if(hN(l)&&hN(c))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else ys[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||p7(t[a]))&&r.push(a);r.length&&j7(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=ys[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=ys[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()}}const A7=new Set(["opacity","clipPath","filter","transform"]);function zw(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const I5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $x(e){return VD(e)&&"offsetHeight"in e}const{schedule:Lw}=a5(queueMicrotask,!1),Fr={x:!1,y:!1};function B5(){return Fr.x||Fr.y}function E7(e){return e==="x"||e==="y"?Fr[e]?null:(Fr[e]=!0,()=>{Fr[e]=!1}):Fr.x||Fr.y?null:(Fr.x=Fr.y=!0,()=>{Fr.x=Fr.y=!1})}function U5(e,t){const n=zw(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function N7(e){return!(e.pointerType==="touch"||B5())}function k7(e,t,n={}){const[r,a,o]=U5(e,n);return r.forEach(l=>{let c=!1,f=!1,h;const m=()=>{l.removeEventListener("pointerleave",j)},p=w=>{h&&(h(w),h=void 0),m()},v=w=>{c=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,p(w))},x=()=>{c=!0,window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",v,a)},j=w=>{if(w.pointerType!=="touch"){if(c){f=!0;return}p(w)}},O=w=>{if(!N7(w))return;f=!1;const A=t(l,w);typeof A=="function"&&(h=A,l.addEventListener("pointerleave",j,a))};l.addEventListener("pointerenter",O,a),l.addEventListener("pointerdown",x,a)}),o}const q5=(e,t)=>t?e===t?!0:q5(e,t.parentElement):!1,Iw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,T7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function C7(e){return T7.has(e.tagName)||e.isContentEditable===!0}const M7=new Set(["INPUT","SELECT","TEXTAREA"]);function P7(e){return M7.has(e.tagName)||e.isContentEditable===!0}const nm=new WeakSet;function wN(e){return t=>{t.key==="Enter"&&e(t)}}function l0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wN(()=>{if(nm.has(n))return;l0(n,"down");const a=wN(()=>{l0(n,"up")}),o=()=>l0(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function SN(e){return Iw(e)&&!B5()}const jN=new WeakSet;function D7(e,t,n={}){const[r,a,o]=U5(e,n),l=c=>{const f=c.currentTarget;if(!SN(c)||jN.has(c))return;nm.add(f),n.stopPropagation&&jN.add(c);const h=t(f,c),m=(x,j)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",v),nm.has(f)&&nm.delete(f),SN(x)&&typeof h=="function"&&h(x,{success:j})},p=x=>{m(x,f===window||f===document||n.useGlobalTarget||q5(f,x.target))},v=x=>{m(x,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",v,a)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),$x(c)&&(c.addEventListener("focus",h=>_7(h,a)),!C7(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function Dp(e){return VD(e)&&"ownerSVGElement"in e}const rm=new WeakMap;let as;const $5=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:Dp(r)&&"getBBox"in r?r.getBBox()[t]:r[n],R7=$5("inline","width","offsetWidth"),z7=$5("block","height","offsetHeight");function L7({target:e,borderBoxSize:t}){var n;(n=rm.get(e))==null||n.forEach(r=>{r(e,{get width(){return R7(e,t)},get height(){return z7(e,t)}})})}function I7(e){e.forEach(L7)}function B7(){typeof ResizeObserver>"u"||(as=new ResizeObserver(I7))}function U7(e,t){as||B7();const n=zw(e);return n.forEach(r=>{let a=rm.get(r);a||(a=new Set,rm.set(r,a)),a.add(t),as==null||as.observe(r)}),()=>{n.forEach(r=>{const a=rm.get(r);a==null||a.delete(t),a!=null&&a.size||as==null||as.unobserve(r)})}}const im=new Set;let Il;function q7(){Il=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};im.forEach(t=>t(e))},window.addEventListener("resize",Il)}function $7(e){return im.add(e),Il||q7(),()=>{im.delete(e),!im.size&&typeof Il=="function"&&(window.removeEventListener("resize",Il),Il=void 0)}}function ON(e,t){return typeof e=="function"?$7(e):U7(e,t)}function V5(e){return Dp(e)&&e.tagName==="svg"}const V7=[...R5,$t,Xr],F7=e=>V7.find(D5(e)),AN=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bl=()=>({x:AN(),y:AN()}),EN=()=>({min:0,max:0}),qt=()=>({x:EN(),y:EN()}),df=new WeakMap;function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hf(e){return typeof e=="string"||Array.isArray(e)}const Bw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uw=["initial",...Bw];function zp(e){return Rp(e.animate)||Uw.some(t=>hf(e[t]))}function F5(e){return!!(zp(e)||e.variants)}function H7(e,t,n){for(const r in t){const a=t[r],o=n[r];if(an(a))e.addValue(r,a);else if(an(o))e.addValue(r,ko(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,ko(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Vx={current:null},H5={current:!1},K7=typeof window<"u";function G7(){if(H5.current=!0,!!K7)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vx.current=e.matches;e.addEventListener("change",t),t()}else Vx.current=!1}const NN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jm={};function K5(e){jm=e}function Y7(){return jm}class G5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:o,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=kw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=_n.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,ht.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=zp(n),this.isVariantNode=F5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const j=v[x];h[x]!==void 0&&an(j)&&j.set(h[x])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,df.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((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(H5.current||G7(),this.shouldReduceMotion=Vx.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(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){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&A7.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:h,duration:m}=n.accelerate,p=new E5({element:this.current,name:t,keyframes:c,times:f,ease:h,duration:_r(m)}),v=l(p);this.valueSubscriptions.set(t,()=>{v(),p.cancel()});return}const r=ju.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ht.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),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 jm){const n=jm[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(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):qt()}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<NN.length;r++){const a=NN[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=H7(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=ko(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"&&($D(r)||FD(r))?r=parseFloat(r):!F7(r)&&Xr.test(n)&&(r=L5(t,n)),this.setBaseTarget(t,an(r)?r.get():r)),an(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=Pw(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!an(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Lw.render(this.render)}}class Y5 extends G5{constructor(){super(...arguments),this.KeyframeResolver=O7}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;an(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ks{constructor(t){this.isMounted=!1,this.node=t}update(){}}function W5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function W7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function X7(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 u0(e){return e===void 0||e===1}function Fx({scale:e,scaleX:t,scaleY:n}){return!u0(e)||!u0(t)||!u0(n)}function Js(e){return Fx(e)||X5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function X5(e){return kN(e.x)||kN(e.y)}function kN(e){return e&&e!=="0%"}function Om(e,t,n){const r=e-n,a=t*r;return n+a}function TN(e,t,n,r,a){return a!==void 0&&(e=Om(e,a,r)),Om(e,n,r)+t}function Hx(e,t=0,n=1,r,a){e.min=TN(e.min,t,n,r,a),e.max=TN(e.max,t,n,r,a)}function Q5(e,{x:t,y:n}){Hx(e.x,t.translate,t.scale,t.originPoint),Hx(e.y,n.translate,n.scale,n.originPoint)}const CN=.999999999999,MN=1.0000000000001;function Q7(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let c=0;c<a;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&&ql(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Q5(e,l)),r&&Js(o.latestValues)&&ql(e,o.latestValues))}t.x<MN&&t.x>CN&&(t.x=1),t.y<MN&&t.y>CN&&(t.y=1)}function Ul(e,t){e.min=e.min+t,e.max=e.max+t}function PN(e,t,n,r,a=.5){const o=xt(e.min,e.max,a);Hx(e,t,n,o,r)}function ql(e,t){PN(e.x,t.x,t.scaleX,t.scale,t.originX),PN(e.y,t.y,t.scaleY,t.scale,t.originY)}function Z5(e,t){return W5(X7(e.getBoundingClientRect(),t))}function Z7(e,t,n){const r=Z5(e,n),{scroll:a}=t;return a&&(Ul(r.x,a.offset.x),Ul(r.y,a.offset.y)),r}const J7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eF=Su.length;function tF(e,t,n){let r="",a=!0;for(let o=0;o<eF;o++){const l=Su[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number")f=c===(l.startsWith("scale")?1:0);else{const h=parseFloat(c);f=l.startsWith("scale")?h===1:h===0}if(!f||n){const h=I5(c,Rw[l]);if(!f){a=!1;const m=J7[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function qw(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(ju.has(f)){l=!0;continue}else if(o5(f)){a[f]=h;continue}else{const m=I5(h,Rw[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=tF(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}`}}function J5(e,{style:t,vars:n},r,a){const o=e.style;let l;for(l in t)o[l]=t[l];a==null||a.applyProjectionStyles(o,r);for(l in n)o.setProperty(l,n[l])}function _N(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const n=_N(e,t.target.x),r=_N(e,t.target.y);return`${n}% ${r}%`}},nF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Xr.parse(e);if(a.length>5)return r;const o=Xr.createTransformer(e),l=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=f;const h=xt(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=h),typeof a[3+l]=="number"&&(a[3+l]/=h),o(a)}},Kx={borderRadius:{...kc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kc,borderTopRightRadius:kc,borderBottomLeftRadius:kc,borderBottomRightRadius:kc,boxShadow:nF};function e3(e,{layout:t,layoutId:n}){return ju.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Kx[e]||e==="opacity")}function $w(e,t,n){var l;const r=e.style,a=t==null?void 0:t.style,o={};if(!r)return o;for(const c in r)(an(r[c])||a&&an(a[c])||e3(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(o[c]=r[c]);return o}function rF(e){return window.getComputedStyle(e)}class t3 extends Y5{constructor(){super(...arguments),this.type="html",this.renderInstance=J5}readValueFromInstance(t,n){var r;if(ju.has(n))return(r=this.projection)!=null&&r.isProjecting?Mx(n):OV(t,n);{const a=rF(t),o=(o5(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Z5(t,n)}build(t,n,r){qw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $w(t,n,r)}}function iF(e,t){return e in t}class aF extends G5{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(iF(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 qt()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const sF={offset:"stroke-dashoffset",array:"stroke-dasharray"},oF={offset:"strokeDashoffset",array:"strokeDasharray"};function lF(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?sF:oF;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const uF=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function n3(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(qw(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v}=e;p.transform&&(v.transform=p.transform,delete p.transform),(v.transform||p.transformOrigin)&&(v.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),v.transform&&(v.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete p.transformBox);for(const x of uF)p[x]!==void 0&&(v[x]=p[x],delete p[x]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&lF(p,a,o,l,!1)}const r3=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"]),i3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function cF(e,t,n,r){J5(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(r3.has(a)?a:_w(a),t.attrs[a])}function a3(e,t,n){const r=$w(e,t,n);for(const a in e)if(an(e[a])||an(t[a])){const o=Su.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}class s3 extends Y5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ju.has(n)){const r=z5(n);return r&&r.default||0}return n=r3.has(n)?n:_w(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return a3(t,n,r)}build(t,n,r){n3(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){cF(t,n,r,a)}mount(t){this.isSVGTag=i3(t.tagName),super.mount(t)}}const fF=Uw.length;function o3(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?o3(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fF;n++){const r=Uw[n],a=e.props[r];(hf(a)||a===!1)&&(t[r]=a)}return t}function l3(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 dF=[...Bw].reverse(),hF=Bw.length;function mF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>h7(e,n,r)))}function pF(e){let t=mF(e),n=DN(),r=!0;const a=f=>(h,m)=>{var v;const p=Hl(e,m,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(p){const{transition:x,transitionEnd:j,...O}=p;h={...h,...O,...j}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=o3(e.parent)||{},p=[],v=new Set;let x={},j=1/0;for(let w=0;w<hF;w++){const A=dF[w],T=n[A],k=h[A]!==void 0?h[A]:m[A],E=hf(k),C=A===f?T.isActive:null;C===!1&&(j=w);let P=k===m[A]&&k!==h[A]&&E;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),T.protectedKeys={...x},!T.isActive&&C===null||!k&&!T.prevProp||Rp(k)||typeof k=="boolean")continue;if(A==="exit"&&T.isActive&&C!==!0){T.prevResolvedValues&&(x={...x,...T.prevResolvedValues});continue}const _=gF(T.prevProp,k);let D=_||A===f&&T.isActive&&!P&&E||w>j&&E,L=!1;const Z=Array.isArray(k)?k:[k];let ee=Z.reduce(a(A),{});C===!1&&(ee={});const{prevResolvedValues:V={}}=T,ue={...V,...ee},le=G=>{D=!0,v.has(G)&&(L=!0,v.delete(G)),T.needsAnimating[G]=!0;const ie=e.getValue(G);ie&&(ie.liveStyle=!1)};for(const G in ue){const ie=ee[G],J=V[G];if(x.hasOwnProperty(G))continue;let $=!1;Lx(ie)&&Lx(J)?$=!l3(ie,J):$=ie!==J,$?ie!=null?le(G):v.add(G):ie!==void 0&&v.has(G)?le(G):T.protectedKeys[G]=!0}T.prevProp=k,T.prevResolvedValues=ee,T.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(D=!1);const ce=P&&_;D&&(!ce||L)&&p.push(...Z.map(G=>{const ie={type:A};if(typeof G=="string"&&r&&!ce&&e.manuallyAnimateOnMount&&e.parent){const{parent:J}=e,$=Hl(J,G);if(J.enteringChildren&&$){const{delayChildren:R}=$.transition||{};ie.delay=k5(J.enteringChildren,e,R)}}return{animation:G,options:ie}}))}if(v.size){const w={};if(typeof h.initial!="boolean"){const A=Hl(e,Array.isArray(h.initial)?h.initial[0]:h.initial);A&&A.transition&&(w.transition=A.transition)}v.forEach(A=>{const T=e.getBaseTarget(A),k=e.getValue(A);k&&(k.liveStyle=!0),w[A]=T??null}),p.push({animation:w})}let O=!!p.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(O=!1),r=!1,O?t(p):Promise.resolve()}function c(f,h){var p;if(n[f].isActive===h)return Promise.resolve();(p=e.variantChildren)==null||p.forEach(v=>{var x;return(x=v.animationState)==null?void 0:x.setActive(f,h)}),n[f].isActive=h;const m=l(f);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=DN()}}}function gF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!l3(t,e):!1}function Xs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function DN(){return{animate:Xs(!0),whileInView:Xs(),whileHover:Xs(),whileTap:Xs(),whileDrag:Xs(),whileFocus:Xs(),exit:Xs()}}function RN(e,t){e.min=t.min,e.max=t.max}function Vr(e,t){RN(e.x,t.x),RN(e.y,t.y)}function zN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const u3=1e-4,vF=1-u3,yF=1+u3,c3=.01,bF=0-c3,xF=0+c3;function Dn(e){return e.max-e.min}function wF(e,t,n){return Math.abs(e-t)<=n}function LN(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=Dn(n)/Dn(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vF&&e.scale<=yF||isNaN(e.scale))&&(e.scale=1),(e.translate>=bF&&e.translate<=xF||isNaN(e.translate))&&(e.translate=0)}function Wc(e,t,n,r){LN(e.x,t.x,n.x,r?r.originX:void 0),LN(e.y,t.y,n.y,r?r.originY:void 0)}function IN(e,t,n){e.min=n.min+t.min,e.max=e.min+Dn(t)}function SF(e,t,n){IN(e.x,t.x,n.x),IN(e.y,t.y,n.y)}function BN(e,t,n){e.min=t.min-n.min,e.max=e.min+Dn(t)}function Am(e,t,n){BN(e.x,t.x,n.x),BN(e.y,t.y,n.y)}function UN(e,t,n,r,a){return e-=t,e=Om(e,1/n,r),a!==void 0&&(e=Om(e,1/a,r)),e}function jF(e,t=0,n=1,r=.5,a,o=e,l=e){if(vi.test(t)&&(t=parseFloat(t),t=xt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=xt(o.min,o.max,r);e===o&&(c-=t),e.min=UN(e.min,t,n,c,a),e.max=UN(e.max,t,n,c,a)}function qN(e,t,[n,r,a],o,l){jF(e,t[n],t[r],t[a],t.scale,o,l)}const OF=["x","scaleX","originX"],AF=["y","scaleY","originY"];function $N(e,t,n,r){qN(e.x,t,OF,n?n.x:void 0,r?r.x:void 0),qN(e.y,t,AF,n?n.y:void 0,r?r.y:void 0)}function VN(e){return e.translate===0&&e.scale===1}function f3(e){return VN(e.x)&&VN(e.y)}function FN(e,t){return e.min===t.min&&e.max===t.max}function EF(e,t){return FN(e.x,t.x)&&FN(e.y,t.y)}function HN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function d3(e,t){return HN(e.x,t.x)&&HN(e.y,t.y)}function KN(e){return Dn(e.x)/Dn(e.y)}function GN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ci(e){return[e("x"),e("y")]}function NF(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||o||l)&&(r=`translate3d(${a}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:p,rotateY:v,skewX:x,skewY:j}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),j&&(r+=`skewY(${j}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 h3=["TopLeft","TopRight","BottomLeft","BottomRight"],kF=h3.length,YN=e=>typeof e=="string"?parseFloat(e):e,WN=e=>typeof e=="number"||be.test(e);function TF(e,t,n,r,a,o){a?(e.opacity=xt(0,n.opacity??1,CF(r)),e.opacityExit=xt(t.opacity??1,0,MF(r))):o&&(e.opacity=xt(t.opacity??1,n.opacity??1,r));for(let l=0;l<kF;l++){const c=`border${h3[l]}Radius`;let f=XN(t,c),h=XN(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||WN(f)===WN(h)?(e[c]=Math.max(xt(YN(f),YN(h),r),0),(vi.test(h)||vi.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function XN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const CF=m3(0,.5,JD),MF=m3(.5,.95,Pr);function m3(e,t,n){return r=>r<e?0:r>t?1:n(ou(e,t,r))}function p3(e,t,n){const r=an(e)?e:ko(e);return r.start(Mw("",r,t,n)),r.animation}function mf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const PF=(e,t)=>e.depth-t.depth;class _F{constructor(){this.children=[],this.isDirty=!1}add(t){pw(this.children,t),this.isDirty=!0}remove(t){su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PF),this.isDirty=!1,this.children.forEach(t)}}function DF(e,t){const n=_n.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(js(r),e(o-t))};return ht.setup(r,!0),()=>js(r)}function am(e){return an(e)?e.get():e}class RF{constructor(){this.members=[]}add(t){pw(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;a&&a.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&su(this.members,r)}t.scheduleRender()}remove(t){if(su(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a],l=o.instance;if(o.isPresent!==!1&&(!l||l.isConnected!==!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();const a=r.options.layoutDependency,o=t.options.layoutDependency;if(!(a!==void 0&&o!==void 0&&a===o)){const f=r.instance;f&&f.isConnected===!1&&!r.snapshot||(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:c}=t.options;c===!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)}}const sm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},c0=["","X","Y","Z"],zF=1e3;let LF=0;function f0(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function g3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ht,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&g3(r)}function v3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=LF++,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(UF),this.nodes.forEach(FF),this.nodes.forEach(HF),this.nodes.forEach(qF)},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 _F)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new vw),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=Dp(l)&&!V5(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,p=0;const v=()=>this.root.updateBlockedByResize=!1;ht.read(()=>{p=window.innerWidth}),e(l,()=>{const x=window.innerWidth;x!==p&&(p=x,this.root.updateBlockedByResize=!0,m&&m(),m=DF(v,250),sm.hasAnimatedSinceResize&&(sm.hasAnimatedSinceResize=!1,this.nodes.forEach(JN)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||h.getDefaultTransition()||XF,{onLayoutAnimationStart:O,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!d3(this.targetLayout,x),T=!p&&v;if(this.options.layoutRoot||this.resumeFrom||T||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...Cw(j,"layout"),onPlay:O,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(m,T)}else p||JN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}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(),js(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(KF),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&&g3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.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(QN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ZN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(VF),this.nodes.forEach(IF),this.nodes.forEach(BF)):this.nodes.forEach(ZN),this.clearAllSnapshots();const c=_n.now();bn.delta=xi(0,1e3/60,c-bn.timestamp),bn.timestamp=c,bn.isProcessing=!0,n0.update.process(bn),n0.preRender.process(bn),n0.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($F),this.sharedNodes.forEach(GF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ht.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ht.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=qt(),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(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!f3(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||Js(this.latestValues)||m)&&(a(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)),QF(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return qt();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(ZF))){const{scroll:m}=this.root;m&&(Ul(c.x,m.offset.x),Ul(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=qt();if(Vr(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:p,options:v}=m;m!==this.root&&p&&v.layoutScroll&&(p.wasRoot&&Vr(c,l),Ul(c.x,p.offset.x),Ul(c.y,p.offset.y))}return c}applyTransform(l,c=!1){const f=qt();Vr(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&&ql(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Js(m.latestValues)&&ql(f,m.latestValues)}return Js(this.latestValues)&&ql(f,this.latestValues),f}removeTransform(l){const c=qt();Vr(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Js(h.latestValues))continue;Fx(h.latestValues)&&h.updateSnapshot();const m=qt(),p=h.measurePageBox();Vr(m,p),$N(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Js(this.latestValues)&&$N(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!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var x;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||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=bn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),SF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vr(this.target,this.layout.layoutBox),Q5(this.target,this.targetDelta)):Vr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Fx(this.parent.latestValues)||X5(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=qt(),this.relativeTargetOrigin=qt(),Am(this.relativeTargetOrigin,c,f),Vr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===bn.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;Vr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;Q7(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=qt());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zN(this.prevProjectionDelta.x,this.projectionDelta.x),zN(this.prevProjectionDelta.y,this.projectionDelta.y)),Wc(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!GN(this.projectionDelta.x,this.prevProjectionDelta.x)||!GN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}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=Bl(),this.projectionDelta=Bl(),this.projectionDeltaWithTransform=Bl()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},p=Bl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=qt(),x=f?f.source:void 0,j=this.layout?this.layout.source:void 0,O=x!==j,w=this.getStack(),A=!w||w.members.length<=1,T=!!(O&&!A&&this.options.crossfade===!0&&!this.path.some(WF));this.animationProgress=0;let k;this.mixTargetDelta=E=>{const C=E/1e3;ek(p.x,l.x,C),ek(p.y,l.y,C),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Am(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),YF(this.relativeTarget,this.relativeTargetOrigin,v,C),k&&EF(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=qt()),Vr(k,this.relativeTarget)),O&&(this.animationValues=m,TF(m,h,this.latestValues,C,T,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ht.update(()=>{sm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ko(0)),this.motionValue.jump(0,!1),this.currentAnimation=p3(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(zF),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&&y3(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||qt();const p=Dn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+p;const v=Dn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+v}Vr(c,f),ql(c,m),Wc(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new RF),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&&f0("z",l,h,this.animationValues);for(let m=0;m<c0.length;m++)f0(`rotate${c0[m]}`,l,h,this.animationValues),f0(`skew${c0[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=am(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=am(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Js(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let p=NF(this.projectionDeltaWithTransform,this.treeScale,m);f&&(p=f(m,p)),l.transform=p;const{x:v,y:x}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${x.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 j in Kx){if(m[j]===void 0)continue;const{correct:O,applyTo:w,isCSSVariable:A}=Kx[j],T=p==="none"?m[j]:O(m[j],h);if(w){const k=w.length;for(let E=0;E<k;E++)l[w[E]]=T}else A?this.options.visualElement.renderState.vars[j]=T:l[j]=T}this.options.layoutId&&(l.pointerEvents=h===this?am(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(QN),this.root.sharedNodes.clear()}}}function IF(e){e.updateLayout()}function BF(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:a}=e.layout,{animationType:o}=e.options,l=t.source!==e.layout.source;o==="size"?ci(p=>{const v=l?t.measuredBox[p]:t.layoutBox[p],x=Dn(v);v.min=r[p].min,v.max=v.min+x}):y3(o,t.layoutBox,r)&&ci(p=>{const v=l?t.measuredBox[p]:t.layoutBox[p],x=Dn(r[p]);v.max=v.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+x)});const c=Bl();Wc(c,r,t.layoutBox);const f=Bl();l?Wc(f,e.applyTransform(a,!0),t.measuredBox):Wc(f,r,t.layoutBox);const h=!f3(c);let m=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:x}=p;if(v&&x){const j=qt();Am(j,t.layoutBox,v.layoutBox);const O=qt();Am(O,r,x.layoutBox),d3(j,O)||(m=!0),p.options.layoutRoot&&(e.relativeTarget=O,e.relativeTargetOrigin=j,e.relativeParent=p)}}}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 UF(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 qF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $F(e){e.clearSnapshot()}function QN(e){e.clearMeasurements()}function ZN(e){e.isLayoutDirty=!1}function VF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FF(e){e.resolveTargetDelta()}function HF(e){e.calcProjection()}function KF(e){e.resetSkewAndRotation()}function GF(e){e.removeLeadSnapshot()}function ek(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tk(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function YF(e,t,n,r){tk(e.x,t.x,n.x,r),tk(e.y,t.y,n.y,r)}function WF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XF={duration:.45,ease:[.4,0,.1,1]},nk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rk=nk("applewebkit/")&&!nk("chrome/")?Math.round:Pr;function ik(e){e.min=rk(e.min),e.max=rk(e.max)}function QF(e){ik(e.x),ik(e.y)}function y3(e,t,n){return e==="position"||e==="preserve-aspect"&&!wF(KN(t),KN(n),.2)}function ZF(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const JF=v3({attachResizeListener:(e,t)=>mf(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),d0={current:void 0},b3=v3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!d0.current){const e=new JF({});e.mount(window),e.setOptions({layoutScroll:!0}),d0.current=e}return d0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Vw=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ak(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eH(...e){return t=>{let n=!1;const r=e.map(a=>{const o=ak(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():ak(e[a],null)}}}}function tH(...e){return S.useCallback(eH(...e),e)}class nH extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=$x(r)&&r.offsetWidth||0,o=$x(r)&&r.offsetHeight||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left,l.bottom=o-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function rH({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){var v;const l=S.useId(),c=S.useRef(null),f=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=S.useContext(Vw),m=((v=e.props)==null?void 0:v.ref)??(e==null?void 0:e.ref),p=tH(c,m);return S.useInsertionEffect(()=>{const{width:x,height:j,top:O,left:w,right:A,bottom:T}=f.current;if(t||o===!1||!c.current||!x||!j)return;const k=n==="left"?`left: ${w}`:`right: ${A}`,E=r==="bottom"?`bottom: ${T}`:`top: ${O}`;c.current.dataset.motionPopId=l;const C=document.createElement("style");h&&(C.nonce=h);const P=a??document.head;return P.appendChild(C),C.sheet&&C.sheet.insertRule(`
|
|
356
|
+
[data-motion-pop-id="${l}"] {
|
|
357
|
+
position: absolute !important;
|
|
358
|
+
width: ${x}px !important;
|
|
359
|
+
height: ${j}px !important;
|
|
360
|
+
${k}px !important;
|
|
361
|
+
${E}px !important;
|
|
362
|
+
}
|
|
363
|
+
`),()=>{P.contains(C)&&P.removeChild(C)}},[t]),g.jsx(nH,{isPresent:t,childRef:c,sizeRef:f,pop:o,children:o===!1?e:S.cloneElement(e,{ref:p})})}const iH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,anchorY:f,root:h})=>{const m=mw(aH),p=S.useId();let v=!0,x=S.useMemo(()=>(v=!1,{id:p,initial:t,isPresent:n,custom:a,onExitComplete:j=>{m.set(j,!0);for(const O of m.values())if(!O)return;r&&r()},register:j=>(m.set(j,!1),()=>m.delete(j))}),[n,m,r]);return o&&v&&(x={...x}),S.useMemo(()=>{m.forEach((j,O)=>m.set(O,!1))},[n]),S.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=g.jsx(rH,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:h,children:e}),g.jsx(_p.Provider,{value:x,children:e})};function aH(){return new Map}function x3(e=!0){const t=S.useContext(_p);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=S.useId();S.useEffect(()=>{if(e)return a(o)},[e]);const l=S.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Ch=e=>e.key||"";function sk(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const ba=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",anchorY:f="top",root:h})=>{const[m,p]=x3(l),v=S.useMemo(()=>sk(e),[e]),x=l&&!m?[]:v.map(Ch),j=S.useRef(!0),O=S.useRef(v),w=mw(()=>new Map),A=S.useRef(new Set),[T,k]=S.useState(v),[E,C]=S.useState(v);qD(()=>{j.current=!1,O.current=v;for(let D=0;D<E.length;D++){const L=Ch(E[D]);x.includes(L)?(w.delete(L),A.current.delete(L)):w.get(L)!==!0&&w.set(L,!1)}},[E,x.length,x.join("-")]);const P=[];if(v!==T){let D=[...v];for(let L=0;L<E.length;L++){const Z=E[L],ee=Ch(Z);x.includes(ee)||(D.splice(L,0,Z),P.push(Z))}return o==="wait"&&P.length&&(D=P),C(sk(D)),k(v),null}const{forceRender:_}=S.useContext(hw);return g.jsx(g.Fragment,{children:E.map(D=>{const L=Ch(D),Z=l&&!m?!1:v===E||x.includes(L),ee=()=>{if(A.current.has(L))return;if(A.current.add(L),w.has(L))w.set(L,!0);else return;let V=!0;w.forEach(ue=>{ue||(V=!1)}),V&&(_==null||_(),C(O.current),l&&(p==null||p()),r&&r())};return g.jsx(iH,{isPresent:Z,initial:!j.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:h,onExitComplete:Z?void 0:ee,anchorX:c,anchorY:f,children:D},L)})})},w3=S.createContext({strict:!1}),ok={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"]};let lk=!1;function sH(){if(lk)return;const e={};for(const t in ok)e[t]={isEnabled:n=>ok[t].some(r=>!!n[r])};K5(e),lk=!0}function S3(){return sH(),Y7()}function oH(e){const t=S3();for(const n in e)t[n]={...t[n],...e[n]};K5(t)}const lH=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","propagate","ignoreStrict","viewport"]);function Em(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lH.has(e)}let j3=e=>!Em(e);function uH(e){typeof e=="function"&&(j3=t=>t.startsWith("on")?!Em(t):e(t))}try{uH(require("@emotion/is-prop-valid").default)}catch{}function cH(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(j3(a)||n===!0&&Em(a)||!t&&!Em(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Lp=S.createContext({});function fH(e,t){if(zp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hf(n)?n:void 0,animate:hf(r)?r:void 0}}return e.inherit!==!1?t:{}}function dH(e){const{initial:t,animate:n}=fH(e,S.useContext(Lp));return S.useMemo(()=>({initial:t,animate:n}),[uk(t),uk(n)])}function uk(e){return Array.isArray(e)?e.join(" "):e}const Fw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function O3(e,t,n){for(const r in t)!an(t[r])&&!e3(r,n)&&(e[r]=t[r])}function hH({transformTemplate:e},t){return S.useMemo(()=>{const n=Fw();return qw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mH(e,t){const n=e.style||{},r={};return O3(r,n,e),Object.assign(r,hH(e,t)),r}function pH(e,t){const n={},r=mH(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 A3=()=>({...Fw(),attrs:{}});function gH(e,t,n,r){const a=S.useMemo(()=>{const o=A3();return n3(o,t,i3(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};O3(o,e.style,e),a.style={...o,...a.style}}return a}const vH=["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 Hw(e){return typeof e!="string"||e.includes("-")?!1:!!(vH.indexOf(e)>-1||/[A-Z]/u.test(e))}function yH(e,t,n,{latestValues:r},a,o=!1,l){const f=(l??Hw(e)?gH:pH)(t,r,a,e),h=cH(t,typeof e=="string",o),m=e!==S.Fragment?{...h,...f,ref:n}:{},{children:p}=t,v=S.useMemo(()=>an(p)?p.get():p,[p]);return S.createElement(e,{...m,children:v})}function bH({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:xH(n,r,a,e),renderState:t()}}function xH(e,t,n,r){const a={},o=r(e,{});for(const v in o)a[v]=am(o[v]);let{initial:l,animate:c}=e;const f=zp(e),h=F5(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 p=m?c:l;if(p&&typeof p!="boolean"&&!Rp(p)){const v=Array.isArray(p)?p:[p];for(let x=0;x<v.length;x++){const j=Pw(e,v[x]);if(j){const{transitionEnd:O,transition:w,...A}=j;for(const T in A){let k=A[T];if(Array.isArray(k)){const E=m?k.length-1:0;k=k[E]}k!==null&&(a[T]=k)}for(const T in O)a[T]=O[T]}}}return a}const E3=e=>(t,n)=>{const r=S.useContext(Lp),a=S.useContext(_p),o=()=>bH(e,t,r,a);return n?o():mw(o)},wH=E3({scrapeMotionValuesFromProps:$w,createRenderState:Fw}),SH=E3({scrapeMotionValuesFromProps:a3,createRenderState:A3}),jH=Symbol.for("motionComponentSymbol");function OH(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const a=S.useRef(null);return S.useCallback(o=>{var c;o&&((c=e.onMount)==null||c.call(e,o)),t&&(o?t.mount(o):t.unmount());const l=r.current;if(typeof l=="function")if(o){const f=l(o);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):l(o);else l&&(l.current=o)},[t])}const N3=S.createContext({});function Rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AH(e,t,n,r,a,o){var k,E;const{visualElement:l}=S.useContext(Lp),c=S.useContext(w3),f=S.useContext(_p),h=S.useContext(Vw),m=h.reducedMotion,p=h.skipAnimations,v=S.useRef(null),x=S.useRef(!1);r=r||c.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:p,isSVG:o}),x.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const j=v.current,O=S.useContext(N3);j&&!j.projection&&a&&(j.type==="html"||j.type==="svg")&&EH(v.current,n,a,O);const w=S.useRef(!1);S.useInsertionEffect(()=>{j&&w.current&&j.update(n,f)});const A=n[P5],T=S.useRef(!!A&&!((k=window.MotionHandoffIsComplete)!=null&&k.call(window,A))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,A)));return qD(()=>{x.current=!0,j&&(w.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),T.current&&j.animationState&&j.animationState.animateChanges())}),S.useEffect(()=>{j&&(!T.current&&j.animationState&&j.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,A)}),T.current=!1),j.enteringChildren=void 0)}),j}function EH(e,t,n,r){const{layoutId:a,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:k3(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&Rl(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:h})}function k3(e){if(e)return e.options.allowProjection!==!1?e.projection:k3(e.parent)}function h0(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&oH(r);const o=n?n==="svg":Hw(e),l=o?SH:wH;function c(h,m){let p;const v={...S.useContext(Vw),...h,layoutId:NH(h)},{isStatic:x}=v,j=dH(h),O=l(h,x);if(!x&&UD){kH();const w=TH(v);p=w.MeasureLayout,j.visualElement=AH(e,O,v,a,w.ProjectionNode,o)}return g.jsxs(Lp.Provider,{value:j,children:[p&&j.visualElement?g.jsx(p,{visualElement:j.visualElement,...v}):null,yH(e,h,OH(O,j.visualElement,m),O,x,t,o)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=S.forwardRef(c);return f[jH]=e,f}function NH({layoutId:e}){const t=S.useContext(hw).id;return t&&e!==void 0?t+"-"+e:e}function kH(e,t){S.useContext(w3).strict}function TH(e){const t=S3(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function CH(e,t){if(typeof Proxy>"u")return h0;const n=new Map,r=(o,l)=>h0(o,l,e,t),a=(o,l)=>r(o,l);return new Proxy(a,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,h0(l,void 0,e,t)),n.get(l))})}const MH=(e,t)=>t.isSVG??Hw(e)?new s3(t):new t3(t,{allowProjection:e!==S.Fragment});class PH extends ks{constructor(t){super(t),t.animationState||(t.animationState=pF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(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 _H=0;class DH extends ks{constructor(){super(...arguments),this.id=_H++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.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 RH={animation:{Feature:PH},exit:{Feature:DH}};function Vf(e){return{point:{x:e.pageX,y:e.pageY}}}const zH=e=>t=>Iw(t)&&e(t,Vf(t));function Xc(e,t,n,r){return mf(e,t,zH(n),r)}const T3=({current:e})=>e?e.ownerDocument.defaultView:null,ck=(e,t)=>Math.abs(e-t);function LH(e,t){const n=ck(e.x,t.x),r=ck(e.y,t.y);return Math.sqrt(n**2+r**2)}const fk=new Set(["auto","scroll"]);class C3{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=p0(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,O=LH(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!O)return;const{point:w}=x,{timestamp:A}=bn;this.history.push({...w,timestamp:A});const{onStart:T,onMove:k}=this.handlers;j||(T&&T(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,x)},this.handlePointerMove=(x,j)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=m0(j,this.transformPagePoint),ht.update(this.updatePoint,!0)},this.handlePointerUp=(x,j)=>{this.end();const{onEnd:O,onSessionEnd:w,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=p0(x.type==="pointercancel"?this.lastMoveEventInfo:m0(j,this.transformPagePoint),this.history);this.startEvent&&O&&O(x,T),w&&w(x,T)},!Iw(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Vf(t),h=m0(f,this.transformPagePoint),{point:m}=h,{timestamp:p}=bn;this.history=[{...m,timestamp:p}];const{onSessionStart:v}=n;v&&v(t,p0(h,this.history)),this.removeListeners=Uf(Xc(this.contextWindow,"pointermove",this.handlePointerMove),Xc(this.contextWindow,"pointerup",this.handlePointerUp),Xc(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(fk.has(r.overflowX)||fk.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:a.x-n.x,y:a.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,a),ht.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),js(this.updatePoint)}}function m0(e,t){return t?{point:t(e.point)}:e}function dk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function p0({point:e},t){return{point:e,delta:dk(e,M3(t)),offset:dk(e,IH(t)),velocity:BH(t,.1)}}function IH(e){return e[0]}function M3(e){return e[e.length-1]}function BH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=M3(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>_r(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>_r(t)*2&&(r=e[1]);const o=Cr(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function UH(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function hk(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 qH(e,{top:t,left:n,bottom:r,right:a}){return{x:hk(e.x,n,a),y:hk(e.y,t,r)}}function mk(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 $H(e,t){return{x:mk(e.x,t.x),y:mk(e.y,t.y)}}function VH(e,t){let n=.5;const r=Dn(e),a=Dn(t);return a>r?n=ou(t.min,t.max-r,e.min):r>a&&(n=ou(e.min,e.max-a,t.min)),xi(0,1,n)}function FH(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 Gx=.35;function HH(e=Gx){return e===!1?e=0:e===!0&&(e=Gx),{x:pk(e,"left","right"),y:pk(e,"top","bottom")}}function pk(e,t,n){return{min:gk(e,t),max:gk(e,n)}}function gk(e,t){return typeof e=="number"?e:e[t]||0}const KH=new WeakMap;class GH{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=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=p=>{n&&this.snapToCursor(Vf(p).point),this.stopAnimation()},l=(p,v)=>{const{drag:x,dragPropagation:j,onDragStart:O}=this.getProps();if(x&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=E7(x),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ci(A=>{let T=this.getAxisMotionValue(A).get()||0;if(vi.test(T)){const{projection:k}=this.visualElement;if(k&&k.layout){const E=k.layout.layoutBox[A];E&&(T=Dn(E)*(parseFloat(T)/100))}}this.originPoint[A]=T}),O&&ht.update(()=>O(p,v),!1,!0),Ix(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:j,onDirectionLock:O,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:A}=v;if(j&&this.currentDirection===null){this.currentDirection=WH(A),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),w&&ht.update(()=>w(p,v),!1,!0)},f=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v,this.stop(p,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new C3(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:T3(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&ht.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Mh(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=UH(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,a=this.constraints;t&&Rl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=qH(r.layoutBox,t):this.constraints=!1,this.elastic=HH(n),a!==this.constraints&&!Rl(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&ci(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=FH(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=Z7(r,a.root,this.visualElement.getTransformPagePoint());let l=$H(a.layout.layoutBox,o);if(n){const c=n(W7(l));this.hasMutatedConstraints=!!c,c&&(l=W5(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=ci(m=>{if(!Mh(m,n,this.currentDirection))return;let p=f&&f[m]||{};l&&(p={min:0,max:0});const v=a?200:1e6,x=a?40:1e7,j={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(m,j)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ix(this.visualElement,t),r.start(Mw(t,r,0,n,this.visualElement,!1))}stopAnimation(){ci(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ci(n=>{const{drag:r}=this.getProps();if(!Mh(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n],f=o.get()||0;o.set(t[n]-xt(l,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Rl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ci(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=VH({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.constraints=!1,this.resolveConstraints(),ci(l=>{if(!Mh(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(xt(f,h,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;KH.set(this.visualElement,this);const t=this.visualElement.current,n=Xc(t,"pointerdown",h=>{const{drag:m,dragListener:p=!0}=this.getProps(),v=h.target,x=v!==t&&P7(v);m&&p&&!x&&this.start(h)});let r;const a=()=>{const{dragConstraints:h}=this.getProps();Rl(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),r||(r=YH(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,l=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ht.read(a);const c=mf(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(ci(p=>{const v=this.getAxisMotionValue(p);v&&(this.originPoint[p]+=h[p].translate,v.set(v.get()+h[p].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),f&&f(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=Gx,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function vk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function YH(e,t,n){const r=ON(e,vk(n)),a=ON(t,vk(n));return()=>{r(),a()}}function Mh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function WH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class XH extends ks{constructor(t){super(t),this.removeGroupControls=Pr,this.removeListeners=Pr,this.controls=new GH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const g0=e=>(t,n)=>{e&&ht.update(()=>e(t,n),!1,!0)};class QH extends ks{constructor(){super(...arguments),this.removePointerDownListener=Pr}onPointerDown(t){this.session=new C3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:T3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:g0(t),onStart:g0(n),onMove:g0(r),onEnd:(o,l)=>{delete this.session,a&&ht.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Xc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let v0=!1;class ZH extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),v0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),v0=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||ht.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Lw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;v0=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function P3(e){const[t,n]=x3(),r=S.useContext(hw);return g.jsx(ZH,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(N3),isPresent:t,safeToRemove:n})}const JH={pan:{Feature:QH},drag:{Feature:XH,ProjectionNode:b3,MeasureLayout:P3}};function yk(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&ht.postRender(()=>o(t,Vf(t)))}class eK extends ks{mount(){const{current:t}=this.node;t&&(this.unmount=k7(t,(n,r)=>(yk(this.node,r,"Start"),a=>yk(this.node,a,"End"))))}unmount(){}}class tK extends ks{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=Uf(mf(this.node.current,"focus",()=>this.onFocus()),mf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bk(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 a="onTap"+(n==="End"?"":n),o=r[a];o&&ht.postRender(()=>o(t,Vf(t)))}class nK extends ks{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=D7(t,(a,o)=>(bk(this.node,o,"Start"),(l,{success:c})=>bk(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Yx=new WeakMap,y0=new WeakMap,rK=e=>{const t=Yx.get(e.target);t&&t(e)},iK=e=>{e.forEach(rK)};function aK({root:e,...t}){const n=e||document;y0.has(n)||y0.set(n,{});const r=y0.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(iK,{root:e,...t})),r[a]}function sK(e,t,n){const r=aK(t);return Yx.set(e,n),r.observe(e),()=>{Yx.delete(e),r.unobserve(e)}}const oK={some:0,all:1};class lK extends ks{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:oK[a]},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:p}=this.node.getProps(),v=h?m:p;v&&v(f)};return sK(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(uK(t,n))&&this.startObserver()}unmount(){}}function uK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cK={inView:{Feature:lK},tap:{Feature:nK},focus:{Feature:tK},hover:{Feature:eK}},fK={layout:{ProjectionNode:b3,MeasureLayout:P3}},dK={...RH,...cK,...JH,...fK},ut=CH(dK,MH);function Kw(e){return typeof e=="object"&&!Array.isArray(e)}function _3(e,t,n,r){return e==null?[]:typeof e=="string"&&Kw(t)?zw(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(a=>a!=null):[e]}function hK(e,t,n){return e*(t+1)}function xk(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 mK(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];a.at>t&&a.at<n&&(su(e,a),r--)}}function pK(e,t,n,r,a,o){mK(e,a,o);for(let l=0;l<t.length;l++)e.push({value:t[l],at:xt(a,o,r[l]),easing:r5(n,l)})}function gK(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function vK(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const yK="easeInOut";function bK(e,{defaultTransition:t={},...n}={},r,a){const o=t.duration||.3,l=new Map,c=new Map,f={},h=new Map;let m=0,p=0,v=0;for(let x=0;x<e.length;x++){const j=e[x];if(typeof j=="string"){h.set(j,p);continue}else if(!Array.isArray(j)){h.set(j.name,xk(p,j.at,m,h));continue}let[O,w,A={}]=j;A.at!==void 0&&(p=xk(p,A.at,m,h));let T=0;const k=(E,C,P,_=0,D=0)=>{const L=xK(E),{delay:Z=0,times:ee=b5(L),type:V=t.type||"keyframes",repeat:ue,repeatType:le,repeatDelay:ce=0,...q}=C;let{ease:G=t.ease||"easeOut",duration:ie}=C;const J=typeof Z=="function"?Z(_,D):Z,$=L.length,R=Tw(V)?V:a==null?void 0:a[V||"keyframes"];if($<=2&&R){let fe=100;if($===2&&jK(L)){const Xe=L[1]-L[0];fe=Math.abs(Xe)}const me={...t,...q};ie!==void 0&&(me.duration=_r(ie));const Se=g5(me,fe,R);G=Se.ease,ie=Se.duration}ie??(ie=o);const Q=p+J;ee.length===1&&ee[0]===0&&(ee[1]=1);const se=ee.length-L.length;if(se>0&&y5(ee,se),L.length===1&&L.unshift(null),ue){ie=hK(ie,ue);const fe=[...L],me=[...ee];G=Array.isArray(G)?[...G]:[G];const Se=[...G];for(let Xe=0;Xe<ue;Xe++){L.push(...fe);for(let Y=0;Y<fe.length;Y++)ee.push(me[Y]+(Xe+1)),G.push(Y===0?"linear":r5(Se,Y-1))}gK(ee,ue)}const oe=Q+ie;pK(P,L,G,ee,Q,oe),T=Math.max(J+ie,T),v=Math.max(oe,v)};if(an(O)){const E=wk(O,c);k(w,A,Sk("default",E))}else{const E=_3(O,w,r,f),C=E.length;for(let P=0;P<C;P++){w=w,A=A;const _=E[P],D=wk(_,c);for(const L in w)k(w[L],wK(A,L),Sk(L,D),P,C)}}m=p,p+=T}return c.forEach((x,j)=>{for(const O in x){const w=x[O];w.sort(vK);const A=[],T=[],k=[];for(let _=0;_<w.length;_++){const{at:D,value:L,easing:Z}=w[_];A.push(L),T.push(ou(0,v,D)),k.push(Z||"easeOut")}T[0]!==0&&(T.unshift(0),A.unshift(A[0]),k.unshift(yK)),T[T.length-1]!==1&&(T.push(1),A.push(null)),l.has(j)||l.set(j,{keyframes:{},transition:{}});const E=l.get(j);E.keyframes[O]=A;const{type:C,...P}=t;E.transition[O]={...P,duration:v,ease:k,times:T,...n}}}),l}function wk(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Sk(e,t){return t[e]||(t[e]=[]),t[e]}function xK(e){return Array.isArray(e)?e:[e]}function wK(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const SK=e=>typeof e=="number",jK=e=>e.every(SK);function OK(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Dp(e)&&!V5(e)?new s3(t):new t3(t);n.mount(e),df.set(e,n)}function AK(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new aF(t);n.mount(e),df.set(e,n)}function EK(e,t){return an(e)||typeof e=="number"||typeof e=="string"&&!Kw(t)}function D3(e,t,n,r){const a=[];if(EK(e,t))a.push(p3(e,Kw(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return a;const o=_3(e,t,r),l=o.length;for(let c=0;c<l;c++){const f=o[c],h=f instanceof Element?OK:AK;df.has(f)||h(f);const m=df.get(f),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(c,l)),a.push(...Dw(m,{...t,transition:p},{}))}}return a}function NK(e,t,n){const r=[],a=e.map(l=>{if(Array.isArray(l)&&typeof l[0]=="function"){const c=l[0],f=ko(0);return f.on("change",c),l.length===1?[f,[0,1]]:l.length===2?[f,[0,1],l[1]]:[f,l[1],l[2]]}return l});return bK(a,t,n,{spring:ff}).forEach(({keyframes:l,transition:c},f)=>{r.push(...D3(f,l,c))}),r}function kK(e){return Array.isArray(e)&&e.some(Array.isArray)}function TK(e={}){const{scope:t,reduceMotion:n}=e;function r(a,o,l){let c=[],f;if(kK(a))c=NK(a,n!==void 0?{reduceMotion:n,...o}:o,t);else{const{onComplete:m,...p}=l||{};typeof m=="function"&&(f=m),c=D3(a,o,n!==void 0?{reduceMotion:n,...p}:p,t)}const h=new GV(c);return f&&h.finished.then(f),t&&(t.animations.push(h),h.finished.then(()=>{su(t.animations,h)})),h}return r}const CK=TK();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 a=e.length;for(t=0;t<a;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="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=R3(e))&&(r&&(r+=" "),r+=t);return r}const MK=(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},PK=(e,t)=>({classGroupId:e,validator:t}),z3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Nm="-",jk=[],_K="arbitrary..",DK=e=>{const t=zK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return RK(l);const c=l.split(Nm),f=c[0]===""&&c.length>1?1:0;return L3(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],h=n[l];return f?h?MK(h,f):f:h||jk}return n[l]||jk}}},L3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],o=n.nextPart.get(a);if(o){const h=L3(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(Nm):e.slice(t).join(Nm),f=l.length;for(let h=0;h<f;h++){const m=l[h];if(m.validator(c))return m.classGroupId}},RK=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?_K+r:void 0})(),zK=e=>{const{theme:t,classGroups:n}=e;return LK(n,t)},LK=(e,t)=>{const n=z3();for(const r in e){const a=e[r];Gw(a,n,r,t)}return n},Gw=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const l=e[o];IK(l,t,n,r)}},IK=(e,t,n,r)=>{if(typeof e=="string"){BK(e,t,n);return}if(typeof e=="function"){UK(e,t,n,r);return}qK(e,t,n,r)},BK=(e,t,n)=>{const r=e===""?t:I3(t,e);r.classGroupId=n},UK=(e,t,n,r)=>{if($K(e)){Gw(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(PK(n,e))},qK=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let l=0;l<o;l++){const[c,f]=a[l];Gw(f,I3(t,c),n,r)}},I3=(e,t)=>{let n=e;const r=t.split(Nm),a=r.length;for(let o=0;o<a;o++){const l=r[o];let c=n.nextPart.get(l);c||(c=z3(),n.nextPart.set(l,c)),n=c}return n},$K=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,VK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(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 a(o,l),l},set(o,l){o in n?n[o]=l:a(o,l)}}},Wx="!",Ok=":",FK=[],Ak=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),HK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,c=0,f=0,h;const m=a.length;for(let O=0;O<m;O++){const w=a[O];if(l===0&&c===0){if(w===Ok){o.push(a.slice(f,O)),f=O+1;continue}if(w==="/"){h=O;continue}}w==="["?l++:w==="]"?l--:w==="("?c++:w===")"&&c--}const p=o.length===0?a:a.slice(f);let v=p,x=!1;p.endsWith(Wx)?(v=p.slice(0,-1),x=!0):p.startsWith(Wx)&&(v=p.slice(1),x=!0);const j=h&&h>f?h-f:void 0;return Ak(o,x,v,j)};if(t){const a=t+Ok,o=r;r=l=>l.startsWith(a)?o(l.slice(a.length)):Ak(FK,!1,l,void 0,!0)}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},KK=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let o=0;o<n.length;o++){const l=n[o],c=l[0]==="[",f=t.has(l);c||f?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(l)):a.push(l)}return a.length>0&&(a.sort(),r.push(...a)),r}},GK=e=>({cache:VK(e.cacheSize),parseClassName:HK(e),sortModifiers:KK(e),...DK(e)}),YK=/\s+/,WK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(YK);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:p,modifiers:v,hasImportantModifier:x,baseClassName:j,maybePostfixModifierPosition:O}=n(m);if(p){f=m+(f.length>0?" "+f:f);continue}let w=!!O,A=r(w?j.substring(0,O):j);if(!A){if(!w){f=m+(f.length>0?" "+f:f);continue}if(A=r(j),!A){f=m+(f.length>0?" "+f:f);continue}w=!1}const T=v.length===0?"":v.length===1?v[0]:o(v).join(":"),k=x?T+Wx:T,E=k+A;if(l.indexOf(E)>-1)continue;l.push(E);const C=a(A,w);for(let P=0;P<C.length;++P){const _=C[P];l.push(k+_)}f=m+(f.length>0?" "+f:f)}return f},XK=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=B3(n))&&(a&&(a+=" "),a+=r);return a},B3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B3(e[r]))&&(n&&(n+=" "),n+=t);return n},QK=(e,...t)=>{let n,r,a,o;const l=f=>{const h=t.reduce((m,p)=>p(m),e());return n=GK(h),r=n.cache.get,a=n.cache.set,o=c,c(f)},c=f=>{const h=r(f);if(h)return h;const m=WK(f,n);return a(f,m),m};return o=l,(...f)=>o(XK(...f))},ZK=[],Gt=e=>{const t=n=>n[e]||ZK;return t.isThemeGetter=!0,t},U3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,JK=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,eG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tG=/\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$/,nG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ja=e=>JK.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),es=e=>!!e&&Number.isInteger(Number(e)),b0=e=>e.endsWith("%")&&Be(e.slice(0,-1)),Ki=e=>eG.test(e),$3=()=>!0,aG=e=>tG.test(e)&&!nG.test(e),Yw=()=>!1,sG=e=>rG.test(e),oG=e=>iG.test(e),lG=e=>!ye(e)&&!xe(e),uG=e=>Ts(e,H3,Yw),ye=e=>U3.test(e),Qs=e=>Ts(e,K3,aG),Ek=e=>Ts(e,vG,Be),cG=e=>Ts(e,Y3,$3),fG=e=>Ts(e,G3,Yw),Nk=e=>Ts(e,V3,Yw),dG=e=>Ts(e,F3,oG),Ph=e=>Ts(e,W3,sG),xe=e=>q3.test(e),Tc=e=>Lo(e,K3),hG=e=>Lo(e,G3),kk=e=>Lo(e,V3),mG=e=>Lo(e,H3),pG=e=>Lo(e,F3),_h=e=>Lo(e,W3,!0),gG=e=>Lo(e,Y3,!0),Ts=(e,t,n)=>{const r=U3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Lo=(e,t,n=!1)=>{const r=q3.exec(e);return r?r[1]?t(r[1]):n:!1},V3=e=>e==="position"||e==="percentage",F3=e=>e==="image"||e==="url",H3=e=>e==="length"||e==="size"||e==="bg-size",K3=e=>e==="length",vG=e=>e==="number",G3=e=>e==="family-name",Y3=e=>e==="number"||e==="weight",W3=e=>e==="shadow",yG=()=>{const e=Gt("color"),t=Gt("font"),n=Gt("text"),r=Gt("font-weight"),a=Gt("tracking"),o=Gt("leading"),l=Gt("breakpoint"),c=Gt("container"),f=Gt("spacing"),h=Gt("radius"),m=Gt("shadow"),p=Gt("inset-shadow"),v=Gt("text-shadow"),x=Gt("drop-shadow"),j=Gt("blur"),O=Gt("perspective"),w=Gt("aspect"),A=Gt("ease"),T=Gt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...E(),xe,ye],P=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],D=()=>[xe,ye,f],L=()=>[Ja,"full","auto",...D()],Z=()=>[es,"none","subgrid",xe,ye],ee=()=>["auto",{span:["full",es,xe,ye]},es,xe,ye],V=()=>[es,"auto",xe,ye],ue=()=>["auto","min","max","fr",xe,ye],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...D()],G=()=>[Ja,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ie=()=>[Ja,"screen","full","dvw","lvw","svw","min","max","fit",...D()],J=()=>[Ja,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],$=()=>[e,xe,ye],R=()=>[...E(),kk,Nk,{position:[xe,ye]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",mG,uG,{size:[xe,ye]}],oe=()=>[b0,Tc,Qs],fe=()=>["","none","full",h,xe,ye],me=()=>["",Be,Tc,Qs],Se=()=>["solid","dashed","dotted","double"],Xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Be,b0,kk,Nk],Ce=()=>["","none",j,xe,ye],Pe=()=>["none",Be,xe,ye],ae=()=>["none",Be,xe,ye],vt=()=>[Be,xe,ye],Re=()=>[Ja,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ki],breakpoint:[Ki],color:[$3],container:[Ki],"drop-shadow":[Ki],ease:["in","out","in-out"],font:[lG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ki],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ki],shadow:[Ki],spacing:["px",Be],text:[Ki],"text-shadow":[Ki],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ja,ye,xe,w]}],container:["container"],columns:[{columns:[Be,ye,xe,c]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:C()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[es,"auto",xe,ye]}],basis:[{basis:[Ja,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Ja,"auto","initial","none",ye]}],grow:[{grow:["",Be,xe,ye]}],shrink:[{shrink:["",Be,xe,ye]}],order:[{order:[es,"first","last","none",xe,ye]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe: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()}],mbs:[{mbs:q()}],mbe:[{mbe: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:G()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Tc,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,gG,cG]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",b0,ye]}],"font-family":[{font:[hG,fG,t]}],"font-features":[{"font-features":[ye]}],"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:[a,xe,ye]}],"line-clamp":[{"line-clamp":[Be,"none",xe,Ek]}],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:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",xe,Qs]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Be,"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:R()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},es,xe,ye],radial:["",xe,ye],conic:[es,xe,ye]},pG,dG]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,xe,ye]}],"outline-w":[{outline:["",Be,Tc,Qs]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",m,_h,Ph]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",p,_h,Ph]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Be,Qs]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",v,_h,Ph]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Be,xe,ye]}],"mix-blend":[{"mix-blend":[...Xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Xe()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[xe,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ye]}],filter:[{filter:["","none",xe,ye]}],blur:[{blur:Ce()}],brightness:[{brightness:[Be,xe,ye]}],contrast:[{contrast:[Be,xe,ye]}],"drop-shadow":[{"drop-shadow":["","none",x,_h,Ph]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Be,xe,ye]}],"hue-rotate":[{"hue-rotate":[Be,xe,ye]}],invert:[{invert:["",Be,xe,ye]}],saturate:[{saturate:[Be,xe,ye]}],sepia:[{sepia:["",Be,xe,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ye]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Be,xe,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Be,xe,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,xe,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,xe,ye]}],"backdrop-invert":[{"backdrop-invert":["",Be,xe,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Be,xe,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Be,xe,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,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:[Be,"initial",xe,ye]}],ease:[{ease:["linear","initial",A,xe,ye]}],delay:[{delay:[Be,xe,ye]}],animate:[{animate:["none",T,xe,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,xe,ye]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:vt()}],"skew-x":[{"skew-x":vt()}],"skew-y":[{"skew-y":vt()}],transform:[{transform:[xe,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":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",...$()]}],"stroke-w":[{stroke:[Be,Tc,Qs,Ek]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},X3=QK(yG);function Me(...e){return X3(Ze(e))}function bG(){const[e,t]=S.useState(!1),{notifications:n,unreadCount:r,markAsRead:a,markAllAsRead:o,clearAll:l,removeNotification:c}=dw(),f=S.useRef(null);S.useEffect(()=>{const p=v=>{f.current&&!f.current.contains(v.target)&&t(!1)};return e&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[e]);const h=p=>{switch(p){case"error":return g.jsx(oa,{className:"text-red-500",size:16});case"warning":return g.jsx(FU,{className:"text-amber-500",size:16});case"success":return g.jsx(uD,{className:"text-green-500",size:16});default:return g.jsx(Kc,{className:"text-blue-500",size:16})}},m=p=>{const v=Date.now()-p,x=Math.floor(v/6e4),j=Math.floor(v/36e5);return x<1?"Just now":x<60?`${x}m ago`:j<24?`${j}h ago`:new Date(p).toLocaleDateString()};return g.jsxs("div",{className:"relative",ref:f,children:[g.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:[g.jsx(ym,{size:20}),r>0&&g.jsx(ut.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})]}),g.jsx(ba,{children:e&&g.jsxs(ut.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:[g.jsxs("div",{className:"p-4 border-b bg-muted/20 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold",children:"Notifications"}),g.jsxs("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest",children:[r," unread"]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[r>0&&g.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:g.jsx(B9,{size:16})}),n.length>0&&g.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:g.jsx(of,{size:16})})]})]}),g.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:n.length===0?g.jsxs("div",{className:"p-8 text-center",children:[g.jsx(ym,{className:"mx-auto mb-3 text-muted-foreground/20",size:32}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"No notifications"})]}):g.jsx("div",{className:"divide-y divide-border/50",children:n.map(p=>g.jsxs(ut.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:Me("p-4 hover:bg-muted/30 transition-colors cursor-pointer group relative",!p.read&&"bg-primary/5"),onClick:()=>a(p.id),children:[g.jsxs("div",{className:"flex gap-3",children:[g.jsx("div",{className:"shrink-0 mt-0.5",children:h(p.type)}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsx("p",{className:Me("text-sm font-semibold truncate",!p.read&&"text-foreground",p.read&&"text-muted-foreground"),children:p.title}),g.jsx("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:m(p.timestamp)})]}),g.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:p.message}),p.source&&g.jsx("span",{className:"inline-block mt-1 text-[10px] font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:p.source})]})]}),g.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),c(p.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:g.jsx(Tp,{size:14})}),!p.read&&g.jsx("div",{className:"absolute left-1 top-1/2 -translate-y-1/2 w-1.5 h-1.5 bg-primary rounded-full"})]},p.id))})})]})})]})}function xG(){const{notifications:e,removeNotification:t}=dw(),[n,r]=S.useState(new Set);S.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 a=e.filter(o=>n.has(o.id));return g.jsx("div",{className:"fixed bottom-8 right-8 z-[2000] flex flex-col gap-3 w-full max-w-sm pointer-events-none",children:g.jsx(ba,{mode:"popLayout",children:a.map(o=>g.jsxs(ut.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:Me("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:[g.jsxs("div",{className:"flex-shrink-0 mt-0.5",children:[o.type==="success"&&g.jsx(rw,{size:18}),o.type==="error"&&g.jsx(oa,{size:18}),o.type==="warning"&&g.jsx(oa,{size:18}),o.type==="info"&&g.jsx(Kc,{size:18})]}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-black tracking-tight leading-none mb-1",children:o.title}),g.jsx("p",{className:"text-xs font-medium opacity-80 leading-relaxed break-words",children:o.message}),o.source&&g.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})]}),g.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:g.jsx(Tp,{size:14})}),g.jsx("div",{className:"absolute left-0 bottom-0 h-1 bg-current opacity-20 animate-toast-progress origin-left"})]},o.id))})})}function wG(){var m;const[e,t]=S.useState(!1),{isAuthEnabled:n,logout:r}=Pp(),a=ow(),o=S.useRef(null),{data:l}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(p=>p.json()),refetchInterval:3e4});S.useEffect(()=>{const p=v=>{o.current&&!o.current.contains(v.target)&&t(!1)};return e&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[e]);const c=async()=>{await r(),t(!1)},f=p=>{a(p),t(!1)},h=p=>{const v=Math.floor(p/3600),x=Math.floor(p%3600/60);return v>0?`${v}h ${x}m`:`${x}m`};return g.jsxs("div",{className:"relative",ref:o,children:[g.jsxs("button",{type:"button",className:"flex items-center gap-3 cursor-pointer group outline-none",onClick:()=>t(!e),children:[g.jsxs("div",{className:"text-right hidden sm:block",children:[g.jsx("p",{className:"text-sm font-black tracking-tight group-hover:text-primary transition-colors",children:"Admin User"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest",children:"Architect"})]}),g.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:g.jsx(XE,{size:20})})]}),g.jsx(ba,{children:e&&g.jsxs(ut.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:[g.jsx("div",{className:"p-5 bg-gradient-to-br from-primary/10 to-indigo-500/10 border-b",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.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:g.jsx(XE,{size:28})}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold text-lg",children:"Admin User"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"System Administrator"}),g.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[g.jsx(pD,{size:10,className:"text-green-500"}),g.jsx("span",{className:"text-[9px] font-bold text-green-500 uppercase tracking-widest",children:"Full Access"})]})]})]})}),g.jsxs("div",{className:"p-4 bg-muted/20 border-b",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest mb-3",children:"System Status"}),g.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Zn,{size:12,className:"text-green-500"}),g.jsx("span",{className:"text-[10px] font-bold",children:"Online"})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gi,{size:12,className:"text-muted-foreground"}),g.jsx("span",{className:"text-[10px] font-bold",children:l!=null&&l.uptime?h(l.uptime):"..."})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(kp,{size:12,className:"text-muted-foreground"}),g.jsx("span",{className:"text-[10px] font-bold",children:(l==null?void 0:l.node)||"..."})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"w-3 h-3 text-[10px] font-black",children:"🔥"}),g.jsx("span",{className:"text-[10px] font-bold",children:((m=l==null?void 0:l.memory)==null?void 0:m.rss)||"..."})]})]})]}),g.jsxs("div",{className:"p-2",children:[g.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:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(aw,{size:18,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),g.jsx("span",{className:"text-sm font-semibold",children:"Settings"})]}),g.jsx(Np,{size:16,className:"text-muted-foreground/50"})]}),n&&g.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:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(hD,{size:18,className:"text-red-500"}),g.jsx("span",{className:"text-sm font-semibold text-red-500",children:"Logout"})]})})]}),g.jsx("div",{className:"px-4 py-3 bg-muted/10 border-t",children:g.jsx("p",{className:"text-[9px] text-center text-muted-foreground/50",children:"Flux Console v0.1.0-alpha.1"})})]})})]})}function SG({className:e,collapsed:t,toggleCollapse:n}){const r=Ns(),a=[{icon:dD,label:"Overview",path:"/"},{icon:Zn,label:"Pulse",path:"/pulse"},{icon:sf,label:"Queues",path:"/queues"},{icon:gi,label:"Schedules",path:"/schedules"},{icon:xx,label:"Workers",path:"/workers"},{icon:aw,label:"Settings",path:"/settings"}];return g.jsxs("div",{className:Me("flex-1 flex flex-col justify-between transition-all duration-300 ease-in-out relative group z-20 overflow-hidden",e),children:[g.jsx("nav",{className:"flex-1 px-4 py-6 space-y-2",children:a.map((o,l)=>{const c=r.pathname===o.path;return g.jsxs(zD,{to:o.path,className:Me("w-full flex items-center gap-4 px-4 py-3 rounded-xl transition-all text-muted-foreground/60 group/item relative overflow-hidden font-heading",c?"bg-primary/10 text-primary shadow-[0_0_20px_rgba(0,240,255,0.1)] border border-primary/20":"hover:bg-white/[0.03] font-medium hover:text-foreground active:scale-95"),children:[g.jsx(o.icon,{size:20,className:Me("transition-all shrink-0",c?"scale-110 text-primary":"group-hover/item:scale-110")}),g.jsx(ut.span,{initial:!1,animate:{opacity:t?0:1,display:t?"none":"block"},className:"font-black whitespace-nowrap tracking-tight uppercase text-[11px]",children:o.label}),c&&g.jsx(ut.div,{layoutId:"active-pill",className:"absolute left-0 w-1 h-5 bg-primary rounded-r-full shadow-[0_0_10px_#00F0FF]"})]},l)})}),g.jsx("div",{className:"p-4 border-t border-border/50",children:g.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?g.jsx(Np,{size:20}):g.jsxs("div",{className:"flex items-center gap-2 px-2",children:[g.jsx(lD,{size:18})," ",g.jsx("span",{className:"text-xs font-black uppercase tracking-widest",children:"Collapse Sidebar"})]})})})]})}function jG({children:e}){var G,ie;const t=ow(),n=va(),{isAuthEnabled:r,logout:a}=Pp(),[o,l]=S.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"light"),[c,f]=S.useState(!1),[h,m]=S.useState(""),[p,v]=S.useState(0),[x,j]=S.useState(99.9),[O,w]=S.useState({}),[A,T]=S.useState(!0);S.useEffect(()=>{fetch("/api/system/status").then(J=>J.json()).then(w).catch(()=>{})},[]),S.useEffect(()=>{console.log("[Zenith] Establishing Global Event Stream...");const J=new EventSource("/api/logs/stream");return J.addEventListener("log",$=>{try{const R=JSON.parse($.data);window.dispatchEvent(new CustomEvent("flux-log-update",{detail:R}))}catch(R){console.error("SSE Log Error",R)}}),J.addEventListener("stats",$=>{try{const R=JSON.parse($.data);window.dispatchEvent(new CustomEvent("flux-stats-update",{detail:R}))}catch(R){console.error("SSE Stats Error",R)}}),J.addEventListener("pulse",$=>{try{const R=JSON.parse($.data);window.dispatchEvent(new CustomEvent("flux-pulse-update",{detail:R}))}catch(R){console.error("SSE Pulse Error",R)}}),J.onerror=$=>{console.error("[Zenith] SSE Connection Error",$),J.close()},()=>{console.log("[Zenith] Closing Global Event Stream"),J.close()}},[]);const[k,E]=S.useState({queues:[]});S.useEffect(()=>{fetch("/api/queues").then($=>$.json()).then(E).catch(()=>{});const J=$=>{var Q;const R=$;(Q=R.detail)!=null&&Q.queues&&E({queues:R.detail.queues})};return window.addEventListener("flux-stats-update",J),()=>window.removeEventListener("flux-stats-update",J)},[]);const[C,P]=S.useState("");S.useEffect(()=>{const J=setTimeout(()=>{h.length>=2?P(h):P("")},300);return()=>clearTimeout(J)},[h]);const{data:_}=Nn({queryKey:["job-search",C],queryFn:async()=>{const[J,$]=await Promise.all([fetch(`/api/search?q=${encodeURIComponent(C)}&limit=10`).then(R=>R.json()),fetch(`/api/archive/search?q=${encodeURIComponent(C)}&limit=10`).then(R=>R.json())]);return{results:J.results||[],archiveResults:$.results||[]}},enabled:C.length>=2,staleTime:5e3});S.useEffect(()=>{const J=window.document.documentElement;o==="dark"?J.classList.add("dark"):J.classList.remove("dark"),localStorage.setItem("theme",o)},[o]),S.useEffect(()=>{const J=setInterval(()=>{j($=>{const R=(Math.random()-.5)*.1;return Math.min(100,Math.max(98.5,$+R))})},3e3);return()=>clearInterval(J)},[]);const D=()=>l(J=>J==="light"?"dark":"light"),L=async()=>{const J=(k==null?void 0:k.queues)||[];for(const $ of J)$.failed>0&&await fetch(`/api/queues/${$.name}/retry-all-failed`,{method:"POST"});n.invalidateQueries({queryKey:["queues"]})},Z=[{id:"nav-overview",title:"Go to Overview",description:"Navigate to system dashboard",icon:g.jsx(dD,{size:18}),category:"Navigation",action:()=>t("/")},{id:"nav-queues",title:"Go to Queues",description:"Manage processing queues",icon:g.jsx(sf,{size:18}),category:"Navigation",action:()=>t("/queues")},{id:"nav-workers",title:"Go to Workers",description:"Monitor worker nodes",icon:g.jsx(xx,{size:18}),category:"Navigation",action:()=>t("/workers")},{id:"nav-metrics",title:"Go to Metrics",description:"View system analytics",icon:g.jsx(oD,{size:18}),category:"Navigation",action:()=>t("/metrics")},{id:"nav-settings",title:"Go to Settings",description:"Configure console preferences",icon:g.jsx(aw,{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:g.jsx(na,{size:18}),category:"Action",action:L},{id:"sys-theme",title:`Switch to ${o==="dark"?"Light":"Dark"} Mode`,description:"Toggle system visual appearance",icon:o==="dark"?g.jsx(Sx,{size:18}):g.jsx(wx,{size:18}),category:"System",action:D},...r?[{id:"sys-logout",title:"Logout",description:"Sign out from the console",icon:g.jsx(hD,{size:18}),category:"System",action:a}]:[]],ee=((k==null?void 0:k.queues)||[]).map(J=>({id:`queue-${J.name}`,title:`Queue: ${J.name}`,description:`${J.waiting} waiting, ${J.failed} failed`,icon:g.jsx(sf,{size:18}),category:"Navigation",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:J.name}))},100)}})),V=[{id:"act-clear-logs",title:"Clear All Logs",description:"Flush temporary log buffer in UI",icon:g.jsx(of,{size:18}),category:"Action",action:()=>{window.dispatchEvent(new CustomEvent("clear-logs"))}}],ue=S.useMemo(()=>{const J=[...(_==null?void 0:_.results)||[],...((_==null?void 0:_.archiveResults)||[]).map($=>({...$,_archived:!0}))];return J.length?J.slice(0,15).map($=>({id:`job-${$._queue}-${$.id}-${$._archived?"arch":"live"}`,title:`Job: ${$.id||"Unknown"}`,description:`${$._queue} • ${$.status||$._type}${$._archived?" • ARCHIVED":""} • ${$.name||"No name"}`,icon:$._archived?g.jsx(xx,{size:18}):g.jsx(_9,{size:18}),category:"Action",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:$._queue})),$._archived&&window.dispatchEvent(new CustomEvent("inspect-job",{detail:{queue:$._queue,job:$}}))},100)}})):[]},[_,t]),ce=[...Z,...V,...ee,...ue].filter(J=>J.title.toLowerCase().includes(h.toLowerCase())||J.description.toLowerCase().includes(h.toLowerCase()));S.useEffect(()=>{const J=$=>{($.metaKey||$.ctrlKey)&&$.key==="k"&&($.preventDefault(),f(R=>!R)),$.key==="Escape"&&f(!1)};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[]),S.useEffect(()=>{const J=document.getElementById(`command-item-${p}`);J&&J.scrollIntoView({block:"nearest",behavior:"smooth"})},[p]);const q=J=>{J.action(),f(!1),m("")};return g.jsxs("div",{className:"flex h-screen bg-background text-foreground overflow-hidden transition-colors duration-300",children:[g.jsxs(ut.aside,{initial:!1,animate:{width:A?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:[g.jsx("div",{className:"h-16 flex items-center px-6 border-b border-white/5 bg-black/40",children:g.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[g.jsx("div",{className:"w-9 h-9 rounded-xl bg-primary flex items-center justify-center shrink-0 shadow-[0_0_20px_rgba(0,240,255,0.3)]",children:g.jsx(gD,{className:"text-black fill-current",size:20})}),g.jsxs(ut.div,{animate:{opacity:A?1:0},className:"flex flex-col min-w-[140px]",children:[g.jsx("span",{className:"font-black text-xl tracking-tighter leading-none text-white font-heading italic uppercase",children:"Zenith"}),g.jsx("span",{className:"text-[8px] font-black text-primary uppercase tracking-[0.3em] mt-0.5",children:"Quantum Control"})]})]})}),g.jsx(SG,{collapsed:!A,toggleCollapse:()=>T(!A)})]}),g.jsxs("main",{className:"flex-1 flex flex-col relative overflow-hidden scanline",children:[g.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:[g.jsxs("div",{className:"flex items-center gap-6 flex-1",children:[g.jsxs("button",{type:"button",className:"relative max-w-md w-full group cursor-pointer outline-none block text-left",onClick:()=>f(!0),children:[g.jsx(yu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground group-hover:text-primary transition-colors",size:18}),g.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:[g.jsx("span",{children:"Search or command..."}),g.jsxs("div",{className:"flex gap-1 group-hover:scale-105 transition-transform",children:[g.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"⌘"}),g.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"K"})]})]})]}),g.jsxs("div",{className:"hidden lg:flex items-center gap-3 px-4 py-2 rounded-xl bg-primary/5 border border-primary/20 transition-all hover:bg-primary/10 cursor-default group shadow-[inset_0_0_20px_rgba(0,240,255,0.02)]",children:[g.jsxs("div",{className:"relative flex items-center justify-center",children:[g.jsx(zU,{size:16,className:"text-primary z-10"}),g.jsx("div",{className:"absolute w-4 h-4 bg-primary/20 rounded-full glow-pulse"})]}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"text-[8px] font-black uppercase tracking-[0.2em] text-primary/60 leading-none",children:"Quantum Core"}),g.jsxs("span",{className:"text-[11px] font-black tracking-tight leading-none text-white mt-0.5 font-mono",children:[x.toFixed(2),"% NOMINAL"]})]})]})]}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.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","aria-label":o==="light"?"Switch to Dark Mode":"Switch to Light Mode",children:o==="light"?g.jsx(wx,{size:20,className:"group-hover:rotate-[15deg] transition-transform"}):g.jsx(Sx,{size:20,className:"group-hover:rotate-90 transition-transform text-yellow-500"})}),g.jsx(bG,{}),g.jsx("div",{className:"h-8 w-[1px] bg-border/50"}),g.jsx(wG,{})]})]}),g.jsx("div",{className:"flex-1 overflow-y-auto p-8 scrollbar-thin",children:g.jsx(ut.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})}),g.jsxs("footer",{className:"h-8 border-t border-white/5 bg-black/60 backdrop-blur-xl flex items-center justify-between px-6 z-10 transition-colors",children:[g.jsxs("div",{className:"flex items-center gap-6 overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 border-r border-white/10 pr-4",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 shadow-[0_0_8px_#10B981]"}),g.jsx("span",{className:"text-[9px] font-black text-white/40 uppercase tracking-[0.2em] whitespace-nowrap font-mono",children:(O==null?void 0:O.env)||"QUANTUM-1"})]}),g.jsxs("div",{className:"flex items-center gap-4 text-[9px] font-black text-white/20 uppercase tracking-[0.3em] animate-in fade-in slide-in-from-left duration-1000",children:[g.jsxs("span",{className:"flex items-center gap-1.5 text-primary/60",children:[g.jsx(Zn,{size:10,className:"text-primary"})," 4MS"]}),g.jsxs("span",{className:"hidden sm:inline border-l border-white/5 pl-4 text-white/40",children:["MEM: ",((G=O==null?void 0:O.memory)==null?void 0:G.rss)||"..."]}),g.jsxs("span",{className:"hidden md:inline border-l border-white/5 pl-4 text-white/40",children:["ENGINE: ",(O==null?void 0:O.engine)||"V2.4.1"]})]})]}),g.jsxs("div",{className:"flex items-center gap-4 pl-4 bg-gradient-to-l from-black via-black to-transparent text-right",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-12 h-1 bg-white/5 rounded-full overflow-hidden",children:g.jsx(ut.div,{animate:{x:[-48,48]},transition:{duration:3,repeat:1/0,ease:"linear"},className:"w-6 h-full bg-primary/40 shadow-[0_0_10px_#00F0FF]"})}),g.jsx("span",{className:"text-[8px] font-black text-primary uppercase tracking-[0.3em]",children:"SYNCING"})]}),g.jsxs("span",{className:"font-mono text-[9px] text-white/30 tabular-nums uppercase",children:[((ie=new Date().toISOString().split("T")[1])==null?void 0:ie.split(".")[0])||""," Z"]})]})]})]}),g.jsx(ba,{children:c&&g.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-24 px-4",children:[g.jsx(ut.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:()=>f(!1)}),g.jsxs(ut.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:[g.jsxs("div",{className:"p-6 border-b flex items-center gap-4 bg-muted/5",children:[g.jsx(Z9,{className:"text-primary animate-pulse",size:24}),g.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:J=>{m(J.target.value),v(0)},onKeyDown:J=>{J.key==="ArrowDown"?(J.preventDefault(),v($=>($+1)%ce.length)):J.key==="ArrowUp"?(J.preventDefault(),v($=>($-1+ce.length)%ce.length)):J.key==="Enter"&&ce[p]&&q(ce[p])}}),g.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"})]}),g.jsx("div",{className:"max-h-[400px] overflow-y-auto p-2 custom-scrollbar",children:ce.length===0?g.jsxs("div",{className:"py-12 text-center text-muted-foreground/40 space-y-2",children:[g.jsx(Zn,{size:32,className:"mx-auto opacity-20"}),g.jsx("p",{className:"text-xs font-black uppercase tracking-widest",children:"No matching commands found"})]}):g.jsx("div",{className:"space-y-1",children:ce.map((J,$)=>g.jsxs("button",{type:"button",id:`command-item-${$}`,className:Me("w-full flex items-center justify-between p-4 rounded-2xl transition-all cursor-pointer group/cmd outline-none",$===p?"bg-primary shadow-lg shadow-primary/20 -translate-x-1":"hover:bg-muted"),onClick:()=>q(J),onMouseEnter:()=>v($),children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center transition-colors",$===p?"bg-white/20 text-white":"bg-muted text-primary"),children:J.icon}),g.jsxs("div",{children:[g.jsx("p",{className:Me("text-sm font-black tracking-tight",$===p?"text-white":"text-foreground"),children:J.title}),g.jsx("p",{className:Me("text-[10px] font-bold uppercase tracking-widest opacity-60",$===p?"text-white/80":"text-muted-foreground"),children:J.description})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:Me("text-[9px] font-black uppercase tracking-widest px-2 py-1 rounded-md",$===p?"bg-white/20 text-white":"bg-muted text-muted-foreground"),children:J.category}),$===p&&g.jsx("kbd",{className:"bg-white/20 px-1.5 py-0.5 rounded text-[10px] text-white",children:"↵"})]})]},J.id))})}),g.jsxs("div",{className:"p-4 border-t bg-muted/5 flex justify-between items-center px-6",children:[g.jsxs("div",{className:"flex gap-4",children:[g.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[g.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↑↓"})," to navigate"]}),g.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[g.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↵"})," to select"]})]}),g.jsx("span",{className:"text-[9px] font-black text-primary/40 uppercase tracking-[0.2em]",children:"Gravito Zenith v1.0"})]})]})]})}),g.jsx(xG,{})]})}function OG(){const{login:e}=Pp(),[t,n]=S.useState(""),[r,a]=S.useState(!1),[o,l]=S.useState(""),[c,f]=S.useState(!1),h=async m=>{m.preventDefault(),l(""),f(!0);const p=await e(t);p.success||(l(p.error||"Authentication failed"),f(!1))};return g.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-indigo-500/5"}),g.jsx("div",{className:"absolute top-1/4 -left-1/4 w-96 h-96 bg-primary/10 rounded-full blur-3xl animate-pulse"}),g.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"}}),g.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]"}),g.jsxs(ut.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative z-10 w-full max-w-md",children:[g.jsxs("div",{className:"text-center mb-8 font-heading",children:[g.jsx(ut.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},className:"inline-flex items-center justify-center w-24 h-24 bg-primary rounded-3xl shadow-[0_0_40px_rgba(0,240,255,0.2)] mb-8",children:g.jsx(Zn,{size:48,className:"text-black"})}),g.jsx("h1",{className:"text-5xl font-black tracking-tighter mb-2 text-white italic uppercase",children:"ZENITH"}),g.jsx("p",{className:"text-[10px] font-black text-primary uppercase tracking-[0.5em] ml-1",children:"Quantum Control Plane"})]}),g.jsxs("div",{className:"card-premium p-10 backdrop-blur-2xl bg-zinc-900/40 border-white/5",children:[g.jsxs("div",{className:"text-center mb-10",children:[g.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight font-heading",children:"Secure Access"}),g.jsx("p",{className:"text-xs text-muted-foreground mt-2 font-bold uppercase tracking-widest opacity-60",children:"Biometric or Password verification required"})]}),g.jsxs("form",{onSubmit:h,className:"space-y-8 font-heading",children:[o&&g.jsxs(ut.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:[g.jsx(oa,{size:18}),g.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest",children:o})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("label",{htmlFor:"password",className:"text-[10px] font-black text-muted-foreground uppercase tracking-[0.2em] ml-1",children:"System Authentication"}),g.jsxs("div",{className:"relative",children:[g.jsx(yU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground/40",size:18}),g.jsx("input",{id:"password",type:r?"text":"password",value:t,onChange:m=>n(m.target.value),placeholder:"Enter access code...",className:Me("w-full bg-black/40 border border-white/5 rounded-xl py-4 pl-12 pr-12 font-mono","text-sm font-bold placeholder:text-white/10 tracking-widest","focus:outline-none focus:ring-1 focus:ring-primary/40 focus:border-primary/40","transition-all"),disabled:c}),g.jsx("button",{type:"button",onClick:()=>a(!r),className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground/40 hover:text-primary transition-colors",children:r?g.jsx(iU,{size:18}):g.jsx(sU,{size:18})})]})]}),g.jsx("button",{type:"submit",disabled:c||!t,className:Me("w-full py-4 rounded-xl font-black text-xs uppercase tracking-[0.3em]","bg-primary text-black font-heading shadow-[0_0_30px_rgba(0,240,255,0.2)] hover:shadow-[0_0_40px_rgba(0,240,255,0.4)]","transition-all duration-500 hover:scale-[1.02] active:scale-95","disabled:opacity-20 disabled:cursor-not-allowed disabled:hover:scale-100","flex items-center justify-center gap-3"),children:c?g.jsx("div",{className:"w-5 h-5 border-2 border-black/30 border-t-black rounded-full animate-spin"}):g.jsxs(g.Fragment,{children:["Connect ",g.jsx(Ep,{size:18})]})})]})]}),g.jsx("p",{className:"text-center mt-6 text-xs text-muted-foreground/50",children:"Protected by Gravito Security Layer"})]})]})}var AG=["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 Ww(e){if(typeof e!="string")return!1;var t=AG;return t.includes(e)}var EG=["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"],NG=new Set(EG);function Q3(e){return typeof e!="string"?!1:NG.has(e)}function Z3(e){return typeof e=="string"&&e.startsWith("data-")}function Dr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Q3(n)||Z3(n))&&(t[n]=e[n]);return t}function Ff(e){if(e==null)return null;if(S.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Dr(t)}return typeof e=="object"&&!Array.isArray(e)?Dr(e):null}function zn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Q3(n)||Z3(n)||Ww(n))&&(t[n]=e[n]);return t}function kG(e){return e==null?null:S.isValidElement(e)?zn(e.props):typeof e=="object"&&!Array.isArray(e)?zn(e):null}var TG=["children","width","height","viewBox","className","style","title","desc"];function Xx(){return Xx=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},Xx.apply(null,arguments)}function CG(e,t){if(e==null)return{};var n,r,a=MG(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)&&(a[n]=e[n])}return a}function MG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Xw=S.forwardRef((e,t)=>{var{children:n,width:r,height:a,viewBox:o,className:l,style:c,title:f,desc:h}=e,m=CG(e,TG),p=o||{width:r,height:a,x:0,y:0},v=Ze("recharts-surface",l);return S.createElement("svg",Xx({},zn(m),{className:v,width:r,height:a,style:c,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),S.createElement("title",null,f),S.createElement("desc",null,h),n)}),PG=["children","className"];function Qx(){return Qx=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},Qx.apply(null,arguments)}function _G(e,t){if(e==null)return{};var n,r,a=DG(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)&&(a[n]=e[n])}return a}function DG(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=S.forwardRef((e,t)=>{var{children:n,className:r}=e,a=_G(e,PG),o=Ze("recharts-layer",r);return S.createElement("g",Qx({className:o},zn(a),{ref:t}),n)}),J3=S.createContext(null),RG=()=>S.useContext(J3);function dt(e){return function(){return e}}const e4=Math.cos,km=Math.sin,ti=Math.sqrt,Tm=Math.PI,Ip=2*Tm,Zx=Math.PI,Jx=2*Zx,eo=1e-6,zG=Jx-eo;function t4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function LG(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return t4;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class IG{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?t4:LG(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,h=a-n,m=l-t,p=c-n,v=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>eo)if(!(Math.abs(p*f-h*m)>eo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,j=a-c,O=f*f+h*h,w=x*x+j*j,A=Math.sqrt(O),T=Math.sqrt(v),k=o*Math.tan((Zx-Math.acos((O+v-w)/(2*A*T)))/2),E=k/T,C=k/A;Math.abs(E-1)>eo&&this._append`L${t+E*m},${n+E*p}`,this._append`A${o},${o},0,0,${+(p*x>m*j)},${this._x1=t+C*f},${this._y1=n+C*h}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),h=t+c,m=n+f,p=1^l,v=l?a-o:o-a;this._x1===null?this._append`M${h},${m}`:(Math.abs(this._x1-h)>eo||Math.abs(this._y1-m)>eo)&&this._append`L${h},${m}`,r&&(v<0&&(v=v%Jx+Jx),v>zG?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=h},${this._y1=m}`:v>eo&&this._append`A${r},${r},0,${+(v>=Zx)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Qw(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 IG(t)}function Zw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n4(e){this._context=e}n4.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 Bp(e){return new n4(e)}function r4(e){return e[0]}function i4(e){return e[1]}function a4(e,t){var n=dt(!0),r=null,a=Bp,o=null,l=Qw(c);e=typeof e=="function"?e:e===void 0?r4:dt(e),t=typeof t=="function"?t:t===void 0?i4:dt(t);function c(f){var h,m=(f=Zw(f)).length,p,v=!1,x;for(r==null&&(o=a(x=l())),h=0;h<=m;++h)!(h<m&&n(p=f[h],h,f))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,h,f),+t(p,h,f));if(x)return o=null,x+""||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?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function Dh(e,t,n){var r=null,a=dt(!0),o=null,l=Bp,c=null,f=Qw(h);e=typeof e=="function"?e:e===void 0?r4:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?i4:dt(+n);function h(p){var v,x,j,O=(p=Zw(p)).length,w,A=!1,T,k=new Array(O),E=new Array(O);for(o==null&&(c=l(T=f())),v=0;v<=O;++v){if(!(v<O&&a(w=p[v],v,p))===A)if(A=!A)x=v,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),j=v-1;j>=x;--j)c.point(k[j],E[j]);c.lineEnd(),c.areaEnd()}A&&(k[v]=+e(w,v,p),E[v]=+t(w,v,p),c.point(r?+r(w,v,p):k[v],n?+n(w,v,p):E[v]))}if(T)return c=null,T+""||null}function m(){return a4().defined(a).curve(l).context(o)}return h.x=function(p){return arguments.length?(e=typeof p=="function"?p:dt(+p),r=null,h):e},h.x0=function(p){return arguments.length?(e=typeof p=="function"?p:dt(+p),h):e},h.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:dt(+p),h):r},h.y=function(p){return arguments.length?(t=typeof p=="function"?p:dt(+p),n=null,h):t},h.y0=function(p){return arguments.length?(t=typeof p=="function"?p:dt(+p),h):t},h.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:dt(+p),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(p){return arguments.length?(a=typeof p=="function"?p:dt(!!p),h):a},h.curve=function(p){return arguments.length?(l=p,o!=null&&(c=l(o)),h):l},h.context=function(p){return arguments.length?(p==null?o=c=null:c=l(o=p),h):o},h}class s4{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 BG(e){return new s4(e,!0)}function UG(e){return new s4(e,!1)}const Jw={draw(e,t){const n=ti(t/Tm);e.moveTo(n,0),e.arc(0,0,n,0,Ip)}},qG={draw(e,t){const n=ti(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()}},o4=ti(1/3),$G=o4*2,VG={draw(e,t){const n=ti(t/$G),r=n*o4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},FG={draw(e,t){const n=ti(t),r=-n/2;e.rect(r,r,n,n)}},HG=.8908130915292852,l4=km(Tm/10)/km(7*Tm/10),KG=km(Ip/10)*l4,GG=-e4(Ip/10)*l4,YG={draw(e,t){const n=ti(t*HG),r=KG*n,a=GG*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=Ip*o/5,c=e4(l),f=km(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},x0=ti(3),WG={draw(e,t){const n=-ti(t/(x0*3));e.moveTo(0,n*2),e.lineTo(-x0*n,-n),e.lineTo(x0*n,-n),e.closePath()}},Or=-.5,Ar=ti(3)/2,e1=1/ti(12),XG=(e1/2+1)*3,QG={draw(e,t){const n=ti(t/XG),r=n/2,a=n*e1,o=r,l=n*e1+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Or*r-Ar*a,Ar*r+Or*a),e.lineTo(Or*o-Ar*l,Ar*o+Or*l),e.lineTo(Or*c-Ar*f,Ar*c+Or*f),e.lineTo(Or*r+Ar*a,Or*a-Ar*r),e.lineTo(Or*o+Ar*l,Or*l-Ar*o),e.lineTo(Or*c+Ar*f,Or*f-Ar*c),e.closePath()}};function ZG(e,t){let n=null,r=Qw(a);e=typeof e=="function"?e:dt(e||Jw),t=typeof t=="function"?t:dt(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:dt(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:dt(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Cm(){}function Mm(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 u4(e){this._context=e}u4.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:Mm(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:Mm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JG(e){return new u4(e)}function c4(e){this._context=e}c4.prototype={areaStart:Cm,areaEnd:Cm,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:Mm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eY(e){return new c4(e)}function f4(e){this._context=e}f4.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:Mm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tY(e){return new f4(e)}function d4(e){this._context=e}d4.prototype={areaStart:Cm,areaEnd:Cm,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 nY(e){return new d4(e)}function Tk(e){return e<0?-1:1}function Ck(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(Tk(o)+Tk(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function Mk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function w0(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Pm(e){this._context=e}Pm.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:w0(this,this._t0,Mk(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,w0(this,Mk(this,n=Ck(this,e,t)),n);break;default:w0(this,this._t0,n=Ck(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function h4(e){this._context=new m4(e)}(h4.prototype=Object.create(Pm.prototype)).point=function(e,t){Pm.prototype.point.call(this,t,e)};function m4(e){this._context=e}m4.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,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function rY(e){return new Pm(e)}function iY(e){return new h4(e)}function p4(e){this._context=e}p4.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=Pk(e),a=Pk(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[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 Pk(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function aY(e){return new p4(e)}function Up(e,t){this._context=e,this._t=t}Up.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 sY(e){return new Up(e,.5)}function oY(e){return new Up(e,0)}function lY(e){return new Up(e,1)}function To(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function t1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function uY(e,t){return e[t]}function cY(e){const t=[];return t.key=e,t}function fY(){var e=dt([]),t=t1,n=To,r=uY;function a(o){var l=Array.from(e.apply(this,arguments),cY),c,f=l.length,h=-1,m;for(const p of o)for(c=0,++h;c<f;++c)(l[c][h]=[0,+r(p,l[c].key,h,o)]).data=p;for(c=0,m=Zw(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:dt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:dt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?t1:typeof o=="function"?o:dt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??To,a):n},a}function dY(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}To(e,t)}}function hY(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}To(e,t)}}function mY(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,f=0,h=0;c<l;++c){for(var m=e[t[c]],p=m[r][1]||0,v=m[r-1][1]||0,x=(p-v)/2,j=0;j<c;++j){var O=e[t[j]],w=O[r][1]||0,A=O[r-1][1]||0;x+=w-A}f+=p,h+=x*p}a[r-1][1]+=a[r-1][0]=n,f&&(n-=h/f)}a[r-1][1]+=a[r-1][0]=n,To(e,t)}}var S0={},j0={},_k;function pY(){return _k||(_k=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(j0)),j0}var O0={},Dk;function g4(){return Dk||(Dk=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})(O0)),O0}var A0={},Rk;function eS(){return Rk||(Rk=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})(A0)),A0}var E0={},N0={},zk;function gY(){return zk||(zk=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})(N0)),N0}var Lk;function tS(){return Lk||(Lk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gY(),n=eS();function r(a){if(Array.isArray(a))return a.map(n.toKey);if(typeof a=="symbol")return[a];a=t.toString(a);const o=[],l=a.length;if(l===0)return o;let c=0,f="",h="",m=!1;for(a.charCodeAt(0)===46&&(o.push(""),c++);c<l;){const p=a[c];h?p==="\\"&&c+1<l?(c++,f+=a[c]):p===h?h="":f+=p:m?p==='"'||p==="'"?h=p:p==="]"?(m=!1,o.push(f),f=""):f+=p:p==="["?(m=!0,f&&(o.push(f),f="")):p==="."?f&&(o.push(f),f=""):f+=p,c++}return f&&o.push(f),o}e.toPath=r})(E0)),E0}var Ik;function nS(){return Ik||(Ik=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pY(),n=g4(),r=eS(),a=tS();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,a.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 p=0;p<f.length;p++){if(m==null||t.isUnsafeProperty(f[p]))return h;m=m[f[p]]}return m===void 0?h:m}e.get=o})(S0)),S0}var k0,Bk;function vY(){return Bk||(Bk=1,k0=nS().get),k0}var yY=vY();const lu=Oi(yY);var bY=4;function bs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bY,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Ct(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((a,o,l)=>{var c=n[l-1];return typeof c=="string"?a+c+o:c!==void 0?a+bs(c)+o:a+o},"")}var Wn=e=>e===0?0:e>0?1:-1,Zr=e=>typeof e=="number"&&e!=+e,Co=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!Zr(e),wi=e=>he(e)||typeof e=="string",xY=0,pf=e=>{var t=++xY;return"".concat(e||"").concat(t)},Jr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!he(t)&&typeof t!="string")return r;var o;if(Co(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),a&&n!=null&&o>n&&(o=n),o},v4=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 St(e,t,n){return he(e)&&he(t)?bs(e+n*(t-e)):t}function y4(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):lu(r,t))===n)}var Mt=e=>e===null||typeof e>"u",Hf=e=>Mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Xn(e){return e!=null}function Io(){}var wY=["type","size","sizeType"];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 Uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(n),!0).forEach(function(r){SY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SY(e,t,n){return(t=jY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jY(e){var t=OY(e,"string");return typeof t=="symbol"?t:t+""}function OY(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 AY(e,t){if(e==null)return{};var n,r,a=EY(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)&&(a[n]=e[n])}return a}function EY(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 b4={symbolCircle:Jw,symbolCross:qG,symbolDiamond:VG,symbolSquare:FG,symbolStar:YG,symbolTriangle:WG,symbolWye:QG},NY=Math.PI/180,kY=e=>{var t="symbol".concat(Hf(e));return b4[t]||Jw},TY=(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*NY;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}},CY=(e,t)=>{b4["symbol".concat(Hf(e))]=t},rS=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,a=AY(e,wY),o=qk(qk({},a),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var c=()=>{var v=kY(l),x=ZG().type(v).size(TY(n,r,l)),j=x();if(j!==null)return j},{className:f,cx:h,cy:m}=o,p=zn(o);return he(h)&&he(m)&&he(n)?S.createElement("path",n1({},p,{className:Ze("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:c()})):null};rS.registerSymbol=CY;var x4=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,iS=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(S.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(a=>{Ww(a)&&(r[a]=(o=>n[a](n,o)))}),r},MY=(e,t,n)=>r=>(e(t,n,r),null),qp=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var o=e[a];Ww(a)&&typeof o=="function"&&(r||(r={}),r[a]=MY(o,t,n))}),r};function $k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function PY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$k(Object(n),!0).forEach(function(r){_Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$k(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Y(e,t,n){return(t=DY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DY(e){var t=RY(e,"string");return typeof t=="symbol"?t:t+""}function RY(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=PY({},e),r=t,a=Object.keys(t),o=a.reduce((l,c)=>(l[c]===void 0&&r[c]!==void 0&&(l[c]=r[c]),l),n);return o}function _m(){return _m=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},_m.apply(null,arguments)}function Vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(n),!0).forEach(function(r){LY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LY(e,t,n){return(t=IY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IY(e){var t=BY(e,"string");return typeof t=="symbol"?t:t+""}function BY(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 Nr=32,UY={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function qY(e){var{data:t,iconType:n,inactiveColor:r}=e,a=Nr/2,o=Nr/6,l=Nr/3,c=t.inactive?r:t.color,f=n??t.type;if(f==="none")return null;if(f==="plainline"){var h;return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:(h=t.payload)===null||h===void 0?void 0:h.strokeDasharray,x1:0,y1:a,x2:Nr,y2:a,className:"recharts-legend-icon"})}if(f==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(l,`
|
|
364
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
|
|
365
|
+
H`).concat(Nr,"M").concat(2*l,",").concat(a,`
|
|
366
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(f==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Nr/8,"h").concat(Nr,"v").concat(Nr*3/4,"h").concat(-Nr,"z"),className:"recharts-legend-icon"});if(S.isValidElement(t.legendIcon)){var m=zY({},t);return delete m.legendIcon,S.cloneElement(t.legendIcon,m)}return S.createElement(rS,{fill:c,cx:a,cy:a,size:Nr,sizeType:"diameter",type:f})}function $Y(e){var{payload:t,iconSize:n,layout:r,formatter:a,inactiveColor:o,iconType:l}=e,c={x:0,y:0,width:Nr,height:Nr},f={display:r==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((m,p)=>{var v=m.formatter||a,x=Ze({"recharts-legend-item":!0,["legend-item-".concat(p)]:!0,inactive:m.inactive});if(m.type==="none")return null;var j=m.inactive?o:m.color,O=v?v(m.value,m,p):m.value;return S.createElement("li",_m({className:x,style:f,key:"legend-item-".concat(p)},qp(e,m,p)),S.createElement(Xw,{width:n,height:n,viewBox:c,style:h,"aria-label":"".concat(O," legend icon")},S.createElement(qY,{data:m,iconType:l,inactiveColor:o})),S.createElement("span",{className:"recharts-legend-item-text",style:{color:j}},O))})}var VY=e=>{var t=Sn(e,UY),{payload:n,layout:r,align:a}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?a:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:o},S.createElement($Y,_m({},t,{payload:n})))},T0={},C0={},Fk;function FY(){return Fk||(Fk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const a=new Map;for(let o=0;o<n.length;o++){const l=n[o],c=r(l,o,n);a.has(c)||a.set(c,l)}return Array.from(a.values())}e.uniqBy=t})(C0)),C0}var M0={},Hk;function HY(){return Hk||(Hk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...a){return n.apply(this,a.slice(0,r))}}e.ary=t})(M0)),M0}var P0={},Kk;function w4(){return Kk||(Kk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(P0)),P0}var _0={},D0={},R0={},Gk;function KY(){return Gk||(Gk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(R0)),R0}var Yk;function aS(){return Yk||(Yk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=KY();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(D0)),D0}var z0={},Wk;function GY(){return Wk||(Wk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(z0)),z0}var Xk;function YY(){return Xk||(Xk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aS(),n=GY();function r(a){return n.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=r})(_0)),_0}var L0={},I0={},Qk;function WY(){return Qk||(Qk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS();function n(r){return function(a){return t.get(a,r)}}e.property=n})(I0)),I0}var B0={},U0={},q0={},$0={},Zk;function S4(){return Zk||(Zk=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})($0)),$0}var V0={},Jk;function j4(){return Jk||(Jk=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})(V0)),V0}var F0={},eT;function O4(){return eT||(eT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(F0)),F0}var tT;function XY(){return tT||(tT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S4(),n=j4(),r=O4();function a(m,p,v){return typeof v!="function"?a(m,p,()=>{}):o(m,p,function x(j,O,w,A,T,k){const E=v(j,O,w,A,T,k);return E!==void 0?!!E:o(j,O,x,k)},new Map)}function o(m,p,v,x){if(p===m)return!0;switch(typeof p){case"object":return l(m,p,v,x);case"function":return Object.keys(p).length>0?o(m,{...p},v,x):r.isEqualsSameValueZero(m,p);default:return t.isObject(m)?typeof p=="string"?p==="":!0:r.isEqualsSameValueZero(m,p)}}function l(m,p,v,x){if(p==null)return!0;if(Array.isArray(p))return f(m,p,v,x);if(p instanceof Map)return c(m,p,v,x);if(p instanceof Set)return h(m,p,v,x);const j=Object.keys(p);if(m==null||n.isPrimitive(m))return j.length===0;if(j.length===0)return!0;if(x!=null&&x.has(p))return x.get(p)===m;x==null||x.set(p,m);try{for(let O=0;O<j.length;O++){const w=j[O];if(!n.isPrimitive(m)&&!(w in m)||p[w]===void 0&&m[w]!==void 0||p[w]===null&&m[w]!==null||!v(m[w],p[w],w,m,p,x))return!1}return!0}finally{x==null||x.delete(p)}}function c(m,p,v,x){if(p.size===0)return!0;if(!(m instanceof Map))return!1;for(const[j,O]of p.entries()){const w=m.get(j);if(v(w,O,j,m,p,x)===!1)return!1}return!0}function f(m,p,v,x){if(p.length===0)return!0;if(!Array.isArray(m))return!1;const j=new Set;for(let O=0;O<p.length;O++){const w=p[O];let A=!1;for(let T=0;T<m.length;T++){if(j.has(T))continue;const k=m[T];let E=!1;if(v(k,w,O,m,p,x)&&(E=!0),E){j.add(T),A=!0;break}}if(!A)return!1}return!0}function h(m,p,v,x){return p.size===0?!0:m instanceof Set?f([...m],[...p],v,x):!1}e.isMatchWith=a,e.isSetMatch=h})(q0)),q0}var nT;function A4(){return nT||(nT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XY();function n(r,a){return t.isMatchWith(r,a,()=>{})}e.isMatch=n})(U0)),U0}var H0={},K0={},G0={},rT;function QY(){return rT||(rT=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})(G0)),G0}var Y0={},iT;function sS(){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})(Y0)),Y0}var W0={},aT;function E4(){return aT||(aT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",a="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",f="[object Map]",h="[object Set]",m="[object Array]",p="[object Function]",v="[object ArrayBuffer]",x="[object Object]",j="[object Error]",O="[object DataView]",w="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]",E="[object BigUint64Array]",C="[object Int8Array]",P="[object Int16Array]",_="[object Int32Array]",D="[object BigInt64Array]",L="[object Float32Array]",Z="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=v,e.arrayTag=m,e.bigInt64ArrayTag=D,e.bigUint64ArrayTag=E,e.booleanTag=a,e.dataViewTag=O,e.dateTag=c,e.errorTag=j,e.float32ArrayTag=L,e.float64ArrayTag=Z,e.functionTag=p,e.int16ArrayTag=P,e.int32ArrayTag=_,e.int8ArrayTag=C,e.mapTag=f,e.numberTag=r,e.objectTag=x,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=T,e.uint32ArrayTag=k,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=A})(W0)),W0}var X0={},sT;function ZY(){return sT||(sT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(X0)),X0}var oT;function N4(){return oT||(oT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QY(),n=sS(),r=E4(),a=j4(),o=ZY();function l(m,p){return c(m,void 0,m,new Map,p)}function c(m,p,v,x=new Map,j=void 0){const O=j==null?void 0:j(m,p,v,x);if(O!==void 0)return O;if(a.isPrimitive(m))return m;if(x.has(m))return x.get(m);if(Array.isArray(m)){const w=new Array(m.length);x.set(m,w);for(let A=0;A<m.length;A++)w[A]=c(m[A],A,v,x,j);return Object.hasOwn(m,"index")&&(w.index=m.index),Object.hasOwn(m,"input")&&(w.input=m.input),w}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const w=new RegExp(m.source,m.flags);return w.lastIndex=m.lastIndex,w}if(m instanceof Map){const w=new Map;x.set(m,w);for(const[A,T]of m)w.set(A,c(T,A,v,x,j));return w}if(m instanceof Set){const w=new Set;x.set(m,w);for(const A of m)w.add(c(A,void 0,v,x,j));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const w=new(Object.getPrototypeOf(m)).constructor(m.length);x.set(m,w);for(let A=0;A<m.length;A++)w[A]=c(m[A],A,v,x,j);return w}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const w=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return x.set(m,w),f(w,m,v,x,j),w}if(typeof File<"u"&&m instanceof File){const w=new File([m],m.name,{type:m.type});return x.set(m,w),f(w,m,v,x,j),w}if(typeof Blob<"u"&&m instanceof Blob){const w=new Blob([m],{type:m.type});return x.set(m,w),f(w,m,v,x,j),w}if(m instanceof Error){const w=new m.constructor;return x.set(m,w),w.message=m.message,w.name=m.name,w.stack=m.stack,w.cause=m.cause,f(w,m,v,x,j),w}if(m instanceof Boolean){const w=new Boolean(m.valueOf());return x.set(m,w),f(w,m,v,x,j),w}if(m instanceof Number){const w=new Number(m.valueOf());return x.set(m,w),f(w,m,v,x,j),w}if(m instanceof String){const w=new String(m.valueOf());return x.set(m,w),f(w,m,v,x,j),w}if(typeof m=="object"&&h(m)){const w=Object.create(Object.getPrototypeOf(m));return x.set(m,w),f(w,m,v,x,j),w}return m}function f(m,p,v=m,x,j){const O=[...Object.keys(p),...t.getSymbols(p)];for(let w=0;w<O.length;w++){const A=O[w],T=Object.getOwnPropertyDescriptor(m,A);(T==null||T.writable)&&(m[A]=c(p[A],A,v,x,j))}}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})(K0)),K0}var lT;function JY(){return lT||(lT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N4();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(H0)),H0}var uT;function eW(){return uT||(uT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=A4(),n=JY();function r(a){return a=n.cloneDeep(a),o=>t.isMatch(o,a)}e.matches=r})(B0)),B0}var Q0={},Z0={},J0={},cT;function tW(){return cT||(cT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N4(),n=sS(),r=E4();function a(o,l){return t.cloneDeepWith(o,(c,f,h,m)=>{const p=l==null?void 0:l(c,f,h,m);if(p!==void 0)return p;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const v={};return m.set(o,v),t.copyProperties(v,o,h,m),v}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const v=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(v,o),v}case r.argumentsTag:{const v={};return t.copyProperties(v,o),v.length=o.length,v[Symbol.iterator]=o[Symbol.iterator],v}default:return}}})}e.cloneDeepWith=a})(J0)),J0}var fT;function nW(){return fT||(fT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tW();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(Z0)),Z0}var eb={},tb={},dT;function k4(){return dT||(dT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,a=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<a;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(tb)),tb}var nb={},hT;function rW(){return hT||(hT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sS();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(nb)),nb}var mT;function iW(){return mT||(mT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g4(),n=k4(),r=rW(),a=tS();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=a.toPath(c):f=[c],f.length===0)return!1;let h=l;for(let m=0;m<f.length;m++){const p=f[m];if((h==null||!Object.hasOwn(h,p))&&!((Array.isArray(h)||r.isArguments(h))&&n.isIndex(p)&&p<h.length))return!1;h=h[p]}return!0}e.has=o})(eb)),eb}var pT;function aW(){return pT||(pT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=A4(),n=eS(),r=nW(),a=nS(),o=iW();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=a.get(h,c);return m===void 0?o.has(h,c):f===void 0?m===void 0:t.isMatch(m,f)}}e.matchesProperty=l})(Q0)),Q0}var gT;function sW(){return gT||(gT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=w4(),n=WY(),r=eW(),a=aW();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?a.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=o})(L0)),L0}var vT;function oW(){return vT||(vT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FY(),n=HY(),r=w4(),a=YY(),o=sW();function l(c,f=r.identity){return a.isArrayLikeObject(c)?t.uniqBy(Array.from(c),n.ary(o.iteratee(f),1)):[]}e.uniqBy=l})(T0)),T0}var rb,yT;function lW(){return yT||(yT=1,rb=oW().uniqBy),rb}var uW=lW();const bT=Oi(uW);function T4(e,t,n){return t===!0?bT(e,n):typeof t=="function"?bT(e,t):e}var ib={exports:{}},ab={},sb={exports:{}},ob={};/**
|
|
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 xT;function cW(){if(xT)return ob;xT=1;var e=vu();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(p,v){var x=v(),j=r({inst:{value:x,getSnapshot:v}}),O=j[0].inst,w=j[1];return o(function(){O.value=x,O.getSnapshot=v,f(O)&&w({inst:O})},[p,x,v]),a(function(){return f(O)&&w({inst:O}),p(function(){f(O)&&w({inst:O})})},[p]),l(x),x}function f(p){var v=p.getSnapshot;p=p.value;try{var x=v();return!n(p,x)}catch{return!0}}function h(p,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return ob.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,ob}var wT;function fW(){return wT||(wT=1,sb.exports=cW()),sb.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 ST;function dW(){if(ST)return ab;ST=1;var e=vu(),t=fW();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,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return ab.useSyncExternalStoreWithSelector=function(h,m,p,v,x){var j=o(null);if(j.current===null){var O={hasValue:!1,value:null};j.current=O}else O=j.current;j=c(function(){function A(P){if(!T){if(T=!0,k=P,P=v(P),x!==void 0&&O.hasValue){var _=O.value;if(x(_,P))return E=_}return E=P}if(_=E,r(k,P))return _;var D=v(P);return x!==void 0&&x(_,D)?(k=P,_):(k=P,E=D)}var T=!1,k,E,C=p===void 0?null:p;return[function(){return A(m())},C===null?void 0:function(){return A(C())}]},[m,p,v,x]);var w=a(h,j[0],j[1]);return l(function(){O.hasValue=!0,O.value=w},[w]),f(w),w},ab}var jT;function hW(){return jT||(jT=1,ib.exports=dW()),ib.exports}var mW=hW(),oS=S.createContext(null),pW=e=>e,Ot=()=>{var e=S.useContext(oS);return e?e.store.dispatch:pW},om=()=>{},gW=()=>om,vW=(e,t)=>e===t;function je(e){var t=S.useContext(oS),n=S.useMemo(()=>t?r=>{if(r!=null)return e(r)}:om,[t,e]);return mW.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:gW,t?t.store.getState:om,t?t.store.getState:om,n,vW)}function yW(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function bW(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xW(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 OT=e=>Array.isArray(e)?e:[e];function wW(e){const t=Array.isArray(e[0])?e[0]:e;return xW(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function SW(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var jW=class{constructor(e){this.value=e}deref(){return this.value}},OW=typeof WeakRef<"u"?WeakRef:jW,AW=0,AT=1;function Rh(){return{s:AW,v:void 0,o:null,p:null}}function C4(e,t={}){let n=Rh();const{resultEqualityCheck:r}=t;let a,o=0;function l(){var p;let c=n;const{length:f}=arguments;for(let v=0,x=f;v<x;v++){const j=arguments[v];if(typeof j=="function"||typeof j=="object"&&j!==null){let O=c.o;O===null&&(c.o=O=new WeakMap);const w=O.get(j);w===void 0?(c=Rh(),O.set(j,c)):c=w}else{let O=c.p;O===null&&(c.p=O=new Map);const w=O.get(j);w===void 0?(c=Rh(),O.set(j,c)):c=w}}const h=c;let m;if(c.s===AT)m=c.v;else if(m=e.apply(null,arguments),o++,r){const v=((p=a==null?void 0:a.deref)==null?void 0:p.call(a))??a;v!=null&&r(v,m)&&(m=v,o!==0&&o--),a=typeof m=="object"&&m!==null||typeof m=="function"?new OW(m):m}return h.s=AT,h.v=m,m}return l.clearCache=()=>{n=Rh(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function EW(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...a)=>{let o=0,l=0,c,f={},h=a.pop();typeof h=="object"&&(f=h,h=a.pop()),yW(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const m={...n,...f},{memoize:p,memoizeOptions:v=[],argsMemoize:x=C4,argsMemoizeOptions:j=[]}=m,O=OT(v),w=OT(j),A=wW(a),T=p(function(){return o++,h.apply(null,arguments)},...O),k=x(function(){l++;const C=SW(A,arguments);return c=T.apply(null,C),c},...w);return Object.assign(k,{resultFunc:h,memoizedResultFunc:T,dependencies:A,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:x})};return Object.assign(r,{withTypes:()=>r}),r}var W=EW(C4),NW=Object.assign((e,t=W)=>{bW(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:()=>NW}),lb={},ub={},cb={},ET;function kW(){return ET||(ET=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,a,o)=>{if(r!==a){const l=t(r),c=t(a);if(l===c&&l===0){if(r<a)return o==="desc"?1:-1;if(r>a)return o==="desc"?-1:1}return o==="desc"?c-l:l-c}return 0};e.compareValues=n})(cb)),cb}var fb={},db={},NT;function M4(){return NT||(NT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(db)),db}var kT;function TW(){return kT||(kT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M4(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(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=a})(fb)),fb}var TT;function CW(){return TT||(TT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kW(),n=TW(),r=tS();function a(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(x=>String(x));const h=(x,j)=>{let O=x;for(let w=0;w<j.length&&O!=null;++w)O=O[j[w]];return O},m=(x,j)=>j==null||x==null?j:typeof x=="object"&&"key"in x?Object.hasOwn(j,x.key)?j[x.key]:h(j,x.path):typeof x=="function"?x(j):Array.isArray(x)?h(j,x):typeof j=="object"?j[x]:j,p=l.map(x=>(Array.isArray(x)&&x.length===1&&(x=x[0]),x==null||typeof x=="function"||Array.isArray(x)||n.isKey(x)?x:{key:x,path:r.toPath(x)}));return o.map(x=>({original:x,criteria:p.map(j=>m(j,x))})).slice().sort((x,j)=>{for(let O=0;O<p.length;O++){const w=t.compareValues(x.criteria[O],j.criteria[O],c[O]);if(w!==0)return w}return 0}).map(x=>x.original)}e.orderBy=a})(ub)),ub}var hb={},CT;function MW(){return CT||(CT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const a=[],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):a.push(m)}};return l(n,0),a}e.flatten=t})(hb)),hb}var mb={},MT;function P4(){return MT||(MT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k4(),n=aS(),r=S4(),a=O4();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)?a.isEqualsSameValueZero(f[c],l):!1}e.isIterateeCall=o})(mb)),mb}var PT;function PW(){return PT||(PT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CW(),n=MW(),r=P4();function a(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=a})(lb)),lb}var pb,_T;function _W(){return _T||(_T=1,pb=PW().sortBy),pb}var DW=_W();const $p=Oi(DW);var _4=e=>e.legend.settings,RW=e=>e.legend.size,zW=e=>e.legend.payload,LW=W([zW,_4],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?$p(r,n):r});function IW(){return je(LW)}var zh=1;function D4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=S.useState({height:0,left:0,top:0,width:0}),r=S.useCallback(a=>{if(a!=null){var o=a.getBoundingClientRect(),l={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(l.height-t.height)>zh||Math.abs(l.left-t.left)>zh||Math.abs(l.top-t.top)>zh||Math.abs(l.width-t.width)>zh)&&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 BW=typeof Symbol=="function"&&Symbol.observable||"@@observable",DT=BW,gb=()=>Math.random().toString(36).substring(7).split("").join("."),UW={INIT:`@@redux/INIT${gb()}`,REPLACE:`@@redux/REPLACE${gb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gb()}`},Dm=UW;function lS(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 R4(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(R4)(e,t)}let r=e,a=t,o=new Map,l=o,c=0,f=!1;function h(){l===o&&(l=new Map,o.forEach((w,A)=>{l.set(A,w)}))}function m(){if(f)throw new Error(yn(3));return a}function p(w){if(typeof w!="function")throw new Error(yn(4));if(f)throw new Error(yn(5));let A=!0;h();const T=c++;return l.set(T,w),function(){if(A){if(f)throw new Error(yn(6));A=!1,h(),l.delete(T),o=null}}}function v(w){if(!lS(w))throw new Error(yn(7));if(typeof w.type>"u")throw new Error(yn(8));if(typeof w.type!="string")throw new Error(yn(17));if(f)throw new Error(yn(9));try{f=!0,a=r(a,w)}finally{f=!1}return(o=l).forEach(T=>{T()}),w}function x(w){if(typeof w!="function")throw new Error(yn(10));r=w,v({type:Dm.REPLACE})}function j(){const w=p;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(yn(11));function T(){const E=A;E.next&&E.next(m())}return T(),{unsubscribe:w(T)}},[DT](){return this}}}return v({type:Dm.INIT}),{dispatch:v,subscribe:p,getState:m,replaceReducer:x,[DT]:j}}function qW(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Dm.INIT})>"u")throw new Error(yn(12));if(typeof n(void 0,{type:Dm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yn(13))})}function z4(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 a;try{qW(n)}catch(o){a=o}return function(l={},c){if(a)throw a;let f=!1;const h={};for(let m=0;m<r.length;m++){const p=r[m],v=n[p],x=l[p],j=v(x,c);if(typeof j>"u")throw c&&c.type,new Error(yn(14));h[p]=j,f=f||j!==x}return f=f||r.length!==Object.keys(l).length,f?h:l}}function Rm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function $W(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(yn(15))};const l={getState:a.getState,dispatch:(f,...h)=>o(f,...h)},c=e.map(f=>f(l));return o=Rm(...c)(a.dispatch),{...a,dispatch:o}}}function L4(e){return lS(e)&&"type"in e&&typeof e.type=="string"}var I4=Symbol.for("immer-nothing"),RT=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Gr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cr=Object,uu=cr.getPrototypeOf,zm="constructor",Vp="prototype",r1="configurable",Lm="enumerable",lm="writable",gf="value",ca=e=>!!e&&!!e[In];function ei(e){var t;return e?B4(e)||Hp(e)||!!e[RT]||!!((t=e[zm])!=null&&t[RT])||Kp(e)||Gp(e):!1}var VW=cr[Vp][zm].toString(),zT=new WeakMap;function B4(e){if(!e||!uS(e))return!1;const t=uu(e);if(t===null||t===cr[Vp])return!0;const n=cr.hasOwnProperty.call(t,zm)&&t[zm];if(n===Object)return!0;if(!zl(n))return!1;let r=zT.get(n);return r===void 0&&(r=Function.toString.call(n),zT.set(n,r)),r===VW}function Fp(e,t,n=!0){Kf(e)===0?(n?Reflect.ownKeys(e):cr.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Kf(e){const t=e[In];return t?t.type_:Hp(e)?1:Kp(e)?2:Gp(e)?3:0}var LT=(e,t,n=Kf(e))=>n===2?e.has(t):cr[Vp].hasOwnProperty.call(e,t),i1=(e,t,n=Kf(e))=>n===2?e.get(t):e[t],Im=(e,t,n,r=Kf(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function FW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Hp=Array.isArray,Kp=e=>e instanceof Map,Gp=e=>e instanceof Set,uS=e=>typeof e=="object",zl=e=>typeof e=="function",vb=e=>typeof e=="boolean";function HW(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Yi=e=>e.copy_||e.base_,cS=e=>e.modified_?e.copy_:e.base_;function a1(e,t){if(Kp(e))return new Map(e);if(Gp(e))return new Set(e);if(Hp(e))return Array[Vp].slice.call(e);const n=B4(e);if(t===!0||t==="class_only"&&!n){const r=cr.getOwnPropertyDescriptors(e);delete r[In];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const l=a[o],c=r[l];c[lm]===!1&&(c[lm]=!0,c[r1]=!0),(c.get||c.set)&&(r[l]={[r1]:!0,[lm]:!0,[Lm]:c[Lm],[gf]:e[l]})}return cr.create(uu(e),r)}else{const r=uu(e);if(r!==null&&n)return{...e};const a=cr.create(r);return cr.assign(a,e)}}function fS(e,t=!1){return Yp(e)||ca(e)||!ei(e)||(Kf(e)>1&&cr.defineProperties(e,{set:Lh,add:Lh,clear:Lh,delete:Lh}),cr.freeze(e),t&&Fp(e,(n,r)=>{fS(r,!0)},!1)),e}function KW(){Gr(2)}var Lh={[gf]:KW};function Yp(e){return e===null||!uS(e)?!0:cr.isFrozen(e)}var Bm="MapSet",s1="Patches",IT="ArrayMethods",U4={};function Mo(e){const t=U4[e];return t||Gr(0,e),t}var BT=e=>!!U4[e],vf,q4=()=>vf,GW=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:BT(Bm)?Mo(Bm):void 0,arrayMethodsPlugin_:BT(IT)?Mo(IT):void 0});function UT(e,t){t&&(e.patchPlugin_=Mo(s1),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function o1(e){l1(e),e.drafts_.forEach(YW),e.drafts_=null}function l1(e){e===vf&&(vf=e.parent_)}var qT=e=>vf=GW(vf,e);function YW(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $T(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[In].modified_&&(o1(t),Gr(4)),ei(e)&&(e=VT(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[In].base_,e,t)}else e=VT(t,n);return WW(t,e,!0),o1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==I4?e:void 0}function VT(e,t){if(Yp(t))return t;const n=t[In];if(!n)return Um(t,e.handledSet_,e);if(!Wp(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);F4(n,e)}return n.copy_}function WW(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fS(t,n)}function $4(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Wp=(e,t)=>e.scope_===t,XW=[];function V4(e,t,n,r){const a=Yi(e),o=e.type_;if(r!==void 0&&i1(a,r,o)===t){Im(a,r,n,o);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Fp(a,(f,h)=>{if(ca(h)){const m=c.get(h)||[];m.push(f),c.set(h,m)}})}const l=e.draftLocations_.get(t)??XW;for(const c of l)Im(a,c,n,o)}function QW(e,t,n){e.callbacks_.push(function(a){var c;const o=t;if(!o||!Wp(o,a))return;(c=a.mapSetPlugin_)==null||c.fixSetContents(o);const l=cS(o);V4(e,o.draft_??o,l,n),F4(o,a)})}function F4(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_:a}=t;if(a){const o=a.getPath(e);o&&a.generatePatches_(e,o,t)}$4(e)}}function ZW(e,t,n){const{scope_:r}=e;if(ca(n)){const a=n[In];Wp(a,r)&&a.callbacks_.push(function(){um(e);const l=cS(a);V4(e,n,l,t)})}else ei(n)&&e.callbacks_.push(function(){const o=Yi(e);e.type_===3?o.has(n)&&Um(n,r.handledSet_,r):i1(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Um(i1(e.copy_,t,e.type_),r.handledSet_,r)})}function Um(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ca(e)||t.has(e)||!ei(e)||Yp(e)||(t.add(e),Fp(e,(r,a)=>{if(ca(a)){const o=a[In];if(Wp(o,n)){const l=cS(o);Im(e,r,l,e.type_),$4(o)}}else ei(a)&&Um(a,t,n)})),e}function JW(e,t){const n=Hp(e),r={type_:n?1:0,scope_:t?t.scope_:q4(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,o=qm;n&&(a=[r],o=yf);const{revoke:l,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=l,[c,r]}var qm={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 a=Yi(e);if(!LT(a,t,e.type_))return eX(e,a,t);const o=a[t];if(e.finalized_||!ei(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&HW(t))return o;if(o===yb(e.base_,t)){um(e);const l=e.type_===1?+t:t,c=c1(e.scope_,o,e,l);return e.copy_[l]=c}return o},has(e,t){return t in Yi(e)},ownKeys(e){return Reflect.ownKeys(Yi(e))},set(e,t,n){const r=H4(Yi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=yb(Yi(e),t),o=a==null?void 0:a[In];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(FW(n,a)&&(n!==void 0||LT(e.base_,t,e.type_)))return!0;um(e),u1(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),ZW(e,t,n)),!0},deleteProperty(e,t){return um(e),yb(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),u1(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Yi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[lm]:!0,[r1]:e.type_!==1||t!=="length",[Lm]:r[Lm],[gf]:n[t]}},defineProperty(){Gr(11)},getPrototypeOf(e){return uu(e.base_)},setPrototypeOf(){Gr(12)}},yf={};for(let e in qm){let t=qm[e];yf[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}yf.deleteProperty=function(e,t){return yf.set.call(this,e,t,void 0)};yf.set=function(e,t,n){return qm.set.call(this,e[0],t,n,e[0])};function yb(e,t){const n=e[In];return(n?Yi(n):e)[t]}function eX(e,t,n){var a;const r=H4(t,n);return r?gf in r?r[gf]:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function H4(e,t){if(!(t in e))return;let n=uu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=uu(n)}}function u1(e){e.modified_||(e.modified_=!0,e.parent_&&u1(e.parent_))}function um(e){e.copy_||(e.assigned_=new Map,e.copy_=a1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var tX=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,a)=>{if(zl(n)&&!zl(r)){const l=r;r=n;const c=this;return function(h=l,...m){return c.produce(h,p=>r.call(this,p,...m))}}zl(r)||Gr(6),a!==void 0&&!zl(a)&&Gr(7);let o;if(ei(n)){const l=qT(this),c=c1(l,n,void 0);let f=!0;try{o=r(c),f=!1}finally{f?o1(l):l1(l)}return UT(l,a),$T(o,l)}else if(!n||!uS(n)){if(o=r(n),o===void 0&&(o=n),o===I4&&(o=void 0),this.autoFreeze_&&fS(o,!0),a){const l=[],c=[];Mo(s1).generateReplacementPatches_(n,o,{patches_:l,inversePatches_:c}),a(l,c)}return o}else Gr(1,n)},this.produceWithPatches=(n,r)=>{if(zl(n))return(c,...f)=>this.produceWithPatches(c,h=>n(h,...f));let a,o;return[this.produce(n,r,(c,f)=>{a=c,o=f}),a,o]},vb(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),vb(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),vb(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ei(t)||Gr(8),ca(t)&&(t=Qr(t));const n=qT(this),r=c1(n,t,void 0);return r[In].isManual_=!0,l1(n),r}finishDraft(t,n){const r=t&&t[In];(!r||!r.isManual_)&&Gr(9);const{scope_:a}=r;return UT(a,n),$T(void 0,a)}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 a=Mo(s1).applyPatches_;return ca(t)?a(t,n):this.produce(t,o=>a(o,n))}};function c1(e,t,n,r){const[a,o]=Kp(t)?Mo(Bm).proxyMap_(t,n):Gp(t)?Mo(Bm).proxySet_(t,n):JW(t,n);return((n==null?void 0:n.scope_)??q4()).drafts_.push(a),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?QW(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)}),a}function Qr(e){return ca(e)||Gr(10,e),K4(e)}function K4(e){if(!ei(e)||Yp(e))return e;const t=e[In];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=a1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=a1(e,!0);return Fp(n,(a,o)=>{Im(n,a,K4(o))},r),t&&(t.finalized_=!1),n}var nX=new tX,G4=nX.produce;function Y4(e){return({dispatch:n,getState:r})=>a=>o=>typeof o=="function"?o(n,r,e):a(o)}var rX=Y4(),iX=Y4,aX=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rm:Rm.apply(null,arguments)};function Rr(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(fr(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>L4(r)&&r.type===e,n}var W4=class Vc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Vc.prototype)}static get[Symbol.species](){return Vc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Vc(...t[0].concat(this)):new Vc(...t.concat(this))}};function FT(e){return ei(e)?G4(e,()=>{}):e}function Ih(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function sX(e){return typeof e=="boolean"}var oX=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:o=!0}=t??{};let l=new W4;return n&&(sX(n)?l.push(rX):l.push(iX(n.extraArgument))),l},X4="RTK_autoBatch",bt=()=>e=>({payload:e,meta:{[X4]:!0}}),HT=e=>t=>{setTimeout(t,e)},Q4=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,l=!1;const c=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:HT(10):e.type==="callback"?e.queueNotification:HT(e.timeout),h=()=>{l=!1,o&&(o=!1,c.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>a&&m(),v=r.subscribe(p);return c.add(m),()=>{v(),c.delete(m)}},dispatch(m){var p;try{return a=!((p=m==null?void 0:m.meta)!=null&&p[X4]),o=!a,o&&(l||(l=!0,f(h))),r.dispatch(m)}finally{a=!0}}})},lX=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new W4(e);return r&&a.push(Q4(typeof r=="object"?r:void 0)),a};function uX(e){const t=oX(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(lS(n))c=z4(n);else throw new Error(fr(1));let f;typeof r=="function"?f=r(t):f=t();let h=Rm;a&&(h=aX({trace:!1,...typeof a=="object"&&a}));const m=$W(...f),p=lX(m);let v=typeof l=="function"?l(p):p();const x=h(...v);return R4(c,o,x)}function Z4(e){const t={},n=[];let r;const a={addCase(o,l){const c=typeof o=="string"?o:o.type;if(!c)throw new Error(fr(28));if(c in t)throw new Error(fr(29));return t[c]=l,a},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}),a},addMatcher(o,l){return n.push({matcher:o,reducer:l}),a},addDefaultCase(o){return r=o,a}};return e(a),[t,n,r]}function cX(e){return typeof e=="function"}function fX(e,t){let[n,r,a]=Z4(t),o;if(cX(e))o=()=>FT(e());else{const c=FT(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=[a]),h.reduce((m,p)=>{if(p)if(ca(m)){const x=p(m,f);return x===void 0?m:x}else{if(ei(m))return G4(m,v=>p(v,f));{const v=p(m,f);if(v===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return m},c)}return l.getInitialState=o,l}var dX="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hX=(e=21)=>{let t="",n=e;for(;n--;)t+=dX[Math.random()*64|0];return t},mX=Symbol.for("rtk-slice-createasyncthunk");function pX(e,t){return`${e}/${t}`}function gX({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[mX];return function(a){const{name:o,reducerPath:l=o}=a;if(!o)throw new Error(fr(11));const c=(typeof a.reducers=="function"?a.reducers(yX()):a.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(E,C){const P=typeof E=="string"?E:E.type;if(!P)throw new Error(fr(12));if(P in h.sliceCaseReducersByType)throw new Error(fr(13));return h.sliceCaseReducersByType[P]=C,m},addMatcher(E,C){return h.sliceMatchers.push({matcher:E,reducer:C}),m},exposeAction(E,C){return h.actionCreators[E]=C,m},exposeCaseReducer(E,C){return h.sliceCaseReducersByName[E]=C,m}};f.forEach(E=>{const C=c[E],P={reducerName:E,type:pX(o,E),createNotation:typeof a.reducers=="function"};xX(C)?SX(P,C,m,t):bX(P,C,m)});function p(){const[E={},C=[],P=void 0]=typeof a.extraReducers=="function"?Z4(a.extraReducers):[a.extraReducers],_={...E,...h.sliceCaseReducersByType};return fX(a.initialState,D=>{for(let L in _)D.addCase(L,_[L]);for(let L of h.sliceMatchers)D.addMatcher(L.matcher,L.reducer);for(let L of C)D.addMatcher(L.matcher,L.reducer);P&&D.addDefaultCase(P)})}const v=E=>E,x=new Map,j=new WeakMap;let O;function w(E,C){return O||(O=p()),O(E,C)}function A(){return O||(O=p()),O.getInitialState()}function T(E,C=!1){function P(D){let L=D[E];return typeof L>"u"&&C&&(L=Ih(j,P,A)),L}function _(D=v){const L=Ih(x,C,()=>new WeakMap);return Ih(L,D,()=>{const Z={};for(const[ee,V]of Object.entries(a.selectors??{}))Z[ee]=vX(V,D,()=>Ih(j,D,A),C);return Z})}return{reducerPath:E,getSelectors:_,get selectors(){return _(P)},selectSlice:P}}const k={name:o,reducer:w,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...T(l),injectInto(E,{reducerPath:C,...P}={}){const _=C??l;return E.inject({reducerPath:_,reducer:w},P),{...k,...T(_,!0)}}};return k}}function vX(e,t,n,r){function a(o,...l){let c=t(o);return typeof c>"u"&&r&&(c=n()),e(c,...l)}return a.unwrapped=e,a}var Jn=gX();function yX(){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 bX({type:e,reducerName:t,createNotation:n},r,a){let o,l;if("reducer"in r){if(n&&!wX(r))throw new Error(fr(17));o=r.reducer,l=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?Rr(e,l):Rr(e))}function xX(e){return e._reducerDefinitionType==="asyncThunk"}function wX(e){return e._reducerDefinitionType==="reducerWithPrepare"}function SX({type:e,reducerName:t},n,r,a){if(!a)throw new Error(fr(18));const{payloadCreator:o,fulfilled:l,pending:c,rejected:f,settled:h,options:m}=n,p=a(e,o,m);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),c&&r.addCase(p.pending,c),f&&r.addCase(p.rejected,f),h&&r.addMatcher(p.settled,h),r.exposeCaseReducer(t,{fulfilled:l||Bh,pending:c||Bh,rejected:f||Bh,settled:h||Bh})}function Bh(){}var jX="task",J4="listener",eR="completed",dS="cancelled",OX=`task-${dS}`,AX=`task-${eR}`,f1=`${J4}-${dS}`,EX=`${J4}-${eR}`,Xp=class{constructor(e){Vy(this,"name","TaskAbortError");Vy(this,"message");this.code=e,this.message=`${jX} ${dS} (reason: ${e})`}},hS=(e,t)=>{if(typeof e!="function")throw new TypeError(fr(32))},$m=()=>{},tR=(e,t=$m)=>(e.catch(t),e),nR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),So=e=>{if(e.aborted)throw new Xp(e.reason)};function rR(e,t){let n=$m;return new Promise((r,a)=>{const o=()=>a(new Xp(e.reason));if(e.aborted){o();return}n=nR(e,o),t.finally(()=>n()).then(r,a)}).finally(()=>{n=$m})}var NX=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Xp?"cancelled":"rejected",error:n}}finally{t==null||t()}},Vm=e=>t=>tR(rR(e,t).then(n=>(So(e),n))),iR=e=>{const t=Vm(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Kl}=Object,KT={},Qp="listenerMiddleware",kX=(e,t)=>{const n=r=>nR(e,()=>r.abort(e.reason));return(r,a)=>{hS(r);const o=new AbortController;n(o);const l=NX(async()=>{So(e),So(o.signal);const c=await r({pause:Vm(o.signal),delay:iR(o.signal),signal:o.signal});return So(o.signal),c},()=>o.abort(AX));return a!=null&&a.autoJoin&&t.push(l.catch($m)),{result:Vm(e)(l),cancel(){o.abort(OX)}}}},TX=(e,t)=>{const n=async(r,a)=>{So(t);let o=()=>{};const c=[new Promise((f,h)=>{let m=e({predicate:r,effect:(p,v)=>{v.unsubscribe(),f([p,v.getState(),v.getOriginalState()])}});o=()=>{m(),h()}})];a!=null&&c.push(new Promise(f=>setTimeout(f,a,null)));try{const f=await rR(t,Promise.race(c));return So(t),f}finally{o()}};return(r,a)=>tR(n(r,a))},aR=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Rr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(fr(21));return hS(o),{predicate:a,type:t,effect:o}},sR=Kl(e=>{const{type:t,predicate:n,effect:r}=aR(e);return{id:hX(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(fr(22))}}},{withTypes:()=>sR}),GT=(e,t)=>{const{type:n,effect:r,predicate:a}=aR(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===a)&&o.effect===r)},d1=e=>{e.pending.forEach(t=>{t.abort(f1)})},CX=(e,t)=>()=>{for(const n of t.keys())d1(n);e.clear()},YT=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},oR=Kl(Rr(`${Qp}/add`),{withTypes:()=>oR}),MX=Rr(`${Qp}/removeAll`),lR=Kl(Rr(`${Qp}/remove`),{withTypes:()=>lR}),PX=(...e)=>{console.error(`${Qp}/error`,...e)},Gf=(e={})=>{const t=new Map,n=new Map,r=x=>{const j=n.get(x)??0;n.set(x,j+1)},a=x=>{const j=n.get(x)??1;j===1?n.delete(x):n.set(x,j-1)},{extra:o,onError:l=PX}=e;hS(l);const c=x=>(x.unsubscribe=()=>t.delete(x.id),t.set(x.id,x),j=>{x.unsubscribe(),j!=null&&j.cancelActive&&d1(x)}),f=x=>{const j=GT(t,x)??sR(x);return c(j)};Kl(f,{withTypes:()=>f});const h=x=>{const j=GT(t,x);return j&&(j.unsubscribe(),x.cancelActive&&d1(j)),!!j};Kl(h,{withTypes:()=>h});const m=async(x,j,O,w)=>{const A=new AbortController,T=TX(f,A.signal),k=[];try{x.pending.add(A),r(x),await Promise.resolve(x.effect(j,Kl({},O,{getOriginalState:w,condition:(E,C)=>T(E,C).then(Boolean),take:T,delay:iR(A.signal),pause:Vm(A.signal),extra:o,signal:A.signal,fork:kX(A.signal,k),unsubscribe:x.unsubscribe,subscribe:()=>{t.set(x.id,x)},cancelActiveListeners:()=>{x.pending.forEach((E,C,P)=>{E!==A&&(E.abort(f1),P.delete(E))})},cancel:()=>{A.abort(f1),x.pending.delete(A)},throwIfCancelled:()=>{So(A.signal)}})))}catch(E){E instanceof Xp||YT(l,E,{raisedBy:"effect"})}finally{await Promise.all(k),A.abort(EX),a(x),x.pending.delete(A)}},p=CX(t,n);return{middleware:x=>j=>O=>{if(!L4(O))return j(O);if(oR.match(O))return f(O.payload);if(MX.match(O)){p();return}if(lR.match(O))return h(O.payload);let w=x.getState();const A=()=>{if(w===KT)throw new Error(fr(23));return w};let T;try{if(T=j(O),t.size>0){const k=x.getState(),E=Array.from(t.values());for(const C of E){let P=!1;try{P=C.predicate(O,k,w)}catch(_){P=!1,YT(l,_,{raisedBy:"predicate"})}P&&m(C,O,x,A)}}}finally{w=KT}return T},startListening:f,stopListening:h,clearListeners:p}};function fr(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 _X={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},uR=Jn({name:"chartLayout",initialState:_X,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,a,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=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:DX,setLayout:RX,setChartSize:zX,setScale:LX}=uR.actions,IX=uR.reducer;function cR(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Ue(e){return Number.isFinite(e)}function Si(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(n),!0).forEach(function(r){BX(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 BX(e,t,n){return(t=UX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UX(e){var t=qX(e,"string");return typeof t=="symbol"?t:t+""}function qX(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 Vt(e,t,n){return Mt(e)||Mt(t)?n:wi(t)?lu(e,t,n):typeof t=="function"?t(e):n}var $X=(e,t,n)=>{if(t&&n){var{width:r,height:a}=n,{align:o,verticalAlign:l,layout:c}=t;if((c==="vertical"||c==="horizontal"&&l==="middle")&&o!=="center"&&he(e[o]))return $l($l({},e),{},{[o]:e[o]+(r||0)});if((c==="horizontal"||c==="vertical"&&o==="center")&&l!=="middle"&&he(e[l]))return $l($l({},e),{},{[l]:e[l]+(a||0)})}return e},Ai=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",fR=(e,t,n,r)=>{if(r)return e.map(c=>c.coordinate);var a,o,l=e.map(c=>(c.coordinate===t&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate));return a||l.push(t),o||l.push(n),l},dR=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:a,range:o,scale:l,realScaleType:c,isCategorical:f,categoricalDomain:h,tickCount:m,ticks:p,niceTicks:v,axisType:x}=e;if(!l)return null;var j=c==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,O=a==="category"&&l.bandwidth?l.bandwidth()/j:0;if(O=x==="angleAxis"&&o&&o.length>=2?Wn(o[0]-o[1])*2*O:O,p||v){var w=(p||v||[]).map((A,T)=>{var k=r?r.indexOf(A):A,E=l.map(k);return Ue(E)?{coordinate:E+O,value:A,offset:O,index:T}:null}).filter(Xn);return w}return f&&h?h.map((A,T)=>{var k=l.map(A);return Ue(k)?{coordinate:k+O,value:A,index:T,offset:O}:null}).filter(Xn):l.ticks&&m!=null?l.ticks(m).map((A,T)=>{var k=l.map(A);return Ue(k)?{coordinate:k+O,value:A,index:T,offset:O}:null}).filter(Xn):l.domain().map((A,T)=>{var k=l.map(A);return Ue(k)?{coordinate:k+O,value:r?r[A]:A,index:T,offset:O}:null}).filter(Xn)},VX=(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]),a=[e[0],e[1]];return(!he(e[0])||e[0]<n)&&(a[0]=n),(!he(e[1])||e[1]>r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]<n&&(a[1]=n),a},FX=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 a=0;a<r;++a)for(var o=0,l=0,c=0;c<n;++c){var f=e[c],h=f==null?void 0:f[a];if(h!=null){var m=h[1],p=h[0],v=Zr(m)?p:m;v>=0?(h[0]=o,o+=v,h[1]=o):(h[0]=l,l+=v,h[1]=l)}}}},HX=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 a=0;a<r;++a)for(var o=0,l=0;l<n;++l){var c=e[l],f=c==null?void 0:c[a];if(f!=null){var h=Zr(f[1])?f[0]:f[1];h>=0?(f[0]=o,o+=h,f[1]=o):(f[0]=0,f[1]=0)}}}},KX={sign:FX,expand:dY,none:To,silhouette:hY,wiggle:mY,positive:HX},GX=(e,t,n)=>{var r,a=(r=KX[n])!==null&&r!==void 0?r:To,o=fY().keys(t).value((c,f)=>Number(Vt(c,f,0))).order(t1).offset(a),l=o(e);return l.forEach((c,f)=>{c.forEach((h,m)=>{var p=Vt(e[m],t[f],0);Array.isArray(p)&&p.length===2&&he(p[0])&&he(p[1])&&(h[0]=p[0],h[1]=p[1])})}),l};function hR(e){return e==null?void 0:String(e)}function XT(e){var{axis:t,ticks:n,bandSize:r,entry:a,index:o,dataKey:l}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mt(a[t.dataKey])){var c=y4(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n!=null&&n[o]?n[o].coordinate+r/2:null}var f=Vt(a,Mt(l)?t.dataKey:l),h=t.scale.map(f);return he(h)?h:null}var QT=e=>{var{axis:t,ticks:n,offset:r,bandSize:a,entry:o,index:l}=e;if(t.type==="category")return n[l]?n[l].coordinate+r:null;var c=Vt(o,t.dataKey,t.scale.domain()[l]);if(Mt(c))return null;var f=t.scale.map(c);return he(f)?f-a/2+r:null},YX=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r<=0&&a>=0?0:a<0?a:r}return n[0]},WX=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},XX=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],QX=(e,t,n)=>{if(e!=null)return XX(Object.keys(e).reduce((r,a)=>{var o=e[a];if(!o)return r;var{stackedData:l}=o,c=l.reduce((f,h)=>{var m=cR(h,t,n),p=WX(m);return!Ue(p[0])||!Ue(p[1])?f:[Math.min(f[0],p[0]),Math.max(f[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],r[0]),Math.max(c[1],r[1])]},[1/0,-1/0]))},ZT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,JT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cu=(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 a=$p(t,m=>m.coordinate),o=1/0,l=1,c=a.length;l<c;l++){var f=a[l],h=a[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 eC(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:a,name:o}=e;return $l($l({},t),{},{dataKey:n,payload:r,value:a,name:o})}function Zp(e,t){if(e)return String(e);if(typeof t=="string")return t}var ZX=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},JX=(e,t)=>t==="centric"?e.angle:e.radius,xa=e=>e.layout.width,wa=e=>e.layout.height,eQ=e=>e.layout.scale,mR=e=>e.layout.margin,Jp=W(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),eg=W(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),tQ="data-recharts-item-index",nQ="data-recharts-item-id",Yf=60;function tC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tC(Object(n),!0).forEach(function(r){rQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rQ(e,t,n){return(t=iQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iQ(e){var t=aQ(e,"string");return typeof t=="symbol"?t:t+""}function aQ(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 sQ=e=>e.brush.height;function oQ(e){var t=eg(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Yf;return n+a}return n},0)}function lQ(e){var t=eg(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Yf;return n+a}return n},0)}function uQ(e){var t=Jp(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function cQ(e){var t=Jp(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var on=W([xa,wa,mR,sQ,oQ,lQ,uQ,cQ,_4,RW],(e,t,n,r,a,o,l,c,f,h)=>{var m={left:(n.left||0)+a,right:(n.right||0)+o},p={top:(n.top||0)+l,bottom:(n.bottom||0)+c},v=Uh(Uh({},p),m),x=v.bottom;v.bottom+=r,v=$X(v,f,h);var j=e-v.left-v.right,O=t-v.top-v.bottom;return Uh(Uh({brushBottom:x},v),{},{width:Math.max(j,0),height:Math.max(O,0)})}),fQ=W(on,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),mS=W(xa,wa,(e,t)=>({x:0,y:0,width:e,height:t})),dQ=S.createContext(null),kn=()=>S.useContext(dQ)!=null,tg=e=>e.brush,ng=W([tg,on,mR],(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})),bb={},xb={},wb={},nC;function hQ(){return nC||(nC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:a,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)},p=()=>{h&&m(),O()};let v=null;const x=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,p()},r)},j=()=>{v!==null&&(clearTimeout(v),v=null)},O=()=>{j(),l=void 0,c=null},w=()=>{m()},A=function(...T){if(a!=null&&a.aborted)return;l=this,c=T;const k=v==null;x(),f&&k&&m()};return A.schedule=x,A.cancel=O,A.flush=w,a==null||a.addEventListener("abort",O,{once:!0}),A}e.debounce=t})(wb)),wb}var rC;function mQ(){return rC||(rC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hQ();function n(r,a=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,p=null;const v=t.debounce(function(...O){m=r.apply(this,O),p=null},a,{edges:h}),x=function(...O){return f!=null&&(p===null&&(p=Date.now()),Date.now()-p>=f)?(m=r.apply(this,O),p=Date.now(),v.cancel(),v.schedule(),m):(v.apply(this,O),m)},j=()=>(v.flush(),m);return x.cancel=v.cancel,x.flush=j,x}e.debounce=n})(xb)),xb}var iC;function pQ(){return iC||(iC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mQ();function n(r,a=0,o={}){const{leading:l=!0,trailing:c=!0}=o;return t.debounce(r,a,{leading:l,maxWait:a,trailing:c})}e.throttle=n})(bb)),bb}var Sb,aC;function gQ(){return aC||(aC=1,Sb=pQ().throttle),Sb}var vQ=gQ();const yQ=Oi(vQ);var Fm=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[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,()=>a[l++]))}},mi={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},pR=(e,t,n)=>{var{width:r=mi.width,height:a=mi.height,aspect:o,maxHeight:l}=n,c=Co(r)?e:Number(r),f=Co(a)?t:Number(a);return o&&o>0&&(c?f=c/o:f&&(c=f*o),l&&f!=null&&f>l&&(f=l)),{calculatedWidth:c,calculatedHeight:f}},bQ={width:0,height:0,overflow:"visible"},xQ={width:0,overflowX:"visible"},wQ={height:0,overflowY:"visible"},SQ={},jQ=e=>{var{width:t,height:n}=e,r=Co(t),a=Co(n);return r&&a?bQ:r?xQ:a?wQ:SQ};function OQ(e){var{width:t,height:n,aspect:r}=e,a=t,o=n;return a===void 0&&o===void 0?(a=mi.width,o=mi.height):a===void 0?a=r&&r>0?void 0:mi.width:o===void 0&&(o=r&&r>0?void 0:mi.height),{width:a,height:o}}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 sC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sC(Object(n),!0).forEach(function(r){AQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AQ(e,t,n){return(t=EQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EQ(e){var t=NQ(e,"string");return typeof t=="symbol"?t:t+""}function NQ(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 gR=S.createContext(mi.initialDimension);function kQ(e){return Si(e.width)&&Si(e.height)}function vR(e){var{children:t,width:n,height:r}=e,a=S.useMemo(()=>({width:n,height:r}),[n,r]);return kQ(a)?S.createElement(gR.Provider,{value:a},t):null}var pS=()=>S.useContext(gR),TQ=S.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=mi.initialDimension,width:a,height:o,minWidth:l=mi.minWidth,minHeight:c,maxHeight:f,children:h,debounce:m=mi.debounce,id:p,className:v,onResize:x,style:j={}}=e,O=S.useRef(null),w=S.useRef();w.current=x,S.useImperativeHandle(t,()=>O.current);var[A,T]=S.useState({containerWidth:r.width,containerHeight:r.height}),k=S.useCallback((D,L)=>{T(Z=>{var ee=Math.round(D),V=Math.round(L);return Z.containerWidth===ee&&Z.containerHeight===V?Z:{containerWidth:ee,containerHeight:V}})},[]);S.useEffect(()=>{if(O.current==null||typeof ResizeObserver>"u")return Io;var D=V=>{var ue,le=V[0];if(le!=null){var{width:ce,height:q}=le.contentRect;k(ce,q),(ue=w.current)===null||ue===void 0||ue.call(w,ce,q)}};m>0&&(D=yQ(D,m,{trailing:!0,leading:!1}));var L=new ResizeObserver(D),{width:Z,height:ee}=O.current.getBoundingClientRect();return k(Z,ee),L.observe(O.current),()=>{L.disconnect()}},[k,m]);var{containerWidth:E,containerHeight:C}=A;Fm(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:P,calculatedHeight:_}=pR(E,C,{width:a,height:o,aspect:n,maxHeight:f});return Fm(P!=null&&P>0||_!=null&&_>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.`,P,_,a,o,l,c,n),S.createElement("div",{id:p?"".concat(p):void 0,className:Ze("recharts-responsive-container",v),style:oC(oC({},j),{},{width:a,height:o,minWidth:l,minHeight:c,maxHeight:f}),ref:O},S.createElement("div",{style:jQ({width:a,height:o})},S.createElement(vR,{width:P,height:_},h)))}),cm=S.forwardRef((e,t)=>{var n=pS();if(Si(n.width)&&Si(n.height))return e.children;var{width:r,height:a}=OQ({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=pR(void 0,void 0,{width:r,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(l)?S.createElement(vR,{width:o,height:l},e.children):S.createElement(TQ,h1({},e,{width:r,height:a,ref:t}))});function gS(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 rg=()=>{var e,t=kn(),n=je(fQ),r=je(ng),a=(e=je(tg))===null||e===void 0?void 0:e.padding;return!t||!r||!a?n:{width:r.width-a.left-a.right,height:r.height-a.top-a.bottom,x:a.left,y:a.top}},CQ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},yR=()=>{var e;return(e=je(on))!==null&&e!==void 0?e:CQ},vS=()=>je(xa),yS=()=>je(wa),MQ=()=>je(e=>e.layout.margin),tt=e=>e.layout.layoutType,Bo=()=>je(tt),bS=()=>{var e=Bo();if(e==="horizontal"||e==="vertical")return e},bR=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},PQ=()=>{var e=Bo();return e!==void 0},Wf=e=>{var t=Ot(),n=kn(),{width:r,height:a}=e,o=pS(),l=r,c=a;return o&&(l=o.width>0?o.width:r,c=o.height>0?o.height:a),S.useEffect(()=>{!n&&Si(l)&&Si(c)&&t(zX({width:l,height:c}))},[t,n,l,c]),null},xR=Symbol.for("immer-nothing"),lC=Symbol.for("immer-draftable"),dr=Symbol.for("immer-state");function Yr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bf=Object.getPrototypeOf;function fu(e){return!!e&&!!e[dr]}function Po(e){var t;return e?wR(e)||Array.isArray(e)||!!e[lC]||!!((t=e.constructor)!=null&&t[lC])||Xf(e)||ag(e):!1}var _Q=Object.prototype.constructor.toString(),uC=new WeakMap;function wR(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=uC.get(n);return r===void 0&&(r=Function.toString.call(n),uC.set(n,r)),r===_Q}function Hm(e,t,n=!0){ig(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function ig(e){const t=e[dr];return t?t.type_:Array.isArray(e)?1:Xf(e)?2:ag(e)?3:0}function m1(e,t){return ig(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function SR(e,t,n){const r=ig(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function DQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Xf(e){return e instanceof Map}function ag(e){return e instanceof Set}function to(e){return e.copy_||e.base_}function p1(e,t){if(Xf(e))return new Map(e);if(ag(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=wR(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[dr];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const l=a[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(bf(e),r)}else{const r=bf(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function xS(e,t=!1){return sg(e)||fu(e)||!Po(e)||(ig(e)>1&&Object.defineProperties(e,{set:qh,add:qh,clear:qh,delete:qh}),Object.freeze(e),t&&Object.values(e).forEach(n=>xS(n,!0))),e}function RQ(){Yr(2)}var qh={value:RQ};function sg(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var zQ={};function _o(e){const t=zQ[e];return t||Yr(0,e),t}var xf;function jR(){return xf}function LQ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function cC(e,t){t&&(_o("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function g1(e){v1(e),e.drafts_.forEach(IQ),e.drafts_=null}function v1(e){e===xf&&(xf=e.parent_)}function fC(e){return xf=LQ(xf,e)}function IQ(e){const t=e[dr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function dC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[dr].modified_&&(g1(t),Yr(4)),Po(e)&&(e=Km(t,e),t.parent_||Gm(t,e)),t.patches_&&_o("Patches").generateReplacementPatches_(n[dr].base_,e,t.patches_,t.inversePatches_)):e=Km(t,n,[]),g1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xR?e:void 0}function Km(e,t,n){if(sg(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[dr];if(!a)return Hm(t,(o,l)=>hC(e,a,t,o,l,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return Gm(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const o=a.copy_;let l=o,c=!1;a.type_===3&&(l=new Set(o),o.clear(),c=!0),Hm(l,(f,h)=>hC(e,a,o,f,h,n,c),r),Gm(e,o,!1),n&&e.patches_&&_o("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function hC(e,t,n,r,a,o,l){if(a==null||typeof a!="object"&&!l)return;const c=sg(a);if(!(c&&!l)){if(fu(a)){const f=o&&t&&t.type_!==3&&!m1(t.assigned_,r)?o.concat(r):void 0,h=Km(e,a,f);if(SR(n,r,h),fu(h))e.canAutoFreeze_=!1;else return}else l&&n.add(a);if(Po(a)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&c)return;Km(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Xf(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Gm(e,a)}}}function Gm(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xS(t,n)}function BQ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=wS;n&&(a=[r],o=wf);const{revoke:l,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=l,c}var wS={get(e,t){if(t===dr)return e;const n=to(e);if(!m1(n,t))return UQ(e,n,t);const r=n[t];return e.finalized_||!Po(r)?r:r===jb(e.base_,t)?(Ob(e),e.copy_[t]=b1(r,e)):r},has(e,t){return t in to(e)},ownKeys(e){return Reflect.ownKeys(to(e))},set(e,t,n){const r=OR(to(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=jb(to(e),t),o=a==null?void 0:a[dr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(DQ(n,a)&&(n!==void 0||m1(e.base_,t)))return!0;Ob(e),y1(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 jb(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ob(e),y1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=to(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Yr(11)},getPrototypeOf(e){return bf(e.base_)},setPrototypeOf(){Yr(12)}},wf={};Hm(wS,(e,t)=>{wf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wf.deleteProperty=function(e,t){return wf.set.call(this,e,t,void 0)};wf.set=function(e,t,n){return wS.set.call(this,e[0],t,n,e[0])};function jb(e,t){const n=e[dr];return(n?to(n):e)[t]}function UQ(e,t,n){var a;const r=OR(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function OR(e,t){if(!(t in e))return;let n=bf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=bf(n)}}function y1(e){e.modified_||(e.modified_=!0,e.parent_&&y1(e.parent_))}function Ob(e){e.copy_||(e.copy_=p1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qQ=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"&&Yr(6),r!==void 0&&typeof r!="function"&&Yr(7);let a;if(Po(t)){const o=fC(this),l=b1(t,void 0);let c=!0;try{a=n(l),c=!1}finally{c?g1(o):v1(o)}return cC(o,r),dC(a,o)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===xR&&(a=void 0),this.autoFreeze_&&xS(a,!0),r){const o=[],l=[];_o("Patches").generateReplacementPatches_(t,a,o,l),r(o,l)}return a}else Yr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...c)=>this.produceWithPatches(l,f=>t(f,...c));let r,a;return[this.produce(t,n,(l,c)=>{r=l,a=c}),r,a]},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){Po(e)||Yr(8),fu(e)&&(e=$Q(e));const t=fC(this),n=b1(e,void 0);return n[dr].isManual_=!0,v1(t),n}finishDraft(e,t){const n=e&&e[dr];(!n||!n.isManual_)&&Yr(9);const{scope_:r}=n;return cC(r,t),dC(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 a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=_o("Patches").applyPatches_;return fu(e)?r(e,t):this.produce(e,a=>r(a,t))}};function b1(e,t){const n=Xf(e)?_o("MapSet").proxyMap_(e,t):ag(e)?_o("MapSet").proxySet_(e,t):BQ(e,t);return(t?t.scope_:jR()).drafts_.push(n),n}function $Q(e){return fu(e)||Yr(10,e),AR(e)}function AR(e){if(!Po(e)||sg(e))return e;const t=e[dr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=p1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=p1(e,!0);return Hm(n,(a,o)=>{SR(n,a,AR(o))},r),t&&(t.finalized_=!1),n}var VQ=new qQ;VQ.produce;var FQ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},ER=Jn({name:"legend",initialState:FQ,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:bt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,a=Qr(e).payload.indexOf(n);a>-1&&(e.payload[a]=r)},prepare:bt()},removeLegendPayload:{reducer(e,t){var n=Qr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:bt()}}}),{setLegendSize:mC,setLegendSettings:HQ,addLegendPayload:KQ,replaceLegendPayload:GQ,removeLegendPayload:YQ}=ER.actions,WQ=ER.reducer,XQ=["contextPayload"];function x1(){return x1=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},x1.apply(null,arguments)}function pC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pC(Object(n),!0).forEach(function(r){QQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QQ(e,t,n){return(t=ZQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZQ(e){var t=JQ(e,"string");return typeof t=="symbol"?t:t+""}function JQ(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 eZ(e,t){if(e==null)return{};var n,r,a=tZ(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)&&(a[n]=e[n])}return a}function tZ(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 nZ(e){return e.value}function rZ(e){var{contextPayload:t}=e,n=eZ(e,XQ),r=T4(t,e.payloadUniqBy,nZ),a=du(du({},n),{},{payload:r});return S.isValidElement(e.content)?S.cloneElement(e.content,a):typeof e.content=="function"?S.createElement(e.content,a):S.createElement(VY,a)}function iZ(e,t,n,r,a,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:((a||0)-o.height)/2}:m=f==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),du(du({},h),m)}function aZ(e){var t=Ot();return S.useEffect(()=>{t(HQ(e))},[t,e]),null}function sZ(e){var t=Ot();return S.useEffect(()=>(t(mC(e)),()=>{t(mC({width:0,height:0}))}),[t,e]),null}function oZ(e,t,n,r){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:n||r}:null}var lZ={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function NR(e){var t=Sn(e,lZ),n=IW(),r=RG(),a=MQ(),{width:o,height:l,wrapperStyle:c,portal:f}=t,[h,m]=D4([n]),p=vS(),v=yS();if(p==null||v==null)return null;var x=p-((a==null?void 0:a.left)||0)-((a==null?void 0:a.right)||0),j=oZ(t.layout,l,o,x),O=f?c:du(du({position:"absolute",width:(j==null?void 0:j.width)||o||"auto",height:(j==null?void 0:j.height)||l||"auto"},iZ(c,t,a,p,v,h)),c),w=f??r;if(w==null||n==null)return null;var A=S.createElement("div",{className:"recharts-legend-wrapper",style:O,ref:m},S.createElement(aZ,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!f&&S.createElement(sZ,{width:h.width,height:h.height}),S.createElement(rZ,x1({},t,j,{margin:a,chartWidth:p,chartHeight:v,contextPayload:n})));return Bf.createPortal(A,w)}NR.displayName="Legend";function w1(){return w1=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},w1.apply(null,arguments)}function gC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gC(Object(n),!0).forEach(function(r){uZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uZ(e,t,n){return(t=cZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cZ(e){var t=fZ(e,"string");return typeof t=="symbol"?t:t+""}function fZ(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 dZ(e){return Array.isArray(e)&&wi(e[0])&&wi(e[1])?e.join(" ~ "):e}var Tl={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},hZ=e=>{var{separator:t=Tl.separator,contentStyle:n,itemStyle:r,labelStyle:a=Tl.labelStyle,payload:o,formatter:l,itemSorter:c,wrapperClassName:f,labelClassName:h,label:m,labelFormatter:p,accessibilityLayer:v=Tl.accessibilityLayer}=e,x=()=>{if(o&&o.length){var C={padding:0,margin:0},P=(c?$p(o,c):o).map((_,D)=>{if(_.type==="none")return null;var L=_.formatter||l||dZ,{value:Z,name:ee}=_,V=Z,ue=ee;if(L){var le=L(Z,ee,_,D,o);if(Array.isArray(le))[V,ue]=le;else if(le!=null)V=le;else return null}var ce=Cc(Cc({},Tl.itemStyle),{},{color:_.color||Tl.itemStyle.color},r);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:ce},wi(ue)?S.createElement("span",{className:"recharts-tooltip-item-name"},ue):null,wi(ue)?S.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,S.createElement("span",{className:"recharts-tooltip-item-value"},V),S.createElement("span",{className:"recharts-tooltip-item-unit"},_.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:C},P)}return null},j=Cc(Cc({},Tl.contentStyle),n),O=Cc({margin:0},a),w=!Mt(m),A=w?m:"",T=Ze("recharts-default-tooltip",f),k=Ze("recharts-tooltip-label",h);w&&p&&o!==void 0&&o!==null&&(A=p(m,o));var E=v?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",w1({className:T,style:j},E),S.createElement("p",{className:k,style:O},S.isValidElement(A)?A:"".concat(A)),x())},Mc="recharts-tooltip-wrapper",mZ={visibility:"hidden"};function pZ(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ze(Mc,{["".concat(Mc,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Mc,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Mc,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Mc,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function vC(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:a,position:o,reverseDirection:l,tooltipDimension:c,viewBox:f,viewBoxDimension:h}=e;if(o&&he(o[r]))return o[r];var m=n[r]-c-(a>0?a:0),p=n[r]+a;if(t[r])return l[r]?m:p;var v=f[r];if(v==null)return 0;if(l[r]){var x=m,j=v;return x<j?Math.max(p,v):Math.max(m,v)}if(h==null)return 0;var O=p+c,w=v+h;return O>w?Math.max(m,v):Math.max(p,v)}function gZ(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 vZ(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:a,position:o,reverseDirection:l,tooltipBox:c,useTranslate3d:f,viewBox:h}=e,m,p,v;return c.height>0&&c.width>0&&n?(p=vC({allowEscapeViewBox:t,coordinate:n,key:"x",offset:a,position:o,reverseDirection:l,tooltipDimension:c.width,viewBox:h,viewBoxDimension:h.width}),v=vC({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:l,tooltipDimension:c.height,viewBox:h,viewBoxDimension:h.height}),m=gZ({translateX:p,translateY:v,useTranslate3d:f})):m=mZ,{cssProperties:m,cssClasses:pZ({translateX:p,translateY:v,coordinate:n})}}function yC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yC(Object(n),!0).forEach(function(r){S1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S1(e,t,n){return(t=yZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(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)}class xZ extends S.PureComponent{constructor(){super(...arguments),S1(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),S1(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,a,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:(a=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a: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:a,children:o,coordinate:l,hasPayload:c,isAnimationActive:f,offset:h,position:m,reverseDirection:p,useTranslate3d:v,viewBox:x,wrapperStyle:j,lastBoundingBox:O,innerRef:w,hasPortalFromProps:A}=this.props,T=typeof h=="number"?h:h.x,k=typeof h=="number"?h:h.y,{cssClasses:E,cssProperties:C}=vZ({allowEscapeViewBox:n,coordinate:l,offsetLeft:T,offsetTop:k,position:m,reverseDirection:p,tooltipBox:{height:O.height,width:O.width},useTranslate3d:v,viewBox:x}),P=A?{}:$h($h({transition:f&&t?"transform ".concat(r,"ms ").concat(a):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&c?"visible":"hidden",position:"absolute",top:0,left:0}),_=$h($h({},P),{},{visibility:!this.state.dismissed&&t&&c?"visible":"hidden"},j);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:E,style:_,ref:w},o)}}var kR=()=>{var e;return(e=je(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function j1(){return j1=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},j1.apply(null,arguments)}function bC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bC(Object(n),!0).forEach(function(r){wZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wZ(e,t,n){return(t=SZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SZ(e){var t=jZ(e,"string");return typeof t=="symbol"?t:t+""}function jZ(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 wC={curveBasisClosed:eY,curveBasisOpen:tY,curveBasis:JG,curveBumpX:BG,curveBumpY:UG,curveLinearClosed:nY,curveLinear:Bp,curveMonotoneX:rY,curveMonotoneY:iY,curveNatural:aY,curveStep:sY,curveStepAfter:lY,curveStepBefore:oY},Ym=e=>Ue(e.x)&&Ue(e.y),SC=e=>e.base!=null&&Ym(e.base)&&Ym(e),Pc=e=>e.x,_c=e=>e.y,OZ=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Hf(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=wC["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return wC[n]||Bp},jC={connectNulls:!1,type:"linear"},AZ=e=>{var{type:t=jC.type,points:n=[],baseLine:r,layout:a,connectNulls:o=jC.connectNulls}=e,l=OZ(t,a),c=o?n.filter(Ym):n;if(Array.isArray(r)){var f,h=n.map((j,O)=>xC(xC({},j),{},{base:r[O]}));a==="vertical"?f=Dh().y(_c).x1(Pc).x0(j=>j.base.x):f=Dh().x(Pc).y1(_c).y0(j=>j.base.y);var m=f.defined(SC).curve(l),p=o?h.filter(SC):h;return m(p)}var v;a==="vertical"&&he(r)?v=Dh().y(_c).x1(Pc).x0(r):he(r)?v=Dh().x(Pc).y1(_c).y0(r):v=a4().x(Pc).y(_c);var x=v.defined(Ym).curve(l);return x(c)},Qc=e=>{var{className:t,points:n,path:r,pathRef:a}=e,o=Bo();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?AZ(l):r;return S.createElement("path",j1({},Dr(e),iS(e),{className:Ze("recharts-curve",t),d:c===null?void 0:c,ref:a}))},EZ=["x","y","top","left","width","height","className"];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 OC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OC(Object(n),!0).forEach(function(r){kZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=CZ(e,"string");return typeof t=="symbol"?t:t+""}function CZ(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 MZ(e,t){if(e==null)return{};var n,r,a=PZ(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)&&(a[n]=e[n])}return a}function PZ(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 _Z=(e,t,n,r,a,o)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),DZ=e=>{var{x:t=0,y:n=0,top:r=0,left:a=0,width:o=0,height:l=0,className:c}=e,f=MZ(e,EZ),h=NZ({x:t,y:n,top:r,left:a,width:o,height:l},f);return!he(t)||!he(n)||!he(o)||!he(l)||!he(r)||!he(a)?null:S.createElement("path",O1({},zn(h),{className:Ze("recharts-cross",c),d:_Z(t,n,o,l,r,a)}))};function RZ(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function AC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function EC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AC(Object(n),!0).forEach(function(r){zZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zZ(e,t,n){return(t=LZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LZ(e){var t=IZ(e,"string");return typeof t=="symbol"?t:t+""}function IZ(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 BZ=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),TR=(e,t,n)=>e.map(r=>"".concat(BZ(r)," ").concat(t,"ms ").concat(n)).join(","),UZ=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(a=>r.includes(a))),Sf=(e,t)=>Object.keys(t).reduce((n,r)=>EC(EC({},n),{},{[r]:e(r,t[r])}),{});function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NC(Object(n),!0).forEach(function(r){qZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qZ(e,t,n){return(t=$Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Z(e){var t=VZ(e,"string");return typeof t=="symbol"?t:t+""}function VZ(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 Wm=(e,t,n)=>e+(t-e)*n,A1=e=>{var{from:t,to:n}=e;return t!==n},CR=(e,t,n)=>{var r=Sf((a,o)=>{if(A1(o)){var[l,c]=e(o.from,o.to,o.velocity);return Yt(Yt({},o),{},{from:l,velocity:c})}return o},t);return n<1?Sf((a,o)=>A1(o)&&r[a]!=null?Yt(Yt({},o),{},{velocity:Wm(o.velocity,r[a].velocity,n),from:Wm(o.from,r[a].from,n)}):o,t):CR(e,r,n-1)};function FZ(e,t,n,r,a,o){var l,c=r.reduce((v,x)=>Yt(Yt({},v),{},{[x]:{from:e[x],velocity:0,to:t[x]}}),{}),f=()=>Sf((v,x)=>x.from,c),h=()=>!Object.values(c).filter(A1).length,m=null,p=v=>{l||(l=v);var x=v-l,j=x/n.dt;c=CR(n,c,j),a(Yt(Yt(Yt({},e),t),f())),l=v,h()||(m=o.setTimeout(p))};return()=>(m=o.setTimeout(p),()=>{var v;(v=m)===null||v===void 0||v()})}function HZ(e,t,n,r,a,o,l){var c=null,f=a.reduce((p,v)=>{var x=e[v],j=t[v];return x==null||j==null?p:Yt(Yt({},p),{},{[v]:[x,j]})},{}),h,m=p=>{h||(h=p);var v=(p-h)/r,x=Sf((O,w)=>Wm(...w,n(v)),f);if(o(Yt(Yt(Yt({},e),t),x)),v<1)c=l.setTimeout(m);else{var j=Sf((O,w)=>Wm(...w,n(1)),f);o(Yt(Yt(Yt({},e),t),j))}};return()=>(c=l.setTimeout(m),()=>{var p;(p=c)===null||p===void 0||p()})}const KZ=(e,t,n,r,a,o)=>{var l=UZ(e,t);return n==null?()=>(a(Yt(Yt({},e),t)),()=>{}):n.isStepper===!0?FZ(e,t,n,l,a,o):HZ(e,t,n,r,l,a,o)};var Xm=1e-4,MR=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],PR=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),kC=(e,t)=>n=>{var r=MR(e,t);return PR(r,n)},GZ=(e,t)=>n=>{var r=MR(e,t),a=[...r.map((o,l)=>o*l).slice(1),0];return PR(a,n)},YZ=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 a=r.map(o=>parseFloat(o));return[a[0],a[1],a[2],a[3]]},WZ=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 a=YZ(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},XZ=(e,t,n,r)=>{var a=kC(e,n),o=kC(t,r),l=GZ(e,n),c=h=>h>1?1:h<0?0:h,f=h=>{for(var m=h>1?1:h,p=m,v=0;v<8;++v){var x=a(p)-m,j=l(p);if(Math.abs(x-m)<Xm||j<Xm)return o(p);p=c(p-x/j)}return o(p)};return f.isStepper=!1,f},TC=function(){return XZ(...WZ(...arguments))},QZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:a=17}=t,o=(l,c,f)=>{var h=-(l-c)*n,m=f*r,p=f+(h-m)*a/1e3,v=f*a/1e3+l;return Math.abs(v-c)<Xm&&Math.abs(p)<Xm?[c,0]:[v,p]};return o.isStepper=!0,o.dt=a,o},ZZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return TC(e);case"spring":return QZ();default:if(e.split("(")[0]==="cubic-bezier")return TC(e)}return typeof e=="function"?e:null};function JZ(e){var t,n=()=>null,r=!1,a=null,o=l=>{if(!r){if(Array.isArray(l)){if(!l.length)return;var c=l,[f,...h]=c;if(typeof f=="number"){a=e.setTimeout(o.bind(null,h),f);return}o(f),a=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,a&&(a(),a=null),o(l)},subscribe:l=>(n=l,()=>{n=()=>null}),getTimeoutController:()=>e}}class eJ{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),a=null,o=l=>{l-r>=n?t(l):typeof requestAnimationFrame=="function"&&(a=requestAnimationFrame(o))};return a=requestAnimationFrame(o),()=>{a!=null&&cancelAnimationFrame(a)}}}function tJ(){return JZ(new eJ)}var nJ=S.createContext(tJ);function rJ(e,t){var n=S.useContext(nJ);return S.useMemo(()=>t??n(e),[e,t,n])}var iJ=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Qf={isSsr:iJ()},aJ={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},CC={t:0},Ab={t:1};function og(e){var t=Sn(e,aJ),{isActive:n,canBegin:r,duration:a,easing:o,begin:l,onAnimationEnd:c,onAnimationStart:f,children:h}=t,m=n==="auto"?!Qf.isSsr:n,p=rJ(t.animationId,t.animationManager),[v,x]=S.useState(m?CC:Ab),j=S.useRef(null);return S.useEffect(()=>{m||x(Ab)},[m]),S.useEffect(()=>{if(!m||!r)return Io;var O=KZ(CC,Ab,ZZ(o),a,x,p.getTimeoutController()),w=()=>{j.current=O()};return p.start([f,l,w,a,c]),()=>{p.stop(),j.current&&j.current(),c()}},[m,r,a,o,l,f,c,p]),h(v.t)}function lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=S.useRef(pf(t)),r=S.useRef(e);return r.current!==e&&(n.current=pf(t),r.current=e),n.current}var sJ=["radius"],oJ=["radius"],MC,PC,_C,DC,RC,zC,LC,IC,BC,UC;function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $C(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){lJ(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 lJ(e,t,n){return(t=uJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uJ(e){var t=cJ(e,"string");return typeof t=="symbol"?t:t+""}function cJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qm(){return Qm=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},Qm.apply(null,arguments)}function VC(e,t){if(e==null)return{};var n,r,a=fJ(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)&&(a[n]=e[n])}return a}function fJ(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 oi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var FC=(e,t,n,r,a)=>{var o=bs(n),l=bs(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,p;if(c>0&&Array.isArray(a)){for(var v=[0,0,0,0],x=0,j=4;x<j;x++){var O,w=(O=a[x])!==null&&O!==void 0?O:0;v[x]=w>c?c:w}p=Ct(MC||(MC=oi(["M",",",""])),e,t+f*v[0]),v[0]>0&&(p+=Ct(PC||(PC=oi(["A ",",",",0,0,",",",",",""])),v[0],v[0],m,e+h*v[0],t)),p+=Ct(_C||(_C=oi(["L ",",",""])),e+n-h*v[1],t),v[1]>0&&(p+=Ct(DC||(DC=oi(["A ",",",",0,0,",`,
|
|
386
|
+
`,",",""])),v[1],v[1],m,e+n,t+f*v[1])),p+=Ct(RC||(RC=oi(["L ",",",""])),e+n,t+r-f*v[2]),v[2]>0&&(p+=Ct(zC||(zC=oi(["A ",",",",0,0,",`,
|
|
387
|
+
`,",",""])),v[2],v[2],m,e+n-h*v[2],t+r)),p+=Ct(LC||(LC=oi(["L ",",",""])),e+h*v[3],t+r),v[3]>0&&(p+=Ct(IC||(IC=oi(["A ",",",",0,0,",`,
|
|
388
|
+
`,",",""])),v[3],v[3],m,e,t+r-f*v[3])),p+="Z"}else if(c>0&&a===+a&&a>0){var A=Math.min(c,a);p=Ct(BC||(BC=oi(["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*A,A,A,m,e+h*A,t,e+n-h*A,t,A,A,m,e+n,t+f*A,e+n,t+r-f*A,A,A,m,e+n-h*A,t+r,e+h*A,t+r,A,A,m,e,t+r-f*A)}else p=Ct(UC||(UC=oi(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},HC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_R=e=>{var t=Sn(e,HC),n=S.useRef(null),[r,a]=S.useState(-1);S.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var G=n.current.getTotalLength();G&&a(G)}catch{}},[]);var{x:o,y:l,width:c,height:f,radius:h,className:m}=t,{animationEasing:p,animationDuration:v,animationBegin:x,isAnimationActive:j,isUpdateAnimationActive:O}=t,w=S.useRef(c),A=S.useRef(f),T=S.useRef(o),k=S.useRef(l),E=S.useMemo(()=>({x:o,y:l,width:c,height:f,radius:h}),[o,l,c,f,h]),C=lg(E,"rectangle-");if(o!==+o||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var P=Ze("recharts-rectangle",m);if(!O){var _=zn(t),{radius:D}=_,L=VC(_,sJ);return S.createElement("path",Qm({},L,{x:bs(o),y:bs(l),width:bs(c),height:bs(f),radius:typeof h=="number"?h:void 0,className:P,d:FC(o,l,c,f,h)}))}var Z=w.current,ee=A.current,V=T.current,ue=k.current,le="0px ".concat(r===-1?1:r,"px"),ce="".concat(r,"px 0px"),q=TR(["strokeDasharray"],v,typeof p=="string"?p:HC.animationEasing);return S.createElement(og,{animationId:C,key:C,canBegin:r>0,duration:v,easing:p,isActive:O,begin:x},G=>{var ie=St(Z,c,G),J=St(ee,f,G),$=St(V,o,G),R=St(ue,l,G);n.current&&(w.current=ie,A.current=J,T.current=$,k.current=R);var Q;j?G>0?Q={transition:q,strokeDasharray:ce}:Q={strokeDasharray:le}:Q={strokeDasharray:ce};var se=zn(t),{radius:oe}=se,fe=VC(se,oJ);return S.createElement("path",Qm({},fe,{radius:typeof h=="number"?h:void 0,className:P,d:FC($,R,ie,J,h),ref:n,style:$C($C({},Q),t.style)}))})};function KC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function GC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KC(Object(n),!0).forEach(function(r){dJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dJ(e,t,n){return(t=hJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hJ(e){var t=mJ(e,"string");return typeof t=="symbol"?t:t+""}function mJ(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 Zm=Math.PI/180,pJ=e=>e*180/Math.PI,wn=(e,t,n,r)=>({x:e+Math.cos(-Zm*r)*n,y:t+Math.sin(-Zm*r)*n}),gJ=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},vJ=(e,t)=>{var{x:n,y:r}=e,{x:a,y:o}=t;return Math.sqrt((n-a)**2+(r-o)**2)},yJ=(e,t)=>{var{x:n,y:r}=e,{cx:a,cy:o}=t,l=vJ({x:n,y:r},{x:a,y:o});if(l<=0)return{radius:l,angle:0};var c=(n-a)/l,f=Math.acos(c);return r>o&&(f=2*Math.PI-f),{radius:l,angle:pJ(f),angleInRadian:f}},bJ=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),a=Math.floor(n/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:n-o*360}},xJ=(e,t)=>{var{startAngle:n,endAngle:r}=t,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return e+l*360},wJ=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:a,angle:o}=yJ({x:n,y:r},t),{innerRadius:l,outerRadius:c}=t;if(a<l||a>c||a===0)return null;var{startAngle:f,endAngle:h}=bJ(t),m=o,p;if(f<=h){for(;m>h;)m-=360;for(;m<f;)m+=360;p=m>=f&&m<=h}else{for(;m>f;)m-=360;for(;m<h;)m+=360;p=m>=h&&m<=f}return p?GC(GC({},t),{},{radius:a,angle:xJ(m,t)}):null};function DR(e){var{cx:t,cy:n,radius:r,startAngle:a,endAngle:o}=e,l=wn(t,n,r,a),c=wn(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}var YC,WC,XC,QC,ZC,JC,eM;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 oo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var SJ=(e,t)=>{var n=Wn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Vh=e=>{var{cx:t,cy:n,radius:r,angle:a,sign:o,isExternal:l,cornerRadius:c,cornerIsExternal:f}=e,h=c*(l?1:-1)+r,m=Math.asin(c/h)/Zm,p=f?a:a+o*m,v=wn(t,n,h,p),x=wn(t,n,r,p),j=f?a-o*m:a,O=wn(t,n,h*Math.cos(m*Zm),j);return{center:v,circleTangency:x,lineTangency:O,theta:m}},RR=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:o,endAngle:l}=e,c=SJ(o,l),f=o+c,h=wn(t,n,a,o),m=wn(t,n,a,f),p=Ct(YC||(YC=oo(["M ",",",`
|
|
396
|
+
A `,",",`,0,
|
|
397
|
+
`,",",`,
|
|
398
|
+
`,",",`
|
|
399
|
+
`])),h.x,h.y,a,a,+(Math.abs(c)>180),+(o>f),m.x,m.y);if(r>0){var v=wn(t,n,r,o),x=wn(t,n,r,f);p+=Ct(WC||(WC=oo(["L ",",",`
|
|
400
|
+
A `,",",`,0,
|
|
401
|
+
`,",",`,
|
|
402
|
+
`,","," Z"])),x.x,x.y,r,r,+(Math.abs(c)>180),+(o<=f),v.x,v.y)}else p+=Ct(XC||(XC=oo(["L ",","," Z"])),t,n);return p},jJ=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:h}=e,m=Wn(h-f),{circleTangency:p,lineTangency:v,theta:x}=Vh({cx:t,cy:n,radius:a,angle:f,sign:m,cornerRadius:o,cornerIsExternal:c}),{circleTangency:j,lineTangency:O,theta:w}=Vh({cx:t,cy:n,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:c}),A=c?Math.abs(f-h):Math.abs(f-h)-x-w;if(A<0)return l?Ct(QC||(QC=oo(["M ",",",`
|
|
403
|
+
a`,",",",0,0,1,",`,0
|
|
404
|
+
a`,",",",0,0,1,",`,0
|
|
405
|
+
`])),v.x,v.y,o,o,o*2,o,o,-o*2):RR({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:f,endAngle:h});var T=Ct(ZC||(ZC=oo(["M ",",",`
|
|
406
|
+
A`,",",",0,0,",",",",",`
|
|
407
|
+
A`,",",",0,",",",",",",",`
|
|
408
|
+
A`,",",",0,0,",",",",",`
|
|
409
|
+
`])),v.x,v.y,o,o,+(m<0),p.x,p.y,a,a,+(A>180),+(m<0),j.x,j.y,o,o,+(m<0),O.x,O.y);if(r>0){var{circleTangency:k,lineTangency:E,theta:C}=Vh({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),{circleTangency:P,lineTangency:_,theta:D}=Vh({cx:t,cy:n,radius:r,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),L=c?Math.abs(f-h):Math.abs(f-h)-C-D;if(L<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+=Ct(JC||(JC=oo(["L",",",`
|
|
410
|
+
A`,",",",0,0,",",",",",`
|
|
411
|
+
A`,",",",0,",",",",",",",`
|
|
412
|
+
A`,",",",0,0,",",",",","Z"])),_.x,_.y,o,o,+(m<0),P.x,P.y,r,r,+(L>180),+(m>0),k.x,k.y,o,o,+(m<0),E.x,E.y)}else T+=Ct(eM||(eM=oo(["L",",","Z"])),t,n);return T},OJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},zR=e=>{var t=Sn(e,OJ),{cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:l,forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m,className:p}=t;if(o<a||h===m)return null;var v=Ze("recharts-sector",p),x=o-a,j=Jr(l,x,0,!0),O;return j>0&&Math.abs(h-m)<360?O=jJ({cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(j,x/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m}):O=RR({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),S.createElement("path",E1({},zn(t),{className:v,d:O}))};function AJ(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(x4(t)){if(e==="centric"){var{cx:r,cy:a,innerRadius:o,outerRadius:l,angle:c}=t,f=wn(r,a,o,c),h=wn(r,a,l,c);return[{x:f.x,y:f.y},{x:h.x,y:h.y}]}return DR(t)}}var Eb={},Nb={},kb={},tM;function EJ(){return tM||(tM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M4();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(kb)),kb}var nM;function NJ(){return nM||(nM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EJ();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})(Nb)),Nb}var rM;function kJ(){return rM||(rM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=P4(),n=NJ();function r(a,o,l){l&&typeof l!="number"&&t.isIterateeCall(a,o,l)&&(o=l=void 0),a=n.toFinite(a),o===void 0?(o=a,a=0):o=n.toFinite(o),l=l===void 0?a<o?1:-1:n.toFinite(l);const c=Math.max(Math.ceil((o-a)/(l||1)),0),f=new Array(c);for(let h=0;h<c;h++)f[h]=a,a+=l;return f}e.range=r})(Eb)),Eb}var Tb,iM;function TJ(){return iM||(iM=1,Tb=kJ().range),Tb}var CJ=TJ();const LR=Oi(CJ);function ws(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function MJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function SS(e){let t,n,r;e.length!==2?(t=ws,n=(c,f)=>ws(e(c),f),r=(c,f)=>e(c)-f):(t=e===ws||e===MJ?e:PJ,n=e,r=e);function a(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const p=h+m>>>1;n(c[p],f)<0?h=p+1:m=p}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 p=h+m>>>1;n(c[p],f)<=0?h=p+1:m=p}while(h<m)}return h}function l(c,f,h=0,m=c.length){const p=a(c,f,h,m-1);return p>h&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:a,center:l,right:o}}function PJ(){return 0}function IR(e){return e===null?NaN:+e}function*_J(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const DJ=SS(ws),Zf=DJ.right;SS(IR).center;class aM extends Map{constructor(t,n=LJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(sM(this,t))}has(t){return super.has(sM(this,t))}set(t,n){return super.set(RJ(this,t),n)}delete(t){return super.delete(zJ(this,t))}}function sM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function RJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function zJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function LJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function IJ(e=ws){if(e===ws)return BR;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 BR(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const BJ=Math.sqrt(50),UJ=Math.sqrt(10),qJ=Math.sqrt(2);function Jm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=BJ?10:o>=UJ?5:o>=qJ?2:1;let c,f,h;return a<0?(h=Math.pow(10,-a)/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,a)*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?Jm(e,t,n*2):[c,f,h]}function N1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?Jm(t,e,n):Jm(e,t,n);if(!(o>=a))return[];const c=o-a+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]=(a+h)/-l;else for(let h=0;h<c;++h)f[h]=(a+h)*l;return f}function k1(e,t,n){return t=+t,e=+e,n=+n,Jm(e,t,n)[2]}function T1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?k1(t,e,n):k1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function oM(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function lM(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function UR(e,t,n=0,r=1/0,a){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(a=a===void 0?BR:IJ(a);r>n;){if(r-n>600){const f=r-n+1,h=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),v=.5*Math.sqrt(m*p*(f-p)/f)*(h-f/2<0?-1:1),x=Math.max(n,Math.floor(t-h*p/f+v)),j=Math.min(r,Math.floor(t+(f-h)*p/f+v));UR(e,t,x,j,a)}const o=e[t];let l=n,c=r;for(Dc(e,n,t),a(e[r],o)>0&&Dc(e,n,r);l<c;){for(Dc(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Dc(e,n,c):(++c,Dc(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Dc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function $J(e,t,n){if(e=Float64Array.from(_J(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return lM(e);if(t>=1)return oM(e);var r,a=(r-1)*t,o=Math.floor(a),l=oM(UR(e,o).subarray(0,o+1)),c=lM(e.subarray(o+1));return l+(c-l)*(a-o)}}function VJ(e,t,n=IR){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,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function FJ(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sa(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 C1=Symbol("implicit");function jS(){var e=new aM,t=[],n=[],r=C1;function a(o){let l=e.get(o);if(l===void 0){if(r!==C1)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new aM;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return jS(t,n).unknown(r)},Ir.apply(a,arguments),a}function OS(){var e=jS().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,f=0,h=0,m=.5;delete e.unknown;function p(){var v=t().length,x=a<r,j=x?a:r,O=x?r:a;o=(O-j)/Math.max(1,v-f+h*2),c&&(o=Math.floor(o)),j+=(O-j-o*(v-f))*m,l=o*(1-f),c&&(j=Math.round(j),l=Math.round(l));var w=FJ(v).map(function(A){return j+o*A});return n(x?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),p()):t()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,c=!0,p()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(v){return arguments.length?(c=!!v,p()):c},e.padding=function(v){return arguments.length?(f=Math.min(1,h=+v),p()):f},e.paddingInner=function(v){return arguments.length?(f=Math.min(1,v),p()):f},e.paddingOuter=function(v){return arguments.length?(h=+v,p()):h},e.align=function(v){return arguments.length?(m=Math.max(0,Math.min(1,v)),p()):m},e.copy=function(){return OS(t(),[r,a]).round(c).paddingInner(f).paddingOuter(h).align(m)},Ir.apply(p(),arguments)}function qR(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qR(t())},e}function HJ(){return qR(OS.apply(null,arguments).paddingInner(1))}function AS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $R(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Jf(){}var jf=.7,ep=1/jf,Gl="\\s*([+-]?\\d+)\\s*",Of="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KJ=/^#([0-9a-f]{3,8})$/,GJ=new RegExp(`^rgb\\(${Gl},${Gl},${Gl}\\)$`),YJ=new RegExp(`^rgb\\(${yi},${yi},${yi}\\)$`),WJ=new RegExp(`^rgba\\(${Gl},${Gl},${Gl},${Of}\\)$`),XJ=new RegExp(`^rgba\\(${yi},${yi},${yi},${Of}\\)$`),QJ=new RegExp(`^hsl\\(${Of},${yi},${yi}\\)$`),ZJ=new RegExp(`^hsla\\(${Of},${yi},${yi},${Of}\\)$`),uM={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};AS(Jf,Af,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cM,formatHex:cM,formatHex8:JJ,formatHsl:eee,formatRgb:fM,toString:fM});function cM(){return this.rgb().formatHex()}function JJ(){return this.rgb().formatHex8()}function eee(){return VR(this).formatHsl()}function fM(){return this.rgb().formatRgb()}function Af(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=KJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?dM(t):n===3?new Qn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fh(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=GJ.exec(e))?new Qn(t[1],t[2],t[3],1):(t=YJ.exec(e))?new Qn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WJ.exec(e))?Fh(t[1],t[2],t[3],t[4]):(t=XJ.exec(e))?Fh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QJ.exec(e))?pM(t[1],t[2]/100,t[3]/100,1):(t=ZJ.exec(e))?pM(t[1],t[2]/100,t[3]/100,t[4]):uM.hasOwnProperty(e)?dM(uM[e]):e==="transparent"?new Qn(NaN,NaN,NaN,0):null}function dM(e){return new Qn(e>>16&255,e>>8&255,e&255,1)}function Fh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qn(e,t,n,r)}function tee(e){return e instanceof Jf||(e=Af(e)),e?(e=e.rgb(),new Qn(e.r,e.g,e.b,e.opacity)):new Qn}function M1(e,t,n,r){return arguments.length===1?tee(e):new Qn(e,t,n,r??1)}function Qn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}AS(Qn,M1,$R(Jf,{brighter(e){return e=e==null?ep:Math.pow(ep,e),new Qn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new Qn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qn(jo(this.r),jo(this.g),jo(this.b),tp(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:hM,formatHex:hM,formatHex8:nee,formatRgb:mM,toString:mM}));function hM(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function nee(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function mM(){const e=tp(this.opacity);return`${e===1?"rgb(":"rgba("}${jo(this.r)}, ${jo(this.g)}, ${jo(this.b)}${e===1?")":`, ${e})`}`}function tp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lo(e){return e=jo(e),(e<16?"0":"")+e.toString(16)}function pM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wr(e,t,n,r)}function VR(e){if(e instanceof Wr)return new Wr(e.h,e.s,e.l,e.opacity);if(e instanceof Jf||(e=Af(e)),!e)return new Wr;if(e instanceof Wr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,f=(o+a)/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+a:2-o-a,l*=60):c=f>0&&f<1?0:l,new Wr(l,c,f,e.opacity)}function ree(e,t,n,r){return arguments.length===1?VR(e):new Wr(e,t,n,r??1)}function Wr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}AS(Wr,ree,$R(Jf,{brighter(e){return e=e==null?ep:Math.pow(ep,e),new Wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new Wr(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,a=2*n-r;return new Qn(Cb(e>=240?e-240:e+120,a,r),Cb(e,a,r),Cb(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Wr(gM(this.h),Hh(this.s),Hh(this.l),tp(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=tp(this.opacity);return`${e===1?"hsl(":"hsla("}${gM(this.h)}, ${Hh(this.s)*100}%, ${Hh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gM(e){return e=(e||0)%360,e<0?e+360:e}function Hh(e){return Math.max(0,Math.min(1,e||0))}function Cb(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 ES=e=>()=>e;function iee(e,t){return function(n){return e+n*t}}function aee(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 see(e){return(e=+e)==1?FR:function(t,n){return n-t?aee(t,n,e):ES(isNaN(t)?n:t)}}function FR(e,t){var n=t-e;return n?iee(e,n):ES(isNaN(e)?t:e)}const vM=(function e(t){var n=see(t);function r(a,o){var l=n((a=M1(a)).r,(o=M1(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),h=FR(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=h(m),a+""}}return r.gamma=e,r})(1);function oee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function lee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=Ou(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function cee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function np(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function fee(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ou(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var P1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mb=new RegExp(P1.source,"g");function dee(e){return function(){return e}}function hee(e){return function(t){return e(t)+""}}function mee(e,t){var n=P1.lastIndex=Mb.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=P1.exec(e))&&(a=Mb.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:np(r,a)})),n=Mb.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?hee(f[0].x):dee(t):(t=f.length,function(h){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(h);return c.join("")})}function Ou(e,t){var n=typeof t,r;return t==null||n==="boolean"?ES(t):(n==="number"?np:n==="string"?(r=Af(t))?(t=r,vM):mee:t instanceof Af?vM:t instanceof Date?cee:lee(t)?oee:Array.isArray(t)?uee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?fee:np)(e,t)}function NS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function pee(e,t){t===void 0&&(t=e,e=Ou);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function gee(e){return function(){return e}}function rp(e){return+e}var yM=[0,1];function Rn(e){return e}function _1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gee(isNaN(t)?NaN:.5)}function vee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yee(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=_1(a,r),o=n(l,o)):(r=_1(r,a),o=n(o,l)),function(c){return o(r(c))}}function bee(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=_1(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=Zf(e,c,1,r)-1;return o[f](a[f](c))}}function ed(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ug(){var e=yM,t=yM,n=Ou,r,a,o,l=Rn,c,f,h;function m(){var v=Math.min(e.length,t.length);return l!==Rn&&(l=vee(e[0],e[v-1])),c=v>2?bee:yee,f=h=null,p}function p(v){return v==null||isNaN(v=+v)?o:(f||(f=c(e.map(r),t,n)))(r(l(v)))}return p.invert=function(v){return l(a((h||(h=c(t,e.map(r),np)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,rp),m()):e.slice()},p.range=function(v){return arguments.length?(t=Array.from(v),m()):t.slice()},p.rangeRound=function(v){return t=Array.from(v),n=NS,m()},p.clamp=function(v){return arguments.length?(l=v?!0:Rn,m()):l!==Rn},p.interpolate=function(v){return arguments.length?(n=v,m()):n},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,x){return r=v,a=x,m()}}function kS(){return ug()(Rn,Rn)}function xee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ip(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function hu(e){return e=ip(Math.abs(e)),e?e[1]:NaN}function wee(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function See(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ef(e){if(!(t=jee.exec(e)))throw new Error("invalid format: "+e);var t;return new TS({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]})}Ef.prototype=TS.prototype;function TS(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+""}TS.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 Oee(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var ap;function Aee(e,t){var n=ip(e,t);if(!n)return ap=void 0,e.toPrecision(t);var r=n[0],a=n[1],o=a-(ap=Math.max(-8,Math.min(8,Math.floor(a/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")+ip(e,Math.max(0,t+o-1))[0]}function bM(e,t){var n=ip(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const xM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xee,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)=>bM(e*100,t),r:bM,s:Aee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wM(e){return e}var SM=Array.prototype.map,jM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Eee(e){var t=e.grouping===void 0||e.thousands===void 0?wM:wee(SM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?wM:See(SM.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(p,v){p=Ef(p);var x=p.fill,j=p.align,O=p.sign,w=p.symbol,A=p.zero,T=p.width,k=p.comma,E=p.precision,C=p.trim,P=p.type;P==="n"?(k=!0,P="g"):xM[P]||(E===void 0&&(E=12),C=!0,P="g"),(A||x==="0"&&j==="=")&&(A=!0,x="0",j="=");var _=(v&&v.prefix!==void 0?v.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),D=(w==="$"?r:/[%p]/.test(P)?l:"")+(v&&v.suffix!==void 0?v.suffix:""),L=xM[P],Z=/[defgprs%]/.test(P);E=E===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function ee(V){var ue=_,le=D,ce,q,G;if(P==="c")le=L(V)+le,V="";else{V=+V;var ie=V<0||1/V<0;if(V=isNaN(V)?f:L(Math.abs(V),E),C&&(V=Oee(V)),ie&&+V==0&&O!=="+"&&(ie=!1),ue=(ie?O==="("?O:c:O==="-"||O==="("?"":O)+ue,le=(P==="s"&&!isNaN(V)&&ap!==void 0?jM[8+ap/3]:"")+le+(ie&&O==="("?")":""),Z){for(ce=-1,q=V.length;++ce<q;)if(G=V.charCodeAt(ce),48>G||G>57){le=(G===46?a+V.slice(ce+1):V.slice(ce))+le,V=V.slice(0,ce);break}}}k&&!A&&(V=t(V,1/0));var J=ue.length+V.length+le.length,$=J<T?new Array(T-J+1).join(x):"";switch(k&&A&&(V=t($+V,$.length?T-le.length:1/0),$=""),j){case"<":V=ue+V+le+$;break;case"=":V=ue+$+V+le;break;case"^":V=$.slice(0,J=$.length>>1)+ue+V+le+$.slice(J);break;default:V=$+ue+V+le;break}return o(V)}return ee.toString=function(){return p+""},ee}function m(p,v){var x=Math.max(-8,Math.min(8,Math.floor(hu(v)/3)))*3,j=Math.pow(10,-x),O=h((p=Ef(p),p.type="f",p),{suffix:jM[8+x/3]});return function(w){return O(j*w)}}return{format:h,formatPrefix:m}}var Kh,CS,HR;Nee({thousands:",",grouping:[3],currency:["$",""]});function Nee(e){return Kh=Eee(e),CS=Kh.format,HR=Kh.formatPrefix,Kh}function kee(e){return Math.max(0,-hu(Math.abs(e)))}function Tee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hu(t)/3)))*3-hu(Math.abs(e)))}function Cee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hu(t)-hu(e))+1}function KR(e,t,n,r){var a=T1(e,t,n),o;switch(r=Ef(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Tee(a,l))&&(r.precision=o),HR(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Cee(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=kee(a))&&(r.precision=o-(r.type==="%")*2);break}}return CS(r)}function Cs(e){var t=e.domain;return e.ticks=function(n){var r=t();return N1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return KR(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],f,h,m=10;for(c<l&&(h=l,l=c,c=h,h=a,a=o,o=h);m-- >0;){if(h=k1(l,c,n),h===f)return r[a]=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 GR(){var e=kS();return e.copy=function(){return ed(e,GR())},Ir.apply(e,arguments),Cs(e)}function YR(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,rp),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return YR(e).unknown(t)},e=arguments.length?Array.from(e,rp):[0,1],Cs(n)}function WR(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function OM(e){return Math.log(e)}function AM(e){return Math.exp(e)}function Mee(e){return-Math.log(-e)}function Pee(e){return-Math.exp(-e)}function _ee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Dee(e){return e===10?_ee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ree(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 EM(e){return(t,n)=>-e(-t,n)}function MS(e){const t=e(OM,AM),n=t.domain;let r=10,a,o;function l(){return a=Ree(r),o=Dee(r),n()[0]<0?(a=EM(a),o=EM(o),e(Mee,Pee)):e(OM,AM),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 p=m<h;p&&([h,m]=[m,h]);let v=a(h),x=a(m),j,O;const w=c==null?10:+c;let A=[];if(!(r%1)&&x-v<w){if(v=Math.floor(v),x=Math.ceil(x),h>0){for(;v<=x;++v)for(j=1;j<r;++j)if(O=v<0?j/o(-v):j*o(v),!(O<h)){if(O>m)break;A.push(O)}}else for(;v<=x;++v)for(j=r-1;j>=1;--j)if(O=v>0?j/o(-v):j*o(v),!(O<h)){if(O>m)break;A.push(O)}A.length*2<w&&(A=N1(h,m,w))}else A=N1(v,x,Math.min(x-v,w)).map(o);return p?A.reverse():A},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Ef(f)).precision==null&&(f.trim=!0),f=CS(f)),c===1/0)return f;const h=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/o(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=h?f(m):""}},t.nice=()=>n(WR(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function XR(){const e=MS(ug()).domain([1,10]);return e.copy=()=>ed(e,XR()).base(e.base()),Ir.apply(e,arguments),e}function NM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function kM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PS(e){var t=1,n=e(NM(t),kM(t));return n.constant=function(r){return arguments.length?e(NM(t=+r),kM(t)):t},Cs(n)}function QR(){var e=PS(ug());return e.copy=function(){return ed(e,QR()).constant(e.constant())},Ir.apply(e,arguments)}function TM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lee(e){return e<0?-e*e:e*e}function _S(e){var t=e(Rn,Rn),n=1;function r(){return n===1?e(Rn,Rn):n===.5?e(zee,Lee):e(TM(n),TM(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Cs(t)}function DS(){var e=_S(ug());return e.copy=function(){return ed(e,DS()).exponent(e.exponent())},Ir.apply(e,arguments),e}function Iee(){return DS.apply(null,arguments).exponent(.5)}function CM(e){return Math.sign(e)*e*e}function Bee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ZR(){var e=kS(),t=[0,1],n=!1,r;function a(o){var l=Bee(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(CM(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,rp)).map(CM)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return ZR(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ir.apply(a,arguments),Cs(a)}function JR(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=VJ(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[Zf(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(ws),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return JR().domain(e).range(t).unknown(r)},Ir.apply(o,arguments)}function ez(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[Zf(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=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var h=a.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 ez().domain([e,t]).range(a).unknown(o)},Ir.apply(Cs(l),arguments)}function tz(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[Zf(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return tz().domain(e).range(t).unknown(n)},Ir.apply(a,arguments)}const Pb=new Date,_b=new Date;function Xt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.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},a.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&&(a.count=(o,l)=>(Pb.setTime(+o),_b.setTime(+l),e(Pb),e(_b),Math.floor(n(Pb,_b))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const sp=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sp.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):sp);sp.range;const ea=1e3,Mr=ea*60,ta=Mr*60,fa=ta*24,RS=fa*7,MM=fa*30,Db=fa*365,uo=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ea)},(e,t)=>(t-e)/ea,e=>e.getUTCSeconds());uo.range;const zS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ea)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getMinutes());zS.range;const LS=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getUTCMinutes());LS.range;const IS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ea-e.getMinutes()*Mr)},(e,t)=>{e.setTime(+e+t*ta)},(e,t)=>(t-e)/ta,e=>e.getHours());IS.range;const BS=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ta)},(e,t)=>(t-e)/ta,e=>e.getUTCHours());BS.range;const td=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mr)/fa,e=>e.getDate()-1);td.range;const cg=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fa,e=>e.getUTCDate()-1);cg.range;const nz=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fa,e=>Math.floor(e/fa));nz.range;function Uo(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())*Mr)/RS)}const fg=Uo(0),op=Uo(1),Uee=Uo(2),qee=Uo(3),mu=Uo(4),$ee=Uo(5),Vee=Uo(6);fg.range;op.range;Uee.range;qee.range;mu.range;$ee.range;Vee.range;function qo(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)/RS)}const dg=qo(0),lp=qo(1),Fee=qo(2),Hee=qo(3),pu=qo(4),Kee=qo(5),Gee=qo(6);dg.range;lp.range;Fee.range;Hee.range;pu.range;Kee.range;Gee.range;const US=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());US.range;const qS=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());qS.range;const da=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());da.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)});da.range;const ha=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());ha.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)});ha.range;function rz(e,t,n,r,a,o){const l=[[uo,1,ea],[uo,5,5*ea],[uo,15,15*ea],[uo,30,30*ea],[o,1,Mr],[o,5,5*Mr],[o,15,15*Mr],[o,30,30*Mr],[a,1,ta],[a,3,3*ta],[a,6,6*ta],[a,12,12*ta],[r,1,fa],[r,2,2*fa],[n,1,RS],[t,1,MM],[t,3,3*MM],[e,1,Db]];function c(h,m,p){const v=m<h;v&&([h,m]=[m,h]);const x=p&&typeof p.range=="function"?p:f(h,m,p),j=x?x.range(h,+m+1):[];return v?j.reverse():j}function f(h,m,p){const v=Math.abs(m-h)/p,x=SS(([,,w])=>w).right(l,v);if(x===l.length)return e.every(T1(h/Db,m/Db,p));if(x===0)return sp.every(Math.max(T1(h,m,p),1));const[j,O]=l[v/l[x-1][2]<l[x][2]/v?x-1:x];return j.every(O)}return[c,f]}const[Yee,Wee]=rz(ha,qS,dg,nz,BS,LS),[Xee,Qee]=rz(da,US,fg,td,IS,zS);function Rb(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 zb(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 Rc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Zee(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,h=zc(a),m=Lc(a),p=zc(o),v=Lc(o),x=zc(l),j=Lc(l),O=zc(c),w=Lc(c),A=zc(f),T=Lc(f),k={a:G,A:ie,b:J,B:$,c:null,d:LM,e:LM,f:wte,g:Mte,G:_te,H:yte,I:bte,j:xte,L:iz,m:Ste,M:jte,p:R,q:Q,Q:UM,s:qM,S:Ote,u:Ate,U:Ete,V:Nte,w:kte,W:Tte,x:null,X:null,y:Cte,Y:Pte,Z:Dte,"%":BM},E={a:se,A:oe,b:fe,B:me,c:null,d:IM,e:IM,f:Ite,g:Yte,G:Xte,H:Rte,I:zte,j:Lte,L:sz,m:Bte,M:Ute,p:Se,q:Xe,Q:UM,s:qM,S:qte,u:$te,U:Vte,V:Fte,w:Hte,W:Kte,x:null,X:null,y:Gte,Y:Wte,Z:Qte,"%":BM},C={a:Z,A:ee,b:V,B:ue,c:le,d:RM,e:RM,f:mte,g:DM,G:_M,H:zM,I:zM,j:cte,L:hte,m:ute,M:fte,p:L,q:lte,Q:gte,s:vte,S:dte,u:rte,U:ite,V:ate,w:nte,W:ste,x:ce,X:q,y:DM,Y:_M,Z:ote,"%":pte};k.x=P(n,k),k.X=P(r,k),k.c=P(t,k),E.x=P(n,E),E.X=P(r,E),E.c=P(t,E);function P(Y,Ce){return function(Pe){var ae=[],vt=-1,Re=0,Rt=Y.length,zt,hr,Na;for(Pe instanceof Date||(Pe=new Date(+Pe));++vt<Rt;)Y.charCodeAt(vt)===37&&(ae.push(Y.slice(Re,vt)),(hr=PM[zt=Y.charAt(++vt)])!=null?zt=Y.charAt(++vt):hr=zt==="e"?" ":"0",(Na=Ce[zt])&&(zt=Na(Pe,hr)),ae.push(zt),Re=vt+1);return ae.push(Y.slice(Re,vt)),ae.join("")}}function _(Y,Ce){return function(Pe){var ae=Rc(1900,void 0,1),vt=D(ae,Y,Pe+="",0),Re,Rt;if(vt!=Pe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(Ce&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Re=zb(Rc(ae.y,0,1)),Rt=Re.getUTCDay(),Re=Rt>4||Rt===0?lp.ceil(Re):lp(Re),Re=cg.offset(Re,(ae.V-1)*7),ae.y=Re.getUTCFullYear(),ae.m=Re.getUTCMonth(),ae.d=Re.getUTCDate()+(ae.w+6)%7):(Re=Rb(Rc(ae.y,0,1)),Rt=Re.getDay(),Re=Rt>4||Rt===0?op.ceil(Re):op(Re),Re=td.offset(Re,(ae.V-1)*7),ae.y=Re.getFullYear(),ae.m=Re.getMonth(),ae.d=Re.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Rt="Z"in ae?zb(Rc(ae.y,0,1)).getUTCDay():Rb(Rc(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(Rt+5)%7:ae.w+ae.U*7-(Rt+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,zb(ae)):Rb(ae)}}function D(Y,Ce,Pe,ae){for(var vt=0,Re=Ce.length,Rt=Pe.length,zt,hr;vt<Re;){if(ae>=Rt)return-1;if(zt=Ce.charCodeAt(vt++),zt===37){if(zt=Ce.charAt(vt++),hr=C[zt in PM?Ce.charAt(vt++):zt],!hr||(ae=hr(Y,Pe,ae))<0)return-1}else if(zt!=Pe.charCodeAt(ae++))return-1}return ae}function L(Y,Ce,Pe){var ae=h.exec(Ce.slice(Pe));return ae?(Y.p=m.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function Z(Y,Ce,Pe){var ae=x.exec(Ce.slice(Pe));return ae?(Y.w=j.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function ee(Y,Ce,Pe){var ae=p.exec(Ce.slice(Pe));return ae?(Y.w=v.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function V(Y,Ce,Pe){var ae=A.exec(Ce.slice(Pe));return ae?(Y.m=T.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function ue(Y,Ce,Pe){var ae=O.exec(Ce.slice(Pe));return ae?(Y.m=w.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function le(Y,Ce,Pe){return D(Y,t,Ce,Pe)}function ce(Y,Ce,Pe){return D(Y,n,Ce,Pe)}function q(Y,Ce,Pe){return D(Y,r,Ce,Pe)}function G(Y){return l[Y.getDay()]}function ie(Y){return o[Y.getDay()]}function J(Y){return f[Y.getMonth()]}function $(Y){return c[Y.getMonth()]}function R(Y){return a[+(Y.getHours()>=12)]}function Q(Y){return 1+~~(Y.getMonth()/3)}function se(Y){return l[Y.getUTCDay()]}function oe(Y){return o[Y.getUTCDay()]}function fe(Y){return f[Y.getUTCMonth()]}function me(Y){return c[Y.getUTCMonth()]}function Se(Y){return a[+(Y.getUTCHours()>=12)]}function Xe(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var Ce=P(Y+="",k);return Ce.toString=function(){return Y},Ce},parse:function(Y){var Ce=_(Y+="",!1);return Ce.toString=function(){return Y},Ce},utcFormat:function(Y){var Ce=P(Y+="",E);return Ce.toString=function(){return Y},Ce},utcParse:function(Y){var Ce=_(Y+="",!0);return Ce.toString=function(){return Y},Ce}}}var PM={"-":"",_:" ",0:"0"},ln=/^\s*\d+/,Jee=/^%/,ete=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function tte(e){return e.replace(ete,"\\$&")}function zc(e){return new RegExp("^(?:"+e.map(tte).join("|")+")","i")}function Lc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function nte(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rte(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ite(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ate(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ste(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _M(e,t,n){var r=ln.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function DM(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ote(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 lte(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ute(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function RM(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function cte(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function zM(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fte(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dte(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hte(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mte(e,t,n){var r=ln.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pte(e,t,n){var r=Jee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gte(e,t,n){var r=ln.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vte(e,t,n){var r=ln.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function LM(e,t){return We(e.getDate(),t,2)}function yte(e,t){return We(e.getHours(),t,2)}function bte(e,t){return We(e.getHours()%12||12,t,2)}function xte(e,t){return We(1+td.count(da(e),e),t,3)}function iz(e,t){return We(e.getMilliseconds(),t,3)}function wte(e,t){return iz(e,t)+"000"}function Ste(e,t){return We(e.getMonth()+1,t,2)}function jte(e,t){return We(e.getMinutes(),t,2)}function Ote(e,t){return We(e.getSeconds(),t,2)}function Ate(e){var t=e.getDay();return t===0?7:t}function Ete(e,t){return We(fg.count(da(e)-1,e),t,2)}function az(e){var t=e.getDay();return t>=4||t===0?mu(e):mu.ceil(e)}function Nte(e,t){return e=az(e),We(mu.count(da(e),e)+(da(e).getDay()===4),t,2)}function kte(e){return e.getDay()}function Tte(e,t){return We(op.count(da(e)-1,e),t,2)}function Cte(e,t){return We(e.getFullYear()%100,t,2)}function Mte(e,t){return e=az(e),We(e.getFullYear()%100,t,2)}function Pte(e,t){return We(e.getFullYear()%1e4,t,4)}function _te(e,t){var n=e.getDay();return e=n>=4||n===0?mu(e):mu.ceil(e),We(e.getFullYear()%1e4,t,4)}function Dte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function IM(e,t){return We(e.getUTCDate(),t,2)}function Rte(e,t){return We(e.getUTCHours(),t,2)}function zte(e,t){return We(e.getUTCHours()%12||12,t,2)}function Lte(e,t){return We(1+cg.count(ha(e),e),t,3)}function sz(e,t){return We(e.getUTCMilliseconds(),t,3)}function Ite(e,t){return sz(e,t)+"000"}function Bte(e,t){return We(e.getUTCMonth()+1,t,2)}function Ute(e,t){return We(e.getUTCMinutes(),t,2)}function qte(e,t){return We(e.getUTCSeconds(),t,2)}function $te(e){var t=e.getUTCDay();return t===0?7:t}function Vte(e,t){return We(dg.count(ha(e)-1,e),t,2)}function oz(e){var t=e.getUTCDay();return t>=4||t===0?pu(e):pu.ceil(e)}function Fte(e,t){return e=oz(e),We(pu.count(ha(e),e)+(ha(e).getUTCDay()===4),t,2)}function Hte(e){return e.getUTCDay()}function Kte(e,t){return We(lp.count(ha(e)-1,e),t,2)}function Gte(e,t){return We(e.getUTCFullYear()%100,t,2)}function Yte(e,t){return e=oz(e),We(e.getUTCFullYear()%100,t,2)}function Wte(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function Xte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?pu(e):pu.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function Qte(){return"+0000"}function BM(){return"%"}function UM(e){return+e}function qM(e){return Math.floor(+e/1e3)}var Cl,lz,uz;Zte({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 Zte(e){return Cl=Zee(e),lz=Cl.format,Cl.parse,uz=Cl.utcFormat,Cl.utcParse,Cl}function Jte(e){return new Date(e)}function ene(e){return e instanceof Date?+e:+new Date(+e)}function $S(e,t,n,r,a,o,l,c,f,h){var m=kS(),p=m.invert,v=m.domain,x=h(".%L"),j=h(":%S"),O=h("%I:%M"),w=h("%I %p"),A=h("%a %d"),T=h("%b %d"),k=h("%B"),E=h("%Y");function C(P){return(f(P)<P?x:c(P)<P?j:l(P)<P?O:o(P)<P?w:r(P)<P?a(P)<P?A:T:n(P)<P?k:E)(P)}return m.invert=function(P){return new Date(p(P))},m.domain=function(P){return arguments.length?v(Array.from(P,ene)):v().map(Jte)},m.ticks=function(P){var _=v();return e(_[0],_[_.length-1],P??10)},m.tickFormat=function(P,_){return _==null?C:h(_)},m.nice=function(P){var _=v();return(!P||typeof P.range!="function")&&(P=t(_[0],_[_.length-1],P??10)),P?v(WR(_,P)):m},m.copy=function(){return ed(m,$S(e,t,n,r,a,o,l,c,f,h))},m}function tne(){return Ir.apply($S(Xee,Qee,da,US,fg,td,IS,zS,uo,lz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nne(){return Ir.apply($S(Yee,Wee,ha,qS,dg,cg,BS,LS,uo,uz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hg(){var e=0,t=1,n,r,a,o,l=Rn,c=!1,f;function h(p){return p==null||isNaN(p=+p)?f:l(a===0?.5:(p=(o(p)-n)*a,c?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(p){return arguments.length?(c=!!p,h):c},h.interpolator=function(p){return arguments.length?(l=p,h):l};function m(p){return function(v){var x,j;return arguments.length?([x,j]=v,l=p(x,j),h):[l(0),l(1)]}}return h.range=m(Ou),h.rangeRound=m(NS),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return o=p,n=p(e),r=p(t),a=n===r?0:1/(r-n),h}}function Ms(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cz(){var e=Cs(hg()(Rn));return e.copy=function(){return Ms(e,cz())},Sa.apply(e,arguments)}function fz(){var e=MS(hg()).domain([1,10]);return e.copy=function(){return Ms(e,fz()).base(e.base())},Sa.apply(e,arguments)}function dz(){var e=PS(hg());return e.copy=function(){return Ms(e,dz()).constant(e.constant())},Sa.apply(e,arguments)}function VS(){var e=_S(hg());return e.copy=function(){return Ms(e,VS()).exponent(e.exponent())},Sa.apply(e,arguments)}function rne(){return VS.apply(null,arguments).exponent(.5)}function hz(){var e=[],t=Rn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(ws),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>$J(e,o/r))},n.copy=function(){return hz(t).domain(e)},Sa.apply(n,arguments)}function mg(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,h=Rn,m,p=!1,v;function x(O){return isNaN(O=+O)?v:(O=.5+((O=+m(O))-o)*(r*O<r*o?c:f),h(p?Math.max(0,Math.min(1,O)):O))}x.domain=function(O){return arguments.length?([e,t,n]=O,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x):[e,t,n]},x.clamp=function(O){return arguments.length?(p=!!O,x):p},x.interpolator=function(O){return arguments.length?(h=O,x):h};function j(O){return function(w){var A,T,k;return arguments.length?([A,T,k]=w,h=pee(O,[A,T,k]),x):[h(0),h(.5),h(1)]}}return x.range=j(Ou),x.rangeRound=j(NS),x.unknown=function(O){return arguments.length?(v=O,x):v},function(O){return m=O,a=O(e),o=O(t),l=O(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x}}function mz(){var e=Cs(mg()(Rn));return e.copy=function(){return Ms(e,mz())},Sa.apply(e,arguments)}function pz(){var e=MS(mg()).domain([.1,1,10]);return e.copy=function(){return Ms(e,pz()).base(e.base())},Sa.apply(e,arguments)}function gz(){var e=PS(mg());return e.copy=function(){return Ms(e,gz()).constant(e.constant())},Sa.apply(e,arguments)}function FS(){var e=_S(mg());return e.copy=function(){return Ms(e,FS()).exponent(e.exponent())},Sa.apply(e,arguments)}function ine(){return FS.apply(null,arguments).exponent(.5)}const Fc=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:OS,scaleDiverging:mz,scaleDivergingLog:pz,scaleDivergingPow:FS,scaleDivergingSqrt:ine,scaleDivergingSymlog:gz,scaleIdentity:YR,scaleImplicit:C1,scaleLinear:GR,scaleLog:XR,scaleOrdinal:jS,scalePoint:HJ,scalePow:DS,scaleQuantile:JR,scaleQuantize:ez,scaleRadial:ZR,scaleSequential:cz,scaleSequentialLog:fz,scaleSequentialPow:VS,scaleSequentialQuantile:hz,scaleSequentialSqrt:rne,scaleSequentialSymlog:dz,scaleSqrt:Iee,scaleSymlog:QR,scaleThreshold:tz,scaleTime:tne,scaleUtc:nne,tickFormat:KR},Symbol.toStringTag,{value:"Module"}));var ja=e=>e.chartData,vz=W([ja],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),yz=(e,t,n,r)=>r?vz(e):ja(e),bz=(e,t,n)=>n?vz(e):ja(e);function ma(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Ue(t)&&Ue(n))return!0}return!1}function $M(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function xz(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,a,o;if(Ue(n))a=n;else if(typeof n=="function")return;if(Ue(r))o=r;else if(typeof r=="function")return;var l=[a,o];if(ma(l))return l}}function ane(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ma(r))return $M(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[a,o]=e,l,c;if(a==="auto")t!=null&&(l=Math.min(...t));else if(he(a))l=a;else if(typeof a=="function")try{t!=null&&(l=a(t==null?void 0:t[0]))}catch{}else if(typeof a=="string"&&ZT.test(a)){var f=ZT.exec(a);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"&&JT.test(o)){var m=JT.exec(o);if(m==null||m[1]==null||t==null)c=void 0;else{var p=+m[1];c=t[1]+p}}else c=t==null?void 0:t[1];var v=[l,c];if(ma(v))return t==null?v:$M(v,t,n)}}}var Au=1e9,sne={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},KS,wt=!0,zr="[DecimalError] ",Oo=zr+"Invalid argument: ",HS=zr+"Exponent out of range: ",Eu=Math.floor,no=Math.pow,one=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ur,rn=1e7,gt=7,wz=9007199254740991,up=Eu(wz/gt),ge={};ge.absoluteValue=ge.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ge.comparedTo=ge.cmp=function(e){var t,n,r,a,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,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};ge.decimalPlaces=ge.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ge.dividedBy=ge.div=function(e){return ia(this,new this.constructor(e))};ge.dividedToIntegerBy=ge.idiv=function(e){var t=this,n=t.constructor;return ft(ia(t,new n(e),0,1),n.precision)};ge.equals=ge.eq=function(e){return!this.cmp(e)};ge.exponent=function(){return Ft(this)};ge.greaterThan=ge.gt=function(e){return this.cmp(e)>0};ge.greaterThanOrEqualTo=ge.gte=function(e){return this.cmp(e)>=0};ge.isInteger=ge.isint=function(){return this.e>this.d.length-2};ge.isNegative=ge.isneg=function(){return this.s<0};ge.isPositive=ge.ispos=function(){return this.s>0};ge.isZero=function(){return this.s===0};ge.lessThan=ge.lt=function(e){return this.cmp(e)<0};ge.lessThanOrEqualTo=ge.lte=function(e){return this.cmp(e)<1};ge.logarithm=ge.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ur))throw Error(zr+"NaN");if(n.s<1)throw Error(zr+(n.s?"NaN":"-Infinity"));return n.eq(ur)?new r(0):(wt=!1,t=ia(Nf(n,o),Nf(e,o),o),wt=!0,ft(t,a))};ge.minus=ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Oz(t,e):Sz(t,(e.s=-e.s,e))};ge.modulo=ge.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(zr+"NaN");return n.s?(wt=!1,t=ia(n,e,0,1).times(e),wt=!0,n.minus(t)):ft(new r(n),a)};ge.naturalExponential=ge.exp=function(){return jz(this)};ge.naturalLogarithm=ge.ln=function(){return Nf(this)};ge.negated=ge.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ge.plus=ge.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sz(t,e):Oz(t,(e.s=-e.s,e))};ge.precision=ge.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oo+e);if(t=Ft(a)+1,r=a.d.length-1,n=r*gt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ge.squareRoot=ge.sqrt=function(){var e,t,n,r,a,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(zr+"NaN")}for(e=Ft(c),wt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=pi(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Eu((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(o=r,r=o.plus(ia(c,o,l+2)).times(.5),pi(o.d).slice(0,l)===(t=pi(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(ft(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return wt=!0,ft(r,n)};ge.times=ge.mul=function(e){var t,n,r,a,o,l,c,f,h,m=this,p=m.constructor,v=m.d,x=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=v.length,h=x.length,f<h&&(o=v,v=x,x=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,a=f+r;a>r;)c=o[a]+x[r]*v[a-r-1]+t,o[a--]=c%rn|0,t=c/rn|0;o[a]=(o[a]+t)%rn|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,wt?ft(e,p.precision):e};ge.toDecimalPlaces=ge.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ji(e,0,Au),t===void 0?t=r.rounding:ji(t,0,8),ft(n,e+Ft(n)+1,t))};ge.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Do(r,!0):(ji(e,0,Au),t===void 0?t=a.rounding:ji(t,0,8),r=ft(new a(r),e+1,t),n=Do(r,!0,e+1)),n};ge.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?Do(a):(ji(e,0,Au),t===void 0?t=o.rounding:ji(t,0,8),r=ft(new o(a),e+Ft(a)+1,t),n=Do(r.abs(),!1,e+Ft(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ge.toInteger=ge.toint=function(){var e=this,t=e.constructor;return ft(new t(e),Ft(e)+1,t.rounding)};ge.toNumber=function(){return+this};ge.toPower=ge.pow=function(e){var t,n,r,a,o,l,c=this,f=c.constructor,h=12,m=+(e=new f(e));if(!e.s)return new f(ur);if(c=new f(c),!c.s){if(e.s<1)throw Error(zr+"Infinity");return c}if(c.eq(ur))return c;if(r=f.precision,e.eq(ur))return ft(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=wz){for(a=new f(ur),t=Math.ceil(r/gt+4),wt=!1;n%2&&(a=a.times(c),FM(a.d,t)),n=Eu(n/2),n!==0;)c=c.times(c),FM(c.d,t);return wt=!0,e.s<0?new f(ur).div(a):ft(a,r)}}else if(o<0)throw Error(zr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,wt=!1,a=e.times(Nf(c,r+h)),wt=!0,a=jz(a),a.s=o,a};ge.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Ft(a),r=Do(a,n<=o.toExpNeg||n>=o.toExpPos)):(ji(e,1,Au),t===void 0?t=o.rounding:ji(t,0,8),a=ft(new o(a),e,t),n=Ft(a),r=Do(a,e<=n||n<=o.toExpNeg,e)),r};ge.toSignificantDigits=ge.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ji(e,1,Au),t===void 0?t=r.rounding:ji(t,0,8)),ft(new r(n),e,t)};ge.toString=ge.valueOf=ge.val=ge.toJSON=ge[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ft(e),n=e.constructor;return Do(e,t<=n.toExpNeg||t>=n.toExpPos)};function Sz(e,t){var n,r,a,o,l,c,f,h,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),wt?ft(t,p):t;if(f=e.d,h=t.d,l=e.e,a=t.e,f=f.slice(),o=l-a,o){for(o<0?(r=f,o=-o,c=h.length):(r=h,a=l,c=f.length),l=Math.ceil(p/gt),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)/rn|0,f[o]%=rn;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,wt?ft(t,p):t}function ji(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Oo+e)}function pi(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=gt-r.length,n&&(o+=ss(n)),o+=r;l=e[t],r=l+"",n=gt-r.length,n&&(o+=ss(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ia=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%rn|0,l=o/rn|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*rn+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,h,m,p,v,x,j,O,w,A,T,k,E,C,P,_,D,L=r.constructor,Z=r.s==a.s?1:-1,ee=r.d,V=a.d;if(!r.s)return new L(r);if(!a.s)throw Error(zr+"Division by zero");for(f=r.e-a.e,_=V.length,C=ee.length,x=new L(Z),j=x.d=[],h=0;V[h]==(ee[h]||0);)++h;if(V[h]>(ee[h]||0)&&--f,o==null?T=o=L.precision:l?T=o+(Ft(r)-Ft(a))+1:T=o,T<0)return new L(0);if(T=T/gt+2|0,h=0,_==1)for(m=0,V=V[0],T++;(h<C||m)&&T--;h++)k=m*rn+(ee[h]||0),j[h]=k/V|0,m=k%V|0;else{for(m=rn/(V[0]+1)|0,m>1&&(V=e(V,m),ee=e(ee,m),_=V.length,C=ee.length),E=_,O=ee.slice(0,_),w=O.length;w<_;)O[w++]=0;D=V.slice(),D.unshift(0),P=V[0],V[1]>=rn/2&&++P;do m=0,c=t(V,O,_,w),c<0?(A=O[0],_!=w&&(A=A*rn+(O[1]||0)),m=A/P|0,m>1?(m>=rn&&(m=rn-1),p=e(V,m),v=p.length,w=O.length,c=t(p,O,v,w),c==1&&(m--,n(p,_<v?D:V,v))):(m==0&&(c=m=1),p=V.slice()),v=p.length,v<w&&p.unshift(0),n(O,p,w),c==-1&&(w=O.length,c=t(V,O,_,w),c<1&&(m++,n(O,_<w?D:V,w))),w=O.length):c===0&&(m++,O=[0]),j[h++]=m,c&&O[0]?O[w++]=ee[E]||0:(O=[ee[E]],w=1);while((E++<C||O[0]!==void 0)&&T--)}return j[0]||j.shift(),x.e=f,ft(x,l?o+Ft(x)+1:o)}})();function jz(e,t){var n,r,a,o,l,c,f=0,h=0,m=e.constructor,p=m.precision;if(Ft(e)>16)throw Error(HS+Ft(e));if(!e.s)return new m(ur);for(wt=!1,c=p,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),h+=5;for(r=Math.log(no(2,h))/Math.LN10*2+5|0,c+=r,n=a=o=new m(ur),m.precision=c;;){if(a=ft(a.times(e),c),n=n.times(++f),l=o.plus(ia(a,n,c)),pi(l.d).slice(0,c)===pi(o.d).slice(0,c)){for(;h--;)o=ft(o.times(o),c);return m.precision=p,t==null?(wt=!0,ft(o,p)):o}o=l}}function Ft(e){for(var t=e.e*gt,n=e.d[0];n>=10;n/=10)t++;return t}function Lb(e,t,n){if(t>e.LN10.sd())throw wt=!0,n&&(e.precision=n),Error(zr+"LN10 precision limit exceeded");return ft(new e(e.LN10),t)}function ss(e){for(var t="";e--;)t+="0";return t}function Nf(e,t){var n,r,a,o,l,c,f,h,m,p=1,v=10,x=e,j=x.d,O=x.constructor,w=O.precision;if(x.s<1)throw Error(zr+(x.s?"NaN":"-Infinity"));if(x.eq(ur))return new O(0);if(t==null?(wt=!1,h=w):h=t,x.eq(10))return t==null&&(wt=!0),Lb(O,h);if(h+=v,O.precision=h,n=pi(j),r=n.charAt(0),o=Ft(x),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=pi(x.d),r=n.charAt(0),p++;o=Ft(x),r>1?(x=new O("0."+n),o++):x=new O(r+"."+n.slice(1))}else return f=Lb(O,h+2,w).times(o+""),x=Nf(new O(r+"."+n.slice(1)),h-v).plus(f),O.precision=w,t==null?(wt=!0,ft(x,w)):x;for(c=l=x=ia(x.minus(ur),x.plus(ur),h),m=ft(x.times(x),h),a=3;;){if(l=ft(l.times(m),h),f=c.plus(ia(l,new O(a),h)),pi(f.d).slice(0,h)===pi(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(Lb(O,h+2,w).times(o+""))),c=ia(c,new O(p),h),O.precision=w,t==null?(wt=!0,ft(c,w)):c;c=f,a+=2}}function VM(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Eu(n/gt),e.d=[],r=(n+1)%gt,n<0&&(r+=gt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=gt;r<a;)e.d.push(+t.slice(r,r+=gt));t=t.slice(r),r=gt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),wt&&(e.e>up||e.e<-up))throw Error(HS+n)}else e.s=0,e.e=0,e.d=[0];return e}function ft(e,t,n){var r,a,o,l,c,f,h,m,p=e.d;for(l=1,o=p[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=gt,a=t,h=p[m=0];else{if(m=Math.ceil((r+1)/gt),o=p.length,m>=o)return e;for(h=o=p[m],l=1;o>=10;o/=10)l++;r%=gt,a=r-gt+l}if(n!==void 0&&(o=no(10,l-a-1),c=h/o%10|0,f=t<0||p[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?a>0?h/no(10,l-a):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(o=Ft(e),p.length=1,t=t-o-1,p[0]=no(10,(gt-t%gt)%gt),e.e=Eu(-t/gt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,o=1,m--):(p.length=m+1,o=no(10,gt-r),p[m]=a>0?(h/no(10,l-a)%no(10,a)|0)*o:0),f)for(;;)if(m==0){(p[0]+=o)==rn&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=rn)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(wt&&(e.e>up||e.e<-up))throw Error(HS+Ft(e));return e}function Oz(e,t){var n,r,a,o,l,c,f,h,m,p,v=e.constructor,x=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),wt?ft(t,x):t;if(f=e.d,p=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=p.length):(n=p,r=h,c=f.length),a=Math.max(Math.ceil(x/gt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=p.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=p[a]){m=f[a]<p[a];break}l=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,a=p.length-c;a>0;--a)f[c++]=0;for(a=p.length;a>l;){if(f[--a]<p[a]){for(o=a;o&&f[--o]===0;)f[o]=rn-1;--f[o],f[a]+=rn}f[a]-=p[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,wt?ft(t,x):t):new v(0)}function Do(e,t,n){var r,a=Ft(e),o=pi(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+ss(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+ss(-a-1)+o,n&&(r=n-l)>0&&(o+=ss(r))):a>=l?(o+=ss(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+ss(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=ss(r))),e.s<0?"-"+o:o}function FM(e,t){if(e.length>t)return e.length=t,!0}function Az(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){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(Oo+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 VM(l,o.toString())}else if(typeof o!="string")throw Error(Oo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,one.test(o))VM(l,o);else throw Error(Oo+o)}if(a.prototype=ge,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=Az,a.config=a.set=lne,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 a.config(e),a}function lne(e){if(!e||typeof e!="object")throw Error(zr+"Object expected");var t,n,r,a=["precision",1,Au,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Eu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Oo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Oo+n+": "+r);return this}var KS=Az(sne);ur=new KS(1);const at=KS;function Ez(e){var t;return e===0?t=1:t=Math.floor(new at(e).abs().log(10).toNumber())+1,t}function Nz(e,t,n){for(var r=new at(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var kz=e=>{var[t,n]=e,[r,a]=[t,n];return t>n&&([r,a]=[n,t]),[r,a]},Tz=(e,t,n)=>{if(e.lte(0))return new at(0);var r=Ez(e.toNumber()),a=new at(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new at(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?new at(f.toNumber()):new at(Math.ceil(f.toNumber()))},une=(e,t,n)=>{var r=new at(1),a=new at(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new at(10).pow(Ez(e)-1),a=new at(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new at(Math.floor(e)))}else e===0?a=new at(Math.floor((t-1)/2)):n||(a=new at(Math.floor(e)));for(var l=Math.floor((t-1)/2),c=[],f=0;f<t;f++)c.push(a.add(new at(f-l).mul(r)).toNumber());return c},Cz=function(t,n,r,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new at(0),tickMin:new at(0),tickMax:new at(0)};var l=Tz(new at(n).sub(t).div(r-1),a,o),c;t<=0&&n>=0?c=new at(0):(c=new at(t).add(n).div(2),c=c.sub(new at(c).mod(l)));var f=Math.ceil(c.sub(t).div(l).toNumber()),h=Math.ceil(new at(n).sub(c).div(l).toNumber()),m=f+h+1;return m>r?Cz(t,n,r,a,o+1):(m<r&&(h=n>0?h+(r-m):h,f=n>0?f:f+(r-m)),{step:l,tickMin:c.sub(new at(f).mul(l)),tickMax:c.add(new at(h).mul(l))})},cne=function(t){var[n,r]=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),[c,f]=kz([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...Array(a-1).fill(1/0)]:[...Array(a-1).fill(-1/0),f];return n>r?h.reverse():h}if(c===f)return une(c,a,o);var{step:m,tickMin:p,tickMax:v}=Cz(c,f,l,o,0),x=Nz(p,v.add(new at(.1).mul(m)),m);return n>r?x.reverse():x},fne=function(t,n){var[r,a]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[l,c]=kz([r,a]);if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var f=Math.max(n,2),h=Tz(new at(c).sub(l).div(f-1),o,0),m=[...Nz(new at(l),new at(c),h),c];return o===!1&&(m=m.map(p=>Math.round(p))),r>a?m.reverse():m},Mz=e=>e.rootProps.maxBarSize,dne=e=>e.rootProps.barGap,Pz=e=>e.rootProps.barCategoryGap,hne=e=>e.rootProps.barSize,pg=e=>e.rootProps.stackOffset,_z=e=>e.rootProps.reverseStackOrder,GS=e=>e.options.chartName,YS=e=>e.rootProps.syncId,Dz=e=>e.rootProps.syncMethod,WS=e=>e.options.eventEmitter,mne=e=>e.rootProps.baseValue,sn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Zs={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},li={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},gg=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function vg(e,t,n){if(n!=="auto")return n;if(e!=null)return Ai(e,t)?"category":"number"}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){pne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pne(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=vne(e,"string");return typeof t=="symbol"?t:t+""}function vne(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 KM={allowDataOverflow:Zs.allowDataOverflow,allowDecimals:Zs.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Zs.angleAxisId,includeHidden:!1,name:void 0,reversed:Zs.reversed,scale:Zs.scale,tick:Zs.tick,tickCount:void 0,ticks:void 0,type:Zs.type,unit:void 0},GM={allowDataOverflow:li.allowDataOverflow,allowDecimals:li.allowDecimals,allowDuplicatedCategory:li.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:li.radiusAxisId,includeHidden:li.includeHidden,name:void 0,reversed:li.reversed,scale:li.scale,tick:li.tick,tickCount:li.tickCount,ticks:void 0,type:li.type,unit:void 0},yne=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},XS=W([yne,bR],(e,t)=>{var n;if(e!=null)return e;var r=(n=vg(t,"angleAxis",KM.type))!==null&&n!==void 0?n:"category";return cp(cp({},KM),{},{type:r})}),bne=(e,t)=>e.polarAxis.radiusAxis[t],QS=W([bne,bR],(e,t)=>{var n;if(e!=null)return e;var r=(n=vg(t,"radiusAxis",GM.type))!==null&&n!==void 0?n:"category";return cp(cp({},GM),{},{type:r})}),yg=e=>e.polarOptions,ZS=W([xa,wa,on],gJ),Rz=W([yg,ZS],(e,t)=>{if(e!=null)return Jr(e.innerRadius,t,0)}),zz=W([yg,ZS],(e,t)=>{if(e!=null)return Jr(e.outerRadius,t,t*.8)}),xne=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Lz=W([yg],xne);W([XS,Lz],gg);var Iz=W([ZS,Rz,zz],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});W([QS,Iz],gg);var Bz=W([tt,yg,Rz,zz,xa,wa],(e,t,n,r,a,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:l,cy:c,startAngle:f,endAngle:h}=t;return{cx:Jr(l,a,a/2),cy:Jr(c,o,o/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:h,clockWise:!1}}}),un=(e,t)=>t,bg=(e,t,n)=>n;function xg(e){return e==null?void 0:e.id}function Uz(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:a,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=xg(c);h.forEach((p,v)=>{var x=o==null||a?v:String(Vt(p,o,null)),j=Vt(p,c.dataKey,0),O;l.has(x)?O=l.get(x):O={},Object.assign(O,{[m]:j}),l.set(x,O)})}}),Array.from(l.values())}function wg(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Sg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function jg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function wne(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 cn=e=>{var t=tt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Nu=e=>e.tooltip.settings.axisId;function Sne(e){if(e in Fc)return Fc[e]();var t="scale".concat(Hf(e));if(t in Fc)return Fc[t]()}function YM(e){var t=e.ticks,n=e.bandwidth,r=e.range(),a=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(o){function l(){return o.apply(this,arguments)}return l.toString=function(){return o.toString()},l})(()=>a),rangeMin:()=>a[0],rangeMax:()=>a[1],isInRange(o){var l=a[0],c=a[1];return l<=c?o>=l&&o<=c:o>=c&&o<=l},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,l)=>{var c=e(o);if(c!=null){if(e.bandwidth&&l!==null&&l!==void 0&&l.position){var f=e.bandwidth();switch(l.position){case"middle":c+=f/2;break;case"end":c+=f;break}}return c}}}}function WM(e,t,n){if(typeof e=="function")return YM(e.copy().domain(t).range(n));if(e!=null){var r=Sne(e);if(r!=null)return r.domain(t).range(n),YM(r)}}var jne=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ma(t)){for(var n,r,a=0;a<t.length;a++){var o=t[a];Ue(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function XM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XM(Object(n),!0).forEach(function(r){One(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function One(e,t,n){return(t=Ane(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ane(e){var t=Ene(e,"string");return typeof t=="symbol"?t:t+""}function Ene(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 D1=[0,"auto"],en={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},qz=(e,t)=>e.cartesianAxis.xAxis[t],Oa=(e,t)=>{var n=qz(e,t);return n??en},tn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:D1,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:Yf},$z=(e,t)=>e.cartesianAxis.yAxis[t],Aa=(e,t)=>{var n=$z(e,t);return n??tn},Nne={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:""},JS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Nne},Bn=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);case"zAxis":return JS(e,n);case"angleAxis":return XS(e,n);case"radiusAxis":return QS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},kne=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},nd=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);case"angleAxis":return XS(e,n);case"radiusAxis":return QS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Vz=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Fz(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Og=e=>e.graphicalItems.cartesianItems,Tne=W([un,bg],Fz),Hz=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),rd=W([Og,Bn,Tne],Hz,{memoizeOptions:{resultEqualityCheck:jg}}),Kz=W([rd],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(wg)),Gz=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Cne=W([rd],Gz),Yz=e=>e.map(t=>t.data).filter(Boolean).flat(1),Mne=W([rd],Yz,{memoizeOptions:{resultEqualityCheck:jg}}),Wz=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:a}=t;return e.length>0?e:n.slice(r,a+1)},ej=W([Mne,yz],Wz),Xz=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Vt(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:Vt(a,r)}))):e.map(r=>({value:r})),Ag=W([ej,Bn,rd],Xz);function Qz(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function fm(e){if(wi(e)||e instanceof Date){var t=Number(e);if(Ue(t))return t}}function QM(e){if(Array.isArray(e)){var t=[fm(e[0]),fm(e[1])];return ma(t)?t:void 0}var n=fm(e);if(n!=null)return[n,n]}function pa(e){return e.map(fm).filter(Xn)}function Pne(e,t,n){return!n||typeof t!="number"||Zr(t)?[]:n.length?pa(n.flatMap(r=>{var a=Vt(e,r.dataKey),o,l;if(Array.isArray(a)?[o,l]=a:o=l=a,!(!Ue(o)||!Ue(l)))return[t-o,t+l]})):[]}var Qt=e=>{var t=cn(e),n=Nu(e);return nd(e,t,n)},id=W([Qt],e=>e==null?void 0:e.dataKey),_ne=W([Kz,yz,Qt],Uz),Zz=(e,t,n,r)=>{var a={},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},a);return Object.fromEntries(Object.entries(o).map(l=>{var[c,f]=l,h=r?[...f].reverse():f,m=h.map(xg);return[c,{stackedData:GX(e,m,n),graphicalItems:h}]}))},dp=W([_ne,Kz,pg,_z],Zz),Jz=(e,t,n,r)=>{var{dataStartIndex:a,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var l=QX(e,a,o);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},Dne=W([Bn],e=>e.allowDataOverflow),tj=e=>{var t;if(e==null||!("domain"in e))return D1;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=pa(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:D1},eL=W([Bn],tj),tL=W([eL,Dne],xz),Rne=W([dp,ja,un,tL],Jz,{memoizeOptions:{resultEqualityCheck:Sg}}),nj=e=>e.errorBars,zne=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Qz(n,r)),hp=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);if(a.length!==0){var o=a.flat(),l=Math.min(...o),c=Math.max(...o);return[l,c]}},nL=(e,t,n,r,a)=>{var o,l;if(n.length>0&&e.forEach(c=>{n.forEach(f=>{var h,m,p=(h=r[f.id])===null||h===void 0?void 0:h.filter(A=>Qz(a,A)),v=Vt(c,(m=t.dataKey)!==null&&m!==void 0?m:f.dataKey),x=Pne(c,v,p);if(x.length>=2){var j=Math.min(...x),O=Math.max(...x);(o==null||j<o)&&(o=j),(l==null||O>l)&&(l=O)}var w=QM(v);w!=null&&(o=o==null?w[0]:Math.min(o,w[0]),l=l==null?w[1]:Math.max(l,w[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(c=>{var f=QM(Vt(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]))}),Ue(o)&&Ue(l))return[o,l]},Lne=W([ej,Bn,Cne,nj,un],nL,{memoizeOptions:{resultEqualityCheck:Sg}});function Ine(e){var{value:t}=e;if(wi(t)||t instanceof Date)return t}var Bne=(e,t,n)=>{var r=e.map(Ine).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&v4(r))?LR(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},rL=e=>e.referenceElements.dots,ku=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Une=W([rL,un,bg],ku),iL=e=>e.referenceElements.areas,qne=W([iL,un,bg],ku),aL=e=>e.referenceElements.lines,$ne=W([aL,un,bg],ku),sL=(e,t)=>{if(e!=null){var n=pa(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Vne=W(Une,un,sL),oL=(e,t)=>{if(e!=null){var n=pa(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)]}},Fne=W([qne,un],oL);function Hne(e){var t;if(e.x!=null)return pa([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:pa(n)}function Kne(e){var t;if(e.y!=null)return pa([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:pa(n)}var lL=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Hne(r):Kne(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Gne=W([$ne,un],lL),Yne=W(Vne,Gne,Fne,(e,t,n)=>hp(e,n,t)),uL=(e,t,n,r,a,o,l,c)=>{if(n!=null)return n;var f=l==="vertical"&&c==="xAxis"||l==="horizontal"&&c==="yAxis",h=f?hp(r,o,a):hp(o,a);return ane(t,h,e.allowDataOverflow)},Wne=W([Bn,eL,tL,Rne,Lne,Yne,tt,un],uL,{memoizeOptions:{resultEqualityCheck:Sg}}),Xne=[0,1],cL=(e,t,n,r,a,o,l)=>{if(!((e==null||n==null||n.length===0)&&l===void 0)){var{dataKey:c,type:f}=e,h=Ai(t,o);if(h&&c==null){var m;return LR(0,(m=n==null?void 0:n.length)!==null&&m!==void 0?m:0)}return f==="category"?Bne(r,e,h):a==="expand"?Xne:l}},rj=W([Bn,tt,ej,Ag,pg,un,Wne],cL);function Qne(e){return e in Fc}var fL=(e,t,n)=>{if(e!=null){var{scale:r,type:a}=e;if(r==="auto")return a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":a==="category"?"band":"linear";if(typeof r=="string"){var o="scale".concat(Hf(r));return Qne(o)?o:"point"}}},Tu=W([Bn,Vz,GS],fL);function ij(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?WM(e.scale,n,r):WM(t,n,r)}var dL=(e,t,n)=>{var r=tj(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&ma(e))return cne(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&ma(e))return fne(e,t.tickCount,t.allowDecimals)}},aj=W([rj,nd,Tu],dL),hL=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&ma(t)&&Array.isArray(n)&&n.length>0){var a,o,l=t[0],c=(a=n[0])!==null&&a!==void 0?a:0,f=t[1],h=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(l,c),Math.max(f,h)]}return t},Zne=W([Bn,rj,aj,un],hL),Jne=W(Ag,Bn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(pa(e.map(p=>p.value))).sort((p,v)=>p-v),a=r[0],o=r[r.length-1];if(a==null||o==null)return 1/0;var l=o-a;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}}),mL=W(Jne,tt,Pz,on,(e,t,n,r,a)=>a,(e,t,n,r,a)=>{if(!Ue(e))return 0;var o=t==="vertical"?r.height:r.width;if(a==="gap")return e*o/2;if(a==="no-gap"){var l=Jr(n,e*o),c=e*o/2;return c-l-(c-l)/o*l}return 0}),ere=(e,t,n)=>{var r=Oa(e,t);return r==null||typeof r.padding!="string"?0:mL(e,"xAxis",t,n,r.padding)},tre=(e,t,n)=>{var r=Aa(e,t);return r==null||typeof r.padding!="string"?0:mL(e,"yAxis",t,n,r.padding)},nre=W(Oa,ere,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:a}=e;return typeof a=="string"?{left:t,right:t}:{left:((n=a.left)!==null&&n!==void 0?n:0)+t,right:((r=a.right)!==null&&r!==void 0?r:0)+t}}),rre=W(Aa,tre,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:a}=e;return typeof a=="string"?{top:t,bottom:t}:{top:((n=a.top)!==null&&n!==void 0?n:0)+t,bottom:((r=a.bottom)!==null&&r!==void 0?r:0)+t}}),ire=W([on,nre,ng,tg,(e,t,n)=>n],(e,t,n,r,a)=>{var{padding:o}=r;return a?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),are=W([on,tt,rre,ng,tg,(e,t,n)=>n],(e,t,n,r,a,o)=>{var{padding:l}=a;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]}),ad=(e,t,n,r)=>{var a;switch(t){case"xAxis":return ire(e,n,r);case"yAxis":return are(e,n,r);case"zAxis":return(a=JS(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return Lz(e);case"radiusAxis":return Iz(e,n);default:return}},pL=W([Bn,ad],gg),sre=W([Tu,Zne],jne),Eg=W([Bn,Tu,sre,pL],ij);W([rd,nj,un],zne);function gL(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Ng=(e,t)=>t,kg=(e,t,n)=>n,ore=W(Jp,Ng,kg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(gL)),lre=W(eg,Ng,kg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(gL)),vL=(e,t)=>({width:e.width,height:t.height}),ure=(e,t)=>{var n=typeof t.width=="number"?t.width:Yf;return{width:n,height:e.height}},yL=W(on,Oa,vL),cre=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},fre=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},dre=W(wa,on,ore,Ng,kg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=vL(t,c);l==null&&(l=cre(t,r,e));var h=r==="top"&&!a||r==="bottom"&&a;o[c.id]=l-Number(h)*f.height,l+=(h?-1:1)*f.height}),o}),hre=W(xa,on,lre,Ng,kg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=ure(t,c);l==null&&(l=fre(t,r,e));var h=r==="left"&&!a||r==="right"&&a;o[c.id]=l-Number(h)*f.width,l+=(h?-1:1)*f.width}),o}),mre=(e,t)=>{var n=Oa(e,t);if(n!=null)return dre(e,n.orientation,n.mirror)},pre=W([on,Oa,mre,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n==null?void 0:n[r];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}}),gre=(e,t)=>{var n=Aa(e,t);if(n!=null)return hre(e,n.orientation,n.mirror)},vre=W([on,Aa,gre,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n==null?void 0:n[r];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}}),bL=W(on,Aa,(e,t)=>{var n=typeof t.width=="number"?t.width:Yf;return{width:n,height:e.height}}),ZM=(e,t,n)=>{switch(t){case"xAxis":return yL(e,n).width;case"yAxis":return bL(e,n).height;default:return}},xL=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:a,type:o,dataKey:l}=n,c=Ai(e,r),f=t.map(h=>h.value);if(l&&c&&o==="category"&&a&&v4(f))return f}},sj=W([tt,Ag,Bn,un],xL),wL=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:a,scale:o}=n,l=Ai(e,r);if(l&&(a==="number"||o!=="auto"))return t.map(c=>c.value)}},oj=W([tt,Ag,nd,un],wL),JM=W([tt,kne,Tu,Eg,sj,oj,ad,aj,un],(e,t,n,r,a,o,l,c,f)=>{if(t!=null){var h=Ai(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:a,isCategorical:h,niceTicks:c,range:l,realScaleType:n,scale:r}}}),yre=(e,t,n,r,a,o,l,c,f)=>{if(!(t==null||r==null)){var h=Ai(e,f),{type:m,ticks:p,tickCount:v}=t,x=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,j=m==="category"&&r.bandwidth?r.bandwidth()/x:0;j=f==="angleAxis"&&o!=null&&o.length>=2?Wn(o[0]-o[1])*2*j:j;var O=p||a;return O?O.map((w,A)=>{var T=l?l.indexOf(w):w,k=r.map(T);return Ue(k)?{index:A,coordinate:k+j,value:w,offset:j}:null}).filter(Xn):h&&c?c.map((w,A)=>{var T=r.map(w);return Ue(T)?{coordinate:T+j,value:w,index:A,offset:j}:null}).filter(Xn):r.ticks?r.ticks(v).map((w,A)=>{var T=r.map(w);return Ue(T)?{coordinate:T+j,value:w,index:A,offset:j}:null}).filter(Xn):r.domain().map((w,A)=>{var T=r.map(w);return Ue(T)?{coordinate:T+j,value:l?l[w]:w,index:A,offset:j}:null}).filter(Xn)}},SL=W([tt,nd,Tu,Eg,aj,ad,sj,oj,un],yre),bre=(e,t,n,r,a,o,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var c=Ai(e,l),{tickCount:f}=t,h=0;return h=l==="angleAxis"&&(r==null?void 0:r.length)>=2?Wn(r[0]-r[1])*2*h:h,c&&o?o.map((m,p)=>{var v=n.map(m);return Ue(v)?{coordinate:v+h,value:m,index:p,offset:h}:null}).filter(Xn):n.ticks?n.ticks(f).map((m,p)=>{var v=n.map(m);return Ue(v)?{coordinate:v+h,value:m,index:p,offset:h}:null}).filter(Xn):n.domain().map((m,p)=>{var v=n.map(m);return Ue(v)?{coordinate:v+h,value:a?a[m]:m,index:p,offset:h}:null}).filter(Xn)}},Os=W([tt,nd,Eg,ad,sj,oj,un],bre),As=W(Bn,Eg,(e,t)=>{if(!(e==null||t==null))return fp(fp({},e),{},{scale:t})}),xre=W([Bn,Tu,rj,pL],ij);W((e,t,n)=>JS(e,n),xre,(e,t)=>{if(!(e==null||t==null))return fp(fp({},e),{},{scale:t})});var wre=W([tt,Jp,eg],(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}}),jL=e=>e.options.defaultTooltipEventType,OL=e=>e.options.validateTooltipEventTypes;function AL(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function lj(e,t){var n=jL(e),r=OL(e);return AL(t,n,r)}function Sre(e){return je(t=>lj(t,e))}var EL=(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},jre=e=>e.tooltip.settings,ls={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Ore={itemInteraction:{click:ls,hover:ls},axisInteraction:{click:ls,hover:ls},keyboardInteraction:ls,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}},NL=Jn({name:"tooltip",initialState:Ore,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:bt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,a=Qr(e).tooltipItemPayloads.indexOf(n);a>-1&&(e.tooltipItemPayloads[a]=r)},prepare:bt()},removeTooltipEntrySettings:{reducer(e,t){var n=Qr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:bt()},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:Are,replaceTooltipEntrySettings:Ere,removeTooltipEntrySettings:Nre,setTooltipSettingsState:kre,setActiveMouseOverItemIndex:kL,mouseLeaveItem:Tre,mouseLeaveChart:TL,setActiveClickItemIndex:Cre,setMouseOverAxisIndex:CL,setMouseClickAxisIndex:Mre,setSyncInteraction:R1,setKeyboardInteraction:z1}=NL.actions,Pre=NL.reducer;function eP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gh(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){_re(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 _re(e,t,n){return(t=Dre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dre(e){var t=Rre(e,"string");return typeof t=="symbol"?t:t+""}function Rre(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 zre(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Lre(e){return e.index!=null}var ML=(e,t,n,r)=>{if(t==null)return ls;var a=zre(e,t,n);if(a==null)return ls;if(a.active)return a;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(Lre(a)){if(o)return Gh(Gh({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Gh(Gh({},ls),{},{coordinate:a.coordinate})};function Ire(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 Bre(e,t){var n=Ire(e),r=t[0],a=t[1];if(n===void 0)return!1;var o=Math.min(r,a),l=Math.max(r,a);return n>=o&&n<=l}function Ure(e,t,n){if(n==null||t==null)return!0;var r=Vt(e,t);return r==null||!ma(n)?!0:Bre(r,n)}var uj=(e,t,n,r)=>{var a=e==null?void 0:e.index;if(a==null)return null;var o=Number(a);if(!Ue(o))return a;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||Ure(h,n,r)?String(f):null},PL=(e,t,n,r,a,o,l)=>{if(o!=null){var c=l[0],f=c==null?void 0:c.getPosition(o);if(f!=null)return f;var h=a==null?void 0:a[Number(o)];if(h)switch(n){case"horizontal":return{x:h.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:h.coordinate}}}},_L=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(n==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,a==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)===a})},DL=e=>e.options.tooltipPayloadSearcher,Cu=e=>e.tooltip;function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?tP(Object(n),!0).forEach(function(r){qre(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 qre(e,t,n){return(t=$re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $re(e){var t=Vre(e,"string");return typeof t=="symbol"?t:t+""}function Vre(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 Fre(e,t){return e??t}var RL=(e,t,n,r,a,o,l)=>{if(!(t==null||o==null)){var{chartData:c,computedData:f,dataStartIndex:h,dataEndIndex:m}=n,p=[];return e.reduce((v,x)=>{var j,{dataDefinedOnItem:O,settings:w}=x,A=Fre(O,c),T=Array.isArray(A)?cR(A,h,m):A,k=(j=w==null?void 0:w.dataKey)!==null&&j!==void 0?j:r,E=w==null?void 0:w.nameKey,C;if(r&&Array.isArray(T)&&!Array.isArray(T[0])&&l==="axis"?C=y4(T,r,a):C=o(T,t,f,E),Array.isArray(C))C.forEach(_=>{var D=nP(nP({},w),{},{name:_.name,unit:_.unit,color:void 0,fill:void 0});v.push(eC({tooltipEntrySettings:D,dataKey:_.dataKey,payload:_.payload,value:Vt(_.payload,_.dataKey),name:_.name}))});else{var P;v.push(eC({tooltipEntrySettings:w,dataKey:k,payload:C,value:Vt(C,k),name:(P=Vt(C,E))!==null&&P!==void 0?P:w==null?void 0:w.name}))}return v},p)}},cj=W([Qt,Vz,GS],fL),Hre=W([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Kre=W([cn,Nu],Fz),Mu=W([Hre,Qt,Kre],Hz,{memoizeOptions:{resultEqualityCheck:jg}}),Gre=W([Mu],e=>e.filter(wg)),Yre=W([Mu],Yz,{memoizeOptions:{resultEqualityCheck:jg}}),Pu=W([Yre,ja],Wz),Wre=W([Gre,ja,Qt],Uz),fj=W([Pu,Qt,Mu],Xz),zL=W([Qt],tj),Xre=W([Qt],e=>e.allowDataOverflow),LL=W([zL,Xre],xz),Qre=W([Mu],e=>e.filter(wg)),Zre=W([Wre,Qre,pg,_z],Zz),Jre=W([Zre,ja,cn,LL],Jz),eie=W([Mu],Gz),tie=W([Pu,Qt,eie,nj,cn],nL,{memoizeOptions:{resultEqualityCheck:Sg}}),nie=W([rL,cn,Nu],ku),rie=W([nie,cn],sL),iie=W([iL,cn,Nu],ku),aie=W([iie,cn],oL),sie=W([aL,cn,Nu],ku),oie=W([sie,cn],lL),lie=W([rie,oie,aie],hp),uie=W([Qt,zL,LL,Jre,tie,lie,tt,cn],uL),sd=W([Qt,tt,Pu,fj,pg,cn,uie],cL),cie=W([sd,Qt,cj],dL),fie=W([Qt,sd,cie,cn],hL),IL=e=>{var t=cn(e),n=Nu(e),r=!1;return ad(e,t,n,r)},BL=W([Qt,IL],gg),UL=W([Qt,cj,fie,BL],ij),die=W([tt,fj,Qt,cn],xL),hie=W([tt,fj,Qt,cn],wL),mie=(e,t,n,r,a,o,l,c)=>{if(t){var{type:f}=t,h=Ai(e,c);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=f==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=c==="angleAxis"&&a!=null&&(a==null?void 0:a.length)>=2?Wn(a[0]-a[1])*2*p:p,h&&l?l.map((v,x)=>{var j=r.map(v);return Ue(j)?{coordinate:j+p,value:v,index:x,offset:p}:null}).filter(Xn):r.domain().map((v,x)=>{var j=r.map(v);return Ue(j)?{coordinate:j+p,value:o?o[v]:v,index:x,offset:p}:null}).filter(Xn)}}},Ea=W([tt,Qt,cj,UL,IL,die,hie,cn],mie),dj=W([jL,OL,jre],(e,t,n)=>AL(n.shared,e,t)),qL=e=>e.tooltip.settings.trigger,hj=e=>e.tooltip.settings.defaultIndex,od=W([Cu,dj,qL,hj],ML),Ro=W([od,Pu,id,sd],uj),$L=W([Ea,Ro],EL),VL=W([od],e=>{if(e)return e.dataKey});W([od],e=>{if(e)return e.graphicalItemId});var FL=W([Cu,dj,qL,hj],_L),pie=W([xa,wa,tt,on,Ea,hj,FL],PL),gie=W([od,pie],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),vie=W([od],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),yie=W([FL,Ro,ja,id,$L,DL,dj],RL),bie=W([yie],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iP(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){xie(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 xie(e,t,n){return(t=wie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wie(e){var t=Sie(e,"string");return typeof t=="symbol"?t:t+""}function Sie(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 jie=()=>je(Qt),Oie=()=>{var e=jie(),t=je(Ea),n=je(UL);return cu(!e||!n?void 0:iP(iP({},e),{},{scale:n}),t)};function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){Aie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aie(e,t,n){return(t=Eie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eie(e){var t=Nie(e,"string");return typeof t=="symbol"?t:t+""}function Nie(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 kie=(e,t,n,r)=>{var a=t.find(o=>o&&o.index===n);if(a){if(e==="horizontal")return{x:a.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:a.coordinate}}return{x:0,y:0}},Tie=(e,t,n,r)=>{var a=t.find(h=>h&&h.index===n);if(a){if(e==="centric"){var o=a.coordinate,{radius:l}=r;return Ml(Ml(Ml({},r),wn(r.cx,r.cy,l,o)),{},{angle:o,radius:l})}var c=a.coordinate,{angle:f}=r;return Ml(Ml(Ml({},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 Cie(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 HL=(e,t,n,r,a)=>{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"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var c=0;c<l;c++){var f,h,m,p,v,x=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,j=(m=n[c])===null||m===void 0?void 0:m.coordinate,O=c>=l-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(v=n[c+1])===null||v===void 0?void 0:v.coordinate,w=void 0;if(!(x==null||j==null||O==null))if(Wn(j-x)!==Wn(O-j)){var A=[];if(Wn(O-j)===Wn(a[1]-a[0])){w=O;var T=j+a[1]-a[0];A[0]=Math.min(T,(T+x)/2),A[1]=Math.max(T,(T+x)/2)}else{w=x;var k=O+a[1]-a[0];A[0]=Math.min(j,(k+j)/2),A[1]=Math.max(j,(k+j)/2)}var E=[Math.min(j,(w+j)/2),Math.max(j,(w+j)/2)];if(e>E[0]&&e<=E[1]||e>=A[0]&&e<=A[1]){var C;return(C=n[c])===null||C===void 0?void 0:C.index}}else{var P=Math.min(x,O),_=Math.max(x,O);if(e>(P+j)/2&&e<=(_+j)/2){var D;return(D=n[c])===null||D===void 0?void 0:D.index}}}else if(t)for(var L=0;L<l;L++){var Z=t[L];if(Z!=null){var ee=t[L+1],V=t[L-1];if(L===0&&ee!=null&&e<=(Z.coordinate+ee.coordinate)/2||L===l-1&&V!=null&&e>(Z.coordinate+V.coordinate)/2||L>0&&L<l-1&&V!=null&&ee!=null&&e>(Z.coordinate+V.coordinate)/2&&e<=(Z.coordinate+ee.coordinate)/2)return Z.index}}return-1},KL=()=>je(GS),mj=(e,t)=>t,GL=(e,t,n)=>n,pj=(e,t,n,r)=>r,Mie=W(Ea,e=>$p(e,t=>t.coordinate)),gj=W([Cu,mj,GL,pj],ML),vj=W([gj,Pu,id,sd],uj),Pie=(e,t,n)=>{if(t!=null){var r=Cu(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=W([Cu,mj,GL,pj],_L),mp=W([xa,wa,tt,on,Ea,pj,YL],PL),_ie=W([gj,mp],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),WL=W([Ea,vj],EL),Die=W([YL,vj,ja,id,WL,DL,mj],RL),Rie=W([gj,vj],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),zie=(e,t,n,r,a,o,l)=>{if(!(!e||!n||!r||!a)&&Cie(e,l)){var c=ZX(e,t),f=HL(c,o,a,n,r),h=kie(t,a,f,e);return{activeIndex:String(f),activeCoordinate:h}}},Lie=(e,t,n,r,a,o,l)=>{if(!(!e||!r||!a||!o||!n)){var c=wJ(e,n);if(c){var f=JX(c,t),h=HL(f,l,o,r,a),m=Tie(t,o,h,c);return{activeIndex:String(h),activeCoordinate:m}}}},Iie=(e,t,n,r,a,o,l,c)=>{if(!(!e||!t||!r||!a||!o))return t==="horizontal"||t==="vertical"?zie(e,t,r,a,o,l,c):Lie(e,t,n,r,a,o,l)},Bie=W(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}}),Uie=W(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(sn)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:wne}});function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){qie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qie(e,t,n){return(t=$ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ie(e){var t=Vie(e,"string");return typeof t=="symbol"?t:t+""}function Vie(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 Fie={},Hie={zIndexMap:Object.values(sn).reduce((e,t)=>oP(oP({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Fie)},Kie=new Set(Object.values(sn));function Gie(e){return Kie.has(e)}var XL=Jn({name:"zIndex",initialState:Hie,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:bt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Gie(n)&&delete e.zIndexMap[n])},prepare:bt()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:a}=t.payload;e.zIndexMap[n]?a?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:a?void 0:r,panoramaElement:a?r:void 0}},prepare:bt()},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:bt()}}}),{registerZIndexPortal:Yie,unregisterZIndexPortal:Wie,registerZIndexPortalElement:Xie,unregisterZIndexPortalElement:Qie}=XL.actions,Zie=XL.reducer;function Br(e){var{zIndex:t,children:n}=e,r=PQ(),a=r&&t!==void 0&&t!==0,o=kn(),l=Ot();S.useLayoutEffect(()=>a?(l(Yie({zIndex:t})),()=>{l(Wie({zIndex:t}))}):Io,[l,t,a]);var c=je(f=>Bie(f,t,o));return a?c?Bf.createPortal(n,c):null:n}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 lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){Jie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jie(e,t,n){return(t=eae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eae(e){var t=tae(e,"string");return typeof t=="symbol"?t:t+""}function tae(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 nae(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return S.isValidElement(t)?S.cloneElement(t,r):S.createElement(n,r)}function rae(e){var t,{coordinate:n,payload:r,index:a,offset:o,tooltipAxisBandSize:l,layout:c,cursor:f,tooltipEventType:h,chartName:m}=e,p=n,v=r,x=a;if(!f||!p||m!=="ScatterChart"&&h!=="axis")return null;var j,O,w;if(m==="ScatterChart")j=p,O=DZ,w=sn.cursorLine;else if(m==="BarChart")j=RZ(c,p,o,l),O=_R,w=sn.cursorRectangle;else if(c==="radial"&&x4(p)){var{cx:A,cy:T,radius:k,startAngle:E,endAngle:C}=DR(p);j={cx:A,cy:T,startAngle:E,endAngle:C,innerRadius:k,outerRadius:k},O=zR,w=sn.cursorLine}else j={points:AJ(c,p,o)},O=Qc,w=sn.cursorLine;var P=typeof f=="object"&&"className"in f?f.className:void 0,_=Yh(Yh(Yh(Yh({stroke:"#ccc",pointerEvents:"none"},o),j),Ff(f)),{},{payload:v,payloadIndex:x,className:Ze("recharts-tooltip-cursor",P)});return S.createElement(Br,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},S.createElement(nae,{cursor:f,cursorComp:O,cursorProps:_}))}function iae(e){var t=Oie(),n=yR(),r=Bo(),a=KL();return t==null||n==null||r==null||a==null?null:S.createElement(rae,L1({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var QL=S.createContext(null),aae=()=>S.useContext(QL),Ib={exports:{}},uP;function sae(){return uP||(uP=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,h,m){this.fn=f,this.context=h,this.once=m||!1}function o(f,h,m,p,v){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new a(m,p||f,v),j=n?n+h:h;return f._events[j]?f._events[j].fn?f._events[j]=[f._events[j],x]:f._events[j].push(x):(f._events[j]=x,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,p;if(this._eventsCount===0)return h;for(p in m=this._events)t.call(m,p)&&h.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},c.prototype.listeners=function(h){var m=n?n+h:h,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,x=p.length,j=new Array(x);v<x;v++)j[v]=p[v].fn;return j},c.prototype.listenerCount=function(h){var m=n?n+h:h,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(h,m,p,v,x,j){var O=n?n+h:h;if(!this._events[O])return!1;var w=this._events[O],A=arguments.length,T,k;if(w.fn){switch(w.once&&this.removeListener(h,w.fn,void 0,!0),A){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,m),!0;case 3:return w.fn.call(w.context,m,p),!0;case 4:return w.fn.call(w.context,m,p,v),!0;case 5:return w.fn.call(w.context,m,p,v,x),!0;case 6:return w.fn.call(w.context,m,p,v,x,j),!0}for(k=1,T=new Array(A-1);k<A;k++)T[k-1]=arguments[k];w.fn.apply(w.context,T)}else{var E=w.length,C;for(k=0;k<E;k++)switch(w[k].once&&this.removeListener(h,w[k].fn,void 0,!0),A){case 1:w[k].fn.call(w[k].context);break;case 2:w[k].fn.call(w[k].context,m);break;case 3:w[k].fn.call(w[k].context,m,p);break;case 4:w[k].fn.call(w[k].context,m,p,v);break;default:if(!T)for(C=1,T=new Array(A-1);C<A;C++)T[C-1]=arguments[C];w[k].fn.apply(w[k].context,T)}}return!0},c.prototype.on=function(h,m,p){return o(this,h,m,p,!1)},c.prototype.once=function(h,m,p){return o(this,h,m,p,!0)},c.prototype.removeListener=function(h,m,p,v){var x=n?n+h:h;if(!this._events[x])return this;if(!m)return l(this,x),this;var j=this._events[x];if(j.fn)j.fn===m&&(!v||j.once)&&(!p||j.context===p)&&l(this,x);else{for(var O=0,w=[],A=j.length;O<A;O++)(j[O].fn!==m||v&&!j[O].once||p&&j[O].context!==p)&&w.push(j[O]);w.length?this._events[x]=w.length===1?w[0]:w:l(this,x)}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})(Ib)),Ib.exports}var oae=sae();const lae=Oi(oae);var kf=new lae,I1="recharts.syncEvent.tooltip",cP="recharts.syncEvent.brush",ZL=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Zr(n))return e[n]}},uae={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},JL=Jn({name:"options",initialState:uae,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),cae=JL.reducer,{createEventEmitter:fae}=JL.actions;function dae(e){return e.tooltip.syncInteraction}var hae={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},e6=Jn({name:"chartData",initialState:hae,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:fP,setDataStartEndIndexes:mae,setComputedData:Whe}=e6.actions,pae=e6.reducer,gae=["x","y"];function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pl(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){vae(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 vae(e,t,n){return(t=yae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yae(e){var t=bae(e,"string");return typeof t=="symbol"?t:t+""}function bae(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 xae(e,t){if(e==null)return{};var n,r,a=wae(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)&&(a[n]=e[n])}return a}function wae(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 Sae(){var e=je(YS),t=je(WS),n=Ot(),r=je(Dz),a=je(Ea),o=Bo(),l=rg(),c=je(f=>f.rootProps.className);S.useEffect(()=>{if(e==null)return Io;var f=(h,m,p)=>{if(t!==p&&e===h){if(r==="index"){var v;if(l&&m!==null&&m!==void 0&&(v=m.payload)!==null&&v!==void 0&&v.coordinate&&m.payload.sourceViewBox){var x=m.payload.coordinate,{x:j,y:O}=x,w=xae(x,gae),{x:A,y:T,width:k,height:E}=m.payload.sourceViewBox,C=Pl(Pl({},w),{},{x:l.x+(k?(j-A)/k:0)*l.width,y:l.y+(E?(O-T)/E:0)*l.height});n(Pl(Pl({},m),{},{payload:Pl(Pl({},m.payload),{},{coordinate:C})}))}else n(m);return}if(a!=null){var P;if(typeof r=="function"){var _={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(a,_);P=a[D]}else r==="value"&&(P=a.find(q=>String(q.value)===m.payload.label));var{coordinate:L}=m.payload;if(P==null||m.payload.active===!1||L==null||l==null){n(R1({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:Z,y:ee}=L,V=Math.min(Z,l.x+l.width),ue=Math.min(ee,l.y+l.height),le={x:o==="horizontal"?P.coordinate:V,y:o==="horizontal"?ue:P.coordinate},ce=R1({active:m.payload.active,coordinate:le,dataKey:m.payload.dataKey,index:String(P.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(ce)}}};return kf.on(I1,f),()=>{kf.off(I1,f)}},[c,n,t,e,r,a,o,l])}function jae(){var e=je(YS),t=je(WS),n=Ot();S.useEffect(()=>{if(e==null)return Io;var r=(a,o,l)=>{t!==l&&e===a&&n(mae(o))};return kf.on(cP,r),()=>{kf.off(cP,r)}},[n,t,e])}function Oae(){var e=Ot();S.useEffect(()=>{e(fae())},[e]),Sae(),jae()}function Aae(e,t,n,r,a,o){var l=je(x=>Pie(x,e,t)),c=je(WS),f=je(YS),h=je(Dz),m=je(dae),p=m==null?void 0:m.active,v=rg();S.useEffect(()=>{if(!p&&f!=null&&c!=null){var x=R1({active:o,coordinate:n,dataKey:l,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:v,graphicalItemId:void 0});kf.emit(I1,f,x,c)}},[p,n,l,a,r,c,f,h,o,v])}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){Eae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eae(e,t,n){return(t=Nae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nae(e){var t=kae(e,"string");return typeof t=="symbol"?t:t+""}function kae(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 Tae(e){return e.dataKey}function Cae(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(hZ,t)}var pP=[],Mae={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 dm(e){var t,n,r=Sn(e,Mae),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:c,content:f,filterNull:h,isAnimationActive:m,offset:p,payloadUniqBy:v,position:x,reverseDirection:j,useTranslate3d:O,wrapperStyle:w,cursor:A,shared:T,trigger:k,defaultIndex:E,portal:C,axisId:P}=r,_=Ot(),D=typeof E=="number"?String(E):E;S.useEffect(()=>{_(kre({shared:T,trigger:k,axisId:P,active:a,defaultIndex:D}))},[_,T,k,P,a,D]);var L=rg(),Z=kR(),ee=Sre(T),{activeIndex:V,isActive:ue}=(t=je(Se=>Rie(Se,ee,k,D)))!==null&&t!==void 0?t:{},le=je(Se=>Die(Se,ee,k,D)),ce=je(Se=>WL(Se,ee,k,D)),q=je(Se=>_ie(Se,ee,k,D)),G=le,ie=aae(),J=(n=a??ue)!==null&&n!==void 0?n:!1,[$,R]=D4([G,J]),Q=ee==="axis"?ce:void 0;Aae(ee,k,q,Q,V,J);var se=C??ie;if(se==null||L==null||ee==null)return null;var oe=G??pP;J||(oe=pP),h&&oe.length&&(oe=T4(oe.filter(Se=>Se.value!=null&&(Se.hide!==!0||r.includeHidden)),v,Tae));var fe=oe.length>0,me=S.createElement(xZ,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:J,coordinate:q,hasPayload:fe,offset:p,position:x,reverseDirection:j,useTranslate3d:O,viewBox:L,wrapperStyle:w,lastBoundingBox:$,innerRef:R,hasPortalFromProps:!!C},Cae(f,mP(mP({},r),{},{payload:oe,label:Q,active:J,activeIndex:V,coordinate:q,accessibilityLayer:Z})));return S.createElement(S.Fragment,null,Bf.createPortal(me,se),J&&S.createElement(iae,{cursor:A,tooltipEventType:ee,coordinate:q,payload:oe,index:V}))}var t6=e=>null;t6.displayName="Cell";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)}class Rae{constructor(t){Pae(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 gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){Lae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lae(e,t,n){return(t=Iae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iae(e){var t=Bae(e,"string");return typeof t=="symbol"?t:t+""}function Bae(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 Uae={cacheSize:2e3,enableCache:!0},n6=zae({},Uae),vP=new Rae(n6.cacheSize),qae={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},yP="recharts_measurement_span";function $ae(e,t){var n=t.fontSize||"",r=t.fontFamily||"",a=t.fontWeight||"",o=t.fontStyle||"",l=t.letterSpacing||"",c=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(a,"|").concat(o,"|").concat(l,"|").concat(c)}var bP=(e,t)=>{try{var n=document.getElementById(yP);n||(n=document.createElement("span"),n.setAttribute("id",yP),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,qae,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Zc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Qf.isSsr)return{width:0,height:0};if(!n6.enableCache)return bP(t,n);var r=$ae(t,n),a=vP.get(r);if(a)return a;var o=bP(t,n);return vP.set(r,o),o},r6;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 xP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kae=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Gae=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Yae={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Wae=["cm","mm","pt","pc","in","Q","px"];function Xae(e){return Wae.includes(e)}var Vl="NaN";function Qae(e,t){return e*Yae[t]}class xn{static parse(t){var n,[,r,a]=(n=Gae.exec(t))!==null&&n!==void 0?n:[];return r==null?xn.NaN:new xn(parseFloat(r),a??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Zr(t)&&(this.unit=""),n!==""&&!Kae.test(n)&&(this.num=NaN,this.unit=""),Xae(n)&&(this.num=Qae(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new xn(NaN,""):new xn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new xn(NaN,""):new xn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new xn(NaN,""):new xn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new xn(NaN,""):new xn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Zr(this.num)}}r6=xn;Vae(xn,"NaN",new r6(NaN,""));function i6(e){if(e==null||e.includes(Vl))return Vl;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,a,o]=(n=xP.exec(t))!==null&&n!==void 0?n:[],l=xn.parse(r??""),c=xn.parse(o??""),f=a==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return Vl;t=t.replace(xP,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,m,p,v]=(h=wP.exec(t))!==null&&h!==void 0?h:[],x=xn.parse(m??""),j=xn.parse(v??""),O=p==="+"?x.add(j):x.subtract(j);if(O.isNaN())return Vl;t=t.replace(wP,O.toString())}return t}var SP=/\(([^()]*)\)/;function Zae(e){for(var t=e,n;(n=SP.exec(t))!=null;){var[,r]=n;t=t.replace(SP,i6(r))}return t}function Jae(e){var t=e.replace(/\s+/g,"");return t=Zae(t),t=i6(t),t}function ese(e){try{return Jae(e)}catch{return Vl}}function Bb(e){var t=ese(e.slice(5,-1));return t===Vl?"":t}var tse=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],nse=["dx","dy","angle","className","breakAll"];function B1(){return B1=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},B1.apply(null,arguments)}function jP(e,t){if(e==null)return{};var n,r,a=rse(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)&&(a[n]=e[n])}return a}function rse(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 a6=/[ \f\n\r\t\v\u2028\u2029]+/,s6=e=>{var{children:t,breakAll:n,style:r}=e;try{var a=[];Mt(t)||(n?a=t.toString().split(""):a=t.toString().split(a6));var o=a.map(c=>({word:c,width:Zc(c,r).width})),l=n?0:Zc(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}};function ise(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var o6=(e,t,n,r)=>e.reduce((a,o)=>{var{word:l,width:c}=o,f=a[a.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};a.push(h)}return a},[]),l6=e=>e.reduce((t,n)=>t.width>n.width?t:n),ase="…",OP=(e,t,n,r,a,o,l,c)=>{var f=e.slice(0,t),h=s6({breakAll:n,style:r,children:f+ase});if(!h)return[!1,[]];var m=o6(h.wordsWithComputedWidth,o,l,c),p=m.length>a||l6(m).width>Number(o);return[p,m]},sse=(e,t,n,r,a)=>{var{maxLines:o,children:l,style:c,breakAll:f}=e,h=he(o),m=String(l),p=o6(t,r,n,a);if(!h||a)return p;var v=p.length>o||l6(p).width>Number(r);if(!v)return p;for(var x=0,j=m.length-1,O=0,w;x<=j&&O<=m.length-1;){var A=Math.floor((x+j)/2),T=A-1,[k,E]=OP(m,T,f,c,o,r,n,a),[C]=OP(m,A,f,c,o,r,n,a);if(!k&&!C&&(x=A+1),k&&C&&(j=A-1),!k&&C){w=E;break}O++}return w||p},AP=e=>{var t=Mt(e)?[]:e.toString().split(a6);return[{words:t,width:void 0}]},ose=e=>{var{width:t,scaleToFit:n,children:r,style:a,breakAll:o,maxLines:l}=e;if((t||n)&&!Qf.isSsr){var c,f,h=s6({breakAll:o,children:r,style:a});if(h){var{wordsWithComputedWidth:m,spaceWidth:p}=h;c=m,f=p}else return AP(r);return sse({breakAll:o,children:r,maxLines:l,style:a},c,f,t,!!n)}return AP(r)},u6="#808080",lse={angle:0,breakAll:!1,capHeight:"0.71em",fill:u6,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},yj=S.forwardRef((e,t)=>{var n=Sn(e,lse),{x:r,y:a,lineHeight:o,capHeight:l,fill:c,scaleToFit:f,textAnchor:h,verticalAnchor:m}=n,p=jP(n,tse),v=S.useMemo(()=>ose({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:f,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,f,p.style,p.width]),{dx:x,dy:j,angle:O,className:w,breakAll:A}=p,T=jP(p,nse);if(!wi(r)||!wi(a)||v.length===0)return null;var k=Number(r)+(he(x)?x:0),E=Number(a)+(he(j)?j:0);if(!Ue(k)||!Ue(E))return null;var C;switch(m){case"start":C=Bb("calc(".concat(l,")"));break;case"middle":C=Bb("calc(".concat((v.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:C=Bb("calc(".concat(v.length-1," * -").concat(o,")"));break}var P=[],_=v[0];if(f&&_!=null){var D=_.width,{width:L}=p;P.push("scale(".concat(he(L)&&he(D)?L/D:1,")"))}return O&&P.push("rotate(".concat(O,", ").concat(k,", ").concat(E,")")),P.length&&(T.transform=P.join(" ")),S.createElement("text",B1({},zn(T),{ref:t,x:k,y:E,className:Ze("recharts-text",w),textAnchor:h,fill:c.includes("url")?u6:c}),v.map((Z,ee)=>{var V=Z.words.join(A?"":" ");return S.createElement("tspan",{x:k,dy:ee===0?C:o,key:"".concat(V,"-").concat(ee)},V)}))});yj.displayName="Text";function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ui(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){use(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 use(e,t,n){return(t=cse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cse(e){var t=fse(e,"string");return typeof t=="symbol"?t:t+""}function fse(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 dse=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:a}=e,{x:o,y:l,height:c,upperWidth:f,lowerWidth:h}=gS(t),m=o,p=o+(f-h)/2,v=(m+p)/2,x=(f+h)/2,j=m+f/2,O=c>=0?1:-1,w=O*r,A=O>0?"end":"start",T=O>0?"start":"end",k=f>=0?1:-1,E=k*r,C=k>0?"end":"start",P=k>0?"start":"end",_=a;if(n==="top"){var D={x:m+f/2,y:l-w,horizontalAnchor:"middle",verticalAnchor:A};return _&&(D.height=Math.max(l-_.y,0),D.width=f),D}if(n==="bottom"){var L={x:p+h/2,y:l+c+w,horizontalAnchor:"middle",verticalAnchor:T};return _&&(L.height=Math.max(_.y+_.height-(l+c),0),L.width=h),L}if(n==="left"){var Z={x:v-E,y:l+c/2,horizontalAnchor:C,verticalAnchor:"middle"};return _&&(Z.width=Math.max(Z.x-_.x,0),Z.height=c),Z}if(n==="right"){var ee={x:v+x+E,y:l+c/2,horizontalAnchor:P,verticalAnchor:"middle"};return _&&(ee.width=Math.max(_.x+_.width-ee.x,0),ee.height=c),ee}var V=_?{width:x,height:c}:{};return n==="insideLeft"?ui({x:v+E,y:l+c/2,horizontalAnchor:P,verticalAnchor:"middle"},V):n==="insideRight"?ui({x:v+x-E,y:l+c/2,horizontalAnchor:C,verticalAnchor:"middle"},V):n==="insideTop"?ui({x:m+f/2,y:l+w,horizontalAnchor:"middle",verticalAnchor:T},V):n==="insideBottom"?ui({x:p+h/2,y:l+c-w,horizontalAnchor:"middle",verticalAnchor:A},V):n==="insideTopLeft"?ui({x:m+E,y:l+w,horizontalAnchor:P,verticalAnchor:T},V):n==="insideTopRight"?ui({x:m+f-E,y:l+w,horizontalAnchor:C,verticalAnchor:T},V):n==="insideBottomLeft"?ui({x:p+E,y:l+c-w,horizontalAnchor:P,verticalAnchor:A},V):n==="insideBottomRight"?ui({x:p+h-E,y:l+c-w,horizontalAnchor:C,verticalAnchor:A},V):n&&typeof n=="object"&&(he(n.x)||Co(n.x))&&(he(n.y)||Co(n.y))?ui({x:o+Jr(n.x,x),y:l+Jr(n.y,c),horizontalAnchor:"end",verticalAnchor:"end"},V):ui({x:j,y:l+c/2,horizontalAnchor:"middle",verticalAnchor:"middle"},V)},hse=["labelRef"],mse=["content"];function NP(e,t){if(e==null)return{};var n,r,a=pse(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)&&(a[n]=e[n])}return a}function pse(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 kP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kP(Object(n),!0).forEach(function(r){gse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gse(e,t,n){return(t=vse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vse(e){var t=yse(e,"string");return typeof t=="symbol"?t:t+""}function yse(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 Ji(){return Ji=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},Ji.apply(null,arguments)}var c6=S.createContext(null),bse=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:l,children:c}=e,f=S.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:l}),[t,n,r,a,o,l]);return S.createElement(c6.Provider,{value:f},c)},f6=()=>{var e=S.useContext(c6),t=rg();return e||(t?gS(t):void 0)},xse=S.createContext(null),wse=()=>{var e=S.useContext(xse),t=je(Bz);return e||t},Sse=e=>{var{value:t,formatter:n}=e,r=Mt(e.children)?t:e.children;return typeof n=="function"?n(r):r},bj=e=>e!=null&&typeof e=="function",jse=(e,t)=>{var n=Wn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Ose=(e,t,n,r,a)=>{var{offset:o,className:l}=e,{cx:c,cy:f,innerRadius:h,outerRadius:m,startAngle:p,endAngle:v,clockWise:x}=a,j=(h+m)/2,O=jse(p,v),w=O>=0?1:-1,A,T;switch(t){case"insideStart":A=p+w*o,T=x;break;case"insideEnd":A=v-w*o,T=!x;break;case"end":A=v+w*o,T=x;break;default:throw new Error("Unsupported position ".concat(t))}T=O<=0?T:!T;var k=wn(c,f,j,A),E=wn(c,f,j,A+(T?1:-1)*359),C="M".concat(k.x,",").concat(k.y,`
|
|
413
|
+
A`).concat(j,",").concat(j,",0,1,").concat(T?0:1,`,
|
|
414
|
+
`).concat(E.x,",").concat(E.y),P=Mt(e.id)?pf("recharts-radial-line-"):e.id;return S.createElement("text",Ji({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",l)}),S.createElement("defs",null,S.createElement("path",{id:P,d:C})),S.createElement("textPath",{xlinkHref:"#".concat(P)},n))},Ase=(e,t,n)=>{var{cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:c,endAngle:f}=e,h=(c+f)/2;if(n==="outside"){var{x:m,y:p}=wn(r,a,l+t,h);return{x:m,y:p,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"end"};var v=(o+l)/2,{x,y:j}=wn(r,a,v,h);return{x,y:j,textAnchor:"middle",verticalAnchor:"middle"}},hm=e=>e!=null&&"cx"in e&&he(e.cx),Ese={angle:0,offset:5,zIndex:sn.label,position:"middle",textBreakAll:!1};function Nse(e){if(!hm(e))return e;var{cx:t,cy:n,outerRadius:r}=e,a=r*2;return{x:t-r,y:n-r,width:a,upperWidth:a,lowerWidth:a,height:a}}function os(e){var t=Sn(e,Ese),{viewBox:n,parentViewBox:r,position:a,value:o,children:l,content:c,className:f="",textBreakAll:h,labelRef:m}=t,p=wse(),v=f6(),x=a==="center"?v:p??v,j,O,w;n==null?j=x:hm(n)?j=n:j=gS(n);var A=Nse(j);if(!j||Mt(o)&&Mt(l)&&!S.isValidElement(c)&&typeof c!="function")return null;var T=Hc(Hc({},t),{},{viewBox:j});if(S.isValidElement(c)){var{labelRef:k}=T,E=NP(T,hse);return S.cloneElement(c,E)}if(typeof c=="function"){var{content:C}=T,P=NP(T,mse);if(O=S.createElement(c,P),S.isValidElement(O))return O}else O=Sse(t);var _=zn(t);if(hm(j)){if(a==="insideStart"||a==="insideEnd"||a==="end")return Ose(t,a,O,_,j);w=Ase(j,t.offset,t.position)}else{if(!A)return null;var D=dse({viewBox:A,position:a,offset:t.offset,parentViewBox:hm(r)?void 0:r});w=Hc(Hc({x:D.x,y:D.y,textAnchor:D.horizontalAnchor,verticalAnchor:D.verticalAnchor},D.width!==void 0?{width:D.width}:{}),D.height!==void 0?{height:D.height}:{})}return S.createElement(Br,{zIndex:t.zIndex},S.createElement(yj,Ji({ref:m,className:Ze("recharts-label",f)},_,w,{textAnchor:ise(_.textAnchor)?_.textAnchor:w.textAnchor,breakAll:h}),O))}os.displayName="Label";var kse=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?S.createElement(os,Ji({key:"label-implicit"},r)):wi(e)?S.createElement(os,Ji({key:"label-implicit",value:e},r)):S.isValidElement(e)?e.type===os?S.cloneElement(e,Hc({key:"label-implicit"},r)):S.createElement(os,Ji({key:"label-implicit",content:e},r)):bj(e)?S.createElement(os,Ji({key:"label-implicit",content:e},r)):e&&typeof e=="object"?S.createElement(os,Ji({},e,{key:"label-implicit"},r)):null};function Tse(e){var{label:t,labelRef:n}=e,r=f6();return kse(t,r,n)||null}var Ub={},qb={},TP;function Cse(){return TP||(TP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(qb)),qb}var $b={},CP;function Mse(){return CP||(CP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})($b)),$b}var MP;function Pse(){return MP||(MP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cse(),n=Mse(),r=aS();function a(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=a})(Ub)),Ub}var Vb,PP;function _se(){return PP||(PP=1,Vb=Pse().last),Vb}var Dse=_se();const Rse=Oi(Dse);var zse=["valueAccessor"],Lse=["dataKey","clockWise","id","textBreakAll","zIndex"];function pp(){return pp=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},pp.apply(null,arguments)}function _P(e,t){if(e==null)return{};var n,r,a=Ise(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)&&(a[n]=e[n])}return a}function Ise(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 Bse=e=>Array.isArray(e.value)?Rse(e.value):e.value,d6=S.createContext(void 0),h6=d6.Provider,m6=S.createContext(void 0);m6.Provider;function Use(){return S.useContext(d6)}function qse(){return S.useContext(m6)}function mm(e){var{valueAccessor:t=Bse}=e,n=_P(e,zse),{dataKey:r,clockWise:a,id:o,textBreakAll:l,zIndex:c}=n,f=_P(n,Lse),h=Use(),m=qse(),p=h||m;return!p||!p.length?null:S.createElement(Br,{zIndex:c??sn.label},S.createElement(Ln,{className:"recharts-label-list"},p.map((v,x)=>{var j,O=Mt(r)?t(v,x):Vt(v.payload,r),w=Mt(o)?{}:{id:"".concat(o,"-").concat(x)};return S.createElement(os,pp({key:"label-".concat(x)},zn(v),f,w,{fill:(j=n.fill)!==null&&j!==void 0?j:v.fill,parentViewBox:v.parentViewBox,value:O,textBreakAll:l,viewBox:v.viewBox,index:x,zIndex:0}))})))}mm.displayName="LabelList";function p6(e){var{label:t}=e;return t?t===!0?S.createElement(mm,{key:"labelList-implicit"}):S.isValidElement(t)||bj(t)?S.createElement(mm,{key:"labelList-implicit",content:t}):typeof t=="object"?S.createElement(mm,pp({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function U1(){return U1=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},U1.apply(null,arguments)}var g6=e=>{var{cx:t,cy:n,r,className:a}=e,o=Ze("recharts-dot",a);return he(t)&&he(n)&&he(r)?S.createElement("circle",U1({},Dr(e),iS(e),{className:o,cx:t,cy:n,r})):null},$se={radiusAxis:{},angleAxis:{}},v6=Jn({name:"polarAxis",initialState:$se,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:Xhe,removeRadiusAxis:Qhe,addAngleAxis:Zhe,removeAngleAxis:Jhe}=v6.actions,Vse=v6.reducer;function Fse(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Fb={exports:{}},Je={};/**
|
|
415
|
+
* @license React
|
|
416
|
+
* react-is.production.min.js
|
|
417
|
+
*
|
|
418
|
+
* Copyright (c) Facebook, Inc. and its 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 DP;function Hse(){if(DP)return Je;DP=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function O(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case e:switch(w=w.type,w){case n:case a:case r:case h:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case f:case v:case p:case o:return w;default:return A}}case t:return A}}}return Je.ContextConsumer=l,Je.ContextProvider=o,Je.Element=e,Je.ForwardRef=f,Je.Fragment=n,Je.Lazy=v,Je.Memo=p,Je.Portal=t,Je.Profiler=a,Je.StrictMode=r,Je.Suspense=h,Je.SuspenseList=m,Je.isAsyncMode=function(){return!1},Je.isConcurrentMode=function(){return!1},Je.isContextConsumer=function(w){return O(w)===l},Je.isContextProvider=function(w){return O(w)===o},Je.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Je.isForwardRef=function(w){return O(w)===f},Je.isFragment=function(w){return O(w)===n},Je.isLazy=function(w){return O(w)===v},Je.isMemo=function(w){return O(w)===p},Je.isPortal=function(w){return O(w)===t},Je.isProfiler=function(w){return O(w)===a},Je.isStrictMode=function(w){return O(w)===r},Je.isSuspense=function(w){return O(w)===h},Je.isSuspenseList=function(w){return O(w)===m},Je.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===a||w===r||w===h||w===m||w===x||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===p||w.$$typeof===o||w.$$typeof===l||w.$$typeof===f||w.$$typeof===j||w.getModuleId!==void 0)},Je.typeOf=O,Je}var RP;function Kse(){return RP||(RP=1,Fb.exports=Hse()),Fb.exports}var Gse=Kse(),zP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",LP=null,Hb=null,y6=e=>{if(e===LP&&Array.isArray(Hb))return Hb;var t=[];return S.Children.forEach(e,n=>{Mt(n)||(Gse.isFragment(n)?t=t.concat(y6(n.props.children)):t.push(n))}),Hb=t,LP=e,t};function Yse(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(a=>zP(a)):r=[zP(t)],y6(e).forEach(a=>{var o=lu(a,"type.displayName")||lu(a,"type.name");o&&r.indexOf(o)!==-1&&n.push(a)}),n}var b6=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Kb={},IP;function Wse(){return IP||(IP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var a;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||!((a=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&a.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})(Kb)),Kb}var Gb,BP;function Xse(){return BP||(BP=1,Gb=Wse().isPlainObject),Gb}var Qse=Xse();const Zse=Oi(Qse);var UP,qP,$P,VP,FP;function HP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function KP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HP(Object(n),!0).forEach(function(r){Jse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jse(e,t,n){return(t=eoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eoe(e){var t=toe(e,"string");return typeof t=="symbol"?t:t+""}function toe(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 gp(){return gp=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},gp.apply(null,arguments)}function Ic(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var GP=(e,t,n,r,a)=>{var o=n-r,l;return l=Ct(UP||(UP=Ic(["M ",",",""])),e,t),l+=Ct(qP||(qP=Ic(["L ",",",""])),e+n,t),l+=Ct($P||($P=Ic(["L ",",",""])),e+n-o/2,t+a),l+=Ct(VP||(VP=Ic(["L ",",",""])),e+n-o/2-r,t+a),l+=Ct(FP||(FP=Ic(["L ",","," Z"])),e,t),l},noe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},roe=e=>{var t=Sn(e,noe),{x:n,y:r,upperWidth:a,lowerWidth:o,height:l,className:c}=t,{animationEasing:f,animationDuration:h,animationBegin:m,isUpdateAnimationActive:p}=t,v=S.useRef(null),[x,j]=S.useState(-1),O=S.useRef(a),w=S.useRef(o),A=S.useRef(l),T=S.useRef(n),k=S.useRef(r),E=lg(e,"trapezoid-");if(S.useEffect(()=>{if(v.current&&v.current.getTotalLength)try{var le=v.current.getTotalLength();le&&j(le)}catch{}},[]),n!==+n||r!==+r||a!==+a||o!==+o||l!==+l||a===0&&o===0||l===0)return null;var C=Ze("recharts-trapezoid",c);if(!p)return S.createElement("g",null,S.createElement("path",gp({},zn(t),{className:C,d:GP(n,r,a,o,l)})));var P=O.current,_=w.current,D=A.current,L=T.current,Z=k.current,ee="0px ".concat(x===-1?1:x,"px"),V="".concat(x,"px 0px"),ue=TR(["strokeDasharray"],h,f);return S.createElement(og,{animationId:E,key:E,canBegin:x>0,duration:h,easing:f,isActive:p,begin:m},le=>{var ce=St(P,a,le),q=St(_,o,le),G=St(D,l,le),ie=St(L,n,le),J=St(Z,r,le);v.current&&(O.current=ce,w.current=q,A.current=G,T.current=ie,k.current=J);var $=le>0?{transition:ue,strokeDasharray:V}:{strokeDasharray:ee};return S.createElement("path",gp({},zn(t),{className:C,d:GP(ie,J,ce,q,G),ref:v,style:KP(KP({},$),t.style)}))})},ioe=["option","shapeType","activeClassName"];function aoe(e,t){if(e==null)return{};var n,r,a=soe(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)&&(a[n]=e[n])}return a}function soe(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 YP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YP(Object(n),!0).forEach(function(r){ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ooe(e,t,n){return(t=loe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function loe(e){var t=uoe(e,"string");return typeof t=="symbol"?t:t+""}function uoe(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 coe(e,t){return vp(vp({},t),e)}function foe(e,t){return e==="symbols"}function WP(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return S.createElement(_R,n);case"trapezoid":return S.createElement(roe,n);case"sector":return S.createElement(zR,n);case"symbols":if(foe(t))return S.createElement(rS,n);break;case"curve":return S.createElement(Qc,n);default:return null}}function doe(e){return S.isValidElement(e)?e.props:e}function hoe(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,a=aoe(e,ioe),o;if(S.isValidElement(t))o=S.cloneElement(t,vp(vp({},a),doe(t)));else if(typeof t=="function")o=t(a,a.index);else if(Zse(t)&&typeof t!="boolean"){var l=coe(t,a);o=S.createElement(WP,{shapeType:n,elementProps:l})}else{var c=a;o=S.createElement(WP,{shapeType:n,elementProps:c})}return a.isActive?S.createElement(Ln,{className:r},o):o}var x6=(e,t,n)=>{var r=Ot();return(a,o)=>l=>{e==null||e(a,o,l),r(kL({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}},w6=e=>{var t=Ot();return(n,r)=>a=>{e==null||e(n,r,a),t(Tre())}},S6=(e,t,n)=>{var r=Ot();return(a,o)=>l=>{e==null||e(a,o,l),r(Cre({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}};function j6(e){var{tooltipEntrySettings:t}=e,n=Ot(),r=kn(),a=S.useRef(null);return S.useLayoutEffect(()=>{r||(a.current===null?n(Are(t)):a.current!==t&&n(Ere({prev:a.current,next:t})),a.current=t)},[t,n,r]),S.useLayoutEffect(()=>()=>{a.current&&(n(Nre(a.current)),a.current=null)},[n]),null}function O6(e){var{legendPayload:t}=e,n=Ot(),r=kn(),a=S.useRef(null);return S.useLayoutEffect(()=>{r||(a.current===null?n(KQ(t)):a.current!==t&&n(GQ({prev:a.current,next:t})),a.current=t)},[n,r,t]),S.useLayoutEffect(()=>()=>{a.current&&(n(YQ(a.current)),a.current=null)},[n]),null}var Yb,moe=()=>{var[e]=S.useState(()=>pf("uid-"));return e},poe=(Yb=a9.useId)!==null&&Yb!==void 0?Yb:moe;function goe(e,t){var n=poe();return t||(e?"".concat(e,"-").concat(n):n)}var voe=S.createContext(void 0),A6=e=>{var{id:t,type:n,children:r}=e,a=goe("recharts-".concat(n),t);return S.createElement(voe.Provider,{value:a},r(a))},yoe={cartesianItems:[],polarItems:[]},E6=Jn({name:"graphicalItems",initialState:yoe,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:bt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=Qr(e).cartesianItems.indexOf(n);a>-1&&(e.cartesianItems[a]=r)},prepare:bt()},removeCartesianGraphicalItem:{reducer(e,t){var n=Qr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:bt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:bt()},removePolarGraphicalItem:{reducer(e,t){var n=Qr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:bt()}}}),{addCartesianGraphicalItem:boe,replaceCartesianGraphicalItem:xoe,removeCartesianGraphicalItem:woe,addPolarGraphicalItem:eme,removePolarGraphicalItem:tme}=E6.actions,Soe=E6.reducer,joe=e=>{var t=Ot(),n=S.useRef(null);return S.useLayoutEffect(()=>{n.current===null?t(boe(e)):n.current!==e&&t(xoe({prev:n.current,next:e})),n.current=e},[t,e]),S.useLayoutEffect(()=>()=>{n.current&&(t(woe(n.current)),n.current=null)},[t]),null},N6=S.memo(joe),Ooe=["points"];function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wb(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){Aoe(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 Aoe(e,t,n){return(t=Eoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eoe(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 yp(){return yp=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},yp.apply(null,arguments)}function koe(e,t){if(e==null)return{};var n,r,a=Toe(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)&&(a[n]=e[n])}return a}function Toe(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 Coe(e){var{option:t,dotProps:n,className:r}=e;if(S.isValidElement(t))return S.cloneElement(t,n);if(typeof t=="function")return t(n);var a=Ze(r,typeof t!="boolean"?t.className:""),o=n??{},{points:l}=o,c=koe(o,Ooe);return S.createElement(g6,yp({},c,{className:a}))}function Moe(e,t){return e==null?!1:t?!0:e.length===1}function Poe(e){var{points:t,dot:n,className:r,dotClassName:a,dataKey:o,baseProps:l,needClip:c,clipPathId:f,zIndex:h=sn.scatter}=e;if(!Moe(t,n))return null;var m=b6(n),p=kG(n),v=t.map((j,O)=>{var w,A,T=Wb(Wb(Wb({r:3},l),p),{},{index:O,cx:(w=j.x)!==null&&w!==void 0?w:void 0,cy:(A=j.y)!==null&&A!==void 0?A:void 0,dataKey:o,value:j.value,payload:j.payload,points:t});return S.createElement(Coe,{key:"dot-".concat(O),option:n,dotProps:T,className:a})}),x={};return c&&f!=null&&(x.clipPath="url(#clipPath-".concat(m?"":"dots-").concat(f,")")),S.createElement(Br,{zIndex:h},S.createElement(Ln,yp({className:r},x),v))}function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ZP(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){_oe(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 _oe(e,t,n){return(t=Doe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Doe(e){var t=Roe(e,"string");return typeof t=="symbol"?t:t+""}function Roe(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 k6=0,zoe={xAxis:{},yAxis:{},zAxis:{}},T6=Jn({name:"cartesianAxis",initialState:zoe,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:bt()},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:bt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:bt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:bt()},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:bt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:bt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:bt()},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:bt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:bt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,a=e.yAxis[n];if(a){var o,l=a.widthHistory||[];if(l.length===3&&l[0]===l[2]&&r===l[1]&&r!==a.width&&Math.abs(r-((o=l[0])!==null&&o!==void 0?o:0))<=1)return;var c=[...l,r].slice(-3);e.yAxis[n]=ZP(ZP({},a),{},{width:r,widthHistory:c})}}}}),{addXAxis:Loe,replaceXAxis:Ioe,removeXAxis:Boe,addYAxis:Uoe,replaceYAxis:qoe,removeYAxis:$oe,addZAxis:nme,replaceZAxis:rme,removeZAxis:ime,updateYAxisWidth:Voe}=T6.actions,Foe=T6.reducer,Hoe=W([on],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Koe=W([Hoe,xa,wa],(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)}}),xj=()=>je(Koe),Goe=()=>je(bie);function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xb(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){Yoe(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 Yoe(e,t,n){return(t=Woe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Woe(e){var t=Xoe(e,"string");return typeof t=="symbol"?t:t+""}function Xoe(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 Qoe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:a,dataKey:o,clipPath:l}=e;if(a===!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=Xb(Xb(Xb({},c),Ff(a)),iS(a)),h;return S.isValidElement(a)?h=S.cloneElement(a,f):typeof a=="function"?h=a(f):h=S.createElement(g6,f),S.createElement(Ln,{className:"recharts-active-dot",clipPath:l},h)};function e_(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:a,clipPath:o,zIndex:l=sn.activeDot}=e,c=je(Ro),f=Goe();if(t==null||f==null)return null;var h=t.find(m=>f.includes(m.payload));return Mt(h)?null:S.createElement(Br,{zIndex:l},S.createElement(Qoe,{point:h,childIndex:Number(c),mainColor:n,dataKey:a,activeDot:r,clipPath:o}))}var t_=(e,t,n)=>{var r=n??e;if(!Mt(r))return Jr(r,t,0)},Zoe=(e,t,n)=>{var r={},a=e.filter(wg),o=e.filter(h=>h.stackId==null),l=a.reduce((h,m)=>{var p=h[m.stackId];return p==null&&(p=[]),p.push(m),h[m.stackId]=p,h},r),c=Object.entries(l).map(h=>{var m,[p,v]=h,x=v.map(O=>O.dataKey),j=t_(t,n,(m=v[0])===null||m===void 0?void 0:m.barSize);return{stackId:p,dataKeys:x,barSize:j}}),f=o.map(h=>{var m=[h.dataKey].filter(v=>v!=null),p=t_(t,n,h.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...c,...f]};function n_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n_(Object(n),!0).forEach(function(r){Joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Joe(e,t,n){return(t=ele(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ele(e){var t=tle(e,"string");return typeof t=="symbol"?t:t+""}function tle(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 nle(e,t,n,r,a){var o,l=r.length;if(!(l<1)){var c=Jr(e,n,0,!0),f,h=[];if(Ue((o=r[0])===null||o===void 0?void 0:o.barSize)){var m=!1,p=n/l,v=r.reduce((T,k)=>T+(k.barSize||0),0);v+=(l-1)*c,v>=n&&(v-=(l-1)*c,c=0),v>=n&&p>0&&(m=!0,p*=.9,v=l*p);var x=(n-v)/2>>0,j={offset:x-c,size:0};f=r.reduce((T,k)=>{var E,C={stackId:k.stackId,dataKeys:k.dataKeys,position:{offset:j.offset+j.size+c,size:m?p:(E=k.barSize)!==null&&E!==void 0?E:0}},P=[...T,C];return j=C.position,P},h)}else{var O=Jr(t,n,0,!0);n-2*O-(l-1)*c<=0&&(c=0);var w=(n-2*O-(l-1)*c)/l;w>1&&(w>>=0);var A=Ue(a)?Math.min(w,a):w;f=r.reduce((T,k,E)=>[...T,{stackId:k.stackId,dataKeys:k.dataKeys,position:{offset:O+(w+c)*E+(w-A)/2,size:A}}],h)}return f}}var rle=(e,t,n,r,a,o,l)=>{var c=Mt(l)?t:l,f=nle(n,r,a!==o?a:o,e,c);return a!==o&&f!=null&&(f=f.map(h=>Wh(Wh({},h),{},{position:Wh(Wh({},h.position),{},{offset:h.position.offset-a/2})}))),f},ile=(e,t)=>{var n=xg(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var a=e[r];if(a){var{stackedData:o}=a;if(o)return o.find(l=>l.key===n)}}}},ale=(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}};function sle(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Ue(e.zIndex)?e.zIndex:t}var ole=e=>{var{chartData:t}=e,n=Ot(),r=kn();return S.useEffect(()=>r?()=>{}:(n(fP(t)),()=>{n(fP(void 0))}),[t,n,r]),null},r_={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},C6=Jn({name:"brush",initialState:r_,reducers:{setBrushSettings(e,t){return t.payload==null?r_:t.payload}}}),{setBrushSettings:ame}=C6.actions,lle=C6.reducer;function ule(e){return(e%180+180)%180}var cle=function(t){var{width:n,height:r}=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=ule(a),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)},fle={dots:[],areas:[],lines:[]},M6=Jn({name:"referenceElements",initialState:fle,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Qr(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=Qr(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=Qr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:sme,removeDot:ome,addArea:lme,removeArea:ume,addLine:cme,removeLine:fme}=M6.actions,dle=M6.reducer,hle=S.createContext(void 0),mle=e=>{var{children:t}=e,[n]=S.useState("".concat(pf("recharts"),"-clip")),r=xj();if(r==null)return null;var{x:a,y:o,width:l,height:c}=r;return S.createElement(hle.Provider,{value:n},S.createElement("defs",null,S.createElement("clipPath",{id:n},S.createElement("rect",{x:a,y:o,height:c,width:l}))),t)};function P6(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var a=e[r];a!==void 0&&n.push(a)}return n}function ple(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return cle(r,n)}function gle(e,t,n){var r=n==="width",{x:a,y:o,width:l,height:c}=e;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function Tf(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function vle(e,t){return P6(e,t+1)}function yle(e,t,n,r,a){for(var o=(r||[]).slice(),{start:l,end:c}=t,f=0,h=1,m=l,p=function(){var j=r==null?void 0:r[f];if(j===void 0)return{v:P6(r,h)};var O=f,w,A=()=>(w===void 0&&(w=n(j,O)),w),T=j.coordinate,k=f===0||Tf(e,T,A,m,c);k||(f=0,m=l,h+=1),k&&(m=T+e*(A()/2+a),f+=h)},v;h<=o.length;)if(v=p(),v)return v.v;return[]}function ble(e,t,n,r,a){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,p=c,v=!0,x=function(){var E=r[O];if(E==null)return 0;var C=O,P,_=()=>(P===void 0&&(P=n(E,C)),P),D=E.coordinate,L=O===m||Tf(e,D,_,p,f);if(!L)return v=!1,1;L&&(p=D+e*(_()/2+a))},j,O=m;O<l&&(j=x(),!(j!==0&&j===1));O+=h);if(v){for(var w=[],A=m;A<l;A+=h){var T=r[A];T!=null&&w.push(T)}return w}}return[]}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(n),!0).forEach(function(r){xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xle(e,t,n){return(t=wle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wle(e){var t=Sle(e,"string");return typeof t=="symbol"?t:t+""}function Sle(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 jle(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,{start:c}=t,{end:f}=t,h=function(v){var x=o[v];if(x==null)return 1;var j=x,O,w=()=>(O===void 0&&(O=n(x,v)),O);if(v===l-1){var A=e*(j.coordinate+e*w()/2-f);o[v]=j=An(An({},j),{},{tickCoord:A>0?j.coordinate-A*e:j.coordinate})}else o[v]=j=An(An({},j),{},{tickCoord:j.coordinate});if(j.tickCoord!=null){var T=Tf(e,j.tickCoord,w,c,f);T&&(f=j.tickCoord-e*(w()/2+a),o[v]=An(An({},j),{},{isShow:!0}))}},m=l-1;m>=0;m--)h(m);return o}function Ole(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,{start:f,end:h}=t;if(o){var m=r[c-1];if(m!=null){var p=n(m,c-1),v=e*(m.coordinate+e*p/2-h);if(l[c-1]=m=An(An({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate}),m.tickCoord!=null){var x=Tf(e,m.tickCoord,()=>p,f,h);x&&(h=m.tickCoord-e*(p/2+a),l[c-1]=An(An({},m),{},{isShow:!0}))}}}for(var j=o?c-1:c,O=function(T){var k=l[T];if(k==null)return 1;var E=k,C,P=()=>(C===void 0&&(C=n(k,T)),C);if(T===0){var _=e*(E.coordinate-e*P()/2-f);l[T]=E=An(An({},E),{},{tickCoord:_<0?E.coordinate-_*e:E.coordinate})}else l[T]=E=An(An({},E),{},{tickCoord:E.coordinate});if(E.tickCoord!=null){var D=Tf(e,E.tickCoord,P,f,h);D&&(f=E.tickCoord+e*(P()/2+a),l[T]=An(An({},E),{},{isShow:!0}))}},w=0;w<j;w++)O(w);return l}function wj(e,t,n){var{tick:r,ticks:a,viewBox:o,minTickGap:l,orientation:c,interval:f,tickFormatter:h,unit:m,angle:p}=e;if(!a||!a.length||!r)return[];if(he(f)||Qf.isSsr){var v;return(v=vle(a,he(f)?f:0))!==null&&v!==void 0?v:[]}var x=[],j=c==="top"||c==="bottom"?"width":"height",O=m&&j==="width"?Zc(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=(C,P)=>{var _=typeof h=="function"?h(C.value,P):C.value;return j==="width"?ple(Zc(_,{fontSize:t,letterSpacing:n}),O,p):Zc(_,{fontSize:t,letterSpacing:n})[j]},A=a[0],T=a[1],k=a.length>=2&&A!=null&&T!=null?Wn(T.coordinate-A.coordinate):1,E=gle(o,k,j);return f==="equidistantPreserveStart"?yle(k,E,w,a,l):f==="equidistantPreserveEnd"?ble(k,E,w,a,l):(f==="preserveStart"||f==="preserveStartEnd"?x=Ole(k,E,w,a,l,f==="preserveStartEnd"):x=jle(k,E,w,a,l),x.filter(C=>C.isShow))}var Ale=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:a=0,tickMargin:o=0}=e,l=0;if(t){Array.from(t).forEach(m=>{if(m){var p=m.getBoundingClientRect();p.width>l&&(l=p.width)}});var c=n?n.getBoundingClientRect().width:0,f=a+o,h=l+f+c+(n?r:0);return Math.round(h)}return 0},Ele=["axisLine","width","height","className","hide","ticks","axisType"];function Nle(e,t){if(e==null)return{};var n,r,a=kle(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)&&(a[n]=e[n])}return a}function kle(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 zo(){return zo=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},zo.apply(null,arguments)}function a_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a_(Object(n),!0).forEach(function(r){Tle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tle(e,t,n){return(t=Cle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cle(e){var t=Mle(e,"string");return typeof t=="symbol"?t:t+""}function Mle(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 aa={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:sn.axis};function Ple(e){var{x:t,y:n,width:r,height:a,orientation:o,mirror:l,axisLine:c,otherSvgProps:f}=e;if(!c)return null;var h=kt(kt(kt({},f),Dr(c)),{},{fill:"none"});if(o==="top"||o==="bottom"){var m=+(o==="top"&&!l||o==="bottom"&&l);h=kt(kt({},h),{},{x1:t,y1:n+m*a,x2:t+r,y2:n+m*a})}else{var p=+(o==="left"&&!l||o==="right"&&l);h=kt(kt({},h),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return S.createElement("line",zo({},h,{className:Ze("recharts-cartesian-axis-line",lu(c,"className"))}))}function _le(e,t,n,r,a,o,l,c,f){var h,m,p,v,x,j,O=c?-1:1,w=e.tickSize||l,A=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=m=e.coordinate,v=n+ +!c*a,p=v-O*w,j=p-O*f,x=A;break;case"left":p=v=e.coordinate,m=t+ +!c*r,h=m-O*w,x=h-O*f,j=A;break;case"right":p=v=e.coordinate,m=t+ +c*r,h=m+O*w,x=h+O*f,j=A;break;default:h=m=e.coordinate,v=n+ +c*a,p=v+O*w,j=p+O*f,x=A;break}return{line:{x1:h,y1:p,x2:m,y2:v},tick:{x,y:j}}}function Dle(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Rle(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function zle(e){var{option:t,tickProps:n,value:r}=e,a,o=Ze(n.className,"recharts-cartesian-axis-tick-value");if(S.isValidElement(t))a=S.cloneElement(t,kt(kt({},n),{},{className:o}));else if(typeof t=="function")a=t(kt(kt({},n),{},{className:o}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=Ze(l,Fse(t))),a=S.createElement(yj,zo({},n,{className:l}),r)}return a}var Lle=S.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:a,stroke:o,tickFormatter:l,unit:c,padding:f,tickTextProps:h,orientation:m,mirror:p,x:v,y:x,width:j,height:O,tickSize:w,tickMargin:A,fontSize:T,letterSpacing:k,getTicksConfig:E,events:C,axisType:P}=e,_=wj(kt(kt({},E),{},{ticks:n}),T,k),D=Dle(m,p),L=Rle(m,p),Z=Dr(E),ee=Ff(r),V={};typeof a=="object"&&(V=a);var ue=kt(kt({},Z),{},{fill:"none"},V),le=_.map(G=>kt({entry:G},_le(G,v,x,j,O,m,w,p,A))),ce=le.map(G=>{var{entry:ie,line:J}=G;return S.createElement(Ln,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(ie.value,"-").concat(ie.coordinate,"-").concat(ie.tickCoord)},a&&S.createElement("line",zo({},ue,J,{className:Ze("recharts-cartesian-axis-tick-line",lu(a,"className"))})))}),q=le.map((G,ie)=>{var J,$,{entry:R,tick:Q}=G,se=kt(kt(kt(kt({verticalAnchor:L},Z),{},{textAnchor:D,stroke:"none",fill:o},Q),{},{index:ie,payload:R,visibleTicksCount:_.length,tickFormatter:l,padding:f},h),{},{angle:(J=($=h==null?void 0:h.angle)!==null&&$!==void 0?$:Z.angle)!==null&&J!==void 0?J:0}),oe=kt(kt({},se),ee);return S.createElement(Ln,zo({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(R.value,"-").concat(R.coordinate,"-").concat(R.tickCoord)},qp(C,R,ie)),r&&S.createElement(zle,{option:r,tickProps:oe,value:"".concat(typeof l=="function"?l(R.value,ie):R.value).concat(c||"")}))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(P,"-ticks")},q.length>0&&S.createElement(Br,{zIndex:sn.label},S.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(P,"-tick-labels"),ref:t},q)),ce.length>0&&S.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(P,"-tick-lines")},ce))}),Ile=S.forwardRef((e,t)=>{var{axisLine:n,width:r,height:a,className:o,hide:l,ticks:c,axisType:f}=e,h=Nle(e,Ele),[m,p]=S.useState(""),[v,x]=S.useState(""),j=S.useRef(null);S.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var w;return Ale({ticks:j.current,label:(w=e.labelRef)===null||w===void 0?void 0:w.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var O=S.useCallback(w=>{if(w){var A=w.getElementsByClassName("recharts-cartesian-axis-tick-value");j.current=A;var T=A[0];if(T){var k=window.getComputedStyle(T),E=k.fontSize,C=k.letterSpacing;(E!==m||C!==v)&&(p(E),x(C))}}},[m,v]);return l||r!=null&&r<=0||a!=null&&a<=0?null:S.createElement(Br,{zIndex:e.zIndex},S.createElement(Ln,{className:Ze("recharts-cartesian-axis",o)},S.createElement(Ple,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Dr(e)}),S.createElement(Lle,{ref:O,axisType:f,events:h,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:v,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}),S.createElement(bse,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},S.createElement(Tse,{label:e.label,labelRef:e.labelRef}),e.children)))}),Sj=S.forwardRef((e,t)=>{var n=Sn(e,aa);return S.createElement(Ile,zo({},n,{ref:t}))});Sj.displayName="CartesianAxis";var Ble=["x1","y1","x2","y2","key"],Ule=["offset"],qle=["xAxisId","yAxisId"],$le=["xAxisId","yAxisId"];function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?s_(Object(n),!0).forEach(function(r){Vle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vle(e,t,n){return(t=Fle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fle(e){var t=Hle(e,"string");return typeof t=="symbol"?t:t+""}function Hle(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 co(){return co=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},co.apply(null,arguments)}function bp(e,t){if(e==null)return{};var n,r,a=Kle(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)&&(a[n]=e[n])}return a}function Kle(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 Gle=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:a,width:o,height:l,ry:c}=e;return S.createElement("rect",{x:r,y:a,ry:c,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function _6(e){var{option:t,lineItemProps:n}=e,r;if(S.isValidElement(t))r=S.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var a,{x1:o,y1:l,x2:c,y2:f,key:h}=n,m=bp(n,Ble),p=(a=Dr(m))!==null&&a!==void 0?a:{},{offset:v}=p,x=bp(p,Ule);r=S.createElement("line",co({},x,{x1:o,y1:l,x2:c,y2:f,fill:"none",key:h}))}return r}function Yle(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=bp(e,qle),f=a.map((h,m)=>{var p=En(En({},c),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(m),index:m});return S.createElement(_6,{key:"line-".concat(m),option:r,lineItemProps:p})});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function Wle(e){var{y:t,height:n,vertical:r=!0,verticalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=bp(e,$le),f=a.map((h,m)=>{var p=En(En({},c),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(m),index:m});return S.createElement(_6,{option:r,lineItemProps:p,key:"line-".concat(m)})});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function Xle(e){var{horizontalFill:t,fillOpacity:n,x:r,y:a,width:o,height:l,horizontalPoints:c,horizontal:f=!0}=e;if(!f||!t||!t.length||c==null)return null;var h=c.map(p=>Math.round(p+a-a)).sort((p,v)=>p-v);a!==h[0]&&h.unshift(0);var m=h.map((p,v)=>{var x=h[v+1],j=x==null,O=j?a+l-p:x-p;if(O<=0)return null;var w=v%t.length;return S.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:O,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Qle(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:a,y:o,width:l,height:c,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var h=f.map(p=>Math.round(p+a-a)).sort((p,v)=>p-v);a!==h[0]&&h.unshift(0);var m=h.map((p,v)=>{var x=h[v+1],j=x==null,O=j?a+l-p:x-p;if(O<=0)return null;var w=v%n.length;return S.createElement("rect",{key:"react-".concat(v),x:p,y:o,width:O,height:c,stroke:"none",fill:n[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Zle=(e,t)=>{var{xAxis:n,width:r,height:a,offset:o}=e;return fR(wj(En(En(En({},aa),n),{},{ticks:dR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},Jle=(e,t)=>{var{yAxis:n,width:r,height:a,offset:o}=e;return fR(wj(En(En(En({},aa),n),{},{ticks:dR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},eue={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:sn.grid};function Jc(e){var t=vS(),n=yS(),r=yR(),a=En(En({},Sn(e,eue)),{},{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:p,horizontalValues:v,verticalValues:x}=a,j=kn(),O=je(L=>JM(L,"xAxis",o,j)),w=je(L=>JM(L,"yAxis",l,j));if(!Si(h)||!Si(m)||!he(c)||!he(f))return null;var A=a.verticalCoordinatesGenerator||Zle,T=a.horizontalCoordinatesGenerator||Jle,{horizontalPoints:k,verticalPoints:E}=a;if((!k||!k.length)&&typeof T=="function"){var C=v&&v.length,P=T({yAxis:w?En(En({},w),{},{ticks:C?v:w.ticks}):void 0,width:t??h,height:n??m,offset:r},C?!0:p);Fm(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(k=P)}if((!E||!E.length)&&typeof A=="function"){var _=x&&x.length,D=A({xAxis:O?En(En({},O),{},{ticks:_?x:O.ticks}):void 0,width:t??h,height:n??m,offset:r},_?!0:p);Fm(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(E=D)}return S.createElement(Br,{zIndex:a.zIndex},S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(Gle,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),S.createElement(Xle,co({},a,{horizontalPoints:k})),S.createElement(Qle,co({},a,{verticalPoints:E})),S.createElement(Yle,co({},a,{offset:r,horizontalPoints:k,xAxis:O,yAxis:w})),S.createElement(Wle,co({},a,{offset:r,verticalPoints:E,xAxis:O,yAxis:w}))))}Jc.displayName="CartesianGrid";var tue={},D6=Jn({name:"errorBars",initialState:tue,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:a}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?a:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(a=>a.dataKey!==r.dataKey||a.direction!==r.direction))}}}),{addErrorBar:dme,replaceErrorBar:hme,removeErrorBar:mme}=D6.actions,nue=D6.reducer,rue=["children"];function iue(e,t){if(e==null)return{};var n,r,a=aue(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)&&(a[n]=e[n])}return a}function aue(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 sue={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},oue=S.createContext(sue);function lue(e){var{children:t}=e,n=iue(e,rue);return S.createElement(oue.Provider,{value:n},t)}function jj(e,t){var n,r,a=je(h=>Oa(h,e)),o=je(h=>Aa(h,t)),l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:en.allowDataOverflow,c=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:tn.allowDataOverflow,f=l||c;return{needClip:f,needClipX:l,needClipY:c}}function R6(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,a=xj(),{needClipX:o,needClipY:l,needClip:c}=jj(t,n);if(!c||!a)return null;var{x:f,y:h,width:m,height:p}=a;return S.createElement("clipPath",{id:"clipPath-".concat(r)},S.createElement("rect",{x:o?f:f-m/2,y:l?h:h-p/2,width:o?m:m*2,height:l?p:p*2}))}function uue(e){var t=Ff(e),n=3,r=2;if(t!=null){var{r:a,strokeWidth:o}=t,l=Number(a),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 Qb={exports:{}},Zb={};/**
|
|
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 o_;function cue(){if(o_)return Zb;o_=1;var e=vu();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,a=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Zb.useSyncExternalStoreWithSelector=function(f,h,m,p,v){var x=a(null);if(x.current===null){var j={hasValue:!1,value:null};x.current=j}else j=x.current;x=l(function(){function w(C){if(!A){if(A=!0,T=C,C=p(C),v!==void 0&&j.hasValue){var P=j.value;if(v(P,C))return k=P}return k=C}if(P=k,n(T,C))return P;var _=p(C);return v!==void 0&&v(P,_)?(T=C,P):(T=C,k=_)}var A=!1,T,k,E=m===void 0?null:m;return[function(){return w(h())},E===null?void 0:function(){return w(E())}]},[h,m,p,v]);var O=r(f,x[0],x[1]);return o(function(){j.hasValue=!0,j.value=O},[O]),c(O),O},Zb}var l_;function fue(){return l_||(l_=1,Qb.exports=cue()),Qb.exports}fue();function due(e){e()}function hue(){let e=null,t=null;return{clear(){e=null,t=null},notify(){due(()=>{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 a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var u_={notify(){},get:()=>[]};function mue(e,t){let n,r=u_,a=0,o=!1;function l(O){m();const w=r.subscribe(O);let A=!1;return()=>{A||(A=!0,w(),p())}}function c(){r.notify()}function f(){j.onStateChange&&j.onStateChange()}function h(){return o}function m(){a++,n||(n=e.subscribe(f),r=hue())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=u_)}function v(){o||(o=!0,m())}function x(){o&&(o=!1,p())}const j={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:v,tryUnsubscribe:x,getListeners:()=>r};return j}var pue=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gue=pue(),vue=()=>typeof navigator<"u"&&navigator.product==="ReactNative",yue=vue(),bue=()=>gue||yue?S.useLayoutEffect:S.useEffect,xue=bue();function c_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function wue(e,t){if(c_(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 a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!c_(e[n[a]],t[n[a]]))return!1;return!0}var Jb=Symbol.for("react-redux-context"),ex=typeof globalThis<"u"?globalThis:{};function Sue(){if(!S.createContext)return{};const e=ex[Jb]??(ex[Jb]=new Map);let t=e.get(S.createContext);return t||(t=S.createContext(null),e.set(S.createContext,t)),t}var jue=Sue();function Oue(e){const{children:t,context:n,serverState:r,store:a}=e,o=S.useMemo(()=>{const f=mue(a);return{store:a,subscription:f,getServerState:r?()=>r:void 0}},[a,r]),l=S.useMemo(()=>a.getState(),[a]);xue(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==a.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,l]);const c=n||jue;return S.createElement(c.Provider,{value:o},t)}var Aue=Oue,Eue=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Nue(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Tg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Eue.has(r)){if(e[r]==null&&t[r]==null)continue;if(!wue(e[r],t[r]))return!1}else if(!Nue(e[r],t[r]))return!1;return!0}function Ei(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:k6}function Ni(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:k6}var z6=(e,t,n)=>As(e,"xAxis",Ei(e,t),n),L6=(e,t,n)=>Os(e,"xAxis",Ei(e,t),n),I6=(e,t,n)=>As(e,"yAxis",Ni(e,t),n),B6=(e,t,n)=>Os(e,"yAxis",Ni(e,t),n),kue=W([tt,z6,I6,L6,B6],(e,t,n,r,a)=>Ai(e,"xAxis")?cu(t,r,!1):cu(n,a,!1)),Tue=(e,t)=>t,U6=W([Og,Tue],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),q6=e=>{var t=tt(e),n=Ai(t,"xAxis");return n?"yAxis":"xAxis"},Cue=(e,t)=>{var n=q6(e);return n==="yAxis"?Ni(e,t):Ei(e,t)},Mue=(e,t,n)=>dp(e,q6(e),Cue(e,t),n),Pue=W([U6,Mue],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,a=xg(e);if(!(r==null||a==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,l=o==null?void 0:o.find(c=>c.key===a);if(l!=null)return l.map(c=>[c[0],c[1]])}}}),_ue=W([tt,z6,I6,L6,B6,Pue,bz,kue,U6,mne],(e,t,n,r,a,o,l,c,f,h)=>{var{chartData:m,dataStartIndex:p,dataEndIndex:v}=l;if(!(f==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||a==null||r.length===0||a.length===0||c==null)){var{data:x}=f,j;if(x&&x.length>0?j=x:j=m==null?void 0:m.slice(p,v+1),j!=null)return Zue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:a,dataStartIndex:p,areaSettings:f,stackedData:o,displayedData:j,chartBaseValue:h,bandSize:c})}}),Due=["id"],Rue=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];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 $6(e,t){if(e==null)return{};var n,r,a=zue(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)&&(a[n]=e[n])}return a}function zue(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 f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f_(Object(n),!0).forEach(function(r){Lue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lue(e,t,n){return(t=Iue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iue(e){var t=Bue(e,"string");return typeof t=="symbol"?t:t+""}function Bue(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 xp(e,t){return e&&e!=="none"?e:t}var Uue=e=>{var{dataKey:t,name:n,stroke:r,fill:a,legendType:o,hide:l}=e;return[{inactive:l,dataKey:t,type:o,color:xp(r,a),value:Zp(n,t),payload:e}]},que=S.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:a,fill:o,name:l,hide:c,unit:f,tooltipType:h,id:m}=e,p={dataDefinedOnItem:n,getPosition:Io,settings:{stroke:r,strokeWidth:a,fill:o,dataKey:t,nameKey:void 0,name:Zp(l,t),hide:c,type:h,color:xp(r,o),unit:f,graphicalItemId:m}};return S.createElement(j6,{tooltipEntrySettings:p})});function $ue(e){var{clipPathId:t,points:n,props:r}=e,{needClip:a,dot:o,dataKey:l}=r,c=Dr(r);return S.createElement(Poe,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:c,needClip:a,clipPathId:t})}function Vue(e){var{showLabels:t,children:n,points:r}=e,a=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 Fl(Fl({},f),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return S.createElement(h6,{value:t?a:void 0},n)}function d_(e){var{points:t,baseLine:n,needClip:r,clipPathId:a,props:o}=e,{layout:l,type:c,stroke:f,connectNulls:h,isRange:m}=o,{id:p}=o,v=$6(o,Due),x=Dr(v),j=zn(v);return S.createElement(S.Fragment,null,(t==null?void 0:t.length)>1&&S.createElement(Ln,{clipPath:r?"url(#clipPath-".concat(a,")"):void 0},S.createElement(Qc,Ao({},j,{id:p,points:t,connectNulls:h,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&S.createElement(Qc,Ao({},x,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:t})),f!=="none"&&m&&S.createElement(Qc,Ao({},x,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:n}))),S.createElement($ue,{points:t,props:v,clipPathId:a}))}function Fue(e){var t,n,{alpha:r,baseLine:a,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(!Ue(c)||!Ue(f))return null;var h=r*Math.abs(c-f),m=Math.max(...o.map(p=>p.x||0));return he(a)?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(...a.map(p=>p.x||0),m)),he(m)?S.createElement("rect",{x:0,y:c<f?c:c-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}function Hue(e){var t,n,{alpha:r,baseLine:a,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(!Ue(c)||!Ue(f))return null;var h=r*Math.abs(c-f),m=Math.max(...o.map(p=>p.y||0));return he(a)?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(...a.map(p=>p.y||0),m)),he(m)?S.createElement("rect",{x:c<f?c:c-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}function Kue(e){var{alpha:t,layout:n,points:r,baseLine:a,strokeWidth:o}=e;return n==="vertical"?S.createElement(Fue,{alpha:t,points:r,baseLine:a,strokeWidth:o}):S.createElement(Hue,{alpha:t,points:r,baseLine:a,strokeWidth:o})}function Gue(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:o}=e,{points:l,baseLine:c,isAnimationActive:f,animationBegin:h,animationDuration:m,animationEasing:p,onAnimationStart:v,onAnimationEnd:x}=r,j=S.useMemo(()=>({points:l,baseLine:c}),[l,c]),O=lg(j,"recharts-area-"),w=bS(),[A,T]=S.useState(!1),k=!A,E=S.useCallback(()=>{typeof x=="function"&&x(),T(!1)},[x]),C=S.useCallback(()=>{typeof v=="function"&&v(),T(!0)},[v]);if(w==null)return null;var P=a.current,_=o.current;return S.createElement(Vue,{showLabels:k,points:l},r.children,S.createElement(og,{animationId:O,begin:h,duration:m,isActive:f,easing:p,onAnimationEnd:E,onAnimationStart:C,key:O},D=>{if(P){var L=P.length/l.length,Z=D===1?l:l.map((V,ue)=>{var le=Math.floor(ue*L);if(P[le]){var ce=P[le];return Fl(Fl({},V),{},{x:St(ce.x,V.x,D),y:St(ce.y,V.y,D)})}return V}),ee;return he(c)?ee=St(_,c,D):Mt(c)||Zr(c)?ee=St(_,0,D):ee=c.map((V,ue)=>{var le=Math.floor(ue*L);if(Array.isArray(_)&&_[le]){var ce=_[le];return Fl(Fl({},V),{},{x:St(ce.x,V.x,D),y:St(ce.y,V.y,D)})}return V}),D>0&&(a.current=Z,o.current=ee),S.createElement(d_,{points:Z,baseLine:ee,needClip:t,clipPathId:n,props:r})}return D>0&&(a.current=l,o.current=c),S.createElement(Ln,null,f&&S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(n)},S.createElement(Kue,{alpha:D,points:l,baseLine:c,layout:w,strokeWidth:r.strokeWidth}))),S.createElement(Ln,{clipPath:"url(#animationClipPath-".concat(n,")")},S.createElement(d_,{points:l,baseLine:c,needClip:t,clipPathId:n,props:r})))}),S.createElement(p6,{label:r.label}))}function Yue(e){var{needClip:t,clipPathId:n,props:r}=e,a=S.useRef(null),o=S.useRef();return S.createElement(Gue,{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:o})}class Wue extends S.PureComponent{render(){var{hide:t,dot:n,points:r,className:a,top:o,left:l,needClip:c,xAxisId:f,yAxisId:h,width:m,height:p,id:v,baseLine:x,zIndex:j}=this.props;if(t)return null;var O=Ze("recharts-area",a),w=v,{r:A,strokeWidth:T}=uue(n),k=b6(n),E=A*2+T,C=c?"url(#clipPath-".concat(k?"":"dots-").concat(w,")"):void 0;return S.createElement(Br,{zIndex:j},S.createElement(Ln,{className:O},c&&S.createElement("defs",null,S.createElement(R6,{clipPathId:w,xAxisId:f,yAxisId:h}),!k&&S.createElement("clipPath",{id:"clipPath-dots-".concat(w)},S.createElement("rect",{x:l-E/2,y:o-E/2,width:m+E,height:p+E}))),S.createElement(Yue,{needClip:c,clipPathId:w,props:this.props})),S.createElement(e_,{points:r,mainColor:xp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:C}),this.props.isRange&&Array.isArray(x)&&S.createElement(e_,{points:x,mainColor:xp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:C}))}}var V6={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:sn.area};function Xue(e){var t,n=Sn(e,V6),{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,connectNulls:c,dot:f,fill:h,fillOpacity:m,hide:p,isAnimationActive:v,legendType:x,stroke:j,xAxisId:O,yAxisId:w}=n,A=$6(n,Rue),T=Bo(),k=KL(),{needClip:E}=jj(O,w),C=kn(),{points:P,isRange:_,baseLine:D}=(t=je(le=>_ue(le,e.id,C)))!==null&&t!==void 0?t:{},L=xj();if(T!=="horizontal"&&T!=="vertical"||L==null||k!=="AreaChart"&&k!=="ComposedChart")return null;var{height:Z,width:ee,x:V,y:ue}=L;return!P||!P.length?null:S.createElement(Wue,Ao({},A,{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,baseLine:D,connectNulls:c,dot:f,fill:h,fillOpacity:m,height:Z,hide:p,layout:T,isAnimationActive:v==="auto"?!Qf.isSsr:v,isRange:_,legendType:x,needClip:E,points:P,stroke:j,width:ee,left:V,top:ue,xAxisId:O,yAxisId:w}))}var Que=(e,t,n,r,a)=>{var o=n??t;if(he(o))return o;var l=e==="horizontal"?a: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 Zue(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:a,layout:o,chartBaseValue:l,xAxis:c,yAxis:f,displayedData:h,dataStartIndex:m,xAxisTicks:p,yAxisTicks:v,bandSize:x}=e,j=a&&a.length,O=Que(o,l,n,c,f),w=o==="horizontal",A=!1,T=h.map((E,C)=>{var P,_,D,L;if(j)L=a[m+C];else{var Z=Vt(E,r);Array.isArray(Z)?(L=Z,A=!0):L=[O,Z]}var ee=(P=(_=L)===null||_===void 0?void 0:_[1])!==null&&P!==void 0?P:null,V=ee==null||j&&!t&&Vt(E,r)==null;if(w){var ue;return{x:XT({axis:c,ticks:p,bandSize:x,entry:E,index:C}),y:V?null:(ue=f.scale.map(ee))!==null&&ue!==void 0?ue:null,value:L,payload:E}}return{x:V?null:(D=c.scale.map(ee))!==null&&D!==void 0?D:null,y:XT({axis:f,ticks:v,bandSize:x,entry:E,index:C}),value:L,payload:E}}),k;return j||A?k=T.map(E=>{var C,P=Array.isArray(E.value)?E.value[0]:null;if(w){var _;return{x:E.x,y:P!=null&&E.y!=null&&(_=f.scale.map(P))!==null&&_!==void 0?_:null,payload:E.payload}}return{x:P!=null&&(C=c.scale.map(P))!==null&&C!==void 0?C:null,y:E.y,payload:E.payload}}):k=w?f.scale.map(O):c.scale.map(O),{points:T,baseLine:k??0,isRange:A}}function Jue(e){var t=Sn(e,V6),n=kn();return S.createElement(A6,{id:t.id,type:"area"},r=>S.createElement(S.Fragment,null,S.createElement(O6,{legendPayload:Uue(t)}),S.createElement(que,{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}),S.createElement(N6,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:hR(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),S.createElement(Xue,Ao({},t,{id:r}))))}var ef=S.memo(Jue,Tg);ef.displayName="Area";var ece="Invariant failed";function tce(e,t){throw new Error(ece)}function q1(){return q1=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},q1.apply(null,arguments)}function wp(e){return S.createElement(hoe,q1({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var nce=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,a)=>{if(he(t))return t;var o=he(r)||Mt(r);return o?t(r,a):(o||tce(),n)}},rce=(e,t,n)=>n,ice=(e,t)=>t,ld=W([Og,ice],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),ace=W([ld],e=>e==null?void 0:e.maxBarSize),sce=(e,t,n,r)=>r,oce=W([tt,Og,Ei,Ni,rce],(e,t,n,r,a)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===a).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),lce=(e,t,n)=>{var r=tt(e),a=Ei(e,t),o=Ni(e,t);if(!(a==null||o==null))return r==="horizontal"?dp(e,"yAxis",o,n):dp(e,"xAxis",a,n)},uce=(e,t)=>{var n=tt(e),r=Ei(e,t),a=Ni(e,t);if(!(r==null||a==null))return n==="horizontal"?ZM(e,"xAxis",r):ZM(e,"yAxis",a)},cce=W([oce,hne,uce],Zoe),fce=(e,t,n)=>{var r,a,o=ld(e,t);if(o==null)return 0;var l=Ei(e,t),c=Ni(e,t);if(l==null||c==null)return 0;var f=tt(e),h=Mz(e),{maxBarSize:m}=o,p=Mt(m)?h:m,v,x;return f==="horizontal"?(v=As(e,"xAxis",l,n),x=Os(e,"xAxis",l,n)):(v=As(e,"yAxis",c,n),x=Os(e,"yAxis",c,n)),(r=(a=cu(v,x,!0))!==null&&a!==void 0?a:p)!==null&&r!==void 0?r:0},F6=(e,t,n)=>{var r=tt(e),a=Ei(e,t),o=Ni(e,t);if(!(a==null||o==null)){var l,c;return r==="horizontal"?(l=As(e,"xAxis",a,n),c=Os(e,"xAxis",a,n)):(l=As(e,"yAxis",o,n),c=Os(e,"yAxis",o,n)),cu(l,c)}},dce=W([cce,Mz,dne,Pz,fce,F6,ace],rle),hce=(e,t,n)=>{var r=Ei(e,t);if(r!=null)return As(e,"xAxis",r,n)},mce=(e,t,n)=>{var r=Ni(e,t);if(r!=null)return As(e,"yAxis",r,n)},pce=(e,t,n)=>{var r=Ei(e,t);if(r!=null)return Os(e,"xAxis",r,n)},gce=(e,t,n)=>{var r=Ni(e,t);if(r!=null)return Os(e,"yAxis",r,n)},vce=W([dce,ld],ale),yce=W([lce,ld],ile),bce=W([on,mS,hce,mce,pce,gce,vce,tt,bz,F6,yce,ld,sce],(e,t,n,r,a,o,l,c,f,h,m,p,v)=>{var{chartData:x,dataStartIndex:j,dataEndIndex:O}=f;if(!(p==null||l==null||t==null||c!=="horizontal"&&c!=="vertical"||n==null||r==null||a==null||o==null||h==null)){var{data:w}=p,A;if(w!=null&&w.length>0?A=w:A=x==null?void 0:x.slice(j,O+1),A!=null)return Gce({layout:c,barSettings:p,pos:l,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:a,yAxisTicks:o,stackedData:m,displayedData:A,offset:e,cells:v,dataStartIndex:j})}}),xce=["index"];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 wce(e,t){if(e==null)return{};var n,r,a=Sce(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)&&(a[n]=e[n])}return a}function Sce(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 H6=S.createContext(void 0),jce=e=>{var t=S.useContext(H6);if(t!=null)return t.stackId;if(e!=null)return hR(e)},Oce=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Ace=e=>{var t=S.useContext(H6);if(t!=null){var{stackId:n}=t;return"url(#".concat(Oce(n,e),")")}},K6=e=>{var{index:t}=e,n=wce(e,xce),r=Ace(t);return S.createElement(Ln,$1({className:"recharts-bar-stack-layer",clipPath:r},n))},Ece=["onMouseEnter","onMouseLeave","onClick"],Nce=["value","background","tooltipPosition"],kce=["id"],Tce=["onMouseEnter","onClick","onMouseLeave"];function ga(){return ga=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},ga.apply(null,arguments)}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){Cce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cce(e,t,n){return(t=Mce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mce(e){var t=Pce(e,"string");return typeof t=="symbol"?t:t+""}function Pce(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 Sp(e,t){if(e==null)return{};var n,r,a=_ce(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)&&(a[n]=e[n])}return a}function _ce(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 Dce=e=>{var{dataKey:t,name:n,fill:r,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:r,value:Zp(n,t),payload:e}]},Rce=S.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:a,name:o,hide:l,unit:c,tooltipType:f,id:h}=e,m={dataDefinedOnItem:void 0,getPosition:Io,settings:{stroke:n,strokeWidth:r,fill:a,dataKey:t,nameKey:void 0,name:Zp(o,t),hide:l,type:f,color:a,unit:c,graphicalItemId:h}};return S.createElement(j6,{tooltipEntrySettings:m})});function zce(e){var t=je(Ro),{data:n,dataKey:r,background:a,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:c,onClick:f}=o,h=Sp(o,Ece),m=x6(l,r,o.id),p=w6(c),v=S6(f,r,o.id);if(!a||n==null)return null;var x=Ff(a);return S.createElement(Br,{zIndex:sle(a,sn.barBackground)},n.map((j,O)=>{var{value:w,background:A,tooltipPosition:T}=j,k=Sp(j,Nce);if(!A)return null;var E=m(j,O),C=p(j,O),P=v(j,O),_=Pn(Pn(Pn(Pn(Pn({option:a,isActive:String(O)===t},k),{},{fill:"#eee"},A),x),qp(h,j,O)),{},{onMouseEnter:E,onMouseLeave:C,onClick:P,dataKey:r,index:O,className:"recharts-bar-background-rectangle"});return S.createElement(wp,ga({key:"background-bar-".concat(O)},_))}))}function Lce(e){var{showLabels:t,children:n,rects:r}=e,a=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 Pn(Pn({},l),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:l,fill:o.fill})});return S.createElement(h6,{value:t?a:void 0},n)}function Ice(e){var{shape:t,activeBar:n,baseProps:r,entry:a,index:o,dataKey:l}=e,c=je(Ro),f=je(VL),h=n&&String(o)===c&&(f==null||l===f),m=h?n:t;return h?S.createElement(Br,{zIndex:sn.activeBar},S.createElement(K6,{index:o},S.createElement(wp,ga({},r,{name:String(r.name)},a,{isActive:h,option:m,index:o,dataKey:l})))):S.createElement(wp,ga({},r,{name:String(r.name)},a,{isActive:h,option:m,index:o,dataKey:l}))}function Bce(e){var{shape:t,baseProps:n,entry:r,index:a,dataKey:o}=e;return S.createElement(wp,ga({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:a,dataKey:o}))}function Uce(e){var t,{data:n,props:r}=e,a=(t=Dr(r))!==null&&t!==void 0?t:{},{id:o}=a,l=Sp(a,kce),{shape:c,dataKey:f,activeBar:h}=r,{onMouseEnter:m,onClick:p,onMouseLeave:v}=r,x=Sp(r,Tce),j=x6(m,f,o),O=w6(v),w=S6(p,f,o);return n?S.createElement(S.Fragment,null,n.map((A,T)=>S.createElement(K6,ga({index:T,key:"rectangle-".concat(A==null?void 0:A.x,"-").concat(A==null?void 0:A.y,"-").concat(A==null?void 0:A.value,"-").concat(T),className:"recharts-bar-rectangle"},qp(x,A,T),{onMouseEnter:j(A,T),onMouseLeave:O(A,T),onClick:w(A,T)}),h?S.createElement(Ice,{shape:c,activeBar:h,baseProps:l,entry:A,index:T,dataKey:f}):S.createElement(Bce,{shape:c,baseProps:l,entry:A,index:T,dataKey:f})))):null}function qce(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:a,isAnimationActive:o,animationBegin:l,animationDuration:c,animationEasing:f,onAnimationEnd:h,onAnimationStart:m}=t,p=n.current,v=lg(t,"recharts-bar-"),[x,j]=S.useState(!1),O=!x,w=S.useCallback(()=>{typeof h=="function"&&h(),j(!1)},[h]),A=S.useCallback(()=>{typeof m=="function"&&m(),j(!0)},[m]);return S.createElement(Lce,{showLabels:O,rects:r},S.createElement(og,{animationId:v,begin:l,duration:c,isActive:o,easing:f,onAnimationEnd:w,onAnimationStart:A,key:v},T=>{var k=T===1?r:r==null?void 0:r.map((E,C)=>{var P=p&&p[C];if(P)return Pn(Pn({},E),{},{x:St(P.x,E.x,T),y:St(P.y,E.y,T),width:St(P.width,E.width,T),height:St(P.height,E.height,T)});if(a==="horizontal"){var _=St(0,E.height,T),D=St(E.stackedBarStart,E.y,T);return Pn(Pn({},E),{},{y:D,height:_})}var L=St(0,E.width,T),Z=St(E.stackedBarStart,E.x,T);return Pn(Pn({},E),{},{width:L,x:Z})});return T>0&&(n.current=k??null),k==null?null:S.createElement(Ln,null,S.createElement(Uce,{props:t,data:k}))}),S.createElement(p6,{label:t.label}),t.children)}function $ce(e){var t=S.useRef(null);return S.createElement(qce,{previousRectanglesRef:t,props:e})}var G6=0,Vce=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Vt(e,t)}};class Fce extends S.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:a,xAxisId:o,yAxisId:l,needClip:c,background:f,id:h}=this.props;if(t||n==null)return null;var m=Ze("recharts-bar",a),p=h;return S.createElement(Ln,{className:m,id:h},c&&S.createElement("defs",null,S.createElement(R6,{clipPathId:p,xAxisId:o,yAxisId:l})),S.createElement(Ln,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(p,")"):void 0},S.createElement(zce,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),S.createElement($ce,this.props)))}}var Hce={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:sn.bar};function Kce(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m}=e,{needClip:p}=jj(t,n),v=Bo(),x=kn(),j=Yse(e.children,t6),O=je(T=>bce(T,e.id,x,j));if(v!=="vertical"&&v!=="horizontal")return null;var w,A=O==null?void 0:O[0];return A==null||A.height==null||A.width==null?w=0:w=v==="vertical"?A.height/2:A.width/2,S.createElement(lue,{xAxisId:t,yAxisId:n,data:O,dataPointFormatter:Vce,errorBarOffset:w},S.createElement(Fce,ga({},e,{layout:v,needClip:p,data:O,xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m})))}function Gce(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:a,bandSize:o,xAxis:l,yAxis:c,xAxisTicks:f,yAxisTicks:h,stackedData:m,displayedData:p,offset:v,cells:x,parentViewBox:j,dataStartIndex:O}=e,w=t==="horizontal"?c:l,A=m?w.scale.domain():null,T=YX({numericAxis:w}),k=w.scale.map(T);return p.map((E,C)=>{var P,_,D,L,Z,ee;if(m){var V=m[C+O];if(V==null)return null;P=VX(V,A)}else P=Vt(E,n),Array.isArray(P)||(P=[T,P]);var ue=nce(r,G6)(P[1],C);if(t==="horizontal"){var le,ce=c.scale.map(P[0]),q=c.scale.map(P[1]);if(ce==null||q==null)return null;_=QT({axis:l,ticks:f,bandSize:o,offset:a.offset,entry:E,index:C}),D=(le=q??ce)!==null&&le!==void 0?le:void 0,L=a.size;var G=ce-q;if(Z=Zr(G)?0:G,ee={x:_,y:v.top,width:L,height:v.height},Math.abs(ue)>0&&Math.abs(Z)<Math.abs(ue)){var ie=Wn(Z||ue)*(Math.abs(ue)-Math.abs(Z));D-=ie,Z+=ie}}else{var J=l.scale.map(P[0]),$=l.scale.map(P[1]);if(J==null||$==null)return null;if(_=J,D=QT({axis:c,ticks:h,bandSize:o,offset:a.offset,entry:E,index:C}),L=$-J,Z=a.size,ee={x:v.left,y:D,width:v.width,height:Z},Math.abs(ue)>0&&Math.abs(L)<Math.abs(ue)){var R=Wn(L||ue)*(Math.abs(ue)-Math.abs(L));L+=R}}if(_==null||D==null||L==null||Z==null)return null;var Q=Pn(Pn({},E),{},{stackedBarStart:k,x:_,y:D,width:L,height:Z,value:m?P:P[1],payload:E,background:ee,tooltipPosition:{x:_+L/2,y:D+Z/2},parentViewBox:j},x&&x[C]&&x[C].props);return Q}).filter(Boolean)}function Yce(e){var t=Sn(e,Hce),n=jce(t.stackId),r=kn();return S.createElement(A6,{id:t.id,type:"bar"},a=>S.createElement(S.Fragment,null,S.createElement(O6,{legendPayload:Dce(t)}),S.createElement(Rce,{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:a}),S.createElement(N6,{type:"bar",id:a,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}),S.createElement(Br,{zIndex:t.zIndex},S.createElement(Kce,ga({},t,{id:a})))))}var pm=S.memo(Yce,Tg);pm.displayName="Bar";var Wce=["domain","range"],Xce=["domain","range"];function m_(e,t){if(e==null)return{};var n,r,a=Qce(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)&&(a[n]=e[n])}return a}function Qce(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 p_(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 Y6(e,t){if(e===t)return!0;var{domain:n,range:r}=e,a=m_(e,Wce),{domain:o,range:l}=t,c=m_(t,Xce);return!p_(n,o)||!p_(r,l)?!1:Tg(a,c)}var Zce=["type"],Jce=["dangerouslySetInnerHTML","ticks","scale"],efe=["id","scale"];function V1(){return V1=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},V1.apply(null,arguments)}function g_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g_(Object(n),!0).forEach(function(r){tfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tfe(e,t,n){return(t=nfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nfe(e){var t=rfe(e,"string");return typeof t=="symbol"?t:t+""}function rfe(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 F1(e,t){if(e==null)return{};var n,r,a=ife(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)&&(a[n]=e[n])}return a}function ife(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 afe(e){var t=Ot(),n=S.useRef(null),r=bS(),{type:a}=e,o=F1(e,Zce),l=vg(r,"xAxis",a),c=S.useMemo(()=>{if(l!=null)return v_(v_({},o),{},{type:l})},[o,l]);return S.useLayoutEffect(()=>{c!=null&&(n.current===null?t(Loe(c)):n.current!==c&&t(Ioe({prev:n.current,next:c})),n.current=c)},[c,t]),S.useLayoutEffect(()=>()=>{n.current&&(t(Boe(n.current)),n.current=null)},[t]),null}var sfe=e=>{var{xAxisId:t,className:n}=e,r=je(mS),a=kn(),o="xAxis",l=je(A=>SL(A,o,t,a)),c=je(A=>yL(A,t)),f=je(A=>pre(A,t)),h=je(A=>qz(A,t));if(c==null||f==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:p,scale:v}=e,x=F1(e,Jce),{id:j,scale:O}=h,w=F1(h,efe);return S.createElement(Sj,V1({},x,w,{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}))},ofe={allowDataOverflow:en.allowDataOverflow,allowDecimals:en.allowDecimals,allowDuplicatedCategory:en.allowDuplicatedCategory,angle:en.angle,axisLine:aa.axisLine,height:en.height,hide:!1,includeHidden:en.includeHidden,interval:en.interval,label:!1,minTickGap:en.minTickGap,mirror:en.mirror,orientation:en.orientation,padding:en.padding,reversed:en.reversed,scale:en.scale,tick:en.tick,tickCount:en.tickCount,tickLine:aa.tickLine,tickSize:aa.tickSize,type:en.type,xAxisId:0},lfe=e=>{var t=Sn(e,ofe);return S.createElement(S.Fragment,null,S.createElement(afe,{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}),S.createElement(sfe,t))},tf=S.memo(lfe,Y6);tf.displayName="XAxis";var ufe=["type"],cfe=["dangerouslySetInnerHTML","ticks","scale"],ffe=["id","scale"];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 y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function b_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){dfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dfe(e,t,n){return(t=hfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hfe(e){var t=mfe(e,"string");return typeof t=="symbol"?t:t+""}function mfe(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 K1(e,t){if(e==null)return{};var n,r,a=pfe(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)&&(a[n]=e[n])}return a}function pfe(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 gfe(e){var t=Ot(),n=S.useRef(null),r=bS(),{type:a}=e,o=K1(e,ufe),l=vg(r,"yAxis",a),c=S.useMemo(()=>{if(l!=null)return b_(b_({},o),{},{type:l})},[l,o]);return S.useLayoutEffect(()=>{c!=null&&(n.current===null?t(Uoe(c)):n.current!==c&&t(qoe({prev:n.current,next:c})),n.current=c)},[c,t]),S.useLayoutEffect(()=>()=>{n.current&&(t($oe(n.current)),n.current=null)},[t]),null}function vfe(e){var{yAxisId:t,className:n,width:r,label:a}=e,o=S.useRef(null),l=S.useRef(null),c=je(mS),f=kn(),h=Ot(),m="yAxis",p=je(P=>bL(P,t)),v=je(P=>vre(P,t)),x=je(P=>SL(P,m,t,f)),j=je(P=>$z(P,t));if(S.useLayoutEffect(()=>{if(!(r!=="auto"||!p||bj(a)||S.isValidElement(a)||j==null)){var P=o.current;if(P){var _=P.getCalculatedWidth();Math.round(p.width)!==Math.round(_)&&h(Voe({id:t,width:_}))}}},[x,p,h,a,t,r,j]),p==null||v==null||j==null)return null;var{dangerouslySetInnerHTML:O,ticks:w,scale:A}=e,T=K1(e,cfe),{id:k,scale:E}=j,C=K1(j,ffe);return S.createElement(Sj,H1({},T,C,{ref:o,labelRef:l,x:v.x,y:v.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:Ze("recharts-".concat(m," ").concat(m),n),viewBox:c,ticks:x,axisType:m}))}var yfe={allowDataOverflow:tn.allowDataOverflow,allowDecimals:tn.allowDecimals,allowDuplicatedCategory:tn.allowDuplicatedCategory,angle:tn.angle,axisLine:aa.axisLine,hide:!1,includeHidden:tn.includeHidden,interval:tn.interval,label:!1,minTickGap:tn.minTickGap,mirror:tn.mirror,orientation:tn.orientation,padding:tn.padding,reversed:tn.reversed,scale:tn.scale,tick:tn.tick,tickCount:tn.tickCount,tickLine:aa.tickLine,tickSize:aa.tickSize,type:tn.type,width:tn.width,yAxisId:0},bfe=e=>{var t=Sn(e,yfe);return S.createElement(S.Fragment,null,S.createElement(gfe,{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}),S.createElement(vfe,t))},nf=S.memo(bfe,Y6);nf.displayName="YAxis";var xfe=(e,t)=>t,Oj=W([xfe,tt,Bz,cn,BL,Ea,Mie,on],Iie),Aj=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)}},W6=Rr("mouseClick"),X6=Gf();X6.startListening({actionCreator:W6,effect:(e,t)=>{var n=e.payload,r=Oj(t.getState(),Aj(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Mre({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var G1=Rr("mouseMove"),Q6=Gf(),Xh=null;Q6.startListening({actionCreator:G1,effect:(e,t)=>{var n=e.payload;Xh!==null&&cancelAnimationFrame(Xh);var r=Aj(n);Xh=requestAnimationFrame(()=>{var a=t.getState(),o=lj(a,a.tooltip.settings.shared);if(o==="axis"){var l=Oj(a,r);(l==null?void 0:l.activeIndex)!=null?t.dispatch(CL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate})):t.dispatch(TL())}Xh=null})}});function wfe(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 x_={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},Z6=Jn({name:"rootProps",initialState:x_,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:x_.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}}}),Sfe=Z6.reducer,{updateOptions:jfe}=Z6.actions,Ofe=null,Afe={updatePolarOptions:(e,t)=>t.payload},J6=Jn({name:"polarOptions",initialState:Ofe,reducers:Afe}),{updatePolarOptions:pme}=J6.actions,Efe=J6.reducer,eI=Rr("keyDown"),tI=Rr("focus"),Ej=Gf();Ej.startListening({actionCreator:eI,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:a}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var l=uj(a,Pu(n),id(n),sd(n)),c=l==null?-1:Number(l);if(!(!Number.isFinite(c)||c<0)){var f=Ea(n);if(o==="Enter"){var h=mp(n,"axis","hover",String(a.index));t.dispatch(z1({active:!a.active,activeIndex:a.index,activeCoordinate:h}));return}var m=wre(n),p=m==="left-to-right"?1:-1,v=o==="ArrowRight"?1:-1,x=c+v*p;if(!(f==null||x>=f.length||x<0)){var j=mp(n,"axis","hover",String(x));t.dispatch(z1({active:!0,activeIndex:x.toString(),activeCoordinate:j}))}}}}}});Ej.startListening({actionCreator:tI,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:a}=n.tooltip;if(!a.active&&a.index==null){var o="0",l=mp(n,"axis","hover",String(o));t.dispatch(z1({active:!0,activeIndex:o,activeCoordinate:l}))}}}});var Er=Rr("externalEvent"),nI=Gf(),tx=new Map;nI.startListening({actionCreator:Er,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var a=r.type,o=tx.get(a);o!==void 0&&cancelAnimationFrame(o);var l=requestAnimationFrame(()=>{try{var c=t.getState(),f={activeCoordinate:gie(c),activeDataKey:VL(c),activeIndex:Ro(c),activeLabel:$L(c),activeTooltipIndex:Ro(c),isTooltipActive:vie(c)};n(f,r)}finally{tx.delete(a)}});tx.set(a,l)}}});var Nfe=W([Cu],e=>e.tooltipItemPayloads),kfe=W([Nfe,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var{getPosition:a}=r;if(a!=null)return a(t)}}}),rI=Rr("touchMove"),iI=Gf();iI.startListening({actionCreator:rI,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),a=lj(r,r.tooltip.settings.shared);if(a==="axis"){var o=n.touches[0];if(o==null)return;var l=Oj(r,Aj({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(l==null?void 0:l.activeIndex)!=null&&t.dispatch(CL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate}))}else if(a==="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(tQ),p=(c=h.getAttribute(nQ))!==null&&c!==void 0?c:void 0,v=Mu(r).find(O=>O.id===p);if(m==null||v==null||p==null)return;var{dataKey:x}=v,j=kfe(r,m,p);t.dispatch(kL({activeDataKey:x,activeIndex:m,activeCoordinate:j,activeGraphicalItemId:p}))}}}});var Tfe=z4({brush:lle,cartesianAxis:Foe,chartData:pae,errorBars:nue,graphicalItems:Soe,layout:IX,legend:WQ,options:cae,polarAxis:Vse,polarOptions:Efe,referenceElements:dle,rootProps:Sfe,tooltip:Pre,zIndex:Zie}),Cfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return uX({reducer:Tfe,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([X6.middleware,Q6.middleware,Ej.middleware,nI.middleware,iI.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(Q4({type:"raf"}))},devTools:{serialize:{replacer:wfe},name:"recharts-".concat(n)}})};function Mfe(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,a=kn(),o=S.useRef(null);if(a)return n;o.current==null&&(o.current=Cfe(t,r));var l=oS;return S.createElement(Aue,{context:l,store:o.current},n)}function Pfe(e){var{layout:t,margin:n}=e,r=Ot(),a=kn();return S.useEffect(()=>{a||(r(RX(t)),r(DX(n)))},[r,a,t,n]),null}var _fe=S.memo(Pfe,Tg);function Dfe(e){var t=Ot();return S.useEffect(()=>{t(jfe(e))},[t,e]),null}function w_(e){var{zIndex:t,isPanorama:n}=e,r=S.useRef(null),a=Ot();return S.useLayoutEffect(()=>(r.current&&a(Xie({zIndex:t,element:r.current,isPanorama:n})),()=>{a(Qie({zIndex:t,isPanorama:n}))}),[a,t,n]),S.createElement("g",{tabIndex:-1,ref:r})}function S_(e){var{children:t,isPanorama:n}=e,r=je(Uie);if(!r||r.length===0)return t;var a=r.filter(l=>l<0),o=r.filter(l=>l>0);return S.createElement(S.Fragment,null,a.map(l=>S.createElement(w_,{key:l,zIndex:l,isPanorama:n})),t,o.map(l=>S.createElement(w_,{key:l,zIndex:l,isPanorama:n})))}var Rfe=["children"];function zfe(e,t){if(e==null)return{};var n,r,a=Lfe(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)&&(a[n]=e[n])}return a}function Lfe(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(){return jp=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},jp.apply(null,arguments)}var Ife={width:"100%",height:"100%",display:"block"},Bfe=S.forwardRef((e,t)=>{var n=vS(),r=yS(),a=kR();if(!Si(n)||!Si(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=a?0:void 0,typeof l.role=="string"?m=l.role:m=a?"application":void 0),S.createElement(Xw,jp({},l,{title:c,desc:f,role:m,tabIndex:h,width:n,height:r,style:Ife,ref:t}),o)}),Ufe=e=>{var{children:t}=e,n=je(ng);if(!n)return null;var{width:r,height:a,y:o,x:l}=n;return S.createElement(Xw,{width:r,height:a,x:l,y:o},t)},j_=S.forwardRef((e,t)=>{var{children:n}=e,r=zfe(e,Rfe),a=kn();return a?S.createElement(Ufe,null,S.createElement(S_,{isPanorama:!0},n)):S.createElement(Bfe,jp({ref:t},r),S.createElement(S_,{isPanorama:!1},n))});function qfe(){var e=Ot(),[t,n]=S.useState(null),r=je(eQ);return S.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),o=a.width/t.offsetWidth;Ue(o)&&o!==r&&e(LX(o))}},[t,e,r]),n}function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(n),!0).forEach(function(r){Vfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(e,t,n){return(t=Ffe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ffe(e){var t=Hfe(e,"string");return typeof t=="symbol"?t:t+""}function Hfe(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 Ss(){return Ss=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},Ss.apply(null,arguments)}var Kfe=()=>(Oae(),null);function Op(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Gfe=S.forwardRef((e,t)=>{var n,r,a=S.useRef(null),[o,l]=S.useState({containerWidth:Op((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Op((r=e.style)===null||r===void 0?void 0:r.height)}),c=S.useCallback((h,m)=>{l(p=>{var v=Math.round(h),x=Math.round(m);return p.containerWidth===v&&p.containerHeight===x?p:{containerWidth:v,containerHeight:x}})},[]),f=S.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:m,height:p}=h.getBoundingClientRect();c(m,p);var v=j=>{var O=j[0];if(O!=null){var{width:w,height:A}=O.contentRect;c(w,A)}},x=new ResizeObserver(v);x.observe(h),a.current=x}},[t,c]);return S.useEffect(()=>()=>{var h=a.current;h!=null&&h.disconnect()},[c]),S.createElement(S.Fragment,null,S.createElement(Wf,{width:o.containerWidth,height:o.containerHeight}),S.createElement("div",Ss({ref:f},e)))}),Yfe=S.forwardRef((e,t)=>{var{width:n,height:r}=e,[a,o]=S.useState({containerWidth:Op(n),containerHeight:Op(r)}),l=S.useCallback((f,h)=>{o(m=>{var p=Math.round(f),v=Math.round(h);return m.containerWidth===p&&m.containerHeight===v?m:{containerWidth:p,containerHeight:v}})},[]),c=S.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:h,height:m}=f.getBoundingClientRect();l(h,m)}},[t,l]);return S.createElement(S.Fragment,null,S.createElement(Wf,{width:a.containerWidth,height:a.containerHeight}),S.createElement("div",Ss({ref:c},e)))}),Wfe=S.forwardRef((e,t)=>{var{width:n,height:r}=e;return S.createElement(S.Fragment,null,S.createElement(Wf,{width:n,height:r}),S.createElement("div",Ss({ref:t},e)))}),Xfe=S.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?S.createElement(Yfe,Ss({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?S.createElement(Wfe,Ss({},e,{width:n,height:r,ref:t})):S.createElement(S.Fragment,null,S.createElement(Wf,{width:n,height:r}),S.createElement("div",Ss({ref:t},e)))});function Qfe(e){return e?Gfe:Xfe}var Zfe=S.forwardRef((e,t)=>{var{children:n,className:r,height:a,onClick:o,onContextMenu:l,onDoubleClick:c,onMouseDown:f,onMouseEnter:h,onMouseLeave:m,onMouseMove:p,onMouseUp:v,onTouchEnd:x,onTouchMove:j,onTouchStart:O,style:w,width:A,responsive:T,dispatchTouchEvents:k=!0}=e,E=S.useRef(null),C=Ot(),[P,_]=S.useState(null),[D,L]=S.useState(null),Z=qfe(),ee=pS(),V=(ee==null?void 0:ee.width)>0?ee.width:A,ue=(ee==null?void 0:ee.height)>0?ee.height:a,le=S.useCallback(Y=>{Z(Y),typeof t=="function"&&t(Y),_(Y),L(Y),Y!=null&&(E.current=Y)},[Z,t,_,L]),ce=S.useCallback(Y=>{C(W6(Y)),C(Er({handler:o,reactEvent:Y}))},[C,o]),q=S.useCallback(Y=>{C(G1(Y)),C(Er({handler:h,reactEvent:Y}))},[C,h]),G=S.useCallback(Y=>{C(TL()),C(Er({handler:m,reactEvent:Y}))},[C,m]),ie=S.useCallback(Y=>{C(G1(Y)),C(Er({handler:p,reactEvent:Y}))},[C,p]),J=S.useCallback(()=>{C(tI())},[C]),$=S.useCallback(Y=>{C(eI(Y.key))},[C]),R=S.useCallback(Y=>{C(Er({handler:l,reactEvent:Y}))},[C,l]),Q=S.useCallback(Y=>{C(Er({handler:c,reactEvent:Y}))},[C,c]),se=S.useCallback(Y=>{C(Er({handler:f,reactEvent:Y}))},[C,f]),oe=S.useCallback(Y=>{C(Er({handler:v,reactEvent:Y}))},[C,v]),fe=S.useCallback(Y=>{C(Er({handler:O,reactEvent:Y}))},[C,O]),me=S.useCallback(Y=>{k&&C(rI(Y)),C(Er({handler:j,reactEvent:Y}))},[C,k,j]),Se=S.useCallback(Y=>{C(Er({handler:x,reactEvent:Y}))},[C,x]),Xe=Qfe(T);return S.createElement(QL.Provider,{value:P},S.createElement(J3.Provider,{value:D},S.createElement(Xe,{width:V??(w==null?void 0:w.width),height:ue??(w==null?void 0:w.height),className:Ze("recharts-wrapper",r),style:$fe({position:"relative",cursor:"default",width:V,height:ue},w),onClick:ce,onContextMenu:R,onDoubleClick:Q,onFocus:J,onKeyDown:$,onMouseDown:se,onMouseEnter:q,onMouseLeave:G,onMouseMove:ie,onMouseUp:oe,onTouchEnd:Se,onTouchMove:me,onTouchStart:fe,ref:le},S.createElement(Kfe,null),n)))}),Jfe=["width","height","responsive","children","className","style","compact","title","desc"];function ede(e,t){if(e==null)return{};var n,r,a=tde(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)&&(a[n]=e[n])}return a}function tde(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 nde=S.forwardRef((e,t)=>{var{width:n,height:r,responsive:a,children:o,className:l,style:c,compact:f,title:h,desc:m}=e,p=ede(e,Jfe),v=Dr(p);return f?S.createElement(S.Fragment,null,S.createElement(Wf,{width:n,height:r}),S.createElement(j_,{otherAttributes:v,title:h,desc:m},o)):S.createElement(Zfe,{className:l,style:c,width:n,height:r,responsive:a??!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},S.createElement(j_,{otherAttributes:v,title:h,desc:m,ref:t},S.createElement(mle,null,o)))});function Y1(){return Y1=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},Y1.apply(null,arguments)}var rde={top:5,right:5,bottom:5,left:5},ide={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:rde,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},aI=S.forwardRef(function(t,n){var r,a=Sn(t.categoricalChartProps,ide),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,categoricalChartProps:h}=t,m={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return S.createElement(Mfe,{preloadedState:{options:m},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},S.createElement(ole,{chartData:h.data}),S.createElement(_fe,{layout:a.layout,margin:a.margin}),S.createElement(Dfe,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),S.createElement(nde,Y1({},a,{ref:n})))}),ade=["axis","item"],sde=S.forwardRef((e,t)=>S.createElement(aI,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:ade,tooltipPayloadSearcher:ZL,categoricalChartProps:e,ref:t})),ode=["axis"],W1=S.forwardRef((e,t)=>S.createElement(aI,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:ode,tooltipPayloadSearcher:ZL,categoricalChartProps:e,ref:t}));function lde(){var P;const[e,t]=_e.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(_=>_.json()),refetchInterval:3e4}),{isPending:a,data:o}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(_=>_.json()),staleTime:1/0}),{data:l}=Nn({queryKey:["workers"],queryFn:()=>fetch("/api/workers").then(_=>_.json()),staleTime:1/0}),c=va();_e.useEffect(()=>{const _=D=>{const L=D.detail;L&&(L.queues&&c.setQueryData(["queues"],{queues:L.queues}),L.workers&&c.setQueryData(["workers"],{workers:L.workers}),L.throughput&&c.setQueryData(["throughput"],L.throughput))};return window.addEventListener("flux-stats-update",_),()=>window.removeEventListener("flux-stats-update",_)},[c]);const f=(r==null?void 0:r.history)||{},h=(o==null?void 0:o.queues)||[],m=(l==null?void 0:l.workers)||[],p=(n==null?void 0:n.map(_=>({time:_.timestamp,value:_.count})))||[],v=h.reduce((_,D)=>_+D.waiting,0),x=h.reduce((_,D)=>_+D.delayed,0),j=h.reduce((_,D)=>_+D.failed,0),O=h.reduce((_,D)=>_+D.active,0),w=((P=p[p.length-1])==null?void 0:P.value)||0,A=p.length>0?Math.round(p.reduce((_,D)=>_+D.value,0)/p.length):0,T=p.length>0?Math.max(...p.map(_=>_.value)):0,k=h.slice(0,10).map(_=>({name:_.name.length>12?`${_.name.slice(0,12)}...`:_.name,waiting:_.waiting,delayed:_.delayed,failed:_.failed})),C=Array.from({length:15},(_,D)=>`${14-D}m ago`).map((_,D)=>{var L,Z,ee,V;return{time:_,waiting:((L=f.waiting)==null?void 0:L[D])||0,delayed:((Z=f.delayed)==null?void 0:Z[D])||0,failed:((ee=f.failed)==null?void 0:ee[D])||0,workers:((V=f.workers)==null?void 0:V[D])||0}});return a?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(na,{className:"animate-spin text-primary",size:48}),g.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading metrics..."})]}):g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Metrics"}),g.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Real-time performance analytics and trends."})]}),g.jsx("div",{className:"flex items-center gap-2",children:["15m","1h","6h","24h"].map(_=>g.jsx("button",{type:"button",onClick:()=>t(_),className:Me("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",e===_?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"hover:bg-muted text-muted-foreground"),children:_},_))})]}),g.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-4",children:[g.jsx(_l,{icon:fD,label:"Waiting",value:v,color:"amber"}),g.jsx(_l,{icon:gi,label:"Delayed",value:x,color:"blue"}),g.jsx(_l,{icon:Zn,label:"Active",value:O,color:"green"}),g.jsx(_l,{icon:cD,label:"Failed",value:j,color:"red"}),g.jsx(_l,{icon:uD,label:"Workers",value:m.length,color:"indigo"}),g.jsx(_l,{icon:WE,label:"Jobs/min",value:w,color:"primary"})]}),g.jsxs("div",{className:"card-premium p-6",children:[g.jsxs("div",{className:"flex justify-between items-start mb-6",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(L9,{size:20,className:"text-primary"}),g.jsx("h3",{className:"text-xl font-bold tracking-tight",children:"Throughput Over Time"})]}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),g.jsx("div",{className:"text-right",children:g.jsxs("div",{className:"flex gap-6",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Current"}),g.jsx("p",{className:"text-2xl font-black text-primary",children:w})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Average"}),g.jsx("p",{className:"text-2xl font-black",children:A})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Peak"}),g.jsx("p",{className:"text-2xl font-black text-green-500",children:T})]})]})})]}),g.jsx("div",{className:"h-[300px]",children:g.jsx(cm,{width:"100%",height:"100%",children:g.jsxs(W1,{data:p,margin:{top:10,right:10,left:-20,bottom:0},children:[g.jsx("defs",{children:g.jsxs("linearGradient",{id:"colorThroughput",x1:"0",y1:"0",x2:"0",y2:"1",children:[g.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.5}),g.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),g.jsx(Jc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),g.jsx(tf,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"}}),g.jsx(nf,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"}}),g.jsx(dm,{contentStyle:{backgroundColor:"rgba(9, 9, 11, 0.95)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"12px",fontSize:"11px",fontFamily:"Fira Code",backdropFilter:"blur(8px)"}}),g.jsx(ef,{type:"monotone",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorThroughput)",strokeWidth:3})]})})})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"card-premium p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[g.jsx(oD,{size:20,className:"text-primary"}),g.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"Queue Distribution"})]}),g.jsx("div",{className:"h-[300px]",children:g.jsx(cm,{width:"100%",height:"100%",children:g.jsxs(sde,{data:k,margin:{top:10,right:10,left:-20,bottom:40},children:[g.jsx(Jc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(tf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"},angle:-45,textAnchor:"end"}),g.jsx(nf,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"}}),g.jsx(dm,{contentStyle:{backgroundColor:"rgba(9, 9, 11, 0.95)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"12px",fontSize:"11px",fontFamily:"Fira Code",backdropFilter:"blur(8px)"}}),g.jsx(NR,{iconType:"circle"}),g.jsx(pm,{dataKey:"waiting",fill:"#F59E0B",name:"Waiting",radius:[4,4,0,0]}),g.jsx(pm,{dataKey:"delayed",fill:"#3B82F6",name:"Delayed",radius:[4,4,0,0]}),g.jsx(pm,{dataKey:"failed",fill:"#EF4444",name:"Failed",radius:[4,4,0,0]})]})})})]}),g.jsxs("div",{className:"card-premium p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[g.jsx(WE,{size:20,className:"text-primary"}),g.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"15-Minute Trends"})]}),g.jsx("div",{className:"h-[300px]",children:g.jsx(cm,{width:"100%",height:"100%",children:g.jsxs(W1,{data:C,margin:{top:10,right:10,left:-20,bottom:0},children:[g.jsxs("defs",{children:[g.jsxs("linearGradient",{id:"colorWaiting",x1:"0",y1:"0",x2:"0",y2:"1",children:[g.jsx("stop",{offset:"5%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:.3}),g.jsx("stop",{offset:"95%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:0})]}),g.jsxs("linearGradient",{id:"colorFailed",x1:"0",y1:"0",x2:"0",y2:"1",children:[g.jsx("stop",{offset:"5%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:.3}),g.jsx("stop",{offset:"95%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:0})]})]}),g.jsx(Jc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(tf,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(nf,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(dm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),g.jsx(ef,{type:"monotone",dataKey:"waiting",stroke:"hsl(45, 93%, 47%)",fill:"url(#colorWaiting)",strokeWidth:2}),g.jsx(ef,{type:"monotone",dataKey:"failed",stroke:"hsl(0, 84%, 60%)",fill:"url(#colorFailed)",strokeWidth:2})]})})})]})]})]})}function _l({icon:e,label:t,value:n,color:r}){var o;const a={amber:"text-amber-500 bg-amber-500/10 border-amber-500/20 shadow-[0_0_15px_rgba(245,158,11,0.05)]",blue:"text-blue-500 bg-blue-500/10 border-blue-500/20 shadow-[0_0_15px_rgba(59,130,246,0.05)]",green:"text-emerald-500 bg-emerald-500/10 border-emerald-500/20 shadow-[0_0_15px_rgba(16,185,129,0.05)]",red:"text-red-500 bg-red-500/10 border-red-500/20 shadow-[0_0_15px_rgba(239,68,68,0.05)]",indigo:"text-indigo-400 bg-indigo-500/10 border-indigo-500/20 shadow-[0_0_15px_rgba(99,102,241,0.05)]",primary:"text-primary bg-primary/10 border-primary/20 shadow-[0_0_15px_rgba(0,240,255,0.05)]"};return g.jsxs("div",{className:Me("card-premium p-4 flex items-center gap-4 border-l-4",(o=a[r].split(" ").find(l=>l.startsWith("border-")))==null?void 0:o.replace("border-","border-l-")),children:[g.jsx("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center border transition-transform group-hover:scale-110",a[r]),children:g.jsx(e,{size:20})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading mb-0.5",children:t}),g.jsx("p",{className:"text-xl font-black font-mono tracking-tighter",children:n.toLocaleString()})]})]})}function X1({open:e,title:t,message:n,confirmText:r="Confirm",cancelText:a="Cancel",onConfirm:o,onCancel:l,variant:c="danger",isProcessing:f=!1}){return Bf.createPortal(g.jsx(ba,{children:e&&g.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:g.jsxs(ut.div,{initial:{scale:.95,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},exit:{scale:.95,opacity:0,y:20},transition:{type:"spring",damping:25,stiffness:300},className:"bg-zinc-900 border border-white/10 rounded-3xl p-8 max-w-md shadow-[0_0_50px_rgba(0,0,0,0.8)] scanline overflow-hidden",onClick:h=>h.stopPropagation(),children:[g.jsx("h3",{className:"text-2xl font-black mb-3 font-heading tracking-tight text-white uppercase italic italic",children:t}),g.jsx("div",{className:"h-px w-full bg-white/5 mb-6"}),g.jsx("p",{className:"text-[13px] font-bold text-muted-foreground mb-8 leading-relaxed uppercase tracking-wide opacity-80",children:n}),g.jsxs("div",{className:"flex gap-4 justify-end",children:[g.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),l()},disabled:f,className:"px-6 py-3 bg-zinc-800 text-white/60 rounded-xl hover:bg-zinc-700 transition-all disabled:opacity-20 disabled:cursor-not-allowed text-[10px] font-black uppercase tracking-[0.2em] font-heading border border-white/5",children:a}),g.jsxs("button",{type:"button",onClick:h=>{h.stopPropagation(),o()},disabled:f,className:Me("px-6 py-3 rounded-xl text-black transition-all disabled:opacity-20 disabled:cursor-not-allowed flex items-center gap-2 text-[10px] font-black uppercase tracking-[0.2em] font-heading shadow-lg",c==="danger"&&"bg-red-500 shadow-[0_0_20px_rgba(239,68,68,0.3)] hover:bg-red-400",c==="warning"&&"bg-amber-500 shadow-[0_0_20px_rgba(245,158,11,0.3)] hover:bg-amber-400",c==="info"&&"bg-primary shadow-[0_0_20px_rgba(0,240,255,0.3)] hover:bg-primary/80"),children:[f&&g.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-label":"Loading",children:[g.jsx("title",{children:"Loading"}),g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),g.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?"Executing...":r]})]})]})})}),document.body)}function sI({queueName:e,onClose:t}){const[n,r]=_e.useState("waiting"),[a,o]=_e.useState(1),[l,c]=_e.useState(new Set),[f,h]=_e.useState(!1),[m,p]=_e.useState(null),v=va(),{isPending:x,error:j,data:O}=Nn({queryKey:["jobs",e,n,a],queryFn:()=>{const E=n==="archive"?`/api/queues/${e}/archive?page=${a}&limit=50`:`/api/queues/${e}/jobs?type=${n}`;return fetch(E).then(C=>C.json())}});_e.useEffect(()=>{c(new Set),o(1)},[n]);const w=E=>{const C=new Set(l);C.has(E)?C.delete(E):C.add(E),c(C)},A=_e.useCallback(()=>{if(!(O!=null&&O.jobs))return;const E=O.jobs.filter(C=>C._raw&&!C._archived).length;if(l.size===E&&E>0)c(new Set);else{const C=new Set;O.jobs.forEach((P,_)=>{P._raw&&!P._archived&&C.add(_)}),c(C)}},[O==null?void 0:O.jobs,l]);_e.useEffect(()=>{const E=C=>{(C.ctrlKey||C.metaKey)&&C.key==="a"&&(C.preventDefault(),A()),C.key==="Escape"&&(m!=null&&m.open?p(null):l.size>0?c(new Set):t())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[l,m,A,t]),_e.useEffect(()=>{const E=document.body.style.overflow,C=document.body.style.paddingRight,P=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${P}px`,()=>{document.body.style.overflow=E,document.body.style.paddingRight=C}},[]);const T=async(E,C)=>{if(!C._raw)return;const P=E==="delete"?"delete":"retry",_={raw:C._raw};E==="delete"&&(_.type=n),await fetch(`/api/queues/${e}/jobs/${P}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)}),v.invalidateQueries({queryKey:["jobs",e]}),v.invalidateQueries({queryKey:["queues"]})},k=async E=>{if(l.size===0||!(O!=null&&O.jobs))return;const C=l.size;p({open:!0,title:`${E==="delete"?"Delete":"Retry"} ${C} Jobs?`,message:`Are you sure you want to ${E} ${C} selected ${n} jobs in "${e}"?
|
|
431
|
+
|
|
432
|
+
This action cannot be undone.`,variant:E==="delete"?"danger":"warning",action:async()=>{h(!0);try{const P=E==="delete"?"bulk-delete":"bulk-retry",_=Array.from(l).map(D=>{var L;return(L=O==null?void 0:O.jobs[D])==null?void 0:L._raw}).filter(Boolean);await fetch(`/api/queues/${e}/jobs/${P}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n,raws:_})}),c(new Set),v.invalidateQueries({queryKey:["jobs",e]}),v.invalidateQueries({queryKey:["queues"]}),p(null)}catch(P){console.error(`Failed to ${E} jobs:`,P)}finally{h(!1)}}})};return Bf.createPortal(g.jsxs("div",{className:"fixed inset-0 z-[1001] flex items-center justify-end p-4 sm:p-6 outline-none pointer-events-none",children:[g.jsx(ut.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}),g.jsxs(ut.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-zinc-950 border-l border-white/10 h-screen w-full max-w-2xl shadow-2xl flex flex-col overflow-hidden relative z-[1002] pointer-events-auto",onClick:E=>E.stopPropagation(),children:[g.jsxs("div",{className:"p-8 border-b border-white/5 bg-black/40 flex justify-between items-center flex-shrink-0",children:[g.jsxs("div",{children:[g.jsxs("h2",{className:"text-2xl font-black flex items-center gap-3 font-heading tracking-tight italic uppercase",children:[g.jsx(yu,{className:"text-primary",size:24}),"Inspector ",g.jsx("span",{className:"text-primary/60",children:"/"})," ",e]}),g.jsx("div",{className:"flex items-center gap-3 mt-4",children:["waiting","delayed","failed","archive"].map(E=>g.jsx("button",{type:"button",onClick:()=>r(E),className:Me("text-[9px] font-black px-3 py-1.5 rounded-lg transition-all border shrink-0 uppercase tracking-[0.2em] font-mono",n===E?E==="failed"?"bg-red-500 text-black border-red-500 shadow-[0_0_20px_rgba(239,68,68,0.2)]":E==="delayed"?"bg-amber-500 text-black border-amber-500 shadow-[0_0_20px_rgba(245,158,11,0.2)]":E==="archive"?"bg-indigo-500 text-black border-indigo-500 shadow-[0_0_20px_rgba(99,102,241,0.2)]":"bg-primary text-black border-primary shadow-[0_0_20px_rgba(0,240,255,0.2)]":"bg-zinc-900 text-muted-foreground border-white/5 hover:bg-zinc-800"),children:E},E))})]}),g.jsx("button",{type:"button",onClick:t,"aria-label":"Close",className:"w-12 h-12 rounded-2xl bg-white/5 border border-white/5 hover:bg-white/10 flex items-center justify-center transition-all text-white/40 hover:text-white",children:"✕"})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto bg-black/20 min-h-0 scrollbar-thin",children:[x&&g.jsxs("div",{className:"p-20 text-center flex flex-col items-center gap-4",children:[g.jsx(na,{className:"animate-spin text-primary opacity-40",size:32}),g.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em] text-muted-foreground animate-pulse",children:"Syncing jobs..."})]}),j&&g.jsx("div",{className:"p-20 text-center",children:g.jsxs("div",{className:"bg-red-500/10 text-red-500 p-8 rounded-2xl border border-red-500/20 font-black uppercase text-xs tracking-widest italic",children:["Connection Fault: ",j.message]})}),(O==null?void 0:O.jobs)&&O.jobs.length>0&&g.jsxs("div",{className:"px-8 py-4 border-b border-white/5 bg-white/[0.02] flex items-center gap-4",children:[g.jsx("input",{type:"checkbox","aria-label":"Select all jobs",className:"w-4 h-4 rounded border-white/10 bg-black/40 text-primary focus:ring-primary/20",checked:l.size===O.jobs.filter(E=>E._raw&&!E._archived).length&&l.size>0,onChange:A}),g.jsx("span",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground/60 font-heading",children:"Batch Operations"}),l.size>0&&g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[g.jsxs("span",{className:"text-[10px] font-black uppercase text-primary font-mono bg-primary/10 px-2 py-0.5 rounded border border-primary/20",children:[l.size," Selected"]}),g.jsx("button",{type:"button",onClick:()=>k("delete"),className:"px-3 py-1.5 bg-red-500/10 text-red-500 rounded-lg text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all border border-red-500/20",children:"Delete"}),(n==="delayed"||n==="failed")&&g.jsx("button",{type:"button",onClick:()=>k("retry"),className:"px-3 py-1.5 bg-primary/10 text-primary rounded-lg text-[10px] font-black uppercase hover:bg-primary hover:text-black transition-all border border-primary/20",children:"Retry"})]})]}),(O==null?void 0:O.jobs)&&O.jobs.length===0&&g.jsxs("div",{className:"p-20 text-center text-muted-foreground flex flex-col items-center gap-6 opacity-40",children:[g.jsx("div",{className:"w-20 h-20 bg-white/5 rounded-full flex items-center justify-center text-primary/40 border border-white/5",children:g.jsx(rw,{size:40})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("p",{className:"text-xl font-black font-heading uppercase italic tracking-widest",children:"Pipeline Clear"}),g.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.2em]",children:"Zero incidents detected in spectrum"})]})]}),(O==null?void 0:O.jobs)&&g.jsxs("div",{className:"p-8 space-y-6",children:[O.jobs.map((E,C)=>g.jsxs("div",{className:Me("bg-zinc-900/40 border rounded-2xl overflow-hidden transition-all group border-white/5",l.has(C)&&"ring-2 ring-primary border-primary bg-primary/5"),children:[g.jsxs("div",{className:"p-4 border-b border-white/5 bg-black/40 flex justify-between items-center text-[10px] font-mono",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[E._raw&&!E._archived&&g.jsx("input",{type:"checkbox","aria-label":`Select job ${E.id||C}`,className:"w-4 h-4 rounded border-white/10 bg-black/40 text-primary focus:ring-primary/20",checked:l.has(C),onChange:()=>w(C)}),g.jsxs("span",{className:"bg-primary/10 text-primary px-2 py-1 rounded-md font-black uppercase tracking-widest flex items-center gap-2 border border-primary/20 shadow-[0_0_15px_rgba(0,240,255,0.05)]",children:["ID:",E.id||"N/A",E._archived&&g.jsx("span",{className:Me("px-1.5 py-0.5 rounded text-[8px] border ml-1",E._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:E._status})]})]}),g.jsxs("span",{className:"text-white/20 font-black flex items-center gap-4 uppercase tracking-tighter",children:[n==="delayed"&&E.scheduledAt&&g.jsxs("span",{className:"text-amber-500 flex items-center gap-1.5",children:[g.jsx(gi,{size:12})," ",new Date(E.scheduledAt).toLocaleString()]}),n==="failed"&&E.failedAt&&g.jsxs("span",{className:"text-red-500 flex items-center gap-1.5",children:[g.jsx(oa,{size:12})," ",new Date(E.failedAt).toLocaleString()]}),E.timestamp&&!E._archivedAt&&new Date(E.timestamp).toLocaleString()]})]}),g.jsxs("button",{type:"button",onClick:()=>E._raw&&!E._archived&&w(C),className:"w-full text-left cursor-pointer focus:outline-none focus:ring-inset",children:[E.error&&g.jsxs("div",{className:"p-5 bg-red-500/10 text-red-500 text-xs font-black border-b border-red-500/10 flex items-start gap-3 uppercase tracking-tight",children:[g.jsx(oa,{size:16,className:"mt-0.5 shrink-0"}),g.jsx("p",{children:E.error})]}),g.jsx("pre",{className:"text-[11px] font-mono p-6 overflow-x-auto text-white/60 leading-relaxed bg-black/40",children:JSON.stringify(E,null,2)})]}),g.jsxs("div",{className:"p-4 bg-black/20 border-t border-white/5 flex justify-end gap-3",children:[!E._archived&&g.jsx("button",{type:"button",onClick:()=>T("delete",E),className:"text-[10px] font-black uppercase tracking-[0.2em] px-5 py-2.5 rounded-xl hover:bg-red-500/10 text-red-500/60 hover:text-red-500 transition-all font-heading border border-transparent hover:border-red-500/20",children:"Terminate"}),!E._archived&&(n==="delayed"||n==="failed")&&g.jsx("button",{type:"button",onClick:()=>T("retry",E),className:Me("text-[10px] font-black uppercase tracking-[0.2em] px-5 py-2.5 rounded-xl text-black shadow-lg transition-all font-heading",n==="delayed"?"bg-amber-500 shadow-amber-500/20 hover:bg-amber-400":"bg-primary shadow-primary/20 hover:bg-primary/80"),children:n==="delayed"?"Execute Now":"Re-Run Cycle"})]})]},C)),n==="archive"&&(O==null?void 0:O.total)&&O.total>50&&g.jsxs("div",{className:"flex items-center justify-between py-6 border-t border-border/30",children:[g.jsxs("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:["Total ",O.total," archived jobs"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{type:"button",onClick:()=>o(E=>Math.max(1,E-1)),disabled:a===1,"aria-label":"Previous page",className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"←"}),g.jsx("span",{className:"text-xs font-bold px-4",children:a}),g.jsx("button",{type:"button",onClick:()=>o(E=>E+1),disabled:a*50>=(O.total||0),"aria-label":"Next page",className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"→"})]})]})]})]}),g.jsx("div",{className:"p-4 border-t bg-card text-right flex-shrink-0",children:g.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"})})]}),m&&g.jsx(X1,{open:m.open,title:m.title,message:m.message,variant:m.variant,isProcessing:f,onConfirm:m.action,onCancel:()=>p(null)})]}),document.body)}function ude({isOpen:e,onClose:t}){const[n,r]=_e.useState(1),[a,o]=_e.useState(""),[l,c]=_e.useState("all"),[f,h]=_e.useState([]),[m,p]=_e.useState(0),[v,x]=_e.useState(!1),[j,O]=_e.useState({}),w=_e.useCallback(async()=>{x(!0);try{const k=new URLSearchParams({page:String(n),limit:"20",search:a,...l!=="all"&&{status:l},...j.start&&{startTime:j.start},...j.end&&{endTime:j.end}}),E=await fetch(`/api/logs/archive?${k}`).then(C=>C.json());h(E.logs||[]),p(E.total||0)}catch(k){console.error("Failed to fetch archived logs",k)}finally{x(!1)}},[n,a,l,j]);_e.useEffect(()=>{e&&w()},[e,w]);const A=k=>{k.preventDefault(),r(1),w()},T=Math.ceil(m/20);return g.jsx(ba,{children:e&&g.jsxs("div",{className:"fixed inset-0 z-[4000] flex items-center justify-center p-4 sm:p-8",children:[g.jsx(ut.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:t}),g.jsxs(ut.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:[g.jsxs("div",{className:"p-6 border-b bg-muted/10 flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:g.jsx(gi,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-xl font-black tracking-tight",children:"Time Travel Audit"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold opacity-60",children:"Trace events and system logs across time"})]})]}),g.jsx("button",{type:"button",onClick:t,className:"p-2 hover:bg-muted rounded-xl text-muted-foreground transition-colors",children:g.jsx(Tp,{size:20})})]}),g.jsxs("div",{className:"p-4 bg-muted/5 border-b grid grid-cols-1 md:grid-cols-4 gap-4 items-end",children:[g.jsxs("form",{onSubmit:A,className:"md:col-span-2 relative",children:[g.jsx("label",{htmlFor:"log-search",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Search Query"}),g.jsxs("div",{className:"relative",children:[g.jsx(yu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:16}),g.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:a,onChange:k=>o(k.target.value)})]})]}),g.jsxs("div",{className:"relative",children:[g.jsx("label",{htmlFor:"start-time",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Time Range"}),g.jsxs("div",{className:"flex items-center gap-2 bg-background border border-border/50 rounded-xl px-3 py-2.5",children:[g.jsx(bx,{size:14,className:"text-muted-foreground/50"}),g.jsx("input",{id:"start-time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:k=>{const E=k.target.value?new Date(k.target.value).toISOString():void 0;O(C=>({...C,start:E})),r(1)}}),g.jsx("span",{className:"text-muted-foreground/30 text-[10px]",children:"to"}),g.jsx("input",{"aria-label":"End Time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:k=>{const E=k.target.value?new Date(k.target.value).toISOString():void 0;O(C=>({...C,end:E})),r(1)}})]})]}),g.jsxs("div",{className:"relative",children:[g.jsx("label",{htmlFor:"log-level",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Level / Status"}),g.jsxs("div",{className:"relative",children:[g.jsx(iw,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:14}),g.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:k=>{c(k.target.value),r(1)},children:[g.jsx("option",{value:"all",children:"Every Event"}),g.jsx("option",{value:"info",children:"Info / Logs"}),g.jsx("option",{value:"error",children:"Errors / Failed"}),g.jsx("option",{value:"warn",children:"Warnings"}),g.jsx("option",{value:"success",children:"Success / Completed"})]})]})]})]}),g.jsx("div",{className:"flex-1 overflow-y-auto p-0 scrollbar-thin bg-black/20",children:v?g.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 py-20",children:[g.jsx(cde,{className:"animate-spin text-primary",size:32}),g.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em] text-muted-foreground animate-pulse",children:"Time Traveling..."})]}):f.length===0?g.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-4 py-20",children:[g.jsx(Zn,{size:48,className:"opacity-10 animate-pulse"}),g.jsx("p",{className:"font-bold uppercase tracking-widest italic text-sm",children:"No events found in this timeline"})]}):g.jsx("div",{className:"divide-y divide-border/10",children:f.map(k=>g.jsxs("div",{className:"p-4 flex gap-4 hover:bg-white/[0.02] transition-colors group cursor-default",children:[g.jsx("div",{className:"shrink-0 w-32 pt-1",children:g.jsxs("div",{className:"flex flex-col text-right",children:[g.jsx("span",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-tighter tabular-nums",children:new Date(k.timestamp).toLocaleDateString()}),g.jsx("span",{className:"text-xs font-mono font-bold tabular-nums text-foreground/80",children:new Date(k.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})}),g.jsxs("div",{className:"shrink-0 pt-1.5 relative",children:[g.jsx("div",{className:"w-px h-full absolute left-1/2 -translate-x-1/2 top-4 bg-border/30 last:hidden"}),g.jsx("div",{className:Me("w-3 h-3 rounded-full border-2 relative z-10",k.level==="error"?"border-red-500 bg-red-500/20":k.level==="warn"?"border-amber-500 bg-amber-500/20":k.level==="success"?"border-green-500 bg-green-500/20":"border-blue-500 bg-blue-500/20")})]}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-1.5",children:[g.jsx("span",{className:Me("px-1.5 py-0.5 rounded text-[9px] font-black uppercase tracking-widest",k.level==="error"?"bg-red-500/10 text-red-500":k.level==="warn"?"bg-amber-500/10 text-amber-500":k.level==="success"?"bg-green-500/10 text-green-500":"bg-blue-500/10 text-blue-500"),children:k.level}),g.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:k.worker_id}),k.queue&&g.jsx("span",{className:"text-[10px] font-black text-indigo-400/80 uppercase tracking-wider bg-indigo-500/10 px-1.5 rounded",children:k.queue})]}),g.jsx("p",{className:"text-sm text-foreground/90 font-mono break-all leading-relaxed opacity-90",children:k.message})]})]},k.id))})}),g.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:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("span",{children:["Scanning ",m.toLocaleString()," events • Page ",n," of ",T||1]}),g.jsx("div",{className:"h-4 w-px bg-border/50 hidden sm:block"}),g.jsx("div",{className:"flex items-center gap-2",children:g.jsxs("select",{className:"bg-background border border-border/50 rounded-lg px-2 py-1 outline-none focus:ring-1 focus:ring-primary/30",onChange:k=>{const E=k.target.value,C=new URL("/api/logs/export",window.location.href);a&&C.searchParams.set("search",a),l!=="all"&&C.searchParams.set("status",l),j.start&&C.searchParams.set("startTime",j.start),j.end&&C.searchParams.set("endTime",j.end),C.searchParams.set("format",E),window.open(C.toString(),"_blank")},defaultValue:"",children:[g.jsx("option",{value:"",disabled:!0,children:"Export As..."}),g.jsx("option",{value:"json",children:"JSON"}),g.jsx("option",{value:"csv",children:"CSV"})]})})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{type:"button",disabled:n===1||v,onClick:()=>r(k=>k-1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:g.jsx(lD,{size:16})}),g.jsx("button",{type:"button",disabled:n>=T||v,onClick:()=>r(k=>k+1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:g.jsx(Np,{size:16})})]})]})]})]})})}function cde({className:e,size:t}){return g.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:[g.jsx("title",{children:"Refreshing"}),g.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),g.jsx("path",{d:"M21 3v5h-5"}),g.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),g.jsx("path",{d:"M3 21v-5h5"})]})}function fde(){var a;const{data:e}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),[t,n]=_e.useState([]);_e.useEffect(()=>{e&&n(e)},[e]),_e.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 g.jsxs("div",{className:"card-premium h-[350px] w-full p-6 flex flex-col relative overflow-hidden group",children:[g.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"}),g.jsxs("div",{className:"flex justify-between items-start mb-6 z-10",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("h3",{className:"text-xl font-black tracking-tight font-heading",children:"System Throughput"}),g.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-primary/10 text-primary text-[8px] font-black uppercase tracking-widest rounded-full border border-primary/20",children:[g.jsx("span",{className:"w-1 h-1 bg-primary rounded-full animate-ping"}),"Live"]})]}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-black mt-1",children:"Jobs processed per minute"})]}),g.jsxs("div",{className:"text-right",children:[g.jsx("p",{className:"text-3xl font-black text-foreground font-mono",children:((a=r[r.length-1])==null?void 0:a.value)||0}),g.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-black tracking-tighter",children:"Current Rate"})]})]}),g.jsx("div",{className:"flex-1 w-full min-h-0",children:g.jsx(cm,{width:"100%",height:"100%",children:g.jsxs(W1,{data:r,margin:{top:10,right:10,left:-20,bottom:0},children:[g.jsx("defs",{children:g.jsxs("linearGradient",{id:"colorValue",x1:"0",y1:"0",x2:"0",y2:"1",children:[g.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.5}),g.jsx("stop",{offset:"50%",stopColor:"hsl(var(--primary))",stopOpacity:.1}),g.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),g.jsx(Jc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),g.jsx(tf,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"},dy:10}),g.jsx(nf,{axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:700,fontFamily:"Fira Code"}}),g.jsx(dm,{cursor:{stroke:"hsl(var(--primary))",strokeWidth:1,strokeDasharray:"4 4"},contentStyle:{backgroundColor:"rgba(9, 9, 11, 0.9)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"12px",fontSize:"11px",fontFamily:"Fira Code",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.5)",backdropFilter:"blur(8px)"},itemStyle:{fontWeight:"bold",color:"hsl(var(--primary))"}}),g.jsx(ef,{type:"monotone",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorValue)",strokeWidth:3,animationDuration:1500})]})})})]})}function nx(...e){return X3(Ze(e))}function dde(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 hde(e,t){const n=e.match(/^(.*)-(\d+)$/);if(n&&parseInt(n[2],10)===t){let r=n[1];return r.endsWith(".local")&&(r=r.replace(".local","")),r}return e.replace(".local","")}function mde({highlightedWorkerId:e,workers:t=[]}){const n=t.filter(r=>r.status==="online").length;return g.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[g.jsx("div",{className:"p-5 pb-0 flex-none",children:g.jsxs("div",{className:"flex justify-between items-center mb-5",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-base font-black flex items-center gap-2 tracking-tight font-heading",children:[g.jsx(af,{size:18,className:"text-primary"}),"Cluster Nodes"]}),g.jsx("p",{className:"text-[9px] text-muted-foreground uppercase font-black tracking-[0.2em] opacity-50 mt-0.5",children:"Live Infrastructure"})]}),g.jsxs("span",{className:"text-[9px] font-black text-emerald-500 bg-emerald-500/10 px-2 py-1 rounded-md uppercase tracking-widest border border-emerald-500/20",children:[n," ACTIVE"]})]})}),g.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 px-5 space-y-2 scrollbar-thin pb-5",children:[t.length===0&&g.jsxs("div",{className:"py-12 text-center text-muted-foreground/20 flex flex-col items-center gap-2",children:[g.jsx(Zn,{size:24,className:"opacity-30 animate-pulse"}),g.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.3em]",children:"Awaiting signals..."})]}),t.map(r=>{var a;return g.jsxs("div",{className:nx("relative flex items-center gap-3 p-3 rounded-xl border transition-all group overflow-hidden shrink-0",r.id===e?"bg-primary/10 border-primary/40 shadow-[0_0_20px_rgba(0,240,255,0.1)] -translate-x-1 z-10":"bg-black/20 hover:bg-white/[0.03] border-white/5 hover:border-primary/20"),children:[g.jsx("div",{className:nx("absolute left-0 top-0 bottom-0 w-1 transition-all",r.status==="online"?"bg-emerald-500 shadow-[0_0_10px_#10B981]":"bg-muted-foreground/20")}),g.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[r.service&&g.jsx("span",{className:"text-[8px] font-black text-primary uppercase tracking-widest mb-0.5 whitespace-nowrap opacity-80",children:r.service}),g.jsx("h4",{className:"text-xs font-black tracking-tight text-foreground/90 truncate font-heading",title:r.id,children:hde(r.id,r.pid)||r.id}),g.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[g.jsxs("span",{className:"text-[8px] font-bold text-muted-foreground/40 uppercase font-mono",children:["PID:",r.pid]}),((a=r.meta)==null?void 0:a.laravel)&&r.meta.laravel.workerCount>0&&g.jsxs("span",{className:"inline-flex items-center gap-1 text-[8px] font-black text-white bg-red-500/80 px-1 rounded shadow-sm uppercase tracking-tighter leading-none whitespace-nowrap",children:[r.meta.laravel.workerCount," PHP"]})]})]}),g.jsxs("div",{className:"flex items-center gap-4 text-right shrink-0",children:[r.metrics&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"hidden sm:flex flex-col items-end gap-1 w-10",children:[g.jsx("span",{className:"text-[8px] font-black text-muted-foreground/40 uppercase font-mono",children:"CPU"}),g.jsxs("span",{className:nx("text-[10px] font-black font-mono tracking-tighter",r.metrics.cpu>80?"text-red-500":"text-primary"),children:[r.metrics.cpu.toFixed(0),"%"]})]}),g.jsxs("div",{className:"hidden sm:flex flex-col items-end gap-1 w-12",children:[g.jsx("span",{className:"text-[8px] font-black text-muted-foreground/40 uppercase font-mono",children:"RAM"}),g.jsx("span",{className:"text-[10px] font-black font-mono tracking-tighter text-white/80",children:dde(r.metrics.ram.rss).split(" ")[0]})]})]}),g.jsxs("div",{className:"flex flex-col items-end gap-1 w-10",children:[g.jsx("span",{className:"text-[8px] font-black text-muted-foreground/40 uppercase font-mono",children:"UP"}),g.jsx("p",{className:"text-[10px] font-black tracking-tighter font-mono text-foreground/60 tabular-nums",children:r.uptime>3600?`${(r.uptime/3600).toFixed(1)}H`:r.uptime>60?`${(r.uptime/60).toFixed(0)}M`:`${r.uptime.toFixed(0)}S`})]})]})]},r.id)})]}),g.jsx("div",{className:"p-5 pt-0 flex-none",children:g.jsx("button",{type:"button",className:"w-full py-2.5 bg-muted/50 text-[9px] font-black rounded-lg hover:bg-primary hover:text-primary-foreground transition-all uppercase tracking-[0.2em] border border-white/5 hover:border-primary/50 active:scale-95 shadow-lg shadow-transparent hover:shadow-primary/10 font-heading",children:"Node Orchestration"})})]})}const pde={queues:[],workers:[]};function gde({logs:e,onSearchArchive:t,onWorkerHover:n}){const r=_e.useRef(null);return _e.useEffect(()=>{r.current&&e&&(r.current.scrollTop=r.current.scrollHeight)},[e]),g.jsxs("div",{className:"absolute inset-0 card-premium flex flex-col overflow-hidden group",children:[g.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(UU,{size:14,className:"text-primary"}),g.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Operational Logs"})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{type:"button",onClick:t,"aria-label":"Search Logs Archive",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:[g.jsx(yu,{size:12}),"Search Archive"]}),g.jsxs("div",{className:"flex gap-1",children:[g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500/40"})]})]})]}),g.jsx("ul",{ref:r,className:"flex-1 min-h-0 overflow-y-auto p-4 font-mono text-[10px] space-y-2 scrollbar-thin scroll-smooth bg-black/20",children:e.length===0?g.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/20 gap-2",children:[g.jsx(Zn,{size:24,className:"animate-pulse opacity-50"}),g.jsx("p",{className:"font-bold uppercase tracking-[0.3em] text-[8px]",children:"Scanning spectrum..."})]}):e.map((a,o)=>g.jsxs("li",{onMouseEnter:()=>n==null?void 0:n(a.workerId),onMouseLeave:()=>n==null?void 0:n(null),className:"group flex gap-3 hover:bg-white/[0.03] -mx-2 px-3 py-1 rounded transition-all animate-in fade-in slide-in-from-left-1 duration-200 cursor-default border-l-2 border-transparent hover:border-primary/40",children:[g.jsx("span",{className:"text-muted-foreground/60 shrink-0 tabular-nums select-none opacity-60 group-hover:opacity-100 transition-opacity",children:new Date(a.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}),g.jsxs("div",{className:"flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[g.jsx("span",{className:Me("text-[8px] font-black uppercase tracking-widest px-1 rounded",a.level==="error"?"bg-red-500/10 text-red-500":a.level==="warn"?"bg-amber-500/10 text-amber-500":a.level==="success"?"bg-green-500/10 text-green-500":"bg-primary/10 text-primary"),children:a.level}),g.jsxs("span",{className:"text-[8px] font-bold text-muted-foreground/40 uppercase tracking-tighter opacity-0 group-hover:opacity-100 transition-all",children:["ID:",a.workerId]})]}),g.jsx("p",{className:"text-foreground/70 group-hover:text-foreground leading-relaxed whitespace-pre-wrap break-all",children:a.message})]})]},o))})]})}function vde({queues:e}){return g.jsxs("div",{className:"card-premium p-6 mb-8 overflow-hidden relative group",children:[g.jsx("div",{className:"absolute inset-0 opacity-10 group-hover:opacity-20 transition-opacity scanline pointer-events-none"}),g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Zn,{size:14,className:"text-primary animate-pulse"}),g.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground/60",children:"Pipeline Load Distribution"})]}),g.jsx("div",{className:"flex gap-1",children:[.2,.4,.6,.8,1].map(t=>g.jsx("div",{className:"w-2 h-2 rounded-sm bg-primary",style:{opacity:t}},t))})]}),g.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 g.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:g.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:[g.jsx("span",{className:"font-black",children:t.name}),": ",t.waiting," items"]})},n)}),Array.from({length:Math.max(0,40-e.length)}).map((t,n)=>g.jsx("div",{className:"aspect-square rounded-sm bg-muted/20 border border-border/5 group-hover:border-border/10 transition-colors"},`empty-${n}`))]})]})}function yde({value:e}){const[t,n]=_e.useState(e);return _e.useEffect(()=>{const r=CK(t,e,{duration:1.5,ease:"easeOut",onUpdate:a=>n(Math.round(a))});return()=>r.stop()},[e,t]),g.jsx("span",{children:t.toLocaleString()})}function Qh({title:e,value:t,icon:n,color:r,trend:a,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 g.jsxs("div",{className:"card-premium p-6 hover:shadow-2xl transform hover:-translate-y-1 group relative overflow-hidden flex flex-col justify-between",children:[g.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none scanline z-0"}),g.jsxs("div",{className:"flex justify-between items-start mb-4 z-10 relative",children:[g.jsx("div",{className:Me("p-3 rounded-xl bg-muted/20 transition-all group-hover:scale-110 duration-500 border border-transparent group-hover:border-primary/20 shadow-inner",r),children:n}),a&&g.jsxs("div",{className:"flex flex-col items-end",children:[g.jsx("span",{className:Me("text-[9px] font-black uppercase tracking-widest",r),children:a}),g.jsx("div",{className:"w-10 h-1 bg-muted/30 rounded-full mt-1 overflow-hidden",children:g.jsx(ut.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:1.5,repeat:1/0,repeatType:"reverse"},className:Me("h-full",r.replace("text-","bg-"))})})]})]}),g.jsxs("div",{className:"z-10 relative",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] mb-1 font-heading",children:e}),g.jsxs("div",{className:"text-3xl font-black tracking-tight flex items-baseline gap-1 font-mono",children:[g.jsx(yde,{value:t}),e==="Waiting Jobs"&&t>100&&g.jsx("span",{className:"text-red-500 animate-pulse text-sm ml-1",children:"!"})]})]}),g.jsx("div",{className:"mt-6 flex items-end gap-1 h-12 opacity-10 group-hover:opacity-30 transition-all duration-700 absolute bottom-0 left-0 right-0 pointer-events-none",children:l.map((f,h)=>g.jsx("div",{className:Me("flex-1 rounded-t-sm transition-all duration-1000",r.replace("text-","bg-")),style:{height:`${f/c*100}%`,opacity:.2+h/l.length*.8,transitionDelay:`${h*20}ms`}},h))})]})}function bde({queues:e,setSelectedQueue:t}){return g.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[g.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(sf,{size:14,className:"text-primary"}),g.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Processing Pipelines"})]}),g.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 ",g.jsx(Np,{size:12})]})]}),g.jsx("div",{className:"flex-1 overflow-auto scrollbar-thin",children:g.jsxs("table",{className:"w-full text-left",children:[g.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[9px] font-black tracking-widest sticky top-0",children:g.jsxs("tr",{children:[g.jsx("th",{className:"px-4 py-3",children:"Queue"}),g.jsx("th",{className:"px-4 py-3",children:"Waiting"}),g.jsx("th",{className:"px-4 py-3 text-right",children:"Ops"})]})}),g.jsx("tbody",{className:"divide-y divide-border/30 text-xs",children:e.map(n=>g.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[g.jsx("td",{className:"px-4 py-4",children:g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"font-black text-foreground",children:n.name}),n.failed>0&&g.jsxs("span",{className:"text-[9px] text-red-500 font-bold uppercase",children:[n.failed," FAILED"]})]})}),g.jsx("td",{className:"px-4 py-4 font-mono font-black",children:n.waiting.toLocaleString()}),g.jsx("td",{className:"px-4 py-4 text-right",children:g.jsx("div",{className:"flex justify-end gap-2",children:g.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","aria-label":`Inspect ${n.name} queue`,children:g.jsx(Ep,{size:14})})})})]},n.name))})]})})]})}function xde(){const[e,t]=_e.useState(null),[n,r]=_e.useState(null),[a,o]=_e.useState([]),[l,c]=_e.useState(pde),[f,h]=_e.useState(!1);_e.useEffect(()=>{const T=k=>t(k.detail);return window.addEventListener("select-queue",T),()=>window.removeEventListener("select-queue",T)},[]),_e.useEffect(()=>{fetch("/api/queues").then(T=>T.json()).then(T=>{T.queues&&c(k=>({...k,queues:T.queues}))}),fetch("/api/workers").then(T=>T.json()).then(T=>{T.workers&&c(k=>({...k,workers:T.workers}))})},[]),_e.useEffect(()=>{const T=k=>{const E=k.detail;E&&c(C=>({queues:E.queues||C.queues,workers:E.workers||C.workers}))};return window.addEventListener("flux-stats-update",T),()=>window.removeEventListener("flux-stats-update",T)},[]),_e.useEffect(()=>{const T=k=>{const E=k.detail;o(C=>[...C.slice(-99),E])};return window.addEventListener("flux-log-update",T),()=>window.removeEventListener("flux-log-update",T)},[]),_e.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}),p=(m==null?void 0:m.history)||{},{queues:v,workers:x}=l,j=v.reduce((T,k)=>T+k.waiting,0),O=v.reduce((T,k)=>T+k.delayed,0),w=v.reduce((T,k)=>T+k.failed,0),A=x.length;return g.jsxs("div",{className:"space-y-12",children:[g.jsx(ude,{isOpen:f,onClose:()=>h(!1)}),g.jsx(ba,{children:e&&g.jsx(sI,{queueName:e,onClose:()=>t(null)})}),g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Overview"}),g.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."})]}),g.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:[g.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),"Live Syncing"]})]}),g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[g.jsx(Qh,{title:"Waiting Jobs",value:j,icon:g.jsx(fD,{size:20}),color:"text-amber-500",trend:"+12% / hr",data:p.waiting}),g.jsx(Qh,{title:"Delayed Jobs",value:O,icon:g.jsx(gi,{size:20}),color:"text-blue-500",trend:"Stable",data:p.delayed}),g.jsx(Qh,{title:"Failed Jobs",value:w,icon:g.jsx(oa,{size:20}),color:"text-red-500",trend:w>0?"CRITICAL":"CLEAN",data:p.failed}),g.jsx(Qh,{title:"Active Workers",value:A,icon:g.jsx(af,{size:20}),color:"text-indigo-500",trend:A>0?"ONLINE":"IDLE",data:p.workers})]}),g.jsx(fde,{}),g.jsx(vde,{queues:v}),g.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-3 gap-8 lg:h-[600px]",children:[g.jsx("div",{className:"lg:col-span-1 h-[400px] lg:h-full",children:g.jsx(mde,{highlightedWorkerId:n,workers:x})}),g.jsxs("div",{className:"lg:col-span-2 flex flex-col lg:grid lg:grid-rows-2 gap-6 lg:h-full",children:[g.jsx("div",{className:"relative h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:g.jsx(gde,{logs:a,onSearchArchive:()=>h(!0),onWorkerHover:r})}),g.jsx("div",{className:"h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:g.jsx(bde,{queues:v,setSelectedQueue:t})})]})]})]})}function wde(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Node.js",...e,children:[g.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"}),g.jsx("path",{d:"M16 22.5l-6-3.4v-6.8l6-3.4 6 3.4v6.8l-6 3.4z",fill:"#339933"})]})}function Sde(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Bun",...e,children:[g.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"}),g.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"}),g.jsx("ellipse",{cx:"22.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),g.jsx("ellipse",{cx:"9.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),g.jsx("circle",{cx:"10",cy:"16",r:"2",fill:"#37474f"}),g.jsx("circle",{cx:"22",cy:"16",r:"2",fill:"#37474f"})]})}function jde(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Deno",...e,children:[g.jsx("circle",{cx:"16",cy:"16",r:"14",fill:"currentColor"}),g.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"}),g.jsx("circle",{cx:"12",cy:"18",r:"2",fill:"black"})]})}function A_(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"PHP",...e,children:[g.jsx("ellipse",{cx:"16",cy:"16",rx:"14",ry:"10",fill:"#777BB4"}),g.jsx("text",{x:"50%",y:"54%",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",children:"PHP"})]})}function Ode(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Go",...e,children:[g.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"}),g.jsx("circle",{cx:"9",cy:"16",r:"2",fill:"white"}),g.jsx("circle",{cx:"23",cy:"9",r:"2",fill:"white"})]})}function Ade(e){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Python",...e,children:[g.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"}),g.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 Ede({icon:e,title:t,description:n,children:r,className:a}){return g.jsxs("div",{className:Me("flex justify-between items-end",a),children:[g.jsxs("div",{children:[g.jsxs("h1",{className:"text-4xl font-black tracking-tighter flex items-center gap-3",children:[g.jsx("div",{className:"p-2 bg-primary/10 rounded-xl text-primary",children:g.jsx(e,{size:32})}),t]}),n&&g.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest pl-[3.75rem]",children:n})]}),g.jsx("div",{children:r})]})}const E_=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]}`},rx=async(e,t,n,r,a)=>{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:a,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 Nde({node:e}){var o;const t=Date.now()-e.timestamp<3e4,n=!t&&Date.now()-e.timestamp<6e4,r=()=>{switch(e.language){case"node":return g.jsx(wde,{className:"w-6 h-6"});case"bun":return g.jsx(Sde,{className:"w-6 h-6 text-black"});case"deno":return g.jsx(jde,{className:"w-6 h-6"});case"php":return g.jsx(A_,{className:"w-6 h-6"});case"go":return g.jsx(Ode,{className:"w-6 h-6"});case"python":return g.jsx(Ade,{className:"w-6 h-6"});default:return g.jsx(Y9,{className:"w-6 h-6 text-white"})}},a=(o=e.meta)==null?void 0:o.laravel;return g.jsxs(ut.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},className:"card-premium p-5 relative overflow-hidden group border-l-4",style:{borderLeftColor:t?"#10B981":n?"#F59E0B":"#EF4444"},children:[g.jsx("div",{className:Me("absolute top-0 right-0 w-32 h-32 bg-gradient-to-bl opacity-5 rounded-bl-full transition-all duration-700",t?"from-emerald-500 to-transparent":n?"from-yellow-500 to-transparent":"from-red-500 to-transparent")}),g.jsxs("div",{className:"flex items-start justify-between mb-5 relative z-10",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center bg-white dark:bg-zinc-800/50 border border-white/10 shadow-xl shrink-0",children:r()}),g.jsxs("div",{children:[g.jsxs("h3",{className:"font-black text-foreground text-base flex items-center gap-2 font-heading tracking-tight",children:[e.id,g.jsx("span",{className:"text-[9px] px-2 py-0.5 rounded-md bg-primary/10 text-primary uppercase font-mono border border-primary/20",children:e.platform})]}),g.jsxs("div",{className:"text-[10px] text-muted-foreground font-bold flex items-center gap-1.5 mt-1 uppercase tracking-wider opacity-60",children:[g.jsx(mU,{size:12,className:"opacity-40"})," ",e.hostname," ",g.jsx("span",{className:"opacity-20",children:"/"})," PID:"," ",g.jsx("span",{className:"font-mono",children:e.pid})]})]})]}),g.jsx("div",{className:Me("w-3 h-3 rounded-full glow-pulse",t?"bg-emerald-500 text-emerald-500":n?"bg-yellow-500 text-yellow-500":"bg-red-500 text-red-500")})]}),g.jsxs("div",{className:"space-y-4 font-mono",children:[a&&a.workerCount>0&&g.jsxs("div",{className:"bg-amber-500/5 rounded-xl p-3 border border-amber-500/10",children:[g.jsx("div",{className:"flex items-center justify-between text-[10px] mb-3",children:g.jsxs("div",{className:"flex items-center gap-2 font-black text-amber-500 uppercase tracking-widest",children:[g.jsx(A_,{className:"w-4 h-4"}),"Laravel Ecosystem (",a.workerCount,")"]})}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsxs("button",{type:"button",onClick:()=>{confirm("Are you sure you want to retry ALL failed Laravel jobs on this host?")&&rx(e.service,e.id,"LARAVEL_ACTION","default","retry-all")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-500 px-3 py-1.5 rounded-lg text-[9px] font-black uppercase flex items-center gap-2 transition-all border border-amber-500/20",children:[g.jsx(Zy,{size:12})," Retry All"]}),g.jsxs("button",{type:"button",onClick:()=>{confirm("Artisan queue:restart will signal all workers to quit. Supervisor will restart them. Proceed?")&&rx(e.service,e.id,"LARAVEL_ACTION","default","restart")},className:"bg-white/5 hover:bg-white/10 text-foreground/80 px-3 py-1.5 rounded-lg text-[9px] font-black uppercase flex items-center gap-2 transition-all border border-white/5",children:[g.jsx(Zy,{size:12})," Restart"]})]})]}),e.queues&&e.queues.length>0&&g.jsxs("div",{className:"bg-zinc-900/50 rounded-xl p-3 border border-white/5",children:[g.jsxs("div",{className:"flex items-center justify-between text-[9px] font-black uppercase tracking-[0.2em] text-muted-foreground/60 mb-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(bm,{size:12}),"Monitored Pipelines"]}),g.jsxs("span",{className:"bg-white/5 px-1.5 rounded",children:[e.queues.length," ACTIVE"]})]}),g.jsx("div",{className:"space-y-3",children:e.queues.map(l=>g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[g.jsx("span",{className:"font-bold text-foreground/80 tracking-tighter",children:l.name}),g.jsxs("div",{className:"flex gap-3 items-center",children:[l.size.failed>0&&g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsxs("span",{className:"text-red-500 font-black",children:[l.size.failed," FAIL"]}),g.jsx("button",{type:"button",onClick:()=>rx(e.service,e.id,"RETRY_JOB",l.name),className:"p-1 rounded bg-red-500/10 text-red-500 hover:bg-red-500 hover:text-white transition-all",children:g.jsx(Zy,{size:10})})]}),g.jsxs("span",{className:"text-muted-foreground/60",children:[l.size.waiting," WAIT"]})]})]}),g.jsxs("div",{className:"h-1.5 w-full bg-black/40 rounded-full overflow-hidden flex border border-white/5",children:[g.jsx("div",{className:"bg-red-500 h-full transition-all",style:{width:`${l.size.failed/Math.max(1,l.size.waiting+l.size.active+l.size.failed)*100}%`}}),g.jsx("div",{className:"bg-emerald-500 h-full transition-all shadow-[0_0_10px_#10B981]",style:{width:`${l.size.active/Math.max(1,l.size.waiting+l.size.active+l.size.failed)*100}%`}})]})]},l.name))})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[g.jsxs("div",{className:"bg-zinc-900/50 rounded-xl p-3 border border-white/5 flex flex-col justify-between",children:[g.jsxs("div",{className:"flex justify-between items-center text-[9px] font-black uppercase text-muted-foreground/40 mb-2",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(af,{size:10})," CPU"]}),g.jsxs("span",{children:[e.cpu.cores,"C"]})]}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsxs("span",{className:"text-2xl font-black text-primary tracking-tighter",children:[e.cpu.process.toFixed(0),"%"]}),g.jsx("span",{className:"text-[10px] font-bold opacity-40 uppercase",children:"Load"})]}),g.jsx("div",{className:"h-1 w-full bg-black/40 rounded-full mt-3 overflow-hidden",children:g.jsx("div",{className:Me("h-full transition-all duration-1000",e.cpu.process>80?"bg-red-500 shadow-[0_0_10px_#EF4444]":"bg-primary shadow-[0_0_10px_#00F0FF]"),style:{width:`${e.cpu.process}%`}})})]}),g.jsxs("div",{className:"bg-zinc-900/50 rounded-xl p-3 border border-white/5 flex flex-col justify-between",children:[g.jsxs("div",{className:"flex justify-between items-center text-[9px] font-black uppercase text-muted-foreground/40 mb-2",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(bm,{size:10})," RAM"]}),g.jsx("span",{children:"RSS"})]}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsx("span",{className:"text-2xl font-black text-white tracking-tighter",children:E_(e.memory.process.rss).split(" ")[0]}),g.jsx("span",{className:"text-[10px] font-bold opacity-40 uppercase",children:E_(e.memory.process.rss).split(" ")[1]})]}),g.jsx("div",{className:"h-1 w-full bg-black/40 rounded-full mt-3 overflow-hidden",children:g.jsx("div",{className:"bg-indigo-500 h-full transition-all duration-1000 shadow-[0_0_10px_#6366F1]",style:{width:`${e.memory.process.rss/e.memory.system.total*100}%`}})})]})]})]}),g.jsxs("div",{className:"mt-5 pt-4 border-t border-white/5 flex items-center justify-between text-[10px] font-black uppercase tracking-widest text-muted-foreground/40",children:[g.jsxs("span",{className:"flex items-center gap-2",children:[g.jsx(kp,{size:12,className:"text-primary/40"}),e.runtime.framework," ",g.jsx("span",{className:"opacity-20",children:"•"})," v",e.version]}),g.jsxs("span",{className:"font-mono tabular-nums",children:["UP: ",Math.floor(e.runtime.uptime/60),"M"]})]})]})}function kde({service:e,nodes:t}){const n=t.length===1;return g.jsxs("div",{className:"bg-card/50 border border-border/40 rounded-xl p-4 flex flex-col h-full",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-3 border-b border-border/40",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"}),g.jsx("h2",{className:"text-sm font-bold uppercase tracking-widest text-muted-foreground flex-1",children:e}),g.jsx("span",{className:"bg-muted text-foreground px-2 py-0.5 rounded-md text-xs font-mono",children:t.length})]}),g.jsx("div",{className:Me("grid gap-3",n?"grid-cols-1":"grid-cols-1 xl:grid-cols-2"),children:t.map(r=>g.jsx(Nde,{node:r},r.id))})]})}function Tde(){const{data:e,isLoading:t}=Nn({queryKey:["pulse-nodes"],queryFn:async()=>(await fetch("/api/pulse/nodes")).json()}),[n,r]=S.useState({});if(S.useEffect(()=>{e!=null&&e.nodes&&r(e.nodes)},[e]),S.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 g.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8 animate-pulse",children:[g.jsx("div",{className:"h-8 w-48 bg-muted rounded-lg"}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[1,2,3].map(o=>g.jsx("div",{className:"h-48 bg-muted rounded-xl"},o))})]});const a=Object.entries(n).sort(([o],[l])=>o.localeCompare(l));return g.jsx("div",{className:"min-h-screen bg-background text-foreground pb-20",children:g.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8",children:[g.jsx(Ede,{icon:Zn,title:"System Pulse",description:"Real-time infrastructure monitoring across your entire stack.",children:g.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:[g.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),"LIVE CONNECTION"]})}),a.length===0?g.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center border-2 border-dashed border-border rounded-xl",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-muted flex items-center justify-center mb-4",children:g.jsx(Zn,{className:"text-muted-foreground",size:32})}),g.jsx("h3",{className:"text-lg font-bold",children:"No Pulse Signals Detected"}),g.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."})]}):g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-start",children:a.map(([o,l])=>g.jsx(kde,{service:o,nodes:l},o))})]})})}function Cde(){const[e,t]=_e.useState(null),[n,r]=_e.useState(""),[a,o]=_e.useState("all"),l=va(),{isPending:c,error:f,data:h}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(w=>w.json()),staleTime:1/0});_e.useEffect(()=>{const w=A=>{var T;(T=A.detail)!=null&&T.queues&&l.setQueryData(["queues"],{queues:A.detail.queues})};return window.addEventListener("flux-stats-update",w),()=>window.removeEventListener("flux-stats-update",w)},[l]);const m=(h==null?void 0:h.queues)||[],p=m.filter(w=>{const A=w.name.toLowerCase().includes(n.toLowerCase()),T=w.failed>0?"critical":w.active>0?"active":"idle";return A&&(a==="all"||T===a)}),v=m.reduce((w,A)=>w+A.waiting,0),x=m.reduce((w,A)=>w+A.delayed,0),j=m.reduce((w,A)=>w+A.failed,0),O=m.reduce((w,A)=>w+A.active,0);return c?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(na,{className:"animate-spin text-primary",size:48}),g.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading queues..."})]}):f?g.jsx("div",{className:"text-center p-20",children:g.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:[g.jsx(oa,{size:56,className:"mx-auto mb-6 opacity-80"}),g.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Queues"}),g.jsx("p",{className:"text-sm font-medium opacity-70 mb-8",children:f.message})]})}):g.jsxs(g.Fragment,{children:[g.jsx(ba,{children:e&&g.jsx(sI,{queueName:e,onClose:()=>t(null)})}),g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Processing Queues"}),g.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Manage and monitor all processing pipelines."})]}),g.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:[g.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"]})]}),g.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[g.jsxs("div",{className:"card-premium p-5 flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] mb-2 font-heading",children:"Total Waiting"}),g.jsx("p",{className:"text-3xl font-black font-mono tracking-tighter",children:v.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-5 flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] mb-2 font-heading",children:"Total Delayed"}),g.jsx("p",{className:"text-3xl font-black text-amber-500 font-mono tracking-tighter",children:x.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-5 flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] mb-2 font-heading",children:"Total Failed"}),g.jsx("p",{className:"text-3xl font-black text-red-500 font-mono tracking-tighter",children:j.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-5 flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] mb-2 font-heading",children:"Currently Active"}),g.jsx("p",{className:"text-3xl font-black text-emerald-500 font-mono tracking-tighter",children:O.toLocaleString()})]})]}),g.jsxs("div",{className:"card-premium p-3 flex flex-wrap gap-4 items-center",children:[g.jsxs("div",{className:"relative flex-1 min-w-[240px]",children:[g.jsx(yu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/40",size:16}),g.jsx("input",{type:"text","aria-label":"Filter pipelines",placeholder:"Filter pipelines...",value:n,onChange:w=>r(w.target.value),className:"w-full bg-black/20 border border-white/5 rounded-lg py-2 pl-10 pr-4 text-xs font-bold placeholder:text-muted-foreground/30 focus:outline-none focus:ring-1 focus:ring-primary/30 transition-all font-mono"})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(iw,{size:14,className:"text-muted-foreground/40"}),["all","active","idle","critical"].map(w=>g.jsx("button",{type:"button",onClick:()=>o(w),className:Me("px-3 py-1.5 rounded-lg text-[9px] font-black uppercase tracking-widest transition-all border",a===w?"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-muted/40 text-muted-foreground border-transparent hover:bg-muted/60"),children:w},w))]})]}),g.jsx("div",{className:"card-premium overflow-hidden",children:g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full text-left border-collapse",children:[g.jsx("thead",{className:"bg-black/20 text-muted-foreground/60 uppercase text-[9px] font-black tracking-widest border-b border-white/5",children:g.jsxs("tr",{children:[g.jsx("th",{className:"px-6 py-4",children:"Pipeline Architecture"}),g.jsx("th",{className:"px-6 py-4 text-center",children:"Waiting"}),g.jsx("th",{className:"px-6 py-4 text-center",children:"Delayed"}),g.jsx("th",{className:"px-6 py-4 text-center",children:"Active"}),g.jsx("th",{className:"px-6 py-4 text-center",children:"Failed"}),g.jsx("th",{className:"px-6 py-4 text-center",children:"Status"}),g.jsx("th",{className:"px-6 py-4 text-right",children:"Operations"})]})}),g.jsxs("tbody",{className:"divide-y divide-white/5 text-xs font-mono",children:[p.map(w=>{const A=w.failed>0?"critical":w.active>0?"active":"idle";return g.jsxs("tr",{className:"hover:bg-white/[0.02] transition-colors group",children:[g.jsx("td",{className:"px-6 py-4",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-10 h-10 bg-zinc-800/50 border border-white/5 rounded-xl flex items-center justify-center text-primary group-hover:scale-110 group-hover:shadow-[0_0_15px_rgba(0,240,255,0.2)] transition-all",children:g.jsx(sf,{size:18})}),g.jsx("span",{className:"font-black tracking-tight text-sm font-heading",children:w.name})]})}),g.jsx("td",{className:"px-6 py-4 text-center font-bold text-foreground/80",children:w.waiting.toLocaleString()}),g.jsx("td",{className:"px-6 py-4 text-center text-amber-500/80",children:w.delayed}),g.jsx("td",{className:"px-6 py-4 text-center text-emerald-500/80",children:w.active}),g.jsx("td",{className:"px-6 py-4 text-center",children:g.jsx("span",{className:Me("font-black",w.failed>0?"text-red-500":"text-muted-foreground/20"),children:w.failed})}),g.jsx("td",{className:"px-6 py-4 text-center",children:g.jsx("span",{className:Me("px-2.5 py-1 rounded-md text-[8px] font-black uppercase tracking-widest border transition-all",w.paused?"bg-amber-500/10 text-amber-500 border-amber-500/20":A==="critical"?"bg-red-500 text-white border-red-600 shadow-[0_0_10px_rgba(239,68,68,0.3)] animate-pulse":A==="active"?"bg-emerald-500/10 text-emerald-500 border-emerald-500/20 shadow-[0_0_10px_rgba(16,185,129,0.1)]":"bg-zinc-800/50 text-muted-foreground/40 border-transparent"),children:w.paused?"paused":A})}),g.jsx("td",{className:"px-6 py-4 text-right",children:g.jsxs("div",{className:"flex justify-end gap-1.5 items-center",children:[g.jsx("button",{type:"button",onClick:async()=>{const T=w.paused?"resume":"pause";await fetch(`/api/queues/${w.name}/${T}`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]})},className:Me("p-2 rounded-lg transition-all border border-transparent hover:border-white/10",w.paused?"text-emerald-500 bg-emerald-500/5 hover:bg-emerald-500/10":"text-muted-foreground hover:bg-amber-500/10 hover:text-amber-500"),title:w.paused?"Resume Queue":"Pause Queue","aria-label":w.paused?`Resume ${w.name}`:`Pause ${w.name}`,children:w.paused?g.jsx(mD,{size:14}):g.jsx(NU,{size:14})}),g.jsx("div",{className:"w-px h-4 bg-white/5 mx-1"}),w.delayed>0&&g.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${w.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","aria-label":`Retry all delayed jobs in ${w.name}`,children:g.jsx(na,{size:14})}),w.failed>0&&g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${w.name}/retry-all-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-primary hover:bg-primary/10 rounded-lg transition-all",title:"Retry All Failed","aria-label":`Retry all failed jobs in ${w.name}`,children:g.jsx(na,{size:14})}),g.jsx("button",{type:"button",onClick:()=>{confirm(`Are you sure you want to clear all failed jobs in queue "${w.name}"?`)&&fetch(`/api/queues/${w.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","aria-label":`Clear all failed jobs in ${w.name}`,children:g.jsx(cD,{size:14})})]}),g.jsxs("button",{type:"button",onClick:()=>t(w.name),className:"ml-2 px-3 py-1.5 bg-zinc-800 hover:bg-zinc-700 text-foreground/80 rounded-lg transition-all flex items-center gap-2 text-[9px] font-black uppercase tracking-widest border border-white/5 hover:border-primary/40",children:["Inspect ",g.jsx(Ep,{size:10})]})]})})]},w.name)}),p.length===0&&g.jsx("tr",{children:g.jsxs("td",{colSpan:7,className:"px-6 py-20 text-center text-muted-foreground",children:[g.jsx(Zn,{size:40,className:"mx-auto mb-4 opacity-10 animate-pulse"}),g.jsx("p",{className:"text-sm font-bold opacity-30 italic uppercase tracking-widest",children:n||a!=="all"?"No queues match your filters":"No queues available"})]})})]})]})})})]})]})}const oI=6048e5,Mde=864e5,N_=Symbol.for("constructDateFrom");function Es(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&N_ in e?e[N_](t):e instanceof Date?new e.constructor(t):new Date(t)}function ni(e,t){return Es(t||e,e)}let Pde={};function Cg(){return Pde}function Cf(e,t){var c,f,h,m;const n=Cg(),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,a=ni(e,t==null?void 0:t.in),o=a.getDay(),l=(o<r?7:0)+o-r;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function Ap(e,t){return Cf(e,{...t,weekStartsOn:1})}function lI(e,t){const n=ni(e,t==null?void 0:t.in),r=n.getFullYear(),a=Es(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=Ap(a),l=Es(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=Ap(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function k_(e){const t=ni(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 _de(e,...t){const n=Es.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function T_(e,t){const n=ni(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Dde(e,t,n){const[r,a]=_de(n==null?void 0:n.in,e,t),o=T_(r),l=T_(a),c=+o-k_(o),f=+l-k_(l);return Math.round((c-f)/Mde)}function Rde(e,t){const n=lI(e,t),r=Es(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ap(r)}function zde(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lde(e){return!(!zde(e)&&typeof e!="number"||isNaN(+ni(e)))}function Ide(e,t){const n=ni(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Bde={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"}},Ude=(e,t,n)=>{let r;const a=Bde[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ix(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const qde={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$de={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vde={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fde={date:ix({formats:qde,defaultWidth:"full"}),time:ix({formats:$de,defaultWidth:"full"}),dateTime:ix({formats:Vde,defaultWidth:"full"})},Hde={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kde=(e,t,n,r)=>Hde[e];function Bc(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):l;a=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}const Gde={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yde={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wde={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"]},Xde={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"]},Qde={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"}},Zde={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"}},Jde=(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"},ehe={ordinalNumber:Jde,era:Bc({values:Gde,defaultWidth:"wide"}),quarter:Bc({values:Yde,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bc({values:Wde,defaultWidth:"wide"}),day:Bc({values:Xde,defaultWidth:"wide"}),dayPeriod:Bc({values:Qde,defaultWidth:"wide",formattingValues:Zde,defaultFormattingWidth:"wide"})};function Uc(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?nhe(c,p=>p.test(l)):the(c,p=>p.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 the(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nhe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function rhe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=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(a.length);return{value:l,rest:c}}}const ihe=/^(\d+)(th|st|nd|rd)?/i,ahe=/\d+/i,she={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},ohe={any:[/^b/i,/^(a|c)/i]},lhe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uhe={any:[/1/i,/2/i,/3/i,/4/i]},che={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},fhe={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]},dhe={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},hhe={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]},mhe={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},phe={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}},ghe={ordinalNumber:rhe({matchPattern:ihe,parsePattern:ahe,valueCallback:e=>parseInt(e,10)}),era:Uc({matchPatterns:she,defaultMatchWidth:"wide",parsePatterns:ohe,defaultParseWidth:"any"}),quarter:Uc({matchPatterns:lhe,defaultMatchWidth:"wide",parsePatterns:uhe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Uc({matchPatterns:che,defaultMatchWidth:"wide",parsePatterns:fhe,defaultParseWidth:"any"}),day:Uc({matchPatterns:dhe,defaultMatchWidth:"wide",parsePatterns:hhe,defaultParseWidth:"any"}),dayPeriod:Uc({matchPatterns:mhe,defaultMatchWidth:"any",parsePatterns:phe,defaultParseWidth:"any"})},vhe={code:"en-US",formatDistance:Ude,formatLong:Fde,formatRelative:Kde,localize:ehe,match:ghe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yhe(e,t){const n=ni(e,t==null?void 0:t.in);return Dde(n,Ide(n))+1}function bhe(e,t){const n=ni(e,t==null?void 0:t.in),r=+Ap(n)-+Rde(n);return Math.round(r/oI)+1}function uI(e,t){var m,p,v,x;const n=ni(e,t==null?void 0:t.in),r=n.getFullYear(),a=Cg(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??a.firstWeekContainsDate??((x=(v=a.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,l=Es((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=Cf(l,t),f=Es((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=Cf(f,t);return+n>=+c?r+1:+n>=+h?r:r-1}function xhe(e,t){var c,f,h,m;const n=Cg(),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,a=uI(e,t),o=Es((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Cf(o,t)}function whe(e,t){const n=ni(e,t==null?void 0:t.in),r=+Cf(n,t)-+xhe(n,t);return Math.round(r/oI)+1}function it(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ts={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return it(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):it(n+1,2)},d(e,t){return it(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 it(e.getHours()%12||12,t.length)},H(e,t){return it(e.getHours(),t.length)},m(e,t){return it(e.getMinutes(),t.length)},s(e,t){return it(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return it(a,t.length)}},Dl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C_={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return ts.y(e,t)},Y:function(e,t,n,r){const a=uI(e,r),o=a>0?a:1-a;if(t==="YY"){const l=o%100;return it(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):it(o,t.length)},R:function(e,t){const n=lI(e);return it(n,t.length)},u:function(e,t){const n=e.getFullYear();return it(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 it(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 it(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 ts.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 it(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 a=whe(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):it(a,t.length)},I:function(e,t,n){const r=bhe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):it(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ts.d(e,t)},D:function(e,t,n){const r=yhe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):it(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 a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return it(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return it(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return it(a,t.length);case"io":return n.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Dl.noon:r===0?a=Dl.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Dl.evening:r>=12?a=Dl.afternoon:r>=4?a=Dl.morning:a=Dl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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 ts.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ts.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):it(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):it(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ts.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ts.s(e,t)},S:function(e,t){return ts.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return P_(r);case"XXXX":case"XX":return ro(r);case"XXXXX":case"XXX":default:return ro(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return P_(r);case"xxxx":case"xx":return ro(r);case"xxxxx":case"xxx":default:return ro(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+M_(r,":");case"OOOO":default:return"GMT"+ro(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+M_(r,":");case"zzzz":default:return"GMT"+ro(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return it(r,t.length)},T:function(e,t,n){return it(+e,t.length)}};function M_(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+t+it(o,2)}function P_(e,t){return e%60===0?(e>0?"-":"+")+it(Math.abs(e)/60,2):ro(e,t)}function ro(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=it(Math.trunc(r/60),2),o=it(r%60,2);return n+a+t+o}const __=(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"})}},cI=(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"})}},She=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return __(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}}",__(r,t)).replace("{{time}}",cI(a,t))},jhe={p:cI,P:She},Ohe=/^D+$/,Ahe=/^Y+$/,Ehe=["D","DD","YY","YYYY"];function Nhe(e){return Ohe.test(e)}function khe(e){return Ahe.test(e)}function The(e,t,n){const r=Che(e,t,n);if(console.warn(r),Ehe.includes(e))throw new RangeError(r)}function Che(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 Mhe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Phe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_he=/^'([^]*?)'?$/,Dhe=/''/g,Rhe=/[a-zA-Z]/;function D_(e,t,n){var m,p,v,x;const r=Cg(),a=r.locale??vhe,o=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,l=r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,c=ni(e,n==null?void 0:n.in);if(!Lde(c))throw new RangeError("Invalid time value");let f=t.match(Phe).map(j=>{const O=j[0];if(O==="p"||O==="P"){const w=jhe[O];return w(j,a.formatLong)}return j}).join("").match(Mhe).map(j=>{if(j==="''")return{isToken:!1,value:"'"};const O=j[0];if(O==="'")return{isToken:!1,value:zhe(j)};if(C_[O])return{isToken:!0,value:j};if(O.match(Rhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:j}});a.localize.preprocessor&&(f=a.localize.preprocessor(c,f));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return f.map(j=>{if(!j.isToken)return j.value;const O=j.value;(khe(O)||Nhe(O))&&The(O,t,String(e));const w=C_[O[0]];return w(c,O,a.localize,h)}).join("")}function zhe(e){const t=e.match(_he);return t?t[1].replace(Dhe,"'"):e}function Lhe(){var k;const e=va(),[t,n]=S.useState(!1),[r,a]=S.useState({id:"",cron:"",queue:"default",className:"",payload:"{}"}),[o,l]=S.useState(null),[c,f]=S.useState(null),{addNotification:h}=dw(),{data:m}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(E=>E.json())}),{data:p,isLoading:v}=Nn({queryKey:["schedules"],queryFn:()=>fetch("/api/schedules").then(E=>E.json())}),x=Gy({mutationFn:E=>fetch(`/api/schedules/run/${E}`,{method:"POST"}),onSuccess:(E,C)=>{e.invalidateQueries({queryKey:["queues"]}),h({type:"success",title:"Schedule Triggered",message:`Job ${C} has been manually pushed to the queue.`}),l(null)},onError:E=>{h({type:"error",title:"Trigger Failed",message:E.message||"Failed to run schedule manually."}),l(null)}}),j=Gy({mutationFn:E=>fetch(`/api/schedules/${E}`,{method:"DELETE"}),onSuccess:(E,C)=>{e.invalidateQueries({queryKey:["schedules"]}),h({type:"info",title:"Schedule Deleted",message:`Schedule ${C} was removed.`}),f(null)}}),O=Gy({mutationFn:E=>fetch("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}),onSuccess:()=>{e.invalidateQueries({queryKey:["schedules"]}),n(!1),a({id:"",cron:"",queue:"default",className:"",payload:"{}"}),h({type:"success",title:"Schedule Registered",message:"New recurring task is now active."})}}),w=(p==null?void 0:p.schedules)||[],A=(m==null?void 0:m.queues)||[],T=E=>{E.preventDefault();try{const C=JSON.parse(r.payload);O.mutate({id:r.id,cron:r.cron,queue:r.queue,job:{className:r.className,payload:C}})}catch{alert("Invalid JSON payload")}};return g.jsxs("div",{className:"space-y-8 max-w-6xl",children:[g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Schedules"}),g.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."})]}),g.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:[g.jsx(YE,{size:18}),"New Schedule"]})]}),g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsxs("div",{className:"card-premium p-5 flex items-center gap-5 border-l-4 border-primary",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-[0_0_15px_rgba(0,240,255,0.1)]",children:g.jsx(Zn,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading mb-0.5",children:"Active Schedules"}),g.jsx("p",{className:"text-2xl font-black font-mono tracking-tighter",children:v?"...":w.length})]})]}),g.jsxs("div",{className:"card-premium p-5 flex items-center gap-5 border-l-4 border-indigo-500/40",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-400 border border-indigo-500/20 shadow-[0_0_15px_rgba(99,102,241,0.1)]",children:g.jsx(bx,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading mb-0.5",children:"Total Executions"}),g.jsx("p",{className:"text-2xl font-black font-mono tracking-tighter",children:"---"})]})]}),g.jsxs("div",{className:"card-premium p-5 flex items-center gap-5 border-l-4 border-emerald-500/40",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-500/10 flex items-center justify-center text-emerald-400 border border-emerald-500/20 shadow-[0_0_15px_rgba(16,185,129,0.1)]",children:g.jsx(rw,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading mb-0.5",children:"Health Score"}),g.jsx("p",{className:"text-2xl font-black text-emerald-500 font-mono tracking-tighter",children:"99.8%"})]})]})]}),g.jsxs("div",{className:"card-premium p-3 flex gap-4 items-center",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(yu,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground/30",size:18}),g.jsx("input",{type:"text",placeholder:"Search schedules by name, cron or ID...",className:"w-full bg-black/20 border border-white/5 rounded-xl pl-12 pr-4 py-3 text-xs font-bold font-mono placeholder:text-white/10 focus:ring-1 focus:ring-primary/30 outline-none transition-all"})]}),g.jsx("button",{type:"button",className:"p-3 bg-zinc-900/40 border border-white/5 rounded-xl hover:bg-zinc-800 transition-all text-muted-foreground/60",children:g.jsx(iw,{size:18})})]}),v&&g.jsx("div",{className:"space-y-4",children:[1,2,3].map(E=>g.jsx("div",{className:"card-premium p-6 h-32 animate-pulse bg-muted/20"},E))}),w.length===0&&!v&&g.jsxs("div",{className:"card-premium p-20 flex flex-col items-center justify-center text-center opacity-60",children:[g.jsx("div",{className:"w-20 h-20 rounded-3xl bg-muted flex items-center justify-center mb-6",children:g.jsx(gi,{size:32,className:"text-muted-foreground/30"})}),g.jsx("h3",{className:"text-xl font-bold mb-2",children:"No Scheduled Tasks Yet"}),g.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."})]}),g.jsx("div",{className:"grid grid-cols-1 gap-4",children:w.map(E=>g.jsxs("div",{className:"card-premium p-6 group hover:border-primary/20 transition-all border-l-4 border-l-zinc-800 hover:border-l-primary",children:[g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex gap-6",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-zinc-900 border border-white/5 flex items-center justify-center text-muted-foreground/40 group-hover:text-primary group-hover:border-primary/20 group-hover:shadow-[0_0_20px_rgba(0,240,255,0.1)] transition-all",children:g.jsx(gi,{size:32})}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("h3",{className:"text-xl font-black font-heading tracking-tight text-white/90",children:E.id}),g.jsx("span",{className:"px-2 py-0.5 bg-emerald-500/10 text-emerald-500 text-[9px] font-black uppercase tracking-widest rounded border border-emerald-500/20",children:"Active"})]}),g.jsxs("div",{className:"flex items-center gap-5 text-[11px] font-bold text-muted-foreground/60 font-mono uppercase tracking-tighter",children:[g.jsxs("span",{className:"flex items-center gap-2 bg-black/40 px-2 py-0.5 rounded border border-white/5",children:[g.jsx(gi,{size:12,className:"text-primary/60"})," ",E.cron]}),g.jsxs("span",{className:"flex items-center gap-2 bg-black/40 px-2 py-0.5 rounded border border-white/5",children:[g.jsx(Ep,{size:12,className:"text-primary/60"})," ",E.queue]}),g.jsx("span",{className:"text-primary/40",children:E.job.className})]})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{type:"button",disabled:x.isPending,onClick:()=>l(E.id),className:"px-5 py-2.5 bg-primary/10 hover:bg-primary text-primary hover:text-black rounded-xl text-[10px] font-black uppercase tracking-[0.2em] transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50 border border-primary/20 font-heading shadow-lg shadow-transparent hover:shadow-primary/20",children:x.isPending&&x.variables===E.id?g.jsxs(g.Fragment,{children:[g.jsx(na,{size:14,className:"animate-spin"}),"Triggering..."]}):"Execute Now"}),g.jsx("button",{type:"button",onClick:()=>f(E.id),className:"p-2.5 bg-red-500/5 hover:bg-red-500 hover:text-white rounded-xl transition-all text-red-500/60 border border-transparent hover:border-red-500/20",children:g.jsx(of,{size:18})})]})]}),g.jsxs("div",{className:"mt-8 grid grid-cols-2 gap-6 pt-6 border-t border-white/5",children:[g.jsxs("div",{className:"flex items-center gap-4 group/stat",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-zinc-900 border border-white/5 flex items-center justify-center text-muted-foreground/20 group-hover/stat:text-primary transition-colors",children:g.jsx(bx,{size:16})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/40 uppercase tracking-[0.2em] mb-1 font-heading",children:"Previous Burst"}),g.jsx("p",{className:"text-xs font-black font-mono text-white/60 tabular-nums",children:E.lastRun?D_(new Date(E.lastRun),"HH:mm:ss / MMM dd"):"N/A"})]})]}),g.jsxs("div",{className:"flex items-center gap-4 group/stat",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/5 border border-primary/10 flex items-center justify-center text-primary/40 group-hover/stat:text-primary transition-colors",children:g.jsx(mD,{size:16})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-primary/40 uppercase tracking-[0.2em] mb-1 font-heading",children:"Next Sequence"}),g.jsx("p",{className:"text-xs font-black font-mono text-primary/80 tabular-nums uppercase",children:E.nextRun?D_(new Date(E.nextRun),"HH:mm:ss / MMM dd"):"Pending"})]})]})]})]},E.id))}),g.jsx(ba,{children:t&&g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[g.jsx(ut.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>n(!1),className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),g.jsxs(ut.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:[g.jsxs("div",{className:"p-6 border-b flex items-center justify-between bg-muted/5",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:g.jsx(YE,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold leading-none",children:"Register Schedule"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest mt-1",children:"Add new recurring job"})]})]}),g.jsx("button",{type:"button",onClick:()=>n(!1),className:"p-2 hover:bg-muted rounded-full transition-all",children:g.jsx(Tp,{size:20})})]}),g.jsxs("form",{onSubmit:T,className:"p-6 space-y-5",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"schedule-id",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Schedule Identifier (ID)"}),g.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:E=>a({...r,id:E.target.value})})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"cron-expression",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Cron Expression"}),g.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:E=>a({...r,cron:E.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"target-queue",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Target Queue"}),g.jsxs("div",{className:"relative",children:[g.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:E=>a({...r,queue:E.target.value}),children:A.map(E=>g.jsx("option",{value:E.name,children:E.name},E.name))}),g.jsx(q9,{className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none",size:16})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"job-class-name",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Class Name"}),g.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:E=>a({...r,className:E.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"job-payload",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Payload (JSON)"}),g.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:E=>a({...r,payload:E.target.value})})]}),g.jsxs("div",{className:"pt-4 flex gap-3",children:[g.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"}),g.jsx("button",{type:"submit",disabled:O.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:O.isPending?"Registering...":"Register Schedule"})]})]})]})]})}),g.jsx(X1,{open:!!o,title:"Manual trigger confirmation",message:`Are you sure you want to run "${o}" immediately?
|
|
433
|
+
This will bypass the next scheduled time and push a job to the "${(k=w.find(E=>E.id===o))==null?void 0:k.queue}" queue.`,confirmText:"Run Now",variant:"info",isProcessing:x.isPending,onConfirm:()=>o&&x.mutate(o),onCancel:()=>l(null)}),g.jsx(X1,{open:!!c,title:"Delete Schedule",message:`Are you sure you want to delete "${c}"?
|
|
434
|
+
This action cannot be undone and recurring jobs for this schedule will stop.`,confirmText:"Delete",variant:"danger",isProcessing:j.isPending,onConfirm:()=>c&&j.mutate(c),onCancel:()=>f(null)})]})}function Ihe(){var f,h,m,p,v,x,j,O,w,A,T,k,E,C,P,_,D,L,Z,ee,V,ue,le,ce,q,G,ie,J,$,R,Q,se,oe,fe,me,Se,Xe,Y,Ce,Pe,ae,vt,Re,Rt,zt,hr,Na,$o,Vo,Fo;const e=va(),[t,n]=_e.useState(!1),[r,a]=_e.useState(()=>{if(typeof window<"u"){const pe=localStorage.getItem("theme");if(pe==="light"||pe==="dark")return pe}return"system"}),{data:o}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(pe=>pe.json()),refetchInterval:3e4}),{data:l}=Nn({queryKey:["alerts-config"],queryFn:()=>fetch("/api/alerts/config").then(pe=>pe.json())}),c=pe=>{a(pe);const Ne=window.document.documentElement;pe==="system"?(window.matchMedia("(prefers-color-scheme: dark)").matches?Ne.classList.add("dark"):Ne.classList.remove("dark"),localStorage.removeItem("theme")):pe==="dark"?(Ne.classList.add("dark"),localStorage.setItem("theme","dark")):(Ne.classList.remove("dark"),localStorage.setItem("theme","light"))};return g.jsxs("div",{className:"space-y-8 max-w-4xl",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Settings"}),g.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Configure your Flux Console preferences."})]}),g.jsxs("section",{className:"card-premium p-6 border-l-4 border-primary",children:[g.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-[0_0_15px_rgba(0,240,255,0.1)]",children:g.jsx(AU,{size:24})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-xl font-black font-heading tracking-tight",children:"Appearance Architecture"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-black opacity-50 mt-0.5",children:"Customize Visual Interface"})]})]}),g.jsx("div",{className:"space-y-6",children:g.jsxs("div",{children:[g.jsx("label",{htmlFor:"theme-select",className:"text-[10px] font-black uppercase tracking-widest mb-4 block text-muted-foreground ml-1",children:"Interface Mode"}),g.jsx("div",{id:"theme-select",className:"flex gap-4",children:[{value:"light",icon:Sx,label:"Standard"},{value:"dark",icon:wx,label:"Quantum"},{value:"system",icon:GE,label:"Auto"}].map(({value:pe,icon:Ne,label:ke})=>g.jsxs("button",{type:"button",onClick:()=>c(pe),className:Me("flex-1 flex items-center justify-center gap-3 px-4 py-4 rounded-xl border transition-all font-heading uppercase text-[11px] font-black tracking-widest",r===pe?"bg-primary text-black border-primary shadow-[0_0_30px_rgba(0,240,255,0.2)] scale-[1.02]":"bg-zinc-900/40 border-white/5 hover:border-primary/30 text-muted-foreground hover:text-foreground"),children:[g.jsx(Ne,{size:18}),g.jsx("span",{children:ke})]},pe))})]})})]}),g.jsxs("section",{className:"card-premium p-6 border-l-4 border-indigo-500/40",children:[g.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-400 border border-indigo-500/20 shadow-[0_0_15px_rgba(99,102,241,0.1)]",children:g.jsx(bm,{size:24})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-xl font-black font-heading tracking-tight",children:"Quantum Connectivity"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-black opacity-50 mt-0.5",children:"Infrastructure Bridge Status"})]})]}),g.jsxs("div",{className:"space-y-2 font-mono",children:[g.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-white/5 group",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(kp,{size:16,className:"text-muted-foreground group-hover:text-primary transition-colors"}),g.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground",children:"Redis Protocol"})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:"w-2 h-2 bg-emerald-500 rounded-full glow-pulse shadow-[0_0_10px_#10B981]"}),g.jsx("span",{className:"text-xs font-black text-emerald-500 uppercase tracking-[0.2em]",children:"Established"})]})]}),g.jsxs("div",{className:"flex items-center justify-between py-4 border-b border-white/5 group",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(bm,{size:16,className:"text-muted-foreground group-hover:text-primary transition-colors"}),g.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground",children:"Endpoint URI"})]}),g.jsx("code",{className:"text-[11px] bg-black/40 px-3 py-1.5 rounded-lg border border-white/5 text-primary",children:(o==null?void 0:o.redisUrl)||"redis://localhost:6379"})]})]})]}),g.jsxs("section",{className:"card-premium p-6 border-l-4 border-emerald-500/40",children:[g.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-500/10 flex items-center justify-center text-emerald-400 border border-emerald-500/20 shadow-[0_0_15px_rgba(16,185,129,0.1)]",children:g.jsx(Kc,{size:24})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-xl font-black font-heading tracking-tight",children:"Quantum Runtime"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-black opacity-50 mt-0.5",children:"Kernel Environment & Metrics"})]})]}),g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[g.jsxs("div",{className:"bg-black/40 rounded-xl p-5 border border-white/5 group hover:border-primary/20 transition-all flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/40 uppercase tracking-widest mb-2",children:"Runtime Engine"}),g.jsx("p",{className:"text-lg font-mono font-black text-primary/80",children:(o==null?void 0:o.node)||"..."})]}),g.jsxs("div",{className:"bg-black/40 rounded-xl p-5 border border-white/5 group hover:border-primary/20 transition-all flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/40 uppercase tracking-widest mb-2",children:"Namespace"}),g.jsx("p",{className:"text-sm font-mono font-black text-white/60 uppercase truncate",children:(o==null?void 0:o.env)||"..."})]}),g.jsxs("div",{className:"bg-black/40 rounded-xl p-5 border border-white/5 group hover:border-primary/20 transition-all flex flex-col justify-between",children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/40 uppercase tracking-widest mb-2",children:"Memory Footprint"}),g.jsx("p",{className:"text-lg font-mono font-black text-white/80 tracking-tighter",children:((f=o==null?void 0:o.memory)==null?void 0:f.rss)||"..."})]})]})]}),g.jsxs("section",{className:"card-premium p-6 border-l-4 border-orange-500/60",children:[g.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-orange-500/10 flex items-center justify-center text-orange-500 border border-orange-500/20 shadow-[0_0_15px_rgba(249,115,22,0.1)]",children:g.jsx(ym,{size:24})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-xl font-black font-heading tracking-tight",children:"Signal Monitoring"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-black opacity-50 mt-0.5",children:"Automated Incident Alerting"})]})]}),g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"space-y-4",children:[g.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.3em] text-muted-foreground/40 mb-4 ml-1",children:"Communication Transports"}),g.jsxs("div",{className:"p-5 bg-zinc-900/40 rounded-2xl border border-white/5 group hover:border-primary/20 transition-all",children:[g.jsxs("div",{className:"flex items-center justify-between mb-5",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center text-white/60 group-hover:text-primary transition-colors",children:g.jsx(ym,{size:18})}),g.jsxs("div",{children:[g.jsx("h4",{className:"text-sm font-black font-heading text-white tracking-widest uppercase",children:"Slack Bridge"}),g.jsx("p",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-tighter opacity-40",children:"Standard Event Webhook"})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var ke,Pt,fn,dn,Ht;const pe=!((fn=(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.slack)!=null&&fn.enabled),Ne=((Ht=(dn=l==null?void 0:l.config)==null?void 0:dn.channels)==null?void 0:Ht.slack)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...Ne,enabled:pe}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Me("px-4 py-1.5 rounded-lg text-[9px] font-black uppercase tracking-widest transition-all border font-mono",(p=(m=(h=l==null?void 0:l.config)==null?void 0:h.channels)==null?void 0:m.slack)!=null&&p.enabled?"bg-emerald-500/10 text-emerald-500 border-emerald-500/40 shadow-[0_0_15px_rgba(16,185,129,0.1)]":"bg-zinc-800 text-muted-foreground border-transparent opacity-40 hover:opacity-100"),children:(j=(x=(v=l==null?void 0:l.config)==null?void 0:v.channels)==null?void 0:x.slack)!=null&&j.enabled?"Online":"Offline"})]}),g.jsx("div",{className:"flex gap-3",children:g.jsx("input",{type:"password",placeholder:"SLACK_WEBHOOK_URL",defaultValue:((A=(w=(O=l==null?void 0:l.config)==null?void 0:O.channels)==null?void 0:w.slack)==null?void 0:A.webhookUrl)||"",onBlur:async pe=>{var ke,Pt,fn,dn,Ht;const Ne=pe.target.value;Ne!==((fn=(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.slack)==null?void 0:fn.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...(Ht=(dn=l==null?void 0:l.config)==null?void 0:dn.channels)==null?void 0:Ht.slack,webhookUrl:Ne}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-black/40 border border-white/5 rounded-lg px-4 py-3 text-[11px] font-mono outline-none focus:ring-1 focus:ring-primary/30 text-primary/80 placeholder:text-white/5"})})]}),g.jsxs("div",{className:"p-5 bg-zinc-900/40 rounded-2xl border border-white/5 group hover:border-primary/20 transition-all",children:[g.jsxs("div",{className:"flex items-center justify-between mb-5",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center text-white/60 group-hover:text-[#5865F2] transition-colors",children:g.jsx(GE,{size:18})}),g.jsxs("div",{children:[g.jsx("h4",{className:"text-sm font-black font-heading text-white tracking-widest uppercase",children:"Discord Relay"}),g.jsx("p",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-tighter opacity-40",children:"Webhook Cluster Transport"})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var ke,Pt,fn,dn,Ht;const pe=!((fn=(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.discord)!=null&&fn.enabled),Ne=((Ht=(dn=l==null?void 0:l.config)==null?void 0:dn.channels)==null?void 0:Ht.discord)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...Ne,enabled:pe}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Me("px-4 py-1.5 rounded-lg text-[9px] font-black uppercase tracking-widest transition-all border font-mono",(E=(k=(T=l==null?void 0:l.config)==null?void 0:T.channels)==null?void 0:k.discord)!=null&&E.enabled?"bg-[#5865F2]/10 text-[#5865F2] border-[#5865F2]/40 shadow-[0_0_15px_rgba(88,101,242,0.1)]":"bg-zinc-800 text-muted-foreground border-transparent opacity-40 hover:opacity-100"),children:(_=(P=(C=l==null?void 0:l.config)==null?void 0:C.channels)==null?void 0:P.discord)!=null&&_.enabled?"Online":"Offline"})]}),g.jsx("div",{className:"flex gap-3",children:g.jsx("input",{type:"password",placeholder:"DISCORD_WEBHOOK_URL",defaultValue:((Z=(L=(D=l==null?void 0:l.config)==null?void 0:D.channels)==null?void 0:L.discord)==null?void 0:Z.webhookUrl)||"",onBlur:async pe=>{var ke,Pt,fn,dn,Ht;const Ne=pe.target.value;Ne!==((fn=(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.discord)==null?void 0:fn.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...(Ht=(dn=l==null?void 0:l.config)==null?void 0:dn.channels)==null?void 0:Ht.discord,webhookUrl:Ne}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-black/40 border border-white/5 rounded-lg px-4 py-3 text-[11px] font-mono outline-none focus:ring-1 focus:ring-primary/30 text-primary/80 placeholder:text-white/5"})})]}),g.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-red-500/10 flex items-center justify-center text-red-500",children:g.jsx(Kc,{size:16})}),g.jsxs("div",{children:[g.jsx("h4",{className:"text-sm font-bold",children:"Email (SMTP)"}),g.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard mail delivery"})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var ke,Pt,fn,dn,Ht;const pe=!((fn=(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.email)!=null&&fn.enabled),Ne=((Ht=(dn=l==null?void 0:l.config)==null?void 0:dn.channels)==null?void 0:Ht.email)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...Ne,enabled:pe}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Me("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(ue=(V=(ee=l==null?void 0:l.config)==null?void 0:ee.channels)==null?void 0:V.email)!=null&&ue.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(q=(ce=(le=l==null?void 0:l.config)==null?void 0:le.channels)==null?void 0:ce.email)!=null&&q.enabled?"Enabled":"Disabled"})]}),((J=(ie=(G=l==null?void 0:l.config)==null?void 0:G.channels)==null?void 0:ie.email)==null?void 0:J.enabled)&&g.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-4 animate-in fade-in slide-in-from-top-2",children:[g.jsxs("div",{className:"col-span-2 space-y-1",children:[g.jsx("label",{htmlFor:"email-to",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Destination Address"}),g.jsx("input",{id:"email-to",placeholder:"admin@example.com",defaultValue:((Q=(R=($=l==null?void 0:l.config)==null?void 0:$.channels)==null?void 0:R.email)==null?void 0:Q.to)||"",onBlur:async pe=>{var ke,Pt;const Ne=pe.target.value;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(Pt=(ke=l==null?void 0:l.config)==null?void 0:ke.channels)==null?void 0:Pt.email,to:Ne}}})})},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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"smtp-host",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"SMTP Host"}),g.jsx("input",{id:"smtp-host",placeholder:"smtp.gmail.com",defaultValue:((fe=(oe=(se=l==null?void 0:l.config)==null?void 0:se.channels)==null?void 0:oe.email)==null?void 0:fe.smtpHost)||"",onBlur:async pe=>{var Ne,ke;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(ke=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:ke.email,smtpHost:pe.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"smtp-port",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Port"}),g.jsx("input",{id:"smtp-port",type:"number",placeholder:"465",defaultValue:((Xe=(Se=(me=l==null?void 0:l.config)==null?void 0:me.channels)==null?void 0:Se.email)==null?void 0:Xe.smtpPort)||465,onBlur:async pe=>{var Ne,ke;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(ke=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:ke.email,smtpPort:parseInt(pe.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"smtp-user",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Username"}),g.jsx("input",{id:"smtp-user",placeholder:"user@example.com",defaultValue:((Pe=(Ce=(Y=l==null?void 0:l.config)==null?void 0:Y.channels)==null?void 0:Ce.email)==null?void 0:Pe.smtpUser)||"",onBlur:async pe=>{var Ne,ke;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(ke=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:ke.email,smtpUser:pe.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"smtp-pass",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Password"}),g.jsx("input",{id:"smtp-pass",type:"password",placeholder:"••••••••",defaultValue:((Re=(vt=(ae=l==null?void 0:l.config)==null?void 0:ae.channels)==null?void 0:vt.email)==null?void 0:Re.smtpPass)||"",onBlur:async pe=>{var Ne,ke;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(ke=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:ke.email,smtpPass:pe.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"})]}),g.jsxs("div",{className:"col-span-2 space-y-1",children:[g.jsx("label",{htmlFor:"email-from",className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"From Address"}),g.jsx("input",{id:"email-from",placeholder:"Zenith Monitor <noreply@example.com>",defaultValue:((hr=(zt=(Rt=l==null?void 0:l.config)==null?void 0:Rt.channels)==null?void 0:zt.email)==null?void 0:hr.from)||"",onBlur:async pe=>{var Ne,ke;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(ke=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:ke.email,from:pe.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"})]})]})]})]}),g.jsxs("div",{className:"flex items-center justify-between mb-3 mt-8",children:[g.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60",children:"Active Rules"}),g.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&&g.jsxs("form",{onSubmit:async pe=>{pe.preventDefault();const Ne=new FormData(pe.currentTarget),ke={id:Math.random().toString(36).substring(7),name:Ne.get("name"),type:Ne.get("type"),threshold:parseInt(Ne.get("threshold"),10),cooldownMinutes:parseInt(Ne.get("cooldown"),10),queue:Ne.get("queue")||void 0};await fetch("/api/alerts/rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ke)}),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:[g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"rule-name",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Rule Name"}),g.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"rule-type",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Type"}),g.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:[g.jsx("option",{value:"backlog",children:"Queue Backlog"}),g.jsx("option",{value:"failure",children:"High Failure Count"}),g.jsx("option",{value:"worker_lost",children:"Worker Loss"}),g.jsx("option",{value:"node_cpu",children:"Node CPU (%)"}),g.jsx("option",{value:"node_ram",children:"Node RAM (%)"})]})]})]}),g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"rule-threshold",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Threshold"}),g.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"rule-cooldown",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Cooldown (Min)"}),g.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"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{htmlFor:"rule-queue",className:"text-[10px] font-black uppercase text-muted-foreground",children:"Queue (Optional)"}),g.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"})]})]}),g.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"})]}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:(Na=l==null?void 0:l.rules)==null?void 0:Na.map(pe=>g.jsxs("div",{className:"p-3 bg-muted/20 border border-border/10 rounded-xl flex items-center justify-between group",children:[g.jsxs("div",{className:"flex-1",children:[g.jsxs("p",{className:"text-[11px] font-black uppercase tracking-tight flex items-center gap-2",children:[pe.name,pe.queue&&g.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-primary/10 text-primary",children:pe.queue})]}),g.jsx("p",{className:"text-[10px] text-muted-foreground opacity-70",children:pe.type==="backlog"?`Waiting > ${pe.threshold}`:pe.type==="failure"?`Failed > ${pe.threshold}`:pe.type==="worker_lost"?`Workers < ${pe.threshold}`:pe.type==="node_cpu"?`CPU > ${pe.threshold}%`:`RAM > ${pe.threshold}%`})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("div",{className:"px-2 py-0.5 bg-muted rounded text-[9px] font-bold text-muted-foreground",children:[pe.cooldownMinutes,"m"]}),g.jsx("button",{type:"button",onClick:async()=>{confirm("Delete this alert rule?")&&(await fetch(`/api/alerts/rules/${pe.id}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"p-1 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-all",children:g.jsx(of,{size:12})})]})]},pe.id))}),g.jsxs("div",{className:"pt-4 flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border/30",children:[g.jsx("p",{className:"text-xs text-muted-foreground max-w-md",children:"Configure notification channels above to receive real-time alerts."}),g.jsx("button",{type:"button",onClick:async()=>{(await fetch("/api/alerts/test",{method:"POST"}).then(Ne=>Ne.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"})]})]})]}),g.jsxs("section",{className:"card-premium p-6",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-red-500/10 flex items-center justify-center text-red-500",children:g.jsx(of,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"Data Retention"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Manage persistent archive storage"})]})]}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-sm font-bold",children:"SQL Job Archive Preservation"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Keep archived jobs for a specific number of days before permanent removal."})]}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Auto-Cleanup"}),g.jsx("button",{type:"button",onClick:async()=>{var Ne;const pe=!((Ne=l==null?void 0:l.maintenance)!=null&&Ne.autoCleanup);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,autoCleanup:pe})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:Me("w-10 h-5 rounded-full p-1 transition-all flex items-center",($o=l==null?void 0:l.maintenance)!=null&&$o.autoCleanup?"bg-green-500 justify-end":"bg-muted justify-start"),children:g.jsx("div",{className:"w-3 h-3 bg-white rounded-full shadow-sm"})})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Retention Days"}),g.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:((Vo=l==null?void 0:l.maintenance)==null?void 0:Vo.retentionDays)||30,onChange:async pe=>{const Ne=parseInt(pe.target.value,10);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,retentionDays:Ne})}),e.invalidateQueries({queryKey:["alerts-config"]})},children:[g.jsx("option",{value:"7",children:"7 Days"}),g.jsx("option",{value:"15",children:"15 Days"}),g.jsx("option",{value:"30",children:"30 Days"}),g.jsx("option",{value:"90",children:"90 Days"}),g.jsx("option",{value:"365",children:"1 Year"})]})]})]})]}),g.jsxs("div",{className:"bg-red-500/5 border border-red-500/10 rounded-xl p-4 flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(Kc,{size:16,className:"text-red-500/60"}),g.jsxs("div",{className:"flex flex-col",children:[g.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."}),((Fo=l==null?void 0:l.maintenance)==null?void 0:Fo.lastRun)&&g.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:["Last auto-cleanup run:"," ",new Date(l.maintenance.lastRun).toLocaleString()]})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var Ne;const pe=((Ne=l==null?void 0:l.maintenance)==null?void 0:Ne.retentionDays)||30;if(confirm(`Are you sure you want to prune logs older than ${pe} days?`)){const ke=await fetch("/api/maintenance/cleanup-archive",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({days:pe})}).then(Pt=>Pt.json());alert(`Cleanup complete. Removed ${ke.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"})]})]}),g.jsx("div",{className:"pt-4 border-t border-border/30",children:g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-sm font-bold",children:"Live Stats History (Redis)"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Minute-by-minute metrics used for dashboard charts."})]}),g.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)"})]})})]})]}),g.jsxs("section",{className:"card-premium p-6",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 flex items-center justify-center text-amber-500",children:g.jsx(pD,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"About Flux Console"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Version and documentation"})]})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[g.jsx("span",{className:"font-medium",children:"Version"}),g.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.version)||"0.1.0-alpha.1"})]}),g.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[g.jsx("span",{className:"font-medium",children:"Package"}),g.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.package)||"@gravito/flux-console"})]}),g.jsxs("div",{className:"flex items-center justify-between py-3",children:[g.jsx("span",{className:"font-medium",children:"Documentation"}),g.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 ",g.jsx(nU,{size:14})]})]})]})]})]})}function Bhe(){const e=va(),{isPending:t,error:n,data:r}=Nn({queryKey:["workers"],queryFn:async()=>(await fetch("/api/workers")).json(),refetchInterval:5e3});S.useEffect(()=>{const m=p=>{var v;(v=p.detail)!=null&&v.workers&&e.setQueryData(["workers"],{workers:p.detail.workers})};return window.addEventListener("flux-stats-update",m),()=>window.removeEventListener("flux-stats-update",m)},[e]);const a=(r==null?void 0:r.workers)||[],o=a.filter(m=>m.status==="online"),l=a.filter(m=>m.status!=="online"),c=a.reduce((m,p)=>{var v;return m+(((v=p.metrics)==null?void 0:v.cpu)||0)},0),f=a.length>0?c/a.length:0,h=a.reduce((m,p)=>{var v,x;return m+(((x=(v=p.metrics)==null?void 0:v.ram)==null?void 0:x.rss)||0)},0);return t?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(na,{className:"animate-spin text-primary",size:48}),g.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading workers..."})]}):n?g.jsx("div",{className:"text-center p-20",children:g.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:[g.jsx(oa,{size:56,className:"mx-auto mb-6 opacity-80"}),g.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Workers"}),g.jsx("p",{className:"text-sm font-medium opacity-70",children:n.message})]})}):g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Worker Nodes"}),g.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Monitor and manage cluster processing nodes."})]}),g.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:[g.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"]})]}),g.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[g.jsx("div",{className:"card-premium p-5 relative overflow-hidden group border-l-4 border-emerald-500",children:g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(kp,{size:14,className:"text-emerald-500"}),g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading",children:"Operational Nodes"})]}),g.jsx("p",{className:"text-3xl font-black text-white font-mono tracking-tighter",children:o.length})]})}),g.jsx("div",{className:"card-premium p-5 relative overflow-hidden group border-l-4 border-white/10",children:g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(gD,{size:14,className:"text-white/20"}),g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading",children:"Standby Nodes"})]}),g.jsx("p",{className:"text-3xl font-black text-white/40 font-mono tracking-tighter",children:l.length})]})}),g.jsx("div",{className:"card-premium p-5 relative overflow-hidden group border-l-4 border-primary/40",children:g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(uU,{size:14,className:"text-primary"}),g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading",children:"Compute Load"})]}),g.jsx("p",{className:"text-3xl font-black text-white font-mono tracking-tighter",children:f.toFixed(2)})]})}),g.jsx("div",{className:"card-premium p-5 relative overflow-hidden group border-l-4 border-indigo-500/40",children:g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(wU,{size:14,className:"text-indigo-400"}),g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/60 uppercase tracking-[0.2em] font-heading",children:"Cluster Memory"})]}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsx("p",{className:"text-3xl font-black text-white font-mono tracking-tighter",children:(h/1024).toFixed(1)}),g.jsx("span",{className:"text-[10px] font-black text-white/20 uppercase tracking-tighter",children:"GB"})]})]})})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:[a.length===0&&g.jsxs("div",{className:"col-span-full py-32 text-center text-muted-foreground/20",children:[g.jsx(af,{size:48,className:"mx-auto mb-4 opacity-30 animate-pulse"}),g.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em]",children:"Awaiting signal from constellation..."})]}),a.map((m,p)=>{var v;return g.jsxs(ut.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{delay:p*.05},className:"card-premium p-6 relative overflow-hidden group border-l-4",style:{borderLeftColor:m.status==="online"?"#10B981":"#27272A"},children:[g.jsxs("div",{className:"flex items-start justify-between mb-8",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:Me("w-12 h-12 rounded-xl flex items-center justify-center transition-all border border-white/5",m.status==="online"?"bg-emerald-500/10 text-emerald-500":"bg-zinc-800 text-muted-foreground/40"),children:g.jsx(af,{size:24})}),m.status==="online"&&g.jsx("div",{className:"absolute -bottom-1 -right-1 w-4 h-4 rounded-full border-4 border-zinc-950 bg-emerald-500 animate-pulse shadow-[0_0_10px_#10B981]"})]}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-black tracking-tight text-base group-hover:text-primary transition-colors font-heading uppercase italic",children:m.id}),g.jsxs("p",{className:"text-[9px] font-bold text-muted-foreground/40 uppercase tracking-[0.2em] font-mono mt-1",children:["PID: ",m.pid]})]})]}),g.jsx("span",{className:Me("px-2 py-1 rounded-md text-[8px] font-black uppercase tracking-widest border transition-all",m.status==="online"?"bg-emerald-500/10 text-emerald-500 border-emerald-500/20 shadow-[0_0_10px_rgba(16,185,129,0.1)]":"bg-zinc-800/50 text-muted-foreground/40 border-transparent"),children:m.status})]}),m.metrics&&g.jsxs("div",{className:"space-y-5 font-mono",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex justify-between text-[9px] font-black uppercase tracking-widest mb-2.5",children:[g.jsx("span",{className:"text-muted-foreground/60",children:"CPU Compute Power"}),g.jsxs("span",{className:Me(m.metrics.cpu>(m.metrics.cores||4)?"text-red-500":m.metrics.cpu>(m.metrics.cores||4)*.7?"text-amber-500 font-black":"text-primary font-black"),children:[m.metrics.cpu.toFixed(2),"%"]})]}),g.jsx("div",{className:"h-1.5 w-full bg-black/40 rounded-full overflow-hidden border border-white/5",children:g.jsx(ut.div,{initial:{width:0},animate:{width:`${Math.min(100,m.metrics.cpu/(m.metrics.cores||1)*100)}%`},transition:{duration:1},className:Me("h-full transition-colors relative",m.metrics.cpu>(m.metrics.cores||4)?"bg-red-500":m.metrics.cpu>(m.metrics.cores||4)*.7?"bg-amber-500":"bg-primary shadow-[0_0_10px_#00F0FF]")})})]}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex justify-between text-[9px] font-black uppercase tracking-widest mb-2.5",children:[g.jsx("span",{className:"text-muted-foreground/60",children:"Memory Integrity"}),g.jsxs("span",{className:"text-white/80 font-black",children:[(m.metrics.ram.rss/1024).toFixed(2)," GB"]})]}),g.jsx("div",{className:"h-1.5 w-full bg-black/40 rounded-full overflow-hidden border border-white/5",children:g.jsx(ut.div,{initial:{width:0},animate:{width:`${Math.min(100,m.metrics.ram.rss/(m.metrics.ram.total||2048)*100)}%`},transition:{duration:1},className:"h-full bg-indigo-500 shadow-[0_0_10px_#6366F1]"})})]})]}),g.jsxs("div",{className:"mt-8 space-y-3",children:[m.queues&&m.queues.length>0&&g.jsxs("div",{className:"bg-white/[0.02] p-4 rounded-xl border border-white/5",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx("div",{className:"w-1.5 h-1.5 bg-primary rounded-full shadow-[0_0_8px_#00F0FF]"}),g.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-muted-foreground/60 font-heading",children:"Pipeline Access"})]}),g.jsx("div",{className:"flex flex-wrap gap-2",children:m.queues.map((x,j)=>g.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-foreground/60 bg-black/40 px-2 py-1 rounded border border-white/5 font-mono",children:[g.jsx("span",{className:"opacity-40",children:x.name}),(x.size.waiting>0||x.size.failed>0)&&g.jsx("span",{className:Me("px-1 rounded text-[8px] border",x.size.failed>0?"text-red-500 bg-red-500/10 border-red-500/20":"text-primary bg-primary/10 border-primary/20"),children:x.size.failed>0?"! FAIL":`${x.size.waiting}W`})]},j))})]}),((v=m.meta)==null?void 0:v.laravel)&&g.jsxs("div",{className:"flex items-center justify-between p-4 bg-red-500/5 border border-red-500/10 rounded-xl",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"w-1.5 h-1.5 bg-red-500 rounded-full animate-pulse shadow-[0_0_8px_#EF4444]"}),g.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-red-500/80 font-heading",children:"Laravel Threading"})]}),g.jsxs("span",{className:"font-mono text-sm font-black text-red-500 tabular-nums tracking-tighter",children:[m.meta.laravel.workerCount||0," PHP"]})]})]}),g.jsxs("div",{className:"mt-6 pt-5 border-t border-white/5 flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground/40 font-heading",children:[g.jsx(gi,{size:12}),g.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.2em]",children:"Quantum Uptime"})]}),g.jsx("span",{className:"font-mono text-[11px] font-black text-white/60 tabular-nums",children:Uhe(m.uptime)})]})]},m.id)})]})]})}function Uhe(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 qhe=new tD;function $he(){const{isAuthenticated:e,isAuthEnabled:t,isLoading:n}=Pp();return n?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[g.jsx(na,{className:"animate-spin text-primary",size:48}),g.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Initializing..."})]})}):t&&!e?g.jsx(OG,{}):g.jsx(O$,{children:g.jsx(jG,{children:g.jsxs(Fq,{children:[g.jsx(rs,{path:"/",element:g.jsx(xde,{})}),g.jsx(rs,{path:"/queues",element:g.jsx(Cde,{})}),g.jsx(rs,{path:"/schedules",element:g.jsx(Lhe,{})}),g.jsx(rs,{path:"/workers",element:g.jsx(Bhe,{})}),g.jsx(rs,{path:"/metrics",element:g.jsx(lde,{})}),g.jsx(rs,{path:"/pulse",element:g.jsx(Tde,{})}),g.jsx(rs,{path:"/settings",element:g.jsx(Ihe,{})})]})})})}function Vhe(){return g.jsx(rD,{client:qhe,children:g.jsx(m$,{children:g.jsx(j$,{children:g.jsx($he,{})})})})}const Fhe=new tD;j9.createRoot(document.getElementById("root")).render(g.jsx(_e.StrictMode,{children:g.jsx(rD,{client:Fhe,children:g.jsx(Vhe,{})})}));
|