@gravito/zenith 0.1.0-beta.1 → 1.0.0-beta.1
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/ALERTING_GUIDE.md +71 -0
- package/QUASAR_MASTER_PLAN.md +137 -0
- package/dist/bin.js +38061 -26911
- package/dist/client/assets/index-BSTyMCFd.css +1 -0
- package/dist/client/assets/index-oXEse8ih.js +436 -0
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +38061 -26911
- package/package.json +52 -48
- package/specs/PULSE_SPEC.md +86 -0
- package/src/client/App.tsx +2 -0
- package/src/client/Layout.tsx +30 -11
- package/src/client/Sidebar.tsx +2 -1
- package/src/client/WorkerStatus.tsx +25 -21
- package/src/client/components/BrandIcons.tsx +63 -0
- package/src/client/components/PageHeader.tsx +34 -0
- package/src/client/pages/OverviewPage.tsx +18 -20
- package/src/client/pages/PulsePage.tsx +396 -0
- package/src/client/pages/QueuesPage.tsx +1 -3
- package/src/client/pages/SettingsPage.tsx +586 -78
- package/src/client/pages/WorkersPage.tsx +1 -1
- package/src/client/pages/index.ts +1 -0
- package/src/server/index.ts +148 -8
- package/src/server/services/AlertService.ts +189 -41
- package/src/server/services/CommandService.ts +137 -0
- package/src/server/services/PulseService.ts +80 -0
- package/src/server/services/QueueService.ts +58 -4
- package/src/shared/types.ts +97 -0
- package/tsconfig.json +2 -2
- package/PULSE_IMPLEMENTATION_PLAN.md +0 -111
- package/dist/client/assets/index-DGYEwTDL.css +0 -1
- package/dist/client/assets/index-oyTdySX0.js +0 -421
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
var XB=Object.defineProperty;var uE=e=>{throw TypeError(e)};var ZB=(e,t,n)=>t in e?XB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _y=(e,t,n)=>ZB(e,typeof t!="symbol"?t+"":t,n),Dy=(e,t,n)=>t.has(e)||uE("Cannot "+n);var L=(e,t,n)=>(Dy(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?uE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(Dy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(Dy(e,t,"access private method"),n);var jh=(e,t,n,r)=>({set _(a){ce(e,t,a,n)},get _(){return L(e,t,r)}});function JB(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 wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ry={exports:{}},xc={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var cE;function e8(){if(cE)return xc;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 xc.Fragment=t,xc.jsx=n,xc.jsxs=n,xc}var fE;function t8(){return fE||(fE=1,Ry.exports=e8()),Ry.exports}var p=t8(),uu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},n8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},as,I1,o_,r8=(o_=class{constructor(){Se(this,as,n8);Se(this,I1,!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,I1=new WeakMap,o_),Zs=new r8;function i8(e){setTimeout(e,0)}var wo=typeof window>"u"||"Deno"in globalThis;function Pn(){}function a8(e,t){return typeof e=="function"?e(t):e}function Yx(e){return typeof e=="number"&&e>=0&&e!==1/0}function y_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ps(e,t){return typeof e=="function"?e(t):e}function Mr(e,t){return typeof e=="function"?e(t):e}function dE(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==B1(l,t.options))return!1}else if(!Xc(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(!Xc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function B1(e,t){return((t==null?void 0:t.queryKeyHashFn)||So)(e)}function So(e){return JSON.stringify(e,(t,n)=>Gx(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Xc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xc(e[n],t[n])):!1}var s8=Object.prototype.hasOwnProperty;function x_(e,t){if(e===t)return e;const n=mE(e)&&mE(t);if(!n&&!(Gx(e)&&Gx(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let f=0;for(let h=0;h<l;h++){const m=n?h:o[h],g=e[m],y=t[m];if(g===y){c[m]=g,(n?h<a:s8.call(e,m))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){c[m]=y;continue}const b=x_(g,y);c[m]=b,b===g&&f++}return a===l&&f===a?e:c}function fm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function mE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gx(e){if(!pE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pE(e){return Object.prototype.toString.call(e)==="[object Object]"}function o8(e){return new Promise(t=>{Zs.setTimeout(t,e)})}function Wx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?x_(e,t):t}function l8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function u8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var U1=Symbol();function b_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===U1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $1(e,t){return typeof e=="function"?e(...t):!!e}function c8(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 ao,ss,Ul,l_,f8=(l_=class extends uu{constructor(){super();Se(this,ao);Se(this,ss);Se(this,Ul);ce(this,Ul,t=>{if(!wo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,ss)||this.setEventListener(L(this,Ul))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,ss))==null||t.call(this),ce(this,ss,void 0))}setEventListener(t){var n;ce(this,Ul,t),(n=L(this,ss))==null||n.call(this),ce(this,ss,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,ao)!==t&&(ce(this,ao,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,ao)=="boolean"?L(this,ao):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ao=new WeakMap,ss=new WeakMap,Ul=new WeakMap,l_),q1=new f8;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 d8=i8;function h8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=d8;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 Qt=h8(),$l,os,ql,u_,m8=(u_=class extends uu{constructor(){super();Se(this,$l,!0);Se(this,os);Se(this,ql);ce(this,ql,t=>{if(!wo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,os)||this.setEventListener(L(this,ql))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,os))==null||t.call(this),ce(this,os,void 0))}setEventListener(t){var n;ce(this,ql,t),(n=L(this,os))==null||n.call(this),ce(this,os,t(this.setOnline.bind(this)))}setOnline(t){L(this,$l)!==t&&(ce(this,$l,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,$l)}},$l=new WeakMap,os=new WeakMap,ql=new WeakMap,u_),dm=new m8;function p8(e){return Math.min(1e3*2**e,3e4)}function w_(e){return(e??"online")==="online"?dm.isOnline():!0}var Xx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function S_(e){let t=!1,n=0,r;const a=Qx(),o=()=>a.status!=="pending",l=j=>{var A;if(!o()){const O=new Xx(j);y(O),(A=e.onCancel)==null||A.call(e,O)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>q1.isFocused()&&(e.networkMode==="always"||dm.isOnline())&&e.canRun(),m=()=>w_(e.networkMode)&&e.canRun(),g=j=>{o()||(r==null||r(),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(g).catch(O=>{var _;if(o())return;const T=e.retry??(wo?0:3),N=e.retryDelay??p8,C=typeof N=="function"?N(n,O):N,M=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,O);if(t||!M){y(O);return}n++,(_=e.onFail)==null||_.call(e,n,O),o8(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 so,c_,j_=(c_=class{constructor(){Se(this,so)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yx(this.gcTime)&&ce(this,so,Zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wo?1/0:300*1e3))}clearGcTimeout(){L(this,so)&&(Zs.clearTimeout(L(this,so)),ce(this,so,void 0))}},so=new WeakMap,c_),oo,Vl,kr,lo,sn,Af,uo,Yr,Vi,f_,g8=(f_=class extends j_{constructor(t){super();Se(this,Yr);Se(this,oo);Se(this,Vl);Se(this,kr);Se(this,lo);Se(this,sn);Se(this,Af);Se(this,uo);ce(this,uo,!1),ce(this,Af,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,lo,t.client),ce(this,kr,L(this,lo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,oo,vE(this.options)),this.state=t.state??L(this,oo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,sn))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,Af),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=vE(this.options);n.data!==void 0&&(this.setState(gE(n.data,n.dataUpdatedAt)),ce(this,oo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,kr).remove(this)}setData(t,n){const r=Wx(this.state.data,t,this.options);return Le(this,Yr,Vi).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,Vi).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,oo))}isActive(){return this.observers.some(t=>Mr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===U1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ps(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!y_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,sn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,kr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,sn)&&(L(this,uo)?L(this,sn).cancel({revert:!0}):L(this,sn).cancelRetry()),this.scheduleGc()),L(this,kr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Yr,Vi).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,g,y,b,S,j,A,O,T,N;if(this.state.fetchStatus!=="idle"&&((f=L(this,sn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,sn))return L(this,sn).continueRetry(),L(this,sn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(M=>M.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,a=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(ce(this,uo,!0),r.signal)})},o=()=>{const C=b_(this.options,n),_=(()=>{const k={client:L(this,lo),queryKey:this.queryKey,meta:this.meta};return a(k),k})();return ce(this,uo,!1),this.options.persister?this.options.persister(C,_,this):C(_)},c=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:L(this,lo),state:this.state,fetchFn:o};return a(C),C})();(h=this.options.behavior)==null||h.onFetch(c,this),ce(this,Vl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Le(this,Yr,Vi).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),ce(this,sn,S_({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:C=>{C instanceof Xx&&C.revert&&this.setState({...L(this,Vl),fetchStatus:"idle"}),r.abort()},onFail:(C,M)=>{Le(this,Yr,Vi).call(this,{type:"failed",failureCount:C,error:M})},onPause:()=>{Le(this,Yr,Vi).call(this,{type:"pause"})},onContinue:()=>{Le(this,Yr,Vi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const C=await L(this,sn).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(b=(y=L(this,kr).config).onSuccess)==null||b.call(y,C,this),(j=(S=L(this,kr).config).onSettled)==null||j.call(S,C,this.state.error,this),C}catch(C){if(C instanceof Xx){if(C.silent)return L(this,sn).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Le(this,Yr,Vi).call(this,{type:"error",error:C}),(O=(A=L(this,kr).config).onError)==null||O.call(A,C,this),(N=(T=L(this,kr).config).onSettled)==null||N.call(T,this.state.data,C,this),C}finally{this.scheduleGc()}}},oo=new WeakMap,Vl=new WeakMap,kr=new WeakMap,lo=new WeakMap,sn=new WeakMap,Af=new WeakMap,uo=new WeakMap,Yr=new WeakSet,Vi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...A_(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...gE(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Vl,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),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,kr).notify({query:this,type:"updated",action:t})})},f_);function A_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Yn,Fe,Of,kn,co,Hl,Fi,ls,Ef,Fl,Kl,fo,ho,us,Yl,Je,zc,Zx,Jx,eb,tb,nb,rb,ib,O_,d_,v8=(d_=class extends uu{constructor(t,n){super();Se(this,Je);Se(this,Yn);Se(this,Fe);Se(this,Of);Se(this,kn);Se(this,co);Se(this,Hl);Se(this,Fi);Se(this,ls);Se(this,Ef);Se(this,Fl);Se(this,Kl);Se(this,fo);Se(this,ho);Se(this,us);Se(this,Yl,new Set);this.options=n,ce(this,Yn,t),ce(this,ls,null),ce(this,Fi,Qx()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,Fe).addObserver(this),yE(L(this,Fe),this.options)?Le(this,Je,zc).call(this):this.updateResult(),Le(this,Je,tb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ab(L(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ab(L(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Je,nb).call(this),Le(this,Je,rb).call(this),L(this,Fe).removeObserver(this)}setOptions(t){const n=this.options,r=L(this,Fe);if(this.options=L(this,Yn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mr(this.options.enabled,L(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Le(this,Je,ib).call(this),L(this,Fe).setOptions(this.options),n._defaulted&&!fm(this.options,n)&&L(this,Yn).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,Fe),observer:this});const a=this.hasListeners();a&&xE(L(this,Fe),r,this.options,n)&&Le(this,Je,zc).call(this),this.updateResult(),a&&(L(this,Fe)!==r||Mr(this.options.enabled,L(this,Fe))!==Mr(n.enabled,L(this,Fe))||ps(this.options.staleTime,L(this,Fe))!==ps(n.staleTime,L(this,Fe)))&&Le(this,Je,Zx).call(this);const o=Le(this,Je,Jx).call(this);a&&(L(this,Fe)!==r||Mr(this.options.enabled,L(this,Fe))!==Mr(n.enabled,L(this,Fe))||o!==L(this,us))&&Le(this,Je,eb).call(this,o)}getOptimisticResult(t){const n=L(this,Yn).getQueryCache().build(L(this,Yn),t),r=this.createResult(n,t);return x8(this,r)&&(ce(this,kn,r),ce(this,Hl,this.options),ce(this,co,L(this,Fe).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,Fi).status==="pending"&&L(this,Fi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){L(this,Yl).add(t)}getCurrentQuery(){return L(this,Fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=L(this,Yn).defaultQueryOptions(t),r=L(this,Yn).getQueryCache().build(L(this,Yn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,Je,zc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,kn)))}createResult(t,n){var B;const r=L(this,Fe),a=this.options,o=L(this,kn),l=L(this,co),c=L(this,Hl),h=t!==r?t.state:L(this,Of),{state:m}=t;let g={...m},y=!1,b;if(n._optimisticResults){const K=this.hasListeners(),$=!K&&yE(t,n),Z=K&&xE(t,r,n,a);($||Z)&&(g={...g,...A_(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:j,status:A}=g;b=g.data;let O=!1;if(n.placeholderData!==void 0&&b===void 0&&A==="pending"){let K;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(K=o.data,O=!0):K=typeof n.placeholderData=="function"?n.placeholderData((B=L(this,Kl))==null?void 0:B.state.data,L(this,Kl)):n.placeholderData,K!==void 0&&(A="success",b=Wx(o==null?void 0:o.data,K,n),y=!0)}if(n.select&&b!==void 0&&!O)if(o&&b===(l==null?void 0:l.data)&&n.select===L(this,Ef))b=L(this,Fl);else try{ce(this,Ef,n.select),b=n.select(b),b=Wx(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=g.fetchStatus==="fetching",N=A==="pending",C=A==="error",M=N&&T,_=b!==void 0,D={status:A,fetchStatus:g.fetchStatus,isPending:N,isSuccess:A==="success",isError:C,isInitialLoading:M,isLoading:M,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:j,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!N,isLoadingError:C&&!_,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&_,isStale:V1(t,n),refetch:this.refetch,promise:L(this,Fi),isEnabled:Mr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=le=>{D.status==="error"?le.reject(D.error):D.data!==void 0&&le.resolve(D.data)},$=()=>{const le=ce(this,Fi,D.promise=Qx());K(le)},Z=L(this,Fi);switch(Z.status){case"pending":t.queryHash===r.queryHash&&K(Z);break;case"fulfilled":(D.status==="error"||D.data!==Z.value)&&$();break;case"rejected":(D.status!=="error"||D.error!==Z.reason)&&$();break}}return D}updateResult(){const t=L(this,kn),n=this.createResult(L(this,Fe),this.options);if(ce(this,co,L(this,Fe).state),ce(this,Hl,this.options),L(this,co).data!==void 0&&ce(this,Kl,L(this,Fe)),fm(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,Yl).size)return!0;const l=new Set(o??L(this,Yl));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,kn)).some(c=>{const f=c;return L(this,kn)[f]!==t[f]&&l.has(f)})};Le(this,Je,O_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Je,tb).call(this)}},Yn=new WeakMap,Fe=new WeakMap,Of=new WeakMap,kn=new WeakMap,co=new WeakMap,Hl=new WeakMap,Fi=new WeakMap,ls=new WeakMap,Ef=new WeakMap,Fl=new WeakMap,Kl=new WeakMap,fo=new WeakMap,ho=new WeakMap,us=new WeakMap,Yl=new WeakMap,Je=new WeakSet,zc=function(t){Le(this,Je,ib).call(this);let n=L(this,Fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pn)),n},Zx=function(){Le(this,Je,nb).call(this);const t=ps(this.options.staleTime,L(this,Fe));if(wo||L(this,kn).isStale||!Yx(t))return;const r=y_(L(this,kn).dataUpdatedAt,t)+1;ce(this,fo,Zs.setTimeout(()=>{L(this,kn).isStale||this.updateResult()},r))},Jx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,Fe)):this.options.refetchInterval)??!1},eb=function(t){Le(this,Je,rb).call(this),ce(this,us,t),!(wo||Mr(this.options.enabled,L(this,Fe))===!1||!Yx(L(this,us))||L(this,us)===0)&&ce(this,ho,Zs.setInterval(()=>{(this.options.refetchIntervalInBackground||q1.isFocused())&&Le(this,Je,zc).call(this)},L(this,us)))},tb=function(){Le(this,Je,Zx).call(this),Le(this,Je,eb).call(this,Le(this,Je,Jx).call(this))},nb=function(){L(this,fo)&&(Zs.clearTimeout(L(this,fo)),ce(this,fo,void 0))},rb=function(){L(this,ho)&&(Zs.clearInterval(L(this,ho)),ce(this,ho,void 0))},ib=function(){const t=L(this,Yn).getQueryCache().build(L(this,Yn),this.options);if(t===L(this,Fe))return;const n=L(this,Fe);ce(this,Fe,t),ce(this,Of,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},O_=function(t){Qt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(L(this,kn))}),L(this,Yn).getQueryCache().notify({query:L(this,Fe),type:"observerResultsUpdated"})})},d_);function y8(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 y8(e,t)||e.state.data!==void 0&&ab(e,t,t.refetchOnMount)}function ab(e,t,n){if(Mr(t.enabled,e)!==!1&&ps(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&V1(e,t)}return!1}function xE(e,t,n,r){return(e!==t||Mr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&V1(e,n)}function V1(e,t){return Mr(t.enabled,e)!==!1&&e.isStaleByTime(ps(t.staleTime,e))}function x8(e,t){return!fm(e.getCurrentResult(),t)}function bE(e){return{onFetch:(t,n)=>{var m,g,y,b,S;const r=t.options,a=(y=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let j=!1;const A=N=>{c8(N,()=>t.signal,()=>j=!0)},O=b_(t.options,t.fetchOptions),T=async(N,C,M)=>{if(j)return Promise.reject();if(C==null&&N.pages.length)return Promise.resolve(N);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:M?"backward":"forward",meta:t.options.meta};return A($),$})(),D=await O(k),{maxPages:B}=t.options,K=M?u8:l8;return{pages:K(N.pages,D,B),pageParams:K(N.pageParams,C,B)}};if(a&&o.length){const N=a==="backward",C=N?b8:wE,M={pages:o,pageParams:l},_=C(r,M);c=await T(M,_,N)}else{const N=e??o.length;do{const C=f===0?l[0]??r.initialPageParam:wE(r,c);if(f>0&&C==null)break;c=await T(c,C),f++}while(f<N)}return c};t.options.persister?t.fetchFn=()=>{var j,A;return(A=(j=t.options).persister)==null?void 0:A.call(j,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function wE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function b8(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 Nf,di,Mn,mo,hi,Ja,h_,w8=(h_=class extends j_{constructor(t){super();Se(this,hi);Se(this,Nf);Se(this,di);Se(this,Mn);Se(this,mo);ce(this,Nf,t.client),this.mutationId=t.mutationId,ce(this,Mn,t.mutationCache),ce(this,di,[]),this.state=t.state||E_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,di).includes(t)||(L(this,di).push(t),this.clearGcTimeout(),L(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,di,L(this,di).filter(n=>n!==t)),this.scheduleGc(),L(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,di).length||(this.state.status==="pending"?this.scheduleGc():L(this,Mn).remove(this))}continue(){var t;return((t=L(this,mo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,f,h,m,g,y,b,S,j,A,O,T,N,C,M,_,k,D,B;const n=()=>{Le(this,hi,Ja).call(this,{type:"continue"})},r={client:L(this,Nf),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,mo,S_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(K,$)=>{Le(this,hi,Ja).call(this,{type:"failed",failureCount:K,error:$})},onPause:()=>{Le(this,hi,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,mo).canStart();try{if(a)n();else{Le(this,hi,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,hi,Ja).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const K=await L(this,mo).start();return await((g=(m=L(this,Mn).config).onSuccess)==null?void 0:g.call(m,K,t,this.state.context,this,r)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,K,t,this.state.context,r)),await((j=(S=L(this,Mn).config).onSettled)==null?void 0:j.call(S,K,null,this.state.variables,this.state.context,this,r)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,K,null,t,this.state.context,r)),Le(this,hi,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((M=(C=this.options).onError)==null?void 0:M.call(C,K,t,this.state.context,r))}catch($){Promise.reject($)}try{await((k=(_=L(this,Mn).config).onSettled)==null?void 0:k.call(_,void 0,K,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((B=(D=this.options).onSettled)==null?void 0:B.call(D,void 0,K,t,this.state.context,r))}catch($){Promise.reject($)}throw Le(this,hi,Ja).call(this,{type:"error",error:K}),K}finally{L(this,Mn).runNext(this)}}},Nf=new WeakMap,di=new WeakMap,Mn=new WeakMap,mo=new WeakMap,hi=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),Qt.batch(()=>{L(this,di).forEach(r=>{r.onMutationUpdate(t)}),L(this,Mn).notify({mutation:this,type:"updated",action:t})})},h_);function E_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ki,Gr,Tf,m_,S8=(m_=class extends uu{constructor(t={}){super();Se(this,Ki);Se(this,Gr);Se(this,Tf);this.config=t,ce(this,Ki,new Set),ce(this,Gr,new Map),ce(this,Tf,0)}build(t,n,r){const a=new w8({client:t,mutationCache:this,mutationId:++jh(this,Tf)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){L(this,Ki).add(t);const n=Ah(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,Ki).delete(t)){const n=Ah(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=Ah(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=Ah(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(){Qt.batch(()=>{L(this,Ki).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Ki).clear(),L(this,Gr).clear()})}getAll(){return Array.from(L(this,Ki))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hE(n,r))}findAll(t={}){return this.getAll().filter(n=>hE(t,n))}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pn))))}},Ki=new WeakMap,Gr=new WeakMap,Tf=new WeakMap,m_);function Ah(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Yi,cs,Gn,Gi,ra,Qh,sb,p_,j8=(p_=class extends uu{constructor(n,r){super();Se(this,ra);Se(this,Yi);Se(this,cs);Se(this,Gn);Se(this,Gi);ce(this,Yi,n),this.setOptions(r),this.bindMethods(),Le(this,ra,Qh).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,Yi).defaultMutationOptions(n),fm(this.options,r)||L(this,Yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Gn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&So(r.mutationKey)!==So(this.options.mutationKey)?this.reset():((a=L(this,Gn))==null?void 0:a.state.status)==="pending"&&L(this,Gn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=L(this,Gn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,ra,Qh).call(this),Le(this,ra,sb).call(this,n)}getCurrentResult(){return L(this,cs)}reset(){var n;(n=L(this,Gn))==null||n.removeObserver(this),ce(this,Gn,void 0),Le(this,ra,Qh).call(this),Le(this,ra,sb).call(this)}mutate(n,r){var a;return ce(this,Gi,r),(a=L(this,Gn))==null||a.removeObserver(this),ce(this,Gn,L(this,Yi).getMutationCache().build(L(this,Yi),this.options)),L(this,Gn).addObserver(this),L(this,Gn).execute(n)}},Yi=new WeakMap,cs=new WeakMap,Gn=new WeakMap,Gi=new WeakMap,ra=new WeakSet,Qh=function(){var r;const n=((r=L(this,Gn))==null?void 0:r.state)??E_();ce(this,cs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sb=function(n){Qt.batch(()=>{var r,a,o,l,c,f,h,m;if(L(this,Gi)&&this.hasListeners()){const g=L(this,cs).variables,y=L(this,cs).context,b={client:L(this,Yi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=L(this,Gi)).onSuccess)==null||a.call(r,n.data,g,y,b)}catch(S){Promise.reject(S)}try{(l=(o=L(this,Gi)).onSettled)==null||l.call(o,n.data,null,g,y,b)}catch(S){Promise.reject(S)}}else if((n==null?void 0:n.type)==="error"){try{(f=(c=L(this,Gi)).onError)==null||f.call(c,n.error,g,y,b)}catch(S){Promise.reject(S)}try{(m=(h=L(this,Gi)).onSettled)==null||m.call(h,void 0,n.error,g,y,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(g=>{g(L(this,cs))})})},p_),mi,g_,A8=(g_=class extends uu{constructor(t={}){super();Se(this,mi);this.config=t,ce(this,mi,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??B1(a,n);let l=this.get(o);return l||(l=new g8({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){L(this,mi).has(t.queryHash)||(L(this,mi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,mi).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,mi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,mi).get(t)}getAll(){return[...L(this,mi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dE(t,r)):n}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mi=new WeakMap,g_),Tt,fs,ds,Gl,Wl,hs,Ql,Xl,v_,N_=(v_=class{constructor(e={}){Se(this,Tt);Se(this,fs);Se(this,ds);Se(this,Gl);Se(this,Wl);Se(this,hs);Se(this,Ql);Se(this,Xl);ce(this,Tt,e.queryCache||new A8),ce(this,fs,e.mutationCache||new S8),ce(this,ds,e.defaultOptions||{}),ce(this,Gl,new Map),ce(this,Wl,new Map),ce(this,hs,0)}mount(){jh(this,hs)._++,L(this,hs)===1&&(ce(this,Ql,q1.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onFocus())})),ce(this,Xl,dm.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onOnline())})))}unmount(){var e,t;jh(this,hs)._--,L(this,hs)===0&&((e=L(this,Ql))==null||e.call(this),ce(this,Ql,void 0),(t=L(this,Xl))==null||t.call(this),ce(this,Xl,void 0))}isFetching(e){return L(this,Tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,fs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=L(this,Tt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ps(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return L(this,Tt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=L(this,Tt).get(r.queryHash),o=a==null?void 0:a.state.data,l=a8(t,o);if(l!==void 0)return L(this,Tt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>L(this,Tt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Tt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,Tt);Qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,Tt);return Qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qt.batch(()=>L(this,Tt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pn).catch(Pn)}invalidateQueries(e,t={}){return Qt.batch(()=>(L(this,Tt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>L(this,Tt).findAll(e).filter(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(ps(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=bE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=bE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dm.isOnline()?L(this,fs).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Tt)}getMutationCache(){return L(this,fs)}getDefaultOptions(){return L(this,ds)}setDefaultOptions(e){ce(this,ds,e)}setQueryDefaults(e,t){L(this,Gl).set(So(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,Gl).values()],n={};return t.forEach(r=>{Xc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,Wl).set(So(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,Wl).values()],n={};return t.forEach(r=>{Xc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,ds).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=B1(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===U1&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,ds).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Tt).clear(),L(this,fs).clear()}},Tt=new WeakMap,fs=new WeakMap,ds=new WeakMap,Gl=new WeakMap,Wl=new WeakMap,hs=new WeakMap,Ql=new WeakMap,Xl=new WeakMap,v_),zy={exports:{}},_e={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var SE;function O8(){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"),g=Symbol.for("react.activity"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function O(R,H,ie){this.props=R,this.context=H,this.refs=A,this.updater=ie||S}O.prototype.isReactComponent={},O.prototype.setState=function(R,H){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,H,"setState")},O.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function T(){}T.prototype=O.prototype;function N(R,H,ie){this.props=R,this.context=H,this.refs=A,this.updater=ie||S}var C=N.prototype=new T;C.constructor=N,j(C,O.prototype),C.isPureReactComponent=!0;var M=Array.isArray;function _(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function B(R,H,ie){var se=ie.ref;return{$$typeof:e,type:R,key:H,ref:se!==void 0?se:null,props:ie}}function K(R,H){return B(R.type,H,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var H={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ie){return H[ie]})}var le=/\/+/g;function de(R,H){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):H.toString(36)}function me(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(_,_):(R.status="pending",R.then(function(H){R.status==="pending"&&(R.status="fulfilled",R.value=H)},function(H){R.status==="pending"&&(R.status="rejected",R.reason=H)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,H,ie,se,ve){var Oe=typeof R;(Oe==="undefined"||Oe==="boolean")&&(R=null);var fe=!1;if(R===null)fe=!0;else switch(Oe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(R.$$typeof){case e:case t:fe=!0;break;case m:return fe=R._init,q(fe(R._payload),H,ie,se,ve)}}if(fe)return ve=ve(R),fe=se===""?"."+de(R,0):se,M(ve)?(ie="",fe!=null&&(ie=fe.replace(le,"$&/")+"/"),q(ve,H,ie,"",function(Te){return Te})):ve!=null&&($(ve)&&(ve=K(ve,ie+(ve.key==null||R&&R.key===ve.key?"":(""+ve.key).replace(le,"$&/")+"/")+fe)),H.push(ve)),1;fe=0;var Qe=se===""?".":se+":";if(M(R))for(var J=0;J<R.length;J++)se=R[J],Oe=Qe+de(se,J),fe+=q(se,H,ie,Oe,ve);else if(J=b(R),typeof J=="function")for(R=J.call(R),J=0;!(se=R.next()).done;)se=se.value,Oe=Qe+de(se,J++),fe+=q(se,H,ie,Oe,ve);else if(Oe==="object"){if(typeof R.then=="function")return q(me(R),H,ie,se,ve);throw H=String(R),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(R,H,ie){if(R==null)return R;var se=[],ve=0;return q(R,se,"","",function(Oe){return H.call(ie,Oe,ve++)}),se}function Y(R){if(R._status===-1){var H=R._result;H=H(),H.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=H)}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 H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},ne={map:W,forEach:function(R,H,ie){W(R,function(){H.apply(this,arguments)},ie)},count:function(R){var H=0;return W(R,function(){H++}),H},toArray:function(R){return W(R,function(H){return H})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return _e.Activity=g,_e.Children=ne,_e.Component=O,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=N,_e.StrictMode=r,_e.Suspense=f,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_e.__COMPILER_RUNTIME={__proto__:null,c:function(R){return k.H.useMemoCache(R)}},_e.cache=function(R){return function(){return R.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(R,H,ie){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var se=j({},R.props),ve=R.key;if(H!=null)for(Oe in H.key!==void 0&&(ve=""+H.key),H)!D.call(H,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&H.ref===void 0||(se[Oe]=H[Oe]);var Oe=arguments.length-2;if(Oe===1)se.children=ie;else if(1<Oe){for(var fe=Array(Oe),Qe=0;Qe<Oe;Qe++)fe[Qe]=arguments[Qe+2];se.children=fe}return B(R.type,ve,se)},_e.createContext=function(R){return R={$$typeof:l,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},_e.createElement=function(R,H,ie){var se,ve={},Oe=null;if(H!=null)for(se in H.key!==void 0&&(Oe=""+H.key),H)D.call(H,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ve[se]=H[se]);var fe=arguments.length-2;if(fe===1)ve.children=ie;else if(1<fe){for(var Qe=Array(fe),J=0;J<fe;J++)Qe[J]=arguments[J+2];ve.children=Qe}if(R&&R.defaultProps)for(se in fe=R.defaultProps,fe)ve[se]===void 0&&(ve[se]=fe[se]);return B(R,Oe,ve)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(R){return{$$typeof:c,render:R}},_e.isValidElement=$,_e.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:Y}},_e.memo=function(R,H){return{$$typeof:h,type:R,compare:H===void 0?null:H}},_e.startTransition=function(R){var H=k.T,ie={};k.T=ie;try{var se=R(),ve=k.S;ve!==null&&ve(ie,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(_,oe)}catch(Oe){oe(Oe)}finally{H!==null&&ie.types!==null&&(H.types=ie.types),k.T=H}},_e.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},_e.use=function(R){return k.H.use(R)},_e.useActionState=function(R,H,ie){return k.H.useActionState(R,H,ie)},_e.useCallback=function(R,H){return k.H.useCallback(R,H)},_e.useContext=function(R){return k.H.useContext(R)},_e.useDebugValue=function(){},_e.useDeferredValue=function(R,H){return k.H.useDeferredValue(R,H)},_e.useEffect=function(R,H){return k.H.useEffect(R,H)},_e.useEffectEvent=function(R){return k.H.useEffectEvent(R)},_e.useId=function(){return k.H.useId()},_e.useImperativeHandle=function(R,H,ie){return k.H.useImperativeHandle(R,H,ie)},_e.useInsertionEffect=function(R,H){return k.H.useInsertionEffect(R,H)},_e.useLayoutEffect=function(R,H){return k.H.useLayoutEffect(R,H)},_e.useMemo=function(R,H){return k.H.useMemo(R,H)},_e.useOptimistic=function(R,H){return k.H.useOptimistic(R,H)},_e.useReducer=function(R,H,ie){return k.H.useReducer(R,H,ie)},_e.useRef=function(R){return k.H.useRef(R)},_e.useState=function(R){return k.H.useState(R)},_e.useSyncExternalStore=function(R,H,ie){return k.H.useSyncExternalStore(R,H,ie)},_e.useTransition=function(){return k.H.useTransition()},_e.version="19.2.3",_e}var jE;function cu(){return jE||(jE=1,zy.exports=O8()),zy.exports}var w=cu();const Me=wi(w),E8=JB({__proto__:null,default:Me},[w]);var T_=w.createContext(void 0),ma=e=>{const t=w.useContext(T_);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},C_=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(T_.Provider,{value:e,children:t})),k_=w.createContext(!1),N8=()=>w.useContext(k_);k_.Provider;function T8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var C8=w.createContext(T8()),k8=()=>w.useContext(C8),M8=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?$1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},P8=e=>{w.useEffect(()=>{e.clearReset()},[e])},_8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||$1(n,[e.error,r])),D8=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))}},R8=(e,t)=>e.isLoading&&e.isFetching&&!t,z8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,AE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function L8(e,t,n){var y,b,S,j;const r=N8(),a=k8(),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",D8(l),M8(l,a,c),P8(a);const f=!o.getQueryCache().get(l.queryHash),[h]=w.useState(()=>new t(o,l)),m=h.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(A=>{const O=g?h.subscribe(Qt.batchCalls(A)):Pn;return h.updateResult(),O},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(l)},[l,h]),z8(l,m))throw AE(l,h,a);if(_8({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&&R8(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 L8(e,v8)}function Ly(e,t){const n=ma(),[r]=w.useState(()=>new j8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Qt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Pn)},[r]);if(a.error&&$1(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Iy={exports:{}},bc={},By={exports:{}},Uy={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var OE;function I8(){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 H=2*(oe+1)-1,ie=q[H],se=H+1,ve=q[se];if(0>a(ie,Y))se<ne&&0>a(ve,ie)?(q[oe]=ve,q[se]=Y,oe=se):(q[oe]=ie,q[H]=Y,oe=H);else if(se<ne&&0>a(ve,Y))q[oe]=ve,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,g=null,y=3,b=!1,S=!1,j=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=q)r(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=n(h)}}function M(q){if(j=!1,C(q),!S)if(n(f)!==null)S=!0,_||(_=!0,Z());else{var W=n(h);W!==null&&me(M,W.startTime-q)}}var _=!1,k=-1,D=5,B=-1;function K(){return A?!0:!(e.unstable_now()-B<D)}function $(){if(A=!1,_){var q=e.unstable_now();B=q;var W=!0;try{e:{S=!1,j&&(j=!1,T(k),k=-1),b=!0;var Y=y;try{t:{for(C(q),g=n(f);g!==null&&!(g.expirationTime>q&&K());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,y=g.priorityLevel;var ne=oe(g.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){g.callback=ne,C(q),W=!0;break t}g===n(f)&&r(f),C(q)}else r(f);g=n(f)}if(g!==null)W=!0;else{var R=n(h);R!==null&&me(M,R.startTime-q),W=!1}}break e}finally{g=null,y=Y,b=!1}W=void 0}}finally{W?Z():_=!1}}}var Z;if(typeof N=="function")Z=function(){N($)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,de=le.port2;le.port1.onmessage=$,Z=function(){de.postMessage(null)}}else Z=function(){O($,0)};function me(q,W){k=O(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(q){switch(y){case 1:case 2:case 3:var W=3;break;default:W=y}var Y=y;y=W;try{return q()}finally{y=Y}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Y=y;y=q;try{return W()}finally{y=Y}},e.unstable_scheduleCallback=function(q,W,Y){var oe=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?oe+Y:oe):Y=oe,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Y+ne,q={id:m++,callback:W,priorityLevel:q,startTime:Y,expirationTime:ne,sortIndex:-1},Y>oe?(q.sortIndex=Y,t(h,q),n(f)===null&&q===n(h)&&(j?(T(k),k=-1):j=!0,me(M,Y-oe))):(q.sortIndex=ne,t(f,q),S||b||(S=!0,_||(_=!0,Z()))),q},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(q){var W=y;return function(){var Y=y;y=W;try{return q.apply(this,arguments)}finally{y=Y}}}})(Uy)),Uy}var EE;function B8(){return EE||(EE=1,By.exports=I8()),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 U8(){if(NE)return An;NE=1;var e=cu();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,h,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,An.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},An.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},An.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},An.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},An.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,g=c(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},An.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},An.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,g=c(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},An.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},An.requestFormReset=function(f){r.d.r(f)},An.unstable_batchedUpdates=function(f,h){return f(h)},An.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},An.useFormStatus=function(){return l.H.useHostTransitionStatus()},An.version="19.2.3",An}var TE;function M_(){if(TE)return $y.exports;TE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$y.exports=U8(),$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 $8(){if(CE)return bc;CE=1;var e=B8(),t=cu(),n=M_();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 g=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function Z(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 M:return"Suspense";case _: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 k:return s=i.displayName||null,s!==null?s:de(i.type)||"Memo";case D: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 H(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),ve=R(null),Oe=R(null),fe=R(null);function Qe(i,s){switch(ie(Oe,s),ie(ve,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}}H(se),ie(se,i)}function J(){H(se),H(ve),H(Oe)}function Te(i){i.memoizedState!==null&&ie(fe,i);var s=se.current,u=_O(s,i.type);s!==u&&(ie(ve,i),ie(se,u))}function Pe(i){ve.current===i&&(H(se),H(ve)),fe.current===i&&(H(fe),pc._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(X){var G=X}Reflect.construct(i,[],re)}else{try{re.call()}catch(X){G=X}i.call(re.prototype)}}else{try{throw Error()}catch(X){G=X}(re=i())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&G&&typeof X.stack=="string")return[X.stack,G.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=d.DetermineComponentFrameRoot(),E=x[0],P=x[1];if(E&&P){var z=E.split(`
|
|
44
|
+
`),F=P.split(`
|
|
45
|
+
`);for(v=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;v<F.length&&!F[v].includes("DetermineComponentFrameRoot");)v++;if(d===z.length||v===F.length)for(d=z.length-1,v=F.length-1;1<=d&&0<=v&&z[d]!==F[v];)v--;for(;1<=d&&0<=v;d--,v--)if(z[d]!==F[v]){if(d!==1||v!==1)do if(d--,v--,0>v||z[d]!==F[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,ad=e.unstable_shouldYield,sd=e.unstable_requestPaint,ue=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,De=e.unstable_ImmediatePriority,Ot=e.unstable_UserBlockingPriority,Kt=e.unstable_NormalPriority,jn=e.unstable_LowPriority,dn=e.unstable_IdlePriority,_6=e.log,D6=e.unstable_setDisableYieldValue,Nu=null,er=null;function Ea(i){if(typeof _6=="function"&&D6(i),er&&typeof er.setStrictMode=="function")try{er.setStrictMode(Nu,i)}catch{}}var tr=Math.clz32?Math.clz32:L6,R6=Math.log,z6=Math.LN2;function L6(i){return i>>>=0,i===0?32:31-(R6(i)/z6|0)|0}var od=256,ld=262144,ud=4194304;function Ns(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 cd(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=Ns(d):(E&=P,E!==0?v=Ns(E):u||(u=P&~i,u!==0&&(v=Ns(u))))):(P=d&~x,P!==0?v=Ns(P):E!==0?v=Ns(E):u||(u=d&~i,u!==0&&(v=Ns(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Tu(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function I6(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=ud;return ud<<=1,(ud&62914560)===0&&(ud=4194304),i}function wg(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Cu(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function B6(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,F=i.hiddenUpdates;for(u=E&~u;0<u;){var ee=31-tr(u),re=1<<ee;P[ee]=0,z[ee]=-1;var G=F[ee];if(G!==null)for(F[ee]=null,ee=0;ee<G.length;ee++){var X=G[ee];X!==null&&(X.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,Un="__reactProps$"+Na,Io="__reactContainer$"+Na,Ag="__reactEvents$"+Na,U6="__reactListeners$"+Na,$6="__reactHandles$"+Na,xj="__reactResources$"+Na,ku="__reactMarker$"+Na;function Og(i){delete i[hn],delete i[Un],delete i[Ag],delete i[U6],delete i[$6]}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 Mu(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[ku]=!0}var bj=new Set,wj={};function Ts(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 q6=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 V6(i){return Ro.call(jj,i)?!0:Ro.call(Sj,i)?!1:q6.test(i)?jj[i]=!0:(Sj[i]=!0,!1)}function fd(i,s,u){if(V6(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 dd(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 Ai(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 H6(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=H6(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 hd(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 F6=/[\n"\\]/g;function gr(i){return i.replace(F6,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"&&hd(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 Ho(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var K6=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||K6.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 Y6=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"]]),G6=/^[\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 md(i){return G6.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Oi(){}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 Fo=null,Ko=null;function Mj(i){var s=Uo(i);if(s&&(i=s.stateNode)){var u=i[Un]||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[Un]||null;if(!v)throw Error(r(90));Ng(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<u.length;s++)d=u[s],d.form===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,(Fo!==null||Ko!==null)&&(th(),Fo&&(s=Fo,i=Ko,Ko=Fo=null,Mj(s),i)))for(s=0;s<i.length;s++)Mj(i[s])}}function Pu(i,s){var u=i.stateNode;if(u===null)return null;var d=u[Un]||null;if(d===null)return null;u=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var Ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_g=!1;if(Ei)try{var _u={};Object.defineProperty(_u,"passive",{get:function(){_g=!0}}),window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{_g=!1}var Ta=null,Dg=null,pd=null;function _j(){if(pd)return pd;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 pd=v.slice(i,1<d?1-d:void 0)}function gd(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 vd(){return!0}function Dj(){return!1}function $n(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)?vd:Dj,this.isPropagationStopped=Dj,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=vd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=vd)},persist:function(){},isPersistent:vd}),s}var Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yd=$n(Cs),Du=g({},Cs,{view:0,detail:0}),W6=$n(Du),Rg,zg,Ru,xd=g({},Du,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,button:0,buttons:0,relatedTarget:function(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!==Ru&&(Ru&&i.type==="mousemove"?(Rg=i.screenX-Ru.screenX,zg=i.screenY-Ru.screenY):zg=Rg=0,Ru=i),Rg)},movementY:function(i){return"movementY"in i?i.movementY:zg}}),Rj=$n(xd),Q6=g({},xd,{dataTransfer:0}),X6=$n(Q6),Z6=g({},Du,{relatedTarget:0}),Lg=$n(Z6),J6=g({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),eI=$n(J6),tI=g({},Cs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),nI=$n(tI),rI=g({},Cs,{data:0}),zj=$n(rI),iI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aI={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"},sI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oI(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=sI[i])?!!s[i]:!1}function Ig(){return oI}var lI=g({},Du,{key:function(i){if(i.key){var s=iI[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=gd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?aI[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"?gd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?gd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),uI=$n(lI),cI=g({},xd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lj=$n(cI),fI=g({},Du,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),dI=$n(fI),hI=g({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),mI=$n(hI),pI=g({},xd,{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}),gI=$n(pI),vI=g({},Cs,{newState:0,oldState:0}),yI=$n(vI),xI=[9,13,27,32],Bg=Ei&&"CompositionEvent"in window,zu=null;Ei&&"documentMode"in document&&(zu=document.documentMode);var bI=Ei&&"TextEvent"in window&&!zu,Ij=Ei&&(!Bg||zu&&8<zu&&11>=zu),Bj=" ",Uj=!1;function $j(i,s){switch(i){case"keyup":return xI.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 wI(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 SI(i,s){if(Yo)return i==="compositionend"||!Bg&&$j(i,s)?(i=_j(),pd=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 jI={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"?!!jI[i.type]:s==="textarea"}function Hj(i,s,u,d){Fo?Ko?Ko.push(d):Ko=[d]:Fo=d,s=lh(s,"onChange"),0<s.length&&(u=new yd("onChange","change",null,u,d),i.push({event:u,listeners:s}))}var Lu=null,Iu=null;function AI(i){EO(i,0)}function bd(i){var s=Mu(i);if(Oj(s))return i}function Fj(i,s){if(i==="change")return s}var Kj=!1;if(Ei){var Ug;if(Ei){var $g="oninput"in document;if(!$g){var Yj=document.createElement("div");Yj.setAttribute("oninput","return;"),$g=typeof Yj.oninput=="function"}Ug=$g}else Ug=!1;Kj=Ug&&(!document.documentMode||9<document.documentMode)}function Gj(){Lu&&(Lu.detachEvent("onpropertychange",Wj),Iu=Lu=null)}function Wj(i){if(i.propertyName==="value"&&bd(Iu)){var s=[];Hj(s,Iu,i,Mg(i)),Pj(AI,s)}}function OI(i,s,u){i==="focusin"?(Gj(),Lu=s,Iu=u,Lu.attachEvent("onpropertychange",Wj)):i==="focusout"&&Gj()}function EI(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return bd(Iu)}function NI(i,s){if(i==="click")return bd(s)}function TI(i,s){if(i==="input"||i==="change")return bd(s)}function CI(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var nr=typeof Object.is=="function"?Object.is:CI;function Bu(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 Qj(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Xj(i,s){var u=Qj(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=Qj(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=hd(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=hd(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 kI=Ei&&"documentMode"in document&&11>=document.documentMode,Go=null,Vg=null,Uu=null,Hg=!1;function e2(i,s,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Hg||Go==null||Go!==hd(d)||(d=Go,"selectionStart"in d&&qg(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Uu&&Bu(Uu,d)||(Uu=d,d=lh(Vg,"onSelect"),0<d.length&&(s=new yd("onSelect","select",null,s,u),i.push({event:s,listeners:d}),s.target=Go)))}function ks(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Wo={animationend:ks("Animation","AnimationEnd"),animationiteration:ks("Animation","AnimationIteration"),animationstart:ks("Animation","AnimationStart"),transitionrun:ks("Transition","TransitionRun"),transitionstart:ks("Transition","TransitionStart"),transitioncancel:ks("Transition","TransitionCancel"),transitionend:ks("Transition","TransitionEnd")},Fg={},t2={};Ei&&(t2=document.createElement("div").style,"AnimationEvent"in window||(delete Wo.animationend.animation,delete Wo.animationiteration.animation,delete Wo.animationstart.animation),"TransitionEvent"in window||delete Wo.transitionend.transition);function Ms(i){if(Fg[i])return Fg[i];if(!Wo[i])return i;var s=Wo[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in t2)return Fg[i]=s[u];return i}var n2=Ms("animationend"),r2=Ms("animationiteration"),i2=Ms("animationstart"),MI=Ms("transitionrun"),PI=Ms("transitionstart"),_I=Ms("transitioncancel"),a2=Ms("transitionend"),s2=new Map,Kg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kg.push("scrollEnd");function qr(i,s){s2.set(i,s),Ts(s,[i])}var wd=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=[],Qo=0,Yg=0;function Sd(){for(var i=Qo,s=Yg=Qo=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 jd(i,s,u,d){vr[Qo++]=i,vr[Qo++]=s,vr[Qo++]=u,vr[Qo++]=d,Yg|=d,i.lanes|=d,i=i.alternate,i!==null&&(i.lanes|=d)}function Gg(i,s,u,d){return jd(i,s,u,d),Ad(i)}function Ps(i,s){return jd(i,null,null,s),Ad(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 Ad(i){if(50<lc)throw lc=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 Xo={};function DI(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 DI(i,s,u,d)}function Wg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ni(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 Od(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=BB(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 _s(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 M:return i=rr(13,u,s,v),i.elementType=M,i.lanes=x,i;case _:return i=rr(19,u,s,v),i.elementType=_,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 k:E=14;break e;case D: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 _s(i,s,u,d){return i=rr(7,i,d,s),i.lanes=u,i}function Qg(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 Xg(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,Ed=null,$u=0,xr=[],br=0,Ca=null,oi=1,li="";function Ti(i,s){Zo[Jo++]=$u,Zo[Jo++]=Ed,Ed=i,$u=s}function f2(i,s,u){xr[br++]=oi,xr[br++]=li,xr[br++]=Ca,Ca=i;var d=oi;i=li;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,oi=1<<32-tr(s)+v|u<<v|d,li=x+i}else oi=1<<x|u<<v|d,li=i}function Zg(i){i.return!==null&&(Ti(i,1),f2(i,1,0))}function Jg(i){for(;i===Ed;)Ed=Zo[--Jo],Zo[Jo]=null,$u=Zo[--Jo],Zo[Jo]=null;for(;i===Ca;)Ca=xr[--br],xr[br]=null,li=xr[--br],xr[br]=null,oi=xr[--br],xr[br]=null}function d2(i,s){xr[br++]=oi,xr[br++]=li,xr[br++]=Ca,oi=s.id,li=s.overflow,Ca=i}var mn=null,ht=null,He=!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 qu(yr(s,i)),ev}function h2(i){var s=i.stateNode,u=i.type,d=i.memoizedProps;switch(s[hn]=i,s[Un]=d,u){case"dialog":$e("cancel",s),$e("close",s);break;case"iframe":case"object":case"embed":$e("load",s);break;case"video":case"audio":for(u=0;u<cc.length;u++)$e(cc[u],s);break;case"source":$e("error",s);break;case"img":case"image":case"link":$e("error",s),$e("load",s);break;case"details":$e("toggle",s);break;case"input":$e("invalid",s),Ej(s,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":$e("invalid",s);break;case"textarea":$e("invalid",s),Tj(s,d.value,d.defaultValue,d.children)}u=d.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||d.suppressHydrationWarning===!0||kO(s.textContent,u)?(d.popover!=null&&($e("beforetoggle",s),$e("toggle",s)),d.onScroll!=null&&$e("scroll",s),d.onScrollEnd!=null&&$e("scrollend",s),d.onClick!=null&&(s.onclick=Oi),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(!He)return m2(i),He=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||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,Fa(i.type)?(i=jy,jy=null,ht=i):ht=s):ht=mn?jr(i.stateNode.nextSibling):null;return!0}function Ds(){ht=mn=null,He=!1}function tv(){var i=ka;return i!==null&&(Fn===null?Fn=i:Fn.push.apply(Fn,i),ka=null),i}function qu(i){ka===null?ka=[i]:ka.push(i)}var nv=R(null),Rs=null,Ci=null;function Pa(i,s,u){ie(nv,s._currentValue),s._currentValue=u}function ki(i){i._currentValue=nv.current,H(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(pc):i=[pc])}v=v.return}i!==null&&iv(s,i,u,d),s.flags|=262144}function Nd(i){for(i=i.firstContext;i!==null;){if(!nr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function zs(i){Rs=i,Ci=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return p2(Rs,i)}function Td(i,s){return Rs===null&&zs(i),p2(i,s)}function p2(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ci===null){if(i===null)throw Error(r(308));Ci=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Ci=Ci.next=s;return u}var RI=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()})}},zI=e.unstable_scheduleCallback,LI=e.unstable_NormalPriority,Lt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function av(){return{controller:new RI,data:new Map,refCount:0}}function Vu(i){i.refCount--,i.refCount===0&&zI(LI,function(){i.controller.abort()})}var Hu=null,sv=0,nl=0,rl=null;function II(i,s){if(Hu===null){var u=Hu=[];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&&Hu!==null){rl!==null&&(rl.status="fulfilled");var i=Hu;Hu=null,nl=0,rl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function BI(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"&&II(i,s),v2!==null&&v2(i,s)};var Ls=R(null);function ov(){var i=Ls.current;return i!==null?i:ut.pooledCache}function Cd(i,s){s===null?ie(Ls,Ls.current):ie(Ls,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)),kd=Error(r(542)),Md={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(Oi,Oi),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(Oi,Oi);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 Bs=s,il}}function Is(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Bs=u,il):u}}var Bs=null;function w2(){if(Bs===null)throw Error(r(459));var i=Bs;return Bs=null,i}function S2(i){if(i===il||i===kd)throw Error(r(483))}var al=null,Fu=0;function Pd(i){var s=Fu;return Fu+=1,al===null&&(al=[]),b2(al,i,s)}function Ku(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function _d(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=Ni(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=Qg(V,U.mode,te),I.return=U,I):(I=v(I,V),I.return=U,I)}function z(U,I,V,te){var je=V.type;return je===j?ee(U,I,V.props.children,te,V.key):I!==null&&(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===D&&Is(je)===I.type)?(I=v(I,V.props),Ku(I,V),I.return=U,I):(I=Od(V.type,V.key,V.props,null,U.mode,te),Ku(I,V),I.return=U,I)}function F(U,I,V,te){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=Xg(V,U.mode,te),I.return=U,I):(I=v(I,V.children||[]),I.return=U,I)}function ee(U,I,V,te,je){return I===null||I.tag!==7?(I=_s(V,U.mode,te,je),I.return=U,I):(I=v(I,V),I.return=U,I)}function re(U,I,V){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Qg(""+I,U.mode,V),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return V=Od(I.type,I.key,I.props,null,U.mode,V),Ku(V,I),V.return=U,V;case S:return I=Xg(I,U.mode,V),I.return=U,I;case D:return I=Is(I),re(U,I,V)}if(me(I)||Z(I))return I=_s(I,U.mode,V,null),I.return=U,I;if(typeof I.then=="function")return re(U,Pd(I),V);if(I.$$typeof===N)return re(U,Td(U,I),V);_d(U,I)}return null}function G(U,I,V,te){var je=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return je!==null?null:P(U,I,""+V,te);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return V.key===je?z(U,I,V,te):null;case S:return V.key===je?F(U,I,V,te):null;case D:return V=Is(V),G(U,I,V,te)}if(me(V)||Z(V))return je!==null?null:ee(U,I,V,te,null);if(typeof V.then=="function")return G(U,I,Pd(V),te);if(V.$$typeof===N)return G(U,I,Td(U,V),te);_d(U,V)}return null}function X(U,I,V,te,je){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return U=U.get(V)||null,P(I,U,""+te,je);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return U=U.get(te.key===null?V:te.key)||null,z(I,U,te,je);case S:return U=U.get(te.key===null?V:te.key)||null,F(I,U,te,je);case D:return te=Is(te),X(U,I,V,te,je)}if(me(te)||Z(te))return U=U.get(V)||null,ee(I,U,te,je,null);if(typeof te.then=="function")return X(U,I,V,Pd(te),je);if(te.$$typeof===N)return X(U,I,V,Td(I,te),je);_d(I,te)}return null}function ge(U,I,V,te){for(var je=null,Ke=null,be=I,ze=I=0,Ve=null;be!==null&&ze<V.length;ze++){be.index>ze?(Ve=be,be=null):Ve=be.sibling;var Ye=G(U,be,V[ze],te);if(Ye===null){be===null&&(be=Ve);break}i&&be&&Ye.alternate===null&&s(U,be),I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye,be=Ve}if(ze===V.length)return u(U,be),He&&Ti(U,ze),je;if(be===null){for(;ze<V.length;ze++)be=re(U,V[ze],te),be!==null&&(I=x(be,I,ze),Ke===null?je=be:Ke.sibling=be,Ke=be);return He&&Ti(U,ze),je}for(be=d(be);ze<V.length;ze++)Ve=X(be,U,ze,V[ze],te),Ve!==null&&(i&&Ve.alternate!==null&&be.delete(Ve.key===null?ze:Ve.key),I=x(Ve,I,ze),Ke===null?je=Ve:Ke.sibling=Ve,Ke=Ve);return i&&be.forEach(function(Qa){return s(U,Qa)}),He&&Ti(U,ze),je}function Ne(U,I,V,te){if(V==null)throw Error(r(151));for(var je=null,Ke=null,be=I,ze=I=0,Ve=null,Ye=V.next();be!==null&&!Ye.done;ze++,Ye=V.next()){be.index>ze?(Ve=be,be=null):Ve=be.sibling;var Qa=G(U,be,Ye.value,te);if(Qa===null){be===null&&(be=Ve);break}i&&be&&Qa.alternate===null&&s(U,be),I=x(Qa,I,ze),Ke===null?je=Qa:Ke.sibling=Qa,Ke=Qa,be=Ve}if(Ye.done)return u(U,be),He&&Ti(U,ze),je;if(be===null){for(;!Ye.done;ze++,Ye=V.next())Ye=re(U,Ye.value,te),Ye!==null&&(I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye);return He&&Ti(U,ze),je}for(be=d(be);!Ye.done;ze++,Ye=V.next())Ye=X(be,U,ze,Ye.value,te),Ye!==null&&(i&&Ye.alternate!==null&&be.delete(Ye.key===null?ze:Ye.key),I=x(Ye,I,ze),Ke===null?je=Ye:Ke.sibling=Ye,Ke=Ye);return i&&be.forEach(function(QB){return s(U,QB)}),He&&Ti(U,ze),je}function st(U,I,V,te){if(typeof V=="object"&&V!==null&&V.type===j&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case b:e:{for(var je=V.key;I!==null;){if(I.key===je){if(je=V.type,je===j){if(I.tag===7){u(U,I.sibling),te=v(I,V.props.children),te.return=U,U=te;break e}}else if(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===D&&Is(je)===I.type){u(U,I.sibling),te=v(I,V.props),Ku(te,V),te.return=U,U=te;break e}u(U,I);break}else s(U,I);I=I.sibling}V.type===j?(te=_s(V.props.children,U.mode,te,V.key),te.return=U,U=te):(te=Od(V.type,V.key,V.props,null,U.mode,te),Ku(te,V),te.return=U,U=te)}return E(U);case S:e:{for(je=V.key;I!==null;){if(I.key===je)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){u(U,I.sibling),te=v(I,V.children||[]),te.return=U,U=te;break e}else{u(U,I);break}else s(U,I);I=I.sibling}te=Xg(V,U.mode,te),te.return=U,U=te}return E(U);case D:return V=Is(V),st(U,I,V,te)}if(me(V))return ge(U,I,V,te);if(Z(V)){if(je=Z(V),typeof je!="function")throw Error(r(150));return V=je.call(V),Ne(U,I,V,te)}if(typeof V.then=="function")return st(U,I,Pd(V),te);if(V.$$typeof===N)return st(U,I,Td(U,V),te);_d(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,I!==null&&I.tag===6?(u(U,I.sibling),te=v(I,V),te.return=U,U=te):(u(U,I),te=Qg(V,U.mode,te),te.return=U,U=te),E(U)):u(U,I)}return function(U,I,V,te){try{Fu=0;var je=st(U,I,V,te);return al=null,je}catch(be){if(be===il||be===kd)throw be;var Ke=rr(29,be,null,U.mode);return Ke.lanes=te,Ke.return=U,Ke}finally{}}}var Us=j2(!0),A2=j2(!1),_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,(Xe&2)!==0){var v=d.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s,s=Ad(i),o2(i,null,u),s}return jd(i,d,s,u),Ad(i)}function Yu(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 Gu(){if(dv){var i=rl;if(i!==null)throw i}}function Wu(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,F=z.next;z.next=null,E===null?x=F:E.next=F,E=z;var ee=i.alternate;ee!==null&&(ee=ee.updateQueue,P=ee.lastBaseUpdate,P!==E&&(P===null?ee.firstBaseUpdate=F:P.next=F,ee.lastBaseUpdate=z))}if(x!==null){var re=v.baseState;E=0,ee=F=z=null,P=x;do{var G=P.lane&-536870913,X=G!==P.lane;if(X?(qe&G)===G:(d&G)===G){G!==0&&G===nl&&(dv=!0),ee!==null&&(ee=ee.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var ge=i,Ne=P;G=s;var st=u;switch(Ne.tag){case 1:if(ge=Ne.payload,typeof ge=="function"){re=ge.call(st,re,G);break e}re=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Ne.payload,G=typeof ge=="function"?ge.call(st,re,G):ge,G==null)break e;re=g({},re,G);break e;case 2:_a=!0}}G=P.callback,G!==null&&(i.flags|=64,X&&(i.flags|=8192),X=v.callbacks,X===null?v.callbacks=[G]:X.push(G))}else X={lane:G,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ee===null?(F=ee=X,z=re):ee=ee.next=X,E|=G;if(P=P.next,P===null){if(P=v.shared.pending,P===null)break;X=P,P=X.next,X.next=null,v.lastBaseUpdate=X,v.shared.pending=null}}while(!0);ee===null&&(z=re),v.baseState=z,v.firstBaseUpdate=F,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),Dd=R(0);function N2(i,s){i=Bi,ie(Dd,i),ie(sl,s),Bi=i|s.baseLanes}function hv(){ie(Dd,Bi),ie(sl,sl.current)}function mv(){Bi=Dd.current,H(sl),H(Dd)}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){H(ir),Sr===i&&(Sr=null),H(Mt)}var Mt=R(0);function Rd(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 Mi=0,Re=null,it=null,It=null,zd=!1,ol=!1,$s=!1,Ld=0,Qu=0,ll=null,UI=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 Mi=x,Re=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,q.H=i===null||i.memoizedState===null?fA:Pv,$s=!1,x=u(d,v),$s=!1,ol&&(x=k2(s,u,d,v)),C2(i),x}function C2(i){q.H=Ju;var s=it!==null&&it.next!==null;if(Mi=0,It=it=Re=null,zd=!1,Qu=0,ll=null,s)throw Error(r(300));i===null||Bt||(i=i.dependencies,i!==null&&Nd(i)&&(Bt=!0))}function k2(i,s,u,d){Re=i;var v=0;do{if(ol&&(ll=null),Qu=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 $I(){var i=q.H,s=i.useState()[0];return s=typeof s.then=="function"?Xu(s):s,i=i.useState()[0],(it!==null?it.memoizedState:null)!==i&&(Re.flags|=1024),s}function yv(){var i=Ld!==0;return Ld=0,i}function xv(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function bv(i){if(zd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}zd=!1}Mi=0,It=it=Re=null,ol=!1,Qu=Ld=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 Id(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xu(i){var s=Qu;return Qu+=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 Bd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Xu(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=Id(),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 Pi(i,s){return typeof s=="function"?s(i):s}function Ud(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,F=s,ee=!1;do{var re=F.lane&-536870913;if(re!==F.lane?(qe&re)===re:(Mi&re)===re){var G=F.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),re===nl&&(ee=!0);else if((Mi&G)===G){F=F.next,G===nl&&(ee=!0);continue}else re={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(P=z=re,E=x):z=z.next=re,Re.lanes|=G,Ua|=G;re=F.action,$s&&u(x,re),x=F.hasEagerState?F.eagerState:u(x,re)}else G={lane:re,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(P=z=G,E=x):z=z.next=G,Re.lanes|=re,Ua|=re;F=F.next}while(F!==null&&F!==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=He;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||(Mi&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=Id(),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=Ps(i,2);s!==null&&Kn(s,i,2)}function Av(i){var s=Cn();if(typeof i=="function"){var u=i;if(i=u(),$s){Ea(!0);try{u()}finally{Ea(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:i},s}function L2(i,s,u,d){return i.baseState=u,Sv(i,it,typeof d=="function"?d:Pi)}function qI(i,s,u,d,v){if(Vd(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(F){Ov(i,s,F)}finally{x!==null&&E.types!==null&&(x.types=E.types),q.T=x}}else try{x=u(v,d),B2(i,s,x)}catch(F){Ov(i,s,F)}}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(He){var u=ut.formState;if(u!==null){e:{var d=Re;if(He){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=qI.bind(null,Re,v,x,u),v.dispatch=u,d.memoizedState=i,[s,u,!1]}function H2(i){var s=Pt();return F2(s,it,i)}function F2(i,s,u){if(s=Sv(i,s,q2)[0],i=Ud(Pi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=Xu(s)}catch(E){throw E===il?kd: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},VI.bind(null,v,u),null)),[d,x,i]}function VI(i,s){i.action=s}function K2(i){var s=Pt(),u=it;if(u!==null)return F2(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=Id(),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 $d(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 qd(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){$d(8390656,8,i,s)}function Ev(i,s){qd(2048,8,i,s)}function HI(i){Re.flags|=4;var s=Re.updateQueue;if(s===null)s=Id(),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 HI({ref:s,nextImpl:i}),function(){if((Xe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Q2(i,s){return qd(4,2,i,s)}function X2(i,s){return qd(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,qd(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(),$s){Ea(!0);try{i()}finally{Ea(!1)}}return u.memoizedState=[d,s],d}function Tv(i,s,u){return u===void 0||(Mi&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):(Mi&42)===0||(Mi&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(),F=q.S;if(F!==null&&F(P,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=BI(z,d);Zu(i,s,ee,lr(i))}else Zu(i,s,d,lr(i))}catch(re){Zu(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 FI(){}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?FI: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:Pi,lastRenderedState:Y},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,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),Zu(i,s.next.queue,{},lr())}function kv(){return pn(pc)}function sA(){return Pt().memoizedState}function oA(){return Pt().memoizedState}function KI(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&&(Kn(d,s,u),Yu(d,s,u)),s={cache:av()},i.payload=s;return}s=s.return}}function YI(i,s,u){var d=lr();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Vd(i)?uA(s,u):(u=Gg(i,s,u,d),u!==null&&(Kn(u,i,d),cA(u,s,d)))}function lA(i,s,u){var d=lr();Zu(i,s,u,d)}function Zu(i,s,u,d){var v={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Vd(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 jd(i,s,v,0),ut===null&&Sd(),!1}catch{}finally{}if(u=Gg(i,s,v,d),u!==null)return Kn(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},Vd(i)){if(s)throw Error(r(479))}else s=Gg(i,u,d,2),s!==null&&Kn(s,i,2)}function Vd(i){var s=i.alternate;return i===Re||s!==null&&s===Re}function uA(i,s){ol=zd=!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 Ju={readContext:pn,use:Bd,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};Ju.useEffectEvent=Et;var fA={readContext:pn,use:Bd,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,$d(4194308,4,Z2.bind(null,s,i),u)},useLayoutEffect:function(i,s){return $d(4194308,4,i,s)},useInsertionEffect:function(i,s){$d(4,2,i,s)},useMemo:function(i,s){var u=Cn();s=s===void 0?null:s;var d=i();if($s){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($s){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=YI.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(He){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(He){var u=li,d=oi;u=(d&~(1<<32-tr(d)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Ld++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=UI++,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=KI.bind(null,Re)},useEffectEvent:function(i){var s=Cn(),u={impl:i};return s.memoizedState=u,function(){if((Xe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Pv={readContext:pn,use:Bd,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:Q2,useLayoutEffect:X2,useMemo:tA,useReducer:Ud,useRef:Y2,useState:function(){return Ud(Pi)},useDebugValue:Nv,useDeferredValue:function(i,s){var u=Pt();return nA(u,it.memoizedState,i,s)},useTransition:function(){var i=Ud(Pi)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:Xu(i),s]},useSyncExternalStore:M2,useId:sA,useHostTransitionStatus:kv,useFormState:H2,useActionState:H2,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:Bd,useCallback:eA,useContext:pn,useEffect:Ev,useImperativeHandle:J2,useInsertionEffect:Q2,useLayoutEffect:X2,useMemo:tA,useReducer:jv,useRef:Y2,useState:function(){return jv(Pi)},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(Pi)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:Xu(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:g({},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&&(Kn(s,i,d),Yu(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&&(Kn(s,i,d),Yu(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&&(Kn(s,i,u),Yu(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?!Bu(u,d)||!Bu(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 qs(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=g({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function pA(i){wd(i)}function gA(i){console.error(i)}function vA(i){wd(i)}function Hd(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(){Hd(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 GI(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?nh():u.alternate===null&&Nt===0&&(Nt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,d===Md?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===Md?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),nh(),!1}if(He)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}),qu(yr(i,u)))):(d!==ev&&(s=Error(r(423),{cause:d}),qu(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),oc===null?oc=[x]:oc.push(x),Nt!==4&&(Nt=2),s===null)return!0;d=yr(d,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,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):Us(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 zs(s),d=vv(i,s,u,E,x,v),P=yv(),i!==null&&!Bt?(xv(i,s,v),_i(i,s,v)):(He&&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=Od(u.type,null,d,s,s.mode,v),i.ref=s.ref,i.return=s,s.child=i)}if(x=i.child,!Hv(i,v)){var E=x.memoizedProps;if(u=u.compare,u=u!==null?u:Bu,u(E,d)&&i.ref===s.ref)return _i(i,s,v)}return s.flags|=1,i=Ni(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(Bu(x,d)&&i.ref===s.ref)if(Bt=!1,s.pendingProps=d=x,Hv(i,v))(i.flags&131072)!==0&&(Bt=!0);else return s.lanes=i.lanes,_i(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&&Cd(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?(Cd(s,x.cachePool),N2(s,x),La(),s.memoizedState=null):(i!==null&&Cd(s,null),hv(),La());return gn(i,s,v,u),s.child}function ec(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&&Cd(s,null),hv(),T2(s),i!==null&&tl(i,s,d,!0),s.childLanes=v,null}function Fd(i,s){return s=Yd({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 Us(s,i.child,null,u),i=Fd(s,s.pendingProps),i.flags|=2,ar(s),s.memoizedState=null,i}function WI(i,s,u){var d=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(He){if(d.mode==="hidden")return i=Fd(s,d),s.lanes=536870912,ec(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:oi,overflow:li}: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 Fd(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,Ps(i,E),Kn(d,i,E),zv;nh(),s=EA(i,s,u)}else i=x.treeContext,ht=jr(E.nextSibling),mn=s,He=!0,ka=null,wr=!1,i!==null&&d2(s,i),s=Fd(s,d),s.flags|=4096;return s}return i=Ni(i.child,{mode:d.mode,children:d.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Kd(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 zs(s),u=vv(i,s,u,d,void 0,v),d=yv(),i!==null&&!Bt?(xv(i,s,v),_i(i,s,v)):(He&&d&&Zg(s),s.flags|=1,gn(i,s,u,v),s.child)}function NA(i,s,u,d,v,x){return zs(s),s.updateQueue=null,u=k2(s,d,u,v),C2(i),d=yv(),i!==null&&!Bt?(xv(i,s,x),_i(i,s,x)):(He&&d&&Zg(s),s.flags|=1,gn(i,s,u,x),s.child)}function TA(i,s,u,d,v){if(zs(s),s.stateNode===null){var x=Xo,E=u.contextType;typeof E=="object"&&E!==null&&(x=pn(E)),x=new u(d,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Dv,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=d,x.state=s.memoizedState,x.refs={},uv(s),E=u.contextType,x.context=typeof E=="object"&&E!==null?pn(E):Xo,x.state=s.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(_v(s,u,E,d),x.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(E=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),E!==x.state&&Dv.enqueueReplaceState(x,x.state,null),Wu(s,d,x,v),Gu(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(i===null){x=s.stateNode;var P=s.memoizedProps,z=qs(u,P);x.props=z;var F=x.context,ee=u.contextType;E=Xo,typeof ee=="object"&&ee!==null&&(E=pn(ee));var re=u.getDerivedStateFromProps;ee=typeof re=="function"||typeof x.getSnapshotBeforeUpdate=="function",P=s.pendingProps!==P,ee||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P||F!==E)&&mA(s,x,d,E),_a=!1;var G=s.memoizedState;x.state=G,Wu(s,d,x,v),Gu(),F=s.memoizedState,P||G!==F||_a?(typeof re=="function"&&(_v(s,u,re,d),F=s.memoizedState),(z=_a||hA(s,u,z,d,G,F,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=F),x.props=d,x.state=F,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=qs(u,E),x.props=ee,re=s.pendingProps,G=x.context,F=u.contextType,z=Xo,typeof F=="object"&&F!==null&&(z=pn(F)),P=u.getDerivedStateFromProps,(F=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,Wu(s,d,x,v),Gu();var X=s.memoizedState;E!==re||G!==X||_a||i!==null&&i.dependencies!==null&&Nd(i.dependencies)?(typeof P=="function"&&(_v(s,u,P,d),X=s.memoizedState),(ee=_a||hA(s,u,ee,d,G,X,z)||i!==null&&i.dependencies!==null&&Nd(i.dependencies))?(F||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(d,X,z),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(d,X,z)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||E===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=X),x.props=d,x.state=X,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,Kd(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=Us(s,i.child,null,v),s.child=Us(s,null,u,v)):gn(i,s,u,v),s.memoizedState=x.state,i=s.child):i=_i(i,s,v),i}function CA(i,s,u,d){return Ds(),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(He){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:oi,overflow:li}: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=Yd({mode:"hidden",children:P},v),d=_s(d,v,u,null),P.return=s,d.return=s,P.sibling=d,s.child=P,d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(i,E,u),s.memoizedState=Iv,ec(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=Yd({mode:"visible",children:d.children},v),P=_s(P,v,u,null),P.flags|=2,d.return=s,P.return=s,d.sibling=P,s.child=d,Us(s,i.child,null,u),d=s.child,d.memoizedState=Bv(u),d.childLanes=Uv(i,E,u),s.memoizedState=Iv,s=ec(null,d));else if(za(s),Sy(P)){if(E=P.nextSibling&&P.nextSibling.dataset,E)var F=E.dgst;E=F,d=Error(r(419)),d.stack="",d.digest=E,qu({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,Ps(i,d),Kn(E,i,d),zv;wy(P)||nh(),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,He=!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,F=z.sibling,d=Ni(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,F!==null?P=Ni(F,P):(P=_s(P,v,u,null),P.flags|=2),P.return=s,d.return=s,d.sibling=P,s.child=d,ec(null,d),d=s.child,P=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,ec(i.child,d)):(za(s),u=i.child,i=u.sibling,u=Ni(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=Yd({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Yd(i,s){return i=rr(22,i,null,s),i.lanes=0,i}function qv(i,s,u){return Us(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=He?$u: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&&Rd(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&&Rd(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 _i(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=Ni(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Ni(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function Hv(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Nd(i)))}function QI(i,s,u){switch(s.tag){case 3:Qe(s,s.stateNode.containerInfo),Pa(s,Lt,i.memoizedState.cache),Ds();break;case 27:case 5:Te(s);break;case 4:Qe(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=_i(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 _i(i,s,u)}function _A(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Bt=!0;else{if(!Hv(i,u)&&(s.flags&128)===0)return Bt=!1,QI(i,s,u);Bt=(i.flags&131072)!==0}else Bt=!1,He&&(s.flags&1048576)!==0&&f2(s,$u,s.index);switch(s.lanes=0,s.tag){case 16:e:{var d=s.pendingProps;if(i=Is(s.elementType),s.type=i,typeof i=="function")Wg(i)?(d=qs(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===k){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=qs(d,s.pendingProps),TA(i,s,d,v,u);case 3:e:{if(Qe(s,s.stateNode.containerInfo),i===null)throw Error(r(387));d=s.pendingProps;var x=s.memoizedState;v=x.element,cv(i,s),Wu(s,d,null,u);var E=s.memoizedState;if(d=E.cache,Pa(s,Lt,d),d!==x.cache&&iv(s,[Lt],u,!0),Gu(),d=E.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:E.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=CA(i,s,d,u);break e}else if(d!==v){v=yr(Error(r(424)),s),qu(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,He=!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(Ds(),d===v){s=_i(i,s,u);break e}gn(i,s,d,u)}s=s.child}return s;case 26:return Kd(i,s),i===null?(u=HO(s.type,null,s.pendingProps,null))?s.memoizedState=u:He||(u=s.type,i=s.pendingProps,d=uh(Oe.current).createElement(u),d[hn]=s,d[Un]=i,vn(d,u,i),tn(d),s.stateNode=d):s.memoizedState=HO(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Te(s),i===null&&He&&(d=s.stateNode=$O(s.type,s.pendingProps,Oe.current),mn=s,wr=!0,v=ht,Fa(s.type)?(jy=v,ht=jr(d.firstChild)):ht=v),gn(i,s,s.pendingProps.children,u),Kd(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&He&&((v=d=ht)&&(d=EB(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)),Te(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,$I,null,null,u),pc._currentValue=v),Kd(i,s),gn(i,s,d,u),s.child;case 6:return i===null&&He&&((i=u=ht)&&(u=NB(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 Qe(s,s.stateNode.containerInfo),d=s.pendingProps,i===null?s.child=Us(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,zs(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 WI(i,s,u);case 22:return AA(i,s,u,s.pendingProps);case 24:return zs(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),Wu(s,null,null,u),Gu()),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 Di(i){i.flags|=4}function Fv(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 Bs=Md,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 Bs=Md,lv}function Gd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?hj():536870912,i.lanes|=s,hl|=s)}function tc(i,s){if(!He)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function 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 XI(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),ki(Lt),J(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(el(s)?Di(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?(Di(s),x!==null?(mt(s),DA(s,x)):(mt(s),Fv(s,v,null,d,u))):x?x!==i.memoizedState?(Di(s),mt(s),DA(s,x)):(mt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==d&&Di(s),mt(s),Fv(s,v,i,d,u)),null;case 27:if(Pe(s),u=Oe.current,v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Di(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,Di(s))}return mt(s),null;case 5:if(Pe(s),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==d&&Di(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=uh(Oe.current);switch(x){case 1:x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=E.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof d.is=="string"?E.createElement("select",{is:d.is}):E.createElement("select"),d.multiple?x.multiple=!0:d.size&&(x.size=d.size);break;default:x=typeof d.is=="string"?E.createElement(v,{is:d.is}):E.createElement(v)}}x[hn]=s,x[Un]=d;e:for(E=s.child;E!==null;){if(E.tag===5||E.tag===6)x.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===s)break e;for(;E.sibling===null;){if(E.return===null||E.return===s)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}s.stateNode=x;e:switch(vn(x,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Di(s)}}return mt(s),Fv(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==d&&Di(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(r(166));if(i=Oe.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=uh(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 Ds(),(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 Ds(),(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),Gd(s,s.updateQueue),mt(s),null);case 4:return J(),i===null&&hy(s.stateNode.containerInfo),mt(s),null;case 10:return ki(s.type),mt(s),null;case 19:if(H(Mt),d=s.memoizedState,d===null)return mt(s),null;if(v=(s.flags&128)!==0,x=d.rendering,x===null)if(v)tc(d,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Rd(i),x!==null){for(s.flags|=128,tc(d,!1),i=x.updateQueue,s.updateQueue=i,Gd(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),He&&Ti(s,d.treeForkCount),s.child}i=i.sibling}d.tail!==null&&ue()>Jd&&(s.flags|=128,v=!0,tc(d,!1),s.lanes=4194304)}else{if(!v)if(i=Rd(x),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,Gd(s,i),tc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!He)return mt(s),null}else 2*ue()-d.renderingStartTime>Jd&&u!==536870912&&(s.flags|=128,v=!0,tc(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),He&&Ti(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&&Gd(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&&H(Ls),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ki(Lt),mt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function ZI(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 ki(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));Ds()}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));Ds()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return H(Mt),null;case 4:return J(),null;case 10:return ki(s.type),null;case 22:case 23:return ar(s),mv(),i!==null&&H(Ls),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ki(Lt),null;case 25:return null;default:return null}}function RA(i,s){switch(Jg(s),s.tag){case 3:ki(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:H(Mt);break;case 10:ki(s.type);break;case 22:case 23:ar(s),mv(),i!==null&&H(Ls);break;case 24:ki(Lt)}}function nc(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,F=P;try{F()}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=qs(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(d){tt(i,s,d)}}function rc(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 ui(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;bB(d,i.type,u,s),d[Un]=s}catch(v){tt(i,i.return,v)}}function BA(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Fa(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&&Fa(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=Oi));else if(d!==4&&(d===27&&Fa(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 Wd(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&&Fa(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Wd(i,s,u),i=i.sibling;i!==null;)Wd(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[Un]=u}catch(x){tt(i,i.return,x)}}var Ri=!1,Ut=!1,Wv=!1,$A=typeof WeakSet=="function"?WeakSet:Set,nn=null;function JI(i,s){if(i=i.containerInfo,gy=gh,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,F=0,ee=0,re=i,G=null;t:for(;;){for(var X;re!==u||v!==0&&re.nodeType!==3||(P=E+v),re!==x||d!==0&&re.nodeType!==3||(z=E+d),re.nodeType===3&&(E+=re.nodeValue.length),(X=re.firstChild)!==null;)G=re,re=X;for(;;){if(re===i)break t;if(G===u&&++F===v&&(P=E),G===x&&++ee===d&&(z=E),(X=re.nextSibling)!==null)break;re=G,G=re.parentNode}re=X}u=P===-1||z===-1?null:{start:P,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(vy={focusedElem:i,selectionRange:u},gh=!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 ge=qs(u.type,v);i=d.getSnapshotBeforeUpdate(ge,x),d.__reactInternalSnapshotBeforeUpdate=i}catch(Ne){tt(u,u.return,Ne)}}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:Li(i,u),d&4&&nc(5,u);break;case 1:if(Li(i,u),d&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(E){tt(u,u.return,E)}else{var v=qs(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&&rc(u,u.return);break;case 3:if(Li(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:Li(i,u),s===null&&d&4&&IA(u),d&512&&rc(u,u.return);break;case 12:Li(i,u);break;case 31:Li(i,u),d&4&&FA(i,u);break;case 13:Li(i,u),d&4&&KA(i,u),d&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=lB.bind(null,u),TB(i,u))));break;case 22:if(d=u.memoizedState!==null||Ri,!d){s=s!==null&&s.memoizedState!==null||Ut,v=Ri;var x=Ut;Ri=d,(Ut=s)&&!x?Ii(i,u,(u.subtreeFlags&8772)!==0):Li(i,u),Ri=v,Ut=x}break;case 30:break;default:Li(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 gt=null,qn=!1;function zi(i,s,u){for(u=u.child;u!==null;)HA(i,s,u),u=u.sibling}function HA(i,s,u){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(Nu,u)}catch{}switch(u.tag){case 26:Ut||ui(u,s),zi(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Ut||ui(u,s);var d=gt,v=qn;Fa(u.type)&&(gt=u.stateNode,qn=!1),zi(i,s,u),dc(u.stateNode),gt=d,qn=v;break;case 5:Ut||ui(u,s);case 6:if(d=gt,v=qn,gt=null,zi(i,s,u),gt=d,qn=v,gt!==null)if(qn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(u.stateNode)}catch(x){tt(u,s,x)}else try{gt.removeChild(u.stateNode)}catch(x){tt(u,s,x)}break;case 18:gt!==null&&(qn?(i=gt,zO(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),wl(i)):zO(gt,u.stateNode));break;case 4:d=gt,v=qn,gt=u.stateNode.containerInfo,qn=!0,zi(i,s,u),gt=d,qn=v;break;case 0:case 11:case 14:case 15:Ia(2,u,s),Ut||Ia(4,u,s),zi(i,s,u);break;case 1:Ut||(ui(u,s),d=u.stateNode,typeof d.componentWillUnmount=="function"&&LA(u,s,d)),zi(i,s,u);break;case 21:zi(i,s,u);break;case 22:Ut=(d=Ut)||u.memoizedState!==null,zi(i,s,u),Ut=d;break;default:zi(i,s,u)}}function FA(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 eB(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 Qd(i,s){var u=eB(i);s.forEach(function(d){if(!u.has(d)){u.add(d);var v=uB.bind(null,i,d);d.then(v,v)}})}function Vn(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(Fa(P.type)){gt=P.stateNode,qn=!1;break e}break;case 5:gt=P.stateNode,qn=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,qn=!0;break e}P=P.return}if(gt===null)throw Error(r(160));HA(x,E,v),gt=null,qn=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)YA(s,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:Vn(s,i),Hn(i),d&4&&(Ia(3,i,i.return),nc(3,i),Ia(5,i,i.return));break;case 1:Vn(s,i),Hn(i),d&512&&(Ut||u===null||ui(u,u.return)),d&64&&Ri&&(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(Vn(s,i),Hn(i),d&512&&(Ut||u===null||ui(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[ku]||x[hn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(d),v.head.insertBefore(x,v.querySelector("head > title"))),vn(x,d,u),x[hn]=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:Vn(s,i),Hn(i),d&512&&(Ut||u===null||ui(u,u.return)),u!==null&&d&4&&Kv(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Vn(s,i),Hn(i),d&512&&(Ut||u===null||ui(u,u.return)),i.flags&32){v=i.stateNode;try{Ho(v,"")}catch(ge){tt(i,i.return,ge)}}d&4&&i.stateNode!=null&&(v=i.memoizedProps,Kv(i,v,u!==null?u.memoizedProps:v)),d&1024&&(Wv=!0);break;case 6:if(Vn(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(ge){tt(i,i.return,ge)}}break;case 3:if(dh=null,v=Vr,Vr=ch(s.containerInfo),Vn(s,i),Vr=v,Hn(i),d&4&&u!==null&&u.memoizedState.isDehydrated)try{wl(s.containerInfo)}catch(ge){tt(i,i.return,ge)}Wv&&(Wv=!1,GA(i));break;case 4:d=Vr,Vr=ch(i.stateNode.containerInfo),Vn(s,i),Hn(i),Vr=d;break;case 12:Vn(s,i),Hn(i);break;case 31:Vn(s,i),Hn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Qd(i,d)));break;case 13:Vn(s,i),Hn(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Zd=ue()),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Qd(i,d)));break;case 22:v=i.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,F=Ri,ee=Ut;if(Ri=F||v,Ut=ee||z,Vn(s,i),Ut=ee,Ri=F,Hn(i),d&8192)e:for(s=i.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(u===null||z||Ri||Ut||Vs(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(ge){tt(z,z.return,ge)}}}else if(s.tag===6){if(u===null){z=s;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ge){tt(z,z.return,ge)}}}else if(s.tag===18){if(u===null){z=s;try{var X=z.stateNode;v?LO(X,!0):LO(z.stateNode,!1)}catch(ge){tt(z,z.return,ge)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===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,Qd(i,u))));break;case 19:Vn(s,i),Hn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Qd(i,d)));break;case 30:break;case 21:break;default:Vn(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);Wd(i,x,v);break;case 5:var E=u.stateNode;u.flags&32&&(Ho(E,""),u.flags&=-33);var P=Yv(i);Wd(i,P,E);break;case 3:case 4:var z=u.stateNode.containerInfo,F=Yv(i);Gv(i,F,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 Li(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)qA(i,s.alternate,s),s=s.sibling}function Vs(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),Vs(s);break;case 1:ui(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&LA(s,s.return,u),Vs(s);break;case 27:dc(s.stateNode);case 26:case 5:ui(s,s.return),Vs(s);break;case 22:s.memoizedState===null&&Vs(s);break;case 30:Vs(s);break;default:Vs(s)}i=i.sibling}}function Ii(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:Ii(v,x,u),nc(4,x);break;case 1:if(Ii(v,x,u),d=x,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(F){tt(d,d.return,F)}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(F){tt(d,d.return,F)}}u&&E&64&&zA(x),rc(x,x.return);break;case 27:UA(x);case 26:case 5:Ii(v,x,u),u&&d===null&&E&4&&IA(x),rc(x,x.return);break;case 12:Ii(v,x,u);break;case 31:Ii(v,x,u),u&&E&4&&FA(v,x);break;case 13:Ii(v,x,u),u&&E&4&&KA(v,x);break;case 22:x.memoizedState===null&&Ii(v,x,u),rc(x,x.return);break;case 30:break;default:Ii(v,x,u)}s=s.sibling}}function Qv(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&&Vu(u))}function Xv(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Vu(i))}function Hr(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:Hr(i,s,u,d),v&2048&&nc(9,s);break;case 1:Hr(i,s,u,d);break;case 3:Hr(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&&Vu(i)));break;case 12:if(v&2048){Hr(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 Hr(i,s,u,d);break;case 31:Hr(i,s,u,d);break;case 13:Hr(i,s,u,d);break;case 23:break;case 22:x=s.stateNode,E=s.alternate,s.memoizedState!==null?x._visibility&2?Hr(i,s,u,d):ic(i,s):x._visibility&2?Hr(i,s,u,d):(x._visibility|=2,cl(i,s,u,d,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Qv(E,s);break;case 24:Hr(i,s,u,d),v&2048&&Xv(s.alternate,s);break;default:Hr(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,F=E.flags;switch(E.tag){case 0:case 11:case 15:cl(x,E,P,z,v),nc(8,E);break;case 23:break;case 22:var ee=E.stateNode;E.memoizedState!==null?ee._visibility&2?cl(x,E,P,z,v):ic(x,E):(ee._visibility|=2,cl(x,E,P,z,v)),v&&F&2048&&Qv(E.alternate,E);break;case 24:cl(x,E,P,z,v),v&&F&2048&&Xv(E.alternate,E);break;default:cl(x,E,P,z,v)}s=s.sibling}}function ic(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:ic(u,d),v&2048&&Qv(d.alternate,d);break;case 24:ic(u,d),v&2048&&Xv(d.alternate,d);break;default:ic(u,d)}s=s.sibling}}var ac=8192;function fl(i,s,u){if(i.subtreeFlags&ac)for(i=i.child;i!==null;)QA(i,s,u),i=i.sibling}function QA(i,s,u){switch(i.tag){case 26:fl(i,s,u),i.flags&ac&&i.memoizedState!==null&&UB(u,Vr,i.memoizedState,i.memoizedProps);break;case 5:fl(i,s,u);break;case 3:case 4:var d=Vr;Vr=ch(i.stateNode.containerInfo),fl(i,s,u),Vr=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=ac,ac=16777216,fl(i,s,u),ac=d):fl(i,s,u));break;default:fl(i,s,u)}}function XA(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 sc(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)}XA(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:sc(i),i.flags&2048&&Ia(9,i,i.return);break;case 3:sc(i);break;case 12:sc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Xd(i)):sc(i);break;default:sc(i)}}function Xd(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)}XA(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ia(8,s,s.return),Xd(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Xd(s));break;default:Xd(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:Vu(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 tB={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}},nB=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ut=null,Ue=null,qe=0,et=0,sr=null,Ba=!1,dl=!1,Zv=!1,Bi=0,Nt=0,Ua=0,Hs=0,Jv=0,or=0,hl=0,oc=null,Fn=null,ey=!1,Zd=0,eO=0,Jd=1/0,eh=null,$a=null,Yt=0,qa=null,ml=null,Ui=0,ty=0,ny=null,tO=null,lc=0,ry=null;function lr(){return(Xe&2)!==0&&qe!==0?qe&-qe:q.T!==null?uy():vj()}function nO(){if(or===0)if((qe&536870912)===0||He){var i=ld;ld<<=1,(ld&3932160)===0&&(ld=262144),or=i}else or=536870912;return i=ir.current,i!==null&&(i.flags|=32),or}function Kn(i,s,u){(i===ut&&(et===2||et===9)||i.cancelPendingCommit!==null)&&(pl(i,0),Va(i,qe,or,!1)),Cu(i,u),((Xe&2)===0||i!==ut)&&(i===ut&&((Xe&2)===0&&(Hs|=u),Nt===4&&Va(i,qe,or,!1)),ci(i))}function rO(i,s,u){if((Xe&6)!==0)throw Error(r(327));var d=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Tu(i,s),v=d?aB(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&&!rB(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=oc;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=Fn,Fn=v,x!==null&&(Fn===null?Fn=x:Fn.push.apply(Fn,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:Fn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Zd+300-ue(),10<v)){if(Va(d,s,or,!Ba),cd(d,0,!0)!==0)break e;Ui=s,d.timeoutHandle=DO(iO.bind(null,d,u,Fn,eh,ey,s,or,Hs,hl,Ba,x,"Throttled",-0,0),v);break e}iO(d,u,Fn,eh,ey,s,or,Hs,hl,Ba,x,null,-0,0)}}break}while(!0);ci(i)}function iO(i,s,u,d,v,x,E,P,z,F,ee,re,G,X){if(i.timeoutHandle=-1,re=s.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Oi},QA(s,x,re);var ge=(x&62914560)===x?Zd-ue():(x&4194048)===x?eO-ue():0;if(ge=$B(re,ge),ge!==null){Ui=x,i.cancelPendingCommit=ge(dO.bind(null,i,s,x,u,d,v,E,P,z,ee,re,null,G,X)),Va(i,x,E,!F);return}}dO(i,s,x,u,d,v,E,P,z)}function rB(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 th(){return(Xe&6)===0?(uc(0),!1):!0}function iy(){if(Ue!==null){if(et===0)var i=Ue.return;else i=Ue,Ci=Rs=null,bv(i),al=null,Fu=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,jB(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Ui=0,iy(),ut=i,Ue=u=Ni(i.current,null),qe=s,et=0,sr=null,Ba=!1,dl=Tu(i,s),Zv=!1,hl=or=Jv=Hs=Ua=Nt=0,Fn=oc=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 Bi=s,Sd(),u}function aO(i,s){Re=null,q.H=Ju,s===il||s===kd?(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,Hd(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=Ju,i===null?Ju:i}function lO(){var i=q.A;return q.A=tB,i}function nh(){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=Xe;Xe|=2;var v=oO(),x=lO();(ut!==i||qe!==s)&&(eh=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 F=et;if(et=0,sr=null,gl(i,P,z,F),u&&dl){E=0;break e}break;default:F=et,et=0,sr=null,gl(i,P,z,F)}}iB(),E=Nt;break}catch(ee){aO(i,ee)}while(!0);return s&&i.shellSuspendCounter++,Ci=Rs=null,Xe=d,q.H=v,q.A=x,Ue===null&&(ut=null,qe=0,Sd()),E}function iB(){for(;Ue!==null;)uO(Ue)}function aB(i,s){var u=Xe;Xe|=2;var d=oO(),v=lO();ut!==i||qe!==s?(eh=null,Jd=ue()+500,pl(i,s)):dl=Tu(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),ci(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 F=P.return;F!==null?(Ue=F,rh(F)):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))}}sB();break}catch(ee){aO(i,ee)}while(!0);return Ci=Rs=null,q.H=d,q.A=v,Xe=u,Ue!==null?0:(ut=null,qe=0,Sd(),Nt)}function sB(){for(;Ue!==null&&!ad();)uO(Ue)}function uO(i){var s=_A(i.alternate,i,Bi);i.memoizedProps=i.pendingProps,s===null?rh(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,Bi),s=_A(u,s,Bi)}i.memoizedProps=i.pendingProps,s===null?rh(i):Ue=s}function gl(i,s,u,d){Ci=Rs=null,bv(s),al=null,Fu=0;var v=s.return;try{if(GI(i,v,s,u,qe)){Nt=1,Hd(i,yr(u,i.current)),Ue=null;return}}catch(x){if(v!==null)throw Ue=v,x;Nt=1,Hd(i,yr(u,i.current)),Ue=null;return}s.flags&32768?(He||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)):rh(s)}function rh(i){var s=i;do{if((s.flags&32768)!==0){fO(s,Ba);return}i=s.return;var u=XI(s.alternate,s,Bi);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=ZI(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 ih();while(Yt!==0);if((Xe&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,B6(i,u,x,E,P,z),i===ut&&(Ue=ut=null,qe=0),ml=s,qa=i,Ui=u,ty=x,ny=v,tO=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,cB(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=Xe,Xe|=4;try{JI(i,s,u)}finally{Xe=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=Xe;Xe|=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 F=z.start,ee=z.end;if(ee===void 0&&(ee=F),"selectionStart"in P)P.selectionStart=F,P.selectionEnd=Math.min(ee,P.value.length);else{var re=P.ownerDocument||document,G=re&&re.defaultView||window;if(G.getSelection){var X=G.getSelection(),ge=P.textContent.length,Ne=Math.min(z.start,ge),st=z.end===void 0?Ne:Math.min(z.end,ge);!X.extend&&Ne>st&&(E=st,st=Ne,Ne=E);var U=Xj(P,Ne),I=Xj(P,st);if(U&&I&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==I.node||X.focusOffset!==I.offset)){var V=re.createRange();V.setStart(U.node,U.offset),X.removeAllRanges(),Ne>st?(X.addRange(V),X.extend(I.node,I.offset)):(V.setEnd(I.node,I.offset),X.addRange(V))}}}}for(re=[],X=P;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<re.length;P++){var te=re[P];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}gh=!!gy,vy=gy=null}finally{Xe=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=Xe;Xe|=4;try{qA(i,s.alternate,s)}finally{Xe=v,W.p=d,q.T=u}}Yt=3}}function pO(){if(Yt===4||Yt===3){Yt=0,sd();var i=qa,s=ml,u=Ui,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(Nu,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=q.T,v=W.p,W.p=2,q.T=null;try{for(var x=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}}(Ui&3)!==0&&ih(),ci(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===ry?lc++:(lc=0,ry=i):lc=0,uc(0)}}function gO(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Vu(s)))}function ih(){return hO(),mO(),pO(),vO()}function vO(){if(Yt!==5)return!1;var i=qa,s=ty;ty=0;var u=jg(Ui),d=q.T,v=W.p;try{W.p=32>u?32:u,q.T=null,u=ny,ny=null;var x=qa,E=Ui;if(Yt=0,ml=qa=null,Ui=0,(Xe&6)!==0)throw Error(r(331));var P=Xe;if(Xe|=4,ZA(x.current),WA(x,x.current,E,u),Xe=P,uc(0,!1),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(Nu,x)}catch{}return!0}finally{W.p=v,q.T=d,gO(i,s)}}function yO(i,s,u){s=yr(u,s),s=Rv(i.stateNode,s,2),i=Ra(i,s,2),i!==null&&(Cu(i,2),ci(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),Cu(d,2),ci(d));break}}s=s.return}}function sy(i,s,u){var d=i.pingCache;if(d===null){d=i.pingCache=new nB;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=oB.bind(null,i,s,u),s.then(i,i))}function oB(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()-Zd?(Xe&2)===0&&pl(i,0):Jv|=u,hl===qe&&(hl=0)),ci(i)}function xO(i,s){s===0&&(s=hj()),i=Ps(i,s),i!==null&&(Cu(i,s),ci(i))}function lB(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),xO(i,u)}function uB(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 cB(i,s){return zo(i,s)}var ah=null,vl=null,oy=!1,sh=!1,ly=!1,Ha=0;function ci(i){i!==vl&&i.next===null&&(vl===null?ah=vl=i:vl=vl.next=i),sh=!0,oy||(oy=!0,dB())}function uc(i,s){if(!ly&&sh){ly=!0;do for(var u=!1,d=ah;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=cd(d,d===ut?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(x&3)===0||Tu(d,x)||(u=!0,jO(d,x));d=d.next}while(u);ly=!1}}function fB(){bO()}function bO(){sh=oy=!1;var i=0;Ha!==0&&SB()&&(i=Ha);for(var s=ue(),u=null,d=ah;d!==null;){var v=d.next,x=wO(d,s);x===0?(d.next=null,u===null?ah=v:u.next=v,v===null&&(vl=u)):(u=d,(i!==0||(x&3)!==0)&&(sh=!0)),d=v}Yt!==0&&Yt!==5||uc(i),Ha!==0&&(Ha=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]=I6(P,s)):z<=s&&(i.expiredLanes|=P),x&=~P}if(s=ut,u=qe,u=cd(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||Tu(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(ih()&&i.callbackNode!==u)return null;var d=qe;return d=cd(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(ih())return null;rO(i,s,!0)}function dB(){AB(function(){(Xe&6)!==0?zo(De,fB):bO()})}function uy(){if(Ha===0){var i=nl;i===0&&(i=od,od<<=1,(od&261888)===0&&(od=256)),Ha=i}return Ha}function AO(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:md(""+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 hB(i,s,u,d,v){if(s==="submit"&&u&&u.stateNode===v){var x=AO((v[Un]||null).action),E=d.submitter;E&&(s=(s=E[Un]||null)?AO(s.formAction):E.getAttribute("formAction"),s!==null&&(x=s,E=null));var P=new yd("action","action",null,d,v);i.push({event:P,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ha!==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],mB=fy.toLowerCase(),pB=fy[0].toUpperCase()+fy.slice(1);qr(mB,"on"+pB)}qr(n2,"onAnimationEnd"),qr(r2,"onAnimationIteration"),qr(i2,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(MI,"onTransitionRun"),qr(PI,"onTransitionStart"),qr(_I,"onTransitionCancel"),qr(a2,"onTransitionEnd"),qo("onMouseEnter",["mouseout","mouseover"]),qo("onMouseLeave",["mouseout","mouseover"]),qo("onPointerEnter",["pointerout","pointerover"]),qo("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cc));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,F=P.currentTarget;if(P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=F;try{x(v)}catch(ee){wd(ee)}v.currentTarget=null,x=z}else for(E=0;E<d.length;E++){if(P=d[E],z=P.instance,F=P.currentTarget,P=P.listener,z!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=F;try{x(v)}catch(ee){wd(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 oh="_reactListening"+Math.random().toString(36).slice(2);function hy(i){if(!i[oh]){i[oh]=!0,bj.forEach(function(u){u!=="selectionchange"&&(gB.has(u)||dy(u,!1,i),dy(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[oh]||(s[oh]=!0,dy("selectionchange",!1,s))}}function NO(i,s,u,d){switch(nE(s)){case 2:var v=HB;break;case 8:v=FB;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 F=x,ee=Mg(u),re=[];e:{var G=s2.get(i);if(G!==void 0){var X=yd,ge=i;switch(i){case"keypress":if(gd(u)===0)break e;case"keydown":case"keyup":X=uI;break;case"focusin":ge="focus",X=Lg;break;case"focusout":ge="blur",X=Lg;break;case"beforeblur":case"afterblur":X=Lg;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Rj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=X6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=dI;break;case n2:case r2:case i2:X=eI;break;case a2:X=mI;break;case"scroll":case"scrollend":X=W6;break;case"wheel":X=gI;break;case"copy":case"cut":case"paste":X=nI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Lj;break;case"toggle":case"beforetoggle":X=yI}var Ne=(s&4)!==0,st=!Ne&&(i==="scroll"||i==="scrollend"),U=Ne?G!==null?G+"Capture":null:G;Ne=[];for(var I=F,V;I!==null;){var te=I;if(V=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||V===null||U===null||(te=Pu(I,U),te!=null&&Ne.push(fc(I,te,V))),st)break;I=I.return}0<Ne.length&&(G=new X(G,ge,null,u,ee),re.push({event:G,listeners:Ne}))}}if((s&7)===0){e:{if(G=i==="mouseover"||i==="pointerover",X=i==="mouseout"||i==="pointerout",G&&u!==kg&&(ge=u.relatedTarget||u.fromElement)&&(Bo(ge)||ge[Io]))break e;if((X||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,X?(ge=u.relatedTarget||u.toElement,X=F,ge=ge?Bo(ge):null,ge!==null&&(st=o(ge),Ne=ge.tag,ge!==st||Ne!==5&&Ne!==27&&Ne!==6)&&(ge=null)):(X=null,ge=F),X!==ge)){if(Ne=Rj,te="onMouseLeave",U="onMouseEnter",I="mouse",(i==="pointerout"||i==="pointerover")&&(Ne=Lj,te="onPointerLeave",U="onPointerEnter",I="pointer"),st=X==null?G:Mu(X),V=ge==null?G:Mu(ge),G=new Ne(te,I+"leave",X,u,ee),G.target=st,G.relatedTarget=V,te=null,Bo(ee)===F&&(Ne=new Ne(U,I+"enter",ge,u,ee),Ne.target=V,Ne.relatedTarget=st,te=Ne),st=te,X&&ge)t:{for(Ne=vB,U=X,I=ge,V=0,te=U;te;te=Ne(te))V++;te=0;for(var je=I;je;je=Ne(je))te++;for(;0<V-te;)U=Ne(U),V--;for(;0<te-V;)I=Ne(I),te--;for(;V--;){if(U===I||I!==null&&U===I.alternate){Ne=U;break t}U=Ne(U),I=Ne(I)}Ne=null}else Ne=null;X!==null&&TO(re,G,X,Ne,!1),ge!==null&&st!==null&&TO(re,st,ge,Ne,!0)}}e:{if(G=F?Mu(F):window,X=G.nodeName&&G.nodeName.toLowerCase(),X==="select"||X==="input"&&G.type==="file")var Ke=Fj;else if(Vj(G))if(Kj)Ke=TI;else{Ke=EI;var be=OI}else X=G.nodeName,!X||X.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?F&&Cg(F.elementType)&&(Ke=Fj):Ke=NI;if(Ke&&(Ke=Ke(i,F))){Hj(re,Ke,u,ee);break e}be&&be(i,G,F),i==="focusout"&&F&&G.type==="number"&&F.memoizedProps.value!=null&&Tg(G,"number",G.value)}switch(be=F?Mu(F):window,i){case"focusin":(Vj(be)||be.contentEditable==="true")&&(Go=be,Vg=F,Uu=null);break;case"focusout":Uu=Vg=Go=null;break;case"mousedown":Hg=!0;break;case"contextmenu":case"mouseup":case"dragend":Hg=!1,e2(re,u,ee);break;case"selectionchange":if(kI)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)),be=lh(F,Ve),0<be.length&&(Ve=new zj(Ve,i,null,u,ee),re.push({event:Ve,listeners:be}),ze?Ve.data=ze:(ze=qj(u),ze!==null&&(Ve.data=ze)))),(ze=bI?wI(i,u):SI(i,u))&&(Ve=lh(F,"onBeforeInput"),0<Ve.length&&(be=new zj("onBeforeInput","beforeinput",null,u,ee),re.push({event:be,listeners:Ve}),be.data=ze)),hB(re,i,F,u,ee)}EO(re,s)})}function fc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function lh(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=Pu(i,u),v!=null&&d.unshift(fc(i,v,x)),v=Pu(i,s),v!=null&&d.push(fc(i,v,x))),i.tag===3)return d;i=i.return}return[]}function vB(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,F=P.stateNode;if(P=P.tag,z!==null&&z===d)break;P!==5&&P!==26&&P!==27||F===null||(z=F,v?(F=Pu(u,x),F!=null&&E.unshift(fc(u,F,z))):v||(F=Pu(u,x),F!=null&&E.push(fc(u,F,z)))),u=u.return}E.length!==0&&i.push({event:s,listeners:E})}var yB=/\r\n?/g,xB=/\u0000|\uFFFD/g;function CO(i){return(typeof i=="string"?i:""+i).replace(yB,`
|
|
49
|
+
`).replace(xB,"")}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===""||Ho(i,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&Ho(i,""+d);break;case"className":dd(i,"class",d);break;case"tabIndex":dd(i,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":dd(i,u,d);break;case"style":kj(i,d,x);break;case"data":if(s!=="object"){dd(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=md(""+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=md(""+d),i.setAttribute(u,d);break;case"onClick":d!=null&&(i.onclick=Oi);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=md(""+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),fd(i,"popover",d);break;case"xlinkActuate":Ai(i,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Ai(i,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Ai(i,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Ai(i,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Ai(i,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Ai(i,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Ai(i,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Ai(i,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Ai(i,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":fd(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=Y6.get(u)||u,fd(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"?Ho(i,d):(typeof d=="number"||typeof d=="bigint")&&Ho(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=Oi);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[Un]||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,""):fd(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,F=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":F=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,F,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<cc.length;d++)$e(cc[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(F in u)if(u.hasOwnProperty(F)&&(d=u[F],d!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:at(i,s,F,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 bB(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,F=null,ee=null;for(X in u){var re=u[X];if(u.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":z=re;default:d.hasOwnProperty(X)||at(i,s,X,null,d,re)}}for(var G in d){var X=d[G];if(re=u[G],d.hasOwnProperty(G)&&(X!=null||re!=null))switch(G){case"type":x=X;break;case"name":v=X;break;case"checked":F=X;break;case"defaultChecked":ee=X;break;case"value":E=X;break;case"defaultValue":P=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:X!==re&&at(i,s,G,X,d,re)}}Ng(i,E,P,z,F,ee,x,v);return;case"select":X=E=P=G=null;for(x in u)if(z=u[x],u.hasOwnProperty(x)&&z!=null)switch(x){case"value":break;case"multiple":X=z;default:d.hasOwnProperty(x)||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=X,G!=null?Vo(i,!!u,G,!1):!!d!=!!u&&(s!=null?Vo(i,!!u,s,!0):Vo(i,!!u,u?[]:"",!1));return;case"textarea":X=G=null;for(P in u)if(v=u[P],u.hasOwnProperty(P)&&v!=null&&!d.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default: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":X=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,X);return;case"option":for(var ge in u)if(G=u[ge],u.hasOwnProperty(ge)&&G!=null&&!d.hasOwnProperty(ge))switch(ge){case"selected":i.selected=!1;break;default:at(i,s,ge,null,d,G)}for(z in d)if(G=d[z],X=u[z],d.hasOwnProperty(z)&&G!==X&&(G!=null||X!=null))switch(z){case"selected":i.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:at(i,s,z,G,d,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in u)G=u[Ne],u.hasOwnProperty(Ne)&&G!=null&&!d.hasOwnProperty(Ne)&&at(i,s,Ne,null,d,G);for(F in d)if(G=d[F],X=u[F],d.hasOwnProperty(F)&&G!==X&&(G!=null||X!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:at(i,s,F,G,d,X)}return;default:if(Cg(s)){for(var st in u)G=u[st],u.hasOwnProperty(st)&&G!==void 0&&!d.hasOwnProperty(st)&&py(i,s,st,void 0,d,G);for(ee in d)G=d[ee],X=u[ee],!d.hasOwnProperty(ee)||G===X||G===void 0&&X===void 0||py(i,s,ee,G,d,X);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],X=u[re],!d.hasOwnProperty(re)||G===X||G==null&&X==null||at(i,s,re,G,d,X)}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 wB(){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],F=z.startTime;if(F>P)break;var ee=z.transferSize,re=z.initiatorType;ee&&MO(re)&&(z=z.responseEnd,E+=ee*(z<P?1:(P-F)/(z-F)))}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 uh(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 SB(){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,jB=typeof clearTimeout=="function"?clearTimeout:void 0,RO=typeof Promise=="function"?Promise:void 0,AB=typeof queueMicrotask=="function"?queueMicrotask:typeof RO<"u"?function(i){return RO.resolve(null).then(i).catch(OB)}:DO;function OB(i){setTimeout(function(){throw i})}function Fa(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")dc(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,dc(u);for(var x=u.firstChild;x;){var E=x.nextSibling,P=x.nodeName;x[ku]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=E}}else u==="body"&&dc(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 EB(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[ku])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 NB(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 TB(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=uh(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 dc(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Og(i)}var Ar=new Map,qO=new Set;function ch(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var $i=W.d;W.d={f:CB,r:kB,D:MB,C:PB,L:_B,m:DB,X:zB,S:RB,M:LB};function CB(){var i=$i.f(),s=th();return i||s}function kB(i){var s=Uo(i);s!==null&&s.tag===5&&s.type==="form"?aA(s):$i.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 MB(i){$i.D(i),VO("dns-prefetch",i,null)}function PB(i,s){$i.C(i,s),VO("preconnect",i,s)}function _B(i,s,u){$i.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=g({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(hc(x))||s==="script"&&d.querySelector(mc(x))||(s=d.createElement("link"),vn(s,"link",i),tn(s),d.head.appendChild(s)))}}function DB(i,s){$i.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=g({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(mc(x)))return}d=u.createElement("link"),vn(d,"link",i),tn(d),u.head.appendChild(d)}}}function RB(i,s,u){$i.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(hc(x)))P.loading=5;else{i=g({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(F,ee){z.onload=F,z.onerror=ee}),z.addEventListener("load",function(){P.loading|=1}),z.addEventListener("error",function(){P.loading|=2}),P.loading|=4,fh(E,s,d)}E={type:"stylesheet",instance:E,count:1,state:P},v.set(x,E)}}}function zB(i,s){$i.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(mc(v)),x||(i=g({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 LB(i,s){$i.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(mc(v)),x||(i=g({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 HO(i,s,u,d){var v=(v=Oe.current)?ch(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(hc(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||IB(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 hc(i){return'link[rel="stylesheet"]['+i+"]"}function FO(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function IB(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 mc(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=g({},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),fh(d,u.precedence,i),s.instance=d;case"stylesheet":v=xl(u.href);var x=i.querySelector(hc(v));if(x)return s.state.loading|=4,s.instance=x,tn(x),x;d=FO(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,fh(x,u.precedence,i),s.instance=x;case"script":return x=bl(u.src),(v=i.querySelector(mc(x)))?(s.instance=v,tn(v),v):(d=u,(v=Ar.get(x))&&(d=g({},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,fh(d,u.precedence,i));return s.instance}function fh(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 dh=null;function YO(i,s,u){if(dh===null){var d=new Map,v=dh=new Map;v.set(u,d)}else v=dh,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[ku]||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 BB(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 UB(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(hc(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=hh.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=x,tn(x);return}x=s.ownerDocument||s,d=FO(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=hh.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ey=0;function $B(i,s){return i.stylesheets&&i.count===0&&ph(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var d=setTimeout(function(){if(i.stylesheets&&ph(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+s);0<i.imgBytes&&Ey===0&&(Ey=62500*wB());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&ph(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 hh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ph(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var mh=null;function ph(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,mh=new Map,s.forEach(qB,i),mh=null,hh.call(i))}function qB(i,s){if(!(s.state.loading&4)){var u=mh.get(i);if(u)var d=u.get(null);else{u=new Map,mh.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=hh.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 pc={$$typeof:N,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function VB(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 QO(i,s,u,d,v,x,E,P,z,F,ee,re){return i=new VB(i,s,u,E,z,F,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 XO(i){return i?(i=Xo,i):Xo}function ZO(i,s,u,d,v,x){v=XO(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&&(Kn(u,i,s),Yu(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=Ps(i,67108864);s!==null&&Kn(s,i,67108864),Ny(i,67108864)}}function tE(i){if(i.tag===13||i.tag===31){var s=lr();s=Sg(s);var u=Ps(i,s);u!==null&&Kn(u,i,s),Ny(i,s)}}var gh=!0;function HB(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 FB(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(gh){var v=Cy(d);if(v===null)my(i,s,d,vh,u),rE(i,d);else if(YB(v,i,s,u,d))d.stopPropagation();else if(rE(i,d),s&4&&-1<KB.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=Ns(x.pendingLanes);if(E!==0){var P=x;for(P.pendingLanes|=2,P.entangledLanes|=2;E;){var z=1<<31-tr(E);P.entanglements[1]|=z,E&=~z}ci(x),(Xe&6)===0&&(Jd=ue()+500,uc(0))}}break;case 31:case 13:P=Ps(x,2),P!==null&&Kn(P,x,2),th(),Ny(x,2)}if(x=Cy(d),x===null&&my(i,s,d,vh,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 vh=null;function ky(i){if(vh=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 vh=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(Ee()){case De:return 2;case Ot:return 8;case Kt:case jn:return 32;case dn:return 268435456;default:return 32}default:return 32}}var My=!1,Ka=null,Ya=null,Ga=null,gc=new Map,vc=new Map,Wa=[],KB="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":gc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":vc.delete(s.pointerId)}}function yc(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 YB(i,s,u,d,v){switch(s){case"focusin":return Ka=yc(Ka,i,s,u,d,v),!0;case"dragenter":return Ya=yc(Ya,i,s,u,d,v),!0;case"mouseover":return Ga=yc(Ga,i,s,u,d,v),!0;case"pointerover":var x=v.pointerId;return gc.set(x,yc(gc.get(x)||null,i,s,u,d,v)),!0;case"gotpointercapture":return x=v.pointerId,vc.set(x,yc(vc.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 yh(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){yh(i)&&u.delete(s)}function GB(){My=!1,Ka!==null&&yh(Ka)&&(Ka=null),Ya!==null&&yh(Ya)&&(Ya=null),Ga!==null&&yh(Ga)&&(Ga=null),gc.forEach(aE),vc.forEach(aE)}function xh(i,s){i.blockedOn===s&&(i.blockedOn=null,My||(My=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,GB)))}var bh=null;function sE(i){bh!==i&&(bh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bh===i&&(bh=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 xh(z,i)}Ka!==null&&xh(Ka,i),Ya!==null&&xh(Ya,i),Ga!==null&&xh(Ga,i),gc.forEach(s),vc.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[Un]||null;if(typeof x=="function")E||sE(u);else if(E){var P=null;if(x&&x.hasAttribute("formAction")){if(v=x,E=x[Un]||null)P=E.formAction;else if(ky(v)!==null)continue}else P=E.action;typeof P=="function"?u[d+1]=P:(u.splice(d,3),d-=3),sE(u)}}}function oE(){function 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}wh.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)},wh.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),th(),s[Io]=null}};function wh(i){this._internalRoot=i}wh.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 WB={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{Nu=Sh.inject(WB),er=Sh}catch{}}return bc.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=QO(i,1,!1,null,null,u,d,null,v,x,E,oE),i[Io]=s.current,hy(i),new Py(s)},bc.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=QO(i,1,!0,s,u??null,d,v,z,x,E,P,oE),s.context=XO(null),u=s.current,d=lr(),d=Sg(d),v=Da(d),v.callback=null,Ra(u,v,d),u=d,s.current.lanes=u,Cu(s,u),ci(s),i[Io]=s.current,hy(i),new wh(s)},bc.version="19.2.3",bc}var kE;function q8(){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=$8(),Iy.exports}var V8=q8();const H8=wi(V8);/**
|
|
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 F8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K8=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ME=e=>{const t=K8(e);return t.charAt(0).toUpperCase()+t.slice(1)},P_=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Y8=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 G8={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 W8=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,...G8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P_("lucide",a),...!o&&!Y8(c)&&{"aria-hidden":"true"},...c},[...l.map(([h,m])=>w.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
65
|
+
* @license lucide-react v0.562.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Ae=(e,t)=>{const n=w.forwardRef(({className:r,...a},o)=>w.createElement(W8,{ref:o,iconNode:t,className:P_(`lucide-${F8(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 Q8=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Zn=Ae("activity",Q8);/**
|
|
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 X8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Cf=Ae("arrow-right",X8);/**
|
|
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 Z8=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],hm=Ae("bell",Z8);/**
|
|
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 J8=[["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"}]],eU=Ae("briefcase",J8);/**
|
|
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 tU=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ob=Ae("calendar",tU);/**
|
|
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 nU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],__=Ae("chart-column",nU);/**
|
|
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 rU=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],iU=Ae("chart-line",rU);/**
|
|
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 aU=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],sU=Ae("check-check",aU);/**
|
|
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 oU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lU=Ae("chevron-down",oU);/**
|
|
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 uU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],D_=Ae("chevron-left",uU);/**
|
|
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 cU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vp=Ae("chevron-right",cU);/**
|
|
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 fU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Zr=Ae("circle-alert",fU);/**
|
|
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 dU=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],R_=Ae("circle-check-big",dU);/**
|
|
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 hU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],H1=Ae("circle-check",hU);/**
|
|
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 mU=[["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"}]],pU=Ae("circle-question-mark",mU);/**
|
|
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 gU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],z_=Ae("circle-x",gU);/**
|
|
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 vU=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Jr=Ae("clock",vU);/**
|
|
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 yU=[["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"}]],xU=Ae("command",yU);/**
|
|
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 bU=[["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"}]],Zc=Ae("cpu",bU);/**
|
|
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 wU=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],lb=Ae("database",wU);/**
|
|
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 SU=[["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"}]],jU=Ae("external-link",SU);/**
|
|
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 AU=[["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"}]],OU=Ae("eye-off",AU);/**
|
|
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 EU=[["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"}]],NU=Ae("eye",EU);/**
|
|
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 TU=[["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"}]],F1=Ae("funnel",TU);/**
|
|
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 CU=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],kU=Ae("gauge",CU);/**
|
|
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 MU=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],ub=Ae("hard-drive",MU);/**
|
|
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 PU=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],L_=Ae("hourglass",PU);/**
|
|
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 _U=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Uc=Ae("info",_U);/**
|
|
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 DU=[["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"}]],RU=Ae("laptop",DU);/**
|
|
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 zU=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],I_=Ae("layout-dashboard",zU);/**
|
|
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 LU=[["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"}]],Jc=Ae("list-tree",LU);/**
|
|
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 IU=[["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"}]],BU=Ae("lock",IU);/**
|
|
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 UU=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],B_=Ae("log-out",UU);/**
|
|
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 $U=[["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"}]],qU=Ae("memory-stick",$U);/**
|
|
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 VU=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],PE=Ae("monitor",VU);/**
|
|
245
|
+
* @license lucide-react v0.562.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const HU=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],cb=Ae("moon",HU);/**
|
|
250
|
+
* @license lucide-react v0.562.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const FU=[["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"}]],KU=Ae("palette",FU);/**
|
|
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 YU=[["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"}]],GU=Ae("pause",YU);/**
|
|
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 WU=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],U_=Ae("play",WU);/**
|
|
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 QU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_E=Ae("plus",QU);/**
|
|
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 XU=[["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"}]],Ji=Ae("refresh-ccw",XU);/**
|
|
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 ZU=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],qy=Ae("rotate-cw",ZU);/**
|
|
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 JU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fu=Ae("search",JU);/**
|
|
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 e9=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yp=Ae("server",e9);/**
|
|
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 t9=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],K1=Ae("settings",t9);/**
|
|
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 n9=[["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"}]],r9=Ae("shield-check",n9);/**
|
|
300
|
+
* @license lucide-react v0.562.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const i9=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],$_=Ae("shield",i9);/**
|
|
305
|
+
* @license lucide-react v0.562.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const a9=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],fb=Ae("sun",a9);/**
|
|
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 s9=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],o9=Ae("terminal",s9);/**
|
|
315
|
+
* @license lucide-react v0.562.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const l9=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],jo=Ae("trash-2",l9);/**
|
|
320
|
+
* @license lucide-react v0.562.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const u9=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],DE=Ae("trending-up",u9);/**
|
|
325
|
+
* @license lucide-react v0.562.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const c9=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],f9=Ae("triangle-alert",c9);/**
|
|
330
|
+
* @license lucide-react v0.562.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const d9=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],RE=Ae("user",d9);/**
|
|
335
|
+
* @license lucide-react v0.562.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const h9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xp=Ae("x",h9);/**
|
|
340
|
+
* @license lucide-react v0.562.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const m9=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],q_=Ae("zap",m9);/**
|
|
345
|
+
* react-router v7.11.0
|
|
346
|
+
*
|
|
347
|
+
* Copyright (c) Remix Software Inc.
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the MIT license found in the
|
|
350
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
351
|
+
*
|
|
352
|
+
* @license MIT
|
|
353
|
+
*/var zE="popstate";function p9(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return db("",{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:ef(a)}return v9(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ni(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g9(){return Math.random().toString(36).substring(2,10)}function LE(e,t){return{usr:e.state,key:e.key,idx:t}}function db(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?du(t):t,state:n,key:t&&t.key||r||g9()}}function ef({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function du(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v9(e,t,n,r={}){let{window: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 g(){c="POP";let A=m(),O=A==null?null:A-h;h=A,f&&f({action:c,location:j.location,delta:O})}function y(A,O){c="PUSH";let T=db(j.location,A,O);h=m()+1;let N=LE(T,h),C=j.createHref(T);try{l.pushState(N,"",C)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(C)}o&&f&&f({action:c,location:j.location,delta:1})}function b(A,O){c="REPLACE";let T=db(j.location,A,O);h=m();let N=LE(T,h),C=j.createHref(T);l.replaceState(N,"",C),o&&f&&f({action:c,location:j.location,delta:0})}function S(A){return y9(A)}let j={get action(){return c},get location(){return e(a,l)},listen(A){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(zE,g),f=A,()=>{a.removeEventListener(zE,g),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 y9(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),St(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ef(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function V_(e,t,n="/"){return x9(e,t,n,!1)}function x9(e,t,n,r){let a=typeof t=="string"?du(t):t,o=ia(a.pathname||"/",n);if(o==null)return null;let l=H_(e);b9(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=M9(o);c=C9(l[f],h,r)}return c}function H_(e,t=[],n=[],r="",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 g=ea([r,m.relativePath]),y=n.concat(m);l.children&&l.children.length>0&&(St(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),H_(l.children,t,y,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:N9(g,l.index),routesMeta:y})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of F_(l.path))o(l,c,!0,h)}),t}function F_(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=F_(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 b9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var w9=/^:[\w-]+$/,S9=3,j9=2,A9=1,O9=10,E9=-2,IE=e=>e==="*";function N9(e,t){let n=e.split("/"),r=n.length;return n.some(IE)&&(r+=E9),t&&(r+=j9),n.filter(a=>!IE(a)).reduce((a,o)=>a+(w9.test(o)?S9:o===""?A9:O9),r)}function T9(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 C9(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)||"/",g=mm({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),y=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=mm({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:ea([o,g.pathname]),pathnameBase:R9(ea([o,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(o=ea([o,g.pathnameBase]))}return l}function mm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=k9(e.path,e.caseSensitive,e.end),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:g},y)=>{if(m==="*"){let S=c[y]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=c[y];return g&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function k9(e,t=!1,n=!0){ni(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 M9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ni(!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 ia(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 K_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P9=e=>K_.test(e);function _9(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?du(e):e,o;if(n)if(P9(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),ni(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?o=BE(n.substring(1),"/"):o=BE(n,t)}else o=t;return{pathname:o,search:z9(r),hash:L9(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 D9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Y_(e){let t=D9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function G_(e,t,n,r=!1){let a;typeof e=="string"?a=du(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 g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}c=g>=0?t[g]:"/"}let f=_9(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var ea=e=>e.join("/").replace(/\/\/+/g,"/"),R9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,I9=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function B9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function U9(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Q_(e,t){let n=e;if(typeof n!="string"||!K_.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(W_)try{let o=new URL(window.location.href),l=n.startsWith("//")?new URL(o.protocol+n):new URL(n),c=ia(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{ni(!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 X_=["POST","PUT","PATCH","DELETE"];new Set(X_);var $9=["GET",...X_];new Set($9);var hu=w.createContext(null);hu.displayName="DataRouter";var bp=w.createContext(null);bp.displayName="DataRouterState";var q9=w.createContext(!1),Z_=w.createContext({isTransitioning:!1});Z_.displayName="ViewTransition";var V9=w.createContext(new Map);V9.displayName="Fetchers";var H9=w.createContext(null);H9.displayName="Await";var Br=w.createContext(null);Br.displayName="Navigation";var kf=w.createContext(null);kf.displayName="Location";var pa=w.createContext({outlet:null,matches:[],isDataRoute:!1});pa.displayName="Route";var Y1=w.createContext(null);Y1.displayName="RouteError";var J_="REACT_ROUTER_ERROR",F9="REDIRECT",K9="ROUTE_ERROR_RESPONSE";function Y9(e){if(e.startsWith(`${J_}:${F9}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function G9(e){if(e.startsWith(`${J_}:${K9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new I9(t.status,t.statusText,t.data)}catch{}}function W9(e,{relative:t}={}){St(Mf(),"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}=Pf(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ea([n,o])),r.createHref({pathname:c,search:l,hash:a})}function Mf(){return w.useContext(kf)!=null}function js(){return St(Mf(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(kf).location}var eD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tD(e){w.useContext(Br).static||w.useLayoutEffect(e)}function G1(){let{isDataRoute:e}=w.useContext(pa);return e?l$():Q9()}function Q9(){St(Mf(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(hu),{basename:t,navigator:n}=w.useContext(Br),{matches:r}=w.useContext(pa),{pathname:a}=js(),o=JSON.stringify(Y_(r)),l=w.useRef(!1);return tD(()=>{l.current=!0}),w.useCallback((f,h={})=>{if(ni(l.current,eD),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=G_(f,JSON.parse(o),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ea([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,a,e])}w.createContext(null);function Pf(e,{relative:t}={}){let{matches:n}=w.useContext(pa),{pathname:r}=js(),a=JSON.stringify(Y_(n));return w.useMemo(()=>G_(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function X9(e,t){return nD(e,t)}function nD(e,t,n,r,a){var T;St(Mf(),"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:"/",g=c&&c.route;{let N=g&&g.path||"";iD(h,!g||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
354
|
+
|
|
355
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=js(),b;if(t){let N=typeof t=="string"?du(t):t;St(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=y;let S=b.pathname||"/",j=S;if(m!=="/"){let N=m.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=V_(e,{pathname:j});ni(g||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ni(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=n$(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:ea([m,o.encodeLocation?o.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ea([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(kf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},O):O}function Z9(){let e=o$(),t=B9(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",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 J9=w.createElement(Z9,null),rD=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=G9(e.digest);n&&(e=n)}let t=e!==void 0?w.createElement(pa.Provider,{value:this.props.routeContext},w.createElement(Y1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(e$,{error:e},t):t}};rD.contextType=q9;var Hy=new WeakMap;function e$({children:e,error:t}){let{basename:n}=w.useContext(Br);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Y9(t.digest);if(r){let a=Hy.get(t);if(a)throw a;let o=Q_(r.location,n);if(W_&&!Hy.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 Hy.set(t,l),l}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function t$({routeContext:e,match:t,children:n}){let r=w.useContext(hu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(pa.Provider,{value:e},n)}function n$(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(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);St(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let c=!1,f=-1;if(n)for(let m=0;m<o.length;m++){let g=o[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=m),g.route.id){let{loaderData:y,errors:b}=n,S=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||S){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}let h=n&&r?(m,g)=>{var y,b;r(m,{location:n.location,params:((b=(y=n.matches)==null?void 0:y[0])==null?void 0:b.params)??{},unstable_pattern:U9(n.matches),errorInfo:g})}:void 0;return o.reduceRight((m,g,y)=>{let b,S=!1,j=null,A=null;n&&(b=l&&g.route.id?l[g.route.id]:void 0,j=g.route.errorElement||J9,c&&(f<0&&y===0?(iD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,A=null):f===y&&(S=!0,A=g.route.hydrateFallbackElement||null)));let O=t.concat(o.slice(0,y+1)),T=()=>{let N;return b?N=j:S?N=A:g.route.Component?N=w.createElement(g.route.Component,null):g.route.element?N=g.route.element:N=m,w.createElement(t$,{match:g,routeContext:{outlet:m,matches:O,isDataRoute:n!=null},children:N})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?w.createElement(rD,{location:n.location,revalidation:n.revalidation,component:j,error:b,children:T(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):T()},null)}function W1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r$(e){let t=w.useContext(hu);return St(t,W1(e)),t}function i$(e){let t=w.useContext(bp);return St(t,W1(e)),t}function a$(e){let t=w.useContext(pa);return St(t,W1(e)),t}function Q1(e){let t=a$(e),n=t.matches[t.matches.length-1];return St(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function s$(){return Q1("useRouteId")}function o$(){var r;let e=w.useContext(Y1),t=i$("useRouteError"),n=Q1("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function l$(){let{router:e}=r$("useNavigate"),t=Q1("useNavigate"),n=w.useRef(!1);return tD(()=>{n.current=!0}),w.useCallback(async(a,o={})=>{ni(n.current,eD),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var UE={};function iD(e,t,n){!t&&!UE[e]&&(UE[e]=!0,ni(!1,n))}w.memo(u$);function u$({routes:e,future:t,state:n,onError:r}){return nD(e,void 0,n,r,t)}function es(e){St(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c$({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){St(!Mf(),"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=du(n));let{pathname:h="/",search:m="",hash:g="",state:y=null,key:b="default"}=n,S=w.useMemo(()=>{let j=ia(h,c);return j==null?null:{location:{pathname:j,search:m,hash:g,state:y,key:b},navigationType:r}},[c,h,m,g,y,b,r]);return ni(S!=null,`<Router basename="${c}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:w.createElement(Br.Provider,{value:f},w.createElement(kf.Provider,{children:t,value:S}))}function f$({children:e,location:t}){return X9(hb(e),t)}function hb(e,t=[]){let n=[];return w.Children.forEach(e,(r,a)=>{if(!w.isValidElement(r))return;let o=[...t,a];if(r.type===w.Fragment){n.push.apply(n,hb(r.props.children,o));return}St(r.type===es,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=hb(r.props.children,o)),n.push(l)}),n}var Xh="get",Zh="application/x-www-form-urlencoded";function wp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function d$(e){return wp(e)&&e.tagName.toLowerCase()==="button"}function h$(e){return wp(e)&&e.tagName.toLowerCase()==="form"}function m$(e){return wp(e)&&e.tagName.toLowerCase()==="input"}function p$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g$(e,t){return e.button===0&&(!t||t==="_self")&&!p$(e)}var Oh=null;function v$(){if(Oh===null)try{new FormData(document.createElement("form"),0),Oh=!1}catch{Oh=!0}return Oh}var y$=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fy(e){return e!=null&&!y$.has(e)?(ni(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zh}"`),null):e}function x$(e,t){let n,r,a,o,l;if(h$(e)){let c=e.getAttribute("action");r=c?ia(c,t):null,n=e.getAttribute("method")||Xh,a=Fy(e.getAttribute("enctype"))||Zh,o=new FormData(e)}else if(d$(e)||m$(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?ia(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xh,a=Fy(e.getAttribute("formenctype"))||Fy(c.getAttribute("enctype"))||Zh,o=new FormData(c,e),!v$()){let{name:h,type:m,value:g}=e;if(m==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,g)}}else{if(wp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xh,r=null,a=Zh,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 X1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function b$(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ia(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function w$(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function S$(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function j$(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await w$(o,n);return l.links?l.links():[]}return[]}));return N$(r.flat(1).filter(S$).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 g;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function A$(e,t,{includeHydrateFallback:n}={}){return O$(e.map(r=>{let 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 O$(e){return[...new Set(e)]}function E$(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function N$(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(E$(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function aD(){let e=w.useContext(hu);return X1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T$(){let e=w.useContext(bp);return X1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Z1=w.createContext(void 0);Z1.displayName="FrameworkContext";function sD(){let e=w.useContext(Z1);return X1(e,"You must render this element inside a <HydratedRouter> element"),e}function C$(e,t){let n=w.useContext(Z1),[r,a]=w.useState(!1),[o,l]=w.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=t,y=w.useRef(null);w.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let j=O=>{O.forEach(T=>{l(T.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return y.current&&A.observe(y.current),()=>{A.disconnect()}}},[e]),w.useEffect(()=>{if(r){let j=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(j)}}},[r]);let b=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:wc(c,b),onBlur:wc(f,S),onMouseEnter:wc(h,b),onMouseLeave:wc(m,S),onTouchStart:wc(g,b)}]:[!1,y,{}]}function wc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function k$({page:e,...t}){let{router:n}=aD(),r=w.useMemo(()=>V_(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(P$,{page:e,matches:r,...t}):null}function M$(e){let{manifest:t,routeModules:n}=sD(),[r,a]=w.useState([]);return w.useEffect(()=>{let o=!1;return j$(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function P$({page:e,matches:t,...n}){let r=js(),{manifest:a,routeModules:o}=sD(),{basename:l}=aD(),{loaderData:c,matches:f}=T$(),h=w.useMemo(()=>$E(e,t,f,a,r,"data"),[e,t,f,a,r]),m=w.useMemo(()=>$E(e,t,f,a,r,"assets"),[e,t,f,a,r]),g=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,j=!1;if(t.forEach(O=>{var N;let T=a.routes[O.route.id];!T||!T.hasLoader||(!h.some(C=>C.route.id===O.route.id)&&O.route.id in c&&((N=o[O.route.id])!=null&&N.shouldRevalidate)||T.hasClientLoader?j=!0:S.add(O.route.id))}),S.size===0)return[];let A=b$(e,l,"data");return j&&S.size>0&&A.searchParams.set("_routes",t.filter(O=>S.has(O.route.id)).map(O=>O.route.id).join(",")),[A.pathname+A.search]},[l,c,r,a,h,t,e,o]),y=w.useMemo(()=>A$(m,a),[m,a]),b=M$(m);return w.createElement(w.Fragment,null,g.map(S=>w.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),y.map(S=>w.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),b.map(({key:S,link:j})=>w.createElement("link",{key:S,nonce:n.nonce,...j})))}function _$(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var D$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D$&&(window.__reactRouterVersion="7.11.0")}catch{}function R$({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=w.useRef();a.current==null&&(a.current=p9({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(c$,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var oD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lD=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:g,unstable_defaultShouldRevalidate:y,...b},S){let{basename:j,unstable_useTransitions:A}=w.useContext(Br),O=typeof h=="string"&&oD.test(h),T=Q_(h,j);h=T.to;let N=W9(h,{relative:a}),[C,M,_]=C$(r,b),k=I$(h,{replace:l,state:c,target:f,preventScrollReset:m,relative:a,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:A});function D(K){t&&t(K),K.defaultPrevented||k(K)}let B=w.createElement("a",{...b,..._,href:T.absoluteURL||N,onClick:T.isExternal||o?t:D,ref:_$(S,M),target:f,"data-discover":!O&&n==="render"?"true":void 0});return C&&!O?w.createElement(w.Fragment,null,B,w.createElement(k$,{page:N})):B});lD.displayName="Link";var uD=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 g=Pf(l,{relative:h.relative}),y=js(),b=w.useContext(bp),{navigator:S,basename:j}=w.useContext(Br),A=b!=null&&V$(g)&&c===!0,O=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,T=y.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(T=T.toLowerCase(),N=N?N.toLowerCase():null,O=O.toLowerCase()),N&&j&&(N=ia(N,j)||N);const C=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let M=T===O||!a&&T.startsWith(O)&&T.charAt(C)==="/",_=N!=null&&(N===O||!a&&N.startsWith(O)&&N.charAt(O.length)==="/"),k={isActive:M,isPending:_,isTransitioning:A},D=M?t:void 0,B;typeof r=="function"?B=r(k):B=[r,M?"active":null,_?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(k):o;return w.createElement(lD,{...h,"aria-current":D,className:B,ref:m,style:K,to:l,viewTransition:c},typeof f=="function"?f(k):f)});uD.displayName="NavLink";var z$=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:g,unstable_defaultShouldRevalidate:y,...b},S)=>{let{unstable_useTransitions:j}=w.useContext(Br),A=$$(),O=q$(c,{relative:h}),T=l.toLowerCase()==="get"?"get":"post",N=typeof c=="string"&&oD.test(c),C=M=>{if(f&&f(M),M.defaultPrevented)return;M.preventDefault();let _=M.nativeEvent.submitter,k=(_==null?void 0:_.getAttribute("formmethod"))||l,D=()=>A(_||M.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:a,state:o,relative:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y});j&&n!==!1?w.startTransition(()=>D()):D()};return w.createElement("form",{ref:S,method:T,action:O,onSubmit:r?f:C,...b,"data-discover":!N&&e==="render"?"true":void 0})});z$.displayName="Form";function L$(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cD(e){let t=w.useContext(hu);return St(t,L$(e)),t}function I$(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=G1(),m=js(),g=Pf(e,{relative:o});return w.useCallback(y=>{if(g$(y,t)){y.preventDefault();let b=n!==void 0?n:ef(m)===ef(g),S=()=>h(e,{replace:b,state:r,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});f?w.startTransition(()=>S()):S()}},[m,h,g,n,r,t,e,a,o,l,c,f])}var B$=0,U$=()=>`__${String(++B$)}__`;function $$(){let{router:e}=cD("useSubmit"),{basename:t}=w.useContext(Br),n=s$(),r=e.fetch,a=e.navigate;return w.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:g}=x$(o,t);if(l.navigate===!1){let y=l.fetcherKey||U$();await r(y,n,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await a(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function q$(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={...Pf(e||".",{relative:t})},l=js();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ea([n,o.pathname])),ef(o)}function V$(e,{relative:t}={}){let n=w.useContext(Z_);St(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=cD("useViewTransitionState"),a=Pf(e,{relative:t});if(!n.isTransitioning)return!1;let o=ia(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ia(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mm(a.pathname,l)!=null||mm(a.pathname,o)!=null}var _f=M_();const fD=w.createContext(null);function Sp(){const e=w.useContext(fD);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function H$({children:e}){const[t,n]=w.useState(!1),[r,a]=w.useState(!1),[o,l]=w.useState(!0),c=w.useCallback(async()=>{try{const g=await(await fetch("/api/auth/status")).json();a(g.enabled),n(g.authenticated)}catch(m){console.error("Failed to check auth status:",m),n(!1)}finally{l(!1)}},[]),f=async m=>{try{const y=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:m})})).json();return y.success?(n(!0),{success:!0}):{success:!1,error:y.error||"Login failed"}}catch{return{success:!1,error:"Network error"}}},h=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch(m){console.error("Logout error:",m)}finally{n(!1)}};return w.useEffect(()=>{c()},[c]),p.jsx(fD.Provider,{value:{isAuthenticated:t,isAuthEnabled:r,isLoading:o,login:f,logout:h,checkAuth:c},children:e})}const dD=w.createContext(null);function J1(){const e=w.useContext(dD);if(!e)throw new Error("useNotifications must be used within a NotificationProvider");return e}function F$({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(g=>[m,...g].slice(0,50))},[]),o=w.useCallback(h=>{n(m=>m.map(g=>g.id===h?{...g,read:!0}:g))},[]),l=w.useCallback(()=>{n(h=>h.map(m=>({...m,read:!0})))},[]),c=w.useCallback(()=>{n([])},[]),f=w.useCallback(h=>{n(m=>m.filter(g=>g.id!==h))},[]);return w.useEffect(()=>{const h=m=>{const g=m.detail;(g.level==="error"||g.level==="warn")&&a({type:g.level==="error"?"error":"warning",title:g.level==="error"?"Job Failed":"Warning",message:g.message||"An event occurred",source:g.queue||g.source})};return window.addEventListener("flux-log-update",h),()=>window.removeEventListener("flux-log-update",h)},[a]),p.jsx(dD.Provider,{value:{notifications:t,unreadCount:r,addNotification:a,markAsRead:o,markAllAsRead:l,clearAll:c,removeNotification:f},children:e})}const ew=w.createContext({});function tw(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const nw=typeof window<"u",hD=nw?w.useLayoutEffect:w.useEffect,jp=w.createContext(null);function rw(e,t){e.indexOf(t)===-1&&e.push(t)}function Ap(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const aa=(e,t,n)=>n>t?t:n<e?e:n;let iw=()=>{};const sa={},mD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function pD(e){return typeof e=="object"&&e!==null}const gD=e=>/^0[^.\s]+$/u.test(e);function aw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dr=e=>e,K$=(e,t)=>n=>t(e(n)),Df=(...e)=>e.reduce(K$),Zl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class sw{constructor(){this.subscriptions=[]}add(t){return rw(this.subscriptions,t),()=>Ap(this.subscriptions,t)}notify(t,n,r){const 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 ei=e=>e*1e3,Pr=e=>e/1e3;function vD(e,t){return t?e*(1e3/t):0}const Y$=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},yD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,G$=1e-7,W$=12;function Q$(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=yD(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>G$&&++c<W$);return l}function Rf(e,t,n,r){if(e===t&&n===r)return Dr;const a=o=>Q$(o,0,1,e,n);return o=>o===0||o===1?o:yD(a(o),t,r)}const xD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bD=e=>t=>1-e(1-t),wD=Rf(.33,1.53,.69,.99),ow=bD(wD),SD=xD(ow),jD=e=>(e*=2)<1?.5*ow(e):.5*(2-Math.pow(2,-10*(e-1))),lw=e=>1-Math.sin(Math.acos(e)),AD=bD(lw),OD=xD(lw),X$=Rf(.42,0,1,1),Z$=Rf(0,0,.58,1),ED=Rf(.42,0,.58,1),ND=e=>Array.isArray(e)&&typeof e[0]!="number";function TD(e,t){return ND(e)?e[Y$(0,e.length,t)]:e}const CD=e=>Array.isArray(e)&&typeof e[0]=="number",J$={linear:Dr,easeIn:X$,easeInOut:ED,easeOut:Z$,circIn:lw,circInOut:OD,circOut:AD,backIn:ow,backInOut:SD,backOut:wD,anticipate:jD},eq=e=>typeof e=="string",qE=e=>{if(CD(e)){iw(e.length===4);const[t,n,r,a]=e;return Rf(t,n,r,a)}else if(eq(e))return J$[e];return e},Eh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tq(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,g=!1,y=!1)=>{const S=y&&a?n:r;return g&&l.add(m),S.has(m)||S.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,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 nq=40;function kD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Eh.reduce((N,C)=>(N[C]=tq(o),N),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:g,preRender:y,render:b,postRender:S}=l,j=()=>{const N=sa.useManualTiming?a.timestamp:performance.now();n=!1,sa.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(N-a.timestamp,nq),1)),a.timestamp=N,a.isProcessing=!0,c.process(a),f.process(a),h.process(a),m.process(a),g.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:Eh.reduce((N,C)=>{const M=l[C];return N[C]=(_,k=!1,D=!1)=>(n||A(),M.schedule(_,k,D)),N},{}),cancel:N=>{for(let C=0;C<Eh.length;C++)l[Eh[C]].cancel(N)},state:a,steps:l}}const{schedule:xt,cancel:vs,state:xn,steps:Ky}=kD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dr,!0);let Jh;function rq(){Jh=void 0}const Wn={now:()=>(Jh===void 0&&Wn.set(xn.isProcessing||sa.useManualTiming?xn.timestamp:performance.now()),Jh),set:e=>{Jh=e,queueMicrotask(rq)}},MD=e=>t=>typeof t=="string"&&t.startsWith(e),PD=MD("--"),iq=MD("var(--"),uw=e=>iq(e)?aq.test(e.split("/*")[0].trim()):!1,aq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},tf={...mu,transform:e=>aa(0,1,e)},Nh={...mu,default:1},$c=e=>Math.round(e*1e5)/1e5,cw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sq(e){return e==null}const oq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fw=(e,t)=>n=>!!(typeof n=="string"&&oq.test(n)&&n.startsWith(e)||t&&!sq(n)&&Object.prototype.hasOwnProperty.call(n,t)),_D=(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}},lq=e=>aa(0,255,e),Yy={...mu,transform:e=>Math.round(lq(e))},Js={test:fw("rgb","red"),parse:_D("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yy.transform(e)+", "+Yy.transform(t)+", "+Yy.transform(n)+", "+$c(tf.transform(r))+")"};function uq(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 mb={test:fw("#"),parse:uq,transform:Js.transform},zf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ts=zf("deg"),gi=zf("%"),Ce=zf("px"),cq=zf("vh"),fq=zf("vw"),VE={...gi,parse:e=>gi.parse(e)/100,transform:e=>gi.transform(e*100)},Cl={test:fw("hsl","hue"),parse:_D("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gi.transform($c(t))+", "+gi.transform($c(n))+", "+$c(tf.transform(r))+")"},qt={test:e=>Js.test(e)||mb.test(e)||Cl.test(e),parse:e=>Js.test(e)?Js.parse(e):Cl.test(e)?Cl.parse(e):mb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Js.transform(e):Cl.transform(e),getAnimatableNone:e=>{const t=qt.parse(e);return t.alpha=0,qt.transform(t)}},dq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cw))==null?void 0:t.length)||0)+(((n=e.match(dq))==null?void 0:n.length)||0)>0}const DD="number",RD="color",mq="var",pq="var(",HE="${}",gq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function nf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(gq,f=>(qt.test(f)?(r.color.push(o),a.push(RD),n.push(qt.parse(f))):f.startsWith(pq)?(r.var.push(o),a.push(mq),n.push(f)):(r.number.push(o),a.push(DD),n.push(parseFloat(f))),++o,HE)).split(HE);return{values:n,split:c,indexes:r,types:a}}function zD(e){return nf(e).values}function LD(e){const{split:t,types:n}=nf(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===DD?o+=$c(a[l]):c===RD?o+=qt.transform(a[l]):o+=a[l]}return o}}const vq=e=>typeof e=="number"?0:qt.test(e)?qt.getAnimatableNone(e):e;function yq(e){const t=zD(e);return LD(e)(t.map(vq))}const ys={test:hq,parse:zD,createTransformer:LD,getAnimatableNone:yq};function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let 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 pm(e,t){return n=>n>0?t:e}const yt=(e,t,n)=>e+(t-e)*n,Wy=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},bq=[mb,Js,Cl],wq=e=>bq.find(t=>t.test(e));function FE(e){const t=wq(e);if(!t)return!1;let n=t.parse(e);return t===Cl&&(n=xq(n)),n}const KE=(e,t)=>{const n=FE(e),r=FE(t);if(!n||!r)return pm(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=yt(n.alpha,r.alpha,o),Js.transform(a))},pb=new Set(["none","hidden"]);function Sq(e,t){return pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jq(e,t){return n=>yt(e,t,n)}function dw(e){return typeof e=="number"?jq:typeof e=="string"?uw(e)?pm:qt.test(e)?KE:Eq:Array.isArray(e)?ID:typeof e=="object"?qt.test(e)?KE:Aq:pm}function ID(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 Aq(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 Oq(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 Eq=(e,t)=>{const n=ys.createTransformer(t),r=nf(e),a=nf(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?pb.has(e)&&!a.values.length||pb.has(t)&&!r.values.length?Sq(e,t):Df(ID(Oq(r,a),a.values),n):pm(e,t)};function BD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yt(e,t,n):dw(e)(e,t)}const Nq=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>vs(t),now:()=>xn.isProcessing?xn.timestamp:Wn.now()}},UD=(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)})`},gm=2e4;function hw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<gm;)t+=n,r=e.next(t);return t>=gm?1/0:t}function $D(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(hw(r),gm);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:Pr(a)}}const Tq=5;function qD(e,t,n){const r=Math.max(t-Tq,0);return vD(n-e(r),t-r)}const Ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qy=.001;function Cq({duration:e=Ct.duration,bounce:t=Ct.bounce,velocity:n=Ct.velocity,mass:r=Ct.mass}){let a,o,l=1-t;l=aa(Ct.minDamping,Ct.maxDamping,l),e=aa(Ct.minDuration,Ct.maxDuration,Pr(e)),l<1?(a=h=>{const m=h*l,g=m*e,y=m-n,b=gb(h,l),S=Math.exp(-g);return Qy-y/b*S},o=h=>{const g=h*l*e,y=g*n+n,b=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-g),j=gb(Math.pow(h,2),l);return(-a(h)+Qy>0?-1:1)*((y-b)*S)/j}):(a=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Qy+m*g},o=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,f=Mq(a,o,c);if(e=ei(e),isNaN(f))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const kq=12;function Mq(e,t,n){let r=n;for(let a=1;a<kq;a++)r=r-e(r)/t(r);return r}function gb(e,t){return e*Math.sqrt(1-t*t)}const Pq=["duration","bounce"],_q=["stiffness","damping","mass"];function YE(e,t){return t.some(n=>e[n]!==void 0)}function Dq(e){let t={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...e};if(!YE(e,_q)&&YE(e,Pq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*aa(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ct.mass,stiffness:a,damping:o}}else{const n=Cq(e);t={...t,...n,mass:Ct.mass},t.isResolvedFromDuration=!0}return t}function rf(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:g,velocity:y,isResolvedFromDuration:b}=Dq({...n,velocity:-Pr(n.velocity||0)}),S=y||0,j=h/(2*Math.sqrt(f*m)),A=l-o,O=Pr(Math.sqrt(f/m)),T=Math.abs(A)<5;r||(r=T?Ct.restSpeed.granular:Ct.restSpeed.default),a||(a=T?Ct.restDelta.granular:Ct.restDelta.default);let N;if(j<1){const M=gb(O,j);N=_=>{const k=Math.exp(-j*O*_);return l-k*((S+j*O*A)/M*Math.sin(M*_)+A*Math.cos(M*_))}}else if(j===1)N=M=>l-Math.exp(-O*M)*(A+(S+O*A)*M);else{const M=O*Math.sqrt(j*j-1);N=_=>{const k=Math.exp(-j*O*_),D=Math.min(M*_,300);return l-k*((S+j*O*A)*Math.sinh(D)+M*A*Math.cosh(D))/M}}const C={calculatedDuration:b&&g||null,next:M=>{const _=N(M);if(b)c.done=M>=g;else{let k=M===0?S:0;j<1&&(k=M===0?ei(S):qD(N,M,_));const D=Math.abs(k)<=r,B=Math.abs(l-_)<=a;c.done=D&&B}return c.value=c.done?l:_,c},toString:()=>{const M=Math.min(hw(C),gm),_=UD(k=>C.next(M*k).value,M,30);return M+"ms "+_},toTransition:()=>{}};return C}rf.applyToOptions=e=>{const t=$D(e,100,rf);return e.ease=t.ease,e.duration=ei(t.duration),e.type="keyframes",e};function vb({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 g=e[0],y={done:!1,value:g},b=D=>c!==void 0&&D<c||f!==void 0&&D>f,S=D=>c===void 0?f:f===void 0||Math.abs(c-D)<Math.abs(f-D)?c:f;let j=n*t;const A=g+j,O=l===void 0?A:l(A);O!==A&&(j=O-g);const T=D=>-j*Math.exp(-D/r),N=D=>O+T(D),C=D=>{const B=T(D),K=N(D);y.done=Math.abs(B)<=h,y.value=y.done?O:K};let M,_;const k=D=>{b(y.value)&&(M=D,_=rf({keyframes:[y.value,S(y.value)],velocity:qD(N,D,y.value),damping:a,stiffness:o,restDelta:h,restSpeed:m}))};return k(0),{calculatedDuration:null,next:D=>{let B=!1;return!_&&M===void 0&&(B=!0,C(D),k(D)),M!==void 0&&D>=M?_.next(D-M):(!B&&C(D),y)}}}function Rq(e,t,n){const r=[],a=n||sa.mix||BD,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=Df(f,c)}r.push(c)}return r}function zq(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=Rq(t,r,a),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const y=Zl(e[g],e[g+1],m);return c[g](y)};return n?m=>h(aa(e[0],e[o-1],m)):h}function VD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Zl(0,t,r);e.push(yt(n,1,a))}}function HD(e){const t=[0];return VD(t,e.length-1),t}function Lq(e,t){return e.map(n=>n*t)}function Iq(e,t){return e.map(()=>t||ED).splice(0,e.length-1)}function qc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=ND(r)?r.map(qE):qE(r),o={done:!1,value:t[0]},l=Lq(n&&n.length===t.length?n:HD(t),e),c=zq(l,t,{ease:Array.isArray(a)?a:Iq(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Bq=e=>e!==null;function mw(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(Bq),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const Uq={decay:vb,inertia:vb,tween:qc,keyframes:qc,spring:rf};function FD(e){typeof e.type=="string"&&(e.type=Uq[e.type])}class pw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const $q=e=>e/100;class gw extends pw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==Wn.now()&&this.tick(Wn.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;FD(t);const{type:n=qc,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||qc;f!==qc&&typeof c[0]!="number"&&(this.mixKeyframes=Df($q,BD(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:g,repeatType:y,repeatDelay:b,type:S,onUpdate:j,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-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(g){const D=Math.min(this.currentTime,a)/c;let B=Math.floor(D),K=D%1;!K&&D>=1&&(K=1),K===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(y==="reverse"?(K=1-K,b&&(K-=b/c)):y==="mirror"&&(C=l)),N=aa(0,1,K)*c}const M=T?{done:!1,value:m[0]}:C.next(N);o&&(M.value=o(M.value));let{done:_}=M;!T&&f!==null&&(_=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return k&&S!==vb&&(M.value=mw(m,this.options,A,this.speed)),j&&j(M.value),k&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Pr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(this.currentTime)}set time(t){var n;t=ei(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Wn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pr(this.currentTime))}play(){var a,o;if(this.isStopped)return;const{driver:t=Nq,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(Wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function qq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const eo=e=>e*180/Math.PI,yb=e=>{const t=eo(Math.atan2(e[1],e[0]));return xb(t)},Vq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yb,rotateZ:yb,skewX:e=>eo(Math.atan(e[1])),skewY:e=>eo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xb=e=>(e=e%360,e<0&&(e+=360),e),GE=yb,WE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),QE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WE,scaleY:QE,scale:e=>(WE(e)+QE(e))/2,rotateX:e=>xb(eo(Math.atan2(e[6],e[5]))),rotateY:e=>xb(eo(Math.atan2(-e[2],e[0]))),rotateZ:GE,rotate:GE,skewX:e=>eo(Math.atan(e[4])),skewY:e=>eo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bb(e){return e.includes("scale")?1:0}function wb(e,t){if(!e||e==="none")return bb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=Hq,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vq,a=c}if(!a)return bb(t);const o=r[t],l=a[1].split(",").map(Kq);return typeof o=="function"?o(l):l[o]}const Fq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wb(n,t)};function Kq(e){return parseFloat(e.trim())}const pu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gu=new Set(pu),XE=e=>e===mu||e===Ce,Yq=new Set(["x","y","z"]),Gq=pu.filter(e=>!Yq.has(e));function Wq(e){const t=[];return Gq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const po={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wb(t,"x"),y:(e,{transform:t})=>wb(t,"y")};po.translateX=po.x;po.translateY=po.y;const go=new Set;let Sb=!1,jb=!1,Ab=!1;function KD(){if(jb){const e=Array.from(go).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=Wq(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)})}jb=!1,Sb=!1,go.forEach(e=>e.complete(Ab)),go.clear()}function YD(){go.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jb=!0)})}function Qq(){Ab=!0,YD(),KD(),Ab=!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),Sb||(Sb=!0,xt.read(YD),xt.resolveKeyframes(KD))):(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])}qq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),go.delete(this)}cancel(){this.state==="scheduled"&&(go.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xq=e=>e.startsWith("--");function Zq(e,t,n){Xq(t)?e.style.setProperty(t,n):e.style[t]=n}const Jq=aw(()=>window.ScrollTimeline!==void 0),eV={};function tV(e,t){const n=aw(e);return()=>eV[t]??n()}const GD=tV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Lc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ZE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lc([0,.65,.55,1]),circOut:Lc([.55,0,1,.45]),backIn:Lc([.31,.01,.66,-.59]),backOut:Lc([.33,1.53,.69,.99])};function WD(e,t){if(e)return typeof e=="function"?GD()?UD(e,t):"ease-out":CD(e)?Lc(e):Array.isArray(e)?e.map(n=>WD(n,t)||ZE.easeOut):ZE[e]}function nV(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 g=WD(c,a);Array.isArray(g)&&(m.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(m,y)}function yw(e){return typeof e=="function"&&"applyToOptions"in e}function rV({type:e,...t}){return yw(e)&&GD()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class iV extends pw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!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=rV(t);this.animation=nV(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):Zq(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ei(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Jq()?(this.animation.timeline=t,Dr):n(this)}}const QD={anticipate:jD,backInOut:SD,circInOut:OD};function aV(e){return e in QD}function sV(e){typeof e.ease=="string"&&aV(e.ease)&&(e.ease=QD[e.ease])}const JE=10;class oV extends iV{constructor(t){sV(t),FD(t),super(t),t.startTime&&(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=ei(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-JE).value,c.sample(f).value,JE),c.stop()}}const eN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ys.test(e)||e==="0")&&!e.startsWith("url("));function lV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function uV(e,t,n,r){const 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:lV(e)||(n==="spring"||yw(n))&&r}function Ob(e){e.duration=0,e.type="keyframes"}const cV=new Set(["opacity","clipPath","filter","transform"]),fV=aw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dV(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 fV()&&n&&cV.has(n)&&(n!=="transform"||!h)&&!f&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const hV=40;class mV 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,...g}){var S;super(),this.stop=()=>{var j,A;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Wn.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:m,...g},b=(m==null?void 0:m.KeyframeResolver)||vw;this.keyframeResolver=new b(c,(j,A,O)=>this.onKeyframesResolved(j,A,y,!O),f,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=Wn.now(),uV(t,o,l,c)||((sa.instantAnimations||!f)&&(m==null||m(mw(t,r,n))),t[0]=t[t.length-1],Ob(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>hV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!h&&dV(y)?new oV({...y,element:y.motionValue.owner.current}):new gw(y);b.finished.then(()=>this.notifyFinished()).catch(Dr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Qq()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class pV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,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 gV extends pV{then(t,n){return this.finished.finally(t).then(()=>{})}}const vV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yV(e){const t=vV.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function XD(e,t,n=1){const[r,a]=yV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return mD(l)?parseFloat(l):l}return uw(a)?XD(a,t,n+1):a}function xw(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ZD=new Set(["width","height","top","left","right","bottom",...pu]),xV={test:e=>e==="auto",parse:e=>e},JD=e=>t=>t.test(e),e5=[mu,Ce,gi,ts,fq,cq,xV],nN=e=>e5.find(JD(e));function bV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gD(e):!0}const wV=new Set(["brightness","contrast","saturate","opacity"]);function SV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cw)||[];if(!r)return e;const a=n.replace(r,"");let o=wV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const jV=/\b([a-z-]*)\(.*?\)/gu,Eb={...ys,getAnimatableNone:e=>{const t=e.match(jV);return t?t.map(SV).join(" "):e}},rN={...mu,transform:Math.round},AV={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:Nh,scaleX:Nh,scaleY:Nh,scaleZ:Nh,skew:ts,skewX:ts,skewY:ts,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:tf,originX:VE,originY:VE,originZ:Ce},bw={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce,...AV,zIndex:rN,fillOpacity:tf,strokeOpacity:tf,numOctaves:rN},OV={...bw,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Eb,WebkitFilter:Eb},t5=e=>OV[e];function n5(e,t){let n=t5(e);return n!==Eb&&(n=ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EV=new Set(["auto","none","0"]);function NV(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!EV.has(o)&&nf(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=n5(n,a)}class TV 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 f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),uw(h))){const m=XD(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ZD.has(r)||t.length!==2)return;const[a,o]=t,l=nN(a),c=nN(o);if(l!==c)if(XE(l)&&XE(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else po[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||bV(t[a]))&&r.push(a);r.length&&NV(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=po[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const 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]=po[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function r5(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 i5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function a5(e){return pD(e)&&"offsetHeight"in e}const iN=30,CV=e=>!isNaN(parseFloat(e));class kV{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const a=Wn.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=Wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sw);const r=this.events[t].add(n);return t==="change"?()=>{r(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iN)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iN);return vD(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jl(e,t){return new kV(e,t)}const{schedule:ww}=kD(queueMicrotask,!1),Kr={x:!1,y:!1};function s5(){return Kr.x||Kr.y}function MV(e){return e==="x"||e==="y"?Kr[e]?null:(Kr[e]=!0,()=>{Kr[e]=!1}):Kr.x||Kr.y?null:(Kr.x=Kr.y=!0,()=>{Kr.x=Kr.y=!1})}function o5(e,t){const n=r5(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function aN(e){return!(e.pointerType==="touch"||s5())}function PV(e,t,n={}){const[r,a,o]=o5(e,n),l=c=>{if(!aN(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=g=>{aN(g)&&(h(g),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return r.forEach(c=>{c.addEventListener("pointerenter",l,a)}),o}const l5=(e,t)=>t?e===t?!0:l5(e,t.parentElement):!1,Sw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DV(e){return _V.has(e.tagName)||e.tabIndex!==-1}const em=new WeakSet;function sN(e){return t=>{t.key==="Enter"&&e(t)}}function Xy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sN(()=>{if(em.has(n))return;Xy(n,"down");const a=sN(()=>{Xy(n,"up")}),o=()=>Xy(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 oN(e){return Sw(e)&&!s5()}function zV(e,t,n={}){const[r,a,o]=o5(e,n),l=c=>{const f=c.currentTarget;if(!oN(c))return;em.add(f);const h=t(f,c),m=(b,S)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),em.has(f)&&em.delete(f),oN(b)&&typeof h=="function"&&h(b,{success:S})},g=b=>{m(b,f===window||f===document||n.useGlobalTarget||l5(f,b.target))},y=b=>{m(b,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),a5(c)&&(c.addEventListener("focus",h=>RV(h,a)),!DV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function jw(e){return pD(e)&&"ownerSVGElement"in e}function u5(e){return jw(e)&&e.tagName==="svg"}const ln=e=>!!(e&&e.getVelocity),LV=[...e5,qt,ys],IV=e=>LV.find(JD(e)),Aw=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function lN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function BV(...e){return t=>{let n=!1;const r=e.map(a=>{const o=lN(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():lN(e[a],null)}}}}function UV(...e){return w.useCallback(BV(...e),e)}class $V extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=a5(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 qV({children:e,isPresent:t,anchorX:n,root:r}){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(Aw),f=UV(o,e==null?void 0:e.ref);return w.useInsertionEffect(()=>{const{width:h,height:m,top:g,left:y,right:b}=l.current;if(t||!o.current||!h||!m)return;const S=n==="left"?`left: ${y}`:`right: ${b}`;o.current.dataset.motionPopId=a;const j=document.createElement("style");c&&(j.nonce=c);const A=r??document.head;return A.appendChild(j),j.sheet&&j.sheet.insertRule(`
|
|
356
|
+
[data-motion-pop-id="${a}"] {
|
|
357
|
+
position: absolute !important;
|
|
358
|
+
width: ${h}px !important;
|
|
359
|
+
height: ${m}px !important;
|
|
360
|
+
${S}px !important;
|
|
361
|
+
top: ${g}px !important;
|
|
362
|
+
}
|
|
363
|
+
`),()=>{A.contains(j)&&A.removeChild(j)}},[t]),p.jsx($V,{isPresent:t,childRef:o,sizeRef:l,children:w.cloneElement(e,{ref:f})})}const VV=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,root:f})=>{const h=tw(HV),m=w.useId();let g=!0,y=w.useMemo(()=>(g=!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&&g&&(y={...y}),w.useMemo(()=>{h.forEach((b,S)=>h.set(S,!1))},[n]),w.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(e=p.jsx(qV,{isPresent:n,anchorX:c,root:f,children:e})),p.jsx(jp.Provider,{value:y,children:e})};function HV(){return new Map}function c5(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 Th=e=>e.key||"";function uN(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]=c5(l),g=w.useMemo(()=>uN(e),[e]),y=l&&!h?[]:g.map(Th),b=w.useRef(!0),S=w.useRef(g),j=tw(()=>new Map),[A,O]=w.useState(g),[T,N]=w.useState(g);hD(()=>{b.current=!1,S.current=g;for(let _=0;_<T.length;_++){const k=Th(T[_]);y.includes(k)?j.delete(k):j.get(k)!==!0&&j.set(k,!1)}},[T,y.length,y.join("-")]);const C=[];if(g!==A){let _=[...g];for(let k=0;k<T.length;k++){const D=T[k],B=Th(D);y.includes(B)||(_.splice(k,0,D),C.push(D))}return o==="wait"&&C.length&&(_=C),N(uN(_)),O(g),null}const{forceRender:M}=w.useContext(ew);return p.jsx(p.Fragment,{children:T.map(_=>{const k=Th(_),D=l&&!h?!1:g===T||y.includes(k),B=()=>{if(j.has(k))j.set(k,!0);else return;let K=!0;j.forEach($=>{$||(K=!1)}),K&&(M==null||M(),N(S.current),l&&(m==null||m()),r&&r())};return p.jsx(VV,{isPresent:D,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:f,onExitComplete:D?void 0:B,anchorX:c,children:_},k)})})},f5=w.createContext({strict:!1}),cN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},eu={};for(const e in cN)eu[e]={isEnabled:t=>cN[e].some(n=>!!t[n])};function FV(e){for(const t in e)eu[t]={...eu[t],...e[t]}}const KV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function vm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KV.has(e)}let d5=e=>!vm(e);function YV(e){typeof e=="function"&&(d5=t=>t.startsWith("on")?!vm(t):e(t))}try{YV(require("@emotion/is-prop-valid").default)}catch{}function GV(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(d5(a)||n===!0&&vm(a)||!t&&!vm(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Op=w.createContext({});function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function af(e){return typeof e=="string"||Array.isArray(e)}const Ow=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ew=["initial",...Ow];function Np(e){return Ep(e.animate)||Ew.some(t=>af(e[t]))}function h5(e){return!!(Np(e)||e.variants)}function WV(e,t){if(Np(e)){const{initial:n,animate:r}=e;return{initial:n===!1||af(n)?n:void 0,animate:af(r)?r:void 0}}return e.inherit!==!1?t:{}}function QV(e){const{initial:t,animate:n}=WV(e,w.useContext(Op));return w.useMemo(()=>({initial:t,animate:n}),[fN(t),fN(n)])}function fN(e){return Array.isArray(e)?e.join(" "):e}function dN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=dN(e,t.target.x),r=dN(e,t.target.y);return`${n}% ${r}%`}},XV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ys.parse(e);if(a.length>5)return r;const o=ys.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=yt(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=h),typeof a[3+l]=="number"&&(a[3+l]/=h),o(a)}},Nb={borderRadius:{...Sc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sc,borderTopRightRadius:Sc,borderBottomLeftRadius:Sc,borderBottomRightRadius:Sc,boxShadow:XV};function m5(e,{layout:t,layoutId:n}){return gu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nb[e]||e==="opacity")}const ZV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JV=pu.length;function e7(e,t,n){let r="",a=!0;for(let o=0;o<JV;o++){const l=pu[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=i5(c,bw[l]);if(!f){a=!1;const m=ZV[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Nw(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(gu.has(f)){l=!0;continue}else if(PD(f)){a[f]=h;continue}else{const m=i5(h,bw[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=e7(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const Tw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function p5(e,t,n){for(const r in t)!ln(t[r])&&!m5(r,n)&&(e[r]=t[r])}function t7({transformTemplate:e},t){return w.useMemo(()=>{const n=Tw();return Nw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function n7(e,t){const n=e.style||{},r={};return p5(r,n,e),Object.assign(r,t7(e,t)),r}function r7(e,t){const n={},r=n7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const i7={offset:"stroke-dashoffset",array:"stroke-dasharray"},a7={offset:"strokeDashoffset",array:"strokeDasharray"};function s7(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?i7:a7;e[o.offset]=Ce.transform(-r);const l=Ce.transform(t),c=Ce.transform(n);e[o.array]=`${l} ${c}`}function g5(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(Nw(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&s7(g,a,o,l,!1)}const v5=()=>({...Tw(),attrs:{}}),y5=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o7(e,t,n,r){const a=w.useMemo(()=>{const o=v5();return g5(o,t,y5(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};p5(o,e.style,e),a.style={...o,...a.style}}return a}const l7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cw(e){return typeof e!="string"||e.includes("-")?!1:!!(l7.indexOf(e)>-1||/[A-Z]/u.test(e))}function u7(e,t,n,{latestValues:r},a,o=!1){const c=(Cw(e)?o7:r7)(t,r,a,e),f=GV(t,typeof e=="string",o),h=e!==w.Fragment?{...f,...c,ref:n}:{},{children:m}=t,g=w.useMemo(()=>ln(m)?m.get():m,[m]);return w.createElement(e,{...h,children:g})}function hN(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kw(e,t,n,r){if(typeof t=="function"){const[a,o]=hN(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]=hN(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function tm(e){return ln(e)?e.get():e}function c7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:f7(n,r,a,e),renderState:t()}}function f7(e,t,n,r){const a={},o=r(e,{});for(const y in o)a[y]=tm(o[y]);let{initial:l,animate:c}=e;const f=Np(e),h=h5(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?c:l;if(g&&typeof g!="boolean"&&!Ep(g)){const y=Array.isArray(g)?g:[g];for(let b=0;b<y.length;b++){const S=kw(e,y[b]);if(S){const{transitionEnd:j,transition:A,...O}=S;for(const T in O){let N=O[T];if(Array.isArray(N)){const C=m?N.length-1:0;N=N[C]}N!==null&&(a[T]=N)}for(const T in j)a[T]=j[T]}}}return a}const x5=e=>(t,n)=>{const r=w.useContext(Op),a=w.useContext(jp),o=()=>c7(e,t,r,a);return n?o():tw(o)};function Mw(e,t,n){var o;const{style:r}=e,a={};for(const l in r)(ln(r[l])||t.style&&ln(t.style[l])||m5(l,e)||((o=n==null?void 0:n.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(a[l]=r[l]);return a}const d7=x5({scrapeMotionValuesFromProps:Mw,createRenderState:Tw});function b5(e,t,n){const r=Mw(e,t,n);for(const a in e)if(ln(e[a])||ln(t[a])){const o=pu.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}const h7=x5({scrapeMotionValuesFromProps:b5,createRenderState:v5}),m7=Symbol.for("motionComponentSymbol");function kl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function p7(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):kl(n)&&(n.current=r))},[t])}const Pw=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),g7="framerAppearId",w5="data-"+Pw(g7),S5=w.createContext({});function v7(e,t,n,r,a){var j,A;const{visualElement:o}=w.useContext(Op),l=w.useContext(f5),c=w.useContext(jp),f=w.useContext(Aw).reducedMotion,h=w.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=w.useContext(S5);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&y7(h.current,n,a,g);const y=w.useRef(!1);w.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const b=n[w5],S=w.useRef(!!b&&!((j=window.MotionHandoffIsComplete)!=null&&j.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return hD(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),S.current&&m.animationState&&m.animationState.animateChanges())}),w.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,b)}),S.current=!1),m.enteringChildren=void 0)}),m}function y7(e,t,n,r){const{layoutId: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:j5(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&kl(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:h})}function j5(e){if(e)return e.options.allowProjection!==!1?e.projection:j5(e.parent)}function Zy(e,{forwardMotionProps:t=!1}={},n,r){n&&FV(n);const a=Cw(e)?h7:d7;function o(c,f){let h;const m={...w.useContext(Aw),...c,layoutId:x7(c)},{isStatic:g}=m,y=QV(c),b=a(c,g);if(!g&&nw){b7();const S=w7(m);h=S.MeasureLayout,y.visualElement=v7(e,b,m,r,S.ProjectionNode)}return p.jsxs(Op.Provider,{value:y,children:[h&&y.visualElement?p.jsx(h,{visualElement:y.visualElement,...m}):null,u7(e,c,p7(b,y.visualElement,f),b,g,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=w.forwardRef(o);return l[m7]=e,l}function x7({layoutId:e}){const t=w.useContext(ew).id;return t&&e!==void 0?t+"-"+e:e}function b7(e,t){w.useContext(f5).strict}function w7(e){const{drag:t,layout:n}=eu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function S7(e,t){if(typeof Proxy>"u")return Zy;const n=new Map,r=(o,l)=>Zy(o,l,e,t),a=(o,l)=>r(o,l);return new Proxy(a,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,Zy(l,void 0,e,t)),n.get(l))})}function A5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function j7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function A7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jy(e){return e===void 0||e===1}function Tb({scale:e,scaleX:t,scaleY:n}){return!Jy(e)||!Jy(t)||!Jy(n)}function Ys(e){return Tb(e)||O5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function O5(e){return mN(e.x)||mN(e.y)}function mN(e){return e&&e!=="0%"}function ym(e,t,n){const r=e-n,a=t*r;return n+a}function pN(e,t,n,r,a){return a!==void 0&&(e=ym(e,a,r)),ym(e,n,r)+t}function Cb(e,t=0,n=1,r,a){e.min=pN(e.min,t,n,r,a),e.max=pN(e.max,t,n,r,a)}function E5(e,{x:t,y:n}){Cb(e.x,t.translate,t.scale,t.originPoint),Cb(e.y,n.translate,n.scale,n.originPoint)}const gN=.999999999999,vN=1.0000000000001;function O7(e,t,n,r=!1){const 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,E5(e,l)),r&&Ys(o.latestValues)&&Pl(e,o.latestValues))}t.x<vN&&t.x>gN&&(t.x=1),t.y<vN&&t.y>gN&&(t.y=1)}function Ml(e,t){e.min=e.min+t,e.max=e.max+t}function yN(e,t,n,r,a=.5){const o=yt(e.min,e.max,a);Cb(e,t,n,o,r)}function Pl(e,t){yN(e.x,t.x,t.scaleX,t.scale,t.originX),yN(e.y,t.y,t.scaleY,t.scale,t.originY)}function N5(e,t){return A5(A7(e.getBoundingClientRect(),t))}function E7(e,t,n){const r=N5(e,n),{scroll:a}=t;return a&&(Ml(r.x,a.offset.x),Ml(r.y,a.offset.y)),r}const xN=()=>({translate:0,scale:1,origin:0,originPoint:0}),_l=()=>({x:xN(),y:xN()}),bN=()=>({min:0,max:0}),$t=()=>({x:bN(),y:bN()}),kb={current:null},T5={current:!1};function N7(){if(T5.current=!0,!!nw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kb.current=e.matches;e.addEventListener("change",t),t()}else kb.current=!1}const sf=new WeakMap;function T7(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,Jl(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,Jl(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class C5{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=Wn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,xt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Np(n),this.isVariantNode=h5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const b=g[y];f[y]!==void 0&&ln(b)&&b.set(f[y])}}mount(t){var n;this.current=t,sf.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)),T5.current||N7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kb.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),vs(this.notifyUpdate),vs(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gu.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&xt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{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 eu){const n=eu[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<wN.length;r++){const a=wN[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=T7(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Jl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(mD(r)||gD(r))?r=parseFloat(r):!IV(r)&&ys.test(n)&&(r=n5(t,n)),this.setBaseTarget(t,ln(r)?r.get():r)),ln(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=kw(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const 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(){ww.render(this.render)}}class k5 extends C5{constructor(){super(...arguments),this.KeyframeResolver=TV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function M5(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 C7(e){return window.getComputedStyle(e)}class P5 extends k5{constructor(){super(...arguments),this.type="html",this.renderInstance=M5}readValueFromInstance(t,n){var r;if(gu.has(n))return(r=this.projection)!=null&&r.isProjecting?bb(n):Fq(t,n);{const a=C7(t),o=(PD(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return N5(t,n)}build(t,n,r){Nw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mw(t,n,r)}}const _5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function k7(e,t,n,r){M5(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(_5.has(a)?a:Pw(a),t.attrs[a])}class D5 extends k5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gu.has(n)){const r=t5(n);return r&&r.default||0}return n=_5.has(n)?n:Pw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b5(t,n,r)}build(t,n,r){g5(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){k7(t,n,r,a)}mount(t){this.isSVGTag=y5(t.tagName),super.mount(t)}}const M7=(e,t)=>Cw(e)?new D5(t):new P5(t,{allowProjection:e!==w.Fragment});function Ll(e,t,n){const r=e.getProps();return kw(r,t,n!==void 0?n:r.custom,e)}const Mb=e=>Array.isArray(e);function P7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jl(n))}function _7(e){return Mb(e)?e[e.length-1]||0:e}function D7(e,t){const n=Ll(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=_7(o[l]);P7(e,l,c)}}function R7(e){return!!(ln(e)&&e.add)}function Pb(e,t){const n=e.getValue("willChange");if(R7(n))return n.add(t);if(!n&&sa.WillChange){const r=new sa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function R5(e){return e.props[w5]}const z7=e=>e!==null;function L7(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(z7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[o]}const I7={type:"spring",stiffness:500,damping:25,restSpeed:10},B7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),U7={type:"keyframes",duration:.8},$7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q7=(e,{keyframes:t})=>t.length>2?U7:gu.has(e)?e.startsWith("scale")?B7(t[1]):I7:$7;function V7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const _w=(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-ei(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};V7(c)||Object.assign(m,q7(e,m)),m.duration&&(m.duration=ei(m.duration)),m.repeatDelay&&(m.repeatDelay=ei(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Ob(m),m.delay===0&&(g=!0)),(sa.instantAnimations||sa.skipAnimations)&&(g=!0,Ob(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!o&&t.get()!==void 0){const y=L7(m.keyframes,c);if(y!==void 0){xt.update(()=>{m.onUpdate(y),m.onComplete()});return}}return c.isSync?new gw(m):new mV(m)};function H7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Dw(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o=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 g=e.getValue(m,e.latestValues[m]??null),y=c[m];if(y===void 0||h&&H7(h,m))continue;const b={delay:n,...xw(o||{},m)},S=g.get();if(S!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===S&&!b.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const O=R5(e);if(O){const T=window.MotionHandoffAnimation(O,m,xt);T!==null&&(b.startTime=T,j=!0)}}Pb(e,m),g.start(_w(m,g,y,e.shouldReduceMotion&&ZD.has(m)?{type:!1}:b,e,j));const A=g.animation;A&&f.push(A)}return l&&Promise.all(f).then(()=>{xt.update(()=>{l&&D7(e,l)})}),f}function z5(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}function _b(e,t,n={}){var f;const r=Ll(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const o=r?()=>Promise.all(Dw(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:y}=a;return F7(e,t,h,m,g,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 F7(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(_b(f,t,{...l,delay:n+(typeof r=="function"?0:r)+z5(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function K7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>_b(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=_b(e,t,n);else{const a=typeof t=="function"?Ll(e,t,n.custom):t;r=Promise.all(Dw(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function L5(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Y7=Ew.length;function I5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?I5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y7;n++){const r=Ew[n],a=e.props[r];(af(a)||a===!1)&&(t[r]=a)}return t}const G7=[...Ow].reverse(),W7=Ow.length;function Q7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>K7(e,n,r)))}function X7(e){let t=Q7(e),n=SN(),r=!0;const a=f=>(h,m)=>{var y;const g=Ll(e,m,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:b,transitionEnd:S,...j}=g;h={...h,...j,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=I5(e.parent)||{},g=[],y=new Set;let b={},S=1/0;for(let A=0;A<W7;A++){const O=G7[A],T=n[O],N=h[O]!==void 0?h[O]:m[O],C=af(N),M=O===f?T.isActive:null;M===!1&&(S=A);let _=N===m[O]&&N!==h[O]&&C;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),T.protectedKeys={...b},!T.isActive&&M===null||!N&&!T.prevProp||Ep(N)||typeof N=="boolean")continue;const k=Z7(T.prevProp,N);let D=k||O===f&&T.isActive&&!_&&C||A>S&&C,B=!1;const K=Array.isArray(N)?N:[N];let $=K.reduce(a(O),{});M===!1&&($={});const{prevResolvedValues:Z={}}=T,le={...Z,...$},de=W=>{D=!0,y.has(W)&&(B=!0,y.delete(W)),T.needsAnimating[W]=!0;const Y=e.getValue(W);Y&&(Y.liveStyle=!1)};for(const W in le){const Y=$[W],oe=Z[W];if(b.hasOwnProperty(W))continue;let ne=!1;Mb(Y)&&Mb(oe)?ne=!L5(Y,oe):ne=Y!==oe,ne?Y!=null?de(W):y.add(W):Y!==void 0&&y.has(W)?de(W):T.protectedKeys[W]=!0}T.prevProp=N,T.prevResolvedValues=$,T.isActive&&(b={...b,...$}),r&&e.blockInitialAnimation&&(D=!1);const me=_&&k;D&&(!me||B)&&g.push(...K.map(W=>{const Y={type:O};if(typeof W=="string"&&r&&!me&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,ne=Ll(oe,W);if(oe.enteringChildren&&ne){const{delayChildren:R}=ne.transition||{};Y.delay=z5(oe.enteringChildren,e,R)}}return{animation:W,options:Y}}))}if(y.size){const A={};if(typeof h.initial!="boolean"){const O=Ll(e,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&(A.transition=O.transition)}y.forEach(O=>{const T=e.getBaseTarget(O),N=e.getValue(O);N&&(N.liveStyle=!0),A[O]=T??null}),g.push({animation:A})}let j=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,j?t(g):Promise.resolve()}function c(f,h){var g;if(n[f].isActive===h)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var b;return(b=y.animationState)==null?void 0:b.setActive(f,h)}),n[f].isActive=h;const m=l(f);for(const y in n)n[y].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=SN()}}}function Z7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!L5(t,e):!1}function Fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SN(){return{animate:Fs(!0),whileInView:Fs(),whileHover:Fs(),whileTap:Fs(),whileDrag:Fs(),whileFocus:Fs(),exit:Fs()}}class As{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J7 extends As{constructor(t){super(t),t.animationState||(t.animationState=X7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let eH=0;class tH extends As{constructor(){super(...arguments),this.id=eH++}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 nH={animation:{Feature:J7},exit:{Feature:tH}};function of(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Lf(e){return{point:{x:e.pageX,y:e.pageY}}}const rH=e=>t=>Sw(t)&&e(t,Lf(t));function Vc(e,t,n,r){return of(e,t,rH(n),r)}const B5=1e-4,iH=1-B5,aH=1+B5,U5=.01,sH=0-U5,oH=0+U5;function Dn(e){return e.max-e.min}function lH(e,t,n){return Math.abs(e-t)<=n}function jN(e,t,n,r=.5){e.origin=r,e.originPoint=yt(t.min,t.max,e.origin),e.scale=Dn(n)/Dn(t),e.translate=yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=iH&&e.scale<=aH||isNaN(e.scale))&&(e.scale=1),(e.translate>=sH&&e.translate<=oH||isNaN(e.translate))&&(e.translate=0)}function Hc(e,t,n,r){jN(e.x,t.x,n.x,r?r.originX:void 0),jN(e.y,t.y,n.y,r?r.originY:void 0)}function AN(e,t,n){e.min=n.min+t.min,e.max=e.min+Dn(t)}function uH(e,t,n){AN(e.x,t.x,n.x),AN(e.y,t.y,n.y)}function ON(e,t,n){e.min=t.min-n.min,e.max=e.min+Dn(t)}function xm(e,t,n){ON(e.x,t.x,n.x),ON(e.y,t.y,n.y)}function Tr(e){return[e("x"),e("y")]}const $5=({current:e})=>e?e.ownerDocument.defaultView:null,EN=(e,t)=>Math.abs(e-t);function cH(e,t){const n=EN(e.x,t.x),r=EN(e.y,t.y);return Math.sqrt(n**2+r**2)}class q5{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=t0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,S=cH(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!S)return;const{point:j}=y,{timestamp:A}=xn;this.history.push({...j,timestamp:A});const{onStart:O,onMove:T}=this.handlers;b||(O&&O(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,y)},this.handlePointerMove=(y,b)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=e0(b,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(y,b)=>{this.end();const{onEnd:S,onSessionEnd:j,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=t0(y.type==="pointercancel"?this.lastMoveEventInfo:e0(b,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,O),j&&j(y,O)},!Sw(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const c=Lf(t),f=e0(c,this.transformPagePoint),{point:h}=f,{timestamp:m}=xn;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,t0(f,this.history)),this.removeListeners=Df(Vc(this.contextWindow,"pointermove",this.handlePointerMove),Vc(this.contextWindow,"pointerup",this.handlePointerUp),Vc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),vs(this.updatePoint)}}function e0(e,t){return t?{point:t(e.point)}:e}function NN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t0({point:e},t){return{point:e,delta:NN(e,V5(t)),offset:NN(e,fH(t)),velocity:dH(t,.1)}}function fH(e){return e[0]}function V5(e){return e[e.length-1]}function dH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=V5(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>ei(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 hH(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?yt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?yt(n,e,r.max):Math.min(e,n)),e}function TN(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mH(e,{top:t,left:n,bottom:r,right:a}){return{x:TN(e.x,n,a),y:TN(e.y,t,r)}}function CN(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pH(e,t){return{x:CN(e.x,t.x),y:CN(e.y,t.y)}}function gH(e,t){let n=.5;const r=Dn(e),a=Dn(t);return a>r?n=Zl(t.min,t.max-r,e.min):r>a&&(n=Zl(e.min,e.max-a,t.min)),aa(0,1,n)}function vH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Db=.35;function yH(e=Db){return e===!1?e=0:e===!0&&(e=Db),{x:kN(e,"left","right"),y:kN(e,"top","bottom")}}function kN(e,t,n){return{min:MN(e,t),max:MN(e,n)}}function MN(e,t){return typeof e=="number"?e:e[t]||0}const xH=new WeakMap;class bH{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=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Lf(g).point)},l=(g,y)=>{const{drag:b,dragPropagation:S,onDragStart:j}=this.getProps();if(b&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MV(b),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tr(O=>{let T=this.getAxisMotionValue(O).get()||0;if(gi.test(T)){const{projection:N}=this.visualElement;if(N&&N.layout){const C=N.layout.layoutBox[O];C&&(T=Dn(C)*(parseFloat(T)/100))}}this.originPoint[O]=T}),j&&xt.postRender(()=>j(g,y)),Pb(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},c=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:b,dragDirectionLock:S,onDirectionLock:j,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:O}=y;if(S&&this.currentDirection===null){this.currentDirection=wH(O),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",y.point,O),this.updateAxis("y",y.point,O),this.visualElement.render(),A&&A(g,y)},f=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Tr(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new q5(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:$5(this.visualElement)})}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&&xt.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||!Ch(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=hH(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&&kl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=mH(r.layoutBox,t):this.constraints=!1,this.elastic=yH(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Tr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=vH(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!kl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=E7(r,a.root,this.visualElement.getTransformPagePoint());let l=pH(a.layout.layoutBox,o);if(n){const c=n(j7(l));this.hasMutatedConstraints=!!c,c&&(l=A5(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(!Ch(m,n,this.currentDirection))return;let g=f&&f[m]||{};l&&(g={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,...g};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Pb(this.visualElement,t),r.start(_w(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),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(!Ch(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];o.set(t[n]-yt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!kl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Tr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=gH({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(!Ch(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(yt(f,h,a[l]))})}addListeners(){if(!this.visualElement.current)return;xH.set(this.visualElement,this);const t=this.visualElement.current,n=Vc(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();kl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),xt.read(r);const l=of(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Tr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=Db,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Ch(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class SH extends As{constructor(t){super(t),this.removeGroupControls=Dr,this.removeListeners=Dr,this.controls=new bH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dr}unmount(){this.removeGroupControls(),this.removeListeners()}}const PN=e=>(t,n)=>{e&&xt.postRender(()=>e(t,n))};class jH extends As{constructor(){super(...arguments),this.removePointerDownListener=Dr}onPointerDown(t){this.session=new q5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$5(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:PN(t),onStart:PN(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&xt.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Vc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let n0=!1;class AH 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),n0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,n0=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||xt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ww.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;n0=!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 H5(e){const[t,n]=c5(),r=w.useContext(ew);return p.jsx(AH,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(S5),isPresent:t,safeToRemove:n})}function F5(e,t,n){const r=ln(e)?e:Jl(e);return r.start(_w("",r,t,n)),r.animation}const OH=(e,t)=>e.depth-t.depth;class EH{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(OH),this.isDirty=!1,this.children.forEach(t)}}function NH(e,t){const n=Wn.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(vs(r),e(o-t))};return xt.setup(r,!0),()=>vs(r)}const K5=["TopLeft","TopRight","BottomLeft","BottomRight"],TH=K5.length,_N=e=>typeof e=="string"?parseFloat(e):e,DN=e=>typeof e=="number"||Ce.test(e);function CH(e,t,n,r,a,o){a?(e.opacity=yt(0,n.opacity??1,kH(r)),e.opacityExit=yt(t.opacity??1,0,MH(r))):o&&(e.opacity=yt(t.opacity??1,n.opacity??1,r));for(let l=0;l<TH;l++){const c=`border${K5[l]}Radius`;let f=RN(t,c),h=RN(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||DN(f)===DN(h)?(e[c]=Math.max(yt(_N(f),_N(h),r),0),(gi.test(h)||gi.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=yt(t.rotate||0,n.rotate||0,r))}function RN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kH=Y5(0,.5,AD),MH=Y5(.5,.95,Dr);function Y5(e,t,n){return r=>r<e?0:r>t?1:n(Zl(e,t,r))}function zN(e,t){e.min=t.min,e.max=t.max}function Fr(e,t){zN(e.x,t.x),zN(e.y,t.y)}function LN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function IN(e,t,n,r,a){return e-=t,e=ym(e,1/n,r),a!==void 0&&(e=ym(e,1/a,r)),e}function PH(e,t=0,n=1,r=.5,a,o=e,l=e){if(gi.test(t)&&(t=parseFloat(t),t=yt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=yt(o.min,o.max,r);e===o&&(c-=t),e.min=IN(e.min,t,n,c,a),e.max=IN(e.max,t,n,c,a)}function BN(e,t,[n,r,a],o,l){PH(e,t[n],t[r],t[a],t.scale,o,l)}const _H=["x","scaleX","originX"],DH=["y","scaleY","originY"];function UN(e,t,n,r){BN(e.x,t,_H,n?n.x:void 0,r?r.x:void 0),BN(e.y,t,DH,n?n.y:void 0,r?r.y:void 0)}function $N(e){return e.translate===0&&e.scale===1}function G5(e){return $N(e.x)&&$N(e.y)}function qN(e,t){return e.min===t.min&&e.max===t.max}function RH(e,t){return qN(e.x,t.x)&&qN(e.y,t.y)}function VN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function W5(e,t){return VN(e.x,t.x)&&VN(e.y,t.y)}function HN(e){return Dn(e.x)/Dn(e.y)}function FN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zH{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)}}function LH(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:g,rotateY:y,skewX:b,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),b&&(r+=`skewX(${b}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const r0=["","X","Y","Z"],IH=1e3;let BH=0;function i0(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Q5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=R5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Q5(r)}function X5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=BH++,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(qH),this.nodes.forEach(KH),this.nodes.forEach(YH),this.nodes.forEach(VH)},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 EH)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new sw),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=jw(l)&&!u5(l),this.instance=l;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,g=0;const y=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{g=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==g&&(g=b,this.root.updateBlockedByResize=!0,m&&m(),m=NH(y,250),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(GN)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||ZH,{onLayoutAnimationStart:j,onLayoutAnimationComplete:A}=h.getProps(),O=!this.targetLayout||!W5(this.targetLayout,b),T=!g&&y;if(this.options.layoutRoot||this.resumeFrom||T||g&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...xw(S,"layout"),onPlay:j,onComplete:A};(h.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,T)}else g||GN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GH),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&&Q5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(YN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(FH),this.nodes.forEach(UH),this.nodes.forEach($H)):this.nodes.forEach(YN),this.clearAllSnapshots();const c=Wn.now();xn.delta=aa(0,1e3/60,c-xn.timestamp),xn.timestamp=c,xn.isProcessing=!0,Ky.update.process(xn),Ky.preRender.process(xn),Ky.render.process(xn),xn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ww.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HH),this.sharedNodes.forEach(WH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dn(this.snapshot.measuredBox.x)&&!Dn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G5(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||Ys(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)),JH(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(eF))){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(Fr(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:y}=m;m!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&Fr(c,l),Ml(c.x,g.offset.x),Ml(c.y,g.offset.y))}return c}applyTransform(l,c=!1){const f=$t();Fr(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Pl(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ys(m.latestValues)&&Pl(f,m.latestValues)}return Ys(this.latestValues)&&Pl(f,this.latestValues),f}removeTransform(l){const c=$t();Fr(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ys(h.latestValues))continue;Tb(h.latestValues)&&h.updateSnapshot();const m=$t(),g=h.measurePageBox();Fr(m,g),UN(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ys(this.latestValues)&&UN(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var b;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!this.layout||!(m||g))return;this.resolvedRelativeTargetAt=xn.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uH(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fr(this.target,this.layout.layoutBox),E5(this.target,this.targetDelta)):Fr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tb(this.parent.latestValues)||O5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),xm(this.relativeTargetOrigin,c,f),Fr(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;Fr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;O7(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=$t());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(LN(this.prevProjectionDelta.x,this.projectionDelta.x),LN(this.prevProjectionDelta.y,this.projectionDelta.y)),Hc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!FN(this.projectionDelta.x,this.prevProjectionDelta.x)||!FN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_l(),this.projectionDelta=_l(),this.projectionDeltaWithTransform=_l()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},g=_l();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=$t(),b=f?f.source:void 0,S=this.layout?this.layout.source:void 0,j=b!==S,A=this.getStack(),O=!A||A.members.length<=1,T=!!(j&&!O&&this.options.crossfade===!0&&!this.path.some(XH));this.animationProgress=0;let N;this.mixTargetDelta=C=>{const M=C/1e3;WN(g.x,l.x,M),WN(g.y,l.y,M),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xm(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QH(this.relativeTarget,this.relativeTargetOrigin,y,M),N&&RH(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=$t()),Fr(N,this.relativeTarget)),j&&(this.animationValues=m,CH(m,h,this.latestValues,M,T,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(vs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{nm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Jl(0)),this.currentAnimation=F5(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(IH),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&&Z5(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||$t();const g=Dn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+g;const y=Dn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+y}Fr(c,f),Pl(c,m),Hc(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new zH),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&&i0("z",l,h,this.animationValues);for(let m=0;m<r0.length;m++)i0(`rotate${r0[m]}`,l,h,this.animationValues),i0(`skew${r0[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=tm(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=tm(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ys(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=LH(this.projectionDeltaWithTransform,this.treeScale,m);f&&(g=f(m,g)),l.transform=g;const{x:y,y:b}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,h.animationValues?l.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in Nb){if(m[S]===void 0)continue;const{correct:j,applyTo:A,isCSSVariable:O}=Nb[S],T=g==="none"?m[S]:j(m[S],h);if(A){const N=A.length;for(let C=0;C<N;C++)l[A[C]]=T}else O?this.options.visualElement.renderState.vars[S]=T:l[S]=T}this.options.layoutId&&(l.pointerEvents=h===this?tm(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(KN),this.root.sharedNodes.clear()}}}function UH(e){e.updateLayout()}function $H(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(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],b=Dn(y);y.min=r[g].min,y.max=y.min+b}):Z5(o,t.layoutBox,r)&&Tr(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],b=Dn(r[g]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=_l();Hc(c,r,t.layoutBox);const f=_l();l?Hc(f,e.applyTransform(a,!0),t.measuredBox):Hc(f,r,t.layoutBox);const h=!G5(c);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:b}=g;if(y&&b){const S=$t();xm(S,t.layoutBox,y.layoutBox);const j=$t();xm(j,r,b.layoutBox),W5(S,j)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=S,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qH(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 VH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HH(e){e.clearSnapshot()}function KN(e){e.clearMeasurements()}function YN(e){e.isLayoutDirty=!1}function FH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function GN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KH(e){e.resolveTargetDelta()}function YH(e){e.calcProjection()}function GH(e){e.resetSkewAndRotation()}function WH(e){e.removeLeadSnapshot()}function WN(e,t,n){e.translate=yt(t.translate,0,n),e.scale=yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function QN(e,t,n,r){e.min=yt(t.min,n.min,r),e.max=yt(t.max,n.max,r)}function QH(e,t,n,r){QN(e.x,t.x,n.x,r),QN(e.y,t.y,n.y,r)}function XH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZH={duration:.45,ease:[.4,0,.1,1]},XN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ZN=XN("applewebkit/")&&!XN("chrome/")?Math.round:Dr;function JN(e){e.min=ZN(e.min),e.max=ZN(e.max)}function JH(e){JN(e.x),JN(e.y)}function Z5(e,t,n){return e==="position"||e==="preserve-aspect"&&!lH(HN(t),HN(n),.2)}function eF(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tF=X5({attachResizeListener:(e,t)=>of(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),a0={current:void 0},J5=X5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!a0.current){const e=new tF({});e.mount(window),e.setOptions({layoutScroll:!0}),a0.current=e}return a0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nF={pan:{Feature:jH},drag:{Feature:SH,ProjectionNode:J5,MeasureLayout:H5}};function eT(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&&xt.postRender(()=>o(t,Lf(t)))}class rF extends As{mount(){const{current:t}=this.node;t&&(this.unmount=PV(t,(n,r)=>(eT(this.node,r,"Start"),a=>eT(this.node,a,"End"))))}unmount(){}}class iF extends As{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Df(of(this.node.current,"focus",()=>this.onFocus()),of(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&xt.postRender(()=>o(t,Lf(t)))}class aF extends As{mount(){const{current:t}=this.node;t&&(this.unmount=zV(t,(n,r)=>(tT(this.node,r,"Start"),(a,{success:o})=>tT(this.node,a,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Rb=new WeakMap,s0=new WeakMap,sF=e=>{const t=Rb.get(e.target);t&&t(e)},oF=e=>{e.forEach(sF)};function lF({root:e,...t}){const n=e||document;s0.has(n)||s0.set(n,{});const r=s0.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(oF,{root:e,...t})),r[a]}function uF(e,t,n){const r=lF(t);return Rb.set(e,n),r.observe(e),()=>{Rb.delete(e),r.unobserve(e)}}const cF={some:0,all:1};class fF extends As{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:cF[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:g}=this.node.getProps(),y=h?m:g;y&&y(f)};return uF(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(dF(t,n))&&this.startObserver()}unmount(){}}function dF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const hF={inView:{Feature:fF},tap:{Feature:aF},focus:{Feature:iF},hover:{Feature:rF}},mF={layout:{ProjectionNode:J5,MeasureLayout:H5}},pF={...nH,...hF,...nF,...mF},lt=S7(pF,M7);function Rw(e){return typeof e=="object"&&!Array.isArray(e)}function e3(e,t,n,r){return typeof e=="string"&&Rw(t)?r5(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function gF(e,t,n){return e*(t+1)}function nT(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function vF(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 yF(e,t,n,r,a,o){vF(e,a,o);for(let l=0;l<t.length;l++)e.push({value:t[l],at:yt(a,o,r[l]),easing:TD(n,l)})}function xF(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function bF(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const wF="easeInOut";function SF(e,{defaultTransition:t={},...n}={},r,a){const o=t.duration||.3,l=new Map,c=new Map,f={},h=new Map;let m=0,g=0,y=0;for(let b=0;b<e.length;b++){const S=e[b];if(typeof S=="string"){h.set(S,g);continue}else if(!Array.isArray(S)){h.set(S.name,nT(g,S.at,m,h));continue}let[j,A,O={}]=S;O.at!==void 0&&(g=nT(g,O.at,m,h));let T=0;const N=(C,M,_,k=0,D=0)=>{const B=jF(C),{delay:K=0,times:$=HD(B),type:Z="keyframes",repeat:le,repeatType:de,repeatDelay:me=0,...q}=M;let{ease:W=t.ease||"easeOut",duration:Y}=M;const oe=typeof K=="function"?K(k,D):K,ne=B.length,R=yw(Z)?Z:a==null?void 0:a[Z||"keyframes"];if(ne<=2&&R){let ve=100;if(ne===2&&EF(B)){const Qe=B[1]-B[0];ve=Math.abs(Qe)}const Oe={...q};Y!==void 0&&(Oe.duration=ei(Y));const fe=$D(Oe,ve,R);W=fe.ease,Y=fe.duration}Y??(Y=o);const H=g+oe;$.length===1&&$[0]===0&&($[1]=1);const ie=$.length-B.length;if(ie>0&&VD($,ie),B.length===1&&B.unshift(null),le){Y=gF(Y,le);const ve=[...B],Oe=[...$];W=Array.isArray(W)?[...W]:[W];const fe=[...W];for(let Qe=0;Qe<le;Qe++){B.push(...ve);for(let J=0;J<ve.length;J++)$.push(Oe[J]+(Qe+1)),W.push(J===0?"linear":TD(fe,J-1))}xF($,le)}const se=H+Y;yF(_,B,W,$,H,se),T=Math.max(oe+Y,T),y=Math.max(se,y)};if(ln(j)){const C=rT(j,c);N(A,O,iT("default",C))}else{const C=e3(j,A,r,f),M=C.length;for(let _=0;_<M;_++){A=A,O=O;const k=C[_],D=rT(k,c);for(const B in A)N(A[B],AF(O,B),iT(B,D),_,M)}}m=g,g+=T}return c.forEach((b,S)=>{for(const j in b){const A=b[j];A.sort(bF);const O=[],T=[],N=[];for(let M=0;M<A.length;M++){const{at:_,value:k,easing:D}=A[M];O.push(k),T.push(Zl(0,y,_)),N.push(D||"easeOut")}T[0]!==0&&(T.unshift(0),O.unshift(O[0]),N.unshift(wF)),T[T.length-1]!==1&&(T.push(1),O.push(null)),l.has(S)||l.set(S,{keyframes:{},transition:{}});const C=l.get(S);C.keyframes[j]=O,C.transition[j]={...t,duration:y,ease:N,times:T,...n}}}),l}function rT(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function iT(e,t){return t[e]||(t[e]=[]),t[e]}function jF(e){return Array.isArray(e)?e:[e]}function AF(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const OF=e=>typeof e=="number",EF=e=>e.every(OF);function NF(e,t){return e in t}class TF extends C5{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(NF(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return $t()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function CF(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=jw(e)&&!u5(e)?new D5(t):new P5(t);n.mount(e),sf.set(e,n)}function kF(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new TF(t);n.mount(e),sf.set(e,n)}function MF(e,t){return ln(e)||typeof e=="number"||typeof e=="string"&&!Rw(t)}function t3(e,t,n,r){const a=[];if(MF(e,t))a.push(F5(e,Rw(t)&&t.default||t,n&&(n.default||n)));else{const o=e3(e,t,r),l=o.length;for(let c=0;c<l;c++){const f=o[c],h=f instanceof Element?CF:kF;sf.has(f)||h(f);const m=sf.get(f),g={...n};"delay"in g&&typeof g.delay=="function"&&(g.delay=g.delay(c,l)),a.push(...Dw(m,{...t,transition:g},{}))}}return a}function PF(e,t,n){const r=[];return SF(e,t,n,{spring:rf}).forEach(({keyframes:o,transition:l},c)=>{r.push(...t3(c,o,l))}),r}function _F(e){return Array.isArray(e)&&e.some(Array.isArray)}function DF(e){function t(n,r,a){let o=[],l;if(_F(n))o=PF(n,r,e);else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(l=f),o=t3(n,r,h,e)}const c=new gV(o);return l&&c.finished.then(l),c}return t}const RF=DF();function n3(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=n3(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=n3(e))&&(r&&(r+=" "),r+=t);return r}const zF=(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},LF=(e,t)=>({classGroupId:e,validator:t}),r3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bm="-",aT=[],IF="arbitrary..",BF=e=>{const t=$F(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return UF(l);const c=l.split(bm),f=c[0]===""&&c.length>1?1:0;return i3(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],h=n[l];return f?h?zF(h,f):f:h||aT}return n[l]||aT}}},i3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],o=n.nextPart.get(a);if(o){const h=i3(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(bm):e.slice(t).join(bm),f=l.length;for(let h=0;h<f;h++){const m=l[h];if(m.validator(c))return m.classGroupId}},UF=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?IF+r:void 0})(),$F=e=>{const{theme:t,classGroups:n}=e;return qF(n,t)},qF=(e,t)=>{const n=r3();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];VF(l,t,n,r)}},VF=(e,t,n,r)=>{if(typeof e=="string"){HF(e,t,n);return}if(typeof e=="function"){FF(e,t,n,r);return}KF(e,t,n,r)},HF=(e,t,n)=>{const r=e===""?t:a3(t,e);r.classGroupId=n},FF=(e,t,n,r)=>{if(YF(e)){zw(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(LF(n,e))},KF=(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,a3(t,c),n,r)}},a3=(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=r3(),n.nextPart.set(l,c)),n=c}return n},YF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,GF=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)}}},zb="!",sT=":",WF=[],oT=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),QF=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===sT){o.push(a.slice(f,j)),f=j+1;continue}if(A==="/"){h=j;continue}}A==="["?l++:A==="]"?l--:A==="("?c++:A===")"&&c--}const g=o.length===0?a:a.slice(f);let y=g,b=!1;g.endsWith(zb)?(y=g.slice(0,-1),b=!0):g.startsWith(zb)&&(y=g.slice(1),b=!0);const S=h&&h>f?h-f:void 0;return oT(o,b,y,S)};if(t){const a=t+sT,o=r;r=l=>l.startsWith(a)?o(l.slice(a.length)):oT(WF,!1,l,void 0,!0)}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},XF=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}},ZF=e=>({cache:GF(e.cacheSize),parseClassName:QF(e),sortModifiers:XF(e),...BF(e)}),JF=/\s+/,eK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(JF);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:y,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:j}=n(m);if(g){f=m+(f.length>0?" "+f:f);continue}let A=!!j,O=r(A?S.substring(0,j):S);if(!O){if(!A){f=m+(f.length>0?" "+f:f);continue}if(O=r(S),!O){f=m+(f.length>0?" "+f:f);continue}A=!1}const T=y.length===0?"":y.length===1?y[0]:o(y).join(":"),N=b?T+zb:T,C=N+O;if(l.indexOf(C)>-1)continue;l.push(C);const M=a(O,A);for(let _=0;_<M.length;++_){const k=M[_];l.push(N+k)}f=m+(f.length>0?" "+f:f)}return f},tK=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=s3(n))&&(a&&(a+=" "),a+=r);return a},s3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=s3(e[r]))&&(n&&(n+=" "),n+=t);return n},nK=(e,...t)=>{let n,r,a,o;const l=f=>{const h=t.reduce((m,g)=>g(m),e());return n=ZF(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=eK(f,n);return a(f,m),m};return o=l,(...f)=>o(tK(...f))},rK=[],Gt=e=>{const t=n=>n[e]||rK;return t.isThemeGetter=!0,t},o3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,l3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iK=/^\d+\/\d+$/,aK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sK=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sl=e=>iK.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),Xa=e=>!!e&&Number.isInteger(Number(e)),o0=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),qi=e=>aK.test(e),cK=()=>!0,fK=e=>sK.test(e)&&!oK.test(e),u3=()=>!1,dK=e=>lK.test(e),hK=e=>uK.test(e),mK=e=>!ye(e)&&!xe(e),pK=e=>vu(e,d3,u3),ye=e=>o3.test(e),Ks=e=>vu(e,h3,fK),l0=e=>vu(e,bK,Ie),lT=e=>vu(e,c3,u3),gK=e=>vu(e,f3,hK),kh=e=>vu(e,m3,dK),xe=e=>l3.test(e),jc=e=>yu(e,h3),vK=e=>yu(e,wK),uT=e=>yu(e,c3),yK=e=>yu(e,d3),xK=e=>yu(e,f3),Mh=e=>yu(e,m3,!0),vu=(e,t,n)=>{const r=o3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yu=(e,t,n=!1)=>{const r=l3.exec(e);return r?r[1]?t(r[1]):n:!1},c3=e=>e==="position"||e==="percentage",f3=e=>e==="image"||e==="url",d3=e=>e==="length"||e==="size"||e==="bg-size",h3=e=>e==="length",bK=e=>e==="number",wK=e=>e==="family-name",m3=e=>e==="shadow",SK=()=>{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"),g=Gt("inset-shadow"),y=Gt("text-shadow"),b=Gt("drop-shadow"),S=Gt("blur"),j=Gt("perspective"),A=Gt("aspect"),O=Gt("ease"),T=Gt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...C(),xe,ye],_=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[xe,ye,f],B=()=>[Sl,"full","auto",...D()],K=()=>[Xa,"none","subgrid",xe,ye],$=()=>["auto",{span:["full",Xa,xe,ye]},Xa,xe,ye],Z=()=>[Xa,"auto",xe,ye],le=()=>["auto","min","max","fr",xe,ye],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...D()],W=()=>[Sl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],Y=()=>[e,xe,ye],oe=()=>[...C(),uT,lT,{position:[xe,ye]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",yK,pK,{size:[xe,ye]}],H=()=>[o0,jc,Ks],ie=()=>["","none","full",h,xe,ye],se=()=>["",Ie,jc,Ks],ve=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ie,o0,uT,lT],Qe=()=>["","none",S,xe,ye],J=()=>["none",Ie,xe,ye],Te=()=>["none",Ie,xe,ye],Pe=()=>[Ie,xe,ye],ae=()=>[Sl,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qi],breakpoint:[qi],color:[cK],container:[qi],"drop-shadow":[qi],ease:["in","out","in-out"],font:[mK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qi],shadow:[qi],spacing:["px",Ie],text:[qi],"text-shadow":[qi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sl,ye,xe,A]}],container:["container"],columns:[{columns:[Ie,ye,xe,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Xa,"auto",xe,ye]}],basis:[{basis:[Sl,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Sl,"auto","initial","none",ye]}],grow:[{grow:["",Ie,xe,ye]}],shrink:[{shrink:["",Ie,xe,ye]}],order:[{order:[Xa,"first","last","none",xe,ye]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,jc,Ks]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,l0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o0,ye]}],"font-family":[{font:[vK,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,xe,ye]}],"line-clamp":[{"line-clamp":[Ie,"none",xe,l0]}],leading:[{leading:[o,...D()]}],"list-image":[{"list-image":["none",xe,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",xe,Ks]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ie,"auto",xe,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xa,xe,ye],radial:["",xe,ye],conic:[Xa,xe,ye]},xK,gK]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"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:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,xe,ye]}],"outline-w":[{outline:["",Ie,jc,Ks]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",m,Mh,kh]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",g,Mh,kh]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ie,Ks]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",y,Mh,kh]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ie,xe,ye]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ye]}],filter:[{filter:["","none",xe,ye]}],blur:[{blur:Qe()}],brightness:[{brightness:[Ie,xe,ye]}],contrast:[{contrast:[Ie,xe,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,Mh,kh]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ie,xe,ye]}],"hue-rotate":[{"hue-rotate":[Ie,xe,ye]}],invert:[{invert:["",Ie,xe,ye]}],saturate:[{saturate:[Ie,xe,ye]}],sepia:[{sepia:["",Ie,xe,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ye]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,xe,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,xe,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,xe,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,xe,ye]}],"backdrop-invert":[{"backdrop-invert":["",Ie,xe,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,xe,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,xe,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,xe,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",xe,ye]}],ease:[{ease:["linear","initial",O,xe,ye]}],delay:[{delay:[Ie,xe,ye]}],animate:[{animate:["none",T,xe,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,xe,ye]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[xe,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate: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",xe,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,ye]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ie,jc,Ks,l0]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},p3=nK(SK);function ke(...e){return p3(Ze(e))}function jK(){const[e,t]=w.useState(!1),{notifications:n,unreadCount:r,markAsRead:a,markAllAsRead:o,clearAll:l,removeNotification:c}=J1(),f=w.useRef(null);w.useEffect(()=>{const g=y=>{f.current&&!f.current.contains(y.target)&&t(!1)};return e&&document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[e]);const h=g=>{switch(g){case"error":return p.jsx(Zr,{className:"text-red-500",size:16});case"warning":return p.jsx(f9,{className:"text-amber-500",size:16});case"success":return p.jsx(R_,{className:"text-green-500",size:16});default:return p.jsx(Uc,{className:"text-blue-500",size:16})}},m=g=>{const y=Date.now()-g,b=Math.floor(y/6e4),S=Math.floor(y/36e5);return b<1?"Just now":b<60?`${b}m ago`:S<24?`${S}h ago`:new Date(g).toLocaleDateString()};return p.jsxs("div",{className:"relative",ref:f,children:[p.jsxs("button",{type:"button",onClick:()=>t(!e),className:"text-muted-foreground hover:text-foreground transition-all relative p-2 hover:bg-muted rounded-xl",children:[p.jsx(hm,{size:20}),r>0&&p.jsx(lt.span,{initial:{scale:0},animate:{scale:1},className:"absolute top-1.5 right-1.5 min-w-[16px] h-4 bg-red-500 rounded-full border-2 border-background text-[9px] font-black text-white flex items-center justify-center px-0.5",children:r>9?"9+":r})]}),p.jsx(ga,{children:e&&p.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-96 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/20 flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold",children:"Notifications"}),p.jsxs("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest",children:[r," unread"]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[r>0&&p.jsx("button",{type:"button",onClick:o,className:"p-1.5 hover:bg-muted rounded-lg text-muted-foreground hover:text-foreground transition-colors",title:"Mark all as read",children:p.jsx(sU,{size:16})}),n.length>0&&p.jsx("button",{type:"button",onClick:l,className:"p-1.5 hover:bg-red-500/10 rounded-lg text-muted-foreground hover:text-red-500 transition-colors",title:"Clear all",children:p.jsx(jo,{size:16})})]})]}),p.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:n.length===0?p.jsxs("div",{className:"p-8 text-center",children:[p.jsx(hm,{className:"mx-auto mb-3 text-muted-foreground/20",size:32}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"No notifications"})]}):p.jsx("div",{className:"divide-y divide-border/50",children:n.map(g=>p.jsxs(lt.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:ke("p-4 hover:bg-muted/30 transition-colors cursor-pointer group relative",!g.read&&"bg-primary/5"),onClick:()=>a(g.id),children:[p.jsxs("div",{className:"flex gap-3",children:[p.jsx("div",{className:"shrink-0 mt-0.5",children:h(g.type)}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-start justify-between gap-2",children:[p.jsx("p",{className:ke("text-sm font-semibold truncate",!g.read&&"text-foreground",g.read&&"text-muted-foreground"),children:g.title}),p.jsx("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:m(g.timestamp)})]}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:g.message}),g.source&&p.jsx("span",{className:"inline-block mt-1 text-[10px] font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:g.source})]})]}),p.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),c(g.id)},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 opacity-0 group-hover:opacity-100 hover:bg-red-500/10 rounded-lg text-muted-foreground hover:text-red-500 transition-all",children:p.jsx(xp,{size:14})}),!g.read&&p.jsx("div",{className:"absolute left-1 top-1/2 -translate-y-1/2 w-1.5 h-1.5 bg-primary rounded-full"})]},g.id))})})]})})]})}function AK(){const{notifications:e,removeNotification:t}=J1(),[n,r]=w.useState(new Set);w.useEffect(()=>{const o=Date.now();e.forEach(l=>{!l.read&&o-l.timestamp<5e3&&!n.has(l.id)&&(r(c=>new Set(c).add(l.id)),setTimeout(()=>{r(c=>{const f=new Set(c);return f.delete(l.id),f})},5e3))})},[e,n]);const a=e.filter(o=>n.has(o.id));return p.jsx("div",{className:"fixed bottom-8 right-8 z-[2000] flex flex-col gap-3 w-full max-w-sm pointer-events-none",children:p.jsx(ga,{mode:"popLayout",children:a.map(o=>p.jsxs(lt.div,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,scale:.8,x:20},className: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:[p.jsxs("div",{className:"flex-shrink-0 mt-0.5",children:[o.type==="success"&&p.jsx(H1,{size:18}),o.type==="error"&&p.jsx(Zr,{size:18}),o.type==="warning"&&p.jsx(Zr,{size:18}),o.type==="info"&&p.jsx(Uc,{size:18})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("h4",{className:"text-sm font-black tracking-tight leading-none mb-1",children:o.title}),p.jsx("p",{className:"text-xs font-medium opacity-80 leading-relaxed break-words",children:o.message}),o.source&&p.jsx("span",{className:"inline-block mt-2 px-1.5 py-0.5 rounded bg-white/10 text-[9px] font-black uppercase tracking-widest",children:o.source})]}),p.jsx("button",{type:"button",onClick:()=>t(o.id),className:"mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity p-1 hover:bg-white/10 rounded-lg",children:p.jsx(xp,{size:14})}),p.jsx("div",{className:"absolute left-0 bottom-0 h-1 bg-current opacity-20 animate-toast-progress origin-left"})]},o.id))})})}function OK(){var m;const[e,t]=w.useState(!1),{isAuthEnabled:n,logout:r}=Sp(),a=G1(),o=w.useRef(null),{data:l}=Nn({queryKey:["system-status"],queryFn:()=>fetch("/api/system/status").then(g=>g.json()),refetchInterval:3e4});w.useEffect(()=>{const g=y=>{o.current&&!o.current.contains(y.target)&&t(!1)};return e&&document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[e]);const c=async()=>{await r(),t(!1)},f=g=>{a(g),t(!1)},h=g=>{const y=Math.floor(g/3600),b=Math.floor(g%3600/60);return y>0?`${y}h ${b}m`:`${b}m`};return p.jsxs("div",{className:"relative",ref:o,children:[p.jsxs("button",{type:"button",className:"flex items-center gap-3 cursor-pointer group outline-none",onClick:()=>t(!e),children:[p.jsxs("div",{className:"text-right hidden sm:block",children:[p.jsx("p",{className:"text-sm font-black tracking-tight group-hover:text-primary transition-colors",children:"Admin User"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest",children:"Architect"})]}),p.jsx("div",{className:"w-10 h-10 rounded-2xl bg-gradient-to-br from-primary to-indigo-600 flex items-center justify-center text-primary-foreground font-black shadow-lg shadow-primary/20 group-hover:scale-105 transition-transform",children:p.jsx(RE,{size:20})})]}),p.jsx(ga,{children:e&&p.jsxs(lt.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2},className:"absolute right-0 top-full mt-2 w-72 bg-card border rounded-2xl shadow-2xl overflow-hidden z-50",children:[p.jsx("div",{className:"p-5 bg-gradient-to-br from-primary/10 to-indigo-500/10 border-b",children:p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-primary to-indigo-600 flex items-center justify-center text-primary-foreground shadow-lg",children:p.jsx(RE,{size:28})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-bold text-lg",children:"Admin User"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"System Administrator"}),p.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[p.jsx($_,{size:10,className:"text-green-500"}),p.jsx("span",{className:"text-[9px] font-bold text-green-500 uppercase tracking-widest",children:"Full Access"})]})]})]})}),p.jsxs("div",{className:"p-4 bg-muted/20 border-b",children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest mb-3",children:"System Status"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zn,{size:12,className:"text-green-500"}),p.jsx("span",{className:"text-[10px] font-bold",children:"Online"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Jr,{size:12,className:"text-muted-foreground"}),p.jsx("span",{className:"text-[10px] font-bold",children:l!=null&&l.uptime?h(l.uptime):"..."})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(yp,{size:12,className:"text-muted-foreground"}),p.jsx("span",{className:"text-[10px] font-bold",children:(l==null?void 0:l.node)||"..."})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"w-3 h-3 text-[10px] font-black",children:"🔥"}),p.jsx("span",{className:"text-[10px] font-bold",children:((m=l==null?void 0:l.memory)==null?void 0:m.rss)||"..."})]})]})]}),p.jsxs("div",{className:"p-2",children:[p.jsxs("button",{type:"button",onClick:()=>f("/settings"),className:"w-full flex items-center justify-between px-4 py-3 rounded-xl hover:bg-muted/50 transition-colors group",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(K1,{size:18,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),p.jsx("span",{className:"text-sm font-semibold",children:"Settings"})]}),p.jsx(vp,{size:16,className:"text-muted-foreground/50"})]}),n&&p.jsx("button",{type:"button",onClick:c,className:"w-full flex items-center justify-between px-4 py-3 rounded-xl hover:bg-red-500/10 transition-colors group",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(B_,{size:18,className:"text-red-500"}),p.jsx("span",{className:"text-sm font-semibold text-red-500",children:"Logout"})]})})]}),p.jsx("div",{className:"px-4 py-3 bg-muted/10 border-t",children:p.jsx("p",{className:"text-[9px] text-center text-muted-foreground/50",children:"Flux Console v0.1.0-alpha.1"})})]})})]})}function EK({className:e,collapsed:t,toggleCollapse:n}){const r=js(),a=[{icon:I_,label:"Overview",path:"/"},{icon:Zn,label:"Pulse",path:"/pulse"},{icon:Jc,label:"Queues",path:"/queues"},{icon:Jr,label:"Schedules",path:"/schedules"},{icon:ub,label:"Workers",path:"/workers"},{icon:K1,label:"Settings",path:"/settings"}];return p.jsxs("div",{className:ke("flex-1 flex flex-col justify-between transition-all duration-300 ease-in-out relative group z-20 overflow-hidden",e),children:[p.jsx("nav",{className:"flex-1 px-4 py-6 space-y-2",children:a.map((o,l)=>{const c=r.pathname===o.path;return p.jsxs(uD,{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:[p.jsx(o.icon,{size:22,className:ke("transition-all shrink-0",c?"scale-110":"group-hover/item:scale-110")}),p.jsx(lt.span,{initial:!1,animate:{opacity:t?0:1,display:t?"none":"block"},className:"font-semibold whitespace-nowrap tracking-tight",children:o.label}),c&&p.jsx(lt.div,{layoutId:"active-pill",className:"absolute left-0 w-1 h-6 bg-primary-foreground rounded-r-full"})]},l)})}),p.jsx("div",{className:"p-4 border-t border-border/50",children:p.jsx("button",{type:"button",onClick:n,className:"w-full flex items-center justify-center h-10 rounded-xl hover:bg-muted text-muted-foreground hover:text-foreground transition-all active:scale-90",children:t?p.jsx(vp,{size:20}):p.jsxs("div",{className:"flex items-center gap-2 px-2",children:[p.jsx(D_,{size:18})," ",p.jsx("span",{className:"text-xs font-black uppercase tracking-widest",children:"Collapse Sidebar"})]})})})]})}function NK({children:e}){var W,Y,oe;const t=G1(),n=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(""),[g,y]=w.useState(0),[b,S]=w.useState(99.9),[j,A]=w.useState({}),[O,T]=w.useState(!0);w.useEffect(()=>{fetch("/api/system/status").then(ne=>ne.json()).then(A).catch(()=>{})},[]),w.useEffect(()=>{console.log("[Zenith] Establishing Global Event Stream...");const ne=new EventSource("/api/logs/stream");return ne.addEventListener("log",R=>{try{const H=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-log-update",{detail:H}))}catch(H){console.error("SSE Log Error",H)}}),ne.addEventListener("stats",R=>{try{const H=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-stats-update",{detail:H}))}catch(H){console.error("SSE Stats Error",H)}}),ne.addEventListener("pulse",R=>{try{const H=JSON.parse(R.data);window.dispatchEvent(new CustomEvent("flux-pulse-update",{detail:H}))}catch(H){console.error("SSE Pulse Error",H)}}),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 H=R;(ie=H.detail)!=null&&ie.queues&&C({queues:H.detail.queues})};return window.addEventListener("flux-stats-update",ne),()=>window.removeEventListener("flux-stats-update",ne)},[]);const[M,_]=w.useState("");w.useEffect(()=>{const ne=setTimeout(()=>{h.length>=2?_(h):_("")},300);return()=>clearTimeout(ne)},[h]);const{data:k}=Nn({queryKey:["job-search",M],queryFn:async()=>{const[ne,R]=await Promise.all([fetch(`/api/search?q=${encodeURIComponent(M)}&limit=10`).then(H=>H.json()),fetch(`/api/archive/search?q=${encodeURIComponent(M)}&limit=10`).then(H=>H.json())]);return{results:ne.results||[],archiveResults:R.results||[]}},enabled:M.length>=2,staleTime:5e3});w.useEffect(()=>{const ne=window.document.documentElement;o==="dark"?ne.classList.add("dark"):ne.classList.remove("dark"),localStorage.setItem("theme",o)},[o]),w.useEffect(()=>{const ne=setInterval(()=>{S(R=>{const H=(Math.random()-.5)*.1;return Math.min(100,Math.max(98.5,R+H))})},3e3);return()=>clearInterval(ne)},[]);const D=()=>l(ne=>ne==="light"?"dark":"light"),B=async()=>{const ne=(N==null?void 0:N.queues)||[];for(const R of ne)R.failed>0&&await fetch(`/api/queues/${R.name}/retry-all-failed`,{method:"POST"});n.invalidateQueries({queryKey:["queues"]})},K=[{id:"nav-overview",title:"Go to Overview",description:"Navigate to system dashboard",icon:p.jsx(I_,{size:18}),category:"Navigation",action:()=>t("/")},{id:"nav-queues",title:"Go to Queues",description:"Manage processing queues",icon:p.jsx(Jc,{size:18}),category:"Navigation",action:()=>t("/queues")},{id:"nav-workers",title:"Go to Workers",description:"Monitor worker nodes",icon:p.jsx(ub,{size:18}),category:"Navigation",action:()=>t("/workers")},{id:"nav-metrics",title:"Go to Metrics",description:"View system analytics",icon:p.jsx(__,{size:18}),category:"Navigation",action:()=>t("/metrics")},{id:"nav-settings",title:"Go to Settings",description:"Configure console preferences",icon:p.jsx(K1,{size:18}),category:"Navigation",action:()=>t("/settings")},{id:"act-retry-all",title:"Retry All Failed Jobs",description:"Recover all critical failures across all queues",icon:p.jsx(Ji,{size:18}),category:"Action",action:B},{id:"sys-theme",title:`Switch to ${o==="dark"?"Light":"Dark"} Mode`,description:"Toggle system visual appearance",icon:o==="dark"?p.jsx(fb,{size:18}):p.jsx(cb,{size:18}),category:"System",action:D},...r?[{id:"sys-logout",title:"Logout",description:"Sign out from the console",icon:p.jsx(B_,{size:18}),category:"System",action: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:p.jsx(Jc,{size:18}),category:"Navigation",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:ne.name}))},100)}})),Z=[{id:"act-clear-logs",title:"Clear All Logs",description:"Flush temporary log buffer in UI",icon:p.jsx(jo,{size:18}),category:"Action",action:()=>{window.dispatchEvent(new CustomEvent("clear-logs"))}}],le=w.useMemo(()=>{const ne=[...(k==null?void 0:k.results)||[],...((k==null?void 0:k.archiveResults)||[]).map(R=>({...R,_archived:!0}))];return ne.length?ne.slice(0,15).map(R=>({id:`job-${R._queue}-${R.id}-${R._archived?"arch":"live"}`,title:`Job: ${R.id||"Unknown"}`,description:`${R._queue} • ${R.status||R._type}${R._archived?" • ARCHIVED":""} • ${R.name||"No name"}`,icon:R._archived?p.jsx(ub,{size:18}):p.jsx(eU,{size:18}),category:"Action",action:()=>{t("/queues"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("select-queue",{detail:R._queue})),R._archived&&window.dispatchEvent(new CustomEvent("inspect-job",{detail:{queue:R._queue,job:R}}))},100)}})):[]},[k,t]),me=[...K,...Z,...$,...le].filter(ne=>ne.title.toLowerCase().includes(h.toLowerCase())||ne.description.toLowerCase().includes(h.toLowerCase()));w.useEffect(()=>{const ne=R=>{(R.metaKey||R.ctrlKey)&&R.key==="k"&&(R.preventDefault(),f(H=>!H)),R.key==="Escape"&&f(!1)};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[]),w.useEffect(()=>{const ne=document.getElementById(`command-item-${g}`);ne&&ne.scrollIntoView({block:"nearest",behavior:"smooth"})},[g]);const q=ne=>{ne.action(),f(!1),m("")};return p.jsxs("div",{className:"flex h-screen bg-background text-foreground overflow-hidden transition-colors duration-300",children:[p.jsxs(lt.aside,{initial:!1,animate:{width:O?260:80},className:"border-r border-border/40 bg-card/50 backdrop-blur-xl flex flex-col z-50 transition-all duration-300 ease-[0.22, 1, 0.36, 1]",children:[p.jsx("div",{className:"h-16 flex items-center px-6 border-b border-border/40 bg-card/80",children:p.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0 shadow-lg shadow-primary/20",children:p.jsx(q_,{className:"text-primary-foreground fill-current",size:18})}),p.jsxs(lt.div,{animate:{opacity:O?1:0},className:"flex flex-col min-w-[140px]",children:[p.jsx("span",{className:"font-extrabold text-lg tracking-tight leading-none bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60",children:"Zenith"}),p.jsx("span",{className:"text-[9px] font-bold text-muted-foreground uppercase tracking-[0.2em]",children:"Control Plane"})]})]})}),p.jsx(EK,{collapsed:!O,toggleCollapse:()=>T(!O)})]}),p.jsxs("main",{className:"flex-1 flex flex-col relative overflow-hidden scanline",children:[p.jsxs("header",{className:"h-16 border-b bg-card/50 backdrop-blur-md flex items-center justify-between px-8 sticky top-0 z-10 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-6 flex-1",children:[p.jsxs("button",{type:"button",className:"relative max-w-md w-full group cursor-pointer outline-none block text-left",onClick:()=>f(!0),children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground group-hover:text-primary transition-colors",size:18}),p.jsxs("div",{className:"w-full bg-muted/40 border border-border/50 rounded-xl py-2 pl-10 pr-4 text-sm text-muted-foreground/60 font-medium flex justify-between items-center transition-all hover:bg-muted/60 hover:border-primary/20",children:[p.jsx("span",{children:"Search or command..."}),p.jsxs("div",{className:"flex gap-1 group-hover:scale-105 transition-transform",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"⌘"}),p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border text-[10px] font-black opacity-60",children:"K"})]})]})]}),p.jsxs("div",{className:"hidden lg:flex items-center gap-3 px-4 py-1.5 rounded-full bg-primary/5 border border-primary/10 transition-all hover:bg-primary/10 hover:border-primary/20 cursor-default group",children:[p.jsxs("div",{className:"relative flex items-center justify-center",children:[p.jsx(r9,{size:14,className:"text-primary z-10"}),p.jsx("div",{className:"absolute w-3 h-3 bg-primary rounded-full glow-pulse"})]}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.1em] text-primary/60 leading-none",children:"System Integrity"}),p.jsxs("span",{className:"text-[11px] font-black tracking-tight leading-none",children:[b.toFixed(1),"% Nominal"]})]})]})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("button",{type:"button",onClick:D,className:"p-2.5 hover:bg-muted rounded-xl text-muted-foreground hover:text-primary transition-all duration-300 active:scale-95 group relative",title:o==="light"?"Switch to Dark Mode":"Switch to Light Mode",children:o==="light"?p.jsx(cb,{size:20,className:"group-hover:rotate-[15deg] transition-transform"}):p.jsx(fb,{size:20,className:"group-hover:rotate-90 transition-transform text-yellow-500"})}),p.jsx(jK,{}),p.jsx("div",{className:"h-8 w-[1px] bg-border/50"}),p.jsx(OK,{})]})]}),p.jsx("div",{className:"flex-1 overflow-y-auto p-8 scrollbar-thin",children:p.jsx(lt.div,{initial:{opacity:0,scale:.98,filter:"blur(10px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{duration:.8,ease:[.16,1,.3,1]},children:e})}),p.jsxs("footer",{className:"h-7 border-t bg-card/80 backdrop-blur-md flex items-center justify-between px-6 z-10 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-6 overflow-hidden",children:[p.jsxs("div",{className:"flex items-center gap-2 border-r border-border/50 pr-4",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.4)]"}),p.jsxs("span",{className:"text-[10px] font-black text-muted-foreground/60 uppercase tracking-widest whitespace-nowrap",children:["Node: ",(j==null?void 0:j.env)||"production-east-1"]})]}),p.jsxs("div",{className:"flex items-center gap-4 text-[9px] font-black text-muted-foreground/40 uppercase tracking-[0.2em] animate-in fade-in slide-in-from-left duration-1000",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Zn,{size:10,className:"text-primary/40"})," Latency: 4ms"]}),p.jsxs("span",{className:"hidden sm:inline border-l border-border/30 pl-4 text-primary",children:["RAM: ",((W=j==null?void 0:j.memory)==null?void 0:W.rss)||"..."," /"," ",((Y=j==null?void 0:j.memory)==null?void 0:Y.total)||"4.00 GB"]}),p.jsxs("span",{className:"hidden md:inline border-l border-border/30 pl-4 uppercase",children:["Engine: ",(j==null?void 0:j.engine)||"v2.4.1-beta"]}),p.jsxs("span",{className:"hidden lg:inline border-l border-border/30 pl-4 lowercase",children:["v: ",(j==null?void 0:j.node)||"..."]})]})]}),p.jsxs("div",{className:"flex items-center gap-4 pl-4 bg-gradient-to-l from-card via-card to-transparent text-right",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-8 h-1 bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{animate:{x:[-20,20]},transition:{duration:2,repeat:1/0,ease:"linear"},className:"w-4 h-full bg-primary/40"})}),p.jsx("span",{className:"text-[9px] font-black text-primary/60 uppercase tracking-widest",children:"Bus Traffic"})]}),p.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60 tabular-nums lowercase",children:[((oe=new Date().toISOString().split("T")[1])==null?void 0:oe.split(".")[0])||""," utc"]})]})]})]}),p.jsx(ga,{children:c&&p.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-24 px-4",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:()=>f(!1)}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},className:"relative w-full max-w-2xl bg-card border-border/50 border rounded-3xl shadow-2xl overflow-hidden scanline",children:[p.jsxs("div",{className:"p-6 border-b flex items-center gap-4 bg-muted/5",children:[p.jsx(xU,{className:"text-primary animate-pulse",size:24}),p.jsx("input",{autoFocus:!0,type:"text",placeholder:"Execute command or navigate...",className:"flex-1 bg-transparent border-none outline-none text-lg font-bold placeholder:text-muted-foreground/30",value:h,onChange:ne=>{m(ne.target.value),y(0)},onKeyDown:ne=>{ne.key==="ArrowDown"?(ne.preventDefault(),y(R=>(R+1)%me.length)):ne.key==="ArrowUp"?(ne.preventDefault(),y(R=>(R-1+me.length)%me.length)):ne.key==="Enter"&&me[g]&&q(me[g])}}),p.jsx("div",{className:"flex items-center gap-2 px-2 py-1 rounded-lg bg-muted border text-[9px] font-black text-muted-foreground/60 uppercase",children:"ESC to close"})]}),p.jsx("div",{className:"max-h-[400px] overflow-y-auto p-2 custom-scrollbar",children:me.length===0?p.jsxs("div",{className:"py-12 text-center text-muted-foreground/40 space-y-2",children:[p.jsx(Zn,{size:32,className:"mx-auto opacity-20"}),p.jsx("p",{className:"text-xs font-black uppercase tracking-widest",children:"No matching commands found"})]}):p.jsx("div",{className:"space-y-1",children:me.map((ne,R)=>p.jsxs("button",{type:"button",id:`command-item-${R}`,className:ke("w-full flex items-center justify-between p-4 rounded-2xl transition-all cursor-pointer group/cmd outline-none",R===g?"bg-primary shadow-lg shadow-primary/20 -translate-x-1":"hover:bg-muted"),onClick:()=>q(ne),onMouseEnter:()=>y(R),children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:ke("w-10 h-10 rounded-xl flex items-center justify-center transition-colors",R===g?"bg-white/20 text-white":"bg-muted text-primary"),children:ne.icon}),p.jsxs("div",{children:[p.jsx("p",{className:ke("text-sm font-black tracking-tight",R===g?"text-white":"text-foreground"),children:ne.title}),p.jsx("p",{className:ke("text-[10px] font-bold uppercase tracking-widest opacity-60",R===g?"text-white/80":"text-muted-foreground"),children:ne.description})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:ke("text-[9px] font-black uppercase tracking-widest px-2 py-1 rounded-md",R===g?"bg-white/20 text-white":"bg-muted text-muted-foreground"),children:ne.category}),R===g&&p.jsx("kbd",{className:"bg-white/20 px-1.5 py-0.5 rounded text-[10px] text-white",children:"↵"})]})]},ne.id))})}),p.jsxs("div",{className:"p-4 border-t bg-muted/5 flex justify-between items-center px-6",children:[p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↑↓"})," to navigate"]}),p.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-muted-foreground/40 uppercase",children:[p.jsx("kbd",{className:"bg-muted px-1.5 py-0.5 rounded border",children:"↵"})," to select"]})]}),p.jsx("span",{className:"text-[9px] font-black text-primary/40 uppercase tracking-[0.2em]",children:"Gravito Zenith v1.0"})]})]})]})}),p.jsx(AK,{})]})}function TK(){const{login:e}=Sp(),[t,n]=w.useState(""),[r,a]=w.useState(!1),[o,l]=w.useState(""),[c,f]=w.useState(!1),h=async m=>{m.preventDefault(),l(""),f(!0);const g=await e(t);g.success||(l(g.error||"Authentication failed"),f(!1))};return p.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-indigo-500/5"}),p.jsx("div",{className:"absolute top-1/4 -left-1/4 w-96 h-96 bg-primary/10 rounded-full blur-3xl animate-pulse"}),p.jsx("div",{className:"absolute bottom-1/4 -right-1/4 w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl animate-pulse",style:{animationDelay:"1s"}}),p.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(var(--primary-rgb),0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(var(--primary-rgb),0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),p.jsxs(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative z-10 w-full max-w-md",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx(lt.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},className:"inline-flex items-center justify-center w-20 h-20 bg-gradient-to-br from-primary to-indigo-600 rounded-3xl shadow-2xl shadow-primary/30 mb-6",children:p.jsx(Zn,{size:40,className:"text-primary-foreground"})}),p.jsx("h1",{className:"text-4xl font-black tracking-tighter mb-2",children:"GRAVITO"}),p.jsx("p",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.4em]",children:"Flux Console"})]}),p.jsxs("div",{className:"card-premium p-8 backdrop-blur-xl",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("h2",{className:"text-xl font-bold mb-2",children:"Welcome Back"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your password to access the console"})]}),p.jsxs("form",{onSubmit:h,className:"space-y-6",children:[o&&p.jsxs(lt.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-3 p-4 bg-red-500/10 border border-red-500/20 rounded-xl text-red-500",children:[p.jsx(Zr,{size:18}),p.jsx("span",{className:"text-sm font-medium",children:o})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"password",className:"text-sm font-bold text-muted-foreground uppercase tracking-widest",children:"Password"}),p.jsxs("div",{className:"relative",children:[p.jsx(BU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),p.jsx("input",{id:"password",type:r?"text":"password",value:t,onChange:m=>n(m.target.value),placeholder:"Enter console password",className: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}),p.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?p.jsx(OU,{size:18}):p.jsx(NU,{size:18})})]})]}),p.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?p.jsx("div",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):p.jsxs(p.Fragment,{children:["Access Console",p.jsx(Cf,{size:18})]})})]})]}),p.jsx("p",{className:"text-center mt-6 text-xs text-muted-foreground/50",children:"Protected by Gravito Security Layer"})]})]})}var CK=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Lw(e){if(typeof e!="string")return!1;var t=CK;return t.includes(e)}var kK=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],MK=new Set(kK);function g3(e){return typeof e!="string"?!1:MK.has(e)}function v3(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)&&(g3(n)||v3(n))&&(t[n]=e[n]);return t}function If(e){if(e==null)return null;if(w.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Rr(t)}return typeof e=="object"&&!Array.isArray(e)?Rr(e):null}function zn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(g3(n)||v3(n)||Lw(n))&&(t[n]=e[n]);return t}function PK(e){return e==null?null:w.isValidElement(e)?zn(e.props):typeof e=="object"&&!Array.isArray(e)?zn(e):null}var _K=["children","width","height","viewBox","className","style","title","desc"];function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lb.apply(null,arguments)}function DK(e,t){if(e==null)return{};var n,r,a=RK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function RK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Iw=w.forwardRef((e,t)=>{var{children:n,width:r,height:a,viewBox:o,className:l,style:c,title:f,desc:h}=e,m=DK(e,_K),g=o||{width:r,height:a,x:0,y:0},y=Ze("recharts-surface",l);return w.createElement("svg",Lb({},zn(m),{className:y,width:r,height:a,style:c,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),w.createElement("title",null,f),w.createElement("desc",null,h),n)}),zK=["children","className"];function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ib.apply(null,arguments)}function LK(e,t){if(e==null)return{};var n,r,a=IK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function IK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ln=w.forwardRef((e,t)=>{var{children:n,className:r}=e,a=LK(e,zK),o=Ze("recharts-layer",r);return w.createElement("g",Ib({className:o},zn(a),{ref:t}),n)}),y3=w.createContext(null),BK=()=>w.useContext(y3);function dt(e){return function(){return e}}const x3=Math.cos,wm=Math.sin,ai=Math.sqrt,Sm=Math.PI,Tp=2*Sm,Bb=Math.PI,Ub=2*Bb,Gs=1e-6,UK=Ub-Gs;function b3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $K(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b3;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?b3:$K(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,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,g=c-n,y=m*m+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Gs)if(!(Math.abs(g*f-h*m)>Gs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,S=a-c,j=f*f+h*h,A=b*b+S*S,O=Math.sqrt(j),T=Math.sqrt(y),N=o*Math.tan((Bb-Math.acos((j+y-A)/(2*O*T)))/2),C=N/T,M=N/O;Math.abs(C-1)>Gs&&this._append`L${t+C*m},${n+C*g}`,this._append`A${o},${o},0,0,${+(g*b>m*S)},${this._x1=t+M*f},${this._y1=n+M*h}`}}arc(t,n,r,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,g=1^l,y=l?a-o:o-a;this._x1===null?this._append`M${h},${m}`:(Math.abs(this._x1-h)>Gs||Math.abs(this._y1-m)>Gs)&&this._append`L${h},${m}`,r&&(y<0&&(y=y%Ub+Ub),y>UK?this._append`A${r},${r},0,1,${g},${t-c},${n-f}A${r},${r},0,1,${g},${this._x1=h},${this._y1=m}`:y>Gs&&this._append`A${r},${r},0,${+(y>=Bb)},${g},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,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 w3(e){this._context=e}w3.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 w3(e)}function S3(e){return e[0]}function j3(e){return e[1]}function A3(e,t){var n=dt(!0),r=null,a=Cp,o=null,l=Bw(c);e=typeof e=="function"?e:e===void 0?S3:dt(e),t=typeof t=="function"?t:t===void 0?j3:dt(t);function c(f){var h,m=(f=Uw(f)).length,g,y=!1,b;for(r==null&&(o=a(b=l())),h=0;h<=m;++h)!(h<m&&n(g=f[h],h,f))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(g,h,f),+t(g,h,f));if(b)return o=null,b+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:dt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:dt(!!f),c):n},c.curve=function(f){return arguments.length?(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 Ph(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?S3:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?j3:dt(+n);function h(g){var y,b,S,j=(g=Uw(g)).length,A,O=!1,T,N=new Array(j),C=new Array(j);for(o==null&&(c=l(T=f())),y=0;y<=j;++y){if(!(y<j&&a(A=g[y],y,g))===O)if(O=!O)b=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=y-1;S>=b;--S)c.point(N[S],C[S]);c.lineEnd(),c.areaEnd()}O&&(N[y]=+e(A,y,g),C[y]=+t(A,y,g),c.point(r?+r(A,y,g):N[y],n?+n(A,y,g):C[y]))}if(T)return c=null,T+""||null}function m(){return A3().defined(a).curve(l).context(o)}return h.x=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),r=null,h):e},h.x0=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),h):e},h.x1=function(g){return arguments.length?(r=g==null?null:typeof g=="function"?g:dt(+g),h):r},h.y=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),n=null,h):t},h.y0=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),h):t},h.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:dt(+g),h):n},h.lineX0=h.lineY0=function(){return m().x(e).y(t)},h.lineY1=function(){return m().x(e).y(n)},h.lineX1=function(){return m().x(r).y(t)},h.defined=function(g){return arguments.length?(a=typeof g=="function"?g:dt(!!g),h):a},h.curve=function(g){return arguments.length?(l=g,o!=null&&(c=l(o)),h):l},h.context=function(g){return arguments.length?(g==null?o=c=null:c=l(o=g),h):o},h}class O3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function VK(e){return new O3(e,!0)}function HK(e){return new O3(e,!1)}const $w={draw(e,t){const n=ai(t/Sm);e.moveTo(n,0),e.arc(0,0,n,0,Tp)}},FK={draw(e,t){const n=ai(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()}},E3=ai(1/3),KK=E3*2,YK={draw(e,t){const n=ai(t/KK),r=n*E3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GK={draw(e,t){const n=ai(t),r=-n/2;e.rect(r,r,n,n)}},WK=.8908130915292852,N3=wm(Sm/10)/wm(7*Sm/10),QK=wm(Tp/10)*N3,XK=-x3(Tp/10)*N3,ZK={draw(e,t){const n=ai(t*WK),r=QK*n,a=XK*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=Tp*o/5,c=x3(l),f=wm(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},u0=ai(3),JK={draw(e,t){const n=-ai(t/(u0*3));e.moveTo(0,n*2),e.lineTo(-u0*n,-n),e.lineTo(u0*n,-n),e.closePath()}},Or=-.5,Er=ai(3)/2,$b=1/ai(12),eY=($b/2+1)*3,tY={draw(e,t){const n=ai(t/eY),r=n/2,a=n*$b,o=r,l=n*$b+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 nY(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 T3(e){this._context=e}T3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Am(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Am(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rY(e){return new T3(e)}function C3(e){this._context=e}C3.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 iY(e){return new C3(e)}function k3(e){this._context=e}k3.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 aY(e){return new k3(e)}function M3(e){this._context=e}M3.prototype={areaStart:jm,areaEnd:jm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function sY(e){return new M3(e)}function cT(e){return e<0?-1:1}function fT(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(cT(o)+cT(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function dT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function c0(e,t,n){var r=e._x0,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:c0(this,this._t0,dT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,c0(this,dT(this,n=fT(this,e,t)),n);break;default:c0(this,this._t0,n=fT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function P3(e){this._context=new _3(e)}(P3.prototype=Object.create(Om.prototype)).point=function(e,t){Om.prototype.point.call(this,t,e)};function _3(e){this._context=e}_3.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 oY(e){return new Om(e)}function lY(e){return new P3(e)}function D3(e){this._context=e}D3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hT(e),a=hT(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 hT(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 uY(e){return new D3(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function cY(e){return new kp(e,.5)}function fY(e){return new kp(e,0)}function dY(e){return new kp(e,1)}function Ao(e,t){if((l=e.length)>1)for(var n=1,r,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 qb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hY(e,t){return e[t]}function mY(e){const t=[];return t.key=e,t}function pY(){var e=dt([]),t=qb,n=Ao,r=hY;function a(o){var l=Array.from(e.apply(this,arguments),mY),c,f=l.length,h=-1,m;for(const g of o)for(c=0,++h;c<f;++c)(l[c][h]=[0,+r(g,l[c].key,h,o)]).data=g;for(c=0,m=Uw(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return 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?qb:typeof o=="function"?o:dt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Ao,a):n},a}function gY(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 vY(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 yY(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]],g=m[r][1]||0,y=m[r-1][1]||0,b=(g-y)/2,S=0;S<c;++S){var j=e[t[S]],A=j[r][1]||0,O=j[r-1][1]||0;b+=A-O}f+=g,h+=b*g}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 f0={},d0={},mT;function xY(){return mT||(mT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(d0)),d0}var h0={},pT;function R3(){return pT||(pT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(h0)),h0}var m0={},gT;function qw(){return gT||(gT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(m0)),m0}var p0={},g0={},vT;function bY(){return vT||(vT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(g0)),g0}var yT;function Vw(){return yT||(yT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bY(),n=qw();function r(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 g=a[c];h?g==="\\"&&c+1<l?(c++,f+=a[c]):g===h?h="":f+=g:m?g==='"'||g==="'"?h=g:g==="]"?(m=!1,o.push(f),f=""):f+=g:g==="["?(m=!0,f&&(o.push(f),f="")):g==="."?f&&(o.push(f),f=""):f+=g,c++}return f&&o.push(f),o}e.toPath=r})(p0)),p0}var xT;function Hw(){return xT||(xT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xY(),n=R3(),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 g=0;g<f.length;g++){if(m==null||t.isUnsafeProperty(f[g]))return h;m=m[f[g]]}return m===void 0?h:m}e.get=o})(f0)),f0}var v0,bT;function wY(){return bT||(bT=1,v0=Hw().get),v0}var SY=wY();const tu=wi(SY);var jY=4;function ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jY,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((a,o,l)=>{var c=n[l-1];return typeof c=="string"?a+c+o:c!==void 0?a+ms(c)+o:a+o},"")}var Qn=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),yi=e=>he(e)||typeof e=="string",AY=0,lf=e=>{var t=++AY;return"".concat(e||"").concat(t)},ri=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},z3=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function wt(e,t,n){return he(e)&&he(t)?ms(e+n*(t-e)):t}function L3(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):tu(r,t))===n)}var jt=e=>e===null||typeof e>"u",Bf=e=>jt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function OY(e){return e!=null}function Uf(){}var EY=["type","size","sizeType"];function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(null,arguments)}function wT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ST(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wT(Object(n),!0).forEach(function(r){NY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NY(e,t,n){return(t=TY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TY(e){var t=CY(e,"string");return typeof t=="symbol"?t:t+""}function CY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kY(e,t){if(e==null)return{};var n,r,a=MY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function MY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var I3={symbolCircle:$w,symbolCross:FK,symbolDiamond:YK,symbolSquare:GK,symbolStar:ZK,symbolTriangle:JK,symbolWye:tY},PY=Math.PI/180,_Y=e=>{var t="symbol".concat(Bf(e));return I3[t]||$w},DY=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*PY;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},RY=(e,t)=>{I3["symbol".concat(Bf(e))]=t},Fw=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,a=kY(e,EY),o=ST(ST({},a),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var c=()=>{var y=_Y(l),b=nY().type(y).size(DY(n,r,l)),S=b();if(S!==null)return S},{className:f,cx:h,cy:m}=o,g=zn(o);return he(h)&&he(m)&&he(n)?w.createElement("path",Vb({},g,{className:Ze("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:c()})):null};Fw.registerSymbol=RY;var B3=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},zY=(e,t,n)=>r=>(e(t,n,r),null),Mp=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var o=e[a];Lw(a)&&typeof o=="function"&&(r||(r={}),r[a]=zY(o,t,n))}),r};function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){IY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IY(e,t,n){return(t=BY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BY(e){var t=UY(e,"string");return typeof t=="symbol"?t:t+""}function UY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sn(e,t){var n=LY({},e),r=t,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 AT(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 $Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AT(Object(n),!0).forEach(function(r){qY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qY(e,t,n){return(t=VY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VY(e){var t=HY(e,"string");return typeof t=="symbol"?t:t+""}function HY(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,FY={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function KY(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=$Y({},t);return delete m.legendIcon,w.cloneElement(t.legendIcon,m)}return w.createElement(Fw,{fill:c,cx:a,cy:a,size:Cr,sizeType:"diameter",type:f})}function YY(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,g)=>{var y=m.formatter||a,b=Ze({"recharts-legend-item":!0,["legend-item-".concat(g)]:!0,inactive:m.inactive});if(m.type==="none")return null;var S=m.inactive?o:m.color,j=y?y(m.value,m,g):m.value;return w.createElement("li",Em({className:b,style:f,key:"legend-item-".concat(g)},Mp(e,m,g)),w.createElement(Iw,{width:n,height:n,viewBox:c,style:h,"aria-label":"".concat(j," legend icon")},w.createElement(KY,{data:m,iconType:l,inactiveColor:o})),w.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},j))})}var GY=e=>{var t=Sn(e,FY),{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(YY,Em({},t,{payload:n})))},y0={},x0={},OT;function WY(){return OT||(OT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const 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})(x0)),x0}var b0={},ET;function U3(){return ET||(ET=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(b0)),b0}var w0={},S0={},j0={},NT;function QY(){return NT||(NT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(j0)),j0}var TT;function Yw(){return TT||(TT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QY();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(S0)),S0}var A0={},CT;function XY(){return CT||(CT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(A0)),A0}var kT;function ZY(){return kT||(kT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yw(),n=XY();function r(a){return n.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=r})(w0)),w0}var O0={},E0={},MT;function JY(){return MT||(MT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hw();function n(r){return function(a){return t.get(a,r)}}e.property=n})(E0)),E0}var N0={},T0={},C0={},k0={},PT;function $3(){return PT||(PT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(k0)),k0}var M0={},_T;function q3(){return _T||(_T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(M0)),M0}var P0={},DT;function V3(){return DT||(DT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(P0)),P0}var RT;function eG(){return RT||(RT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$3(),n=q3(),r=V3();function a(m,g,y){return typeof y!="function"?a(m,g,()=>{}):o(m,g,function b(S,j,A,O,T,N){const C=y(S,j,A,O,T,N);return C!==void 0?!!C:o(S,j,b,N)},new Map)}function o(m,g,y,b){if(g===m)return!0;switch(typeof g){case"object":return l(m,g,y,b);case"function":return Object.keys(g).length>0?o(m,{...g},y,b):r.eq(m,g);default:return t.isObject(m)?typeof g=="string"?g==="":!0:r.eq(m,g)}}function l(m,g,y,b){if(g==null)return!0;if(Array.isArray(g))return f(m,g,y,b);if(g instanceof Map)return c(m,g,y,b);if(g instanceof Set)return h(m,g,y,b);const S=Object.keys(g);if(m==null||n.isPrimitive(m))return S.length===0;if(S.length===0)return!0;if(b!=null&&b.has(g))return b.get(g)===m;b==null||b.set(g,m);try{for(let j=0;j<S.length;j++){const A=S[j];if(!n.isPrimitive(m)&&!(A in m)||g[A]===void 0&&m[A]!==void 0||g[A]===null&&m[A]!==null||!y(m[A],g[A],A,m,g,b))return!1}return!0}finally{b==null||b.delete(g)}}function c(m,g,y,b){if(g.size===0)return!0;if(!(m instanceof Map))return!1;for(const[S,j]of g.entries()){const A=m.get(S);if(y(A,j,S,m,g,b)===!1)return!1}return!0}function f(m,g,y,b){if(g.length===0)return!0;if(!Array.isArray(m))return!1;const S=new Set;for(let j=0;j<g.length;j++){const A=g[j];let O=!1;for(let T=0;T<m.length;T++){if(S.has(T))continue;const N=m[T];let C=!1;if(y(N,A,j,m,g,b)&&(C=!0),C){S.add(T),O=!0;break}}if(!O)return!1}return!0}function h(m,g,y,b){return g.size===0?!0:m instanceof Set?f([...m],[...g],y,b):!1}e.isMatchWith=a,e.isSetMatch=h})(C0)),C0}var zT;function H3(){return zT||(zT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eG();function n(r,a){return t.isMatchWith(r,a,()=>{})}e.isMatch=n})(T0)),T0}var _0={},D0={},R0={},LT;function tG(){return LT||(LT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(R0)),R0}var z0={},IT;function F3(){return IT||(IT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(z0)),z0}var L0={},BT;function K3(){return BT||(BT=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]",g="[object Function]",y="[object ArrayBuffer]",b="[object Object]",S="[object Error]",j="[object DataView]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",C="[object BigUint64Array]",M="[object Int8Array]",_="[object Int16Array]",k="[object Int32Array]",D="[object BigInt64Array]",B="[object Float32Array]",K="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=y,e.arrayTag=m,e.bigInt64ArrayTag=D,e.bigUint64ArrayTag=C,e.booleanTag=a,e.dataViewTag=j,e.dateTag=c,e.errorTag=S,e.float32ArrayTag=B,e.float64ArrayTag=K,e.functionTag=g,e.int16ArrayTag=_,e.int32ArrayTag=k,e.int8ArrayTag=M,e.mapTag=f,e.numberTag=r,e.objectTag=b,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=T,e.uint32ArrayTag=N,e.uint8ArrayTag=A,e.uint8ClampedArrayTag=O})(L0)),L0}var I0={},UT;function nG(){return UT||(UT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(I0)),I0}var $T;function Y3(){return $T||($T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tG(),n=F3(),r=K3(),a=q3(),o=nG();function l(m,g){return c(m,void 0,m,new Map,g)}function c(m,g,y,b=new Map,S=void 0){const j=S==null?void 0:S(m,g,y,b);if(j!==void 0)return j;if(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,g,y=m,b,S){const j=[...Object.keys(g),...t.getSymbols(g)];for(let A=0;A<j.length;A++){const O=j[A],T=Object.getOwnPropertyDescriptor(m,O);(T==null||T.writable)&&(m[O]=c(g[O],O,y,b,S))}}function h(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=c,e.copyProperties=f})(D0)),D0}var qT;function rG(){return qT||(qT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Y3();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(_0)),_0}var VT;function iG(){return VT||(VT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H3(),n=rG();function r(a){return a=n.cloneDeep(a),o=>t.isMatch(o,a)}e.matches=r})(N0)),N0}var B0={},U0={},$0={},HT;function aG(){return HT||(HT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Y3(),n=K3();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 g=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(g,a),g}case n.argumentsTag:{const g={};return t.copyProperties(g,a),g.length=a.length,g[Symbol.iterator]=a[Symbol.iterator],g}default:return}})}e.cloneDeepWith=r})($0)),$0}var FT;function sG(){return FT||(FT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aG();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(U0)),U0}var q0={},V0={},KT;function G3(){return KT||(KT=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})(V0)),V0}var H0={},YT;function oG(){return YT||(YT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F3();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(H0)),H0}var GT;function lG(){return GT||(GT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=R3(),n=G3(),r=oG(),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 g=f[m];if((h==null||!Object.hasOwn(h,g))&&!((Array.isArray(h)||r.isArguments(h))&&n.isIndex(g)&&g<h.length))return!1;h=h[g]}return!0}e.has=o})(q0)),q0}var WT;function uG(){return WT||(WT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H3(),n=qw(),r=sG(),a=Hw(),o=lG();function l(c,f){switch(typeof c){case"object":{Object.is(c==null?void 0:c.valueOf(),-0)&&(c="-0");break}case"number":{c=n.toKey(c);break}}return f=r.cloneDeep(f),function(h){const m=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})(B0)),B0}var QT;function cG(){return QT||(QT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U3(),n=JY(),r=iG(),a=uG();function o(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?a.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=o})(O0)),O0}var XT;function fG(){return XT||(XT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WY(),n=U3(),r=ZY(),a=cG();function o(l,c=n.identity){return r.isArrayLikeObject(l)?t.uniqBy(Array.from(l),a.iteratee(c)):[]}e.uniqBy=o})(y0)),y0}var F0,ZT;function dG(){return ZT||(ZT=1,F0=fG().uniqBy),F0}var hG=dG();const JT=wi(hG);function W3(e,t,n){return t===!0?JT(e,n):typeof t=="function"?JT(e,t):e}var K0={exports:{}},Y0={},G0={exports:{}},W0={};/**
|
|
367
|
+
* @license React
|
|
368
|
+
* use-sync-external-store-shim.production.js
|
|
369
|
+
*
|
|
370
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the MIT license found in the
|
|
373
|
+
* LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/var eC;function mG(){if(eC)return W0;eC=1;var e=cu();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(g,y){var b=y(),S=r({inst:{value:b,getSnapshot:y}}),j=S[0].inst,A=S[1];return o(function(){j.value=b,j.getSnapshot=y,f(j)&&A({inst:j})},[g,b,y]),a(function(){return f(j)&&A({inst:j}),g(function(){f(j)&&A({inst:j})})},[g]),l(b),b}function f(g){var y=g.getSnapshot;g=g.value;try{var b=y();return!n(g,b)}catch{return!0}}function h(g,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return W0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,W0}var tC;function pG(){return tC||(tC=1,G0.exports=mG()),G0.exports}/**
|
|
375
|
+
* @license React
|
|
376
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
377
|
+
*
|
|
378
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
379
|
+
*
|
|
380
|
+
* This source code is licensed under the MIT license found in the
|
|
381
|
+
* LICENSE file in the root directory of this source tree.
|
|
382
|
+
*/var nC;function gG(){if(nC)return Y0;nC=1;var e=cu(),t=pG();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Y0.useSyncExternalStoreWithSelector=function(h,m,g,y,b){var S=o(null);if(S.current===null){var j={hasValue:!1,value:null};S.current=j}else j=S.current;S=c(function(){function O(_){if(!T){if(T=!0,N=_,_=y(_),b!==void 0&&j.hasValue){var k=j.value;if(b(k,_))return C=k}return C=_}if(k=C,r(N,_))return k;var D=y(_);return b!==void 0&&b(k,D)?(N=_,k):(N=_,C=D)}var T=!1,N,C,M=g===void 0?null:g;return[function(){return O(m())},M===null?void 0:function(){return O(M())}]},[m,g,y,b]);var A=a(h,S[0],S[1]);return l(function(){j.hasValue=!0,j.value=A},[A]),f(A),A},Y0}var rC;function vG(){return rC||(rC=1,K0.exports=gG()),K0.exports}var yG=vG(),Gw=w.createContext(null),xG=e=>e,At=()=>{var e=w.useContext(Gw);return e?e.store.dispatch:xG},rm=()=>{},bG=()=>rm,wG=(e,t)=>e===t;function we(e){var t=w.useContext(Gw);return yG.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:bG,t?t.store.getState:rm,t?t.store.getState:rm,t?e:rm,wG)}function SG(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jG(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function AG(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var iC=e=>Array.isArray(e)?e:[e];function OG(e){const t=Array.isArray(e[0])?e[0]:e;return AG(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function EG(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var NG=class{constructor(e){this.value=e}deref(){return this.value}},TG=typeof WeakRef<"u"?WeakRef:NG,CG=0,aC=1;function _h(){return{s:CG,v:void 0,o:null,p:null}}function Q3(e,t={}){let n=_h();const{resultEqualityCheck:r}=t;let a,o=0;function l(){var g;let c=n;const{length:f}=arguments;for(let y=0,b=f;y<b;y++){const S=arguments[y];if(typeof S=="function"||typeof S=="object"&&S!==null){let j=c.o;j===null&&(c.o=j=new WeakMap);const A=j.get(S);A===void 0?(c=_h(),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=_h(),j.set(S,c)):c=A}}const h=c;let m;if(c.s===aC)m=c.v;else if(m=e.apply(null,arguments),o++,r){const y=((g=a==null?void 0:a.deref)==null?void 0:g.call(a))??a;y!=null&&r(y,m)&&(m=y,o!==0&&o--),a=typeof m=="object"&&m!==null||typeof m=="function"?new TG(m):m}return h.s=aC,h.v=m,m}return l.clearCache=()=>{n=_h(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function kG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...a)=>{let o=0,l=0,c,f={},h=a.pop();typeof h=="object"&&(f=h,h=a.pop()),SG(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const m={...n,...f},{memoize:g,memoizeOptions:y=[],argsMemoize:b=Q3,argsMemoizeOptions:S=[]}=m,j=iC(y),A=iC(S),O=OG(a),T=g(function(){return o++,h.apply(null,arguments)},...j),N=b(function(){l++;const M=EG(O,arguments);return c=T.apply(null,M),c},...A);return Object.assign(N,{resultFunc:h,memoizedResultFunc:T,dependencies:O,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:g,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var Q=kG(Q3),MG=Object.assign((e,t=Q)=>{jG(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,c,f)=>(l[n[f]]=c,l),{}))},{withTypes:()=>MG}),Q0={},X0={},Z0={},sC;function PG(){return sC||(sC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,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})(Z0)),Z0}var J0={},ex={},oC;function X3(){return oC||(oC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(ex)),ex}var lC;function _G(){return lC||(lC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X3(),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})(J0)),J0}var uC;function DG(){return uC||(uC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PG(),n=_G(),r=Vw();function 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,g=l.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||n.isKey(b)?b:{key:b,path:r.toPath(b)}));return o.map(b=>({original:b,criteria:g.map(S=>m(S,b))})).slice().sort((b,S)=>{for(let j=0;j<g.length;j++){const A=t.compareValues(b.criteria[j],S.criteria[j],c[j]);if(A!==0)return A}return 0}).map(b=>b.original)}e.orderBy=a})(X0)),X0}var tx={},cC;function RG(){return cC||(cC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const 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})(tx)),tx}var nx={},fC;function Z3(){return fC||(fC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G3(),n=Yw(),r=$3(),a=V3();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})(nx)),nx}var dC;function zG(){return dC||(dC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DG(),n=RG(),r=Z3();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 rx,hC;function LG(){return hC||(hC=1,rx=zG().sortBy),rx}var IG=LG();const Pp=wi(IG);var J3=e=>e.legend.settings,BG=e=>e.legend.size,UG=e=>e.legend.payload,$G=Q([UG,J3],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Pp(r,n):r});function qG(){return we($G)}var Dh=1;function eR(){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)>Dh||Math.abs(l.left-t.left)>Dh||Math.abs(l.top-t.top)>Dh||Math.abs(l.width-t.width)>Dh)&&n({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function yn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var VG=typeof Symbol=="function"&&Symbol.observable||"@@observable",mC=VG,ix=()=>Math.random().toString(36).substring(7).split("").join("."),HG={INIT:`@@redux/INIT${ix()}`,REPLACE:`@@redux/REPLACE${ix()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ix()}`},Nm=HG;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 tR(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(tR)(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 g(A){if(typeof A!="function")throw new Error(yn(4));if(f)throw new Error(yn(5));let O=!0;h();const T=c++;return l.set(T,A),function(){if(O){if(f)throw new Error(yn(6));O=!1,h(),l.delete(T),o=null}}}function y(A){if(!Ww(A))throw new Error(yn(7));if(typeof A.type>"u")throw new Error(yn(8));if(typeof A.type!="string")throw new Error(yn(17));if(f)throw new Error(yn(9));try{f=!0,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=g;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(yn(11));function T(){const C=O;C.next&&C.next(m())}return T(),{unsubscribe:A(T)}},[mC](){return this}}}return y({type:Nm.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:b,[mC]:S}}function FG(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 nR(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{FG(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 g=r[m],y=n[g],b=l[g],S=y(b,c);if(typeof S>"u")throw c&&c.type,new Error(yn(14));h[g]=S,f=f||S!==b}return f=f||r.length!==Object.keys(l).length,f?h:l}}function Tm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function KG(...e){return t=>(n,r)=>{const 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 rR(e){return Ww(e)&&"type"in e&&typeof e.type=="string"}var iR=Symbol.for("immer-nothing"),pC=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fr=Object,nu=fr.getPrototypeOf,Cm="constructor",_p="prototype",Hb="configurable",km="enumerable",im="writable",uf="value",la=e=>!!e&&!!e[In];function ii(e){var t;return e?aR(e)||Rp(e)||!!e[pC]||!!((t=e[Cm])!=null&&t[pC])||zp(e)||Lp(e):!1}var YG=fr[_p][Cm].toString(),gC=new WeakMap;function aR(e){if(!e||!Qw(e))return!1;const t=nu(e);if(t===null||t===fr[_p])return!0;const n=fr.hasOwnProperty.call(t,Cm)&&t[Cm];if(n===Object)return!0;if(!Tl(n))return!1;let r=gC.get(n);return r===void 0&&(r=Function.toString.call(n),gC.set(n,r)),r===YG}function Dp(e,t,n=!0){$f(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 $f(e){const t=e[In];return t?t.type_:Rp(e)?1:zp(e)?2:Lp(e)?3:0}var vC=(e,t,n=$f(e))=>n===2?e.has(t):fr[_p].hasOwnProperty.call(e,t),Fb=(e,t,n=$f(e))=>n===2?e.get(t):e[t],Mm=(e,t,n,r=$f(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function GG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Rp=Array.isArray,zp=e=>e instanceof Map,Lp=e=>e instanceof Set,Qw=e=>typeof e=="object",Tl=e=>typeof e=="function",ax=e=>typeof e=="boolean";function WG(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Hi=e=>e.copy_||e.base_,Xw=e=>e.modified_?e.copy_:e.base_;function Kb(e,t){if(zp(e))return new Map(e);if(Lp(e))return new Set(e);if(Rp(e))return Array[_p].slice.call(e);const n=aR(e);if(t===!0||t==="class_only"&&!n){const r=fr.getOwnPropertyDescriptors(e);delete r[In];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const l=a[o],c=r[l];c[im]===!1&&(c[im]=!0,c[Hb]=!0),(c.get||c.set)&&(r[l]={[Hb]:!0,[im]:!0,[km]:c[km],[uf]:e[l]})}return fr.create(nu(e),r)}else{const r=nu(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)||!ii(e)||($f(e)>1&&fr.defineProperties(e,{set:Rh,add:Rh,clear:Rh,delete:Rh}),fr.freeze(e),t&&Dp(e,(n,r)=>{Zw(r,!0)},!1)),e}function QG(){Wr(2)}var Rh={[uf]:QG};function Ip(e){return e===null||!Qw(e)?!0:fr.isFrozen(e)}var Pm="MapSet",Yb="Patches",yC="ArrayMethods",sR={};function Oo(e){const t=sR[e];return t||Wr(0,e),t}var xC=e=>!!sR[e],cf,oR=()=>cf,XG=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:xC(Pm)?Oo(Pm):void 0,arrayMethodsPlugin_:xC(yC)?Oo(yC):void 0});function bC(e,t){t&&(e.patchPlugin_=Oo(Yb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gb(e){Wb(e),e.drafts_.forEach(ZG),e.drafts_=null}function Wb(e){e===cf&&(cf=e.parent_)}var wC=e=>cf=XG(cf,e);function ZG(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function SC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[In].modified_&&(Gb(t),Wr(4)),ii(e)&&(e=jC(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[In].base_,e,t)}else e=jC(t,n);return JG(t,e,!0),Gb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iR?e:void 0}function jC(e,t){if(Ip(t))return t;const n=t[In];if(!n)return _m(t,e.handledSet_,e);if(!Bp(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);cR(n,e)}return n.copy_}function JG(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zw(t,n)}function lR(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Bp=(e,t)=>e.scope_===t,eW=[];function uR(e,t,n,r){const a=Hi(e),o=e.type_;if(r!==void 0&&Fb(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)??eW;for(const c of l)Mm(a,c,n,o)}function tW(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=Xw(o);uR(e,o.draft_??o,l,n),cR(o,a)})}function cR(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)}lR(e)}}function nW(e,t,n){const{scope_:r}=e;if(la(n)){const a=n[In];Bp(a,r)&&a.callbacks_.push(function(){am(e);const l=Xw(a);uR(e,n,l,t)})}else ii(n)&&e.callbacks_.push(function(){const o=Hi(e);e.type_===3?o.has(n)&&_m(n,r.handledSet_,r):Fb(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_m(Fb(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)||!ii(e)||Ip(e)||(t.add(e),Dp(e,(r,a)=>{if(la(a)){const o=a[In];if(Bp(o,n)){const l=Xw(o);Mm(e,r,l,e.type_),lR(o)}}else ii(a)&&_m(a,t,n)})),e}function rW(e,t){const n=Rp(e),r={type_:n?1:0,scope_:t?t.scope_:oR(),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=ff);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===In)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=Hi(e);if(!vC(a,t,e.type_))return iW(e,a,t);const o=a[t];if(e.finalized_||!ii(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&WG(t))return o;if(o===sx(e.base_,t)){am(e);const l=e.type_===1?+t:t,c=Xb(e.scope_,o,e,l);return e.copy_[l]=c}return o},has(e,t){return t in Hi(e)},ownKeys(e){return Reflect.ownKeys(Hi(e))},set(e,t,n){const r=fR(Hi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=sx(Hi(e),t),o=a==null?void 0:a[In];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(GG(n,a)&&(n!==void 0||vC(e.base_,t,e.type_)))return!0;am(e),Qb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),nW(e,t,n)),!0},deleteProperty(e,t){return am(e),sx(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Qb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Hi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[im]:!0,[Hb]:e.type_!==1||t!=="length",[km]:r[km],[uf]:n[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return nu(e.base_)},setPrototypeOf(){Wr(12)}},ff={};for(let e in Dm){let t=Dm[e];ff[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}ff.deleteProperty=function(e,t){return ff.set.call(this,e,t,void 0)};ff.set=function(e,t,n){return Dm.set.call(this,e[0],t,n,e[0])};function sx(e,t){const n=e[In];return(n?Hi(n):e)[t]}function iW(e,t,n){var a;const r=fR(t,n);return r?uf in r?r[uf]:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function fR(e,t){if(!(t in e))return;let n=nu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=nu(n)}}function Qb(e){e.modified_||(e.modified_=!0,e.parent_&&Qb(e.parent_))}function am(e){e.copy_||(e.assigned_=new Map,e.copy_=Kb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var aW=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,g=>r.call(this,g,...m))}}Tl(r)||Wr(6),a!==void 0&&!Tl(a)&&Wr(7);let o;if(ii(n)){const l=wC(this),c=Xb(l,n,void 0);let f=!0;try{o=r(c),f=!1}finally{f?Gb(l):Wb(l)}return bC(l,a),SC(o,l)}else if(!n||!Qw(n)){if(o=r(n),o===void 0&&(o=n),o===iR&&(o=void 0),this.autoFreeze_&&Zw(o,!0),a){const l=[],c=[];Oo(Yb).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]},ax(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ax(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ax(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ii(t)||Wr(8),la(t)&&(t=ti(t));const n=wC(this),r=Xb(n,t,void 0);return r[In].isManual_=!0,Wb(n),r}finishDraft(t,n){const r=t&&t[In];(!r||!r.isManual_)&&Wr(9);const{scope_:a}=r;return bC(a,n),SC(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(Yb).applyPatches_;return la(t)?a(t,n):this.produce(t,o=>a(o,n))}};function Xb(e,t,n,r){const[a,o]=zp(t)?Oo(Pm).proxyMap_(t,n):Lp(t)?Oo(Pm).proxySet_(t,n):rW(t,n);return((n==null?void 0:n.scope_)??oR()).drafts_.push(a),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?tW(n,o,r):o.callbacks_.push(function(f){var m;(m=f.mapSetPlugin_)==null||m.fixSetContents(o);const{patchPlugin_:h}=f;o.modified_&&h&&h.generatePatches_(o,[],f)}),a}function ti(e){return la(e)||Wr(10,e),dR(e)}function dR(e){if(!ii(e)||Ip(e))return e;const t=e[In];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Kb(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Kb(e,!0);return Dp(n,(a,o)=>{Mm(n,a,dR(o))},r),t&&(t.finalized_=!1),n}var sW=new aW,hR=sW.produce;function mR(e){return({dispatch:n,getState:r})=>a=>o=>typeof o=="function"?o(n,r,e):a(o)}var oW=mR(),lW=mR,uW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tm:Tm.apply(null,arguments)};function Lr(e,t){function n(...r){if(t){let 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=>rR(r)&&r.type===e,n}var pR=class Ic extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ic.prototype)}static get[Symbol.species](){return Ic}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ic(...t[0].concat(this)):new Ic(...t.concat(this))}};function AC(e){return ii(e)?hR(e,()=>{}):e}function zh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function cW(e){return typeof e=="boolean"}var fW=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:o=!0}=t??{};let l=new pR;return n&&(cW(n)?l.push(oW):l.push(lW(n.extraArgument))),l},gR="RTK_autoBatch",vt=()=>e=>({payload:e,meta:{[gR]:!0}}),OC=e=>t=>{setTimeout(t,e)},vR=(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:OC(10):e.type==="callback"?e.queueNotification:OC(e.timeout),h=()=>{l=!1,o&&(o=!1,c.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const g=()=>a&&m(),y=r.subscribe(g);return c.add(m),()=>{y(),c.delete(m)}},dispatch(m){var g;try{return a=!((g=m==null?void 0:m.meta)!=null&&g[gR]),o=!a,o&&(l||(l=!0,f(h))),r.dispatch(m)}finally{a=!0}}})},dW=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new pR(e);return r&&a.push(vR(typeof r=="object"?r:void 0)),a};function hW(e){const t=fW(),{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=nR(n);else throw new Error(dr(1));let f;typeof r=="function"?f=r(t):f=t();let h=Tm;a&&(h=uW({trace:!1,...typeof a=="object"&&a}));const m=KG(...f),g=dW(m);let y=typeof l=="function"?l(g):g();const b=h(...y);return tR(c,o,b)}function yR(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 mW(e){return typeof e=="function"}function pW(e,t){let[n,r,a]=yR(t),o;if(mW(e))o=()=>AC(e());else{const c=AC(e);o=()=>c}function l(c=o(),f){let h=[n[f.type],...r.filter(({matcher:m})=>m(f)).map(({reducer:m})=>m)];return h.filter(m=>!!m).length===0&&(h=[a]),h.reduce((m,g)=>{if(g)if(la(m)){const b=g(m,f);return b===void 0?m:b}else{if(ii(m))return hR(m,y=>g(y,f));{const y=g(m,f);if(y===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return m},c)}return l.getInitialState=o,l}var gW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",vW=(e=21)=>{let t="",n=e;for(;n--;)t+=gW[Math.random()*64|0];return t},yW=Symbol.for("rtk-slice-createasyncthunk");function xW(e,t){return`${e}/${t}`}function bW({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[yW];return function(a){const{name:o,reducerPath:l=o}=a;if(!o)throw new Error(dr(11));const c=(typeof a.reducers=="function"?a.reducers(SW()):a.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(C,M){const _=typeof C=="string"?C:C.type;if(!_)throw new Error(dr(12));if(_ in h.sliceCaseReducersByType)throw new Error(dr(13));return h.sliceCaseReducersByType[_]=M,m},addMatcher(C,M){return h.sliceMatchers.push({matcher:C,reducer:M}),m},exposeAction(C,M){return h.actionCreators[C]=M,m},exposeCaseReducer(C,M){return h.sliceCaseReducersByName[C]=M,m}};f.forEach(C=>{const M=c[C],_={reducerName:C,type:xW(o,C),createNotation:typeof a.reducers=="function"};AW(M)?EW(_,M,m,t):jW(_,M,m)});function g(){const[C={},M=[],_=void 0]=typeof a.extraReducers=="function"?yR(a.extraReducers):[a.extraReducers],k={...C,...h.sliceCaseReducersByType};return pW(a.initialState,D=>{for(let B in k)D.addCase(B,k[B]);for(let B of h.sliceMatchers)D.addMatcher(B.matcher,B.reducer);for(let B of M)D.addMatcher(B.matcher,B.reducer);_&&D.addDefaultCase(_)})}const y=C=>C,b=new Map,S=new WeakMap;let j;function A(C,M){return j||(j=g()),j(C,M)}function O(){return j||(j=g()),j.getInitialState()}function T(C,M=!1){function _(D){let B=D[C];return typeof B>"u"&&M&&(B=zh(S,_,O)),B}function k(D=y){const B=zh(b,M,()=>new WeakMap);return zh(B,D,()=>{const K={};for(const[$,Z]of Object.entries(a.selectors??{}))K[$]=wW(Z,D,()=>zh(S,D,O),M);return K})}return{reducerPath:C,getSelectors:k,get selectors(){return k(_)},selectSlice:_}}const N={name:o,reducer:A,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:O,...T(l),injectInto(C,{reducerPath:M,..._}={}){const k=M??l;return C.inject({reducerPath:k,reducer:A},_),{...N,...T(k,!0)}}};return N}}function wW(e,t,n,r){function a(o,...l){let c=t(o);return typeof c>"u"&&r&&(c=n()),e(c,...l)}return a.unwrapped=e,a}var Jn=bW();function SW(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function jW({type:e,reducerName:t,createNotation:n},r,a){let o,l;if("reducer"in r){if(n&&!OW(r))throw new Error(dr(17));o=r.reducer,l=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?Lr(e,l):Lr(e))}function AW(e){return e._reducerDefinitionType==="asyncThunk"}function OW(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EW({type:e,reducerName:t},n,r,a){if(!a)throw new Error(dr(18));const{payloadCreator:o,fulfilled:l,pending:c,rejected:f,settled:h,options:m}=n,g=a(e,o,m);r.exposeAction(t,g),l&&r.addCase(g.fulfilled,l),c&&r.addCase(g.pending,c),f&&r.addCase(g.rejected,f),h&&r.addMatcher(g.settled,h),r.exposeCaseReducer(t,{fulfilled:l||Lh,pending:c||Lh,rejected:f||Lh,settled:h||Lh})}function Lh(){}var NW="task",xR="listener",bR="completed",Jw="cancelled",TW=`task-${Jw}`,CW=`task-${bR}`,Zb=`${xR}-${Jw}`,kW=`${xR}-${bR}`,Up=class{constructor(e){_y(this,"name","TaskAbortError");_y(this,"message");this.code=e,this.message=`${NW} ${Jw} (reason: ${e})`}},eS=(e,t)=>{if(typeof e!="function")throw new TypeError(dr(32))},Rm=()=>{},wR=(e,t=Rm)=>(e.catch(t),e),SR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),vo=e=>{if(e.aborted)throw new Up(e.reason)};function jR(e,t){let n=Rm;return new Promise((r,a)=>{const o=()=>a(new Up(e.reason));if(e.aborted){o();return}n=SR(e,o),t.finally(()=>n()).then(r,a)}).finally(()=>{n=Rm})}var MW=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Up?"cancelled":"rejected",error:n}}finally{t==null||t()}},zm=e=>t=>wR(jR(e,t).then(n=>(vo(e),n))),AR=e=>{const t=zm(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Il}=Object,EC={},$p="listenerMiddleware",PW=(e,t)=>{const n=r=>SR(e,()=>r.abort(e.reason));return(r,a)=>{eS(r);const o=new AbortController;n(o);const l=MW(async()=>{vo(e),vo(o.signal);const c=await r({pause:zm(o.signal),delay:AR(o.signal),signal:o.signal});return vo(o.signal),c},()=>o.abort(CW));return a!=null&&a.autoJoin&&t.push(l.catch(Rm)),{result:zm(e)(l),cancel(){o.abort(TW)}}}},_W=(e,t)=>{const n=async(r,a)=>{vo(t);let o=()=>{};const c=[new Promise((f,h)=>{let m=e({predicate:r,effect:(g,y)=>{y.unsubscribe(),f([g,y.getState(),y.getOriginalState()])}});o=()=>{m(),h()}})];a!=null&&c.push(new Promise(f=>setTimeout(f,a,null)));try{const f=await jR(t,Promise.race(c));return vo(t),f}finally{o()}};return(r,a)=>wR(n(r,a))},OR=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}},ER=Il(e=>{const{type:t,predicate:n,effect:r}=OR(e);return{id:vW(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(dr(22))}}},{withTypes:()=>ER}),NC=(e,t)=>{const{type:n,effect:r,predicate:a}=OR(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===a)&&o.effect===r)},Jb=e=>{e.pending.forEach(t=>{t.abort(Zb)})},DW=(e,t)=>()=>{for(const n of t.keys())Jb(n);e.clear()},TC=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},NR=Il(Lr(`${$p}/add`),{withTypes:()=>NR}),RW=Lr(`${$p}/removeAll`),TR=Il(Lr(`${$p}/remove`),{withTypes:()=>TR}),zW=(...e)=>{console.error(`${$p}/error`,...e)},qf=(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=zW}=e;eS(l);const c=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&Jb(b)}),f=b=>{const S=NC(t,b)??ER(b);return c(S)};Il(f,{withTypes:()=>f});const h=b=>{const S=NC(t,b);return S&&(S.unsubscribe(),b.cancelActive&&Jb(S)),!!S};Il(h,{withTypes:()=>h});const m=async(b,S,j,A)=>{const O=new AbortController,T=_W(f,O.signal),N=[];try{b.pending.add(O),r(b),await Promise.resolve(b.effect(S,Il({},j,{getOriginalState:A,condition:(C,M)=>T(C,M).then(Boolean),take:T,delay:AR(O.signal),pause:zm(O.signal),extra:o,signal:O.signal,fork:PW(O.signal,N),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((C,M,_)=>{C!==O&&(C.abort(Zb),_.delete(C))})},cancel:()=>{O.abort(Zb),b.pending.delete(O)},throwIfCancelled:()=>{vo(O.signal)}})))}catch(C){C instanceof Up||TC(l,C,{raisedBy:"effect"})}finally{await Promise.all(N),O.abort(kW),a(b),b.pending.delete(O)}},g=DW(t,n);return{middleware:b=>S=>j=>{if(!rR(j))return S(j);if(NR.match(j))return f(j.payload);if(RW.match(j)){g();return}if(TR.match(j))return h(j.payload);let A=b.getState();const O=()=>{if(A===EC)throw new Error(dr(23));return A};let T;try{if(T=S(j),t.size>0){const N=b.getState(),C=Array.from(t.values());for(const M of C){let _=!1;try{_=M.predicate(j,N,A)}catch(k){_=!1,TC(l,k,{raisedBy:"predicate"})}_&&m(M,j,b,O)}}}finally{A=EC}return T},startListening:f,stopListening:h,clearListeners:g}};function dr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var LW={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},CR=Jn({name:"chartLayout",initialState:LW,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,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:IW,setLayout:BW,setChartSize:UW,setScale:$W}=CR.actions,qW=CR.reducer;function kR(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 xi(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){VW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VW(e,t,n){return(t=HW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HW(e){var t=FW(e,"string");return typeof t=="symbol"?t:t+""}function FW(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 Ht(e,t,n){return jt(e)||jt(t)?n:yi(t)?tu(e,t,n):typeof t=="function"?t(e):n}var KW=(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 Dl(Dl({},e),{},{[o]:e[o]+(r||0)});if((c==="horizontal"||c==="vertical"&&o==="center")&&l!=="middle"&&he(e[l]))return Dl(Dl({},e),{},{[l]:e[l]+(a||0)})}return e},va=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",MR=(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},PR=(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:g,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?Qn(o[0]-o[1])*2*j:j,g||y){var A=(g||y||[]).map((O,T)=>{var N=r?r.indexOf(O):O;return{coordinate:l(N)+j,value:O,offset:j,index:T}});return A.filter(O=>!zr(O.coordinate))}return f&&h?h.map((O,T)=>({coordinate:l(O)+j,value:O,index:T,offset:j})):l.ticks&&m!=null?l.ticks(m).map((O,T)=>({coordinate:l(O)+j,value:O,offset:j,index:T})):l.domain().map((O,T)=>({coordinate:l(O)+j,value:r?r[O]:O,index:T,offset:j}))},kC=1e-4,YW=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),a=Math.min(r[0],r[1])-kC,o=Math.max(r[0],r[1])+kC,l=e(t[0]),c=e(t[n-1]);(l<a||l>o||c<a||c>o)&&e.domain([t[0],t[n-1]])}},GW=(e,t)=>{if(!t||t.length!==2||!he(t[0])||!he(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),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},WW=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var 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],g=h[0],y=zr(m)?g:m;y>=0?(h[0]=o,h[1]=o+y,o=m):(h[0]=l,h[1]=l+y,l=m)}}}},QW=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var 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)}}}},XW={sign:WW,expand:gY,none:Ao,silhouette:vY,wiggle:yY,positive:QW},ZW=(e,t,n)=>{var r,a=(r=XW[n])!==null&&r!==void 0?r:Ao,o=pY().keys(t).value((c,f)=>Number(Ht(c,f,0))).order(qb).offset(a),l=o(e);return l.forEach((c,f)=>{c.forEach((h,m)=>{var g=Ht(e[m],t[f],0);Array.isArray(g)&&g.length===2&&he(g[0])&&he(g[1])&&(h[0]=g[0],h[1]=g[1])})}),l};function _R(e){return e==null?void 0:String(e)}function MC(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=L3(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Ht(a,jt(l)?t.dataKey:l);return jt(f)?null:t.scale(f)}var PC=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=Ht(o,t.dataKey,t.scale.domain()[l]);return jt(c)?null:t.scale(c)-a/2+r},JW=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]},eQ=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},tQ=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],nQ=(e,t,n)=>{if(e!=null)return tQ(Object.keys(e).reduce((r,a)=>{var o=e[a];if(!o)return r;var{stackedData:l}=o,c=l.reduce((f,h)=>{var m=kR(h,t,n),g=eQ(m);return!ft(g[0])||!ft(g[1])?f:[Math.min(f[0],g[0]),Math.max(f[1],g[1])]},[1/0,-1/0]);return[Math.min(c[0],r[0]),Math.max(c[1],r[1])]},[1/0,-1/0]))},_C=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,DC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ru=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var 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 RC(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:a,name:o}=e;return Dl(Dl({},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 rQ=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},iQ=(e,t)=>t==="centric"?e.angle:e.radius,ya=e=>e.layout.width,xa=e=>e.layout.height,aQ=e=>e.layout.scale,DR=e=>e.layout.margin,Vp=Q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Hp=Q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),sQ="data-recharts-item-index",oQ="data-recharts-item-id",Vf=60;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 Ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zC(Object(n),!0).forEach(function(r){lQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lQ(e,t,n){return(t=uQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uQ(e){var t=cQ(e,"string");return typeof t=="symbol"?t:t+""}function cQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fQ=e=>e.brush.height;function dQ(e){var t=Hp(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Vf;return n+a}return n},0)}function hQ(e){var t=Hp(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Vf;return n+a}return n},0)}function mQ(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function pQ(e){var t=Vp(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var cn=Q([ya,xa,DR,fQ,dQ,hQ,mQ,pQ,J3,BG],(e,t,n,r,a,o,l,c,f,h)=>{var m={left:(n.left||0)+a,right:(n.right||0)+o},g={top:(n.top||0)+l,bottom:(n.bottom||0)+c},y=Ih(Ih({},g),m),b=y.bottom;y.bottom+=r,y=KW(y,f,h);var S=e-y.left-y.right,j=t-y.top-y.bottom;return Ih(Ih({brushBottom:b},y),{},{width:Math.max(S,0),height:Math.max(j,0)})}),gQ=Q(cn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),tS=Q(ya,xa,(e,t)=>({x:0,y:0,width:e,height:t})),vQ=w.createContext(null),Tn=()=>w.useContext(vQ)!=null,Fp=e=>e.brush,Kp=Q([Fp,cn,DR],(e,t,n)=>({height:e.height,x:he(e.x)?e.x:t.left,y:he(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:he(e.width)?e.width:t.width})),ox={},lx={},ux={},LC;function yQ(){return LC||(LC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal: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)},g=()=>{h&&m(),j()};let y=null;const b=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,g()},r)},S=()=>{y!==null&&(clearTimeout(y),y=null)},j=()=>{S(),l=void 0,c=null},A=()=>{m()},O=function(...T){if(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})(ux)),ux}var IC;function xQ(){return IC||(IC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yQ();function n(r,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,g=null;const y=t.debounce(function(...j){m=r.apply(this,j),g=null},a,{edges:h}),b=function(...j){return f!=null&&(g===null&&(g=Date.now()),Date.now()-g>=f)?(m=r.apply(this,j),g=Date.now(),y.cancel(),y.schedule(),m):(y.apply(this,j),m)},S=()=>(y.flush(),m);return b.cancel=y.cancel,b.flush=S,b}e.debounce=n})(lx)),lx}var BC;function bQ(){return BC||(BC=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xQ();function n(r,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})(ox)),ox}var cx,UC;function wQ(){return UC||(UC=1,cx=bQ().throttle),cx}var SQ=wQ();const jQ=wi(SQ);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++]))}},RR=(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}},AQ={width:0,height:0,overflow:"visible"},OQ={width:0,overflowX:"visible"},EQ={height:0,overflowY:"visible"},NQ={},TQ=e=>{var{width:t,height:n}=e,r=oa(t),a=oa(n);return r&&a?AQ:r?OQ:a?EQ:NQ};function CQ(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 e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e1.apply(null,arguments)}function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){kQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kQ(e,t,n){return(t=MQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MQ(e){var t=PQ(e,"string");return typeof t=="symbol"?t:t+""}function PQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zR=w.createContext({width:-1,height:-1});function _Q(e){return xi(e.width)&&xi(e.height)}function LR(e){var{children:t,width:n,height:r}=e,a=w.useMemo(()=>({width:n,height:r}),[n,r]);return _Q(a)?w.createElement(zR.Provider,{value:a},t):null}var nS=()=>w.useContext(zR),DQ=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:g,className:y,onResize:b,style:S={}}=e,j=w.useRef(null),A=w.useRef();A.current=b,w.useImperativeHandle(t,()=>j.current);var[O,T]=w.useState({containerWidth:r.width,containerHeight:r.height}),N=w.useCallback((D,B)=>{T(K=>{var $=Math.round(D),Z=Math.round(B);return K.containerWidth===$&&K.containerHeight===Z?K:{containerWidth:$,containerHeight:Z}})},[]);w.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return Uf;var D=Z=>{var le,{width:de,height:me}=Z[0].contentRect;N(de,me),(le=A.current)===null||le===void 0||le.call(A,de,me)};m>0&&(D=jQ(D,m,{trailing:!0,leading:!1}));var B=new ResizeObserver(D),{width:K,height:$}=j.current.getBoundingClientRect();return N(K,$),B.observe(j.current),()=>{B.disconnect()}},[N,m]);var{containerWidth:C,containerHeight:M}=O;Lm(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:_,calculatedHeight:k}=RR(C,M,{width:a,height:o,aspect:n,maxHeight:f});return Lm(_!=null&&_>0||k!=null&&k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
383
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
384
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
385
|
+
height and width.`,_,k,a,o,l,c,n),w.createElement("div",{id:g?"".concat(g):void 0,className:Ze("recharts-responsive-container",y),style:qC(qC({},S),{},{width:a,height:o,minWidth:l,minHeight:c,maxHeight:f}),ref:j},w.createElement("div",{style:TQ({width:a,height:o})},w.createElement(LR,{width:_,height:k},h)))}),sm=w.forwardRef((e,t)=>{var n=nS();if(xi(n.width)&&xi(n.height))return e.children;var{width:r,height:a}=CQ({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=RR(void 0,void 0,{width:r,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(l)?w.createElement(LR,{width:o,height:l},e.children):w.createElement(DQ,e1({},e,{width:r,height:a,ref:t}))});function IR(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Yp=()=>{var e,t=Tn(),n=we(gQ),r=we(Kp),a=(e=we(Fp))===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}},RQ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},BR=()=>{var e;return(e=we(cn))!==null&&e!==void 0?e:RQ},rS=()=>we(ya),iS=()=>we(xa),zQ=()=>we(e=>e.layout.margin),We=e=>e.layout.layoutType,Po=()=>we(We),LQ=()=>{var e=Po();if(e==="horizontal"||e==="vertical")return e},IQ=()=>{var e=Po();return e!==void 0},Gp=e=>{var t=At(),n=Tn(),{width:r,height: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&&xi(l)&&xi(c)&&t(UW({width:l,height:c}))},[t,n,l,c]),null},UR=Symbol.for("immer-nothing"),VC=Symbol.for("immer-draftable"),hr=Symbol.for("immer-state");function Qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var df=Object.getPrototypeOf;function iu(e){return!!e&&!!e[hr]}function Eo(e){var t;return e?$R(e)||Array.isArray(e)||!!e[VC]||!!((t=e.constructor)!=null&&t[VC])||Hf(e)||Qp(e):!1}var BQ=Object.prototype.constructor.toString(),HC=new WeakMap;function $R(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=HC.get(n);return r===void 0&&(r=Function.toString.call(n),HC.set(n,r)),r===BQ}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:Hf(e)?2:Qp(e)?3:0}function t1(e,t){return Wp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qR(e,t,n){const r=Wp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function UQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Hf(e){return e instanceof Map}function Qp(e){return e instanceof Set}function Ws(e){return e.copy_||e.base_}function n1(e,t){if(Hf(e))return new Map(e);if(Qp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=$R(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(df(e),r)}else{const r=df(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function aS(e,t=!1){return Xp(e)||iu(e)||!Eo(e)||(Wp(e)>1&&Object.defineProperties(e,{set:Bh,add:Bh,clear:Bh,delete:Bh}),Object.freeze(e),t&&Object.values(e).forEach(n=>aS(n,!0))),e}function $Q(){Qr(2)}var Bh={value:$Q};function Xp(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var qQ={};function No(e){const t=qQ[e];return t||Qr(0,e),t}var hf;function VR(){return hf}function VQ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function FC(e,t){t&&(No("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function r1(e){i1(e),e.drafts_.forEach(HQ),e.drafts_=null}function i1(e){e===hf&&(hf=e.parent_)}function KC(e){return hf=VQ(hf,e)}function HQ(e){const t=e[hr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function YC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hr].modified_&&(r1(t),Qr(4)),Eo(e)&&(e=Bm(t,e),t.parent_||Um(t,e)),t.patches_&&No("Patches").generateReplacementPatches_(n[hr].base_,e,t.patches_,t.inversePatches_)):e=Bm(t,n,[]),r1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==UR?e:void 0}function Bm(e,t,n){if(Xp(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[hr];if(!a)return Im(t,(o,l)=>GC(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)=>GC(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 GC(e,t,n,r,a,o,l){if(a==null||typeof a!="object"&&!l)return;const c=Xp(a);if(!(c&&!l)){if(iu(a)){const f=o&&t&&t.type_!==3&&!t1(t.assigned_,r)?o.concat(r):void 0,h=Bm(e,a,f);if(qR(n,r,h),iu(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"&&(Hf(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 FQ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:VR(),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=mf);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=Ws(e);if(!t1(n,t))return KQ(e,n,t);const r=n[t];return e.finalized_||!Eo(r)?r:r===fx(e.base_,t)?(dx(e),e.copy_[t]=s1(r,e)):r},has(e,t){return t in Ws(e)},ownKeys(e){return Reflect.ownKeys(Ws(e))},set(e,t,n){const r=HR(Ws(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=fx(Ws(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(UQ(n,a)&&(n!==void 0||t1(e.base_,t)))return!0;dx(e),a1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return fx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dx(e),a1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ws(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qr(11)},getPrototypeOf(e){return df(e.base_)},setPrototypeOf(){Qr(12)}},mf={};Im(sS,(e,t)=>{mf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});mf.deleteProperty=function(e,t){return mf.set.call(this,e,t,void 0)};mf.set=function(e,t,n){return sS.set.call(this,e[0],t,n,e[0])};function fx(e,t){const n=e[hr];return(n?Ws(n):e)[t]}function KQ(e,t,n){var a;const r=HR(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function HR(e,t){if(!(t in e))return;let n=df(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=df(n)}}function a1(e){e.modified_||(e.modified_=!0,e.parent_&&a1(e.parent_))}function dx(e){e.copy_||(e.copy_=n1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YQ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(f=o,...h){return l.produce(f,m=>n.call(this,m,...h))}}typeof n!="function"&&Qr(6),r!==void 0&&typeof r!="function"&&Qr(7);let a;if(Eo(t)){const o=KC(this),l=s1(t,void 0);let c=!0;try{a=n(l),c=!1}finally{c?r1(o):i1(o)}return FC(o,r),YC(a,o)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===UR&&(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 Qr(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)||Qr(8),iu(e)&&(e=GQ(e));const t=KC(this),n=s1(e,void 0);return n[hr].isManual_=!0,i1(t),n}finishDraft(e,t){const n=e&&e[hr];(!n||!n.isManual_)&&Qr(9);const{scope_:r}=n;return FC(r,t),YC(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const 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 iu(e)?r(e,t):this.produce(e,a=>r(a,t))}};function s1(e,t){const n=Hf(e)?No("MapSet").proxyMap_(e,t):Qp(e)?No("MapSet").proxySet_(e,t):FQ(e,t);return(t?t.scope_:VR()).drafts_.push(n),n}function GQ(e){return iu(e)||Qr(10,e),FR(e)}function FR(e){if(!Eo(e)||Xp(e))return e;const t=e[hr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=n1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=n1(e,!0);return Im(n,(a,o)=>{qR(n,a,FR(o))},r),t&&(t.finalized_=!1),n}var WQ=new YQ;WQ.produce;var QQ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},KR=Jn({name:"legend",initialState:QQ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:vt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ti(e).payload.indexOf(n);a>-1&&(e.payload[a]=r)},prepare:vt()},removeLegendPayload:{reducer(e,t){var n=ti(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:vt()}}}),{setLegendSize:WC,setLegendSettings:XQ,addLegendPayload:ZQ,replaceLegendPayload:JQ,removeLegendPayload:eX}=KR.actions,tX=KR.reducer,nX=["contextPayload"];function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o1.apply(null,arguments)}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QC(Object(n),!0).forEach(function(r){rX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rX(e,t,n){return(t=iX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iX(e){var t=aX(e,"string");return typeof t=="symbol"?t:t+""}function aX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sX(e,t){if(e==null)return{};var n,r,a=oX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function oX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lX(e){return e.value}function uX(e){var{contextPayload:t}=e,n=sX(e,nX),r=W3(t,e.payloadUniqBy,lX),a=au(au({},n),{},{payload:r});return w.isValidElement(e.content)?w.cloneElement(e.content,a):typeof e.content=="function"?w.createElement(e.content,a):w.createElement(GY,a)}function cX(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}),au(au({},h),m)}function fX(e){var t=At();return w.useEffect(()=>{t(XQ(e))},[t,e]),null}function dX(e){var t=At();return w.useEffect(()=>(t(WC(e)),()=>{t(WC({width:0,height:0}))}),[t,e]),null}function hX(e,t,n,r){return e==="vertical"&&he(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var mX={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function YR(e){var t=Sn(e,mX),n=qG(),r=BK(),a=zQ(),{width:o,height:l,wrapperStyle:c,portal:f}=t,[h,m]=eR([n]),g=rS(),y=iS();if(g==null||y==null)return null;var b=g-((a==null?void 0:a.left)||0)-((a==null?void 0:a.right)||0),S=hX(t.layout,l,o,b),j=f?c:au(au({position:"absolute",width:(S==null?void 0:S.width)||o||"auto",height:(S==null?void 0:S.height)||l||"auto"},cX(c,t,a,g,y,h)),c),A=f??r;if(A==null||n==null)return null;var O=w.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:m},w.createElement(fX,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!f&&w.createElement(dX,{width:h.width,height:h.height}),w.createElement(uX,o1({},t,S,{margin:a,chartWidth:g,chartHeight:y,contextPayload:n})));return _f.createPortal(O,A)}YR.displayName="Legend";function l1(){return l1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l1.apply(null,arguments)}function XC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XC(Object(n),!0).forEach(function(r){pX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=vX(e,"string");return typeof t=="symbol"?t:t+""}function vX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yX(e){return Array.isArray(e)&&yi(e[0])&&yi(e[1])?e.join(" ~ "):e}var xX=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:a={},payload:o,formatter:l,itemSorter:c,wrapperClassName:f,labelClassName:h,label:m,labelFormatter:g,accessibilityLayer:y=!1}=e,b=()=>{if(o&&o.length){var M={padding:0,margin:0},_=(c?Pp(o,c):o).map((k,D)=>{if(k.type==="none")return null;var B=k.formatter||l||yX,{value:K,name:$}=k,Z=K,le=$;if(B){var de=B(K,$,k,D,o);if(Array.isArray(de))[Z,le]=de;else if(de!=null)Z=de;else return null}var me=hx({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},r);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:me},yi(le)?w.createElement("span",{className:"recharts-tooltip-item-name"},le):null,yi(le)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},Z),w.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:M},_)}return null},S=hx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),j=hx({margin:0},a),A=!jt(m),O=A?m:"",T=Ze("recharts-default-tooltip",f),N=Ze("recharts-tooltip-label",h);A&&g&&o!==void 0&&o!==null&&(O=g(m,o));var C=y?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",l1({className:T,style:S},C),w.createElement("p",{className:N,style:j},w.isValidElement(O)?O:"".concat(O)),b())},Ac="recharts-tooltip-wrapper",bX={visibility:"hidden"};function wX(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ze(Ac,{["".concat(Ac,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Ac,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Ac,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Ac,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function ZC(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft: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),g=n[r]+a;if(t[r])return l[r]?m:g;var y=f[r];if(y==null)return 0;if(l[r]){var b=m,S=y;return b<S?Math.max(g,y):Math.max(m,y)}if(h==null)return 0;var j=g+c,A=y+h;return j>A?Math.max(m,y):Math.max(g,y)}function SX(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function jX(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:a,reverseDirection:o,tooltipBox:l,useTranslate3d:c,viewBox:f}=e,h,m,g;return l.height>0&&l.width>0&&n?(m=ZC({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),g=ZC({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),h=SX({translateX:m,translateY:g,useTranslate3d:c})):h=bX,{cssProperties:h,cssClasses:wX({translateX:m,translateY:g,coordinate:n})}}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return(t=AX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AX(e){var t=OX(e,"string");return typeof t=="symbol"?t:t+""}function OX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class EX extends w.PureComponent{constructor(){super(...arguments),u1(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),u1(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,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:g,useTranslate3d:y,viewBox:b,wrapperStyle:S,lastBoundingBox:j,innerRef:A,hasPortalFromProps:O}=this.props,{cssClasses:T,cssProperties:N}=jX({allowEscapeViewBox:n,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:g,tooltipBox:{height:j.height,width:j.width},useTranslate3d:y,viewBox:b}),C=O?{}:Uh(Uh({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}),M=Uh(Uh({},C),{},{visibility:!this.state.dismissed&&t&&c?"visible":"hidden"},S);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:T,style:M,ref:A},o)}}var GR=()=>{var e;return(e=we(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function c1(){return c1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c1.apply(null,arguments)}function ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(r){NX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NX(e,t,n){return(t=TX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TX(e){var t=CX(e,"string");return typeof t=="symbol"?t:t+""}function CX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nk={curveBasisClosed:iY,curveBasisOpen:aY,curveBasis:rY,curveBumpX:VK,curveBumpY:HK,curveLinearClosed:sY,curveLinear:Cp,curveMonotoneX:oY,curveMonotoneY:lY,curveNatural:uY,curveStep:cY,curveStepAfter:dY,curveStepBefore:fY},$m=e=>ft(e.x)&&ft(e.y),rk=e=>e.base!=null&&$m(e.base)&&$m(e),Oc=e=>e.x,Ec=e=>e.y,kX=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Bf(e));return(n==="curveMonotone"||n==="curveBump")&&t?nk["".concat(n).concat(t==="vertical"?"Y":"X")]:nk[n]||Cp},MX=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:a,connectNulls:o=!1}=e,l=kX(t,a),c=o?n.filter($m):n,f;if(Array.isArray(r)){var h=n.map((b,S)=>tk(tk({},b),{},{base:r[S]}));a==="vertical"?f=Ph().y(Ec).x1(Oc).x0(b=>b.base.x):f=Ph().x(Oc).y1(Ec).y0(b=>b.base.y);var m=f.defined(rk).curve(l),g=o?h.filter(rk):h;return m(g)}a==="vertical"&&he(r)?f=Ph().y(Ec).x1(Oc).x0(r):he(r)?f=Ph().x(Oc).y1(Ec).y0(r):f=A3().x(Oc).y(Ec);var y=f.defined($m).curve(l);return y(c)},Fc=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?MX(l):r;return w.createElement("path",c1({},Rr(e),Kw(e),{className:Ze("recharts-curve",t),d:c===null?void 0:c,ref:a}))},PX=["x","y","top","left","width","height","className"];function f1(){return f1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f1.apply(null,arguments)}function ik(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 _X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(n),!0).forEach(function(r){DX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DX(e,t,n){return(t=RX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RX(e){var t=zX(e,"string");return typeof t=="symbol"?t:t+""}function zX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LX(e,t){if(e==null)return{};var n,r,a=IX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function IX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var BX=(e,t,n,r,a,o)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),UX=e=>{var{x:t=0,y:n=0,top:r=0,left:a=0,width:o=0,height:l=0,className:c}=e,f=LX(e,PX),h=_X({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",f1({},zn(h),{className:Ze("recharts-cross",c),d:BX(t,n,o,l,r,a)}))};function $X(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 ak(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 sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ak(Object(n),!0).forEach(function(r){qX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qX(e,t,n){return(t=VX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=HX(e,"string");return typeof t=="symbol"?t:t+""}function HX(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 FX=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),WR=(e,t,n)=>e.map(r=>"".concat(FX(r)," ").concat(t,"ms ").concat(n)).join(","),KX=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(a=>r.includes(a))),pf=(e,t)=>Object.keys(t).reduce((n,r)=>sk(sk({},n),{},{[r]:e(r,t[r])}),{});function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?ok(Object(n),!0).forEach(function(r){YX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YX(e,t,n){return(t=GX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GX(e){var t=WX(e,"string");return typeof t=="symbol"?t:t+""}function WX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qm=(e,t,n)=>e+(t-e)*n,d1=e=>{var{from:t,to:n}=e;return t!==n},QR=(e,t,n)=>{var r=pf((a,o)=>{if(d1(o)){var[l,c]=e(o.from,o.to,o.velocity);return Wt(Wt({},o),{},{from:l,velocity:c})}return o},t);return n<1?pf((a,o)=>d1(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):QR(e,r,n-1)};function QX(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=()=>pf((y,b)=>b.from,c),h=()=>!Object.values(c).filter(d1).length,m=null,g=y=>{l||(l=y);var b=y-l,S=b/n.dt;c=QR(n,c,S),a(Wt(Wt(Wt({},e),t),f())),l=y,h()||(m=o.setTimeout(g))};return()=>(m=o.setTimeout(g),()=>{var y;(y=m)===null||y===void 0||y()})}function XX(e,t,n,r,a,o,l){var c=null,f=a.reduce((g,y)=>{var b=e[y],S=t[y];return b==null||S==null?g:Wt(Wt({},g),{},{[y]:[b,S]})},{}),h,m=g=>{h||(h=g);var y=(g-h)/r,b=pf((j,A)=>qm(...A,n(y)),f);if(o(Wt(Wt(Wt({},e),t),b)),y<1)c=l.setTimeout(m);else{var S=pf((j,A)=>qm(...A,n(1)),f);o(Wt(Wt(Wt({},e),t),S))}};return()=>(c=l.setTimeout(m),()=>{var g;(g=c)===null||g===void 0||g()})}const ZX=(e,t,n,r,a,o)=>{var l=KX(e,t);return n==null?()=>(a(Wt(Wt({},e),t)),()=>{}):n.isStepper===!0?QX(e,t,n,l,a,o):XX(e,t,n,r,l,a,o)};var Vm=1e-4,XR=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],ZR=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),lk=(e,t)=>n=>{var r=XR(e,t);return ZR(r,n)},JX=(e,t)=>n=>{var r=XR(e,t),a=[...r.map((o,l)=>o*l).slice(1),0];return ZR(a,n)},eZ=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var a=r.map(o=>parseFloat(o));return[a[0],a[1],a[2],a[3]]},tZ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var a=eZ(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},nZ=(e,t,n,r)=>{var a=lk(e,n),o=lk(t,r),l=JX(e,n),c=h=>h>1?1:h<0?0:h,f=h=>{for(var m=h>1?1:h,g=m,y=0;y<8;++y){var b=a(g)-m,S=l(g);if(Math.abs(b-m)<Vm||S<Vm)return o(g);g=c(g-b/S)}return o(g)};return f.isStepper=!1,f},uk=function(){return nZ(...tZ(...arguments))},rZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:a=17}=t,o=(l,c,f)=>{var h=-(l-c)*n,m=f*r,g=f+(h-m)*a/1e3,y=f*a/1e3+l;return Math.abs(y-c)<Vm&&Math.abs(g)<Vm?[c,0]:[y,g]};return o.isStepper=!0,o.dt=a,o},iZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return uk(e);case"spring":return rZ();default:if(e.split("(")[0]==="cubic-bezier")return uk(e)}return typeof e=="function"?e:null};function aZ(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 sZ{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 oZ(){return aZ(new sZ)}var lZ=w.createContext(oZ);function uZ(e,t){var n=w.useContext(lZ);return w.useMemo(()=>t??n(e),[e,t,n])}var cZ=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ff={isSsr:cZ()},fZ={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},ck={t:0},mx={t:1};function Zp(e){var t=Sn(e,fZ),{isActive:n,canBegin:r,duration:a,easing:o,begin:l,onAnimationEnd:c,onAnimationStart:f,children:h}=t,m=n==="auto"?!Ff.isSsr:n,g=uZ(t.animationId,t.animationManager),[y,b]=w.useState(m?ck:mx),S=w.useRef(null);return w.useEffect(()=>{m||b(mx)},[m]),w.useEffect(()=>{if(!m||!r)return Uf;var j=ZX(ck,mx,iZ(o),a,b,g.getTimeoutController()),A=()=>{S.current=j()};return g.start([f,l,A,a,c]),()=>{g.stop(),S.current&&S.current(),c()}},[m,r,a,o,l,f,c,g]),h(y.t)}function Jp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=w.useRef(lf(t)),r=w.useRef(e);return r.current!==e&&(n.current=lf(t),r.current=e),n.current}var dZ=["radius"],hZ=["radius"],fk,dk,hk,mk,pk,gk,vk,yk,xk,bk;function wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){mZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mZ(e,t,n){return(t=pZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pZ(e){var t=gZ(e,"string");return typeof t=="symbol"?t:t+""}function gZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hm(){return Hm=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},Hm.apply(null,arguments)}function jk(e,t){if(e==null)return{};var n,r,a=vZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ak=(e,t,n,r,a)=>{var o=ms(n),l=ms(r),c=Math.min(Math.abs(o)/2,Math.abs(l)/2),f=l>=0?1:-1,h=o>=0?1:-1,m=l>=0&&o>=0||l<0&&o<0?1:0,g;if(c>0&&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];g=kt(fk||(fk=fi(["M",",",""])),e,t+f*y[0]),y[0]>0&&(g+=kt(dk||(dk=fi(["A ",",",",0,0,",",",",",""])),y[0],y[0],m,e+h*y[0],t)),g+=kt(hk||(hk=fi(["L ",",",""])),e+n-h*y[1],t),y[1]>0&&(g+=kt(mk||(mk=fi(["A ",",",",0,0,",`,
|
|
386
|
+
`,",",""])),y[1],y[1],m,e+n,t+f*y[1])),g+=kt(pk||(pk=fi(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(g+=kt(gk||(gk=fi(["A ",",",",0,0,",`,
|
|
387
|
+
`,",",""])),y[2],y[2],m,e+n-h*y[2],t+r)),g+=kt(vk||(vk=fi(["L ",",",""])),e+h*y[3],t+r),y[3]>0&&(g+=kt(yk||(yk=fi(["A ",",",",0,0,",`,
|
|
388
|
+
`,",",""])),y[3],y[3],m,e,t+r-f*y[3])),g+="Z"}else if(c>0&&a===+a&&a>0){var j=Math.min(c,a);g=kt(xk||(xk=fi(["M ",",",`
|
|
389
|
+
A `,",",",0,0,",",",",",`
|
|
390
|
+
L `,",",`
|
|
391
|
+
A `,",",",0,0,",",",",",`
|
|
392
|
+
L `,",",`
|
|
393
|
+
A `,",",",0,0,",",",",",`
|
|
394
|
+
L `,",",`
|
|
395
|
+
A `,",",",0,0,",",",","," Z"])),e,t+f*j,j,j,m,e+h*j,t,e+n-h*j,t,j,j,m,e+n,t+f*j,e+n,t+r-f*j,j,j,m,e+n-h*j,t+r,e+h*j,t+r,j,j,m,e,t+r-f*j)}else g=kt(bk||(bk=fi(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return g},Ok={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JR=e=>{var t=Sn(e,Ok),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:g,animationDuration:y,animationBegin:b,isAnimationActive:S,isUpdateAnimationActive:j}=t,A=w.useRef(c),O=w.useRef(f),T=w.useRef(o),N=w.useRef(l),C=w.useMemo(()=>({x:o,y:l,width:c,height:f,radius:h}),[o,l,c,f,h]),M=Jp(C,"rectangle-");if(o!==+o||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var _=Ze("recharts-rectangle",m);if(!j){var k=zn(t),{radius:D}=k,B=jk(k,dZ);return w.createElement("path",Hm({},B,{x:ms(o),y:ms(l),width:ms(c),height:ms(f),radius:typeof h=="number"?h:void 0,className:_,d:Ak(o,l,c,f,h)}))}var K=A.current,$=O.current,Z=T.current,le=N.current,de="0px ".concat(r===-1?1:r,"px"),me="".concat(r,"px 0px"),q=WR(["strokeDasharray"],y,typeof g=="string"?g:Ok.animationEasing);return w.createElement(Zp,{animationId:M,key:M,canBegin:r>0,duration:y,easing:g,isActive:j,begin:b},W=>{var Y=wt(K,c,W),oe=wt($,f,W),ne=wt(Z,o,W),R=wt(le,l,W);n.current&&(A.current=Y,O.current=oe,T.current=ne,N.current=R);var H;S?W>0?H={transition:q,strokeDasharray:me}:H={strokeDasharray:de}:H={strokeDasharray:me};var ie=zn(t),{radius:se}=ie,ve=jk(ie,hZ);return w.createElement("path",Hm({},ve,{radius:typeof h=="number"?h:void 0,className:_,d:Ak(ne,R,Y,oe,h),ref:n,style:Sk(Sk({},H),t.style)}))})};function Ek(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 Nk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){yZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yZ(e,t,n){return(t=xZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xZ(e){var t=bZ(e,"string");return typeof t=="symbol"?t:t+""}function bZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fm=Math.PI/180,wZ=e=>e*180/Math.PI,wn=(e,t,n,r)=>({x:e+Math.cos(-Fm*r)*n,y:t+Math.sin(-Fm*r)*n}),SZ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},jZ=(e,t)=>{var{x:n,y:r}=e,{x:a,y:o}=t;return Math.sqrt((n-a)**2+(r-o)**2)},AZ=(e,t)=>{var{x:n,y:r}=e,{cx:a,cy:o}=t,l=jZ({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:wZ(f),angleInRadian:f}},OZ=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}},EZ=(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},NZ=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:a,angle:o}=AZ({x:n,y:r},t),{innerRadius:l,outerRadius:c}=t;if(a<l||a>c||a===0)return null;var{startAngle:f,endAngle:h}=OZ(t),m=o,g;if(f<=h){for(;m>h;)m-=360;for(;m<f;)m+=360;g=m>=f&&m<=h}else{for(;m>f;)m-=360;for(;m<h;)m+=360;g=m>=h&&m<=f}return g?Nk(Nk({},t),{},{radius:a,angle:EZ(m,t)}):null};function e4(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 Tk,Ck,kk,Mk,Pk,_k,Dk;function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h1.apply(null,arguments)}function to(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var TZ=(e,t)=>{var n=Qn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},$h=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)/Fm,g=f?a:a+o*m,y=wn(t,n,h,g),b=wn(t,n,r,g),S=f?a-o*m:a,j=wn(t,n,h*Math.cos(m*Fm),S);return{center:y,circleTangency:b,lineTangency:j,theta:m}},t4=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:o,endAngle:l}=e,c=TZ(o,l),f=o+c,h=wn(t,n,a,o),m=wn(t,n,a,f),g=kt(Tk||(Tk=to(["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);g+=kt(Ck||(Ck=to(["L ",",",`
|
|
400
|
+
A `,",",`,0,
|
|
401
|
+
`,",",`,
|
|
402
|
+
`,","," Z"])),b.x,b.y,r,r,+(Math.abs(c)>180),+(o<=f),y.x,y.y)}else g+=kt(kk||(kk=to(["L ",","," Z"])),t,n);return g},CZ=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:h}=e,m=Qn(h-f),{circleTangency:g,lineTangency:y,theta:b}=$h({cx:t,cy:n,radius:a,angle:f,sign:m,cornerRadius:o,cornerIsExternal:c}),{circleTangency:S,lineTangency:j,theta:A}=$h({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(Mk||(Mk=to(["M ",",",`
|
|
403
|
+
a`,",",",0,0,1,",`,0
|
|
404
|
+
a`,",",",0,0,1,",`,0
|
|
405
|
+
`])),y.x,y.y,o,o,o*2,o,o,-o*2):t4({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:f,endAngle:h});var T=kt(Pk||(Pk=to(["M ",",",`
|
|
406
|
+
A`,",",",0,0,",",",",",`
|
|
407
|
+
A`,",",",0,",",",",",",",`
|
|
408
|
+
A`,",",",0,0,",",",",",`
|
|
409
|
+
`])),y.x,y.y,o,o,+(m<0),g.x,g.y,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:M}=$h({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),{circleTangency:_,lineTangency:k,theta:D}=$h({cx:t,cy:n,radius:r,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),B=c?Math.abs(f-h):Math.abs(f-h)-M-D;if(B<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+=kt(_k||(_k=to(["L",",",`
|
|
410
|
+
A`,",",",0,0,",",",",",`
|
|
411
|
+
A`,",",",0,",",",",",",",`
|
|
412
|
+
A`,",",",0,0,",",",",","Z"])),k.x,k.y,o,o,+(m<0),_.x,_.y,r,r,+(B>180),+(m>0),N.x,N.y,o,o,+(m<0),C.x,C.y)}else T+=kt(Dk||(Dk=to(["L",",","Z"])),t,n);return T},kZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},n4=e=>{var t=Sn(e,kZ),{cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:l,forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m,className:g}=t;if(o<a||h===m)return null;var y=Ze("recharts-sector",g),b=o-a,S=ri(l,b,0,!0),j;return S>0&&Math.abs(h-m)<360?j=CZ({cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:h,endAngle:m}):j=t4({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),w.createElement("path",h1({},zn(t),{className:y,d:j}))};function MZ(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(B3(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 e4(t)}}var px={},gx={},vx={},Rk;function PZ(){return Rk||(Rk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X3();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(vx)),vx}var zk;function _Z(){return zk||(zk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PZ();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(gx)),gx}var Lk;function DZ(){return Lk||(Lk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z3(),n=_Z();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})(px)),px}var yx,Ik;function RZ(){return Ik||(Ik=1,yx=DZ().range),yx}var zZ=RZ();const r4=wi(zZ);function gs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LZ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oS(e){let t,n,r;e.length!==2?(t=gs,n=(c,f)=>gs(e(c),f),r=(c,f)=>e(c)-f):(t=e===gs||e===LZ?e:IZ,n=e,r=e);function a(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const g=h+m>>>1;n(c[g],f)<0?h=g+1:m=g}while(h<m)}return h}function o(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const g=h+m>>>1;n(c[g],f)<=0?h=g+1:m=g}while(h<m)}return h}function l(c,f,h=0,m=c.length){const g=a(c,f,h,m-1);return g>h&&r(c[g-1],f)>-r(c[g],f)?g-1:g}return{left:a,center:l,right:o}}function IZ(){return 0}function i4(e){return e===null?NaN:+e}function*BZ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const UZ=oS(gs),Kf=UZ.right;oS(i4).center;class Bk extends Map{constructor(t,n=VZ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(Uk(this,t))}has(t){return super.has(Uk(this,t))}set(t,n){return super.set($Z(this,t),n)}delete(t){return super.delete(qZ(this,t))}}function Uk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $Z({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qZ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VZ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function HZ(e=gs){if(e===gs)return a4;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 a4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const FZ=Math.sqrt(50),KZ=Math.sqrt(10),YZ=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>=FZ?10:o>=KZ?5:o>=YZ?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 m1(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 p1(e,t,n){return t=+t,e=+e,n=+n,Km(e,t,n)[2]}function g1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?p1(t,e,n):p1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function $k(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function qk(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function s4(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?a4:HZ(a);r>n;){if(r-n>600){const f=r-n+1,h=t-n+1,m=Math.log(f),g=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*g*(f-g)/f)*(h-f/2<0?-1:1),b=Math.max(n,Math.floor(t-h*g/f+y)),S=Math.min(r,Math.floor(t+(f-h)*g/f+y));s4(e,t,b,S,a)}const o=e[t];let l=n,c=r;for(Nc(e,n,t),a(e[r],o)>0&&Nc(e,n,r);l<c;){for(Nc(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Nc(e,n,c):(++c,Nc(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Nc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function GZ(e,t,n){if(e=Float64Array.from(BZ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qk(e);if(t>=1)return $k(e);var r,a=(r-1)*t,o=Math.floor(a),l=$k(s4(e,o).subarray(0,o+1)),c=qk(e.subarray(o+1));return l+(c-l)*(a-o)}}function WZ(e,t,n=i4){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,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 QZ(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 v1=Symbol("implicit");function lS(){var e=new Bk,t=[],n=[],r=v1;function a(o){let l=e.get(o);if(l===void 0){if(r!==v1)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Bk;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return 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 g(){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=QZ(y).map(function(O){return S+o*O});return n(b?A.reverse():A)}return e.domain=function(y){return arguments.length?(t(y),g()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,g()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,c=!0,g()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(y){return arguments.length?(c=!!y,g()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,h=+y),g()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),g()):f},e.paddingOuter=function(y){return arguments.length?(h=+y,g()):h},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),g()):m},e.copy=function(){return uS(t(),[r,a]).round(c).paddingInner(f).paddingOuter(h).align(m)},Ur.apply(g(),arguments)}function o4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return o4(t())},e}function XZ(){return o4(uS.apply(null,arguments).paddingInner(1))}function cS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function l4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yf(){}var gf=.7,Ym=1/gf,Bl="\\s*([+-]?\\d+)\\s*",vf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZZ=/^#([0-9a-f]{3,8})$/,JZ=new RegExp(`^rgb\\(${Bl},${Bl},${Bl}\\)$`),eJ=new RegExp(`^rgb\\(${vi},${vi},${vi}\\)$`),tJ=new RegExp(`^rgba\\(${Bl},${Bl},${Bl},${vf}\\)$`),nJ=new RegExp(`^rgba\\(${vi},${vi},${vi},${vf}\\)$`),rJ=new RegExp(`^hsl\\(${vf},${vi},${vi}\\)$`),iJ=new RegExp(`^hsla\\(${vf},${vi},${vi},${vf}\\)$`),Vk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cS(Yf,yf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hk,formatHex:Hk,formatHex8:aJ,formatHsl:sJ,formatRgb:Fk,toString:Fk});function Hk(){return this.rgb().formatHex()}function aJ(){return this.rgb().formatHex8()}function sJ(){return u4(this).formatHsl()}function Fk(){return this.rgb().formatRgb()}function yf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ZZ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Kk(t):n===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=JZ.exec(e))?new Xn(t[1],t[2],t[3],1):(t=eJ.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tJ.exec(e))?qh(t[1],t[2],t[3],t[4]):(t=nJ.exec(e))?qh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rJ.exec(e))?Wk(t[1],t[2]/100,t[3]/100,1):(t=iJ.exec(e))?Wk(t[1],t[2]/100,t[3]/100,t[4]):Vk.hasOwnProperty(e)?Kk(Vk[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function Kk(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function qh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xn(e,t,n,r)}function oJ(e){return e instanceof Yf||(e=yf(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function y1(e,t,n,r){return arguments.length===1?oJ(e):new Xn(e,t,n,r??1)}function Xn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cS(Xn,y1,l4(Yf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gf:Math.pow(gf,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(yo(this.r),yo(this.g),yo(this.b),Gm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yk,formatHex:Yk,formatHex8:lJ,formatRgb:Gk,toString:Gk}));function Yk(){return`#${no(this.r)}${no(this.g)}${no(this.b)}`}function lJ(){return`#${no(this.r)}${no(this.g)}${no(this.b)}${no((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gk(){const e=Gm(this.opacity);return`${e===1?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${e===1?")":`, ${e})`}`}function Gm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function no(e){return e=yo(e),(e<16?"0":"")+e.toString(16)}function Wk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xr(e,t,n,r)}function u4(e){if(e instanceof Xr)return new Xr(e.h,e.s,e.l,e.opacity);if(e instanceof Yf||(e=yf(e)),!e)return new Xr;if(e instanceof Xr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,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 Xr(l,c,f,e.opacity)}function uJ(e,t,n,r){return arguments.length===1?u4(e):new Xr(e,t,n,r??1)}function Xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cS(Xr,uJ,l4(Yf,{brighter(e){return e=e==null?Ym:Math.pow(Ym,e),new Xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gf:Math.pow(gf,e),new Xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Xn(xx(e>=240?e-240:e+120,a,r),xx(e,a,r),xx(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Xr(Qk(this.h),Vh(this.s),Vh(this.l),Gm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gm(this.opacity);return`${e===1?"hsl(":"hsla("}${Qk(this.h)}, ${Vh(this.s)*100}%, ${Vh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qk(e){return e=(e||0)%360,e<0?e+360:e}function Vh(e){return Math.max(0,Math.min(1,e||0))}function xx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fS=e=>()=>e;function cJ(e,t){return function(n){return e+n*t}}function fJ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function dJ(e){return(e=+e)==1?c4:function(t,n){return n-t?fJ(t,n,e):fS(isNaN(t)?n:t)}}function c4(e,t){var n=t-e;return n?cJ(e,n):fS(isNaN(e)?t:e)}const Xk=(function e(t){var n=dJ(t);function r(a,o){var l=n((a=y1(a)).r,(o=y1(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),h=c4(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 hJ(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 mJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=xu(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function gJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function vJ(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=xu(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var x1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bx=new RegExp(x1.source,"g");function yJ(e){return function(){return e}}function xJ(e){return function(t){return e(t)+""}}function bJ(e,t){var n=x1.lastIndex=bx.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=x1.exec(e))&&(a=bx.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=bx.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?xJ(f[0].x):yJ(t):(t=f.length,function(h){for(var m=0,g;m<t;++m)c[(g=f[m]).i]=g.x(h);return c.join("")})}function xu(e,t){var n=typeof t,r;return t==null||n==="boolean"?fS(t):(n==="number"?Wm:n==="string"?(r=yf(t))?(t=r,Xk):bJ:t instanceof yf?Xk:t instanceof Date?gJ:mJ(t)?hJ:Array.isArray(t)?pJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vJ:Wm)(e,t)}function dS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function wJ(e,t){t===void 0&&(t=e,e=xu);for(var n=0,r=t.length-1,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 SJ(e){return function(){return e}}function Qm(e){return+e}var Zk=[0,1];function Rn(e){return e}function b1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:SJ(isNaN(t)?NaN:.5)}function jJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function AJ(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=b1(a,r),o=n(l,o)):(r=b1(r,a),o=n(o,l)),function(c){return o(r(c))}}function OJ(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]=b1(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=Kf(e,c,1,r)-1;return o[f](a[f](c))}}function Gf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eg(){var e=Zk,t=Zk,n=xu,r,a,o,l=Rn,c,f,h;function m(){var y=Math.min(e.length,t.length);return l!==Rn&&(l=jJ(e[0],e[y-1])),c=y>2?OJ:AJ,f=h=null,g}function g(y){return y==null||isNaN(y=+y)?o:(f||(f=c(e.map(r),t,n)))(r(l(y)))}return g.invert=function(y){return l(a((h||(h=c(t,e.map(r),Wm)))(y)))},g.domain=function(y){return arguments.length?(e=Array.from(y,Qm),m()):e.slice()},g.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},g.rangeRound=function(y){return t=Array.from(y),n=dS,m()},g.clamp=function(y){return arguments.length?(l=y?!0:Rn,m()):l!==Rn},g.interpolate=function(y){return arguments.length?(n=y,m()):n},g.unknown=function(y){return arguments.length?(o=y,g):o},function(y,b){return r=y,a=b,m()}}function hS(){return eg()(Rn,Rn)}function EJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xm(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function su(e){return e=Xm(Math.abs(e)),e?e[1]:NaN}function NJ(e,t){return function(n,r){for(var 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 TJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xf(e){if(!(t=CJ.exec(e)))throw new Error("invalid format: "+e);var t;return new mS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}xf.prototype=mS.prototype;function mS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kJ(e){e:for(var t=e.length,n=1,r=-1,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 f4;function MJ(e,t){var n=Xm(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(f4=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")+Xm(e,Math.max(0,t+o-1))[0]}function Jk(e,t){var n=Xm(e,t);if(!n)return e+"";var r=n[0],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 eM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:EJ,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Jk(e*100,t),r:Jk,s:MJ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tM(e){return e}var nM=Array.prototype.map,rM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PJ(e){var t=e.grouping===void 0||e.thousands===void 0?tM:NJ(nM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?tM:TJ(nM.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function h(g){g=xf(g);var y=g.fill,b=g.align,S=g.sign,j=g.symbol,A=g.zero,O=g.width,T=g.comma,N=g.precision,C=g.trim,M=g.type;M==="n"?(T=!0,M="g"):eM[M]||(N===void 0&&(N=12),C=!0,M="g"),(A||y==="0"&&b==="=")&&(A=!0,y="0",b="=");var _=j==="$"?n:j==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",k=j==="$"?r:/[%p]/.test(M)?l:"",D=eM[M],B=/[defgprs%]/.test(M);N=N===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function K($){var Z=_,le=k,de,me,q;if(M==="c")le=D($)+le,$="";else{$=+$;var W=$<0||1/$<0;if($=isNaN($)?f:D(Math.abs($),N),C&&($=kJ($)),W&&+$==0&&S!=="+"&&(W=!1),Z=(W?S==="("?S:c:S==="-"||S==="("?"":S)+Z,le=(M==="s"?rM[8+f4/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 g+""},K}function m(g,y){var b=h((g=xf(g),g.type="f",g)),S=Math.max(-8,Math.min(8,Math.floor(su(y)/3)))*3,j=Math.pow(10,-S),A=rM[8+S/3];return function(O){return b(j*O)+A}}return{format:h,formatPrefix:m}}var Hh,pS,d4;_J({thousands:",",grouping:[3],currency:["$",""]});function _J(e){return Hh=PJ(e),pS=Hh.format,d4=Hh.formatPrefix,Hh}function DJ(e){return Math.max(0,-su(Math.abs(e)))}function RJ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(su(t)/3)))*3-su(Math.abs(e)))}function zJ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,su(t)-su(e))+1}function h4(e,t,n,r){var a=g1(e,t,n),o;switch(r=xf(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=RJ(a,l))&&(r.precision=o),d4(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=zJ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=DJ(a))&&(r.precision=o-(r.type==="%")*2);break}}return pS(r)}function Os(e){var t=e.domain;return e.ticks=function(n){var r=t();return m1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return h4(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=p1(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 m4(){var e=hS();return e.copy=function(){return Gf(e,m4())},Ur.apply(e,arguments),Os(e)}function p4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Qm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return p4(e).unknown(t)},e=arguments.length?Array.from(e,Qm):[0,1],Os(n)}function g4(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 iM(e){return Math.log(e)}function aM(e){return Math.exp(e)}function LJ(e){return-Math.log(-e)}function IJ(e){return-Math.exp(-e)}function BJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function UJ(e){return e===10?BJ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $J(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function sM(e){return(t,n)=>-e(-t,n)}function gS(e){const t=e(iM,aM),n=t.domain;let r=10,a,o;function l(){return a=$J(r),o=UJ(r),n()[0]<0?(a=sM(a),o=sM(o),e(LJ,IJ)):e(iM,aM),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let h=f[0],m=f[f.length-1];const g=m<h;g&&([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=m1(h,m,A))}else O=m1(y,b,Math.min(b-y,A)).map(o);return g?O.reverse():O},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=xf(f)).precision==null&&(f.trim=!0),f=pS(f)),c===1/0)return f;const h=Math.max(1,r*c/t.ticks().length);return m=>{let g=m/o(Math.round(a(m)));return g*r<r-.5&&(g*=r),g<=h?f(m):""}},t.nice=()=>n(g4(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function v4(){const e=gS(eg()).domain([1,10]);return e.copy=()=>Gf(e,v4()).base(e.base()),Ur.apply(e,arguments),e}function oM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function lM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vS(e){var t=1,n=e(oM(t),lM(t));return n.constant=function(r){return arguments.length?e(oM(t=+r),lM(t)):t},Os(n)}function y4(){var e=vS(eg());return e.copy=function(){return Gf(e,y4()).constant(e.constant())},Ur.apply(e,arguments)}function uM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qJ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function VJ(e){return e<0?-e*e:e*e}function yS(e){var t=e(Rn,Rn),n=1;function r(){return n===1?e(Rn,Rn):n===.5?e(qJ,VJ):e(uM(n),uM(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Os(t)}function xS(){var e=yS(eg());return e.copy=function(){return Gf(e,xS()).exponent(e.exponent())},Ur.apply(e,arguments),e}function HJ(){return xS.apply(null,arguments).exponent(.5)}function cM(e){return Math.sign(e)*e*e}function FJ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function x4(){var e=hS(),t=[0,1],n=!1,r;function a(o){var l=FJ(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(cM(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,Qm)).map(cM)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return x4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ur.apply(a,arguments),Os(a)}function b4(){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]=WZ(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[Kf(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(gs),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 b4().domain(e).range(t).unknown(r)},Ur.apply(o,arguments)}function w4(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[Kf(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 w4().domain([e,t]).range(a).unknown(o)},Ur.apply(Os(l),arguments)}function S4(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[Kf(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 S4().domain(e).range(t).unknown(n)},Ur.apply(a,arguments)}const wx=new Date,Sx=new Date;function Xt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let h;do f.push(h=new Date(+o)),t(o,c),e(o);while(h<o&&o<l);return f},a.filter=o=>Xt(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(wx.setTime(+o),Sx.setTime(+l),e(wx),e(Sx),Math.floor(n(wx,Sx))),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=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zm);Zm.range;const Xi=1e3,_r=Xi*60,Zi=_r*60,ua=Zi*24,bS=ua*7,fM=ua*30,jx=ua*365,ro=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xi)},(e,t)=>(t-e)/Xi,e=>e.getUTCSeconds());ro.range;const wS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xi)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getMinutes());wS.range;const SS=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCMinutes());SS.range;const jS=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xi-e.getMinutes()*_r)},(e,t)=>{e.setTime(+e+t*Zi)},(e,t)=>(t-e)/Zi,e=>e.getHours());jS.range;const AS=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zi)},(e,t)=>(t-e)/Zi,e=>e.getUTCHours());AS.range;const Wf=Xt(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);Wf.range;const tg=Xt(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 j4=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ua,e=>Math.floor(e/ua));j4.range;function _o(e){return Xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*_r)/bS)}const ng=_o(0),Jm=_o(1),KJ=_o(2),YJ=_o(3),ou=_o(4),GJ=_o(5),WJ=_o(6);ng.range;Jm.range;KJ.range;YJ.range;ou.range;GJ.range;WJ.range;function Do(e){return Xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bS)}const rg=Do(0),ep=Do(1),QJ=Do(2),XJ=Do(3),lu=Do(4),ZJ=Do(5),JJ=Do(6);rg.range;ep.range;QJ.range;XJ.range;lu.range;ZJ.range;JJ.range;const OS=Xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());OS.range;const ES=Xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ES.range;const ca=Xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ca.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ca.range;const fa=Xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());fa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});fa.range;function A4(e,t,n,r,a,o){const l=[[ro,1,Xi],[ro,5,5*Xi],[ro,15,15*Xi],[ro,30,30*Xi],[o,1,_r],[o,5,5*_r],[o,15,15*_r],[o,30,30*_r],[a,1,Zi],[a,3,3*Zi],[a,6,6*Zi],[a,12,12*Zi],[r,1,ua],[r,2,2*ua],[n,1,bS],[t,1,fM],[t,3,3*fM],[e,1,jx]];function c(h,m,g){const y=m<h;y&&([h,m]=[m,h]);const b=g&&typeof g.range=="function"?g:f(h,m,g),S=b?b.range(h,+m+1):[];return y?S.reverse():S}function f(h,m,g){const y=Math.abs(m-h)/g,b=oS(([,,A])=>A).right(l,y);if(b===l.length)return e.every(g1(h/jx,m/jx,g));if(b===0)return Zm.every(Math.max(g1(h,m,g),1));const[S,j]=l[y/l[b-1][2]<l[b][2]/y?b-1:b];return S.every(j)}return[c,f]}const[eee,tee]=A4(fa,ES,rg,j4,AS,SS),[nee,ree]=A4(ca,OS,ng,Wf,jS,wS);function Ax(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ox(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Tc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function iee(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=Cc(a),m=kc(a),g=Cc(o),y=kc(o),b=Cc(l),S=kc(l),j=Cc(c),A=kc(c),O=Cc(f),T=kc(f),N={a:W,A:Y,b:oe,B:ne,c:null,d:vM,e:vM,f:Nee,g:Lee,G:Bee,H:Aee,I:Oee,j:Eee,L:O4,m:Tee,M:Cee,p:R,q:H,Q:bM,s:wM,S:kee,u:Mee,U:Pee,V:_ee,w:Dee,W:Ree,x:null,X:null,y:zee,Y:Iee,Z:Uee,"%":xM},C={a:ie,A:se,b:ve,B:Oe,c:null,d:yM,e:yM,f:Hee,g:ete,G:nte,H:$ee,I:qee,j:Vee,L:N4,m:Fee,M:Kee,p:fe,q:Qe,Q:bM,s:wM,S:Yee,u:Gee,U:Wee,V:Qee,w:Xee,W:Zee,x:null,X:null,y:Jee,Y:tte,Z:rte,"%":xM},M={a:K,A:$,b:Z,B:le,c:de,d:pM,e:pM,f:bee,g:mM,G:hM,H:gM,I:gM,j:gee,L:xee,m:pee,M:vee,p:B,q:mee,Q:See,s:jee,S:yee,u:uee,U:cee,V:fee,w:lee,W:dee,x:me,X:q,y:mM,Y:hM,Z:hee,"%":wee};N.x=_(n,N),N.X=_(r,N),N.c=_(t,N),C.x=_(n,C),C.X=_(r,C),C.c=_(t,C);function _(J,Te){return function(Pe){var 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=dM[zt=J.charAt(++Dt)])!=null?zt=J.charAt(++Dt):mr=zt==="e"?" ":"0",(Oa=Te[zt])&&(zt=Oa(Pe,mr)),ae.push(zt),Be=Dt+1);return ae.push(J.slice(Be,Dt)),ae.join("")}}function k(J,Te){return function(Pe){var ae=Tc(1900,void 0,1),Dt=D(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(Te&&!("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=Ox(Tc(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=Ax(Tc(ae.y,0,1)),Rt=Be.getDay(),Be=Rt>4||Rt===0?Jm.ceil(Be):Jm(Be),Be=Wf.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?Ox(Tc(ae.y,0,1)).getUTCDay():Ax(Tc(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,Ox(ae)):Ax(ae)}}function D(J,Te,Pe,ae){for(var Dt=0,Be=Te.length,Rt=Pe.length,zt,mr;Dt<Be;){if(ae>=Rt)return-1;if(zt=Te.charCodeAt(Dt++),zt===37){if(zt=Te.charAt(Dt++),mr=M[zt in dM?Te.charAt(Dt++):zt],!mr||(ae=mr(J,Pe,ae))<0)return-1}else if(zt!=Pe.charCodeAt(ae++))return-1}return ae}function B(J,Te,Pe){var ae=h.exec(Te.slice(Pe));return ae?(J.p=m.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function K(J,Te,Pe){var ae=b.exec(Te.slice(Pe));return ae?(J.w=S.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function $(J,Te,Pe){var ae=g.exec(Te.slice(Pe));return ae?(J.w=y.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function Z(J,Te,Pe){var ae=O.exec(Te.slice(Pe));return ae?(J.m=T.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function le(J,Te,Pe){var ae=j.exec(Te.slice(Pe));return ae?(J.m=A.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function de(J,Te,Pe){return D(J,t,Te,Pe)}function me(J,Te,Pe){return D(J,n,Te,Pe)}function q(J,Te,Pe){return D(J,r,Te,Pe)}function W(J){return l[J.getDay()]}function Y(J){return o[J.getDay()]}function oe(J){return f[J.getMonth()]}function ne(J){return c[J.getMonth()]}function R(J){return a[+(J.getHours()>=12)]}function H(J){return 1+~~(J.getMonth()/3)}function ie(J){return l[J.getUTCDay()]}function se(J){return o[J.getUTCDay()]}function ve(J){return f[J.getUTCMonth()]}function Oe(J){return c[J.getUTCMonth()]}function fe(J){return a[+(J.getUTCHours()>=12)]}function Qe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var Te=_(J+="",N);return Te.toString=function(){return J},Te},parse:function(J){var Te=k(J+="",!1);return Te.toString=function(){return J},Te},utcFormat:function(J){var Te=_(J+="",C);return Te.toString=function(){return J},Te},utcParse:function(J){var Te=k(J+="",!0);return Te.toString=function(){return J},Te}}}var dM={"-":"",_:" ",0:"0"},fn=/^\s*\d+/,aee=/^%/,see=/[\\^$*+?|[\]().{}]/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 oee(e){return e.replace(see,"\\$&")}function Cc(e){return new RegExp("^(?:"+e.map(oee).join("|")+")","i")}function kc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function lee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function uee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hM(e,t,n){var r=fn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function mee(e,t,n){var r=fn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function pee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function gee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gM(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function vee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function yee(e,t,n){var r=fn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xee(e,t,n){var r=fn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bee(e,t,n){var r=fn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wee(e,t,n){var r=aee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function See(e,t,n){var r=fn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=fn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vM(e,t){return Ge(e.getDate(),t,2)}function Aee(e,t){return Ge(e.getHours(),t,2)}function Oee(e,t){return Ge(e.getHours()%12||12,t,2)}function Eee(e,t){return Ge(1+Wf.count(ca(e),e),t,3)}function O4(e,t){return Ge(e.getMilliseconds(),t,3)}function Nee(e,t){return O4(e,t)+"000"}function Tee(e,t){return Ge(e.getMonth()+1,t,2)}function Cee(e,t){return Ge(e.getMinutes(),t,2)}function kee(e,t){return Ge(e.getSeconds(),t,2)}function Mee(e){var t=e.getDay();return t===0?7:t}function Pee(e,t){return Ge(ng.count(ca(e)-1,e),t,2)}function E4(e){var t=e.getDay();return t>=4||t===0?ou(e):ou.ceil(e)}function _ee(e,t){return e=E4(e),Ge(ou.count(ca(e),e)+(ca(e).getDay()===4),t,2)}function Dee(e){return e.getDay()}function Ree(e,t){return Ge(Jm.count(ca(e)-1,e),t,2)}function zee(e,t){return Ge(e.getFullYear()%100,t,2)}function Lee(e,t){return e=E4(e),Ge(e.getFullYear()%100,t,2)}function Iee(e,t){return Ge(e.getFullYear()%1e4,t,4)}function Bee(e,t){var n=e.getDay();return e=n>=4||n===0?ou(e):ou.ceil(e),Ge(e.getFullYear()%1e4,t,4)}function Uee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ge(t/60|0,"0",2)+Ge(t%60,"0",2)}function yM(e,t){return Ge(e.getUTCDate(),t,2)}function $ee(e,t){return Ge(e.getUTCHours(),t,2)}function qee(e,t){return Ge(e.getUTCHours()%12||12,t,2)}function Vee(e,t){return Ge(1+tg.count(fa(e),e),t,3)}function N4(e,t){return Ge(e.getUTCMilliseconds(),t,3)}function Hee(e,t){return N4(e,t)+"000"}function Fee(e,t){return Ge(e.getUTCMonth()+1,t,2)}function Kee(e,t){return Ge(e.getUTCMinutes(),t,2)}function Yee(e,t){return Ge(e.getUTCSeconds(),t,2)}function Gee(e){var t=e.getUTCDay();return t===0?7:t}function Wee(e,t){return Ge(rg.count(fa(e)-1,e),t,2)}function T4(e){var t=e.getUTCDay();return t>=4||t===0?lu(e):lu.ceil(e)}function Qee(e,t){return e=T4(e),Ge(lu.count(fa(e),e)+(fa(e).getUTCDay()===4),t,2)}function Xee(e){return e.getUTCDay()}function Zee(e,t){return Ge(ep.count(fa(e)-1,e),t,2)}function Jee(e,t){return Ge(e.getUTCFullYear()%100,t,2)}function ete(e,t){return e=T4(e),Ge(e.getUTCFullYear()%100,t,2)}function tte(e,t){return Ge(e.getUTCFullYear()%1e4,t,4)}function nte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?lu(e):lu.ceil(e),Ge(e.getUTCFullYear()%1e4,t,4)}function rte(){return"+0000"}function xM(){return"%"}function bM(e){return+e}function wM(e){return Math.floor(+e/1e3)}var jl,C4,k4;ite({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 ite(e){return jl=iee(e),C4=jl.format,jl.parse,k4=jl.utcFormat,jl.utcParse,jl}function ate(e){return new Date(e)}function ste(e){return e instanceof Date?+e:+new Date(+e)}function NS(e,t,n,r,a,o,l,c,f,h){var m=hS(),g=m.invert,y=m.domain,b=h(".%L"),S=h(":%S"),j=h("%I:%M"),A=h("%I %p"),O=h("%a %d"),T=h("%b %d"),N=h("%B"),C=h("%Y");function M(_){return(f(_)<_?b:c(_)<_?S:l(_)<_?j:o(_)<_?A:r(_)<_?a(_)<_?O:T:n(_)<_?N:C)(_)}return m.invert=function(_){return new Date(g(_))},m.domain=function(_){return arguments.length?y(Array.from(_,ste)):y().map(ate)},m.ticks=function(_){var k=y();return e(k[0],k[k.length-1],_??10)},m.tickFormat=function(_,k){return k==null?M:h(k)},m.nice=function(_){var k=y();return(!_||typeof _.range!="function")&&(_=t(k[0],k[k.length-1],_??10)),_?y(g4(k,_)):m},m.copy=function(){return Gf(m,NS(e,t,n,r,a,o,l,c,f,h))},m}function ote(){return Ur.apply(NS(nee,ree,ca,OS,ng,Wf,jS,wS,ro,C4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lte(){return Ur.apply(NS(eee,tee,fa,ES,rg,tg,AS,SS,ro,k4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ig(){var e=0,t=1,n,r,a,o,l=Rn,c=!1,f;function h(g){return g==null||isNaN(g=+g)?f:l(a===0?.5:(g=(o(g)-n)*a,c?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t]=g,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(g){return arguments.length?(c=!!g,h):c},h.interpolator=function(g){return arguments.length?(l=g,h):l};function m(g){return function(y){var b,S;return arguments.length?([b,S]=y,l=g(b,S),h):[l(0),l(1)]}}return h.range=m(xu),h.rangeRound=m(dS),h.unknown=function(g){return arguments.length?(f=g,h):f},function(g){return o=g,n=g(e),r=g(t),a=n===r?0:1/(r-n),h}}function Es(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function M4(){var e=Os(ig()(Rn));return e.copy=function(){return Es(e,M4())},ba.apply(e,arguments)}function P4(){var e=gS(ig()).domain([1,10]);return e.copy=function(){return Es(e,P4()).base(e.base())},ba.apply(e,arguments)}function _4(){var e=vS(ig());return e.copy=function(){return Es(e,_4()).constant(e.constant())},ba.apply(e,arguments)}function TS(){var e=yS(ig());return e.copy=function(){return Es(e,TS()).exponent(e.exponent())},ba.apply(e,arguments)}function ute(){return TS.apply(null,arguments).exponent(.5)}function D4(){var e=[],t=Rn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Kf(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(gs),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)=>GZ(e,o/r))},n.copy=function(){return D4(t).domain(e)},ba.apply(n,arguments)}function ag(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,h=Rn,m,g=!1,y;function b(j){return isNaN(j=+j)?y:(j=.5+((j=+m(j))-o)*(r*j<r*o?c:f),h(g?Math.max(0,Math.min(1,j)):j))}b.domain=function(j){return arguments.length?([e,t,n]=j,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?(g=!!j,b):g},b.interpolator=function(j){return arguments.length?(h=j,b):h};function S(j){return function(A){var O,T,N;return arguments.length?([O,T,N]=A,h=wJ(j,[O,T,N]),b):[h(0),h(.5),h(1)]}}return b.range=S(xu),b.rangeRound=S(dS),b.unknown=function(j){return arguments.length?(y=j,b):y},function(j){return m=j,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 R4(){var e=Os(ag()(Rn));return e.copy=function(){return Es(e,R4())},ba.apply(e,arguments)}function z4(){var e=gS(ag()).domain([.1,1,10]);return e.copy=function(){return Es(e,z4()).base(e.base())},ba.apply(e,arguments)}function L4(){var e=vS(ag());return e.copy=function(){return Es(e,L4()).constant(e.constant())},ba.apply(e,arguments)}function CS(){var e=yS(ag());return e.copy=function(){return Es(e,CS()).exponent(e.exponent())},ba.apply(e,arguments)}function cte(){return CS.apply(null,arguments).exponent(.5)}const Bc=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:uS,scaleDiverging:R4,scaleDivergingLog:z4,scaleDivergingPow:CS,scaleDivergingSqrt:cte,scaleDivergingSymlog:L4,scaleIdentity:p4,scaleImplicit:v1,scaleLinear:m4,scaleLog:v4,scaleOrdinal:lS,scalePoint:XZ,scalePow:xS,scaleQuantile:b4,scaleQuantize:w4,scaleRadial:x4,scaleSequential:M4,scaleSequentialLog:P4,scaleSequentialPow:TS,scaleSequentialQuantile:D4,scaleSequentialSqrt:ute,scaleSequentialSymlog:_4,scaleSqrt:HJ,scaleSymlog:y4,scaleThreshold:S4,scaleTime:ote,scaleUtc:lte,tickFormat:h4},Symbol.toStringTag,{value:"Module"}));var wa=e=>e.chartData,I4=Q([wa],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),B4=(e,t,n,r)=>r?I4(e):wa(e),U4=(e,t,n)=>n?I4(e):wa(e);function xs(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(ft(t)&&ft(n))return!0}return!1}function SM(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function $4(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(xs(l))return l}}function fte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(xs(r))return SM(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[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"&&_C.test(a)){var f=_C.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"&&DC.test(o)){var m=DC.exec(o);if(m==null||m[1]==null||t==null)c=void 0;else{var g=+m[1];c=t[1]+g}}else c=t==null?void 0:t[1];var y=[l,c];if(xs(y))return t==null?y:SM(y,t,n)}}}var bu=1e9,dte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},MS,bt=!0,Ir="[DecimalError] ",xo=Ir+"Invalid argument: ",kS=Ir+"Exponent out of range: ",wu=Math.floor,Qs=Math.pow,hte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cr,on=1e7,pt=7,q4=9007199254740991,tp=wu(q4/pt),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.cmp=function(e){var t,n,r,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};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*pt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return ta(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return ct(ta(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return Ft(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,n=this,r=n.constructor,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=ta(bf(n,o),bf(e,o),o),bt=!0,ct(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?F4(t,e):V4(t,(e.s=-e.s,e))};pe.modulo=pe.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=ta(n,e,0,1).times(e),bt=!0,n.minus(t)):ct(new r(n),a)};pe.naturalExponential=pe.exp=function(){return H4(this)};pe.naturalLogarithm=pe.ln=function(){return bf(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?V4(t,e):F4(t,(e.s=-e.s,e))};pe.precision=pe.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=Ft(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};pe.squareRoot=pe.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=Ft(c),bt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=pi(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=wu((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(ta(c,o,l+2)).times(.5),pi(o.d).slice(0,l)===(t=pi(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(ct(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return bt=!0,ct(r,n)};pe.times=pe.mul=function(e){var t,n,r,a,o,l,c,f,h,m=this,g=m.constructor,y=m.d,b=(e=new g(e)).d;if(!m.s||!e.s)return new g(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,h=b.length,f<h&&(o=y,y=b,b=o,l=f,f=h,h=l),o=[],l=f+h,r=l;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,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,g.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(bi(e,0,bu),t===void 0?t=r.rounding:bi(t,0,8),ct(n,e+Ft(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=To(r,!0):(bi(e,0,bu),t===void 0?t=a.rounding:bi(t,0,8),r=ct(new a(r),e+1,t),n=To(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?To(a):(bi(e,0,bu),t===void 0?t=o.rounding:bi(t,0,8),r=ct(new o(a),e+Ft(a)+1,t),n=To(r.abs(),!1,e+Ft(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return ct(new t(e),Ft(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.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)<=q4){for(a=new f(cr),t=Math.ceil(r/pt+4),bt=!1;n%2&&(a=a.times(c),AM(a.d,t)),n=wu(n/2),n!==0;)c=c.times(c),AM(c.d,t);return bt=!0,e.s<0?new f(cr).div(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(bf(c,r+h)),bt=!0,a=H4(a),a.s=o,a};pe.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Ft(a),r=To(a,n<=o.toExpNeg||n>=o.toExpPos)):(bi(e,1,bu),t===void 0?t=o.rounding:bi(t,0,8),a=ct(new o(a),e,t),n=Ft(a),r=To(a,e<=n||n<=o.toExpNeg,e)),r};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(bi(e,1,bu),t===void 0?t=r.rounding:bi(t,0,8)),ct(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ft(e),n=e.constructor;return To(e,t<=n.toExpNeg||t>=n.toExpPos)};function V4(e,t){var n,r,a,o,l,c,f,h,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),bt?ct(t,g):t;if(f=e.d,h=t.d,l=e.e,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(g/pt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=h.length,c-o<0&&(o=c,r=h,h=f,f=r),n=0;o;)n=(f[--o]=f[o]+h[o]+n)/on|0,f[o]%=on;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,bt?ct(t,g):t}function bi(e,t,n){if(e!==~~e||e<t||e>n)throw Error(xo+e)}function pi(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=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 ta=(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,g,y,b,S,j,A,O,T,N,C,M,_,k,D,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,k=Z.length,M=$.length,b=new B(K),S=b.d=[],h=0;Z[h]==($[h]||0);)++h;if(Z[h]>($[h]||0)&&--f,o==null?T=o=B.precision:l?T=o+(Ft(r)-Ft(a))+1:T=o,T<0)return new B(0);if(T=T/pt+2|0,h=0,k==1)for(m=0,Z=Z[0],T++;(h<M||m)&&T--;h++)N=m*on+($[h]||0),S[h]=N/Z|0,m=N%Z|0;else{for(m=on/(Z[0]+1)|0,m>1&&(Z=e(Z,m),$=e($,m),k=Z.length,M=$.length),C=k,j=$.slice(0,k),A=j.length;A<k;)j[A++]=0;D=Z.slice(),D.unshift(0),_=Z[0],Z[1]>=on/2&&++_;do m=0,c=t(Z,j,k,A),c<0?(O=j[0],k!=A&&(O=O*on+(j[1]||0)),m=O/_|0,m>1?(m>=on&&(m=on-1),g=e(Z,m),y=g.length,A=j.length,c=t(g,j,y,A),c==1&&(m--,n(g,k<y?D:Z,y))):(m==0&&(c=m=1),g=Z.slice()),y=g.length,y<A&&g.unshift(0),n(j,g,A),c==-1&&(A=j.length,c=t(Z,j,k,A),c<1&&(m++,n(j,k<A?D:Z,A))),A=j.length):c===0&&(m++,j=[0]),S[h++]=m,c&&j[0]?j[A++]=$[C]||0:(j=[$[C]],A=1);while((C++<M||j[0]!==void 0)&&T--)}return S[0]||S.shift(),b.e=f,ct(b,l?o+Ft(b)+1:o)}})();function H4(e,t){var n,r,a,o,l,c,f=0,h=0,m=e.constructor,g=m.precision;if(Ft(e)>16)throw Error(kS+Ft(e));if(!e.s)return new m(cr);for(bt=!1,c=g,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),h+=5;for(r=Math.log(Qs(2,h))/Math.LN10*2+5|0,c+=r,n=a=o=new m(cr),m.precision=c;;){if(a=ct(a.times(e),c),n=n.times(++f),l=o.plus(ta(a,n,c)),pi(l.d).slice(0,c)===pi(o.d).slice(0,c)){for(;h--;)o=ct(o.times(o),c);return m.precision=g,t==null?(bt=!0,ct(o,g)):o}o=l}}function Ft(e){for(var t=e.e*pt,n=e.d[0];n>=10;n/=10)t++;return t}function Ex(e,t,n){if(t>e.LN10.sd())throw bt=!0,n&&(e.precision=n),Error(Ir+"LN10 precision limit exceeded");return ct(new e(e.LN10),t)}function ns(e){for(var t="";e--;)t+="0";return t}function bf(e,t){var n,r,a,o,l,c,f,h,m,g=1,y=10,b=e,S=b.d,j=b.constructor,A=j.precision;if(b.s<1)throw Error(Ir+(b.s?"NaN":"-Infinity"));if(b.eq(cr))return new j(0);if(t==null?(bt=!1,h=A):h=t,b.eq(10))return t==null&&(bt=!0),Ex(j,h);if(h+=y,j.precision=h,n=pi(S),r=n.charAt(0),o=Ft(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=pi(b.d),r=n.charAt(0),g++;o=Ft(b),r>1?(b=new j("0."+n),o++):b=new j(r+"."+n.slice(1))}else return f=Ex(j,h+2,A).times(o+""),b=bf(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=ta(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(ta(l,new j(a),h)),pi(f.d).slice(0,h)===pi(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(Ex(j,h+2,A).times(o+""))),c=ta(c,new j(g),h),j.precision=A,t==null?(bt=!0,ct(c,A)):c;c=f,a+=2}}function jM(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=wu(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,g=e.d;for(l=1,o=g[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=pt,a=t,h=g[m=0];else{if(m=Math.ceil((r+1)/pt),o=g.length,m>=o)return e;for(h=o=g[m],l=1;o>=10;o/=10)l++;r%=pt,a=r-pt+l}if(n!==void 0&&(o=Qs(10,l-a-1),c=h/o%10|0,f=t<0||g[m+1]!==void 0||h%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?h/Qs(10,l-a):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return f?(o=Ft(e),g.length=1,t=t-o-1,g[0]=Qs(10,(pt-t%pt)%pt),e.e=wu(-t/pt)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(r==0?(g.length=m,o=1,m--):(g.length=m+1,o=Qs(10,pt-r),g[m]=a>0?(h/Qs(10,l-a)%Qs(10,a)|0)*o:0),f)for(;;)if(m==0){(g[0]+=o)==on&&(g[0]=1,++e.e);break}else{if(g[m]+=o,g[m]!=on)break;g[m--]=0,o=1}for(r=g.length;g[--r]===0;)g.pop();if(bt&&(e.e>tp||e.e<-tp))throw Error(kS+Ft(e));return e}function F4(e,t){var n,r,a,o,l,c,f,h,m,g,y=e.constructor,b=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),bt?ct(t,b):t;if(f=e.d,g=t.d,r=t.e,h=e.e,f=f.slice(),l=h-r,l){for(m=l<0,m?(n=f,l=-l,c=g.length):(n=g,r=h,c=f.length),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=g.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=g[a]){m=f[a]<g[a];break}l=0}for(m&&(n=f,f=g,g=n,t.s=-t.s),c=f.length,a=g.length-c;a>0;--a)f[c++]=0;for(a=g.length;a>l;){if(f[--a]<g[a]){for(o=a;o&&f[--o]===0;)f[o]=on-1;--f[o],f[a]+=on}f[a]-=g[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=Ft(e),o=pi(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 AM(e,t){if(e.length>t)return e.length=t,!0}function K4(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 jM(l,o.toString())}else if(typeof o!="string")throw Error(xo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,hte.test(o))jM(l,o);else throw Error(xo+o)}if(a.prototype=pe,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=K4,a.config=a.set=mte,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function mte(e){if(!e||typeof e!="object")throw Error(Ir+"Object expected");var t,n,r,a=["precision",1,bu,"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(wu(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=K4(dte);cr=new MS(1);const rt=MS;var pte=e=>e,Y4={},G4=e=>e===Y4,OM=e=>function t(){return arguments.length===0||arguments.length===1&&G4(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},W4=(e,t)=>e===1?t:OM(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!==Y4).length;return o>=e?t(...r):W4(e-o,OM(function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var h=r.map(m=>G4(m)?c.shift():m);return t(...h,...c)}))}),gte=e=>W4(e.length,e),w1=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},vte=gte((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),yte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return pte;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce((c,f)=>f(c),o(...arguments))}};function Q4(e){var t;return e===0?t=1:t=Math.floor(new rt(e).abs().log(10).toNumber())+1,t}function X4(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 Z4=e=>{var[t,n]=e,[r,a]=[t,n];return t>n&&([r,a]=[n,t]),[r,a]},J4=(e,t,n)=>{if(e.lte(0))return new rt(0);var r=Q4(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()))},xte=(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(Q4(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=yte(vte(f=>a.add(new rt(f-l).mul(r)).toNumber()),w1);return c(0,t)},ez=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=J4(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?ez(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))})},bte=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]=Z4([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...w1(0,a-1).map(()=>1/0)]:[...w1(0,a-1).map(()=>-1/0),f];return n>r?h.reverse():h}if(c===f)return xte(c,a,o);var{step:m,tickMin:g,tickMax:y}=ez(c,f,l,o,0),b=X4(g,y.add(new rt(.1).mul(m)),m);return n>r?b.reverse():b},wte=function(t,n){var[r,a]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[l,c]=Z4([r,a]);if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var f=Math.max(n,2),h=J4(new rt(c).sub(l).div(f-1),o,0),m=[...X4(new rt(l),new rt(c),h),c];return o===!1&&(m=m.map(g=>Math.round(g))),r>a?m.reverse():m},tz=e=>e.rootProps.maxBarSize,Ste=e=>e.rootProps.barGap,nz=e=>e.rootProps.barCategoryGap,jte=e=>e.rootProps.barSize,sg=e=>e.rootProps.stackOffset,rz=e=>e.rootProps.reverseStackOrder,PS=e=>e.options.chartName,_S=e=>e.rootProps.syncId,iz=e=>e.rootProps.syncMethod,DS=e=>e.options.eventEmitter,Ate=e=>e.rootProps.baseValue,un={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Wi={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},ur={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},og=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Ote={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Wi.angleAxisId,includeHidden:!1,name:void 0,reversed:Wi.reversed,scale:Wi.scale,tick:Wi.tick,tickCount:void 0,ticks:void 0,type:Wi.type,unit:void 0},Ete={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:ur.type,unit:void 0},Nte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Wi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Wi.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Wi.scale,tick:Wi.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Tte={allowDataOverflow:ur.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:"category",unit:void 0},RS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Nte:Ote,zS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Tte:Ete,lg=e=>e.polarOptions,LS=Q([ya,xa,cn],SZ),az=Q([lg,LS],(e,t)=>{if(e!=null)return ri(e.innerRadius,t,0)}),sz=Q([lg,LS],(e,t)=>{if(e!=null)return ri(e.outerRadius,t,t*.8)}),Cte=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},oz=Q([lg],Cte);Q([RS,oz],og);var lz=Q([LS,az,sz],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Q([zS,lz],og);var uz=Q([We,lg,az,sz,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:ri(l,a,a/2),cy:ri(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 cz(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((g,y)=>{var b=o==null||a?y:String(Ht(g,o,null)),S=Ht(g,c.dataKey,0),j;l.has(b)?j=l.get(b):j={},Object.assign(j,{[m]:S}),l.set(b,j)})}}),Array.from(l.values())}function fg(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var dg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function hg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function kte(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Jt=e=>{var t=We(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Su=e=>e.tooltip.settings.axisId;function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?EM(Object(n),!0).forEach(function(r){Mte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mte(e,t,n){return(t=Pte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e){var t=_te(e,"string");return typeof t=="symbol"?t:t+""}function _te(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S1=[0,"auto"],rn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},fz=(e,t)=>e.cartesianAxis.xAxis[t],Sa=(e,t)=>{var n=fz(e,t);return n??rn},an={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:S1,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Vf},dz=(e,t)=>e.cartesianAxis.yAxis[t],ja=(e,t)=>{var n=dz(e,t);return n??an},Dte={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},IS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Dte},Bn=(e,t,n)=>{switch(t){case"xAxis":return 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))}},Rte=(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))}},Qf=(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))}},hz=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function mz(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var mg=e=>e.graphicalItems.cartesianItems,zte=Q([Zt,ug],mz),pz=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Xf=Q([mg,Bn,zte],pz,{memoizeOptions:{resultEqualityCheck:hg}}),gz=Q([Xf],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(fg)),vz=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Lte=Q([Xf],vz),yz=e=>e.map(t=>t.data).filter(Boolean).flat(1),Ite=Q([Xf],yz,{memoizeOptions:{resultEqualityCheck:hg}}),xz=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:a}=t;return e.length>0?e:n.slice(r,a+1)},BS=Q([Ite,B4],xz),bz=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Ht(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:Ht(a,r)}))):e.map(r=>({value:r})),pg=Q([BS,Bn,Xf],bz);function wz(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function om(e){if(yi(e)||e instanceof Date){var t=Number(e);if(ft(t))return t}}function NM(e){if(Array.isArray(e)){var t=[om(e[0]),om(e[1])];return xs(t)?t:void 0}var n=om(e);if(n!=null)return[n,n]}function da(e){return e.map(om).filter(OY)}function Bte(e,t,n){return!n||typeof t!="number"||zr(t)?[]:n.length?da(n.flatMap(r=>{var a=Ht(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=Su(e);return Qf(e,t,n)},Zf=Q([en],e=>e==null?void 0:e.dataKey),Ute=Q([gz,B4,en],cz),Sz=(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:ZW(e,m,n),graphicalItems:h}]}))},rp=Q([Ute,gz,sg,rz],Sz),jz=(e,t,n,r)=>{var{dataStartIndex:a,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var l=nQ(e,a,o);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},$te=Q([Bn],e=>e.allowDataOverflow),US=e=>{var t;if(e==null||!("domain"in e))return S1;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=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:S1},Az=Q([Bn],US),Oz=Q([Az,$te],$4),qte=Q([rp,wa,Zt,Oz],jz,{memoizeOptions:{resultEqualityCheck:dg}}),$S=e=>e.errorBars,Vte=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>wz(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]}},Ez=(e,t,n,r,a)=>{var o,l;if(n.length>0&&e.forEach(c=>{n.forEach(f=>{var h,m,g=(h=r[f.id])===null||h===void 0?void 0:h.filter(O=>wz(a,O)),y=Ht(c,(m=t.dataKey)!==null&&m!==void 0?m:f.dataKey),b=Bte(c,y,g);if(b.length>=2){var S=Math.min(...b),j=Math.max(...b);(o==null||S<o)&&(o=S),(l==null||j>l)&&(l=j)}var A=NM(y);A!=null&&(o=o==null?A[0]:Math.min(o,A[0]),l=l==null?A[1]:Math.max(l,A[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(c=>{var f=NM(Ht(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]},Hte=Q([BS,Bn,Lte,$S,Zt],Ez,{memoizeOptions:{resultEqualityCheck:dg}});function Fte(e){var{value:t}=e;if(yi(t)||t instanceof Date)return t}var Kte=(e,t,n)=>{var r=e.map(Fte).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&z3(r))?r4(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Nz=e=>e.referenceElements.dots,ju=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Yte=Q([Nz,Zt,ug],ju),Tz=e=>e.referenceElements.areas,Gte=Q([Tz,Zt,ug],ju),Cz=e=>e.referenceElements.lines,Wte=Q([Cz,Zt,ug],ju),kz=(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)]}},Qte=Q(Yte,Zt,kz),Mz=(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)]}},Xte=Q([Gte,Zt],Mz);function Zte(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 Jte(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 Pz=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Zte(r):Jte(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ene=Q([Wte,Zt],Pz),tne=Q(Qte,ene,Xte,(e,t,n)=>ip(e,n,t)),_z=(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 fte(t,h,e.allowDataOverflow)},nne=Q([Bn,Az,Oz,qte,Hte,tne,We,Zt],_z,{memoizeOptions:{resultEqualityCheck:dg}}),rne=[0,1],Dz=(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 r4(0,(m=n==null?void 0:n.length)!==null&&m!==void 0?m:0)}return f==="category"?Kte(r,e,h):a==="expand"?rne:l}},qS=Q([Bn,We,BS,pg,sg,Zt,nne],Dz),Rz=(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(Bf(o));return c in Bc?c:"point"}}},Jf=Q([Bn,We,hz,PS,Zt],Rz);function ine(e){if(e!=null){if(e in Bc)return Bc[e]();var t="scale".concat(Bf(e));if(t in Bc)return Bc[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=ine(t);if(a!=null){var o=a.domain(n).range(r);return YW(o),o}}}var zz=(e,t,n)=>{var r=US(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&xs(e))return bte(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&xs(e))return wte(e,t.tickCount,t.allowDecimals)}},HS=Q([qS,Qf,Jf],zz),Lz=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&xs(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},ane=Q([Bn,qS,HS,Zt],Lz),sne=Q(pg,Bn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(da(e.map(g=>g.value))).sort((g,y)=>g-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}}),Iz=Q(sne,We,nz,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=ri(n,e*o),c=e*o/2;return c-l-(c-l)/o*l}return 0}),one=(e,t,n)=>{var r=Sa(e,t);return r==null||typeof r.padding!="string"?0:Iz(e,"xAxis",t,n,r.padding)},lne=(e,t,n)=>{var r=ja(e,t);return r==null||typeof r.padding!="string"?0:Iz(e,"yAxis",t,n,r.padding)},une=Q(Sa,one,(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}}),cne=Q(ja,lne,(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}}),fne=Q([cn,une,Kp,Fp,(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]}),dne=Q([cn,We,cne,Kp,Fp,(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]}),ed=(e,t,n,r)=>{var a;switch(t){case"xAxis":return fne(e,n,r);case"yAxis":return dne(e,n,r);case"zAxis":return(a=IS(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return oz(e);case"radiusAxis":return lz(e,n);default:return}},Bz=Q([Bn,ed],og),gg=Q([Bn,Jf,ane,Bz],VS);Q([Xf,$S,Zt],Vte);function Uz(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vg=(e,t)=>t,yg=(e,t,n)=>n,hne=Q(Vp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uz)),mne=Q(Hp,vg,yg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uz)),$z=(e,t)=>({width:e.width,height:t.height}),pne=(e,t)=>{var n=typeof t.width=="number"?t.width:Vf;return{width:n,height:e.height}},qz=Q(cn,Sa,$z),gne=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},vne=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},yne=Q(xa,cn,hne,vg,yg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=$z(t,c);l==null&&(l=gne(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}),xne=Q(ya,cn,mne,vg,yg,(e,t,n,r,a)=>{var o={},l;return n.forEach(c=>{var f=pne(t,c);l==null&&(l=vne(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}),bne=(e,t)=>{var n=Sa(e,t);if(n!=null)return yne(e,n.orientation,n.mirror)},wne=Q([cn,Sa,bne,(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}}}),Sne=(e,t)=>{var n=ja(e,t);if(n!=null)return xne(e,n.orientation,n.mirror)},jne=Q([cn,ja,Sne,(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}}}),Vz=Q(cn,ja,(e,t)=>{var n=typeof t.width=="number"?t.width:Vf;return{width:n,height:e.height}}),TM=(e,t,n)=>{switch(t){case"xAxis":return qz(e,n).width;case"yAxis":return Vz(e,n).height;default:return}},Hz=(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&&z3(f))return f}},FS=Q([We,pg,Bn,Zt],Hz),Fz=(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=Q([We,pg,Qf,Zt],Fz),CM=Q([We,Rte,Jf,gg,FS,KS,ed,HS,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}}}),Ane=(e,t,n,r,a,o,l,c,f)=>{if(!(t==null||r==null)){var h=va(e,f),{type:m,ticks:g,tickCount:y}=t,b=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,S=m==="category"&&r.bandwidth?r.bandwidth()/b:0;S=f==="angleAxis"&&o!=null&&o.length>=2?Qn(o[0]-o[1])*2*S:S;var j=g||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}))}},Kz=Q([We,Qf,Jf,gg,HS,ed,FS,KS,Zt],Ane),One=(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?Qn(r[0]-r[1])*2*h:h,c&&o?o.map((m,g)=>({coordinate:n(m)+h,value:m,index:g,offset:h})):n.ticks?n.ticks(f).map(m=>({coordinate:n(m)+h,value:m,offset:h})):n.domain().map((m,g)=>({coordinate:n(m)+h,value:a?a[m]:m,index:g,offset:h}))}},bs=Q([We,Qf,gg,ed,FS,KS,Zt],One),ws=Q(Bn,gg,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})}),Ene=Q([Bn,Jf,qS,Bz],VS);Q((e,t,n)=>IS(e,n),Ene,(e,t)=>{if(!(e==null||t==null))return np(np({},e),{},{scale:t})});var Nne=Q([We,Vp,Hp],(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}}),Yz=e=>e.options.defaultTooltipEventType,Gz=e=>e.options.validateTooltipEventTypes;function Wz(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=Yz(e),r=Gz(e);return Wz(t,n,r)}function Tne(e){return we(t=>YS(t,e))}var Qz=(e,t)=>{var n,r=Number(t);if(!(zr(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Cne=e=>e.tooltip.settings,is={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},kne={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}},Xz=Jn({name:"tooltip",initialState:kne,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:vt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ti(e).tooltipItemPayloads.indexOf(n);a>-1&&(e.tooltipItemPayloads[a]=r)},prepare:vt()},removeTooltipEntrySettings:{reducer(e,t){var n=ti(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:vt()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Mne,replaceTooltipEntrySettings:Pne,removeTooltipEntrySettings:_ne,setTooltipSettingsState:Dne,setActiveMouseOverItemIndex:Zz,mouseLeaveItem:Rne,mouseLeaveChart:Jz,setActiveClickItemIndex:zne,setMouseOverAxisIndex:eL,setMouseClickAxisIndex:Lne,setSyncInteraction:j1,setKeyboardInteraction:A1}=Xz.actions,Ine=Xz.reducer;function kM(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?kM(Object(n),!0).forEach(function(r){Bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bne(e,t,n){return(t=Une(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){var t=$ne(e,"string");return typeof t=="symbol"?t:t+""}function $ne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qne(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Vne(e){return e.index!=null}var tL=(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(Vne(a)){if(o)return Fh(Fh({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Fh(Fh({},is),{},{coordinate:a.coordinate})};function Hne(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 Fne(e,t){var n=Hne(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 Kne(e,t,n){if(n==null||t==null)return!0;var r=Ht(e,t);return r==null||!xs(n)?!0:Fne(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||Kne(h,n,r)?String(f):null},nL=(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}}}},rL=(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})},td=e=>e.options.tooltipPayloadSearcher,Au=e=>e.tooltip;function MM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function PM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MM(Object(n),!0).forEach(function(r){Yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yne(e,t,n){return(t=Gne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gne(e){var t=Wne(e,"string");return typeof t=="symbol"?t:t+""}function Wne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qne(e,t){return e??t}var iL=(e,t,n,r,a,o,l)=>{if(!(t==null||o==null)){var{chartData:c,computedData:f,dataStartIndex:h,dataEndIndex:m}=n,g=[];return e.reduce((y,b)=>{var S,{dataDefinedOnItem:j,settings:A}=b,O=Qne(j,c),T=Array.isArray(O)?kR(O,h,m):O,N=(S=A==null?void 0:A.dataKey)!==null&&S!==void 0?S:r,C=A==null?void 0:A.nameKey,M;if(r&&Array.isArray(T)&&!Array.isArray(T[0])&&l==="axis"?M=L3(T,r,a):M=o(T,t,f,C),Array.isArray(M))M.forEach(k=>{var D=PM(PM({},A),{},{name:k.name,unit:k.unit,color:void 0,fill:void 0});y.push(RC({tooltipEntrySettings:D,dataKey:k.dataKey,payload:k.payload,value:Ht(k.payload,k.dataKey),name:k.name}))});else{var _;y.push(RC({tooltipEntrySettings:A,dataKey:N,payload:M,value:Ht(M,N),name:(_=Ht(M,C))!==null&&_!==void 0?_:A==null?void 0:A.name}))}return y},g)}},WS=Q([en,We,hz,PS,Jt],Rz),Xne=Q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Zne=Q([Jt,Su],mz),Ou=Q([Xne,en,Zne],pz,{memoizeOptions:{resultEqualityCheck:hg}}),Jne=Q([Ou],e=>e.filter(fg)),ere=Q([Ou],yz,{memoizeOptions:{resultEqualityCheck:hg}}),Eu=Q([ere,wa],xz),tre=Q([Jne,wa,en],cz),QS=Q([Eu,en,Ou],bz),aL=Q([en],US),nre=Q([en],e=>e.allowDataOverflow),sL=Q([aL,nre],$4),rre=Q([Ou],e=>e.filter(fg)),ire=Q([tre,rre,sg,rz],Sz),are=Q([ire,wa,Jt,sL],jz),sre=Q([Ou],vz),ore=Q([Eu,en,sre,$S,Jt],Ez,{memoizeOptions:{resultEqualityCheck:dg}}),lre=Q([Nz,Jt,Su],ju),ure=Q([lre,Jt],kz),cre=Q([Tz,Jt,Su],ju),fre=Q([cre,Jt],Mz),dre=Q([Cz,Jt,Su],ju),hre=Q([dre,Jt],Pz),mre=Q([ure,hre,fre],ip),pre=Q([en,aL,sL,are,ore,mre,We,Jt],_z),nd=Q([en,We,Eu,QS,sg,Jt,pre],Dz),gre=Q([nd,en,WS],zz),vre=Q([en,nd,gre,Jt],Lz),oL=e=>{var t=Jt(e),n=Su(e),r=!1;return ed(e,t,n,r)},lL=Q([en,oL],og),uL=Q([en,WS,vre,lL],VS),yre=Q([We,QS,en,Jt],Hz),xre=Q([We,QS,en,Jt],Fz),bre=(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,g=f==="category"&&r.bandwidth?r.bandwidth()/m:0;return g=c==="angleAxis"&&a!=null&&(a==null?void 0:a.length)>=2?Qn(a[0]-a[1])*2*g:g,h&&l?l.map((y,b)=>({coordinate:r(y)+g,value:y,index:b,offset:g})):r.domain().map((y,b)=>({coordinate:r(y)+g,value:o?o[y]:y,index:b,offset:g}))}}},Aa=Q([We,en,WS,uL,oL,yre,xre,Jt],bre),XS=Q([Yz,Gz,Cne],(e,t,n)=>Wz(n.shared,e,t)),cL=e=>e.tooltip.settings.trigger,ZS=e=>e.tooltip.settings.defaultIndex,rd=Q([Au,XS,cL,ZS],tL),Co=Q([rd,Eu,Zf,nd],GS),fL=Q([Aa,Co],Qz),dL=Q([rd],e=>{if(e)return e.dataKey});Q([rd],e=>{if(e)return e.graphicalItemId});var hL=Q([Au,XS,cL,ZS],rL),wre=Q([ya,xa,We,cn,Aa,ZS,hL,td],nL),Sre=Q([rd,wre],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jre=Q([rd],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Are=Q([hL,Co,wa,Zf,fL,td,XS],iL),Ore=Q([Are],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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){Ere(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ere(e,t,n){return(t=Nre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=Tre(e,"string");return typeof t=="symbol"?t:t+""}function Tre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cre=()=>we(en),kre=()=>{var e=Cre(),t=we(Aa),n=we(uL);return ru(!e||!n?void 0:DM(DM({},e),{},{scale:n}),t)};function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?RM(Object(n),!0).forEach(function(r){Mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mre(e,t,n){return(t=Pre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pre(e){var t=_re(e,"string");return typeof t=="symbol"?t:t+""}function _re(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dre=(e,t,n,r)=>{var 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}},Rre=(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 zre(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var mL=(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,g,y,b=c>0?(f=n[c-1])===null||f===void 0?void 0:f.coordinate:(h=n[l-1])===null||h===void 0?void 0:h.coordinate,S=(m=n[c])===null||m===void 0?void 0:m.coordinate,j=c>=l-1?(g=n[0])===null||g===void 0?void 0:g.coordinate:(y=n[c+1])===null||y===void 0?void 0:y.coordinate,A=void 0;if(!(b==null||S==null||j==null))if(Qn(S-b)!==Qn(j-S)){var O=[];if(Qn(j-S)===Qn(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 M;return(M=n[c])===null||M===void 0?void 0:M.index}}else{var _=Math.min(b,j),k=Math.max(b,j);if(e>(_+S)/2&&e<=(k+S)/2){var D;return(D=n[c])===null||D===void 0?void 0:D.index}}}else if(t)for(var B=0;B<l;B++){var K=t[B];if(K!=null){var $=t[B+1],Z=t[B-1];if(B===0&&$!=null&&e<=(K.coordinate+$.coordinate)/2||B===l-1&&Z!=null&&e>(K.coordinate+Z.coordinate)/2||B>0&&B<l-1&&Z!=null&&$!=null&&e>(K.coordinate+Z.coordinate)/2&&e<=(K.coordinate+$.coordinate)/2)return K.index}}return-1},pL=()=>we(PS),JS=(e,t)=>t,gL=(e,t,n)=>n,ej=(e,t,n,r)=>r,Lre=Q(Aa,e=>Pp(e,t=>t.coordinate)),tj=Q([Au,JS,gL,ej],tL),nj=Q([tj,Eu,Zf,nd],GS),Ire=(e,t,n)=>{if(t!=null){var r=Au(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},vL=Q([Au,JS,gL,ej],rL),ap=Q([ya,xa,We,cn,Aa,ej,vL,td],nL),Bre=Q([tj,ap],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),yL=Q([Aa,nj],Qz),Ure=Q([vL,nj,wa,Zf,yL,td,JS],iL),$re=Q([tj,nj],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),qre=(e,t,n,r,a,o,l)=>{if(!(!e||!n||!r||!a)&&zre(e,l)){var c=rQ(e,t),f=mL(c,o,a,n,r),h=Dre(t,a,f,e);return{activeIndex:String(f),activeCoordinate:h}}},Vre=(e,t,n,r,a,o,l)=>{if(!(!e||!r||!a||!o||!n)){var c=NZ(e,n);if(c){var f=iQ(c,t),h=mL(f,l,o,r,a),m=Rre(t,o,h,c);return{activeIndex:String(h),activeCoordinate:m}}}},Hre=(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):Vre(e,t,n,r,a,o,l)},Fre=Q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),Kre=Q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(un)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:kte}});function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){Yre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yre(e,t,n){return(t=Gre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gre(e){var t=Wre(e,"string");return typeof t=="symbol"?t:t+""}function Wre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qre={},Xre={zIndexMap:Object.values(un).reduce((e,t)=>LM(LM({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Qre)},Zre=new Set(Object.values(un));function Jre(e){return Zre.has(e)}var xL=Jn({name:"zIndex",initialState:Xre,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:vt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Jre(n)&&delete e.zIndexMap[n])},prepare:vt()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama: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:vt()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:vt()}}}),{registerZIndexPortal:eie,unregisterZIndexPortal:tie,registerZIndexPortalElement:nie,unregisterZIndexPortalElement:rie}=xL.actions,iie=xL.reducer;function $r(e){var{zIndex:t,children:n}=e,r=IQ(),a=r&&t!==void 0&&t!==0,o=Tn(),l=At();w.useLayoutEffect(()=>a?(l(eie({zIndex:t})),()=>{l(tie({zIndex:t}))}):Uf,[l,t,a]);var c=we(f=>Fre(f,t,o));return a?c?_f.createPortal(n,c):null:n}function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O1.apply(null,arguments)}function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){aie(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 aie(e,t,n){return(t=sie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sie(e){var t=oie(e,"string");return typeof t=="symbol"?t:t+""}function oie(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 lie(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return w.isValidElement(t)?w.cloneElement(t,r):w.createElement(n,r)}function uie(e){var t,{coordinate:n,payload:r,index:a,offset:o,tooltipAxisBandSize:l,layout:c,cursor:f,tooltipEventType:h,chartName:m}=e,g=n,y=r,b=a;if(!f||!g||m!=="ScatterChart"&&h!=="axis")return null;var S,j,A;if(m==="ScatterChart")S=g,j=UX,A=un.cursorLine;else if(m==="BarChart")S=$X(c,g,o,l),j=JR,A=un.cursorRectangle;else if(c==="radial"&&B3(g)){var{cx:O,cy:T,radius:N,startAngle:C,endAngle:M}=e4(g);S={cx:O,cy:T,startAngle:C,endAngle:M,innerRadius:N,outerRadius:N},j=n4,A=un.cursorLine}else S={points:MZ(c,g,o)},j=Fc,A=un.cursorLine;var _=typeof f=="object"&&"className"in f?f.className:void 0,k=Kh(Kh(Kh(Kh({stroke:"#ccc",pointerEvents:"none"},o),S),If(f)),{},{payload:y,payloadIndex:b,className:Ze("recharts-tooltip-cursor",_)});return w.createElement($r,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:A},w.createElement(lie,{cursor:f,cursorComp:j,cursorProps:k}))}function cie(e){var t=kre(),n=BR(),r=Po(),a=pL();return t==null||n==null||r==null||a==null?null:w.createElement(uie,O1({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var bL=w.createContext(null),fie=()=>w.useContext(bL),Nx={exports:{}},BM;function die(){return BM||(BM=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,h,m){this.fn=f,this.context=h,this.once=m||!1}function o(f,h,m,g,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new a(m,g||f,y),S=n?n+h:h;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],b]:f._events[S].push(b):(f._events[S]=b,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new r:delete f._events[h]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],m,g;if(this._eventsCount===0)return h;for(g in m=this._events)t.call(m,g)&&h.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},c.prototype.listeners=function(h){var m=n?n+h:h,g=this._events[m];if(!g)return[];if(g.fn)return[g.fn];for(var y=0,b=g.length,S=new Array(b);y<b;y++)S[y]=g[y].fn;return S},c.prototype.listenerCount=function(h){var m=n?n+h:h,g=this._events[m];return g?g.fn?1:g.length:0},c.prototype.emit=function(h,m,g,y,b,S){var j=n?n+h:h;if(!this._events[j])return!1;var A=this._events[j],O=arguments.length,T,N;if(A.fn){switch(A.once&&this.removeListener(h,A.fn,void 0,!0),O){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,m),!0;case 3:return A.fn.call(A.context,m,g),!0;case 4:return A.fn.call(A.context,m,g,y),!0;case 5:return A.fn.call(A.context,m,g,y,b),!0;case 6:return A.fn.call(A.context,m,g,y,b,S),!0}for(N=1,T=new Array(O-1);N<O;N++)T[N-1]=arguments[N];A.fn.apply(A.context,T)}else{var C=A.length,M;for(N=0;N<C;N++)switch(A[N].once&&this.removeListener(h,A[N].fn,void 0,!0),O){case 1:A[N].fn.call(A[N].context);break;case 2:A[N].fn.call(A[N].context,m);break;case 3:A[N].fn.call(A[N].context,m,g);break;case 4:A[N].fn.call(A[N].context,m,g,y);break;default:if(!T)for(M=1,T=new Array(O-1);M<O;M++)T[M-1]=arguments[M];A[N].fn.apply(A[N].context,T)}}return!0},c.prototype.on=function(h,m,g){return o(this,h,m,g,!1)},c.prototype.once=function(h,m,g){return o(this,h,m,g,!0)},c.prototype.removeListener=function(h,m,g,y){var b=n?n+h:h;if(!this._events[b])return this;if(!m)return l(this,b),this;var S=this._events[b];if(S.fn)S.fn===m&&(!y||S.once)&&(!g||S.context===g)&&l(this,b);else{for(var j=0,A=[],O=S.length;j<O;j++)(S[j].fn!==m||y&&!S[j].once||g&&S[j].context!==g)&&A.push(S[j]);A.length?this._events[b]=A.length===1?A[0]:A:l(this,b)}return this},c.prototype.removeAllListeners=function(h){var m;return h?(m=n?n+h:h,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Nx)),Nx.exports}var hie=die();const mie=wi(hie);var wf=new mie,E1="recharts.syncEvent.tooltip",UM="recharts.syncEvent.brush";function wL(e,t){if(t){var n=Number.parseInt(t,10);if(!zr(n))return e==null?void 0:e[n]}}var pie={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},SL=Jn({name:"options",initialState:pie,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),gie=SL.reducer,{createEventEmitter:vie}=SL.actions;function yie(e){return e.tooltip.syncInteraction}var xie={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},jL=Jn({name:"chartData",initialState:xie,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:$M,setDataStartEndIndexes:bie,setComputedData:qde}=jL.actions,wie=jL.reducer,Sie=["x","y"];function qM(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?qM(Object(n),!0).forEach(function(r){jie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jie(e,t,n){return(t=Aie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aie(e){var t=Oie(e,"string");return typeof t=="symbol"?t:t+""}function Oie(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 Eie(e,t){if(e==null)return{};var n,r,a=Nie(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 Nie(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 Tie(){var e=we(_S),t=we(DS),n=At(),r=we(iz),a=we(Aa),o=Po(),l=Yp(),c=we(f=>f.rootProps.className);w.useEffect(()=>{if(e==null)return Uf;var f=(h,m,g)=>{if(t!==g&&e===h){if(r==="index"){var y;if(l&&m!==null&&m!==void 0&&(y=m.payload)!==null&&y!==void 0&&y.coordinate&&m.payload.sourceViewBox){var b=m.payload.coordinate,{x:S,y:j}=b,A=Eie(b,Sie),{x:O,y:T,width:N,height:C}=m.payload.sourceViewBox,M=Ol(Ol({},A),{},{x:l.x+(N?(S-O)/N:0)*l.width,y:l.y+(C?(j-T)/C:0)*l.height});n(Ol(Ol({},m),{},{payload:Ol(Ol({},m.payload),{},{coordinate:M})}))}else n(m);return}if(a!=null){var _;if(typeof r=="function"){var k={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},D=r(a,k);_=a[D]}else r==="value"&&(_=a.find(q=>String(q.value)===m.payload.label));var{coordinate:B}=m.payload;if(_==null||m.payload.active===!1||B==null||l==null){n(j1({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:K,y:$}=B,Z=Math.min(K,l.x+l.width),le=Math.min($,l.y+l.height),de={x:o==="horizontal"?_.coordinate:Z,y:o==="horizontal"?le:_.coordinate},me=j1({active:m.payload.active,coordinate:de,dataKey:m.payload.dataKey,index:String(_.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(me)}}};return wf.on(E1,f),()=>{wf.off(E1,f)}},[c,n,t,e,r,a,o,l])}function Cie(){var e=we(_S),t=we(DS),n=At();w.useEffect(()=>{if(e==null)return Uf;var r=(a,o,l)=>{t!==l&&e===a&&n(bie(o))};return wf.on(UM,r),()=>{wf.off(UM,r)}},[n,t,e])}function kie(){var e=At();w.useEffect(()=>{e(vie())},[e]),Tie(),Cie()}function Mie(e,t,n,r,a,o){var l=we(b=>Ire(b,e,t)),c=we(DS),f=we(_S),h=we(iz),m=we(yie),g=m==null?void 0:m.active,y=Yp();w.useEffect(()=>{if(!g&&f!=null&&c!=null){var b=j1({active:o,coordinate:n,dataKey:l,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:void 0});wf.emit(E1,f,b,c)}},[g,n,l,a,r,c,f,h,o,y])}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Pie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function 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){return e.dataKey}function zie(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(xX,t)}var FM=[],Lie={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function lm(e){var t,n,r=Sn(e,Lie),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:c,content:f,filterNull:h,isAnimationActive:m,offset:g,payloadUniqBy:y,position:b,reverseDirection:S,useTranslate3d:j,wrapperStyle:A,cursor:O,shared:T,trigger:N,defaultIndex:C,portal:M,axisId:_}=r,k=At(),D=typeof C=="number"?String(C):C;w.useEffect(()=>{k(Dne({shared:T,trigger:N,axisId:_,active:a,defaultIndex:D}))},[k,T,N,_,a,D]);var B=Yp(),K=GR(),$=Tne(T),{activeIndex:Z,isActive:le}=(t=we(fe=>$re(fe,$,N,D)))!==null&&t!==void 0?t:{},de=we(fe=>Ure(fe,$,N,D)),me=we(fe=>yL(fe,$,N,D)),q=we(fe=>Bre(fe,$,N,D)),W=de,Y=fie(),oe=(n=a??le)!==null&&n!==void 0?n:!1,[ne,R]=eR([W,oe]),H=$==="axis"?me:void 0;Mie($,N,q,H,Z,oe);var ie=M??Y;if(ie==null||B==null||$==null)return null;var se=W??FM;oe||(se=FM),h&&se.length&&(se=W3(se.filter(fe=>fe.value!=null&&(fe.hide!==!0||r.includeHidden)),y,Rie));var ve=se.length>0,Oe=w.createElement(EX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:oe,coordinate:q,hasPayload:ve,offset:g,position:b,reverseDirection:S,useTranslate3d:j,viewBox:B,wrapperStyle:A,lastBoundingBox:ne,innerRef:R,hasPortalFromProps:!!M},zie(f,HM(HM({},r),{},{payload:se,label:H,active:oe,activeIndex:Z,coordinate:q,accessibilityLayer:K})));return w.createElement(w.Fragment,null,_f.createPortal(Oe,ie),oe&&w.createElement(cie,{cursor:O,tooltipEventType:$,coordinate:q,payload:se,index:Z}))}var AL=e=>null;AL.displayName="Cell";function Iie(e,t,n){return(t=Bie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bie(e){var t=Uie(e,"string");return typeof t=="symbol"?t:t+""}function Uie(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 $ie{constructor(t){Iie(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?KM(Object(n),!0).forEach(function(r){Vie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vie(e,t,n){return(t=Hie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hie(e){var t=Fie(e,"string");return typeof t=="symbol"?t:t+""}function Fie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kie={cacheSize:2e3,enableCache:!0},OL=qie({},Kie),YM=new $ie(OL.cacheSize),Yie={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},GM="recharts_measurement_span";function Gie(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 WM=(e,t)=>{try{var n=document.getElementById(GM);n||(n=document.createElement("span"),n.setAttribute("id",GM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Yie,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Kc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ff.isSsr)return{width:0,height:0};if(!OL.enableCache)return WM(t,n);var r=Gie(t,n),a=YM.get(r);if(a)return a;var o=WM(t,n);return YM.set(r,o),o},EL;function Wie(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=Xie(e,"string");return typeof t=="symbol"?t:t+""}function Xie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zie=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Jie=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,eae={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},tae=["cm","mm","pt","pc","in","Q","px"];function nae(e){return tae.includes(e)}var Rl="NaN";function rae(e,t){return e*eae[t]}class bn{static parse(t){var n,[,r,a]=(n=Jie.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!==""&&!Zie.test(n)&&(this.num=NaN,this.unit=""),nae(n)&&(this.num=rae(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)}}EL=bn;Wie(bn,"NaN",new EL(NaN,""));function NL(e){if(e==null||e.includes(Rl))return Rl;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,a,o]=(n=QM.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 Rl;t=t.replace(QM,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,m,g,y]=(h=XM.exec(t))!==null&&h!==void 0?h:[],b=bn.parse(m??""),S=bn.parse(y??""),j=g==="+"?b.add(S):b.subtract(S);if(j.isNaN())return Rl;t=t.replace(XM,j.toString())}return t}var ZM=/\(([^()]*)\)/;function iae(e){for(var t=e,n;(n=ZM.exec(t))!=null;){var[,r]=n;t=t.replace(ZM,NL(r))}return t}function aae(e){var t=e.replace(/\s+/g,"");return t=iae(t),t=NL(t),t}function sae(e){try{return aae(e)}catch{return Rl}}function Tx(e){var t=sae(e.slice(5,-1));return t===Rl?"":t}var oae=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],lae=["dx","dy","angle","className","breakAll"];function N1(){return N1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(null,arguments)}function JM(e,t){if(e==null)return{};var n,r,a=uae(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 uae(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 TL=/[ \f\n\r\t\v\u2028\u2029]+/,CL=e=>{var{children:t,breakAll:n,style:r}=e;try{var a=[];jt(t)||(n?a=t.toString().split(""):a=t.toString().split(TL));var o=a.map(c=>({word:c,width:Kc(c,r).width})),l=n?0:Kc(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}};function cae(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var kL=(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},[]),ML=e=>e.reduce((t,n)=>t.width>n.width?t:n),fae="…",eP=(e,t,n,r,a,o,l,c)=>{var f=e.slice(0,t),h=CL({breakAll:n,style:r,children:f+fae});if(!h)return[!1,[]];var m=kL(h.wordsWithComputedWidth,o,l,c),g=m.length>a||ML(m).width>Number(o);return[g,m]},dae=(e,t,n,r,a)=>{var{maxLines:o,children:l,style:c,breakAll:f}=e,h=he(o),m=String(l),g=kL(t,r,n,a);if(!h||a)return g;var y=g.length>o||ML(g).width>Number(r);if(!y)return g;for(var b=0,S=m.length-1,j=0,A;b<=S&&j<=m.length-1;){var O=Math.floor((b+S)/2),T=O-1,[N,C]=eP(m,T,f,c,o,r,n,a),[M]=eP(m,O,f,c,o,r,n,a);if(!N&&!M&&(b=O+1),N&&M&&(S=O-1),!N&&M){A=C;break}j++}return A||g},tP=e=>{var t=jt(e)?[]:e.toString().split(TL);return[{words:t,width:void 0}]},hae=e=>{var{width:t,scaleToFit:n,children:r,style:a,breakAll:o,maxLines:l}=e;if((t||n)&&!Ff.isSsr){var c,f,h=CL({breakAll:o,children:r,style:a});if(h){var{wordsWithComputedWidth:m,spaceWidth:g}=h;c=m,f=g}else return tP(r);return dae({breakAll:o,children:r,maxLines:l,style:a},c,f,t,!!n)}return tP(r)},PL="#808080",mae={angle:0,breakAll:!1,capHeight:"0.71em",fill:PL,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},rj=w.forwardRef((e,t)=>{var n=Sn(e,mae),{x:r,y:a,lineHeight:o,capHeight:l,fill:c,scaleToFit:f,textAnchor:h,verticalAnchor:m}=n,g=JM(n,oae),y=w.useMemo(()=>hae({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width}),[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),{dx:b,dy:S,angle:j,className:A,breakAll:O}=g,T=JM(g,lae);if(!yi(r)||!yi(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 M;switch(m){case"start":M=Tx("calc(".concat(l,")"));break;case"middle":M=Tx("calc(".concat((y.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:M=Tx("calc(".concat(y.length-1," * -").concat(o,")"));break}var _=[];if(f){var k=y[0].width,{width:D}=g;_.push("scale(".concat(he(D)&&he(k)?D/k:1,")"))}return j&&_.push("rotate(".concat(j,", ").concat(N,", ").concat(C,")")),_.length&&(T.transform=_.join(" ")),w.createElement("text",N1({},zn(T),{ref:t,x:N,y:C,className:Ze("recharts-text",A),textAnchor:h,fill:c.includes("url")?PL:c}),y.map((B,K)=>{var $=B.words.join(O?"":" ");return w.createElement("tspan",{x:N,dy:K===0?M:o,key:"".concat($,"-").concat(K)},$)}))});rj.displayName="Text";var pae=["labelRef"],gae=["content"];function nP(e,t){if(e==null)return{};var n,r,a=vae(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 vae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?rP(Object(n),!0).forEach(function(r){yae(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 yae(e,t,n){return(t=xae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xae(e){var t=bae(e,"string");return typeof t=="symbol"?t:t+""}function bae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function 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 _L=w.createContext(null),wae=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(_L.Provider,{value:f},c)},DL=()=>{var e=w.useContext(_L),t=Yp();return e||IR(t)},Sae=w.createContext(null),jae=()=>{var e=w.useContext(Sae),t=we(uz);return e||t},Aae=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",Oae=(e,t)=>{var n=Qn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Eae=(e,t,n,r,a)=>{var{offset:o,className:l}=e,{cx:c,cy:f,innerRadius:h,outerRadius:m,startAngle:g,endAngle:y,clockWise:b}=a,S=(h+m)/2,j=Oae(g,y),A=j>=0?1:-1,O,T;switch(t){case"insideStart":O=g+A*o,T=b;break;case"insideEnd":O=y-A*o,T=!b;break;case"end":O=y+A*o,T=b;break;default:throw new Error("Unsupported position ".concat(t))}T=j<=0?T:!T;var N=wn(c,f,S,O),C=wn(c,f,S,O+(T?1:-1)*359),M="M".concat(N.x,",").concat(N.y,`
|
|
413
|
+
A`).concat(S,",").concat(S,",0,1,").concat(T?0:1,`,
|
|
414
|
+
`).concat(C.x,",").concat(C.y),_=jt(e.id)?lf("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:M})),w.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Nae=(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:g}=wn(r,a,l+t,h);return{x:m,y:g,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"}},T1=e=>"cx"in e&&he(e.cx),Tae=(e,t)=>{var{parentViewBox:n,offset:r,position:a}=e,o;n!=null&&!T1(n)&&(o=n);var{x:l,y:c,upperWidth:f,lowerWidth:h,height:m}=t,g=l,y=l+(f-h)/2,b=(g+y)/2,S=(f+h)/2,j=g+f/2,A=m>=0?1:-1,O=A*r,T=A>0?"end":"start",N=A>0?"start":"end",C=f>=0?1:-1,M=C*r,_=C>0?"end":"start",k=C>0?"start":"end";if(a==="top"){var D={x:g+f/2,y:c-O,textAnchor:"middle",verticalAnchor:T};return _t(_t({},D),o?{height:Math.max(c-o.y,0),width:f}:{})}if(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-M,y:c+m/2,textAnchor:_,verticalAnchor:"middle"};return _t(_t({},K),o?{width:Math.max(K.x-o.x,0),height:m}:{})}if(a==="right"){var $={x:b+S+M,y:c+m/2,textAnchor:k,verticalAnchor:"middle"};return _t(_t({},$),o?{width:Math.max(o.x+o.width-$.x,0),height:m}:{})}var Z=o?{width:S,height:m}:{};return a==="insideLeft"?_t({x:b+M,y:c+m/2,textAnchor:k,verticalAnchor:"middle"},Z):a==="insideRight"?_t({x:b+S-M,y:c+m/2,textAnchor:_,verticalAnchor:"middle"},Z):a==="insideTop"?_t({x:g+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:g+M,y:c+O,textAnchor:k,verticalAnchor:N},Z):a==="insideTopRight"?_t({x:g+f-M,y:c+O,textAnchor:_,verticalAnchor:N},Z):a==="insideBottomLeft"?_t({x:y+M,y:c+m-O,textAnchor:k,verticalAnchor:T},Z):a==="insideBottomRight"?_t({x:y+h-M,y:c+m-O,textAnchor:_,verticalAnchor:T},Z):a&&typeof a=="object"&&(he(a.x)||oa(a.x))&&(he(a.y)||oa(a.y))?_t({x:l+ri(a.x,S),y:c+ri(a.y,m),textAnchor:"end",verticalAnchor:"end"},Z):_t({x:j,y:c+m/2,textAnchor:"middle",verticalAnchor:"middle"},Z)},Cae={angle:0,offset:5,zIndex:un.label,position:"middle",textBreakAll:!1};function rs(e){var t=Sn(e,Cae),{viewBox:n,position:r,value:a,children:o,content:l,className:c="",textBreakAll:f,labelRef:h}=t,m=jae(),g=DL(),y=r==="center"?g:m??g,b,S,j;if(n==null?b=y:T1(n)?b=n:b=IR(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=nP(A,pae);return w.cloneElement(l,T)}if(typeof l=="function"){var{content:N}=A,C=nP(A,gae);if(S=w.createElement(l,C),w.isValidElement(S))return S}else S=Aae(t);var M=zn(t);if(T1(b)){if(r==="insideStart"||r==="insideEnd"||r==="end")return Eae(t,r,S,M,b);j=Nae(b,t.offset,t.position)}else j=Tae(t,b);return w.createElement($r,{zIndex:t.zIndex},w.createElement(rj,Qi({ref:h,className:Ze("recharts-label",c)},M,j,{textAnchor:cae(M.textAnchor)?M.textAnchor:j.textAnchor,breakAll:f}),S))}rs.displayName="Label";var kae=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?w.createElement(rs,Qi({key:"label-implicit"},r)):yi(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 Mae(e){var{label:t,labelRef:n}=e,r=DL();return kae(t,r,n)||null}var Cx={},kx={},iP;function Pae(){return iP||(iP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(kx)),kx}var Mx={},aP;function _ae(){return aP||(aP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Mx)),Mx}var sP;function Dae(){return sP||(sP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pae(),n=_ae(),r=Yw();function a(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=a})(Cx)),Cx}var Px,oP;function Rae(){return oP||(oP=1,Px=Dae().last),Px}var zae=Rae();const Lae=wi(zae);var Iae=["valueAccessor"],Bae=["dataKey","clockWise","id","textBreakAll","zIndex"];function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}function lP(e,t){if(e==null)return{};var n,r,a=Uae(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 Uae(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 $ae=e=>Array.isArray(e.value)?Lae(e.value):e.value,RL=w.createContext(void 0),zL=RL.Provider,LL=w.createContext(void 0);LL.Provider;function qae(){return w.useContext(RL)}function Vae(){return w.useContext(LL)}function um(e){var{valueAccessor:t=$ae}=e,n=lP(e,Iae),{dataKey:r,clockWise:a,id:o,textBreakAll:l,zIndex:c}=n,f=lP(n,Bae),h=qae(),m=Vae(),g=h||m;return!g||!g.length?null:w.createElement($r,{zIndex:c??un.label},w.createElement(Ln,{className:"recharts-label-list"},g.map((y,b)=>{var S,j=jt(r)?t(y,b):Ht(y&&y.payload,r),A=jt(o)?{}:{id:"".concat(o,"-").concat(b)};return w.createElement(rs,sp({key:"label-".concat(b)},zn(y),f,A,{fill:(S=n.fill)!==null&&S!==void 0?S:y.fill,parentViewBox:y.parentViewBox,value:j,textBreakAll:l,viewBox:y.viewBox,index:b,zIndex:0}))})))}um.displayName="LabelList";function IL(e){var{label:t}=e;return t?t===!0?w.createElement(um,{key:"labelList-implicit"}):w.isValidElement(t)||ij(t)?w.createElement(um,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(um,sp({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function C1(){return C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C1.apply(null,arguments)}var BL=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",C1({},Rr(e),Kw(e),{className:o,cx:t,cy:n,r})):null},Hae={radiusAxis:{},angleAxis:{}},UL=Jn({name:"polarAxis",initialState:Hae,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:Vde,removeRadiusAxis:Hde,addAngleAxis:Fde,removeAngleAxis:Kde}=UL.actions,Fae=UL.reducer,_x={exports:{}},ot={};/**
|
|
415
|
+
* @license React
|
|
416
|
+
* react-is.production.js
|
|
417
|
+
*
|
|
418
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
419
|
+
*
|
|
420
|
+
* This source code is licensed under the MIT license found in the
|
|
421
|
+
* LICENSE file in the root directory of this source tree.
|
|
422
|
+
*/var uP;function Kae(){if(uP)return ot;uP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),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"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(j){if(typeof j=="object"&&j!==null){var A=j.$$typeof;switch(A){case e:switch(j=j.type,j){case n:case a:case r:case f:case h:case y:return j;default:switch(j=j&&j.$$typeof,j){case l:case c:case g:case m:return j;case o:return j;default:return A}}case t:return A}}}return ot.ContextConsumer=o,ot.ContextProvider=l,ot.Element=e,ot.ForwardRef=c,ot.Fragment=n,ot.Lazy=g,ot.Memo=m,ot.Portal=t,ot.Profiler=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)===g},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===g||j.$$typeof===m||j.$$typeof===l||j.$$typeof===o||j.$$typeof===c||j.$$typeof===b||j.getModuleId!==void 0)},ot.typeOf=S,ot}var cP;function Yae(){return cP||(cP=1,_x.exports=Kae()),_x.exports}var Gae=Yae(),fP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",dP=null,Dx=null,$L=e=>{if(e===dP&&Array.isArray(Dx))return Dx;var t=[];return w.Children.forEach(e,n=>{jt(n)||(Gae.isFragment(n)?t=t.concat($L(n.props.children)):t.push(n))}),Dx=t,dP=e,t};function Wae(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(a=>fP(a)):r=[fP(t)],$L(e).forEach(a=>{var o=tu(a,"type.displayName")||tu(a,"type.name");o&&r.indexOf(o)!==-1&&n.push(a)}),n}var qL=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Rx={},hP;function Qae(){return hP||(hP=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})(Rx)),Rx}var zx,mP;function Xae(){return mP||(mP=1,zx=Qae().isPlainObject),zx}var Zae=Xae();const Jae=wi(Zae);var pP,gP,vP,yP,xP;function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ese(e,t,n){return(t=tse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tse(e){var t=nse(e,"string");return typeof t=="symbol"?t:t+""}function nse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}function Mc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var SP=(e,t,n,r,a)=>{var o=n-r,l;return l=kt(pP||(pP=Mc(["M ",",",""])),e,t),l+=kt(gP||(gP=Mc(["L ",",",""])),e+n,t),l+=kt(vP||(vP=Mc(["L ",",",""])),e+n-o/2,t+a),l+=kt(yP||(yP=Mc(["L ",",",""])),e+n-o/2-r,t+a),l+=kt(xP||(xP=Mc(["L ",","," Z"])),e,t),l},rse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ise=e=>{var t=Sn(e,rse),{x:n,y:r,upperWidth:a,lowerWidth:o,height:l,className:c}=t,{animationEasing:f,animationDuration:h,animationBegin:m,isUpdateAnimationActive:g}=t,y=w.useRef(null),[b,S]=w.useState(-1),j=w.useRef(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 M=Ze("recharts-trapezoid",c);if(!g)return w.createElement("g",null,w.createElement("path",op({},zn(t),{className:M,d:SP(n,r,a,o,l)})));var _=j.current,k=A.current,D=O.current,B=T.current,K=N.current,$="0px ".concat(b===-1?1:b,"px"),Z="".concat(b,"px 0px"),le=WR(["strokeDasharray"],h,f);return w.createElement(Zp,{animationId:C,key:C,canBegin:b>0,duration:h,easing:f,isActive:g,begin:m},de=>{var me=wt(_,a,de),q=wt(k,o,de),W=wt(D,l,de),Y=wt(B,n,de),oe=wt(K,r,de);y.current&&(j.current=me,A.current=q,O.current=W,T.current=Y,N.current=oe);var ne=de>0?{transition:le,strokeDasharray:Z}:{strokeDasharray:$};return w.createElement("path",op({},zn(t),{className:M,d:SP(Y,oe,me,q,W),ref:y,style:wP(wP({},ne),t.style)}))})},ase=["option","shapeType","activeClassName"];function sse(e,t){if(e==null)return{};var n,r,a=ose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ose(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?jP(Object(n),!0).forEach(function(r){lse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lse(e,t,n){return(t=use(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function use(e){var t=cse(e,"string");return typeof t=="symbol"?t:t+""}function cse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fse(e,t){return lp(lp({},t),e)}function dse(e,t){return e==="symbols"}function AP(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return w.createElement(JR,n);case"trapezoid":return w.createElement(ise,n);case"sector":return w.createElement(n4,n);case"symbols":if(dse(t))return w.createElement(Fw,n);break;case"curve":return w.createElement(Fc,n);default:return null}}function hse(e){return w.isValidElement(e)?e.props:e}function mse(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,a=sse(e,ase),o;if(w.isValidElement(t))o=w.cloneElement(t,lp(lp({},a),hse(t)));else if(typeof t=="function")o=t(a,a.index);else if(Jae(t)&&typeof t!="boolean"){var l=fse(t,a);o=w.createElement(AP,{shapeType:n,elementProps:l})}else{var c=a;o=w.createElement(AP,{shapeType:n,elementProps:c})}return a.isActive?w.createElement(Ln,{className:r},o):o}var VL=(e,t,n)=>{var r=At();return(a,o)=>l=>{e==null||e(a,o,l),r(Zz({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}},HL=e=>{var t=At();return(n,r)=>a=>{e==null||e(n,r,a),t(Rne())}},FL=(e,t,n)=>{var r=At();return(a,o)=>l=>{e==null||e(a,o,l),r(zne({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}};function KL(e){var{tooltipEntrySettings:t}=e,n=At(),r=Tn(),a=w.useRef(null);return w.useLayoutEffect(()=>{r||(a.current===null?n(Mne(t)):a.current!==t&&n(Pne({prev:a.current,next:t})),a.current=t)},[t,n,r]),w.useLayoutEffect(()=>()=>{a.current&&(n(_ne(a.current)),a.current=null)},[n]),null}function YL(e){var{legendPayload:t}=e,n=At(),r=Tn(),a=w.useRef(null);return w.useLayoutEffect(()=>{r||(a.current===null?n(ZQ(t)):a.current!==t&&n(JQ({prev:a.current,next:t})),a.current=t)},[n,r,t]),w.useLayoutEffect(()=>()=>{a.current&&(n(eX(a.current)),a.current=null)},[n]),null}var Lx,pse=()=>{var[e]=w.useState(()=>lf("uid-"));return e},gse=(Lx=E8.useId)!==null&&Lx!==void 0?Lx:pse;function vse(e,t){var n=gse();return t||(e?"".concat(e,"-").concat(n):n)}var yse=w.createContext(void 0),GL=e=>{var{id:t,type:n,children:r}=e,a=vse("recharts-".concat(n),t);return w.createElement(yse.Provider,{value:a},r(a))},xse={cartesianItems:[],polarItems:[]},WL=Jn({name:"graphicalItems",initialState:xse,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:vt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=ti(e).cartesianItems.indexOf(n);a>-1&&(e.cartesianItems[a]=r)},prepare:vt()},removeCartesianGraphicalItem:{reducer(e,t){var n=ti(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:vt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:vt()},removePolarGraphicalItem:{reducer(e,t){var n=ti(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:vt()}}}),{addCartesianGraphicalItem:bse,replaceCartesianGraphicalItem:wse,removeCartesianGraphicalItem:Sse,addPolarGraphicalItem:Yde,removePolarGraphicalItem:Gde}=WL.actions,jse=WL.reducer,Ase=e=>{var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(bse(e)):n.current!==e&&t(wse({prev:n.current,next:e})),n.current=e},[t,e]),w.useLayoutEffect(()=>()=>{n.current&&(t(Sse(n.current)),n.current=null)},[t]),null},QL=w.memo(Ase),Ose=["points"];function OP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ix(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(r){Ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ese(e,t,n){return(t=Nse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nse(e){var t=Tse(e,"string");return typeof t=="symbol"?t:t+""}function Tse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},up.apply(null,arguments)}function Cse(e,t){if(e==null)return{};var n,r,a=kse(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function kse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mse(e){var{option:t,dotProps:n,className:r}=e;if(w.isValidElement(t))return w.cloneElement(t,n);if(typeof t=="function")return t(n);var a=Ze(r,typeof t!="boolean"?t.className:""),o=n??{},{points:l}=o,c=Cse(o,Ose);return w.createElement(BL,up({},c,{className:a}))}function Pse(e,t){return e==null?!1:t?!0:e.length===1}function _se(e){var{points:t,dot:n,className:r,dotClassName:a,dataKey:o,baseProps:l,needClip:c,clipPathId:f,zIndex:h=un.scatter}=e;if(!Pse(t,n))return null;var m=qL(n),g=PK(n),y=t.map((S,j)=>{var A,O,T=Ix(Ix(Ix({r:3},l),g),{},{index:j,cx:(A=S.x)!==null&&A!==void 0?A:void 0,cy:(O=S.y)!==null&&O!==void 0?O:void 0,dataKey:o,value:S.value,payload:S.payload,points:t});return w.createElement(Mse,{key:"dot-".concat(j),option:n,dotProps:T,className:a})}),b={};return c&&f!=null&&(b.clipPath="url(#clipPath-".concat(m?"":"dots-").concat(f,")")),w.createElement($r,{zIndex:h},w.createElement(Ln,up({className:r},b),y))}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?EP(Object(n),!0).forEach(function(r){Dse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dse(e,t,n){return(t=Rse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rse(e){var t=zse(e,"string");return typeof t=="symbol"?t:t+""}function zse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XL=0,Lse={xAxis:{},yAxis:{},zAxis:{}},ZL=Jn({name:"cartesianAxis",initialState:Lse,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:vt()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:vt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:vt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:vt()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:vt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:vt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:vt()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:vt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:vt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,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]=NP(NP({},e.yAxis[n]),{},{width:r,widthHistory:l})}}}}),{addXAxis:Ise,replaceXAxis:Bse,removeXAxis:Use,addYAxis:$se,replaceYAxis:qse,removeYAxis:Vse,addZAxis:Wde,replaceZAxis:Qde,removeZAxis:Xde,updateYAxisWidth:Hse}=ZL.actions,Fse=ZL.reducer,Kse=Q([cn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Yse=Q([Kse,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=()=>we(Yse),Gse=()=>we(Ore);function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?TP(Object(n),!0).forEach(function(r){Wse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wse(e,t,n){return(t=Qse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qse(e){var t=Xse(e,"string");return typeof t=="symbol"?t:t+""}function Xse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zse=e=>{var{point:t,childIndex:n,mainColor:r,activeDot: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=Bx(Bx(Bx({},c),If(a)),Kw(a)),h;return w.isValidElement(a)?h=w.cloneElement(a,f):typeof a=="function"?h=a(f):h=w.createElement(BL,f),w.createElement(Ln,{className:"recharts-active-dot",clipPath:l},h)};function CP(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:a,clipPath:o,zIndex:l=un.activeDot}=e,c=we(Co),f=Gse();if(t==null||f==null)return null;var h=t.find(m=>f.includes(m.payload));return jt(h)?null:w.createElement($r,{zIndex:l},w.createElement(Zse,{point:h,childIndex:Number(c),mainColor:n,dataKey:a,activeDot:r,clipPath:o}))}var kP=(e,t,n)=>{var r=n??e;if(!jt(r))return ri(r,t,0)},Jse=(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,g]=h,y=g.map(S=>S.dataKey),b=kP(t,n,g[0].barSize);return{stackId:m,dataKeys:y,barSize:b}}),f=o.map(h=>{var m=[h.dataKey].filter(y=>y!=null),g=kP(t,n,h.barSize);return{stackId:void 0,dataKeys:m,barSize:g}});return[...c,...f]};function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){eoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eoe(e,t,n){return(t=toe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function toe(e){var t=noe(e,"string");return typeof t=="symbol"?t:t+""}function noe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function roe(e,t,n,r,a){var o=r.length;if(!(o<1)){var l=ri(e,n,0,!0),c,f=[];if(ft(r[0].barSize)){var h=!1,m=n/o,g=r.reduce((O,T)=>O+(T.barSize||0),0);g+=(o-1)*l,g>=n&&(g-=(o-1)*l,l=0),g>=n&&m>0&&(h=!0,m*=.9,g=o*m);var y=(n-g)/2>>0,b={offset:y-l,size:0};c=r.reduce((O,T)=>{var N,C={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:b.offset+b.size+l,size:h?m:(N=T.barSize)!==null&&N!==void 0?N:0}},M=[...O,C];return b=M[M.length-1].position,M},f)}else{var S=ri(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 ioe=(e,t,n,r,a,o,l)=>{var c=jt(l)?t:l,f=roe(n,r,a!==o?a:o,e,c);return a!==o&&f!=null&&(f=f.map(h=>Yh(Yh({},h),{},{position:Yh(Yh({},h.position),{},{offset:h.position.offset-a/2})}))),f},aoe=(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 soe(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ft(e.zIndex)?e.zIndex:t}var ooe=e=>{var{chartData:t}=e,n=At(),r=Tn();return w.useEffect(()=>r?()=>{}:(n($M(t)),()=>{n($M(void 0))}),[t,n,r]),null},PP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},JL=Jn({name:"brush",initialState:PP,reducers:{setBrushSettings(e,t){return t.payload==null?PP:t.payload}}}),{setBrushSettings:Zde}=JL.actions,loe=JL.reducer;function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=foe(e,"string");return typeof t=="symbol"?t:t+""}function foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class sj{static create(t){return new sj(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var 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}}uoe(sj,"EPS",1e-4);function doe(e){return(e%180+180)%180}var hoe=function(t){var{width:n,height:r}=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=doe(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)},moe={dots:[],areas:[],lines:[]},e6=Jn({name:"referenceElements",initialState:moe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ti(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=ti(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=ti(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Jde,removeDot:ehe,addArea:the,removeArea:nhe,addLine:rhe,removeLine:ihe}=e6.actions,poe=e6.reducer,goe=w.createContext(void 0),voe=e=>{var{children:t}=e,[n]=w.useState("".concat(lf("recharts"),"-clip")),r=aj();if(r==null)return null;var{x:a,y:o,width:l,height:c}=r;return w.createElement(goe.Provider,{value:n},w.createElement("defs",null,w.createElement("clipPath",{id:n},w.createElement("rect",{x:a,y:o,height:c,width:l}))),t)};function t6(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 yoe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return hoe(r,n)}function xoe(e,t,n){var r=n==="width",{x: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 Sf(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 boe(e,t){return t6(e,t+1)}function woe(e,t,n,r,a){for(var o=(r||[]).slice(),{start:l,end:c}=t,f=0,h=1,m=l,g=function(){var S=r==null?void 0:r[f];if(S===void 0)return{v:t6(r,h)};var j=f,A,O=()=>(A===void 0&&(A=n(S,j)),A),T=S.coordinate,N=f===0||Sf(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=g(),y)return y.v;return[]}function Soe(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,g=c,y=!0,b=function(){var T=r[S],N=S,C,M=()=>(C===void 0&&(C=n(T,N)),C),_=T.coordinate,k=S===m||Sf(e,_,M,g,f);if(!k)return y=!1,1;k&&(g=_+e*(M()/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 _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 On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function joe(e,t,n){return(t=Aoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aoe(e){var t=Ooe(e,"string");return typeof t=="symbol"?t:t+""}function Ooe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eoe(e,t,n,r,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=Sf(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 Noe(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],g=n(m,c-1),y=e*(m.coordinate+e*g/2-h);if(l[c-1]=m=On(On({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate}),m.tickCoord!=null){var b=Sf(e,m.tickCoord,()=>g,f,h);b&&(h=m.tickCoord-e*(g/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,M=()=>(C===void 0&&(C=n(N,T)),C);if(T===0){var _=e*(N.coordinate-e*M()/2-f);l[T]=N=On(On({},N),{},{tickCoord:_<0?N.coordinate-_*e:N.coordinate})}else l[T]=N=On(On({},N),{},{tickCoord:N.coordinate});if(N.tickCoord!=null){var k=Sf(e,N.tickCoord,M,f,h);k&&(f=N.tickCoord+e*(M()/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:g}=e;if(!a||!a.length||!r)return[];if(he(f)||Ff.isSsr){var y;return(y=boe(a,he(f)?f:0))!==null&&y!==void 0?y:[]}var b=[],S=c==="top"||c==="bottom"?"width":"height",j=m&&S==="width"?Kc(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},A=(N,C)=>{var M=typeof h=="function"?h(N.value,C):N.value;return S==="width"?yoe(Kc(M,{fontSize:t,letterSpacing:n}),j,g):Kc(M,{fontSize:t,letterSpacing:n})[S]},O=a.length>=2?Qn(a[1].coordinate-a[0].coordinate):1,T=xoe(o,O,S);return f==="equidistantPreserveStart"?woe(O,T,A,a,l):f==="equidistantPreserveEnd"?Soe(O,T,A,a,l):(f==="preserveStart"||f==="preserveStartEnd"?b=Noe(O,T,A,a,l,f==="preserveStartEnd"):b=Eoe(O,T,A,a,l),b.filter(N=>N.isShow))}var Toe=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 g=m.getBoundingClientRect();g.width>l&&(l=g.width)}});var c=n?n.getBoundingClientRect().width:0,f=a+o,h=l+f+c+(n?r:0);return Math.round(h)}return 0},Coe=["axisLine","width","height","className","hide","ticks","axisType"];function koe(e,t){if(e==null)return{};var n,r,a=Moe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Moe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?DP(Object(n),!0).forEach(function(r){Poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Poe(e,t,n){return(t=_oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e){var t=Doe(e,"string");return typeof t=="symbol"?t:t+""}function Doe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var na={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:un.axis};function Roe(e){var{x:t,y:n,width:r,height: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 g=+(o==="left"&&!l||o==="right"&&l);h=Vt(Vt({},h),{},{x1:t+g*r,y1:n,x2:t+g*r,y2:n+a})}return w.createElement("line",ko({},h,{className:Ze("recharts-cartesian-axis-line",tu(c,"className"))}))}function zoe(e,t,n,r,a,o,l,c,f){var h,m,g,y,b,S,j=c?-1:1,A=e.tickSize||l,O=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=m=e.coordinate,y=n+ +!c*a,g=y-j*A,S=g-j*f,b=O;break;case"left":g=y=e.coordinate,m=t+ +!c*r,h=m-j*A,b=h-j*f,S=O;break;case"right":g=y=e.coordinate,m=t+ +c*r,h=m+j*A,b=h+j*f,S=O;break;default:h=m=e.coordinate,y=n+ +c*a,g=y+j*A,S=g+j*f,b=O;break}return{line:{x1:h,y1:g,x2:m,y2:y},tick:{x:b,y:S}}}function Loe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Ioe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Boe(e){var{option:t,tickProps:n,value:r}=e,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 Uoe=w.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:a,stroke:o,tickFormatter:l,unit:c,padding:f,tickTextProps:h,orientation:m,mirror:g,x:y,y:b,width:S,height:j,tickSize:A,tickMargin:O,fontSize:T,letterSpacing:N,getTicksConfig:C,events:M,axisType:_}=e,k=oj(Vt(Vt({},C),{},{ticks:n}),T,N),D=Loe(m,g),B=Ioe(m,g),K=Rr(C),$=If(r),Z={};typeof a=="object"&&(Z=a);var le=Vt(Vt({},K),{},{fill:"none"},Z),de=k.map(W=>Vt({entry:W},zoe(W,y,b,S,j,m,A,g,O))),me=de.map(W=>{var{entry:Y,line:oe}=W;return w.createElement(Ln,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(Y.value,"-").concat(Y.coordinate,"-").concat(Y.tickCoord)},a&&w.createElement("line",ko({},le,oe,{className:Ze("recharts-cartesian-axis-tick-line",tu(a,"className"))})))}),q=de.map((W,Y)=>{var{entry:oe,tick:ne}=W,R=Vt(Vt(Vt(Vt({textAnchor:D,verticalAnchor:B},K),{},{stroke:"none",fill:o},$),ne),{},{index:Y,payload:oe,visibleTicksCount:k.length,tickFormatter:l,padding:f},h);return w.createElement(Ln,ko({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(oe.value,"-").concat(oe.coordinate,"-").concat(oe.tickCoord)},Mp(M,oe,Y)),r&&w.createElement(Boe,{option:r,tickProps:R,value:"".concat(typeof l=="function"?l(oe.value,Y):oe.value).concat(c||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(_,"-ticks")},q.length>0&&w.createElement($r,{zIndex:un.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(_,"-tick-labels"),ref:t},q)),me.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(_,"-tick-lines")},me))}),$oe=w.forwardRef((e,t)=>{var{axisLine:n,width:r,height:a,className:o,hide:l,ticks:c,axisType:f}=e,h=koe(e,Coe),[m,g]=w.useState(""),[y,b]=w.useState(""),S=w.useRef(null);w.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var A;return Toe({ticks:S.current,label:(A=e.labelRef)===null||A===void 0?void 0:A.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=w.useCallback(A=>{if(A){var O=A.getElementsByClassName("recharts-cartesian-axis-tick-value");S.current=O;var T=O[0];if(T){var N=window.getComputedStyle(T),C=N.fontSize,M=N.letterSpacing;(C!==m||M!==y)&&(g(C),b(M))}}},[m,y]);return l||r!=null&&r<=0||a!=null&&a<=0?null:w.createElement($r,{zIndex:e.zIndex},w.createElement(Ln,{className:Ze("recharts-cartesian-axis",o)},w.createElement(Roe,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Rr(e)}),w.createElement(Uoe,{ref:j,axisType:f,events:h,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:y,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(wae,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Mae,{label:e.label,labelRef:e.labelRef}),e.children)))}),lj=w.forwardRef((e,t)=>{var n=Sn(e,na);return w.createElement($oe,ko({},n,{ref:t}))});lj.displayName="CartesianAxis";var qoe=["x1","y1","x2","y2","key"],Voe=["offset"],Hoe=["xAxisId","yAxisId"],Foe=["xAxisId","yAxisId"];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 En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){Koe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Koe(e,t,n){return(t=Yoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yoe(e){var t=Goe(e,"string");return typeof t=="symbol"?t:t+""}function Goe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function io(){return io=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},io.apply(null,arguments)}function cp(e,t){if(e==null)return{};var n,r,a=Woe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Woe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qoe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y: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 n6(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),g=(a=Rr(m))!==null&&a!==void 0?a:{},{offset:y}=g,b=cp(g,Voe);r=w.createElement("line",io({},b,{x1:o,y1:l,x2:c,y2:f,fill:"none",key:h}))}return r}function Xoe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=cp(e,Hoe),f=a.map((h,m)=>{var g=En(En({},c),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(m),index:m});return w.createElement(n6,{key:"line-".concat(m),option:r,lineItemProps:g})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function Zoe(e){var{y:t,height:n,vertical:r=!0,verticalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=cp(e,Foe),f=a.map((h,m)=>{var g=En(En({},c),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(m),index:m});return w.createElement(n6,{option:r,lineItemProps:g,key:"line-".concat(m)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function Joe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:a,width:o,height:l,horizontalPoints:c,horizontal:f=!0}=e;if(!f||!t||!t.length||c==null)return null;var h=c.map(g=>Math.round(g+a-a)).sort((g,y)=>g-y);a!==h[0]&&h.unshift(0);var m=h.map((g,y)=>{var b=!h[y+1],S=b?a+l-g:h[y+1]-g;if(S<=0)return null;var j=y%t.length;return w.createElement("rect",{key:"react-".concat(y),y:g,x:r,height:S,width:o,stroke:"none",fill:t[j],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function ele(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:a,y:o,width:l,height:c,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var h=f.map(g=>Math.round(g+a-a)).sort((g,y)=>g-y);a!==h[0]&&h.unshift(0);var m=h.map((g,y)=>{var b=!h[y+1],S=b?a+l-g:h[y+1]-g;if(S<=0)return null;var j=y%n.length;return w.createElement("rect",{key:"react-".concat(y),x:g,y:o,width:S,height:c,stroke:"none",fill:n[j],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var tle=(e,t)=>{var{xAxis:n,width:r,height:a,offset:o}=e;return MR(oj(En(En(En({},na),n),{},{ticks:PR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},nle=(e,t)=>{var{yAxis:n,width:r,height:a,offset:o}=e;return MR(oj(En(En(En({},na),n),{},{ticks:PR(n),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},rle={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:un.grid};function Yc(e){var t=rS(),n=iS(),r=BR(),a=En(En({},Sn(e,rle)),{},{x:he(e.x)?e.x:r.left,y:he(e.y)?e.y:r.top,width:he(e.width)?e.width:r.width,height:he(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:l,x:c,y:f,width:h,height:m,syncWithTicks:g,horizontalValues:y,verticalValues:b}=a,S=Tn(),j=we(B=>CM(B,"xAxis",o,S)),A=we(B=>CM(B,"yAxis",l,S));if(!xi(h)||!xi(m)||!he(c)||!he(f))return null;var O=a.verticalCoordinatesGenerator||tle,T=a.horizontalCoordinatesGenerator||nle,{horizontalPoints:N,verticalPoints:C}=a;if((!N||!N.length)&&typeof T=="function"){var M=y&&y.length,_=T({yAxis:A?En(En({},A),{},{ticks:M?y:A.ticks}):void 0,width:t??h,height:n??m,offset:r},M?!0:g);Lm(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(N=_)}if((!C||!C.length)&&typeof O=="function"){var k=b&&b.length,D=O({xAxis:j?En(En({},j),{},{ticks:k?b:j.ticks}):void 0,width:t??h,height:n??m,offset:r},k?!0:g);Lm(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(C=D)}return w.createElement($r,{zIndex:a.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(Qoe,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),w.createElement(Joe,io({},a,{horizontalPoints:N})),w.createElement(ele,io({},a,{verticalPoints:C})),w.createElement(Xoe,io({},a,{offset:r,horizontalPoints:N,xAxis:j,yAxis:A})),w.createElement(Zoe,io({},a,{offset:r,verticalPoints:C,xAxis:j,yAxis:A}))))}Yc.displayName="CartesianGrid";var ile={},r6=Jn({name:"errorBars",initialState:ile,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:ahe,replaceErrorBar:she,removeErrorBar:ohe}=r6.actions,ale=r6.reducer,sle=["children"];function ole(e,t){if(e==null)return{};var n,r,a=lle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function lle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ule={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},cle=w.createContext(ule);function fle(e){var{children:t}=e,n=ole(e,sle);return w.createElement(cle.Provider,{value:n},t)}function uj(e,t){var n,r,a=we(h=>Sa(h,e)),o=we(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 i6(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:g}=a;return w.createElement("clipPath",{id:"clipPath-".concat(r)},w.createElement("rect",{x:o?f:f-m/2,y:l?h:h-g/2,width:o?m:m*2,height:l?g:g*2}))}function dle(e){var t=If(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 Ux={exports:{}},$x={};/**
|
|
423
|
+
* @license React
|
|
424
|
+
* use-sync-external-store-with-selector.production.js
|
|
425
|
+
*
|
|
426
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
427
|
+
*
|
|
428
|
+
* This source code is licensed under the MIT license found in the
|
|
429
|
+
* LICENSE file in the root directory of this source tree.
|
|
430
|
+
*/var zP;function hle(){if(zP)return $x;zP=1;var e=cu();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return $x.useSyncExternalStoreWithSelector=function(f,h,m,g,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(M){if(!O){if(O=!0,T=M,M=g(M),y!==void 0&&S.hasValue){var _=S.value;if(y(_,M))return N=_}return N=M}if(_=N,n(T,M))return _;var k=g(M);return y!==void 0&&y(_,k)?(T=M,_):(T=M,N=k)}var O=!1,T,N,C=m===void 0?null:m;return[function(){return A(h())},C===null?void 0:function(){return A(C())}]},[h,m,g,y]);var j=r(f,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=j},[j]),c(j),j},$x}var LP;function mle(){return LP||(LP=1,Ux.exports=hle()),Ux.exports}mle();function ple(e){e()}function gle(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ple(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const 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 IP={notify(){},get:()=>[]};function vle(e,t){let n,r=IP,a=0,o=!1;function l(j){m();const A=r.subscribe(j);let O=!1;return()=>{O||(O=!0,A(),g())}}function c(){r.notify()}function f(){S.onStateChange&&S.onStateChange()}function h(){return o}function m(){a++,n||(n=e.subscribe(f),r=gle())}function g(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=IP)}function y(){o||(o=!0,m())}function b(){o&&(o=!1,g())}const S={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return S}var yle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xle=yle(),ble=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wle=ble(),Sle=()=>xle||wle?w.useLayoutEffect:w.useEffect,jle=Sle();function BP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ale(e,t){if(BP(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!BP(e[n[a]],t[n[a]]))return!1;return!0}var qx=Symbol.for("react-redux-context"),Vx=typeof globalThis<"u"?globalThis:{};function Ole(){if(!w.createContext)return{};const e=Vx[qx]??(Vx[qx]=new Map);let t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}var Ele=Ole();function Nle(e){const{children:t,context:n,serverState:r,store:a}=e,o=w.useMemo(()=>{const f=vle(a);return{store:a,subscription:f,getServerState:r?()=>r:void 0}},[a,r]),l=w.useMemo(()=>a.getState(),[a]);jle(()=>{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||Ele;return w.createElement(c.Provider,{value:o},t)}var Tle=Nle,Cle=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function kle(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function xg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Cle.has(r)){if(e[r]==null&&t[r]==null)continue;if(!Ale(e[r],t[r]))return!1}else if(!kle(e[r],t[r]))return!1;return!0}function Si(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:XL}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.yAxisId)!==null&&n!==void 0?n:XL}var a6=(e,t,n)=>ws(e,"xAxis",Si(e,t),n),s6=(e,t,n)=>bs(e,"xAxis",Si(e,t),n),o6=(e,t,n)=>ws(e,"yAxis",ji(e,t),n),l6=(e,t,n)=>bs(e,"yAxis",ji(e,t),n),Mle=Q([We,a6,o6,s6,l6],(e,t,n,r,a)=>va(e,"xAxis")?ru(t,r,!1):ru(n,a,!1)),Ple=(e,t)=>t,u6=Q([mg,Ple],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),c6=e=>{var t=We(e),n=va(t,"xAxis");return n?"yAxis":"xAxis"},_le=(e,t)=>{var n=c6(e);return n==="yAxis"?ji(e,t):Si(e,t)},Dle=(e,t,n)=>rp(e,c6(e),_le(e,t),n),Rle=Q([u6,Dle],(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]])}}}),zle=Q([We,a6,o6,s6,l6,Rle,U4,Mle,u6,Ate],(e,t,n,r,a,o,l,c,f,h)=>{var{chartData:m,dataStartIndex:g,dataEndIndex:y}=l;if(!(f==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||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(g,y+1),S!=null)return tue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:a,dataStartIndex:g,areaSettings:f,stackedData:o,displayedData:S,chartBaseValue:h,bandSize:c})}}),Lle=["id"],Ile=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}function f6(e,t){if(e==null)return{};var n,r,a=Ble(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ble(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){Ule(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ule(e,t,n){return(t=$le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $le(e){var t=qle(e,"string");return typeof t=="symbol"?t:t+""}function qle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fp(e,t){return e&&e!=="none"?e:t}var Vle=e=>{var{dataKey:t,name:n,stroke:r,fill:a,legendType:o,hide:l}=e;return[{inactive:l,dataKey:t,type:o,color:fp(r,a),value:qp(n,t),payload:e}]},Hle=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,g={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(KL,{tooltipEntrySettings:g})});function Fle(e){var{clipPathId:t,points:n,props:r}=e,{needClip:a,dot:o,dataKey:l}=r,c=Rr(r);return w.createElement(_se,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:c,needClip:a,clipPathId:t})}function Kle(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 zl(zl({},f),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return w.createElement(zL,{value:t?a:void 0},n)}function $P(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:g}=o,y=f6(o,Lle),b=Rr(y),S=zn(y);return w.createElement(w.Fragment,null,(t==null?void 0:t.length)>1&&w.createElement(Ln,{clipPath:r?"url(#clipPath-".concat(a,")"):void 0},w.createElement(Fc,bo({},S,{id:g,points:t,connectNulls:h,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&w.createElement(Fc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:t})),f!=="none"&&m&&w.createElement(Fc,bo({},b,{className:"recharts-area-curve",layout:l,type:c,connectNulls:h,fill:"none",points:n}))),w.createElement(Fle,{points:t,props:y,clipPathId:a}))}function Yle(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(g=>g.x||0));return he(a)?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(...a.map(g=>g.x||0),m)),he(m)?w.createElement("rect",{x:0,y:c<f?c:c-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}function Gle(e){var t,n,{alpha:r,baseLine: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(g=>g.y||0));return he(a)?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(...a.map(g=>g.y||0),m)),he(m)?w.createElement("rect",{x:c<f?c:c-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}function Wle(e){var{alpha:t,layout:n,points:r,baseLine:a,strokeWidth:o}=e;return n==="vertical"?w.createElement(Yle,{alpha:t,points:r,baseLine:a,strokeWidth:o}):w.createElement(Gle,{alpha:t,points:r,baseLine:a,strokeWidth:o})}function Qle(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:o}=e,{points:l,baseLine:c,isAnimationActive:f,animationBegin:h,animationDuration:m,animationEasing:g,onAnimationStart:y,onAnimationEnd:b}=r,S=w.useMemo(()=>({points:l,baseLine:c}),[l,c]),j=Jp(S,"recharts-area-"),A=LQ(),[O,T]=w.useState(!1),N=!O,C=w.useCallback(()=>{typeof b=="function"&&b(),T(!1)},[b]),M=w.useCallback(()=>{typeof y=="function"&&y(),T(!0)},[y]);if(A==null)return null;var _=a.current,k=o.current;return w.createElement(Kle,{showLabels:N,points:l},r.children,w.createElement(Zp,{animationId:j,begin:h,duration:m,isActive:f,easing:g,onAnimationEnd:C,onAnimationStart:M,key:j},D=>{if(_){var B=_.length/l.length,K=D===1?l:l.map((Z,le)=>{var de=Math.floor(le*B);if(_[de]){var me=_[de];return zl(zl({},Z),{},{x:wt(me.x,Z.x,D),y:wt(me.y,Z.y,D)})}return Z}),$;return he(c)?$=wt(k,c,D):jt(c)||zr(c)?$=wt(k,0,D):$=c.map((Z,le)=>{var de=Math.floor(le*B);if(Array.isArray(k)&&k[de]){var me=k[de];return zl(zl({},Z),{},{x:wt(me.x,Z.x,D),y:wt(me.y,Z.y,D)})}return Z}),D>0&&(a.current=K,o.current=$),w.createElement($P,{points:K,baseLine:$,needClip:t,clipPathId:n,props:r})}return D>0&&(a.current=l,o.current=c),w.createElement(Ln,null,f&&w.createElement("defs",null,w.createElement("clipPath",{id:"animationClipPath-".concat(n)},w.createElement(Wle,{alpha:D,points:l,baseLine:c,layout:A,strokeWidth:r.strokeWidth}))),w.createElement(Ln,{clipPath:"url(#animationClipPath-".concat(n,")")},w.createElement($P,{points:l,baseLine:c,needClip:t,clipPathId:n,props:r})))}),w.createElement(IL,{label:r.label}))}function Xle(e){var{needClip:t,clipPathId:n,props:r}=e,a=w.useRef(null),o=w.useRef();return w.createElement(Qle,{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:o})}class Zle 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:g,id:y,baseLine:b,zIndex:S}=this.props;if(t)return null;var j=Ze("recharts-area",a),A=y,{r:O,strokeWidth:T}=dle(n),N=qL(n),C=O*2+T,M=c?"url(#clipPath-".concat(N?"":"dots-").concat(A,")"):void 0;return w.createElement($r,{zIndex:S},w.createElement(Ln,{className:j},c&&w.createElement("defs",null,w.createElement(i6,{clipPathId:A,xAxisId:f,yAxisId:h}),!N&&w.createElement("clipPath",{id:"clipPath-dots-".concat(A)},w.createElement("rect",{x:l-C/2,y:o-C/2,width:m+C,height:g+C}))),w.createElement(Xle,{needClip:c,clipPathId:A,props:this.props})),w.createElement(CP,{points:r,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:M}),this.props.isRange&&Array.isArray(b)&&w.createElement(CP,{points:b,mainColor:fp(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:M}))}}var d6={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:un.area};function Jle(e){var t,n=Sn(e,d6),{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,connectNulls:c,dot:f,fill:h,fillOpacity:m,hide:g,isAnimationActive:y,legendType:b,stroke:S,xAxisId:j,yAxisId:A}=n,O=f6(n,Ile),T=Po(),N=pL(),{needClip:C}=uj(j,A),M=Tn(),{points:_,isRange:k,baseLine:D}=(t=we(de=>zle(de,e.id,M)))!==null&&t!==void 0?t:{},B=aj();if(T!=="horizontal"&&T!=="vertical"||B==null||N!=="AreaChart"&&N!=="ComposedChart")return null;var{height:K,width:$,x:Z,y:le}=B;return!_||!_.length?null:w.createElement(Zle,bo({},O,{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:l,baseLine:D,connectNulls:c,dot:f,fill:h,fillOpacity:m,height:K,hide:g,layout:T,isAnimationActive:y==="auto"?!Ff.isSsr:y,isRange:k,legendType:b,needClip:C,points:_,stroke:S,width:$,left:Z,top:le,xAxisId:j,yAxisId:A}))}var eue=(e,t,n,r,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 tue(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:a,layout:o,chartBaseValue:l,xAxis:c,yAxis:f,displayedData:h,dataStartIndex:m,xAxisTicks:g,yAxisTicks:y,bandSize:b}=e,S=a&&a.length,j=eue(o,l,n,c,f),A=o==="horizontal",O=!1,T=h.map((C,M)=>{var _,k,D;if(S)D=a[m+M];else{var B=Ht(C,r);Array.isArray(B)?(D=B,O=!0):D=[j,B]}var K=(_=(k=D)===null||k===void 0?void 0:k[1])!==null&&_!==void 0?_:null,$=K==null||S&&!t&&Ht(C,r)==null;return A?{x:MC({axis:c,ticks:g,bandSize:b,entry:C,index:M}),y:$?null:f.scale(K),value:D,payload:C}:{x:$?null:c.scale(K),y:MC({axis:f,ticks:y,bandSize:b,entry:C,index:M}),value:D,payload:C}}),N;return S||O?N=T.map(C=>{var M=Array.isArray(C.value)?C.value[0]:null;return A?{x:C.x,y:M!=null&&C.y!=null?f.scale(M):null,payload:C.payload}:{x:M!=null?c.scale(M):null,y:C.y,payload:C.payload}}):N=A?f.scale(j):c.scale(j),{points:T,baseLine:N,isRange:O}}function nue(e){var t=Sn(e,d6),n=Tn();return w.createElement(GL,{id:t.id,type:"area"},r=>w.createElement(w.Fragment,null,w.createElement(YL,{legendPayload:Vle(t)}),w.createElement(Hle,{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(QL,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:_R(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),w.createElement(Jle,bo({},t,{id:r}))))}var Gc=w.memo(nue,xg);Gc.displayName="Area";var rue="Invariant failed";function iue(e,t){throw new Error(rue)}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(null,arguments)}function dp(e){return w.createElement(mse,k1({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var aue=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||iue(),n)}},sue=(e,t,n)=>n,oue=(e,t)=>t,id=Q([mg,oue],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),lue=Q([id],e=>e==null?void 0:e.maxBarSize),uue=(e,t,n,r)=>r,cue=Q([We,mg,Si,ji,sue],(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")),fue=(e,t,n)=>{var r=We(e),a=Si(e,t),o=ji(e,t);if(!(a==null||o==null))return r==="horizontal"?rp(e,"yAxis",o,n):rp(e,"xAxis",a,n)},due=(e,t)=>{var n=We(e),r=Si(e,t),a=ji(e,t);if(!(r==null||a==null))return n==="horizontal"?TM(e,"xAxis",r):TM(e,"yAxis",a)},hue=Q([cue,jte,due],Jse),mue=(e,t,n)=>{var r,a,o=id(e,t);if(o!=null){var l=Si(e,t),c=ji(e,t);if(!(l==null||c==null)){var f=We(e),h=tz(e),{maxBarSize:m}=o,g=jt(m)?h:m,y,b;return f==="horizontal"?(y=ws(e,"xAxis",l,n),b=bs(e,"xAxis",l,n)):(y=ws(e,"yAxis",c,n),b=bs(e,"yAxis",c,n)),(r=(a=ru(y,b,!0))!==null&&a!==void 0?a:g)!==null&&r!==void 0?r:0}}},h6=(e,t,n)=>{var r=We(e),a=Si(e,t),o=ji(e,t);if(!(a==null||o==null)){var l,c;return r==="horizontal"?(l=ws(e,"xAxis",a,n),c=bs(e,"xAxis",a,n)):(l=ws(e,"yAxis",o,n),c=bs(e,"yAxis",o,n)),ru(l,c)}},pue=Q([hue,tz,Ste,nz,mue,h6,lue],ioe),gue=(e,t,n)=>{var r=Si(e,t);if(r!=null)return ws(e,"xAxis",r,n)},vue=(e,t,n)=>{var r=ji(e,t);if(r!=null)return ws(e,"yAxis",r,n)},yue=(e,t,n)=>{var r=Si(e,t);if(r!=null)return bs(e,"xAxis",r,n)},xue=(e,t,n)=>{var r=ji(e,t);if(r!=null)return bs(e,"yAxis",r,n)},bue=Q([pue,id],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),wue=Q([fue,id],aoe),Sue=Q([cn,tS,gue,vue,yue,xue,bue,We,U4,h6,wue,id,uue],(e,t,n,r,a,o,l,c,f,h,m,g,y)=>{var{chartData:b,dataStartIndex:S,dataEndIndex:j}=f;if(!(g==null||l==null||t==null||c!=="horizontal"&&c!=="vertical"||n==null||r==null||a==null||o==null||h==null)){var{data:A}=g,O;if(A!=null&&A.length>0?O=A:O=b==null?void 0:b.slice(S,j+1),O!=null)return Xue({layout:c,barSettings:g,pos:l,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:a,yAxisTicks:o,stackedData:m,displayedData:O,offset:e,cells:y,dataStartIndex:S})}}),jue=["index"];function M1(){return M1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M1.apply(null,arguments)}function Aue(e,t){if(e==null)return{};var n,r,a=Oue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Oue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var m6=w.createContext(void 0),Eue=e=>{var t=w.useContext(m6);if(t!=null)return t.stackId;if(e!=null)return _R(e)},Nue=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Tue=e=>{var t=w.useContext(m6);if(t!=null){var{stackId:n}=t;return"url(#".concat(Nue(n,e),")")}},Cue=e=>{var{index:t}=e,n=Aue(e,jue),r=Tue(t);return w.createElement(Ln,M1({className:"recharts-bar-stack-layer",clipPath:r},n))},kue=["onMouseEnter","onMouseLeave","onClick"],Mue=["value","background","tooltipPosition"],Pue=["id"],_ue=["onMouseEnter","onClick","onMouseLeave"];function 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 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 _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qP(Object(n),!0).forEach(function(r){Due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Due(e,t,n){return(t=Rue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rue(e){var t=zue(e,"string");return typeof t=="symbol"?t:t+""}function zue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hp(e,t){if(e==null)return{};var n,r,a=Lue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Lue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Iue=e=>{var{dataKey:t,name:n,fill:r,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:r,value:qp(n,t),payload:e}]},Bue=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(KL,{tooltipEntrySettings:m})});function Uue(e){var t=we(Co),{data:n,dataKey:r,background:a,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:c,onClick:f}=o,h=hp(o,kue),m=VL(l,r,o.id),g=HL(c),y=FL(f,r,o.id);if(!a||n==null)return null;var b=If(a);return w.createElement($r,{zIndex:soe(a,un.barBackground)},n.map((S,j)=>{var{value:A,background:O,tooltipPosition:T}=S,N=hp(S,Mue);if(!O)return null;var C=m(S,j),M=g(S,j),_=y(S,j),k=_n(_n(_n(_n(_n({option:a,isActive:String(j)===t},N),{},{fill:"#eee"},O),b),Mp(h,S,j)),{},{onMouseEnter:C,onMouseLeave:M,onClick:_,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return w.createElement(dp,ha({key:"background-bar-".concat(j)},k))}))}function $ue(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(zL,{value:t?a:void 0},n)}function que(e){var{shape:t,activeBar:n,baseProps:r,entry:a,index:o,dataKey:l}=e,c=we(Co),f=we(dL),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 Vue(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 Hue(e){var t,{data:n,props:r}=e,a=(t=Rr(r))!==null&&t!==void 0?t:{},{id:o}=a,l=hp(a,Pue),{shape:c,dataKey:f,activeBar:h}=r,{onMouseEnter:m,onClick:g,onMouseLeave:y}=r,b=hp(r,_ue),S=VL(m,f,o),j=HL(y),A=FL(g,f,o);return n?w.createElement(w.Fragment,null,n.map((O,T)=>w.createElement(Cue,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(Vue,{shape:c,baseProps:l,entry:O,index:T,dataKey:f})))):null}function Fue(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:a,isAnimationActive:o,animationBegin:l,animationDuration:c,animationEasing:f,onAnimationEnd:h,onAnimationStart:m}=t,g=n.current,y=Jp(t,"recharts-bar-"),[b,S]=w.useState(!1),j=!b,A=w.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),O=w.useCallback(()=>{typeof m=="function"&&m(),S(!0)},[m]);return w.createElement($ue,{showLabels:j,rects:r},w.createElement(Zp,{animationId:y,begin:l,duration:c,isActive:o,easing:f,onAnimationEnd:A,onAnimationStart:O,key:y},T=>{var N=T===1?r:r==null?void 0:r.map((C,M)=>{var _=g&&g[M];if(_)return _n(_n({},C),{},{x:wt(_.x,C.x,T),y:wt(_.y,C.y,T),width:wt(_.width,C.width,T),height:wt(_.height,C.height,T)});if(a==="horizontal"){var k=wt(0,C.height,T),D=wt(C.stackedBarStart,C.y,T);return _n(_n({},C),{},{y:D,height:k})}var B=wt(0,C.width,T),K=wt(C.stackedBarStart,C.x,T);return _n(_n({},C),{},{width:B,x:K})});return T>0&&(n.current=N??null),N==null?null:w.createElement(Ln,null,w.createElement(Hue,{props:t,data:N}))}),w.createElement(IL,{label:t.label}),t.children)}function Kue(e){var t=w.useRef(null);return w.createElement(Fue,{previousRectanglesRef:t,props:e})}var p6=0,Yue=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Ht(e,t)}};class Gue 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),g=h;return w.createElement(Ln,{className:m,id:h},c&&w.createElement("defs",null,w.createElement(i6,{clipPathId:g,xAxisId:o,yAxisId:l})),w.createElement(Ln,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(g,")"):void 0},w.createElement(Uue,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),w.createElement(Kue,this.props)))}}var Wue={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:p6,xAxisId:0,yAxisId:0,zIndex:un.bar};function Que(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m}=e,{needClip:g}=uj(t,n),y=Po(),b=Tn(),S=Wae(e.children,AL),j=we(T=>Sue(T,e.id,b,S));if(y!=="vertical"&&y!=="horizontal")return null;var A,O=j==null?void 0:j[0];return O==null||O.height==null||O.width==null?A=0:A=y==="vertical"?O.height/2:O.width/2,w.createElement(fle,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:Yue,errorBarOffset:A},w.createElement(Gue,ha({},e,{layout:y,needClip:g,data:j,xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:l,animationBegin:c,animationDuration:f,animationEasing:h,isAnimationActive:m})))}function Xue(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:a,bandSize:o,xAxis:l,yAxis:c,xAxisTicks:f,yAxisTicks:h,stackedData:m,displayedData:g,offset:y,cells:b,parentViewBox:S,dataStartIndex:j}=e,A=t==="horizontal"?c:l,O=m?A.scale.domain():null,T=JW({numericAxis:A}),N=A.scale(T);return g.map((C,M)=>{var _,k,D,B,K,$;if(m){var Z=m[M+j];if(Z==null)return null;_=GW(Z,O)}else _=Ht(C,n),Array.isArray(_)||(_=[T,_]);var le=aue(r,p6)(_[1],M);if(t==="horizontal"){var de,[me,q]=[c.scale(_[0]),c.scale(_[1])];k=PC({axis:l,ticks:f,bandSize:o,offset:a.offset,entry:C,index:M}),D=(de=q??me)!==null&&de!==void 0?de:void 0,B=a.size;var W=me-q;if(K=zr(W)?0:W,$={x:k,y:y.top,width:B,height:y.height},Math.abs(le)>0&&Math.abs(K)<Math.abs(le)){var Y=Qn(K||le)*(Math.abs(le)-Math.abs(K));D-=Y,K+=Y}}else{var[oe,ne]=[l.scale(_[0]),l.scale(_[1])];if(k=oe,D=PC({axis:c,ticks:h,bandSize:o,offset:a.offset,entry:C,index:M}),B=ne-oe,K=a.size,$={x:y.left,y:D,width:y.width,height:K},Math.abs(le)>0&&Math.abs(B)<Math.abs(le)){var R=Qn(B||le)*(Math.abs(le)-Math.abs(B));B+=R}}if(k==null||D==null||B==null||K==null)return null;var H=_n(_n({},C),{},{stackedBarStart:N,x:k,y:D,width:B,height:K,value:m?_:_[1],payload:C,background:$,tooltipPosition:{x:k+B/2,y:D+K/2},parentViewBox:S},b&&b[M]&&b[M].props);return H}).filter(Boolean)}function Zue(e){var t=Sn(e,Wue),n=Eue(t.stackId),r=Tn();return w.createElement(GL,{id:t.id,type:"bar"},a=>w.createElement(w.Fragment,null,w.createElement(YL,{legendPayload:Iue(t)}),w.createElement(Bue,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:a}),w.createElement(QL,{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(Que,ha({},t,{id:a})))))}var cm=w.memo(Zue,xg);cm.displayName="Bar";var Jue=["domain","range"],ece=["domain","range"];function VP(e,t){if(e==null)return{};var n,r,a=tce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function tce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function HP(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 g6(e,t){if(e===t)return!0;var{domain:n,range:r}=e,a=VP(e,Jue),{domain:o,range:l}=t,c=VP(t,ece);return!HP(n,o)||!HP(r,l)?!1:xg(a,c)}var nce=["dangerouslySetInnerHTML","ticks","scale"],rce=["id","scale"];function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P1.apply(null,arguments)}function FP(e,t){if(e==null)return{};var n,r,a=ice(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 ice(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 ace(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t(Ise(e)):n.current!==e&&t(Bse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Use(n.current)),n.current=null)},[t]),null}var sce=e=>{var{xAxisId:t,className:n}=e,r=we(tS),a=Tn(),o="xAxis",l=we(O=>Kz(O,o,t,a)),c=we(O=>qz(O,t)),f=we(O=>wne(O,t)),h=we(O=>fz(O,t));if(c==null||f==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:g,scale:y}=e,b=FP(e,nce),{id:S,scale:j}=h,A=FP(h,rce);return w.createElement(lj,P1({},b,A,{x:f.x,y:f.y,width:c.width,height:c.height,className:Ze("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:l,axisType:o}))},oce={allowDataOverflow:rn.allowDataOverflow,allowDecimals:rn.allowDecimals,allowDuplicatedCategory:rn.allowDuplicatedCategory,angle:rn.angle,axisLine:na.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:na.tickLine,tickSize:na.tickSize,type:rn.type,xAxisId:0},lce=e=>{var t=Sn(e,oce);return w.createElement(w.Fragment,null,w.createElement(ace,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),w.createElement(sce,t))},Wc=w.memo(lce,g6);Wc.displayName="XAxis";var uce=["dangerouslySetInnerHTML","ticks","scale"],cce=["id","scale"];function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_1.apply(null,arguments)}function KP(e,t){if(e==null)return{};var n,r,a=fce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dce(e){var t=At(),n=w.useRef(null);return w.useLayoutEffect(()=>{n.current===null?t($se(e)):n.current!==e&&t(qse({prev:n.current,next:e})),n.current=e},[e,t]),w.useLayoutEffect(()=>()=>{n.current&&(t(Vse(n.current)),n.current=null)},[t]),null}var hce=e=>{var{yAxisId:t,className:n,width:r,label:a}=e,o=w.useRef(null),l=w.useRef(null),c=we(tS),f=Tn(),h=At(),m="yAxis",g=we(_=>Vz(_,t)),y=we(_=>jne(_,t)),b=we(_=>Kz(_,m,t,f)),S=we(_=>dz(_,t));if(w.useLayoutEffect(()=>{if(!(r!=="auto"||!g||ij(a)||w.isValidElement(a)||S==null)){var _=o.current;if(_){var k=_.getCalculatedWidth();Math.round(g.width)!==Math.round(k)&&h(Hse({id:t,width:k}))}}},[b,g,h,a,t,r,S]),g==null||y==null||S==null)return null;var{dangerouslySetInnerHTML:j,ticks:A,scale:O}=e,T=KP(e,uce),{id:N,scale:C}=S,M=KP(S,cce);return w.createElement(lj,_1({},T,M,{ref:o,labelRef:l,x:y.x,y:y.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:g.width,height:g.height,className:Ze("recharts-".concat(m," ").concat(m),n),viewBox:c,ticks:b,axisType:m}))},mce={allowDataOverflow:an.allowDataOverflow,allowDecimals:an.allowDecimals,allowDuplicatedCategory:an.allowDuplicatedCategory,angle:an.angle,axisLine:na.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:na.tickLine,tickSize:na.tickSize,type:an.type,width:an.width,yAxisId:0},pce=e=>{var t=Sn(e,mce);return w.createElement(w.Fragment,null,w.createElement(dce,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),w.createElement(hce,t))},Qc=w.memo(pce,g6);Qc.displayName="YAxis";var gce=(e,t)=>t,cj=Q([gce,We,uz,Jt,lL,Aa,Lre,cn],Hre),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)}},v6=Lr("mouseClick"),y6=qf();y6.startListening({actionCreator:v6,effect:(e,t)=>{var n=e.payload,r=cj(t.getState(),fj(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Lne({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var D1=Lr("mouseMove"),x6=qf(),Gh=null;x6.startListening({actionCreator:D1,effect:(e,t)=>{var n=e.payload;Gh!==null&&cancelAnimationFrame(Gh);var r=fj(n);Gh=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(eL({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate})):t.dispatch(Jz())}Gh=null})}});function vce(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var YP={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},b6=Jn({name:"rootProps",initialState:YP,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:YP.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),yce=b6.reducer,{updateOptions:xce}=b6.actions,w6=Jn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:lhe}=w6.actions,bce=w6.reducer,S6=Lr("keyDown"),j6=Lr("focus"),dj=qf();dj.startListening({actionCreator:S6,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,Eu(n),Zf(n),nd(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(A1({active:!a.active,activeIndex:a.index,activeCoordinate:h}));return}var m=Nne(n),g=m==="left-to-right"?1:-1,y=o==="ArrowRight"?1:-1,b=c+y*g;if(!(f==null||b>=f.length||b<0)){var S=ap(n,"axis","hover",String(b));t.dispatch(A1({active:!0,activeIndex:b.toString(),activeCoordinate:S}))}}}}}});dj.startListening({actionCreator:j6,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(A1({active:!0,activeIndex:o,activeCoordinate:l}))}}}});var Nr=Lr("externalEvent"),A6=qf(),Hx=new Map;A6.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:Sre(c),activeDataKey:dL(c),activeIndex:Co(c),activeLabel:fL(c),activeTooltipIndex:Co(c),isTooltipActive:jre(c)};n(f,r)}finally{Hx.delete(a)}});Hx.set(a,l)}}});var wce=Q([Au],e=>e.tooltipItemPayloads),Sce=Q([wce,td,(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}}}),O6=Lr("touchMove"),E6=qf();E6.startListening({actionCreator:O6,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(eL({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(sQ),g=(c=h.getAttribute(oQ))!==null&&c!==void 0?c:void 0,y=Ou(r).find(j=>j.id===g);if(m==null||y==null||g==null)return;var{dataKey:b}=y,S=Sce(r,m,g);t.dispatch(Zz({activeDataKey:b,activeIndex:m,activeCoordinate:S,activeGraphicalItemId:g}))}}}});var jce=nR({brush:loe,cartesianAxis:Fse,chartData:wie,errorBars:ale,graphicalItems:jse,layout:qW,legend:tX,options:gie,polarAxis:Fae,polarOptions:bce,referenceElements:poe,rootProps:yce,tooltip:Ine,zIndex:iie}),Ace=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return hW({reducer:jce,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([y6.middleware,x6.middleware,dj.middleware,A6.middleware,E6.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(vR({type:"raf"}))},devTools:{serialize:{replacer:vce},name:"recharts-".concat(n)}})};function Oce(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,a=Tn(),o=w.useRef(null);if(a)return n;o.current==null&&(o.current=Ace(t,r));var l=Gw;return w.createElement(Tle,{context:l,store:o.current},n)}function Ece(e){var{layout:t,margin:n}=e,r=At(),a=Tn();return w.useEffect(()=>{a||(r(BW(t)),r(IW(n)))},[r,a,t,n]),null}var Nce=w.memo(Ece,xg);function Tce(e){var t=At();return w.useEffect(()=>{t(xce(e))},[t,e]),null}function GP(e){var{zIndex:t,isPanorama:n}=e,r=w.useRef(null),a=At();return w.useLayoutEffect(()=>(r.current&&a(nie({zIndex:t,element:r.current,isPanorama:n})),()=>{a(rie({zIndex:t,isPanorama:n}))}),[a,t,n]),w.createElement("g",{tabIndex:-1,ref:r})}function WP(e){var{children:t,isPanorama:n}=e,r=we(Kre);if(!r||r.length===0)return t;var a=r.filter(l=>l<0),o=r.filter(l=>l>0);return w.createElement(w.Fragment,null,a.map(l=>w.createElement(GP,{key:l,zIndex:l,isPanorama:n})),t,o.map(l=>w.createElement(GP,{key:l,zIndex:l,isPanorama:n})))}var Cce=["children"];function kce(e,t){if(e==null)return{};var n,r,a=Mce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Mce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(null,arguments)}var Pce={width:"100%",height:"100%",display:"block"},_ce=w.forwardRef((e,t)=>{var n=rS(),r=iS(),a=GR();if(!xi(n)||!xi(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:Pce,ref:t}),o)}),Dce=e=>{var{children:t}=e,n=we(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)},QP=w.forwardRef((e,t)=>{var{children:n}=e,r=kce(e,Cce),a=Tn();return a?w.createElement(Dce,null,w.createElement(WP,{isPanorama:!0},n)):w.createElement(_ce,mp({ref:t},r),w.createElement(WP,{isPanorama:!1},n))});function Rce(){var e=At(),[t,n]=w.useState(null),r=we(aQ);return w.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),o=a.width/t.offsetWidth;ft(o)&&o!==r&&e($W(o))}},[t,e,r]),n}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XP(Object(n),!0).forEach(function(r){Lce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lce(e,t,n){return(t=Ice(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ice(e){var t=Bce(e,"string");return typeof t=="symbol"?t:t+""}function Bce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}var Uce=()=>(kie(),null);function pp(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var $ce=w.forwardRef((e,t)=>{var n,r,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(g=>{var y=Math.round(h),b=Math.round(m);return g.containerWidth===y&&g.containerHeight===b?g:{containerWidth:y,containerHeight:b}})},[]),f=w.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:m,height:g}=h.getBoundingClientRect();c(m,g);var y=S=>{var{width:j,height:A}=S[0].contentRect;c(j,A)},b=new ResizeObserver(y);b.observe(h),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 g=Math.round(f),y=Math.round(h);return m.containerWidth===g&&m.containerHeight===y?m:{containerWidth:g,containerHeight:y}})},[]),c=w.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:h,height:m}=f.getBoundingClientRect();l(h,m)}},[t,l]);return w.createElement(w.Fragment,null,w.createElement(Gp,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",Mo({ref:c},e)))}),Vce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement("div",Mo({ref:t},e)))}),Hce=w.forwardRef((e,t)=>{var{width:n,height:r}=e;return oa(n)||oa(r)?w.createElement(qce,Mo({},e,{ref:t})):w.createElement(Vce,Mo({},e,{ref:t}))});function Fce(e){return e===!0?$ce:Hce}var Kce=w.forwardRef((e,t)=>{var{children:n,className:r,height:a,onClick:o,onContextMenu:l,onDoubleClick:c,onMouseDown:f,onMouseEnter:h,onMouseLeave:m,onMouseMove:g,onMouseUp:y,onTouchEnd:b,onTouchMove:S,onTouchStart:j,style:A,width:O,responsive:T,dispatchTouchEvents:N=!0}=e,C=w.useRef(null),M=At(),[_,k]=w.useState(null),[D,B]=w.useState(null),K=Rce(),$=nS(),Z=($==null?void 0:$.width)>0?$.width:O,le=($==null?void 0:$.height)>0?$.height:a,de=w.useCallback(J=>{K(J),typeof t=="function"&&t(J),k(J),B(J),J!=null&&(C.current=J)},[K,t,k,B]),me=w.useCallback(J=>{M(v6(J)),M(Nr({handler:o,reactEvent:J}))},[M,o]),q=w.useCallback(J=>{M(D1(J)),M(Nr({handler:h,reactEvent:J}))},[M,h]),W=w.useCallback(J=>{M(Jz()),M(Nr({handler:m,reactEvent:J}))},[M,m]),Y=w.useCallback(J=>{M(D1(J)),M(Nr({handler:g,reactEvent:J}))},[M,g]),oe=w.useCallback(()=>{M(j6())},[M]),ne=w.useCallback(J=>{M(S6(J.key))},[M]),R=w.useCallback(J=>{M(Nr({handler:l,reactEvent:J}))},[M,l]),H=w.useCallback(J=>{M(Nr({handler:c,reactEvent:J}))},[M,c]),ie=w.useCallback(J=>{M(Nr({handler:f,reactEvent:J}))},[M,f]),se=w.useCallback(J=>{M(Nr({handler:y,reactEvent:J}))},[M,y]),ve=w.useCallback(J=>{M(Nr({handler:j,reactEvent:J}))},[M,j]),Oe=w.useCallback(J=>{N&&M(O6(J)),M(Nr({handler:S,reactEvent:J}))},[M,N,S]),fe=w.useCallback(J=>{M(Nr({handler:b,reactEvent:J}))},[M,b]),Qe=Fce(T);return w.createElement(bL.Provider,{value:_},w.createElement(y3.Provider,{value:D},w.createElement(Qe,{width:Z??(A==null?void 0:A.width),height:le??(A==null?void 0:A.height),className:Ze("recharts-wrapper",r),style:zce({position:"relative",cursor:"default",width:Z,height:le},A),onClick:me,onContextMenu:R,onDoubleClick:H,onFocus:oe,onKeyDown:ne,onMouseDown:ie,onMouseEnter:q,onMouseLeave:W,onMouseMove:Y,onMouseUp:se,onTouchEnd:fe,onTouchMove:Oe,onTouchStart:ve,ref:de},w.createElement(Uce,null),n)))}),Yce=["width","height","responsive","children","className","style","compact","title","desc"];function Gce(e,t){if(e==null)return{};var n,r,a=Wce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Wce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qce=w.forwardRef((e,t)=>{var{width:n,height:r,responsive:a,children:o,className:l,style:c,compact:f,title:h,desc:m}=e,g=Gce(e,Yce),y=Rr(g);return f?w.createElement(w.Fragment,null,w.createElement(Gp,{width:n,height:r}),w.createElement(QP,{otherAttributes:y,title:h,desc:m},o)):w.createElement(Kce,{className:l,style:c,width:n,height:r,responsive: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(QP,{otherAttributes:y,title:h,desc:m,ref:t},w.createElement(voe,null,o)))});function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R1.apply(null,arguments)}var Xce={top:5,right:5,bottom:5,left:5},Zce={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Xce,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},N6=w.forwardRef(function(t,n){var r,a=Sn(t.categoricalChartProps,Zce),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,categoricalChartProps:h}=t,m={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return w.createElement(Oce,{preloadedState:{options:m},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},w.createElement(ooe,{chartData:h.data}),w.createElement(Nce,{layout:a.layout,margin:a.margin}),w.createElement(Tce,{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(Qce,R1({},a,{ref:n})))}),Jce=["axis","item"],efe=w.forwardRef((e,t)=>w.createElement(N6,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Jce,tooltipPayloadSearcher:wL,categoricalChartProps:e,ref:t})),tfe=["axis"],z1=w.forwardRef((e,t)=>w.createElement(N6,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tfe,tooltipPayloadSearcher:wL,categoricalChartProps:e,ref:t}));function nfe(){var _;const[e,t]=Me.useState("15m"),{data:n}=Nn({queryKey:["throughput"],queryFn:async()=>(await(await fetch("/api/throughput")).json()).data||[],staleTime:1/0}),{data:r}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(k=>k.json()),refetchInterval:3e4}),{isPending:a,data:o}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(k=>k.json()),staleTime:1/0}),{data:l}=Nn({queryKey:["workers"],queryFn:()=>fetch("/api/workers").then(k=>k.json()),staleTime:1/0}),c=ma();Me.useEffect(()=>{const k=D=>{const B=D.detail;B&&(B.queues&&c.setQueryData(["queues"],{queues:B.queues}),B.workers&&c.setQueryData(["workers"],{workers:B.workers}),B.throughput&&c.setQueryData(["throughput"],B.throughput))};return window.addEventListener("flux-stats-update",k),()=>window.removeEventListener("flux-stats-update",k)},[c]);const f=(r==null?void 0:r.history)||{},h=(o==null?void 0:o.queues)||[],m=(l==null?void 0:l.workers)||[],g=(n==null?void 0:n.map(k=>({time:k.timestamp,value:k.count})))||[],y=h.reduce((k,D)=>k+D.waiting,0),b=h.reduce((k,D)=>k+D.delayed,0),S=h.reduce((k,D)=>k+D.failed,0),j=h.reduce((k,D)=>k+D.active,0),A=((_=g[g.length-1])==null?void 0:_.value)||0,O=g.length>0?Math.round(g.reduce((k,D)=>k+D.value,0)/g.length):0,T=g.length>0?Math.max(...g.map(k=>k.value)):0,N=h.slice(0,10).map(k=>({name:k.name.length>12?`${k.name.slice(0,12)}...`:k.name,waiting:k.waiting,delayed:k.delayed,failed:k.failed})),M=Array.from({length:15},(k,D)=>`${14-D}m ago`).map((k,D)=>{var B,K,$,Z;return{time:k,waiting:((B=f.waiting)==null?void 0:B[D])||0,delayed:((K=f.delayed)==null?void 0:K[D])||0,failed:(($=f.failed)==null?void 0:$[D])||0,workers:((Z=f.workers)==null?void 0:Z[D])||0}});return a?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ji,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading metrics..."})]}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Metrics"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Real-time performance analytics and trends."})]}),p.jsx("div",{className:"flex items-center gap-2",children:["15m","1h","6h","24h"].map(k=>p.jsx("button",{type:"button",onClick:()=>t(k),className:ke("px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all",e===k?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"hover:bg-muted text-muted-foreground"),children:k},k))})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-4",children:[p.jsx(El,{icon:L_,label:"Waiting",value:y,color:"amber"}),p.jsx(El,{icon:Jr,label:"Delayed",value:b,color:"blue"}),p.jsx(El,{icon:Zn,label:"Active",value:j,color:"green"}),p.jsx(El,{icon:z_,label:"Failed",value:S,color:"red"}),p.jsx(El,{icon:R_,label:"Workers",value:m.length,color:"indigo"}),p.jsx(El,{icon:DE,label:"Jobs/min",value:A,color:"primary"})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex justify-between items-start mb-6",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(iU,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-xl font-bold tracking-tight",children:"Throughput Over Time"})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),p.jsx("div",{className:"text-right",children:p.jsxs("div",{className:"flex gap-6",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Current"}),p.jsx("p",{className:"text-2xl font-black text-primary",children:A})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Average"}),p.jsx("p",{className:"text-2xl font-black",children:O})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase",children:"Peak"}),p.jsx("p",{className:"text-2xl font-black text-green-500",children:T})]})]})})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:g,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorThroughput",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.4}),p.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),p.jsx(Yc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Wc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(Qc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(Gc,{type:"monotone",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorThroughput)",strokeWidth:2})]})})})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[p.jsx(__,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"Queue Distribution"})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(efe,{data:N,margin:{top:10,right:10,left:-20,bottom:40},children:[p.jsx(Yc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Wc,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},angle:-45,textAnchor:"end"}),p.jsx(Qc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(YR,{}),p.jsx(cm,{dataKey:"waiting",fill:"hsl(45, 93%, 47%)",name:"Waiting",radius:[4,4,0,0]}),p.jsx(cm,{dataKey:"delayed",fill:"hsl(217, 91%, 60%)",name:"Delayed",radius:[4,4,0,0]}),p.jsx(cm,{dataKey:"failed",fill:"hsl(0, 84%, 60%)",name:"Failed",radius:[4,4,0,0]})]})})})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[p.jsx(DE,{size:20,className:"text-primary"}),p.jsx("h3",{className:"text-lg font-bold tracking-tight",children:"15-Minute Trends"})]}),p.jsx("div",{className:"h-[300px]",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:M,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsxs("defs",{children:[p.jsxs("linearGradient",{id:"colorWaiting",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:.3}),p.jsx("stop",{offset:"95%",stopColor:"hsl(45, 93%, 47%)",stopOpacity:0})]}),p.jsxs("linearGradient",{id:"colorFailed",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:.3}),p.jsx("stop",{offset:"95%",stopColor:"hsl(0, 84%, 60%)",stopOpacity:0})]})]}),p.jsx(Yc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Wc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(Qc,{axisLine:!1,tickLine:!1,tick:{fontSize:10,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:"12px"}}),p.jsx(Gc,{type:"monotone",dataKey:"waiting",stroke:"hsl(45, 93%, 47%)",fill:"url(#colorWaiting)",strokeWidth:2}),p.jsx(Gc,{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 p.jsxs("div",{className:"card-premium p-4 flex items-center gap-3",children:[p.jsx("div",{className:ke("w-10 h-10 rounded-xl flex items-center justify-center",a[r]),children:p.jsx(e,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[9px] font-black text-muted-foreground/50 uppercase tracking-widest",children:t}),p.jsx("p",{className:"text-xl font-black",children:n.toLocaleString()})]})]})}function L1({open:e,title:t,message:n,confirmText:r="Confirm",cancelText:a="Cancel",onConfirm:o,onCancel:l,variant:c="danger",isProcessing:f=!1}){return _f.createPortal(p.jsx(ga,{children:e&&p.jsx("div",{role:"presentation",className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-[5000] pointer-events-auto",onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),children:p.jsxs(lt.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border rounded-2xl p-6 max-w-md shadow-2xl",onClick:h=>h.stopPropagation(),children:[p.jsx("h3",{className:"text-xl font-black mb-2",children:t}),p.jsx("p",{className:"text-sm text-muted-foreground mb-6 whitespace-pre-line",children:n}),p.jsxs("div",{className:"flex gap-3 justify-end",children:[p.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),l()},disabled:f,className:"px-4 py-2 bg-muted text-foreground rounded-lg hover:bg-muted/80 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:a}),p.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&&p.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-label":"Loading",children:[p.jsx("title",{children:"Loading"}),p.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),p.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),f?"Processing...":r]})]})]})})}),document.body)}function T6({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,g]=Me.useState(!1),[y,b]=Me.useState(null),S=ma(),{isPending:j,error:A,data:O}=Nn({queryKey:["jobs",e,n,a],queryFn:()=>{const k=n==="archive"?`/api/queues/${e}/archive?page=${a}&limit=50`:`/api/queues/${e}/jobs?type=${n}`;return fetch(k).then(D=>D.json())}});Me.useEffect(()=>{n!=="archive"?fetch(`/api/queues/${e}/jobs/count?type=${n}`).then(k=>k.json()).then(k=>h(k.count)).catch(()=>h(0)):h((O==null?void 0:O.total)||0)},[e,n,O==null?void 0:O.total]),Me.useEffect(()=>{c(new Set),o(1)},[n]);const T=k=>{const D=new Set(l);D.has(k)?D.delete(k):D.add(k),c(D)},N=Me.useCallback(()=>{if(!(O!=null&&O.jobs))return;const k=O.jobs.filter(D=>D._raw&&!D._archived).length;if(l.size===k&&k>0)c(new Set);else{const D=new Set;O.jobs.forEach((B,K)=>{B._raw&&!B._archived&&D.add(K)}),c(D)}},[O==null?void 0:O.jobs,l]);Me.useEffect(()=>{const k=D=>{(D.ctrlKey||D.metaKey)&&D.key==="a"&&(D.preventDefault(),N()),D.key==="Escape"&&(y!=null&&y.open?b(null):l.size>0?c(new Set):t())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[l,y,N,t]),Me.useEffect(()=>{const k=document.body.style.overflow,D=document.body.style.paddingRight,B=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${B}px`,()=>{document.body.style.overflow=k,document.body.style.paddingRight=D}},[]);const C=async(k,D)=>{if(!D._raw)return;const B=k==="delete"?"delete":"retry",K={raw:D._raw};k==="delete"&&(K.type=n),await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)}),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]})},M=async k=>{if(l.size===0||!(O!=null&&O.jobs))return;const D=l.size;b({open:!0,title:`${k==="delete"?"Delete":"Retry"} ${D} Jobs?`,message:`Are you sure you want to ${k} ${D} selected ${n} jobs in "${e}"?
|
|
431
|
+
|
|
432
|
+
This action cannot be undone.`,variant:k==="delete"?"danger":"warning",action:async()=>{g(!0);try{const B=k==="delete"?"bulk-delete":"bulk-retry",K=Array.from(l).map($=>{var Z;return(Z=O==null?void 0:O.jobs[$])==null?void 0:Z._raw}).filter(Boolean);await fetch(`/api/queues/${e}/jobs/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n,raws:K})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(B){console.error(`Failed to ${k} jobs:`,B)}finally{g(!1)}}})},_=async k=>{n!=="archive"&&b({open:!0,title:`${k==="delete"?"Delete":"Retry"} ALL ${f} Jobs?`,message:`⚠️ WARNING: This will ${k} ALL ${f} ${n} jobs in "${e}".
|
|
433
|
+
|
|
434
|
+
This is a destructive operation that cannot be undone.`,variant:"danger",action:async()=>{g(!0);try{await fetch(`/api/queues/${e}/jobs/${k==="delete"?"bulk-delete-all":"bulk-retry-all"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n})}),c(new Set),S.invalidateQueries({queryKey:["jobs",e]}),S.invalidateQueries({queryKey:["queues"]}),b(null)}catch(D){console.error(`Failed to ${k} all jobs:`,D)}finally{g(!1)}}})};return _f.createPortal(p.jsxs("div",{className:"fixed inset-0 z-[1001] flex items-center justify-end p-4 sm:p-6 outline-none pointer-events-none",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md cursor-default pointer-events-auto",onClick:t}),p.jsxs(lt.div,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0},transition:{type:"spring",damping:25,stiffness:200},className:"bg-card border border-border/50 h-[85vh] w-full max-w-2xl shadow-2xl flex flex-col overflow-hidden rounded-2xl relative z-[1002] pointer-events-auto",onClick:k=>k.stopPropagation(),children:[p.jsxs("div",{className:"p-6 border-b flex justify-between items-center bg-muted/20 flex-shrink-0",children:[p.jsxs("div",{children:[p.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[p.jsx(fu,{className:"text-primary",size:20}),"Queue Insight: ",p.jsx("span",{className:"text-primary",children:e})]}),p.jsx("div",{className:"flex items-center gap-4 mt-2",children:["waiting","delayed","failed","archive"].map(k=>p.jsx("button",{type:"button",onClick:()=>r(k),className:ke("text-[9px] font-black px-3 py-1 rounded-sm transition-all border shrink-0 uppercase tracking-widest",n===k?k==="failed"?"bg-red-500 text-white border-red-500 shadow-lg shadow-red-500/20":k==="delayed"?"bg-amber-500 text-white border-amber-500 shadow-lg shadow-amber-500/20":k==="archive"?"bg-indigo-500 text-white border-indigo-500 shadow-lg shadow-indigo-500/20":"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-muted text-muted-foreground border-transparent hover:bg-muted/80"),children:k},k))})]}),p.jsx("button",{type:"button",onClick:t,className:"w-10 h-10 rounded-full hover:bg-muted flex items-center justify-center transition-colors",children:"✕"})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto bg-muted/5 min-h-0",children:[j&&p.jsx("div",{className:"p-12 text-center text-muted-foreground font-medium animate-pulse",children:"Loading jobs..."}),A&&p.jsx("div",{className:"p-12 text-center text-red-500 font-bold",children:"Error loading jobs"}),(O==null?void 0:O.jobs)&&O.jobs.length>0&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"px-6 py-3 border-b bg-muted/5 flex items-center gap-3",children:[p.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.size===O.jobs.filter(k=>k._raw&&!k._archived).length&&l.size>0,onChange:N}),p.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground",children:"Select All (Page)"}),n!=="archive"&&f>0&&p.jsxs("span",{className:"text-[9px] text-muted-foreground/60 ml-2",children:[O.jobs.filter(k=>!k._archived).length," of ",f," total"]}),l.size>0&&p.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[p.jsxs("span",{className:"text-[10px] font-black uppercase text-primary mr-2",children:[l.size," items selected"]}),p.jsx("button",{type:"button",onClick:()=>M("delete"),className:"px-3 py-1 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:"Delete Selected"}),(n==="delayed"||n==="failed")&&p.jsx("button",{type:"button",onClick:()=>M("retry"),className:"px-3 py-1 bg-primary/10 text-primary rounded-md text-[10px] font-black uppercase hover:bg-primary hover:text-primary-foreground transition-all",children:"Retry Selected"})]})]}),n!=="archive"&&f>O.jobs.filter(k=>!k._archived).length&&p.jsxs("div",{className:"px-6 py-3 border-b bg-amber-500/5 flex items-center justify-between",children:[p.jsxs("span",{className:"text-xs font-bold text-amber-600 flex items-center gap-2",children:[p.jsx(Zr,{size:14}),"Showing ",O.jobs.filter(k=>!k._archived).length," of ",f," total"," ",n," jobs"]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("button",{type:"button",onClick:()=>_("delete"),className:"px-3 py-1.5 bg-red-500/10 text-red-500 rounded-md text-[10px] font-black uppercase hover:bg-red-500 hover:text-white transition-all",children:["Delete All ",f]}),(n==="delayed"||n==="failed")&&p.jsxs("button",{type:"button",onClick:()=>_("retry"),className:"px-3 py-1.5 bg-amber-500/10 text-amber-600 rounded-md text-[10px] font-black uppercase hover:bg-amber-500 hover:text-white transition-all",children:["Retry All ",f]})]})]})]}),(O==null?void 0:O.jobs)&&O.jobs.length===0&&p.jsxs("div",{className:"p-12 text-center text-muted-foreground flex flex-col items-center gap-4",children:[p.jsx("div",{className:"w-16 h-16 bg-muted/50 rounded-full flex items-center justify-center text-muted-foreground/30",children:p.jsx(H1,{size:32})}),p.jsx("p",{className:"text-lg font-bold",children:"Clear Sky!"}),p.jsx("p",{className:"text-sm opacity-60",children:"No jobs found in this queue."})]}),(O==null?void 0:O.jobs)&&p.jsxs("div",{className:"p-6 space-y-4",children:[O.jobs.map((k,D)=>p.jsxs("div",{className:ke("bg-card border rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all group border-border/50",l.has(D)&&"ring-2 ring-primary border-primary"),children:[p.jsxs("div",{className:"p-4 border-b bg-muted/10 flex justify-between items-center text-[10px]",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[k._raw&&!k._archived&&p.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border",checked:l.has(D),onChange:()=>T(D)}),p.jsxs("span",{className:"font-mono bg-primary/10 text-primary px-2 py-1 rounded-md font-bold uppercase tracking-wider flex items-center gap-2",children:["ID: ",k.id||"N/A",k._archived&&p.jsxs("span",{className:ke("px-1.5 py-0.5 rounded text-[8px] border",k._status==="completed"?"bg-green-500/20 text-green-500 border-green-500/20":"bg-red-500/20 text-red-500 border-red-500/20"),children:["Archive: ",k._status]})]})]}),p.jsxs("span",{className:"text-muted-foreground font-semibold flex items-center gap-3",children:[n==="delayed"&&k.scheduledAt&&p.jsxs("span",{className:"text-amber-500 flex items-center gap-1 font-bold",children:[p.jsx(Jr,{size:12})," ",new Date(k.scheduledAt).toLocaleString()]}),n==="failed"&&k.failedAt&&p.jsxs("span",{className:"text-red-500 flex items-center gap-1 font-bold",children:[p.jsx(Zr,{size:12})," ",new Date(k.failedAt).toLocaleString()]}),k._archivedAt&&p.jsxs("span",{className:"text-indigo-400 flex items-center gap-1 font-bold",children:[p.jsx(Cf,{size:12})," ",new Date(k._archivedAt).toLocaleString()]}),k.timestamp&&!k._archivedAt&&new Date(k.timestamp).toLocaleString()]})]}),p.jsxs("button",{type:"button",onClick:()=>k._raw&&!k._archived&&T(D),className:"w-full text-left cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary focus:ring-inset",children:[k.error&&p.jsxs("div",{className:"p-4 bg-red-500/10 text-red-500 text-xs font-semibold border-b border-red-500/10 flex items-start gap-2",children:[p.jsx(Zr,{size:14,className:"mt-0.5 shrink-0"}),p.jsx("p",{children:k.error})]}),p.jsx("pre",{className:"text-[11px] font-mono p-4 overflow-x-auto text-foreground/80 leading-relaxed bg-muted/5",children:JSON.stringify(k,null,2)})]}),p.jsxs("div",{className:"p-3 bg-muted/5 border-t border-border/50 flex justify-end gap-2",children:[!k._archived&&p.jsx("button",{type:"button",onClick:()=>C("delete",k),className:"text-[10px] font-bold uppercase tracking-widest px-4 py-2 rounded-lg hover:bg-red-500/10 text-red-500 transition-colors",children:"Terminate"}),!k._archived&&(n==="delayed"||n==="failed")&&p.jsx("button",{type:"button",onClick:()=>C("retry",k),className: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"})]})]},D)),n==="archive"&&(O==null?void 0:O.total)&&O.total>50&&p.jsxs("div",{className:"flex items-center justify-between py-6 border-t border-border/30",children:[p.jsxs("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:["Total ",O.total," archived jobs"]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",onClick:()=>o(k=>Math.max(1,k-1)),disabled:a===1,className:"p-2 rounded-lg bg-muted text-muted-foreground disabled:opacity-30 hover:bg-primary hover:text-white transition-all",children:"←"}),p.jsx("span",{className:"text-xs font-bold px-4",children:a}),p.jsx("button",{type:"button",onClick:()=>o(k=>k+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:"→"})]})]})]})]}),p.jsx("div",{className:"p-4 border-t bg-card text-right flex-shrink-0",children:p.jsx("button",{type:"button",onClick:t,className:"px-8 py-3 bg-muted text-foreground rounded-xl hover:bg-muted/80 text-sm font-bold transition-all active:scale-95 uppercase tracking-widest",children:"Dismiss"})})]}),y&&p.jsx(L1,{open:y.open,title:y.title,message:y.message,variant:y.variant,isProcessing:m,onConfirm:y.action,onCancel:()=>b(null)})]}),document.body)}function rfe({isOpen:e,onClose:t}){const[n,r]=Me.useState(1),[a,o]=Me.useState(""),[l,c]=Me.useState("all"),[f,h]=Me.useState([]),[m,g]=Me.useState(0),[y,b]=Me.useState(!1),[S,j]=Me.useState({}),A=Me.useCallback(async()=>{b(!0);try{const N=new URLSearchParams({page:String(n),limit:"20",search:a,...l!=="all"&&{status:l},...S.start&&{startTime:S.start},...S.end&&{endTime:S.end}}),C=await fetch(`/api/logs/archive?${N}`).then(M=>M.json());h(C.logs||[]),g(C.total||0)}catch(N){console.error("Failed to fetch archived logs",N)}finally{b(!1)}},[n,a,l,S]);Me.useEffect(()=>{e&&A()},[e,A]);const O=N=>{N.preventDefault(),r(1),A()},T=Math.ceil(m/20);return p.jsx(ga,{children:e&&p.jsxs("div",{className:"fixed inset-0 z-[4000] flex items-center justify-center p-4 sm:p-8",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:t}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-6xl h-full max-h-[850px] bg-card border border-border/50 rounded-3xl shadow-2xl flex flex-col overflow-hidden scanline",children:[p.jsxs("div",{className:"p-6 border-b bg-muted/10 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(Jr,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-black tracking-tight",children:"Time Travel Audit"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold opacity-60",children:"Trace events and system logs across time"})]})]}),p.jsx("button",{type:"button",onClick:t,className:"p-2 hover:bg-muted rounded-xl text-muted-foreground transition-colors",children:p.jsx(xp,{size:20})})]}),p.jsxs("div",{className:"p-4 bg-muted/5 border-b grid grid-cols-1 md:grid-cols-4 gap-4 items-end",children:[p.jsxs("form",{onSubmit:O,className:"md:col-span-2 relative",children:[p.jsx("label",{htmlFor:"log-search",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Search Query"}),p.jsxs("div",{className:"relative",children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:16}),p.jsx("input",{id:"log-search",type:"text",placeholder:"Search message...",className:"w-full bg-background border border-border/50 rounded-xl py-2.5 pl-10 pr-4 text-sm font-medium outline-none focus:ring-1 focus:ring-primary/30 transition-all font-mono",value:a,onChange:N=>o(N.target.value)})]})]}),p.jsxs("div",{className:"relative",children:[p.jsx("label",{htmlFor:"start-time",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Time Range"}),p.jsxs("div",{className:"flex items-center gap-2 bg-background border border-border/50 rounded-xl px-3 py-2.5",children:[p.jsx(ob,{size:14,className:"text-muted-foreground/50"}),p.jsx("input",{id:"start-time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(M=>({...M,start:C})),r(1)}}),p.jsx("span",{className:"text-muted-foreground/30 text-[10px]",children:"to"}),p.jsx("input",{"aria-label":"End Time",type:"datetime-local",className:"bg-transparent text-[10px] font-mono outline-none w-full",onChange:N=>{const C=N.target.value?new Date(N.target.value).toISOString():void 0;j(M=>({...M,end:C})),r(1)}})]})]}),p.jsxs("div",{className:"relative",children:[p.jsx("label",{htmlFor:"log-level",className:"text-[10px] uppercase font-bold text-muted-foreground mb-1.5 block ml-1",children:"Level / Status"}),p.jsxs("div",{className:"relative",children:[p.jsx(F1,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:14}),p.jsxs("select",{id:"log-level",className:"w-full bg-background border border-border/50 rounded-xl py-2.5 pl-9 pr-4 text-sm font-bold outline-none focus:ring-1 focus:ring-primary/30 transition-all appearance-none",value:l,onChange:N=>{c(N.target.value),r(1)},children:[p.jsx("option",{value:"all",children:"Every Event"}),p.jsx("option",{value:"info",children:"Info / Logs"}),p.jsx("option",{value:"error",children:"Errors / Failed"}),p.jsx("option",{value:"warn",children:"Warnings"}),p.jsx("option",{value:"success",children:"Success / Completed"})]})]})]})]}),p.jsx("div",{className:"flex-1 overflow-y-auto p-0 scrollbar-thin bg-black/20",children:y?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 py-20",children:[p.jsx(ife,{className:"animate-spin text-primary",size:32}),p.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em] text-muted-foreground animate-pulse",children:"Time Traveling..."})]}):f.length===0?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-4 py-20",children:[p.jsx(Zn,{size:48,className:"opacity-10 animate-pulse"}),p.jsx("p",{className:"font-bold uppercase tracking-widest italic text-sm",children:"No events found in this timeline"})]}):p.jsx("div",{className:"divide-y divide-border/10",children:f.map(N=>p.jsxs("div",{className:"p-4 flex gap-4 hover:bg-white/[0.02] transition-colors group cursor-default",children:[p.jsx("div",{className:"shrink-0 w-32 pt-1",children:p.jsxs("div",{className:"flex flex-col text-right",children:[p.jsx("span",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-tighter tabular-nums",children:new Date(N.timestamp).toLocaleDateString()}),p.jsx("span",{className:"text-xs font-mono font-bold tabular-nums text-foreground/80",children:new Date(N.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})}),p.jsxs("div",{className:"shrink-0 pt-1.5 relative",children:[p.jsx("div",{className:"w-px h-full absolute left-1/2 -translate-x-1/2 top-4 bg-border/30 last:hidden"}),p.jsx("div",{className: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")})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-1.5",children:[p.jsx("span",{className: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}),p.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:N.worker_id}),N.queue&&p.jsx("span",{className:"text-[10px] font-black text-indigo-400/80 uppercase tracking-wider bg-indigo-500/10 px-1.5 rounded",children:N.queue})]}),p.jsx("p",{className:"text-sm text-foreground/90 font-mono break-all leading-relaxed opacity-90",children:N.message})]})]},N.id))})}),p.jsxs("div",{className:"p-4 border-t bg-muted/5 flex flex-col sm:flex-row justify-between items-center gap-4 text-[10px] uppercase font-bold text-muted-foreground",children:[p.jsxs("div",{children:["Scanning ",m.toLocaleString()," events • Page ",n," of ",T||1]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",disabled:n===1||y,onClick:()=>r(N=>N-1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:p.jsx(D_,{size:16})}),p.jsx("button",{type:"button",disabled:n>=T||y,onClick:()=>r(N=>N+1),className:"p-2 border rounded-xl hover:bg-muted disabled:opacity-30 transition-all active:scale-95",children:p.jsx(vp,{size:16})})]})]})]})]})})}function ife({className:e,size:t}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-label":"Refreshing",children:[p.jsx("title",{children:"Refreshing"}),p.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),p.jsx("path",{d:"M21 3v5h-5"}),p.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),p.jsx("path",{d:"M3 21v-5h5"})]})}function afe(){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 p.jsxs("div",{className:"card-premium h-[350px] w-full p-6 flex flex-col relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full -translate-y-1/2 translate-x-1/2 blur-3xl"}),p.jsxs("div",{className:"flex justify-between items-start mb-6 z-10",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h3",{className:"text-xl font-bold tracking-tight",children:"System Throughput"}),p.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-green-500/10 text-green-500 text-[8px] font-black uppercase tracking-widest rounded-full border border-green-500/20",children:[p.jsx("span",{className:"w-1 h-1 bg-green-500 rounded-full animate-ping"}),"Live"]})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-[0.2em] font-bold mt-1",children:"Jobs processed per minute"})]}),p.jsxs("div",{className:"text-right",children:[p.jsx("p",{className:"text-2xl font-black text-foreground",children:((a=r[r.length-1])==null?void 0:a.value)||0}),p.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-bold",children:"Current Rate"})]})]}),p.jsx("div",{className:"flex-1 w-full min-h-0",children:p.jsx(sm,{width:"100%",height:"100%",children:p.jsxs(z1,{data:r,margin:{top:10,right:10,left:-20,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorValue",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.4}),p.jsx("stop",{offset:"50%",stopColor:"hsl(var(--primary))",stopOpacity:.1}),p.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),p.jsx(Yc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.5}),p.jsx(Wc,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600},dy:10}),p.jsx(Qc,{axisLine:!1,tickLine:!1,tick:{fontSize:9,fill:"hsl(var(--muted-foreground))",fontWeight:600}}),p.jsx(lm,{cursor:{stroke:"hsl(var(--primary))",strokeWidth:1,strokeDasharray:"4 4"},contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"16px",fontSize:"12px",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"},itemStyle:{fontWeight:"bold",color:"hsl(var(--primary))"}}),p.jsx(Gc,{type:"stepAfter",dataKey:"value",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorValue)",strokeWidth:2.5,animationDuration:1500})]})})})]})}function Pc(...e){return p3(Ze(e))}function sfe({highlightedWorkerId:e,workers:t=[]}){const n=t.filter(r=>r.status==="online").length;return p.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[p.jsx("div",{className:"p-6 pb-0 flex-none",children:p.jsxs("div",{className:"flex justify-between items-center mb-6",children:[p.jsxs("div",{children:[p.jsxs("h3",{className:"text-lg font-black flex items-center gap-2 tracking-tight",children:[p.jsx(Zc,{size:20,className:"text-primary"}),"Cluster Nodes"]}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase font-black tracking-widest opacity-60",children:"Real-time load"})]}),p.jsxs("span",{className:"text-[10px] font-black text-green-500 bg-green-500/10 px-3 py-1 rounded-full uppercase tracking-widest border border-green-500/20",children:[n," ACTIVE"]})]})}),p.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 px-6 space-y-3 scrollbar-thin pb-6",children:[t.length===0&&p.jsxs("div",{className:"py-12 text-center text-muted-foreground/30 flex flex-col items-center gap-2",children:[p.jsx(Zn,{size:24,className:"opacity-20 animate-pulse"}),p.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest",children:"No nodes connected"})]}),t.map(r=>p.jsxs("div",{className:Pc("flex items-center justify-between p-4 rounded-2xl bg-muted/10 border transition-all group overflow-hidden relative shrink-0",r.id===e?"border-primary/50 bg-primary/5 shadow-[0_0_20px_rgba(var(--primary-rgb),0.1)] -translate-y-1 scale-[1.02] z-10":"border-transparent hover:border-primary/20 hover:bg-muted/20"),children:[p.jsx("div",{className:Pc("absolute left-0 top-0 bottom-0 w-1 transition-all",r.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"relative",children:p.jsx("div",{className:Pc("w-3 h-3 rounded-full",r.status==="online"?"bg-green-500 animate-pulse shadow-[0_0_12px_rgba(34,197,94,0.6)]":"bg-muted-foreground/40")})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-black tracking-tight group-hover:text-primary transition-colors",children:r.id}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-[9px] font-black uppercase tracking-tighter opacity-50",children:r.status}),p.jsxs("span",{className:"text-[9px] font-black text-primary/60",children:["PID ",r.pid]})]})]})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[r.metrics&&p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("div",{className:"space-y-1.5 w-20",children:[p.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[p.jsxs("span",{children:["LOAD (",r.metrics.cores||"-",")"]}),p.jsx("span",{className:Pc(r.metrics.cpu>(r.metrics.cores||4)&&"text-red-500"),children:r.metrics.cpu.toFixed(2)})]}),p.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:p.jsx("div",{className:Pc("h-full transition-all duration-700",r.metrics.cpu>(r.metrics.cores||4)?"bg-red-500":r.metrics.cpu>(r.metrics.cores||4)*.7?"bg-amber-500":"bg-green-500"),style:{width:`${Math.min(100,r.metrics.cpu/(r.metrics.cores||1)*100)}%`}})})]}),p.jsxs("div",{className:"space-y-1.5 w-16",children:[p.jsxs("div",{className:"flex justify-between text-[8px] font-black text-muted-foreground uppercase tracking-tighter",children:[p.jsx("span",{children:"RAM"}),p.jsxs("span",{children:[Math.round(r.metrics.ram.rss/1024),"G"]})]}),p.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-indigo-500 transition-all duration-700",style:{width:`${Math.min(100,r.metrics.ram.rss/2048*100)}%`}})})]})]}),p.jsxs("div",{className:"text-right whitespace-nowrap hidden sm:block",children:[p.jsxs("p",{className:"text-sm font-black tracking-tighter",children:[r.uptime,"s"]}),p.jsx("p",{className:"text-[8px] text-muted-foreground uppercase font-black tracking-widest opacity-50",children:"UPTIME"})]})]})]},r.id))]}),p.jsx("div",{className:"p-6 pt-0 flex-none",children:p.jsx("button",{type:"button",className:"w-full py-3 bg-muted text-[10px] font-black rounded-xl hover:bg-primary hover:text-primary-foreground transition-all uppercase tracking-[0.2em] opacity-60 hover:opacity-100 active:scale-95 shadow-lg shadow-transparent hover:shadow-primary/20",children:"Manage Nodes"})})]})}const ofe={queues:[],workers:[]};function lfe({logs:e,onSearchArchive:t,onWorkerHover:n}){const r=Me.useRef(null);return Me.useEffect(()=>{r.current&&e&&(r.current.scrollTop=r.current.scrollHeight)},[e]),p.jsxs("div",{className:"absolute inset-0 card-premium flex flex-col overflow-hidden group",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(o9,{size:14,className:"text-primary"}),p.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Operational Logs"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{type:"button",onClick:t,className:"flex items-center gap-1.5 px-2 py-1 hover:bg-muted rounded-md text-[10px] font-black uppercase tracking-tighter text-muted-foreground transition-all",children:[p.jsx(fu,{size:12}),"Search Archive"]}),p.jsxs("div",{className:"flex gap-1",children:[p.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),p.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500/40"})]})]})]}),p.jsx("ul",{ref:r,className:"flex-1 min-h-0 overflow-y-auto p-4 font-mono text-[11px] space-y-2.5 scrollbar-thin scroll-smooth",children:e.length===0?p.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground/30 gap-2 opacity-50",children:[p.jsx(Zn,{size:24,className:"animate-pulse"}),p.jsx("p",{className:"font-bold uppercase tracking-widest text-[9px]",children:"Awaiting signals..."})]}):e.map((a,o)=>p.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:[p.jsx("span",{className:"text-muted-foreground/40 shrink-0 tabular-nums select-none opacity-0 group-hover:opacity-100 transition-opacity",children:new Date(a.timestamp).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}),p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsxs("span",{className: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,"]"]}),p.jsx("span",{className:"text-[9px] font-black text-muted-foreground/40 uppercase opacity-0 group-hover:opacity-100 transition-all",children:a.workerId})]}),p.jsx("p",{className:"text-foreground/80 leading-relaxed whitespace-pre-wrap break-all",children:a.message})]})]},o))})]})}function ufe({queues:e}){return p.jsxs("div",{className:"card-premium p-6 mb-8 overflow-hidden relative group",children:[p.jsx("div",{className:"absolute inset-0 opacity-10 group-hover:opacity-20 transition-opacity scanline pointer-events-none"}),p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zn,{size:14,className:"text-primary animate-pulse"}),p.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground/60",children:"Pipeline Load Distribution"})]}),p.jsx("div",{className:"flex gap-1",children:[.2,.4,.6,.8,1].map(t=>p.jsx("div",{className:"w-2 h-2 rounded-sm bg-primary",style:{opacity:t}},t))})]}),p.jsxs("div",{className:"grid grid-cols-10 sm:grid-cols-20 gap-1.5",children:[e.map((t,n)=>{const r=Math.min(1,t.waiting/200);return p.jsx("div",{className:"aspect-square rounded-sm transition-all duration-500 hover:scale-125 cursor-help group/tile relative",style:{backgroundColor:`hsl(var(--primary) / ${.1+r*.9})`,boxShadow:r>.7?`0 0 10px hsl(var(--primary) / ${r})`:"none"},children:p.jsxs("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 p-2 bg-popover text-popover-foreground rounded-lg text-[10px] whitespace-nowrap opacity-0 group-hover/tile:opacity-100 transition-opacity pointer-events-none border border-border z-50",children:[p.jsx("span",{className:"font-black",children:t.name}),": ",t.waiting," items"]})},n)}),Array.from({length:Math.max(0,40-e.length)}).map((t,n)=>p.jsx("div",{className:"aspect-square rounded-sm bg-muted/20 border border-border/5 group-hover:border-border/10 transition-colors"},`empty-${n}`))]})]})}function cfe({value:e}){const[t,n]=Me.useState(e);return Me.useEffect(()=>{const r=RF(t,e,{duration:1.5,ease:"easeOut",onUpdate:a=>n(Math.round(a))});return()=>r.stop()},[e,t]),p.jsx("span",{children:t.toLocaleString()})}function Wh({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 p.jsxs("div",{className:"card-premium p-8 hover:shadow-2xl transform hover:-translate-y-2 group relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none scanline z-0"}),p.jsxs("div",{className:"flex justify-between items-start mb-6 z-10 relative",children:[p.jsx("div",{className: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&&p.jsxs("div",{className:"flex flex-col items-end",children:[p.jsx("span",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest",children:a}),p.jsx("div",{className:"w-8 h-1 bg-muted/50 rounded-full mt-1 overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:1,repeat:1/0,repeatType:"reverse"},className:ke("h-full",r.replace("text-","bg-"))})})]})]}),p.jsxs("div",{className:"z-10 relative",children:[p.jsx("p",{className:"text-[11px] font-black text-muted-foreground/50 uppercase tracking-[0.2em] mb-2",children:e}),p.jsxs("div",{className:"text-4xl font-black tracking-tighter flex items-center gap-1",children:[p.jsx(cfe,{value:t}),e==="Waiting Jobs"&&t>100&&p.jsx("span",{className:"text-red-500 animate-pulse text-xs",children:"!"})]})]}),p.jsx("div",{className:"mt-8 flex items-end gap-1.5 h-16 opacity-5 group-hover:opacity-20 transition-all duration-700 absolute bottom-0 left-0 right-0 p-1.5 pointer-events-none",children:l.map((f,h)=>p.jsx("div",{className: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 ffe({queues:e,setSelectedQueue:t}){return p.jsxs("div",{className:"card-premium h-full flex flex-col overflow-hidden",children:[p.jsxs("div",{className:"p-4 border-b bg-muted/5 flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Jc,{size:14,className:"text-primary"}),p.jsx("h2",{className:"text-xs font-black uppercase tracking-widest opacity-70",children:"Processing Pipelines"})]}),p.jsxs("button",{type:"button",className:"text-[10px] font-black text-primary hover:underline flex items-center gap-2 uppercase tracking-widest transition-opacity",children:["Stats ",p.jsx(vp,{size:12})]})]}),p.jsx("div",{className:"flex-1 overflow-auto scrollbar-thin",children:p.jsxs("table",{className:"w-full text-left",children:[p.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[9px] font-black tracking-widest sticky top-0",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-4 py-3",children:"Queue"}),p.jsx("th",{className:"px-4 py-3",children:"Waiting"}),p.jsx("th",{className:"px-4 py-3 text-right",children:"Ops"})]})}),p.jsx("tbody",{className:"divide-y divide-border/30 text-xs",children:e.map(n=>p.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[p.jsx("td",{className:"px-4 py-4",children:p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"font-black text-foreground",children:n.name}),n.failed>0&&p.jsxs("span",{className:"text-[9px] text-red-500 font-bold uppercase",children:[n.failed," FAILED"]})]})}),p.jsx("td",{className:"px-4 py-4 font-mono font-black",children:n.waiting.toLocaleString()}),p.jsx("td",{className:"px-4 py-4 text-right",children:p.jsx("div",{className:"flex justify-end gap-2",children:p.jsx("button",{type:"button",onClick:()=>t(n.name),className:"p-1.5 bg-muted hover:bg-primary/20 hover:text-primary rounded text-muted-foreground transition-all active:scale-90",title:"Inspect",children:p.jsx(Cf,{size:14})})})})]},n.name))})]})})]})}function dfe(){const[e,t]=Me.useState(null),[n,r]=Me.useState(null),[a,o]=Me.useState([]),[l,c]=Me.useState(ofe),[f,h]=Me.useState(!1);Me.useEffect(()=>{const T=N=>t(N.detail);return window.addEventListener("select-queue",T),()=>window.removeEventListener("select-queue",T)},[]),Me.useEffect(()=>{fetch("/api/queues").then(T=>T.json()).then(T=>{T.queues&&c(N=>({...N,queues:T.queues}))}),fetch("/api/workers").then(T=>T.json()).then(T=>{T.workers&&c(N=>({...N,workers:T.workers}))})},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;C&&c(M=>({queues:C.queues||M.queues,workers:C.workers||M.workers}))};return window.addEventListener("flux-stats-update",T),()=>window.removeEventListener("flux-stats-update",T)},[]),Me.useEffect(()=>{const T=N=>{const C=N.detail;o(M=>[...M.slice(-99),C])};return window.addEventListener("flux-log-update",T),()=>window.removeEventListener("flux-log-update",T)},[]),Me.useEffect(()=>{const T=()=>o([]);return window.addEventListener("clear-logs",T),()=>window.removeEventListener("clear-logs",T)},[]);const{data:m}=Nn({queryKey:["metrics-history"],queryFn:()=>fetch("/api/metrics/history").then(T=>T.json()),refetchInterval:3e4}),g=(m==null?void 0:m.history)||{},{queues:y,workers:b}=l,S=y.reduce((T,N)=>T+N.waiting,0),j=y.reduce((T,N)=>T+N.delayed,0),A=y.reduce((T,N)=>T+N.failed,0),O=b.length;return p.jsxs("div",{className:"space-y-12",children:[p.jsx(rfe,{isOpen:f,onClose:()=>h(!1)}),p.jsx(ga,{children:e&&p.jsx(T6,{queueName:e,onClose:()=>t(null)})}),p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"System Overview"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Real-time status of your processing pipelines."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em] animate-pulse",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),"Live Syncing"]})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[p.jsx(Wh,{title:"Waiting Jobs",value:S,icon:p.jsx(L_,{size:20}),color:"text-amber-500",trend:"+12% / hr",data:g.waiting}),p.jsx(Wh,{title:"Delayed Jobs",value:j,icon:p.jsx(Jr,{size:20}),color:"text-blue-500",trend:"Stable",data:g.delayed}),p.jsx(Wh,{title:"Failed Jobs",value:A,icon:p.jsx(Zr,{size:20}),color:"text-red-500",trend:A>0?"CRITICAL":"CLEAN",data:g.failed}),p.jsx(Wh,{title:"Active Workers",value:O,icon:p.jsx(Zc,{size:20}),color:"text-indigo-500",trend:O>0?"ONLINE":"IDLE",data:g.workers})]}),p.jsx(afe,{}),p.jsx(ufe,{queues:y}),p.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-3 gap-8 lg:h-[600px]",children:[p.jsx("div",{className:"lg:col-span-1 h-[400px] lg:h-full",children:p.jsx(sfe,{highlightedWorkerId:n,workers:b})}),p.jsxs("div",{className:"lg:col-span-2 flex flex-col lg:grid lg:grid-rows-2 gap-6 lg:h-full",children:[p.jsx("div",{className:"relative h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:p.jsx(lfe,{logs:a,onSearchArchive:()=>h(!0),onWorkerHover:r})}),p.jsx("div",{className:"h-[300px] lg:h-full min-h-0 overflow-hidden bg-card rounded-xl border border-border/50",children:p.jsx(ffe,{queues:y,setSelectedQueue:t})})]})]})]})}function hfe({icon:e,title:t,description:n,children:r,className:a}){return p.jsxs("div",{className:ke("flex justify-between items-end",a),children:[p.jsxs("div",{children:[p.jsxs("h1",{className:"text-4xl font-black tracking-tighter flex items-center gap-3",children:[p.jsx("div",{className:"p-2 bg-primary/10 rounded-xl text-primary",children:p.jsx(e,{size:32})}),t]}),n&&p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest pl-[3.75rem]",children:n})]}),p.jsx("div",{children:r})]})}function mfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M16 2L2.1 9.9v12.2L16 30l13.9-7.9V9.9L16 2zm11.9 19.1L16 27.8l-11.9-6.7V11.1L16 4.2l11.9 6.9v10z",fill:"#339933"}),p.jsx("path",{d:"M16 22.5l-6-3.4v-6.8l6-3.4 6 3.4v6.8l-6 3.4z",fill:"#339933"})]})}function pfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M30 17.045a9.8 9.8 0 0 0-.32-2.306l-.004.034a11.2 11.2 0 0 0-5.762-6.786c-3.495-1.89-5.243-3.326-6.8-3.811h.003c-1.95-.695-3.949.82-5.825 1.927-4.52 2.481-9.573 5.45-9.28 11.417.008-.029.017-.052.026-.08a9.97 9.97 0 0 0 3.934 7.257l-.01-.006C13.747 31.473 30.05 27.292 30 17.045",fill:"#fbf0df",stroke:"#4a4a4a",strokeWidth:"1.5"}),p.jsx("path",{fill:"#37474f",d:"M19.855 20.236A.8.8 0 0 0 19.26 20h-6.514a.8.8 0 0 0-.596.236.51.51 0 0 0-.137.463 4.37 4.37 0 0 0 1.641 2.339 4.2 4.2 0 0 0 2.349.926 4.2 4.2 0 0 0 2.343-.926 4.37 4.37 0 0 0 1.642-2.339.5.5 0 0 0-.132-.463Z"}),p.jsx("ellipse",{cx:"22.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),p.jsx("ellipse",{cx:"9.5",cy:"18.5",fill:"#f8bbd0",rx:"2.5",ry:"1.5"}),p.jsx("circle",{cx:"10",cy:"16",r:"2",fill:"#37474f"}),p.jsx("circle",{cx:"22",cy:"16",r:"2",fill:"#37474f"})]})}function gfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("circle",{cx:"16",cy:"16",r:"14",fill:"currentColor"}),p.jsx("path",{d:"M16 6C16 6 24 10 24 18C24 23.5228 19.5228 28 14 28C8.47715 28 4 23.5228 4 18C4 10 16 6 16 6Z",fill:"white"}),p.jsx("circle",{cx:"12",cy:"18",r:"2",fill:"black"})]})}function ZP(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("ellipse",{cx:"16",cy:"16",rx:"14",ry:"10",fill:"#777BB4"}),p.jsx("text",{x:"50%",y:"54%",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",children:"PHP"})]})}function vfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M5 16C5 10 10 5 16 5H24V13H16C14.3431 13 13 14.3431 13 16C13 17.6569 14.3431 19 16 19H27V27H16C10 27 5 22 5 16Z",fill:"#00ADD8"}),p.jsx("circle",{cx:"9",cy:"16",r:"2",fill:"white"}),p.jsx("circle",{cx:"23",cy:"9",r:"2",fill:"white"})]})}function yfe(e){return p.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M16 2C10 2 10 5 10 5L10 9L18 9L18 11L8 11L8 20L12 20L12 14L22 14C22 14 22 12 16 2Z",fill:"#3776AB"}),p.jsx("path",{d:"M16 30C22 30 22 27 22 27L22 23L14 23L14 21L24 21L24 12L20 12L20 18L10 18C10 18 10 20 16 30Z",fill:"#FFD43B"})]})}const Fx=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/Math.pow(t,r)).toFixed(2))+" "+n[r]},_c=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 xfe({node:e}){var o,l;const t=Date.now()-e.timestamp<3e4,n=!t&&Date.now()-e.timestamp<6e4,r=()=>{switch(e.language){case"node":return p.jsx(mfe,{className:"w-6 h-6"});case"bun":return p.jsx(pfe,{className:"w-6 h-6 text-black"});case"deno":return p.jsx(gfe,{className:"w-6 h-6"});case"php":return p.jsx(ZP,{className:"w-6 h-6"});case"go":return p.jsx(vfe,{className:"w-6 h-6"});case"python":return p.jsx(yfe,{className:"w-6 h-6"});default:return p.jsx(pU,{className:"w-6 h-6 text-white"})}},a=(o=e.meta)==null?void 0:o.laravel;return p.jsxs(lt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-card border border-border/50 rounded-xl p-4 shadow-sm relative overflow-hidden group",children:[p.jsx("div",{className: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")}),p.jsxs("div",{className:"flex items-start justify-between mb-4 relative z-10",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center bg-white dark:bg-card border border-border/20 shadow-sm shrink-0",children:r()}),p.jsxs("div",{children:[p.jsxs("h3",{className:"font-bold text-foreground text-sm flex items-center gap-2",children:[e.id,p.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-muted text-muted-foreground uppercase tracking-wider",children:e.platform})]}),p.jsxs("div",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-0.5",children:[p.jsx(RU,{size:10})," ",e.hostname," ",p.jsx("span",{className:"opacity-30",children:"|"})," PID: ",e.pid]})]})]}),p.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")})]}),p.jsxs("div",{className:"space-y-3",children:[a&&a.workerCount>0&&p.jsxs("div",{className:"bg-amber-500/5 rounded-lg p-2.5 border border-amber-500/20",children:[p.jsx("div",{className:"flex items-center justify-between text-xs mb-2",children:p.jsxs("div",{className:"flex items-center gap-2 font-bold text-amber-600 dark:text-amber-400",children:[p.jsx(ZP,{className:"w-3 h-3"}),"Laravel Workers (",a.workerCount,")"]})}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[p.jsxs("button",{onClick:()=>{confirm("Are you sure you want to retry ALL failed Laravel jobs on this host?")&&_c(e.service,e.id,"LARAVEL_ACTION","default","retry-all")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[p.jsx(qy,{size:10})," Retry All"]}),p.jsxs("button",{onClick:()=>{confirm("Artisan queue:restart will signal all workers to quit. Supervisor will restart them. Proceed?")&&_c(e.service,e.id,"LARAVEL_ACTION","default","restart")},className:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 px-2 py-1 rounded text-[10px] font-black uppercase flex items-center gap-1 transition-all border border-amber-500/10",children:[p.jsx(qy,{size:10})," Restart Workers"]})]}),((l=a.roots)==null?void 0:l.length)>0&&p.jsxs("div",{className:"mt-2 text-[9px] text-muted-foreground font-mono opacity-60 truncate",children:["Root: ",a.roots[0]]})]}),e.queues&&e.queues.length>0&&p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-2",children:p.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground",children:[p.jsx("span",{className: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,")"]})}),p.jsx("div",{className:"space-y-2",children:e.queues.map(c=>p.jsxs("div",{className:"flex flex-col gap-1 text-xs",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"font-mono text-muted-foreground",children:c.name}),p.jsxs("div",{className:"flex gap-2 font-mono items-center",children:[c.size.failed>0&&p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"text-red-500 font-bold",children:[c.size.failed," fail"]}),p.jsxs("div",{className:"flex gap-1 ml-1",children:[p.jsx("button",{onClick:async()=>{if(c.driver==="redis"&&e.language==="php"&&confirm("Use php artisan queue:retry for precision?")){await _c(e.service,e.id,"LARAVEL_ACTION",c.name,"retry-all");return}_c(e.service,e.id,"RETRY_JOB",c.name)},className:"p-1 rounded hover:bg-emerald-500/20 text-emerald-500 transition-colors",title:"Retry all failed jobs",children:p.jsx(qy,{size:12})}),p.jsx("button",{onClick:()=>_c(e.service,e.id,"DELETE_JOB",c.name),className:"p-1 rounded hover:bg-red-500/20 text-red-400 transition-colors",title:"Delete all failed jobs",children:p.jsx(jo,{size:12})})]})]}),c.size.active>0&&p.jsxs("span",{className:"text-emerald-500",children:[c.size.active," act"]}),p.jsxs("span",{className: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&&p.jsxs("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden flex",children:[p.jsx("div",{className:"bg-red-500 h-full transition-all",style:{width:`${c.size.failed/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),p.jsx("div",{className:"bg-yellow-500 h-full transition-all",style:{width:`${c.size.waiting/(c.size.waiting+c.size.active+c.size.failed)*100}%`}}),p.jsx("div",{className:"bg-emerald-500 h-full transition-all",style:{width:`${c.size.active/(c.size.waiting+c.size.active+c.size.failed)*100}%`}})]})]},c.name))})]}),p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zc,{size:12})," CPU Usage"]}),p.jsxs("span",{className:"text-[10px]",children:[e.cpu.cores," cores"]})]}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsxs("span",{className:"text-xl font-bold text-foreground",children:[e.cpu.process,"%"]}),p.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"proc"})]}),p.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[p.jsx("div",{className: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)}%`}}),p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.cpu.system,100)}%`}})]}),p.jsxs("div",{className:"flex justify-between text-[9px] text-muted-foreground mt-1 font-mono",children:[p.jsxs("span",{className:"text-primary font-bold",children:["Proc: ",e.cpu.process,"%"]}),p.jsxs("span",{children:["Sys: ",e.cpu.system,"%"]})]})]}),p.jsxs("div",{className:"bg-muted/30 rounded-lg p-2.5 border border-border/50",children:[p.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-1",children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(lb,{size:12})," RAM Usage"]})}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsx("span",{className:"text-xl font-bold text-foreground",children:Fx(e.memory.process.rss)}),p.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:"RSS"})]}),p.jsxs("div",{className:"h-2 w-full bg-muted rounded-full mt-2 overflow-hidden relative",children:[p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 z-20 shadow-sm bg-indigo-500",style:{width:`${Math.min(e.memory.process.rss/e.memory.system.total*100,100)}%`}}),p.jsx("div",{className:"h-full rounded-full transition-all duration-500 absolute top-0 left-0 bg-muted-foreground/30 z-10",style:{width:`${Math.min(e.memory.system.used/e.memory.system.total*100,100)}%`}})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[10px] text-muted-foreground mt-3 border-t border-border/30 pt-2 font-mono",children:[p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"opacity-70",children:"Heap"}),p.jsx("span",{className:"font-bold",children:Fx(e.memory.process.heapUsed)})]}),p.jsxs("div",{className:"flex flex-col text-right",children:[p.jsx("span",{className:"opacity-70",children:"Sys Free"}),p.jsx("span",{className:"",children:Fx(e.memory.system.free)})]})]})]})]}),p.jsxs("div",{className:"mt-3 pt-3 border-t border-border/50 flex items-center justify-between text-[10px] text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(yp,{size:10})," ",e.runtime.framework]}),p.jsxs("span",{children:["Ups: ",Math.floor(e.runtime.uptime/60),"m"]})]})]})}function bfe({service:e,nodes:t}){const n=t.length===1;return p.jsxs("div",{className:"bg-card/50 border border-border/40 rounded-xl p-4 flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-3 border-b border-border/40",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"}),p.jsx("h2",{className:"text-sm font-bold uppercase tracking-widest text-muted-foreground flex-1",children:e}),p.jsx("span",{className:"bg-muted text-foreground px-2 py-0.5 rounded-md text-xs font-mono",children:t.length})]}),p.jsx("div",{className:ke("grid gap-3",n?"grid-cols-1":"grid-cols-1 xl:grid-cols-2"),children:t.map(r=>p.jsx(xfe,{node:r},r.id))})]})}function wfe(){const{data:e,isLoading:t}=Nn({queryKey:["pulse-nodes"],queryFn:async()=>(await fetch("/api/pulse/nodes")).json()}),[n,r]=w.useState({});if(w.useEffect(()=>{e!=null&&e.nodes&&r(e.nodes)},[e]),w.useEffect(()=>{const o=l=>{var f;const c=l;(f=c.detail)!=null&&f.nodes&&r(c.detail.nodes)};return window.addEventListener("flux-pulse-update",o),()=>window.removeEventListener("flux-pulse-update",o)},[]),t&&Object.keys(n).length===0)return p.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8 animate-pulse",children:[p.jsx("div",{className:"h-8 w-48 bg-muted rounded-lg"}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[1,2,3].map(o=>p.jsx("div",{className:"h-48 bg-muted rounded-xl"},o))})]});const a=Object.entries(n).sort(([o],[l])=>o.localeCompare(l));return p.jsx("div",{className:"min-h-screen bg-background text-foreground pb-20",children:p.jsxs("div",{className:"p-6 md:p-10 max-w-7xl mx-auto space-y-8",children:[p.jsx(hfe,{icon:Zn,title:"System Pulse",description:"Real-time infrastructure monitoring across your entire stack.",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-muted-foreground bg-muted px-3 py-1.5 rounded-lg border border-border/50",children:[p.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),"LIVE CONNECTION"]})}),a.length===0?p.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center border-2 border-dashed border-border rounded-xl",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-muted flex items-center justify-center mb-4",children:p.jsx(Zn,{className:"text-muted-foreground",size:32})}),p.jsx("h3",{className:"text-lg font-bold",children:"No Pulse Signals Detected"}),p.jsx("p",{className:"text-muted-foreground max-w-sm mt-2",children:"Start a worker with the pulse agent enabled or check your Redis connection."})]}):p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-start",children:a.map(([o,l])=>p.jsx(bfe,{service:o,nodes:l},o))})]})})}function Sfe(){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)||[],g=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?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ji,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading queues..."})]}):f?p.jsx("div",{className:"text-center p-20",children:p.jsxs("div",{className:"bg-red-500/10 text-red-500 p-10 rounded-3xl border border-red-500/20 max-w-md mx-auto shadow-2xl",children:[p.jsx(Zr,{size:56,className:"mx-auto mb-6 opacity-80"}),p.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Queues"}),p.jsx("p",{className:"text-sm font-medium opacity-70 mb-8",children:f.message})]})}):p.jsxs(p.Fragment,{children:[p.jsx(ga,{children:e&&p.jsx(T6,{queueName:e,onClose:()=>t(null)})}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Processing Queues"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Manage and monitor all processing pipelines."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em] animate-pulse",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),m.length," Queues"]})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Waiting"}),p.jsx("p",{className:"text-3xl font-black",children:y.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Delayed"}),p.jsx("p",{className:"text-3xl font-black text-amber-500",children:b.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total Failed"}),p.jsx("p",{className:"text-3xl font-black text-red-500",children:S.toLocaleString()})]}),p.jsxs("div",{className:"card-premium p-6",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Currently Active"}),p.jsx("p",{className:"text-3xl font-black text-green-500",children:j.toLocaleString()})]})]}),p.jsxs("div",{className:"card-premium p-4 flex flex-wrap gap-4 items-center",children:[p.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[p.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}),p.jsx("input",{type:"text",placeholder:"Search queues...",value:n,onChange:A=>r(A.target.value),className:"w-full bg-muted/40 border border-border/50 rounded-xl py-2.5 pl-10 pr-4 text-sm font-medium placeholder:text-muted-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary/20"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(F1,{size:16,className:"text-muted-foreground"}),["all","active","idle","critical"].map(A=>p.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))]})]}),p.jsx("div",{className:"card-premium overflow-hidden",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full text-left",children:[p.jsx("thead",{className:"bg-muted/10 text-muted-foreground uppercase text-[10px] font-black tracking-[0.2em]",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-6 py-5",children:"Queue Name"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Waiting"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Delayed"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Active"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Failed"}),p.jsx("th",{className:"px-6 py-5 text-center",children:"Status"}),p.jsx("th",{className:"px-6 py-5 text-right",children:"Actions"})]})}),p.jsxs("tbody",{className:"divide-y divide-border/30 text-sm",children:[g.map(A=>{const O=A.failed>0?"critical":A.active>0?"active":"idle";return p.jsxs("tr",{className:"hover:bg-muted/5 transition-colors group",children:[p.jsx("td",{className:"px-6 py-5",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 bg-primary/5 rounded-xl flex items-center justify-center text-primary group-hover:scale-110 transition-transform",children:p.jsx(Jc,{size:20})}),p.jsx("span",{className:"font-black tracking-tight",children:A.name})]})}),p.jsx("td",{className:"px-6 py-5 text-center font-mono font-bold",children:A.waiting.toLocaleString()}),p.jsx("td",{className:"px-6 py-5 text-center font-mono text-amber-500",children:A.delayed}),p.jsx("td",{className:"px-6 py-5 text-center font-mono text-green-500",children:A.active}),p.jsx("td",{className:"px-6 py-5 text-center",children:p.jsx("span",{className:ke("font-mono font-black",A.failed>0?"text-red-500":"text-muted-foreground/40"),children:A.failed})}),p.jsx("td",{className:"px-6 py-5 text-center",children:p.jsx("span",{className: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})}),p.jsx("td",{className:"px-6 py-5",children:p.jsxs("div",{className:"flex justify-end gap-2 items-center",children:[p.jsx("button",{type:"button",onClick:async()=>{const T=A.paused?"resume":"pause";await fetch(`/api/queues/${A.name}/${T}`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]})},className: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?p.jsx(U_,{size:16}):p.jsx(GU,{size:16})}),A.delayed>0&&p.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-amber-500 hover:bg-amber-500/10 rounded-lg transition-all",title:"Retry All Delayed",children:p.jsx(Ji,{size:16})}),A.failed>0&&p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>fetch(`/api/queues/${A.name}/retry-all-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]})),className:"p-2 text-blue-500 hover:bg-blue-500/10 rounded-lg transition-all",title:"Retry All Failed",children:p.jsx(Ji,{size:16})}),p.jsx("button",{type:"button",onClick:()=>{confirm(`Are you sure you want to clear all failed jobs in queue "${A.name}"?`)&&fetch(`/api/queues/${A.name}/clear-failed`,{method:"POST"}).then(()=>l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-red-500 hover:bg-red-500/10 rounded-lg transition-all",title:"Clear Failed Jobs",children:p.jsx(z_,{size:16})})]}),p.jsx("button",{type:"button",onClick:async()=>{confirm(`Are you sure you want to purge all jobs in queue "${A.name}"?`)&&(await fetch(`/api/queues/${A.name}/purge`,{method:"POST"}),l.invalidateQueries({queryKey:["queues"]}))},className:"p-2 text-muted-foreground hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all",title:"Purge Queue",children:p.jsx(jo,{size:16})}),p.jsxs("button",{type:"button",onClick:()=>t(A.name),className:"px-4 py-1.5 bg-muted text-foreground rounded-lg transition-all flex items-center gap-2 text-[10px] font-black uppercase tracking-widest border border-border/50 hover:border-primary/50 hover:bg-background",children:["Inspect ",p.jsx(Cf,{size:12})]})]})})]},A.name)}),g.length===0&&p.jsx("tr",{children:p.jsxs("td",{colSpan:7,className:"px-6 py-20 text-center text-muted-foreground",children:[p.jsx(Zn,{size:40,className:"mx-auto mb-4 opacity-10 animate-pulse"}),p.jsx("p",{className:"text-sm font-bold opacity-30 italic uppercase tracking-widest",children:n||a!=="all"?"No queues match your filters":"No queues available"})]})})]})]})})})]})]})}const C6=6048e5,jfe=864e5,JP=Symbol.for("constructDateFrom");function Ss(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&JP in e?e[JP](t):e instanceof Date?new e.constructor(t):new Date(t)}function si(e,t){return Ss(t||e,e)}let Afe={};function bg(){return Afe}function jf(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=si(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 jf(e,{...t,weekStartsOn:1})}function k6(e,t){const n=si(e,t==null?void 0:t.in),r=n.getFullYear(),a=Ss(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=gp(a),l=Ss(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=gp(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function e_(e){const t=si(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 Ofe(e,...t){const n=Ss.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function t_(e,t){const n=si(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Efe(e,t,n){const[r,a]=Ofe(n==null?void 0:n.in,e,t),o=t_(r),l=t_(a),c=+o-e_(o),f=+l-e_(l);return Math.round((c-f)/jfe)}function Nfe(e,t){const n=k6(e,t),r=Ss(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gp(r)}function Tfe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Cfe(e){return!(!Tfe(e)&&typeof e!="number"||isNaN(+si(e)))}function kfe(e,t){const n=si(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Mfe={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"}},Pfe=(e,t,n)=>{let r;const a=Mfe[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 Kx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const _fe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Dfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zfe={date:Kx({formats:_fe,defaultWidth:"full"}),time:Kx({formats:Dfe,defaultWidth:"full"}),dateTime:Kx({formats:Rfe,defaultWidth:"full"})},Lfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ife=(e,t,n,r)=>Lfe[e];function Dc(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 Bfe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ufe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$fe={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"]},qfe={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"]},Vfe={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"}},Hfe={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"}},Ffe=(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"},Kfe={ordinalNumber:Ffe,era:Dc({values:Bfe,defaultWidth:"wide"}),quarter:Dc({values:Ufe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Dc({values:$fe,defaultWidth:"wide"}),day:Dc({values:qfe,defaultWidth:"wide"}),dayPeriod:Dc({values:Vfe,defaultWidth:"wide",formattingValues:Hfe,defaultFormattingWidth:"wide"})};function Rc(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)?Gfe(c,g=>g.test(l)):Yfe(c,g=>g.test(l));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(l.length);return{value:h,rest:m}}}function Yfe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gfe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Wfe(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 Qfe=/^(\d+)(th|st|nd|rd)?/i,Xfe=/\d+/i,Zfe={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},Jfe={any:[/^b/i,/^(a|c)/i]},ede={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tde={any:[/1/i,/2/i,/3/i,/4/i]},nde={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},rde={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]},ide={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},ade={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]},sde={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},ode={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}},lde={ordinalNumber:Wfe({matchPattern:Qfe,parsePattern:Xfe,valueCallback:e=>parseInt(e,10)}),era:Rc({matchPatterns:Zfe,defaultMatchWidth:"wide",parsePatterns:Jfe,defaultParseWidth:"any"}),quarter:Rc({matchPatterns:ede,defaultMatchWidth:"wide",parsePatterns:tde,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Rc({matchPatterns:nde,defaultMatchWidth:"wide",parsePatterns:rde,defaultParseWidth:"any"}),day:Rc({matchPatterns:ide,defaultMatchWidth:"wide",parsePatterns:ade,defaultParseWidth:"any"}),dayPeriod:Rc({matchPatterns:sde,defaultMatchWidth:"any",parsePatterns:ode,defaultParseWidth:"any"})},ude={code:"en-US",formatDistance:Pfe,formatLong:zfe,formatRelative:Ife,localize:Kfe,match:lde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cde(e,t){const n=si(e,t==null?void 0:t.in);return Efe(n,kfe(n))+1}function fde(e,t){const n=si(e,t==null?void 0:t.in),r=+gp(n)-+Nfe(n);return Math.round(r/C6)+1}function M6(e,t){var m,g,y,b;const n=si(e,t==null?void 0:t.in),r=n.getFullYear(),a=bg(),o=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((b=(y=a.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??1,l=Ss((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=jf(l,t),f=Ss((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=jf(f,t);return+n>=+c?r+1:+n>=+h?r:r-1}function dde(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=M6(e,t),o=Ss((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),jf(o,t)}function hde(e,t){const n=si(e,t==null?void 0:t.in),r=+jf(n,t)-+dde(n,t);return Math.round(r/C6)+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"},n_={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),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=M6(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=k6(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=hde(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):nt(a,t.length)},I:function(e,t,n){const r=fde(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=cde(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 i_(r);case"XXXX":case"XX":return Xs(r);case"XXXXX":case"XXX":default:return Xs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return i_(r);case"xxxx":case"xx":return Xs(r);case"xxxxx":case"xxx":default:return Xs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+r_(r,":");case"OOOO":default:return"GMT"+Xs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+r_(r,":");case"zzzz":default:return"GMT"+Xs(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return nt(r,t.length)},T:function(e,t,n){return nt(+e,t.length)}};function r_(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+t+nt(o,2)}function i_(e,t){return e%60===0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):Xs(e,t)}function Xs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=nt(Math.trunc(r/60),2),o=nt(r%60,2);return n+a+t+o}const a_=(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"})}},P6=(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"})}},mde=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return a_(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}}",a_(r,t)).replace("{{time}}",P6(a,t))},pde={p:P6,P:mde},gde=/^D+$/,vde=/^Y+$/,yde=["D","DD","YY","YYYY"];function xde(e){return gde.test(e)}function bde(e){return vde.test(e)}function wde(e,t,n){const r=Sde(e,t,n);if(console.warn(r),yde.includes(e))throw new RangeError(r)}function Sde(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 jde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ade=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ode=/^'([^]*?)'?$/,Ede=/''/g,Nde=/[a-zA-Z]/;function s_(e,t,n){var m,g,y,b;const r=bg(),a=r.locale??ude,o=r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,l=r.weekStartsOn??((b=(y=r.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,c=si(e,n==null?void 0:n.in);if(!Cfe(c))throw new RangeError("Invalid time value");let f=t.match(Ade).map(S=>{const j=S[0];if(j==="p"||j==="P"){const A=pde[j];return A(S,a.formatLong)}return S}).join("").match(jde).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const j=S[0];if(j==="'")return{isToken:!1,value:Tde(S)};if(n_[j])return{isToken:!0,value:S};if(j.match(Nde))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;(bde(j)||xde(j))&&wde(j,t,String(e));const A=n_[j[0]];return A(c,j,a.localize,h)}).join("")}function Tde(e){const t=e.match(Ode);return t?t[1].replace(Ede,"'"):e}function Cde(){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}=J1(),{data:m}=Nn({queryKey:["queues"],queryFn:()=>fetch("/api/queues").then(C=>C.json())}),{data:g,isLoading:y}=Nn({queryKey:["schedules"],queryFn:()=>fetch("/api/schedules").then(C=>C.json())}),b=Ly({mutationFn:C=>fetch(`/api/schedules/run/${C}`,{method:"POST"}),onSuccess:(C,M)=>{e.invalidateQueries({queryKey:["queues"]}),h({type:"success",title:"Schedule Triggered",message:`Job ${M} has been manually pushed to the queue.`}),l(null)},onError:C=>{h({type:"error",title:"Trigger Failed",message:C.message||"Failed to run schedule manually."}),l(null)}}),S=Ly({mutationFn:C=>fetch(`/api/schedules/${C}`,{method:"DELETE"}),onSuccess:(C,M)=>{e.invalidateQueries({queryKey:["schedules"]}),h({type:"info",title:"Schedule Deleted",message:`Schedule ${M} was removed.`}),f(null)}}),j=Ly({mutationFn:C=>fetch("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),onSuccess:()=>{e.invalidateQueries({queryKey:["schedules"]}),n(!1),a({id:"",cron:"",queue:"default",className:"",payload:"{}"}),h({type:"success",title:"Schedule Registered",message:"New recurring task is now active."})}}),A=(g==null?void 0:g.schedules)||[],O=(m==null?void 0:m.queues)||[],T=C=>{C.preventDefault();try{const M=JSON.parse(r.payload);j.mutate({id:r.id,cron:r.cron,queue:r.queue,job:{className:r.className,payload:M}})}catch{alert("Invalid JSON payload")}};return p.jsxs("div",{className:"space-y-8 max-w-6xl",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Schedules"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest text-[10px]",children:"Manage recurring tasks and cron workflows."})]}),p.jsxs("button",{type:"button",onClick:()=>n(!0),className:"px-6 py-3 bg-primary text-primary-foreground rounded-xl flex items-center gap-2 text-sm font-black uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all",children:[p.jsx(_E,{size:18}),"New Schedule"]})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(Zn,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Active Schedules"}),p.jsx("p",{className:"text-2xl font-black",children:y?"...":A.length})]})]}),p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(ob,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Total Executions"}),p.jsx("p",{className:"text-2xl font-black",children:"---"})]})]}),p.jsxs("div",{className:"card-premium p-6 flex items-center gap-4",children:[p.jsx("div",{className:"w-12 h-12 rounded-2xl bg-green-500/10 flex items-center justify-center text-green-500",children:p.jsx(H1,{size:24})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Health Score"}),p.jsx("p",{className:"text-2xl font-black text-green-500",children:"99.8%"})]})]})]}),p.jsxs("div",{className:"flex gap-4 items-center",children:[p.jsxs("div",{className:"relative flex-1",children:[p.jsx(fu,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground/50",size:18}),p.jsx("input",{type:"text",placeholder:"Search schedules by name, cron or ID...",className:"w-full bg-muted/40 border-border/50 rounded-xl pl-12 pr-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all"})]}),p.jsx("button",{type:"button",className:"p-3 bg-muted/40 border border-border/50 rounded-xl hover:bg-muted/60 transition-all",children:p.jsx(F1,{size:18})})]}),y&&p.jsx("div",{className:"space-y-4",children:[1,2,3].map(C=>p.jsx("div",{className:"card-premium p-6 h-32 animate-pulse bg-muted/20"},C))}),A.length===0&&!y&&p.jsxs("div",{className:"card-premium p-20 flex flex-col items-center justify-center text-center opacity-60",children:[p.jsx("div",{className:"w-20 h-20 rounded-3xl bg-muted flex items-center justify-center mb-6",children:p.jsx(Jr,{size:32,className:"text-muted-foreground/30"})}),p.jsx("h3",{className:"text-xl font-bold mb-2",children:"No Scheduled Tasks Yet"}),p.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mb-8",children:"Register recurring jobs using the @gravito/stream scheduler to see them appear here."})]}),p.jsx("div",{className:"grid grid-cols-1 gap-4",children:A.map(C=>p.jsxs("div",{className:"card-premium p-6 group hover:border-primary/30 transition-all",children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"flex gap-5",children:[p.jsx("div",{className:"w-14 h-14 rounded-2xl bg-muted flex items-center justify-center text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary transition-all",children:p.jsx(Jr,{size:28})}),p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("h3",{className:"text-lg font-bold",children:C.id}),p.jsx("span",{className:"px-2 py-0.5 bg-green-500/10 text-green-500 text-[10px] font-black uppercase tracking-widest rounded",children:"Enabled"})]}),p.jsxs("div",{className:"flex items-center gap-4 text-xs font-bold text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Jr,{size:12})," ",C.cron]}),p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(Cf,{size:12})," ",C.queue]}),p.jsx("span",{className:"px-2 py-0.5 bg-muted rounded font-mono text-[10px] uppercase font-black",children:C.job.className})]})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{type:"button",disabled:b.isPending,onClick:()=>l(C.id),className:"px-4 py-2 bg-muted hover:bg-primary hover:text-primary-foreground rounded-lg text-[10px] font-black uppercase tracking-widest transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50",children:b.isPending&&b.variables===C.id?p.jsxs(p.Fragment,{children:[p.jsx(Ji,{size:12,className:"animate-spin"}),"Running..."]}):"Run Now"}),p.jsx("button",{type:"button",className:"p-2 hover:bg-muted rounded-lg transition-all text-muted-foreground",children:p.jsx(Zr,{size:18})}),p.jsx("button",{type:"button",onClick:()=>f(C.id),className:"p-2 hover:bg-red-500/10 hover:text-red-500 rounded-lg transition-all text-muted-foreground",children:p.jsx(jo,{size:18})})]})]}),p.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4 pt-6 border-t border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-muted flex items-center justify-center text-muted-foreground/60",children:p.jsx(ob,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Last Run"}),p.jsx("p",{className:"text-xs font-bold",children:C.lastRun?s_(new Date(C.lastRun),"HH:mm:ss MMM dd"):"Never"})]})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(U_,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/40 uppercase tracking-widest leading-none mb-1",children:"Next Run"}),p.jsx("p",{className:"text-xs font-bold",children:C.nextRun?s_(new Date(C.nextRun),"HH:mm:ss MMM dd"):"Scheduled"})]})]})]})]},C.id))}),p.jsx(ga,{children:t&&p.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[p.jsx(lt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>n(!1),className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),p.jsxs(lt.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-lg bg-card border border-border/50 rounded-3xl shadow-2xl overflow-hidden",children:[p.jsxs("div",{className:"p-6 border-b flex items-center justify-between bg-muted/5",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(_E,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold leading-none",children:"Register Schedule"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest mt-1",children:"Add new recurring job"})]})]}),p.jsx("button",{type:"button",onClick:()=>n(!1),className:"p-2 hover:bg-muted rounded-full transition-all",children:p.jsx(xp,{size:20})})]}),p.jsxs("form",{onSubmit:T,className:"p-6 space-y-5",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"schedule-id",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Schedule Identifier (ID)"}),p.jsx("input",{id:"schedule-id",required:!0,type:"text",placeholder:"daily-cleanup-job",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all",value:r.id,onChange:C=>a({...r,id:C.target.value})})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"cron-expression",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Cron Expression"}),p.jsx("input",{id:"cron-expression",required:!0,type:"text",placeholder:"* * * * *",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm font-mono focus:ring-1 focus:ring-primary/30 outline-none transition-all",value:r.cron,onChange:C=>a({...r,cron:C.target.value})})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"target-queue",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Target Queue"}),p.jsxs("div",{className:"relative",children:[p.jsx("select",{id:"target-queue",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all appearance-none cursor-pointer",value:r.queue,onChange:C=>a({...r,queue:C.target.value}),children:O.map(C=>p.jsx("option",{value:C.name,children:C.name},C.name))}),p.jsx(lU,{className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none",size:16})]})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"job-class-name",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Class Name"}),p.jsx("input",{id:"job-class-name",required:!0,type:"text",placeholder:"CleanupJob",className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm focus:ring-1 focus:ring-primary/30 outline-none transition-all font-mono",value:r.className,onChange:C=>a({...r,className:C.target.value})})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{htmlFor:"job-payload",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground ml-1",children:"Job Payload (JSON)"}),p.jsx("textarea",{id:"job-payload",rows:3,className:"w-full bg-muted/40 border-border/50 rounded-xl px-4 py-3 text-sm font-mono focus:ring-1 focus:ring-primary/30 outline-none transition-all resize-none",value:r.payload,onChange:C=>a({...r,payload:C.target.value})})]}),p.jsxs("div",{className:"pt-4 flex gap-3",children:[p.jsx("button",{type:"button",onClick:()=>n(!1),className:"flex-1 py-3 border border-border/50 rounded-xl text-xs font-black uppercase tracking-widest hover:bg-muted transition-all",children:"Cancel"}),p.jsx("button",{type:"submit",disabled:j.isPending,className:"flex-1 py-3 bg-primary text-primary-foreground rounded-xl text-xs font-black uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all disabled:opacity-50",children:j.isPending?"Registering...":"Register Schedule"})]})]})]})]})}),p.jsx(L1,{open:!!o,title:"Manual trigger confirmation",message:`Are you sure you want to run "${o}" immediately?
|
|
435
|
+
This will bypass the next scheduled time and push a job to the "${(N=A.find(C=>C.id===o))==null?void 0:N.queue}" queue.`,confirmText:"Run Now",variant:"info",isProcessing:b.isPending,onConfirm:()=>o&&b.mutate(o),onCancel:()=>l(null)}),p.jsx(L1,{open:!!c,title:"Delete Schedule",message:`Are you sure you want to delete "${c}"?
|
|
436
|
+
This action cannot be undone and recurring jobs for this schedule will stop.`,confirmText:"Delete",variant:"danger",isProcessing:S.isPending,onConfirm:()=>c&&S.mutate(c),onCancel:()=>f(null)})]})}function kde(){var f,h,m,g,y,b,S,j,A,O,T,N,C,M,_,k,D,B,K,$,Z,le,de,me,q,W,Y,oe,ne,R,H,ie,se,ve,Oe,fe,Qe,J,Te,Pe,ae,Dt,Be,Rt,zt,mr,Oa,Ro,zo,Lo,ad,sd;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 Ee=window.document.documentElement;ue==="system"?(window.matchMedia("(prefers-color-scheme: dark)").matches?Ee.classList.add("dark"):Ee.classList.remove("dark"),localStorage.removeItem("theme")):ue==="dark"?(Ee.classList.add("dark"),localStorage.setItem("theme","dark")):(Ee.classList.remove("dark"),localStorage.setItem("theme","light"))};return p.jsxs("div",{className:"space-y-8 max-w-4xl",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Settings"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Configure your Flux Console preferences."})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(KU,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Appearance"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Customize the look and feel"})]})]}),p.jsx("div",{className:"space-y-4",children:p.jsxs("div",{children:[p.jsx("label",{htmlFor:"theme-select",className:"text-sm font-bold mb-3 block",children:"Theme"}),p.jsx("div",{id:"theme-select",className:"flex gap-3",children:[{value:"light",icon:fb,label:"Light"},{value:"dark",icon:cb,label:"Dark"},{value:"system",icon:PE,label:"System"}].map(({value:ue,icon:Ee,label:De})=>p.jsxs("button",{type:"button",onClick:()=>c(ue),className: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:[p.jsx(Ee,{size:18}),p.jsx("span",{className:"font-bold text-sm",children:De})]},ue))})]})})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-500",children:p.jsx(lb,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Connection Status"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Redis and system connectivity"})]})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(yp,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Redis Connection"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),p.jsx("span",{className:"text-sm font-bold text-green-500",children:"Connected"})]})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(lb,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Redis URL"})]}),p.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.redisUrl)||"redis://localhost:6379"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Jr,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Service Uptime"})]}),p.jsx("span",{className:"text-sm font-mono font-bold",children:o!=null&&o.uptime?Mde(o.uptime):"Loading..."})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Ji,{size:16,className:"text-muted-foreground"}),p.jsx("span",{className:"font-medium",children:"Engine Version"})]}),p.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.engine)||"Loading..."})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-green-500/10 flex items-center justify-center text-green-500",children:p.jsx(Uc,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"System Information"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Runtime and memory details"})]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Node.js Version"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.node)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Environment"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:(o==null?void 0:o.env)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Memory (RSS)"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((f=o==null?void 0:o.memory)==null?void 0:f.rss)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Heap Used"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((h=o==null?void 0:o.memory)==null?void 0:h.heapUsed)||"..."})]}),p.jsxs("div",{className:"bg-muted/20 rounded-xl p-4",children:[p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest mb-1",children:"Total System RAM"}),p.jsx("p",{className:"text-lg font-mono font-bold",children:((m=o==null?void 0:o.memory)==null?void 0:m.total)||"..."})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-orange-500/10 flex items-center justify-center text-orange-500",children:p.jsx(hm,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Alerting & Notifications"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"System health and failure monitoring"})]})]}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60 mb-2",children:"Notification Channels"}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-[#4A154B]/10 flex items-center justify-center text-[#4A154B] dark:text-[#E01E5A]",children:p.jsx(hm,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Slack"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard notification webhook"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(b=(y=(g=l==null?void 0:l.config)==null?void 0:g.channels)==null?void 0:y.slack)!=null&&b.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(A=(j=(S=l==null?void 0:l.config)==null?void 0:S.channels)==null?void 0:j.slack)!=null&&A.enabled?"Enabled":"Disabled"})]}),p.jsx("div",{className:"flex gap-3",children:p.jsx("input",{type:"password",placeholder:"https://hooks.slack.com/services/...",defaultValue:((N=(T=(O=l==null?void 0:l.config)==null?void 0:O.channels)==null?void 0:T.slack)==null?void 0:N.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ee=ue.target.value;Ee!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.slack)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,slack:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.slack,webhookUrl:Ee}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-[#5865F2]/10 flex items-center justify-center text-[#5865F2]",children:p.jsx(PE,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Discord"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Webhook integration for servers"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className:ke("px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest transition-all",(_=(M=(C=l==null?void 0:l.config)==null?void 0:C.channels)==null?void 0:M.discord)!=null&&_.enabled?"bg-green-500 text-white shadow-lg shadow-green-500/20":"bg-muted-foreground/20 text-muted-foreground"),children:(B=(D=(k=l==null?void 0:l.config)==null?void 0:k.channels)==null?void 0:D.discord)!=null&&B.enabled?"Enabled":"Disabled"})]}),p.jsx("div",{className:"flex gap-3",children:p.jsx("input",{type:"password",placeholder:"https://discord.com/api/webhooks/...",defaultValue:((Z=($=(K=l==null?void 0:l.config)==null?void 0:K.channels)==null?void 0:$.discord)==null?void 0:Z.webhookUrl)||"",onBlur:async ue=>{var De,Ot,Kt,jn,dn;const Ee=ue.target.value;Ee!==((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.discord)==null?void 0:Kt.webhookUrl)&&(await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,discord:{...(dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.discord,webhookUrl:Ee}}})}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"flex-1 bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs font-mono outline-none focus:ring-1 focus:ring-primary/30"})})]}),p.jsxs("div",{className:"p-4 bg-muted/20 rounded-xl border border-border/10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-red-500/10 flex items-center justify-center text-red-500",children:p.jsx(Uc,{size:16})}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-bold",children:"Email (SMTP)"}),p.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:"Standard mail delivery"})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var De,Ot,Kt,jn,dn;const ue=!((Kt=(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email)!=null&&Kt.enabled),Ee=((dn=(jn=l==null?void 0:l.config)==null?void 0:jn.channels)==null?void 0:dn.email)||{};await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...Ee,enabled:ue}}})}),e.invalidateQueries({queryKey:["alerts-config"]})},className: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)&&p.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-4 animate-in fade-in slide-in-from-top-2",children:[p.jsxs("div",{className:"col-span-2 space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Destination Address"}),p.jsx("input",{placeholder:"admin@example.com",defaultValue:((se=(ie=(H=l==null?void 0:l.config)==null?void 0:H.channels)==null?void 0:ie.email)==null?void 0:se.to)||"",onBlur:async ue=>{var De,Ot;const Ee=ue.target.value;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(Ot=(De=l==null?void 0:l.config)==null?void 0:De.channels)==null?void 0:Ot.email,to:Ee}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"SMTP Host"}),p.jsx("input",{placeholder:"smtp.gmail.com",defaultValue:((fe=(Oe=(ve=l==null?void 0:l.config)==null?void 0:ve.channels)==null?void 0:Oe.email)==null?void 0:fe.smtpHost)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpHost:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Port"}),p.jsx("input",{type:"number",placeholder:"465",defaultValue:((Te=(J=(Qe=l==null?void 0:l.config)==null?void 0:Qe.channels)==null?void 0:J.email)==null?void 0:Te.smtpPort)||465,onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpPort:parseInt(ue.target.value,10)}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Username"}),p.jsx("input",{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 Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpUser:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"Password"}),p.jsx("input",{type:"password",placeholder:"••••••••",defaultValue:((zt=(Rt=(Be=l==null?void 0:l.config)==null?void 0:Be.channels)==null?void 0:Rt.email)==null?void 0:zt.smtpPass)||"",onBlur:async ue=>{var Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,smtpPass:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"col-span-2 space-y-1",children:[p.jsx("label",{className:"text-[9px] font-black uppercase text-muted-foreground/60",children:"From Address"}),p.jsx("input",{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 Ee,De;await fetch("/api/alerts/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.config,channels:{...l.config.channels,email:{...(De=(Ee=l==null?void 0:l.config)==null?void 0:Ee.channels)==null?void 0:De.email,from:ue.target.value}}})})},className:"w-full bg-background/50 border border-border/50 rounded-lg px-3 py-2 text-xs outline-none focus:ring-1 focus:ring-primary/30"})]})]})]})]}),p.jsxs("div",{className:"flex items-center justify-between mb-3 mt-8",children:[p.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground/60",children:"Active Rules"}),p.jsx("button",{onClick:()=>n(!t),className:"text-[10px] font-black uppercase tracking-widest text-primary hover:underline border-none bg-transparent cursor-pointer",children:t?"Cancel":"+ Add Rule"})]}),t&&p.jsxs("form",{onSubmit:async ue=>{ue.preventDefault();const Ee=new FormData(ue.currentTarget),De={id:Math.random().toString(36).substring(7),name:Ee.get("name"),type:Ee.get("type"),threshold:parseInt(Ee.get("threshold"),10),cooldownMinutes:parseInt(Ee.get("cooldown"),10),queue:Ee.get("queue")||void 0};await fetch("/api/alerts/rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(De)}),n(!1),e.invalidateQueries({queryKey:["alerts-config"]})},className:"p-4 bg-muted/40 rounded-xl border border-primary/20 space-y-4 mb-6",children:[p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[10px] font-black uppercase text-muted-foreground",children:"Rule Name"}),p.jsx("input",{name:"name",required:!0,placeholder:"High CPU",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-primary/30"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[10px] font-black uppercase text-muted-foreground",children:"Type"}),p.jsxs("select",{name:"type",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none cursor-pointer",children:[p.jsx("option",{value:"backlog",children:"Queue Backlog"}),p.jsx("option",{value:"failure",children:"High Failure Count"}),p.jsx("option",{value:"worker_lost",children:"Worker Loss"}),p.jsx("option",{value:"node_cpu",children:"Node CPU (%)"}),p.jsx("option",{value:"node_ram",children:"Node RAM (%)"})]})]})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[10px] font-black uppercase text-muted-foreground",children:"Threshold"}),p.jsx("input",{name:"threshold",type:"number",required:!0,defaultValue:"80",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[10px] font-black uppercase text-muted-foreground",children:"Cooldown (Min)"}),p.jsx("input",{name:"cooldown",type:"number",required:!0,defaultValue:"30",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("label",{className:"text-[10px] font-black uppercase text-muted-foreground",children:"Queue (Optional)"}),p.jsx("input",{name:"queue",placeholder:"default",className:"w-full bg-background border border-border/50 rounded-lg px-3 py-2 text-sm outline-none"})]})]}),p.jsx("button",{type:"submit",className:"w-full py-2 bg-primary text-primary-foreground rounded-lg text-xs font-black uppercase tracking-widest shadow-lg shadow-primary/20 cursor-pointer",children:"Save Alert Rule"})]}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:(zo=l==null?void 0:l.rules)==null?void 0:zo.map(ue=>p.jsxs("div",{className:"p-3 bg-muted/20 border border-border/10 rounded-xl flex items-center justify-between group",children:[p.jsxs("div",{className:"flex-1",children:[p.jsxs("p",{className:"text-[11px] font-black uppercase tracking-tight flex items-center gap-2",children:[ue.name,ue.queue&&p.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-primary/10 text-primary",children:ue.queue})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground opacity-70",children:ue.type==="backlog"?`Waiting > ${ue.threshold}`:ue.type==="failure"?`Failed > ${ue.threshold}`:ue.type==="worker_lost"?`Workers < ${ue.threshold}`:ue.type==="node_cpu"?`CPU > ${ue.threshold}%`:`RAM > ${ue.threshold}%`})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"px-2 py-0.5 bg-muted rounded text-[9px] font-bold text-muted-foreground",children:[ue.cooldownMinutes,"m"]}),p.jsx("button",{onClick:async()=>{confirm("Delete this alert rule?")&&(await fetch(`/api/alerts/rules/${ue.id}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["alerts-config"]}))},className:"p-1 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-all",children:p.jsx(jo,{size:12})})]})]},ue.id))}),p.jsxs("div",{className:"pt-4 flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border/30",children:[p.jsx("p",{className:"text-xs text-muted-foreground max-w-md",children:"Configure notification channels above to receive real-time alerts."}),p.jsx("button",{type:"button",onClick:async()=>{(await fetch("/api/alerts/test",{method:"POST"}).then(Ee=>Ee.json())).success&&alert("Test alert dispatched to all enabled channels.")},className:"w-full sm:w-auto px-4 py-2 border border-primary/20 hover:bg-primary/5 text-primary rounded-lg text-xs font-black uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-primary/10 cursor-pointer",children:"Test Dispatch Now"})]})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-red-500/10 flex items-center justify-center text-red-500",children:p.jsx(jo,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"Data Retention"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Manage persistent archive storage"})]})]}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold",children:"SQL Job Archive Preservation"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Keep archived jobs for a specific number of days before permanent removal."})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Auto-Cleanup"}),p.jsx("button",{onClick:async()=>{var Ee;const ue=!((Ee=l==null?void 0:l.maintenance)!=null&&Ee.autoCleanup);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,autoCleanup:ue})}),e.invalidateQueries({queryKey:["alerts-config"]})},className: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:p.jsx("div",{className:"w-3 h-3 bg-white rounded-full shadow-sm"})})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground/40",children:"Retention Days"}),p.jsxs("select",{className:"bg-muted border border-border/50 rounded-lg px-3 py-1.5 text-sm font-bold outline-none focus:ring-1 focus:ring-primary/30 transition-all cursor-pointer",value:((ad=l==null?void 0:l.maintenance)==null?void 0:ad.retentionDays)||30,onChange:async ue=>{const Ee=parseInt(ue.target.value,10);await fetch("/api/maintenance/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l.maintenance,retentionDays:Ee})}),e.invalidateQueries({queryKey:["alerts-config"]})},children:[p.jsx("option",{value:"7",children:"7 Days"}),p.jsx("option",{value:"15",children:"15 Days"}),p.jsx("option",{value:"30",children:"30 Days"}),p.jsx("option",{value:"90",children:"90 Days"}),p.jsx("option",{value:"365",children:"1 Year"})]})]})]})]}),p.jsxs("div",{className:"bg-red-500/5 border border-red-500/10 rounded-xl p-4 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Uc,{size:16,className:"text-red-500/60"}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"text-xs font-medium text-red-900/60 dark:text-red-400/60",children:"Manual prune will remove all jobs older than the selected period."}),((sd=l==null?void 0:l.maintenance)==null?void 0:sd.lastRun)&&p.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:["Last auto-cleanup run: ",new Date(l.maintenance.lastRun).toLocaleString()]})]})]}),p.jsx("button",{type:"button",onClick:async()=>{var Ee;const ue=((Ee=l==null?void 0:l.maintenance)==null?void 0:Ee.retentionDays)||30;if(confirm(`Are you sure you want to prune logs older than ${ue} days?`)){const De=await fetch("/api/maintenance/cleanup-archive",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({days:ue})}).then(Ot=>Ot.json());alert(`Cleanup complete. Removed ${De.deleted||0} archived jobs.`)}},className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-lg text-xs font-black uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-red-500/20",children:"Prune Archive Now"})]})]}),p.jsx("div",{className:"pt-4 border-t border-border/30",children:p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold",children:"Live Stats History (Redis)"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Minute-by-minute metrics used for dashboard charts."})]}),p.jsx("div",{className:"px-3 py-1 bg-muted rounded-full text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Auto-Prunes (60m)"})]})})]})]}),p.jsxs("section",{className:"card-premium p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 flex items-center justify-center text-amber-500",children:p.jsx($_,{size:20})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-bold",children:"About Flux Console"}),p.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:"Version and documentation"})]})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsx("span",{className:"font-medium",children:"Version"}),p.jsx("span",{className:"text-sm font-bold",children:(o==null?void 0:o.version)||"0.1.0-alpha.1"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border/30",children:[p.jsx("span",{className:"font-medium",children:"Package"}),p.jsx("code",{className:"text-sm bg-muted px-2 py-1 rounded font-mono",children:(o==null?void 0:o.package)||"@gravito/flux-console"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsx("span",{className:"font-medium",children:"Documentation"}),p.jsxs("a",{href:"https://github.com/gravito-framework/gravito",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-sm text-primary hover:underline font-bold",children:["View Docs ",p.jsx(jU,{size:14})]})]})]})]})]})}function Mde(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 Pde(){const e=ma(),{isPending:t,error:n,data:r}=Nn({queryKey:["workers"],queryFn:async()=>(await fetch("/api/workers")).json(),refetchInterval:5e3});w.useEffect(()=>{const g=y=>{var b;(b=y.detail)!=null&&b.workers&&e.setQueryData(["workers"],{workers:y.detail.workers})};return window.addEventListener("flux-stats-update",g),()=>window.removeEventListener("flux-stats-update",g)},[e]);const a=(r==null?void 0:r.workers)||[],o=a.filter(g=>g.status==="online"),l=a.filter(g=>g.status!=="online"),c=a.reduce((g,y)=>{var b;return g+(((b=y.metrics)==null?void 0:b.cpu)||0)},0),f=a.length>0?c/a.length:0,h=a.reduce((g,y)=>{var b,S;return g+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.rss)||0)},0),m=a.reduce((g,y)=>{var b,S;return g+(((S=(b=y.metrics)==null?void 0:b.ram)==null?void 0:S.total)||0)},0);return t?p.jsxs("div",{className:"flex flex-col items-center justify-center p-20 space-y-6",children:[p.jsx(Ji,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Loading workers..."})]}):n?p.jsx("div",{className:"text-center p-20",children:p.jsxs("div",{className:"bg-red-500/10 text-red-500 p-10 rounded-3xl border border-red-500/20 max-w-md mx-auto shadow-2xl",children:[p.jsx(Zr,{size:56,className:"mx-auto mb-6 opacity-80"}),p.jsx("h3",{className:"text-2xl font-black mb-2 uppercase tracking-tight",children:"Failed to Load Workers"}),p.jsx("p",{className:"text-sm font-medium opacity-70",children:n.message})]})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex justify-between items-end",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-4xl font-black tracking-tighter",children:"Worker Nodes"}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm font-bold opacity-60 uppercase tracking-widest",children:"Monitor and manage cluster processing nodes."})]}),p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-black text-green-500 bg-green-500/10 px-4 py-2 rounded-full border border-green-500/20 uppercase tracking-[0.2em]",children:[p.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full shadow-[0_0_8px_rgba(34,197,94,0.6)] animate-pulse"}),o.length," Online"]})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-green-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(yp,{size:16,className:"text-green-500"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Online Nodes"})]}),p.jsx("p",{className:"text-3xl font-black text-green-500",children:o.length})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-muted/20 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(q_,{size:16,className:"text-muted-foreground"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Offline Nodes"})]}),p.jsx("p",{className:"text-3xl font-black text-muted-foreground",children:l.length})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-primary/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(kU,{size:16,className:"text-primary"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Avg Load"})]}),p.jsx("p",{className:"text-3xl font-black",children:f.toFixed(2)})]})]}),p.jsxs("div",{className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-indigo-500/10 rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(qU,{size:16,className:"text-indigo-500"}),p.jsx("p",{className:"text-[10px] font-black text-muted-foreground/50 uppercase tracking-widest",children:"Cluster RAM"})]}),p.jsxs("div",{className:"flex items-baseline gap-1",children:[p.jsx("p",{className:"text-3xl font-black text-indigo-500",children:(h/1024).toFixed(2)}),m>0&&p.jsxs("span",{className:"text-sm font-bold text-muted-foreground opacity-50",children:["/ ",(m/1024).toFixed(0)," GB"]})]})]})]})]}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:[a.length===0&&p.jsxs("div",{className:"col-span-full py-20 text-center text-muted-foreground/30",children:[p.jsx(Zc,{size:48,className:"mx-auto mb-4 opacity-20 animate-pulse"}),p.jsx("p",{className:"text-sm font-bold uppercase tracking-widest",children:"No worker nodes connected"}),p.jsx("p",{className:"text-xs opacity-60 mt-2",children:"Start a worker to see it appear here"})]}),a.map((g,y)=>p.jsxs(lt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:y*.1},className:"card-premium p-6 relative overflow-hidden group",children:[p.jsx("div",{className:ke("absolute left-0 top-0 bottom-0 w-1.5 transition-all",g.status==="online"?"bg-green-500":"bg-muted-foreground/30")}),p.jsxs("div",{className:"flex items-start justify-between mb-6",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:ke("w-12 h-12 rounded-2xl flex items-center justify-center transition-all",g.status==="online"?"bg-green-500/10 text-green-500":"bg-muted text-muted-foreground"),children:p.jsx(Zc,{size:24})}),p.jsx("div",{className:ke("absolute -bottom-1 -right-1 w-4 h-4 rounded-full border-2 border-card",g.status==="online"?"bg-green-500 animate-pulse":"bg-muted-foreground")})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-black tracking-tight text-lg group-hover:text-primary transition-colors",children:g.id}),p.jsxs("p",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-widest",children:["PID: ",g.pid]})]})]}),p.jsx("span",{className:ke("px-3 py-1 rounded-full text-[9px] font-black uppercase tracking-widest border",g.status==="online"?"bg-green-500/10 text-green-500 border-green-500/20":"bg-muted/40 text-muted-foreground border-transparent"),children:g.status})]}),g.metrics&&p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[p.jsxs("span",{className:"text-muted-foreground",children:["Load (Cap: ",g.metrics.cores||"-",")"]}),p.jsx("span",{className:ke(g.metrics.cpu>(g.metrics.cores||4)?"text-red-500":g.metrics.cpu>(g.metrics.cores||4)*.7?"text-amber-500":"text-green-500"),children:g.metrics.cpu.toFixed(2)})]}),p.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,g.metrics.cpu/(g.metrics.cores||1)*100)}%`},transition:{duration:.5},className:ke("h-full transition-colors",g.metrics.cpu>(g.metrics.cores||4)?"bg-red-500":g.metrics.cpu>(g.metrics.cores||4)*.7?"bg-amber-500":"bg-green-500")})})]}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-widest mb-2",children:[p.jsx("span",{className:"text-muted-foreground",children:"Memory (RSS / Total)"}),p.jsxs("span",{className:"text-indigo-500",children:[(g.metrics.ram.rss/1024).toFixed(2)," GB /"," ",g.metrics.ram.total?(g.metrics.ram.total/1024).toFixed(0):"-"," ","GB"]})]}),p.jsx("div",{className:"h-2 w-full bg-muted rounded-full overflow-hidden",children:p.jsx(lt.div,{initial:{width:0},animate:{width:`${Math.min(100,g.metrics.ram.rss/(g.metrics.ram.total||2048)*100)}%`},transition:{duration:.5},className:"h-full bg-indigo-500"})})]})]}),p.jsxs("div",{className:"mt-6 pt-4 border-t border-border/30 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[p.jsx(Jr,{size:14}),p.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest",children:"Uptime"})]}),p.jsx("span",{className:"font-mono text-sm font-bold",children:_de(g.uptime)})]})]},g.id))]})]})}function _de(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 Dde=new N_;function Rde(){const{isAuthenticated:e,isAuthEnabled:t,isLoading:n}=Sp();return n?p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:p.jsxs("div",{className:"flex flex-col items-center gap-4",children:[p.jsx(Ji,{className:"animate-spin text-primary",size:48}),p.jsx("p",{className:"text-muted-foreground font-bold uppercase tracking-[0.3em] text-xs",children:"Initializing..."})]})}):t&&!e?p.jsx(TK,{}):p.jsx(F$,{children:p.jsx(NK,{children:p.jsxs(f$,{children:[p.jsx(es,{path:"/",element:p.jsx(dfe,{})}),p.jsx(es,{path:"/queues",element:p.jsx(Sfe,{})}),p.jsx(es,{path:"/schedules",element:p.jsx(Cde,{})}),p.jsx(es,{path:"/workers",element:p.jsx(Pde,{})}),p.jsx(es,{path:"/metrics",element:p.jsx(nfe,{})}),p.jsx(es,{path:"/pulse",element:p.jsx(wfe,{})}),p.jsx(es,{path:"/settings",element:p.jsx(kde,{})})]})})})}function zde(){return p.jsx(C_,{client:Dde,children:p.jsx(R$,{children:p.jsx(H$,{children:p.jsx(Rde,{})})})})}const Lde=new N_;H8.createRoot(document.getElementById("root")).render(p.jsx(Me.StrictMode,{children:p.jsx(C_,{client:Lde,children:p.jsx(zde,{})})}));
|