@gravito/zenith 1.1.1 → 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 +22 -0
- package/README.md +77 -22
- package/README.zh-TW.md +88 -0
- package/dist/bin.js +67305 -15756
- package/dist/client/assets/index-C80c1frR.css +1 -0
- package/dist/client/assets/index-CrWem9u3.js +434 -0
- package/dist/server/index.js +67305 -15756
- 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/config/ServerConfigManager.ts +4 -1
- package/src/server/index.ts +4 -1
- 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
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
var i8=Object.defineProperty;var uE=e=>{throw TypeError(e)};var a8=(e,t,n)=>t in e?i8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _y=(e,t,n)=>a8(e,typeof t!="symbol"?t+"":t,n),Dy=(e,t,n)=>t.has(e)||uE("Cannot "+n);var L=(e,t,n)=>(Dy(e,t,"read from private field"),n?n.call(e):t.get(e)),je=(e,t,n)=>t.has(e)?uE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(Dy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(Dy(e,t,"access private method"),n);var wh=(e,t,n,r)=>({set _(a){ce(e,t,a,n)},get _(){return L(e,t,r)}});function s8(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 Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ry={exports:{}},vc={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var cE;function o8(){if(cE)return vc;cE=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 vc.Fragment=t,vc.jsx=n,vc.jsxs=n,vc}var fE;function l8(){return fE||(fE=1,Ry.exports=o8()),Ry.exports}var g=l8(),ou=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(){}},u8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},as,B1,u_,c8=(u_=class{constructor(){je(this,as,u8);je(this,B1,!1)}setTimeoutProvider(e){ce(this,as,e)}setTimeout(e,t){return L(this,as).setTimeout(e,t)}clearTimeout(e){L(this,as).clearTimeout(e)}setInterval(e,t){return L(this,as).setInterval(e,t)}clearInterval(e){L(this,as).clearInterval(e)}},as=new WeakMap,B1=new WeakMap,u_),Js=new c8;function f8(e){setTimeout(e,0)}var wo=typeof window>"u"||"Deno"in globalThis;function Pn(){}function d8(e,t){return typeof e=="function"?e(t):e}function Gx(e){return typeof e=="number"&&e>=0&&e!==1/0}function b_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gs(e,t){return typeof e=="function"?e(t):e}function Mr(e,t){return typeof e=="function"?e(t):e}function dE(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==U1(l,t.options))return!1}else if(!Wc(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 hE(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(So(t.options.mutationKey)!==So(o))return!1}else if(!Wc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function U1(e,t){return((t==null?void 0:t.queryKeyHashFn)||So)(e)}function So(e){return JSON.stringify(e,(t,n)=>Wx(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Wc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Wc(e[n],t[n])):!1}var h8=Object.prototype.hasOwnProperty;function w_(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=mE(e)&&mE(t);if(!r&&!(Wx(e)&&Wx(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],y=e[p],b=t[p];if(y===b){f[p]=y,(r?m<o:h8.call(e,p))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[p]=b;continue}const S=w_(y,b,n+1);f[p]=S,S===y&&h++}return o===c&&h===o?e:f}function cm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function mE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wx(e){if(!pE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pE(e){return Object.prototype.toString.call(e)==="[object Object]"}function m8(e){return new Promise(t=>{Js.setTimeout(t,e)})}function Xx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?w_(e,t):t}function p8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function g8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $1=Symbol();function S_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function q1(e,t){return typeof e=="function"?e(...t):!!e}function v8(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 so,ss,Bl,c_,y8=(c_=class extends ou{constructor(){super();je(this,so);je(this,ss);je(this,Bl);ce(this,Bl,t=>{if(!wo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,ss)||this.setEventListener(L(this,Bl))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,ss))==null||t.call(this),ce(this,ss,void 0))}setEventListener(t){var n;ce(this,Bl,t),(n=L(this,ss))==null||n.call(this),ce(this,ss,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,so)!==t&&(ce(this,so,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,so)=="boolean"?L(this,so):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},so=new WeakMap,ss=new WeakMap,Bl=new WeakMap,c_),V1=new y8;function Qx(){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 x8=f8;function b8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=x8;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 Xt=b8(),Ul,os,$l,f_,w8=(f_=class extends ou{constructor(){super();je(this,Ul,!0);je(this,os);je(this,$l);ce(this,$l,t=>{if(!wo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,os)||this.setEventListener(L(this,$l))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,os))==null||t.call(this),ce(this,os,void 0))}setEventListener(t){var n;ce(this,$l,t),(n=L(this,os))==null||n.call(this),ce(this,os,t(this.setOnline.bind(this)))}setOnline(t){L(this,Ul)!==t&&(ce(this,Ul,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,Ul)}},Ul=new WeakMap,os=new WeakMap,$l=new WeakMap,f_),fm=new w8;function S8(e){return Math.min(1e3*2**e,3e4)}function j_(e){return(e??"online")==="online"?fm.isOnline():!0}var Zx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function A_(e){let t=!1,n=0,r;const a=Qx(),o=()=>a.status!=="pending",l=j=>{var A;if(!o()){const O=new Zx(j);y(O),(A=e.onCancel)==null||A.call(e,O)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>V1.isFocused()&&(e.networkMode==="always"||fm.isOnline())&&e.canRun(),m=()=>j_(e.networkMode)&&e.canRun(),p=j=>{o()||(r==null||r(),a.resolve(j))},y=j=>{o()||(r==null||r(),a.reject(j))},b=()=>new Promise(j=>{var A;r=O=>{(o()||h())&&j(O)},(A=e.onPause)==null||A.call(e)}).then(()=>{var j;r=void 0,o()||(j=e.onContinue)==null||j.call(e)}),S=()=>{if(o())return;let j;const A=n===0?e.initialPromise:void 0;try{j=A??e.fn()}catch(O){j=Promise.reject(O)}Promise.resolve(j).then(p).catch(O=>{var D;if(o())return;const T=e.retry??(wo?0:3),N=e.retryDelay??S8,C=typeof N=="function"?N(n,O):N,k=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,O);if(t||!k){y(O);return}n++,(D=e.onFail)==null||D.call(e,n,O),m8(C).then(()=>h()?void 0:b()).then(()=>{t?y(O):S()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?S():b().then(S),a)}}var oo,d_,O_=(d_=class{constructor(){je(this,oo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gx(this.gcTime)&&ce(this,oo,Js.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wo?1/0:300*1e3))}clearGcTimeout(){L(this,oo)&&(Js.clearTimeout(L(this,oo)),ce(this,oo,void 0))}},oo=new WeakMap,d_),lo,ql,kr,uo,sn,Sf,co,Yr,Fi,h_,j8=(h_=class extends O_{constructor(t){super();je(this,Yr);je(this,lo);je(this,ql);je(this,kr);je(this,uo);je(this,sn);je(this,Sf);je(this,co);ce(this,co,!1),ce(this,Sf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,uo,t.client),ce(this,kr,L(this,uo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,lo,vE(this.options)),this.state=t.state??L(this,lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,sn))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,Sf),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=vE(this.options);n.data!==void 0&&(this.setState(gE(n.data,n.dataUpdatedAt)),ce(this,lo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,kr).remove(this)}setData(t,n){const r=Xx(this.state.data,t,this.options);return Le(this,Yr,Fi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Yr,Fi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=L(this,sn))==null?void 0:r.promise;return(a=L(this,sn))==null||a.cancel(t),n?n.then(Pn).catch(Pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,lo))}isActive(){return this.observers.some(t=>Mr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gs(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:!b_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,kr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,sn)&&(L(this,co)?L(this,sn).cancel({revert:!0}):L(this,sn).cancelRetry()),this.scheduleGc()),L(this,kr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Yr,Fi).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,p,y,b,S,j,A,O,T,N;if(this.state.fetchStatus!=="idle"&&((f=L(this,sn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,sn))return L(this,sn).continueRetry(),L(this,sn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(k=>k.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,a=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(ce(this,co,!0),r.signal)})},o=()=>{const C=S_(this.options,n),D=(()=>{const M={client:L(this,uo),queryKey:this.queryKey,meta:this.meta};return a(M),M})();return ce(this,co,!1),this.options.persister?this.options.persister(C,D,this):C(D)},c=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:L(this,uo),state:this.state,fetchFn:o};return a(C),C})();(h=this.options.behavior)==null||h.onFetch(c,this),ce(this,ql,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Le(this,Yr,Fi).call(this,{type:"fetch",meta:(p=c.fetchOptions)==null?void 0:p.meta}),ce(this,sn,A_({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:C=>{C instanceof Zx&&C.revert&&this.setState({...L(this,ql),fetchStatus:"idle"}),r.abort()},onFail:(C,k)=>{Le(this,Yr,Fi).call(this,{type:"failed",failureCount:C,error:k})},onPause:()=>{Le(this,Yr,Fi).call(this,{type:"pause"})},onContinue:()=>{Le(this,Yr,Fi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const C=await L(this,sn).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(b=(y=L(this,kr).config).onSuccess)==null||b.call(y,C,this),(j=(S=L(this,kr).config).onSettled)==null||j.call(S,C,this.state.error,this),C}catch(C){if(C instanceof Zx){if(C.silent)return L(this,sn).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Le(this,Yr,Fi).call(this,{type:"error",error:C}),(O=(A=L(this,kr).config).onError)==null||O.call(A,C,this),(N=(T=L(this,kr).config).onSettled)==null||N.call(T,this.state.data,C,this),C}finally{this.scheduleGc()}}},lo=new WeakMap,ql=new WeakMap,kr=new WeakMap,uo=new WeakMap,sn=new WeakMap,Sf=new WeakMap,co=new WeakMap,Yr=new WeakSet,Fi=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,...E_(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...gE(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(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),Xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,kr).notify({query:this,type:"updated",action:t})})},h_);function E_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:j_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gn,He,jf,kn,fo,Vl,Ki,ls,Af,Fl,Hl,ho,mo,us,Kl,Je,_c,Jx,eb,tb,nb,rb,ib,ab,N_,m_,A8=(m_=class extends ou{constructor(t,n){super();je(this,Je);je(this,Gn);je(this,He);je(this,jf);je(this,kn);je(this,fo);je(this,Vl);je(this,Ki);je(this,ls);je(this,Af);je(this,Fl);je(this,Hl);je(this,ho);je(this,mo);je(this,us);je(this,Kl,new Set);this.options=n,ce(this,Gn,t),ce(this,ls,null),ce(this,Ki,Qx()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,He).addObserver(this),yE(L(this,He),this.options)?Le(this,Je,_c).call(this):this.updateResult(),Le(this,Je,nb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sb(L(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sb(L(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Je,rb).call(this),Le(this,Je,ib).call(this),L(this,He).removeObserver(this)}setOptions(t){const n=this.options,r=L(this,He);if(this.options=L(this,Gn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mr(this.options.enabled,L(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Le(this,Je,ab).call(this),L(this,He).setOptions(this.options),n._defaulted&&!cm(this.options,n)&&L(this,Gn).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,He),observer:this});const a=this.hasListeners();a&&xE(L(this,He),r,this.options,n)&&Le(this,Je,_c).call(this),this.updateResult(),a&&(L(this,He)!==r||Mr(this.options.enabled,L(this,He))!==Mr(n.enabled,L(this,He))||gs(this.options.staleTime,L(this,He))!==gs(n.staleTime,L(this,He)))&&Le(this,Je,Jx).call(this);const o=Le(this,Je,eb).call(this);a&&(L(this,He)!==r||Mr(this.options.enabled,L(this,He))!==Mr(n.enabled,L(this,He))||o!==L(this,us))&&Le(this,Je,tb).call(this,o)}getOptimisticResult(t){const n=L(this,Gn).getQueryCache().build(L(this,Gn),t),r=this.createResult(n,t);return E8(this,r)&&(ce(this,kn,r),ce(this,Vl,this.options),ce(this,fo,L(this,He).state)),r}getCurrentResult(){return L(this,kn)}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&&L(this,Ki).status==="pending"&&L(this,Ki).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){L(this,Kl).add(t)}getCurrentQuery(){return L(this,He)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=L(this,Gn).defaultQueryOptions(t),r=L(this,Gn).getQueryCache().build(L(this,Gn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,Je,_c).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,kn)))}createResult(t,n){var B;const r=L(this,He),a=this.options,o=L(this,kn),l=L(this,fo),c=L(this,Vl),h=t!==r?t.state:L(this,jf),{state:m}=t;let p={...m},y=!1,b;if(n._optimisticResults){const K=this.hasListeners(),$=!K&&yE(t,n),Z=K&&xE(t,r,n,a);($||Z)&&(p={...p,...E_(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:S,errorUpdatedAt:j,status:A}=p;b=p.data;let O=!1;if(n.placeholderData!==void 0&&b===void 0&&A==="pending"){let K;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(K=o.data,O=!0):K=typeof n.placeholderData=="function"?n.placeholderData((B=L(this,Hl))==null?void 0:B.state.data,L(this,Hl)):n.placeholderData,K!==void 0&&(A="success",b=Xx(o==null?void 0:o.data,K,n),y=!0)}if(n.select&&b!==void 0&&!O)if(o&&b===(l==null?void 0:l.data)&&n.select===L(this,Af))b=L(this,Fl);else try{ce(this,Af,n.select),b=n.select(b),b=Xx(o==null?void 0:o.data,b,n),ce(this,Fl,b),ce(this,ls,null)}catch(K){ce(this,ls,K)}L(this,ls)&&(S=L(this,ls),b=L(this,Fl),j=Date.now(),A="error");const T=p.fetchStatus==="fetching",N=A==="pending",C=A==="error",k=N&&T,D=b!==void 0,_={status:A,fetchStatus:p.fetchStatus,isPending:N,isSuccess:A==="success",isError:C,isInitialLoading:k,isLoading:k,data:b,dataUpdatedAt:p.dataUpdatedAt,error:S,errorUpdatedAt:j,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&&!N,isLoadingError:C&&!D,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&D,isStale:F1(t,n),refetch:this.refetch,promise:L(this,Ki),isEnabled:Mr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=le=>{_.status==="error"?le.reject(_.error):_.data!==void 0&&le.resolve(_.data)},$=()=>{const le=ce(this,Ki,_.promise=Qx());K(le)},Z=L(this,Ki);switch(Z.status){case"pending":t.queryHash===r.queryHash&&K(Z);break;case"fulfilled":(_.status==="error"||_.data!==Z.value)&&$();break;case"rejected":(_.status!=="error"||_.error!==Z.reason)&&$();break}}return _}updateResult(){const t=L(this,kn),n=this.createResult(L(this,He),this.options);if(ce(this,fo,L(this,He).state),ce(this,Vl,this.options),L(this,fo).data!==void 0&&ce(this,Hl,L(this,He)),cm(n,t))return;ce(this,kn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!L(this,Kl).size)return!0;const l=new Set(o??L(this,Kl));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,kn)).some(c=>{const f=c;return L(this,kn)[f]!==t[f]&&l.has(f)})};Le(this,Je,N_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Je,nb).call(this)}},Gn=new WeakMap,He=new WeakMap,jf=new WeakMap,kn=new WeakMap,fo=new WeakMap,Vl=new WeakMap,Ki=new WeakMap,ls=new WeakMap,Af=new WeakMap,Fl=new WeakMap,Hl=new WeakMap,ho=new WeakMap,mo=new WeakMap,us=new WeakMap,Kl=new WeakMap,Je=new WeakSet,_c=function(t){Le(this,Je,ab).call(this);let n=L(this,He).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pn)),n},Jx=function(){Le(this,Je,rb).call(this);const t=gs(this.options.staleTime,L(this,He));if(wo||L(this,kn).isStale||!Gx(t))return;const r=b_(L(this,kn).dataUpdatedAt,t)+1;ce(this,ho,Js.setTimeout(()=>{L(this,kn).isStale||this.updateResult()},r))},eb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,He)):this.options.refetchInterval)??!1},tb=function(t){Le(this,Je,ib).call(this),ce(this,us,t),!(wo||Mr(this.options.enabled,L(this,He))===!1||!Gx(L(this,us))||L(this,us)===0)&&ce(this,mo,Js.setInterval(()=>{(this.options.refetchIntervalInBackground||V1.isFocused())&&Le(this,Je,_c).call(this)},L(this,us)))},nb=function(){Le(this,Je,Jx).call(this),Le(this,Je,tb).call(this,Le(this,Je,eb).call(this))},rb=function(){L(this,ho)&&(Js.clearTimeout(L(this,ho)),ce(this,ho,void 0))},ib=function(){L(this,mo)&&(Js.clearInterval(L(this,mo)),ce(this,mo,void 0))},ab=function(){const t=L(this,Gn).getQueryCache().build(L(this,Gn),this.options);if(t===L(this,He))return;const n=L(this,He);ce(this,He,t),ce(this,jf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},N_=function(t){Xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(L(this,kn))}),L(this,Gn).getQueryCache().notify({query:L(this,He),type:"observerResultsUpdated"})})},m_);function O8(e,t){return Mr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yE(e,t){return O8(e,t)||e.state.data!==void 0&&sb(e,t,t.refetchOnMount)}function sb(e,t,n){if(Mr(t.enabled,e)!==!1&&gs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&F1(e,t)}return!1}function xE(e,t,n,r){return(e!==t||Mr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&F1(e,n)}function F1(e,t){return Mr(t.enabled,e)!==!1&&e.isStaleByTime(gs(t.staleTime,e))}function E8(e,t){return!cm(e.getCurrentResult(),t)}function bE(e){return{onFetch:(t,n)=>{var m,p,y,b,S;const r=t.options,a=(y=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let j=!1;const A=N=>{v8(N,()=>t.signal,()=>j=!0)},O=S_(t.options,t.fetchOptions),T=async(N,C,k)=>{if(j)return Promise.reject();if(C==null&&N.pages.length)return Promise.resolve(N);const M=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:k?"backward":"forward",meta:t.options.meta};return A($),$})(),_=await O(M),{maxPages:B}=t.options,K=k?g8:p8;return{pages:K(N.pages,_,B),pageParams:K(N.pageParams,C,B)}};if(a&&o.length){const N=a==="backward",C=N?N8:wE,k={pages:o,pageParams:l},D=C(r,k);c=await T(k,D,N)}else{const N=e??o.length;do{const C=f===0?l[0]??r.initialPageParam:wE(r,c);if(f>0&&C==null)break;c=await T(c,C),f++}while(f<N)}return c};t.options.persister?t.fetchFn=()=>{var j,A;return(A=(j=t.options).persister)==null?void 0:A.call(j,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function wE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function N8(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 Of,fi,Mn,po,di,Ja,p_,T8=(p_=class extends O_{constructor(t){super();je(this,di);je(this,Of);je(this,fi);je(this,Mn);je(this,po);ce(this,Of,t.client),this.mutationId=t.mutationId,ce(this,Mn,t.mutationCache),ce(this,fi,[]),this.state=t.state||T_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,fi).includes(t)||(L(this,fi).push(t),this.clearGcTimeout(),L(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,fi,L(this,fi).filter(n=>n!==t)),this.scheduleGc(),L(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,fi).length||(this.state.status==="pending"?this.scheduleGc():L(this,Mn).remove(this))}continue(){var t;return((t=L(this,po))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,f,h,m,p,y,b,S,j,A,O,T,N,C,k,D,M,_,B;const n=()=>{Le(this,di,Ja).call(this,{type:"continue"})},r={client:L(this,Of),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,po,A_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(K,$)=>{Le(this,di,Ja).call(this,{type:"failed",failureCount:K,error:$})},onPause:()=>{Le(this,di,Ja).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Mn).canRun(this)}));const a=this.state.status==="pending",o=!L(this,po).canStart();try{if(a)n();else{Le(this,di,Ja).call(this,{type:"pending",variables:t,isPaused:o}),await((c=(l=L(this,Mn).config).onMutate)==null?void 0:c.call(l,t,this,r));const $=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,t,r));$!==this.state.context&&Le(this,di,Ja).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const K=await L(this,po).start();return await((p=(m=L(this,Mn).config).onSuccess)==null?void 0:p.call(m,K,t,this.state.context,this,r)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,K,t,this.state.context,r)),await((j=(S=L(this,Mn).config).onSettled)==null?void 0:j.call(S,K,null,this.state.variables,this.state.context,this,r)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,K,null,t,this.state.context,r)),Le(this,di,Ja).call(this,{type:"success",data:K}),K}catch(K){try{await((N=(T=L(this,Mn).config).onError)==null?void 0:N.call(T,K,t,this.state.context,this,r))}catch($){Promise.reject($)}try{await((k=(C=this.options).onError)==null?void 0:k.call(C,K,t,this.state.context,r))}catch($){Promise.reject($)}try{await((M=(D=L(this,Mn).config).onSettled)==null?void 0:M.call(D,void 0,K,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((B=(_=this.options).onSettled)==null?void 0:B.call(_,void 0,K,t,this.state.context,r))}catch($){Promise.reject($)}throw Le(this,di,Ja).call(this,{type:"error",error:K}),K}finally{L(this,Mn).runNext(this)}}},Of=new WeakMap,fi=new WeakMap,Mn=new WeakMap,po=new WeakMap,di=new WeakSet,Ja=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),Xt.batch(()=>{L(this,fi).forEach(r=>{r.onMutationUpdate(t)}),L(this,Mn).notify({mutation:this,type:"updated",action:t})})},p_);function T_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yi,Gr,Ef,g_,C8=(g_=class extends ou{constructor(t={}){super();je(this,Yi);je(this,Gr);je(this,Ef);this.config=t,ce(this,Yi,new Set),ce(this,Gr,new Map),ce(this,Ef,0)}build(t,n,r){const a=new T8({client:t,mutationCache:this,mutationId:++wh(this,Ef)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){L(this,Yi).add(t);const n=Sh(t);if(typeof n=="string"){const r=L(this,Gr).get(n);r?r.push(t):L(this,Gr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,Yi).delete(t)){const n=Sh(t);if(typeof n=="string"){const r=L(this,Gr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&L(this,Gr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sh(t);if(typeof n=="string"){const r=L(this,Gr).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=Sh(t);if(typeof n=="string"){const a=(r=L(this,Gr).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(){Xt.batch(()=>{L(this,Yi).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Yi).clear(),L(this,Gr).clear()})}getAll(){return Array.from(L(this,Yi))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hE(n,r))}findAll(t={}){return this.getAll().filter(n=>hE(t,n))}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pn))))}},Yi=new WeakMap,Gr=new WeakMap,Ef=new WeakMap,g_);function Sh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Gi,cs,Wn,Wi,ia,Wh,ob,v_,k8=(v_=class extends ou{constructor(n,r){super();je(this,ia);je(this,Gi);je(this,cs);je(this,Wn);je(this,Wi);ce(this,Gi,n),this.setOptions(r),this.bindMethods(),Le(this,ia,Wh).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=L(this,Gi).defaultMutationOptions(n),cm(this.options,r)||L(this,Gi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Wn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&So(r.mutationKey)!==So(this.options.mutationKey)?this.reset():((a=L(this,Wn))==null?void 0:a.state.status)==="pending"&&L(this,Wn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=L(this,Wn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,ia,Wh).call(this),Le(this,ia,ob).call(this,n)}getCurrentResult(){return L(this,cs)}reset(){var n;(n=L(this,Wn))==null||n.removeObserver(this),ce(this,Wn,void 0),Le(this,ia,Wh).call(this),Le(this,ia,ob).call(this)}mutate(n,r){var a;return ce(this,Wi,r),(a=L(this,Wn))==null||a.removeObserver(this),ce(this,Wn,L(this,Gi).getMutationCache().build(L(this,Gi),this.options)),L(this,Wn).addObserver(this),L(this,Wn).execute(n)}},Gi=new WeakMap,cs=new WeakMap,Wn=new WeakMap,Wi=new WeakMap,ia=new WeakSet,Wh=function(){var r;const n=((r=L(this,Wn))==null?void 0:r.state)??T_();ce(this,cs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},ob=function(n){Xt.batch(()=>{var r,a,o,l,c,f,h,m;if(L(this,Wi)&&this.hasListeners()){const p=L(this,cs).variables,y=L(this,cs).context,b={client:L(this,Gi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=L(this,Wi)).onSuccess)==null||a.call(r,n.data,p,y,b)}catch(S){Promise.reject(S)}try{(l=(o=L(this,Wi)).onSettled)==null||l.call(o,n.data,null,p,y,b)}catch(S){Promise.reject(S)}}else if((n==null?void 0:n.type)==="error"){try{(f=(c=L(this,Wi)).onError)==null||f.call(c,n.error,p,y,b)}catch(S){Promise.reject(S)}try{(m=(h=L(this,Wi)).onSettled)==null||m.call(h,void 0,n.error,p,y,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(p=>{p(L(this,cs))})})},v_),hi,y_,M8=(y_=class extends ou{constructor(t={}){super();je(this,hi);this.config=t,ce(this,hi,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??U1(a,n);let l=this.get(o);return l||(l=new j8({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){L(this,hi).has(t.queryHash)||(L(this,hi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,hi).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,hi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,hi).get(t)}getAll(){return[...L(this,hi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dE(t,r)):n}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hi=new WeakMap,y_),Tt,fs,ds,Yl,Gl,hs,Wl,Xl,x_,C_=(x_=class{constructor(e={}){je(this,Tt);je(this,fs);je(this,ds);je(this,Yl);je(this,Gl);je(this,hs);je(this,Wl);je(this,Xl);ce(this,Tt,e.queryCache||new M8),ce(this,fs,e.mutationCache||new C8),ce(this,ds,e.defaultOptions||{}),ce(this,Yl,new Map),ce(this,Gl,new Map),ce(this,hs,0)}mount(){wh(this,hs)._++,L(this,hs)===1&&(ce(this,Wl,V1.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onFocus())})),ce(this,Xl,fm.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onOnline())})))}unmount(){var e,t;wh(this,hs)._--,L(this,hs)===0&&((e=L(this,Wl))==null||e.call(this),ce(this,Wl,void 0),(t=L(this,Xl))==null||t.call(this),ce(this,Xl,void 0))}isFetching(e){return L(this,Tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,fs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=L(this,Tt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return L(this,Tt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=L(this,Tt).get(r.queryHash),o=a==null?void 0:a.state.data,l=d8(t,o);if(l!==void 0)return L(this,Tt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Xt.batch(()=>L(this,Tt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,Tt);Xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,Tt);return Xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Xt.batch(()=>L(this,Tt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pn).catch(Pn)}invalidateQueries(e,t={}){return Xt.batch(()=>(L(this,Tt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Xt.batch(()=>L(this,Tt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Pn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=L(this,Tt).build(this,t);return n.isStaleByTime(gs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=bE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=bE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fm.isOnline()?L(this,fs).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Tt)}getMutationCache(){return L(this,fs)}getDefaultOptions(){return L(this,ds)}setDefaultOptions(e){ce(this,ds,e)}setQueryDefaults(e,t){L(this,Yl).set(So(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,Yl).values()],n={};return t.forEach(r=>{Wc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,Gl).set(So(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,Gl).values()],n={};return t.forEach(r=>{Wc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,ds).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=U1(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===$1&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,ds).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Tt).clear(),L(this,fs).clear()}},Tt=new WeakMap,fs=new WeakMap,ds=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,hs=new WeakMap,Wl=new WeakMap,Xl=new WeakMap,x_),zy={exports:{}},_e={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var SE;function P8(){if(SE)return _e;SE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),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"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function O(R,F,ie){this.props=R,this.context=F,this.refs=A,this.updater=ie||S}O.prototype.isReactComponent={},O.prototype.setState=function(R,F){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,F,"setState")},O.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function T(){}T.prototype=O.prototype;function N(R,F,ie){this.props=R,this.context=F,this.refs=A,this.updater=ie||S}var C=N.prototype=new T;C.constructor=N,j(C,O.prototype),C.isPureReactComponent=!0;var k=Array.isArray;function D(){}var M={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function B(R,F,ie){var se=ie.ref;return{$$typeof:e,type:R,key:F,ref:se!==void 0?se:null,props:ie}}function K(R,F){return B(R.type,F,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var F={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ie){return F[ie]})}var le=/\/+/g;function de(R,F){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):F.toString(36)}function me(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(D,D):(R.status="pending",R.then(function(F){R.status==="pending"&&(R.status="fulfilled",R.value=F)},function(F){R.status==="pending"&&(R.status="rejected",R.reason=F)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,F,ie,se,ye){var Ee=typeof R;(Ee==="undefined"||Ee==="boolean")&&(R=null);var fe=!1;if(R===null)fe=!0;else switch(Ee){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(R.$$typeof){case e:case t:fe=!0;break;case m:return fe=R._init,q(fe(R._payload),F,ie,se,ye)}}if(fe)return ye=ye(R),fe=se===""?"."+de(R,0):se,k(ye)?(ie="",fe!=null&&(ie=fe.replace(le,"$&/")+"/"),q(ye,F,ie,"",function(Ce){return Ce})):ye!=null&&($(ye)&&(ye=K(ye,ie+(ye.key==null||R&&R.key===ye.key?"":(""+ye.key).replace(le,"$&/")+"/")+fe)),F.push(ye)),1;fe=0;var Xe=se===""?".":se+":";if(k(R))for(var J=0;J<R.length;J++)se=R[J],Ee=Xe+de(se,J),fe+=q(se,F,ie,Ee,ye);else if(J=b(R),typeof J=="function")for(R=J.call(R),J=0;!(se=R.next()).done;)se=se.value,Ee=Xe+de(se,J++),fe+=q(se,F,ie,Ee,ye);else if(Ee==="object"){if(typeof R.then=="function")return q(me(R),F,ie,se,ye);throw F=String(R),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(R,F,ie){if(R==null)return R;var se=[],ye=0;return q(R,se,"","",function(Ee){return F.call(ie,Ee,ye++)}),se}function Y(R){if(R._status===-1){var F=R._result;F=F(),F.then(function(ie){(R._status===0||R._status===-1)&&(R._status=1,R._result=ie)},function(ie){(R._status===0||R._status===-1)&&(R._status=2,R._result=ie)}),R._status===-1&&(R._status=0,R._result=F)}if(R._status===1)return R._result.default;throw R._result}var oe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},ne={map:W,forEach:function(R,F,ie){W(R,function(){F.apply(this,arguments)},ie)},count:function(R){var F=0;return W(R,function(){F++}),F},toArray:function(R){return W(R,function(F){return F})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return _e.Activity=p,_e.Children=ne,_e.Component=O,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=N,_e.StrictMode=r,_e.Suspense=f,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,_e.__COMPILER_RUNTIME={__proto__:null,c:function(R){return M.H.useMemoCache(R)}},_e.cache=function(R){return function(){return R.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(R,F,ie){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var se=j({},R.props),ye=R.key;if(F!=null)for(Ee in F.key!==void 0&&(ye=""+F.key),F)!_.call(F,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&F.ref===void 0||(se[Ee]=F[Ee]);var Ee=arguments.length-2;if(Ee===1)se.children=ie;else if(1<Ee){for(var fe=Array(Ee),Xe=0;Xe<Ee;Xe++)fe[Xe]=arguments[Xe+2];se.children=fe}return B(R.type,ye,se)},_e.createContext=function(R){return R={$$typeof:l,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},_e.createElement=function(R,F,ie){var se,ye={},Ee=null;if(F!=null)for(se in F.key!==void 0&&(Ee=""+F.key),F)_.call(F,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ye[se]=F[se]);var fe=arguments.length-2;if(fe===1)ye.children=ie;else if(1<fe){for(var Xe=Array(fe),J=0;J<fe;J++)Xe[J]=arguments[J+2];ye.children=Xe}if(R&&R.defaultProps)for(se in fe=R.defaultProps,fe)ye[se]===void 0&&(ye[se]=fe[se]);return B(R,Ee,ye)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(R){return{$$typeof:c,render:R}},_e.isValidElement=$,_e.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:Y}},_e.memo=function(R,F){return{$$typeof:h,type:R,compare:F===void 0?null:F}},_e.startTransition=function(R){var F=M.T,ie={};M.T=ie;try{var se=R(),ye=M.S;ye!==null&&ye(ie,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(D,oe)}catch(Ee){oe(Ee)}finally{F!==null&&ie.types!==null&&(F.types=ie.types),M.T=F}},_e.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},_e.use=function(R){return M.H.use(R)},_e.useActionState=function(R,F,ie){return M.H.useActionState(R,F,ie)},_e.useCallback=function(R,F){return M.H.useCallback(R,F)},_e.useContext=function(R){return M.H.useContext(R)},_e.useDebugValue=function(){},_e.useDeferredValue=function(R,F){return M.H.useDeferredValue(R,F)},_e.useEffect=function(R,F){return M.H.useEffect(R,F)},_e.useEffectEvent=function(R){return M.H.useEffectEvent(R)},_e.useId=function(){return M.H.useId()},_e.useImperativeHandle=function(R,F,ie){return M.H.useImperativeHandle(R,F,ie)},_e.useInsertionEffect=function(R,F){return M.H.useInsertionEffect(R,F)},_e.useLayoutEffect=function(R,F){return M.H.useLayoutEffect(R,F)},_e.useMemo=function(R,F){return M.H.useMemo(R,F)},_e.useOptimistic=function(R,F){return M.H.useOptimistic(R,F)},_e.useReducer=function(R,F,ie){return M.H.useReducer(R,F,ie)},_e.useRef=function(R){return M.H.useRef(R)},_e.useState=function(R){return M.H.useState(R)},_e.useSyncExternalStore=function(R,F,ie){return M.H.useSyncExternalStore(R,F,ie)},_e.useTransition=function(){return M.H.useTransition()},_e.version="19.2.3",_e}var jE;function lu(){return jE||(jE=1,zy.exports=P8()),zy.exports}var w=lu();const Me=Si(w),_8=s8({__proto__:null,default:Me},[w]);var k_=w.createContext(void 0),ma=e=>{const t=w.useContext(k_);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},M_=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(k_.Provider,{value:e,children:t})),P_=w.createContext(!1),D8=()=>w.useContext(P_);P_.Provider;function R8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var z8=w.createContext(R8()),L8=()=>w.useContext(z8),I8=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?q1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},B8=e=>{w.useEffect(()=>{e.clearReset()},[e])},U8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||q1(n,[e.error,r])),$8=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))}},q8=(e,t)=>e.isLoading&&e.isFetching&&!t,V8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,AE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function F8(e,t,n){var y,b,S,j;const r=D8(),a=L8(),o=ma(),l=o.defaultQueryOptions(e);(b=(y=o.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,l);const c=o.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",$8(l),I8(l,a,c),B8(a);const f=!o.getQueryCache().get(l.queryHash),[h]=w.useState(()=>new t(o,l)),m=h.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(A=>{const O=p?h.subscribe(Xt.batchCalls(A)):Pn;return h.updateResult(),O},[h,p]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(l)},[l,h]),V8(l,m))throw AE(l,h,a);if(U8({result:m,errorResetBoundary:a,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw m.error;if((j=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||j.call(S,l,m),l.experimental_prefetchInRender&&!wo&&q8(m,r)){const A=f?AE(l,h,a):c==null?void 0:c.promise;A==null||A.catch(Pn).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?m:h.trackResult(m)}function Nn(e,t){return F8(e,A8)}function Ly(e,t){const n=ma(),[r]=w.useState(()=>new k8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Xt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Pn)},[r]);if(a.error&&q1(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Iy={exports:{}},yc={},By={exports:{}},Uy={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var OE;function H8(){return OE||(OE=1,(function(e){function t(q,W){var Y=q.length;q.push(W);e:for(;0<Y;){var oe=Y-1>>>1,ne=q[oe];if(0<a(ne,W))q[oe]=W,q[Y]=ne,Y=oe;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],Y=q.pop();if(Y!==W){q[0]=Y;e:for(var oe=0,ne=q.length,R=ne>>>1;oe<R;){var F=2*(oe+1)-1,ie=q[F],se=F+1,ye=q[se];if(0>a(ie,Y))se<ne&&0>a(ye,ie)?(q[oe]=ye,q[se]=Y,oe=se):(q[oe]=ie,q[F]=Y,oe=F);else if(se<ne&&0>a(ye,Y))q[oe]=ye,q[se]=Y,oe=se;else break e}}return W}function a(q,W){var Y=q.sortIndex-W.sortIndex;return Y!==0?Y:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,p=null,y=3,b=!1,S=!1,j=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=q)r(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=n(h)}}function k(q){if(j=!1,C(q),!S)if(n(f)!==null)S=!0,D||(D=!0,Z());else{var W=n(h);W!==null&&me(k,W.startTime-q)}}var D=!1,M=-1,_=5,B=-1;function K(){return A?!0:!(e.unstable_now()-B<_)}function $(){if(A=!1,D){var q=e.unstable_now();B=q;var W=!0;try{e:{S=!1,j&&(j=!1,T(M),M=-1),b=!0;var Y=y;try{t:{for(C(q),p=n(f);p!==null&&!(p.expirationTime>q&&K());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,y=p.priorityLevel;var ne=oe(p.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){p.callback=ne,C(q),W=!0;break t}p===n(f)&&r(f),C(q)}else r(f);p=n(f)}if(p!==null)W=!0;else{var R=n(h);R!==null&&me(k,R.startTime-q),W=!1}}break e}finally{p=null,y=Y,b=!1}W=void 0}}finally{W?Z():D=!1}}}var Z;if(typeof N=="function")Z=function(){N($)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,de=le.port2;le.port1.onmessage=$,Z=function(){de.postMessage(null)}}else Z=function(){O($,0)};function me(q,W){M=O(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(q){switch(y){case 1:case 2:case 3:var W=3;break;default:W=y}var Y=y;y=W;try{return q()}finally{y=Y}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Y=y;y=q;try{return W()}finally{y=Y}},e.unstable_scheduleCallback=function(q,W,Y){var oe=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?oe+Y:oe):Y=oe,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Y+ne,q={id:m++,callback:W,priorityLevel:q,startTime:Y,expirationTime:ne,sortIndex:-1},Y>oe?(q.sortIndex=Y,t(h,q),n(f)===null&&q===n(h)&&(j?(T(M),M=-1):j=!0,me(k,Y-oe))):(q.sortIndex=ne,t(f,q),S||b||(S=!0,D||(D=!0,Z()))),q},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(q){var W=y;return function(){var Y=y;y=W;try{return q.apply(this,arguments)}finally{y=Y}}}})(Uy)),Uy}var EE;function K8(){return EE||(EE=1,By.exports=H8()),By.exports}var $y={exports:{}},An={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var NE;function Y8(){if(NE)return An;NE=1;var e=lu();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 An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,An.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},An.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},An.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},An.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},An.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},An.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},An.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,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})}},An.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},An.requestFormReset=function(f){r.d.r(f)},An.unstable_batchedUpdates=function(f,h){return f(h)},An.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},An.useFormStatus=function(){return l.H.useHostTransitionStatus()},An.version="19.2.3",An}var TE;function __(){if(TE)return $y.exports;TE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$y.exports=Y8(),$y.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var CE;function G8(){if(CE)return yc;CE=1;var e=K8(),t=lu(),n=__();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 v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(d=v.return,d!==null){u=d;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),i;if(x===d)return f(v),s;x=x.sibling}throw Error(r(188))}if(u.return!==d.return)u=v,d=x;else{for(var E=!1,P=v.child;P;){if(P===u){E=!0,u=v,d=x;break}if(P===d){E=!0,d=v,u=x;break}P=P.sibling}if(!E){for(P=x.child;P;){if(P===u){E=!0,u=x,d=v;break}if(P===d){E=!0,d=x,u=v;break}P=P.sibling}if(!E)throw Error(r(189))}}if(u.alternate!==d)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?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,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=$&&i[$]||i["@@iterator"],typeof i=="function"?i:null)}var le=Symbol.for("react.client.reference");function de(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===le?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList";case B:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case S:return"Portal";case N:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case C:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return s=i.displayName||null,s!==null?s:de(i.type)||"Memo";case _:s=i._payload,i=i._init;try{return de(i(s))}catch{}}return null}var me=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},oe=[],ne=-1;function R(i){return{current:i}}function F(i){0>ne||(i.current=oe[ne],oe[ne]=null,ne--)}function ie(i,s){ne++,oe[ne]=i.current,i.current=s}var se=R(null),ye=R(null),Ee=R(null),fe=R(null);function Xe(i,s){switch(ie(Ee,s),ie(ye,i),ie(se,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?PO(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=PO(s),i=_O(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}F(se),ie(se,i)}function J(){F(se),F(ye),F(Ee)}function Ce(i){i.memoizedState!==null&&ie(fe,i);var s=se.current,u=_O(s,i.type);s!==u&&(ie(ye,i),ie(se,u))}function Pe(i){ye.current===i&&(F(se),F(ye)),fe.current===i&&(F(fe),hc._currentValue=Y)}var ae,Dt;function Be(i){if(ae===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",Dt=-1<u.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ae+i+Dt}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(Q){var G=Q}Reflect.construct(i,[],re)}else{try{re.call()}catch(Q){G=Q}i.call(re.prototype)}}else{try{throw Error()}catch(Q){G=Q}(re=i())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Q){if(Q&&G&&typeof Q.stack=="string")return[Q.stack,G.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=d.DetermineComponentFrameRoot(),E=x[0],P=x[1];if(E&&P){var z=E.split(`
|
|
44
|
-
`),H=P.split(`
|
|
45
|
-
`);for(v=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;v<H.length&&!H[v].includes("DetermineComponentFrameRoot");)v++;if(d===z.length||v===H.length)for(d=z.length-1,v=H.length-1;1<=d&&0<=v&&z[d]!==H[v];)v--;for(;1<=d&&0<=v;d--,v--)if(z[d]!==H[v]){if(d!==1||v!==1)do if(d--,v--,0>v||z[d]!==H[v]){var ee=`
|
|
46
|
-
`+z[d].replace(" at new "," at ");return i.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",i.displayName)),ee}while(1<=d&&0<=v);break}}}finally{Rt=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Be(u):""}function mr(i,s){switch(i.tag){case 26:case 27:case 5:return Be(i.type);case 16:return Be("Lazy");case 13:return i.child!==s&&s!==null?Be("Suspense Fallback"):Be("Suspense");case 19:return Be("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 Be("Activity");default:return""}}function Oa(i){try{var s="",u=null;do s+=mr(i,u),u=i,i=i.return;while(i);return s}catch(d){return`
|
|
47
|
-
Error generating stack: `+d.message+`
|
|
48
|
-
`+d.stack}}var Ro=Object.prototype.hasOwnProperty,zo=e.unstable_scheduleCallback,Lo=e.unstable_cancelCallback,rd=e.unstable_shouldYield,id=e.unstable_requestPaint,ue=e.unstable_now,Ne=e.unstable_getCurrentPriorityLevel,De=e.unstable_ImmediatePriority,Ot=e.unstable_UserBlockingPriority,Kt=e.unstable_NormalPriority,jn=e.unstable_LowPriority,dn=e.unstable_IdlePriority,U6=e.log,$6=e.unstable_setDisableYieldValue,Ou=null,er=null;function Ea(i){if(typeof U6=="function"&&$6(i),er&&typeof er.setStrictMode=="function")try{er.setStrictMode(Ou,i)}catch{}}var tr=Math.clz32?Math.clz32:F6,q6=Math.log,V6=Math.LN2;function F6(i){return i>>>=0,i===0?32:31-(q6(i)/V6|0)|0}var ad=256,sd=262144,od=4194304;function Ts(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 ld(i,s,u){var d=i.pendingLanes;if(d===0)return 0;var v=0,x=i.suspendedLanes,E=i.pingedLanes;i=i.warmLanes;var P=d&134217727;return P!==0?(d=P&~x,d!==0?v=Ts(d):(E&=P,E!==0?v=Ts(E):u||(u=P&~i,u!==0&&(v=Ts(u))))):(P=d&~x,P!==0?v=Ts(P):E!==0?v=Ts(E):u||(u=d&~i,u!==0&&(v=Ts(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Eu(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function H6(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 hj(){var i=od;return od<<=1,(od&62914560)===0&&(od=4194304),i}function wg(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Nu(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function K6(i,s,u,d,v,x){var E=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 P=i.entanglements,z=i.expirationTimes,H=i.hiddenUpdates;for(u=E&~u;0<u;){var ee=31-tr(u),re=1<<ee;P[ee]=0,z[ee]=-1;var G=H[ee];if(G!==null)for(H[ee]=null,ee=0;ee<G.length;ee++){var Q=G[ee];Q!==null&&(Q.lane&=-536870913)}u&=~re}d!==0&&mj(i,d,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(E&~s))}function mj(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 pj(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var d=31-tr(u),v=1<<d;v&s|i[d]&s&&(i[d]|=s),u&=~v}}function gj(i,s){var u=s&-s;return u=(u&42)!==0?1:Sg(u),(u&(i.suspendedLanes|s))!==0?0:u}function Sg(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 jg(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function vj(){var i=W.p;return i!==0?i:(i=window.event,i===void 0?32:nE(i.type))}function yj(i,s){var u=W.p;try{return W.p=i,s()}finally{W.p=u}}var Na=Math.random().toString(36).slice(2),hn="__reactFiber$"+Na,$n="__reactProps$"+Na,Io="__reactContainer$"+Na,Ag="__reactEvents$"+Na,Y6="__reactListeners$"+Na,G6="__reactHandles$"+Na,xj="__reactResources$"+Na,Tu="__reactMarker$"+Na;function Og(i){delete i[hn],delete i[$n],delete i[Ag],delete i[Y6],delete i[G6]}function Bo(i){var s=i[hn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[Io]||u[hn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=UO(i);i!==null;){if(u=i[hn])return u;i=UO(i)}return s}i=u,u=i.parentNode}return null}function Uo(i){if(i=i[hn]||i[Io]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function Cu(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function $o(i){var s=i[xj];return s||(s=i[xj]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function tn(i){i[Tu]=!0}var bj=new Set,wj={};function Cs(i,s){qo(i,s),qo(i+"Capture",s)}function qo(i,s){for(wj[i]=s,i=0;i<s.length;i++)bj.add(s[i])}var W6=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sj={},jj={};function X6(i){return Ro.call(jj,i)?!0:Ro.call(Sj,i)?!1:W6.test(i)?jj[i]=!0:(Sj[i]=!0,!1)}function ud(i,s,u){if(X6(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 cd(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 Oi(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 pr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Aj(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Q6(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 v=d.get,x=d.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return v.call(this)},set:function(E){u=""+E,x.call(this,E)}}),Object.defineProperty(i,s,{enumerable:d.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Eg(i){if(!i._valueTracker){var s=Aj(i)?"checked":"value";i._valueTracker=Q6(i,s,""+i[s])}}function Oj(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),d="";return i&&(d=Aj(i)?i.checked?"true":"false":i.value),i=d,i!==u?(s.setValue(i),!0):!1}function fd(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 Z6=/[\n"\\]/g;function gr(i){return i.replace(Z6,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Ng(i,s,u,d,v,x,E,P){i.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?i.type=E:i.removeAttribute("type"),s!=null?E==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+pr(s)):i.value!==""+pr(s)&&(i.value=""+pr(s)):E!=="submit"&&E!=="reset"||i.removeAttribute("value"),s!=null?Tg(i,E,pr(s)):u!=null?Tg(i,E,pr(u)):d!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?i.name=""+pr(P):i.removeAttribute("name")}function Ej(i,s,u,d,v,x,E,P){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),s!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){Eg(i);return}u=u!=null?""+pr(u):"",s=s!=null?""+pr(s):u,P||s===i.value||(i.value=s),i.defaultValue=s}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,i.checked=P?i.checked:!!d,i.defaultChecked=!!d,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.name=E),Eg(i)}function Tg(i,s,u){s==="number"&&fd(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Vo(i,s,u,d){if(i=i.options,s){s={};for(var v=0;v<u.length;v++)s["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=s.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&d&&(i[u].defaultSelected=!0)}else{for(u=""+pr(u),s=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,d&&(i[v].defaultSelected=!0);return}s!==null||i[v].disabled||(s=i[v])}s!==null&&(s.selected=!0)}}function Nj(i,s,u){if(s!=null&&(s=""+pr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+pr(u):""}function Tj(i,s,u,d){if(s==null){if(d!=null){if(u!=null)throw Error(r(92));if(me(d)){if(1<d.length)throw Error(r(93));d=d[0]}u=d}u==null&&(u=""),s=u}u=pr(s),i.defaultValue=u,d=i.textContent,d===u&&d!==""&&d!==null&&(i.value=d),Eg(i)}function Fo(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var J6=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cj(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||J6.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function kj(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 v in s)d=s[v],s.hasOwnProperty(v)&&u[v]!==d&&Cj(i,v,d)}else for(var x in s)s.hasOwnProperty(x)&&Cj(i,x,s[x])}function Cg(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"]]),tI=/^[\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 dd(i){return tI.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ei(){}var kg=null;function Mg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ho=null,Ko=null;function Mj(i){var s=Uo(i);if(s&&(i=s.stateNode)){var u=i[$n]||null;e:switch(i=s.stateNode,s.type){case"input":if(Ng(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="'+gr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var d=u[s];if(d!==i&&d.form===i.form){var v=d[$n]||null;if(!v)throw Error(r(90));Ng(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<u.length;s++)d=u[s],d.form===i.form&&Oj(d)}break e;case"textarea":Nj(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Vo(i,!!u.multiple,s,!1)}}}var Pg=!1;function Pj(i,s,u){if(Pg)return i(s,u);Pg=!0;try{var d=i(s);return d}finally{if(Pg=!1,(Ho!==null||Ko!==null)&&(Jd(),Ho&&(s=Ho,i=Ko,Ko=Ho=null,Mj(s),i)))for(s=0;s<i.length;s++)Mj(i[s])}}function ku(i,s){var u=i.stateNode;if(u===null)return null;var d=u[$n]||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 Ni=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_g=!1;if(Ni)try{var Mu={};Object.defineProperty(Mu,"passive",{get:function(){_g=!0}}),window.addEventListener("test",Mu,Mu),window.removeEventListener("test",Mu,Mu)}catch{_g=!1}var Ta=null,Dg=null,hd=null;function _j(){if(hd)return hd;var i,s=Dg,u=s.length,d,v="value"in Ta?Ta.value:Ta.textContent,x=v.length;for(i=0;i<u&&s[i]===v[i];i++);var E=u-i;for(d=1;d<=E&&s[u-d]===v[x-d];d++);return hd=v.slice(i,1<d?1-d:void 0)}function md(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 pd(){return!0}function Dj(){return!1}function qn(i){function s(u,d,v,x,E){this._reactName=u,this._targetInst=v,this.type=d,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var P in i)i.hasOwnProperty(P)&&(u=i[P],this[P]=u?u(x):x[P]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?pd:Dj,this.isPropagationStopped=Dj,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=pd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gd=qn(ks),Pu=p({},ks,{view:0,detail:0}),nI=qn(Pu),Rg,zg,_u,vd=p({},Pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,button:0,buttons:0,relatedTarget:function(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!==_u&&(_u&&i.type==="mousemove"?(Rg=i.screenX-_u.screenX,zg=i.screenY-_u.screenY):zg=Rg=0,_u=i),Rg)},movementY:function(i){return"movementY"in i?i.movementY:zg}}),Rj=qn(vd),rI=p({},vd,{dataTransfer:0}),iI=qn(rI),aI=p({},Pu,{relatedTarget:0}),Lg=qn(aI),sI=p({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),oI=qn(sI),lI=p({},ks,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),uI=qn(lI),cI=p({},ks,{data:0}),zj=qn(cI),fI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dI={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"},hI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mI(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=hI[i])?!!s[i]:!1}function Ig(){return mI}var pI=p({},Pu,{key:function(i){if(i.key){var s=fI[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=md(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?dI[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ig,charCode:function(i){return i.type==="keypress"?md(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?md(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),gI=qn(pI),vI=p({},vd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lj=qn(vI),yI=p({},Pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),xI=qn(yI),bI=p({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),wI=qn(bI),SI=p({},vd,{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}),jI=qn(SI),AI=p({},ks,{newState:0,oldState:0}),OI=qn(AI),EI=[9,13,27,32],Bg=Ni&&"CompositionEvent"in window,Du=null;Ni&&"documentMode"in document&&(Du=document.documentMode);var NI=Ni&&"TextEvent"in window&&!Du,Ij=Ni&&(!Bg||Du&&8<Du&&11>=Du),Bj=" ",Uj=!1;function $j(i,s){switch(i){case"keyup":return EI.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qj(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Yo=!1;function TI(i,s){switch(i){case"compositionend":return qj(s);case"keypress":return s.which!==32?null:(Uj=!0,Bj);case"textInput":return i=s.data,i===Bj&&Uj?null:i;default:return null}}function CI(i,s){if(Yo)return i==="compositionend"||!Bg&&$j(i,s)?(i=_j(),hd=Dg=Ta=null,Yo=!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 Ij&&s.locale!=="ko"?null:s.data;default:return null}}var kI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vj(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!kI[i.type]:s==="textarea"}function Fj(i,s,u,d){Ho?Ko?Ko.push(d):Ko=[d]:Ho=d,s=sh(s,"onChange"),0<s.length&&(u=new gd("onChange","change",null,u,d),i.push({event:u,listeners:s}))}var Ru=null,zu=null;function MI(i){EO(i,0)}function yd(i){var s=Cu(i);if(Oj(s))return i}function Hj(i,s){if(i==="change")return s}var Kj=!1;if(Ni){var Ug;if(Ni){var $g="oninput"in document;if(!$g){var Yj=document.createElement("div");Yj.setAttribute("oninput","return;"),$g=typeof Yj.oninput=="function"}Ug=$g}else Ug=!1;Kj=Ug&&(!document.documentMode||9<document.documentMode)}function Gj(){Ru&&(Ru.detachEvent("onpropertychange",Wj),zu=Ru=null)}function Wj(i){if(i.propertyName==="value"&&yd(zu)){var s=[];Fj(s,zu,i,Mg(i)),Pj(MI,s)}}function PI(i,s,u){i==="focusin"?(Gj(),Ru=s,zu=u,Ru.attachEvent("onpropertychange",Wj)):i==="focusout"&&Gj()}function _I(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return yd(zu)}function DI(i,s){if(i==="click")return yd(s)}function RI(i,s){if(i==="input"||i==="change")return yd(s)}function zI(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var nr=typeof Object.is=="function"?Object.is:zI;function Lu(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 v=u[d];if(!Ro.call(s,v)||!nr(i[v],s[v]))return!1}return!0}function Xj(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Qj(i,s){var u=Xj(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=Xj(u)}}function Zj(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Zj(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Jj(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=fd(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=fd(i.document)}return s}function qg(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 LI=Ni&&"documentMode"in document&&11>=document.documentMode,Go=null,Vg=null,Iu=null,Fg=!1;function e2(i,s,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Fg||Go==null||Go!==fd(d)||(d=Go,"selectionStart"in d&&qg(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Iu&&Lu(Iu,d)||(Iu=d,d=sh(Vg,"onSelect"),0<d.length&&(s=new gd("onSelect","select",null,s,u),i.push({event:s,listeners:d}),s.target=Go)))}function Ms(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Wo={animationend:Ms("Animation","AnimationEnd"),animationiteration:Ms("Animation","AnimationIteration"),animationstart:Ms("Animation","AnimationStart"),transitionrun:Ms("Transition","TransitionRun"),transitionstart:Ms("Transition","TransitionStart"),transitioncancel:Ms("Transition","TransitionCancel"),transitionend:Ms("Transition","TransitionEnd")},Hg={},t2={};Ni&&(t2=document.createElement("div").style,"AnimationEvent"in window||(delete Wo.animationend.animation,delete Wo.animationiteration.animation,delete Wo.animationstart.animation),"TransitionEvent"in window||delete Wo.transitionend.transition);function Ps(i){if(Hg[i])return Hg[i];if(!Wo[i])return i;var s=Wo[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in t2)return Hg[i]=s[u];return i}var n2=Ps("animationend"),r2=Ps("animationiteration"),i2=Ps("animationstart"),II=Ps("transitionrun"),BI=Ps("transitionstart"),UI=Ps("transitioncancel"),a2=Ps("transitionend"),s2=new Map,Kg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kg.push("scrollEnd");function qr(i,s){s2.set(i,s),Cs(s,[i])}var xd=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)},vr=[],Xo=0,Yg=0;function bd(){for(var i=Xo,s=Yg=Xo=0;s<i;){var u=vr[s];vr[s++]=null;var d=vr[s];vr[s++]=null;var v=vr[s];vr[s++]=null;var x=vr[s];if(vr[s++]=null,d!==null&&v!==null){var E=d.pending;E===null?v.next=v:(v.next=E.next,E.next=v),d.pending=v}x!==0&&o2(u,v,x)}}function wd(i,s,u,d){vr[Xo++]=i,vr[Xo++]=s,vr[Xo++]=u,vr[Xo++]=d,Yg|=d,i.lanes|=d,i=i.alternate,i!==null&&(i.lanes|=d)}function Gg(i,s,u,d){return wd(i,s,u,d),Sd(i)}function _s(i,s){return wd(i,null,null,s),Sd(i)}function o2(i,s,u){i.lanes|=u;var d=i.alternate;d!==null&&(d.lanes|=u);for(var v=!1,x=i.return;x!==null;)x.childLanes|=u,d=x.alternate,d!==null&&(d.childLanes|=u),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(v=!0)),i=x,x=x.return;return i.tag===3?(x=i.stateNode,v&&s!==null&&(v=31-tr(u),i=x.hiddenUpdates,d=i[v],d===null?i[v]=[s]:d.push(s),s.lane=u|536870912),x):null}function Sd(i){if(50<sc)throw sc=0,ry=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Qo={};function $I(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 $I(i,s,u,d)}function Wg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ti(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 l2(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 jd(i,s,u,d,v,x){var E=0;if(d=i,typeof i=="function")Wg(i)&&(E=1);else if(typeof i=="string")E=KB(i,u,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case B:return i=rr(31,u,s,v),i.elementType=B,i.lanes=x,i;case j:return Ds(u.children,v,x,s);case A:E=8,v|=24;break;case O:return i=rr(12,u,s,v|2),i.elementType=O,i.lanes=x,i;case k:return i=rr(13,u,s,v),i.elementType=k,i.lanes=x,i;case D:return i=rr(19,u,s,v),i.elementType=D,i.lanes=x,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case N:E=10;break e;case T:E=9;break e;case C:E=11;break e;case M:E=14;break e;case _:E=16,d=null;break e}E=29,u=Error(r(130,i===null?"null":typeof i,"")),d=null}return s=rr(E,u,s,v),s.elementType=i,s.type=d,s.lanes=x,s}function Ds(i,s,u,d){return i=rr(7,i,d,s),i.lanes=u,i}function Xg(i,s,u){return i=rr(6,i,null,s),i.lanes=u,i}function u2(i){var s=rr(18,null,null,0);return s.stateNode=i,s}function Qg(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 c2=new WeakMap;function yr(i,s){if(typeof i=="object"&&i!==null){var u=c2.get(i);return u!==void 0?u:(s={value:i,source:s,stack:Oa(s)},c2.set(i,s),s)}return{value:i,source:s,stack:Oa(s)}}var Zo=[],Jo=0,Ad=null,Bu=0,xr=[],br=0,Ca=null,si=1,oi="";function Ci(i,s){Zo[Jo++]=Bu,Zo[Jo++]=Ad,Ad=i,Bu=s}function f2(i,s,u){xr[br++]=si,xr[br++]=oi,xr[br++]=Ca,Ca=i;var d=si;i=oi;var v=32-tr(d)-1;d&=~(1<<v),u+=1;var x=32-tr(s)+v;if(30<x){var E=v-v%5;x=(d&(1<<E)-1).toString(32),d>>=E,v-=E,si=1<<32-tr(s)+v|u<<v|d,oi=x+i}else si=1<<x|u<<v|d,oi=i}function Zg(i){i.return!==null&&(Ci(i,1),f2(i,1,0))}function Jg(i){for(;i===Ad;)Ad=Zo[--Jo],Zo[Jo]=null,Bu=Zo[--Jo],Zo[Jo]=null;for(;i===Ca;)Ca=xr[--br],xr[br]=null,oi=xr[--br],xr[br]=null,si=xr[--br],xr[br]=null}function d2(i,s){xr[br++]=si,xr[br++]=oi,xr[br++]=Ca,si=s.id,oi=s.overflow,Ca=i}var mn=null,ht=null,Fe=!1,ka=null,wr=!1,ev=Error(r(519));function Ma(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Uu(yr(s,i)),ev}function h2(i){var s=i.stateNode,u=i.type,d=i.memoizedProps;switch(s[hn]=i,s[$n]=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<lc.length;u++)$e(lc[u],s);break;case"source":$e("error",s);break;case"img":case"image":case"link":$e("error",s),$e("load",s);break;case"details":$e("toggle",s);break;case"input":$e("invalid",s),Ej(s,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":$e("invalid",s);break;case"textarea":$e("invalid",s),Tj(s,d.value,d.defaultValue,d.children)}u=d.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||d.suppressHydrationWarning===!0||kO(s.textContent,u)?(d.popover!=null&&($e("beforetoggle",s),$e("toggle",s)),d.onScroll!=null&&$e("scroll",s),d.onScrollEnd!=null&&$e("scrollend",s),d.onClick!=null&&(s.onclick=Ei),s=!0):s=!1,s||Ma(i,!0)}function m2(i){for(mn=i.return;mn;)switch(mn.tag){case 5:case 31:case 13:wr=!1;return;case 27:case 3:wr=!0;return;default:mn=mn.return}}function el(i){if(i!==mn)return!1;if(!Fe)return m2(i),Fe=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||yy(i.type,i.memoizedProps)),u=!u),u&&ht&&Ma(i),m2(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=BO(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=BO(i)}else s===27?(s=ht,Ha(i.type)?(i=jy,jy=null,ht=i):ht=s):ht=mn?jr(i.stateNode.nextSibling):null;return!0}function Rs(){ht=mn=null,Fe=!1}function tv(){var i=ka;return i!==null&&(Kn===null?Kn=i:Kn.push.apply(Kn,i),ka=null),i}function Uu(i){ka===null?ka=[i]:ka.push(i)}var nv=R(null),zs=null,ki=null;function Pa(i,s,u){ie(nv,s._currentValue),s._currentValue=u}function Mi(i){i._currentValue=nv.current,F(nv)}function rv(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 iv(i,s,u,d){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var x=v.dependencies;if(x!==null){var E=v.child;x=x.firstContext;e:for(;x!==null;){var P=x;x=v;for(var z=0;z<s.length;z++)if(P.context===s[z]){x.lanes|=u,P=x.alternate,P!==null&&(P.lanes|=u),rv(x.return,u,i),d||(E=null);break e}x=P.next}}else if(v.tag===18){if(E=v.return,E===null)throw Error(r(341));E.lanes|=u,x=E.alternate,x!==null&&(x.lanes|=u),rv(E,u,i),E=null}else E=v.child;if(E!==null)E.return=v;else for(E=v;E!==null;){if(E===i){E=null;break}if(v=E.sibling,v!==null){v.return=E.return,E=v;break}E=E.return}v=E}}function tl(i,s,u,d){i=null;for(var v=s,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var E=v.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var P=v.type;nr(v.pendingProps.value,E.value)||(i!==null?i.push(P):i=[P])}}else if(v===fe.current){if(E=v.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(hc):i=[hc])}v=v.return}i!==null&&iv(s,i,u,d),s.flags|=262144}function Od(i){for(i=i.firstContext;i!==null;){if(!nr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ls(i){zs=i,ki=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return p2(zs,i)}function Ed(i,s){return zs===null&&Ls(i),p2(i,s)}function p2(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},ki===null){if(i===null)throw Error(r(308));ki=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else ki=ki.next=s;return u}var qI=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()})}},VI=e.unstable_scheduleCallback,FI=e.unstable_NormalPriority,Lt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function av(){return{controller:new qI,data:new Map,refCount:0}}function $u(i){i.refCount--,i.refCount===0&&VI(FI,function(){i.controller.abort()})}var qu=null,sv=0,nl=0,rl=null;function HI(i,s){if(qu===null){var u=qu=[];sv=0,nl=uy(),rl={status:"pending",value:void 0,then:function(d){u.push(d)}}}return sv++,s.then(g2,g2),s}function g2(){if(--sv===0&&qu!==null){rl!==null&&(rl.status="fulfilled");var i=qu;qu=null,nl=0,rl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function KI(i,s){var u=[],d={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){d.status="fulfilled",d.value=s;for(var v=0;v<u.length;v++)(0,u[v])(s)},function(v){for(d.status="rejected",d.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),d}var v2=q.S;q.S=function(i,s){eO=ue(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&HI(i,s),v2!==null&&v2(i,s)};var Is=R(null);function ov(){var i=Is.current;return i!==null?i:ut.pooledCache}function Nd(i,s){s===null?ie(Is,Is.current):ie(Is,s.pool)}function y2(){var i=ov();return i===null?null:{parent:Lt._currentValue,pool:i}}var il=Error(r(460)),lv=Error(r(474)),Td=Error(r(542)),Cd={then:function(){}};function x2(i){return i=i.status,i==="fulfilled"||i==="rejected"}function b2(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(Ei,Ei),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,S2(i),i;default:if(typeof s.status=="string")s.then(Ei,Ei);else{if(i=ut,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(d){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=d}},function(d){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=d}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,S2(i),i}throw Us=s,il}}function Bs(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Us=u,il):u}}var Us=null;function w2(){if(Us===null)throw Error(r(459));var i=Us;return Us=null,i}function S2(i){if(i===il||i===Td)throw Error(r(483))}var al=null,Vu=0;function kd(i){var s=Vu;return Vu+=1,al===null&&(al=[]),b2(al,i,s)}function Fu(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Md(i,s){throw s.$$typeof===y?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function j2(i){function s(U,I){if(i){var V=U.deletions;V===null?(U.deletions=[I],U.flags|=16):V.push(I)}}function u(U,I){if(!i)return null;for(;I!==null;)s(U,I),I=I.sibling;return null}function d(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function v(U,I){return U=Ti(U,I),U.index=0,U.sibling=null,U}function x(U,I,V){return U.index=V,i?(V=U.alternate,V!==null?(V=V.index,V<I?(U.flags|=67108866,I):V):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function E(U){return i&&U.alternate===null&&(U.flags|=67108866),U}function P(U,I,V,te){return I===null||I.tag!==6?(I=Xg(V,U.mode,te),I.return=U,I):(I=v(I,V),I.return=U,I)}function z(U,I,V,te){var Ae=V.type;return Ae===j?ee(U,I,V.props.children,te,V.key):I!==null&&(I.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===_&&Bs(Ae)===I.type)?(I=v(I,V.props),Fu(I,V),I.return=U,I):(I=jd(V.type,V.key,V.props,null,U.mode,te),Fu(I,V),I.return=U,I)}function H(U,I,V,te){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=Qg(V,U.mode,te),I.return=U,I):(I=v(I,V.children||[]),I.return=U,I)}function ee(U,I,V,te,Ae){return I===null||I.tag!==7?(I=Ds(V,U.mode,te,Ae),I.return=U,I):(I=v(I,V),I.return=U,I)}function re(U,I,V){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Xg(""+I,U.mode,V),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return V=jd(I.type,I.key,I.props,null,U.mode,V),Fu(V,I),V.return=U,V;case S:return I=Qg(I,U.mode,V),I.return=U,I;case _:return I=Bs(I),re(U,I,V)}if(me(I)||Z(I))return I=Ds(I,U.mode,V,null),I.return=U,I;if(typeof I.then=="function")return re(U,kd(I),V);if(I.$$typeof===N)return re(U,Ed(U,I),V);Md(U,I)}return null}function G(U,I,V,te){var Ae=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return Ae!==null?null:P(U,I,""+V,te);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return V.key===Ae?z(U,I,V,te):null;case S:return V.key===Ae?H(U,I,V,te):null;case _:return V=Bs(V),G(U,I,V,te)}if(me(V)||Z(V))return Ae!==null?null:ee(U,I,V,te,null);if(typeof V.then=="function")return G(U,I,kd(V),te);if(V.$$typeof===N)return G(U,I,Ed(U,V),te);Md(U,V)}return null}function Q(U,I,V,te,Ae){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return U=U.get(V)||null,P(I,U,""+te,Ae);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return U=U.get(te.key===null?V:te.key)||null,z(I,U,te,Ae);case S:return U=U.get(te.key===null?V:te.key)||null,H(I,U,te,Ae);case _:return te=Bs(te),Q(U,I,V,te,Ae)}if(me(te)||Z(te))return U=U.get(V)||null,ee(I,U,te,Ae,null);if(typeof te.then=="function")return Q(U,I,V,kd(te),Ae);if(te.$$typeof===N)return Q(U,I,V,Ed(I,te),Ae);Md(I,te)}return null}function ve(U,I,V,te){for(var Ae=null,Ke=null,we=I,ze=I=0,Ve=null;we!==null&&ze<V.length;ze++){we.index>ze?(Ve=we,we=null):Ve=we.sibling;var Ye=G(U,we,V[ze],te);if(Ye===null){we===null&&(we=Ve);break}i&&we&&Ye.alternate===null&&s(U,we),I=x(Ye,I,ze),Ke===null?Ae=Ye:Ke.sibling=Ye,Ke=Ye,we=Ve}if(ze===V.length)return u(U,we),Fe&&Ci(U,ze),Ae;if(we===null){for(;ze<V.length;ze++)we=re(U,V[ze],te),we!==null&&(I=x(we,I,ze),Ke===null?Ae=we:Ke.sibling=we,Ke=we);return Fe&&Ci(U,ze),Ae}for(we=d(we);ze<V.length;ze++)Ve=Q(we,U,ze,V[ze],te),Ve!==null&&(i&&Ve.alternate!==null&&we.delete(Ve.key===null?ze:Ve.key),I=x(Ve,I,ze),Ke===null?Ae=Ve:Ke.sibling=Ve,Ke=Ve);return i&&we.forEach(function(Xa){return s(U,Xa)}),Fe&&Ci(U,ze),Ae}function Te(U,I,V,te){if(V==null)throw Error(r(151));for(var Ae=null,Ke=null,we=I,ze=I=0,Ve=null,Ye=V.next();we!==null&&!Ye.done;ze++,Ye=V.next()){we.index>ze?(Ve=we,we=null):Ve=we.sibling;var Xa=G(U,we,Ye.value,te);if(Xa===null){we===null&&(we=Ve);break}i&&we&&Xa.alternate===null&&s(U,we),I=x(Xa,I,ze),Ke===null?Ae=Xa:Ke.sibling=Xa,Ke=Xa,we=Ve}if(Ye.done)return u(U,we),Fe&&Ci(U,ze),Ae;if(we===null){for(;!Ye.done;ze++,Ye=V.next())Ye=re(U,Ye.value,te),Ye!==null&&(I=x(Ye,I,ze),Ke===null?Ae=Ye:Ke.sibling=Ye,Ke=Ye);return Fe&&Ci(U,ze),Ae}for(we=d(we);!Ye.done;ze++,Ye=V.next())Ye=Q(we,U,ze,Ye.value,te),Ye!==null&&(i&&Ye.alternate!==null&&we.delete(Ye.key===null?ze:Ye.key),I=x(Ye,I,ze),Ke===null?Ae=Ye:Ke.sibling=Ye,Ke=Ye);return i&&we.forEach(function(r8){return s(U,r8)}),Fe&&Ci(U,ze),Ae}function st(U,I,V,te){if(typeof V=="object"&&V!==null&&V.type===j&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case b:e:{for(var Ae=V.key;I!==null;){if(I.key===Ae){if(Ae=V.type,Ae===j){if(I.tag===7){u(U,I.sibling),te=v(I,V.props.children),te.return=U,U=te;break e}}else if(I.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===_&&Bs(Ae)===I.type){u(U,I.sibling),te=v(I,V.props),Fu(te,V),te.return=U,U=te;break e}u(U,I);break}else s(U,I);I=I.sibling}V.type===j?(te=Ds(V.props.children,U.mode,te,V.key),te.return=U,U=te):(te=jd(V.type,V.key,V.props,null,U.mode,te),Fu(te,V),te.return=U,U=te)}return E(U);case S:e:{for(Ae=V.key;I!==null;){if(I.key===Ae)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){u(U,I.sibling),te=v(I,V.children||[]),te.return=U,U=te;break e}else{u(U,I);break}else s(U,I);I=I.sibling}te=Qg(V,U.mode,te),te.return=U,U=te}return E(U);case _:return V=Bs(V),st(U,I,V,te)}if(me(V))return ve(U,I,V,te);if(Z(V)){if(Ae=Z(V),typeof Ae!="function")throw Error(r(150));return V=Ae.call(V),Te(U,I,V,te)}if(typeof V.then=="function")return st(U,I,kd(V),te);if(V.$$typeof===N)return st(U,I,Ed(U,V),te);Md(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,I!==null&&I.tag===6?(u(U,I.sibling),te=v(I,V),te.return=U,U=te):(u(U,I),te=Xg(V,U.mode,te),te.return=U,U=te),E(U)):u(U,I)}return function(U,I,V,te){try{Vu=0;var Ae=st(U,I,V,te);return al=null,Ae}catch(we){if(we===il||we===Td)throw we;var Ke=rr(29,we,null,U.mode);return Ke.lanes=te,Ke.return=U,Ke}finally{}}}var $s=j2(!0),A2=j2(!1),_a=!1;function uv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cv(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 Da(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ra(i,s,u){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(Qe&2)!==0){var v=d.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s,s=Sd(i),o2(i,null,u),s}return wd(i,d,s,u),Sd(i)}function Hu(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,pj(i,u)}}function fv(i,s){var u=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var E={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=E:x=x.next=E,u=u.next}while(u!==null);x===null?v=x=s:x=x.next=s}else v=x=s;u={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:d.shared,callbacks:d.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var dv=!1;function Ku(){if(dv){var i=rl;if(i!==null)throw i}}function Yu(i,s,u,d){dv=!1;var v=i.updateQueue;_a=!1;var x=v.firstBaseUpdate,E=v.lastBaseUpdate,P=v.shared.pending;if(P!==null){v.shared.pending=null;var z=P,H=z.next;z.next=null,E===null?x=H:E.next=H,E=z;var ee=i.alternate;ee!==null&&(ee=ee.updateQueue,P=ee.lastBaseUpdate,P!==E&&(P===null?ee.firstBaseUpdate=H:P.next=H,ee.lastBaseUpdate=z))}if(x!==null){var re=v.baseState;E=0,ee=H=z=null,P=x;do{var G=P.lane&-536870913,Q=G!==P.lane;if(Q?(qe&G)===G:(d&G)===G){G!==0&&G===nl&&(dv=!0),ee!==null&&(ee=ee.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var ve=i,Te=P;G=s;var st=u;switch(Te.tag){case 1:if(ve=Te.payload,typeof ve=="function"){re=ve.call(st,re,G);break e}re=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Te.payload,G=typeof ve=="function"?ve.call(st,re,G):ve,G==null)break e;re=p({},re,G);break e;case 2:_a=!0}}G=P.callback,G!==null&&(i.flags|=64,Q&&(i.flags|=8192),Q=v.callbacks,Q===null?v.callbacks=[G]:Q.push(G))}else Q={lane:G,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ee===null?(H=ee=Q,z=re):ee=ee.next=Q,E|=G;if(P=P.next,P===null){if(P=v.shared.pending,P===null)break;Q=P,P=Q.next,Q.next=null,v.lastBaseUpdate=Q,v.shared.pending=null}}while(!0);ee===null&&(z=re),v.baseState=z,v.firstBaseUpdate=H,v.lastBaseUpdate=ee,x===null&&(v.shared.lanes=0),Ua|=E,i.lanes=E,i.memoizedState=re}}function O2(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function E2(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)O2(u[i],s)}var sl=R(null),Pd=R(0);function N2(i,s){i=Ui,ie(Pd,i),ie(sl,s),Ui=i|s.baseLanes}function hv(){ie(Pd,Ui),ie(sl,sl.current)}function mv(){Ui=Pd.current,F(sl),F(Pd)}var ir=R(null),Sr=null;function za(i){var s=i.alternate;ie(Mt,Mt.current&1),ie(ir,i),Sr===null&&(s===null||sl.current!==null||s.memoizedState!==null)&&(Sr=i)}function pv(i){ie(Mt,Mt.current),ie(ir,i),Sr===null&&(Sr=i)}function T2(i){i.tag===22?(ie(Mt,Mt.current),ie(ir,i),Sr===null&&(Sr=i)):La()}function La(){ie(Mt,Mt.current),ie(ir,ir.current)}function ar(i){F(ir),Sr===i&&(Sr=null),F(Mt)}var Mt=R(0);function _d(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||wy(u)||Sy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===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 Pi=0,Re=null,it=null,It=null,Dd=!1,ol=!1,qs=!1,Rd=0,Gu=0,ll=null,YI=0;function Et(){throw Error(r(321))}function gv(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 vv(i,s,u,d,v,x){return Pi=x,Re=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,q.H=i===null||i.memoizedState===null?fA:Pv,qs=!1,x=u(d,v),qs=!1,ol&&(x=k2(s,u,d,v)),C2(i),x}function C2(i){q.H=Qu;var s=it!==null&&it.next!==null;if(Pi=0,It=it=Re=null,Dd=!1,Gu=0,ll=null,s)throw Error(r(300));i===null||Bt||(i=i.dependencies,i!==null&&Od(i)&&(Bt=!0))}function k2(i,s,u,d){Re=i;var v=0;do{if(ol&&(ll=null),Gu=0,ol=!1,25<=v)throw Error(r(301));if(v+=1,It=it=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}q.H=dA,x=s(u,d)}while(ol);return x}function GI(){var i=q.H,s=i.useState()[0];return s=typeof s.then=="function"?Wu(s):s,i=i.useState()[0],(it!==null?it.memoizedState:null)!==i&&(Re.flags|=1024),s}function yv(){var i=Rd!==0;return Rd=0,i}function xv(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function bv(i){if(Dd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Dd=!1}Pi=0,It=it=Re=null,ol=!1,Gu=Rd=0,ll=null}function Cn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?Re.memoizedState=It=i:It=It.next=i,It}function Pt(){if(it===null){var i=Re.alternate;i=i!==null?i.memoizedState:null}else i=it.next;var s=It===null?Re.memoizedState:It.next;if(s!==null)It=s,it=i;else{if(i===null)throw Re.alternate===null?Error(r(467)):Error(r(310));it=i,i={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},It===null?Re.memoizedState=It=i:It=It.next=i}return It}function zd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wu(i){var s=Gu;return Gu+=1,ll===null&&(ll=[]),i=b2(ll,i,s),s=Re,(It===null?s.memoizedState:It.next)===null&&(s=s.alternate,q.H=s===null||s.memoizedState===null?fA:Pv),i}function Ld(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Wu(i);if(i.$$typeof===N)return pn(i)}throw Error(r(438,String(i)))}function wv(i){var s=null,u=Re.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var d=Re.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(s={data:d.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=zd(),Re.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]=K;return s.index++,u}function _i(i,s){return typeof s=="function"?s(i):s}function Id(i){var s=Pt();return Sv(s,it,i)}function Sv(i,s,u){var d=i.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var v=i.baseQueue,x=d.pending;if(x!==null){if(v!==null){var E=v.next;v.next=x.next,x.next=E}s.baseQueue=v=x,d.pending=null}if(x=i.baseState,v===null)i.memoizedState=x;else{s=v.next;var P=E=null,z=null,H=s,ee=!1;do{var re=H.lane&-536870913;if(re!==H.lane?(qe&re)===re:(Pi&re)===re){var G=H.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),re===nl&&(ee=!0);else if((Pi&G)===G){H=H.next,G===nl&&(ee=!0);continue}else re={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(P=z=re,E=x):z=z.next=re,Re.lanes|=G,Ua|=G;re=H.action,qs&&u(x,re),x=H.hasEagerState?H.eagerState:u(x,re)}else G={lane:re,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},z===null?(P=z=G,E=x):z=z.next=G,Re.lanes|=re,Ua|=re;H=H.next}while(H!==null&&H!==s);if(z===null?E=x:z.next=P,!nr(x,i.memoizedState)&&(Bt=!0,ee&&(u=rl,u!==null)))throw u;i.memoizedState=x,i.baseState=E,i.baseQueue=z,d.lastRenderedState=x}return v===null&&(d.lanes=0),[i.memoizedState,d.dispatch]}function jv(i){var s=Pt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var d=u.dispatch,v=u.pending,x=s.memoizedState;if(v!==null){u.pending=null;var E=v=v.next;do x=i(x,E.action),E=E.next;while(E!==v);nr(x,s.memoizedState)||(Bt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),u.lastRenderedState=x}return[x,d]}function M2(i,s,u){var d=Re,v=Pt(),x=Fe;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=s();var E=!nr((it||v).memoizedState,u);if(E&&(v.memoizedState=u,Bt=!0),v=v.queue,Ev(D2.bind(null,d,v,i),[i]),v.getSnapshot!==s||E||It!==null&&It.memoizedState.tag&1){if(d.flags|=2048,ul(9,{destroy:void 0},_2.bind(null,d,v,u,s),null),ut===null)throw Error(r(349));x||(Pi&127)!==0||P2(d,s,u)}return u}function P2(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=Re.updateQueue,s===null?(s=zd(),Re.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function _2(i,s,u,d){s.value=u,s.getSnapshot=d,R2(s)&&z2(i)}function D2(i,s,u){return u(function(){R2(s)&&z2(i)})}function R2(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!nr(i,u)}catch{return!0}}function z2(i){var s=_s(i,2);s!==null&&Yn(s,i,2)}function Av(i){var s=Cn();if(typeof i=="function"){var u=i;if(i=u(),qs){Ea(!0);try{u()}finally{Ea(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:i},s}function L2(i,s,u,d){return i.baseState=u,Sv(i,it,typeof d=="function"?d:_i)}function WI(i,s,u,d,v){if($d(i))throw Error(r(485));if(i=s.action,i!==null){var x={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){x.listeners.push(E)}};q.T!==null?u(!0):x.isTransition=!1,d(x),u=s.pending,u===null?(x.next=s.pending=x,I2(s,x)):(x.next=u.next,s.pending=u.next=x)}}function I2(i,s){var u=s.action,d=s.payload,v=i.state;if(s.isTransition){var x=q.T,E={};q.T=E;try{var P=u(v,d),z=q.S;z!==null&&z(E,P),B2(i,s,P)}catch(H){Ov(i,s,H)}finally{x!==null&&E.types!==null&&(x.types=E.types),q.T=x}}else try{x=u(v,d),B2(i,s,x)}catch(H){Ov(i,s,H)}}function B2(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(d){U2(i,s,d)},function(d){return Ov(i,s,d)}):U2(i,s,u)}function U2(i,s,u){s.status="fulfilled",s.value=u,$2(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,I2(i,u)))}function Ov(i,s,u){var d=i.pending;if(i.pending=null,d!==null){d=d.next;do s.status="rejected",s.reason=u,$2(s),s=s.next;while(s!==d)}i.action=null}function $2(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function q2(i,s){return s}function V2(i,s){if(Fe){var u=ut.formState;if(u!==null){e:{var d=Re;if(Fe){if(ht){t:{for(var v=ht,x=wr;v.nodeType!==8;){if(!x){v=null;break t}if(v=jr(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){ht=jr(v.nextSibling),d=v.data==="F!";break e}}Ma(d)}d=!1}d&&(s=u[0])}}return u=Cn(),u.memoizedState=u.baseState=s,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q2,lastRenderedState:s},u.queue=d,u=lA.bind(null,Re,d),d.dispatch=u,d=Av(!1),x=Mv.bind(null,Re,!1,d.queue),d=Cn(),v={state:s,dispatch:null,action:i,pending:null},d.queue=v,u=WI.bind(null,Re,v,x,u),v.dispatch=u,d.memoizedState=i,[s,u,!1]}function F2(i){var s=Pt();return H2(s,it,i)}function H2(i,s,u){if(s=Sv(i,s,q2)[0],i=Id(_i)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=Wu(s)}catch(E){throw E===il?Td:E}else d=s;s=Pt();var v=s.queue,x=v.dispatch;return u!==s.memoizedState&&(Re.flags|=2048,ul(9,{destroy:void 0},XI.bind(null,v,u),null)),[d,x,i]}function XI(i,s){i.action=s}function K2(i){var s=Pt(),u=it;if(u!==null)return H2(s,u,i);Pt(),s=s.memoizedState,u=Pt();var d=u.queue.dispatch;return u.memoizedState=i,[s,d,!1]}function ul(i,s,u,d){return i={tag:i,create:u,deps:d,inst:s,next:null},s=Re.updateQueue,s===null&&(s=zd(),Re.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 Y2(){return Pt().memoizedState}function Bd(i,s,u,d){var v=Cn();Re.flags|=i,v.memoizedState=ul(1|s,{destroy:void 0},u,d===void 0?null:d)}function Ud(i,s,u,d){var v=Pt();d=d===void 0?null:d;var x=v.memoizedState.inst;it!==null&&d!==null&&gv(d,it.memoizedState.deps)?v.memoizedState=ul(s,x,u,d):(Re.flags|=i,v.memoizedState=ul(1|s,x,u,d))}function G2(i,s){Bd(8390656,8,i,s)}function Ev(i,s){Ud(2048,8,i,s)}function QI(i){Re.flags|=4;var s=Re.updateQueue;if(s===null)s=zd(),Re.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function W2(i){var s=Pt().memoizedState;return QI({ref:s,nextImpl:i}),function(){if((Qe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function X2(i,s){return Ud(4,2,i,s)}function Q2(i,s){return Ud(4,4,i,s)}function Z2(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 J2(i,s,u){u=u!=null?u.concat([i]):null,Ud(4,4,Z2.bind(null,s,i),u)}function Nv(){}function eA(i,s){var u=Pt();s=s===void 0?null:s;var d=u.memoizedState;return s!==null&&gv(s,d[1])?d[0]:(u.memoizedState=[i,s],i)}function tA(i,s){var u=Pt();s=s===void 0?null:s;var d=u.memoizedState;if(s!==null&&gv(s,d[1]))return d[0];if(d=i(),qs){Ea(!0);try{i()}finally{Ea(!1)}}return u.memoizedState=[d,s],d}function Tv(i,s,u){return u===void 0||(Pi&1073741824)!==0&&(qe&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=nO(),Re.lanes|=i,Ua|=i,u)}function nA(i,s,u,d){return nr(u,s)?u:sl.current!==null?(i=Tv(i,u,d),nr(i,s)||(Bt=!0),i):(Pi&42)===0||(Pi&1073741824)!==0&&(qe&261930)===0?(Bt=!0,i.memoizedState=u):(i=nO(),Re.lanes|=i,Ua|=i,s)}function rA(i,s,u,d,v){var x=W.p;W.p=x!==0&&8>x?x:8;var E=q.T,P={};q.T=P,Mv(i,!1,s,u);try{var z=v(),H=q.S;if(H!==null&&H(P,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=KI(z,d);Xu(i,s,ee,lr(i))}else Xu(i,s,d,lr(i))}catch(re){Xu(i,s,{then:function(){},status:"rejected",reason:re},lr())}finally{W.p=x,E!==null&&P.types!==null&&(E.types=P.types),q.T=E}}function ZI(){}function Cv(i,s,u,d){if(i.tag!==5)throw Error(r(476));var v=iA(i).queue;rA(i,v,s,Y,u===null?ZI:function(){return aA(i),u(d)})}function iA(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:Y},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function aA(i){var s=iA(i);s.next===null&&(s=i.alternate.memoizedState),Xu(i,s.next.queue,{},lr())}function kv(){return pn(hc)}function sA(){return Pt().memoizedState}function oA(){return Pt().memoizedState}function JI(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=lr();i=Da(u);var d=Ra(s,i,u);d!==null&&(Yn(d,s,u),Hu(d,s,u)),s={cache:av()},i.payload=s;return}s=s.return}}function eB(i,s,u){var d=lr();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},$d(i)?uA(s,u):(u=Gg(i,s,u,d),u!==null&&(Yn(u,i,d),cA(u,s,d)))}function lA(i,s,u){var d=lr();Xu(i,s,u,d)}function Xu(i,s,u,d){var v={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if($d(i))uA(s,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var E=s.lastRenderedState,P=x(E,u);if(v.hasEagerState=!0,v.eagerState=P,nr(P,E))return wd(i,s,v,0),ut===null&&bd(),!1}catch{}finally{}if(u=Gg(i,s,v,d),u!==null)return Yn(u,i,d),cA(u,s,d),!0}return!1}function Mv(i,s,u,d){if(d={lane:2,revertLane:uy(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},$d(i)){if(s)throw Error(r(479))}else s=Gg(i,u,d,2),s!==null&&Yn(s,i,2)}function $d(i){var s=i.alternate;return i===Re||s!==null&&s===Re}function uA(i,s){ol=Dd=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function cA(i,s,u){if((u&4194048)!==0){var d=s.lanes;d&=i.pendingLanes,u|=d,s.lanes=u,pj(i,u)}}var Qu={readContext:pn,use:Ld,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};Qu.useEffectEvent=Et;var fA={readContext:pn,use:Ld,useCallback:function(i,s){return Cn().memoizedState=[i,s===void 0?null:s],i},useContext:pn,useEffect:G2,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Bd(4194308,4,Z2.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Bd(4194308,4,i,s)},useInsertionEffect:function(i,s){Bd(4,2,i,s)},useMemo:function(i,s){var u=Cn();s=s===void 0?null:s;var d=i();if(qs){Ea(!0);try{i()}finally{Ea(!1)}}return u.memoizedState=[d,s],d},useReducer:function(i,s,u){var d=Cn();if(u!==void 0){var v=u(s);if(qs){Ea(!0);try{u(s)}finally{Ea(!1)}}}else v=s;return d.memoizedState=d.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},d.queue=i,i=i.dispatch=eB.bind(null,Re,i),[d.memoizedState,i]},useRef:function(i){var s=Cn();return i={current:i},s.memoizedState=i},useState:function(i){i=Av(i);var s=i.queue,u=lA.bind(null,Re,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Nv,useDeferredValue:function(i,s){var u=Cn();return Tv(u,i,s)},useTransition:function(){var i=Av(!1);return i=rA.bind(null,Re,i.queue,!0,!1),Cn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var d=Re,v=Cn();if(Fe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ut===null)throw Error(r(349));(qe&127)!==0||P2(d,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,G2(D2.bind(null,d,x,i),[i]),d.flags|=2048,ul(9,{destroy:void 0},_2.bind(null,d,x,u,s),null),u},useId:function(){var i=Cn(),s=ut.identifierPrefix;if(Fe){var u=oi,d=si;u=(d&~(1<<32-tr(d)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Rd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=YI++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:kv,useFormState:V2,useActionState:V2,useOptimistic:function(i){var s=Cn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Mv.bind(null,Re,!0,u),u.dispatch=s,[i,s]},useMemoCache:wv,useCacheRefresh:function(){return Cn().memoizedState=JI.bind(null,Re)},useEffectEvent:function(i){var s=Cn(),u={impl:i};return s.memoizedState=u,function(){if((Qe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Pv={readContext:pn,use:Ld,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:X2,useLayoutEffect:Q2,useMemo:tA,useReducer:Id,useRef:Y2,useState:function(){return Id(_i)},useDebugValue:Nv,useDeferredValue:function(i,s){var u=Pt();return nA(u,it.memoizedState,i,s)},useTransition:function(){var i=Id(_i)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:Wu(i),s]},useSyncExternalStore:M2,useId:sA,useHostTransitionStatus:kv,useFormState:F2,useActionState:F2,useOptimistic:function(i,s){var u=Pt();return L2(u,it,i,s)},useMemoCache:wv,useCacheRefresh:oA};Pv.useEffectEvent=W2;var dA={readContext:pn,use:Ld,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:X2,useLayoutEffect:Q2,useMemo:tA,useReducer:jv,useRef:Y2,useState:function(){return jv(_i)},useDebugValue:Nv,useDeferredValue:function(i,s){var u=Pt();return it===null?Tv(u,i,s):nA(u,it.memoizedState,i,s)},useTransition:function(){var i=jv(_i)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:Wu(i),s]},useSyncExternalStore:M2,useId:sA,useHostTransitionStatus:kv,useFormState:K2,useActionState:K2,useOptimistic:function(i,s){var u=Pt();return it!==null?L2(u,it,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:wv,useCacheRefresh:oA};dA.useEffectEvent=W2;function _v(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 Dv={enqueueSetState:function(i,s,u){i=i._reactInternals;var d=lr(),v=Da(d);v.payload=s,u!=null&&(v.callback=u),s=Ra(i,v,d),s!==null&&(Yn(s,i,d),Hu(s,i,d))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var d=lr(),v=Da(d);v.tag=1,v.payload=s,u!=null&&(v.callback=u),s=Ra(i,v,d),s!==null&&(Yn(s,i,d),Hu(s,i,d))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=lr(),d=Da(u);d.tag=2,s!=null&&(d.callback=s),s=Ra(i,d,u),s!==null&&(Yn(s,i,u),Hu(s,i,u))}};function hA(i,s,u,d,v,x,E){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,x,E):s.prototype&&s.prototype.isPureReactComponent?!Lu(u,d)||!Lu(v,x):!0}function mA(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&&Dv.enqueueReplaceState(s,s.state,null)}function Vs(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 v in i)u[v]===void 0&&(u[v]=i[v])}return u}function pA(i){xd(i)}function gA(i){console.error(i)}function vA(i){xd(i)}function qd(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(d){setTimeout(function(){throw d})}}function yA(i,s,u){try{var d=i.onCaughtError;d(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Rv(i,s,u){return u=Da(u),u.tag=3,u.payload={element:null},u.callback=function(){qd(i,s)},u}function xA(i){return i=Da(i),i.tag=3,i}function bA(i,s,u,d){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=d.value;i.payload=function(){return v(x)},i.callback=function(){yA(s,u,d)}}var E=u.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(i.callback=function(){yA(s,u,d),typeof v!="function"&&($a===null?$a=new Set([this]):$a.add(this));var P=d.stack;this.componentDidCatch(d.value,{componentStack:P!==null?P:""})})}function tB(i,s,u,d,v){if(u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(s=u.alternate,s!==null&&tl(s,u,v,!0),u=ir.current,u!==null){switch(u.tag){case 31:case 13:return Sr===null?eh():u.alternate===null&&Nt===0&&(Nt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,d===Cd?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([d]):s.add(d),sy(i,d,v)),!1;case 22:return u.flags|=65536,d===Cd?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([d])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([d]):u.add(d)),sy(i,d,v)),!1}throw Error(r(435,u.tag))}return sy(i,d,v),eh(),!1}if(Fe)return s=ir.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,d!==ev&&(i=Error(r(422),{cause:d}),Uu(yr(i,u)))):(d!==ev&&(s=Error(r(423),{cause:d}),Uu(yr(s,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,d=yr(d,u),v=Rv(i.stateNode,d,v),fv(i,v),Nt!==4&&(Nt=2)),!1;var x=Error(r(520),{cause:d});if(x=yr(x,u),ac===null?ac=[x]:ac.push(x),Nt!==4&&(Nt=2),s===null)return!0;d=yr(d,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=Rv(u.stateNode,d,i),fv(u,i),!1;case 1:if(s=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&($a===null||!$a.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=xA(v),bA(v,i,u,d),fv(u,v),!1}u=u.return}while(u!==null);return!1}var zv=Error(r(461)),Bt=!1;function gn(i,s,u,d){s.child=i===null?A2(s,null,u,d):$s(s,i.child,u,d)}function wA(i,s,u,d,v){u=u.render;var x=s.ref;if("ref"in d){var E={};for(var P in d)P!=="ref"&&(E[P]=d[P])}else E=d;return Ls(s),d=vv(i,s,u,E,x,v),P=yv(),i!==null&&!Bt?(xv(i,s,v),Di(i,s,v)):(Fe&&P&&Zg(s),s.flags|=1,gn(i,s,d,v),s.child)}function SA(i,s,u,d,v){if(i===null){var x=u.type;return typeof x=="function"&&!Wg(x)&&x.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=x,jA(i,s,x,d,v)):(i=jd(u.type,null,d,s,s.mode,v),i.ref=s.ref,i.return=s,s.child=i)}if(x=i.child,!Fv(i,v)){var E=x.memoizedProps;if(u=u.compare,u=u!==null?u:Lu,u(E,d)&&i.ref===s.ref)return Di(i,s,v)}return s.flags|=1,i=Ti(x,d),i.ref=s.ref,i.return=s,s.child=i}function jA(i,s,u,d,v){if(i!==null){var x=i.memoizedProps;if(Lu(x,d)&&i.ref===s.ref)if(Bt=!1,s.pendingProps=d=x,Fv(i,v))(i.flags&131072)!==0&&(Bt=!0);else return s.lanes=i.lanes,Di(i,s,v)}return Lv(i,s,u,d,v)}function AA(i,s,u,d){var v=d.children,x=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(x=x!==null?x.baseLanes|u:u,i!==null){for(d=s.child=i.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~x}else d=0,s.child=null;return OA(i,s,x,u,d)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Nd(s,x!==null?x.cachePool:null),x!==null?N2(s,x):hv(),T2(s);else return d=s.lanes=536870912,OA(i,s,x!==null?x.baseLanes|u:u,u,d)}else x!==null?(Nd(s,x.cachePool),N2(s,x),La(),s.memoizedState=null):(i!==null&&Nd(s,null),hv(),La());return gn(i,s,v,u),s.child}function Zu(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function OA(i,s,u,d,v){var x=ov();return x=x===null?null:{parent:Lt._currentValue,pool:x},s.memoizedState={baseLanes:u,cachePool:x},i!==null&&Nd(s,null),hv(),T2(s),i!==null&&tl(i,s,d,!0),s.childLanes=v,null}function Vd(i,s){return s=Hd({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function EA(i,s,u){return $s(s,i.child,null,u),i=Vd(s,s.pendingProps),i.flags|=2,ar(s),s.memoizedState=null,i}function nB(i,s,u){var d=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Fe){if(d.mode==="hidden")return i=Vd(s,d),s.lanes=536870912,Zu(null,i);if(pv(s),(i=ht)?(i=IO(i,wr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Ca!==null?{id:si,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},u=u2(i),u.return=s,s.child=u,mn=s,ht=null)):i=null,i===null)throw Ma(s);return s.lanes=536870912,null}return Vd(s,d)}var x=i.memoizedState;if(x!==null){var E=x.dehydrated;if(pv(s),v)if(s.flags&256)s.flags&=-257,s=EA(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||tl(i,s,u,!1),v=(u&i.childLanes)!==0,Bt||v){if(d=ut,d!==null&&(E=gj(d,u),E!==0&&E!==x.retryLane))throw x.retryLane=E,_s(i,E),Yn(d,i,E),zv;eh(),s=EA(i,s,u)}else i=x.treeContext,ht=jr(E.nextSibling),mn=s,Fe=!0,ka=null,wr=!1,i!==null&&d2(s,i),s=Vd(s,d),s.flags|=4096;return s}return i=Ti(i.child,{mode:d.mode,children:d.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Fd(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 Lv(i,s,u,d,v){return Ls(s),u=vv(i,s,u,d,void 0,v),d=yv(),i!==null&&!Bt?(xv(i,s,v),Di(i,s,v)):(Fe&&d&&Zg(s),s.flags|=1,gn(i,s,u,v),s.child)}function NA(i,s,u,d,v,x){return Ls(s),s.updateQueue=null,u=k2(s,d,u,v),C2(i),d=yv(),i!==null&&!Bt?(xv(i,s,x),Di(i,s,x)):(Fe&&d&&Zg(s),s.flags|=1,gn(i,s,u,x),s.child)}function TA(i,s,u,d,v){if(Ls(s),s.stateNode===null){var x=Qo,E=u.contextType;typeof E=="object"&&E!==null&&(x=pn(E)),x=new u(d,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Dv,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=d,x.state=s.memoizedState,x.refs={},uv(s),E=u.contextType,x.context=typeof E=="object"&&E!==null?pn(E):Qo,x.state=s.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(_v(s,u,E,d),x.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(E=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),E!==x.state&&Dv.enqueueReplaceState(x,x.state,null),Yu(s,d,x,v),Ku(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(i===null){x=s.stateNode;var P=s.memoizedProps,z=Vs(u,P);x.props=z;var H=x.context,ee=u.contextType;E=Qo,typeof ee=="object"&&ee!==null&&(E=pn(ee));var re=u.getDerivedStateFromProps;ee=typeof re=="function"||typeof x.getSnapshotBeforeUpdate=="function",P=s.pendingProps!==P,ee||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P||H!==E)&&mA(s,x,d,E),_a=!1;var G=s.memoizedState;x.state=G,Yu(s,d,x,v),Ku(),H=s.memoizedState,P||G!==H||_a?(typeof re=="function"&&(_v(s,u,re,d),H=s.memoizedState),(z=_a||hA(s,u,z,d,G,H,E))?(ee||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=H),x.props=d,x.state=H,x.context=E,d=z):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{x=s.stateNode,cv(i,s),E=s.memoizedProps,ee=Vs(u,E),x.props=ee,re=s.pendingProps,G=x.context,H=u.contextType,z=Qo,typeof H=="object"&&H!==null&&(z=pn(H)),P=u.getDerivedStateFromProps,(H=typeof P=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(E!==re||G!==z)&&mA(s,x,d,z),_a=!1,G=s.memoizedState,x.state=G,Yu(s,d,x,v),Ku();var Q=s.memoizedState;E!==re||G!==Q||_a||i!==null&&i.dependencies!==null&&Od(i.dependencies)?(typeof P=="function"&&(_v(s,u,P,d),Q=s.memoizedState),(ee=_a||hA(s,u,ee,d,G,Q,z)||i!==null&&i.dependencies!==null&&Od(i.dependencies))?(H||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(d,Q,z),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(d,Q,z)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||E===i.memoizedProps&&G===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&G===i.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=Q),x.props=d,x.state=Q,x.context=z,d=ee):(typeof x.componentDidUpdate!="function"||E===i.memoizedProps&&G===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&G===i.memoizedState||(s.flags|=1024),d=!1)}return x=d,Fd(i,s),d=(s.flags&128)!==0,x||d?(x=s.stateNode,u=d&&typeof u.getDerivedStateFromError!="function"?null:x.render(),s.flags|=1,i!==null&&d?(s.child=$s(s,i.child,null,v),s.child=$s(s,null,u,v)):gn(i,s,u,v),s.memoizedState=x.state,i=s.child):i=Di(i,s,v),i}function CA(i,s,u,d){return Rs(),s.flags|=256,gn(i,s,u,d),s.child}var Iv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bv(i){return{baseLanes:i,cachePool:y2()}}function Uv(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=or),i}function kA(i,s,u){var d=s.pendingProps,v=!1,x=(s.flags&128)!==0,E;if((E=x)||(E=i!==null&&i.memoizedState===null?!1:(Mt.current&2)!==0),E&&(v=!0,s.flags&=-129),E=(s.flags&32)!==0,s.flags&=-33,i===null){if(Fe){if(v?za(s):La(),(i=ht)?(i=IO(i,wr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Ca!==null?{id:si,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},u=u2(i),u.return=s,s.child=u,mn=s,ht=null)):i=null,i===null)throw Ma(s);return Sy(i)?s.lanes=32:s.lanes=536870912,null}var P=d.children;return d=d.fallback,v?(La(),v=s.mode,P=Hd({mode:"hidden",children:P},v),d=Ds(d,v,u,null),P.return=s,d.return=s,P.sibling=d,s.child=P,d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(i,E,u),s.memoizedState=Iv,Zu(null,d)):(za(s),$v(s,P))}var z=i.memoizedState;if(z!==null&&(P=z.dehydrated,P!==null)){if(x)s.flags&256?(za(s),s.flags&=-257,s=qv(i,s,u)):s.memoizedState!==null?(La(),s.child=i.child,s.flags|=128,s=null):(La(),P=d.fallback,v=s.mode,d=Hd({mode:"visible",children:d.children},v),P=Ds(P,v,u,null),P.flags|=2,d.return=s,P.return=s,d.sibling=P,s.child=d,$s(s,i.child,null,u),d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(i,E,u),s.memoizedState=Iv,s=Zu(null,d));else if(za(s),Sy(P)){if(E=P.nextSibling&&P.nextSibling.dataset,E)var H=E.dgst;E=H,d=Error(r(419)),d.stack="",d.digest=E,Uu({value:d,source:null,stack:null}),s=qv(i,s,u)}else if(Bt||tl(i,s,u,!1),E=(u&i.childLanes)!==0,Bt||E){if(E=ut,E!==null&&(d=gj(E,u),d!==0&&d!==z.retryLane))throw z.retryLane=d,_s(i,d),Yn(E,i,d),zv;wy(P)||eh(),s=qv(i,s,u)}else wy(P)?(s.flags|=192,s.child=i.child,s=null):(i=z.treeContext,ht=jr(P.nextSibling),mn=s,Fe=!0,ka=null,wr=!1,i!==null&&d2(s,i),s=$v(s,d.children),s.flags|=4096);return s}return v?(La(),P=d.fallback,v=s.mode,z=i.child,H=z.sibling,d=Ti(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,H!==null?P=Ti(H,P):(P=Ds(P,v,u,null),P.flags|=2),P.return=s,d.return=s,d.sibling=P,s.child=d,Zu(null,d),d=s.child,P=i.child.memoizedState,P===null?P=Bv(u):(v=P.cachePool,v!==null?(z=Lt._currentValue,v=v.parent!==z?{parent:z,pool:z}:v):v=y2(),P={baseLanes:P.baseLanes|u,cachePool:v}),d.memoizedState=P,d.childLanes=Uv(i,E,u),s.memoizedState=Iv,Zu(i.child,d)):(za(s),u=i.child,i=u.sibling,u=Ti(u,{mode:"visible",children:d.children}),u.return=s,u.sibling=null,i!==null&&(E=s.deletions,E===null?(s.deletions=[i],s.flags|=16):E.push(i)),s.child=u,s.memoizedState=null,u)}function $v(i,s){return s=Hd({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Hd(i,s){return i=rr(22,i,null,s),i.lanes=0,i}function qv(i,s,u){return $s(s,i.child,null,u),i=$v(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function MA(i,s,u){i.lanes|=s;var d=i.alternate;d!==null&&(d.lanes|=s),rv(i.return,s,u)}function Vv(i,s,u,d,v,x){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:v,treeForkCount:x}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=u,E.tailMode=v,E.treeForkCount=x)}function PA(i,s,u){var d=s.pendingProps,v=d.revealOrder,x=d.tail;d=d.children;var E=Mt.current,P=(E&2)!==0;if(P?(E=E&1|2,s.flags|=128):E&=1,ie(Mt,E),gn(i,s,d,u),d=Fe?Bu:0,!P&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&MA(i,u,s);else if(i.tag===19)MA(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(v){case"forwards":for(u=s.child,v=null;u!==null;)i=u.alternate,i!==null&&_d(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=s.child,s.child=null):(v=u.sibling,u.sibling=null),Vv(s,!1,v,u,x,d);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=s.child,s.child=null;v!==null;){if(i=v.alternate,i!==null&&_d(i)===null){s.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}Vv(s,!0,u,null,x,d);break;case"together":Vv(s,!1,null,null,void 0,d);break;default:s.memoizedState=null}return s.child}function Di(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),Ua|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(tl(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=Ti(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Ti(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function Fv(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Od(i)))}function rB(i,s,u){switch(s.tag){case 3:Xe(s,s.stateNode.containerInfo),Pa(s,Lt,i.memoizedState.cache),Rs();break;case 27:case 5:Ce(s);break;case 4:Xe(s,s.stateNode.containerInfo);break;case 10:Pa(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,pv(s),null;break;case 13:var d=s.memoizedState;if(d!==null)return d.dehydrated!==null?(za(s),s.flags|=128,null):(u&s.child.childLanes)!==0?kA(i,s,u):(za(s),i=Di(i,s,u),i!==null?i.sibling:null);za(s);break;case 19:var v=(i.flags&128)!==0;if(d=(u&s.childLanes)!==0,d||(tl(i,s,u,!1),d=(u&s.childLanes)!==0),v){if(d)return PA(i,s,u);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ie(Mt,Mt.current),d)break;return null;case 22:return s.lanes=0,AA(i,s,u,s.pendingProps);case 24:Pa(s,Lt,i.memoizedState.cache)}return Di(i,s,u)}function _A(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Bt=!0;else{if(!Fv(i,u)&&(s.flags&128)===0)return Bt=!1,rB(i,s,u);Bt=(i.flags&131072)!==0}else Bt=!1,Fe&&(s.flags&1048576)!==0&&f2(s,Bu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var d=s.pendingProps;if(i=Bs(s.elementType),s.type=i,typeof i=="function")Wg(i)?(d=Vs(i,d),s.tag=1,s=TA(null,s,i,d,u)):(s.tag=0,s=Lv(null,s,i,d,u));else{if(i!=null){var v=i.$$typeof;if(v===C){s.tag=11,s=wA(null,s,i,d,u);break e}else if(v===M){s.tag=14,s=SA(null,s,i,d,u);break e}}throw s=de(i)||i,Error(r(306,s,""))}}return s;case 0:return Lv(i,s,s.type,s.pendingProps,u);case 1:return d=s.type,v=Vs(d,s.pendingProps),TA(i,s,d,v,u);case 3:e:{if(Xe(s,s.stateNode.containerInfo),i===null)throw Error(r(387));d=s.pendingProps;var x=s.memoizedState;v=x.element,cv(i,s),Yu(s,d,null,u);var E=s.memoizedState;if(d=E.cache,Pa(s,Lt,d),d!==x.cache&&iv(s,[Lt],u,!0),Ku(),d=E.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:E.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=CA(i,s,d,u);break e}else if(d!==v){v=yr(Error(r(424)),s),Uu(v),s=CA(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(ht=jr(i.firstChild),mn=s,Fe=!0,ka=null,wr=!0,u=A2(s,null,d,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Rs(),d===v){s=Di(i,s,u);break e}gn(i,s,d,u)}s=s.child}return s;case 26:return Fd(i,s),i===null?(u=FO(s.type,null,s.pendingProps,null))?s.memoizedState=u:Fe||(u=s.type,i=s.pendingProps,d=oh(Ee.current).createElement(u),d[hn]=s,d[$n]=i,vn(d,u,i),tn(d),s.stateNode=d):s.memoizedState=FO(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Ce(s),i===null&&Fe&&(d=s.stateNode=$O(s.type,s.pendingProps,Ee.current),mn=s,wr=!0,v=ht,Ha(s.type)?(jy=v,ht=jr(d.firstChild)):ht=v),gn(i,s,s.pendingProps.children,u),Fd(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Fe&&((v=d=ht)&&(d=_B(d,s.type,s.pendingProps,wr),d!==null?(s.stateNode=d,mn=s,ht=jr(d.firstChild),wr=!1,v=!0):v=!1),v||Ma(s)),Ce(s),v=s.type,x=s.pendingProps,E=i!==null?i.memoizedProps:null,d=x.children,yy(v,x)?d=null:E!==null&&yy(v,E)&&(s.flags|=32),s.memoizedState!==null&&(v=vv(i,s,GI,null,null,u),hc._currentValue=v),Fd(i,s),gn(i,s,d,u),s.child;case 6:return i===null&&Fe&&((i=u=ht)&&(u=DB(u,s.pendingProps,wr),u!==null?(s.stateNode=u,mn=s,ht=null,i=!0):i=!1),i||Ma(s)),null;case 13:return kA(i,s,u);case 4:return Xe(s,s.stateNode.containerInfo),d=s.pendingProps,i===null?s.child=$s(s,null,d,u):gn(i,s,d,u),s.child;case 11:return wA(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,Pa(s,s.type,d.value),gn(i,s,d.children,u),s.child;case 9:return v=s.type._context,d=s.pendingProps.children,Ls(s),v=pn(v),d=d(v),s.flags|=1,gn(i,s,d,u),s.child;case 14:return SA(i,s,s.type,s.pendingProps,u);case 15:return jA(i,s,s.type,s.pendingProps,u);case 19:return PA(i,s,u);case 31:return nB(i,s,u);case 22:return AA(i,s,u,s.pendingProps);case 24:return Ls(s),d=pn(Lt),i===null?(v=ov(),v===null&&(v=ut,x=av(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),s.memoizedState={parent:d,cache:v},uv(s),Pa(s,Lt,v)):((i.lanes&u)!==0&&(cv(i,s),Yu(s,null,null,u),Ku()),v=i.memoizedState,x=s.memoizedState,v.parent!==d?(v={parent:d,cache:d},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Pa(s,Lt,d)):(d=x.cache,Pa(s,Lt,d),d!==v.cache&&iv(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 Ri(i){i.flags|=4}function Hv(i,s,u,d,v){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(sO())i.flags|=8192;else throw Us=Cd,lv}else i.flags&=-16777217}function DA(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!WO(s))if(sO())i.flags|=8192;else throw Us=Cd,lv}function Kd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?hj():536870912,i.lanes|=s,hl|=s)}function Ju(i,s){if(!Fe)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 mt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,d=0;if(s)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=d,i.childLanes=u,s}function iB(i,s,u){var d=s.pendingProps;switch(Jg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(s),null;case 1:return mt(s),null;case 3:return u=s.stateNode,d=null,i!==null&&(d=i.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),Mi(Lt),J(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(el(s)?Ri(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,tv())),mt(s),null;case 26:var v=s.type,x=s.memoizedState;return i===null?(Ri(s),x!==null?(mt(s),DA(s,x)):(mt(s),Hv(s,v,null,d,u))):x?x!==i.memoizedState?(Ri(s),mt(s),DA(s,x)):(mt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==d&&Ri(s),mt(s),Hv(s,v,i,d,u)),null;case 27:if(Pe(s),u=Ee.current,v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Ri(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return mt(s),null}i=se.current,el(s)?h2(s):(i=$O(v,d,u),s.stateNode=i,Ri(s))}return mt(s),null;case 5:if(Pe(s),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Ri(s);else{if(!d){if(s.stateNode===null)throw Error(r(166));return mt(s),null}if(x=se.current,el(s))h2(s);else{var E=oh(Ee.current);switch(x){case 1:x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=E.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof d.is=="string"?E.createElement("select",{is:d.is}):E.createElement("select"),d.multiple?x.multiple=!0:d.size&&(x.size=d.size);break;default:x=typeof d.is=="string"?E.createElement(v,{is:d.is}):E.createElement(v)}}x[hn]=s,x[$n]=d;e:for(E=s.child;E!==null;){if(E.tag===5||E.tag===6)x.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===s)break e;for(;E.sibling===null;){if(E.return===null||E.return===s)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}s.stateNode=x;e:switch(vn(x,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ri(s)}}return mt(s),Hv(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==d&&Ri(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(r(166));if(i=Ee.current,el(s)){if(i=s.stateNode,u=s.memoizedProps,d=null,v=mn,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}i[hn]=s,i=!!(i.nodeValue===u||d!==null&&d.suppressHydrationWarning===!0||kO(i.nodeValue,u)),i||Ma(s,!0)}else i=oh(i).createTextNode(d),i[hn]=s,s.stateNode=i}return mt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(d=el(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 Rs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mt(s),i=!1}else u=tv(),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 mt(s),null;case 13:if(d=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=el(s),d!==null&&d.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[hn]=s}else Rs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mt(s),v=!1}else v=tv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)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,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),x=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),x!==v&&(d.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),Kd(s,s.updateQueue),mt(s),null);case 4:return J(),i===null&&hy(s.stateNode.containerInfo),mt(s),null;case 10:return Mi(s.type),mt(s),null;case 19:if(F(Mt),d=s.memoizedState,d===null)return mt(s),null;if(v=(s.flags&128)!==0,x=d.rendering,x===null)if(v)Ju(d,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=_d(i),x!==null){for(s.flags|=128,Ju(d,!1),i=x.updateQueue,s.updateQueue=i,Kd(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)l2(u,i),u=u.sibling;return ie(Mt,Mt.current&1|2),Fe&&Ci(s,d.treeForkCount),s.child}i=i.sibling}d.tail!==null&&ue()>Qd&&(s.flags|=128,v=!0,Ju(d,!1),s.lanes=4194304)}else{if(!v)if(i=_d(x),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,Kd(s,i),Ju(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!Fe)return mt(s),null}else 2*ue()-d.renderingStartTime>Qd&&u!==536870912&&(s.flags|=128,v=!0,Ju(d,!1),s.lanes=4194304);d.isBackwards?(x.sibling=s.child,s.child=x):(i=d.last,i!==null?i.sibling=x:s.child=x,d.last=x)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=ue(),i.sibling=null,u=Mt.current,ie(Mt,v?u&1|2:u&1),Fe&&Ci(s,d.treeForkCount),i):(mt(s),null);case 22:case 23:return ar(s),mv(),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&&(mt(s),s.subtreeFlags&6&&(s.flags|=8192)):mt(s),u=s.updateQueue,u!==null&&Kd(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&&F(Is),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Mi(Lt),mt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function aB(i,s){switch(Jg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Mi(Lt),J(),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));Rs()}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));Rs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return F(Mt),null;case 4:return J(),null;case 10:return Mi(s.type),null;case 22:case 23:return ar(s),mv(),i!==null&&F(Is),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Mi(Lt),null;case 25:return null;default:return null}}function RA(i,s){switch(Jg(s),s.tag){case 3:Mi(Lt),J();break;case 26:case 27:case 5:Pe(s);break;case 4:J();break;case 31:s.memoizedState!==null&&ar(s);break;case 13:ar(s);break;case 19:F(Mt);break;case 10:Mi(s.type);break;case 22:case 23:ar(s),mv(),i!==null&&F(Is);break;case 24:Mi(Lt)}}function ec(i,s){try{var u=s.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var v=d.next;u=v;do{if((u.tag&i)===i){d=void 0;var x=u.create,E=u.inst;d=x(),E.destroy=d}u=u.next}while(u!==v)}}catch(P){tt(s,s.return,P)}}function Ia(i,s,u){try{var d=s.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var x=v.next;d=x;do{if((d.tag&i)===i){var E=d.inst,P=E.destroy;if(P!==void 0){E.destroy=void 0,v=s;var z=u,H=P;try{H()}catch(ee){tt(v,z,ee)}}}d=d.next}while(d!==x)}}catch(ee){tt(s,s.return,ee)}}function zA(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{E2(s,u)}catch(d){tt(i,i.return,d)}}}function LA(i,s,u){u.props=Vs(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(d){tt(i,s,d)}}function tc(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(v){tt(i,s,v)}}function li(i,s){var u=i.ref,d=i.refCleanup;if(u!==null)if(typeof d=="function")try{d()}catch(v){tt(i,s,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){tt(i,s,v)}else u.current=null}function IA(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(v){tt(i,i.return,v)}}function Kv(i,s,u){try{var d=i.stateNode;NB(d,i.type,u,s),d[$n]=s}catch(v){tt(i,i.return,v)}}function BA(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ha(i.type)||i.tag===4}function Yv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||BA(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&&Ha(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 Gv(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=Ei));else if(d!==4&&(d===27&&Ha(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(Gv(i,s,u),i=i.sibling;i!==null;)Gv(i,s,u),i=i.sibling}function Yd(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&&Ha(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Yd(i,s,u),i=i.sibling;i!==null;)Yd(i,s,u),i=i.sibling}function UA(i){var s=i.stateNode,u=i.memoizedProps;try{for(var d=i.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);vn(s,d,u),s[hn]=i,s[$n]=u}catch(x){tt(i,i.return,x)}}var zi=!1,Ut=!1,Wv=!1,$A=typeof WeakSet=="function"?WeakSet:Set,nn=null;function sB(i,s){if(i=i.containerInfo,gy=mh,i=Jj(i),qg(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 v=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var E=0,P=-1,z=-1,H=0,ee=0,re=i,G=null;t:for(;;){for(var Q;re!==u||v!==0&&re.nodeType!==3||(P=E+v),re!==x||d!==0&&re.nodeType!==3||(z=E+d),re.nodeType===3&&(E+=re.nodeValue.length),(Q=re.firstChild)!==null;)G=re,re=Q;for(;;){if(re===i)break t;if(G===u&&++H===v&&(P=E),G===x&&++ee===d&&(z=E),(Q=re.nextSibling)!==null)break;re=G,G=re.parentNode}re=Q}u=P===-1||z===-1?null:{start:P,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(vy={focusedElem:i,selectionRange:u},mh=!1,nn=s;nn!==null;)if(s=nn,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,nn=i;else for(;nn!==null;){switch(s=nn,x=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++)v=i[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,u=s,v=x.memoizedProps,x=x.memoizedState,d=u.stateNode;try{var ve=Vs(u.type,v);i=d.getSnapshotBeforeUpdate(ve,x),d.__reactInternalSnapshotBeforeUpdate=i}catch(Te){tt(u,u.return,Te)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)by(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":by(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,nn=i;break}nn=s.return}}function qA(i,s,u){var d=u.flags;switch(u.tag){case 0:case 11:case 15:Ii(i,u),d&4&&ec(5,u);break;case 1:if(Ii(i,u),d&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(E){tt(u,u.return,E)}else{var v=Vs(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(v,s,i.__reactInternalSnapshotBeforeUpdate)}catch(E){tt(u,u.return,E)}}d&64&&zA(u),d&512&&tc(u,u.return);break;case 3:if(Ii(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{E2(i,s)}catch(E){tt(u,u.return,E)}}break;case 27:s===null&&d&4&&UA(u);case 26:case 5:Ii(i,u),s===null&&d&4&&IA(u),d&512&&tc(u,u.return);break;case 12:Ii(i,u);break;case 31:Ii(i,u),d&4&&HA(i,u);break;case 13:Ii(i,u),d&4&&KA(i,u),d&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=pB.bind(null,u),RB(i,u))));break;case 22:if(d=u.memoizedState!==null||zi,!d){s=s!==null&&s.memoizedState!==null||Ut,v=zi;var x=Ut;zi=d,(Ut=s)&&!x?Bi(i,u,(u.subtreeFlags&8772)!==0):Ii(i,u),zi=v,Ut=x}break;case 30:break;default:Ii(i,u)}}function VA(i){var s=i.alternate;s!==null&&(i.alternate=null,VA(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&Og(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 vt=null,Vn=!1;function Li(i,s,u){for(u=u.child;u!==null;)FA(i,s,u),u=u.sibling}function FA(i,s,u){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(Ou,u)}catch{}switch(u.tag){case 26:Ut||li(u,s),Li(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Ut||li(u,s);var d=vt,v=Vn;Ha(u.type)&&(vt=u.stateNode,Vn=!1),Li(i,s,u),cc(u.stateNode),vt=d,Vn=v;break;case 5:Ut||li(u,s);case 6:if(d=vt,v=Vn,vt=null,Li(i,s,u),vt=d,Vn=v,vt!==null)if(Vn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(u.stateNode)}catch(x){tt(u,s,x)}else try{vt.removeChild(u.stateNode)}catch(x){tt(u,s,x)}break;case 18:vt!==null&&(Vn?(i=vt,zO(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),wl(i)):zO(vt,u.stateNode));break;case 4:d=vt,v=Vn,vt=u.stateNode.containerInfo,Vn=!0,Li(i,s,u),vt=d,Vn=v;break;case 0:case 11:case 14:case 15:Ia(2,u,s),Ut||Ia(4,u,s),Li(i,s,u);break;case 1:Ut||(li(u,s),d=u.stateNode,typeof d.componentWillUnmount=="function"&&LA(u,s,d)),Li(i,s,u);break;case 21:Li(i,s,u);break;case 22:Ut=(d=Ut)||u.memoizedState!==null,Li(i,s,u),Ut=d;break;default:Li(i,s,u)}}function HA(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{wl(i)}catch(u){tt(s,s.return,u)}}}function KA(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{wl(i)}catch(u){tt(s,s.return,u)}}function oB(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new $A),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new $A),s;default:throw Error(r(435,i.tag))}}function Gd(i,s){var u=oB(i);s.forEach(function(d){if(!u.has(d)){u.add(d);var v=gB.bind(null,i,d);d.then(v,v)}})}function Fn(i,s){var u=s.deletions;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d],x=i,E=s,P=E;e:for(;P!==null;){switch(P.tag){case 27:if(Ha(P.type)){vt=P.stateNode,Vn=!1;break e}break;case 5:vt=P.stateNode,Vn=!1;break e;case 3:case 4:vt=P.stateNode.containerInfo,Vn=!0;break e}P=P.return}if(vt===null)throw Error(r(160));FA(x,E,v),vt=null,Vn=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)YA(s,i),s=s.sibling}var Vr=null;function YA(i,s){var u=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Fn(s,i),Hn(i),d&4&&(Ia(3,i,i.return),ec(3,i),Ia(5,i,i.return));break;case 1:Fn(s,i),Hn(i),d&512&&(Ut||u===null||li(u,u.return)),d&64&&zi&&(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 v=Vr;if(Fn(s,i),Hn(i),d&512&&(Ut||u===null||li(u,u.return)),d&4){var x=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,v=v.ownerDocument||v;t:switch(d){case"title":x=v.getElementsByTagName("title")[0],(!x||x[Tu]||x[hn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(d),v.head.insertBefore(x,v.querySelector("head > title"))),vn(x,d,u),x[hn]=i,tn(x),d=x;break e;case"link":var E=YO("link","href",v).get(d+(u.href||""));if(E){for(var P=0;P<E.length;P++)if(x=E[P],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(P,1);break t}}x=v.createElement(d),vn(x,d,u),v.head.appendChild(x);break;case"meta":if(E=YO("meta","content",v).get(d+(u.content||""))){for(P=0;P<E.length;P++)if(x=E[P],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(P,1);break t}}x=v.createElement(d),vn(x,d,u),v.head.appendChild(x);break;default:throw Error(r(468,d))}x[hn]=i,tn(x),d=x}i.stateNode=d}else GO(v,i.type,i.stateNode);else i.stateNode=KO(v,d,i.memoizedProps);else x!==d?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,d===null?GO(v,i.type,i.stateNode):KO(v,d,i.memoizedProps)):d===null&&i.stateNode!==null&&Kv(i,i.memoizedProps,u.memoizedProps)}break;case 27:Fn(s,i),Hn(i),d&512&&(Ut||u===null||li(u,u.return)),u!==null&&d&4&&Kv(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Fn(s,i),Hn(i),d&512&&(Ut||u===null||li(u,u.return)),i.flags&32){v=i.stateNode;try{Fo(v,"")}catch(ve){tt(i,i.return,ve)}}d&4&&i.stateNode!=null&&(v=i.memoizedProps,Kv(i,v,u!==null?u.memoizedProps:v)),d&1024&&(Wv=!0);break;case 6:if(Fn(s,i),Hn(i),d&4){if(i.stateNode===null)throw Error(r(162));d=i.memoizedProps,u=i.stateNode;try{u.nodeValue=d}catch(ve){tt(i,i.return,ve)}}break;case 3:if(ch=null,v=Vr,Vr=lh(s.containerInfo),Fn(s,i),Vr=v,Hn(i),d&4&&u!==null&&u.memoizedState.isDehydrated)try{wl(s.containerInfo)}catch(ve){tt(i,i.return,ve)}Wv&&(Wv=!1,GA(i));break;case 4:d=Vr,Vr=lh(i.stateNode.containerInfo),Fn(s,i),Hn(i),Vr=d;break;case 12:Fn(s,i),Hn(i);break;case 31:Fn(s,i),Hn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Gd(i,d)));break;case 13:Fn(s,i),Hn(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Xd=ue()),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Gd(i,d)));break;case 22:v=i.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,H=zi,ee=Ut;if(zi=H||v,Ut=ee||z,Fn(s,i),Ut=ee,zi=H,Hn(i),d&8192)e:for(s=i.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(u===null||z||zi||Ut||Fs(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){z=u=s;try{if(x=z.stateNode,v)E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{P=z.stateNode;var re=z.memoizedProps.style,G=re!=null&&re.hasOwnProperty("display")?re.display:null;P.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ve){tt(z,z.return,ve)}}}else if(s.tag===6){if(u===null){z=s;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ve){tt(z,z.return,ve)}}}else if(s.tag===18){if(u===null){z=s;try{var Q=z.stateNode;v?LO(Q,!0):LO(z.stateNode,!1)}catch(ve){tt(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,Gd(i,u))));break;case 19:Fn(s,i),Hn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Gd(i,d)));break;case 30:break;case 21:break;default:Fn(s,i),Hn(i)}}function Hn(i){var s=i.flags;if(s&2){try{for(var u,d=i.return;d!==null;){if(BA(d)){u=d;break}d=d.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=Yv(i);Yd(i,x,v);break;case 5:var E=u.stateNode;u.flags&32&&(Fo(E,""),u.flags&=-33);var P=Yv(i);Yd(i,P,E);break;case 3:case 4:var z=u.stateNode.containerInfo,H=Yv(i);Gv(i,H,z);break;default:throw Error(r(161))}}catch(ee){tt(i,i.return,ee)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function GA(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;GA(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function Ii(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)qA(i,s.alternate,s),s=s.sibling}function Fs(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Ia(4,s,s.return),Fs(s);break;case 1:li(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&LA(s,s.return,u),Fs(s);break;case 27:cc(s.stateNode);case 26:case 5:li(s,s.return),Fs(s);break;case 22:s.memoizedState===null&&Fs(s);break;case 30:Fs(s);break;default:Fs(s)}i=i.sibling}}function Bi(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var d=s.alternate,v=i,x=s,E=x.flags;switch(x.tag){case 0:case 11:case 15:Bi(v,x,u),ec(4,x);break;case 1:if(Bi(v,x,u),d=x,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(H){tt(d,d.return,H)}if(d=x,v=d.updateQueue,v!==null){var P=d.stateNode;try{var z=v.shared.hiddenCallbacks;if(z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<z.length;v++)O2(z[v],P)}catch(H){tt(d,d.return,H)}}u&&E&64&&zA(x),tc(x,x.return);break;case 27:UA(x);case 26:case 5:Bi(v,x,u),u&&d===null&&E&4&&IA(x),tc(x,x.return);break;case 12:Bi(v,x,u);break;case 31:Bi(v,x,u),u&&E&4&&HA(v,x);break;case 13:Bi(v,x,u),u&&E&4&&KA(v,x);break;case 22:x.memoizedState===null&&Bi(v,x,u),tc(x,x.return);break;case 30:break;default:Bi(v,x,u)}s=s.sibling}}function Xv(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&&$u(u))}function Qv(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&$u(i))}function Fr(i,s,u,d){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)WA(i,s,u,d),s=s.sibling}function WA(i,s,u,d){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Fr(i,s,u,d),v&2048&&ec(9,s);break;case 1:Fr(i,s,u,d);break;case 3:Fr(i,s,u,d),v&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&$u(i)));break;case 12:if(v&2048){Fr(i,s,u,d),i=s.stateNode;try{var x=s.memoizedProps,E=x.id,P=x.onPostCommit;typeof P=="function"&&P(E,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){tt(s,s.return,z)}}else Fr(i,s,u,d);break;case 31:Fr(i,s,u,d);break;case 13:Fr(i,s,u,d);break;case 23:break;case 22:x=s.stateNode,E=s.alternate,s.memoizedState!==null?x._visibility&2?Fr(i,s,u,d):nc(i,s):x._visibility&2?Fr(i,s,u,d):(x._visibility|=2,cl(i,s,u,d,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Xv(E,s);break;case 24:Fr(i,s,u,d),v&2048&&Qv(s.alternate,s);break;default:Fr(i,s,u,d)}}function cl(i,s,u,d,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var x=i,E=s,P=u,z=d,H=E.flags;switch(E.tag){case 0:case 11:case 15:cl(x,E,P,z,v),ec(8,E);break;case 23:break;case 22:var ee=E.stateNode;E.memoizedState!==null?ee._visibility&2?cl(x,E,P,z,v):nc(x,E):(ee._visibility|=2,cl(x,E,P,z,v)),v&&H&2048&&Xv(E.alternate,E);break;case 24:cl(x,E,P,z,v),v&&H&2048&&Qv(E.alternate,E);break;default:cl(x,E,P,z,v)}s=s.sibling}}function nc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,d=s,v=d.flags;switch(d.tag){case 22:nc(u,d),v&2048&&Xv(d.alternate,d);break;case 24:nc(u,d),v&2048&&Qv(d.alternate,d);break;default:nc(u,d)}s=s.sibling}}var rc=8192;function fl(i,s,u){if(i.subtreeFlags&rc)for(i=i.child;i!==null;)XA(i,s,u),i=i.sibling}function XA(i,s,u){switch(i.tag){case 26:fl(i,s,u),i.flags&rc&&i.memoizedState!==null&&YB(u,Vr,i.memoizedState,i.memoizedProps);break;case 5:fl(i,s,u);break;case 3:case 4:var d=Vr;Vr=lh(i.stateNode.containerInfo),fl(i,s,u),Vr=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=rc,rc=16777216,fl(i,s,u),rc=d):fl(i,s,u));break;default:fl(i,s,u)}}function QA(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 ic(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];nn=d,JA(d,i)}QA(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ZA(i),i=i.sibling}function ZA(i){switch(i.tag){case 0:case 11:case 15:ic(i),i.flags&2048&&Ia(9,i,i.return);break;case 3:ic(i);break;case 12:ic(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Wd(i)):ic(i);break;default:ic(i)}}function Wd(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];nn=d,JA(d,i)}QA(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ia(8,s,s.return),Wd(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Wd(s));break;default:Wd(s)}i=i.sibling}}function JA(i,s){for(;nn!==null;){var u=nn;switch(u.tag){case 0:case 11:case 15:Ia(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:$u(u.memoizedState.cache)}if(d=u.child,d!==null)d.return=u,nn=d;else e:for(u=i;nn!==null;){d=nn;var v=d.sibling,x=d.return;if(VA(d),d===u){nn=null;break e}if(v!==null){v.return=x,nn=v;break e}nn=x}}}var lB={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}},uB=typeof WeakMap=="function"?WeakMap:Map,Qe=0,ut=null,Ue=null,qe=0,et=0,sr=null,Ba=!1,dl=!1,Zv=!1,Ui=0,Nt=0,Ua=0,Hs=0,Jv=0,or=0,hl=0,ac=null,Kn=null,ey=!1,Xd=0,eO=0,Qd=1/0,Zd=null,$a=null,Yt=0,qa=null,ml=null,$i=0,ty=0,ny=null,tO=null,sc=0,ry=null;function lr(){return(Qe&2)!==0&&qe!==0?qe&-qe:q.T!==null?uy():vj()}function nO(){if(or===0)if((qe&536870912)===0||Fe){var i=sd;sd<<=1,(sd&3932160)===0&&(sd=262144),or=i}else or=536870912;return i=ir.current,i!==null&&(i.flags|=32),or}function Yn(i,s,u){(i===ut&&(et===2||et===9)||i.cancelPendingCommit!==null)&&(pl(i,0),Va(i,qe,or,!1)),Nu(i,u),((Qe&2)===0||i!==ut)&&(i===ut&&((Qe&2)===0&&(Hs|=u),Nt===4&&Va(i,qe,or,!1)),ui(i))}function rO(i,s,u){if((Qe&6)!==0)throw Error(r(327));var d=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Eu(i,s),v=d?dB(i,s):ay(i,s,!0),x=d;do{if(v===0){dl&&!d&&Va(i,s,0,!1);break}else{if(u=i.current.alternate,x&&!cB(u)){v=ay(i,s,!1),x=!1;continue}if(v===2){if(x=s,i.errorRecoveryDisabledLanes&x)var E=0;else E=i.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){s=E;e:{var P=i;v=ac;var z=P.current.memoizedState.isDehydrated;if(z&&(pl(P,E).flags|=256),E=ay(P,E,!1),E!==2){if(Zv&&!z){P.errorRecoveryDisabledLanes|=x,Hs|=x,v=4;break e}x=Kn,Kn=v,x!==null&&(Kn===null?Kn=x:Kn.push.apply(Kn,x))}v=E}if(x=!1,v!==2)continue}}if(v===1){pl(i,0),Va(i,s,0,!0);break}e:{switch(d=i,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Va(d,s,or,!Ba);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Xd+300-ue(),10<v)){if(Va(d,s,or,!Ba),ld(d,0,!0)!==0)break e;$i=s,d.timeoutHandle=DO(iO.bind(null,d,u,Kn,Zd,ey,s,or,Hs,hl,Ba,x,"Throttled",-0,0),v);break e}iO(d,u,Kn,Zd,ey,s,or,Hs,hl,Ba,x,null,-0,0)}}break}while(!0);ui(i)}function iO(i,s,u,d,v,x,E,P,z,H,ee,re,G,Q){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:Ei},XA(s,x,re);var ve=(x&62914560)===x?Xd-ue():(x&4194048)===x?eO-ue():0;if(ve=GB(re,ve),ve!==null){$i=x,i.cancelPendingCommit=ve(dO.bind(null,i,s,x,u,d,v,E,P,z,ee,re,null,G,Q)),Va(i,x,E,!H);return}}dO(i,s,x,u,d,v,E,P,z)}function cB(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 v=u[d],x=v.getSnapshot;v=v.value;try{if(!nr(x(),v))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===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 Va(i,s,u,d){s&=~Jv,s&=~Hs,i.suspendedLanes|=s,i.pingedLanes&=~s,d&&(i.warmLanes|=s),d=i.expirationTimes;for(var v=s;0<v;){var x=31-tr(v),E=1<<x;d[x]=-1,v&=~E}u!==0&&mj(i,u,s)}function Jd(){return(Qe&6)===0?(oc(0),!1):!0}function iy(){if(Ue!==null){if(et===0)var i=Ue.return;else i=Ue,ki=zs=null,bv(i),al=null,Vu=0,i=Ue;for(;i!==null;)RA(i.alternate,i),i=i.return;Ue=null}}function pl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,kB(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),$i=0,iy(),ut=i,Ue=u=Ti(i.current,null),qe=s,et=0,sr=null,Ba=!1,dl=Eu(i,s),Zv=!1,hl=or=Jv=Hs=Ua=Nt=0,Kn=ac=null,ey=!1,(s&8)!==0&&(s|=s&32);var d=i.entangledLanes;if(d!==0)for(i=i.entanglements,d&=s;0<d;){var v=31-tr(d),x=1<<v;s|=i[v],d&=~x}return Ui=s,bd(),u}function aO(i,s){Re=null,q.H=Qu,s===il||s===Td?(s=w2(),et=3):s===lv?(s=w2(),et=4):et=s===zv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,sr=s,Ue===null&&(Nt=1,qd(i,yr(s,i.current)))}function sO(){var i=ir.current;return i===null?!0:(qe&4194048)===qe?Sr===null:(qe&62914560)===qe||(qe&536870912)!==0?i===Sr:!1}function oO(){var i=q.H;return q.H=Qu,i===null?Qu:i}function lO(){var i=q.A;return q.A=lB,i}function eh(){Nt=4,Ba||(qe&4194048)!==qe&&ir.current!==null||(dl=!0),(Ua&134217727)===0&&(Hs&134217727)===0||ut===null||Va(ut,qe,or,!1)}function ay(i,s,u){var d=Qe;Qe|=2;var v=oO(),x=lO();(ut!==i||qe!==s)&&(Zd=null,pl(i,s)),s=!1;var E=Nt;e:do try{if(et!==0&&Ue!==null){var P=Ue,z=sr;switch(et){case 8:iy(),E=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(s=!0);var H=et;if(et=0,sr=null,gl(i,P,z,H),u&&dl){E=0;break e}break;default:H=et,et=0,sr=null,gl(i,P,z,H)}}fB(),E=Nt;break}catch(ee){aO(i,ee)}while(!0);return s&&i.shellSuspendCounter++,ki=zs=null,Qe=d,q.H=v,q.A=x,Ue===null&&(ut=null,qe=0,bd()),E}function fB(){for(;Ue!==null;)uO(Ue)}function dB(i,s){var u=Qe;Qe|=2;var d=oO(),v=lO();ut!==i||qe!==s?(Zd=null,Qd=ue()+500,pl(i,s)):dl=Eu(i,s);e:do try{if(et!==0&&Ue!==null){s=Ue;var x=sr;t:switch(et){case 1:et=0,sr=null,gl(i,s,x,1);break;case 2:case 9:if(x2(x)){et=0,sr=null,cO(s);break}s=function(){et!==2&&et!==9||ut!==i||(et=7),ui(i)},x.then(s,s);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:x2(x)?(et=0,sr=null,cO(s)):(et=0,sr=null,gl(i,s,x,7));break;case 5:var E=null;switch(Ue.tag){case 26:E=Ue.memoizedState;case 5:case 27:var P=Ue;if(E?WO(E):P.stateNode.complete){et=0,sr=null;var z=P.sibling;if(z!==null)Ue=z;else{var H=P.return;H!==null?(Ue=H,th(H)):Ue=null}break t}}et=0,sr=null,gl(i,s,x,5);break;case 6:et=0,sr=null,gl(i,s,x,6);break;case 8:iy(),Nt=6;break e;default:throw Error(r(462))}}hB();break}catch(ee){aO(i,ee)}while(!0);return ki=zs=null,q.H=d,q.A=v,Qe=u,Ue!==null?0:(ut=null,qe=0,bd(),Nt)}function hB(){for(;Ue!==null&&!rd();)uO(Ue)}function uO(i){var s=_A(i.alternate,i,Ui);i.memoizedProps=i.pendingProps,s===null?th(i):Ue=s}function cO(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=NA(u,s,s.pendingProps,s.type,void 0,qe);break;case 11:s=NA(u,s,s.pendingProps,s.type.render,s.ref,qe);break;case 5:bv(s);default:RA(u,s),s=Ue=l2(s,Ui),s=_A(u,s,Ui)}i.memoizedProps=i.pendingProps,s===null?th(i):Ue=s}function gl(i,s,u,d){ki=zs=null,bv(s),al=null,Vu=0;var v=s.return;try{if(tB(i,v,s,u,qe)){Nt=1,qd(i,yr(u,i.current)),Ue=null;return}}catch(x){if(v!==null)throw Ue=v,x;Nt=1,qd(i,yr(u,i.current)),Ue=null;return}s.flags&32768?(Fe||d===1?i=!0:dl||(qe&536870912)!==0?i=!1:(Ba=i=!0,(d===2||d===9||d===3||d===6)&&(d=ir.current,d!==null&&d.tag===13&&(d.flags|=16384))),fO(s,i)):th(s)}function th(i){var s=i;do{if((s.flags&32768)!==0){fO(s,Ba);return}i=s.return;var u=iB(s.alternate,s,Ui);if(u!==null){Ue=u;return}if(s=s.sibling,s!==null){Ue=s;return}Ue=s=i}while(s!==null);Nt===0&&(Nt=5)}function fO(i,s){do{var u=aB(i.alternate,i);if(u!==null){u.flags&=32767,Ue=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){Ue=i;return}Ue=i=u}while(i!==null);Nt=6,Ue=null}function dO(i,s,u,d,v,x,E,P,z){i.cancelPendingCommit=null;do nh();while(Yt!==0);if((Qe&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(x=s.lanes|s.childLanes,x|=Yg,K6(i,u,x,E,P,z),i===ut&&(Ue=ut=null,qe=0),ml=s,qa=i,$i=u,ty=x,ny=v,tO=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,vB(Kt,function(){return vO(),null})):(i.callbackNode=null,i.callbackPriority=0),d=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||d){d=q.T,q.T=null,v=W.p,W.p=2,E=Qe,Qe|=4;try{sB(i,s,u)}finally{Qe=E,W.p=v,q.T=d}}Yt=1,hO(),mO(),pO()}}function hO(){if(Yt===1){Yt=0;var i=qa,s=ml,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=q.T,q.T=null;var d=W.p;W.p=2;var v=Qe;Qe|=4;try{YA(s,i);var x=vy,E=Jj(i.containerInfo),P=x.focusedElem,z=x.selectionRange;if(E!==P&&P&&P.ownerDocument&&Zj(P.ownerDocument.documentElement,P)){if(z!==null&&qg(P)){var H=z.start,ee=z.end;if(ee===void 0&&(ee=H),"selectionStart"in P)P.selectionStart=H,P.selectionEnd=Math.min(ee,P.value.length);else{var re=P.ownerDocument||document,G=re&&re.defaultView||window;if(G.getSelection){var Q=G.getSelection(),ve=P.textContent.length,Te=Math.min(z.start,ve),st=z.end===void 0?Te:Math.min(z.end,ve);!Q.extend&&Te>st&&(E=st,st=Te,Te=E);var U=Qj(P,Te),I=Qj(P,st);if(U&&I&&(Q.rangeCount!==1||Q.anchorNode!==U.node||Q.anchorOffset!==U.offset||Q.focusNode!==I.node||Q.focusOffset!==I.offset)){var V=re.createRange();V.setStart(U.node,U.offset),Q.removeAllRanges(),Te>st?(Q.addRange(V),Q.extend(I.node,I.offset)):(V.setEnd(I.node,I.offset),Q.addRange(V))}}}}for(re=[],Q=P;Q=Q.parentNode;)Q.nodeType===1&&re.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<re.length;P++){var te=re[P];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}mh=!!gy,vy=gy=null}finally{Qe=v,W.p=d,q.T=u}}i.current=s,Yt=2}}function mO(){if(Yt===2){Yt=0;var i=qa,s=ml,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=q.T,q.T=null;var d=W.p;W.p=2;var v=Qe;Qe|=4;try{qA(i,s.alternate,s)}finally{Qe=v,W.p=d,q.T=u}}Yt=3}}function pO(){if(Yt===4||Yt===3){Yt=0,id();var i=qa,s=ml,u=$i,d=tO;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Yt=5:(Yt=0,ml=qa=null,gO(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&($a=null),jg(u),s=s.stateNode,er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(Ou,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=q.T,v=W.p,W.p=2,q.T=null;try{for(var x=i.onRecoverableError,E=0;E<d.length;E++){var P=d[E];x(P.value,{componentStack:P.stack})}}finally{q.T=s,W.p=v}}($i&3)!==0&&nh(),ui(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===ry?sc++:(sc=0,ry=i):sc=0,oc(0)}}function gO(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,$u(s)))}function nh(){return hO(),mO(),pO(),vO()}function vO(){if(Yt!==5)return!1;var i=qa,s=ty;ty=0;var u=jg($i),d=q.T,v=W.p;try{W.p=32>u?32:u,q.T=null,u=ny,ny=null;var x=qa,E=$i;if(Yt=0,ml=qa=null,$i=0,(Qe&6)!==0)throw Error(r(331));var P=Qe;if(Qe|=4,ZA(x.current),WA(x,x.current,E,u),Qe=P,oc(0,!1),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(Ou,x)}catch{}return!0}finally{W.p=v,q.T=d,gO(i,s)}}function yO(i,s,u){s=yr(u,s),s=Rv(i.stateNode,s,2),i=Ra(i,s,2),i!==null&&(Nu(i,2),ui(i))}function tt(i,s,u){if(i.tag===3)yO(i,i,u);else for(;s!==null;){if(s.tag===3){yO(s,i,u);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&($a===null||!$a.has(d))){i=yr(u,i),u=xA(2),d=Ra(s,u,2),d!==null&&(bA(u,d,s,i),Nu(d,2),ui(d));break}}s=s.return}}function sy(i,s,u){var d=i.pingCache;if(d===null){d=i.pingCache=new uB;var v=new Set;d.set(s,v)}else v=d.get(s),v===void 0&&(v=new Set,d.set(s,v));v.has(u)||(Zv=!0,v.add(u),i=mB.bind(null,i,s,u),s.then(i,i))}function mB(i,s,u){var d=i.pingCache;d!==null&&d.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,ut===i&&(qe&u)===u&&(Nt===4||Nt===3&&(qe&62914560)===qe&&300>ue()-Xd?(Qe&2)===0&&pl(i,0):Jv|=u,hl===qe&&(hl=0)),ui(i)}function xO(i,s){s===0&&(s=hj()),i=_s(i,s),i!==null&&(Nu(i,s),ui(i))}function pB(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),xO(i,u)}function gB(i,s){var u=0;switch(i.tag){case 31:case 13:var d=i.stateNode,v=i.memoizedState;v!==null&&(u=v.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),xO(i,u)}function vB(i,s){return zo(i,s)}var rh=null,vl=null,oy=!1,ih=!1,ly=!1,Fa=0;function ui(i){i!==vl&&i.next===null&&(vl===null?rh=vl=i:vl=vl.next=i),ih=!0,oy||(oy=!0,xB())}function oc(i,s){if(!ly&&ih){ly=!0;do for(var u=!1,d=rh;d!==null;){if(i!==0){var v=d.pendingLanes;if(v===0)var x=0;else{var E=d.suspendedLanes,P=d.pingedLanes;x=(1<<31-tr(42|i)+1)-1,x&=v&~(E&~P),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,jO(d,x))}else x=qe,x=ld(d,d===ut?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(x&3)===0||Eu(d,x)||(u=!0,jO(d,x));d=d.next}while(u);ly=!1}}function yB(){bO()}function bO(){ih=oy=!1;var i=0;Fa!==0&&CB()&&(i=Fa);for(var s=ue(),u=null,d=rh;d!==null;){var v=d.next,x=wO(d,s);x===0?(d.next=null,u===null?rh=v:u.next=v,v===null&&(vl=u)):(u=d,(i!==0||(x&3)!==0)&&(ih=!0)),d=v}Yt!==0&&Yt!==5||oc(i),Fa!==0&&(Fa=0)}function wO(i,s){for(var u=i.suspendedLanes,d=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var E=31-tr(x),P=1<<E,z=v[E];z===-1?((P&u)===0||(P&d)!==0)&&(v[E]=H6(P,s)):z<=s&&(i.expiredLanes|=P),x&=~P}if(s=ut,u=qe,u=ld(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d=i.callbackNode,u===0||i===s&&(et===2||et===9)||i.cancelPendingCommit!==null)return d!==null&&d!==null&&Lo(d),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Eu(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(d!==null&&Lo(d),jg(u)){case 2:case 8:u=Ot;break;case 32:u=Kt;break;case 268435456:u=dn;break;default:u=Kt}return d=SO.bind(null,i),u=zo(u,d),i.callbackPriority=s,i.callbackNode=u,s}return d!==null&&d!==null&&Lo(d),i.callbackPriority=2,i.callbackNode=null,2}function SO(i,s){if(Yt!==0&&Yt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(nh()&&i.callbackNode!==u)return null;var d=qe;return d=ld(i,i===ut?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d===0?null:(rO(i,d,s),wO(i,ue()),i.callbackNode!=null&&i.callbackNode===u?SO.bind(null,i):null)}function jO(i,s){if(nh())return null;rO(i,s,!0)}function xB(){MB(function(){(Qe&6)!==0?zo(De,yB):bO()})}function uy(){if(Fa===0){var i=nl;i===0&&(i=ad,ad<<=1,(ad&261888)===0&&(ad=256)),Fa=i}return Fa}function AO(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:dd(""+i)}function OO(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 bB(i,s,u,d,v){if(s==="submit"&&u&&u.stateNode===v){var x=AO((v[$n]||null).action),E=d.submitter;E&&(s=(s=E[$n]||null)?AO(s.formAction):E.getAttribute("formAction"),s!==null&&(x=s,E=null));var P=new gd("action","action",null,d,v);i.push({event:P,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Fa!==0){var z=E?OO(v,E):new FormData(v);Cv(u,{pending:!0,data:z,method:v.method,action:x},null,z)}}else typeof x=="function"&&(P.preventDefault(),z=E?OO(v,E):new FormData(v),Cv(u,{pending:!0,data:z,method:v.method,action:x},x,z))},currentTarget:v}]})}}for(var cy=0;cy<Kg.length;cy++){var fy=Kg[cy],wB=fy.toLowerCase(),SB=fy[0].toUpperCase()+fy.slice(1);qr(wB,"on"+SB)}qr(n2,"onAnimationEnd"),qr(r2,"onAnimationIteration"),qr(i2,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(II,"onTransitionRun"),qr(BI,"onTransitionStart"),qr(UI,"onTransitionCancel"),qr(a2,"onTransitionEnd"),qo("onMouseEnter",["mouseout","mouseover"]),qo("onMouseLeave",["mouseout","mouseover"]),qo("onPointerEnter",["pointerout","pointerover"]),qo("onPointerLeave",["pointerout","pointerover"]),Cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lc="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(" "),jB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lc));function EO(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var d=i[u],v=d.event;d=d.listeners;e:{var x=void 0;if(s)for(var E=d.length-1;0<=E;E--){var P=d[E],z=P.instance,H=P.currentTarget;if(P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=H;try{x(v)}catch(ee){xd(ee)}v.currentTarget=null,x=z}else for(E=0;E<d.length;E++){if(P=d[E],z=P.instance,H=P.currentTarget,P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=H;try{x(v)}catch(ee){xd(ee)}v.currentTarget=null,x=z}}}}function $e(i,s){var u=s[Ag];u===void 0&&(u=s[Ag]=new Set);var d=i+"__bubble";u.has(d)||(NO(s,i,2,!1),u.add(d))}function dy(i,s,u){var d=0;s&&(d|=4),NO(u,i,d,s)}var ah="_reactListening"+Math.random().toString(36).slice(2);function hy(i){if(!i[ah]){i[ah]=!0,bj.forEach(function(u){u!=="selectionchange"&&(jB.has(u)||dy(u,!1,i),dy(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[ah]||(s[ah]=!0,dy("selectionchange",!1,s))}}function NO(i,s,u,d){switch(nE(s)){case 2:var v=QB;break;case 8:v=ZB;break;default:v=Ty}u=v.bind(null,s,u,i),v=void 0,!_g||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),d?v!==void 0?i.addEventListener(s,u,{capture:!0,passive:v}):i.addEventListener(s,u,!0):v!==void 0?i.addEventListener(s,u,{passive:v}):i.addEventListener(s,u,!1)}function my(i,s,u,d,v){var x=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var P=d.stateNode.containerInfo;if(P===v)break;if(E===4)for(E=d.return;E!==null;){var z=E.tag;if((z===3||z===4)&&E.stateNode.containerInfo===v)return;E=E.return}for(;P!==null;){if(E=Bo(P),E===null)return;if(z=E.tag,z===5||z===6||z===26||z===27){d=x=E;continue e}P=P.parentNode}}d=d.return}Pj(function(){var H=x,ee=Mg(u),re=[];e:{var G=s2.get(i);if(G!==void 0){var Q=gd,ve=i;switch(i){case"keypress":if(md(u)===0)break e;case"keydown":case"keyup":Q=gI;break;case"focusin":ve="focus",Q=Lg;break;case"focusout":ve="blur",Q=Lg;break;case"beforeblur":case"afterblur":Q=Lg;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Rj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=iI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=xI;break;case n2:case r2:case i2:Q=oI;break;case a2:Q=wI;break;case"scroll":case"scrollend":Q=nI;break;case"wheel":Q=jI;break;case"copy":case"cut":case"paste":Q=uI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Lj;break;case"toggle":case"beforetoggle":Q=OI}var Te=(s&4)!==0,st=!Te&&(i==="scroll"||i==="scrollend"),U=Te?G!==null?G+"Capture":null:G;Te=[];for(var I=H,V;I!==null;){var te=I;if(V=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||V===null||U===null||(te=ku(I,U),te!=null&&Te.push(uc(I,te,V))),st)break;I=I.return}0<Te.length&&(G=new Q(G,ve,null,u,ee),re.push({event:G,listeners:Te}))}}if((s&7)===0){e:{if(G=i==="mouseover"||i==="pointerover",Q=i==="mouseout"||i==="pointerout",G&&u!==kg&&(ve=u.relatedTarget||u.fromElement)&&(Bo(ve)||ve[Io]))break e;if((Q||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,Q?(ve=u.relatedTarget||u.toElement,Q=H,ve=ve?Bo(ve):null,ve!==null&&(st=o(ve),Te=ve.tag,ve!==st||Te!==5&&Te!==27&&Te!==6)&&(ve=null)):(Q=null,ve=H),Q!==ve)){if(Te=Rj,te="onMouseLeave",U="onMouseEnter",I="mouse",(i==="pointerout"||i==="pointerover")&&(Te=Lj,te="onPointerLeave",U="onPointerEnter",I="pointer"),st=Q==null?G:Cu(Q),V=ve==null?G:Cu(ve),G=new Te(te,I+"leave",Q,u,ee),G.target=st,G.relatedTarget=V,te=null,Bo(ee)===H&&(Te=new Te(U,I+"enter",ve,u,ee),Te.target=V,Te.relatedTarget=st,te=Te),st=te,Q&&ve)t:{for(Te=AB,U=Q,I=ve,V=0,te=U;te;te=Te(te))V++;te=0;for(var Ae=I;Ae;Ae=Te(Ae))te++;for(;0<V-te;)U=Te(U),V--;for(;0<te-V;)I=Te(I),te--;for(;V--;){if(U===I||I!==null&&U===I.alternate){Te=U;break t}U=Te(U),I=Te(I)}Te=null}else Te=null;Q!==null&&TO(re,G,Q,Te,!1),ve!==null&&st!==null&&TO(re,st,ve,Te,!0)}}e:{if(G=H?Cu(H):window,Q=G.nodeName&&G.nodeName.toLowerCase(),Q==="select"||Q==="input"&&G.type==="file")var Ke=Hj;else if(Vj(G))if(Kj)Ke=RI;else{Ke=_I;var we=PI}else Q=G.nodeName,!Q||Q.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?H&&Cg(H.elementType)&&(Ke=Hj):Ke=DI;if(Ke&&(Ke=Ke(i,H))){Fj(re,Ke,u,ee);break e}we&&we(i,G,H),i==="focusout"&&H&&G.type==="number"&&H.memoizedProps.value!=null&&Tg(G,"number",G.value)}switch(we=H?Cu(H):window,i){case"focusin":(Vj(we)||we.contentEditable==="true")&&(Go=we,Vg=H,Iu=null);break;case"focusout":Iu=Vg=Go=null;break;case"mousedown":Fg=!0;break;case"contextmenu":case"mouseup":case"dragend":Fg=!1,e2(re,u,ee);break;case"selectionchange":if(LI)break;case"keydown":case"keyup":e2(re,u,ee)}var ze;if(Bg)e:{switch(i){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Yo?$j(i,u)&&(Ve="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ve="onCompositionStart");Ve&&(Ij&&u.locale!=="ko"&&(Yo||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Yo&&(ze=_j()):(Ta=ee,Dg="value"in Ta?Ta.value:Ta.textContent,Yo=!0)),we=sh(H,Ve),0<we.length&&(Ve=new zj(Ve,i,null,u,ee),re.push({event:Ve,listeners:we}),ze?Ve.data=ze:(ze=qj(u),ze!==null&&(Ve.data=ze)))),(ze=NI?TI(i,u):CI(i,u))&&(Ve=sh(H,"onBeforeInput"),0<Ve.length&&(we=new zj("onBeforeInput","beforeinput",null,u,ee),re.push({event:we,listeners:Ve}),we.data=ze)),bB(re,i,H,u,ee)}EO(re,s)})}function uc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function sh(i,s){for(var u=s+"Capture",d=[];i!==null;){var v=i,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=ku(i,u),v!=null&&d.unshift(uc(i,v,x)),v=ku(i,s),v!=null&&d.push(uc(i,v,x))),i.tag===3)return d;i=i.return}return[]}function AB(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function TO(i,s,u,d,v){for(var x=s._reactName,E=[];u!==null&&u!==d;){var P=u,z=P.alternate,H=P.stateNode;if(P=P.tag,z!==null&&z===d)break;P!==5&&P!==26&&P!==27||H===null||(z=H,v?(H=ku(u,x),H!=null&&E.unshift(uc(u,H,z))):v||(H=ku(u,x),H!=null&&E.push(uc(u,H,z)))),u=u.return}E.length!==0&&i.push({event:s,listeners:E})}var OB=/\r\n?/g,EB=/\u0000|\uFFFD/g;function CO(i){return(typeof i=="string"?i:""+i).replace(OB,`
|
|
49
|
-
`).replace(EB,"")}function kO(i,s){return s=CO(s),CO(i)===s}function at(i,s,u,d,v,x){switch(u){case"children":typeof d=="string"?s==="body"||s==="textarea"&&d===""||Fo(i,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&Fo(i,""+d);break;case"className":cd(i,"class",d);break;case"tabIndex":cd(i,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":cd(i,u,d);break;case"style":kj(i,d,x);break;case"data":if(s!=="object"){cd(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=dd(""+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 x=="function"&&(u==="formAction"?(s!=="input"&&at(i,s,"name",v.name,v,null),at(i,s,"formEncType",v.formEncType,v,null),at(i,s,"formMethod",v.formMethod,v,null),at(i,s,"formTarget",v.formTarget,v,null)):(at(i,s,"encType",v.encType,v,null),at(i,s,"method",v.method,v,null),at(i,s,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(u);break}d=dd(""+d),i.setAttribute(u,d);break;case"onClick":d!=null&&(i.onclick=Ei);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(v.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=dd(""+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),ud(i,"popover",d);break;case"xlinkActuate":Oi(i,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Oi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Oi(i,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Oi(i,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Oi(i,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Oi(i,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Oi(i,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Oi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Oi(i,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":ud(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,ud(i,u,d))}}function py(i,s,u,d,v,x){switch(u){case"style":kj(i,d,x);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof d=="string"?Fo(i,d):(typeof d=="number"||typeof d=="bigint")&&Fo(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=Ei);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wj.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),s=u.slice(2,v?u.length-7:void 0),x=i[$n]||null,x=x!=null?x[u]:null,typeof x=="function"&&i.removeEventListener(s,x,v),typeof d=="function")){typeof x!="function"&&x!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,d,v);break e}u in i?i[u]=d:d===!0?i.setAttribute(u,""):ud(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,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var E=u[x];if(E!=null)switch(x){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:at(i,s,x,E,u,null)}}v&&at(i,s,"srcSet",u.srcSet,u,null),d&&at(i,s,"src",u.src,u,null);return;case"input":$e("invalid",i);var P=x=E=v=null,z=null,H=null;for(d in u)if(u.hasOwnProperty(d)){var ee=u[d];if(ee!=null)switch(d){case"name":v=ee;break;case"type":E=ee;break;case"checked":z=ee;break;case"defaultChecked":H=ee;break;case"value":x=ee;break;case"defaultValue":P=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,s));break;default:at(i,s,d,ee,u,null)}}Ej(i,x,P,z,H,E,v,!1);return;case"select":$e("invalid",i),d=E=x=null;for(v in u)if(u.hasOwnProperty(v)&&(P=u[v],P!=null))switch(v){case"value":x=P;break;case"defaultValue":E=P;break;case"multiple":d=P;default:at(i,s,v,P,u,null)}s=x,u=E,i.multiple=!!d,s!=null?Vo(i,!!d,s,!1):u!=null&&Vo(i,!!d,u,!0);return;case"textarea":$e("invalid",i),x=v=d=null;for(E in u)if(u.hasOwnProperty(E)&&(P=u[E],P!=null))switch(E){case"value":d=P;break;case"defaultValue":v=P;break;case"children":x=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:at(i,s,E,P,u,null)}Tj(i,d,v,x);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:at(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<lc.length;d++)$e(lc[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:at(i,s,H,d,u,null)}return;default:if(Cg(s)){for(ee in u)u.hasOwnProperty(ee)&&(d=u[ee],d!==void 0&&py(i,s,ee,d,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(d=u[P],d!=null&&at(i,s,P,d,u,null))}function NB(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 v=null,x=null,E=null,P=null,z=null,H=null,ee=null;for(Q in u){var re=u[Q];if(u.hasOwnProperty(Q)&&re!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":z=re;default:d.hasOwnProperty(Q)||at(i,s,Q,null,d,re)}}for(var G in d){var Q=d[G];if(re=u[G],d.hasOwnProperty(G)&&(Q!=null||re!=null))switch(G){case"type":x=Q;break;case"name":v=Q;break;case"checked":H=Q;break;case"defaultChecked":ee=Q;break;case"value":E=Q;break;case"defaultValue":P=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,s));break;default:Q!==re&&at(i,s,G,Q,d,re)}}Ng(i,E,P,z,H,ee,x,v);return;case"select":Q=E=P=G=null;for(x in u)if(z=u[x],u.hasOwnProperty(x)&&z!=null)switch(x){case"value":break;case"multiple":Q=z;default:d.hasOwnProperty(x)||at(i,s,x,null,d,z)}for(v in d)if(x=d[v],z=u[v],d.hasOwnProperty(v)&&(x!=null||z!=null))switch(v){case"value":G=x;break;case"defaultValue":P=x;break;case"multiple":E=x;default:x!==z&&at(i,s,v,x,d,z)}s=P,u=E,d=Q,G!=null?Vo(i,!!u,G,!1):!!d!=!!u&&(s!=null?Vo(i,!!u,s,!0):Vo(i,!!u,u?[]:"",!1));return;case"textarea":Q=G=null;for(P in u)if(v=u[P],u.hasOwnProperty(P)&&v!=null&&!d.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:at(i,s,P,null,d,v)}for(E in d)if(v=d[E],x=u[E],d.hasOwnProperty(E)&&(v!=null||x!=null))switch(E){case"value":G=v;break;case"defaultValue":Q=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&at(i,s,E,v,d,x)}Nj(i,G,Q);return;case"option":for(var ve in u)if(G=u[ve],u.hasOwnProperty(ve)&&G!=null&&!d.hasOwnProperty(ve))switch(ve){case"selected":i.selected=!1;break;default:at(i,s,ve,null,d,G)}for(z in d)if(G=d[z],Q=u[z],d.hasOwnProperty(z)&&G!==Q&&(G!=null||Q!=null))switch(z){case"selected":i.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:at(i,s,z,G,d,Q)}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)G=u[Te],u.hasOwnProperty(Te)&&G!=null&&!d.hasOwnProperty(Te)&&at(i,s,Te,null,d,G);for(H in d)if(G=d[H],Q=u[H],d.hasOwnProperty(H)&&G!==Q&&(G!=null||Q!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:at(i,s,H,G,d,Q)}return;default:if(Cg(s)){for(var st in u)G=u[st],u.hasOwnProperty(st)&&G!==void 0&&!d.hasOwnProperty(st)&&py(i,s,st,void 0,d,G);for(ee in d)G=d[ee],Q=u[ee],!d.hasOwnProperty(ee)||G===Q||G===void 0&&Q===void 0||py(i,s,ee,G,d,Q);return}}for(var U in u)G=u[U],u.hasOwnProperty(U)&&G!=null&&!d.hasOwnProperty(U)&&at(i,s,U,null,d,G);for(re in d)G=d[re],Q=u[re],!d.hasOwnProperty(re)||G===Q||G==null&&Q==null||at(i,s,re,G,d,Q)}function MO(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TB(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),d=0;d<u.length;d++){var v=u[d],x=v.transferSize,E=v.initiatorType,P=v.duration;if(x&&P&&MO(E)){for(E=0,P=v.responseEnd,d+=1;d<u.length;d++){var z=u[d],H=z.startTime;if(H>P)break;var ee=z.transferSize,re=z.initiatorType;ee&&MO(re)&&(z=z.responseEnd,E+=ee*(z<P?1:(P-H)/(z-H)))}if(--d,s+=8*(x+E)/(v.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var gy=null,vy=null;function oh(i){return i.nodeType===9?i:i.ownerDocument}function PO(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 _O(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 yy(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 xy=null;function CB(){var i=window.event;return i&&i.type==="popstate"?i===xy?!1:(xy=i,!0):(xy=null,!1)}var DO=typeof setTimeout=="function"?setTimeout:void 0,kB=typeof clearTimeout=="function"?clearTimeout:void 0,RO=typeof Promise=="function"?Promise:void 0,MB=typeof queueMicrotask=="function"?queueMicrotask:typeof RO<"u"?function(i){return RO.resolve(null).then(i).catch(PB)}:DO;function PB(i){setTimeout(function(){throw i})}function Ha(i){return i==="head"}function zO(i,s){var u=s,d=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(d===0){i.removeChild(v),wl(s);return}d--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")d++;else if(u==="html")cc(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,cc(u);for(var x=u.firstChild;x;){var E=x.nextSibling,P=x.nodeName;x[Tu]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=E}}else u==="body"&&cc(i.ownerDocument.body);u=v}while(u);wl(s)}function LO(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 by(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":by(u),Og(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function _B(i,s,u,d){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!d&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(d){if(!i[Tu])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=jr(i.nextSibling),i===null)break}return null}function DB(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=jr(i.nextSibling),i===null))return null;return i}function IO(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=jr(i.nextSibling),i===null))return null;return i}function wy(i){return i.data==="$?"||i.data==="$~"}function Sy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function RB(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 jr(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 jy=null;function BO(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return jr(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function UO(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 $O(i,s,u){switch(s=oh(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 cc(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Og(i)}var Ar=new Map,qO=new Set;function lh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var qi=W.d;W.d={f:zB,r:LB,D:IB,C:BB,L:UB,m:$B,X:VB,S:qB,M:FB};function zB(){var i=qi.f(),s=Jd();return i||s}function LB(i){var s=Uo(i);s!==null&&s.tag===5&&s.type==="form"?aA(s):qi.r(i)}var yl=typeof document>"u"?null:document;function VO(i,s,u){var d=yl;if(d&&typeof s=="string"&&s){var v=gr(s);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),qO.has(v)||(qO.add(v),i={rel:i,crossOrigin:u,href:s},d.querySelector(v)===null&&(s=d.createElement("link"),vn(s,"link",i),tn(s),d.head.appendChild(s)))}}function IB(i){qi.D(i),VO("dns-prefetch",i,null)}function BB(i,s){qi.C(i,s),VO("preconnect",i,s)}function UB(i,s,u){qi.L(i,s,u);var d=yl;if(d&&i&&s){var v='link[rel="preload"][as="'+gr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+gr(u.imageSizes)+'"]')):v+='[href="'+gr(i)+'"]';var x=v;switch(s){case"style":x=xl(i);break;case"script":x=bl(i)}Ar.has(x)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),Ar.set(x,i),d.querySelector(v)!==null||s==="style"&&d.querySelector(fc(x))||s==="script"&&d.querySelector(dc(x))||(s=d.createElement("link"),vn(s,"link",i),tn(s),d.head.appendChild(s)))}}function $B(i,s){qi.m(i,s);var u=yl;if(u&&i){var d=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+gr(d)+'"][href="'+gr(i)+'"]',x=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=bl(i)}if(!Ar.has(x)&&(i=p({rel:"modulepreload",href:i},s),Ar.set(x,i),u.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(dc(x)))return}d=u.createElement("link"),vn(d,"link",i),tn(d),u.head.appendChild(d)}}}function qB(i,s,u){qi.S(i,s,u);var d=yl;if(d&&i){var v=$o(d).hoistableStyles,x=xl(i);s=s||"default";var E=v.get(x);if(!E){var P={loading:0,preload:null};if(E=d.querySelector(fc(x)))P.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=Ar.get(x))&&Ay(i,u);var z=E=d.createElement("link");tn(z),vn(z,"link",i),z._p=new Promise(function(H,ee){z.onload=H,z.onerror=ee}),z.addEventListener("load",function(){P.loading|=1}),z.addEventListener("error",function(){P.loading|=2}),P.loading|=4,uh(E,s,d)}E={type:"stylesheet",instance:E,count:1,state:P},v.set(x,E)}}}function VB(i,s){qi.X(i,s);var u=yl;if(u&&i){var d=$o(u).hoistableScripts,v=bl(i),x=d.get(v);x||(x=u.querySelector(dc(v)),x||(i=p({src:i,async:!0},s),(s=Ar.get(v))&&Oy(i,s),x=u.createElement("script"),tn(x),vn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function FB(i,s){qi.M(i,s);var u=yl;if(u&&i){var d=$o(u).hoistableScripts,v=bl(i),x=d.get(v);x||(x=u.querySelector(dc(v)),x||(i=p({src:i,async:!0,type:"module"},s),(s=Ar.get(v))&&Oy(i,s),x=u.createElement("script"),tn(x),vn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function FO(i,s,u,d){var v=(v=Ee.current)?lh(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=xl(u.href),u=$o(v).hoistableStyles,d=u.get(s),d||(d={type:"style",instance:null,count:0,state:null},u.set(s,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=xl(u.href);var x=$o(v).hoistableStyles,E=x.get(i);if(E||(v=v.ownerDocument||v,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,E),(x=v.querySelector(fc(i)))&&!x._p&&(E.instance=x,E.state.loading=5),Ar.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},Ar.set(i,u),x||HB(v,i,u,E.state))),s&&d===null)throw Error(r(528,""));return E}if(s&&d!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=bl(u),u=$o(v).hoistableScripts,d=u.get(s),d||(d={type:"script",instance:null,count:0,state:null},u.set(s,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function xl(i){return'href="'+gr(i)+'"'}function fc(i){return'link[rel="stylesheet"]['+i+"]"}function HO(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function HB(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),tn(s),i.head.appendChild(s))}function bl(i){return'[src="'+gr(i)+'"]'}function dc(i){return"script[async]"+i}function KO(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var d=i.querySelector('style[data-href~="'+gr(u.href)+'"]');if(d)return s.instance=d,tn(d),d;var v=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return d=(i.ownerDocument||i).createElement("style"),tn(d),vn(d,"style",v),uh(d,u.precedence,i),s.instance=d;case"stylesheet":v=xl(u.href);var x=i.querySelector(fc(v));if(x)return s.state.loading|=4,s.instance=x,tn(x),x;d=HO(u),(v=Ar.get(v))&&Ay(d,v),x=(i.ownerDocument||i).createElement("link"),tn(x);var E=x;return E._p=new Promise(function(P,z){E.onload=P,E.onerror=z}),vn(x,"link",d),s.state.loading|=4,uh(x,u.precedence,i),s.instance=x;case"script":return x=bl(u.src),(v=i.querySelector(dc(x)))?(s.instance=v,tn(v),v):(d=u,(v=Ar.get(x))&&(d=p({},u),Oy(d,v)),i=i.ownerDocument||i,v=i.createElement("script"),tn(v),vn(v,"link",d),i.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(d=s.instance,s.state.loading|=4,uh(d,u.precedence,i));return s.instance}function uh(i,s,u){for(var d=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,x=v,E=0;E<d.length;E++){var P=d[E];if(P.dataset.precedence===s)x=P;else if(x!==v)break}x?x.parentNode.insertBefore(i,x.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function Ay(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Oy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var ch=null;function YO(i,s,u){if(ch===null){var d=new Map,v=ch=new Map;v.set(u,d)}else v=ch,d=v.get(u),d||(d=new Map,v.set(u,d));if(d.has(i))return d;for(d.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var x=u[v];if(!(x[Tu]||x[hn]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var E=x.getAttribute(s)||"";E=i+E;var P=d.get(E);P?P.push(x):d.set(E,[x])}}return d}function GO(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function KB(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 WO(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function YB(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 v=xl(d.href),x=s.querySelector(fc(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=fh.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=x,tn(x);return}x=s.ownerDocument||s,d=HO(d),(v=Ar.get(v))&&Ay(d,v),x=x.createElement("link"),tn(x);var E=x;E._p=new Promise(function(P,z){E.onload=P,E.onerror=z}),vn(x,"link",d),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=fh.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ey=0;function GB(i,s){return i.stylesheets&&i.count===0&&hh(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var d=setTimeout(function(){if(i.stylesheets&&hh(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+s);0<i.imgBytes&&Ey===0&&(Ey=62500*TB());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&hh(i,i.stylesheets),i.unsuspend)){var x=i.unsuspend;i.unsuspend=null,x()}},(i.imgBytes>Ey?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function fh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var dh=null;function hh(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,dh=new Map,s.forEach(WB,i),dh=null,fh.call(i))}function WB(i,s){if(!(s.state.loading&4)){var u=dh.get(i);if(u)var d=u.get(null);else{u=new Map,dh.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var E=v[x];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(u.set(E.dataset.precedence,E),d=E)}d&&u.set(null,d)}v=s.instance,E=v.getAttribute("data-precedence"),x=u.get(E)||d,x===d&&u.set(null,v),u.set(E,v),this.count++,d=fh.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),x?x.parentNode.insertBefore(v,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),s.state.loading|=4}}var hc={$$typeof:N,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function XB(i,s,u,d,v,x,E,P,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=wg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wg(0),this.hiddenUpdates=wg(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function XO(i,s,u,d,v,x,E,P,z,H,ee,re){return i=new XB(i,s,u,E,z,H,ee,re,P),s=1,x===!0&&(s|=24),x=rr(3,null,null,s),i.current=x,x.stateNode=i,s=av(),s.refCount++,i.pooledCache=s,s.refCount++,x.memoizedState={element:d,isDehydrated:u,cache:s},uv(x),i}function QO(i){return i?(i=Qo,i):Qo}function ZO(i,s,u,d,v,x){v=QO(v),d.context===null?d.context=v:d.pendingContext=v,d=Da(s),d.payload={element:u},x=x===void 0?null:x,x!==null&&(d.callback=x),u=Ra(i,d,s),u!==null&&(Yn(u,i,s),Hu(u,i,s))}function JO(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function Ny(i,s){JO(i,s),(i=i.alternate)&&JO(i,s)}function eE(i){if(i.tag===13||i.tag===31){var s=_s(i,67108864);s!==null&&Yn(s,i,67108864),Ny(i,67108864)}}function tE(i){if(i.tag===13||i.tag===31){var s=lr();s=Sg(s);var u=_s(i,s);u!==null&&Yn(u,i,s),Ny(i,s)}}var mh=!0;function QB(i,s,u,d){var v=q.T;q.T=null;var x=W.p;try{W.p=2,Ty(i,s,u,d)}finally{W.p=x,q.T=v}}function ZB(i,s,u,d){var v=q.T;q.T=null;var x=W.p;try{W.p=8,Ty(i,s,u,d)}finally{W.p=x,q.T=v}}function Ty(i,s,u,d){if(mh){var v=Cy(d);if(v===null)my(i,s,d,ph,u),rE(i,d);else if(e8(v,i,s,u,d))d.stopPropagation();else if(rE(i,d),s&4&&-1<JB.indexOf(i)){for(;v!==null;){var x=Uo(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var E=Ts(x.pendingLanes);if(E!==0){var P=x;for(P.pendingLanes|=2,P.entangledLanes|=2;E;){var z=1<<31-tr(E);P.entanglements[1]|=z,E&=~z}ui(x),(Qe&6)===0&&(Qd=ue()+500,oc(0))}}break;case 31:case 13:P=_s(x,2),P!==null&&Yn(P,x,2),Jd(),Ny(x,2)}if(x=Cy(d),x===null&&my(i,s,d,ph,u),x===v)break;v=x}v!==null&&d.stopPropagation()}else my(i,s,d,null,u)}}function Cy(i){return i=Mg(i),ky(i)}var ph=null;function ky(i){if(ph=null,i=Bo(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 ph=i,null}function nE(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(Ne()){case De:return 2;case Ot:return 8;case Kt:case jn:return 32;case dn:return 268435456;default:return 32}default:return 32}}var My=!1,Ka=null,Ya=null,Ga=null,mc=new Map,pc=new Map,Wa=[],JB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rE(i,s){switch(i){case"focusin":case"focusout":Ka=null;break;case"dragenter":case"dragleave":Ya=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":mc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":pc.delete(s.pointerId)}}function gc(i,s,u,d,v,x){return i===null||i.nativeEvent!==x?(i={blockedOn:s,domEventName:u,eventSystemFlags:d,nativeEvent:x,targetContainers:[v]},s!==null&&(s=Uo(s),s!==null&&eE(s)),i):(i.eventSystemFlags|=d,s=i.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),i)}function e8(i,s,u,d,v){switch(s){case"focusin":return Ka=gc(Ka,i,s,u,d,v),!0;case"dragenter":return Ya=gc(Ya,i,s,u,d,v),!0;case"mouseover":return Ga=gc(Ga,i,s,u,d,v),!0;case"pointerover":var x=v.pointerId;return mc.set(x,gc(mc.get(x)||null,i,s,u,d,v)),!0;case"gotpointercapture":return x=v.pointerId,pc.set(x,gc(pc.get(x)||null,i,s,u,d,v)),!0}return!1}function iE(i){var s=Bo(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,yj(i.priority,function(){tE(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,yj(i.priority,function(){tE(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 gh(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=Cy(i.nativeEvent);if(u===null){u=i.nativeEvent;var d=new u.constructor(u.type,u);kg=d,u.target.dispatchEvent(d),kg=null}else return s=Uo(u),s!==null&&eE(s),i.blockedOn=u,!1;s.shift()}return!0}function aE(i,s,u){gh(i)&&u.delete(s)}function t8(){My=!1,Ka!==null&&gh(Ka)&&(Ka=null),Ya!==null&&gh(Ya)&&(Ya=null),Ga!==null&&gh(Ga)&&(Ga=null),mc.forEach(aE),pc.forEach(aE)}function vh(i,s){i.blockedOn===s&&(i.blockedOn=null,My||(My=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,t8)))}var yh=null;function sE(i){yh!==i&&(yh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){yh===i&&(yh=null);for(var s=0;s<i.length;s+=3){var u=i[s],d=i[s+1],v=i[s+2];if(typeof d!="function"){if(ky(d||u)===null)continue;break}var x=Uo(u);x!==null&&(i.splice(s,3),s-=3,Cv(x,{pending:!0,data:v,method:u.method,action:d},d,v))}}))}function wl(i){function s(z){return vh(z,i)}Ka!==null&&vh(Ka,i),Ya!==null&&vh(Ya,i),Ga!==null&&vh(Ga,i),mc.forEach(s),pc.forEach(s);for(var u=0;u<Wa.length;u++){var d=Wa[u];d.blockedOn===i&&(d.blockedOn=null)}for(;0<Wa.length&&(u=Wa[0],u.blockedOn===null);)iE(u),u.blockedOn===null&&Wa.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(d=0;d<u.length;d+=3){var v=u[d],x=u[d+1],E=v[$n]||null;if(typeof x=="function")E||sE(u);else if(E){var P=null;if(x&&x.hasAttribute("formAction")){if(v=x,E=x[$n]||null)P=E.formAction;else if(ky(v)!==null)continue}else P=E.action;typeof P=="function"?u[d+1]=P:(u.splice(d,3),d-=3),sE(u)}}}function oE(){function i(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(E){return v=E})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),d||setTimeout(u,20)}function u(){if(!d&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",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),v!==null&&(v(),v=null)}}}function Py(i){this._internalRoot=i}xh.prototype.render=Py.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,d=lr();ZO(u,d,i,s,null,null)},xh.prototype.unmount=Py.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;ZO(i.current,2,null,i,null,null),Jd(),s[Io]=null}};function xh(i){this._internalRoot=i}xh.prototype.unstable_scheduleHydration=function(i){if(i){var s=vj();i={blockedOn:null,target:i,priority:s};for(var u=0;u<Wa.length&&s!==0&&s<Wa[u].priority;u++);Wa.splice(u,0,i),u===0&&iE(i)}};var lE=t.version;if(lE!=="19.2.3")throw Error(r(527,lE,"19.2.3"));W.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 n8={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bh.isDisabled&&bh.supportsFiber)try{Ou=bh.inject(n8),er=bh}catch{}}return yc.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,d="",v=pA,x=gA,E=vA;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(E=s.onRecoverableError)),s=XO(i,1,!1,null,null,u,d,null,v,x,E,oE),i[Io]=s.current,hy(i),new Py(s)},yc.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var d=!1,v="",x=pA,E=gA,P=vA,z=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(P=u.onRecoverableError),u.formState!==void 0&&(z=u.formState)),s=XO(i,1,!0,s,u??null,d,v,z,x,E,P,oE),s.context=QO(null),u=s.current,d=lr(),d=Sg(d),v=Da(d),v.callback=null,Ra(u,v,d),u=d,s.current.lanes=u,Nu(s,u),ui(s),i[Io]=s.current,hy(i),new xh(s)},yc.version="19.2.3",yc}var kE;function W8(){if(kE)return Iy.exports;kE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Iy.exports=G8(),Iy.exports}var X8=W8();const Q8=Si(X8);/**
|
|
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 Z8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),J8=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ME=e=>{const t=J8(e);return t.charAt(0).toUpperCase()+t.slice(1)},D_=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),eU=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 tU={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 nU=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>w.createElement("svg",{ref:f,...tU,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:D_("lucide",a),...!o&&!eU(c)&&{"aria-hidden":"true"},...c},[...l.map(([h,m])=>w.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
65
|
-
* @license lucide-react v0.562.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const Oe=(e,t)=>{const n=w.forwardRef(({className:r,...a},o)=>w.createElement(nU,{ref:o,iconNode:t,className:D_(`lucide-${Z8(ME(e))}`,`lucide-${e}`,r),...a}));return n.displayName=ME(e),n};/**
|
|
70
|
-
* @license lucide-react v0.562.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const rU=[["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=Oe("activity",rU);/**
|
|
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 iU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Nf=Oe("arrow-right",iU);/**
|
|
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 aU=[["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"}]],dm=Oe("bell",aU);/**
|
|
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 sU=[["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"}]],oU=Oe("briefcase",sU);/**
|
|
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 lU=[["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"}]],lb=Oe("calendar",lU);/**
|
|
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 uU=[["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"}]],R_=Oe("chart-column",uU);/**
|
|
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 cU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],fU=Oe("chart-line",cU);/**
|
|
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 dU=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],hU=Oe("check-check",dU);/**
|
|
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 mU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],pU=Oe("chevron-down",mU);/**
|
|
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 gU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],z_=Oe("chevron-left",gU);/**
|
|
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 vU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vp=Oe("chevron-right",vU);/**
|
|
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 yU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Zr=Oe("circle-alert",yU);/**
|
|
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 xU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],L_=Oe("circle-check-big",xU);/**
|
|
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 bU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],H1=Oe("circle-check",bU);/**
|
|
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 wU=[["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"}]],SU=Oe("circle-question-mark",wU);/**
|
|
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 jU=[["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"}]],I_=Oe("circle-x",jU);/**
|
|
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 AU=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Jr=Oe("clock",AU);/**
|
|
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 OU=[["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"}]],EU=Oe("command",OU);/**
|
|
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 NU=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Xc=Oe("cpu",NU);/**
|
|
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 TU=[["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"}]],ub=Oe("database",TU);/**
|
|
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 CU=[["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"}]],kU=Oe("external-link",CU);/**
|
|
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 MU=[["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"}]],PU=Oe("eye-off",MU);/**
|
|
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 _U=[["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"}]],DU=Oe("eye",_U);/**
|
|
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 RU=[["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"}]],K1=Oe("funnel",RU);/**
|
|
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 zU=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],LU=Oe("gauge",zU);/**
|
|
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 IU=[["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"}]],cb=Oe("hard-drive",IU);/**
|
|
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 BU=[["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"}]],B_=Oe("hourglass",BU);/**
|
|
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 UU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ic=Oe("info",UU);/**
|
|
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 $U=[["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"}]],qU=Oe("laptop",$U);/**
|
|
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 VU=[["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"}]],U_=Oe("layout-dashboard",VU);/**
|
|
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 FU=[["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"}]],Qc=Oe("list-tree",FU);/**
|
|
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 HU=[["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"}]],KU=Oe("lock",HU);/**
|
|
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 YU=[["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"}]],$_=Oe("log-out",YU);/**
|
|
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 GU=[["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=Oe("memory-stick",GU);/**
|
|
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 XU=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],PE=Oe("monitor",XU);/**
|
|
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 QU=[["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"}]],fb=Oe("moon",QU);/**
|
|
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 ZU=[["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"}]],JU=Oe("palette",ZU);/**
|
|
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 e9=[["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"}]],t9=Oe("pause",e9);/**
|
|
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 n9=[["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"}]],q_=Oe("play",n9);/**
|
|
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 r9=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_E=Oe("plus",r9);/**
|
|
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 i9=[["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"}]],ea=Oe("refresh-ccw",i9);/**
|
|
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 a9=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],qy=Oe("rotate-cw",a9);/**
|
|
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 s9=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],uu=Oe("search",s9);/**
|
|
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 o9=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yp=Oe("server",o9);/**
|
|
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 l9=[["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"}]],Y1=Oe("settings",l9);/**
|
|
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 u9=[["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"}]],c9=Oe("shield-check",u9);/**
|
|
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 f9=[["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"}]],V_=Oe("shield",f9);/**
|
|
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 d9=[["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"}]],db=Oe("sun",d9);/**
|
|
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 h9=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],F_=Oe("terminal",h9);/**
|
|
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 m9=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],jo=Oe("trash-2",m9);/**
|
|
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 p9=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],DE=Oe("trending-up",p9);/**
|
|
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 g9=[["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"}]],v9=Oe("triangle-alert",g9);/**
|
|
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 y9=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],RE=Oe("user",y9);/**
|
|
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 x9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xp=Oe("x",x9);/**
|
|
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 b9=[["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"}]],H_=Oe("zap",b9);/**
|
|
345
|
-
* react-router v7.12.0
|
|
346
|
-
*
|
|
347
|
-
* Copyright (c) Remix Software Inc.
|
|
348
|
-
*
|
|
349
|
-
* This source code is licensed under the MIT license found in the
|
|
350
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
351
|
-
*
|
|
352
|
-
* @license MIT
|
|
353
|
-
*/var zE="popstate";function w9(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return hb("",{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:Zc(a)}return j9(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ti(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S9(){return Math.random().toString(36).substring(2,10)}function LE(e,t){return{usr:e.state,key:e.key,idx:t}}function hb(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?cu(t):t,state:n,key:t&&t.key||r||S9()}}function Zc({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 cu(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 j9(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 A=m(),O=A==null?null:A-h;h=A,f&&f({action:c,location:j.location,delta:O})}function y(A,O){c="PUSH";let T=hb(j.location,A,O);h=m()+1;let N=LE(T,h),C=j.createHref(T);try{l.pushState(N,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign(C)}o&&f&&f({action:c,location:j.location,delta:1})}function b(A,O){c="REPLACE";let T=hb(j.location,A,O);h=m();let N=LE(T,h),C=j.createHref(T);l.replaceState(N,"",C),o&&f&&f({action:c,location:j.location,delta:0})}function S(A){return A9(A)}let j={get action(){return c},get location(){return e(a,l)},listen(A){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(zE,p),f=A,()=>{a.removeEventListener(zE,p),f=null}},createHref(A){return t(a,A)},createURL:S,encodeLocation(A){let O=S(A);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:b,go(A){return l.go(A)}};return j}function A9(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),St(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Zc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function K_(e,t,n="/"){return O9(e,t,n,!1)}function O9(e,t,n,r){let a=typeof t=="string"?cu(t):t,o=aa(a.pathname||"/",n);if(o==null)return null;let l=Y_(e);E9(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=L9(o);c=R9(l[f],h,r)}return c}function Y_(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;St(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=ta([r,m.relativePath]),y=n.concat(m);l.children&&l.children.length>0&&(St(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Y_(l.children,t,y,p,f)),!(l.path==null&&!l.index)&&t.push({path:p,score:_9(p,l.index),routesMeta:y})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of G_(l.path))o(l,c,!0,h)}),t}function G_(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=G_(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 E9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var N9=/^:[\w-]+$/,T9=3,C9=2,k9=1,M9=10,P9=-2,IE=e=>e==="*";function _9(e,t){let n=e.split("/"),r=n.length;return n.some(IE)&&(r+=P9),t&&(r+=C9),n.filter(a=>!IE(a)).reduce((a,o)=>a+(N9.test(o)?T9:o===""?k9:M9),r)}function D9(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 R9(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=hm({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),y=f.route;if(!p&&h&&n&&!r[r.length-1].route.index&&(p=hm({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),l.push({params:a,pathname:ta([o,p.pathname]),pathnameBase:$9(ta([o,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(o=ta([o,p.pathnameBase]))}return l}function hm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z9(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},y)=>{if(m==="*"){let S=c[y]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=c[y];return p&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function z9(e,t=!1,n=!0){ti(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 L9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ti(!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 aa(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 W_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I9=e=>W_.test(e);function B9(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?cu(e):e,o;if(n)if(I9(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),ti(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?o=BE(n.substring(1),"/"):o=BE(n,t)}else o=t;return{pathname:o,search:q9(r),hash:V9(a)}}function BE(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 Vy(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function U9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function X_(e){let t=U9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Q_(e,t,n,r=!1){let a;typeof e=="string"?a=cu(e):(a={...e},St(!a.pathname||!a.pathname.includes("?"),Vy("?","pathname","search",a)),St(!a.pathname||!a.pathname.includes("#"),Vy("#","pathname","hash",a)),St(!a.search||!a.search.includes("#"),Vy("#","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 y=l.split("/");for(;y[0]==="..";)y.shift(),p-=1;a.pathname=y.join("/")}c=p>=0?t[p]:"/"}let f=B9(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var ta=e=>e.join("/").replace(/\/\/+/g,"/"),$9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,V9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,F9=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 H9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function K9(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Z_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function J_(e,t){let n=e;if(typeof n!="string"||!W_.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Z_)try{let o=new URL(window.location.href),l=n.startsWith("//")?new URL(o.protocol+n):new URL(n),c=aa(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{ti(!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 eD=["POST","PUT","PATCH","DELETE"];new Set(eD);var Y9=["GET",...eD];new Set(Y9);var fu=w.createContext(null);fu.displayName="DataRouter";var bp=w.createContext(null);bp.displayName="DataRouterState";var G9=w.createContext(!1),tD=w.createContext({isTransitioning:!1});tD.displayName="ViewTransition";var W9=w.createContext(new Map);W9.displayName="Fetchers";var X9=w.createContext(null);X9.displayName="Await";var Br=w.createContext(null);Br.displayName="Navigation";var Tf=w.createContext(null);Tf.displayName="Location";var pa=w.createContext({outlet:null,matches:[],isDataRoute:!1});pa.displayName="Route";var G1=w.createContext(null);G1.displayName="RouteError";var nD="REACT_ROUTER_ERROR",Q9="REDIRECT",Z9="ROUTE_ERROR_RESPONSE";function J9(e){if(e.startsWith(`${nD}:${Q9}:{`))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 e$(e){if(e.startsWith(`${nD}:${Z9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new F9(t.status,t.statusText,t.data)}catch{}}function t$(e,{relative:t}={}){St(Cf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Br),{hash:a,pathname:o,search:l}=kf(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ta([n,o])),r.createHref({pathname:c,search:l,hash:a})}function Cf(){return w.useContext(Tf)!=null}function As(){return St(Cf(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Tf).location}var rD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iD(e){w.useContext(Br).static||w.useLayoutEffect(e)}function W1(){let{isDataRoute:e}=w.useContext(pa);return e?m$():n$()}function n$(){St(Cf(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(fu),{basename:t,navigator:n}=w.useContext(Br),{matches:r}=w.useContext(pa),{pathname:a}=As(),o=JSON.stringify(X_(r)),l=w.useRef(!1);return iD(()=>{l.current=!0}),w.useCallback((f,h={})=>{if(ti(l.current,rD),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Q_(f,JSON.parse(o),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ta([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,a,e])}w.createContext(null);function kf(e,{relative:t}={}){let{matches:n}=w.useContext(pa),{pathname:r}=As(),a=JSON.stringify(X_(n));return w.useMemo(()=>Q_(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function r$(e,t){return aD(e,t)}function aD(e,t,n,r,a){var T;St(Cf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(Br),{matches:l}=w.useContext(pa),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let N=p&&p.path||"";oD(h,!p||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
354
|
-
|
|
355
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=As(),b;if(t){let N=typeof t=="string"?cu(t):t;St(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=y;let S=b.pathname||"/",j=S;if(m!=="/"){let N=m.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=K_(e,{pathname:j});ti(p||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ti(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=l$(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:ta([m,o.encodeLocation?o.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ta([m,o.encodeLocation?o.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),l,n,r,a);return t&&O?w.createElement(Tf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},O):O}function i$(){let e=h$(),t=H9(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=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:o},"ErrorBoundary")," or"," ",w.createElement("code",{style:o},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:a},n):null,l)}var a$=w.createElement(i$,null),sD=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=e$(e.digest);n&&(e=n)}let t=e!==void 0?w.createElement(pa.Provider,{value:this.props.routeContext},w.createElement(G1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(s$,{error:e},t):t}};sD.contextType=G9;var Fy=new WeakMap;function s$({children:e,error:t}){let{basename:n}=w.useContext(Br);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=J9(t.digest);if(r){let a=Fy.get(t);if(a)throw a;let o=J_(r.location,n);if(Z_&&!Fy.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Fy.set(t,l),l}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function o$({routeContext:e,match:t,children:n}){let r=w.useContext(fu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(pa.Provider,{value:e},n)}function l$(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);St(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let c=!1,f=-1;if(n)for(let m=0;m<o.length;m++){let p=o[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=m),p.route.id){let{loaderData:y,errors:b}=n,S=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||S){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}let h=n&&r?(m,p)=>{var y,b;r(m,{location:n.location,params:((b=(y=n.matches)==null?void 0:y[0])==null?void 0:b.params)??{},unstable_pattern:K9(n.matches),errorInfo:p})}:void 0;return o.reduceRight((m,p,y)=>{let b,S=!1,j=null,A=null;n&&(b=l&&p.route.id?l[p.route.id]:void 0,j=p.route.errorElement||a$,c&&(f<0&&y===0?(oD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,A=null):f===y&&(S=!0,A=p.route.hydrateFallbackElement||null)));let O=t.concat(o.slice(0,y+1)),T=()=>{let N;return b?N=j:S?N=A:p.route.Component?N=w.createElement(p.route.Component,null):p.route.element?N=p.route.element:N=m,w.createElement(o$,{match:p,routeContext:{outlet:m,matches:O,isDataRoute:n!=null},children:N})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?w.createElement(sD,{location:n.location,revalidation:n.revalidation,component:j,error:b,children:T(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):T()},null)}function X1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function u$(e){let t=w.useContext(fu);return St(t,X1(e)),t}function c$(e){let t=w.useContext(bp);return St(t,X1(e)),t}function f$(e){let t=w.useContext(pa);return St(t,X1(e)),t}function Q1(e){let t=f$(e),n=t.matches[t.matches.length-1];return St(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function d$(){return Q1("useRouteId")}function h$(){var r;let e=w.useContext(G1),t=c$("useRouteError"),n=Q1("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function m$(){let{router:e}=u$("useNavigate"),t=Q1("useNavigate"),n=w.useRef(!1);return iD(()=>{n.current=!0}),w.useCallback(async(a,o={})=>{ti(n.current,rD),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var UE={};function oD(e,t,n){!t&&!UE[e]&&(UE[e]=!0,ti(!1,n))}w.memo(p$);function p$({routes:e,future:t,state:n,onError:r}){return aD(e,void 0,n,r,t)}function es(e){St(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function g$({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){St(!Cf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=w.useMemo(()=>({basename:c,navigator:a,static:o,unstable_useTransitions:l,future:{}}),[c,a,o,l]);typeof n=="string"&&(n=cu(n));let{pathname:h="/",search:m="",hash:p="",state:y=null,key:b="default"}=n,S=w.useMemo(()=>{let j=aa(h,c);return j==null?null:{location:{pathname:j,search:m,hash:p,state:y,key:b},navigationType:r}},[c,h,m,p,y,b,r]);return ti(S!=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.`),S==null?null:w.createElement(Br.Provider,{value:f},w.createElement(Tf.Provider,{children:t,value:S}))}function v$({children:e,location:t}){return r$(mb(e),t)}function mb(e,t=[]){let n=[];return w.Children.forEach(e,(r,a)=>{if(!w.isValidElement(r))return;let o=[...t,a];if(r.type===w.Fragment){n.push.apply(n,mb(r.props.children,o));return}St(r.type===es,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=mb(r.props.children,o)),n.push(l)}),n}var Xh="get",Qh="application/x-www-form-urlencoded";function wp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function y$(e){return wp(e)&&e.tagName.toLowerCase()==="button"}function x$(e){return wp(e)&&e.tagName.toLowerCase()==="form"}function b$(e){return wp(e)&&e.tagName.toLowerCase()==="input"}function w$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function S$(e,t){return e.button===0&&(!t||t==="_self")&&!w$(e)}var jh=null;function j$(){if(jh===null)try{new FormData(document.createElement("form"),0),jh=!1}catch{jh=!0}return jh}var A$=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hy(e){return e!=null&&!A$.has(e)?(ti(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qh}"`),null):e}function O$(e,t){let n,r,a,o,l;if(x$(e)){let c=e.getAttribute("action");r=c?aa(c,t):null,n=e.getAttribute("method")||Xh,a=Hy(e.getAttribute("enctype"))||Qh,o=new FormData(e)}else if(y$(e)||b$(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?aa(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xh,a=Hy(e.getAttribute("formenctype"))||Hy(c.getAttribute("enctype"))||Qh,o=new FormData(c,e),!j$()){let{name:h,type:m,value:p}=e;if(m==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,p)}}else{if(wp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xh,r=null,a=Qh,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 Z1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function E$(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&&aa(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function N$(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 C$(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await N$(o,n);return l.links?l.links():[]}return[]}));return _$(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 $E(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 y=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 y=="boolean")return y}return!0}):[]}function k$(e,t,{includeHydrateFallback:n}={}){return M$(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 M$(e){return[...new Set(e)]}function P$(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _$(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(P$(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function lD(){let e=w.useContext(fu);return Z1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function D$(){let e=w.useContext(bp);return Z1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var J1=w.createContext(void 0);J1.displayName="FrameworkContext";function uD(){let e=w.useContext(J1);return Z1(e,"You must render this element inside a <HydratedRouter> element"),e}function R$(e,t){let n=w.useContext(J1),[r,a]=w.useState(!1),[o,l]=w.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:p}=t,y=w.useRef(null);w.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let j=O=>{O.forEach(T=>{l(T.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return y.current&&A.observe(y.current),()=>{A.disconnect()}}},[e]),w.useEffect(()=>{if(r){let j=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(j)}}},[r]);let b=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:xc(c,b),onBlur:xc(f,S),onMouseEnter:xc(h,b),onMouseLeave:xc(m,S),onTouchStart:xc(p,b)}]:[!1,y,{}]}function xc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function z$({page:e,...t}){let{router:n}=lD(),r=w.useMemo(()=>K_(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(I$,{page:e,matches:r,...t}):null}function L$(e){let{manifest:t,routeModules:n}=uD(),[r,a]=w.useState([]);return w.useEffect(()=>{let o=!1;return C$(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function I$({page:e,matches:t,...n}){let r=As(),{future:a,manifest:o,routeModules:l}=uD(),{basename:c}=lD(),{loaderData:f,matches:h}=D$(),m=w.useMemo(()=>$E(e,t,h,o,r,"data"),[e,t,h,o,r]),p=w.useMemo(()=>$E(e,t,h,o,r,"assets"),[e,t,h,o,r]),y=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let j=new Set,A=!1;if(t.forEach(T=>{var C;let N=o.routes[T.route.id];!N||!N.hasLoader||(!m.some(k=>k.route.id===T.route.id)&&T.route.id in f&&((C=l[T.route.id])!=null&&C.shouldRevalidate)||N.hasClientLoader?A=!0:j.add(T.route.id))}),j.size===0)return[];let O=E$(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return A&&j.size>0&&O.searchParams.set("_routes",t.filter(T=>j.has(T.route.id)).map(T=>T.route.id).join(",")),[O.pathname+O.search]},[c,a.unstable_trailingSlashAwareDataRequests,f,r,o,m,t,e,l]),b=w.useMemo(()=>k$(p,o),[p,o]),S=L$(p);return w.createElement(w.Fragment,null,y.map(j=>w.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...n})),b.map(j=>w.createElement("link",{key:j,rel:"modulepreload",href:j,...n})),S.map(({key:j,link:A})=>w.createElement("link",{key:j,nonce:n.nonce,...A})))}function B$(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var U$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{U$&&(window.__reactRouterVersion="7.12.0")}catch{}function $$({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=w.useRef();a.current==null&&(a.current=w9({window:r,v5Compat:!0}));let o=a.current,[l,c]=w.useState({action:o.action,location:o.location}),f=w.useCallback(h=>{n===!1?c(h):w.startTransition(()=>c(h))},[n]);return w.useLayoutEffect(()=>o.listen(f),[o,f]),w.createElement(g$,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var cD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fD=w.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:y,...b},S){let{basename:j,unstable_useTransitions:A}=w.useContext(Br),O=typeof h=="string"&&cD.test(h),T=J_(h,j);h=T.to;let N=t$(h,{relative:a}),[C,k,D]=R$(r,b),M=F$(h,{replace:l,state:c,target:f,preventScrollReset:m,relative:a,viewTransition:p,unstable_defaultShouldRevalidate:y,unstable_useTransitions:A});function _(K){t&&t(K),K.defaultPrevented||M(K)}let B=w.createElement("a",{...b,...D,href:T.absoluteURL||N,onClick:T.isExternal||o?t:_,ref:B$(S,k),target:f,"data-discover":!O&&n==="render"?"true":void 0});return C&&!O?w.createElement(w.Fragment,null,B,w.createElement(z$,{page:N})):B});fD.displayName="Link";var dD=w.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=kf(l,{relative:h.relative}),y=As(),b=w.useContext(bp),{navigator:S,basename:j}=w.useContext(Br),A=b!=null&&W$(p)&&c===!0,O=S.encodeLocation?S.encodeLocation(p).pathname:p.pathname,T=y.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(T=T.toLowerCase(),N=N?N.toLowerCase():null,O=O.toLowerCase()),N&&j&&(N=aa(N,j)||N);const C=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let k=T===O||!a&&T.startsWith(O)&&T.charAt(C)==="/",D=N!=null&&(N===O||!a&&N.startsWith(O)&&N.charAt(O.length)==="/"),M={isActive:k,isPending:D,isTransitioning:A},_=k?t:void 0,B;typeof r=="function"?B=r(M):B=[r,k?"active":null,D?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(M):o;return w.createElement(fD,{...h,"aria-current":_,className:B,ref:m,style:K,to:l,viewTransition:c},typeof f=="function"?f(M):f)});dD.displayName="NavLink";var q$=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=Xh,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:y,...b},S)=>{let{unstable_useTransitions:j}=w.useContext(Br),A=Y$(),O=G$(c,{relative:h}),T=l.toLowerCase()==="get"?"get":"post",N=typeof c=="string"&&cD.test(c),C=k=>{if(f&&f(k),k.defaultPrevented)return;k.preventDefault();let D=k.nativeEvent.submitter,M=(D==null?void 0:D.getAttribute("formmethod"))||l,_=()=>A(D||k.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:o,relative:h,preventScrollReset:m,viewTransition:p,unstable_defaultShouldRevalidate:y});j&&n!==!1?w.startTransition(()=>_()):_()};return w.createElement("form",{ref:S,method:T,action:O,onSubmit:r?f:C,...b,"data-discover":!N&&e==="render"?"true":void 0})});q$.displayName="Form";function V$(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hD(e){let t=w.useContext(fu);return St(t,V$(e)),t}function F$(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=W1(),m=As(),p=kf(e,{relative:o});return w.useCallback(y=>{if(S$(y,t)){y.preventDefault();let b=n!==void 0?n:Zc(m)===Zc(p),S=()=>h(e,{replace:b,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});f?w.startTransition(()=>S()):S()}},[m,h,p,n,r,t,e,a,o,l,c,f])}var H$=0,K$=()=>`__${String(++H$)}__`;function Y$(){let{router:e}=hD("useSubmit"),{basename:t}=w.useContext(Br),n=d$(),r=e.fetch,a=e.navigate;return w.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:p}=O$(o,t);if(l.navigate===!1){let y=l.fetcherKey||K$();await r(y,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 G$(e,{relative:t}={}){let{basename:n}=w.useContext(Br),r=w.useContext(pa);St(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...kf(e||".",{relative:t})},l=As();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:ta([n,o.pathname])),Zc(o)}function W$(e,{relative:t}={}){let n=w.useContext(tD);St(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hD("useViewTransitionState"),a=kf(e,{relative:t});if(!n.isTransitioning)return!1;let o=aa(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=aa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hm(a.pathname,l)!=null||hm(a.pathname,o)!=null}var Mf=__();const mD=w.createContext(null);function Sp(){const e=w.useContext(mD);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function X$({children:e}){const[t,n]=w.useState(!1),[r,a]=w.useState(!1),[o,l]=w.useState(!0),c=w.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 y=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:m})})).json();return y.success?(n(!0),{success:!0}):{success:!1,error:y.error||"Login failed"}}catch{return{success:!1,error:"Network error"}}},h=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch(m){console.error("Logout error:",m)}finally{n(!1)}};return w.useEffect(()=>{c()},[c]),g.jsx(mD.Provider,{value:{isAuthenticated:t,isAuthEnabled:r,isLoading:o,login:f,logout:h,checkAuth:c},children:e})}const pD=w.createContext(null);function ew(){const e=w.useContext(pD);if(!e)throw new Error("useNotifications must be used within a NotificationProvider");return e}function Q$({children:e}){const[t,n]=w.useState([]),r=t.filter(h=>!h.read).length,a=w.useCallback(h=>{const m={...h,id:crypto.randomUUID(),timestamp:Date.now(),read:!1};n(p=>[m,...p].slice(0,50))},[]),o=w.useCallback(h=>{n(m=>m.map(p=>p.id===h?{...p,read:!0}:p))},[]),l=w.useCallback(()=>{n(h=>h.map(m=>({...m,read:!0})))},[]),c=w.useCallback(()=>{n([])},[]),f=w.useCallback(h=>{n(m=>m.filter(p=>p.id!==h))},[]);return w.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(pD.Provider,{value:{notifications:t,unreadCount:r,addNotification:a,markAsRead:o,markAllAsRead:l,clearAll:c,removeNotification:f},children:e})}const tw=w.createContext({});function nw(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const gD=typeof window<"u",vD=gD?w.useLayoutEffect:w.useEffect,jp=w.createContext(null);function rw(e,t){e.indexOf(t)===-1&&e.push(t)}function Ap(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const yi=(e,t,n)=>n>t?t:n<e?e:n;let iw=()=>{};const sa={},yD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xD(e){return typeof e=="object"&&e!==null}const bD=e=>/^0[^.\s]+$/u.test(e);function aw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dr=e=>e,Z$=(e,t)=>n=>t(e(n)),Pf=(...e)=>e.reduce(Z$),Ql=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class sw{constructor(){this.subscriptions=[]}add(t){return rw(this.subscriptions,t),()=>Ap(this.subscriptions,t)}notify(t,n,r){const 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 pi=e=>e*1e3,Pr=e=>e/1e3;function wD(e,t){return t?e*(1e3/t):0}const J$=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},SD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eq=1e-7,tq=12;function nq(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=SD(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>eq&&++c<tq);return l}function _f(e,t,n,r){if(e===t&&n===r)return Dr;const a=o=>nq(o,0,1,e,n);return o=>o===0||o===1?o:SD(a(o),t,r)}const jD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AD=e=>t=>1-e(1-t),OD=_f(.33,1.53,.69,.99),ow=AD(OD),ED=jD(ow),ND=e=>(e*=2)<1?.5*ow(e):.5*(2-Math.pow(2,-10*(e-1))),lw=e=>1-Math.sin(Math.acos(e)),TD=AD(lw),CD=jD(lw),rq=_f(.42,0,1,1),iq=_f(0,0,.58,1),kD=_f(.42,0,.58,1),MD=e=>Array.isArray(e)&&typeof e[0]!="number";function PD(e,t){return MD(e)?e[J$(0,e.length,t)]:e}const _D=e=>Array.isArray(e)&&typeof e[0]=="number",aq={linear:Dr,easeIn:rq,easeInOut:kD,easeOut:iq,circIn:lw,circInOut:CD,circOut:TD,backIn:ow,backInOut:ED,backOut:OD,anticipate:ND},sq=e=>typeof e=="string",qE=e=>{if(_D(e)){iw(e.length===4);const[t,n,r,a]=e;return _f(t,n,r,a)}else if(sq(e))return aq[e];return e},Ah=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oq(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,y=!1)=>{const S=y&&a?n:r;return p&&l.add(m),S.has(m)||S.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 lq=40;function DD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Ah.reduce((N,C)=>(N[C]=oq(o),N),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:p,preRender:y,render:b,postRender:S}=l,j=()=>{const N=sa.useManualTiming?a.timestamp:performance.now();n=!1,sa.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(N-a.timestamp,lq),1)),a.timestamp=N,a.isProcessing=!0,c.process(a),f.process(a),h.process(a),m.process(a),p.process(a),y.process(a),b.process(a),S.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(j))},A=()=>{n=!0,r=!0,a.isProcessing||e(j)};return{schedule:Ah.reduce((N,C)=>{const k=l[C];return N[C]=(D,M=!1,_=!1)=>(n||A(),k.schedule(D,M,_)),N},{}),cancel:N=>{for(let C=0;C<Ah.length;C++)l[Ah[C]].cancel(N)},state:a,steps:l}}const{schedule:gt,cancel:ys,state:xn,steps:Ky}=DD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dr,!0);let Zh;function uq(){Zh=void 0}const Dn={now:()=>(Zh===void 0&&Dn.set(xn.isProcessing||sa.useManualTiming?xn.timestamp:performance.now()),Zh),set:e=>{Zh=e,queueMicrotask(uq)}},RD=e=>t=>typeof t=="string"&&t.startsWith(e),zD=RD("--"),cq=RD("var(--"),uw=e=>cq(e)?fq.test(e.split("/*")[0].trim()):!1,fq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function VE(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const du={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jc={...du,transform:e=>yi(0,1,e)},Oh={...du,default:1},Bc=e=>Math.round(e*1e5)/1e5,cw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dq(e){return e==null}const hq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fw=(e,t)=>n=>!!(typeof n=="string"&&hq.test(n)&&n.startsWith(e)||t&&!dq(n)&&Object.prototype.hasOwnProperty.call(n,t)),LD=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,c]=r.match(cw);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},mq=e=>yi(0,255,e),Yy={...du,transform:e=>Math.round(mq(e))},eo={test:fw("rgb","red"),parse:LD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yy.transform(e)+", "+Yy.transform(t)+", "+Yy.transform(n)+", "+Bc(Jc.transform(r))+")"};function pq(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 pb={test:fw("#"),parse:pq,transform:eo.transform},Df=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ts=Df("deg"),gi=Df("%"),pe=Df("px"),gq=Df("vh"),vq=Df("vw"),FE={...gi,parse:e=>gi.parse(e)/100,transform:e=>gi.transform(e*100)},Cl={test:fw("hsl","hue"),parse:LD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gi.transform(Bc(t))+", "+gi.transform(Bc(n))+", "+Bc(Jc.transform(r))+")"},qt={test:e=>eo.test(e)||pb.test(e)||Cl.test(e),parse:e=>eo.test(e)?eo.parse(e):Cl.test(e)?Cl.parse(e):pb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?eo.transform(e):Cl.transform(e),getAnimatableNone:e=>{const t=qt.parse(e);return t.alpha=0,qt.transform(t)}},yq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cw))==null?void 0:t.length)||0)+(((n=e.match(yq))==null?void 0:n.length)||0)>0}const ID="number",BD="color",bq="var",wq="var(",HE="${}",Sq=/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 ef(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(Sq,f=>(qt.test(f)?(r.color.push(o),a.push(BD),n.push(qt.parse(f))):f.startsWith(wq)?(r.var.push(o),a.push(bq),n.push(f)):(r.number.push(o),a.push(ID),n.push(parseFloat(f))),++o,HE)).split(HE);return{values:n,split:c,indexes:r,types:a}}function UD(e){return ef(e).values}function $D(e){const{split:t,types:n}=ef(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===ID?o+=Bc(a[l]):c===BD?o+=qt.transform(a[l]):o+=a[l]}return o}}const jq=e=>typeof e=="number"?0:qt.test(e)?qt.getAnimatableNone(e):e;function Aq(e){const t=UD(e);return $D(e)(t.map(jq))}const xs={test:xq,parse:UD,createTransformer:$D,getAnimatableNone:Aq};function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Oq({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=Gy(f,c,e+1/3),o=Gy(f,c,e),l=Gy(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function mm(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Wy=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},Eq=[pb,eo,Cl],Nq=e=>Eq.find(t=>t.test(e));function KE(e){const t=Nq(e);if(!t)return!1;let n=t.parse(e);return t===Cl&&(n=Oq(n)),n}const YE=(e,t)=>{const n=KE(e),r=KE(t);if(!n||!r)return mm(e,t);const a={...n};return o=>(a.red=Wy(n.red,r.red,o),a.green=Wy(n.green,r.green,o),a.blue=Wy(n.blue,r.blue,o),a.alpha=xt(n.alpha,r.alpha,o),eo.transform(a))},gb=new Set(["none","hidden"]);function Tq(e,t){return gb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cq(e,t){return n=>xt(e,t,n)}function dw(e){return typeof e=="number"?Cq:typeof e=="string"?uw(e)?mm:qt.test(e)?YE:Pq:Array.isArray(e)?qD:typeof e=="object"?qt.test(e)?YE:kq:mm}function qD(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>dw(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function kq(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=dw(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function Mq(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 Pq=(e,t)=>{const n=xs.createTransformer(t),r=ef(e),a=ef(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?gb.has(e)&&!a.values.length||gb.has(t)&&!r.values.length?Tq(e,t):Pf(qD(Mq(r,a),a.values),n):mm(e,t)};function VD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):dw(e)(e,t)}const _q=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>gt.update(t,n),stop:()=>ys(t),now:()=>xn.isProcessing?xn.timestamp:Dn.now()}},FD=(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)})`},pm=2e4;function hw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pm;)t+=n,r=e.next(t);return t>=pm?1/0:t}function HD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(hw(r),pm);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:Pr(a)}}const Dq=5;function KD(e,t,n){const r=Math.max(t-Dq,0);return wD(n-e(r),t-r)}const Ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xy=.001;function Rq({duration:e=Ct.duration,bounce:t=Ct.bounce,velocity:n=Ct.velocity,mass:r=Ct.mass}){let a,o,l=1-t;l=yi(Ct.minDamping,Ct.maxDamping,l),e=yi(Ct.minDuration,Ct.maxDuration,Pr(e)),l<1?(a=h=>{const m=h*l,p=m*e,y=m-n,b=vb(h,l),S=Math.exp(-p);return Xy-y/b*S},o=h=>{const p=h*l*e,y=p*n+n,b=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-p),j=vb(Math.pow(h,2),l);return(-a(h)+Xy>0?-1:1)*((y-b)*S)/j}):(a=h=>{const m=Math.exp(-h*e),p=(h-n)*e+1;return-Xy+m*p},o=h=>{const m=Math.exp(-h*e),p=(n-h)*(e*e);return m*p});const c=5/e,f=Lq(a,o,c);if(e=pi(e),isNaN(f))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const zq=12;function Lq(e,t,n){let r=n;for(let a=1;a<zq;a++)r=r-e(r)/t(r);return r}function vb(e,t){return e*Math.sqrt(1-t*t)}const Iq=["duration","bounce"],Bq=["stiffness","damping","mass"];function GE(e,t){return t.some(n=>e[n]!==void 0)}function Uq(e){let t={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...e};if(!GE(e,Bq)&&GE(e,Iq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*yi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ct.mass,stiffness:a,damping:o}}else{const n=Rq(e);t={...t,...n,mass:Ct.mass},t.isResolvedFromDuration=!0}return t}function tf(e=Ct.visualDuration,t=Ct.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:y,isResolvedFromDuration:b}=Uq({...n,velocity:-Pr(n.velocity||0)}),S=y||0,j=h/(2*Math.sqrt(f*m)),A=l-o,O=Pr(Math.sqrt(f/m)),T=Math.abs(A)<5;r||(r=T?Ct.restSpeed.granular:Ct.restSpeed.default),a||(a=T?Ct.restDelta.granular:Ct.restDelta.default);let N;if(j<1){const k=vb(O,j);N=D=>{const M=Math.exp(-j*O*D);return l-M*((S+j*O*A)/k*Math.sin(k*D)+A*Math.cos(k*D))}}else if(j===1)N=k=>l-Math.exp(-O*k)*(A+(S+O*A)*k);else{const k=O*Math.sqrt(j*j-1);N=D=>{const M=Math.exp(-j*O*D),_=Math.min(k*D,300);return l-M*((S+j*O*A)*Math.sinh(_)+k*A*Math.cosh(_))/k}}const C={calculatedDuration:b&&p||null,next:k=>{const D=N(k);if(b)c.done=k>=p;else{let M=k===0?S:0;j<1&&(M=k===0?pi(S):KD(N,k,D));const _=Math.abs(M)<=r,B=Math.abs(l-D)<=a;c.done=_&&B}return c.value=c.done?l:D,c},toString:()=>{const k=Math.min(hw(C),pm),D=FD(M=>C.next(k*M).value,k,30);return k+"ms "+D},toTransition:()=>{}};return C}tf.applyToOptions=e=>{const t=HD(e,100,tf);return e.ease=t.ease,e.duration=pi(t.duration),e.type="keyframes",e};function yb({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],y={done:!1,value:p},b=_=>c!==void 0&&_<c||f!==void 0&&_>f,S=_=>c===void 0?f:f===void 0||Math.abs(c-_)<Math.abs(f-_)?c:f;let j=n*t;const A=p+j,O=l===void 0?A:l(A);O!==A&&(j=O-p);const T=_=>-j*Math.exp(-_/r),N=_=>O+T(_),C=_=>{const B=T(_),K=N(_);y.done=Math.abs(B)<=h,y.value=y.done?O:K};let k,D;const M=_=>{b(y.value)&&(k=_,D=tf({keyframes:[y.value,S(y.value)],velocity:KD(N,_,y.value),damping:a,stiffness:o,restDelta:h,restSpeed:m}))};return M(0),{calculatedDuration:null,next:_=>{let B=!1;return!D&&k===void 0&&(B=!0,C(_),M(_)),k!==void 0&&_>=k?D.next(_-k):(!B&&C(_),y)}}}function $q(e,t,n){const r=[],a=n||sa.mix||VD,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]||Dr:t;c=Pf(f,c)}r.push(c)}return r}function qq(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(iw(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=$q(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 y=Ql(e[p],e[p+1],m);return c[p](y)};return n?m=>h(yi(e[0],e[o-1],m)):h}function YD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ql(0,t,r);e.push(xt(n,1,a))}}function GD(e){const t=[0];return YD(t,e.length-1),t}function Vq(e,t){return e.map(n=>n*t)}function Fq(e,t){return e.map(()=>t||kD).splice(0,e.length-1)}function Uc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=MD(r)?r.map(qE):qE(r),o={done:!1,value:t[0]},l=Vq(n&&n.length===t.length?n:GD(t),e),c=qq(l,t,{ease:Array.isArray(a)?a:Fq(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Hq=e=>e!==null;function mw(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(Hq),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const Kq={decay:yb,inertia:yb,tween:Uc,keyframes:Uc,spring:tf};function WD(e){typeof e.type=="string"&&(e.type=Kq[e.type])}class pw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Yq=e=>e/100;class gw extends pw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==Dn.now()&&this.tick(Dn.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;WD(t);const{type:n=Uc,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Uc;f!==Uc&&typeof c[0]!="number"&&(this.mixKeyframes=Pf(Yq,VD(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=hw(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+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:y,repeatDelay:b,type:S,onUpdate:j,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?O<0:O>a;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let N=this.currentTime,C=r;if(p){const _=Math.min(this.currentTime,a)/c;let B=Math.floor(_),K=_%1;!K&&_>=1&&(K=1),K===1&&B--,B=Math.min(B,p+1),!!(B%2)&&(y==="reverse"?(K=1-K,b&&(K-=b/c)):y==="mirror"&&(C=l)),N=yi(0,1,K)*c}const k=T?{done:!1,value:m[0]}:C.next(N);o&&(k.value=o(k.value));let{done:D}=k;!T&&f!==null&&(D=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return M&&S!==yb&&(k.value=mw(m,this.options,A,this.speed)),j&&j(k.value),M&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Pr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(this.currentTime)}set time(t){var n;t=pi(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(Dn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pr(this.currentTime))}play(){var a,o;if(this.isStopped)return;const{driver:t=_q,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(Dn.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 Gq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const to=e=>e*180/Math.PI,xb=e=>{const t=to(Math.atan2(e[1],e[0]));return bb(t)},Wq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xb,rotateZ:xb,skewX:e=>to(Math.atan(e[1])),skewY:e=>to(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bb=e=>(e=e%360,e<0&&(e+=360),e),WE=xb,XE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),QE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:XE,scaleY:QE,scale:e=>(XE(e)+QE(e))/2,rotateX:e=>bb(to(Math.atan2(e[6],e[5]))),rotateY:e=>bb(to(Math.atan2(-e[2],e[0]))),rotateZ:WE,rotate:WE,skewX:e=>to(Math.atan(e[4])),skewY:e=>to(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wb(e){return e.includes("scale")?1:0}function Sb(e,t){if(!e||e==="none")return wb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=Xq,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wq,a=c}if(!a)return wb(t);const o=r[t],l=a[1].split(",").map(Zq);return typeof o=="function"?o(l):l[o]}const Qq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Sb(n,t)};function Zq(e){return parseFloat(e.trim())}const hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mu=new Set(hu),ZE=e=>e===du||e===pe,Jq=new Set(["x","y","z"]),eV=hu.filter(e=>!Jq.has(e));function tV(e){const t=[];return eV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ms={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})=>Sb(t,"x"),y:(e,{transform:t})=>Sb(t,"y")};ms.translateX=ms.x;ms.translateY=ms.y;const go=new Set;let jb=!1,Ab=!1,Ob=!1;function XD(){if(Ab){const e=Array.from(go).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=tV(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)})}Ab=!1,jb=!1,go.forEach(e=>e.complete(Ob)),go.clear()}function QD(){go.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ab=!0)})}function nV(){Ob=!0,QD(),XD(),Ob=!1}class vw{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?(go.add(this),jb||(jb=!0,gt.read(QD),gt.resolveKeyframes(XD))):(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])}Gq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),go.delete(this)}cancel(){this.state==="scheduled"&&(go.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rV=e=>e.startsWith("--");function iV(e,t,n){rV(t)?e.style.setProperty(t,n):e.style[t]=n}const aV=aw(()=>window.ScrollTimeline!==void 0),sV={};function oV(e,t){const n=aw(e);return()=>sV[t]??n()}const ZD=oV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,JE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dc([0,.65,.55,1]),circOut:Dc([.55,0,1,.45]),backIn:Dc([.31,.01,.66,-.59]),backOut:Dc([.33,1.53,.69,.99])};function JD(e,t){if(e)return typeof e=="function"?ZD()?FD(e,t):"ease-out":_D(e)?Dc(e):Array.isArray(e)?e.map(n=>JD(n,t)||JE.easeOut):JE[e]}function lV(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=JD(c,a);Array.isArray(p)&&(m.easing=p);const y={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(m,y)}function yw(e){return typeof e=="function"&&"applyToOptions"in e}function uV({type:e,...t}){return yw(e)&&ZD()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class cV extends pw{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,iw(typeof t.type!="string");const h=uV(t);this.animation=lV(n,r,a,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=mw(a,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):iV(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 t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pi(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&&aV()?(this.animation.timeline=t,Dr):n(this)}}const e5={anticipate:ND,backInOut:ED,circInOut:CD};function fV(e){return e in e5}function dV(e){typeof e.ease=="string"&&fV(e.ease)&&(e.ease=e5[e.ease])}const Qy=10;class hV extends cV{constructor(t){dV(t),WD(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 gw({...l,autoplay:!1}),f=Math.max(Qy,Dn.now()-this.startTime),h=yi(0,Qy,f-Qy);n.setWithVelocity(c.sample(Math.max(0,f-h)).value,c.sample(f).value,h),c.stop()}}const eN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xs.test(e)||e==="0")&&!e.startsWith("url("));function mV(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 pV(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=eN(a,t),c=eN(o,t);return!l||!c?!1:mV(e)||(n==="spring"||yw(n))&&r}function Eb(e){e.duration=0,e.type="keyframes"}const gV=new Set(["opacity","clipPath","filter","transform"]),vV=aw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yV(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 vV()&&n&&gV.has(n)&&(n!=="transform"||!h)&&!f&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const xV=40;class bV extends pw{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 S;super(),this.stop=()=>{var j,A;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Dn.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:m,...p},b=(m==null?void 0:m.KeyframeResolver)||vw;this.keyframeResolver=new b(c,(j,A,O)=>this.onKeyframesResolved(j,A,y,!O),f,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=Dn.now(),pV(t,o,l,c)||((sa.instantAnimations||!f)&&(m==null||m(mw(t,r,n))),t[0]=t[t.length-1],Eb(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>xV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!h&&yV(y)?new hV({...y,element:y.motionValue.owner.current}):new gw(y);b.finished.then(()=>this.notifyFinished()).catch(Dr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nV()),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 wV{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 tN(this.animations,"duration")}get iterationDuration(){return tN(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function tN(e,t){let n=0;for(let r=0;r<e.length;r++){const a=e[r][t];a!==null&&a>n&&(n=a)}return n}class SV extends wV{then(t,n){return this.finished.finally(t).then(()=>{})}}const jV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function AV(e){const t=jV.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function t5(e,t,n=1){const[r,a]=AV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return yD(l)?parseFloat(l):l}return uw(a)?t5(a,t,n+1):a}function xw(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const OV={type:"spring",stiffness:500,damping:25,restSpeed:10},EV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NV={type:"keyframes",duration:.8},TV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CV=(e,{keyframes:t})=>t.length>2?NV:mu.has(e)?e.startsWith("scale")?EV(t[1]):OV:TV;function kV({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 MV=e=>e!==null;function PV(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(MV),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[o]}function n5(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 bw=(e,t,n,r={},a,o)=>l=>{const c=xw(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-pi(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:y=>{t.set(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:a};kV(c)||Object.assign(m,CV(e,m)),m.duration&&(m.duration=pi(m.duration)),m.repeatDelay&&(m.repeatDelay=pi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Eb(m),m.delay===0&&(p=!0)),(sa.instantAnimations||sa.skipAnimations)&&(p=!0,Eb(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,p&&!o&&t.get()!==void 0){const y=PV(m.keyframes,c);if(y!==void 0){gt.update(()=>{m.onUpdate(y),m.onComplete()});return}}return c.isSync?new gw(m):new bV(m)},r5=new Set(["width","height","top","left","right","bottom",...hu]),nN=30,_V=e=>!isNaN(parseFloat(e));class DV{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const a=Dn.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=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_V(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sw);const r=this.events[t].add(n);return t==="change"?()=>{r(),gt.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=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nN)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nN);return wD(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 Zl(e,t){return new DV(e,t)}function rN(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ww(e,t,n,r){if(typeof t=="function"){const[a,o]=rN(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]=rN(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function zl(e,t,n){const r=e.getProps();return ww(r,t,n!==void 0?n:r.custom,e)}const Nb=e=>Array.isArray(e);function RV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zl(n))}function zV(e){return Nb(e)?e[e.length-1]||0:e}function LV(e,t){const n=zl(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=zV(o[l]);RV(e,l,c)}}const ln=e=>!!(e&&e.getVelocity);function IV(e){return!!(ln(e)&&e.add)}function Tb(e,t){const n=e.getValue("willChange");if(IV(n))return n.add(t);if(!n&&sa.WillChange){const r=new sa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Sw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const BV="framerAppearId",i5="data-"+Sw(BV);function a5(e){return e.props[i5]}function UV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jw(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const f=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const m in c){const p=e.getValue(m,e.latestValues[m]??null),y=c[m];if(y===void 0||h&&UV(h,m))continue;const b={delay:n,...xw(o||{},m)},S=p.get();if(S!==void 0&&!p.isAnimating&&!Array.isArray(y)&&y===S&&!b.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const O=a5(e);if(O){const T=window.MotionHandoffAnimation(O,m,gt);T!==null&&(b.startTime=T,j=!0)}}Tb(e,m),p.start(bw(m,p,y,e.shouldReduceMotion&&r5.has(m)?{type:!1}:b,e,j));const A=p.animation;A&&f.push(A)}return l&&Promise.all(f).then(()=>{gt.update(()=>{l&&LV(e,l)})}),f}function Cb(e,t,n={}){var f;const r=zl(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(jw(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:p,staggerDirection:y}=a;return $V(e,t,h,m,p,y,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 $V(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(Cb(f,t,{...l,delay:n+(typeof r=="function"?0:r)+n5(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function qV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>Cb(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=Cb(e,t,n);else{const a=typeof t=="function"?zl(e,t,n.custom):t;r=Promise.all(jw(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VV={test:e=>e==="auto",parse:e=>e},s5=e=>t=>t.test(e),o5=[du,pe,gi,ts,vq,gq,VV],iN=e=>o5.find(s5(e));function FV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bD(e):!0}const HV=new Set(["brightness","contrast","saturate","opacity"]);function KV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cw)||[];if(!r)return e;const a=n.replace(r,"");let o=HV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const YV=/\b([a-z-]*)\(.*?\)/gu,kb={...xs,getAnimatableNone:e=>{const t=e.match(YV);return t?t.map(KV).join(" "):e}},aN={...du,transform:Math.round},GV={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:Oh,scaleX:Oh,scaleY:Oh,scaleZ:Oh,skew:ts,skewX:ts,skewY:ts,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Jc,originX:FE,originY:FE,originZ:pe},Aw={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,inset:pe,insetBlock:pe,insetBlockStart:pe,insetBlockEnd:pe,insetInline:pe,insetInlineStart:pe,insetInlineEnd:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,paddingBlock:pe,paddingBlockStart:pe,paddingBlockEnd:pe,paddingInline:pe,paddingInlineStart:pe,paddingInlineEnd:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,marginBlock:pe,marginBlockStart:pe,marginBlockEnd:pe,marginInline:pe,marginInlineStart:pe,marginInlineEnd:pe,backgroundPositionX:pe,backgroundPositionY:pe,...GV,zIndex:aN,fillOpacity:Jc,strokeOpacity:Jc,numOctaves:aN},WV={...Aw,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:kb,WebkitFilter:kb},l5=e=>WV[e];function u5(e,t){let n=l5(e);return n!==kb&&(n=xs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XV=new Set(["auto","none","0"]);function QV(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!XV.has(o)&&ef(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=u5(n,a)}class ZV extends vw{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(),uw(p))){const y=t5(p,n.current);y!==void 0&&(t[m]=y),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!r5.has(r)||t.length!==2)return;const[a,o]=t,l=iN(a),c=iN(o),f=VE(a),h=VE(o);if(f!==h&&ms[r]){this.needsMeasurement=!0;return}if(l!==c)if(ZE(l)&&ZE(c))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else ms[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||FV(t[a]))&&r.push(a);r.length&&QV(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=ms[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]=ms[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function c5(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const f5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function d5(e){return xD(e)&&"offsetHeight"in e}const{schedule:Ow}=DD(queueMicrotask,!1),Kr={x:!1,y:!1};function h5(){return Kr.x||Kr.y}function JV(e){return e==="x"||e==="y"?Kr[e]?null:(Kr[e]=!0,()=>{Kr[e]=!1}):Kr.x||Kr.y?null:(Kr.x=Kr.y=!0,()=>{Kr.x=Kr.y=!1})}function m5(e,t){const n=c5(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function sN(e){return!(e.pointerType==="touch"||h5())}function e7(e,t,n={}){const[r,a,o]=m5(e,n),l=c=>{if(!sN(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=p=>{sN(p)&&(h(p),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return r.forEach(c=>{c.addEventListener("pointerenter",l,a)}),o}const p5=(e,t)=>t?e===t?!0:p5(e,t.parentElement):!1,Ew=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,t7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function g5(e){return t7.has(e.tagName)||e.isContentEditable===!0}const Jh=new WeakSet;function oN(e){return t=>{t.key==="Enter"&&e(t)}}function Zy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const n7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=oN(()=>{if(Jh.has(n))return;Zy(n,"down");const a=oN(()=>{Zy(n,"up")}),o=()=>Zy(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 lN(e){return Ew(e)&&!h5()}function r7(e,t,n={}){const[r,a,o]=m5(e,n),l=c=>{const f=c.currentTarget;if(!lN(c))return;Jh.add(f);const h=t(f,c),m=(b,S)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",y),Jh.has(f)&&Jh.delete(f),lN(b)&&typeof h=="function"&&h(b,{success:S})},p=b=>{m(b,f===window||f===document||n.useGlobalTarget||p5(f,b.target))},y=b=>{m(b,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",y,a)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),d5(c)&&(c.addEventListener("focus",h=>n7(h,a)),!g5(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function Nw(e){return xD(e)&&"ownerSVGElement"in e}function v5(e){return Nw(e)&&e.tagName==="svg"}const i7=[...o5,qt,xs],a7=e=>i7.find(s5(e)),uN=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:uN(),y:uN()}),cN=()=>({min:0,max:0}),$t=()=>({x:cN(),y:cN()}),Mb={current:null},y5={current:!1},s7=typeof window<"u";function o7(){if(y5.current=!0,!!s7)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mb.current=e.matches;e.addEventListener("change",t),t()}else Mb.current=!1}const nf=new WeakMap;function Op(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function rf(e){return typeof e=="string"||Array.isArray(e)}const Tw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cw=["initial",...Tw];function Ep(e){return Op(e.animate)||Cw.some(t=>rf(e[t]))}function x5(e){return!!(Ep(e)||e.variants)}function l7(e,t,n){for(const r in t){const a=t[r],o=n[r];if(ln(a))e.addValue(r,a);else if(ln(o))e.addValue(r,Zl(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,Zl(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const fN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let gm={};function b5(e){gm=e}function u7(){return gm}class w5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Dn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,gt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ep(n),this.isVariantNode=x5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const b=p[y];f[y]!==void 0&&ln(b)&&b.set(f[y])}}mount(t){var n;this.current=t,nf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,a)=>this.bindToMotionValue(a,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(y5.current||o7(),this.shouldReduceMotion=Mb.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ys(this.notifyUpdate),ys(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=mu.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&>.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 gm){const n=gm[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):$t()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fN.length;r++){const a=fN[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=l7(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=Zl(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"&&(yD(r)||bD(r))?r=parseFloat(r):!a7(r)&&xs.test(n)&&(r=u5(t,n)),this.setBaseTarget(t,ln(r)?r.get():r)),ln(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=ww(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&&!ln(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 sw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ow.render(this.render)}}class Os{constructor(t){this.isMounted=!1,this.node=t}update(){}}class S5 extends w5{constructor(){super(...arguments),this.KeyframeResolver=ZV}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;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function j5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function c7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function f7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jy(e){return e===void 0||e===1}function Pb({scale:e,scaleX:t,scaleY:n}){return!Jy(e)||!Jy(t)||!Jy(n)}function Gs(e){return Pb(e)||A5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function A5(e){return dN(e.x)||dN(e.y)}function dN(e){return e&&e!=="0%"}function vm(e,t,n){const r=e-n,a=t*r;return n+a}function hN(e,t,n,r,a){return a!==void 0&&(e=vm(e,a,r)),vm(e,n,r)+t}function _b(e,t=0,n=1,r,a){e.min=hN(e.min,t,n,r,a),e.max=hN(e.max,t,n,r,a)}function O5(e,{x:t,y:n}){_b(e.x,t.translate,t.scale,t.originPoint),_b(e.y,n.translate,n.scale,n.originPoint)}const mN=.999999999999,pN=1.0000000000001;function d7(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&&Pl(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,O5(e,l)),r&&Gs(o.latestValues)&&Pl(e,o.latestValues))}t.x<pN&&t.x>mN&&(t.x=1),t.y<pN&&t.y>mN&&(t.y=1)}function Ml(e,t){e.min=e.min+t,e.max=e.max+t}function gN(e,t,n,r,a=.5){const o=xt(e.min,e.max,a);_b(e,t,n,o,r)}function Pl(e,t){gN(e.x,t.x,t.scaleX,t.scale,t.originX),gN(e.y,t.y,t.scaleY,t.scale,t.originY)}function E5(e,t){return j5(f7(e.getBoundingClientRect(),t))}function h7(e,t,n){const r=E5(e,n),{scroll:a}=t;return a&&(Ml(r.x,a.offset.x),Ml(r.y,a.offset.y)),r}const m7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p7=hu.length;function g7(e,t,n){let r="",a=!0;for(let o=0;o<p7;o++){const l=hu[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=f5(c,Aw[l]);if(!f){a=!1;const m=m7[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function kw(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(mu.has(f)){l=!0;continue}else if(zD(f)){a[f]=h;continue}else{const m=f5(h,Aw[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=g7(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 N5(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 vN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=vN(e,t.target.x),r=vN(e,t.target.y);return`${n}% ${r}%`}},v7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=xs.parse(e);if(a.length>5)return r;const o=xs.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)}},Db={borderRadius:{...bc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bc,borderTopRightRadius:bc,borderBottomLeftRadius:bc,borderBottomRightRadius:bc,boxShadow:v7};function T5(e,{layout:t,layoutId:n}){return mu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Db[e]||e==="opacity")}function Mw(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)(ln(r[c])||a&&ln(a[c])||T5(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(o[c]=r[c]);return o}function y7(e){return window.getComputedStyle(e)}class C5 extends S5{constructor(){super(...arguments),this.type="html",this.renderInstance=N5}readValueFromInstance(t,n){var r;if(mu.has(n))return(r=this.projection)!=null&&r.isProjecting?wb(n):Qq(t,n);{const a=y7(t),o=(zD(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return E5(t,n)}build(t,n,r){kw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mw(t,n,r)}}const x7={offset:"stroke-dashoffset",array:"stroke-dasharray"},b7={offset:"strokeDashoffset",array:"strokeDasharray"};function w7(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?x7:b7;e[o.offset]=pe.transform(-r);const l=pe.transform(t),c=pe.transform(n);e[o.array]=`${l} ${c}`}const S7=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function k5(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(kw(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y}=e;p.transform&&(y.transform=p.transform,delete p.transform),(y.transform||p.transformOrigin)&&(y.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),y.transform&&(y.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete p.transformBox);for(const b of S7)p[b]!==void 0&&(y[b]=p[b],delete p[b]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&w7(p,a,o,l,!1)}const M5=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"]),P5=e=>typeof e=="string"&&e.toLowerCase()==="svg";function j7(e,t,n,r){N5(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(M5.has(a)?a:Sw(a),t.attrs[a])}function _5(e,t,n){const r=Mw(e,t,n);for(const a in e)if(ln(e[a])||ln(t[a])){const o=hu.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}class D5 extends S5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mu.has(n)){const r=l5(n);return r&&r.default||0}return n=M5.has(n)?n:Sw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return _5(t,n,r)}build(t,n,r){k5(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){j7(t,n,r,a)}mount(t){this.isSVGTag=P5(t.tagName),super.mount(t)}}function A7(e,t){return e in t}class O7 extends w5{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(A7(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return $t()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const E7=Cw.length;function R5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<E7;n++){const r=Cw[n],a=e.props[r];(rf(a)||a===!1)&&(t[r]=a)}return t}function z5(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 N7=[...Tw].reverse(),T7=Tw.length;function C7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qV(e,n,r)))}function k7(e){let t=C7(e),n=yN(),r=!0;const a=f=>(h,m)=>{var y;const p=zl(e,m,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(p){const{transition:b,transitionEnd:S,...j}=p;h={...h,...j,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=R5(e.parent)||{},p=[],y=new Set;let b={},S=1/0;for(let A=0;A<T7;A++){const O=N7[A],T=n[O],N=h[O]!==void 0?h[O]:m[O],C=rf(N),k=O===f?T.isActive:null;k===!1&&(S=A);let D=N===m[O]&&N!==h[O]&&C;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),T.protectedKeys={...b},!T.isActive&&k===null||!N&&!T.prevProp||Op(N)||typeof N=="boolean")continue;const M=M7(T.prevProp,N);let _=M||O===f&&T.isActive&&!D&&C||A>S&&C,B=!1;const K=Array.isArray(N)?N:[N];let $=K.reduce(a(O),{});k===!1&&($={});const{prevResolvedValues:Z={}}=T,le={...Z,...$},de=W=>{_=!0,y.has(W)&&(B=!0,y.delete(W)),T.needsAnimating[W]=!0;const Y=e.getValue(W);Y&&(Y.liveStyle=!1)};for(const W in le){const Y=$[W],oe=Z[W];if(b.hasOwnProperty(W))continue;let ne=!1;Nb(Y)&&Nb(oe)?ne=!z5(Y,oe):ne=Y!==oe,ne?Y!=null?de(W):y.add(W):Y!==void 0&&y.has(W)?de(W):T.protectedKeys[W]=!0}T.prevProp=N,T.prevResolvedValues=$,T.isActive&&(b={...b,...$}),r&&e.blockInitialAnimation&&(_=!1);const me=D&&M;_&&(!me||B)&&p.push(...K.map(W=>{const Y={type:O};if(typeof W=="string"&&r&&!me&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,ne=zl(oe,W);if(oe.enteringChildren&&ne){const{delayChildren:R}=ne.transition||{};Y.delay=n5(oe.enteringChildren,e,R)}}return{animation:W,options:Y}}))}if(y.size){const A={};if(typeof h.initial!="boolean"){const O=zl(e,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&(A.transition=O.transition)}y.forEach(O=>{const T=e.getBaseTarget(O),N=e.getValue(O);N&&(N.liveStyle=!0),A[O]=T??null}),p.push({animation:A})}let j=!!p.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,j?t(p):Promise.resolve()}function c(f,h){var p;if(n[f].isActive===h)return Promise.resolve();(p=e.variantChildren)==null||p.forEach(y=>{var b;return(b=y.animationState)==null?void 0:b.setActive(f,h)}),n[f].isActive=h;const m=l(f);for(const y in n)n[y].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=yN()}}}function M7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z5(t,e):!1}function Ks(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yN(){return{animate:Ks(!0),whileInView:Ks(),whileHover:Ks(),whileTap:Ks(),whileDrag:Ks(),whileFocus:Ks(),exit:Ks()}}const L5=1e-4,P7=1-L5,_7=1+L5,I5=.01,D7=0-I5,R7=0+I5;function Rn(e){return e.max-e.min}function z7(e,t,n){return Math.abs(e-t)<=n}function xN(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=P7&&e.scale<=_7||isNaN(e.scale))&&(e.scale=1),(e.translate>=D7&&e.translate<=R7||isNaN(e.translate))&&(e.translate=0)}function $c(e,t,n,r){xN(e.x,t.x,n.x,r?r.originX:void 0),xN(e.y,t.y,n.y,r?r.originY:void 0)}function bN(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function L7(e,t,n){bN(e.x,t.x,n.x),bN(e.y,t.y,n.y)}function wN(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function ym(e,t,n){wN(e.x,t.x,n.x),wN(e.y,t.y,n.y)}function SN(e,t,n,r,a){return e-=t,e=vm(e,1/n,r),a!==void 0&&(e=vm(e,1/a,r)),e}function I7(e,t=0,n=1,r=.5,a,o=e,l=e){if(gi.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=SN(e.min,t,n,c,a),e.max=SN(e.max,t,n,c,a)}function jN(e,t,[n,r,a],o,l){I7(e,t[n],t[r],t[a],t.scale,o,l)}const B7=["x","scaleX","originX"],U7=["y","scaleY","originY"];function AN(e,t,n,r){jN(e.x,t,B7,n?n.x:void 0,r?r.x:void 0),jN(e.y,t,U7,n?n.y:void 0,r?r.y:void 0)}function ON(e,t){e.min=t.min,e.max=t.max}function Hr(e,t){ON(e.x,t.x),ON(e.y,t.y)}function EN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function NN(e){return e.translate===0&&e.scale===1}function B5(e){return NN(e.x)&&NN(e.y)}function TN(e,t){return e.min===t.min&&e.max===t.max}function $7(e,t){return TN(e.x,t.x)&&TN(e.y,t.y)}function CN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function U5(e,t){return CN(e.x,t.x)&&CN(e.y,t.y)}function kN(e){return Rn(e.x)/Rn(e.y)}function MN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Tr(e){return[e("x"),e("y")]}function q7(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:y,skewX:b,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `),b&&(r+=`skewX(${b}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const $5=["TopLeft","TopRight","BottomLeft","BottomRight"],V7=$5.length,PN=e=>typeof e=="string"?parseFloat(e):e,_N=e=>typeof e=="number"||pe.test(e);function F7(e,t,n,r,a,o){a?(e.opacity=xt(0,n.opacity??1,H7(r)),e.opacityExit=xt(t.opacity??1,0,K7(r))):o&&(e.opacity=xt(t.opacity??1,n.opacity??1,r));for(let l=0;l<V7;l++){const c=`border${$5[l]}Radius`;let f=DN(t,c),h=DN(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||_N(f)===_N(h)?(e[c]=Math.max(xt(PN(f),PN(h),r),0),(gi.test(h)||gi.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function DN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const H7=q5(0,.5,TD),K7=q5(.5,.95,Dr);function q5(e,t,n){return r=>r<e?0:r>t?1:n(Ql(e,t,r))}function Y7(e,t){const n=Dn.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(ys(r),e(o-t))};return gt.setup(r,!0),()=>ys(r)}function af(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function em(e){return ln(e)?e.get():e}function V5(e,t,n){const r=ln(e)?e:Zl(e);return r.start(bw("",r,t,n)),r.animation}const G7=(e,t)=>e.depth-t.depth;class W7{constructor(){this.children=[],this.isDirty=!1}add(t){rw(this.children,t),this.isDirty=!0}remove(t){Ap(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(G7),this.isDirty=!1,this.children.forEach(t)}}class X7{constructor(){this.members=[]}add(t){rw(this.members,t),t.scheduleRender()}remove(t){if(Ap(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!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 tm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},e0=["","X","Y","Z"],Q7=1e3;let Z7=0;function t0(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function F5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",gt,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&F5(r)}function H5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=Z7++,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(tF),this.nodes.forEach(aF),this.nodes.forEach(sF),this.nodes.forEach(nF)},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 W7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new sw),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Nw(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 y=()=>this.root.updateBlockedByResize=!1;gt.read(()=>{p=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=!0,m&&m(),m=Y7(y,250),tm.hasAnimatedSinceResize&&(tm.hasAnimatedSinceResize=!1,this.nodes.forEach(LN)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||fF,{onLayoutAnimationStart:j,onLayoutAnimationComplete:A}=h.getProps(),O=!this.targetLayout||!U5(this.targetLayout,b),T=!p&&y;if(this.options.layoutRoot||this.resumeFrom||T||p&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...xw(S,"layout"),onPlay:j,onComplete:A};(h.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,T)}else p||LN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ys(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(oF),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&&F5(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(RN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iF),this.nodes.forEach(J7),this.nodes.forEach(eF)):this.nodes.forEach(zN),this.clearAllSnapshots();const c=Dn.now();xn.delta=yi(0,1e3/60,c-xn.timestamp),xn.timestamp=c,xn.isProcessing=!0,Ky.update.process(xn),Ky.preRender.process(xn),Ky.render.process(xn),xn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ow.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rF),this.sharedNodes.forEach(lF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Rn(this.snapshot.measuredBox.x)&&!Rn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!B5(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||Gs(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)),dF(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return $t();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(hF))){const{scroll:m}=this.root;m&&(Ml(c.x,m.offset.x),Ml(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=$t();if(Hr(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:p,options:y}=m;m!==this.root&&p&&y.layoutScroll&&(p.wasRoot&&Hr(c,l),Ml(c.x,p.offset.x),Ml(c.y,p.offset.y))}return c}applyTransform(l,c=!1){const f=$t();Hr(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Pl(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Gs(m.latestValues)&&Pl(f,m.latestValues)}return Gs(this.latestValues)&&Pl(f,this.latestValues),f}removeTransform(l){const c=$t();Hr(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Gs(h.latestValues))continue;Pb(h.latestValues)&&h.updateSnapshot();const m=$t(),p=h.measurePageBox();Hr(m,p),AN(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Gs(this.latestValues)&&AN(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var b;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=xn.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Hr(this.target,this.layout.layoutBox),O5(this.target,this.targetDelta)):Hr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Pb(this.parent.latestValues)||A5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),ym(this.relativeTargetOrigin,c,f),Hr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===xn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Hr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d7(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=$t());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(EN(this.prevProjectionDelta.x,this.projectionDelta.x),EN(this.prevProjectionDelta.y,this.projectionDelta.y)),$c(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!MN(this.projectionDelta.x,this.prevProjectionDelta.x)||!MN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},p=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=$t(),b=f?f.source:void 0,S=this.layout?this.layout.source:void 0,j=b!==S,A=this.getStack(),O=!A||A.members.length<=1,T=!!(j&&!O&&this.options.crossfade===!0&&!this.path.some(cF));this.animationProgress=0;let N;this.mixTargetDelta=C=>{const k=C/1e3;IN(p.x,l.x,k),IN(p.y,l.y,k),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ym(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uF(this.relativeTarget,this.relativeTargetOrigin,y,k),N&&$7(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=$t()),Hr(N,this.relativeTarget)),j&&(this.animationValues=m,F7(m,h,this.latestValues,k,T,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},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&&(ys(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=gt.update(()=>{tm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zl(0)),this.currentAnimation=V5(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(Q7),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&&K5(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||$t();const p=Rn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+p;const y=Rn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+y}Hr(c,f),Pl(c,m),$c(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new X7),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&&t0("z",l,h,this.animationValues);for(let m=0;m<e0.length;m++)t0(`rotate${e0[m]}`,l,h,this.animationValues),t0(`skew${e0[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=em(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=em(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Gs(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let p=q7(this.projectionDeltaWithTransform,this.treeScale,m);f&&(p=f(m,p)),l.transform=p;const{x:y,y:b}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,h.animationValues?l.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in Db){if(m[S]===void 0)continue;const{correct:j,applyTo:A,isCSSVariable:O}=Db[S],T=p==="none"?m[S]:j(m[S],h);if(A){const N=A.length;for(let C=0;C<N;C++)l[A[C]]=T}else O?this.options.visualElement.renderState.vars[S]=T:l[S]=T}this.options.layoutId&&(l.pointerEvents=h===this?em(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(RN),this.root.sharedNodes.clear()}}}function J7(e){e.updateLayout()}function eF(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"?Tr(p=>{const y=l?t.measuredBox[p]:t.layoutBox[p],b=Rn(y);y.min=r[p].min,y.max=y.min+b}):K5(o,t.layoutBox,r)&&Tr(p=>{const y=l?t.measuredBox[p]:t.layoutBox[p],b=Rn(r[p]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+b)});const c=kl();$c(c,r,t.layoutBox);const f=kl();l?$c(f,e.applyTransform(a,!0),t.measuredBox):$c(f,r,t.layoutBox);const h=!B5(c);let m=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:y,layout:b}=p;if(y&&b){const S=$t();ym(S,t.layoutBox,y.layoutBox);const j=$t();ym(j,r,b.layoutBox),U5(S,j)||(m=!0),p.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=S,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 tF(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 nF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rF(e){e.clearSnapshot()}function RN(e){e.clearMeasurements()}function zN(e){e.isLayoutDirty=!1}function iF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function LN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aF(e){e.resolveTargetDelta()}function sF(e){e.calcProjection()}function oF(e){e.resetSkewAndRotation()}function lF(e){e.removeLeadSnapshot()}function IN(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 BN(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function uF(e,t,n,r){BN(e.x,t.x,n.x,r),BN(e.y,t.y,n.y,r)}function cF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fF={duration:.45,ease:[.4,0,.1,1]},UN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$N=UN("applewebkit/")&&!UN("chrome/")?Math.round:Dr;function qN(e){e.min=$N(e.min),e.max=$N(e.max)}function dF(e){qN(e.x),qN(e.y)}function K5(e,t,n){return e==="position"||e==="preserve-aspect"&&!z7(kN(t),kN(n),.2)}function hF(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const mF=H5({attachResizeListener:(e,t)=>af(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n0={current:void 0},Y5=H5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n0.current){const e=new mF({});e.mount(window),e.setOptions({layoutScroll:!0}),n0.current=e}return n0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pw=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function VN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pF(...e){return t=>{let n=!1;const r=e.map(a=>{const o=VN(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():VN(e[a],null)}}}}function gF(...e){return w.useCallback(pF(...e),e)}class vF extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=d5(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=a-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yF({children:e,isPresent:t,anchorX:n,root:r}){var m;const a=w.useId(),o=w.useRef(null),l=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=w.useContext(Pw),f=((m=e.props)==null?void 0:m.ref)??(e==null?void 0:e.ref),h=gF(o,f);return w.useInsertionEffect(()=>{const{width:p,height:y,top:b,left:S,right:j}=l.current;if(t||!o.current||!p||!y)return;const A=n==="left"?`left: ${S}`:`right: ${j}`;o.current.dataset.motionPopId=a;const O=document.createElement("style");c&&(O.nonce=c);const T=r??document.head;return T.appendChild(O),O.sheet&&O.sheet.insertRule(`
|
|
356
|
-
[data-motion-pop-id="${a}"] {
|
|
357
|
-
position: absolute !important;
|
|
358
|
-
width: ${p}px !important;
|
|
359
|
-
height: ${y}px !important;
|
|
360
|
-
${A}px !important;
|
|
361
|
-
top: ${b}px !important;
|
|
362
|
-
}
|
|
363
|
-
`),()=>{T.contains(O)&&T.removeChild(O)}},[t]),g.jsx(vF,{isPresent:t,childRef:o,sizeRef:l,children:w.cloneElement(e,{ref:h})})}const xF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,root:f})=>{const h=nw(bF),m=w.useId();let p=!0,y=w.useMemo(()=>(p=!1,{id:m,initial:t,isPresent:n,custom:a,onExitComplete:b=>{h.set(b,!0);for(const S of h.values())if(!S)return;r&&r()},register:b=>(h.set(b,!1),()=>h.delete(b))}),[n,h,r]);return o&&p&&(y={...y}),w.useMemo(()=>{h.forEach((b,S)=>h.set(S,!1))},[n]),w.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(e=g.jsx(yF,{isPresent:n,anchorX:c,root:f,children:e})),g.jsx(jp.Provider,{value:y,children:e})};function bF(){return new Map}function G5(e=!0){const t=w.useContext(jp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=w.useId();w.useEffect(()=>{if(e)return a(o)},[e]);const l=w.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Eh=e=>e.key||"";function FN(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const ga=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",root:f})=>{const[h,m]=G5(l),p=w.useMemo(()=>FN(e),[e]),y=l&&!h?[]:p.map(Eh),b=w.useRef(!0),S=w.useRef(p),j=nw(()=>new Map),A=w.useRef(new Set),[O,T]=w.useState(p),[N,C]=w.useState(p);vD(()=>{b.current=!1,S.current=p;for(let M=0;M<N.length;M++){const _=Eh(N[M]);y.includes(_)?(j.delete(_),A.current.delete(_)):j.get(_)!==!0&&j.set(_,!1)}},[N,y.length,y.join("-")]);const k=[];if(p!==O){let M=[...p];for(let _=0;_<N.length;_++){const B=N[_],K=Eh(B);y.includes(K)||(M.splice(_,0,B),k.push(B))}return o==="wait"&&k.length&&(M=k),C(FN(M)),T(p),null}const{forceRender:D}=w.useContext(tw);return g.jsx(g.Fragment,{children:N.map(M=>{const _=Eh(M),B=l&&!h?!1:p===N||y.includes(_),K=()=>{if(A.current.has(_))return;if(A.current.add(_),j.has(_))j.set(_,!0);else return;let $=!0;j.forEach(Z=>{Z||($=!1)}),$&&(D==null||D(),C(S.current),l&&(m==null||m()),r&&r())};return g.jsx(xF,{isPresent:B,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:f,onExitComplete:B?void 0:K,anchorX:c,children:M},_)})})},W5=w.createContext({strict:!1}),HN={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 KN=!1;function wF(){if(KN)return;const e={};for(const t in HN)e[t]={isEnabled:n=>HN[t].some(r=>!!n[r])};b5(e),KN=!0}function X5(){return wF(),u7()}function SF(e){const t=X5();for(const n in e)t[n]={...t[n],...e[n]};b5(t)}const jF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jF.has(e)}let Q5=e=>!xm(e);function AF(e){typeof e=="function"&&(Q5=t=>t.startsWith("on")?!xm(t):e(t))}try{AF(require("@emotion/is-prop-valid").default)}catch{}function OF(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Q5(a)||n===!0&&xm(a)||!t&&!xm(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Np=w.createContext({});function EF(e,t){if(Ep(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rf(n)?n:void 0,animate:rf(r)?r:void 0}}return e.inherit!==!1?t:{}}function NF(e){const{initial:t,animate:n}=EF(e,w.useContext(Np));return w.useMemo(()=>({initial:t,animate:n}),[YN(t),YN(n)])}function YN(e){return Array.isArray(e)?e.join(" "):e}const _w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Z5(e,t,n){for(const r in t)!ln(t[r])&&!T5(r,n)&&(e[r]=t[r])}function TF({transformTemplate:e},t){return w.useMemo(()=>{const n=_w();return kw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CF(e,t){const n=e.style||{},r={};return Z5(r,n,e),Object.assign(r,TF(e,t)),r}function kF(e,t){const n={},r=CF(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 J5=()=>({..._w(),attrs:{}});function MF(e,t,n,r){const a=w.useMemo(()=>{const o=J5();return k5(o,t,P5(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Z5(o,e.style,e),a.style={...o,...a.style}}return a}const PF=["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 Dw(e){return typeof e!="string"||e.includes("-")?!1:!!(PF.indexOf(e)>-1||/[A-Z]/u.test(e))}function _F(e,t,n,{latestValues:r},a,o=!1,l){const f=(l??Dw(e)?MF:kF)(t,r,a,e),h=OF(t,typeof e=="string",o),m=e!==w.Fragment?{...h,...f,ref:n}:{},{children:p}=t,y=w.useMemo(()=>ln(p)?p.get():p,[p]);return w.createElement(e,{...m,children:y})}function DF({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:RF(n,r,a,e),renderState:t()}}function RF(e,t,n,r){const a={},o=r(e,{});for(const y in o)a[y]=em(o[y]);let{initial:l,animate:c}=e;const f=Ep(e),h=x5(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"&&!Op(p)){const y=Array.isArray(p)?p:[p];for(let b=0;b<y.length;b++){const S=ww(e,y[b]);if(S){const{transitionEnd:j,transition:A,...O}=S;for(const T in O){let N=O[T];if(Array.isArray(N)){const C=m?N.length-1:0;N=N[C]}N!==null&&(a[T]=N)}for(const T in j)a[T]=j[T]}}}return a}const e3=e=>(t,n)=>{const r=w.useContext(Np),a=w.useContext(jp),o=()=>DF(e,t,r,a);return n?o():nw(o)},zF=e3({scrapeMotionValuesFromProps:Mw,createRenderState:_w}),LF=e3({scrapeMotionValuesFromProps:_5,createRenderState:J5}),IF=Symbol.for("motionComponentSymbol");function BF(e,t,n){const r=w.useRef(n);w.useInsertionEffect(()=>{r.current=n});const a=w.useRef(null);return w.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 t3=w.createContext({});function Rc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UF(e,t,n,r,a,o){var A,O;const{visualElement:l}=w.useContext(Np),c=w.useContext(W5),f=w.useContext(jp),h=w.useContext(Pw).reducedMotion,m=w.useRef(null);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h,isSVG:o}));const p=m.current,y=w.useContext(t3);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&$F(m.current,n,a,y);const b=w.useRef(!1);w.useInsertionEffect(()=>{p&&b.current&&p.update(n,f)});const S=n[i5],j=w.useRef(!!S&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,S))&&((O=window.MotionHasOptimisedAnimation)==null?void 0:O.call(window,S)));return vD(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),j.current&&p.animationState&&p.animationState.animateChanges())}),w.useEffect(()=>{p&&(!j.current&&p.animationState&&p.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,S)}),j.current=!1),p.enteringChildren=void 0)}),p}function $F(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:n3(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&Rc(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:h})}function n3(e){if(e)return e.options.allowProjection!==!1?e.projection:n3(e.parent)}function r0(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&SF(r);const o=n?n==="svg":Dw(e),l=o?LF:zF;function c(h,m){let p;const y={...w.useContext(Pw),...h,layoutId:qF(h)},{isStatic:b}=y,S=NF(h),j=l(h,b);if(!b&&gD){VF();const A=FF(y);p=A.MeasureLayout,S.visualElement=UF(e,j,y,a,A.ProjectionNode,o)}return g.jsxs(Np.Provider,{value:S,children:[p&&S.visualElement?g.jsx(p,{visualElement:S.visualElement,...y}):null,_F(e,h,BF(j,S.visualElement,m),j,b,t,o)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=w.forwardRef(c);return f[IF]=e,f}function qF({layoutId:e}){const t=w.useContext(tw).id;return t&&e!==void 0?t+"-"+e:e}function VF(e,t){w.useContext(W5).strict}function FF(e){const t=X5(),{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 HF(e,t){if(typeof Proxy>"u")return r0;const n=new Map,r=(o,l)=>r0(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,r0(l,void 0,e,t)),n.get(l))})}const KF=(e,t)=>t.isSVG??Dw(e)?new D5(t):new C5(t,{allowProjection:e!==w.Fragment});class YF extends Os{constructor(t){super(t),t.animationState||(t.animationState=k7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Op(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 GF=0;class WF extends Os{constructor(){super(...arguments),this.id=GF++}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 XF={animation:{Feature:YF},exit:{Feature:WF}};function Rf(e){return{point:{x:e.pageX,y:e.pageY}}}const QF=e=>t=>Ew(t)&&e(t,Rf(t));function qc(e,t,n,r){return af(e,t,QF(n),r)}const r3=({current:e})=>e?e.ownerDocument.defaultView:null,GN=(e,t)=>Math.abs(e-t);function ZF(e,t){const n=GN(e.x,t.x),r=GN(e.y,t.y);return Math.sqrt(n**2+r**2)}const WN=new Set(["auto","scroll"]);class i3{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=b=>{this.handleScroll(b.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=a0(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,j=ZF(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!j)return;const{point:A}=b,{timestamp:O}=xn;this.history.push({...A,timestamp:O});const{onStart:T,onMove:N}=this.handlers;S||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,b)},this.handlePointerMove=(b,S)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=i0(S,this.transformPagePoint),gt.update(this.updatePoint,!0)},this.handlePointerUp=(b,S)=>{this.end();const{onEnd:j,onSessionEnd:A,resumeAnimation:O}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=a0(b.type==="pointercancel"?this.lastMoveEventInfo:i0(S,this.transformPagePoint),this.history);this.startEvent&&j&&j(b,T),A&&A(b,T)},!Ew(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Rf(t),h=i0(f,this.transformPagePoint),{point:m}=h,{timestamp:p}=xn;this.history=[{...m,timestamp:p}];const{onSessionStart:y}=n;y&&y(t,a0(h,this.history)),this.removeListeners=Pf(qc(this.contextWindow,"pointermove",this.handlePointerMove),qc(this.contextWindow,"pointerup",this.handlePointerUp),qc(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(WN.has(r.overflowX)||WN.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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),gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ys(this.updatePoint)}}function i0(e,t){return t?{point:t(e.point)}:e}function XN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function a0({point:e},t){return{point:e,delta:XN(e,a3(t)),offset:XN(e,JF(t)),velocity:eH(t,.1)}}function JF(e){return e[0]}function a3(e){return e[e.length-1]}function eH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=a3(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>pi(t)));)n--;if(!r)return{x:0,y:0};const o=Pr(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 tH(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 QN(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 nH(e,{top:t,left:n,bottom:r,right:a}){return{x:QN(e.x,n,a),y:QN(e.y,t,r)}}function ZN(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 rH(e,t){return{x:ZN(e.x,t.x),y:ZN(e.y,t.y)}}function iH(e,t){let n=.5;const r=Rn(e),a=Rn(t);return a>r?n=Ql(t.min,t.max-r,e.min):r>a&&(n=Ql(e.min,e.max-a,t.min)),yi(0,1,n)}function aH(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 Rb=.35;function sH(e=Rb){return e===!1?e=0:e===!0&&(e=Rb),{x:JN(e,"left","right"),y:JN(e,"top","bottom")}}function JN(e,t,n){return{min:eT(e,t),max:eT(e,n)}}function eT(e,t){return typeof e=="number"?e:e[t]||0}const oH=new WeakMap;class lH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=p=>{n?(this.stopAnimation(),this.snapToCursor(Rf(p).point)):this.pauseAnimation()},l=(p,y)=>{this.stopAnimation();const{drag:b,dragPropagation:S,onDragStart:j}=this.getProps();if(b&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JV(b),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tr(O=>{let T=this.getAxisMotionValue(O).get()||0;if(gi.test(T)){const{projection:N}=this.visualElement;if(N&&N.layout){const C=N.layout.layoutBox[O];C&&(T=Rn(C)*(parseFloat(T)/100))}}this.originPoint[O]=T}),j&>.postRender(()=>j(p,y)),Tb(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},c=(p,y)=>{this.latestPointerEvent=p,this.latestPanInfo=y;const{dragPropagation:b,dragDirectionLock:S,onDirectionLock:j,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:O}=y;if(S&&this.currentDirection===null){this.currentDirection=uH(O),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",y.point,O),this.updateAxis("y",y.point,O),this.visualElement.render(),A&&A(p,y)},f=(p,y)=>{this.latestPointerEvent=p,this.latestPanInfo=y,this.stop(p,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Tr(p=>{var y;return this.getAnimationState(p)==="paused"&&((y=this.getAxisMotionValue(p).animation)==null?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new i3(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:r3(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&>.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Nh(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=tH(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&&Rc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nH(r.layoutBox,t):this.constraints=!1,this.elastic=sH(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Tr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=aH(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rc(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=h7(r,a.root,this.visualElement.getTransformPagePoint());let l=rH(a.layout.layoutBox,o);if(n){const c=n(c7(l));this.hasMutatedConstraints=!!c,c&&(l=j5(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Tr(m=>{if(!Nh(m,n,this.currentDirection))return;let p=f&&f[m]||{};l&&(p={min:0,max:0});const y=a?200:1e6,b=a?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:y,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Tb(this.visualElement,t),r.start(bw(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tr(n=>{const{drag:r}=this.getProps();if(!Nh(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(!Rc(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Tr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=iH({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tr(l=>{if(!Nh(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(xt(f,h,a[l]))})}addListeners(){if(!this.visualElement.current)return;oH.set(this.visualElement,this);const t=this.visualElement.current,n=qc(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&!g5(f.target)&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Rc(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),gt.read(r);const l=af(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Tr(m=>{const p=this.getAxisMotionValue(m);p&&(this.originPoint[m]+=f[m].translate,p.set(p.get()+f[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=Rb,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Nh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cH extends Os{constructor(t){super(t),this.removeGroupControls=Dr,this.removeListeners=Dr,this.controls=new lH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dr}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()}}const tT=e=>(t,n)=>{e&>.postRender(()=>e(t,n))};class fH extends Os{constructor(){super(...arguments),this.removePointerDownListener=Dr}onPointerDown(t){this.session=new i3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:tT(t),onStart:tT(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&>.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=qc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let s0=!1;class dH extends w.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),s0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,s0=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||gt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ow.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;s0=!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 s3(e){const[t,n]=G5(),r=w.useContext(tw);return g.jsx(dH,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(t3),isPresent:t,safeToRemove:n})}const hH={pan:{Feature:fH},drag:{Feature:cH,ProjectionNode:Y5,MeasureLayout:s3}};function nT(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&>.postRender(()=>o(t,Rf(t)))}class mH extends Os{mount(){const{current:t}=this.node;t&&(this.unmount=e7(t,(n,r)=>(nT(this.node,r,"Start"),a=>nT(this.node,a,"End"))))}unmount(){}}class pH extends Os{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=Pf(af(this.node.current,"focus",()=>this.onFocus()),af(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rT(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&>.postRender(()=>o(t,Rf(t)))}class gH extends Os{mount(){const{current:t}=this.node;t&&(this.unmount=r7(t,(n,r)=>(rT(this.node,r,"Start"),(a,{success:o})=>rT(this.node,a,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zb=new WeakMap,o0=new WeakMap,vH=e=>{const t=zb.get(e.target);t&&t(e)},yH=e=>{e.forEach(vH)};function xH({root:e,...t}){const n=e||document;o0.has(n)||o0.set(n,{});const r=o0.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(yH,{root:e,...t})),r[a]}function bH(e,t,n){const r=xH(t);return zb.set(e,n),r.observe(e),()=>{zb.delete(e),r.unobserve(e)}}const wH={some:0,all:1};class SH extends Os{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:wH[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(),y=h?m:p;y&&y(f)};return bH(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(jH(t,n))&&this.startObserver()}unmount(){}}function jH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AH={inView:{Feature:SH},tap:{Feature:gH},focus:{Feature:pH},hover:{Feature:mH}},OH={layout:{ProjectionNode:Y5,MeasureLayout:s3}},EH={...XF,...AH,...hH,...OH},lt=HF(EH,KF);function Rw(e){return typeof e=="object"&&!Array.isArray(e)}function o3(e,t,n,r){return typeof e=="string"&&Rw(t)?c5(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function NH(e,t,n){return e*(t+1)}function iT(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 TH(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];a.at>t&&a.at<n&&(Ap(e,a),r--)}}function CH(e,t,n,r,a,o){TH(e,a,o);for(let l=0;l<t.length;l++)e.push({value:t[l],at:xt(a,o,r[l]),easing:PD(n,l)})}function kH(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function MH(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const PH="easeInOut";function _H(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,y=0;for(let b=0;b<e.length;b++){const S=e[b];if(typeof S=="string"){h.set(S,p);continue}else if(!Array.isArray(S)){h.set(S.name,iT(p,S.at,m,h));continue}let[j,A,O={}]=S;O.at!==void 0&&(p=iT(p,O.at,m,h));let T=0;const N=(C,k,D,M=0,_=0)=>{const B=DH(C),{delay:K=0,times:$=GD(B),type:Z="keyframes",repeat:le,repeatType:de,repeatDelay:me=0,...q}=k;let{ease:W=t.ease||"easeOut",duration:Y}=k;const oe=typeof K=="function"?K(M,_):K,ne=B.length,R=yw(Z)?Z:a==null?void 0:a[Z||"keyframes"];if(ne<=2&&R){let ye=100;if(ne===2&&LH(B)){const Xe=B[1]-B[0];ye=Math.abs(Xe)}const Ee={...q};Y!==void 0&&(Ee.duration=pi(Y));const fe=HD(Ee,ye,R);W=fe.ease,Y=fe.duration}Y??(Y=o);const F=p+oe;$.length===1&&$[0]===0&&($[1]=1);const ie=$.length-B.length;if(ie>0&&YD($,ie),B.length===1&&B.unshift(null),le){Y=NH(Y,le);const ye=[...B],Ee=[...$];W=Array.isArray(W)?[...W]:[W];const fe=[...W];for(let Xe=0;Xe<le;Xe++){B.push(...ye);for(let J=0;J<ye.length;J++)$.push(Ee[J]+(Xe+1)),W.push(J===0?"linear":PD(fe,J-1))}kH($,le)}const se=F+Y;CH(D,B,W,$,F,se),T=Math.max(oe+Y,T),y=Math.max(se,y)};if(ln(j)){const C=aT(j,c);N(A,O,sT("default",C))}else{const C=o3(j,A,r,f),k=C.length;for(let D=0;D<k;D++){A=A,O=O;const M=C[D],_=aT(M,c);for(const B in A)N(A[B],RH(O,B),sT(B,_),D,k)}}m=p,p+=T}return c.forEach((b,S)=>{for(const j in b){const A=b[j];A.sort(MH);const O=[],T=[],N=[];for(let k=0;k<A.length;k++){const{at:D,value:M,easing:_}=A[k];O.push(M),T.push(Ql(0,y,D)),N.push(_||"easeOut")}T[0]!==0&&(T.unshift(0),O.unshift(O[0]),N.unshift(PH)),T[T.length-1]!==1&&(T.push(1),O.push(null)),l.has(S)||l.set(S,{keyframes:{},transition:{}});const C=l.get(S);C.keyframes[j]=O,C.transition[j]={...t,duration:y,ease:N,times:T,...n}}}),l}function aT(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function sT(e,t){return t[e]||(t[e]=[]),t[e]}function DH(e){return Array.isArray(e)?e:[e]}function RH(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const zH=e=>typeof e=="number",LH=e=>e.every(zH);function IH(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Nw(e)&&!v5(e)?new D5(t):new C5(t);n.mount(e),nf.set(e,n)}function BH(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new O7(t);n.mount(e),nf.set(e,n)}function UH(e,t){return ln(e)||typeof e=="number"||typeof e=="string"&&!Rw(t)}function l3(e,t,n,r){const a=[];if(UH(e,t))a.push(V5(e,Rw(t)&&t.default||t,n&&(n.default||n)));else{const o=o3(e,t,r),l=o.length;for(let c=0;c<l;c++){const f=o[c],h=f instanceof Element?IH:BH;nf.has(f)||h(f);const m=nf.get(f),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(c,l)),a.push(...jw(m,{...t,transition:p},{}))}}return a}function $H(e,t,n){const r=[];return _H(e,t,n,{spring:tf}).forEach(({keyframes:o,transition:l},c)=>{r.push(...l3(c,o,l))}),r}function qH(e){return Array.isArray(e)&&e.some(Array.isArray)}function VH(e){function t(n,r,a){let o=[],l;if(qH(n))o=$H(n,r,e);else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(l=f),o=l3(n,r,h,e)}const c=new SV(o);return l&&c.finished.then(l),c}return t}const FH=VH();function u3(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=u3(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=u3(e))&&(r&&(r+=" "),r+=t);return r}const HH=(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},KH=(e,t)=>({classGroupId:e,validator:t}),c3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bm="-",oT=[],YH="arbitrary..",GH=e=>{const t=XH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return WH(l);const c=l.split(bm),f=c[0]===""&&c.length>1?1:0;return f3(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],h=n[l];return f?h?HH(h,f):f:h||oT}return n[l]||oT}}},f3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],o=n.nextPart.get(a);if(o){const h=f3(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(bm):e.slice(t).join(bm),f=l.length;for(let h=0;h<f;h++){const m=l[h];if(m.validator(c))return m.classGroupId}},WH=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?YH+r:void 0})(),XH=e=>{const{theme:t,classGroups:n}=e;return QH(n,t)},QH=(e,t)=>{const n=c3();for(const r in e){const a=e[r];zw(a,n,r,t)}return n},zw=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const l=e[o];ZH(l,t,n,r)}},ZH=(e,t,n,r)=>{if(typeof e=="string"){JH(e,t,n);return}if(typeof e=="function"){eK(e,t,n,r);return}tK(e,t,n,r)},JH=(e,t,n)=>{const r=e===""?t:d3(t,e);r.classGroupId=n},eK=(e,t,n,r)=>{if(nK(e)){zw(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(KH(n,e))},tK=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let l=0;l<o;l++){const[c,f]=a[l];zw(f,d3(t,c),n,r)}},d3=(e,t)=>{let n=e;const r=t.split(bm),a=r.length;for(let o=0;o<a;o++){const l=r[o];let c=n.nextPart.get(l);c||(c=c3(),n.nextPart.set(l,c)),n=c}return n},nK=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rK=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)}}},Lb="!",lT=":",iK=[],uT=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),aK=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 j=0;j<m;j++){const A=a[j];if(l===0&&c===0){if(A===lT){o.push(a.slice(f,j)),f=j+1;continue}if(A==="/"){h=j;continue}}A==="["?l++:A==="]"?l--:A==="("?c++:A===")"&&c--}const p=o.length===0?a:a.slice(f);let y=p,b=!1;p.endsWith(Lb)?(y=p.slice(0,-1),b=!0):p.startsWith(Lb)&&(y=p.slice(1),b=!0);const S=h&&h>f?h-f:void 0;return uT(o,b,y,S)};if(t){const a=t+lT,o=r;r=l=>l.startsWith(a)?o(l.slice(a.length)):uT(iK,!1,l,void 0,!0)}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},sK=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}},oK=e=>({cache:rK(e.cacheSize),parseClassName:aK(e),sortModifiers:sK(e),...GH(e)}),lK=/\s+/,uK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(lK);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:p,modifiers:y,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:j}=n(m);if(p){f=m+(f.length>0?" "+f:f);continue}let A=!!j,O=r(A?S.substring(0,j):S);if(!O){if(!A){f=m+(f.length>0?" "+f:f);continue}if(O=r(S),!O){f=m+(f.length>0?" "+f:f);continue}A=!1}const T=y.length===0?"":y.length===1?y[0]:o(y).join(":"),N=b?T+Lb:T,C=N+O;if(l.indexOf(C)>-1)continue;l.push(C);const k=a(O,A);for(let D=0;D<k.length;++D){const M=k[D];l.push(N+M)}f=m+(f.length>0?" "+f:f)}return f},cK=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=h3(n))&&(a&&(a+=" "),a+=r);return a},h3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=h3(e[r]))&&(n&&(n+=" "),n+=t);return n},fK=(e,...t)=>{let n,r,a,o;const l=f=>{const h=t.reduce((m,p)=>p(m),e());return n=oK(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=uK(f,n);return a(f,m),m};return o=l,(...f)=>o(cK(...f))},dK=[],Gt=e=>{const t=n=>n[e]||dK;return t.isThemeGetter=!0,t},m3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,p3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hK=/^\d+\/\d+$/,mK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pK=/\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$/,gK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sl=e=>hK.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),Qa=e=>!!e&&Number.isInteger(Number(e)),l0=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Vi=e=>mK.test(e),xK=()=>!0,bK=e=>pK.test(e)&&!gK.test(e),g3=()=>!1,wK=e=>vK.test(e),SK=e=>yK.test(e),jK=e=>!xe(e)&&!be(e),AK=e=>pu(e,x3,g3),xe=e=>m3.test(e),Ys=e=>pu(e,b3,bK),u0=e=>pu(e,CK,Ie),cT=e=>pu(e,v3,g3),OK=e=>pu(e,y3,SK),Th=e=>pu(e,w3,wK),be=e=>p3.test(e),wc=e=>gu(e,b3),EK=e=>gu(e,kK),fT=e=>gu(e,v3),NK=e=>gu(e,x3),TK=e=>gu(e,y3),Ch=e=>gu(e,w3,!0),pu=(e,t,n)=>{const r=m3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gu=(e,t,n=!1)=>{const r=p3.exec(e);return r?r[1]?t(r[1]):n:!1},v3=e=>e==="position"||e==="percentage",y3=e=>e==="image"||e==="url",x3=e=>e==="length"||e==="size"||e==="bg-size",b3=e=>e==="length",CK=e=>e==="number",kK=e=>e==="family-name",w3=e=>e==="shadow",MK=()=>{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"),y=Gt("text-shadow"),b=Gt("drop-shadow"),S=Gt("blur"),j=Gt("perspective"),A=Gt("aspect"),O=Gt("ease"),T=Gt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),be,xe],D=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],_=()=>[be,xe,f],B=()=>[Sl,"full","auto",..._()],K=()=>[Qa,"none","subgrid",be,xe],$=()=>["auto",{span:["full",Qa,be,xe]},Qa,be,xe],Z=()=>[Qa,"auto",be,xe],le=()=>["auto","min","max","fr",be,xe],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",..._()],W=()=>[Sl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],Y=()=>[e,be,xe],oe=()=>[...C(),fT,cT,{position:[be,xe]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",NK,AK,{size:[be,xe]}],F=()=>[l0,wc,Ys],ie=()=>["","none","full",h,be,xe],se=()=>["",Ie,wc,Ys],ye=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ie,l0,fT,cT],Xe=()=>["","none",S,be,xe],J=()=>["none",Ie,be,xe],Ce=()=>["none",Ie,be,xe],Pe=()=>[Ie,be,xe],ae=()=>[Sl,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vi],breakpoint:[Vi],color:[xK],container:[Vi],"drop-shadow":[Vi],ease:["in","out","in-out"],font:[jK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vi],shadow:[Vi],spacing:["px",Ie],text:[Vi],"text-shadow":[Vi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sl,xe,be,A]}],container:["container"],columns:[{columns:[Ie,xe,be,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Qa,"auto",be,xe]}],basis:[{basis:[Sl,"full","auto",c,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Sl,"auto","initial","none",xe]}],grow:[{grow:["",Ie,be,xe]}],shrink:[{shrink:["",Ie,be,xe]}],order:[{order:[Qa,"first","last","none",be,xe]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,wc,Ys]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,be,u0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",l0,xe]}],"font-family":[{font:[EK,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,be,xe]}],"line-clamp":[{"line-clamp":[Ie,"none",be,u0]}],leading:[{leading:[o,..._()]}],"list-image":[{"list-image":["none",be,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",be,Ys]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ie,"auto",be,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,xe]}],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",be,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qa,be,xe],radial:["",be,xe],conic:[Qa,be,xe]},TK,OK]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,be,xe]}],"outline-w":[{outline:["",Ie,wc,Ys]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",m,Ch,Th]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Ch,Th]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ie,Ys]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",y,Ch,Th]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ie,be,xe]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[be,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,xe]}],filter:[{filter:["","none",be,xe]}],blur:[{blur:Xe()}],brightness:[{brightness:[Ie,be,xe]}],contrast:[{contrast:[Ie,be,xe]}],"drop-shadow":[{"drop-shadow":["","none",b,Ch,Th]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ie,be,xe]}],"hue-rotate":[{"hue-rotate":[Ie,be,xe]}],invert:[{invert:["",Ie,be,xe]}],saturate:[{saturate:[Ie,be,xe]}],sepia:[{sepia:["",Ie,be,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,xe]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,be,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,be,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,be,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,be,xe]}],"backdrop-invert":[{"backdrop-invert":["",Ie,be,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,be,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,be,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,be,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",be,xe]}],ease:[{ease:["linear","initial",O,be,xe]}],delay:[{delay:[Ie,be,xe]}],animate:[{animate:["none",T,be,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,be,xe]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[be,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,xe]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",be,xe]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ie,wc,Ys,u0]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},S3=fK(MK);function ke(...e){return S3(Ze(e))}function PK(){const[e,t]=w.useState(!1),{notifications:n,unreadCount:r,markAsRead:a,markAllAsRead:o,clearAll:l,removeNotification:c}=ew(),f=w.useRef(null);w.useEffect(()=>{const p=y=>{f.current&&!f.current.contains(y.target)&&t(!1)};return e&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[e]);const h=p=>{switch(p){case"error":return g.jsx(Zr,{className:"text-red-500",size:16});case"warning":return g.jsx(v9,{className:"text-amber-500",size:16});case"success":return g.jsx(L_,{className:"text-green-500",size:16});default:return g.jsx(Ic,{className:"text-blue-500",size:16})}},m=p=>{const y=Date.now()-p,b=Math.floor(y/6e4),S=Math.floor(y/36e5);return b<1?"Just now":b<60?`${b}m ago`:S<24?`${S}h ago`:new Date(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(dm,{size:20}),r>0&&g.jsx(lt.span,{initial:{scale:0},animate:{scale:1},className:"absolute top-1.5 right-1.5 min-w-[16px] h-4 bg-red-500 rounded-full border-2 border-background text-[9px] font-black text-white flex items-center justify-center px-0.5",children:r>9?"9+":r})]}),g.jsx(ga,{children:e&&g.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-96 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[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(hU,{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(jo,{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(dm,{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(lt.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:ke("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:ke("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:y=>{y.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(xp,{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 _K(){const{notifications:e,removeNotification:t}=ew(),[n,r]=w.useState(new Set);w.useEffect(()=>{const o=Date.now();e.forEach(l=>{!l.read&&o-l.timestamp<5e3&&!n.has(l.id)&&(r(c=>new Set(c).add(l.id)),setTimeout(()=>{r(c=>{const f=new Set(c);return f.delete(l.id),f})},5e3))})},[e,n]);const 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(ga,{mode:"popLayout",children:a.map(o=>g.jsxs(lt.div,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,scale:.8,x:20},className:ke("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(H1,{size:18}),o.type==="error"&&g.jsx(Zr,{size:18}),o.type==="warning"&&g.jsx(Zr,{size:18}),o.type==="info"&&g.jsx(Ic,{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(xp,{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 DK(){var m;const[e,t]=w.useState(!1),{isAuthEnabled:n,logout:r}=Sp(),a=W1(),o=w.useRef(null),{data:l}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(p=>p.json()),refetchInterval:3e4});w.useEffect(()=>{const p=y=>{o.current&&!o.current.contains(y.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 y=Math.floor(p/3600),b=Math.floor(p%3600/60);return y>0?`${y}h ${b}m`:`${b}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(RE,{size:20})})]}),g.jsx(ga,{children:e&&g.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-72 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[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(RE,{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(V_,{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(Jr,{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(yp,{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(Y1,{size:18,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),g.jsx("span",{className:"text-sm font-semibold",children:"Settings"})]}),g.jsx(vp,{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($_,{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 RK({className:e,collapsed:t,toggleCollapse:n}){const r=As(),a=[{icon:U_,label:"Overview",path:"/"},{icon:Zn,label:"Pulse",path:"/pulse"},{icon:Qc,label:"Queues",path:"/queues"},{icon:Jr,label:"Schedules",path:"/schedules"},{icon:cb,label:"Workers",path:"/workers"},{icon:Y1,label:"Settings",path:"/settings"}];return g.jsxs("div",{className:ke("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(dD,{to:o.path,className:ke("w-full flex items-center gap-4 px-4 py-3 rounded-xl transition-all text-muted-foreground group/item relative overflow-hidden",c?"bg-primary text-primary-foreground shadow-lg shadow-primary/20 hover:scale-[1.02]":"hover:bg-muted font-medium hover:text-foreground active:scale-95"),children:[g.jsx(o.icon,{size:22,className:ke("transition-all shrink-0",c?"scale-110":"group-hover/item:scale-110")}),g.jsx(lt.span,{initial:!1,animate:{opacity:t?0:1,display:t?"none":"block"},className:"font-semibold whitespace-nowrap tracking-tight",children:o.label}),c&&g.jsx(lt.div,{layoutId:"active-pill",className:"absolute left-0 w-1 h-6 bg-primary-foreground rounded-r-full"})]},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(vp,{size:20}):g.jsxs("div",{className:"flex items-center gap-2 px-2",children:[g.jsx(z_,{size:18})," ",g.jsx("span",{className:"text-xs font-black uppercase tracking-widest",children:"Collapse Sidebar"})]})})})]})}function zK({children:e}){var W,Y,oe;const t=W1(),n=ma(),{isAuthEnabled:r,logout:a}=Sp(),[o,l]=w.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"light"),[c,f]=w.useState(!1),[h,m]=w.useState(""),[p,y]=w.useState(0),[b,S]=w.useState(99.9),[j,A]=w.useState({}),[O,T]=w.useState(!0);w.useEffect(()=>{fetch("/api/system/status").then(ne=>ne.json()).then(A).catch(()=>{})},[]),w.useEffect(()=>{console.log("[Zenith] Establishing Global Event Stream...");const ne=new EventSource("/api/logs/stream");return ne.addEventListener("log",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-log-update",{detail:F}))}catch(F){console.error("SSE Log Error",F)}}),ne.addEventListener("stats",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-stats-update",{detail:F}))}catch(F){console.error("SSE Stats Error",F)}}),ne.addEventListener("pulse",R=>{try{const F=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-pulse-update",{detail:F}))}catch(F){console.error("SSE Pulse Error",F)}}),ne.onerror=R=>{console.error("[Zenith] SSE Connection Error",R),ne.close()},()=>{console.log("[Zenith] Closing Global Event Stream"),ne.close()}},[]);const[N,C]=w.useState({queues:[]});w.useEffect(()=>{fetch("/api/queues").then(R=>R.json()).then(C).catch(()=>{});const ne=R=>{var ie;const F=R;(ie=F.detail)!=null&&ie.queues&&C({queues:F.detail.queues})};return window.addEventListener("flux-stats-update",ne),()=>window.removeEventListener("flux-stats-update",ne)},[]);const[k,D]=w.useState("");w.useEffect(()=>{const ne=setTimeout(()=>{h.length>=2?D(h):D("")},300);return()=>clearTimeout(ne)},[h]);const{data:M}=Nn({queryKey:["job-search",k],queryFn:async()=>{const[ne,R]=await Promise.all([fetch(`/api/search?q=${encodeURIComponent(k)}&limit=10`).then(F=>F.json()),fetch(`/api/archive/search?q=${encodeURIComponent(k)}&limit=10`).then(F=>F.json())]);return{results:ne.results||[],archiveResults:R.results||[]}},enabled:k.length>=2,staleTime:5e3});w.useEffect(()=>{const ne=window.document.documentElement;o==="dark"?ne.classList.add("dark"):ne.classList.remove("dark"),localStorage.setItem("theme",o)},[o]),w.useEffect(()=>{const ne=setInterval(()=>{S(R=>{const F=(Math.random()-.5)*.1;return Math.min(100,Math.max(98.5,R+F))})},3e3);return()=>clearInterval(ne)},[]);const _=()=>l(ne=>ne==="light"?"dark":"light"),B=async()=>{const ne=(N==null?void 0:N.queues)||[];for(const R of ne)R.failed>0&&await fetch(`/api/queues/${R.name}/retry-all-failed`,{method:"POST"});n.invalidateQueries({queryKey:["queues"]})},K=[{id:"nav-overview",title:"Go to Overview",description:"Navigate to system dashboard",icon:g.jsx(U_,{size:18}),category:"Navigation",action:()=>t("/")},{id:"nav-queues",title:"Go to Queues",description:"Manage processing queues",icon:g.jsx(Qc,{size:18}),category:"Navigation",action:()=>t("/queues")},{id:"nav-workers",title:"Go to Workers",description:"Monitor worker nodes",icon:g.jsx(cb,{size:18}),category:"Navigation",action:()=>t("/workers")},{id:"nav-metrics",title:"Go to Metrics",description:"View system analytics",icon:g.jsx(R_,{size:18}),category:"Navigation",action:()=>t("/metrics")},{id:"nav-settings",title:"Go to Settings",description:"Configure console preferences",icon:g.jsx(Y1,{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(ea,{size:18}),category:"Action",action:B},{id:"sys-theme",title:`Switch to ${o==="dark"?"Light":"Dark"} Mode`,description:"Toggle system visual appearance",icon:o==="dark"?g.jsx(db,{size:18}):g.jsx(fb,{size:18}),category:"System",action:_},...r?[{id:"sys-logout",title:"Logout",description:"Sign out from the console",icon:g.jsx($_,{size:18}),category:"System",action:a}]:[]],$=((N==null?void 0:N.queues)||[]).map(ne=>({id:`queue-${ne.name}`,title:`Queue: ${ne.name}`,description:`${ne.waiting} waiting, ${ne.failed} failed`,icon:g.jsx(Qc,{size:18}),category:"Navigation",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:ne.name}))},100)}})),Z=[{id:"act-clear-logs",title:"Clear All Logs",description:"Flush temporary log buffer in UI",icon:g.jsx(jo,{size:18}),category:"Action",action:()=>{window.dispatchEvent(new CustomEvent("clear-logs"))}}],le=w.useMemo(()=>{const ne=[...(M==null?void 0:M.results)||[],...((M==null?void 0:M.archiveResults)||[]).map(R=>({...R,_archived:!0}))];return ne.length?ne.slice(0,15).map(R=>({id:`job-${R._queue}-${R.id}-${R._archived?"arch":"live"}`,title:`Job: ${R.id||"Unknown"}`,description:`${R._queue} • ${R.status||R._type}${R._archived?" • ARCHIVED":""} • ${R.name||"No name"}`,icon:R._archived?g.jsx(cb,{size:18}):g.jsx(oU,{size:18}),category:"Action",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:R._queue})),R._archived&&window.dispatchEvent(new CustomEvent("inspect-job",{detail:{queue:R._queue,job:R}}))},100)}})):[]},[M,t]),me=[...K,...Z,...$,...le].filter(ne=>ne.title.toLowerCase().includes(h.toLowerCase())||ne.description.toLowerCase().includes(h.toLowerCase()));w.useEffect(()=>{const ne=R=>{(R.metaKey||R.ctrlKey)&&R.key==="k"&&(R.preventDefault(),f(F=>!F)),R.key==="Escape"&&f(!1)};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[]),w.useEffect(()=>{const ne=document.getElementById(`command-item-${p}`);ne&&ne.scrollIntoView({block:"nearest",behavior:"smooth"})},[p]);const q=ne=>{ne.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(lt.aside,{initial:!1,animate:{width:O?260:80},className:"border-r border-border/40 bg-card/50 backdrop-blur-xl flex flex-col z-50 transition-all duration-300 ease-[0.22, 1, 0.36, 1]",children:[g.jsx("div",{className:"h-16 flex items-center px-6 border-b border-border/40 bg-card/80",children:g.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0 shadow-lg shadow-primary/20",children:g.jsx(H_,{className:"text-primary-foreground fill-current",size:18})}),g.jsxs(lt.div,{animate:{opacity:O?1:0},className:"flex flex-col min-w-[140px]",children:[g.jsx("span",{className:"font-extrabold text-lg tracking-tight leading-none bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60",children:"Zenith"}),g.jsx("span",{className:"text-[9px] font-bold text-muted-foreground uppercase tracking-[0.2em]",children:"Control Plane"})]})]})}),g.jsx(RK,{collapsed:!O,toggleCollapse:()=>T(!O)})]}),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(uu,{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-1.5 rounded-full bg-primary/5 border border-primary/10 transition-all hover:bg-primary/10 hover:border-primary/20 cursor-default group",children:[g.jsxs("div",{className:"relative flex items-center justify-center",children:[g.jsx(c9,{size:14,className:"text-primary z-10"}),g.jsx("div",{className:"absolute w-3 h-3 bg-primary rounded-full glow-pulse"})]}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.1em] text-primary/60 leading-none",children:"System Integrity"}),g.jsxs("span",{className:"text-[11px] font-black tracking-tight leading-none",children:[b.toFixed(1),"% Nominal"]})]})]})]}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx("button",{type:"button",onClick:_,className:"p-2.5 hover:bg-muted rounded-xl text-muted-foreground hover:text-primary transition-all duration-300 active:scale-95 group relative",title:o==="light"?"Switch to Dark Mode":"Switch to Light Mode",children:o==="light"?g.jsx(fb,{size:20,className:"group-hover:rotate-[15deg] transition-transform"}):g.jsx(db,{size:20,className:"group-hover:rotate-90 transition-transform text-yellow-500"})}),g.jsx(PK,{}),g.jsx("div",{className:"h-8 w-[1px] bg-border/50"}),g.jsx(DK,{})]})]}),g.jsx("div",{className:"flex-1 overflow-y-auto p-8 scrollbar-thin",children:g.jsx(lt.div,{initial:{opacity:0,scale:.98,filter:"blur(10px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{duration:.8,ease:[.16,1,.3,1]},children:e})}),g.jsxs("footer",{className:"h-7 border-t bg-card/80 backdrop-blur-md flex items-center justify-between px-6 z-10 transition-colors",children:[g.jsxs("div",{className:"flex items-center gap-6 overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 border-r border-border/50 pr-4",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.4)]"}),g.jsxs("span",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest whitespace-nowrap",children:["Node: ",(j==null?void 0:j.env)||"production-east-1"]})]}),g.jsxs("div",{className:"flex items-center gap-4 text-[9px] font-black text-muted-foreground/40 uppercase tracking-[0.2em] animate-in fade-in slide-in-from-left duration-1000",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(Zn,{size:10,className:"text-primary/40"})," Latency: 4ms"]}),g.jsxs("span",{className:"hidden sm:inline border-l border-border/30 pl-4 text-primary",children:["RAM: ",((W=j==null?void 0:j.memory)==null?void 0:W.rss)||"..."," /"," ",((Y=j==null?void 0:j.memory)==null?void 0:Y.total)||"4.00 GB"]}),g.jsxs("span",{className:"hidden md:inline border-l border-border/30 pl-4 uppercase",children:["Engine: ",(j==null?void 0:j.engine)||"v2.4.1-beta"]}),g.jsxs("span",{className:"hidden lg:inline border-l border-border/30 pl-4 lowercase",children:["v: ",(j==null?void 0:j.node)||"..."]})]})]}),g.jsxs("div",{className:"flex items-center gap-4 pl-4 bg-gradient-to-l from-card via-card to-transparent text-right",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-8 h-1 bg-muted rounded-full overflow-hidden",children:g.jsx(lt.div,{animate:{x:[-20,20]},transition:{duration:2,repeat:1/0,ease:"linear"},className:"w-4 h-full bg-primary/40"})}),g.jsx("span",{className:"text-[9px] font-black text-primary/60 uppercase tracking-widest",children:"Bus Traffic"})]}),g.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60 tabular-nums lowercase",children:[((oe=new Date().toISOString().split("T")[1])==null?void 0:oe.split(".")[0])||""," utc"]})]})]})]}),g.jsx(ga,{children:c&&g.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-24 px-4",children:[g.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:()=>f(!1)}),g.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},className:"relative w-full max-w-2xl bg-card border-border/50 border rounded-3xl shadow-2xl overflow-hidden scanline",children:[g.jsxs("div",{className:"p-6 border-b flex items-center gap-4 bg-muted/5",children:[g.jsx(EU,{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:ne=>{m(ne.target.value),y(0)},onKeyDown:ne=>{ne.key==="ArrowDown"?(ne.preventDefault(),y(R=>(R+1)%me.length)):ne.key==="ArrowUp"?(ne.preventDefault(),y(R=>(R-1+me.length)%me.length)):ne.key==="Enter"&&me[p]&&q(me[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:me.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:me.map((ne,R)=>g.jsxs("button",{type:"button",id:`command-item-${R}`,className:ke("w-full flex items-center justify-between p-4 rounded-2xl transition-all cursor-pointer group/cmd outline-none",R===p?"bg-primary shadow-lg shadow-primary/20 -translate-x-1":"hover:bg-muted"),onClick:()=>q(ne),onMouseEnter:()=>y(R),children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:ke("w-10 h-10 rounded-xl flex items-center justify-center transition-colors",R===p?"bg-white/20 text-white":"bg-muted text-primary"),children:ne.icon}),g.jsxs("div",{children:[g.jsx("p",{className:ke("text-sm font-black tracking-tight",R===p?"text-white":"text-foreground"),children:ne.title}),g.jsx("p",{className:ke("text-[10px] font-bold uppercase tracking-widest opacity-60",R===p?"text-white/80":"text-muted-foreground"),children:ne.description})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:ke("text-[9px] font-black uppercase tracking-widest px-2 py-1 rounded-md",R===p?"bg-white/20 text-white":"bg-muted text-muted-foreground"),children:ne.category}),R===p&&g.jsx("kbd",{className:"bg-white/20 px-1.5 py-0.5 rounded text-[10px] text-white",children:"↵"})]})]},ne.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(_K,{})]})}function LK(){const{login:e}=Sp(),[t,n]=w.useState(""),[r,a]=w.useState(!1),[o,l]=w.useState(""),[c,f]=w.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(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative z-10 w-full max-w-md",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx(lt.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},className:"inline-flex items-center justify-center w-20 h-20 bg-gradient-to-br from-primary to-indigo-600 rounded-3xl shadow-2xl shadow-primary/30 mb-6",children:g.jsx(Zn,{size:40,className:"text-primary-foreground"})}),g.jsx("h1",{className:"text-4xl font-black tracking-tighter mb-2",children:"GRAVITO"}),g.jsx("p",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.4em]",children:"Flux Console"})]}),g.jsxs("div",{className:"card-premium p-8 backdrop-blur-xl",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx("h2",{className:"text-xl font-bold mb-2",children:"Welcome Back"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your password to access the console"})]}),g.jsxs("form",{onSubmit:h,className:"space-y-6",children:[o&&g.jsxs(lt.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-3 p-4 bg-red-500/10 border border-red-500/20 rounded-xl text-red-500",children:[g.jsx(Zr,{size:18}),g.jsx("span",{className:"text-sm font-medium",children:o})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{htmlFor:"password",className:"text-sm font-bold text-muted-foreground uppercase tracking-widest",children:"Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(KU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),g.jsx("input",{id:"password",type:r?"text":"password",value:t,onChange:m=>n(m.target.value),placeholder:"Enter console password",className:ke("w-full bg-muted/40 border border-border/50 rounded-xl py-4 pl-12 pr-12","text-sm font-medium placeholder:text-muted-foreground/40","focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary/50","transition-all"),disabled:c}),g.jsx("button",{type:"button",onClick:()=>a(!r),className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:r?g.jsx(PU,{size:18}):g.jsx(DU,{size:18})})]})]}),g.jsx("button",{type:"submit",disabled:c||!t,className:ke("w-full py-4 rounded-xl font-bold text-sm uppercase tracking-widest","bg-gradient-to-r from-primary to-indigo-600 text-primary-foreground","shadow-lg shadow-primary/30 hover:shadow-xl hover:shadow-primary/40","transition-all duration-300 hover:scale-[1.02] active:scale-[0.98]","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100","flex items-center justify-center gap-2"),children:c?g.jsx("div",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):g.jsxs(g.Fragment,{children:["Access Console",g.jsx(Nf,{size:18})]})})]})]}),g.jsx("p",{className:"text-center mt-6 text-xs text-muted-foreground/50",children:"Protected by Gravito Security Layer"})]})]})}var IK=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Lw(e){if(typeof e!="string")return!1;var t=IK;return t.includes(e)}var BK=["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"],UK=new Set(BK);function j3(e){return typeof e!="string"?!1:UK.has(e)}function A3(e){return typeof e=="string"&&e.startsWith("data-")}function Rr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(j3(n)||A3(n))&&(t[n]=e[n]);return t}function zf(e){if(e==null)return null;if(w.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Rr(t)}return typeof e=="object"&&!Array.isArray(e)?Rr(e):null}function Ln(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(j3(n)||A3(n)||Lw(n))&&(t[n]=e[n]);return t}function $K(e){return e==null?null:w.isValidElement(e)?Ln(e.props):typeof e=="object"&&!Array.isArray(e)?Ln(e):null}var qK=["children","width","height","viewBox","className","style","title","desc"];function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ib.apply(null,arguments)}function VK(e,t){if(e==null)return{};var n,r,a=FK(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 FK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Iw=w.forwardRef((e,t)=>{var{children:n,width:r,height:a,viewBox:o,className:l,style:c,title:f,desc:h}=e,m=VK(e,qK),p=o||{width:r,height:a,x:0,y:0},y=Ze("recharts-surface",l);return w.createElement("svg",Ib({},Ln(m),{className:y,width:r,height:a,style:c,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),w.createElement("title",null,f),w.createElement("desc",null,h),n)}),HK=["children","className"];function Bb(){return Bb=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},Bb.apply(null,arguments)}function KK(e,t){if(e==null)return{};var n,r,a=YK(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 YK(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 In=w.forwardRef((e,t)=>{var{children:n,className:r}=e,a=KK(e,HK),o=Ze("recharts-layer",r);return w.createElement("g",Bb({className:o},Ln(a),{ref:t}),n)}),O3=w.createContext(null),GK=()=>w.useContext(O3);function dt(e){return function(){return e}}const E3=Math.cos,wm=Math.sin,ii=Math.sqrt,Sm=Math.PI,Tp=2*Sm,Ub=Math.PI,$b=2*Ub,Ws=1e-6,WK=$b-Ws;function N3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function XK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return N3;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 QK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?N3:XK(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,y=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Ws)if(!(Math.abs(p*f-h*m)>Ws)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,S=a-c,j=f*f+h*h,A=b*b+S*S,O=Math.sqrt(j),T=Math.sqrt(y),N=o*Math.tan((Ub-Math.acos((j+y-A)/(2*O*T)))/2),C=N/T,k=N/O;Math.abs(C-1)>Ws&&this._append`L${t+C*m},${n+C*p}`,this._append`A${o},${o},0,0,${+(p*b>m*S)},${this._x1=t+k*f},${this._y1=n+k*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,y=l?a-o:o-a;this._x1===null?this._append`M${h},${m}`:(Math.abs(this._x1-h)>Ws||Math.abs(this._y1-m)>Ws)&&this._append`L${h},${m}`,r&&(y<0&&(y=y%$b+$b),y>WK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=h},${this._y1=m}`:y>Ws&&this._append`A${r},${r},0,${+(y>=Ub)},${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 Bw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new QK(t)}function Uw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function T3(e){this._context=e}T3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Cp(e){return new T3(e)}function C3(e){return e[0]}function k3(e){return e[1]}function M3(e,t){var n=dt(!0),r=null,a=Cp,o=null,l=Bw(c);e=typeof e=="function"?e:e===void 0?C3:dt(e),t=typeof t=="function"?t:t===void 0?k3:dt(t);function c(f){var h,m=(f=Uw(f)).length,p,y=!1,b;for(r==null&&(o=a(b=l())),h=0;h<=m;++h)!(h<m&&n(p=f[h],h,f))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(p,h,f),+t(p,h,f));if(b)return o=null,b+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:dt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:dt(!!f),c):n},c.curve=function(f){return arguments.length?(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 kh(e,t,n){var r=null,a=dt(!0),o=null,l=Cp,c=null,f=Bw(h);e=typeof e=="function"?e:e===void 0?C3:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?k3:dt(+n);function h(p){var y,b,S,j=(p=Uw(p)).length,A,O=!1,T,N=new Array(j),C=new Array(j);for(o==null&&(c=l(T=f())),y=0;y<=j;++y){if(!(y<j&&a(A=p[y],y,p))===O)if(O=!O)b=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=y-1;S>=b;--S)c.point(N[S],C[S]);c.lineEnd(),c.areaEnd()}O&&(N[y]=+e(A,y,p),C[y]=+t(A,y,p),c.point(r?+r(A,y,p):N[y],n?+n(A,y,p):C[y]))}if(T)return c=null,T+""||null}function m(){return M3().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 P3{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 ZK(e){return new P3(e,!0)}function JK(e){return new P3(e,!1)}const $w={draw(e,t){const n=ii(t/Sm);e.moveTo(n,0),e.arc(0,0,n,0,Tp)}},eY={draw(e,t){const n=ii(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()}},_3=ii(1/3),tY=_3*2,nY={draw(e,t){const n=ii(t/tY),r=n*_3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rY={draw(e,t){const n=ii(t),r=-n/2;e.rect(r,r,n,n)}},iY=.8908130915292852,D3=wm(Sm/10)/wm(7*Sm/10),aY=wm(Tp/10)*D3,sY=-E3(Tp/10)*D3,oY={draw(e,t){const n=ii(t*iY),r=aY*n,a=sY*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=Tp*o/5,c=E3(l),f=wm(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},c0=ii(3),lY={draw(e,t){const n=-ii(t/(c0*3));e.moveTo(0,n*2),e.lineTo(-c0*n,-n),e.lineTo(c0*n,-n),e.closePath()}},Or=-.5,Er=ii(3)/2,qb=1/ii(12),uY=(qb/2+1)*3,cY={draw(e,t){const n=ii(t/uY),r=n/2,a=n*qb,o=r,l=n*qb+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Or*r-Er*a,Er*r+Or*a),e.lineTo(Or*o-Er*l,Er*o+Or*l),e.lineTo(Or*c-Er*f,Er*c+Or*f),e.lineTo(Or*r+Er*a,Or*a-Er*r),e.lineTo(Or*o+Er*l,Or*l-Er*o),e.lineTo(Or*c+Er*f,Or*f-Er*c),e.closePath()}};function fY(e,t){let n=null,r=Bw(a);e=typeof e=="function"?e:dt(e||$w),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 jm(){}function Am(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function R3(e){this._context=e}R3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Am(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dY(e){return new R3(e)}function z3(e){this._context=e}z3.prototype={areaStart:jm,areaEnd:jm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hY(e){return new z3(e)}function L3(e){this._context=e}L3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mY(e){return new L3(e)}function I3(e){this._context=e}I3.prototype={areaStart:jm,areaEnd:jm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pY(e){return new I3(e)}function dT(e){return e<0?-1:1}function hT(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(dT(o)+dT(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function mT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function f0(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 Om(e){this._context=e}Om.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:f0(this,this._t0,mT(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,f0(this,mT(this,n=hT(this,e,t)),n);break;default:f0(this,this._t0,n=hT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function B3(e){this._context=new U3(e)}(B3.prototype=Object.create(Om.prototype)).point=function(e,t){Om.prototype.point.call(this,t,e)};function U3(e){this._context=e}U3.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 gY(e){return new Om(e)}function vY(e){return new B3(e)}function $3(e){this._context=e}$3.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=pT(e),a=pT(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 pT(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 yY(e){return new $3(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xY(e){return new kp(e,.5)}function bY(e){return new kp(e,0)}function wY(e){return new kp(e,1)}function Ao(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 Vb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function SY(e,t){return e[t]}function jY(e){const t=[];return t.key=e,t}function AY(){var e=dt([]),t=Vb,n=Ao,r=SY;function a(o){var l=Array.from(e.apply(this,arguments),jY),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=Uw(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?Vb:typeof o=="function"?o:dt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Ao,a):n},a}function OY(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}Ao(e,t)}}function EY(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}Ao(e,t)}}function NY(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,y=m[r-1][1]||0,b=(p-y)/2,S=0;S<c;++S){var j=e[t[S]],A=j[r][1]||0,O=j[r-1][1]||0;b+=A-O}f+=p,h+=b*p}a[r-1][1]+=a[r-1][0]=n,f&&(n-=h/f)}a[r-1][1]+=a[r-1][0]=n,Ao(e,t)}}var d0={},h0={},gT;function TY(){return gT||(gT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(h0)),h0}var m0={},vT;function q3(){return vT||(vT=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})(m0)),m0}var p0={},yT;function qw(){return yT||(yT=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})(p0)),p0}var g0={},v0={},xT;function CY(){return xT||(xT=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})(v0)),v0}var bT;function Vw(){return bT||(bT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CY(),n=qw();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})(g0)),g0}var wT;function Fw(){return wT||(wT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TY(),n=q3(),r=qw(),a=Vw();function o(c,f,h){if(c==null)return h;switch(typeof f){case"string":{if(t.isUnsafeProperty(f))return h;const m=c[f];return m===void 0?n.isDeepKey(f)?o(c,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})(d0)),d0}var y0,ST;function kY(){return ST||(ST=1,y0=Fw().get),y0}var MY=kY();const Jl=Si(MY);var PY=4;function ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:PY,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((a,o,l)=>{var c=n[l-1];return typeof c=="string"?a+c+o:c!==void 0?a+ps(c)+o:a+o},"")}var Xn=e=>e===0?0:e>0?1:-1,zr=e=>typeof e=="number"&&e!=+e,oa=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!zr(e),xi=e=>he(e)||typeof e=="string",_Y=0,sf=e=>{var t=++_Y;return"".concat(e||"").concat(t)},ni=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(oa(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},V3=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function wt(e,t,n){return he(e)&&he(t)?ps(e+n*(t-e)):t}function F3(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Jl(r,t))===n)}var jt=e=>e===null||typeof e>"u",Lf=e=>jt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function DY(e){return e!=null}function If(){}var RY=["type","size","sizeType"];function Fb(){return Fb=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},Fb.apply(null,arguments)}function jT(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 AT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){zY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zY(e,t,n){return(t=LY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LY(e){var t=IY(e,"string");return typeof t=="symbol"?t:t+""}function IY(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 BY(e,t){if(e==null)return{};var n,r,a=UY(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 UY(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 H3={symbolCircle:$w,symbolCross:eY,symbolDiamond:nY,symbolSquare:rY,symbolStar:oY,symbolTriangle:lY,symbolWye:cY},$Y=Math.PI/180,qY=e=>{var t="symbol".concat(Lf(e));return H3[t]||$w},VY=(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*$Y;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}},FY=(e,t)=>{H3["symbol".concat(Lf(e))]=t},Hw=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,a=BY(e,RY),o=AT(AT({},a),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var c=()=>{var y=qY(l),b=fY().type(y).size(VY(n,r,l)),S=b();if(S!==null)return S},{className:f,cx:h,cy:m}=o,p=Ln(o);return he(h)&&he(m)&&he(n)?w.createElement("path",Fb({},p,{className:Ze("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:c()})):null};Hw.registerSymbol=FY;var K3=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Kw=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(w.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(a=>{Lw(a)&&(r[a]=(o=>n[a](n,o)))}),r},HY=(e,t,n)=>r=>(e(t,n,r),null),Mp=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var o=e[a];Lw(a)&&typeof o=="function"&&(r||(r={}),r[a]=HY(o,t,n))}),r};function OT(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 KY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(n),!0).forEach(function(r){YY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YY(e,t,n){return(t=GY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(e){var t=WY(e,"string");return typeof t=="symbol"?t:t+""}function WY(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=KY({},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 Em(){return Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Em.apply(null,arguments)}function ET(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 XY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ET(Object(n),!0).forEach(function(r){QY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ET(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QY(e,t,n){return(t=ZY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=JY(e,"string");return typeof t=="symbol"?t:t+""}function JY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cr=32,eG={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function tG(e){var{data:t,iconType:n,inactiveColor:r}=e,a=Cr/2,o=Cr/6,l=Cr/3,c=t.inactive?r:t.color,f=n??t.type;if(f==="none")return null;if(f==="plainline"){var h;return w.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:(h=t.payload)===null||h===void 0?void 0:h.strokeDasharray,x1:0,y1:a,x2:Cr,y2:a,className:"recharts-legend-icon"})}if(f==="line")return w.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(Cr,"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 w.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Cr/8,"h").concat(Cr,"v").concat(Cr*3/4,"h").concat(-Cr,"z"),className:"recharts-legend-icon"});if(w.isValidElement(t.legendIcon)){var m=XY({},t);return delete m.legendIcon,w.cloneElement(t.legendIcon,m)}return w.createElement(Hw,{fill:c,cx:a,cy:a,size:Cr,sizeType:"diameter",type:f})}function nG(e){var{payload:t,iconSize:n,layout:r,formatter:a,inactiveColor:o,iconType:l}=e,c={x:0,y:0,width:Cr,height:Cr},f={display:r==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((m,p)=>{var y=m.formatter||a,b=Ze({"recharts-legend-item":!0,["legend-item-".concat(p)]:!0,inactive:m.inactive});if(m.type==="none")return null;var S=m.inactive?o:m.color,j=y?y(m.value,m,p):m.value;return w.createElement("li",Em({className:b,style:f,key:"legend-item-".concat(p)},Mp(e,m,p)),w.createElement(Iw,{width:n,height:n,viewBox:c,style:h,"aria-label":"".concat(j," legend icon")},w.createElement(tG,{data:m,iconType:l,inactiveColor:o})),w.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},j))})}var rG=e=>{var t=Sn(e,eG),{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 w.createElement("ul",{className:"recharts-default-legend",style:o},w.createElement(nG,Em({},t,{payload:n})))},x0={},b0={},NT;function iG(){return NT||(NT=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);a.has(c)||a.set(c,l)}return Array.from(a.values())}e.uniqBy=t})(b0)),b0}var w0={},TT;function Y3(){return TT||(TT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(w0)),w0}var S0={},j0={},A0={},CT;function aG(){return CT||(CT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(A0)),A0}var kT;function Yw(){return kT||(kT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aG();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(j0)),j0}var O0={},MT;function sG(){return MT||(MT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(O0)),O0}var PT;function oG(){return PT||(PT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yw(),n=sG();function r(a){return n.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=r})(S0)),S0}var E0={},N0={},_T;function lG(){return _T||(_T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fw();function n(r){return function(a){return t.get(a,r)}}e.property=n})(N0)),N0}var T0={},C0={},k0={},M0={},DT;function G3(){return DT||(DT=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})(M0)),M0}var P0={},RT;function W3(){return RT||(RT=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})(P0)),P0}var _0={},zT;function X3(){return zT||(zT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(_0)),_0}var LT;function uG(){return LT||(LT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G3(),n=W3(),r=X3();function a(m,p,y){return typeof y!="function"?a(m,p,()=>{}):o(m,p,function b(S,j,A,O,T,N){const C=y(S,j,A,O,T,N);return C!==void 0?!!C:o(S,j,b,N)},new Map)}function o(m,p,y,b){if(p===m)return!0;switch(typeof p){case"object":return l(m,p,y,b);case"function":return Object.keys(p).length>0?o(m,{...p},y,b):r.eq(m,p);default:return t.isObject(m)?typeof p=="string"?p==="":!0:r.eq(m,p)}}function l(m,p,y,b){if(p==null)return!0;if(Array.isArray(p))return f(m,p,y,b);if(p instanceof Map)return c(m,p,y,b);if(p instanceof Set)return h(m,p,y,b);const S=Object.keys(p);if(m==null||n.isPrimitive(m))return S.length===0;if(S.length===0)return!0;if(b!=null&&b.has(p))return b.get(p)===m;b==null||b.set(p,m);try{for(let j=0;j<S.length;j++){const A=S[j];if(!n.isPrimitive(m)&&!(A in m)||p[A]===void 0&&m[A]!==void 0||p[A]===null&&m[A]!==null||!y(m[A],p[A],A,m,p,b))return!1}return!0}finally{b==null||b.delete(p)}}function c(m,p,y,b){if(p.size===0)return!0;if(!(m instanceof Map))return!1;for(const[S,j]of p.entries()){const A=m.get(S);if(y(A,j,S,m,p,b)===!1)return!1}return!0}function f(m,p,y,b){if(p.length===0)return!0;if(!Array.isArray(m))return!1;const S=new Set;for(let j=0;j<p.length;j++){const A=p[j];let O=!1;for(let T=0;T<m.length;T++){if(S.has(T))continue;const N=m[T];let C=!1;if(y(N,A,j,m,p,b)&&(C=!0),C){S.add(T),O=!0;break}}if(!O)return!1}return!0}function h(m,p,y,b){return p.size===0?!0:m instanceof Set?f([...m],[...p],y,b):!1}e.isMatchWith=a,e.isSetMatch=h})(k0)),k0}var IT;function Q3(){return IT||(IT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uG();function n(r,a){return t.isMatchWith(r,a,()=>{})}e.isMatch=n})(C0)),C0}var D0={},R0={},z0={},BT;function cG(){return BT||(BT=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})(z0)),z0}var L0={},UT;function Z3(){return UT||(UT=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})(L0)),L0}var I0={},$T;function J3(){return $T||($T=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]",y="[object ArrayBuffer]",b="[object Object]",S="[object Error]",j="[object DataView]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",C="[object BigUint64Array]",k="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",_="[object BigInt64Array]",B="[object Float32Array]",K="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=y,e.arrayTag=m,e.bigInt64ArrayTag=_,e.bigUint64ArrayTag=C,e.booleanTag=a,e.dataViewTag=j,e.dateTag=c,e.errorTag=S,e.float32ArrayTag=B,e.float64ArrayTag=K,e.functionTag=p,e.int16ArrayTag=D,e.int32ArrayTag=M,e.int8ArrayTag=k,e.mapTag=f,e.numberTag=r,e.objectTag=b,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=T,e.uint32ArrayTag=N,e.uint8ArrayTag=A,e.uint8ClampedArrayTag=O})(I0)),I0}var B0={},qT;function fG(){return qT||(qT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(B0)),B0}var VT;function eR(){return VT||(VT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cG(),n=Z3(),r=J3(),a=W3(),o=fG();function l(m,p){return c(m,void 0,m,new Map,p)}function c(m,p,y,b=new Map,S=void 0){const j=S==null?void 0:S(m,p,y,b);if(j!==void 0)return j;if(a.isPrimitive(m))return m;if(b.has(m))return b.get(m);if(Array.isArray(m)){const A=new Array(m.length);b.set(m,A);for(let O=0;O<m.length;O++)A[O]=c(m[O],O,y,b,S);return Object.hasOwn(m,"index")&&(A.index=m.index),Object.hasOwn(m,"input")&&(A.input=m.input),A}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const A=new RegExp(m.source,m.flags);return A.lastIndex=m.lastIndex,A}if(m instanceof Map){const A=new Map;b.set(m,A);for(const[O,T]of m)A.set(O,c(T,O,y,b,S));return A}if(m instanceof Set){const A=new Set;b.set(m,A);for(const O of m)A.add(c(O,void 0,y,b,S));return A}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const A=new(Object.getPrototypeOf(m)).constructor(m.length);b.set(m,A);for(let O=0;O<m.length;O++)A[O]=c(m[O],O,y,b,S);return A}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const A=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return b.set(m,A),f(A,m,y,b,S),A}if(typeof File<"u"&&m instanceof File){const A=new File([m],m.name,{type:m.type});return b.set(m,A),f(A,m,y,b,S),A}if(typeof Blob<"u"&&m instanceof Blob){const A=new Blob([m],{type:m.type});return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof Error){const A=new m.constructor;return b.set(m,A),A.message=m.message,A.name=m.name,A.stack=m.stack,A.cause=m.cause,f(A,m,y,b,S),A}if(m instanceof Boolean){const A=new Boolean(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof Number){const A=new Number(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(m instanceof String){const A=new String(m.valueOf());return b.set(m,A),f(A,m,y,b,S),A}if(typeof m=="object"&&h(m)){const A=Object.create(Object.getPrototypeOf(m));return b.set(m,A),f(A,m,y,b,S),A}return m}function f(m,p,y=m,b,S){const j=[...Object.keys(p),...t.getSymbols(p)];for(let A=0;A<j.length;A++){const O=j[A],T=Object.getOwnPropertyDescriptor(m,O);(T==null||T.writable)&&(m[O]=c(p[O],O,y,b,S))}}function h(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=c,e.copyProperties=f})(R0)),R0}var FT;function dG(){return FT||(FT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eR();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(D0)),D0}var HT;function hG(){return HT||(HT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Q3(),n=dG();function r(a){return a=n.cloneDeep(a),o=>t.isMatch(o,a)}e.matches=r})(T0)),T0}var U0={},$0={},q0={},KT;function mG(){return KT||(KT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eR(),n=J3();function r(a,o){return t.cloneDeepWith(a,(l,c,f,h)=>{const m=o==null?void 0:o(l,c,f,h);if(m!==void 0)return m;if(typeof a=="object")switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(p,a),p}case n.argumentsTag:{const p={};return t.copyProperties(p,a),p.length=a.length,p[Symbol.iterator]=a[Symbol.iterator],p}default:return}})}e.cloneDeepWith=r})(q0)),q0}var YT;function pG(){return YT||(YT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mG();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})($0)),$0}var V0={},F0={},GT;function tR(){return GT||(GT=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})(F0)),F0}var H0={},WT;function gG(){return WT||(WT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z3();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(H0)),H0}var XT;function vG(){return XT||(XT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q3(),n=tR(),r=gG(),a=Vw();function o(l,c){let f;if(Array.isArray(c)?f=c:typeof c=="string"&&t.isDeepKey(c)&&(l==null?void 0:l[c])==null?f=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})(V0)),V0}var QT;function yG(){return QT||(QT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Q3(),n=qw(),r=pG(),a=Fw(),o=vG();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})(U0)),U0}var ZT;function xG(){return ZT||(ZT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Y3(),n=lG(),r=hG(),a=yG();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})(E0)),E0}var JT;function bG(){return JT||(JT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iG(),n=Y3(),r=oG(),a=xG();function o(l,c=n.identity){return r.isArrayLikeObject(l)?t.uniqBy(Array.from(l),a.iteratee(c)):[]}e.uniqBy=o})(x0)),x0}var K0,eC;function wG(){return eC||(eC=1,K0=bG().uniqBy),K0}var SG=wG();const tC=Si(SG);function nR(e,t,n){return t===!0?tC(e,n):typeof t=="function"?tC(e,t):e}var Y0={exports:{}},G0={},W0={exports:{}},X0={};/**
|
|
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 nC;function jG(){if(nC)return X0;nC=1;var e=lu();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(p,y){var b=y(),S=r({inst:{value:b,getSnapshot:y}}),j=S[0].inst,A=S[1];return o(function(){j.value=b,j.getSnapshot=y,f(j)&&A({inst:j})},[p,b,y]),a(function(){return f(j)&&A({inst:j}),p(function(){f(j)&&A({inst:j})})},[p]),l(b),b}function f(p){var y=p.getSnapshot;p=p.value;try{var b=y();return!n(p,b)}catch{return!0}}function h(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return X0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,X0}var rC;function AG(){return rC||(rC=1,W0.exports=jG()),W0.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 iC;function OG(){if(iC)return G0;iC=1;var e=lu(),t=AG();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 G0.useSyncExternalStoreWithSelector=function(h,m,p,y,b){var S=o(null);if(S.current===null){var j={hasValue:!1,value:null};S.current=j}else j=S.current;S=c(function(){function O(D){if(!T){if(T=!0,N=D,D=y(D),b!==void 0&&j.hasValue){var M=j.value;if(b(M,D))return C=M}return C=D}if(M=C,r(N,D))return M;var _=y(D);return b!==void 0&&b(M,_)?(N=D,M):(N=D,C=_)}var T=!1,N,C,k=p===void 0?null:p;return[function(){return O(m())},k===null?void 0:function(){return O(k())}]},[m,p,y,b]);var A=a(h,S[0],S[1]);return l(function(){j.hasValue=!0,j.value=A},[A]),f(A),A},G0}var aC;function EG(){return aC||(aC=1,Y0.exports=OG()),Y0.exports}var NG=EG(),Gw=w.createContext(null),TG=e=>e,At=()=>{var e=w.useContext(Gw);return e?e.store.dispatch:TG},nm=()=>{},CG=()=>nm,kG=(e,t)=>e===t;function Se(e){var t=w.useContext(Gw);return NG.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:CG,t?t.store.getState:nm,t?t.store.getState:nm,t?e:nm,kG)}function MG(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function PG(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _G(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 sC=e=>Array.isArray(e)?e:[e];function DG(e){const t=Array.isArray(e[0])?e[0]:e;return _G(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function RG(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var zG=class{constructor(e){this.value=e}deref(){return this.value}},LG=typeof WeakRef<"u"?WeakRef:zG,IG=0,oC=1;function Mh(){return{s:IG,v:void 0,o:null,p:null}}function rR(e,t={}){let n=Mh();const{resultEqualityCheck:r}=t;let a,o=0;function l(){var p;let c=n;const{length:f}=arguments;for(let y=0,b=f;y<b;y++){const S=arguments[y];if(typeof S=="function"||typeof S=="object"&&S!==null){let j=c.o;j===null&&(c.o=j=new WeakMap);const A=j.get(S);A===void 0?(c=Mh(),j.set(S,c)):c=A}else{let j=c.p;j===null&&(c.p=j=new Map);const A=j.get(S);A===void 0?(c=Mh(),j.set(S,c)):c=A}}const h=c;let m;if(c.s===oC)m=c.v;else if(m=e.apply(null,arguments),o++,r){const y=((p=a==null?void 0:a.deref)==null?void 0:p.call(a))??a;y!=null&&r(y,m)&&(m=y,o!==0&&o--),a=typeof m=="object"&&m!==null||typeof m=="function"?new LG(m):m}return h.s=oC,h.v=m,m}return l.clearCache=()=>{n=Mh(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function BG(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()),MG(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const m={...n,...f},{memoize:p,memoizeOptions:y=[],argsMemoize:b=rR,argsMemoizeOptions:S=[]}=m,j=sC(y),A=sC(S),O=DG(a),T=p(function(){return o++,h.apply(null,arguments)},...j),N=b(function(){l++;const k=RG(O,arguments);return c=T.apply(null,k),c},...A);return Object.assign(N,{resultFunc:h,memoizedResultFunc:T,dependencies:O,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var X=BG(rR),UG=Object.assign((e,t=X)=>{PG(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:()=>UG}),Q0={},Z0={},J0={},lC;function $G(){return lC||(lC=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})(J0)),J0}var ex={},tx={},uC;function iR(){return uC||(uC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(tx)),tx}var cC;function qG(){return cC||(cC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iR(),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})(ex)),ex}var fC;function VG(){return fC||(fC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$G(),n=qG(),r=Vw();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(b=>String(b));const h=(b,S)=>{let j=b;for(let A=0;A<S.length&&j!=null;++A)j=j[S[A]];return j},m=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:h(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?h(S,b):typeof S=="object"?S[b]:S,p=l.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||n.isKey(b)?b:{key:b,path:r.toPath(b)}));return o.map(b=>({original:b,criteria:p.map(S=>m(S,b))})).slice().sort((b,S)=>{for(let j=0;j<p.length;j++){const A=t.compareValues(b.criteria[j],S.criteria[j],c[j]);if(A!==0)return A}return 0}).map(b=>b.original)}e.orderBy=a})(Z0)),Z0}var nx={},dC;function FG(){return dC||(dC=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})(nx)),nx}var rx={},hC;function aR(){return hC||(hC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tR(),n=Yw(),r=G3(),a=X3();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.eq(f[c],l):!1}e.isIterateeCall=o})(rx)),rx}var mC;function HG(){return mC||(mC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VG(),n=FG(),r=aR();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})(Q0)),Q0}var ix,pC;function KG(){return pC||(pC=1,ix=HG().sortBy),ix}var YG=KG();const Pp=Si(YG);var sR=e=>e.legend.settings,GG=e=>e.legend.size,WG=e=>e.legend.payload,XG=X([WG,sR],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Pp(r,n):r});function QG(){return Se(XG)}var Ph=1;function oR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=w.useState({height:0,left:0,top:0,width:0}),r=w.useCallback(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)>Ph||Math.abs(l.left-t.left)>Ph||Math.abs(l.top-t.top)>Ph||Math.abs(l.width-t.width)>Ph)&&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 ZG=typeof Symbol=="function"&&Symbol.observable||"@@observable",gC=ZG,ax=()=>Math.random().toString(36).substring(7).split("").join("."),JG={INIT:`@@redux/INIT${ax()}`,REPLACE:`@@redux/REPLACE${ax()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ax()}`},Nm=JG;function Ww(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lR(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(lR)(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((A,O)=>{l.set(O,A)}))}function m(){if(f)throw new Error(yn(3));return a}function p(A){if(typeof A!="function")throw new Error(yn(4));if(f)throw new Error(yn(5));let O=!0;h();const T=c++;return l.set(T,A),function(){if(O){if(f)throw new Error(yn(6));O=!1,h(),l.delete(T),o=null}}}function y(A){if(!Ww(A))throw new Error(yn(7));if(typeof A.type>"u")throw new Error(yn(8));if(typeof A.type!="string")throw new Error(yn(17));if(f)throw new Error(yn(9));try{f=!0,a=r(a,A)}finally{f=!1}return(o=l).forEach(T=>{T()}),A}function b(A){if(typeof A!="function")throw new Error(yn(10));r=A,y({type:Nm.REPLACE})}function S(){const A=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(yn(11));function T(){const C=O;C.next&&C.next(m())}return T(),{unsubscribe:A(T)}},[gC](){return this}}}return y({type:Nm.INIT}),{dispatch:y,subscribe:p,getState:m,replaceReducer:b,[gC]:S}}function eW(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Nm.INIT})>"u")throw new Error(yn(12));if(typeof n(void 0,{type:Nm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yn(13))})}function uR(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{eW(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],y=n[p],b=l[p],S=y(b,c);if(typeof S>"u")throw c&&c.type,new Error(yn(14));h[p]=S,f=f||S!==b}return f=f||r.length!==Object.keys(l).length,f?h:l}}function Tm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function tW(...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=Tm(...c)(a.dispatch),{...a,dispatch:o}}}function cR(e){return Ww(e)&&"type"in e&&typeof e.type=="string"}var fR=Symbol.for("immer-nothing"),vC=Symbol.for("immer-draftable"),Bn=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fr=Object,eu=fr.getPrototypeOf,Cm="constructor",_p="prototype",Hb="configurable",km="enumerable",rm="writable",of="value",la=e=>!!e&&!!e[Bn];function ri(e){var t;return e?dR(e)||Rp(e)||!!e[vC]||!!((t=e[Cm])!=null&&t[vC])||zp(e)||Lp(e):!1}var nW=fr[_p][Cm].toString(),yC=new WeakMap;function dR(e){if(!e||!Xw(e))return!1;const t=eu(e);if(t===null||t===fr[_p])return!0;const n=fr.hasOwnProperty.call(t,Cm)&&t[Cm];if(n===Object)return!0;if(!Tl(n))return!1;let r=yC.get(n);return r===void 0&&(r=Function.toString.call(n),yC.set(n,r)),r===nW}function Dp(e,t,n=!0){Bf(e)===0?(n?Reflect.ownKeys(e):fr.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Bf(e){const t=e[Bn];return t?t.type_:Rp(e)?1:zp(e)?2:Lp(e)?3:0}var xC=(e,t,n=Bf(e))=>n===2?e.has(t):fr[_p].hasOwnProperty.call(e,t),Kb=(e,t,n=Bf(e))=>n===2?e.get(t):e[t],Mm=(e,t,n,r=Bf(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function rW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Rp=Array.isArray,zp=e=>e instanceof Map,Lp=e=>e instanceof Set,Xw=e=>typeof e=="object",Tl=e=>typeof e=="function",sx=e=>typeof e=="boolean";function iW(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Hi=e=>e.copy_||e.base_,Qw=e=>e.modified_?e.copy_:e.base_;function Yb(e,t){if(zp(e))return new Map(e);if(Lp(e))return new Set(e);if(Rp(e))return Array[_p].slice.call(e);const n=dR(e);if(t===!0||t==="class_only"&&!n){const r=fr.getOwnPropertyDescriptors(e);delete r[Bn];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const l=a[o],c=r[l];c[rm]===!1&&(c[rm]=!0,c[Hb]=!0),(c.get||c.set)&&(r[l]={[Hb]:!0,[rm]:!0,[km]:c[km],[of]:e[l]})}return fr.create(eu(e),r)}else{const r=eu(e);if(r!==null&&n)return{...e};const a=fr.create(r);return fr.assign(a,e)}}function Zw(e,t=!1){return Ip(e)||la(e)||!ri(e)||(Bf(e)>1&&fr.defineProperties(e,{set:_h,add:_h,clear:_h,delete:_h}),fr.freeze(e),t&&Dp(e,(n,r)=>{Zw(r,!0)},!1)),e}function aW(){Wr(2)}var _h={[of]:aW};function Ip(e){return e===null||!Xw(e)?!0:fr.isFrozen(e)}var Pm="MapSet",Gb="Patches",bC="ArrayMethods",hR={};function Oo(e){const t=hR[e];return t||Wr(0,e),t}var wC=e=>!!hR[e],lf,mR=()=>lf,sW=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:wC(Pm)?Oo(Pm):void 0,arrayMethodsPlugin_:wC(bC)?Oo(bC):void 0});function SC(e,t){t&&(e.patchPlugin_=Oo(Gb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Wb(e){Xb(e),e.drafts_.forEach(oW),e.drafts_=null}function Xb(e){e===lf&&(lf=e.parent_)}var jC=e=>lf=sW(lf,e);function oW(e){const t=e[Bn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function AC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Bn].modified_&&(Wb(t),Wr(4)),ri(e)&&(e=OC(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[Bn].base_,e,t)}else e=OC(t,n);return lW(t,e,!0),Wb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fR?e:void 0}function OC(e,t){if(Ip(t))return t;const n=t[Bn];if(!n)return _m(t,e.handledSet_,e);if(!Bp(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);vR(n,e)}return n.copy_}function lW(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zw(t,n)}function pR(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Bp=(e,t)=>e.scope_===t,uW=[];function gR(e,t,n,r){const a=Hi(e),o=e.type_;if(r!==void 0&&Kb(a,r,o)===t){Mm(a,r,n,o);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Dp(a,(f,h)=>{if(la(h)){const m=c.get(h)||[];m.push(f),c.set(h,m)}})}const l=e.draftLocations_.get(t)??uW;for(const c of l)Mm(a,c,n,o)}function cW(e,t,n){e.callbacks_.push(function(a){var c;const o=t;if(!o||!Bp(o,a))return;(c=a.mapSetPlugin_)==null||c.fixSetContents(o);const l=Qw(o);gR(e,o.draft_??o,l,n),vR(o,a)})}function vR(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)}pR(e)}}function fW(e,t,n){const{scope_:r}=e;if(la(n)){const a=n[Bn];Bp(a,r)&&a.callbacks_.push(function(){im(e);const l=Qw(a);gR(e,n,l,t)})}else ri(n)&&e.callbacks_.push(function(){const o=Hi(e);e.type_===3?o.has(n)&&_m(n,r.handledSet_,r):Kb(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_m(Kb(e.copy_,t,e.type_),r.handledSet_,r)})}function _m(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||la(e)||t.has(e)||!ri(e)||Ip(e)||(t.add(e),Dp(e,(r,a)=>{if(la(a)){const o=a[Bn];if(Bp(o,n)){const l=Qw(o);Mm(e,r,l,e.type_),pR(o)}}else ri(a)&&_m(a,t,n)})),e}function dW(e,t){const n=Rp(e),r={type_:n?1:0,scope_:t?t.scope_:mR(),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=Dm;n&&(a=[r],o=uf);const{revoke:l,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=l,[c,r]}var Dm={get(e,t){if(t===Bn)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=Hi(e);if(!xC(a,t,e.type_))return hW(e,a,t);const o=a[t];if(e.finalized_||!ri(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&iW(t))return o;if(o===ox(e.base_,t)){im(e);const l=e.type_===1?+t:t,c=Zb(e.scope_,o,e,l);return e.copy_[l]=c}return o},has(e,t){return t in Hi(e)},ownKeys(e){return Reflect.ownKeys(Hi(e))},set(e,t,n){const r=yR(Hi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=ox(Hi(e),t),o=a==null?void 0:a[Bn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(rW(n,a)&&(n!==void 0||xC(e.base_,t,e.type_)))return!0;im(e),Qb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),fW(e,t,n)),!0},deleteProperty(e,t){return im(e),ox(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Qb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Hi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[rm]:!0,[Hb]:e.type_!==1||t!=="length",[km]:r[km],[of]:n[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return eu(e.base_)},setPrototypeOf(){Wr(12)}},uf={};for(let e in Dm){let t=Dm[e];uf[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}uf.deleteProperty=function(e,t){return uf.set.call(this,e,t,void 0)};uf.set=function(e,t,n){return Dm.set.call(this,e[0],t,n,e[0])};function ox(e,t){const n=e[Bn];return(n?Hi(n):e)[t]}function hW(e,t,n){var a;const r=yR(t,n);return r?of in r?r[of]:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function yR(e,t){if(!(t in e))return;let n=eu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=eu(n)}}function Qb(e){e.modified_||(e.modified_=!0,e.parent_&&Qb(e.parent_))}function im(e){e.copy_||(e.assigned_=new Map,e.copy_=Yb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mW=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,a)=>{if(Tl(n)&&!Tl(r)){const l=r;r=n;const c=this;return function(h=l,...m){return c.produce(h,p=>r.call(this,p,...m))}}Tl(r)||Wr(6),a!==void 0&&!Tl(a)&&Wr(7);let o;if(ri(n)){const l=jC(this),c=Zb(l,n,void 0);let f=!0;try{o=r(c),f=!1}finally{f?Wb(l):Xb(l)}return SC(l,a),AC(o,l)}else if(!n||!Xw(n)){if(o=r(n),o===void 0&&(o=n),o===fR&&(o=void 0),this.autoFreeze_&&Zw(o,!0),a){const l=[],c=[];Oo(Gb).generateReplacementPatches_(n,o,{patches_:l,inversePatches_:c}),a(l,c)}return o}else Wr(1,n)},this.produceWithPatches=(n,r)=>{if(Tl(n))return(c,...f)=>this.produceWithPatches(c,h=>n(h,...f));let a,o;return[this.produce(n,r,(c,f)=>{a=c,o=f}),a,o]},sx(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),sx(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),sx(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ri(t)||Wr(8),la(t)&&(t=ei(t));const n=jC(this),r=Zb(n,t,void 0);return r[Bn].isManual_=!0,Xb(n),r}finishDraft(t,n){const r=t&&t[Bn];(!r||!r.isManual_)&&Wr(9);const{scope_:a}=r;return SC(a,n),AC(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=Oo(Gb).applyPatches_;return la(t)?a(t,n):this.produce(t,o=>a(o,n))}};function Zb(e,t,n,r){const[a,o]=zp(t)?Oo(Pm).proxyMap_(t,n):Lp(t)?Oo(Pm).proxySet_(t,n):dW(t,n);return((n==null?void 0:n.scope_)??mR()).drafts_.push(a),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?cW(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 ei(e){return la(e)||Wr(10,e),xR(e)}function xR(e){if(!ri(e)||Ip(e))return e;const t=e[Bn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Yb(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Yb(e,!0);return Dp(n,(a,o)=>{Mm(n,a,xR(o))},r),t&&(t.finalized_=!1),n}var pW=new mW,bR=pW.produce;function wR(e){return({dispatch:n,getState:r})=>a=>o=>typeof o=="function"?o(n,r,e):a(o)}var gW=wR(),vW=wR,yW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tm:Tm.apply(null,arguments)};function Lr(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(dr(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=>cR(r)&&r.type===e,n}var SR=class zc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zc.prototype)}static get[Symbol.species](){return zc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zc(...t[0].concat(this)):new zc(...t.concat(this))}};function EC(e){return ri(e)?bR(e,()=>{}):e}function Dh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function xW(e){return typeof e=="boolean"}var bW=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:o=!0}=t??{};let l=new SR;return n&&(xW(n)?l.push(gW):l.push(vW(n.extraArgument))),l},jR="RTK_autoBatch",yt=()=>e=>({payload:e,meta:{[jR]:!0}}),NC=e=>t=>{setTimeout(t,e)},AR=(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:NC(10):e.type==="callback"?e.queueNotification:NC(e.timeout),h=()=>{l=!1,o&&(o=!1,c.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>a&&m(),y=r.subscribe(p);return c.add(m),()=>{y(),c.delete(m)}},dispatch(m){var p;try{return a=!((p=m==null?void 0:m.meta)!=null&&p[jR]),o=!a,o&&(l||(l=!0,f(h))),r.dispatch(m)}finally{a=!0}}})},wW=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new SR(e);return r&&a.push(AR(typeof r=="object"?r:void 0)),a};function SW(e){const t=bW(),{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(Ww(n))c=uR(n);else throw new Error(dr(1));let f;typeof r=="function"?f=r(t):f=t();let h=Tm;a&&(h=yW({trace:!1,...typeof a=="object"&&a}));const m=tW(...f),p=wW(m);let y=typeof l=="function"?l(p):p();const b=h(...y);return lR(c,o,b)}function OR(e){const t={},n=[];let r;const a={addCase(o,l){const c=typeof o=="string"?o:o.type;if(!c)throw new Error(dr(28));if(c in t)throw new Error(dr(29));return t[c]=l,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 jW(e){return typeof e=="function"}function AW(e,t){let[n,r,a]=OR(t),o;if(jW(e))o=()=>EC(e());else{const c=EC(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(la(m)){const b=p(m,f);return b===void 0?m:b}else{if(ri(m))return bR(m,y=>p(y,f));{const y=p(m,f);if(y===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return m},c)}return l.getInitialState=o,l}var OW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",EW=(e=21)=>{let t="",n=e;for(;n--;)t+=OW[Math.random()*64|0];return t},NW=Symbol.for("rtk-slice-createasyncthunk");function TW(e,t){return`${e}/${t}`}function CW({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[NW];return function(a){const{name:o,reducerPath:l=o}=a;if(!o)throw new Error(dr(11));const c=(typeof a.reducers=="function"?a.reducers(MW()):a.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(C,k){const D=typeof C=="string"?C:C.type;if(!D)throw new Error(dr(12));if(D in h.sliceCaseReducersByType)throw new Error(dr(13));return h.sliceCaseReducersByType[D]=k,m},addMatcher(C,k){return h.sliceMatchers.push({matcher:C,reducer:k}),m},exposeAction(C,k){return h.actionCreators[C]=k,m},exposeCaseReducer(C,k){return h.sliceCaseReducersByName[C]=k,m}};f.forEach(C=>{const k=c[C],D={reducerName:C,type:TW(o,C),createNotation:typeof a.reducers=="function"};_W(k)?RW(D,k,m,t):PW(D,k,m)});function p(){const[C={},k=[],D=void 0]=typeof a.extraReducers=="function"?OR(a.extraReducers):[a.extraReducers],M={...C,...h.sliceCaseReducersByType};return AW(a.initialState,_=>{for(let B in M)_.addCase(B,M[B]);for(let B of h.sliceMatchers)_.addMatcher(B.matcher,B.reducer);for(let B of k)_.addMatcher(B.matcher,B.reducer);D&&_.addDefaultCase(D)})}const y=C=>C,b=new Map,S=new WeakMap;let j;function A(C,k){return j||(j=p()),j(C,k)}function O(){return j||(j=p()),j.getInitialState()}function T(C,k=!1){function D(_){let B=_[C];return typeof B>"u"&&k&&(B=Dh(S,D,O)),B}function M(_=y){const B=Dh(b,k,()=>new WeakMap);return Dh(B,_,()=>{const K={};for(const[$,Z]of Object.entries(a.selectors??{}))K[$]=kW(Z,_,()=>Dh(S,_,O),k);return K})}return{reducerPath:C,getSelectors:M,get selectors(){return M(D)},selectSlice:D}}const N={name:o,reducer:A,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:O,...T(l),injectInto(C,{reducerPath:k,...D}={}){const M=k??l;return C.inject({reducerPath:M,reducer:A},D),{...N,...T(M,!0)}}};return N}}function kW(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=CW();function MW(){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 PW({type:e,reducerName:t,createNotation:n},r,a){let o,l;if("reducer"in r){if(n&&!DW(r))throw new Error(dr(17));o=r.reducer,l=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?Lr(e,l):Lr(e))}function _W(e){return e._reducerDefinitionType==="asyncThunk"}function DW(e){return e._reducerDefinitionType==="reducerWithPrepare"}function RW({type:e,reducerName:t},n,r,a){if(!a)throw new Error(dr(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||Rh,pending:c||Rh,rejected:f||Rh,settled:h||Rh})}function Rh(){}var zW="task",ER="listener",NR="completed",Jw="cancelled",LW=`task-${Jw}`,IW=`task-${NR}`,Jb=`${ER}-${Jw}`,BW=`${ER}-${NR}`,Up=class{constructor(e){_y(this,"name","TaskAbortError");_y(this,"message");this.code=e,this.message=`${zW} ${Jw} (reason: ${e})`}},eS=(e,t)=>{if(typeof e!="function")throw new TypeError(dr(32))},Rm=()=>{},TR=(e,t=Rm)=>(e.catch(t),e),CR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),vo=e=>{if(e.aborted)throw new Up(e.reason)};function kR(e,t){let n=Rm;return new Promise((r,a)=>{const o=()=>a(new Up(e.reason));if(e.aborted){o();return}n=CR(e,o),t.finally(()=>n()).then(r,a)}).finally(()=>{n=Rm})}var UW=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Up?"cancelled":"rejected",error:n}}finally{t==null||t()}},zm=e=>t=>TR(kR(e,t).then(n=>(vo(e),n))),MR=e=>{const t=zm(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Ll}=Object,TC={},$p="listenerMiddleware",$W=(e,t)=>{const n=r=>CR(e,()=>r.abort(e.reason));return(r,a)=>{eS(r);const o=new AbortController;n(o);const l=UW(async()=>{vo(e),vo(o.signal);const c=await r({pause:zm(o.signal),delay:MR(o.signal),signal:o.signal});return vo(o.signal),c},()=>o.abort(IW));return a!=null&&a.autoJoin&&t.push(l.catch(Rm)),{result:zm(e)(l),cancel(){o.abort(LW)}}}},qW=(e,t)=>{const n=async(r,a)=>{vo(t);let o=()=>{};const c=[new Promise((f,h)=>{let m=e({predicate:r,effect:(p,y)=>{y.unsubscribe(),f([p,y.getState(),y.getOriginalState()])}});o=()=>{m(),h()}})];a!=null&&c.push(new Promise(f=>setTimeout(f,a,null)));try{const f=await kR(t,Promise.race(c));return vo(t),f}finally{o()}};return(r,a)=>TR(n(r,a))},PR=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Lr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(dr(21));return eS(o),{predicate:a,type:t,effect:o}},_R=Ll(e=>{const{type:t,predicate:n,effect:r}=PR(e);return{id:EW(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(dr(22))}}},{withTypes:()=>_R}),CC=(e,t)=>{const{type:n,effect:r,predicate:a}=PR(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===a)&&o.effect===r)},e1=e=>{e.pending.forEach(t=>{t.abort(Jb)})},VW=(e,t)=>()=>{for(const n of t.keys())e1(n);e.clear()},kC=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},DR=Ll(Lr(`${$p}/add`),{withTypes:()=>DR}),FW=Lr(`${$p}/removeAll`),RR=Ll(Lr(`${$p}/remove`),{withTypes:()=>RR}),HW=(...e)=>{console.error(`${$p}/error`,...e)},Uf=(e={})=>{const t=new Map,n=new Map,r=b=>{const S=n.get(b)??0;n.set(b,S+1)},a=b=>{const S=n.get(b)??1;S===1?n.delete(b):n.set(b,S-1)},{extra:o,onError:l=HW}=e;eS(l);const c=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&e1(b)}),f=b=>{const S=CC(t,b)??_R(b);return c(S)};Ll(f,{withTypes:()=>f});const h=b=>{const S=CC(t,b);return S&&(S.unsubscribe(),b.cancelActive&&e1(S)),!!S};Ll(h,{withTypes:()=>h});const m=async(b,S,j,A)=>{const O=new AbortController,T=qW(f,O.signal),N=[];try{b.pending.add(O),r(b),await Promise.resolve(b.effect(S,Ll({},j,{getOriginalState:A,condition:(C,k)=>T(C,k).then(Boolean),take:T,delay:MR(O.signal),pause:zm(O.signal),extra:o,signal:O.signal,fork:$W(O.signal,N),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((C,k,D)=>{C!==O&&(C.abort(Jb),D.delete(C))})},cancel:()=>{O.abort(Jb),b.pending.delete(O)},throwIfCancelled:()=>{vo(O.signal)}})))}catch(C){C instanceof Up||kC(l,C,{raisedBy:"effect"})}finally{await Promise.all(N),O.abort(BW),a(b),b.pending.delete(O)}},p=VW(t,n);return{middleware:b=>S=>j=>{if(!cR(j))return S(j);if(DR.match(j))return f(j.payload);if(FW.match(j)){p();return}if(RR.match(j))return h(j.payload);let A=b.getState();const O=()=>{if(A===TC)throw new Error(dr(23));return A};let T;try{if(T=S(j),t.size>0){const N=b.getState(),C=Array.from(t.values());for(const k of C){let D=!1;try{D=k.predicate(j,N,A)}catch(M){D=!1,kC(l,M,{raisedBy:"predicate"})}D&&m(k,j,b,O)}}}finally{A=TC}return T},startListening:f,stopListening:h,clearListeners:p}};function dr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var KW={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},zR=Jn({name:"chartLayout",initialState:KW,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:YW,setLayout:GW,setChartSize:WW,setScale:XW}=zR.actions,QW=zR.reducer;function LR(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function ft(e){return Number.isFinite(e)}function bi(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function MC(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?MC(Object(n),!0).forEach(function(r){ZW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZW(e,t,n){return(t=JW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JW(e){var t=eX(e,"string");return typeof t=="symbol"?t:t+""}function eX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,n){return jt(e)||jt(t)?n:xi(t)?Jl(e,t,n):typeof t=="function"?t(e):n}var tX=(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},va=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",IR=(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},BR=(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:y,axisType:b}=e;if(!l)return null;var S=c==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,j=a==="category"&&l.bandwidth?l.bandwidth()/S:0;if(j=b==="angleAxis"&&o&&o.length>=2?Xn(o[0]-o[1])*2*j:j,p||y){var A=(p||y||[]).map((O,T)=>{var N=r?r.indexOf(O):O;return{coordinate:l(N)+j,value:O,offset:j,index:T}});return A.filter(O=>!zr(O.coordinate))}return f&&h?h.map((O,T)=>({coordinate:l(O)+j,value:O,index:T,offset:j})):l.ticks&&m!=null?l.ticks(m).map((O,T)=>({coordinate:l(O)+j,value:O,offset:j,index:T})):l.domain().map((O,T)=>({coordinate:l(O)+j,value:r?r[O]:O,index:T,offset:j}))},PC=1e-4,nX=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),a=Math.min(r[0],r[1])-PC,o=Math.max(r[0],r[1])+PC,l=e(t[0]),c=e(t[n-1]);(l<a||l>o||c<a||c>o)&&e.domain([t[0],t[n-1]])}},rX=(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},iX=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],y=zr(m)?p:m;y>=0?(h[0]=o,h[1]=o+y,o=m):(h[0]=l,h[1]=l+y,l=m)}}}},aX=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,f[1]=o+h,o=f[1]):(f[0]=0,f[1]=0)}}}},sX={sign:iX,expand:OY,none:Ao,silhouette:EY,wiggle:NY,positive:aX},oX=(e,t,n)=>{var r,a=(r=sX[n])!==null&&r!==void 0?r:Ao,o=AY().keys(t).value((c,f)=>Number(Ft(c,f,0))).order(Vb).offset(a),l=o(e);return l.forEach((c,f)=>{c.forEach((h,m)=>{var p=Ft(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 UR(e){return e==null?void 0:String(e)}function _C(e){var{axis:t,ticks:n,bandSize:r,entry:a,index:o,dataKey:l}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!jt(a[t.dataKey])){var c=F3(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Ft(a,jt(l)?t.dataKey:l);return jt(f)?null:t.scale(f)}var DC=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=Ft(o,t.dataKey,t.scale.domain()[l]);return jt(c)?null:t.scale(c)-a/2+r},lX=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]},uX=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},cX=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],fX=(e,t,n)=>{if(e!=null)return cX(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=LR(h,t,n),p=uX(m);return!ft(p[0])||!ft(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]))},RC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tu=(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=Pp(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 LC(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 qp(e,t){if(e)return String(e);if(typeof t=="string")return t}var dX=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},hX=(e,t)=>t==="centric"?e.angle:e.radius,ya=e=>e.layout.width,xa=e=>e.layout.height,mX=e=>e.layout.scale,$R=e=>e.layout.margin,Vp=X(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fp=X(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),pX="data-recharts-item-index",gX="data-recharts-item-id",$f=60;function IC(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 zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IC(Object(n),!0).forEach(function(r){vX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vX(e,t,n){return(t=yX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yX(e){var t=xX(e,"string");return typeof t=="symbol"?t:t+""}function xX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bX=e=>e.brush.height;function wX(e){var t=Fp(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:$f;return n+a}return n},0)}function SX(e){var t=Fp(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:$f;return n+a}return n},0)}function jX(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function AX(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var cn=X([ya,xa,$R,bX,wX,SX,jX,AX,sR,GG],(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},y=zh(zh({},p),m),b=y.bottom;y.bottom+=r,y=tX(y,f,h);var S=e-y.left-y.right,j=t-y.top-y.bottom;return zh(zh({brushBottom:b},y),{},{width:Math.max(S,0),height:Math.max(j,0)})}),OX=X(cn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),tS=X(ya,xa,(e,t)=>({x:0,y:0,width:e,height:t})),EX=w.createContext(null),Tn=()=>w.useContext(EX)!=null,Hp=e=>e.brush,Kp=X([Hp,cn,$R],(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})),lx={},ux={},cx={},BC;function NX(){return BC||(BC=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(),j()};let y=null;const b=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,p()},r)},S=()=>{y!==null&&(clearTimeout(y),y=null)},j=()=>{S(),l=void 0,c=null},A=()=>{m()},O=function(...T){if(a!=null&&a.aborted)return;l=this,c=T;const N=y==null;b(),f&&N&&m()};return O.schedule=b,O.cancel=j,O.flush=A,a==null||a.addEventListener("abort",j,{once:!0}),O}e.debounce=t})(cx)),cx}var UC;function TX(){return UC||(UC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NX();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 y=t.debounce(function(...j){m=r.apply(this,j),p=null},a,{edges:h}),b=function(...j){return f!=null&&(p===null&&(p=Date.now()),Date.now()-p>=f)?(m=r.apply(this,j),p=Date.now(),y.cancel(),y.schedule(),m):(y.apply(this,j),m)},S=()=>(y.flush(),m);return b.cancel=y.cancel,b.flush=S,b}e.debounce=n})(ux)),ux}var $C;function CX(){return $C||($C=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TX();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})(lx)),lx}var fx,qC;function kX(){return qC||(qC=1,fx=CX().throttle),fx}var MX=kX();const PX=Si(MX);var Lm=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++]))}},qR=(e,t,n)=>{var{width:r="100%",height:a="100%",aspect:o,maxHeight:l}=n,c=oa(r)?e:Number(r),f=oa(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}},_X={width:0,height:0,overflow:"visible"},DX={width:0,overflowX:"visible"},RX={height:0,overflowY:"visible"},zX={},LX=e=>{var{width:t,height:n}=e,r=oa(t),a=oa(n);return r&&a?_X:r?DX:a?RX:zX};function IX(e){var{width:t,height:n,aspect:r}=e,a=t,o=n;return a===void 0&&o===void 0?(a="100%",o="100%"):a===void 0?a=r&&r>0?void 0:"100%":o===void 0&&(o=r&&r>0?void 0:"100%"),{width:a,height:o}}function t1(){return t1=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},t1.apply(null,arguments)}function VC(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 FC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VC(Object(n),!0).forEach(function(r){BX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VC(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=$X(e,"string");return typeof t=="symbol"?t:t+""}function $X(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 VR=w.createContext({width:-1,height:-1});function qX(e){return bi(e.width)&&bi(e.height)}function FR(e){var{children:t,width:n,height:r}=e,a=w.useMemo(()=>({width:n,height:r}),[n,r]);return qX(a)?w.createElement(VR.Provider,{value:a},t):null}var nS=()=>w.useContext(VR),VX=w.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:a,height:o,minWidth:l=0,minHeight:c,maxHeight:f,children:h,debounce:m=0,id:p,className:y,onResize:b,style:S={}}=e,j=w.useRef(null),A=w.useRef();A.current=b,w.useImperativeHandle(t,()=>j.current);var[O,T]=w.useState({containerWidth:r.width,containerHeight:r.height}),N=w.useCallback((_,B)=>{T(K=>{var $=Math.round(_),Z=Math.round(B);return K.containerWidth===$&&K.containerHeight===Z?K:{containerWidth:$,containerHeight:Z}})},[]);w.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return If;var _=Z=>{var le,{width:de,height:me}=Z[0].contentRect;N(de,me),(le=A.current)===null||le===void 0||le.call(A,de,me)};m>0&&(_=PX(_,m,{trailing:!0,leading:!1}));var B=new ResizeObserver(_),{width:K,height:$}=j.current.getBoundingClientRect();return N(K,$),B.observe(j.current),()=>{B.disconnect()}},[N,m]);var{containerWidth:C,containerHeight:k}=O;Lm(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:D,calculatedHeight:M}=qR(C,k,{width:a,height:o,aspect:n,maxHeight:f});return Lm(D!=null&&D>0||M!=null&&M>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.`,D,M,a,o,l,c,n),w.createElement("div",{id:p?"".concat(p):void 0,className:Ze("recharts-responsive-container",y),style:FC(FC({},S),{},{width:a,height:o,minWidth:l,minHeight:c,maxHeight:f}),ref:j},w.createElement("div",{style:LX({width:a,height:o})},w.createElement(FR,{width:D,height:M},h)))}),am=w.forwardRef((e,t)=>{var n=nS();if(bi(n.width)&&bi(n.height))return e.children;var{width:r,height:a}=IX({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=qR(void 0,void 0,{width:r,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(l)?w.createElement(FR,{width:o,height:l},e.children):w.createElement(VX,t1({},e,{width:r,height:a,ref:t}))});function HR(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Yp=()=>{var e,t=Tn(),n=Se(OX),r=Se(Kp),a=(e=Se(Hp))===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}},FX={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},KR=()=>{var e;return(e=Se(cn))!==null&&e!==void 0?e:FX},rS=()=>Se(ya),iS=()=>Se(xa),HX=()=>Se(e=>e.layout.margin),We=e=>e.layout.layoutType,Po=()=>Se(We),KX=()=>{var e=Po();if(e==="horizontal"||e==="vertical")return e},YX=()=>{var e=Po();return e!==void 0},Gp=e=>{var t=At(),n=Tn(),{width:r,height:a}=e,o=nS(),l=r,c=a;return o&&(l=o.width>0?o.width:r,c=o.height>0?o.height:a),w.useEffect(()=>{!n&&bi(l)&&bi(c)&&t(WW({width:l,height:c}))},[t,n,l,c]),null},YR=Symbol.for("immer-nothing"),HC=Symbol.for("immer-draftable"),hr=Symbol.for("immer-state");function Xr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cf=Object.getPrototypeOf;function nu(e){return!!e&&!!e[hr]}function Eo(e){var t;return e?GR(e)||Array.isArray(e)||!!e[HC]||!!((t=e.constructor)!=null&&t[HC])||qf(e)||Xp(e):!1}var GX=Object.prototype.constructor.toString(),KC=new WeakMap;function GR(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=KC.get(n);return r===void 0&&(r=Function.toString.call(n),KC.set(n,r)),r===GX}function Im(e,t,n=!0){Wp(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 Wp(e){const t=e[hr];return t?t.type_:Array.isArray(e)?1:qf(e)?2:Xp(e)?3:0}function n1(e,t){return Wp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WR(e,t,n){const r=Wp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function WX(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function qf(e){return e instanceof Map}function Xp(e){return e instanceof Set}function Xs(e){return e.copy_||e.base_}function r1(e,t){if(qf(e))return new Map(e);if(Xp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=GR(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[hr];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(cf(e),r)}else{const r=cf(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function aS(e,t=!1){return Qp(e)||nu(e)||!Eo(e)||(Wp(e)>1&&Object.defineProperties(e,{set:Lh,add:Lh,clear:Lh,delete:Lh}),Object.freeze(e),t&&Object.values(e).forEach(n=>aS(n,!0))),e}function XX(){Xr(2)}var Lh={value:XX};function Qp(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var QX={};function No(e){const t=QX[e];return t||Xr(0,e),t}var ff;function XR(){return ff}function ZX(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function YC(e,t){t&&(No("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function i1(e){a1(e),e.drafts_.forEach(JX),e.drafts_=null}function a1(e){e===ff&&(ff=e.parent_)}function GC(e){return ff=ZX(ff,e)}function JX(e){const t=e[hr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function WC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hr].modified_&&(i1(t),Xr(4)),Eo(e)&&(e=Bm(t,e),t.parent_||Um(t,e)),t.patches_&&No("Patches").generateReplacementPatches_(n[hr].base_,e,t.patches_,t.inversePatches_)):e=Bm(t,n,[]),i1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==YR?e:void 0}function Bm(e,t,n){if(Qp(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[hr];if(!a)return Im(t,(o,l)=>XC(e,a,t,o,l,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return Um(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),Im(l,(f,h)=>XC(e,a,o,f,h,n,c),r),Um(e,o,!1),n&&e.patches_&&No("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function XC(e,t,n,r,a,o,l){if(a==null||typeof a!="object"&&!l)return;const c=Qp(a);if(!(c&&!l)){if(nu(a)){const f=o&&t&&t.type_!==3&&!n1(t.assigned_,r)?o.concat(r):void 0,h=Bm(e,a,f);if(WR(n,r,h),nu(h))e.canAutoFreeze_=!1;else return}else l&&n.add(a);if(Eo(a)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&c)return;Bm(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(qf(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Um(e,a)}}}function Um(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aS(t,n)}function eQ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:XR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=sS;n&&(a=[r],o=df);const{revoke:l,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=l,c}var sS={get(e,t){if(t===hr)return e;const n=Xs(e);if(!n1(n,t))return tQ(e,n,t);const r=n[t];return e.finalized_||!Eo(r)?r:r===dx(e.base_,t)?(hx(e),e.copy_[t]=o1(r,e)):r},has(e,t){return t in Xs(e)},ownKeys(e){return Reflect.ownKeys(Xs(e))},set(e,t,n){const r=QR(Xs(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=dx(Xs(e),t),o=a==null?void 0:a[hr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(WX(n,a)&&(n!==void 0||n1(e.base_,t)))return!0;hx(e),s1(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 dx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,hx(e),s1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Xs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Xr(11)},getPrototypeOf(e){return cf(e.base_)},setPrototypeOf(){Xr(12)}},df={};Im(sS,(e,t)=>{df[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});df.deleteProperty=function(e,t){return df.set.call(this,e,t,void 0)};df.set=function(e,t,n){return sS.set.call(this,e[0],t,n,e[0])};function dx(e,t){const n=e[hr];return(n?Xs(n):e)[t]}function tQ(e,t,n){var a;const r=QR(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function QR(e,t){if(!(t in e))return;let n=cf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=cf(n)}}function s1(e){e.modified_||(e.modified_=!0,e.parent_&&s1(e.parent_))}function hx(e){e.copy_||(e.copy_=r1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nQ=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"&&Xr(6),r!==void 0&&typeof r!="function"&&Xr(7);let a;if(Eo(t)){const o=GC(this),l=o1(t,void 0);let c=!0;try{a=n(l),c=!1}finally{c?i1(o):a1(o)}return YC(o,r),WC(a,o)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===YR&&(a=void 0),this.autoFreeze_&&aS(a,!0),r){const o=[],l=[];No("Patches").generateReplacementPatches_(t,a,o,l),r(o,l)}return a}else Xr(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){Eo(e)||Xr(8),nu(e)&&(e=rQ(e));const t=GC(this),n=o1(e,void 0);return n[hr].isManual_=!0,a1(t),n}finishDraft(e,t){const n=e&&e[hr];(!n||!n.isManual_)&&Xr(9);const{scope_:r}=n;return YC(r,t),WC(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=No("Patches").applyPatches_;return nu(e)?r(e,t):this.produce(e,a=>r(a,t))}};function o1(e,t){const n=qf(e)?No("MapSet").proxyMap_(e,t):Xp(e)?No("MapSet").proxySet_(e,t):eQ(e,t);return(t?t.scope_:XR()).drafts_.push(n),n}function rQ(e){return nu(e)||Xr(10,e),ZR(e)}function ZR(e){if(!Eo(e)||Qp(e))return e;const t=e[hr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=r1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=r1(e,!0);return Im(n,(a,o)=>{WR(n,a,ZR(o))},r),t&&(t.finalized_=!1),n}var iQ=new nQ;iQ.produce;var aQ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},JR=Jn({name:"legend",initialState:aQ,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:yt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ei(e).payload.indexOf(n);a>-1&&(e.payload[a]=r)},prepare:yt()},removeLegendPayload:{reducer(e,t){var n=ei(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:yt()}}}),{setLegendSize:QC,setLegendSettings:sQ,addLegendPayload:oQ,replaceLegendPayload:lQ,removeLegendPayload:uQ}=JR.actions,cQ=JR.reducer,fQ=["contextPayload"];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 ZC(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 ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZC(Object(n),!0).forEach(function(r){dQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dQ(e,t,n){return(t=hQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hQ(e){var t=mQ(e,"string");return typeof t=="symbol"?t:t+""}function mQ(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 pQ(e,t){if(e==null)return{};var n,r,a=gQ(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 gQ(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 vQ(e){return e.value}function yQ(e){var{contextPayload:t}=e,n=pQ(e,fQ),r=nR(t,e.payloadUniqBy,vQ),a=ru(ru({},n),{},{payload:r});return w.isValidElement(e.content)?w.cloneElement(e.content,a):typeof e.content=="function"?w.createElement(e.content,a):w.createElement(rG,a)}function xQ(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}),ru(ru({},h),m)}function bQ(e){var t=At();return w.useEffect(()=>{t(sQ(e))},[t,e]),null}function wQ(e){var t=At();return w.useEffect(()=>(t(QC(e)),()=>{t(QC({width:0,height:0}))}),[t,e]),null}function SQ(e,t,n,r){return e==="vertical"&&he(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var jQ={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function e4(e){var t=Sn(e,jQ),n=QG(),r=GK(),a=HX(),{width:o,height:l,wrapperStyle:c,portal:f}=t,[h,m]=oR([n]),p=rS(),y=iS();if(p==null||y==null)return null;var b=p-((a==null?void 0:a.left)||0)-((a==null?void 0:a.right)||0),S=SQ(t.layout,l,o,b),j=f?c:ru(ru({position:"absolute",width:(S==null?void 0:S.width)||o||"auto",height:(S==null?void 0:S.height)||l||"auto"},xQ(c,t,a,p,y,h)),c),A=f??r;if(A==null||n==null)return null;var O=w.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:m},w.createElement(bQ,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!f&&w.createElement(wQ,{width:h.width,height:h.height}),w.createElement(yQ,l1({},t,S,{margin:a,chartWidth:p,chartHeight:y,contextPayload:n})));return Mf.createPortal(O,A)}e4.displayName="Legend";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)}function JC(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 mx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){AQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AQ(e,t,n){return(t=OQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OQ(e){var t=EQ(e,"string");return typeof t=="symbol"?t:t+""}function EQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NQ(e){return Array.isArray(e)&&xi(e[0])&&xi(e[1])?e.join(" ~ "):e}var TQ=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:a={},payload:o,formatter:l,itemSorter:c,wrapperClassName:f,labelClassName:h,label:m,labelFormatter:p,accessibilityLayer:y=!1}=e,b=()=>{if(o&&o.length){var k={padding:0,margin:0},D=(c?Pp(o,c):o).map((M,_)=>{if(M.type==="none")return null;var B=M.formatter||l||NQ,{value:K,name:$}=M,Z=K,le=$;if(B){var de=B(K,$,M,_,o);if(Array.isArray(de))[Z,le]=de;else if(de!=null)Z=de;else return null}var me=mx({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},r);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:me},xi(le)?w.createElement("span",{className:"recharts-tooltip-item-name"},le):null,xi(le)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},Z),w.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:k},D)}return null},S=mx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),j=mx({margin:0},a),A=!jt(m),O=A?m:"",T=Ze("recharts-default-tooltip",f),N=Ze("recharts-tooltip-label",h);A&&p&&o!==void 0&&o!==null&&(O=p(m,o));var C=y?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",u1({className:T,style:S},C),w.createElement("p",{className:N,style:j},w.isValidElement(O)?O:"".concat(O)),b())},Sc="recharts-tooltip-wrapper",CQ={visibility:"hidden"};function kQ(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ze(Sc,{["".concat(Sc,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Sc,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Sc,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Sc,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function ek(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft: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 y=f[r];if(y==null)return 0;if(l[r]){var b=m,S=y;return b<S?Math.max(p,y):Math.max(m,y)}if(h==null)return 0;var j=p+c,A=y+h;return j>A?Math.max(m,y):Math.max(p,y)}function MQ(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 PQ(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:a,reverseDirection:o,tooltipBox:l,useTranslate3d:c,viewBox:f}=e,h,m,p;return l.height>0&&l.width>0&&n?(m=ek({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),p=ek({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),h=MQ({translateX:m,translateY:p,useTranslate3d:c})):h=CQ,{cssProperties:h,cssClasses:kQ({translateX:m,translateY:p,coordinate:n})}}function tk(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 Ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tk(Object(n),!0).forEach(function(r){c1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c1(e,t,n){return(t=_Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Q(e){var t=DQ(e,"string");return typeof t=="symbol"?t:t+""}function DQ(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 RQ extends w.PureComponent{constructor(){super(...arguments),c1(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),c1(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:y,viewBox:b,wrapperStyle:S,lastBoundingBox:j,innerRef:A,hasPortalFromProps:O}=this.props,{cssClasses:T,cssProperties:N}=PQ({allowEscapeViewBox:n,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:p,tooltipBox:{height:j.height,width:j.width},useTranslate3d:y,viewBox:b}),C=O?{}:Ih(Ih({transition:f&&t?"transform ".concat(r,"ms ").concat(a):void 0},N),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&c?"visible":"hidden",position:"absolute",top:0,left:0}),k=Ih(Ih({},C),{},{visibility:!this.state.dismissed&&t&&c?"visible":"hidden"},S);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:T,style:k,ref:A},o)}}var t4=()=>{var e;return(e=Se(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function f1(){return f1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f1.apply(null,arguments)}function nk(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 rk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(r){zQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zQ(e,t,n){return(t=LQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LQ(e){var t=IQ(e,"string");return typeof t=="symbol"?t:t+""}function IQ(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 ik={curveBasisClosed:hY,curveBasisOpen:mY,curveBasis:dY,curveBumpX:ZK,curveBumpY:JK,curveLinearClosed:pY,curveLinear:Cp,curveMonotoneX:gY,curveMonotoneY:vY,curveNatural:yY,curveStep:xY,curveStepAfter:wY,curveStepBefore:bY},$m=e=>ft(e.x)&&ft(e.y),ak=e=>e.base!=null&&$m(e.base)&&$m(e),jc=e=>e.x,Ac=e=>e.y,BQ=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Lf(e));return(n==="curveMonotone"||n==="curveBump")&&t?ik["".concat(n).concat(t==="vertical"?"Y":"X")]:ik[n]||Cp},UQ=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:a,connectNulls:o=!1}=e,l=BQ(t,a),c=o?n.filter($m):n,f;if(Array.isArray(r)){var h=n.map((b,S)=>rk(rk({},b),{},{base:r[S]}));a==="vertical"?f=kh().y(Ac).x1(jc).x0(b=>b.base.x):f=kh().x(jc).y1(Ac).y0(b=>b.base.y);var m=f.defined(ak).curve(l),p=o?h.filter(ak):h;return m(p)}a==="vertical"&&he(r)?f=kh().y(Ac).x1(jc).x0(r):he(r)?f=kh().x(jc).y1(Ac).y0(r):f=M3().x(jc).y(Ac);var y=f.defined($m).curve(l);return y(c)},Vc=e=>{var{className:t,points:n,path:r,pathRef:a}=e,o=Po();if((!n||!n.length)&&!r)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},c=n&&n.length?UQ(l):r;return w.createElement("path",f1({},Rr(e),Kw(e),{className:Ze("recharts-curve",t),d:c===null?void 0:c,ref:a}))},$Q=["x","y","top","left","width","height","className"];function d1(){return d1=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},d1.apply(null,arguments)}function sk(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 qQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(n),!0).forEach(function(r){VQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VQ(e,t,n){return(t=FQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQ(e){var t=HQ(e,"string");return typeof t=="symbol"?t:t+""}function HQ(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 KQ(e,t){if(e==null)return{};var n,r,a=YQ(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 YQ(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 GQ=(e,t,n,r,a,o)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),WQ=e=>{var{x:t=0,y:n=0,top:r=0,left:a=0,width:o=0,height:l=0,className:c}=e,f=KQ(e,$Q),h=qQ({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:w.createElement("path",d1({},Ln(h),{className:Ze("recharts-cross",c),d:GQ(t,n,o,l,r,a)}))};function XQ(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 ok(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 lk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){QQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function 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)}var eZ=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),n4=(e,t,n)=>e.map(r=>"".concat(eZ(r)," ").concat(t,"ms ").concat(n)).join(","),tZ=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(a=>r.includes(a))),hf=(e,t)=>Object.keys(t).reduce((n,r)=>lk(lk({},n),{},{[r]:e(r,t[r])}),{});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 Wt(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){nZ(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 nZ(e,t,n){return(t=rZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rZ(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 qm=(e,t,n)=>e+(t-e)*n,h1=e=>{var{from:t,to:n}=e;return t!==n},r4=(e,t,n)=>{var r=hf((a,o)=>{if(h1(o)){var[l,c]=e(o.from,o.to,o.velocity);return Wt(Wt({},o),{},{from:l,velocity:c})}return o},t);return n<1?hf((a,o)=>h1(o)&&r[a]!=null?Wt(Wt({},o),{},{velocity:qm(o.velocity,r[a].velocity,n),from:qm(o.from,r[a].from,n)}):o,t):r4(e,r,n-1)};function aZ(e,t,n,r,a,o){var l,c=r.reduce((y,b)=>Wt(Wt({},y),{},{[b]:{from:e[b],velocity:0,to:t[b]}}),{}),f=()=>hf((y,b)=>b.from,c),h=()=>!Object.values(c).filter(h1).length,m=null,p=y=>{l||(l=y);var b=y-l,S=b/n.dt;c=r4(n,c,S),a(Wt(Wt(Wt({},e),t),f())),l=y,h()||(m=o.setTimeout(p))};return()=>(m=o.setTimeout(p),()=>{var y;(y=m)===null||y===void 0||y()})}function sZ(e,t,n,r,a,o,l){var c=null,f=a.reduce((p,y)=>{var b=e[y],S=t[y];return b==null||S==null?p:Wt(Wt({},p),{},{[y]:[b,S]})},{}),h,m=p=>{h||(h=p);var y=(p-h)/r,b=hf((j,A)=>qm(...A,n(y)),f);if(o(Wt(Wt(Wt({},e),t),b)),y<1)c=l.setTimeout(m);else{var S=hf((j,A)=>qm(...A,n(1)),f);o(Wt(Wt(Wt({},e),t),S))}};return()=>(c=l.setTimeout(m),()=>{var p;(p=c)===null||p===void 0||p()})}const oZ=(e,t,n,r,a,o)=>{var l=tZ(e,t);return n==null?()=>(a(Wt(Wt({},e),t)),()=>{}):n.isStepper===!0?aZ(e,t,n,l,a,o):sZ(e,t,n,r,l,a,o)};var Vm=1e-4,i4=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],a4=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),ck=(e,t)=>n=>{var r=i4(e,t);return a4(r,n)},lZ=(e,t)=>n=>{var r=i4(e,t),a=[...r.map((o,l)=>o*l).slice(1),0];return a4(a,n)},uZ=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]]},cZ=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=uZ(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},fZ=(e,t,n,r)=>{var a=ck(e,n),o=ck(t,r),l=lZ(e,n),c=h=>h>1?1:h<0?0:h,f=h=>{for(var m=h>1?1:h,p=m,y=0;y<8;++y){var b=a(p)-m,S=l(p);if(Math.abs(b-m)<Vm||S<Vm)return o(p);p=c(p-b/S)}return o(p)};return f.isStepper=!1,f},fk=function(){return fZ(...cZ(...arguments))},dZ=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,y=f*a/1e3+l;return Math.abs(y-c)<Vm&&Math.abs(p)<Vm?[c,0]:[y,p]};return o.isStepper=!0,o.dt=a,o},hZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fk(e);case"spring":return dZ();default:if(e.split("(")[0]==="cubic-bezier")return fk(e)}return typeof e=="function"?e:null};function mZ(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 pZ{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 gZ(){return mZ(new pZ)}var vZ=w.createContext(gZ);function yZ(e,t){var n=w.useContext(vZ);return w.useMemo(()=>t??n(e),[e,t,n])}var xZ=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Vf={isSsr:xZ()},bZ={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},dk={t:0},px={t:1};function Zp(e){var t=Sn(e,bZ),{isActive:n,canBegin:r,duration:a,easing:o,begin:l,onAnimationEnd:c,onAnimationStart:f,children:h}=t,m=n==="auto"?!Vf.isSsr:n,p=yZ(t.animationId,t.animationManager),[y,b]=w.useState(m?dk:px),S=w.useRef(null);return w.useEffect(()=>{m||b(px)},[m]),w.useEffect(()=>{if(!m||!r)return If;var j=oZ(dk,px,hZ(o),a,b,p.getTimeoutController()),A=()=>{S.current=j()};return p.start([f,l,A,a,c]),()=>{p.stop(),S.current&&S.current(),c()}},[m,r,a,o,l,f,c,p]),h(y.t)}function Jp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=w.useRef(sf(t)),r=w.useRef(e);return r.current!==e&&(n.current=sf(t),r.current=e),n.current}var wZ=["radius"],SZ=["radius"],hk,mk,pk,gk,vk,yk,xk,bk,wk,Sk;function jk(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 Ak(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(n),!0).forEach(function(r){jZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jZ(e,t,n){return(t=AZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(e){var t=OZ(e,"string");return typeof t=="symbol"?t:t+""}function OZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fm.apply(null,arguments)}function Ok(e,t){if(e==null)return{};var n,r,a=EZ(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 EZ(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 ci(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ek=(e,t,n,r,a)=>{var o=ps(n),l=ps(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&&a instanceof Array){for(var y=[0,0,0,0],b=0,S=4;b<S;b++)y[b]=a[b]>c?c:a[b];p=kt(hk||(hk=ci(["M",",",""])),e,t+f*y[0]),y[0]>0&&(p+=kt(mk||(mk=ci(["A ",",",",0,0,",",",",",""])),y[0],y[0],m,e+h*y[0],t)),p+=kt(pk||(pk=ci(["L ",",",""])),e+n-h*y[1],t),y[1]>0&&(p+=kt(gk||(gk=ci(["A ",",",",0,0,",`,
|
|
386
|
-
`,",",""])),y[1],y[1],m,e+n,t+f*y[1])),p+=kt(vk||(vk=ci(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(p+=kt(yk||(yk=ci(["A ",",",",0,0,",`,
|
|
387
|
-
`,",",""])),y[2],y[2],m,e+n-h*y[2],t+r)),p+=kt(xk||(xk=ci(["L ",",",""])),e+h*y[3],t+r),y[3]>0&&(p+=kt(bk||(bk=ci(["A ",",",",0,0,",`,
|
|
388
|
-
`,",",""])),y[3],y[3],m,e,t+r-f*y[3])),p+="Z"}else if(c>0&&a===+a&&a>0){var j=Math.min(c,a);p=kt(wk||(wk=ci(["M ",",",`
|
|
389
|
-
A `,",",",0,0,",",",",",`
|
|
390
|
-
L `,",",`
|
|
391
|
-
A `,",",",0,0,",",",",",`
|
|
392
|
-
L `,",",`
|
|
393
|
-
A `,",",",0,0,",",",",",`
|
|
394
|
-
L `,",",`
|
|
395
|
-
A `,",",",0,0,",",",","," Z"])),e,t+f*j,j,j,m,e+h*j,t,e+n-h*j,t,j,j,m,e+n,t+f*j,e+n,t+r-f*j,j,j,m,e+n-h*j,t+r,e+h*j,t+r,j,j,m,e,t+r-f*j)}else p=kt(Sk||(Sk=ci(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},Nk={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},s4=e=>{var t=Sn(e,Nk),n=w.useRef(null),[r,a]=w.useState(-1);w.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var W=n.current.getTotalLength();W&&a(W)}catch{}},[]);var{x:o,y:l,width:c,height:f,radius:h,className:m}=t,{animationEasing:p,animationDuration:y,animationBegin:b,isAnimationActive:S,isUpdateAnimationActive:j}=t,A=w.useRef(c),O=w.useRef(f),T=w.useRef(o),N=w.useRef(l),C=w.useMemo(()=>({x:o,y:l,width:c,height:f,radius:h}),[o,l,c,f,h]),k=Jp(C,"rectangle-");if(o!==+o||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var D=Ze("recharts-rectangle",m);if(!j){var M=Ln(t),{radius:_}=M,B=Ok(M,wZ);return w.createElement("path",Fm({},B,{x:ps(o),y:ps(l),width:ps(c),height:ps(f),radius:typeof h=="number"?h:void 0,className:D,d:Ek(o,l,c,f,h)}))}var K=A.current,$=O.current,Z=T.current,le=N.current,de="0px ".concat(r===-1?1:r,"px"),me="".concat(r,"px 0px"),q=n4(["strokeDasharray"],y,typeof p=="string"?p:Nk.animationEasing);return w.createElement(Zp,{animationId:k,key:k,canBegin:r>0,duration:y,easing:p,isActive:j,begin:b},W=>{var Y=wt(K,c,W),oe=wt($,f,W),ne=wt(Z,o,W),R=wt(le,l,W);n.current&&(A.current=Y,O.current=oe,T.current=ne,N.current=R);var F;S?W>0?F={transition:q,strokeDasharray:me}:F={strokeDasharray:de}:F={strokeDasharray:me};var ie=Ln(t),{radius:se}=ie,ye=Ok(ie,SZ);return w.createElement("path",Fm({},ye,{radius:typeof h=="number"?h:void 0,className:D,d:Ek(ne,R,Y,oe,h),ref:n,style:Ak(Ak({},F),t.style)}))})};function Tk(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 Ck(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tk(Object(n),!0).forEach(function(r){NZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NZ(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)}var Hm=Math.PI/180,kZ=e=>e*180/Math.PI,wn=(e,t,n,r)=>({x:e+Math.cos(-Hm*r)*n,y:t+Math.sin(-Hm*r)*n}),MZ=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},PZ=(e,t)=>{var{x:n,y:r}=e,{x:a,y:o}=t;return Math.sqrt((n-a)**2+(r-o)**2)},_Z=(e,t)=>{var{x:n,y:r}=e,{cx:a,cy:o}=t,l=PZ({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:kZ(f),angleInRadian:f}},DZ=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}},RZ=(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},zZ=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:a,angle:o}=_Z({x:n,y:r},t),{innerRadius:l,outerRadius:c}=t;if(a<l||a>c||a===0)return null;var{startAngle:f,endAngle:h}=DZ(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?Ck(Ck({},t),{},{radius:a,angle:RZ(m,t)}):null};function o4(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 kk,Mk,Pk,_k,Dk,Rk,zk;function m1(){return m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m1.apply(null,arguments)}function no(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var LZ=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Bh=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)/Hm,p=f?a:a+o*m,y=wn(t,n,h,p),b=wn(t,n,r,p),S=f?a-o*m:a,j=wn(t,n,h*Math.cos(m*Hm),S);return{center:y,circleTangency:b,lineTangency:j,theta:m}},l4=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:o,endAngle:l}=e,c=LZ(o,l),f=o+c,h=wn(t,n,a,o),m=wn(t,n,a,f),p=kt(kk||(kk=no(["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 y=wn(t,n,r,o),b=wn(t,n,r,f);p+=kt(Mk||(Mk=no(["L ",",",`
|
|
400
|
-
A `,",",`,0,
|
|
401
|
-
`,",",`,
|
|
402
|
-
`,","," Z"])),b.x,b.y,r,r,+(Math.abs(c)>180),+(o<=f),y.x,y.y)}else p+=kt(Pk||(Pk=no(["L ",","," Z"])),t,n);return p},IZ=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:h}=e,m=Xn(h-f),{circleTangency:p,lineTangency:y,theta:b}=Bh({cx:t,cy:n,radius:a,angle:f,sign:m,cornerRadius:o,cornerIsExternal:c}),{circleTangency:S,lineTangency:j,theta:A}=Bh({cx:t,cy:n,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:c}),O=c?Math.abs(f-h):Math.abs(f-h)-b-A;if(O<0)return l?kt(_k||(_k=no(["M ",",",`
|
|
403
|
-
a`,",",",0,0,1,",`,0
|
|
404
|
-
a`,",",",0,0,1,",`,0
|
|
405
|
-
`])),y.x,y.y,o,o,o*2,o,o,-o*2):l4({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:f,endAngle:h});var T=kt(Dk||(Dk=no(["M ",",",`
|
|
406
|
-
A`,",",",0,0,",",",",",`
|
|
407
|
-
A`,",",",0,",",",",",",",`
|
|
408
|
-
A`,",",",0,0,",",",",",`
|
|
409
|
-
`])),y.x,y.y,o,o,+(m<0),p.x,p.y,a,a,+(O>180),+(m<0),S.x,S.y,o,o,+(m<0),j.x,j.y);if(r>0){var{circleTangency:N,lineTangency:C,theta:k}=Bh({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),{circleTangency:D,lineTangency:M,theta:_}=Bh({cx:t,cy:n,radius:r,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),B=c?Math.abs(f-h):Math.abs(f-h)-k-_;if(B<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+=kt(Rk||(Rk=no(["L",",",`
|
|
410
|
-
A`,",",",0,0,",",",",",`
|
|
411
|
-
A`,",",",0,",",",",",",",`
|
|
412
|
-
A`,",",",0,0,",",",",","Z"])),M.x,M.y,o,o,+(m<0),D.x,D.y,r,r,+(B>180),+(m>0),N.x,N.y,o,o,+(m<0),C.x,C.y)}else T+=kt(zk||(zk=no(["L",",","Z"])),t,n);return T},BZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},u4=e=>{var t=Sn(e,BZ),{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 y=Ze("recharts-sector",p),b=o-a,S=ni(l,b,0,!0),j;return S>0&&Math.abs(h-m)<360?j=IZ({cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m}):j=l4({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),w.createElement("path",m1({},Ln(t),{className:y,d:j}))};function UZ(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(K3(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 o4(t)}}var gx={},vx={},yx={},Lk;function $Z(){return Lk||(Lk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iR();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(yx)),yx}var Ik;function qZ(){return Ik||(Ik=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$Z();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})(vx)),vx}var Bk;function VZ(){return Bk||(Bk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aR(),n=qZ();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})(gx)),gx}var xx,Uk;function FZ(){return Uk||(Uk=1,xx=VZ().range),xx}var HZ=FZ();const c4=Si(HZ);function vs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function KZ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oS(e){let t,n,r;e.length!==2?(t=vs,n=(c,f)=>vs(e(c),f),r=(c,f)=>e(c)-f):(t=e===vs||e===KZ?e:YZ,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 YZ(){return 0}function f4(e){return e===null?NaN:+e}function*GZ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const WZ=oS(vs),Ff=WZ.right;oS(f4).center;class $k extends Map{constructor(t,n=ZZ){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(qk(this,t))}has(t){return super.has(qk(this,t))}set(t,n){return super.set(XZ(this,t),n)}delete(t){return super.delete(QZ(this,t))}}function qk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function XZ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function QZ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ZZ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function JZ(e=vs){if(e===vs)return d4;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 d4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const eJ=Math.sqrt(50),tJ=Math.sqrt(10),nJ=Math.sqrt(2);function Km(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>=eJ?10:o>=tJ?5:o>=nJ?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?Km(e,t,n*2):[c,f,h]}function p1(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?Km(t,e,n):Km(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 g1(e,t,n){return t=+t,e=+e,n=+n,Km(e,t,n)[2]}function v1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?g1(t,e,n):g1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Vk(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Fk(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function h4(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?d4:JZ(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),y=.5*Math.sqrt(m*p*(f-p)/f)*(h-f/2<0?-1:1),b=Math.max(n,Math.floor(t-h*p/f+y)),S=Math.min(r,Math.floor(t+(f-h)*p/f+y));h4(e,t,b,S,a)}const o=e[t];let l=n,c=r;for(Oc(e,n,t),a(e[r],o)>0&&Oc(e,n,r);l<c;){for(Oc(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Oc(e,n,c):(++c,Oc(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Oc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function rJ(e,t,n){if(e=Float64Array.from(GZ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fk(e);if(t>=1)return Vk(e);var r,a=(r-1)*t,o=Math.floor(a),l=Vk(h4(e,o).subarray(0,o+1)),c=Fk(e.subarray(o+1));return l+(c-l)*(a-o)}}function iJ(e,t,n=f4){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 aJ(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 Ur(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ba(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 y1=Symbol("implicit");function lS(){var e=new $k,t=[],n=[],r=y1;function a(o){let l=e.get(o);if(l===void 0){if(r!==y1)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 $k;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 lS(t,n).unknown(r)},Ur.apply(a,arguments),a}function uS(){var e=lS().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 y=t().length,b=a<r,S=b?a:r,j=b?r:a;o=(j-S)/Math.max(1,y-f+h*2),c&&(o=Math.floor(o)),S+=(j-S-o*(y-f))*m,l=o*(1-f),c&&(S=Math.round(S),l=Math.round(l));var A=aJ(y).map(function(O){return S+o*O});return n(b?A.reverse():A)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,c=!0,p()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,h=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(h=+y,p()):h},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),p()):m},e.copy=function(){return uS(t(),[r,a]).round(c).paddingInner(f).paddingOuter(h).align(m)},Ur.apply(p(),arguments)}function m4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m4(t())},e}function sJ(){return m4(uS.apply(null,arguments).paddingInner(1))}function cS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function p4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Hf(){}var mf=.7,Ym=1/mf,Il="\\s*([+-]?\\d+)\\s*",pf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oJ=/^#([0-9a-f]{3,8})$/,lJ=new RegExp(`^rgb\\(${Il},${Il},${Il}\\)$`),uJ=new RegExp(`^rgb\\(${vi},${vi},${vi}\\)$`),cJ=new RegExp(`^rgba\\(${Il},${Il},${Il},${pf}\\)$`),fJ=new RegExp(`^rgba\\(${vi},${vi},${vi},${pf}\\)$`),dJ=new RegExp(`^hsl\\(${pf},${vi},${vi}\\)$`),hJ=new RegExp(`^hsla\\(${pf},${vi},${vi},${pf}\\)$`),Hk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cS(Hf,gf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kk,formatHex:Kk,formatHex8:mJ,formatHsl:pJ,formatRgb:Yk,toString:Yk});function Kk(){return this.rgb().formatHex()}function mJ(){return this.rgb().formatHex8()}function pJ(){return g4(this).formatHsl()}function Yk(){return this.rgb().formatRgb()}function gf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Gk(t):n===3?new Qn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Uh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Uh(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=lJ.exec(e))?new Qn(t[1],t[2],t[3],1):(t=uJ.exec(e))?new Qn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cJ.exec(e))?Uh(t[1],t[2],t[3],t[4]):(t=fJ.exec(e))?Uh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dJ.exec(e))?Qk(t[1],t[2]/100,t[3]/100,1):(t=hJ.exec(e))?Qk(t[1],t[2]/100,t[3]/100,t[4]):Hk.hasOwnProperty(e)?Gk(Hk[e]):e==="transparent"?new Qn(NaN,NaN,NaN,0):null}function Gk(e){return new Qn(e>>16&255,e>>8&255,e&255,1)}function Uh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qn(e,t,n,r)}function gJ(e){return e instanceof Hf||(e=gf(e)),e?(e=e.rgb(),new Qn(e.r,e.g,e.b,e.opacity)):new Qn}function x1(e,t,n,r){return arguments.length===1?gJ(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}cS(Qn,x1,p4(Hf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Qn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mf:Math.pow(mf,e),new Qn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qn(yo(this.r),yo(this.g),yo(this.b),Gm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wk,formatHex:Wk,formatHex8:vJ,formatRgb:Xk,toString:Xk}));function Wk(){return`#${ro(this.r)}${ro(this.g)}${ro(this.b)}`}function vJ(){return`#${ro(this.r)}${ro(this.g)}${ro(this.b)}${ro((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xk(){const e=Gm(this.opacity);return`${e===1?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${e===1?")":`, ${e})`}`}function Gm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ro(e){return e=yo(e),(e<16?"0":"")+e.toString(16)}function Qk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qr(e,t,n,r)}function g4(e){if(e instanceof Qr)return new Qr(e.h,e.s,e.l,e.opacity);if(e instanceof Hf||(e=gf(e)),!e)return new Qr;if(e instanceof Qr)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 Qr(l,c,f,e.opacity)}function yJ(e,t,n,r){return arguments.length===1?g4(e):new Qr(e,t,n,r??1)}function Qr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cS(Qr,yJ,p4(Hf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mf:Math.pow(mf,e),new Qr(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(bx(e>=240?e-240:e+120,a,r),bx(e,a,r),bx(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Qr(Zk(this.h),$h(this.s),$h(this.l),Gm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gm(this.opacity);return`${e===1?"hsl(":"hsla("}${Zk(this.h)}, ${$h(this.s)*100}%, ${$h(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zk(e){return e=(e||0)%360,e<0?e+360:e}function $h(e){return Math.max(0,Math.min(1,e||0))}function bx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fS=e=>()=>e;function xJ(e,t){return function(n){return e+n*t}}function bJ(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 wJ(e){return(e=+e)==1?v4:function(t,n){return n-t?bJ(t,n,e):fS(isNaN(t)?n:t)}}function v4(e,t){var n=t-e;return n?xJ(e,n):fS(isNaN(e)?t:e)}const Jk=(function e(t){var n=wJ(t);function r(a,o){var l=n((a=x1(a)).r,(o=x1(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),h=v4(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 SJ(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 jJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function AJ(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]=vu(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 OJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function EJ(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]=vu(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var b1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wx=new RegExp(b1.source,"g");function NJ(e){return function(){return e}}function TJ(e){return function(t){return e(t)+""}}function CJ(e,t){var n=b1.lastIndex=wx.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=b1.exec(e))&&(a=wx.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:Wm(r,a)})),n=wx.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?TJ(f[0].x):NJ(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 vu(e,t){var n=typeof t,r;return t==null||n==="boolean"?fS(t):(n==="number"?Wm:n==="string"?(r=gf(t))?(t=r,Jk):CJ:t instanceof gf?Jk:t instanceof Date?OJ:jJ(t)?SJ:Array.isArray(t)?AJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?EJ:Wm)(e,t)}function dS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function kJ(e,t){t===void 0&&(t=e,e=vu);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 MJ(e){return function(){return e}}function Xm(e){return+e}var eM=[0,1];function zn(e){return e}function w1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:MJ(isNaN(t)?NaN:.5)}function PJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function _J(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=w1(a,r),o=n(l,o)):(r=w1(r,a),o=n(o,l)),function(c){return o(r(c))}}function DJ(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]=w1(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=Ff(e,c,1,r)-1;return o[f](a[f](c))}}function Kf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eg(){var e=eM,t=eM,n=vu,r,a,o,l=zn,c,f,h;function m(){var y=Math.min(e.length,t.length);return l!==zn&&(l=PJ(e[0],e[y-1])),c=y>2?DJ:_J,f=h=null,p}function p(y){return y==null||isNaN(y=+y)?o:(f||(f=c(e.map(r),t,n)))(r(l(y)))}return p.invert=function(y){return l(a((h||(h=c(t,e.map(r),Wm)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,Xm),m()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=dS,m()},p.clamp=function(y){return arguments.length?(l=y?!0:zn,m()):l!==zn},p.interpolate=function(y){return arguments.length?(n=y,m()):n},p.unknown=function(y){return arguments.length?(o=y,p):o},function(y,b){return r=y,a=b,m()}}function hS(){return eg()(zn,zn)}function RJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qm(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function iu(e){return e=Qm(Math.abs(e)),e?e[1]:NaN}function zJ(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 LJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var IJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vf(e){if(!(t=IJ.exec(e)))throw new Error("invalid format: "+e);var t;return new mS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}vf.prototype=mS.prototype;function mS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function BJ(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 y4;function UJ(e,t){var n=Qm(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(y4=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")+Qm(e,Math.max(0,t+o-1))[0]}function tM(e,t){var n=Qm(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 nM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:RJ,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)=>tM(e*100,t),r:tM,s:UJ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rM(e){return e}var iM=Array.prototype.map,aM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $J(e){var t=e.grouping===void 0||e.thousands===void 0?rM:zJ(iM.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?rM:LJ(iM.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){p=vf(p);var y=p.fill,b=p.align,S=p.sign,j=p.symbol,A=p.zero,O=p.width,T=p.comma,N=p.precision,C=p.trim,k=p.type;k==="n"?(T=!0,k="g"):nM[k]||(N===void 0&&(N=12),C=!0,k="g"),(A||y==="0"&&b==="=")&&(A=!0,y="0",b="=");var D=j==="$"?n:j==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",M=j==="$"?r:/[%p]/.test(k)?l:"",_=nM[k],B=/[defgprs%]/.test(k);N=N===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function K($){var Z=D,le=M,de,me,q;if(k==="c")le=_($)+le,$="";else{$=+$;var W=$<0||1/$<0;if($=isNaN($)?f:_(Math.abs($),N),C&&($=BJ($)),W&&+$==0&&S!=="+"&&(W=!1),Z=(W?S==="("?S:c:S==="-"||S==="("?"":S)+Z,le=(k==="s"?aM[8+y4/3]:"")+le+(W&&S==="("?")":""),B){for(de=-1,me=$.length;++de<me;)if(q=$.charCodeAt(de),48>q||q>57){le=(q===46?a+$.slice(de+1):$.slice(de))+le,$=$.slice(0,de);break}}}T&&!A&&($=t($,1/0));var Y=Z.length+$.length+le.length,oe=Y<O?new Array(O-Y+1).join(y):"";switch(T&&A&&($=t(oe+$,oe.length?O-le.length:1/0),oe=""),b){case"<":$=Z+$+le+oe;break;case"=":$=Z+oe+$+le;break;case"^":$=oe.slice(0,Y=oe.length>>1)+Z+$+le+oe.slice(Y);break;default:$=oe+Z+$+le;break}return o($)}return K.toString=function(){return p+""},K}function m(p,y){var b=h((p=vf(p),p.type="f",p)),S=Math.max(-8,Math.min(8,Math.floor(iu(y)/3)))*3,j=Math.pow(10,-S),A=aM[8+S/3];return function(O){return b(j*O)+A}}return{format:h,formatPrefix:m}}var qh,pS,x4;qJ({thousands:",",grouping:[3],currency:["$",""]});function qJ(e){return qh=$J(e),pS=qh.format,x4=qh.formatPrefix,qh}function VJ(e){return Math.max(0,-iu(Math.abs(e)))}function FJ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(iu(t)/3)))*3-iu(Math.abs(e)))}function HJ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,iu(t)-iu(e))+1}function b4(e,t,n,r){var a=v1(e,t,n),o;switch(r=vf(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=FJ(a,l))&&(r.precision=o),x4(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=HJ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=VJ(a))&&(r.precision=o-(r.type==="%")*2);break}}return pS(r)}function Es(e){var t=e.domain;return e.ticks=function(n){var r=t();return p1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return b4(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=g1(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 w4(){var e=hS();return e.copy=function(){return Kf(e,w4())},Ur.apply(e,arguments),Es(e)}function S4(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,Xm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return S4(e).unknown(t)},e=arguments.length?Array.from(e,Xm):[0,1],Es(n)}function j4(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 sM(e){return Math.log(e)}function oM(e){return Math.exp(e)}function KJ(e){return-Math.log(-e)}function YJ(e){return-Math.exp(-e)}function GJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WJ(e){return e===10?GJ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function XJ(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 lM(e){return(t,n)=>-e(-t,n)}function gS(e){const t=e(sM,oM),n=t.domain;let r=10,a,o;function l(){return a=XJ(r),o=WJ(r),n()[0]<0?(a=lM(a),o=lM(o),e(KJ,YJ)):e(sM,oM),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 y=a(h),b=a(m),S,j;const A=c==null?10:+c;let O=[];if(!(r%1)&&b-y<A){if(y=Math.floor(y),b=Math.ceil(b),h>0){for(;y<=b;++y)for(S=1;S<r;++S)if(j=y<0?S/o(-y):S*o(y),!(j<h)){if(j>m)break;O.push(j)}}else for(;y<=b;++y)for(S=r-1;S>=1;--S)if(j=y>0?S/o(-y):S*o(y),!(j<h)){if(j>m)break;O.push(j)}O.length*2<A&&(O=p1(h,m,A))}else O=p1(y,b,Math.min(b-y,A)).map(o);return p?O.reverse():O},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=vf(f)).precision==null&&(f.trim=!0),f=pS(f)),c===1/0)return f;const h=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/o(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=h?f(m):""}},t.nice=()=>n(j4(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function A4(){const e=gS(eg()).domain([1,10]);return e.copy=()=>Kf(e,A4()).base(e.base()),Ur.apply(e,arguments),e}function uM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vS(e){var t=1,n=e(uM(t),cM(t));return n.constant=function(r){return arguments.length?e(uM(t=+r),cM(t)):t},Es(n)}function O4(){var e=vS(eg());return e.copy=function(){return Kf(e,O4()).constant(e.constant())},Ur.apply(e,arguments)}function fM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function QJ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ZJ(e){return e<0?-e*e:e*e}function yS(e){var t=e(zn,zn),n=1;function r(){return n===1?e(zn,zn):n===.5?e(QJ,ZJ):e(fM(n),fM(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Es(t)}function xS(){var e=yS(eg());return e.copy=function(){return Kf(e,xS()).exponent(e.exponent())},Ur.apply(e,arguments),e}function JJ(){return xS.apply(null,arguments).exponent(.5)}function dM(e){return Math.sign(e)*e*e}function eee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function E4(){var e=hS(),t=[0,1],n=!1,r;function a(o){var l=eee(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(dM(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,Xm)).map(dM)),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 E4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ur.apply(a,arguments),Es(a)}function N4(){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]=iJ(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[Ff(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(vs),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 N4().domain(e).range(t).unknown(r)},Ur.apply(o,arguments)}function T4(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[Ff(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 T4().domain([e,t]).range(a).unknown(o)},Ur.apply(Es(l),arguments)}function C4(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[Ff(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 C4().domain(e).range(t).unknown(n)},Ur.apply(a,arguments)}const Sx=new Date,jx=new Date;function Qt(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=>Qt(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)=>(Sx.setTime(+o),jx.setTime(+l),e(Sx),e(jx),Math.floor(n(Sx,jx))),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 Zm=Qt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zm);Zm.range;const Zi=1e3,_r=Zi*60,Ji=_r*60,ua=Ji*24,bS=ua*7,hM=ua*30,Ax=ua*365,io=Qt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zi)},(e,t)=>(t-e)/Zi,e=>e.getUTCSeconds());io.range;const wS=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zi)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getMinutes());wS.range;const SS=Qt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCMinutes());SS.range;const jS=Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zi-e.getMinutes()*_r)},(e,t)=>{e.setTime(+e+t*Ji)},(e,t)=>(t-e)/Ji,e=>e.getHours());jS.range;const AS=Qt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ji)},(e,t)=>(t-e)/Ji,e=>e.getUTCHours());AS.range;const Yf=Qt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_r)/ua,e=>e.getDate()-1);Yf.range;const tg=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ua,e=>e.getUTCDate()-1);tg.range;const k4=Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ua,e=>Math.floor(e/ua));k4.range;function _o(e){return Qt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*_r)/bS)}const ng=_o(0),Jm=_o(1),tee=_o(2),nee=_o(3),au=_o(4),ree=_o(5),iee=_o(6);ng.range;Jm.range;tee.range;nee.range;au.range;ree.range;iee.range;function Do(e){return Qt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bS)}const rg=Do(0),ep=Do(1),aee=Do(2),see=Do(3),su=Do(4),oee=Do(5),lee=Do(6);rg.range;ep.range;aee.range;see.range;su.range;oee.range;lee.range;const OS=Qt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());OS.range;const ES=Qt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ES.range;const ca=Qt(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());ca.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(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)});ca.range;const fa=Qt(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());fa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qt(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)});fa.range;function M4(e,t,n,r,a,o){const l=[[io,1,Zi],[io,5,5*Zi],[io,15,15*Zi],[io,30,30*Zi],[o,1,_r],[o,5,5*_r],[o,15,15*_r],[o,30,30*_r],[a,1,Ji],[a,3,3*Ji],[a,6,6*Ji],[a,12,12*Ji],[r,1,ua],[r,2,2*ua],[n,1,bS],[t,1,hM],[t,3,3*hM],[e,1,Ax]];function c(h,m,p){const y=m<h;y&&([h,m]=[m,h]);const b=p&&typeof p.range=="function"?p:f(h,m,p),S=b?b.range(h,+m+1):[];return y?S.reverse():S}function f(h,m,p){const y=Math.abs(m-h)/p,b=oS(([,,A])=>A).right(l,y);if(b===l.length)return e.every(v1(h/Ax,m/Ax,p));if(b===0)return Zm.every(Math.max(v1(h,m,p),1));const[S,j]=l[y/l[b-1][2]<l[b][2]/y?b-1:b];return S.every(j)}return[c,f]}const[uee,cee]=M4(fa,ES,rg,k4,AS,SS),[fee,dee]=M4(ca,OS,ng,Yf,jS,wS);function Ox(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 Ex(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 Ec(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function hee(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=Nc(a),m=Tc(a),p=Nc(o),y=Tc(o),b=Nc(l),S=Tc(l),j=Nc(c),A=Tc(c),O=Nc(f),T=Tc(f),N={a:W,A:Y,b:oe,B:ne,c:null,d:xM,e:xM,f:zee,g:Kee,G:Gee,H:_ee,I:Dee,j:Ree,L:P4,m:Lee,M:Iee,p:R,q:F,Q:SM,s:jM,S:Bee,u:Uee,U:$ee,V:qee,w:Vee,W:Fee,x:null,X:null,y:Hee,Y:Yee,Z:Wee,"%":wM},C={a:ie,A:se,b:ye,B:Ee,c:null,d:bM,e:bM,f:Jee,g:ute,G:fte,H:Xee,I:Qee,j:Zee,L:D4,m:ete,M:tte,p:fe,q:Xe,Q:SM,s:jM,S:nte,u:rte,U:ite,V:ate,w:ste,W:ote,x:null,X:null,y:lte,Y:cte,Z:dte,"%":wM},k={a:K,A:$,b:Z,B:le,c:de,d:vM,e:vM,f:Cee,g:gM,G:pM,H:yM,I:yM,j:Oee,L:Tee,m:Aee,M:Eee,p:B,q:jee,Q:Mee,s:Pee,S:Nee,u:yee,U:xee,V:bee,w:vee,W:wee,x:me,X:q,y:gM,Y:pM,Z:See,"%":kee};N.x=D(n,N),N.X=D(r,N),N.c=D(t,N),C.x=D(n,C),C.X=D(r,C),C.c=D(t,C);function D(J,Ce){return function(Pe){var ae=[],Dt=-1,Be=0,Rt=J.length,zt,mr,Oa;for(Pe instanceof Date||(Pe=new Date(+Pe));++Dt<Rt;)J.charCodeAt(Dt)===37&&(ae.push(J.slice(Be,Dt)),(mr=mM[zt=J.charAt(++Dt)])!=null?zt=J.charAt(++Dt):mr=zt==="e"?" ":"0",(Oa=Ce[zt])&&(zt=Oa(Pe,mr)),ae.push(zt),Be=Dt+1);return ae.push(J.slice(Be,Dt)),ae.join("")}}function M(J,Ce){return function(Pe){var ae=Ec(1900,void 0,1),Dt=_(ae,J,Pe+="",0),Be,Rt;if(Dt!=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?(Be=Ex(Ec(ae.y,0,1)),Rt=Be.getUTCDay(),Be=Rt>4||Rt===0?ep.ceil(Be):ep(Be),Be=tg.offset(Be,(ae.V-1)*7),ae.y=Be.getUTCFullYear(),ae.m=Be.getUTCMonth(),ae.d=Be.getUTCDate()+(ae.w+6)%7):(Be=Ox(Ec(ae.y,0,1)),Rt=Be.getDay(),Be=Rt>4||Rt===0?Jm.ceil(Be):Jm(Be),Be=Yf.offset(Be,(ae.V-1)*7),ae.y=Be.getFullYear(),ae.m=Be.getMonth(),ae.d=Be.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?Ex(Ec(ae.y,0,1)).getUTCDay():Ox(Ec(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,Ex(ae)):Ox(ae)}}function _(J,Ce,Pe,ae){for(var Dt=0,Be=Ce.length,Rt=Pe.length,zt,mr;Dt<Be;){if(ae>=Rt)return-1;if(zt=Ce.charCodeAt(Dt++),zt===37){if(zt=Ce.charAt(Dt++),mr=k[zt in mM?Ce.charAt(Dt++):zt],!mr||(ae=mr(J,Pe,ae))<0)return-1}else if(zt!=Pe.charCodeAt(ae++))return-1}return ae}function B(J,Ce,Pe){var ae=h.exec(Ce.slice(Pe));return ae?(J.p=m.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function K(J,Ce,Pe){var ae=b.exec(Ce.slice(Pe));return ae?(J.w=S.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function $(J,Ce,Pe){var ae=p.exec(Ce.slice(Pe));return ae?(J.w=y.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function Z(J,Ce,Pe){var ae=O.exec(Ce.slice(Pe));return ae?(J.m=T.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function le(J,Ce,Pe){var ae=j.exec(Ce.slice(Pe));return ae?(J.m=A.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function de(J,Ce,Pe){return _(J,t,Ce,Pe)}function me(J,Ce,Pe){return _(J,n,Ce,Pe)}function q(J,Ce,Pe){return _(J,r,Ce,Pe)}function W(J){return l[J.getDay()]}function Y(J){return o[J.getDay()]}function oe(J){return f[J.getMonth()]}function ne(J){return c[J.getMonth()]}function R(J){return a[+(J.getHours()>=12)]}function F(J){return 1+~~(J.getMonth()/3)}function ie(J){return l[J.getUTCDay()]}function se(J){return o[J.getUTCDay()]}function ye(J){return f[J.getUTCMonth()]}function Ee(J){return c[J.getUTCMonth()]}function fe(J){return a[+(J.getUTCHours()>=12)]}function Xe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var Ce=D(J+="",N);return Ce.toString=function(){return J},Ce},parse:function(J){var Ce=M(J+="",!1);return Ce.toString=function(){return J},Ce},utcFormat:function(J){var Ce=D(J+="",C);return Ce.toString=function(){return J},Ce},utcParse:function(J){var Ce=M(J+="",!0);return Ce.toString=function(){return J},Ce}}}var mM={"-":"",_:" ",0:"0"},fn=/^\s*\d+/,mee=/^%/,pee=/[\\^$*+?|[\]().{}]/g;function Ge(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 gee(e){return e.replace(pee,"\\$&")}function Nc(e){return new RegExp("^(?:"+e.map(gee).join("|")+")","i")}function Tc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function vee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function wee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pM(e,t,n){var r=fn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function See(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 jee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Aee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Oee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Eee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Nee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Tee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Cee(e,t,n){var r=fn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function kee(e,t,n){var r=mee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mee(e,t,n){var r=fn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=fn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function xM(e,t){return Ge(e.getDate(),t,2)}function _ee(e,t){return Ge(e.getHours(),t,2)}function Dee(e,t){return Ge(e.getHours()%12||12,t,2)}function Ree(e,t){return Ge(1+Yf.count(ca(e),e),t,3)}function P4(e,t){return Ge(e.getMilliseconds(),t,3)}function zee(e,t){return P4(e,t)+"000"}function Lee(e,t){return Ge(e.getMonth()+1,t,2)}function Iee(e,t){return Ge(e.getMinutes(),t,2)}function Bee(e,t){return Ge(e.getSeconds(),t,2)}function Uee(e){var t=e.getDay();return t===0?7:t}function $ee(e,t){return Ge(ng.count(ca(e)-1,e),t,2)}function _4(e){var t=e.getDay();return t>=4||t===0?au(e):au.ceil(e)}function qee(e,t){return e=_4(e),Ge(au.count(ca(e),e)+(ca(e).getDay()===4),t,2)}function Vee(e){return e.getDay()}function Fee(e,t){return Ge(Jm.count(ca(e)-1,e),t,2)}function Hee(e,t){return Ge(e.getFullYear()%100,t,2)}function Kee(e,t){return e=_4(e),Ge(e.getFullYear()%100,t,2)}function Yee(e,t){return Ge(e.getFullYear()%1e4,t,4)}function Gee(e,t){var n=e.getDay();return e=n>=4||n===0?au(e):au.ceil(e),Ge(e.getFullYear()%1e4,t,4)}function Wee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ge(t/60|0,"0",2)+Ge(t%60,"0",2)}function bM(e,t){return Ge(e.getUTCDate(),t,2)}function Xee(e,t){return Ge(e.getUTCHours(),t,2)}function Qee(e,t){return Ge(e.getUTCHours()%12||12,t,2)}function Zee(e,t){return Ge(1+tg.count(fa(e),e),t,3)}function D4(e,t){return Ge(e.getUTCMilliseconds(),t,3)}function Jee(e,t){return D4(e,t)+"000"}function ete(e,t){return Ge(e.getUTCMonth()+1,t,2)}function tte(e,t){return Ge(e.getUTCMinutes(),t,2)}function nte(e,t){return Ge(e.getUTCSeconds(),t,2)}function rte(e){var t=e.getUTCDay();return t===0?7:t}function ite(e,t){return Ge(rg.count(fa(e)-1,e),t,2)}function R4(e){var t=e.getUTCDay();return t>=4||t===0?su(e):su.ceil(e)}function ate(e,t){return e=R4(e),Ge(su.count(fa(e),e)+(fa(e).getUTCDay()===4),t,2)}function ste(e){return e.getUTCDay()}function ote(e,t){return Ge(ep.count(fa(e)-1,e),t,2)}function lte(e,t){return Ge(e.getUTCFullYear()%100,t,2)}function ute(e,t){return e=R4(e),Ge(e.getUTCFullYear()%100,t,2)}function cte(e,t){return Ge(e.getUTCFullYear()%1e4,t,4)}function fte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?su(e):su.ceil(e),Ge(e.getUTCFullYear()%1e4,t,4)}function dte(){return"+0000"}function wM(){return"%"}function SM(e){return+e}function jM(e){return Math.floor(+e/1e3)}var jl,z4,L4;hte({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 hte(e){return jl=hee(e),z4=jl.format,jl.parse,L4=jl.utcFormat,jl.utcParse,jl}function mte(e){return new Date(e)}function pte(e){return e instanceof Date?+e:+new Date(+e)}function NS(e,t,n,r,a,o,l,c,f,h){var m=hS(),p=m.invert,y=m.domain,b=h(".%L"),S=h(":%S"),j=h("%I:%M"),A=h("%I %p"),O=h("%a %d"),T=h("%b %d"),N=h("%B"),C=h("%Y");function k(D){return(f(D)<D?b:c(D)<D?S:l(D)<D?j:o(D)<D?A:r(D)<D?a(D)<D?O:T:n(D)<D?N:C)(D)}return m.invert=function(D){return new Date(p(D))},m.domain=function(D){return arguments.length?y(Array.from(D,pte)):y().map(mte)},m.ticks=function(D){var M=y();return e(M[0],M[M.length-1],D??10)},m.tickFormat=function(D,M){return M==null?k:h(M)},m.nice=function(D){var M=y();return(!D||typeof D.range!="function")&&(D=t(M[0],M[M.length-1],D??10)),D?y(j4(M,D)):m},m.copy=function(){return Kf(m,NS(e,t,n,r,a,o,l,c,f,h))},m}function gte(){return Ur.apply(NS(fee,dee,ca,OS,ng,Yf,jS,wS,io,z4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function vte(){return Ur.apply(NS(uee,cee,fa,ES,rg,tg,AS,SS,io,L4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ig(){var e=0,t=1,n,r,a,o,l=zn,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(y){var b,S;return arguments.length?([b,S]=y,l=p(b,S),h):[l(0),l(1)]}}return h.range=m(vu),h.rangeRound=m(dS),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 Ns(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function I4(){var e=Es(ig()(zn));return e.copy=function(){return Ns(e,I4())},ba.apply(e,arguments)}function B4(){var e=gS(ig()).domain([1,10]);return e.copy=function(){return Ns(e,B4()).base(e.base())},ba.apply(e,arguments)}function U4(){var e=vS(ig());return e.copy=function(){return Ns(e,U4()).constant(e.constant())},ba.apply(e,arguments)}function TS(){var e=yS(ig());return e.copy=function(){return Ns(e,TS()).exponent(e.exponent())},ba.apply(e,arguments)}function yte(){return TS.apply(null,arguments).exponent(.5)}function $4(){var e=[],t=zn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ff(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(vs),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)=>rJ(e,o/r))},n.copy=function(){return $4(t).domain(e)},ba.apply(n,arguments)}function ag(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,h=zn,m,p=!1,y;function b(j){return isNaN(j=+j)?y:(j=.5+((j=+m(j))-o)*(r*j<r*o?c:f),h(p?Math.max(0,Math.min(1,j)):j))}b.domain=function(j){return arguments.length?([e,t,n]=j,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,b):[e,t,n]},b.clamp=function(j){return arguments.length?(p=!!j,b):p},b.interpolator=function(j){return arguments.length?(h=j,b):h};function S(j){return function(A){var O,T,N;return arguments.length?([O,T,N]=A,h=kJ(j,[O,T,N]),b):[h(0),h(.5),h(1)]}}return b.range=S(vu),b.rangeRound=S(dS),b.unknown=function(j){return arguments.length?(y=j,b):y},function(j){return m=j,a=j(e),o=j(t),l=j(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,b}}function q4(){var e=Es(ag()(zn));return e.copy=function(){return Ns(e,q4())},ba.apply(e,arguments)}function V4(){var e=gS(ag()).domain([.1,1,10]);return e.copy=function(){return Ns(e,V4()).base(e.base())},ba.apply(e,arguments)}function F4(){var e=vS(ag());return e.copy=function(){return Ns(e,F4()).constant(e.constant())},ba.apply(e,arguments)}function CS(){var e=yS(ag());return e.copy=function(){return Ns(e,CS()).exponent(e.exponent())},ba.apply(e,arguments)}function xte(){return CS.apply(null,arguments).exponent(.5)}const Lc=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:uS,scaleDiverging:q4,scaleDivergingLog:V4,scaleDivergingPow:CS,scaleDivergingSqrt:xte,scaleDivergingSymlog:F4,scaleIdentity:S4,scaleImplicit:y1,scaleLinear:w4,scaleLog:A4,scaleOrdinal:lS,scalePoint:sJ,scalePow:xS,scaleQuantile:N4,scaleQuantize:T4,scaleRadial:E4,scaleSequential:I4,scaleSequentialLog:B4,scaleSequentialPow:TS,scaleSequentialQuantile:$4,scaleSequentialSqrt:yte,scaleSequentialSymlog:U4,scaleSqrt:JJ,scaleSymlog:O4,scaleThreshold:C4,scaleTime:gte,scaleUtc:vte,tickFormat:b4},Symbol.toStringTag,{value:"Module"}));var wa=e=>e.chartData,H4=X([wa],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),K4=(e,t,n,r)=>r?H4(e):wa(e),Y4=(e,t,n)=>n?H4(e):wa(e);function bs(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(ft(t)&&ft(n))return!0}return!1}function AM(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function G4(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,a,o;if(ft(n))a=n;else if(typeof n=="function")return;if(ft(r))o=r;else if(typeof r=="function")return;var l=[a,o];if(bs(l))return l}}function bte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(bs(r))return AM(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"&&RC.test(a)){var f=RC.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"&&zC.test(o)){var m=zC.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 y=[l,c];if(bs(y))return t==null?y:AM(y,t,n)}}}var yu=1e9,wte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},MS,bt=!0,Ir="[DecimalError] ",xo=Ir+"Invalid argument: ",kS=Ir+"Exponent out of range: ",xu=Math.floor,Qs=Math.pow,Ste=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cr,on=1e7,pt=7,W4=9007199254740991,tp=xu(W4/pt),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)*pt;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 na(this,new this.constructor(e))};ge.dividedToIntegerBy=ge.idiv=function(e){var t=this,n=t.constructor;return ct(na(t,new n(e),0,1),n.precision)};ge.equals=ge.eq=function(e){return!this.cmp(e)};ge.exponent=function(){return Ht(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(cr))throw Error(Ir+"NaN");if(n.s<1)throw Error(Ir+(n.s?"NaN":"-Infinity"));return n.eq(cr)?new r(0):(bt=!1,t=na(yf(n,o),yf(e,o),o),bt=!0,ct(t,a))};ge.minus=ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Z4(t,e):X4(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(Ir+"NaN");return n.s?(bt=!1,t=na(n,e,0,1).times(e),bt=!0,n.minus(t)):ct(new r(n),a)};ge.naturalExponential=ge.exp=function(){return Q4(this)};ge.naturalLogarithm=ge.ln=function(){return yf(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?X4(t,e):Z4(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(xo+e);if(t=Ht(a)+1,r=a.d.length-1,n=r*pt+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(Ir+"NaN")}for(e=Ht(c),bt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=mi(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=xu((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(na(c,o,l+2)).times(.5),mi(o.d).slice(0,l)===(t=mi(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(ct(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return bt=!0,ct(r,n)};ge.times=ge.mul=function(e){var t,n,r,a,o,l,c,f,h,m=this,p=m.constructor,y=m.d,b=(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=y.length,h=b.length,f<h&&(o=y,y=b,b=o,l=f,f=h,h=l),o=[],l=f+h,r=l;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+b[r]*y[a-r-1]+t,o[a--]=c%on|0,t=c/on|0;o[a]=(o[a]+t)%on|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,bt?ct(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:(wi(e,0,yu),t===void 0?t=r.rounding:wi(t,0,8),ct(n,e+Ht(n)+1,t))};ge.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=To(r,!0):(wi(e,0,yu),t===void 0?t=a.rounding:wi(t,0,8),r=ct(new a(r),e+1,t),n=To(r,!0,e+1)),n};ge.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?To(a):(wi(e,0,yu),t===void 0?t=o.rounding:wi(t,0,8),r=ct(new o(a),e+Ht(a)+1,t),n=To(r.abs(),!1,e+Ht(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ge.toInteger=ge.toint=function(){var e=this,t=e.constructor;return ct(new t(e),Ht(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(cr);if(c=new f(c),!c.s){if(e.s<1)throw Error(Ir+"Infinity");return c}if(c.eq(cr))return c;if(r=f.precision,e.eq(cr))return ct(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=W4){for(a=new f(cr),t=Math.ceil(r/pt+4),bt=!1;n%2&&(a=a.times(c),EM(a.d,t)),n=xu(n/2),n!==0;)c=c.times(c),EM(c.d,t);return bt=!0,e.s<0?new f(cr).div(a):ct(a,r)}}else if(o<0)throw Error(Ir+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,bt=!1,a=e.times(yf(c,r+h)),bt=!0,a=Q4(a),a.s=o,a};ge.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Ht(a),r=To(a,n<=o.toExpNeg||n>=o.toExpPos)):(wi(e,1,yu),t===void 0?t=o.rounding:wi(t,0,8),a=ct(new o(a),e,t),n=Ht(a),r=To(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):(wi(e,1,yu),t===void 0?t=r.rounding:wi(t,0,8)),ct(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=Ht(e),n=e.constructor;return To(e,t<=n.toExpNeg||t>=n.toExpPos)};function X4(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)),bt?ct(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/pt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=h.length,c-o<0&&(o=c,r=h,h=f,f=r),n=0;o;)n=(f[--o]=f[o]+h[o]+n)/on|0,f[o]%=on;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,bt?ct(t,p):t}function wi(e,t,n){if(e!==~~e||e<t||e>n)throw Error(xo+e)}function mi(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=pt-r.length,n&&(o+=ns(n)),o+=r;l=e[t],r=l+"",n=pt-r.length,n&&(o+=ns(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var na=(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%on|0,l=o/on|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*on+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,h,m,p,y,b,S,j,A,O,T,N,C,k,D,M,_,B=r.constructor,K=r.s==a.s?1:-1,$=r.d,Z=a.d;if(!r.s)return new B(r);if(!a.s)throw Error(Ir+"Division by zero");for(f=r.e-a.e,M=Z.length,k=$.length,b=new B(K),S=b.d=[],h=0;Z[h]==($[h]||0);)++h;if(Z[h]>($[h]||0)&&--f,o==null?T=o=B.precision:l?T=o+(Ht(r)-Ht(a))+1:T=o,T<0)return new B(0);if(T=T/pt+2|0,h=0,M==1)for(m=0,Z=Z[0],T++;(h<k||m)&&T--;h++)N=m*on+($[h]||0),S[h]=N/Z|0,m=N%Z|0;else{for(m=on/(Z[0]+1)|0,m>1&&(Z=e(Z,m),$=e($,m),M=Z.length,k=$.length),C=M,j=$.slice(0,M),A=j.length;A<M;)j[A++]=0;_=Z.slice(),_.unshift(0),D=Z[0],Z[1]>=on/2&&++D;do m=0,c=t(Z,j,M,A),c<0?(O=j[0],M!=A&&(O=O*on+(j[1]||0)),m=O/D|0,m>1?(m>=on&&(m=on-1),p=e(Z,m),y=p.length,A=j.length,c=t(p,j,y,A),c==1&&(m--,n(p,M<y?_:Z,y))):(m==0&&(c=m=1),p=Z.slice()),y=p.length,y<A&&p.unshift(0),n(j,p,A),c==-1&&(A=j.length,c=t(Z,j,M,A),c<1&&(m++,n(j,M<A?_:Z,A))),A=j.length):c===0&&(m++,j=[0]),S[h++]=m,c&&j[0]?j[A++]=$[C]||0:(j=[$[C]],A=1);while((C++<k||j[0]!==void 0)&&T--)}return S[0]||S.shift(),b.e=f,ct(b,l?o+Ht(b)+1:o)}})();function Q4(e,t){var n,r,a,o,l,c,f=0,h=0,m=e.constructor,p=m.precision;if(Ht(e)>16)throw Error(kS+Ht(e));if(!e.s)return new m(cr);for(bt=!1,c=p,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),h+=5;for(r=Math.log(Qs(2,h))/Math.LN10*2+5|0,c+=r,n=a=o=new m(cr),m.precision=c;;){if(a=ct(a.times(e),c),n=n.times(++f),l=o.plus(na(a,n,c)),mi(l.d).slice(0,c)===mi(o.d).slice(0,c)){for(;h--;)o=ct(o.times(o),c);return m.precision=p,t==null?(bt=!0,ct(o,p)):o}o=l}}function Ht(e){for(var t=e.e*pt,n=e.d[0];n>=10;n/=10)t++;return t}function Nx(e,t,n){if(t>e.LN10.sd())throw bt=!0,n&&(e.precision=n),Error(Ir+"LN10 precision limit exceeded");return ct(new e(e.LN10),t)}function ns(e){for(var t="";e--;)t+="0";return t}function yf(e,t){var n,r,a,o,l,c,f,h,m,p=1,y=10,b=e,S=b.d,j=b.constructor,A=j.precision;if(b.s<1)throw Error(Ir+(b.s?"NaN":"-Infinity"));if(b.eq(cr))return new j(0);if(t==null?(bt=!1,h=A):h=t,b.eq(10))return t==null&&(bt=!0),Nx(j,h);if(h+=y,j.precision=h,n=mi(S),r=n.charAt(0),o=Ht(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=mi(b.d),r=n.charAt(0),p++;o=Ht(b),r>1?(b=new j("0."+n),o++):b=new j(r+"."+n.slice(1))}else return f=Nx(j,h+2,A).times(o+""),b=yf(new j(r+"."+n.slice(1)),h-y).plus(f),j.precision=A,t==null?(bt=!0,ct(b,A)):b;for(c=l=b=na(b.minus(cr),b.plus(cr),h),m=ct(b.times(b),h),a=3;;){if(l=ct(l.times(m),h),f=c.plus(na(l,new j(a),h)),mi(f.d).slice(0,h)===mi(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(Nx(j,h+2,A).times(o+""))),c=na(c,new j(p),h),j.precision=A,t==null?(bt=!0,ct(c,A)):c;c=f,a+=2}}function OM(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=xu(n/pt),e.d=[],r=(n+1)%pt,n<0&&(r+=pt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=pt;r<a;)e.d.push(+t.slice(r,r+=pt));t=t.slice(r),r=pt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),bt&&(e.e>tp||e.e<-tp))throw Error(kS+n)}else e.s=0,e.e=0,e.d=[0];return e}function ct(e,t,n){var r,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+=pt,a=t,h=p[m=0];else{if(m=Math.ceil((r+1)/pt),o=p.length,m>=o)return e;for(h=o=p[m],l=1;o>=10;o/=10)l++;r%=pt,a=r-pt+l}if(n!==void 0&&(o=Qs(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/Qs(10,l-a):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(o=Ht(e),p.length=1,t=t-o-1,p[0]=Qs(10,(pt-t%pt)%pt),e.e=xu(-t/pt)||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=Qs(10,pt-r),p[m]=a>0?(h/Qs(10,l-a)%Qs(10,a)|0)*o:0),f)for(;;)if(m==0){(p[0]+=o)==on&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=on)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(bt&&(e.e>tp||e.e<-tp))throw Error(kS+Ht(e));return e}function Z4(e,t){var n,r,a,o,l,c,f,h,m,p,y=e.constructor,b=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),bt?ct(t,b):t;if(f=e.d,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(b/pt),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]=on-1;--f[o],f[a]+=on}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,bt?ct(t,b):t):new y(0)}function To(e,t,n){var r,a=Ht(e),o=mi(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+ns(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+ns(-a-1)+o,n&&(r=n-l)>0&&(o+=ns(r))):a>=l?(o+=ns(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+ns(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=ns(r))),e.s<0?"-"+o:o}function EM(e,t){if(e.length>t)return e.length=t,!0}function J4(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(xo+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return OM(l,o.toString())}else if(typeof o!="string")throw Error(xo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,Ste.test(o))OM(l,o);else throw Error(xo+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=J4,a.config=a.set=jte,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 jte(e){if(!e||typeof e!="object")throw Error(Ir+"Object expected");var t,n,r,a=["precision",1,yu,"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(xu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(xo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(xo+n+": "+r);return this}var MS=J4(wte);cr=new MS(1);const rt=MS;var Ate=e=>e,ez={},tz=e=>e===ez,NM=e=>function t(){return arguments.length===0||arguments.length===1&&tz(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},nz=(e,t)=>e===1?t:NM(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var o=r.filter(l=>l!==ez).length;return o>=e?t(...r):nz(e-o,NM(function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var h=r.map(m=>tz(m)?c.shift():m);return t(...h,...c)}))}),Ote=e=>nz(e.length,e),S1=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Ete=Ote((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Nte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Ate;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce((c,f)=>f(c),o(...arguments))}};function rz(e){var t;return e===0?t=1:t=Math.floor(new rt(e).abs().log(10).toNumber())+1,t}function iz(e,t,n){for(var r=new rt(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var az=e=>{var[t,n]=e,[r,a]=[t,n];return t>n&&([r,a]=[n,t]),[r,a]},sz=(e,t,n)=>{if(e.lte(0))return new rt(0);var r=rz(e.toNumber()),a=new rt(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new rt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?new rt(f.toNumber()):new rt(Math.ceil(f.toNumber()))},Tte=(e,t,n)=>{var r=new rt(1),a=new rt(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new rt(10).pow(rz(e)-1),a=new rt(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new rt(Math.floor(e)))}else e===0?a=new rt(Math.floor((t-1)/2)):n||(a=new rt(Math.floor(e)));var l=Math.floor((t-1)/2),c=Nte(Ete(f=>a.add(new rt(f-l).mul(r)).toNumber()),S1);return c(0,t)},oz=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 rt(0),tickMin:new rt(0),tickMax:new rt(0)};var l=sz(new rt(n).sub(t).div(r-1),a,o),c;t<=0&&n>=0?c=new rt(0):(c=new rt(t).add(n).div(2),c=c.sub(new rt(c).mod(l)));var f=Math.ceil(c.sub(t).div(l).toNumber()),h=Math.ceil(new rt(n).sub(c).div(l).toNumber()),m=f+h+1;return m>r?oz(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 rt(f).mul(l)),tickMax:c.add(new rt(h).mul(l))})},Cte=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]=az([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...S1(0,a-1).map(()=>1/0)]:[...S1(0,a-1).map(()=>-1/0),f];return n>r?h.reverse():h}if(c===f)return Tte(c,a,o);var{step:m,tickMin:p,tickMax:y}=oz(c,f,l,o,0),b=iz(p,y.add(new rt(.1).mul(m)),m);return n>r?b.reverse():b},kte=function(t,n){var[r,a]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[l,c]=az([r,a]);if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var f=Math.max(n,2),h=sz(new rt(c).sub(l).div(f-1),o,0),m=[...iz(new rt(l),new rt(c),h),c];return o===!1&&(m=m.map(p=>Math.round(p))),r>a?m.reverse():m},lz=e=>e.rootProps.maxBarSize,Mte=e=>e.rootProps.barGap,uz=e=>e.rootProps.barCategoryGap,Pte=e=>e.rootProps.barSize,sg=e=>e.rootProps.stackOffset,cz=e=>e.rootProps.reverseStackOrder,PS=e=>e.options.chartName,_S=e=>e.rootProps.syncId,fz=e=>e.rootProps.syncMethod,DS=e=>e.options.eventEmitter,_te=e=>e.rootProps.baseValue,un={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Xi={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},ur={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},og=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Dte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Xi.angleAxisId,includeHidden:!1,name:void 0,reversed:Xi.reversed,scale:Xi.scale,tick:Xi.tick,tickCount:void 0,ticks:void 0,type:Xi.type,unit:void 0},Rte={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:ur.type,unit:void 0},zte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Xi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xi.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xi.scale,tick:Xi.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Lte={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:"category",unit:void 0},RS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?zte:Dte,zS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Lte:Rte,lg=e=>e.polarOptions,LS=X([ya,xa,cn],MZ),dz=X([lg,LS],(e,t)=>{if(e!=null)return ni(e.innerRadius,t,0)}),hz=X([lg,LS],(e,t)=>{if(e!=null)return ni(e.outerRadius,t,t*.8)}),Ite=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},mz=X([lg],Ite);X([RS,mz],og);var pz=X([LS,dz,hz],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});X([zS,pz],og);var gz=X([We,lg,dz,hz,ya,xa],(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:ni(l,a,a/2),cy:ni(c,o,o/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:h,clockWise:!1}}}),Zt=(e,t)=>t,ug=(e,t,n)=>n;function cg(e){return e==null?void 0:e.id}function vz(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=cg(c);h.forEach((p,y)=>{var b=o==null||a?y:String(Ft(p,o,null)),S=Ft(p,c.dataKey,0),j;l.has(b)?j=l.get(b):j={},Object.assign(j,{[m]:S}),l.set(b,j)})}}),Array.from(l.values())}function fg(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var dg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function hg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Bte(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Jt=e=>{var t=We(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},bu=e=>e.tooltip.settings.axisId;function TM(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?TM(Object(n),!0).forEach(function(r){Ute(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ute(e,t,n){return(t=$te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $te(e){var t=qte(e,"string");return typeof t=="symbol"?t:t+""}function qte(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 j1=[0,"auto"],rn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},yz=(e,t)=>e.cartesianAxis.xAxis[t],Sa=(e,t)=>{var n=yz(e,t);return n??rn},an={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:j1,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:$f},xz=(e,t)=>e.cartesianAxis.yAxis[t],ja=(e,t)=>{var n=xz(e,t);return n??an},Vte={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},IS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Vte},Un=(e,t,n)=>{switch(t){case"xAxis":return Sa(e,n);case"yAxis":return ja(e,n);case"zAxis":return IS(e,n);case"angleAxis":return RS(e,n);case"radiusAxis":return zS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Fte=(e,t,n)=>{switch(t){case"xAxis":return Sa(e,n);case"yAxis":return ja(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Gf=(e,t,n)=>{switch(t){case"xAxis":return Sa(e,n);case"yAxis":return ja(e,n);case"angleAxis":return RS(e,n);case"radiusAxis":return zS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},bz=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function wz(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var mg=e=>e.graphicalItems.cartesianItems,Hte=X([Zt,ug],wz),Sz=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Wf=X([mg,Un,Hte],Sz,{memoizeOptions:{resultEqualityCheck:hg}}),jz=X([Wf],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(fg)),Az=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Kte=X([Wf],Az),Oz=e=>e.map(t=>t.data).filter(Boolean).flat(1),Yte=X([Wf],Oz,{memoizeOptions:{resultEqualityCheck:hg}}),Ez=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:a}=t;return e.length>0?e:n.slice(r,a+1)},BS=X([Yte,K4],Ez),Nz=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Ft(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:Ft(a,r)}))):e.map(r=>({value:r})),pg=X([BS,Un,Wf],Nz);function Tz(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function sm(e){if(xi(e)||e instanceof Date){var t=Number(e);if(ft(t))return t}}function CM(e){if(Array.isArray(e)){var t=[sm(e[0]),sm(e[1])];return bs(t)?t:void 0}var n=sm(e);if(n!=null)return[n,n]}function da(e){return e.map(sm).filter(DY)}function Gte(e,t,n){return!n||typeof t!="number"||zr(t)?[]:n.length?da(n.flatMap(r=>{var a=Ft(e,r.dataKey),o,l;if(Array.isArray(a)?[o,l]=a:o=l=a,!(!ft(o)||!ft(l)))return[t-o,t+l]})):[]}var en=e=>{var t=Jt(e),n=bu(e);return Gf(e,t,n)},Xf=X([en],e=>e==null?void 0:e.dataKey),Wte=X([jz,K4,en],vz),Cz=(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(cg);return[c,{stackedData:oX(e,m,n),graphicalItems:h}]}))},rp=X([Wte,jz,sg,cz],Cz),kz=(e,t,n,r)=>{var{dataStartIndex:a,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var l=fX(e,a,o);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},Xte=X([Un],e=>e.allowDataOverflow),US=e=>{var t;if(e==null||!("domain"in e))return j1;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=da(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:j1},Mz=X([Un],US),Pz=X([Mz,Xte],G4),Qte=X([rp,wa,Zt,Pz],kz,{memoizeOptions:{resultEqualityCheck:dg}}),$S=e=>e.errorBars,Zte=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Tz(n,r)),ip=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]}},_z=(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(O=>Tz(a,O)),y=Ft(c,(m=t.dataKey)!==null&&m!==void 0?m:f.dataKey),b=Gte(c,y,p);if(b.length>=2){var S=Math.min(...b),j=Math.max(...b);(o==null||S<o)&&(o=S),(l==null||j>l)&&(l=j)}var A=CM(y);A!=null&&(o=o==null?A[0]:Math.min(o,A[0]),l=l==null?A[1]:Math.max(l,A[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(c=>{var f=CM(Ft(c,t.dataKey));f!=null&&(o=o==null?f[0]:Math.min(o,f[0]),l=l==null?f[1]:Math.max(l,f[1]))}),ft(o)&&ft(l))return[o,l]},Jte=X([BS,Un,Kte,$S,Zt],_z,{memoizeOptions:{resultEqualityCheck:dg}});function ene(e){var{value:t}=e;if(xi(t)||t instanceof Date)return t}var tne=(e,t,n)=>{var r=e.map(ene).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&V3(r))?c4(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Dz=e=>e.referenceElements.dots,wu=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),nne=X([Dz,Zt,ug],wu),Rz=e=>e.referenceElements.areas,rne=X([Rz,Zt,ug],wu),zz=e=>e.referenceElements.lines,ine=X([zz,Zt,ug],wu),Lz=(e,t)=>{if(e!=null){var n=da(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ane=X(nne,Zt,Lz),Iz=(e,t)=>{if(e!=null){var n=da(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)]}},sne=X([rne,Zt],Iz);function one(e){var t;if(e.x!=null)return da([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:da(n)}function lne(e){var t;if(e.y!=null)return da([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:da(n)}var Bz=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?one(r):lne(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},une=X([ine,Zt],Bz),cne=X(ane,une,sne,(e,t,n)=>ip(e,n,t)),Uz=(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?ip(r,o,a):ip(o,a);return bte(t,h,e.allowDataOverflow)},fne=X([Un,Mz,Pz,Qte,Jte,cne,We,Zt],Uz,{memoizeOptions:{resultEqualityCheck:dg}}),dne=[0,1],$z=(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=va(t,o);if(h&&c==null){var m;return c4(0,(m=n==null?void 0:n.length)!==null&&m!==void 0?m:0)}return f==="category"?tne(r,e,h):a==="expand"?dne:l}},qS=X([Un,We,BS,pg,sg,Zt,fne],$z),qz=(e,t,n,r,a)=>{if(e!=null){var{scale:o,type:l}=e;if(o==="auto")return t==="radial"&&a==="radiusAxis"?"band":t==="radial"&&a==="angleAxis"?"linear":l==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":l==="category"?"band":"linear";if(typeof o=="string"){var c="scale".concat(Lf(o));return c in Lc?c:"point"}}},Qf=X([Un,We,bz,PS,Zt],qz);function hne(e){if(e!=null){if(e in Lc)return Lc[e]();var t="scale".concat(Lf(e));if(t in Lc)return Lc[t]()}}function VS(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var a=hne(t);if(a!=null){var o=a.domain(n).range(r);return nX(o),o}}}var Vz=(e,t,n)=>{var r=US(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&bs(e))return Cte(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&bs(e))return kte(e,t.tickCount,t.allowDecimals)}},FS=X([qS,Gf,Qf],Vz),Fz=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&bs(t)&&Array.isArray(n)&&n.length>0){var a=t[0],o=n[0],l=t[1],c=n[n.length-1];return[Math.min(a,o),Math.max(l,c)]}return t},mne=X([Un,qS,FS,Zt],Fz),pne=X(pg,Un,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(da(e.map(p=>p.value))).sort((p,y)=>p-y),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}}),Hz=X(pne,We,uz,cn,(e,t,n,r,a)=>a,(e,t,n,r,a)=>{if(!ft(e))return 0;var o=t==="vertical"?r.height:r.width;if(a==="gap")return e*o/2;if(a==="no-gap"){var l=ni(n,e*o),c=e*o/2;return c-l-(c-l)/o*l}return 0}),gne=(e,t,n)=>{var r=Sa(e,t);return r==null||typeof r.padding!="string"?0:Hz(e,"xAxis",t,n,r.padding)},vne=(e,t,n)=>{var r=ja(e,t);return r==null||typeof r.padding!="string"?0:Hz(e,"yAxis",t,n,r.padding)},yne=X(Sa,gne,(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}}),xne=X(ja,vne,(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}}),bne=X([cn,yne,Kp,Hp,(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]}),wne=X([cn,We,xne,Kp,Hp,(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]}),Zf=(e,t,n,r)=>{var a;switch(t){case"xAxis":return bne(e,n,r);case"yAxis":return wne(e,n,r);case"zAxis":return(a=IS(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return mz(e);case"radiusAxis":return pz(e,n);default:return}},Kz=X([Un,Zf],og),gg=X([Un,Qf,mne,Kz],VS);X([Wf,$S,Zt],Zte);function Yz(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vg=(e,t)=>t,yg=(e,t,n)=>n,Sne=X(Vp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Yz)),jne=X(Fp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Yz)),Gz=(e,t)=>({width:e.width,height:t.height}),Ane=(e,t)=>{var n=typeof t.width=="number"?t.width:$f;return{width:n,height:e.height}},Wz=X(cn,Sa,Gz),One=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Ene=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},Nne=X(xa,cn,Sne,vg,yg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=Gz(t,c);l==null&&(l=One(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}),Tne=X(ya,cn,jne,vg,yg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=Ane(t,c);l==null&&(l=Ene(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}),Cne=(e,t)=>{var n=Sa(e,t);if(n!=null)return Nne(e,n.orientation,n.mirror)},kne=X([cn,Sa,Cne,(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}}}),Mne=(e,t)=>{var n=ja(e,t);if(n!=null)return Tne(e,n.orientation,n.mirror)},Pne=X([cn,ja,Mne,(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}}}),Xz=X(cn,ja,(e,t)=>{var n=typeof t.width=="number"?t.width:$f;return{width:n,height:e.height}}),kM=(e,t,n)=>{switch(t){case"xAxis":return Wz(e,n).width;case"yAxis":return Xz(e,n).height;default:return}},Qz=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:a,type:o,dataKey:l}=n,c=va(e,r),f=t.map(h=>h.value);if(l&&c&&o==="category"&&a&&V3(f))return f}},HS=X([We,pg,Un,Zt],Qz),Zz=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:a,scale:o}=n,l=va(e,r);if(l&&(a==="number"||o!=="auto"))return t.map(c=>c.value)}},KS=X([We,pg,Gf,Zt],Zz),MM=X([We,Fte,Qf,gg,HS,KS,Zf,FS,Zt],(e,t,n,r,a,o,l,c,f)=>{if(t!=null){var h=va(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}}}),_ne=(e,t,n,r,a,o,l,c,f)=>{if(!(t==null||r==null)){var h=va(e,f),{type:m,ticks:p,tickCount:y}=t,b=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,S=m==="category"&&r.bandwidth?r.bandwidth()/b:0;S=f==="angleAxis"&&o!=null&&o.length>=2?Xn(o[0]-o[1])*2*S:S;var j=p||a;if(j){var A=j.map((O,T)=>{var N=l?l.indexOf(O):O;return{index:T,coordinate:r(N)+S,value:O,offset:S}});return A.filter(O=>ft(O.coordinate))}return h&&c?c.map((O,T)=>({coordinate:r(O)+S,value:O,index:T,offset:S})).filter(O=>ft(O.coordinate)):r.ticks?r.ticks(y).map(O=>({coordinate:r(O)+S,value:O,offset:S})):r.domain().map((O,T)=>({coordinate:r(O)+S,value:l?l[O]:O,index:T,offset:S}))}},Jz=X([We,Gf,Qf,gg,FS,Zf,HS,KS,Zt],_ne),Dne=(e,t,n,r,a,o,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var c=va(e,l),{tickCount:f}=t,h=0;return h=l==="angleAxis"&&(r==null?void 0:r.length)>=2?Xn(r[0]-r[1])*2*h:h,c&&o?o.map((m,p)=>({coordinate:n(m)+h,value:m,index:p,offset:h})):n.ticks?n.ticks(f).map(m=>({coordinate:n(m)+h,value:m,offset:h})):n.domain().map((m,p)=>({coordinate:n(m)+h,value:a?a[m]:m,index:p,offset:h}))}},ws=X([We,Gf,gg,Zf,HS,KS,Zt],Dne),Ss=X(Un,gg,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})}),Rne=X([Un,Qf,qS,Kz],VS);X((e,t,n)=>IS(e,n),Rne,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})});var zne=X([We,Vp,Fp],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),eL=e=>e.options.defaultTooltipEventType,tL=e=>e.options.validateTooltipEventTypes;function nL(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function YS(e,t){var n=eL(e),r=tL(e);return nL(t,n,r)}function Lne(e){return Se(t=>YS(t,e))}var rL=(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},Ine=e=>e.tooltip.settings,is={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Bne={itemInteraction:{click:is,hover:is},axisInteraction:{click:is,hover:is},keyboardInteraction:is,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}},iL=Jn({name:"tooltip",initialState:Bne,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:yt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ei(e).tooltipItemPayloads.indexOf(n);a>-1&&(e.tooltipItemPayloads[a]=r)},prepare:yt()},removeTooltipEntrySettings:{reducer(e,t){var n=ei(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:yt()},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:Une,replaceTooltipEntrySettings:$ne,removeTooltipEntrySettings:qne,setTooltipSettingsState:Vne,setActiveMouseOverItemIndex:aL,mouseLeaveItem:Fne,mouseLeaveChart:sL,setActiveClickItemIndex:Hne,setMouseOverAxisIndex:oL,setMouseClickAxisIndex:Kne,setSyncInteraction:A1,setKeyboardInteraction:O1}=iL.actions,Yne=iL.reducer;function PM(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 Vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){Gne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gne(e,t,n){return(t=Wne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wne(e){var t=Xne(e,"string");return typeof t=="symbol"?t:t+""}function Xne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qne(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Zne(e){return e.index!=null}var lL=(e,t,n,r)=>{if(t==null)return is;var a=Qne(e,t,n);if(a==null)return is;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(Zne(a)){if(o)return Vh(Vh({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Vh(Vh({},is),{},{coordinate:a.coordinate})};function Jne(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 ere(e,t){var n=Jne(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 tre(e,t,n){if(n==null||t==null)return!0;var r=Ft(e,t);return r==null||!bs(n)?!0:ere(r,n)}var GS=(e,t,n,r)=>{var a=e==null?void 0:e.index;if(a==null)return null;var o=Number(a);if(!ft(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||tre(h,n,r)?String(f):null},uL=(e,t,n,r,a,o,l,c)=>{if(!(o==null||c==null)){var f=l[0],h=f==null?void 0:c(f.positions,o);if(h!=null)return h;var m=a==null?void 0:a[Number(o)];if(m)switch(n){case"horizontal":return{x:m.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:m.coordinate}}}},cL=(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})},Jf=e=>e.options.tooltipPayloadSearcher,Su=e=>e.tooltip;function _M(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 DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nre(e,t,n){return(t=rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=ire(e,"string");return typeof t=="symbol"?t:t+""}function ire(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 are(e,t){return e??t}var fL=(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((y,b)=>{var S,{dataDefinedOnItem:j,settings:A}=b,O=are(j,c),T=Array.isArray(O)?LR(O,h,m):O,N=(S=A==null?void 0:A.dataKey)!==null&&S!==void 0?S:r,C=A==null?void 0:A.nameKey,k;if(r&&Array.isArray(T)&&!Array.isArray(T[0])&&l==="axis"?k=F3(T,r,a):k=o(T,t,f,C),Array.isArray(k))k.forEach(M=>{var _=DM(DM({},A),{},{name:M.name,unit:M.unit,color:void 0,fill:void 0});y.push(LC({tooltipEntrySettings:_,dataKey:M.dataKey,payload:M.payload,value:Ft(M.payload,M.dataKey),name:M.name}))});else{var D;y.push(LC({tooltipEntrySettings:A,dataKey:N,payload:k,value:Ft(k,N),name:(D=Ft(k,C))!==null&&D!==void 0?D:A==null?void 0:A.name}))}return y},p)}},WS=X([en,We,bz,PS,Jt],qz),sre=X([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),ore=X([Jt,bu],wz),ju=X([sre,en,ore],Sz,{memoizeOptions:{resultEqualityCheck:hg}}),lre=X([ju],e=>e.filter(fg)),ure=X([ju],Oz,{memoizeOptions:{resultEqualityCheck:hg}}),Au=X([ure,wa],Ez),cre=X([lre,wa,en],vz),XS=X([Au,en,ju],Nz),dL=X([en],US),fre=X([en],e=>e.allowDataOverflow),hL=X([dL,fre],G4),dre=X([ju],e=>e.filter(fg)),hre=X([cre,dre,sg,cz],Cz),mre=X([hre,wa,Jt,hL],kz),pre=X([ju],Az),gre=X([Au,en,pre,$S,Jt],_z,{memoizeOptions:{resultEqualityCheck:dg}}),vre=X([Dz,Jt,bu],wu),yre=X([vre,Jt],Lz),xre=X([Rz,Jt,bu],wu),bre=X([xre,Jt],Iz),wre=X([zz,Jt,bu],wu),Sre=X([wre,Jt],Bz),jre=X([yre,Sre,bre],ip),Are=X([en,dL,hL,mre,gre,jre,We,Jt],Uz),ed=X([en,We,Au,XS,sg,Jt,Are],$z),Ore=X([ed,en,WS],Vz),Ere=X([en,ed,Ore,Jt],Fz),mL=e=>{var t=Jt(e),n=bu(e),r=!1;return Zf(e,t,n,r)},pL=X([en,mL],og),gL=X([en,WS,Ere,pL],VS),Nre=X([We,XS,en,Jt],Qz),Tre=X([We,XS,en,Jt],Zz),Cre=(e,t,n,r,a,o,l,c)=>{if(t){var{type:f}=t,h=va(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?Xn(a[0]-a[1])*2*p:p,h&&l?l.map((y,b)=>({coordinate:r(y)+p,value:y,index:b,offset:p})):r.domain().map((y,b)=>({coordinate:r(y)+p,value:o?o[y]:y,index:b,offset:p}))}}},Aa=X([We,en,WS,gL,mL,Nre,Tre,Jt],Cre),QS=X([eL,tL,Ine],(e,t,n)=>nL(n.shared,e,t)),vL=e=>e.tooltip.settings.trigger,ZS=e=>e.tooltip.settings.defaultIndex,td=X([Su,QS,vL,ZS],lL),Co=X([td,Au,Xf,ed],GS),yL=X([Aa,Co],rL),xL=X([td],e=>{if(e)return e.dataKey});X([td],e=>{if(e)return e.graphicalItemId});var bL=X([Su,QS,vL,ZS],cL),kre=X([ya,xa,We,cn,Aa,ZS,bL,Jf],uL),Mre=X([td,kre],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Pre=X([td],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),_re=X([bL,Co,wa,Xf,yL,Jf,QS],fL),Dre=X([_re],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function RM(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 zM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RM(Object(n),!0).forEach(function(r){Rre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t,n){return(t=zre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zre(e){var t=Lre(e,"string");return typeof t=="symbol"?t:t+""}function Lre(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 Ire=()=>Se(en),Bre=()=>{var e=Ire(),t=Se(Aa),n=Se(gL);return tu(!e||!n?void 0:zM(zM({},e),{},{scale:n}),t)};function LM(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 Al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){Ure(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ure(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=qre(e,"string");return typeof t=="symbol"?t:t+""}function qre(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 Vre=(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}},Fre=(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 Al(Al(Al({},r),wn(r.cx,r.cy,l,o)),{},{angle:o,radius:l})}var c=a.coordinate,{angle:f}=r;return Al(Al(Al({},r),wn(r.cx,r.cy,c,f)),{},{angle:f,radius:c})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Hre(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 wL=(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,y,b=c>0?(f=n[c-1])===null||f===void 0?void 0:f.coordinate:(h=n[l-1])===null||h===void 0?void 0:h.coordinate,S=(m=n[c])===null||m===void 0?void 0:m.coordinate,j=c>=l-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(y=n[c+1])===null||y===void 0?void 0:y.coordinate,A=void 0;if(!(b==null||S==null||j==null))if(Xn(S-b)!==Xn(j-S)){var O=[];if(Xn(j-S)===Xn(a[1]-a[0])){A=j;var T=S+a[1]-a[0];O[0]=Math.min(T,(T+b)/2),O[1]=Math.max(T,(T+b)/2)}else{A=b;var N=j+a[1]-a[0];O[0]=Math.min(S,(N+S)/2),O[1]=Math.max(S,(N+S)/2)}var C=[Math.min(S,(A+S)/2),Math.max(S,(A+S)/2)];if(e>C[0]&&e<=C[1]||e>=O[0]&&e<=O[1]){var k;return(k=n[c])===null||k===void 0?void 0:k.index}}else{var D=Math.min(b,j),M=Math.max(b,j);if(e>(D+S)/2&&e<=(M+S)/2){var _;return(_=n[c])===null||_===void 0?void 0:_.index}}}else if(t)for(var B=0;B<l;B++){var K=t[B];if(K!=null){var $=t[B+1],Z=t[B-1];if(B===0&&$!=null&&e<=(K.coordinate+$.coordinate)/2||B===l-1&&Z!=null&&e>(K.coordinate+Z.coordinate)/2||B>0&&B<l-1&&Z!=null&&$!=null&&e>(K.coordinate+Z.coordinate)/2&&e<=(K.coordinate+$.coordinate)/2)return K.index}}return-1},SL=()=>Se(PS),JS=(e,t)=>t,jL=(e,t,n)=>n,ej=(e,t,n,r)=>r,Kre=X(Aa,e=>Pp(e,t=>t.coordinate)),tj=X([Su,JS,jL,ej],lL),nj=X([tj,Au,Xf,ed],GS),Yre=(e,t,n)=>{if(t!=null){var r=Su(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},AL=X([Su,JS,jL,ej],cL),ap=X([ya,xa,We,cn,Aa,ej,AL,Jf],uL),Gre=X([tj,ap],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),OL=X([Aa,nj],rL),Wre=X([AL,nj,wa,Xf,OL,Jf,JS],fL),Xre=X([tj,nj],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Qre=(e,t,n,r,a,o,l)=>{if(!(!e||!n||!r||!a)&&Hre(e,l)){var c=dX(e,t),f=wL(c,o,a,n,r),h=Vre(t,a,f,e);return{activeIndex:String(f),activeCoordinate:h}}},Zre=(e,t,n,r,a,o,l)=>{if(!(!e||!r||!a||!o||!n)){var c=zZ(e,n);if(c){var f=hX(c,t),h=wL(f,l,o,r,a),m=Fre(t,o,h,c);return{activeIndex:String(h),activeCoordinate:m}}}},Jre=(e,t,n,r,a,o,l,c)=>{if(!(!e||!t||!r||!a||!o))return t==="horizontal"||t==="vertical"?Qre(e,t,r,a,o,l,c):Zre(e,t,n,r,a,o,l)},eie=X(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}}),tie=X(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(un)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:Bte}});function IM(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 BM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nie(e,t,n){return(t=rie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rie(e){var t=iie(e,"string");return typeof t=="symbol"?t:t+""}function iie(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 aie={},sie={zIndexMap:Object.values(un).reduce((e,t)=>BM(BM({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),aie)},oie=new Set(Object.values(un));function lie(e){return oie.has(e)}var EL=Jn({name:"zIndex",initialState:sie,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:yt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!lie(n)&&delete e.zIndexMap[n])},prepare:yt()},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:yt()},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:yt()}}}),{registerZIndexPortal:uie,unregisterZIndexPortal:cie,registerZIndexPortalElement:fie,unregisterZIndexPortalElement:die}=EL.actions,hie=EL.reducer;function $r(e){var{zIndex:t,children:n}=e,r=YX(),a=r&&t!==void 0&&t!==0,o=Tn(),l=At();w.useLayoutEffect(()=>a?(l(uie({zIndex:t})),()=>{l(cie({zIndex:t}))}):If,[l,t,a]);var c=Se(f=>eie(f,t,o));return a?c?Mf.createPortal(n,c):null:n}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 UM(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 Fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(r){mie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mie(e,t,n){return(t=pie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pie(e){var t=gie(e,"string");return typeof t=="symbol"?t:t+""}function gie(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 vie(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return w.isValidElement(t)?w.cloneElement(t,r):w.createElement(n,r)}function yie(e){var t,{coordinate:n,payload:r,index:a,offset:o,tooltipAxisBandSize:l,layout:c,cursor:f,tooltipEventType:h,chartName:m}=e,p=n,y=r,b=a;if(!f||!p||m!=="ScatterChart"&&h!=="axis")return null;var S,j,A;if(m==="ScatterChart")S=p,j=WQ,A=un.cursorLine;else if(m==="BarChart")S=XQ(c,p,o,l),j=s4,A=un.cursorRectangle;else if(c==="radial"&&K3(p)){var{cx:O,cy:T,radius:N,startAngle:C,endAngle:k}=o4(p);S={cx:O,cy:T,startAngle:C,endAngle:k,innerRadius:N,outerRadius:N},j=u4,A=un.cursorLine}else S={points:UZ(c,p,o)},j=Vc,A=un.cursorLine;var D=typeof f=="object"&&"className"in f?f.className:void 0,M=Fh(Fh(Fh(Fh({stroke:"#ccc",pointerEvents:"none"},o),S),zf(f)),{},{payload:y,payloadIndex:b,className:Ze("recharts-tooltip-cursor",D)});return w.createElement($r,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:A},w.createElement(vie,{cursor:f,cursorComp:j,cursorProps:M}))}function xie(e){var t=Bre(),n=KR(),r=Po(),a=SL();return t==null||n==null||r==null||a==null?null:w.createElement(yie,E1({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var NL=w.createContext(null),bie=()=>w.useContext(NL),Tx={exports:{}},$M;function wie(){return $M||($M=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,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new a(m,p||f,y),S=n?n+h:h;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],b]:f._events[S].push(b):(f._events[S]=b,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new r:delete f._events[h]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],m,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 y=0,b=p.length,S=new Array(b);y<b;y++)S[y]=p[y].fn;return S},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,y,b,S){var j=n?n+h:h;if(!this._events[j])return!1;var A=this._events[j],O=arguments.length,T,N;if(A.fn){switch(A.once&&this.removeListener(h,A.fn,void 0,!0),O){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,m),!0;case 3:return A.fn.call(A.context,m,p),!0;case 4:return A.fn.call(A.context,m,p,y),!0;case 5:return A.fn.call(A.context,m,p,y,b),!0;case 6:return A.fn.call(A.context,m,p,y,b,S),!0}for(N=1,T=new Array(O-1);N<O;N++)T[N-1]=arguments[N];A.fn.apply(A.context,T)}else{var C=A.length,k;for(N=0;N<C;N++)switch(A[N].once&&this.removeListener(h,A[N].fn,void 0,!0),O){case 1:A[N].fn.call(A[N].context);break;case 2:A[N].fn.call(A[N].context,m);break;case 3:A[N].fn.call(A[N].context,m,p);break;case 4:A[N].fn.call(A[N].context,m,p,y);break;default:if(!T)for(k=1,T=new Array(O-1);k<O;k++)T[k-1]=arguments[k];A[N].fn.apply(A[N].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,y){var b=n?n+h:h;if(!this._events[b])return this;if(!m)return l(this,b),this;var S=this._events[b];if(S.fn)S.fn===m&&(!y||S.once)&&(!p||S.context===p)&&l(this,b);else{for(var j=0,A=[],O=S.length;j<O;j++)(S[j].fn!==m||y&&!S[j].once||p&&S[j].context!==p)&&A.push(S[j]);A.length?this._events[b]=A.length===1?A[0]:A:l(this,b)}return this},c.prototype.removeAllListeners=function(h){var m;return h?(m=n?n+h:h,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Tx)),Tx.exports}var Sie=wie();const jie=Si(Sie);var xf=new jie,N1="recharts.syncEvent.tooltip",qM="recharts.syncEvent.brush";function TL(e,t){if(t){var n=Number.parseInt(t,10);if(!zr(n))return e==null?void 0:e[n]}}var Aie={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},CL=Jn({name:"options",initialState:Aie,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Oie=CL.reducer,{createEventEmitter:Eie}=CL.actions;function Nie(e){return e.tooltip.syncInteraction}var Tie={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},kL=Jn({name:"chartData",initialState:Tie,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:VM,setDataStartEndIndexes:Cie,setComputedData:Jde}=kL.actions,kie=kL.reducer,Mie=["x","y"];function FM(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){Pie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pie(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=Die(e,"string");return typeof t=="symbol"?t:t+""}function Die(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 Rie(e,t){if(e==null)return{};var n,r,a=zie(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 zie(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 Lie(){var e=Se(_S),t=Se(DS),n=At(),r=Se(fz),a=Se(Aa),o=Po(),l=Yp(),c=Se(f=>f.rootProps.className);w.useEffect(()=>{if(e==null)return If;var f=(h,m,p)=>{if(t!==p&&e===h){if(r==="index"){var y;if(l&&m!==null&&m!==void 0&&(y=m.payload)!==null&&y!==void 0&&y.coordinate&&m.payload.sourceViewBox){var b=m.payload.coordinate,{x:S,y:j}=b,A=Rie(b,Mie),{x:O,y:T,width:N,height:C}=m.payload.sourceViewBox,k=Ol(Ol({},A),{},{x:l.x+(N?(S-O)/N:0)*l.width,y:l.y+(C?(j-T)/C:0)*l.height});n(Ol(Ol({},m),{},{payload:Ol(Ol({},m.payload),{},{coordinate:k})}))}else n(m);return}if(a!=null){var D;if(typeof r=="function"){var M={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},_=r(a,M);D=a[_]}else r==="value"&&(D=a.find(q=>String(q.value)===m.payload.label));var{coordinate:B}=m.payload;if(D==null||m.payload.active===!1||B==null||l==null){n(A1({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:K,y:$}=B,Z=Math.min(K,l.x+l.width),le=Math.min($,l.y+l.height),de={x:o==="horizontal"?D.coordinate:Z,y:o==="horizontal"?le:D.coordinate},me=A1({active:m.payload.active,coordinate:de,dataKey:m.payload.dataKey,index:String(D.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(me)}}};return xf.on(N1,f),()=>{xf.off(N1,f)}},[c,n,t,e,r,a,o,l])}function Iie(){var e=Se(_S),t=Se(DS),n=At();w.useEffect(()=>{if(e==null)return If;var r=(a,o,l)=>{t!==l&&e===a&&n(Cie(o))};return xf.on(qM,r),()=>{xf.off(qM,r)}},[n,t,e])}function Bie(){var e=At();w.useEffect(()=>{e(Eie())},[e]),Lie(),Iie()}function Uie(e,t,n,r,a,o){var l=Se(b=>Yre(b,e,t)),c=Se(DS),f=Se(_S),h=Se(fz),m=Se(Nie),p=m==null?void 0:m.active,y=Yp();w.useEffect(()=>{if(!p&&f!=null&&c!=null){var b=A1({active:o,coordinate:n,dataKey:l,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:void 0});xf.emit(N1,f,b,c)}},[p,n,l,a,r,c,f,h,o,y])}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 KM(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){$ie(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 $ie(e,t,n){return(t=qie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qie(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)}function Fie(e){return e.dataKey}function Hie(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(TQ,t)}var YM=[],Kie={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 om(e){var t,n,r=Sn(e,Kie),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:c,content:f,filterNull:h,isAnimationActive:m,offset:p,payloadUniqBy:y,position:b,reverseDirection:S,useTranslate3d:j,wrapperStyle:A,cursor:O,shared:T,trigger:N,defaultIndex:C,portal:k,axisId:D}=r,M=At(),_=typeof C=="number"?String(C):C;w.useEffect(()=>{M(Vne({shared:T,trigger:N,axisId:D,active:a,defaultIndex:_}))},[M,T,N,D,a,_]);var B=Yp(),K=t4(),$=Lne(T),{activeIndex:Z,isActive:le}=(t=Se(fe=>Xre(fe,$,N,_)))!==null&&t!==void 0?t:{},de=Se(fe=>Wre(fe,$,N,_)),me=Se(fe=>OL(fe,$,N,_)),q=Se(fe=>Gre(fe,$,N,_)),W=de,Y=bie(),oe=(n=a??le)!==null&&n!==void 0?n:!1,[ne,R]=oR([W,oe]),F=$==="axis"?me:void 0;Uie($,N,q,F,Z,oe);var ie=k??Y;if(ie==null||B==null||$==null)return null;var se=W??YM;oe||(se=YM),h&&se.length&&(se=nR(se.filter(fe=>fe.value!=null&&(fe.hide!==!0||r.includeHidden)),y,Fie));var ye=se.length>0,Ee=w.createElement(RQ,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:oe,coordinate:q,hasPayload:ye,offset:p,position:b,reverseDirection:S,useTranslate3d:j,viewBox:B,wrapperStyle:A,lastBoundingBox:ne,innerRef:R,hasPortalFromProps:!!k},Hie(f,KM(KM({},r),{},{payload:se,label:F,active:oe,activeIndex:Z,coordinate:q,accessibilityLayer:K})));return w.createElement(w.Fragment,null,Mf.createPortal(Ee,ie),oe&&w.createElement(xie,{cursor:O,tooltipEventType:$,coordinate:q,payload:se,index:Z}))}var ML=e=>null;ML.displayName="Cell";function Yie(e,t,n){return(t=Gie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gie(e){var t=Wie(e,"string");return typeof t=="symbol"?t:t+""}function Wie(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 Xie{constructor(t){Yie(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 GM(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 Qie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GM(Object(n),!0).forEach(function(r){Zie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zie(e,t,n){return(t=Jie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jie(e){var t=eae(e,"string");return typeof t=="symbol"?t:t+""}function eae(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 tae={cacheSize:2e3,enableCache:!0},PL=Qie({},tae),WM=new Xie(PL.cacheSize),nae={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},XM="recharts_measurement_span";function rae(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 QM=(e,t)=>{try{var n=document.getElementById(XM);n||(n=document.createElement("span"),n.setAttribute("id",XM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,nae,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Fc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vf.isSsr)return{width:0,height:0};if(!PL.enableCache)return QM(t,n);var r=rae(t,n),a=WM.get(r);if(a)return a;var o=QM(t,n);return WM.set(r,o),o},_L;function iae(e,t,n){return(t=aae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aae(e){var t=sae(e,"string");return typeof t=="symbol"?t:t+""}function sae(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=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,JM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,oae=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,lae=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uae={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},cae=["cm","mm","pt","pc","in","Q","px"];function fae(e){return cae.includes(e)}var Dl="NaN";function dae(e,t){return e*uae[t]}class bn{static parse(t){var n,[,r,a]=(n=lae.exec(t))!==null&&n!==void 0?n:[];return r==null?bn.NaN:new bn(parseFloat(r),a??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,zr(t)&&(this.unit=""),n!==""&&!oae.test(n)&&(this.num=NaN,this.unit=""),fae(n)&&(this.num=dae(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return zr(this.num)}}_L=bn;iae(bn,"NaN",new _L(NaN,""));function DL(e){if(e==null||e.includes(Dl))return Dl;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,a,o]=(n=ZM.exec(t))!==null&&n!==void 0?n:[],l=bn.parse(r??""),c=bn.parse(o??""),f=a==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return Dl;t=t.replace(ZM,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,m,p,y]=(h=JM.exec(t))!==null&&h!==void 0?h:[],b=bn.parse(m??""),S=bn.parse(y??""),j=p==="+"?b.add(S):b.subtract(S);if(j.isNaN())return Dl;t=t.replace(JM,j.toString())}return t}var eP=/\(([^()]*)\)/;function hae(e){for(var t=e,n;(n=eP.exec(t))!=null;){var[,r]=n;t=t.replace(eP,DL(r))}return t}function mae(e){var t=e.replace(/\s+/g,"");return t=hae(t),t=DL(t),t}function pae(e){try{return mae(e)}catch{return Dl}}function Cx(e){var t=pae(e.slice(5,-1));return t===Dl?"":t}var gae=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],vae=["dx","dy","angle","className","breakAll"];function T1(){return T1=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},T1.apply(null,arguments)}function tP(e,t){if(e==null)return{};var n,r,a=yae(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 yae(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 RL=/[ \f\n\r\t\v\u2028\u2029]+/,zL=e=>{var{children:t,breakAll:n,style:r}=e;try{var a=[];jt(t)||(n?a=t.toString().split(""):a=t.toString().split(RL));var o=a.map(c=>({word:c,width:Fc(c,r).width})),l=n?0:Fc(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}};function xae(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var LL=(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},[]),IL=e=>e.reduce((t,n)=>t.width>n.width?t:n),bae="…",nP=(e,t,n,r,a,o,l,c)=>{var f=e.slice(0,t),h=zL({breakAll:n,style:r,children:f+bae});if(!h)return[!1,[]];var m=LL(h.wordsWithComputedWidth,o,l,c),p=m.length>a||IL(m).width>Number(o);return[p,m]},wae=(e,t,n,r,a)=>{var{maxLines:o,children:l,style:c,breakAll:f}=e,h=he(o),m=String(l),p=LL(t,r,n,a);if(!h||a)return p;var y=p.length>o||IL(p).width>Number(r);if(!y)return p;for(var b=0,S=m.length-1,j=0,A;b<=S&&j<=m.length-1;){var O=Math.floor((b+S)/2),T=O-1,[N,C]=nP(m,T,f,c,o,r,n,a),[k]=nP(m,O,f,c,o,r,n,a);if(!N&&!k&&(b=O+1),N&&k&&(S=O-1),!N&&k){A=C;break}j++}return A||p},rP=e=>{var t=jt(e)?[]:e.toString().split(RL);return[{words:t,width:void 0}]},Sae=e=>{var{width:t,scaleToFit:n,children:r,style:a,breakAll:o,maxLines:l}=e;if((t||n)&&!Vf.isSsr){var c,f,h=zL({breakAll:o,children:r,style:a});if(h){var{wordsWithComputedWidth:m,spaceWidth:p}=h;c=m,f=p}else return rP(r);return wae({breakAll:o,children:r,maxLines:l,style:a},c,f,t,!!n)}return rP(r)},BL="#808080",jae={angle:0,breakAll:!1,capHeight:"0.71em",fill:BL,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},rj=w.forwardRef((e,t)=>{var n=Sn(e,jae),{x:r,y:a,lineHeight:o,capHeight:l,fill:c,scaleToFit:f,textAnchor:h,verticalAnchor:m}=n,p=tP(n,gae),y=w.useMemo(()=>Sae({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:b,dy:S,angle:j,className:A,breakAll:O}=p,T=tP(p,vae);if(!xi(r)||!xi(a)||y.length===0)return null;var N=Number(r)+(he(b)?b:0),C=Number(a)+(he(S)?S:0);if(!ft(N)||!ft(C))return null;var k;switch(m){case"start":k=Cx("calc(".concat(l,")"));break;case"middle":k=Cx("calc(".concat((y.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:k=Cx("calc(".concat(y.length-1," * -").concat(o,")"));break}var D=[];if(f){var M=y[0].width,{width:_}=p;D.push("scale(".concat(he(_)&&he(M)?_/M:1,")"))}return j&&D.push("rotate(".concat(j,", ").concat(N,", ").concat(C,")")),D.length&&(T.transform=D.join(" ")),w.createElement("text",T1({},Ln(T),{ref:t,x:N,y:C,className:Ze("recharts-text",A),textAnchor:h,fill:c.includes("url")?BL:c}),y.map((B,K)=>{var $=B.words.join(O?"":" ");return w.createElement("tspan",{x:N,dy:K===0?k:o,key:"".concat($,"-").concat(K)},$)}))});rj.displayName="Text";var Aae=["labelRef"],Oae=["content"];function iP(e,t){if(e==null)return{};var n,r,a=Eae(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 Eae(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 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 _t(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){Nae(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 Nae(e,t,n){return(t=Tae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tae(e){var t=Cae(e,"string");return typeof t=="symbol"?t:t+""}function Cae(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 Qi(){return Qi=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},Qi.apply(null,arguments)}var UL=w.createContext(null),kae=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:l,children:c}=e,f=w.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:l}),[t,n,r,a,o,l]);return w.createElement(UL.Provider,{value:f},c)},$L=()=>{var e=w.useContext(UL),t=Yp();return e||HR(t)},Mae=w.createContext(null),Pae=()=>{var e=w.useContext(Mae),t=Se(gz);return e||t},_ae=e=>{var{value:t,formatter:n}=e,r=jt(e.children)?t:e.children;return typeof n=="function"?n(r):r},ij=e=>e!=null&&typeof e=="function",Dae=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Rae=(e,t,n,r,a)=>{var{offset:o,className:l}=e,{cx:c,cy:f,innerRadius:h,outerRadius:m,startAngle:p,endAngle:y,clockWise:b}=a,S=(h+m)/2,j=Dae(p,y),A=j>=0?1:-1,O,T;switch(t){case"insideStart":O=p+A*o,T=b;break;case"insideEnd":O=y-A*o,T=!b;break;case"end":O=y+A*o,T=b;break;default:throw new Error("Unsupported position ".concat(t))}T=j<=0?T:!T;var N=wn(c,f,S,O),C=wn(c,f,S,O+(T?1:-1)*359),k="M".concat(N.x,",").concat(N.y,`
|
|
413
|
-
A`).concat(S,",").concat(S,",0,1,").concat(T?0:1,`,
|
|
414
|
-
`).concat(C.x,",").concat(C.y),D=jt(e.id)?sf("recharts-radial-line-"):e.id;return w.createElement("text",Qi({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",l)}),w.createElement("defs",null,w.createElement("path",{id:D,d:k})),w.createElement("textPath",{xlinkHref:"#".concat(D)},n))},zae=(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 y=(o+l)/2,{x:b,y:S}=wn(r,a,y,h);return{x:b,y:S,textAnchor:"middle",verticalAnchor:"middle"}},C1=e=>"cx"in e&&he(e.cx),Lae=(e,t)=>{var{parentViewBox:n,offset:r,position:a}=e,o;n!=null&&!C1(n)&&(o=n);var{x:l,y:c,upperWidth:f,lowerWidth:h,height:m}=t,p=l,y=l+(f-h)/2,b=(p+y)/2,S=(f+h)/2,j=p+f/2,A=m>=0?1:-1,O=A*r,T=A>0?"end":"start",N=A>0?"start":"end",C=f>=0?1:-1,k=C*r,D=C>0?"end":"start",M=C>0?"start":"end";if(a==="top"){var _={x:p+f/2,y:c-O,textAnchor:"middle",verticalAnchor:T};return _t(_t({},_),o?{height:Math.max(c-o.y,0),width:f}:{})}if(a==="bottom"){var B={x:y+h/2,y:c+m+O,textAnchor:"middle",verticalAnchor:N};return _t(_t({},B),o?{height:Math.max(o.y+o.height-(c+m),0),width:h}:{})}if(a==="left"){var K={x:b-k,y:c+m/2,textAnchor:D,verticalAnchor:"middle"};return _t(_t({},K),o?{width:Math.max(K.x-o.x,0),height:m}:{})}if(a==="right"){var $={x:b+S+k,y:c+m/2,textAnchor:M,verticalAnchor:"middle"};return _t(_t({},$),o?{width:Math.max(o.x+o.width-$.x,0),height:m}:{})}var Z=o?{width:S,height:m}:{};return a==="insideLeft"?_t({x:b+k,y:c+m/2,textAnchor:M,verticalAnchor:"middle"},Z):a==="insideRight"?_t({x:b+S-k,y:c+m/2,textAnchor:D,verticalAnchor:"middle"},Z):a==="insideTop"?_t({x:p+f/2,y:c+O,textAnchor:"middle",verticalAnchor:N},Z):a==="insideBottom"?_t({x:y+h/2,y:c+m-O,textAnchor:"middle",verticalAnchor:T},Z):a==="insideTopLeft"?_t({x:p+k,y:c+O,textAnchor:M,verticalAnchor:N},Z):a==="insideTopRight"?_t({x:p+f-k,y:c+O,textAnchor:D,verticalAnchor:N},Z):a==="insideBottomLeft"?_t({x:y+k,y:c+m-O,textAnchor:M,verticalAnchor:T},Z):a==="insideBottomRight"?_t({x:y+h-k,y:c+m-O,textAnchor:D,verticalAnchor:T},Z):a&&typeof a=="object"&&(he(a.x)||oa(a.x))&&(he(a.y)||oa(a.y))?_t({x:l+ni(a.x,S),y:c+ni(a.y,m),textAnchor:"end",verticalAnchor:"end"},Z):_t({x:j,y:c+m/2,textAnchor:"middle",verticalAnchor:"middle"},Z)},Iae={angle:0,offset:5,zIndex:un.label,position:"middle",textBreakAll:!1};function rs(e){var t=Sn(e,Iae),{viewBox:n,position:r,value:a,children:o,content:l,className:c="",textBreakAll:f,labelRef:h}=t,m=Pae(),p=$L(),y=r==="center"?p:m??p,b,S,j;if(n==null?b=y:C1(n)?b=n:b=HR(n),!b||jt(a)&&jt(o)&&!w.isValidElement(l)&&typeof l!="function")return null;var A=_t(_t({},t),{},{viewBox:b});if(w.isValidElement(l)){var{labelRef:O}=A,T=iP(A,Aae);return w.cloneElement(l,T)}if(typeof l=="function"){var{content:N}=A,C=iP(A,Oae);if(S=w.createElement(l,C),w.isValidElement(S))return S}else S=_ae(t);var k=Ln(t);if(C1(b)){if(r==="insideStart"||r==="insideEnd"||r==="end")return Rae(t,r,S,k,b);j=zae(b,t.offset,t.position)}else j=Lae(t,b);return w.createElement($r,{zIndex:t.zIndex},w.createElement(rj,Qi({ref:h,className:Ze("recharts-label",c)},k,j,{textAnchor:xae(k.textAnchor)?k.textAnchor:j.textAnchor,breakAll:f}),S))}rs.displayName="Label";var Bae=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?w.createElement(rs,Qi({key:"label-implicit"},r)):xi(e)?w.createElement(rs,Qi({key:"label-implicit",value:e},r)):w.isValidElement(e)?e.type===rs?w.cloneElement(e,_t({key:"label-implicit"},r)):w.createElement(rs,Qi({key:"label-implicit",content:e},r)):ij(e)?w.createElement(rs,Qi({key:"label-implicit",content:e},r)):e&&typeof e=="object"?w.createElement(rs,Qi({},e,{key:"label-implicit"},r)):null};function Uae(e){var{label:t,labelRef:n}=e,r=$L();return Bae(t,r,n)||null}var kx={},Mx={},sP;function $ae(){return sP||(sP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(Mx)),Mx}var Px={},oP;function qae(){return oP||(oP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Px)),Px}var lP;function Vae(){return lP||(lP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$ae(),n=qae(),r=Yw();function a(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=a})(kx)),kx}var _x,uP;function Fae(){return uP||(uP=1,_x=Vae().last),_x}var Hae=Fae();const Kae=Si(Hae);var Yae=["valueAccessor"],Gae=["dataKey","clockWise","id","textBreakAll","zIndex"];function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}function cP(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}var Xae=e=>Array.isArray(e.value)?Kae(e.value):e.value,qL=w.createContext(void 0),VL=qL.Provider,FL=w.createContext(void 0);FL.Provider;function Qae(){return w.useContext(qL)}function Zae(){return w.useContext(FL)}function lm(e){var{valueAccessor:t=Xae}=e,n=cP(e,Yae),{dataKey:r,clockWise:a,id:o,textBreakAll:l,zIndex:c}=n,f=cP(n,Gae),h=Qae(),m=Zae(),p=h||m;return!p||!p.length?null:w.createElement($r,{zIndex:c??un.label},w.createElement(In,{className:"recharts-label-list"},p.map((y,b)=>{var S,j=jt(r)?t(y,b):Ft(y&&y.payload,r),A=jt(o)?{}:{id:"".concat(o,"-").concat(b)};return w.createElement(rs,sp({key:"label-".concat(b)},Ln(y),f,A,{fill:(S=n.fill)!==null&&S!==void 0?S:y.fill,parentViewBox:y.parentViewBox,value:j,textBreakAll:l,viewBox:y.viewBox,index:b,zIndex:0}))})))}lm.displayName="LabelList";function HL(e){var{label:t}=e;return t?t===!0?w.createElement(lm,{key:"labelList-implicit"}):w.isValidElement(t)||ij(t)?w.createElement(lm,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(lm,sp({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(null,arguments)}var KL=e=>{var{cx:t,cy:n,r,className:a}=e,o=Ze("recharts-dot",a);return he(t)&&he(n)&&he(r)?w.createElement("circle",k1({},Rr(e),Kw(e),{className:o,cx:t,cy:n,r})):null},Jae={radiusAxis:{},angleAxis:{}},YL=Jn({name:"polarAxis",initialState:Jae,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:ehe,removeRadiusAxis:the,addAngleAxis:nhe,removeAngleAxis:rhe}=YL.actions,ese=YL.reducer,Dx={exports:{}},ot={};/**
|
|
415
|
-
* @license React
|
|
416
|
-
* react-is.production.js
|
|
417
|
-
*
|
|
418
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
419
|
-
*
|
|
420
|
-
* This source code is licensed under the MIT license found in the
|
|
421
|
-
* LICENSE file in the root directory of this source tree.
|
|
422
|
-
*/var fP;function tse(){if(fP)return ot;fP=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.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(j){if(typeof j=="object"&&j!==null){var A=j.$$typeof;switch(A){case e:switch(j=j.type,j){case n:case a:case r:case f:case h:case y:return j;default:switch(j=j&&j.$$typeof,j){case l:case c:case p:case m:return j;case o:return j;default:return A}}case t:return A}}}return ot.ContextConsumer=o,ot.ContextProvider=l,ot.Element=e,ot.ForwardRef=c,ot.Fragment=n,ot.Lazy=p,ot.Memo=m,ot.Portal=t,ot.Profiler=a,ot.StrictMode=r,ot.Suspense=f,ot.SuspenseList=h,ot.isContextConsumer=function(j){return S(j)===o},ot.isContextProvider=function(j){return S(j)===l},ot.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ot.isForwardRef=function(j){return S(j)===c},ot.isFragment=function(j){return S(j)===n},ot.isLazy=function(j){return S(j)===p},ot.isMemo=function(j){return S(j)===m},ot.isPortal=function(j){return S(j)===t},ot.isProfiler=function(j){return S(j)===a},ot.isStrictMode=function(j){return S(j)===r},ot.isSuspense=function(j){return S(j)===f},ot.isSuspenseList=function(j){return S(j)===h},ot.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===a||j===r||j===f||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===p||j.$$typeof===m||j.$$typeof===l||j.$$typeof===o||j.$$typeof===c||j.$$typeof===b||j.getModuleId!==void 0)},ot.typeOf=S,ot}var dP;function nse(){return dP||(dP=1,Dx.exports=tse()),Dx.exports}var rse=nse(),hP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",mP=null,Rx=null,GL=e=>{if(e===mP&&Array.isArray(Rx))return Rx;var t=[];return w.Children.forEach(e,n=>{jt(n)||(rse.isFragment(n)?t=t.concat(GL(n.props.children)):t.push(n))}),Rx=t,mP=e,t};function ise(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(a=>hP(a)):r=[hP(t)],GL(e).forEach(a=>{var o=Jl(a,"type.displayName")||Jl(a,"type.name");o&&r.indexOf(o)!==-1&&n.push(a)}),n}var WL=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,zx={},pP;function ase(){return pP||(pP=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})(zx)),zx}var Lx,gP;function sse(){return gP||(gP=1,Lx=ase().isPlainObject),Lx}var ose=sse();const lse=Si(ose);var vP,yP,xP,bP,wP;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 jP(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){use(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 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)}function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}function Cc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var AP=(e,t,n,r,a)=>{var o=n-r,l;return l=kt(vP||(vP=Cc(["M ",",",""])),e,t),l+=kt(yP||(yP=Cc(["L ",",",""])),e+n,t),l+=kt(xP||(xP=Cc(["L ",",",""])),e+n-o/2,t+a),l+=kt(bP||(bP=Cc(["L ",",",""])),e+n-o/2-r,t+a),l+=kt(wP||(wP=Cc(["L ",","," Z"])),e,t),l},dse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hse=e=>{var t=Sn(e,dse),{x:n,y:r,upperWidth:a,lowerWidth:o,height:l,className:c}=t,{animationEasing:f,animationDuration:h,animationBegin:m,isUpdateAnimationActive:p}=t,y=w.useRef(null),[b,S]=w.useState(-1),j=w.useRef(a),A=w.useRef(o),O=w.useRef(l),T=w.useRef(n),N=w.useRef(r),C=Jp(e,"trapezoid-");if(w.useEffect(()=>{if(y.current&&y.current.getTotalLength)try{var de=y.current.getTotalLength();de&&S(de)}catch{}},[]),n!==+n||r!==+r||a!==+a||o!==+o||l!==+l||a===0&&o===0||l===0)return null;var k=Ze("recharts-trapezoid",c);if(!p)return w.createElement("g",null,w.createElement("path",op({},Ln(t),{className:k,d:AP(n,r,a,o,l)})));var D=j.current,M=A.current,_=O.current,B=T.current,K=N.current,$="0px ".concat(b===-1?1:b,"px"),Z="".concat(b,"px 0px"),le=n4(["strokeDasharray"],h,f);return w.createElement(Zp,{animationId:C,key:C,canBegin:b>0,duration:h,easing:f,isActive:p,begin:m},de=>{var me=wt(D,a,de),q=wt(M,o,de),W=wt(_,l,de),Y=wt(B,n,de),oe=wt(K,r,de);y.current&&(j.current=me,A.current=q,O.current=W,T.current=Y,N.current=oe);var ne=de>0?{transition:le,strokeDasharray:Z}:{strokeDasharray:$};return w.createElement("path",op({},Ln(t),{className:k,d:AP(Y,oe,me,q,W),ref:y,style:jP(jP({},ne),t.style)}))})},mse=["option","shapeType","activeClassName"];function pse(e,t){if(e==null)return{};var n,r,a=gse(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 gse(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 OP(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 lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(r){vse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vse(e,t,n){return(t=yse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yse(e){var t=xse(e,"string");return typeof t=="symbol"?t:t+""}function xse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bse(e,t){return lp(lp({},t),e)}function wse(e,t){return e==="symbols"}function EP(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return w.createElement(s4,n);case"trapezoid":return w.createElement(hse,n);case"sector":return w.createElement(u4,n);case"symbols":if(wse(t))return w.createElement(Hw,n);break;case"curve":return w.createElement(Vc,n);default:return null}}function Sse(e){return w.isValidElement(e)?e.props:e}function jse(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,a=pse(e,mse),o;if(w.isValidElement(t))o=w.cloneElement(t,lp(lp({},a),Sse(t)));else if(typeof t=="function")o=t(a,a.index);else if(lse(t)&&typeof t!="boolean"){var l=bse(t,a);o=w.createElement(EP,{shapeType:n,elementProps:l})}else{var c=a;o=w.createElement(EP,{shapeType:n,elementProps:c})}return a.isActive?w.createElement(In,{className:r},o):o}var XL=(e,t,n)=>{var r=At();return(a,o)=>l=>{e==null||e(a,o,l),r(aL({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}},QL=e=>{var t=At();return(n,r)=>a=>{e==null||e(n,r,a),t(Fne())}},ZL=(e,t,n)=>{var r=At();return(a,o)=>l=>{e==null||e(a,o,l),r(Hne({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}};function JL(e){var{tooltipEntrySettings:t}=e,n=At(),r=Tn(),a=w.useRef(null);return w.useLayoutEffect(()=>{r||(a.current===null?n(Une(t)):a.current!==t&&n($ne({prev:a.current,next:t})),a.current=t)},[t,n,r]),w.useLayoutEffect(()=>()=>{a.current&&(n(qne(a.current)),a.current=null)},[n]),null}function e6(e){var{legendPayload:t}=e,n=At(),r=Tn(),a=w.useRef(null);return w.useLayoutEffect(()=>{r||(a.current===null?n(oQ(t)):a.current!==t&&n(lQ({prev:a.current,next:t})),a.current=t)},[n,r,t]),w.useLayoutEffect(()=>()=>{a.current&&(n(uQ(a.current)),a.current=null)},[n]),null}var Ix,Ase=()=>{var[e]=w.useState(()=>sf("uid-"));return e},Ose=(Ix=_8.useId)!==null&&Ix!==void 0?Ix:Ase;function Ese(e,t){var n=Ose();return t||(e?"".concat(e,"-").concat(n):n)}var Nse=w.createContext(void 0),t6=e=>{var{id:t,type:n,children:r}=e,a=Ese("recharts-".concat(n),t);return w.createElement(Nse.Provider,{value:a},r(a))},Tse={cartesianItems:[],polarItems:[]},n6=Jn({name:"graphicalItems",initialState:Tse,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:yt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ei(e).cartesianItems.indexOf(n);a>-1&&(e.cartesianItems[a]=r)},prepare:yt()},removeCartesianGraphicalItem:{reducer(e,t){var n=ei(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:yt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:yt()},removePolarGraphicalItem:{reducer(e,t){var n=ei(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:yt()}}}),{addCartesianGraphicalItem:Cse,replaceCartesianGraphicalItem:kse,removeCartesianGraphicalItem:Mse,addPolarGraphicalItem:ihe,removePolarGraphicalItem:ahe}=n6.actions,Pse=n6.reducer,_se=e=>{var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(Cse(e)):n.current!==e&&t(kse({prev:n.current,next:e})),n.current=e},[t,e]),w.useLayoutEffect(()=>()=>{n.current&&(t(Mse(n.current)),n.current=null)},[t]),null},r6=w.memo(_se),Dse=["points"];function NP(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 Bx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(n),!0).forEach(function(r){Rse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rse(e,t,n){return(t=zse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zse(e){var t=Lse(e,"string");return typeof t=="symbol"?t:t+""}function Lse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},up.apply(null,arguments)}function Ise(e,t){if(e==null)return{};var n,r,a=Bse(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 Bse(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 Use(e){var{option:t,dotProps:n,className:r}=e;if(w.isValidElement(t))return w.cloneElement(t,n);if(typeof t=="function")return t(n);var a=Ze(r,typeof t!="boolean"?t.className:""),o=n??{},{points:l}=o,c=Ise(o,Dse);return w.createElement(KL,up({},c,{className:a}))}function $se(e,t){return e==null?!1:t?!0:e.length===1}function qse(e){var{points:t,dot:n,className:r,dotClassName:a,dataKey:o,baseProps:l,needClip:c,clipPathId:f,zIndex:h=un.scatter}=e;if(!$se(t,n))return null;var m=WL(n),p=$K(n),y=t.map((S,j)=>{var A,O,T=Bx(Bx(Bx({r:3},l),p),{},{index:j,cx:(A=S.x)!==null&&A!==void 0?A:void 0,cy:(O=S.y)!==null&&O!==void 0?O:void 0,dataKey:o,value:S.value,payload:S.payload,points:t});return w.createElement(Use,{key:"dot-".concat(j),option:n,dotProps:T,className:a})}),b={};return c&&f!=null&&(b.clipPath="url(#clipPath-".concat(m?"":"dots-").concat(f,")")),w.createElement($r,{zIndex:h},w.createElement(In,up({className:r},b),y))}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 CP(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){Vse(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 Vse(e,t,n){return(t=Fse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fse(e){var t=Hse(e,"string");return typeof t=="symbol"?t:t+""}function Hse(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 i6=0,Kse={xAxis:{},yAxis:{},zAxis:{}},a6=Jn({name:"cartesianAxis",initialState:Kse,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:yt()},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:yt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:yt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:yt()},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:yt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:yt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:yt()},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:yt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:yt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,a=e.yAxis[n];if(a){var o=a.widthHistory||[];if(o.length===3&&o[0]===o[2]&&r===o[1]&&r!==a.width&&Math.abs(r-o[0])<=1)return;var l=[...o,r].slice(-3);e.yAxis[n]=CP(CP({},e.yAxis[n]),{},{width:r,widthHistory:l})}}}}),{addXAxis:Yse,replaceXAxis:Gse,removeXAxis:Wse,addYAxis:Xse,replaceYAxis:Qse,removeYAxis:Zse,addZAxis:she,replaceZAxis:ohe,removeZAxis:lhe,updateYAxisWidth:Jse}=a6.actions,eoe=a6.reducer,toe=X([cn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),noe=X([toe,ya,xa],(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)}}),aj=()=>Se(noe),roe=()=>Se(Dre);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 Ux(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){ioe(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 ioe(e,t,n){return(t=aoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aoe(e){var t=soe(e,"string");return typeof t=="symbol"?t:t+""}function soe(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 ooe=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=Ux(Ux(Ux({},c),zf(a)),Kw(a)),h;return w.isValidElement(a)?h=w.cloneElement(a,f):typeof a=="function"?h=a(f):h=w.createElement(KL,f),w.createElement(In,{className:"recharts-active-dot",clipPath:l},h)};function MP(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:a,clipPath:o,zIndex:l=un.activeDot}=e,c=Se(Co),f=roe();if(t==null||f==null)return null;var h=t.find(m=>f.includes(m.payload));return jt(h)?null:w.createElement($r,{zIndex:l},w.createElement(ooe,{point:h,childIndex:Number(c),mainColor:n,dataKey:a,activeDot:r,clipPath:o}))}var PP=(e,t,n)=>{var r=n??e;if(!jt(r))return ni(r,t,0)},loe=(e,t,n)=>{var r={},a=e.filter(fg),o=e.filter(h=>h.stackId==null),l=a.reduce((h,m)=>(h[m.stackId]||(h[m.stackId]=[]),h[m.stackId].push(m),h),r),c=Object.entries(l).map(h=>{var[m,p]=h,y=p.map(S=>S.dataKey),b=PP(t,n,p[0].barSize);return{stackId:m,dataKeys:y,barSize:b}}),f=o.map(h=>{var m=[h.dataKey].filter(y=>y!=null),p=PP(t,n,h.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...c,...f]};function _P(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 Hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=foe(e,"string");return typeof t=="symbol"?t:t+""}function foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function doe(e,t,n,r,a){var o=r.length;if(!(o<1)){var l=ni(e,n,0,!0),c,f=[];if(ft(r[0].barSize)){var h=!1,m=n/o,p=r.reduce((O,T)=>O+(T.barSize||0),0);p+=(o-1)*l,p>=n&&(p-=(o-1)*l,l=0),p>=n&&m>0&&(h=!0,m*=.9,p=o*m);var y=(n-p)/2>>0,b={offset:y-l,size:0};c=r.reduce((O,T)=>{var N,C={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:b.offset+b.size+l,size:h?m:(N=T.barSize)!==null&&N!==void 0?N:0}},k=[...O,C];return b=k[k.length-1].position,k},f)}else{var S=ni(t,n,0,!0);n-2*S-(o-1)*l<=0&&(l=0);var j=(n-2*S-(o-1)*l)/o;j>1&&(j>>=0);var A=ft(a)?Math.min(j,a):j;c=r.reduce((O,T,N)=>[...O,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:S+(j+l)*N+(j-A)/2,size:A}}],f)}return c}}var hoe=(e,t,n,r,a,o,l)=>{var c=jt(l)?t:l,f=doe(n,r,a!==o?a:o,e,c);return a!==o&&f!=null&&(f=f.map(h=>Hh(Hh({},h),{},{position:Hh(Hh({},h.position),{},{offset:h.position.offset-a/2})}))),f},moe=(e,t)=>{var n=cg(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)}}}};function poe(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ft(e.zIndex)?e.zIndex:t}var goe=e=>{var{chartData:t}=e,n=At(),r=Tn();return w.useEffect(()=>r?()=>{}:(n(VM(t)),()=>{n(VM(void 0))}),[t,n,r]),null},DP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},s6=Jn({name:"brush",initialState:DP,reducers:{setBrushSettings(e,t){return t.payload==null?DP:t.payload}}}),{setBrushSettings:uhe}=s6.actions,voe=s6.reducer;function yoe(e,t,n){return(t=xoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xoe(e){var t=boe(e,"string");return typeof t=="symbol"?t:t+""}function boe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class sj{static create(t){return new sj(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+l}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],a=n[n.length-1];return r<=a?t>=r&&t<=a:t>=a&&t<=r}}yoe(sj,"EPS",1e-4);function woe(e){return(e%180+180)%180}var Soe=function(t){var{width:n,height:r}=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=woe(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)},joe={dots:[],areas:[],lines:[]},o6=Jn({name:"referenceElements",initialState:joe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ei(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=ei(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=ei(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:che,removeDot:fhe,addArea:dhe,removeArea:hhe,addLine:mhe,removeLine:phe}=o6.actions,Aoe=o6.reducer,Ooe=w.createContext(void 0),Eoe=e=>{var{children:t}=e,[n]=w.useState("".concat(sf("recharts"),"-clip")),r=aj();if(r==null)return null;var{x:a,y:o,width:l,height:c}=r;return w.createElement(Ooe.Provider,{value:n},w.createElement("defs",null,w.createElement("clipPath",{id:n},w.createElement("rect",{x:a,y:o,height:c,width:l}))),t)};function l6(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 Noe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Soe(r,n)}function Toe(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 bf(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 Coe(e,t){return l6(e,t+1)}function koe(e,t,n,r,a){for(var o=(r||[]).slice(),{start:l,end:c}=t,f=0,h=1,m=l,p=function(){var S=r==null?void 0:r[f];if(S===void 0)return{v:l6(r,h)};var j=f,A,O=()=>(A===void 0&&(A=n(S,j)),A),T=S.coordinate,N=f===0||bf(e,T,O,m,c);N||(f=0,m=l,h+=1),N&&(m=T+e*(O()/2+a),f+=h)},y;h<=o.length;)if(y=p(),y)return y.v;return[]}function Moe(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,y=!0,b=function(){var T=r[S],N=S,C,k=()=>(C===void 0&&(C=n(T,N)),C),D=T.coordinate,M=S===m||bf(e,D,k,p,f);if(!M)return y=!1,1;M&&(p=D+e*(k()/2+a))},S=m;S<l&&!b();S+=h);if(y){for(var j=[],A=m;A<l;A+=h)j.push(r[A]);return j}}return[]}function 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 On(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){Poe(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 Poe(e,t,n){return(t=_oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e){var t=Doe(e,"string");return typeof t=="symbol"?t:t+""}function Doe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Roe(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,{start:c}=t,{end:f}=t,h=function(y){var b=o[y],S,j=()=>(S===void 0&&(S=n(b,y)),S);if(y===l-1){var A=e*(b.coordinate+e*j()/2-f);o[y]=b=On(On({},b),{},{tickCoord:A>0?b.coordinate-A*e:b.coordinate})}else o[y]=b=On(On({},b),{},{tickCoord:b.coordinate});if(b.tickCoord!=null){var O=bf(e,b.tickCoord,j,c,f);O&&(f=b.tickCoord-e*(j()/2+a),o[y]=On(On({},b),{},{isShow:!0}))}},m=l-1;m>=0;m--)h(m);return o}function zoe(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],p=n(m,c-1),y=e*(m.coordinate+e*p/2-h);if(l[c-1]=m=On(On({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate}),m.tickCoord!=null){var b=bf(e,m.tickCoord,()=>p,f,h);b&&(h=m.tickCoord-e*(p/2+a),l[c-1]=On(On({},m),{},{isShow:!0}))}}for(var S=o?c-1:c,j=function(T){var N=l[T],C,k=()=>(C===void 0&&(C=n(N,T)),C);if(T===0){var D=e*(N.coordinate-e*k()/2-f);l[T]=N=On(On({},N),{},{tickCoord:D<0?N.coordinate-D*e:N.coordinate})}else l[T]=N=On(On({},N),{},{tickCoord:N.coordinate});if(N.tickCoord!=null){var M=bf(e,N.tickCoord,k,f,h);M&&(f=N.tickCoord+e*(k()/2+a),l[T]=On(On({},N),{},{isShow:!0}))}},A=0;A<S;A++)j(A);return l}function oj(e,t,n){var{tick:r,ticks: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)||Vf.isSsr){var y;return(y=Coe(a,he(f)?f:0))!==null&&y!==void 0?y:[]}var b=[],S=c==="top"||c==="bottom"?"width":"height",j=m&&S==="width"?Fc(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},A=(N,C)=>{var k=typeof h=="function"?h(N.value,C):N.value;return S==="width"?Noe(Fc(k,{fontSize:t,letterSpacing:n}),j,p):Fc(k,{fontSize:t,letterSpacing:n})[S]},O=a.length>=2?Xn(a[1].coordinate-a[0].coordinate):1,T=Toe(o,O,S);return f==="equidistantPreserveStart"?koe(O,T,A,a,l):f==="equidistantPreserveEnd"?Moe(O,T,A,a,l):(f==="preserveStart"||f==="preserveStartEnd"?b=zoe(O,T,A,a,l,f==="preserveStartEnd"):b=Roe(O,T,A,a,l),b.filter(N=>N.isShow))}var Loe=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},Ioe=["axisLine","width","height","className","hide","ticks","axisType"];function Boe(e,t){if(e==null)return{};var n,r,a=Uoe(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 Uoe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}function zP(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zP(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $oe(e,t,n){return(t=qoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qoe(e){var t=Voe(e,"string");return typeof t=="symbol"?t:t+""}function Voe(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 ra={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:un.axis};function Foe(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=Vt(Vt(Vt({},f),Rr(c)),{},{fill:"none"});if(o==="top"||o==="bottom"){var m=+(o==="top"&&!l||o==="bottom"&&l);h=Vt(Vt({},h),{},{x1:t,y1:n+m*a,x2:t+r,y2:n+m*a})}else{var p=+(o==="left"&&!l||o==="right"&&l);h=Vt(Vt({},h),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return w.createElement("line",ko({},h,{className:Ze("recharts-cartesian-axis-line",Jl(c,"className"))}))}function Hoe(e,t,n,r,a,o,l,c,f){var h,m,p,y,b,S,j=c?-1:1,A=e.tickSize||l,O=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=m=e.coordinate,y=n+ +!c*a,p=y-j*A,S=p-j*f,b=O;break;case"left":p=y=e.coordinate,m=t+ +!c*r,h=m-j*A,b=h-j*f,S=O;break;case"right":p=y=e.coordinate,m=t+ +c*r,h=m+j*A,b=h+j*f,S=O;break;default:h=m=e.coordinate,y=n+ +c*a,p=y+j*A,S=p+j*f,b=O;break}return{line:{x1:h,y1:p,x2:m,y2:y},tick:{x:b,y:S}}}function Koe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Yoe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Goe(e){var{option:t,tickProps:n,value:r}=e,a,o=Ze(n.className,"recharts-cartesian-axis-tick-value");if(w.isValidElement(t))a=w.cloneElement(t,Vt(Vt({},n),{},{className:o}));else if(typeof t=="function")a=t(Vt(Vt({},n),{},{className:o}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=Ze(l,t==null?void 0:t.className)),a=w.createElement(rj,ko({},n,{className:l}),r)}return a}var Woe=w.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:y,y:b,width:S,height:j,tickSize:A,tickMargin:O,fontSize:T,letterSpacing:N,getTicksConfig:C,events:k,axisType:D}=e,M=oj(Vt(Vt({},C),{},{ticks:n}),T,N),_=Koe(m,p),B=Yoe(m,p),K=Rr(C),$=zf(r),Z={};typeof a=="object"&&(Z=a);var le=Vt(Vt({},K),{},{fill:"none"},Z),de=M.map(W=>Vt({entry:W},Hoe(W,y,b,S,j,m,A,p,O))),me=de.map(W=>{var{entry:Y,line:oe}=W;return w.createElement(In,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(Y.value,"-").concat(Y.coordinate,"-").concat(Y.tickCoord)},a&&w.createElement("line",ko({},le,oe,{className:Ze("recharts-cartesian-axis-tick-line",Jl(a,"className"))})))}),q=de.map((W,Y)=>{var{entry:oe,tick:ne}=W,R=Vt(Vt(Vt(Vt({textAnchor:_,verticalAnchor:B},K),{},{stroke:"none",fill:o},$),ne),{},{index:Y,payload:oe,visibleTicksCount:M.length,tickFormatter:l,padding:f},h);return w.createElement(In,ko({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(oe.value,"-").concat(oe.coordinate,"-").concat(oe.tickCoord)},Mp(k,oe,Y)),r&&w.createElement(Goe,{option:r,tickProps:R,value:"".concat(typeof l=="function"?l(oe.value,Y):oe.value).concat(c||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(D,"-ticks")},q.length>0&&w.createElement($r,{zIndex:un.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(D,"-tick-labels"),ref:t},q)),me.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(D,"-tick-lines")},me))}),Xoe=w.forwardRef((e,t)=>{var{axisLine:n,width:r,height:a,className:o,hide:l,ticks:c,axisType:f}=e,h=Boe(e,Ioe),[m,p]=w.useState(""),[y,b]=w.useState(""),S=w.useRef(null);w.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var A;return Loe({ticks:S.current,label:(A=e.labelRef)===null||A===void 0?void 0:A.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=w.useCallback(A=>{if(A){var O=A.getElementsByClassName("recharts-cartesian-axis-tick-value");S.current=O;var T=O[0];if(T){var N=window.getComputedStyle(T),C=N.fontSize,k=N.letterSpacing;(C!==m||k!==y)&&(p(C),b(k))}}},[m,y]);return l||r!=null&&r<=0||a!=null&&a<=0?null:w.createElement($r,{zIndex:e.zIndex},w.createElement(In,{className:Ze("recharts-cartesian-axis",o)},w.createElement(Foe,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Rr(e)}),w.createElement(Woe,{ref:j,axisType:f,events:h,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:y,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(kae,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Uae,{label:e.label,labelRef:e.labelRef}),e.children)))}),lj=w.forwardRef((e,t)=>{var n=Sn(e,ra);return w.createElement(Xoe,ko({},n,{ref:t}))});lj.displayName="CartesianAxis";var Qoe=["x1","y1","x2","y2","key"],Zoe=["offset"],Joe=["xAxisId","yAxisId"],ele=["xAxisId","yAxisId"];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 En(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){tle(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 tle(e,t,n){return(t=nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return typeof t=="symbol"?t:t+""}function rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao.apply(null,arguments)}function cp(e,t){if(e==null)return{};var n,r,a=ile(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 ile(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 ale=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 w.createElement("rect",{x:r,y:a,ry:c,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function u6(e){var{option:t,lineItemProps:n}=e,r;if(w.isValidElement(t))r=w.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var a,{x1:o,y1:l,x2:c,y2:f,key:h}=n,m=cp(n,Qoe),p=(a=Rr(m))!==null&&a!==void 0?a:{},{offset:y}=p,b=cp(p,Zoe);r=w.createElement("line",ao({},b,{x1:o,y1:l,x2:c,y2:f,fill:"none",key:h}))}return r}function sle(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=cp(e,Joe),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 w.createElement(u6,{key:"line-".concat(m),option:r,lineItemProps:p})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function ole(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=cp(e,ele),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 w.createElement(u6,{option:r,lineItemProps:p,key:"line-".concat(m)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function lle(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,y)=>p-y);a!==h[0]&&h.unshift(0);var m=h.map((p,y)=>{var b=!h[y+1],S=b?a+l-p:h[y+1]-p;if(S<=0)return null;var j=y%t.length;return w.createElement("rect",{key:"react-".concat(y),y:p,x:r,height:S,width:o,stroke:"none",fill:t[j],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function ule(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,y)=>p-y);a!==h[0]&&h.unshift(0);var m=h.map((p,y)=>{var b=!h[y+1],S=b?a+l-p:h[y+1]-p;if(S<=0)return null;var j=y%n.length;return w.createElement("rect",{key:"react-".concat(y),x:p,y:o,width:S,height:c,stroke:"none",fill:n[j],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var cle=(e,t)=>{var{xAxis:n,width:r,height:a,offset:o}=e;return IR(oj(En(En(En({},ra),n),{},{ticks:BR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},fle=(e,t)=>{var{yAxis:n,width:r,height:a,offset:o}=e;return IR(oj(En(En(En({},ra),n),{},{ticks:BR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},dle={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:un.grid};function Hc(e){var t=rS(),n=iS(),r=KR(),a=En(En({},Sn(e,dle)),{},{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:y,verticalValues:b}=a,S=Tn(),j=Se(B=>MM(B,"xAxis",o,S)),A=Se(B=>MM(B,"yAxis",l,S));if(!bi(h)||!bi(m)||!he(c)||!he(f))return null;var O=a.verticalCoordinatesGenerator||cle,T=a.horizontalCoordinatesGenerator||fle,{horizontalPoints:N,verticalPoints:C}=a;if((!N||!N.length)&&typeof T=="function"){var k=y&&y.length,D=T({yAxis:A?En(En({},A),{},{ticks:k?y:A.ticks}):void 0,width:t??h,height:n??m,offset:r},k?!0:p);Lm(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(N=D)}if((!C||!C.length)&&typeof O=="function"){var M=b&&b.length,_=O({xAxis:j?En(En({},j),{},{ticks:M?b:j.ticks}):void 0,width:t??h,height:n??m,offset:r},M?!0:p);Lm(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(C=_)}return w.createElement($r,{zIndex:a.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(ale,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),w.createElement(lle,ao({},a,{horizontalPoints:N})),w.createElement(ule,ao({},a,{verticalPoints:C})),w.createElement(sle,ao({},a,{offset:r,horizontalPoints:N,xAxis:j,yAxis:A})),w.createElement(ole,ao({},a,{offset:r,verticalPoints:C,xAxis:j,yAxis:A}))))}Hc.displayName="CartesianGrid";var hle={},c6=Jn({name:"errorBars",initialState:hle,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:ghe,replaceErrorBar:vhe,removeErrorBar:yhe}=c6.actions,mle=c6.reducer,ple=["children"];function gle(e,t){if(e==null)return{};var n,r,a=vle(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 vle(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 yle={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},xle=w.createContext(yle);function ble(e){var{children:t}=e,n=gle(e,ple);return w.createElement(xle.Provider,{value:n},t)}function uj(e,t){var n,r,a=Se(h=>Sa(h,e)),o=Se(h=>ja(h,t)),l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:rn.allowDataOverflow,c=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:an.allowDataOverflow,f=l||c;return{needClip:f,needClipX:l,needClipY:c}}function f6(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,a=aj(),{needClipX:o,needClipY:l,needClip:c}=uj(t,n);if(!c||!a)return null;var{x:f,y:h,width:m,height:p}=a;return w.createElement("clipPath",{id:"clipPath-".concat(r)},w.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 wle(e){var t=zf(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 $x={exports:{}},qx={};/**
|
|
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 IP;function Sle(){if(IP)return qx;IP=1;var e=lu();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 qx.useSyncExternalStoreWithSelector=function(f,h,m,p,y){var b=a(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=l(function(){function A(k){if(!O){if(O=!0,T=k,k=p(k),y!==void 0&&S.hasValue){var D=S.value;if(y(D,k))return N=D}return N=k}if(D=N,n(T,k))return D;var M=p(k);return y!==void 0&&y(D,M)?(T=k,D):(T=k,N=M)}var O=!1,T,N,C=m===void 0?null:m;return[function(){return A(h())},C===null?void 0:function(){return A(C())}]},[h,m,p,y]);var j=r(f,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=j},[j]),c(j),j},qx}var BP;function jle(){return BP||(BP=1,$x.exports=Sle()),$x.exports}jle();function Ale(e){e()}function Ole(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ale(()=>{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 UP={notify(){},get:()=>[]};function Ele(e,t){let n,r=UP,a=0,o=!1;function l(j){m();const A=r.subscribe(j);let O=!1;return()=>{O||(O=!0,A(),p())}}function c(){r.notify()}function f(){S.onStateChange&&S.onStateChange()}function h(){return o}function m(){a++,n||(n=e.subscribe(f),r=Ole())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=UP)}function y(){o||(o=!0,m())}function b(){o&&(o=!1,p())}const S={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return S}var Nle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tle=Nle(),Cle=()=>typeof navigator<"u"&&navigator.product==="ReactNative",kle=Cle(),Mle=()=>Tle||kle?w.useLayoutEffect:w.useEffect,Ple=Mle();function $P(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _le(e,t){if($P(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])||!$P(e[n[a]],t[n[a]]))return!1;return!0}var Vx=Symbol.for("react-redux-context"),Fx=typeof globalThis<"u"?globalThis:{};function Dle(){if(!w.createContext)return{};const e=Fx[Vx]??(Fx[Vx]=new Map);let t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}var Rle=Dle();function zle(e){const{children:t,context:n,serverState:r,store:a}=e,o=w.useMemo(()=>{const f=Ele(a);return{store:a,subscription:f,getServerState:r?()=>r:void 0}},[a,r]),l=w.useMemo(()=>a.getState(),[a]);Ple(()=>{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||Rle;return w.createElement(c.Provider,{value:o},t)}var Lle=zle,Ile=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Ble(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function xg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Ile.has(r)){if(e[r]==null&&t[r]==null)continue;if(!_le(e[r],t[r]))return!1}else if(!Ble(e[r],t[r]))return!1;return!0}function ji(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:i6}function Ai(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:i6}var d6=(e,t,n)=>Ss(e,"xAxis",ji(e,t),n),h6=(e,t,n)=>ws(e,"xAxis",ji(e,t),n),m6=(e,t,n)=>Ss(e,"yAxis",Ai(e,t),n),p6=(e,t,n)=>ws(e,"yAxis",Ai(e,t),n),Ule=X([We,d6,m6,h6,p6],(e,t,n,r,a)=>va(e,"xAxis")?tu(t,r,!1):tu(n,a,!1)),$le=(e,t)=>t,g6=X([mg,$le],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),v6=e=>{var t=We(e),n=va(t,"xAxis");return n?"yAxis":"xAxis"},qle=(e,t)=>{var n=v6(e);return n==="yAxis"?Ai(e,t):ji(e,t)},Vle=(e,t,n)=>rp(e,v6(e),qle(e,t),n),Fle=X([g6,Vle],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,a=cg(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]])}}}),Hle=X([We,d6,m6,h6,p6,Fle,Y4,Ule,g6,_te],(e,t,n,r,a,o,l,c,f,h)=>{var{chartData:m,dataStartIndex:p,dataEndIndex:y}=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:b}=f,S;if(b&&b.length>0?S=b:S=m==null?void 0:m.slice(p,y+1),S!=null)return cue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:a,dataStartIndex:p,areaSettings:f,stackedData:o,displayedData:S,chartBaseValue:h,bandSize:c})}}),Kle=["id"],Yle=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}function y6(e,t){if(e==null)return{};var n,r,a=Gle(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 Gle(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 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 Rl(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){Wle(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 Wle(e,t,n){return(t=Xle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xle(e){var t=Qle(e,"string");return typeof t=="symbol"?t:t+""}function Qle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fp(e,t){return e&&e!=="none"?e:t}var Zle=e=>{var{dataKey:t,name:n,stroke:r,fill:a,legendType:o,hide:l}=e;return[{inactive:l,dataKey:t,type:o,color:fp(r,a),value:qp(n,t),payload:e}]},Jle=w.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,positions:void 0,settings:{stroke:r,strokeWidth:a,fill:o,dataKey:t,nameKey:void 0,name:qp(l,t),hide:c,type:h,color:fp(r,o),unit:f,graphicalItemId:m}};return w.createElement(JL,{tooltipEntrySettings:p})});function eue(e){var{clipPathId:t,points:n,props:r}=e,{needClip:a,dot:o,dataKey:l}=r,c=Rr(r);return w.createElement(qse,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:c,needClip:a,clipPathId:t})}function tue(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 Rl(Rl({},f),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return w.createElement(VL,{value:t?a:void 0},n)}function VP(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,y=y6(o,Kle),b=Rr(y),S=Ln(y);return w.createElement(w.Fragment,null,(t==null?void 0:t.length)>1&&w.createElement(In,{clipPath:r?"url(#clipPath-".concat(a,")"):void 0},w.createElement(Vc,bo({},S,{id:p,points:t,connectNulls:h,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&w.createElement(Vc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:t})),f!=="none"&&m&&w.createElement(Vc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:n}))),w.createElement(eue,{points:t,props:y,clipPathId:a}))}function nue(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(!ft(c)||!ft(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)?w.createElement("rect",{x:0,y:c<f?c:c-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}function rue(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(!ft(c)||!ft(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)?w.createElement("rect",{x:c<f?c:c-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}function iue(e){var{alpha:t,layout:n,points:r,baseLine:a,strokeWidth:o}=e;return n==="vertical"?w.createElement(nue,{alpha:t,points:r,baseLine:a,strokeWidth:o}):w.createElement(rue,{alpha:t,points:r,baseLine:a,strokeWidth:o})}function aue(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:y,onAnimationEnd:b}=r,S=w.useMemo(()=>({points:l,baseLine:c}),[l,c]),j=Jp(S,"recharts-area-"),A=KX(),[O,T]=w.useState(!1),N=!O,C=w.useCallback(()=>{typeof b=="function"&&b(),T(!1)},[b]),k=w.useCallback(()=>{typeof y=="function"&&y(),T(!0)},[y]);if(A==null)return null;var D=a.current,M=o.current;return w.createElement(tue,{showLabels:N,points:l},r.children,w.createElement(Zp,{animationId:j,begin:h,duration:m,isActive:f,easing:p,onAnimationEnd:C,onAnimationStart:k,key:j},_=>{if(D){var B=D.length/l.length,K=_===1?l:l.map((Z,le)=>{var de=Math.floor(le*B);if(D[de]){var me=D[de];return Rl(Rl({},Z),{},{x:wt(me.x,Z.x,_),y:wt(me.y,Z.y,_)})}return Z}),$;return he(c)?$=wt(M,c,_):jt(c)||zr(c)?$=wt(M,0,_):$=c.map((Z,le)=>{var de=Math.floor(le*B);if(Array.isArray(M)&&M[de]){var me=M[de];return Rl(Rl({},Z),{},{x:wt(me.x,Z.x,_),y:wt(me.y,Z.y,_)})}return Z}),_>0&&(a.current=K,o.current=$),w.createElement(VP,{points:K,baseLine:$,needClip:t,clipPathId:n,props:r})}return _>0&&(a.current=l,o.current=c),w.createElement(In,null,f&&w.createElement("defs",null,w.createElement("clipPath",{id:"animationClipPath-".concat(n)},w.createElement(iue,{alpha:_,points:l,baseLine:c,layout:A,strokeWidth:r.strokeWidth}))),w.createElement(In,{clipPath:"url(#animationClipPath-".concat(n,")")},w.createElement(VP,{points:l,baseLine:c,needClip:t,clipPathId:n,props:r})))}),w.createElement(HL,{label:r.label}))}function sue(e){var{needClip:t,clipPathId:n,props:r}=e,a=w.useRef(null),o=w.useRef();return w.createElement(aue,{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:o})}class oue extends w.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:y,baseLine:b,zIndex:S}=this.props;if(t)return null;var j=Ze("recharts-area",a),A=y,{r:O,strokeWidth:T}=wle(n),N=WL(n),C=O*2+T,k=c?"url(#clipPath-".concat(N?"":"dots-").concat(A,")"):void 0;return w.createElement($r,{zIndex:S},w.createElement(In,{className:j},c&&w.createElement("defs",null,w.createElement(f6,{clipPathId:A,xAxisId:f,yAxisId:h}),!N&&w.createElement("clipPath",{id:"clipPath-dots-".concat(A)},w.createElement("rect",{x:l-C/2,y:o-C/2,width:m+C,height:p+C}))),w.createElement(sue,{needClip:c,clipPathId:A,props:this.props})),w.createElement(MP,{points:r,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}),this.props.isRange&&Array.isArray(b)&&w.createElement(MP,{points:b,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}))}}var x6={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:un.area};function lue(e){var t,n=Sn(e,x6),{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,connectNulls:c,dot:f,fill:h,fillOpacity:m,hide:p,isAnimationActive:y,legendType:b,stroke:S,xAxisId:j,yAxisId:A}=n,O=y6(n,Yle),T=Po(),N=SL(),{needClip:C}=uj(j,A),k=Tn(),{points:D,isRange:M,baseLine:_}=(t=Se(de=>Hle(de,e.id,k)))!==null&&t!==void 0?t:{},B=aj();if(T!=="horizontal"&&T!=="vertical"||B==null||N!=="AreaChart"&&N!=="ComposedChart")return null;var{height:K,width:$,x:Z,y:le}=B;return!D||!D.length?null:w.createElement(oue,bo({},O,{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,baseLine:_,connectNulls:c,dot:f,fill:h,fillOpacity:m,height:K,hide:p,layout:T,isAnimationActive:y==="auto"?!Vf.isSsr:y,isRange:M,legendType:b,needClip:C,points:D,stroke:S,width:$,left:Z,top:le,xAxisId:j,yAxisId:A}))}var uue=(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 cue(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:y,bandSize:b}=e,S=a&&a.length,j=uue(o,l,n,c,f),A=o==="horizontal",O=!1,T=h.map((C,k)=>{var D,M,_;if(S)_=a[m+k];else{var B=Ft(C,r);Array.isArray(B)?(_=B,O=!0):_=[j,B]}var K=(D=(M=_)===null||M===void 0?void 0:M[1])!==null&&D!==void 0?D:null,$=K==null||S&&!t&&Ft(C,r)==null;return A?{x:_C({axis:c,ticks:p,bandSize:b,entry:C,index:k}),y:$?null:f.scale(K),value:_,payload:C}:{x:$?null:c.scale(K),y:_C({axis:f,ticks:y,bandSize:b,entry:C,index:k}),value:_,payload:C}}),N;return S||O?N=T.map(C=>{var k=Array.isArray(C.value)?C.value[0]:null;return A?{x:C.x,y:k!=null&&C.y!=null?f.scale(k):null,payload:C.payload}:{x:k!=null?c.scale(k):null,y:C.y,payload:C.payload}}):N=A?f.scale(j):c.scale(j),{points:T,baseLine:N,isRange:O}}function fue(e){var t=Sn(e,x6),n=Tn();return w.createElement(t6,{id:t.id,type:"area"},r=>w.createElement(w.Fragment,null,w.createElement(e6,{legendPayload:Zle(t)}),w.createElement(Jle,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),w.createElement(r6,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:UR(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),w.createElement(lue,bo({},t,{id:r}))))}var Kc=w.memo(fue,xg);Kc.displayName="Area";var due="Invariant failed";function hue(e,t){throw new Error(due)}function M1(){return M1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M1.apply(null,arguments)}function dp(e){return w.createElement(jse,M1({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var mue=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)||jt(r);return o?t(r,a):(o||hue(),n)}},pue=(e,t,n)=>n,gue=(e,t)=>t,nd=X([mg,gue],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),vue=X([nd],e=>e==null?void 0:e.maxBarSize),yue=(e,t,n,r)=>r,xue=X([We,mg,ji,Ai,pue],(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")),bue=(e,t,n)=>{var r=We(e),a=ji(e,t),o=Ai(e,t);if(!(a==null||o==null))return r==="horizontal"?rp(e,"yAxis",o,n):rp(e,"xAxis",a,n)},wue=(e,t)=>{var n=We(e),r=ji(e,t),a=Ai(e,t);if(!(r==null||a==null))return n==="horizontal"?kM(e,"xAxis",r):kM(e,"yAxis",a)},Sue=X([xue,Pte,wue],loe),jue=(e,t,n)=>{var r,a,o=nd(e,t);if(o!=null){var l=ji(e,t),c=Ai(e,t);if(!(l==null||c==null)){var f=We(e),h=lz(e),{maxBarSize:m}=o,p=jt(m)?h:m,y,b;return f==="horizontal"?(y=Ss(e,"xAxis",l,n),b=ws(e,"xAxis",l,n)):(y=Ss(e,"yAxis",c,n),b=ws(e,"yAxis",c,n)),(r=(a=tu(y,b,!0))!==null&&a!==void 0?a:p)!==null&&r!==void 0?r:0}}},b6=(e,t,n)=>{var r=We(e),a=ji(e,t),o=Ai(e,t);if(!(a==null||o==null)){var l,c;return r==="horizontal"?(l=Ss(e,"xAxis",a,n),c=ws(e,"xAxis",a,n)):(l=Ss(e,"yAxis",o,n),c=ws(e,"yAxis",o,n)),tu(l,c)}},Aue=X([Sue,lz,Mte,uz,jue,b6,vue],hoe),Oue=(e,t,n)=>{var r=ji(e,t);if(r!=null)return Ss(e,"xAxis",r,n)},Eue=(e,t,n)=>{var r=Ai(e,t);if(r!=null)return Ss(e,"yAxis",r,n)},Nue=(e,t,n)=>{var r=ji(e,t);if(r!=null)return ws(e,"xAxis",r,n)},Tue=(e,t,n)=>{var r=Ai(e,t);if(r!=null)return ws(e,"yAxis",r,n)},Cue=X([Aue,nd],(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}}),kue=X([bue,nd],moe),Mue=X([cn,tS,Oue,Eue,Nue,Tue,Cue,We,Y4,b6,kue,nd,yue],(e,t,n,r,a,o,l,c,f,h,m,p,y)=>{var{chartData:b,dataStartIndex:S,dataEndIndex:j}=f;if(!(p==null||l==null||t==null||c!=="horizontal"&&c!=="vertical"||n==null||r==null||a==null||o==null||h==null)){var{data:A}=p,O;if(A!=null&&A.length>0?O=A:O=b==null?void 0:b.slice(S,j+1),O!=null)return sce({layout:c,barSettings:p,pos:l,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:a,yAxisTicks:o,stackedData:m,displayedData:O,offset:e,cells:y,dataStartIndex:S})}}),Pue=["index"];function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P1.apply(null,arguments)}function _ue(e,t){if(e==null)return{};var n,r,a=Due(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 Due(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 w6=w.createContext(void 0),Rue=e=>{var t=w.useContext(w6);if(t!=null)return t.stackId;if(e!=null)return UR(e)},zue=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Lue=e=>{var t=w.useContext(w6);if(t!=null){var{stackId:n}=t;return"url(#".concat(zue(n,e),")")}},Iue=e=>{var{index:t}=e,n=_ue(e,Pue),r=Lue(t);return w.createElement(In,P1({className:"recharts-bar-stack-layer",clipPath:r},n))},Bue=["onMouseEnter","onMouseLeave","onClick"],Uue=["value","background","tooltipPosition"],$ue=["id"],que=["onMouseEnter","onClick","onMouseLeave"];function ha(){return ha=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},ha.apply(null,arguments)}function FP(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 _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(n),!0).forEach(function(r){Vue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vue(e,t,n){return(t=Fue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fue(e){var t=Hue(e,"string");return typeof t=="symbol"?t:t+""}function Hue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hp(e,t){if(e==null)return{};var n,r,a=Kue(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 Kue(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 Yue=e=>{var{dataKey:t,name:n,fill:r,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:r,value:qp(n,t),payload:e}]},Gue=w.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,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:a,dataKey:t,nameKey:void 0,name:qp(o,t),hide:l,type:f,color:a,unit:c,graphicalItemId:h}};return w.createElement(JL,{tooltipEntrySettings:m})});function Wue(e){var t=Se(Co),{data:n,dataKey:r,background:a,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:c,onClick:f}=o,h=hp(o,Bue),m=XL(l,r,o.id),p=QL(c),y=ZL(f,r,o.id);if(!a||n==null)return null;var b=zf(a);return w.createElement($r,{zIndex:poe(a,un.barBackground)},n.map((S,j)=>{var{value:A,background:O,tooltipPosition:T}=S,N=hp(S,Uue);if(!O)return null;var C=m(S,j),k=p(S,j),D=y(S,j),M=_n(_n(_n(_n(_n({option:a,isActive:String(j)===t},N),{},{fill:"#eee"},O),b),Mp(h,S,j)),{},{onMouseEnter:C,onMouseLeave:k,onClick:D,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return w.createElement(dp,ha({key:"background-bar-".concat(j)},M))}))}function Xue(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 _n(_n({},l),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:l,fill:o.fill})});return w.createElement(VL,{value:t?a:void 0},n)}function Que(e){var{shape:t,activeBar:n,baseProps:r,entry:a,index:o,dataKey:l}=e,c=Se(Co),f=Se(xL),h=n&&String(o)===c&&(f==null||l===f),m=h?n:t;return h?w.createElement($r,{zIndex:un.activeBar},w.createElement(dp,ha({},r,{name:String(r.name)},a,{isActive:h,option:m,index:o,dataKey:l}))):w.createElement(dp,ha({},r,{name:String(r.name)},a,{isActive:h,option:m,index:o,dataKey:l}))}function Zue(e){var{shape:t,baseProps:n,entry:r,index:a,dataKey:o}=e;return w.createElement(dp,ha({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:a,dataKey:o}))}function Jue(e){var t,{data:n,props:r}=e,a=(t=Rr(r))!==null&&t!==void 0?t:{},{id:o}=a,l=hp(a,$ue),{shape:c,dataKey:f,activeBar:h}=r,{onMouseEnter:m,onClick:p,onMouseLeave:y}=r,b=hp(r,que),S=XL(m,f,o),j=QL(y),A=ZL(p,f,o);return n?w.createElement(w.Fragment,null,n.map((O,T)=>w.createElement(Iue,ha({index:T,key:"rectangle-".concat(O==null?void 0:O.x,"-").concat(O==null?void 0:O.y,"-").concat(O==null?void 0:O.value,"-").concat(T),className:"recharts-bar-rectangle"},Mp(b,O,T),{onMouseEnter:S(O,T),onMouseLeave:j(O,T),onClick:A(O,T)}),h?w.createElement(Que,{shape:c,activeBar:h,baseProps:l,entry:O,index:T,dataKey:f}):w.createElement(Zue,{shape:c,baseProps:l,entry:O,index:T,dataKey:f})))):null}function ece(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,y=Jp(t,"recharts-bar-"),[b,S]=w.useState(!1),j=!b,A=w.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),O=w.useCallback(()=>{typeof m=="function"&&m(),S(!0)},[m]);return w.createElement(Xue,{showLabels:j,rects:r},w.createElement(Zp,{animationId:y,begin:l,duration:c,isActive:o,easing:f,onAnimationEnd:A,onAnimationStart:O,key:y},T=>{var N=T===1?r:r==null?void 0:r.map((C,k)=>{var D=p&&p[k];if(D)return _n(_n({},C),{},{x:wt(D.x,C.x,T),y:wt(D.y,C.y,T),width:wt(D.width,C.width,T),height:wt(D.height,C.height,T)});if(a==="horizontal"){var M=wt(0,C.height,T),_=wt(C.stackedBarStart,C.y,T);return _n(_n({},C),{},{y:_,height:M})}var B=wt(0,C.width,T),K=wt(C.stackedBarStart,C.x,T);return _n(_n({},C),{},{width:B,x:K})});return T>0&&(n.current=N??null),N==null?null:w.createElement(In,null,w.createElement(Jue,{props:t,data:N}))}),w.createElement(HL,{label:t.label}),t.children)}function tce(e){var t=w.useRef(null);return w.createElement(ece,{previousRectanglesRef:t,props:e})}var S6=0,nce=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Ft(e,t)}};class rce extends w.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 w.createElement(In,{className:m,id:h},c&&w.createElement("defs",null,w.createElement(f6,{clipPathId:p,xAxisId:o,yAxisId:l})),w.createElement(In,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(p,")"):void 0},w.createElement(Wue,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),w.createElement(tce,this.props)))}}var ice={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:S6,xAxisId:0,yAxisId:0,zIndex:un.bar};function ace(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}=uj(t,n),y=Po(),b=Tn(),S=ise(e.children,ML),j=Se(T=>Mue(T,e.id,b,S));if(y!=="vertical"&&y!=="horizontal")return null;var A,O=j==null?void 0:j[0];return O==null||O.height==null||O.width==null?A=0:A=y==="vertical"?O.height/2:O.width/2,w.createElement(ble,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:nce,errorBarOffset:A},w.createElement(rce,ha({},e,{layout:y,needClip:p,data:j,xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m})))}function sce(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:y,cells:b,parentViewBox:S,dataStartIndex:j}=e,A=t==="horizontal"?c:l,O=m?A.scale.domain():null,T=lX({numericAxis:A}),N=A.scale(T);return p.map((C,k)=>{var D,M,_,B,K,$;if(m){var Z=m[k+j];if(Z==null)return null;D=rX(Z,O)}else D=Ft(C,n),Array.isArray(D)||(D=[T,D]);var le=mue(r,S6)(D[1],k);if(t==="horizontal"){var de,[me,q]=[c.scale(D[0]),c.scale(D[1])];M=DC({axis:l,ticks:f,bandSize:o,offset:a.offset,entry:C,index:k}),_=(de=q??me)!==null&&de!==void 0?de:void 0,B=a.size;var W=me-q;if(K=zr(W)?0:W,$={x:M,y:y.top,width:B,height:y.height},Math.abs(le)>0&&Math.abs(K)<Math.abs(le)){var Y=Xn(K||le)*(Math.abs(le)-Math.abs(K));_-=Y,K+=Y}}else{var[oe,ne]=[l.scale(D[0]),l.scale(D[1])];if(M=oe,_=DC({axis:c,ticks:h,bandSize:o,offset:a.offset,entry:C,index:k}),B=ne-oe,K=a.size,$={x:y.left,y:_,width:y.width,height:K},Math.abs(le)>0&&Math.abs(B)<Math.abs(le)){var R=Xn(B||le)*(Math.abs(le)-Math.abs(B));B+=R}}if(M==null||_==null||B==null||K==null)return null;var F=_n(_n({},C),{},{stackedBarStart:N,x:M,y:_,width:B,height:K,value:m?D:D[1],payload:C,background:$,tooltipPosition:{x:M+B/2,y:_+K/2},parentViewBox:S},b&&b[k]&&b[k].props);return F}).filter(Boolean)}function oce(e){var t=Sn(e,ice),n=Rue(t.stackId),r=Tn();return w.createElement(t6,{id:t.id,type:"bar"},a=>w.createElement(w.Fragment,null,w.createElement(e6,{legendPayload:Yue(t)}),w.createElement(Gue,{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}),w.createElement(r6,{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}),w.createElement($r,{zIndex:t.zIndex},w.createElement(ace,ha({},t,{id:a})))))}var um=w.memo(oce,xg);um.displayName="Bar";var lce=["domain","range"],uce=["domain","range"];function HP(e,t){if(e==null)return{};var n,r,a=cce(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 cce(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){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 j6(e,t){if(e===t)return!0;var{domain:n,range:r}=e,a=HP(e,lce),{domain:o,range:l}=t,c=HP(t,uce);return!KP(n,o)||!KP(r,l)?!1:xg(a,c)}var fce=["dangerouslySetInnerHTML","ticks","scale"],dce=["id","scale"];function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_1.apply(null,arguments)}function YP(e,t){if(e==null)return{};var n,r,a=hce(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 hce(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 mce(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(Yse(e)):n.current!==e&&t(Gse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Wse(n.current)),n.current=null)},[t]),null}var pce=e=>{var{xAxisId:t,className:n}=e,r=Se(tS),a=Tn(),o="xAxis",l=Se(O=>Jz(O,o,t,a)),c=Se(O=>Wz(O,t)),f=Se(O=>kne(O,t)),h=Se(O=>yz(O,t));if(c==null||f==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:p,scale:y}=e,b=YP(e,fce),{id:S,scale:j}=h,A=YP(h,dce);return w.createElement(lj,_1({},b,A,{x:f.x,y:f.y,width:c.width,height:c.height,className:Ze("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:l,axisType:o}))},gce={allowDataOverflow:rn.allowDataOverflow,allowDecimals:rn.allowDecimals,allowDuplicatedCategory:rn.allowDuplicatedCategory,angle:rn.angle,axisLine:ra.axisLine,height:rn.height,hide:!1,includeHidden:rn.includeHidden,interval:rn.interval,minTickGap:rn.minTickGap,mirror:rn.mirror,orientation:rn.orientation,padding:rn.padding,reversed:rn.reversed,scale:rn.scale,tick:rn.tick,tickCount:rn.tickCount,tickLine:ra.tickLine,tickSize:ra.tickSize,type:rn.type,xAxisId:0},vce=e=>{var t=Sn(e,gce);return w.createElement(w.Fragment,null,w.createElement(mce,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),w.createElement(pce,t))},Yc=w.memo(vce,j6);Yc.displayName="XAxis";var yce=["dangerouslySetInnerHTML","ticks","scale"],xce=["id","scale"];function D1(){return D1=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},D1.apply(null,arguments)}function GP(e,t){if(e==null)return{};var n,r,a=bce(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 bce(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 wce(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(Xse(e)):n.current!==e&&t(Qse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Zse(n.current)),n.current=null)},[t]),null}var Sce=e=>{var{yAxisId:t,className:n,width:r,label:a}=e,o=w.useRef(null),l=w.useRef(null),c=Se(tS),f=Tn(),h=At(),m="yAxis",p=Se(D=>Xz(D,t)),y=Se(D=>Pne(D,t)),b=Se(D=>Jz(D,m,t,f)),S=Se(D=>xz(D,t));if(w.useLayoutEffect(()=>{if(!(r!=="auto"||!p||ij(a)||w.isValidElement(a)||S==null)){var D=o.current;if(D){var M=D.getCalculatedWidth();Math.round(p.width)!==Math.round(M)&&h(Jse({id:t,width:M}))}}},[b,p,h,a,t,r,S]),p==null||y==null||S==null)return null;var{dangerouslySetInnerHTML:j,ticks:A,scale:O}=e,T=GP(e,yce),{id:N,scale:C}=S,k=GP(S,xce);return w.createElement(lj,D1({},T,k,{ref:o,labelRef:l,x:y.x,y:y.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:b,axisType:m}))},jce={allowDataOverflow:an.allowDataOverflow,allowDecimals:an.allowDecimals,allowDuplicatedCategory:an.allowDuplicatedCategory,angle:an.angle,axisLine:ra.axisLine,hide:!1,includeHidden:an.includeHidden,interval:an.interval,minTickGap:an.minTickGap,mirror:an.mirror,orientation:an.orientation,padding:an.padding,reversed:an.reversed,scale:an.scale,tick:an.tick,tickCount:an.tickCount,tickLine:ra.tickLine,tickSize:ra.tickSize,type:an.type,width:an.width,yAxisId:0},Ace=e=>{var t=Sn(e,jce);return w.createElement(w.Fragment,null,w.createElement(wce,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),w.createElement(Sce,t))},Gc=w.memo(Ace,j6);Gc.displayName="YAxis";var Oce=(e,t)=>t,cj=X([Oce,We,gz,Jt,pL,Aa,Kre,cn],Jre),fj=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},A6=Lr("mouseClick"),O6=Uf();O6.startListening({actionCreator:A6,effect:(e,t)=>{var n=e.payload,r=cj(t.getState(),fj(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Kne({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var R1=Lr("mouseMove"),E6=Uf(),Kh=null;E6.startListening({actionCreator:R1,effect:(e,t)=>{var n=e.payload;Kh!==null&&cancelAnimationFrame(Kh);var r=fj(n);Kh=requestAnimationFrame(()=>{var a=t.getState(),o=YS(a,a.tooltip.settings.shared);if(o==="axis"){var l=cj(a,r);(l==null?void 0:l.activeIndex)!=null?t.dispatch(oL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate})):t.dispatch(sL())}Kh=null})}});function Ece(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 WP={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},N6=Jn({name:"rootProps",initialState:WP,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:WP.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}}}),Nce=N6.reducer,{updateOptions:Tce}=N6.actions,T6=Jn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:xhe}=T6.actions,Cce=T6.reducer,C6=Lr("keyDown"),k6=Lr("focus"),dj=Uf();dj.startListening({actionCreator:C6,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=GS(a,Au(n),Xf(n),ed(n)),c=l==null?-1:Number(l);if(!(!Number.isFinite(c)||c<0)){var f=Aa(n);if(o==="Enter"){var h=ap(n,"axis","hover",String(a.index));t.dispatch(O1({active:!a.active,activeIndex:a.index,activeCoordinate:h}));return}var m=zne(n),p=m==="left-to-right"?1:-1,y=o==="ArrowRight"?1:-1,b=c+y*p;if(!(f==null||b>=f.length||b<0)){var S=ap(n,"axis","hover",String(b));t.dispatch(O1({active:!0,activeIndex:b.toString(),activeCoordinate:S}))}}}}}});dj.startListening({actionCreator:k6,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=ap(n,"axis","hover",String(o));t.dispatch(O1({active:!0,activeIndex:o,activeCoordinate:l}))}}}});var Nr=Lr("externalEvent"),M6=Uf(),Hx=new Map;M6.startListening({actionCreator:Nr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var a=r.type,o=Hx.get(a);o!==void 0&&cancelAnimationFrame(o);var l=requestAnimationFrame(()=>{try{var c=t.getState(),f={activeCoordinate:Mre(c),activeDataKey:xL(c),activeIndex:Co(c),activeLabel:yL(c),activeTooltipIndex:Co(c),isTooltipActive:Pre(c)};n(f,r)}finally{Hx.delete(a)}});Hx.set(a,l)}}});var kce=X([Su],e=>e.tooltipItemPayloads),Mce=X([kce,Jf,(e,t)=>t,(e,t,n)=>n],(e,t,n,r)=>{var a=e.find(c=>c.settings.graphicalItemId===r);if(a!=null){var{positions:o}=a;if(o!=null){var l=t(o,n);return l}}}),P6=Lr("touchMove"),_6=Uf();_6.startListening({actionCreator:P6,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),a=YS(r,r.tooltip.settings.shared);if(a==="axis"){var o=n.touches[0];if(o==null)return;var l=cj(r,fj({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(l==null?void 0:l.activeIndex)!=null&&t.dispatch(oL({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(pX),p=(c=h.getAttribute(gX))!==null&&c!==void 0?c:void 0,y=ju(r).find(j=>j.id===p);if(m==null||y==null||p==null)return;var{dataKey:b}=y,S=Mce(r,m,p);t.dispatch(aL({activeDataKey:b,activeIndex:m,activeCoordinate:S,activeGraphicalItemId:p}))}}}});var Pce=uR({brush:voe,cartesianAxis:eoe,chartData:kie,errorBars:mle,graphicalItems:Pse,layout:QW,legend:cQ,options:Oie,polarAxis:ese,polarOptions:Cce,referenceElements:Aoe,rootProps:Nce,tooltip:Yne,zIndex:hie}),_ce=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return SW({reducer:Pce,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([O6.middleware,E6.middleware,dj.middleware,M6.middleware,_6.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(AR({type:"raf"}))},devTools:{serialize:{replacer:Ece},name:"recharts-".concat(n)}})};function Dce(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,a=Tn(),o=w.useRef(null);if(a)return n;o.current==null&&(o.current=_ce(t,r));var l=Gw;return w.createElement(Lle,{context:l,store:o.current},n)}function Rce(e){var{layout:t,margin:n}=e,r=At(),a=Tn();return w.useEffect(()=>{a||(r(GW(t)),r(YW(n)))},[r,a,t,n]),null}var zce=w.memo(Rce,xg);function Lce(e){var t=At();return w.useEffect(()=>{t(Tce(e))},[t,e]),null}function XP(e){var{zIndex:t,isPanorama:n}=e,r=w.useRef(null),a=At();return w.useLayoutEffect(()=>(r.current&&a(fie({zIndex:t,element:r.current,isPanorama:n})),()=>{a(die({zIndex:t,isPanorama:n}))}),[a,t,n]),w.createElement("g",{tabIndex:-1,ref:r})}function QP(e){var{children:t,isPanorama:n}=e,r=Se(tie);if(!r||r.length===0)return t;var a=r.filter(l=>l<0),o=r.filter(l=>l>0);return w.createElement(w.Fragment,null,a.map(l=>w.createElement(XP,{key:l,zIndex:l,isPanorama:n})),t,o.map(l=>w.createElement(XP,{key:l,zIndex:l,isPanorama:n})))}var Ice=["children"];function Bce(e,t){if(e==null)return{};var n,r,a=Uce(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 Uce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(null,arguments)}var $ce={width:"100%",height:"100%",display:"block"},qce=w.forwardRef((e,t)=>{var n=rS(),r=iS(),a=t4();if(!bi(n)||!bi(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),w.createElement(Iw,mp({},l,{title:c,desc:f,role:m,tabIndex:h,width:n,height:r,style:$ce,ref:t}),o)}),Vce=e=>{var{children:t}=e,n=Se(Kp);if(!n)return null;var{width:r,height:a,y:o,x:l}=n;return w.createElement(Iw,{width:r,height:a,x:l,y:o},t)},ZP=w.forwardRef((e,t)=>{var{children:n}=e,r=Bce(e,Ice),a=Tn();return a?w.createElement(Vce,null,w.createElement(QP,{isPanorama:!0},n)):w.createElement(qce,mp({ref:t},r),w.createElement(QP,{isPanorama:!1},n))});function Fce(){var e=At(),[t,n]=w.useState(null),r=Se(mX);return w.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),o=a.width/t.offsetWidth;ft(o)&&o!==r&&e(XW(o))}},[t,e,r]),n}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 Hce(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){Kce(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 Kce(e,t,n){return(t=Yce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yce(e){var t=Gce(e,"string");return typeof t=="symbol"?t:t+""}function Gce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}var Wce=()=>(Bie(),null);function pp(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Xce=w.forwardRef((e,t)=>{var n,r,a=w.useRef(null),[o,l]=w.useState({containerWidth:pp((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:pp((r=e.style)===null||r===void 0?void 0:r.height)}),c=w.useCallback((h,m)=>{l(p=>{var y=Math.round(h),b=Math.round(m);return p.containerWidth===y&&p.containerHeight===b?p:{containerWidth:y,containerHeight:b}})},[]),f=w.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:m,height:p}=h.getBoundingClientRect();c(m,p);var y=S=>{var{width:j,height:A}=S[0].contentRect;c(j,A)},b=new ResizeObserver(y);b.observe(h),a.current=b}},[t,c]);return w.useEffect(()=>()=>{var h=a.current;h!=null&&h.disconnect()},[c]),w.createElement(w.Fragment,null,w.createElement(Gp,{width:o.containerWidth,height:o.containerHeight}),w.createElement("div",Mo({ref:f},e)))}),Qce=w.forwardRef((e,t)=>{var{width:n,height:r}=e,[a,o]=w.useState({containerWidth:pp(n),containerHeight:pp(r)}),l=w.useCallback((f,h)=>{o(m=>{var p=Math.round(f),y=Math.round(h);return m.containerWidth===p&&m.containerHeight===y?m:{containerWidth:p,containerHeight:y}})},[]),c=w.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:h,height:m}=f.getBoundingClientRect();l(h,m)}},[t,l]);return w.createElement(w.Fragment,null,w.createElement(Gp,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",Mo({ref:c},e)))}),Zce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement("div",Mo({ref:t},e)))}),Jce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return oa(n)||oa(r)?w.createElement(Qce,Mo({},e,{ref:t})):w.createElement(Zce,Mo({},e,{ref:t}))});function efe(e){return e===!0?Xce:Jce}var tfe=w.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:y,onTouchEnd:b,onTouchMove:S,onTouchStart:j,style:A,width:O,responsive:T,dispatchTouchEvents:N=!0}=e,C=w.useRef(null),k=At(),[D,M]=w.useState(null),[_,B]=w.useState(null),K=Fce(),$=nS(),Z=($==null?void 0:$.width)>0?$.width:O,le=($==null?void 0:$.height)>0?$.height:a,de=w.useCallback(J=>{K(J),typeof t=="function"&&t(J),M(J),B(J),J!=null&&(C.current=J)},[K,t,M,B]),me=w.useCallback(J=>{k(A6(J)),k(Nr({handler:o,reactEvent:J}))},[k,o]),q=w.useCallback(J=>{k(R1(J)),k(Nr({handler:h,reactEvent:J}))},[k,h]),W=w.useCallback(J=>{k(sL()),k(Nr({handler:m,reactEvent:J}))},[k,m]),Y=w.useCallback(J=>{k(R1(J)),k(Nr({handler:p,reactEvent:J}))},[k,p]),oe=w.useCallback(()=>{k(k6())},[k]),ne=w.useCallback(J=>{k(C6(J.key))},[k]),R=w.useCallback(J=>{k(Nr({handler:l,reactEvent:J}))},[k,l]),F=w.useCallback(J=>{k(Nr({handler:c,reactEvent:J}))},[k,c]),ie=w.useCallback(J=>{k(Nr({handler:f,reactEvent:J}))},[k,f]),se=w.useCallback(J=>{k(Nr({handler:y,reactEvent:J}))},[k,y]),ye=w.useCallback(J=>{k(Nr({handler:j,reactEvent:J}))},[k,j]),Ee=w.useCallback(J=>{N&&k(P6(J)),k(Nr({handler:S,reactEvent:J}))},[k,N,S]),fe=w.useCallback(J=>{k(Nr({handler:b,reactEvent:J}))},[k,b]),Xe=efe(T);return w.createElement(NL.Provider,{value:D},w.createElement(O3.Provider,{value:_},w.createElement(Xe,{width:Z??(A==null?void 0:A.width),height:le??(A==null?void 0:A.height),className:Ze("recharts-wrapper",r),style:Hce({position:"relative",cursor:"default",width:Z,height:le},A),onClick:me,onContextMenu:R,onDoubleClick:F,onFocus:oe,onKeyDown:ne,onMouseDown:ie,onMouseEnter:q,onMouseLeave:W,onMouseMove:Y,onMouseUp:se,onTouchEnd:fe,onTouchMove:Ee,onTouchStart:ye,ref:de},w.createElement(Wce,null),n)))}),nfe=["width","height","responsive","children","className","style","compact","title","desc"];function rfe(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}var afe=w.forwardRef((e,t)=>{var{width:n,height:r,responsive:a,children:o,className:l,style:c,compact:f,title:h,desc:m}=e,p=rfe(e,nfe),y=Rr(p);return f?w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement(ZP,{otherAttributes:y,title:h,desc:m},o)):w.createElement(tfe,{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},w.createElement(ZP,{otherAttributes:y,title:h,desc:m,ref:t},w.createElement(Eoe,null,o)))});function z1(){return z1=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},z1.apply(null,arguments)}var sfe={top:5,right:5,bottom:5,left:5},ofe={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:sfe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},D6=w.forwardRef(function(t,n){var r,a=Sn(t.categoricalChartProps,ofe),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,categoricalChartProps:h}=t,m={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return w.createElement(Dce,{preloadedState:{options:m},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},w.createElement(goe,{chartData:h.data}),w.createElement(zce,{layout:a.layout,margin:a.margin}),w.createElement(Lce,{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}),w.createElement(afe,z1({},a,{ref:n})))}),lfe=["axis","item"],ufe=w.forwardRef((e,t)=>w.createElement(D6,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lfe,tooltipPayloadSearcher:TL,categoricalChartProps:e,ref:t})),cfe=["axis"],L1=w.forwardRef((e,t)=>w.createElement(D6,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cfe,tooltipPayloadSearcher:TL,categoricalChartProps:e,ref:t}));function ffe(){var D;const[e,t]=Me.useState("15m"),{data:n}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),{data:r}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(M=>M.json()),refetchInterval:3e4}),{isPending:a,data:o}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(M=>M.json()),staleTime:1/0}),{data:l}=Nn({queryKey:["workers"],queryFn:()=>fetch("/api/workers").then(M=>M.json()),staleTime:1/0}),c=ma();Me.useEffect(()=>{const M=_=>{const B=_.detail;B&&(B.queues&&c.setQueryData(["queues"],{queues:B.queues}),B.workers&&c.setQueryData(["workers"],{workers:B.workers}),B.throughput&&c.setQueryData(["throughput"],B.throughput))};return window.addEventListener("flux-stats-update",M),()=>window.removeEventListener("flux-stats-update",M)},[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(M=>({time:M.timestamp,value:M.count})))||[],y=h.reduce((M,_)=>M+_.waiting,0),b=h.reduce((M,_)=>M+_.delayed,0),S=h.reduce((M,_)=>M+_.failed,0),j=h.reduce((M,_)=>M+_.active,0),A=((D=p[p.length-1])==null?void 0:D.value)||0,O=p.length>0?Math.round(p.reduce((M,_)=>M+_.value,0)/p.length):0,T=p.length>0?Math.max(...p.map(M=>M.value)):0,N=h.slice(0,10).map(M=>({name:M.name.length>12?`${M.name.slice(0,12)}...`:M.name,waiting:M.waiting,delayed:M.delayed,failed:M.failed})),k=Array.from({length:15},(M,_)=>`${14-_}m ago`).map((M,_)=>{var B,K,$,Z;return{time:M,waiting:((B=f.waiting)==null?void 0:B[_])||0,delayed:((K=f.delayed)==null?void 0:K[_])||0,failed:(($=f.failed)==null?void 0:$[_])||0,workers:((Z=f.workers)==null?void 0:Z[_])||0}});return a?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(ea,{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(M=>g.jsx("button",{type:"button",onClick:()=>t(M),className:ke("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",e===M?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"hover:bg-muted text-muted-foreground"),children:M},M))})]}),g.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-4",children:[g.jsx(El,{icon:B_,label:"Waiting",value:y,color:"amber"}),g.jsx(El,{icon:Jr,label:"Delayed",value:b,color:"blue"}),g.jsx(El,{icon:Zn,label:"Active",value:j,color:"green"}),g.jsx(El,{icon:I_,label:"Failed",value:S,color:"red"}),g.jsx(El,{icon:L_,label:"Workers",value:m.length,color:"indigo"}),g.jsx(El,{icon:DE,label:"Jobs/min",value:A,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(fU,{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:A})]}),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:O})]}),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(am,{width:"100%",height:"100%",children:g.jsxs(L1,{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:.4}),g.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),g.jsx(Hc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(Yc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(Gc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(om,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),g.jsx(Kc,{type:"monotone",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorThroughput)",strokeWidth:2})]})})})]}),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(R_,{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(am,{width:"100%",height:"100%",children:g.jsxs(ufe,{data:N,margin:{top:10,right:10,left:-20,bottom:40},children:[g.jsx(Hc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(Yc,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},angle:-45,textAnchor:"end"}),g.jsx(Gc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(om,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),g.jsx(e4,{}),g.jsx(um,{dataKey:"waiting",fill:"hsl(45, 93%, 47%)",name:"Waiting",radius:[4,4,0,0]}),g.jsx(um,{dataKey:"delayed",fill:"hsl(217, 91%, 60%)",name:"Delayed",radius:[4,4,0,0]}),g.jsx(um,{dataKey:"failed",fill:"hsl(0, 84%, 60%)",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(DE,{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(am,{width:"100%",height:"100%",children:g.jsxs(L1,{data:k,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(Hc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(Yc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(Gc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(om,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),g.jsx(Kc,{type:"monotone",dataKey:"waiting",stroke:"hsl(45, 93%, 47%)",fill:"url(#colorWaiting)",strokeWidth:2}),g.jsx(Kc,{type:"monotone",dataKey:"failed",stroke:"hsl(0, 84%, 60%)",fill:"url(#colorFailed)",strokeWidth:2})]})})})]})]})]})}function El({icon:e,label:t,value:n,color:r}){const a={amber:"text-amber-500 bg-amber-500/10",blue:"text-blue-500 bg-blue-500/10",green:"text-green-500 bg-green-500/10",red:"text-red-500 bg-red-500/10",indigo:"text-indigo-500 bg-indigo-500/10",primary:"text-primary bg-primary/10"};return g.jsxs("div",{className:"card-premium p-4 flex items-center gap-3",children:[g.jsx("div",{className:ke("w-10 h-10 rounded-xl flex items-center justify-center",a[r]),children:g.jsx(e,{size:20})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest",children:t}),g.jsx("p",{className:"text-xl font-black",children:n.toLocaleString()})]})]})}function I1({open:e,title:t,message:n,confirmText:r="Confirm",cancelText:a="Cancel",onConfirm:o,onCancel:l,variant:c="danger",isProcessing:f=!1}){return Mf.createPortal(g.jsx(ga,{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(lt.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border rounded-2xl p-6 max-w-md shadow-2xl",onClick:h=>h.stopPropagation(),children:[g.jsx("h3",{className:"text-xl font-black mb-2",children:t}),g.jsx("p",{className:"text-sm text-muted-foreground mb-6 whitespace-pre-line",children:n}),g.jsxs("div",{className:"flex gap-3 justify-end",children:[g.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),l()},disabled:f,className:"px-4 py-2 bg-muted text-foreground rounded-lg hover:bg-muted/80 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:a}),g.jsxs("button",{type:"button",onClick:h=>{h.stopPropagation(),o()},disabled:f,className:ke("px-4 py-2 rounded-lg text-white transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",c==="danger"&&"bg-red-500 hover:bg-red-600",c==="warning"&&"bg-amber-500 hover:bg-amber-600",c==="info"&&"bg-blue-500 hover:bg-blue-600"),children:[f&&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?"Processing...":r]})]})]})})}),document.body)}function R6({queueName:e,onClose:t}){const[n,r]=Me.useState("waiting"),[a,o]=Me.useState(1),[l,c]=Me.useState(new Set),[f,h]=Me.useState(0),[m,p]=Me.useState(!1),[y,b]=Me.useState(null),S=ma(),{isPending:j,error:A,data:O}=Nn({queryKey:["jobs",e,n,a],queryFn:()=>{const M=n==="archive"?`/api/queues/${e}/archive?page=${a}&limit=50`:`/api/queues/${e}/jobs?type=${n}`;return fetch(M).then(_=>_.json())}});Me.useEffect(()=>{n!=="archive"?fetch(`/api/queues/${e}/jobs/count?type=${n}`).then(M=>M.json()).then(M=>h(M.count)).catch(()=>h(0)):h((O==null?void 0:O.total)||0)},[e,n,O==null?void 0:O.total]),Me.useEffect(()=>{c(new Set),o(1)},[n]);const T=M=>{const _=new Set(l);_.has(M)?_.delete(M):_.add(M),c(_)},N=Me.useCallback(()=>{if(!(O!=null&&O.jobs))return;const M=O.jobs.filter(_=>_._raw&&!_._archived).length;if(l.size===M&&M>0)c(new Set);else{const _=new Set;O.jobs.forEach((B,K)=>{B._raw&&!B._archived&&_.add(K)}),c(_)}},[O==null?void 0:O.jobs,l]);Me.useEffect(()=>{const M=_=>{(_.ctrlKey||_.metaKey)&&_.key==="a"&&(_.preventDefault(),N()),_.key==="Escape"&&(y!=null&&y.open?b(null):l.size>0?c(new Set):t())};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[l,y,N,t]),Me.useEffect(()=>{const M=document.body.style.overflow,_=document.body.style.paddingRight,B=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${B}px`,()=>{document.body.style.overflow=M,document.body.style.paddingRight=_}},[]);const C=async(M,_)=>{if(!_._raw)return;const B=M==="delete"?"delete":"retry",K={raw:_._raw};M==="delete"&&(K.type=n),await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)}),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]})},k=async M=>{if(l.size===0||!(O!=null&&O.jobs))return;const _=l.size;b({open:!0,title:`${M==="delete"?"Delete":"Retry"} ${_} Jobs?`,message:`Are you sure you want to ${M} ${_} selected ${n} jobs in "${e}"?
|
|
431
|
-
|
|
432
|
-
This action cannot be undone.`,variant:M==="delete"?"danger":"warning",action:async()=>{p(!0);try{const B=M==="delete"?"bulk-delete":"bulk-retry",K=Array.from(l).map($=>{var Z;return(Z=O==null?void 0:O.jobs[$])==null?void 0:Z._raw}).filter(Boolean);await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n,raws:K})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(B){console.error(`Failed to ${M} jobs:`,B)}finally{p(!1)}}})},D=async M=>{n!=="archive"&&b({open:!0,title:`${M==="delete"?"Delete":"Retry"} ALL ${f} Jobs?`,message:`⚠️ WARNING: This will ${M} ALL ${f} ${n} jobs in "${e}".
|
|
433
|
-
|
|
434
|
-
This is a destructive operation that cannot be undone.`,variant:"danger",action:async()=>{p(!0);try{await fetch(`/api/queues/${e}/jobs/${M==="delete"?"bulk-delete-all":"bulk-retry-all"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(_){console.error(`Failed to ${M} all jobs:`,_)}finally{p(!1)}}})};return Mf.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(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md cursor-default pointer-events-auto",onClick:t}),g.jsxs(lt.div,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border border-border/50 h-[85vh] w-full max-w-2xl shadow-2xl flex flex-col overflow-hidden rounded-2xl relative z-[1002] pointer-events-auto",onClick:M=>M.stopPropagation(),children:[g.jsxs("div",{className:"p-6 border-b flex justify-between items-center bg-muted/20 flex-shrink-0",children:[g.jsxs("div",{children:[g.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[g.jsx(uu,{className:"text-primary",size:20}),"Queue Insight: ",g.jsx("span",{className:"text-primary",children:e})]}),g.jsx("div",{className:"flex items-center gap-4 mt-2",children:["waiting","delayed","failed","archive"].map(M=>g.jsx("button",{type:"button",onClick:()=>r(M),className:ke("text-[9px] font-black px-3 py-1 rounded-sm transition-all border shrink-0 uppercase tracking-widest",n===M?M==="failed"?"bg-red-500 text-white border-red-500 shadow-lg shadow-red-500/20":M==="delayed"?"bg-amber-500 text-white border-amber-500 shadow-lg shadow-amber-500/20":M==="archive"?"bg-indigo-500 text-white border-indigo-500 shadow-lg shadow-indigo-500/20":"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-muted text-muted-foreground border-transparent hover:bg-muted/80"),children:M},M))})]}),g.jsx("button",{type:"button",onClick:t,className:"w-10 h-10 rounded-full hover:bg-muted flex items-center justify-center transition-colors",children:"✕"})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto bg-muted/5 min-h-0",children:[j&&g.jsx("div",{className:"p-12 text-center text-muted-foreground font-medium animate-pulse",children:"Loading jobs..."}),A&&g.jsx("div",{className:"p-12 text-center text-red-500 font-bold",children:"Error loading jobs"}),(O==null?void 0:O.jobs)&&O.jobs.length>0&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"px-6 py-3 border-b bg-muted/5 flex items-center gap-3",children:[g.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.size===O.jobs.filter(M=>M._raw&&!M._archived).length&&l.size>0,onChange:N}),g.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground",children:"Select All (Page)"}),n!=="archive"&&f>0&&g.jsxs("span",{className:"text-[9px] text-muted-foreground/60 ml-2",children:[O.jobs.filter(M=>!M._archived).length," of ",f," total"]}),l.size>0&&g.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[g.jsxs("span",{className:"text-[10px] font-black uppercase text-primary mr-2",children:[l.size," items selected"]}),g.jsx("button",{type:"button",onClick:()=>k("delete"),className:"px-3 py-1 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:"Delete Selected"}),(n==="delayed"||n==="failed")&&g.jsx("button",{type:"button",onClick:()=>k("retry"),className:"px-3 py-1 bg-primary/10 text-primary rounded-md text-[10px] font-black uppercase hover:bg-primary hover:text-primary-foreground transition-all",children:"Retry Selected"})]})]}),n!=="archive"&&f>O.jobs.filter(M=>!M._archived).length&&g.jsxs("div",{className:"px-6 py-3 border-b bg-amber-500/5 flex items-center justify-between",children:[g.jsxs("span",{className:"text-xs font-bold text-amber-600 flex items-center gap-2",children:[g.jsx(Zr,{size:14}),"Showing ",O.jobs.filter(M=>!M._archived).length," of ",f," total"," ",n," jobs"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("button",{type:"button",onClick:()=>D("delete"),className:"px-3 py-1.5 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:["Delete All ",f]}),(n==="delayed"||n==="failed")&&g.jsxs("button",{type:"button",onClick:()=>D("retry"),className:"px-3 py-1.5 bg-amber-500/10 text-amber-600 rounded-md text-[10px] font-black uppercase hover:bg-amber-500 hover:text-white transition-all",children:["Retry All ",f]})]})]})]}),(O==null?void 0:O.jobs)&&O.jobs.length===0&&g.jsxs("div",{className:"p-12 text-center text-muted-foreground flex flex-col items-center gap-4",children:[g.jsx("div",{className:"w-16 h-16 bg-muted/50 rounded-full flex items-center justify-center text-muted-foreground/30",children:g.jsx(H1,{size:32})}),g.jsx("p",{className:"text-lg font-bold",children:"Clear Sky!"}),g.jsx("p",{className:"text-sm opacity-60",children:"No jobs found in this queue."})]}),(O==null?void 0:O.jobs)&&g.jsxs("div",{className:"p-6 space-y-4",children:[O.jobs.map((M,_)=>g.jsxs("div",{className:ke("bg-card border rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all group border-border/50",l.has(_)&&"ring-2 ring-primary border-primary"),children:[g.jsxs("div",{className:"p-4 border-b bg-muted/10 flex justify-between items-center text-[10px]",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[M._raw&&!M._archived&&g.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.has(_),onChange:()=>T(_)}),g.jsxs("span",{className:"font-mono bg-primary/10 text-primary px-2 py-1 rounded-md font-bold uppercase tracking-wider flex items-center gap-2",children:["ID: ",M.id||"N/A",M._archived&&g.jsxs("span",{className:ke("px-1.5 py-0.5 rounded text-[8px] border",M._status==="completed"?"bg-green-500/20 text-green-500 border-green-500/20":"bg-red-500/20 text-red-500 border-red-500/20"),children:["Archive: ",M._status]})]})]}),g.jsxs("span",{className:"text-muted-foreground font-semibold flex items-center gap-3",children:[n==="delayed"&&M.scheduledAt&&g.jsxs("span",{className:"text-amber-500 flex items-center gap-1 font-bold",children:[g.jsx(Jr,{size:12})," ",new Date(M.scheduledAt).toLocaleString()]}),n==="failed"&&M.failedAt&&g.jsxs("span",{className:"text-red-500 flex items-center gap-1 font-bold",children:[g.jsx(Zr,{size:12})," ",new Date(M.failedAt).toLocaleString()]}),M._archivedAt&&g.jsxs("span",{className:"text-indigo-400 flex items-center gap-1 font-bold",children:[g.jsx(Nf,{size:12})," ",new Date(M._archivedAt).toLocaleString()]}),M.timestamp&&!M._archivedAt&&new Date(M.timestamp).toLocaleString()]})]}),g.jsxs("button",{type:"button",onClick:()=>M._raw&&!M._archived&&T(_),className:"w-full text-left cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary focus:ring-inset",children:[M.error&&g.jsxs("div",{className:"p-4 bg-red-500/10 text-red-500 text-xs font-semibold border-b border-red-500/10 flex items-start gap-2",children:[g.jsx(Zr,{size:14,className:"mt-0.5 shrink-0"}),g.jsx("p",{children:M.error})]}),g.jsx("pre",{className:"text-[11px] font-mono p-4 overflow-x-auto text-foreground/80 leading-relaxed bg-muted/5",children:JSON.stringify(M,null,2)})]}),g.jsxs("div",{className:"p-3 bg-muted/5 border-t border-border/50 flex justify-end gap-2",children:[!M._archived&&g.jsx("button",{type:"button",onClick:()=>C("delete",M),className:"text-[10px] font-bold uppercase tracking-widest px-4 py-2 rounded-lg hover:bg-red-500/10 text-red-500 transition-colors",children:"Terminate"}),!M._archived&&(n==="delayed"||n==="failed")&&g.jsx("button",{type:"button",onClick:()=>C("retry",M),className:ke("text-[10px] font-bold uppercase tracking-widest px-4 py-2 rounded-lg text-white shadow-sm transition-all",n==="delayed"?"bg-amber-500 hover:bg-amber-600":"bg-blue-500 hover:bg-blue-600"),children:n==="delayed"?"Process Now":"Retry Job"})]})]},_)),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(M=>Math.max(1,M-1)),disabled:a===1,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(M=>M+1),disabled:a*50>=(O.total||0),className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"→"})]})]})]})]}),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"})})]}),y&&g.jsx(I1,{open:y.open,title:y.title,message:y.message,variant:y.variant,isProcessing:m,onConfirm:y.action,onCancel:()=>b(null)})]}),document.body)}function dfe({isOpen:e,onClose:t}){const[n,r]=Me.useState(1),[a,o]=Me.useState(""),[l,c]=Me.useState("all"),[f,h]=Me.useState([]),[m,p]=Me.useState(0),[y,b]=Me.useState(!1),[S,j]=Me.useState({}),A=Me.useCallback(async()=>{b(!0);try{const N=new URLSearchParams({page:String(n),limit:"20",search:a,...l!=="all"&&{status:l},...S.start&&{startTime:S.start},...S.end&&{endTime:S.end}}),C=await fetch(`/api/logs/archive?${N}`).then(k=>k.json());h(C.logs||[]),p(C.total||0)}catch(N){console.error("Failed to fetch archived logs",N)}finally{b(!1)}},[n,a,l,S]);Me.useEffect(()=>{e&&A()},[e,A]);const O=N=>{N.preventDefault(),r(1),A()},T=Math.ceil(m/20);return g.jsx(ga,{children:e&&g.jsxs("div",{className:"fixed inset-0 z-[4000] flex items-center justify-center p-4 sm:p-8",children:[g.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:t}),g.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-6xl h-full max-h-[850px] bg-card border border-border/50 rounded-3xl shadow-2xl flex flex-col overflow-hidden scanline",children:[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(Jr,{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(xp,{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:O,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(uu,{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:N=>o(N.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(lb,{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:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(k=>({...k,start:C})),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:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(k=>({...k,end:C})),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(K1,{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:N=>{c(N.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:y?g.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 py-20",children:[g.jsx(hfe,{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(N=>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(N.timestamp).toLocaleDateString()}),g.jsx("span",{className:"text-xs font-mono font-bold tabular-nums text-foreground/80",children:new Date(N.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})}),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:ke("w-3 h-3 rounded-full border-2 relative z-10",N.level==="error"?"border-red-500 bg-red-500/20":N.level==="warn"?"border-amber-500 bg-amber-500/20":N.level==="success"?"border-green-500 bg-green-500/20":"border-blue-500 bg-blue-500/20")})]}),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:ke("px-1.5 py-0.5 rounded text-[9px] font-black uppercase tracking-widest",N.level==="error"?"bg-red-500/10 text-red-500":N.level==="warn"?"bg-amber-500/10 text-amber-500":N.level==="success"?"bg-green-500/10 text-green-500":"bg-blue-500/10 text-blue-500"),children:N.level}),g.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:N.worker_id}),N.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:N.queue})]}),g.jsx("p",{className:"text-sm text-foreground/90 font-mono break-all leading-relaxed opacity-90",children:N.message})]})]},N.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:N=>{const C=N.target.value,k=new URL("/api/logs/export",window.location.href);a&&k.searchParams.set("search",a),l!=="all"&&k.searchParams.set("status",l),S.start&&k.searchParams.set("startTime",S.start),S.end&&k.searchParams.set("endTime",S.end),k.searchParams.set("format",C),window.open(k.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||y,onClick:()=>r(N=>N-1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:g.jsx(z_,{size:16})}),g.jsx("button",{type:"button",disabled:n>=T||y,onClick:()=>r(N=>N+1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:g.jsx(vp,{size:16})})]})]})]})]})})}function hfe({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 mfe(){var a;const{data:e}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),[t,n]=Me.useState([]);Me.useEffect(()=>{e&&n(e)},[e]),Me.useEffect(()=>{const o=l=>{var f;const c=l;(f=c.detail)!=null&&f.throughput&&n(c.detail.throughput)};return window.addEventListener("flux-stats-update",o),()=>window.removeEventListener("flux-stats-update",o)},[]);const r=(t==null?void 0:t.map(o=>({time:o.timestamp,value:o.count})))||[];return 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-bold tracking-tight",children:"System Throughput"}),g.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-green-500/10 text-green-500 text-[8px] font-black uppercase tracking-widest rounded-full border border-green-500/20",children:[g.jsx("span",{className:"w-1 h-1 bg-green-500 rounded-full animate-ping"}),"Live"]})]}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),g.jsxs("div",{className:"text-right",children:[g.jsx("p",{className:"text-2xl font-black text-foreground",children:((a=r[r.length-1])==null?void 0:a.value)||0}),g.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-bold",children:"Current Rate"})]})]}),g.jsx("div",{className:"flex-1 w-full min-h-0",children:g.jsx(am,{width:"100%",height:"100%",children:g.jsxs(L1,{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:.4}),g.jsx("stop",{offset:"50%",stopColor:"hsl(var(--primary))",stopOpacity:.1}),g.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),g.jsx(Hc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),g.jsx(Yc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},dy:10}),g.jsx(Gc,{axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),g.jsx(om,{cursor:{stroke:"hsl(var(--primary))",strokeWidth:1,strokeDasharray:"4 4"},contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"16px",fontSize:"12px",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"},itemStyle:{fontWeight:"bold",color:"hsl(var(--primary))"}}),g.jsx(Kc,{type:"stepAfter",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorValue)",strokeWidth:2.5,animationDuration:1500})]})})})]})}function Yh(...e){return S3(Ze(e))}function pfe(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 gfe(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 vfe({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-6 pb-0 flex-none",children:g.jsxs("div",{className:"flex justify-between items-center mb-6",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-lg font-black flex items-center gap-2 tracking-tight",children:[g.jsx(Xc,{size:20,className:"text-primary"}),"Cluster Nodes"]}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase font-black tracking-widest opacity-60",children:"Real-time load"})]}),g.jsxs("span",{className:"text-[10px] font-black text-green-500 bg-green-500/10 px-3 py-1 rounded-full uppercase tracking-widest border border-green-500/20",children:[n," ACTIVE"]})]})}),g.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 px-6 space-y-3 scrollbar-thin pb-6",children:[t.length===0&&g.jsxs("div",{className:"py-12 text-center text-muted-foreground/30 flex flex-col items-center gap-2",children:[g.jsx(Zn,{size:24,className:"opacity-20 animate-pulse"}),g.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest",children:"No nodes connected"})]}),t.map(r=>{var a;return g.jsxs("div",{className:Yh("relative flex items-center gap-4 p-4 rounded-2xl border transition-all group overflow-hidden shrink-0",r.id===e?"bg-primary/5 border-primary/50 shadow-[0_0_20px_rgba(var(--primary-rgb),0.1)] -translate-y-1 scale-[1.02] z-10":"bg-card hover:bg-muted/10 border-border/50 hover:border-primary/20"),children:[g.jsx("div",{className:Yh("absolute left-0 top-0 bottom-0 w-1 transition-all",r.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),g.jsx("div",{className:"relative shrink-0 ml-1",children:g.jsx("div",{className:Yh("w-3 h-3 rounded-full",r.status==="online"?"bg-green-500 animate-pulse shadow-[0_0_12px_rgba(34,197,94,0.6)]":"bg-muted-foreground/40")})}),g.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center mr-2",children:[r.service&&g.jsx("span",{className:"text-[10px] font-black text-primary/80 uppercase tracking-widest mb-0.5 whitespace-nowrap",children:r.service}),g.jsx("h4",{className:"text-sm font-black tracking-tight text-foreground truncate",title:r.id,children:gfe(r.id,r.pid)||r.id}),g.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[g.jsxs("span",{className:"text-[9px] font-bold text-muted-foreground uppercase tracking-wider whitespace-nowrap",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-[9px] font-black text-white bg-red-500 px-1.5 py-0.5 rounded shadow-sm uppercase tracking-widest leading-none whitespace-nowrap",children:[g.jsx(F_,{size:8}),r.meta.laravel.workerCount," PHP"]})]})]}),g.jsxs("div",{className:"flex items-center gap-3 text-right shrink-0",children:[r.metrics&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"hidden sm:block space-y-1 w-12",children:[g.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[g.jsx("span",{children:"CPU"}),g.jsxs("span",{className:Yh(r.metrics.cpu>(r.metrics.cores||1)*100&&"text-red-500"),children:[r.metrics.cpu.toFixed(0),"%"]})]}),g.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:g.jsx("div",{className:"h-full bg-foreground transition-all duration-700",style:{width:`${Math.min(100,r.metrics.cpu)}%`}})})]}),g.jsxs("div",{className:"hidden sm:block space-y-1 w-12",children:[g.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[g.jsx("span",{children:"RAM"}),g.jsx("span",{className:"truncate ml-1",children:pfe(r.metrics.ram.rss).split(" ")[0]})]}),g.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:g.jsx("div",{className:"h-full bg-indigo-500 transition-all duration-700",style:{width:`${Math.min(100,r.metrics.ram.rss/2e9*100)}%`}})})]})]}),g.jsxs("div",{className:"w-12",children:[g.jsx("p",{className:"text-xs font-black tracking-tighter tabular-nums text-foreground",children:r.uptime>3600?`${(r.uptime/3600).toFixed(1)}h`:r.uptime>60?`${(r.uptime/60).toFixed(0)}m`:`${r.uptime.toFixed(0)}s`}),g.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-black tracking-widest opacity-50",children:"UP"})]})]})]},r.id)})]}),g.jsx("div",{className:"p-6 pt-0 flex-none",children:g.jsx("button",{type:"button",className:"w-full py-3 bg-muted text-[10px] font-black rounded-xl hover:bg-primary hover:text-primary-foreground transition-all uppercase tracking-[0.2em] opacity-60 hover:opacity-100 active:scale-95 shadow-lg shadow-transparent hover:shadow-primary/20",children:"Manage Nodes"})})]})}const yfe={queues:[],workers:[]};function xfe({logs:e,onSearchArchive:t,onWorkerHover:n}){const r=Me.useRef(null);return Me.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(F_,{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,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(uu,{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-[11px] space-y-2.5 scrollbar-thin scroll-smooth",children:e.length===0?g.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-2 opacity-50",children:[g.jsx(Zn,{size:24,className:"animate-pulse"}),g.jsx("p",{className:"font-bold uppercase tracking-widest text-[9px]",children:"Awaiting signals..."})]}):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-primary/[0.02] -mx-2 px-2 py-0.5 rounded transition-all animate-in fade-in slide-in-from-left-2 duration-300 cursor-default",children:[g.jsx("span",{className:"text-muted-foreground/40 shrink-0 tabular-nums select-none opacity-0 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.jsxs("span",{className:ke("text-[9px] font-black uppercase tracking-tighter",a.level==="error"?"text-red-500":a.level==="warn"?"text-amber-500":a.level==="success"?"text-green-500":"text-blue-500"),children:["[",a.level,"]"]}),g.jsx("span",{className:"text-[9px] font-black text-muted-foreground/40 uppercase opacity-0 group-hover:opacity-100 transition-all",children:a.workerId})]}),g.jsx("p",{className:"text-foreground/80 leading-relaxed whitespace-pre-wrap break-all",children:a.message})]})]},o))})]})}function bfe({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 wfe({value:e}){const[t,n]=Me.useState(e);return Me.useEffect(()=>{const r=FH(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 Gh({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-8 hover:shadow-2xl transform hover:-translate-y-2 group relative overflow-hidden",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-6 z-10 relative",children:[g.jsx("div",{className:ke("p-4 rounded-2xl bg-muted/30 transition-all group-hover:bg-primary/20 group-hover:text-primary group-hover:rotate-12 duration-500 border border-transparent group-hover:border-primary/20 shadow-inner",r),children:n}),a&&g.jsxs("div",{className:"flex flex-col items-end",children:[g.jsx("span",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest",children:a}),g.jsx("div",{className:"w-8 h-1 bg-muted/50 rounded-full mt-1 overflow-hidden",children:g.jsx(lt.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:1,repeat:1/0,repeatType:"reverse"},className:ke("h-full",r.replace("text-","bg-"))})})]})]}),g.jsxs("div",{className:"z-10 relative",children:[g.jsx("p",{className:"text-[11px] font-black text-muted-foreground/50 uppercase tracking-[0.2em] mb-2",children:e}),g.jsxs("div",{className:"text-4xl font-black tracking-tighter flex items-center gap-1",children:[g.jsx(wfe,{value:t}),e==="Waiting Jobs"&&t>100&&g.jsx("span",{className:"text-red-500 animate-pulse text-xs",children:"!"})]})]}),g.jsx("div",{className:"mt-8 flex items-end gap-1.5 h-16 opacity-5 group-hover:opacity-20 transition-all duration-700 absolute bottom-0 left-0 right-0 p-1.5 pointer-events-none",children:l.map((f,h)=>g.jsx("div",{className:ke("flex-1 rounded-t-lg transition-all duration-1000",r.replace("text-","bg-")),style:{height:`${f/c*100}%`,opacity:.1+h/l.length*.9,transitionDelay:`${h*30}ms`}},h))})]})}function Sfe({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(Qc,{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(vp,{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",children:g.jsx(Nf,{size:14})})})})]},n.name))})]})})]})}function jfe(){const[e,t]=Me.useState(null),[n,r]=Me.useState(null),[a,o]=Me.useState([]),[l,c]=Me.useState(yfe),[f,h]=Me.useState(!1);Me.useEffect(()=>{const T=N=>t(N.detail);return window.addEventListener("select-queue",T),()=>window.removeEventListener("select-queue",T)},[]),Me.useEffect(()=>{fetch("/api/queues").then(T=>T.json()).then(T=>{T.queues&&c(N=>({...N,queues:T.queues}))}),fetch("/api/workers").then(T=>T.json()).then(T=>{T.workers&&c(N=>({...N,workers:T.workers}))})},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;C&&c(k=>({queues:C.queues||k.queues,workers:C.workers||k.workers}))};return window.addEventListener("flux-stats-update",T),()=>window.removeEventListener("flux-stats-update",T)},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;o(k=>[...k.slice(-99),C])};return window.addEventListener("flux-log-update",T),()=>window.removeEventListener("flux-log-update",T)},[]),Me.useEffect(()=>{const T=()=>o([]);return window.addEventListener("clear-logs",T),()=>window.removeEventListener("clear-logs",T)},[]);const{data:m}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(T=>T.json()),refetchInterval:3e4}),p=(m==null?void 0:m.history)||{},{queues:y,workers:b}=l,S=y.reduce((T,N)=>T+N.waiting,0),j=y.reduce((T,N)=>T+N.delayed,0),A=y.reduce((T,N)=>T+N.failed,0),O=b.length;return g.jsxs("div",{className:"space-y-12",children:[g.jsx(dfe,{isOpen:f,onClose:()=>h(!1)}),g.jsx(ga,{children:e&&g.jsx(R6,{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(Gh,{title:"Waiting Jobs",value:S,icon:g.jsx(B_,{size:20}),color:"text-amber-500",trend:"+12% / hr",data:p.waiting}),g.jsx(Gh,{title:"Delayed Jobs",value:j,icon:g.jsx(Jr,{size:20}),color:"text-blue-500",trend:"Stable",data:p.delayed}),g.jsx(Gh,{title:"Failed Jobs",value:A,icon:g.jsx(Zr,{size:20}),color:"text-red-500",trend:A>0?"CRITICAL":"CLEAN",data:p.failed}),g.jsx(Gh,{title:"Active Workers",value:O,icon:g.jsx(Xc,{size:20}),color:"text-indigo-500",trend:O>0?"ONLINE":"IDLE",data:p.workers})]}),g.jsx(mfe,{}),g.jsx(bfe,{queues:y}),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(vfe,{highlightedWorkerId:n,workers:b})}),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(xfe,{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(Sfe,{queues:y,setSelectedQueue:t})})]})]})]})}function Afe(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 Ofe(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 Efe(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 e_(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 Nfe(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 Tfe(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 Cfe({icon:e,title:t,description:n,children:r,className:a}){return g.jsxs("div",{className:ke("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 Kx=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]}`},kc=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 kfe({node:e}){var o,l;const t=Date.now()-e.timestamp<3e4,n=!t&&Date.now()-e.timestamp<6e4,r=()=>{switch(e.language){case"node":return g.jsx(Afe,{className:"w-6 h-6"});case"bun":return g.jsx(Ofe,{className:"w-6 h-6 text-black"});case"deno":return g.jsx(Efe,{className:"w-6 h-6"});case"php":return g.jsx(e_,{className:"w-6 h-6"});case"go":return g.jsx(Nfe,{className:"w-6 h-6"});case"python":return g.jsx(Tfe,{className:"w-6 h-6"});default:return g.jsx(SU,{className:"w-6 h-6 text-white"})}},a=(o=e.meta)==null?void 0:o.laravel;return g.jsxs(lt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-card border border-border/50 rounded-xl p-4 shadow-sm relative overflow-hidden group",children:[g.jsx("div",{className:ke("absolute top-0 right-0 w-24 h-24 bg-gradient-to-bl opacity-10 rounded-bl-full transition-all duration-500",t?"from-emerald-500 to-transparent":n?"from-yellow-500 to-transparent":"from-red-500 to-transparent")}),g.jsxs("div",{className:"flex items-start justify-between mb-4 relative z-10",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center bg-white dark:bg-card border border-border/20 shadow-sm shrink-0",children:r()}),g.jsxs("div",{children:[g.jsxs("h3",{className:"font-bold text-foreground text-sm flex items-center gap-2",children:[e.id,g.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-muted text-muted-foreground uppercase tracking-wider",children:e.platform})]}),g.jsxs("div",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-0.5",children:[g.jsx(qU,{size:10})," ",e.hostname," ",g.jsx("span",{className:"opacity-30",children:"|"})," PID:"," ",e.pid]})]})]}),g.jsx("div",{className:ke("w-2.5 h-2.5 rounded-full shadow-[0_0_10px_currentColor]",t?"bg-emerald-500 text-emerald-500":n?"bg-yellow-500 text-yellow-500":"bg-red-500 text-red-500")})]}),g.jsxs("div",{className:"space-y-3",children:[a&&a.workerCount>0&&g.jsxs("div",{className:"bg-amber-500/5 rounded-lg p-2.5 border border-amber-500/20",children:[g.jsx("div",{className:"flex items-center justify-between text-xs mb-2",children:g.jsxs("div",{className:"flex items-center gap-2 font-bold text-amber-600 dark:text-amber-400",children:[g.jsx(e_,{className:"w-3 h-3"}),"Laravel Workers (",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?")&&kc(e.service,e.id,"LARAVEL_ACTION","default","retry-all")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[g.jsx(qy,{size:10})," Retry All"]}),g.jsxs("button",{type:"button",onClick:()=>{confirm("Artisan queue:restart will signal all workers to quit. Supervisor will restart them. Proceed?")&&kc(e.service,e.id,"LARAVEL_ACTION","default","restart")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[g.jsx(qy,{size:10})," Restart Workers"]})]}),((l=a.roots)==null?void 0:l.length)>0&&g.jsxs("div",{className:"mt-2 text-[9px] text-muted-foreground font-mono opacity-60 truncate",children:["Root: ",a.roots[0]]})]}),e.queues&&e.queues.length>0&&g.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[g.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-2",children:g.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground",children:[g.jsx("span",{className:ke("w-1.5 h-1.5 rounded-full",e.queues.some(c=>c.size.failed>0)?"bg-red-500 animate-pulse":"bg-emerald-500")}),"Queues (",e.queues.length,")"]})}),g.jsx("div",{className:"space-y-2",children:e.queues.map(c=>g.jsxs("div",{className:"flex flex-col gap-1 text-xs",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"font-mono text-muted-foreground",children:c.name}),g.jsxs("div",{className:"flex gap-2 font-mono items-center",children:[c.size.failed>0&&g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"text-red-500 font-bold",children:[c.size.failed," fail"]}),g.jsxs("div",{className:"flex gap-1 ml-1",children:[g.jsx("button",{type:"button",onClick:async()=>{if(c.driver==="redis"&&e.language==="php"&&confirm("Use php artisan queue:retry for precision?")){await kc(e.service,e.id,"LARAVEL_ACTION",c.name,"retry-all");return}kc(e.service,e.id,"RETRY_JOB",c.name)},className:"p-1 rounded hover:bg-emerald-500/20 text-emerald-500 transition-colors",title:"Retry all failed jobs",children:g.jsx(qy,{size:12})}),g.jsx("button",{type:"button",onClick:()=>kc(e.service,e.id,"DELETE_JOB",c.name),className:"p-1 rounded hover:bg-red-500/20 text-red-400 transition-colors",title:"Delete all failed jobs",children:g.jsx(jo,{size:12})})]})]}),c.size.active>0&&g.jsxs("span",{className:"text-emerald-500",children:[c.size.active," act"]}),g.jsxs("span",{className:ke(c.size.waiting>100?"text-yellow-500":"text-muted-foreground"),children:[c.size.waiting," wait"]})]})]}),c.size.waiting+c.size.active+c.size.failed>0&&g.jsxs("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden flex",children:[g.jsx("div",{className:"bg-red-500 h-full transition-all",style:{width:`${c.size.failed/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),g.jsx("div",{className:"bg-yellow-500 h-full transition-all",style:{width:`${c.size.waiting/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),g.jsx("div",{className:"bg-emerald-500 h-full transition-all",style:{width:`${c.size.active/(c.size.waiting+c.size.active+c.size.failed)*100}%`}})]})]},c.name))})]}),g.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[g.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Xc,{size:12})," CPU Usage"]}),g.jsxs("span",{className:"text-[10px]",children:[e.cpu.cores," cores"]})]}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsxs("span",{className:"text-xl font-bold text-foreground",children:[e.cpu.process,"%"]}),g.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"proc"})]}),g.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[g.jsx("div",{className:ke("h-full rounded-full transition-all duration-500 absolute top-0 left-0 z-20 shadow-sm",e.cpu.process>80?"bg-red-500":"bg-primary"),style:{width:`${Math.min(e.cpu.process,100)}%`}}),g.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.cpu.system,100)}%`}})]}),g.jsxs("div",{className:"flex justify-between text-[9px] text-muted-foreground mt-1 font-mono",children:[g.jsxs("span",{className:"text-primary font-bold",children:["Proc: ",e.cpu.process,"%"]}),g.jsxs("span",{children:["Sys: ",e.cpu.system,"%"]})]})]}),g.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[g.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(ub,{size:12})," RAM Usage"]})}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsx("span",{className:"text-xl font-bold text-foreground",children:Kx(e.memory.process.rss)}),g.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"RSS"})]}),g.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[g.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 z-20 shadow-sm bg-indigo-500",style:{width:`${Math.min(e.memory.process.rss/e.memory.system.total*100,100)}%`}}),g.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.memory.system.used/e.memory.system.total*100,100)}%`}})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[10px] text-muted-foreground mt-3 border-t border-border/30 pt-2 font-mono",children:[g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"opacity-70",children:"Heap"}),g.jsx("span",{className:"font-bold",children:Kx(e.memory.process.heapUsed)})]}),g.jsxs("div",{className:"flex flex-col text-right",children:[g.jsx("span",{className:"opacity-70",children:"Sys Free"}),g.jsx("span",{className:"",children:Kx(e.memory.system.free)})]})]})]})]}),g.jsxs("div",{className:"mt-3 pt-3 border-t border-border/50 flex items-center justify-between text-[10px] text-muted-foreground",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(yp,{size:10})," ",e.runtime.framework]}),g.jsxs("span",{children:["Ups: ",Math.floor(e.runtime.uptime/60),"m"]})]})]})}function Mfe({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:ke("grid gap-3",n?"grid-cols-1":"grid-cols-1 xl:grid-cols-2"),children:t.map(r=>g.jsx(kfe,{node:r},r.id))})]})}function Pfe(){const{data:e,isLoading:t}=Nn({queryKey:["pulse-nodes"],queryFn:async()=>(await fetch("/api/pulse/nodes")).json()}),[n,r]=w.useState({});if(w.useEffect(()=>{e!=null&&e.nodes&&r(e.nodes)},[e]),w.useEffect(()=>{const o=l=>{var f;const c=l;(f=c.detail)!=null&&f.nodes&&r(c.detail.nodes)};return window.addEventListener("flux-pulse-update",o),()=>window.removeEventListener("flux-pulse-update",o)},[]),t&&Object.keys(n).length===0)return 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(Cfe,{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(Mfe,{service:o,nodes:l},o))})]})})}function _fe(){const[e,t]=Me.useState(null),[n,r]=Me.useState(""),[a,o]=Me.useState("all"),l=ma(),{isPending:c,error:f,data:h}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(A=>A.json()),staleTime:1/0});Me.useEffect(()=>{const A=O=>{var T;(T=O.detail)!=null&&T.queues&&l.setQueryData(["queues"],{queues:O.detail.queues})};return window.addEventListener("flux-stats-update",A),()=>window.removeEventListener("flux-stats-update",A)},[l]);const m=(h==null?void 0:h.queues)||[],p=m.filter(A=>{const O=A.name.toLowerCase().includes(n.toLowerCase()),T=A.failed>0?"critical":A.active>0?"active":"idle";return O&&(a==="all"||T===a)}),y=m.reduce((A,O)=>A+O.waiting,0),b=m.reduce((A,O)=>A+O.delayed,0),S=m.reduce((A,O)=>A+O.failed,0),j=m.reduce((A,O)=>A+O.active,0);return c?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(ea,{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(Zr,{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(ga,{children:e&&g.jsx(R6,{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-6",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Waiting"}),g.jsx("p",{className:"text-3xl font-black",children:y.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-6",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Delayed"}),g.jsx("p",{className:"text-3xl font-black text-amber-500",children:b.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-6",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Failed"}),g.jsx("p",{className:"text-3xl font-black text-red-500",children:S.toLocaleString()})]}),g.jsxs("div",{className:"card-premium p-6",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Currently Active"}),g.jsx("p",{className:"text-3xl font-black text-green-500",children:j.toLocaleString()})]})]}),g.jsxs("div",{className:"card-premium p-4 flex flex-wrap gap-4 items-center",children:[g.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[g.jsx(uu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),g.jsx("input",{type:"text",placeholder:"Search queues...",value:n,onChange:A=>r(A.target.value),className:"w-full bg-muted/40 border border-border/50 rounded-xl py-2.5 pl-10 pr-4 text-sm font-medium placeholder:text-muted-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary/20"})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(K1,{size:16,className:"text-muted-foreground"}),["all","active","idle","critical"].map(A=>g.jsx("button",{type:"button",onClick:()=>o(A),className:ke("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",a===A?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"),children:A},A))]})]}),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",children:[g.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[10px] font-black tracking-[0.2em]",children:g.jsxs("tr",{children:[g.jsx("th",{className:"px-6 py-5",children:"Queue Name"}),g.jsx("th",{className:"px-6 py-5 text-center",children:"Waiting"}),g.jsx("th",{className:"px-6 py-5 text-center",children:"Delayed"}),g.jsx("th",{className:"px-6 py-5 text-center",children:"Active"}),g.jsx("th",{className:"px-6 py-5 text-center",children:"Failed"}),g.jsx("th",{className:"px-6 py-5 text-center",children:"Status"}),g.jsx("th",{className:"px-6 py-5 text-right",children:"Actions"})]})}),g.jsxs("tbody",{className:"divide-y divide-border/30 text-sm",children:[p.map(A=>{const O=A.failed>0?"critical":A.active>0?"active":"idle";return g.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[g.jsx("td",{className:"px-6 py-5",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-10 h-10 bg-primary/5 rounded-xl flex items-center justify-center text-primary group-hover:scale-110 transition-transform",children:g.jsx(Qc,{size:20})}),g.jsx("span",{className:"font-black tracking-tight",children:A.name})]})}),g.jsx("td",{className:"px-6 py-5 text-center font-mono font-bold",children:A.waiting.toLocaleString()}),g.jsx("td",{className:"px-6 py-5 text-center font-mono text-amber-500",children:A.delayed}),g.jsx("td",{className:"px-6 py-5 text-center font-mono text-green-500",children:A.active}),g.jsx("td",{className:"px-6 py-5 text-center",children:g.jsx("span",{className:ke("font-mono font-black",A.failed>0?"text-red-500":"text-muted-foreground/40"),children:A.failed})}),g.jsx("td",{className:"px-6 py-5 text-center",children:g.jsx("span",{className:ke("px-3 py-1.5 rounded-full text-[9px] font-black uppercase tracking-widest border",A.paused?"bg-amber-500/20 text-amber-500 border-amber-500/30":O==="critical"?"bg-red-500 text-white border-red-600":O==="active"?"bg-green-500/10 text-green-500 border-green-500/20":"bg-muted/40 text-muted-foreground border-transparent"),children:A.paused?"paused":O})}),g.jsx("td",{className:"px-6 py-5",children:g.jsxs("div",{className:"flex justify-end gap-2 items-center",children:[g.jsx("button",{type:"button",onClick:async()=>{const T=A.paused?"resume":"pause";await fetch(`/api/queues/${A.name}/${T}`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]})},className:ke("p-2 rounded-lg transition-all",A.paused?"text-green-500 hover:bg-green-500/10":"text-muted-foreground hover:bg-amber-500/10 hover:text-amber-500"),title:A.paused?"Resume Queue":"Pause Queue",children:A.paused?g.jsx(q_,{size:16}):g.jsx(t9,{size:16})}),A.delayed>0&&g.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-amber-500 hover:bg-amber-500/10 rounded-lg transition-all",title:"Retry All Delayed",children:g.jsx(ea,{size:16})}),A.failed>0&&g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-blue-500 hover:bg-blue-500/10 rounded-lg transition-all",title:"Retry All Failed",children:g.jsx(ea,{size:16})}),g.jsx("button",{type:"button",onClick:()=>{confirm(`Are you sure you want to clear all failed jobs in queue "${A.name}"?`)&&fetch(`/api/queues/${A.name}/clear-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-red-500 hover:bg-red-500/10 rounded-lg transition-all",title:"Clear Failed Jobs",children:g.jsx(I_,{size:16})})]}),g.jsx("button",{type:"button",onClick:async()=>{confirm(`Are you sure you want to purge all jobs in queue "${A.name}"?`)&&(await fetch(`/api/queues/${A.name}/purge`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-muted-foreground hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all",title:"Purge Queue",children:g.jsx(jo,{size:16})}),g.jsxs("button",{type:"button",onClick:()=>t(A.name),className:"px-4 py-1.5 bg-muted text-foreground rounded-lg transition-all flex items-center gap-2 text-[10px] font-black uppercase tracking-widest border border-border/50 hover:border-primary/50 hover:bg-background",children:["Inspect ",g.jsx(Nf,{size:12})]})]})})]},A.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 z6=6048e5,Dfe=864e5,t_=Symbol.for("constructDateFrom");function js(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&t_ in e?e[t_](t):e instanceof Date?new e.constructor(t):new Date(t)}function ai(e,t){return js(t||e,e)}let Rfe={};function bg(){return Rfe}function wf(e,t){var c,f,h,m;const n=bg(),r=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,a=ai(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 gp(e,t){return wf(e,{...t,weekStartsOn:1})}function L6(e,t){const n=ai(e,t==null?void 0:t.in),r=n.getFullYear(),a=js(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=gp(a),l=js(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=gp(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function n_(e){const t=ai(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 zfe(e,...t){const n=js.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function r_(e,t){const n=ai(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Lfe(e,t,n){const[r,a]=zfe(n==null?void 0:n.in,e,t),o=r_(r),l=r_(a),c=+o-n_(o),f=+l-n_(l);return Math.round((c-f)/Dfe)}function Ife(e,t){const n=L6(e,t),r=js(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gp(r)}function Bfe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ufe(e){return!(!Bfe(e)&&typeof e!="number"||isNaN(+ai(e)))}function $fe(e,t){const n=ai(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const qfe={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"}},Vfe=(e,t,n)=>{let r;const a=qfe[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 Yx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ffe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yfe={date:Yx({formats:Ffe,defaultWidth:"full"}),time:Yx({formats:Hfe,defaultWidth:"full"}),dateTime:Yx({formats:Kfe,defaultWidth:"full"})},Gfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wfe=(e,t,n,r)=>Gfe[e];function Mc(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 Xfe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qfe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zfe={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"]},Jfe={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"]},ede={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"}},tde={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"}},nde=(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"},rde={ordinalNumber:nde,era:Mc({values:Xfe,defaultWidth:"wide"}),quarter:Mc({values:Qfe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mc({values:Zfe,defaultWidth:"wide"}),day:Mc({values:Jfe,defaultWidth:"wide"}),dayPeriod:Mc({values:ede,defaultWidth:"wide",formattingValues:tde,defaultFormattingWidth:"wide"})};function Pc(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)?ade(c,p=>p.test(l)):ide(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 ide(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ade(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function sde(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 ode=/^(\d+)(th|st|nd|rd)?/i,lde=/\d+/i,ude={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},cde={any:[/^b/i,/^(a|c)/i]},fde={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dde={any:[/1/i,/2/i,/3/i,/4/i]},hde={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},mde={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]},pde={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},gde={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]},vde={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},yde={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}},xde={ordinalNumber:sde({matchPattern:ode,parsePattern:lde,valueCallback:e=>parseInt(e,10)}),era:Pc({matchPatterns:ude,defaultMatchWidth:"wide",parsePatterns:cde,defaultParseWidth:"any"}),quarter:Pc({matchPatterns:fde,defaultMatchWidth:"wide",parsePatterns:dde,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pc({matchPatterns:hde,defaultMatchWidth:"wide",parsePatterns:mde,defaultParseWidth:"any"}),day:Pc({matchPatterns:pde,defaultMatchWidth:"wide",parsePatterns:gde,defaultParseWidth:"any"}),dayPeriod:Pc({matchPatterns:vde,defaultMatchWidth:"any",parsePatterns:yde,defaultParseWidth:"any"})},bde={code:"en-US",formatDistance:Vfe,formatLong:Yfe,formatRelative:Wfe,localize:rde,match:xde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wde(e,t){const n=ai(e,t==null?void 0:t.in);return Lfe(n,$fe(n))+1}function Sde(e,t){const n=ai(e,t==null?void 0:t.in),r=+gp(n)-+Ife(n);return Math.round(r/z6)+1}function I6(e,t){var m,p,y,b;const n=ai(e,t==null?void 0:t.in),r=n.getFullYear(),a=bg(),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??((b=(y=a.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??1,l=js((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=wf(l,t),f=js((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=wf(f,t);return+n>=+c?r+1:+n>=+h?r:r-1}function jde(e,t){var c,f,h,m;const n=bg(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,a=I6(e,t),o=js((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),wf(o,t)}function Ade(e,t){const n=ai(e,t==null?void 0:t.in),r=+wf(n,t)-+jde(n,t);return Math.round(r/z6)+1}function nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Za={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):nt(n+1,2)},d(e,t){return nt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return nt(e.getHours()%12||12,t.length)},H(e,t){return nt(e.getHours(),t.length)},m(e,t){return nt(e.getMinutes(),t.length)},s(e,t){return nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return nt(a,t.length)}},Nl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},i_={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 Za.y(e,t)},Y:function(e,t,n,r){const a=I6(e,r),o=a>0?a:1-a;if(t==="YY"){const l=o%100;return nt(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):nt(o,t.length)},R:function(e,t){const n=L6(e);return nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return nt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return nt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return nt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Za.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return nt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Ade(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):nt(a,t.length)},I:function(e,t,n){const r=Sde(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Za.d(e,t)},D:function(e,t,n){const r=wde(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return nt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(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 nt(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 nt(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=Nl.noon:r===0?a=Nl.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=Nl.evening:r>=12?a=Nl.afternoon:r>=4?a=Nl.morning:a=Nl.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 Za.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Za.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Za.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Za.s(e,t)},S:function(e,t){return Za.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return s_(r);case"XXXX":case"XX":return Zs(r);case"XXXXX":case"XXX":default:return Zs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return s_(r);case"xxxx":case"xx":return Zs(r);case"xxxxx":case"xxx":default:return Zs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+a_(r,":");case"OOOO":default:return"GMT"+Zs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+a_(r,":");case"zzzz":default:return"GMT"+Zs(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return nt(r,t.length)},T:function(e,t,n){return nt(+e,t.length)}};function a_(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+nt(o,2)}function s_(e,t){return e%60===0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):Zs(e,t)}function Zs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=nt(Math.trunc(r/60),2),o=nt(r%60,2);return n+a+t+o}const o_=(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"})}},B6=(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"})}},Ode=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return o_(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}}",o_(r,t)).replace("{{time}}",B6(a,t))},Ede={p:B6,P:Ode},Nde=/^D+$/,Tde=/^Y+$/,Cde=["D","DD","YY","YYYY"];function kde(e){return Nde.test(e)}function Mde(e){return Tde.test(e)}function Pde(e,t,n){const r=_de(e,t,n);if(console.warn(r),Cde.includes(e))throw new RangeError(r)}function _de(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 Dde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rde=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zde=/^'([^]*?)'?$/,Lde=/''/g,Ide=/[a-zA-Z]/;function l_(e,t,n){var m,p,y,b;const r=bg(),a=r.locale??bde,o=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,l=r.weekStartsOn??((b=(y=r.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,c=ai(e,n==null?void 0:n.in);if(!Ufe(c))throw new RangeError("Invalid time value");let f=t.match(Rde).map(S=>{const j=S[0];if(j==="p"||j==="P"){const A=Ede[j];return A(S,a.formatLong)}return S}).join("").match(Dde).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const j=S[0];if(j==="'")return{isToken:!1,value:Bde(S)};if(i_[j])return{isToken:!0,value:S};if(j.match(Ide))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return{isToken:!1,value:S}});a.localize.preprocessor&&(f=a.localize.preprocessor(c,f));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return f.map(S=>{if(!S.isToken)return S.value;const j=S.value;(Mde(j)||kde(j))&&Pde(j,t,String(e));const A=i_[j[0]];return A(c,j,a.localize,h)}).join("")}function Bde(e){const t=e.match(zde);return t?t[1].replace(Lde,"'"):e}function Ude(){var N;const e=ma(),[t,n]=w.useState(!1),[r,a]=w.useState({id:"",cron:"",queue:"default",className:"",payload:"{}"}),[o,l]=w.useState(null),[c,f]=w.useState(null),{addNotification:h}=ew(),{data:m}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(C=>C.json())}),{data:p,isLoading:y}=Nn({queryKey:["schedules"],queryFn:()=>fetch("/api/schedules").then(C=>C.json())}),b=Ly({mutationFn:C=>fetch(`/api/schedules/run/${C}`,{method:"POST"}),onSuccess:(C,k)=>{e.invalidateQueries({queryKey:["queues"]}),h({type:"success",title:"Schedule Triggered",message:`Job ${k} has been manually pushed to the queue.`}),l(null)},onError:C=>{h({type:"error",title:"Trigger Failed",message:C.message||"Failed to run schedule manually."}),l(null)}}),S=Ly({mutationFn:C=>fetch(`/api/schedules/${C}`,{method:"DELETE"}),onSuccess:(C,k)=>{e.invalidateQueries({queryKey:["schedules"]}),h({type:"info",title:"Schedule Deleted",message:`Schedule ${k} was removed.`}),f(null)}}),j=Ly({mutationFn:C=>fetch("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),onSuccess:()=>{e.invalidateQueries({queryKey:["schedules"]}),n(!1),a({id:"",cron:"",queue:"default",className:"",payload:"{}"}),h({type:"success",title:"Schedule Registered",message:"New recurring task is now active."})}}),A=(p==null?void 0:p.schedules)||[],O=(m==null?void 0:m.queues)||[],T=C=>{C.preventDefault();try{const k=JSON.parse(r.payload);j.mutate({id:r.id,cron:r.cron,queue:r.queue,job:{className:r.className,payload:k}})}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(_E,{size:18}),"New Schedule"]})]}),g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[g.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:g.jsx(Zn,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Active Schedules"}),g.jsx("p",{className:"text-2xl font-black",children:y?"...":A.length})]})]}),g.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[g.jsx("div",{className:"w-12 h-12 rounded-2xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:g.jsx(lb,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Total Executions"}),g.jsx("p",{className:"text-2xl font-black",children:"---"})]})]}),g.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[g.jsx("div",{className:"w-12 h-12 rounded-2xl bg-green-500/10 flex items-center justify-center text-green-500",children:g.jsx(H1,{size:24})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Health Score"}),g.jsx("p",{className:"text-2xl font-black text-green-500",children:"99.8%"})]})]})]}),g.jsxs("div",{className:"flex gap-4 items-center",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(uu,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:18}),g.jsx("input",{type:"text",placeholder:"Search schedules by name, cron or ID...",className:"w-full bg-muted/40 border-border/50 rounded-xl pl-12 pr-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all"})]}),g.jsx("button",{type:"button",className:"p-3 bg-muted/40 border border-border/50 rounded-xl hover:bg-muted/60 transition-all",children:g.jsx(K1,{size:18})})]}),y&&g.jsx("div",{className:"space-y-4",children:[1,2,3].map(C=>g.jsx("div",{className:"card-premium p-6 h-32 animate-pulse bg-muted/20"},C))}),A.length===0&&!y&&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(Jr,{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:A.map(C=>g.jsxs("div",{className:"card-premium p-6 group hover:border-primary/30 transition-all",children:[g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex gap-5",children:[g.jsx("div",{className:"w-14 h-14 rounded-2xl bg-muted flex items-center justify-center text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary transition-all",children:g.jsx(Jr,{size:28})}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("h3",{className:"text-lg font-bold",children:C.id}),g.jsx("span",{className:"px-2 py-0.5 bg-green-500/10 text-green-500 text-[10px] font-black uppercase tracking-widest rounded",children:"Enabled"})]}),g.jsxs("div",{className:"flex items-center gap-4 text-xs font-bold text-muted-foreground",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(Jr,{size:12})," ",C.cron]}),g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx(Nf,{size:12})," ",C.queue]}),g.jsx("span",{className:"px-2 py-0.5 bg-muted rounded font-mono text-[10px] uppercase font-black",children:C.job.className})]})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{type:"button",disabled:b.isPending,onClick:()=>l(C.id),className:"px-4 py-2 bg-muted hover:bg-primary hover:text-primary-foreground rounded-lg text-[10px] font-black uppercase tracking-widest transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50",children:b.isPending&&b.variables===C.id?g.jsxs(g.Fragment,{children:[g.jsx(ea,{size:12,className:"animate-spin"}),"Running..."]}):"Run Now"}),g.jsx("button",{type:"button",className:"p-2 hover:bg-muted rounded-lg transition-all text-muted-foreground",children:g.jsx(Zr,{size:18})}),g.jsx("button",{type:"button",onClick:()=>f(C.id),className:"p-2 hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all text-muted-foreground",children:g.jsx(jo,{size:18})})]})]}),g.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4 pt-6 border-t border-border/30",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-muted flex items-center justify-center text-muted-foreground/60",children:g.jsx(lb,{size:14})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Last Run"}),g.jsx("p",{className:"text-xs font-bold",children:C.lastRun?l_(new Date(C.lastRun),"HH:mm:ss MMM dd"):"Never"})]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:g.jsx(q_,{size:14})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Next Run"}),g.jsx("p",{className:"text-xs font-bold",children:C.nextRun?l_(new Date(C.nextRun),"HH:mm:ss MMM dd"):"Scheduled"})]})]})]})]},C.id))}),g.jsx(ga,{children:t&&g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[g.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>n(!1),className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),g.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-lg bg-card border border-border/50 rounded-3xl shadow-2xl overflow-hidden",children:[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(_E,{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(xp,{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:C=>a({...r,id:C.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:C=>a({...r,cron:C.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:C=>a({...r,queue:C.target.value}),children:O.map(C=>g.jsx("option",{value:C.name,children:C.name},C.name))}),g.jsx(pU,{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:C=>a({...r,className:C.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:C=>a({...r,payload:C.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:j.isPending,className:"flex-1 py-3 bg-primary text-primary-foreground rounded-xl text-xs font-black uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all disabled:opacity-50",children:j.isPending?"Registering...":"Register Schedule"})]})]})]})]})}),g.jsx(I1,{open:!!o,title:"Manual trigger confirmation",message:`Are you sure you want to run "${o}" immediately?
|
|
435
|
-
This will bypass the next scheduled time and push a job to the "${(N=A.find(C=>C.id===o))==null?void 0:N.queue}" queue.`,confirmText:"Run Now",variant:"info",isProcessing:b.isPending,onConfirm:()=>o&&b.mutate(o),onCancel:()=>l(null)}),g.jsx(I1,{open:!!c,title:"Delete Schedule",message:`Are you sure you want to delete "${c}"?
|
|
436
|
-
This action cannot be undone and recurring jobs for this schedule will stop.`,confirmText:"Delete",variant:"danger",isProcessing:S.isPending,onConfirm:()=>c&&S.mutate(c),onCancel:()=>f(null)})]})}function $de(){var f,h,m,p,y,b,S,j,A,O,T,N,C,k,D,M,_,B,K,$,Z,le,de,me,q,W,Y,oe,ne,R,F,ie,se,ye,Ee,fe,Xe,J,Ce,Pe,ae,Dt,Be,Rt,zt,mr,Oa,Ro,zo,Lo,rd,id;const e=ma(),[t,n]=Me.useState(!1),[r,a]=Me.useState(()=>{if(typeof window<"u"){const ue=localStorage.getItem("theme");if(ue==="light"||ue==="dark")return ue}return"system"}),{data:o}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(ue=>ue.json()),refetchInterval:3e4}),{data:l}=Nn({queryKey:["alerts-config"],queryFn:()=>fetch("/api/alerts/config").then(ue=>ue.json())}),c=ue=>{a(ue);const Ne=window.document.documentElement;ue==="system"?(window.matchMedia("(prefers-color-scheme: dark)").matches?Ne.classList.add("dark"):Ne.classList.remove("dark"),localStorage.removeItem("theme")):ue==="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",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:g.jsx(JU,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"Appearance"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Customize the look and feel"})]})]}),g.jsx("div",{className:"space-y-4",children:g.jsxs("div",{children:[g.jsx("label",{htmlFor:"theme-select",className:"text-sm font-bold mb-3 block",children:"Theme"}),g.jsx("div",{id:"theme-select",className:"flex gap-3",children:[{value:"light",icon:db,label:"Light"},{value:"dark",icon:fb,label:"Dark"},{value:"system",icon:PE,label:"System"}].map(({value:ue,icon:Ne,label:De})=>g.jsxs("button",{type:"button",onClick:()=>c(ue),className:ke("flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-xl border transition-all",r===ue?"bg-primary text-primary-foreground border-primary":"bg-muted/40 border-border/50 hover:border-primary/30"),children:[g.jsx(Ne,{size:18}),g.jsx("span",{className:"font-bold text-sm",children:De})]},ue))})]})})]}),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-indigo-500/10 flex items-center justify-center text-indigo-500",children:g.jsx(ub,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"Connection Status"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Redis and system connectivity"})]})]}),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.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(yp,{size:16,className:"text-muted-foreground"}),g.jsx("span",{className:"font-medium",children:"Redis Connection"})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),g.jsx("span",{className:"text-sm font-bold text-green-500",children:"Connected"})]})]}),g.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(ub,{size:16,className:"text-muted-foreground"}),g.jsx("span",{className:"font-medium",children:"Redis URL"})]}),g.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.redisUrl)||"redis://localhost:6379"})]}),g.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(Jr,{size:16,className:"text-muted-foreground"}),g.jsx("span",{className:"font-medium",children:"Service Uptime"})]}),g.jsx("span",{className:"text-sm font-mono font-bold",children:o!=null&&o.uptime?qde(o.uptime):"Loading..."})]}),g.jsxs("div",{className:"flex items-center justify-between py-3",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(ea,{size:16,className:"text-muted-foreground"}),g.jsx("span",{className:"font-medium",children:"Engine Version"})]}),g.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.engine)||"Loading..."})]})]})]}),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-green-500/10 flex items-center justify-center text-green-500",children:g.jsx(Ic,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"System Information"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Runtime and memory details"})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Node.js Version"}),g.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.node)||"..."})]}),g.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Environment"}),g.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.env)||"..."})]}),g.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Memory (RSS)"}),g.jsx("p",{className:"text-lg font-mono font-bold",children:((f=o==null?void 0:o.memory)==null?void 0:f.rss)||"..."})]}),g.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Heap Used"}),g.jsx("p",{className:"text-lg font-mono font-bold",children:((h=o==null?void 0:o.memory)==null?void 0:h.heapUsed)||"..."})]}),g.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total System RAM"}),g.jsx("p",{className:"text-lg font-mono font-bold",children:((m=o==null?void 0:o.memory)==null?void 0:m.total)||"..."})]})]})]}),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-orange-500/10 flex items-center justify-center text-orange-500",children:g.jsx(dm,{size:20})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-bold",children:"Alerting & Notifications"}),g.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"System health and failure monitoring"})]})]}),g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"space-y-4",children:[g.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60 mb-2",children:"Notification Channels"}),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-[#4A154B]/10 flex items-center justify-center text-[#4A154B] dark:text-[#E01E5A]",children:g.jsx(dm,{size:16})}),g.jsxs("div",{children:[g.jsx("h4",{className:"text-sm font-bold",children:"Slack"}),g.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard notification webhook"})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)!=null&&Kt.enabled),Ne=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...Ne,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(b=(y=(p=l==null?void 0:l.config)==null?void 0:p.channels)==null?void 0:y.slack)!=null&&b.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(A=(j=(S=l==null?void 0:l.config)==null?void 0:S.channels)==null?void 0:j.slack)!=null&&A.enabled?"Enabled":"Disabled"})]}),g.jsx("div",{className:"flex gap-3",children:g.jsx("input",{type:"password",placeholder:"https://hooks.slack.com/services/...",defaultValue:((N=(T=(O=l==null?void 0:l.config)==null?void 0:O.channels)==null?void 0:T.slack)==null?void 0:N.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ne=ue.target.value;Ne!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack,webhookUrl:Ne}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),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-[#5865F2]/10 flex items-center justify-center text-[#5865F2]",children:g.jsx(PE,{size:16})}),g.jsxs("div",{children:[g.jsx("h4",{className:"text-sm font-bold",children:"Discord"}),g.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Webhook integration for servers"})]})]}),g.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)!=null&&Kt.enabled),Ne=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...Ne,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(D=(k=(C=l==null?void 0:l.config)==null?void 0:C.channels)==null?void 0:k.discord)!=null&&D.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(B=(_=(M=l==null?void 0:l.config)==null?void 0:M.channels)==null?void 0:_.discord)!=null&&B.enabled?"Enabled":"Disabled"})]}),g.jsx("div",{className:"flex gap-3",children:g.jsx("input",{type:"password",placeholder:"https://discord.com/api/webhooks/...",defaultValue:((Z=($=(K=l==null?void 0:l.config)==null?void 0:K.channels)==null?void 0:$.discord)==null?void 0:Z.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ne=ue.target.value;Ne!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord,webhookUrl:Ne}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),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(Ic,{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 De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email)!=null&&Kt.enabled),Ne=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.email)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...Ne,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(me=(de=(le=l==null?void 0:l.config)==null?void 0:le.channels)==null?void 0:de.email)!=null&&me.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(Y=(W=(q=l==null?void 0:l.config)==null?void 0:q.channels)==null?void 0:W.email)!=null&&Y.enabled?"Enabled":"Disabled"})]}),((R=(ne=(oe=l==null?void 0:l.config)==null?void 0:oe.channels)==null?void 0:ne.email)==null?void 0:R.enabled)&&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:((se=(ie=(F=l==null?void 0:l.config)==null?void 0:F.channels)==null?void 0:ie.email)==null?void 0:se.to)||"",onBlur:async ue=>{var De,Ot;const Ne=ue.target.value;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email,to: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=(Ee=(ye=l==null?void 0:l.config)==null?void 0:ye.channels)==null?void 0:Ee.email)==null?void 0:fe.smtpHost)||"",onBlur:async ue=>{var Ne,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:De.email,smtpHost:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),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:((Ce=(J=(Xe=l==null?void 0:l.config)==null?void 0:Xe.channels)==null?void 0:J.email)==null?void 0:Ce.smtpPort)||465,onBlur:async ue=>{var Ne,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:De.email,smtpPort:parseInt(ue.target.value,10)}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),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:((Dt=(ae=(Pe=l==null?void 0:l.config)==null?void 0:Pe.channels)==null?void 0:ae.email)==null?void 0:Dt.smtpUser)||"",onBlur:async ue=>{var Ne,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:De.email,smtpUser:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),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:((zt=(Rt=(Be=l==null?void 0:l.config)==null?void 0:Be.channels)==null?void 0:Rt.email)==null?void 0:zt.smtpPass)||"",onBlur:async ue=>{var Ne,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:De.email,smtpPass:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),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:((Ro=(Oa=(mr=l==null?void 0:l.config)==null?void 0:mr.channels)==null?void 0:Oa.email)==null?void 0:Ro.from)||"",onBlur:async ue=>{var Ne,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ne=l==null?void 0:l.config)==null?void 0:Ne.channels)==null?void 0:De.email,from:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]})]})]})]}),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 ue=>{ue.preventDefault();const Ne=new FormData(ue.currentTarget),De={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(De)}),n(!1),e.invalidateQueries({queryKey:["alerts-config"]})},className:"p-4 bg-muted/40 rounded-xl border border-primary/20 space-y-4 mb-6",children:[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:(zo=l==null?void 0:l.rules)==null?void 0:zo.map(ue=>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:[ue.name,ue.queue&&g.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-primary/10 text-primary",children:ue.queue})]}),g.jsx("p",{className:"text-[10px] text-muted-foreground opacity-70",children:ue.type==="backlog"?`Waiting > ${ue.threshold}`:ue.type==="failure"?`Failed > ${ue.threshold}`:ue.type==="worker_lost"?`Workers < ${ue.threshold}`:ue.type==="node_cpu"?`CPU > ${ue.threshold}%`:`RAM > ${ue.threshold}%`})]}),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:[ue.cooldownMinutes,"m"]}),g.jsx("button",{type:"button",onClick:async()=>{confirm("Delete this alert rule?")&&(await fetch(`/api/alerts/rules/${ue.id}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"p-1 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-all",children:g.jsx(jo,{size:12})})]})]},ue.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(jo,{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 ue=!((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:ue})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("w-10 h-5 rounded-full p-1 transition-all flex items-center",(Lo=l==null?void 0:l.maintenance)!=null&&Lo.autoCleanup?"bg-green-500 justify-end":"bg-muted justify-start"),children: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:((rd=l==null?void 0:l.maintenance)==null?void 0:rd.retentionDays)||30,onChange:async ue=>{const Ne=parseInt(ue.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(Ic,{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."}),((id=l==null?void 0:l.maintenance)==null?void 0:id.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 ue=((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 ${ue} days?`)){const De=await fetch("/api/maintenance/cleanup-archive",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({days:ue})}).then(Ot=>Ot.json());alert(`Cleanup complete. Removed ${De.deleted||0} archived jobs.`)}},className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-lg text-xs font-black uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-red-500/20",children:"Prune Archive Now"})]})]}),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(V_,{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(kU,{size:14})]})]})]})]})]})}function qde(e){const t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60);return t>0?`${t}d ${n}h ${r}m`:n>0?`${n}h ${r}m`:`${r}m ${Math.floor(e%60)}s`}function Vde(){const e=ma(),{isPending:t,error:n,data:r}=Nn({queryKey:["workers"],queryFn:async()=>(await fetch("/api/workers")).json(),refetchInterval:5e3});w.useEffect(()=>{const p=y=>{var b;(b=y.detail)!=null&&b.workers&&e.setQueryData(["workers"],{workers:y.detail.workers})};return window.addEventListener("flux-stats-update",p),()=>window.removeEventListener("flux-stats-update",p)},[e]);const a=(r==null?void 0:r.workers)||[],o=a.filter(p=>p.status==="online"),l=a.filter(p=>p.status!=="online"),c=a.reduce((p,y)=>{var b;return p+(((b=y.metrics)==null?void 0:b.cpu)||0)},0),f=a.length>0?c/a.length:0,h=a.reduce((p,y)=>{var b,S;return p+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.rss)||0)},0),m=a.reduce((p,y)=>{var b,S;return p+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.total)||0)},0);return t?g.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[g.jsx(ea,{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(Zr,{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.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[g.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-green-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(yp,{size:16,className:"text-green-500"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Online Nodes"})]}),g.jsx("p",{className:"text-3xl font-black text-green-500",children:o.length})]})]}),g.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[g.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-muted/20 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(H_,{size:16,className:"text-muted-foreground"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Offline Nodes"})]}),g.jsx("p",{className:"text-3xl font-black text-muted-foreground",children:l.length})]})]}),g.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[g.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-primary/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(LU,{size:16,className:"text-primary"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Avg Load"})]}),g.jsx("p",{className:"text-3xl font-black",children:f.toFixed(2)})]})]}),g.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[g.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-indigo-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(WU,{size:16,className:"text-indigo-500"}),g.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Cluster RAM"})]}),g.jsxs("div",{className:"flex items-baseline gap-1",children:[g.jsx("p",{className:"text-3xl font-black text-indigo-500",children:(h/1024).toFixed(2)}),m>0&&g.jsxs("span",{className:"text-sm font-bold text-muted-foreground opacity-50",children:["/ ",(m/1024).toFixed(0)," 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-20 text-center text-muted-foreground/30",children:[g.jsx(Xc,{size:48,className:"mx-auto mb-4 opacity-20 animate-pulse"}),g.jsx("p",{className:"text-sm font-bold uppercase tracking-widest",children:"No worker nodes connected"}),g.jsx("p",{className:"text-xs opacity-60 mt-2",children:"Start a worker to see it appear here"})]}),a.map((p,y)=>{var b;return g.jsxs(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:y*.1},className:"card-premium p-6 relative overflow-hidden group",children:[g.jsx("div",{className:ke("absolute left-0 top-0 bottom-0 w-1.5 transition-all",p.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),g.jsxs("div",{className:"flex items-start justify-between mb-6",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:ke("w-12 h-12 rounded-2xl flex items-center justify-center transition-all",p.status==="online"?"bg-green-500/10 text-green-500":"bg-muted text-muted-foreground"),children:g.jsx(Xc,{size:24})}),g.jsx("div",{className:ke("absolute -bottom-1 -right-1 w-4 h-4 rounded-full border-2 border-card",p.status==="online"?"bg-green-500 animate-pulse":"bg-muted-foreground")})]}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-black tracking-tight text-lg group-hover:text-primary transition-colors",children:p.id}),g.jsxs("p",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-widest",children:["PID: ",p.pid]})]})]}),g.jsx("span",{className:ke("px-3 py-1 rounded-full text-[9px] font-black uppercase tracking-widest border",p.status==="online"?"bg-green-500/10 text-green-500 border-green-500/20":"bg-muted/40 text-muted-foreground border-transparent"),children:p.status})]}),p.metrics&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[g.jsxs("span",{className:"text-muted-foreground",children:["Load (Cap: ",p.metrics.cores||"-",")"]}),g.jsx("span",{className:ke(p.metrics.cpu>(p.metrics.cores||4)?"text-red-500":p.metrics.cpu>(p.metrics.cores||4)*.7?"text-amber-500":"text-green-500"),children:p.metrics.cpu.toFixed(2)})]}),g.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:g.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,p.metrics.cpu/(p.metrics.cores||1)*100)}%`},transition:{duration:.5},className:ke("h-full transition-colors",p.metrics.cpu>(p.metrics.cores||4)?"bg-red-500":p.metrics.cpu>(p.metrics.cores||4)*.7?"bg-amber-500":"bg-green-500")})})]}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[g.jsx("span",{className:"text-muted-foreground",children:"Memory (RSS / Total)"}),g.jsxs("span",{className:"text-indigo-500",children:[(p.metrics.ram.rss/1024).toFixed(2)," GB /"," ",p.metrics.ram.total?(p.metrics.ram.total/1024).toFixed(0):"-"," ","GB"]})]}),g.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:g.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,p.metrics.ram.rss/(p.metrics.ram.total||2048)*100)}%`},transition:{duration:.5},className:"h-full bg-indigo-500"})})]})]}),g.jsxs("div",{className:"mt-6 space-y-3",children:[p.queues&&p.queues.length>0&&g.jsxs("div",{className:"bg-muted/10 p-3 rounded-xl border border-border/50",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx("div",{className:"w-1.5 h-1.5 bg-orange-500 rounded-full"}),g.jsx("span",{className:"text-[9px] font-black uppercase tracking-widest text-muted-foreground",children:"Monitored Queues"})]}),g.jsx("div",{className:"flex flex-wrap gap-2",children:p.queues.map((S,j)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-bold text-foreground/80 bg-background/80 px-2 py-1 rounded-md shadow-sm border border-border/50",children:[g.jsx("span",{className:"opacity-70",children:S.name}),(S.size.waiting>0||S.size.failed>0)&&g.jsx("span",{className:ke("px-1 rounded bg-muted text-[9px]",S.size.failed>0?"text-red-500 bg-red-500/10":"text-amber-500 bg-amber-500/10"),children:S.size.failed>0?`${S.size.failed} failed`:`${S.size.waiting} wait`})]},j))})]}),((b=p.meta)==null?void 0:b.laravel)&&g.jsxs("div",{className:"flex items-center justify-between p-3 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"}),g.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-red-500/80",children:"Laravel Workers"})]}),g.jsx("span",{className:"font-mono text-sm font-black text-red-500",children:p.meta.laravel.workerCount||0})]})]}),g.jsxs("div",{className:"mt-4 pt-4 border-t border-border/30 flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(Jr,{size:14}),g.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest",children:"Uptime"})]}),g.jsx("span",{className:"font-mono text-sm font-bold",children:Fde(p.uptime)})]})]},p.id)})]})]})}function Fde(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 Hde=new C_;function Kde(){const{isAuthenticated:e,isAuthEnabled:t,isLoading:n}=Sp();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(ea,{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(LK,{}):g.jsx(Q$,{children:g.jsx(zK,{children:g.jsxs(v$,{children:[g.jsx(es,{path:"/",element:g.jsx(jfe,{})}),g.jsx(es,{path:"/queues",element:g.jsx(_fe,{})}),g.jsx(es,{path:"/schedules",element:g.jsx(Ude,{})}),g.jsx(es,{path:"/workers",element:g.jsx(Vde,{})}),g.jsx(es,{path:"/metrics",element:g.jsx(ffe,{})}),g.jsx(es,{path:"/pulse",element:g.jsx(Pfe,{})}),g.jsx(es,{path:"/settings",element:g.jsx($de,{})})]})})})}function Yde(){return g.jsx(M_,{client:Hde,children:g.jsx($$,{children:g.jsx(X$,{children:g.jsx(Kde,{})})})})}const Gde=new C_;Q8.createRoot(document.getElementById("root")).render(g.jsx(Me.StrictMode,{children:g.jsx(M_,{client:Gde,children:g.jsx(Yde,{})})}));
|