opencode-dashboard 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ var jS=Object.defineProperty;var _S=(n,a,s)=>a in n?jS(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s;var Uc=(n,a,s)=>_S(n,typeof a!="symbol"?a+"":a,s);function zS(n,a){for(var s=0;s<a.length;s++){const o=a[s];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in n)){const f=Object.getOwnPropertyDescriptor(o,r);f&&Object.defineProperty(n,r,f.get?f:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const f of r)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(r){const f={};return r.integrity&&(f.integrity=r.integrity),r.referrerPolicy&&(f.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?f.credentials="include":r.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(r){if(r.ep)return;r.ep=!0;const f=s(r);fetch(r.href,f)}})();function Cv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hc={exports:{}},Ql={};/**
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 Dg;function VS(){if(Dg)return Ql;Dg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,r,f){var d=null;if(f!==void 0&&(d=""+f),r.key!==void 0&&(d=""+r.key),"key"in r){f={};for(var h in r)h!=="key"&&(f[h]=r[h])}else f=r;return r=f.ref,{$$typeof:n,type:o,key:d,ref:r!==void 0?r:null,props:f}}return Ql.Fragment=a,Ql.jsx=s,Ql.jsxs=s,Ql}var Og;function LS(){return Og||(Og=1,Hc.exports=VS()),Hc.exports}var A=LS(),Gc={exports:{}},ut={};/**
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 Ng;function BS(){if(Ng)return ut;Ng=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=x&&w[x]||w["@@iterator"],typeof w=="function"?w:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,D={};function N(w,K,J){this.props=w,this.context=K,this.refs=D,this.updater=J||C}N.prototype.isReactComponent={},N.prototype.setState=function(w,K){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,K,"setState")},N.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function V(){}V.prototype=N.prototype;function U(w,K,J){this.props=w,this.context=K,this.refs=D,this.updater=J||C}var G=U.prototype=new V;G.constructor=U,M(G,N.prototype),G.isPureReactComponent=!0;var q=Array.isArray;function Q(){}var P={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function lt(w,K,J){var $=J.ref;return{$$typeof:n,type:w,key:K,ref:$!==void 0?$:null,props:J}}function st(w,K){return lt(w.type,K,w.props)}function pt(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function tt(w){var K={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return K[J]})}var Tt=/\/+/g;function ht(w,K){return typeof w=="object"&&w!==null&&w.key!=null?tt(""+w.key):K.toString(36)}function wt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(Q,Q):(w.status="pending",w.then(function(K){w.status==="pending"&&(w.status="fulfilled",w.value=K)},function(K){w.status==="pending"&&(w.status="rejected",w.reason=K)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function L(w,K,J,$,rt){var mt=typeof w;(mt==="undefined"||mt==="boolean")&&(w=null);var St=!1;if(w===null)St=!0;else switch(mt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(w.$$typeof){case n:case a:St=!0;break;case y:return St=w._init,L(St(w._payload),K,J,$,rt)}}if(St)return rt=rt(w),St=$===""?"."+ht(w,0):$,q(rt)?(J="",St!=null&&(J=St.replace(Tt,"$&/")+"/"),L(rt,K,J,"",function(Hn){return Hn})):rt!=null&&(pt(rt)&&(rt=st(rt,J+(rt.key==null||w&&w.key===rt.key?"":(""+rt.key).replace(Tt,"$&/")+"/")+St)),K.push(rt)),1;St=0;var $t=$===""?".":$+":";if(q(w))for(var Ut=0;Ut<w.length;Ut++)$=w[Ut],mt=$t+ht($,Ut),St+=L($,K,J,mt,rt);else if(Ut=T(w),typeof Ut=="function")for(w=Ut.call(w),Ut=0;!($=w.next()).done;)$=$.value,mt=$t+ht($,Ut++),St+=L($,K,J,mt,rt);else if(mt==="object"){if(typeof w.then=="function")return L(wt(w),K,J,$,rt);throw K=String(w),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return St}function Z(w,K,J){if(w==null)return w;var $=[],rt=0;return L(w,$,"","",function(mt){return K.call(J,mt,rt++)}),$}function k(w){if(w._status===-1){var K=w._result;K=K(),K.then(function(J){(w._status===0||w._status===-1)&&(w._status=1,w._result=J)},function(J){(w._status===0||w._status===-1)&&(w._status=2,w._result=J)}),w._status===-1&&(w._status=0,w._result=K)}if(w._status===1)return w._result.default;throw w._result}var et=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},ot={map:Z,forEach:function(w,K,J){Z(w,function(){K.apply(this,arguments)},J)},count:function(w){var K=0;return Z(w,function(){K++}),K},toArray:function(w){return Z(w,function(K){return K})||[]},only:function(w){if(!pt(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ut.Activity=v,ut.Children=ot,ut.Component=N,ut.Fragment=s,ut.Profiler=r,ut.PureComponent=U,ut.StrictMode=o,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ut.__COMPILER_RUNTIME={__proto__:null,c:function(w){return P.H.useMemoCache(w)}},ut.cache=function(w){return function(){return w.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(w,K,J){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var $=M({},w.props),rt=w.key;if(K!=null)for(mt in K.key!==void 0&&(rt=""+K.key),K)!F.call(K,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&K.ref===void 0||($[mt]=K[mt]);var mt=arguments.length-2;if(mt===1)$.children=J;else if(1<mt){for(var St=Array(mt),$t=0;$t<mt;$t++)St[$t]=arguments[$t+2];$.children=St}return lt(w.type,rt,$)},ut.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},ut.createElement=function(w,K,J){var $,rt={},mt=null;if(K!=null)for($ in K.key!==void 0&&(mt=""+K.key),K)F.call(K,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(rt[$]=K[$]);var St=arguments.length-2;if(St===1)rt.children=J;else if(1<St){for(var $t=Array(St),Ut=0;Ut<St;Ut++)$t[Ut]=arguments[Ut+2];rt.children=$t}if(w&&w.defaultProps)for($ in St=w.defaultProps,St)rt[$]===void 0&&(rt[$]=St[$]);return lt(w,mt,rt)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(w){return{$$typeof:h,render:w}},ut.isValidElement=pt,ut.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:k}},ut.memo=function(w,K){return{$$typeof:m,type:w,compare:K===void 0?null:K}},ut.startTransition=function(w){var K=P.T,J={};P.T=J;try{var $=w(),rt=P.S;rt!==null&&rt(J,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Q,et)}catch(mt){et(mt)}finally{K!==null&&J.types!==null&&(K.types=J.types),P.T=K}},ut.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ut.use=function(w){return P.H.use(w)},ut.useActionState=function(w,K,J){return P.H.useActionState(w,K,J)},ut.useCallback=function(w,K){return P.H.useCallback(w,K)},ut.useContext=function(w){return P.H.useContext(w)},ut.useDebugValue=function(){},ut.useDeferredValue=function(w,K){return P.H.useDeferredValue(w,K)},ut.useEffect=function(w,K){return P.H.useEffect(w,K)},ut.useEffectEvent=function(w){return P.H.useEffectEvent(w)},ut.useId=function(){return P.H.useId()},ut.useImperativeHandle=function(w,K,J){return P.H.useImperativeHandle(w,K,J)},ut.useInsertionEffect=function(w,K){return P.H.useInsertionEffect(w,K)},ut.useLayoutEffect=function(w,K){return P.H.useLayoutEffect(w,K)},ut.useMemo=function(w,K){return P.H.useMemo(w,K)},ut.useOptimistic=function(w,K){return P.H.useOptimistic(w,K)},ut.useReducer=function(w,K,J){return P.H.useReducer(w,K,J)},ut.useRef=function(w){return P.H.useRef(w)},ut.useState=function(w){return P.H.useState(w)},ut.useSyncExternalStore=function(w,K,J){return P.H.useSyncExternalStore(w,K,J)},ut.useTransition=function(){return P.H.useTransition()},ut.version="19.2.4",ut}var jg;function _f(){return jg||(jg=1,Gc.exports=BS()),Gc.exports}var S=_f();const wv=Cv(S),zf=zS({__proto__:null,default:wv},[S]);var Yc={exports:{}},kl={},qc={exports:{}},Pc={};/**
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 _g;function US(){return _g||(_g=1,(function(n){function a(L,Z){var k=L.length;L.push(Z);t:for(;0<k;){var et=k-1>>>1,ot=L[et];if(0<r(ot,Z))L[et]=Z,L[k]=ot,k=et;else break t}}function s(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var Z=L[0],k=L.pop();if(k!==Z){L[0]=k;t:for(var et=0,ot=L.length,w=ot>>>1;et<w;){var K=2*(et+1)-1,J=L[K],$=K+1,rt=L[$];if(0>r(J,k))$<ot&&0>r(rt,J)?(L[et]=rt,L[$]=k,et=$):(L[et]=J,L[K]=k,et=K);else if($<ot&&0>r(rt,k))L[et]=rt,L[$]=k,et=$;else break t}}return Z}function r(L,Z){var k=L.sortIndex-Z.sortIndex;return k!==0?k:L.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,x=3,T=!1,C=!1,M=!1,D=!1,N=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(L){for(var Z=s(m);Z!==null;){if(Z.callback===null)o(m);else if(Z.startTime<=L)o(m),Z.sortIndex=Z.expirationTime,a(p,Z);else break;Z=s(m)}}function q(L){if(M=!1,G(L),!C)if(s(p)!==null)C=!0,Q||(Q=!0,tt());else{var Z=s(m);Z!==null&&wt(q,Z.startTime-L)}}var Q=!1,P=-1,F=5,lt=-1;function st(){return D?!0:!(n.unstable_now()-lt<F)}function pt(){if(D=!1,Q){var L=n.unstable_now();lt=L;var Z=!0;try{t:{C=!1,M&&(M=!1,V(P),P=-1),T=!0;var k=x;try{e:{for(G(L),v=s(p);v!==null&&!(v.expirationTime>L&&st());){var et=v.callback;if(typeof et=="function"){v.callback=null,x=v.priorityLevel;var ot=et(v.expirationTime<=L);if(L=n.unstable_now(),typeof ot=="function"){v.callback=ot,G(L),Z=!0;break e}v===s(p)&&o(p),G(L)}else o(p);v=s(p)}if(v!==null)Z=!0;else{var w=s(m);w!==null&&wt(q,w.startTime-L),Z=!1}}break t}finally{v=null,x=k,T=!1}Z=void 0}}finally{Z?tt():Q=!1}}}var tt;if(typeof U=="function")tt=function(){U(pt)};else if(typeof MessageChannel<"u"){var Tt=new MessageChannel,ht=Tt.port2;Tt.port1.onmessage=pt,tt=function(){ht.postMessage(null)}}else tt=function(){N(pt,0)};function wt(L,Z){P=N(function(){L(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(L){switch(x){case 1:case 2:case 3:var Z=3;break;default:Z=x}var k=x;x=Z;try{return L()}finally{x=k}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var k=x;x=L;try{return Z()}finally{x=k}},n.unstable_scheduleCallback=function(L,Z,k){var et=n.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?et+k:et):k=et,L){case 1:var ot=-1;break;case 2:ot=250;break;case 5:ot=1073741823;break;case 4:ot=1e4;break;default:ot=5e3}return ot=k+ot,L={id:y++,callback:Z,priorityLevel:L,startTime:k,expirationTime:ot,sortIndex:-1},k>et?(L.sortIndex=k,a(m,L),s(p)===null&&L===s(m)&&(M?(V(P),P=-1):M=!0,wt(q,k-et))):(L.sortIndex=ot,a(p,L),C||T||(C=!0,Q||(Q=!0,tt()))),L},n.unstable_shouldYield=st,n.unstable_wrapCallback=function(L){var Z=x;return function(){var k=x;x=Z;try{return L.apply(this,arguments)}finally{x=k}}}})(Pc)),Pc}var zg;function HS(){return zg||(zg=1,qc.exports=US()),qc.exports}var Xc={exports:{}},oe={};/**
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 Vg;function GS(){if(Vg)return oe;Vg=1;var n=_f();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function f(p,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:v==null?null:""+v,children:p,containerInfo:m,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,oe.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(p,m,null,y)},oe.flushSync=function(p){var m=d.T,y=o.p;try{if(d.T=null,o.p=2,p)return p()}finally{d.T=m,o.p=y,o.d.f()}},oe.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},oe.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},oe.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:T}):y==="script"&&o.d.X(p,{crossOrigin:v,integrity:x,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},oe.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);o.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(p)},oe.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin);o.d.L(p,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},oe.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);o.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(p)},oe.requestFormReset=function(p){o.d.r(p)},oe.unstable_batchedUpdates=function(p,m){return p(m)},oe.useFormState=function(p,m,y){return d.H.useFormState(p,m,y)},oe.useFormStatus=function(){return d.H.useHostTransitionStatus()},oe.version="19.2.4",oe}var Lg;function Mv(){if(Lg)return Xc.exports;Lg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xc.exports=GS(),Xc.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 Bg;function YS(){if(Bg)return kl;Bg=1;var n=HS(),a=_f(),s=Mv();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var i=t,l=e;;){var u=i.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){i=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===i)return p(u),t;if(c===l)return p(u),e;c=c.sibling}throw Error(o(188))}if(i.return!==l.return)i=u,l=c;else{for(var g=!1,b=u.child;b;){if(b===i){g=!0,i=u,l=c;break}if(b===l){g=!0,l=u,i=c;break}b=b.sibling}if(!g){for(b=c.child;b;){if(b===i){g=!0,i=c,l=u;break}if(b===l){g=!0,l=c,i=u;break}b=b.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),U=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),st=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var Tt=Symbol.for("react.client.reference");function ht(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Tt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case M:return"Fragment";case N:return"Profiler";case D:return"StrictMode";case q:return"Suspense";case Q:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case U:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:ht(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return ht(t(e))}catch{}}return null}var wt=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},et=[],ot=-1;function w(t){return{current:t}}function K(t){0>ot||(t.current=et[ot],et[ot]=null,ot--)}function J(t,e){ot++,et[ot]=t.current,t.current=e}var $=w(null),rt=w(null),mt=w(null),St=w(null);function $t(t,e){switch(J(mt,e),J(rt,t),J($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?$p(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=$p(e),t=Ip(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}K($),J($,t)}function Ut(){K($),K(rt),K(mt)}function Hn(t){t.memoizedState!==null&&J(St,t);var e=$.current,i=Ip(e,t.type);e!==i&&(J(rt,t),J($,i))}function Ai(t){rt.current===t&&(K($),K(rt)),St.current===t&&(K(St),Pl._currentValue=k)}var Fi,Gn;function $e(t){if(Fi===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Fi=e&&e[1]||"",Gn=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Fi+t+Gn}var Ia=!1;function tl(t,e){if(!t||Ia)return"";Ia=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(B){var z=B}Reflect.construct(t,[],X)}else{try{X.call()}catch(B){z=B}t.call(X.prototype)}}else{try{throw Error()}catch(B){z=B}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(B){if(B&&z&&typeof B.stack=="string")return[B.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],b=c[1];if(g&&b){var E=g.split(`
44
+ `),_=b.split(`
45
+ `);for(u=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;u<_.length&&!_[u].includes("DetermineComponentFrameRoot");)u++;if(l===E.length||u===_.length)for(l=E.length-1,u=_.length-1;1<=l&&0<=u&&E[l]!==_[u];)u--;for(;1<=l&&0<=u;l--,u--)if(E[l]!==_[u]){if(l!==1||u!==1)do if(l--,u--,0>u||E[l]!==_[u]){var H=`
46
+ `+E[l].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=l&&0<=u);break}}}finally{Ia=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?$e(i):""}function Ar(t,e){switch(t.tag){case 26:case 27:case 5:return $e(t.type);case 16:return $e("Lazy");case 13:return t.child!==e&&e!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return tl(t.type,!1);case 11:return tl(t.type.render,!1);case 1:return tl(t.type,!0);case 31:return $e("Activity");default:return""}}function bs(t){try{var e="",i=null;do e+=Ar(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Yn=Object.prototype.hasOwnProperty,Er=n.unstable_scheduleCallback,Cr=n.unstable_cancelCallback,cx=n.unstable_shouldYield,fx=n.unstable_requestPaint,ve=n.unstable_now,dx=n.unstable_getCurrentPriorityLevel,Od=n.unstable_ImmediatePriority,Nd=n.unstable_UserBlockingPriority,xs=n.unstable_NormalPriority,hx=n.unstable_LowPriority,jd=n.unstable_IdlePriority,mx=n.log,px=n.unstable_setDisableYieldValue,el=null,be=null;function qn(t){if(typeof mx=="function"&&px(t),be&&typeof be.setStrictMode=="function")try{be.setStrictMode(el,t)}catch{}}var xe=Math.clz32?Math.clz32:vx,gx=Math.log,yx=Math.LN2;function vx(t){return t>>>=0,t===0?32:31-(gx(t)/yx|0)|0}var Ss=256,Ts=262144,As=4194304;function Ei(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Es(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var u=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?u=Ei(l):(g&=b,g!==0?u=Ei(g):i||(i=b&~t,i!==0&&(u=Ei(i))))):(b=l&~c,b!==0?u=Ei(b):g!==0?u=Ei(g):i||(i=l&~t,i!==0&&(u=Ei(i)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:u}function nl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function bx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 _d(){var t=As;return As<<=1,(As&62914560)===0&&(As=4194304),t}function wr(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function il(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function xx(t,e,i,l,u,c){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var b=t.entanglements,E=t.expirationTimes,_=t.hiddenUpdates;for(i=g&~i;0<i;){var H=31-xe(i),X=1<<H;b[H]=0,E[H]=-1;var z=_[H];if(z!==null)for(_[H]=null,H=0;H<z.length;H++){var B=z[H];B!==null&&(B.lane&=-536870913)}i&=~X}l!==0&&zd(t,l,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function zd(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-xe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Vd(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-xe(i),u=1<<l;u&e|t[l]&e&&(t[l]|=e),i&=~u}}function Ld(t,e){var i=e&-e;return i=(i&42)!==0?1:Mr(i),(i&(t.suspendedLanes|e))!==0?0:i}function Mr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Rr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bd(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:Tg(t.type))}function Ud(t,e){var i=Z.p;try{return Z.p=t,e()}finally{Z.p=i}}var Pn=Math.random().toString(36).slice(2),ee="__reactFiber$"+Pn,fe="__reactProps$"+Pn,Ji="__reactContainer$"+Pn,Dr="__reactEvents$"+Pn,Sx="__reactListeners$"+Pn,Tx="__reactHandles$"+Pn,Hd="__reactResources$"+Pn,al="__reactMarker$"+Pn;function Or(t){delete t[ee],delete t[fe],delete t[Dr],delete t[Sx],delete t[Tx]}function Wi(t){var e=t[ee];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Ji]||i[ee]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=sg(t);t!==null;){if(i=t[ee])return i;t=sg(t)}return e}t=i,i=t.parentNode}return null}function $i(t){if(t=t[ee]||t[Ji]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ll(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ii(t){var e=t[Hd];return e||(e=t[Hd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[al]=!0}var Gd=new Set,Yd={};function Ci(t,e){ta(t,e),ta(t+"Capture",e)}function ta(t,e){for(Yd[t]=e,t=0;t<e.length;t++)Gd.add(e[t])}var Ax=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]*$"),qd={},Pd={};function Ex(t){return Yn.call(Pd,t)?!0:Yn.call(qd,t)?!1:Ax.test(t)?Pd[t]=!0:(qd[t]=!0,!1)}function Cs(t,e,i){if(Ex(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function ws(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function hn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cx(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Nr(t){if(!t._valueTracker){var e=Xd(t)?"checked":"value";t._valueTracker=Cx(t,e,""+t[e])}}function Zd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=Xd(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ms(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wx=/[\n"\\]/g;function _e(t){return t.replace(wx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function jr(t,e,i,l,u,c,g,b){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?_r(t,g,je(e)):i!=null?_r(t,g,je(i)):l!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+je(b):t.removeAttribute("name")}function Kd(t,e,i,l,u,c,g,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Nr(t);return}i=i!=null?""+je(i):"",e=e!=null?""+je(e):i,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),Nr(t)}function _r(t,e,i){e==="number"&&Ms(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ea(t,e,i,l){if(t=t.options,e){e={};for(var u=0;u<i.length;u++)e["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=e.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&l&&(t[i].defaultSelected=!0)}else{for(i=""+je(i),e=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Qd(t,e,i){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+je(i):""}function kd(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(o(92));if(wt(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=je(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Nr(t)}function na(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var Mx=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 Fd(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||Mx.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Jd(t,e,i){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&i[u]!==l&&Fd(t,u,l)}else for(var c in e)e.hasOwnProperty(c)&&Fd(t,c,e[c])}function zr(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Rx=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"]]),Dx=/^[\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 Rs(t){return Dx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function mn(){}var Vr=null;function Lr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ia=null,aa=null;function Wd(t){var e=$i(t);if(e&&(t=e.stateNode)){var i=t[fe]||null;t:switch(t=e.stateNode,e.type){case"input":if(jr(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var u=l[fe]||null;if(!u)throw Error(o(90));jr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&Zd(l)}break t;case"textarea":Qd(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&ea(t,!!i.multiple,e,!1)}}}var Br=!1;function $d(t,e,i){if(Br)return t(e,i);Br=!0;try{var l=t(e);return l}finally{if(Br=!1,(ia!==null||aa!==null)&&(go(),ia&&(e=ia,t=aa,aa=ia=null,Wd(e),t)))for(e=0;e<t.length;e++)Wd(t[e])}}function sl(t,e){var i=t.stateNode;if(i===null)return null;var l=i[fe]||null;if(l===null)return null;i=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,e,typeof i));return i}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ur=!1;if(pn)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){Ur=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{Ur=!1}var Xn=null,Hr=null,Ds=null;function Id(){if(Ds)return Ds;var t,e=Hr,i=e.length,l,u="value"in Xn?Xn.value:Xn.textContent,c=u.length;for(t=0;t<i&&e[t]===u[t];t++);var g=i-t;for(l=1;l<=g&&e[i-l]===u[c-l];l++);return Ds=u.slice(t,1<l?1-l:void 0)}function Os(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ns(){return!0}function th(){return!1}function de(t){function e(i,l,u,c,g){this._reactName=i,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(i=t[b],this[b]=i?i(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ns:th,this.isPropagationStopped=th,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ns)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ns)},persist:function(){},isPersistent:Ns}),e}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},js=de(wi),rl=v({},wi,{view:0,detail:0}),Ox=de(rl),Gr,Yr,ul,_s=v({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ul&&(ul&&t.type==="mousemove"?(Gr=t.screenX-ul.screenX,Yr=t.screenY-ul.screenY):Yr=Gr=0,ul=t),Gr)},movementY:function(t){return"movementY"in t?t.movementY:Yr}}),eh=de(_s),Nx=v({},_s,{dataTransfer:0}),jx=de(Nx),_x=v({},rl,{relatedTarget:0}),qr=de(_x),zx=v({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),Vx=de(zx),Lx=v({},wi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bx=de(Lx),Ux=v({},wi,{data:0}),nh=de(Ux),Hx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gx={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"},Yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Yx[t])?!!e[t]:!1}function Pr(){return qx}var Px=v({},rl,{key:function(t){if(t.key){var e=Hx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Os(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pr,charCode:function(t){return t.type==="keypress"?Os(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Os(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Xx=de(Px),Zx=v({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ih=de(Zx),Kx=v({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pr}),Qx=de(Kx),kx=v({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fx=de(kx),Jx=v({},_s,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Wx=de(Jx),$x=v({},wi,{newState:0,oldState:0}),Ix=de($x),t1=[9,13,27,32],Xr=pn&&"CompositionEvent"in window,cl=null;pn&&"documentMode"in document&&(cl=document.documentMode);var e1=pn&&"TextEvent"in window&&!cl,ah=pn&&(!Xr||cl&&8<cl&&11>=cl),lh=" ",sh=!1;function oh(t,e){switch(t){case"keyup":return t1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var la=!1;function n1(t,e){switch(t){case"compositionend":return rh(e);case"keypress":return e.which!==32?null:(sh=!0,lh);case"textInput":return t=e.data,t===lh&&sh?null:t;default:return null}}function i1(t,e){if(la)return t==="compositionend"||!Xr&&oh(t,e)?(t=Id(),Ds=Hr=Xn=null,la=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ah&&e.locale!=="ko"?null:e.data;default:return null}}var a1={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 uh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!a1[t.type]:e==="textarea"}function ch(t,e,i,l){ia?aa?aa.push(l):aa=[l]:ia=l,e=Ao(e,"onChange"),0<e.length&&(i=new js("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var fl=null,dl=null;function l1(t){Kp(t,0)}function zs(t){var e=ll(t);if(Zd(e))return t}function fh(t,e){if(t==="change")return e}var dh=!1;if(pn){var Zr;if(pn){var Kr="oninput"in document;if(!Kr){var hh=document.createElement("div");hh.setAttribute("oninput","return;"),Kr=typeof hh.oninput=="function"}Zr=Kr}else Zr=!1;dh=Zr&&(!document.documentMode||9<document.documentMode)}function mh(){fl&&(fl.detachEvent("onpropertychange",ph),dl=fl=null)}function ph(t){if(t.propertyName==="value"&&zs(dl)){var e=[];ch(e,dl,t,Lr(t)),$d(l1,e)}}function s1(t,e,i){t==="focusin"?(mh(),fl=e,dl=i,fl.attachEvent("onpropertychange",ph)):t==="focusout"&&mh()}function o1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return zs(dl)}function r1(t,e){if(t==="click")return zs(e)}function u1(t,e){if(t==="input"||t==="change")return zs(e)}function c1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:c1;function hl(t,e){if(Se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var u=i[l];if(!Yn.call(e,u)||!Se(t[u],e[u]))return!1}return!0}function gh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yh(t,e){var i=gh(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=gh(i)}}function vh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?vh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ms(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Ms(t.document)}return e}function Qr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var f1=pn&&"documentMode"in document&&11>=document.documentMode,sa=null,kr=null,ml=null,Fr=!1;function xh(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Fr||sa==null||sa!==Ms(l)||(l=sa,"selectionStart"in l&&Qr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ml&&hl(ml,l)||(ml=l,l=Ao(kr,"onSelect"),0<l.length&&(e=new js("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=sa)))}function Mi(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var oa={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionrun:Mi("Transition","TransitionRun"),transitionstart:Mi("Transition","TransitionStart"),transitioncancel:Mi("Transition","TransitionCancel"),transitionend:Mi("Transition","TransitionEnd")},Jr={},Sh={};pn&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ri(t){if(Jr[t])return Jr[t];if(!oa[t])return t;var e=oa[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Sh)return Jr[t]=e[i];return t}var Th=Ri("animationend"),Ah=Ri("animationiteration"),Eh=Ri("animationstart"),d1=Ri("transitionrun"),h1=Ri("transitionstart"),m1=Ri("transitioncancel"),Ch=Ri("transitionend"),wh=new Map,Wr="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(" ");Wr.push("scrollEnd");function Ze(t,e){wh.set(t,e),Ci(e,[t])}var Vs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ze=[],ra=0,$r=0;function Ls(){for(var t=ra,e=$r=ra=0;e<t;){var i=ze[e];ze[e++]=null;var l=ze[e];ze[e++]=null;var u=ze[e];ze[e++]=null;var c=ze[e];if(ze[e++]=null,l!==null&&u!==null){var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}c!==0&&Mh(i,u,c)}}function Bs(t,e,i,l){ze[ra++]=t,ze[ra++]=e,ze[ra++]=i,ze[ra++]=l,$r|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Ir(t,e,i,l){return Bs(t,e,i,l),Us(t)}function Di(t,e){return Bs(t,null,null,e),Us(t)}function Mh(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var u=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-xe(i),t=c.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=i|536870912),c):null}function Us(t){if(50<Ll)throw Ll=0,rc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ua={};function p1(t,e,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,i,l){return new p1(t,e,i,l)}function tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function gn(t,e){var i=t.alternate;return i===null?(i=Te(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Rh(t,e){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Hs(t,e,i,l,u,c){var g=0;if(l=t,typeof t=="function")tu(t)&&(g=1);else if(typeof t=="string")g=xS(t,i,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=Te(31,i,e,u),t.elementType=lt,t.lanes=c,t;case M:return Oi(i.children,u,c,e);case D:g=8,u|=24;break;case N:return t=Te(12,i,e,u|2),t.elementType=N,t.lanes=c,t;case q:return t=Te(13,i,e,u),t.elementType=q,t.lanes=c,t;case Q:return t=Te(19,i,e,u),t.elementType=Q,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:g=10;break t;case V:g=9;break t;case G:g=11;break t;case P:g=14;break t;case F:g=16,l=null;break t}g=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=Te(g,i,e,u),e.elementType=t,e.type=l,e.lanes=c,e}function Oi(t,e,i,l){return t=Te(7,t,l,e),t.lanes=i,t}function eu(t,e,i){return t=Te(6,t,null,e),t.lanes=i,t}function Dh(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function nu(t,e,i){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Oh=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var i=Oh.get(t);return i!==void 0?i:(e={value:t,source:e,stack:bs(e)},Oh.set(t,e),e)}return{value:t,source:e,stack:bs(e)}}var ca=[],fa=0,Gs=null,pl=0,Le=[],Be=0,Zn=null,Ie=1,tn="";function yn(t,e){ca[fa++]=pl,ca[fa++]=Gs,Gs=t,pl=e}function Nh(t,e,i){Le[Be++]=Ie,Le[Be++]=tn,Le[Be++]=Zn,Zn=t;var l=Ie;t=tn;var u=32-xe(l)-1;l&=~(1<<u),i+=1;var c=32-xe(e)+u;if(30<c){var g=u-u%5;c=(l&(1<<g)-1).toString(32),l>>=g,u-=g,Ie=1<<32-xe(e)+u|i<<u|l,tn=c+t}else Ie=1<<c|i<<u|l,tn=t}function iu(t){t.return!==null&&(yn(t,1),Nh(t,1,0))}function au(t){for(;t===Gs;)Gs=ca[--fa],ca[fa]=null,pl=ca[--fa],ca[fa]=null;for(;t===Zn;)Zn=Le[--Be],Le[Be]=null,tn=Le[--Be],Le[Be]=null,Ie=Le[--Be],Le[Be]=null}function jh(t,e){Le[Be++]=Ie,Le[Be++]=tn,Le[Be++]=Zn,Ie=e.id,tn=e.overflow,Zn=t}var ne=null,Vt=null,xt=!1,Kn=null,Ue=!1,lu=Error(o(519));function Qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gl(Ve(e,t)),lu}function _h(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ee]=t,e[fe]=l,i){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(i=0;i<Ul.length;i++)yt(Ul[i],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),Kd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),kd(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||Jp(e.textContent,i)?(l.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),l.onScroll!=null&&yt("scroll",e),l.onScrollEnd!=null&&yt("scrollend",e),l.onClick!=null&&(e.onclick=mn),e=!0):e=!1,e||Qn(t,!0)}function zh(t){for(ne=t.return;ne;)switch(ne.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:ne=ne.return}}function da(t){if(t!==ne)return!1;if(!xt)return zh(t),xt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Ac(t.type,t.memoizedProps)),i=!i),i&&Vt&&Qn(t),zh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=lg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=lg(t)}else e===27?(e=Vt,oi(t.type)?(t=Rc,Rc=null,Vt=t):Vt=e):Vt=ne?Ge(t.stateNode.nextSibling):null;return!0}function Ni(){Vt=ne=null,xt=!1}function su(){var t=Kn;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),Kn=null),t}function gl(t){Kn===null?Kn=[t]:Kn.push(t)}var ou=w(null),ji=null,vn=null;function kn(t,e,i){J(ou,e._currentValue),e._currentValue=i}function bn(t){t._currentValue=ou.current,K(ou)}function ru(t,e,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===i)break;t=t.return}}function uu(t,e,i,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;t:for(;c!==null;){var b=c;c=u;for(var E=0;E<e.length;E++)if(b.context===e[E]){c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),ru(c.return,i,t),l||(g=null);break t}c=b.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(o(341));g.lanes|=i,c=g.alternate,c!==null&&(c.lanes|=i),ru(g,i,t),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===t){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function ha(t,e,i,l){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=u.type;Se(u.pendingProps.value,g.value)||(t!==null?t.push(b):t=[b])}}else if(u===St.current){if(g=u.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Pl):t=[Pl])}u=u.return}t!==null&&uu(e,t,i,l),e.flags|=262144}function Ys(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function _i(t){ji=t,vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return Vh(ji,t)}function qs(t,e){return ji===null&&_i(t),Vh(t,e)}function Vh(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},vn===null){if(t===null)throw Error(o(308));vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else vn=vn.next=e;return i}var g1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},y1=n.unstable_scheduleCallback,v1=n.unstable_NormalPriority,Qt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new g1,data:new Map,refCount:0}}function yl(t){t.refCount--,t.refCount===0&&y1(v1,function(){t.controller.abort()})}var vl=null,fu=0,ma=0,pa=null;function b1(t,e){if(vl===null){var i=vl=[];fu=0,ma=mc(),pa={status:"pending",value:void 0,then:function(l){i.push(l)}}}return fu++,e.then(Lh,Lh),e}function Lh(){if(--fu===0&&vl!==null){pa!==null&&(pa.status="fulfilled");var t=vl;vl=null,ma=0,pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function x1(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<i.length;u++)(0,i[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),l}var Bh=L.S;L.S=function(t,e){xp=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&b1(t,e),Bh!==null&&Bh(t,e)};var zi=w(null);function du(){var t=zi.current;return t!==null?t:_t.pooledCache}function Ps(t,e){e===null?J(zi,zi.current):J(zi,e.pool)}function Uh(){var t=du();return t===null?null:{parent:Qt._currentValue,pool:t}}var ga=Error(o(460)),hu=Error(o(474)),Xs=Error(o(542)),Zs={then:function(){}};function Hh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gh(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(mn,mn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qh(t),t;default:if(typeof e.status=="string")e.then(mn,mn);else{if(t=_t,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qh(t),t}throw Li=e,ga}}function Vi(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Li=i,ga):i}}var Li=null;function Yh(){if(Li===null)throw Error(o(459));var t=Li;return Li=null,t}function qh(t){if(t===ga||t===Xs)throw Error(o(483))}var ya=null,bl=0;function Ks(t){var e=bl;return bl+=1,ya===null&&(ya=[]),Gh(ya,t,e)}function xl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Qs(t,e){throw e.$$typeof===x?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ph(t){function e(O,R){if(t){var j=O.deletions;j===null?(O.deletions=[R],O.flags|=16):j.push(R)}}function i(O,R){if(!t)return null;for(;R!==null;)e(O,R),R=R.sibling;return null}function l(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function u(O,R){return O=gn(O,R),O.index=0,O.sibling=null,O}function c(O,R,j){return O.index=j,t?(j=O.alternate,j!==null?(j=j.index,j<R?(O.flags|=67108866,R):j):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function g(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function b(O,R,j,Y){return R===null||R.tag!==6?(R=eu(j,O.mode,Y),R.return=O,R):(R=u(R,j),R.return=O,R)}function E(O,R,j,Y){var nt=j.type;return nt===M?H(O,R,j.props.children,Y,j.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Vi(nt)===R.type)?(R=u(R,j.props),xl(R,j),R.return=O,R):(R=Hs(j.type,j.key,j.props,null,O.mode,Y),xl(R,j),R.return=O,R)}function _(O,R,j,Y){return R===null||R.tag!==4||R.stateNode.containerInfo!==j.containerInfo||R.stateNode.implementation!==j.implementation?(R=nu(j,O.mode,Y),R.return=O,R):(R=u(R,j.children||[]),R.return=O,R)}function H(O,R,j,Y,nt){return R===null||R.tag!==7?(R=Oi(j,O.mode,Y,nt),R.return=O,R):(R=u(R,j),R.return=O,R)}function X(O,R,j){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=eu(""+R,O.mode,j),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return j=Hs(R.type,R.key,R.props,null,O.mode,j),xl(j,R),j.return=O,j;case C:return R=nu(R,O.mode,j),R.return=O,R;case F:return R=Vi(R),X(O,R,j)}if(wt(R)||tt(R))return R=Oi(R,O.mode,j,null),R.return=O,R;if(typeof R.then=="function")return X(O,Ks(R),j);if(R.$$typeof===U)return X(O,qs(O,R),j);Qs(O,R)}return null}function z(O,R,j,Y){var nt=R!==null?R.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return nt!==null?null:b(O,R,""+j,Y);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return j.key===nt?E(O,R,j,Y):null;case C:return j.key===nt?_(O,R,j,Y):null;case F:return j=Vi(j),z(O,R,j,Y)}if(wt(j)||tt(j))return nt!==null?null:H(O,R,j,Y,null);if(typeof j.then=="function")return z(O,R,Ks(j),Y);if(j.$$typeof===U)return z(O,R,qs(O,j),Y);Qs(O,j)}return null}function B(O,R,j,Y,nt){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return O=O.get(j)||null,b(R,O,""+Y,nt);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case T:return O=O.get(Y.key===null?j:Y.key)||null,E(R,O,Y,nt);case C:return O=O.get(Y.key===null?j:Y.key)||null,_(R,O,Y,nt);case F:return Y=Vi(Y),B(O,R,j,Y,nt)}if(wt(Y)||tt(Y))return O=O.get(j)||null,H(R,O,Y,nt,null);if(typeof Y.then=="function")return B(O,R,j,Ks(Y),nt);if(Y.$$typeof===U)return B(O,R,j,qs(R,Y),nt);Qs(R,Y)}return null}function W(O,R,j,Y){for(var nt=null,At=null,I=R,ft=R=0,bt=null;I!==null&&ft<j.length;ft++){I.index>ft?(bt=I,I=null):bt=I.sibling;var Et=z(O,I,j[ft],Y);if(Et===null){I===null&&(I=bt);break}t&&I&&Et.alternate===null&&e(O,I),R=c(Et,R,ft),At===null?nt=Et:At.sibling=Et,At=Et,I=bt}if(ft===j.length)return i(O,I),xt&&yn(O,ft),nt;if(I===null){for(;ft<j.length;ft++)I=X(O,j[ft],Y),I!==null&&(R=c(I,R,ft),At===null?nt=I:At.sibling=I,At=I);return xt&&yn(O,ft),nt}for(I=l(I);ft<j.length;ft++)bt=B(I,O,ft,j[ft],Y),bt!==null&&(t&&bt.alternate!==null&&I.delete(bt.key===null?ft:bt.key),R=c(bt,R,ft),At===null?nt=bt:At.sibling=bt,At=bt);return t&&I.forEach(function(di){return e(O,di)}),xt&&yn(O,ft),nt}function it(O,R,j,Y){if(j==null)throw Error(o(151));for(var nt=null,At=null,I=R,ft=R=0,bt=null,Et=j.next();I!==null&&!Et.done;ft++,Et=j.next()){I.index>ft?(bt=I,I=null):bt=I.sibling;var di=z(O,I,Et.value,Y);if(di===null){I===null&&(I=bt);break}t&&I&&di.alternate===null&&e(O,I),R=c(di,R,ft),At===null?nt=di:At.sibling=di,At=di,I=bt}if(Et.done)return i(O,I),xt&&yn(O,ft),nt;if(I===null){for(;!Et.done;ft++,Et=j.next())Et=X(O,Et.value,Y),Et!==null&&(R=c(Et,R,ft),At===null?nt=Et:At.sibling=Et,At=Et);return xt&&yn(O,ft),nt}for(I=l(I);!Et.done;ft++,Et=j.next())Et=B(I,O,ft,Et.value,Y),Et!==null&&(t&&Et.alternate!==null&&I.delete(Et.key===null?ft:Et.key),R=c(Et,R,ft),At===null?nt=Et:At.sibling=Et,At=Et);return t&&I.forEach(function(NS){return e(O,NS)}),xt&&yn(O,ft),nt}function Nt(O,R,j,Y){if(typeof j=="object"&&j!==null&&j.type===M&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case T:t:{for(var nt=j.key;R!==null;){if(R.key===nt){if(nt=j.type,nt===M){if(R.tag===7){i(O,R.sibling),Y=u(R,j.props.children),Y.return=O,O=Y;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Vi(nt)===R.type){i(O,R.sibling),Y=u(R,j.props),xl(Y,j),Y.return=O,O=Y;break t}i(O,R);break}else e(O,R);R=R.sibling}j.type===M?(Y=Oi(j.props.children,O.mode,Y,j.key),Y.return=O,O=Y):(Y=Hs(j.type,j.key,j.props,null,O.mode,Y),xl(Y,j),Y.return=O,O=Y)}return g(O);case C:t:{for(nt=j.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===j.containerInfo&&R.stateNode.implementation===j.implementation){i(O,R.sibling),Y=u(R,j.children||[]),Y.return=O,O=Y;break t}else{i(O,R);break}else e(O,R);R=R.sibling}Y=nu(j,O.mode,Y),Y.return=O,O=Y}return g(O);case F:return j=Vi(j),Nt(O,R,j,Y)}if(wt(j))return W(O,R,j,Y);if(tt(j)){if(nt=tt(j),typeof nt!="function")throw Error(o(150));return j=nt.call(j),it(O,R,j,Y)}if(typeof j.then=="function")return Nt(O,R,Ks(j),Y);if(j.$$typeof===U)return Nt(O,R,qs(O,j),Y);Qs(O,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,R!==null&&R.tag===6?(i(O,R.sibling),Y=u(R,j),Y.return=O,O=Y):(i(O,R),Y=eu(j,O.mode,Y),Y.return=O,O=Y),g(O)):i(O,R)}return function(O,R,j,Y){try{bl=0;var nt=Nt(O,R,j,Y);return ya=null,nt}catch(I){if(I===ga||I===Xs)throw I;var At=Te(29,I,null,O.mode);return At.lanes=Y,At.return=O,At}finally{}}}var Bi=Ph(!0),Xh=Ph(!1),Fn=!1;function mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ct&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Us(t),Mh(t,null,i),e}return Bs(t,l,e,i),Us(t)}function Sl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Vd(t,i)}}function gu(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var u=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?u=c=e:c=c.next=e}else u=c=e;i={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var yu=!1;function Tl(){if(yu){var t=pa;if(t!==null)throw t}}function Al(t,e,i,l){yu=!1;var u=t.updateQueue;Fn=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var E=b,_=E.next;E.next=null,g===null?c=_:g.next=_,g=E;var H=t.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==g&&(b===null?H.firstBaseUpdate=_:b.next=_,H.lastBaseUpdate=E))}if(c!==null){var X=u.baseState;g=0,H=_=E=null,b=c;do{var z=b.lane&-536870913,B=z!==b.lane;if(B?(vt&z)===z:(l&z)===z){z!==0&&z===ma&&(yu=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var W=t,it=b;z=e;var Nt=i;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){X=W.call(Nt,X,z);break t}X=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,z=typeof W=="function"?W.call(Nt,X,z):W,z==null)break t;X=v({},X,z);break t;case 2:Fn=!0}}z=b.callback,z!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[z]:B.push(z))}else B={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(_=H=B,E=X):H=H.next=B,g|=z;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;B=b,b=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);H===null&&(E=X),u.baseState=E,u.firstBaseUpdate=_,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),ni|=g,t.lanes=g,t.memoizedState=X}}function Zh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Kh(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Zh(i[t],e)}var va=w(null),ks=w(0);function Qh(t,e){t=Rn,J(ks,t),J(va,e),Rn=t|e.baseLanes}function vu(){J(ks,Rn),J(va,va.current)}function bu(){Rn=ks.current,K(va),K(ks)}var Ae=w(null),He=null;function $n(t){var e=t.alternate;J(Xt,Xt.current&1),J(Ae,t),He===null&&(e===null||va.current!==null||e.memoizedState!==null)&&(He=t)}function xu(t){J(Xt,Xt.current),J(Ae,t),He===null&&(He=t)}function kh(t){t.tag===22?(J(Xt,Xt.current),J(Ae,t),He===null&&(He=t)):In()}function In(){J(Xt,Xt.current),J(Ae,Ae.current)}function Ee(t){K(Ae),He===t&&(He=null),K(Xt)}var Xt=w(0);function Fs(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||wc(i)||Mc(i)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var xn=0,ct=null,Dt=null,kt=null,Js=!1,ba=!1,Ui=!1,Ws=0,El=0,xa=null,S1=0;function Yt(){throw Error(o(321))}function Su(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Se(t[i],e[i]))return!1;return!0}function Tu(t,e,i,l,u,c){return xn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Nm:Bu,Ui=!1,c=i(l,u),Ui=!1,ba&&(c=Jh(e,i,l,u)),Fh(t),c}function Fh(t){L.H=Ml;var e=Dt!==null&&Dt.next!==null;if(xn=0,kt=Dt=ct=null,Js=!1,El=0,xa=null,e)throw Error(o(300));t===null||Ft||(t=t.dependencies,t!==null&&Ys(t)&&(Ft=!0))}function Jh(t,e,i,l){ct=t;var u=0;do{if(ba&&(xa=null),El=0,ba=!1,25<=u)throw Error(o(301));if(u+=1,kt=Dt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=jm,c=e(i,l)}while(ba);return c}function T1(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Cl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Au(){var t=Ws!==0;return Ws=0,t}function Eu(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Cu(t){if(Js){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Js=!1}xn=0,kt=Dt=ct=null,ba=!1,El=Ws=0,xa=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ct.memoizedState=kt=t:kt=kt.next=t,kt}function Zt(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=kt===null?ct.memoizedState:kt.next;if(e!==null)kt=e,Dt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},kt===null?ct.memoizedState=kt=t:kt=kt.next=t}return kt}function $s(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cl(t){var e=El;return El+=1,xa===null&&(xa=[]),t=Gh(xa,t,e),e=ct,(kt===null?e.memoizedState:kt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Nm:Bu),t}function Is(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Cl(t);if(t.$$typeof===U)return ie(t)}throw Error(o(438,String(t)))}function wu(t){var e=null,i=ct.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=$s(),ct.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=st;return e.index++,i}function Sn(t,e){return typeof e=="function"?e(t):e}function to(t){var e=Zt();return Mu(e,Dt,t)}function Mu(t,e,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var u=t.baseQueue,c=l.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}e.baseQueue=u=c,l.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var b=g=null,E=null,_=e,H=!1;do{var X=_.lane&-536870913;if(X!==_.lane?(vt&X)===X:(xn&X)===X){var z=_.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),X===ma&&(H=!0);else if((xn&z)===z){_=_.next,z===ma&&(H=!0);continue}else X={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(b=E=X,g=c):E=E.next=X,ct.lanes|=z,ni|=z;X=_.action,Ui&&i(c,X),c=_.hasEagerState?_.eagerState:i(c,X)}else z={lane:X,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(b=E=z,g=c):E=E.next=z,ct.lanes|=X,ni|=X;_=_.next}while(_!==null&&_!==e);if(E===null?g=c:E.next=b,!Se(c,t.memoizedState)&&(Ft=!0,H&&(i=pa,i!==null)))throw i;t.memoizedState=c,t.baseState=g,t.baseQueue=E,l.lastRenderedState=c}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ru(t){var e=Zt(),i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,u=i.pending,c=e.memoizedState;if(u!==null){i.pending=null;var g=u=u.next;do c=t(c,g.action),g=g.next;while(g!==u);Se(c,e.memoizedState)||(Ft=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function Wh(t,e,i){var l=ct,u=Zt(),c=xt;if(c){if(i===void 0)throw Error(o(407));i=i()}else i=e();var g=!Se((Dt||u).memoizedState,i);if(g&&(u.memoizedState=i,Ft=!0),u=u.queue,Nu(tm.bind(null,l,u,t),[t]),u.getSnapshot!==e||g||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Sa(9,{destroy:void 0},Ih.bind(null,l,u,i,e),null),_t===null)throw Error(o(349));c||(xn&127)!==0||$h(l,e,i)}return i}function $h(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=ct.updateQueue,e===null?(e=$s(),ct.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Ih(t,e,i,l){e.value=i,e.getSnapshot=l,em(e)&&nm(t)}function tm(t,e,i){return i(function(){em(e)&&nm(t)})}function em(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Se(t,i)}catch{return!0}}function nm(t){var e=Di(t,2);e!==null&&ye(e,t,2)}function Du(t){var e=ce();if(typeof t=="function"){var i=t;if(t=i(),Ui){qn(!0);try{i()}finally{qn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function im(t,e,i,l){return t.baseState=i,Mu(t,Dt,typeof l=="function"?l:Sn)}function A1(t,e,i,l,u){if(io(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};L.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,am(e,c)):(c.next=i.next,e.pending=i.next=c)}}function am(t,e){var i=e.action,l=e.payload,u=t.state;if(e.isTransition){var c=L.T,g={};L.T=g;try{var b=i(u,l),E=L.S;E!==null&&E(g,b),lm(t,e,b)}catch(_){Ou(t,e,_)}finally{c!==null&&g.types!==null&&(c.types=g.types),L.T=c}}else try{c=i(u,l),lm(t,e,c)}catch(_){Ou(t,e,_)}}function lm(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){sm(t,e,l)},function(l){return Ou(t,e,l)}):sm(t,e,i)}function sm(t,e,i){e.status="fulfilled",e.value=i,om(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,am(t,i)))}function Ou(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,om(e),e=e.next;while(e!==l)}t.action=null}function om(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function rm(t,e){return e}function um(t,e){if(xt){var i=_t.formState;if(i!==null){t:{var l=ct;if(xt){if(Vt){e:{for(var u=Vt,c=Ue;u.nodeType!==8;){if(!c){u=null;break e}if(u=Ge(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Vt=Ge(u.nextSibling),l=u.data==="F!";break t}}Qn(l)}l=!1}l&&(e=i[0])}}return i=ce(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rm,lastRenderedState:e},i.queue=l,i=Rm.bind(null,ct,l),l.dispatch=i,l=Du(!1),c=Lu.bind(null,ct,!1,l.queue),l=ce(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,i=A1.bind(null,ct,u,c,i),u.dispatch=i,l.memoizedState=t,[e,i,!1]}function cm(t){var e=Zt();return fm(e,Dt,t)}function fm(t,e,i){if(e=Mu(t,e,rm)[0],t=to(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Cl(e)}catch(g){throw g===ga?Xs:g}else l=e;e=Zt();var u=e.queue,c=u.dispatch;return i!==e.memoizedState&&(ct.flags|=2048,Sa(9,{destroy:void 0},E1.bind(null,u,i),null)),[l,c,t]}function E1(t,e){t.action=e}function dm(t){var e=Zt(),i=Dt;if(i!==null)return fm(e,i,t);Zt(),e=e.memoizedState,i=Zt();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Sa(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=$s(),ct.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function hm(){return Zt().memoizedState}function eo(t,e,i,l){var u=ce();ct.flags|=t,u.memoizedState=Sa(1|e,{destroy:void 0},i,l===void 0?null:l)}function no(t,e,i,l){var u=Zt();l=l===void 0?null:l;var c=u.memoizedState.inst;Dt!==null&&l!==null&&Su(l,Dt.memoizedState.deps)?u.memoizedState=Sa(e,c,i,l):(ct.flags|=t,u.memoizedState=Sa(1|e,c,i,l))}function mm(t,e){eo(8390656,8,t,e)}function Nu(t,e){no(2048,8,t,e)}function C1(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=$s(),ct.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function pm(t){var e=Zt().memoizedState;return C1({ref:e,nextImpl:t}),function(){if((Ct&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function gm(t,e){return no(4,2,t,e)}function ym(t,e){return no(4,4,t,e)}function vm(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function bm(t,e,i){i=i!=null?i.concat([t]):null,no(4,4,vm.bind(null,e,t),i)}function ju(){}function xm(t,e){var i=Zt();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Su(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Sm(t,e){var i=Zt();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Su(e,l[1]))return l[0];if(l=t(),Ui){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l}function _u(t,e,i){return i===void 0||(xn&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Tp(),ct.lanes|=t,ni|=t,i)}function Tm(t,e,i,l){return Se(i,e)?i:va.current!==null?(t=_u(t,i,l),Se(t,e)||(Ft=!0),t):(xn&42)===0||(xn&1073741824)!==0&&(vt&261930)===0?(Ft=!0,t.memoizedState=i):(t=Tp(),ct.lanes|=t,ni|=t,e)}function Am(t,e,i,l,u){var c=Z.p;Z.p=c!==0&&8>c?c:8;var g=L.T,b={};L.T=b,Lu(t,!1,e,i);try{var E=u(),_=L.S;if(_!==null&&_(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=x1(E,l);wl(t,e,H,Me(t))}else wl(t,e,l,Me(t))}catch(X){wl(t,e,{then:function(){},status:"rejected",reason:X},Me())}finally{Z.p=c,g!==null&&b.types!==null&&(g.types=b.types),L.T=g}}function w1(){}function zu(t,e,i,l){if(t.tag!==5)throw Error(o(476));var u=Em(t).queue;Am(t,u,e,k,i===null?w1:function(){return Cm(t),i(l)})}function Em(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:k},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Cm(t){var e=Em(t);e.next===null&&(e=t.alternate.memoizedState),wl(t,e.next.queue,{},Me())}function Vu(){return ie(Pl)}function wm(){return Zt().memoizedState}function Mm(){return Zt().memoizedState}function M1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Me();t=Jn(i);var l=Wn(e,t,i);l!==null&&(ye(l,e,i),Sl(l,e,i)),e={cache:cu()},t.payload=e;return}e=e.return}}function R1(t,e,i){var l=Me();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},io(t)?Dm(e,i):(i=Ir(t,e,i,l),i!==null&&(ye(i,t,l),Om(i,e,l)))}function Rm(t,e,i){var l=Me();wl(t,e,i,l)}function wl(t,e,i,l){var u={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(io(t))Dm(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,b=c(g,i);if(u.hasEagerState=!0,u.eagerState=b,Se(b,g))return Bs(t,e,u,0),_t===null&&Ls(),!1}catch{}finally{}if(i=Ir(t,e,u,l),i!==null)return ye(i,t,l),Om(i,e,l),!0}return!1}function Lu(t,e,i,l){if(l={lane:2,revertLane:mc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},io(t)){if(e)throw Error(o(479))}else e=Ir(t,i,l,2),e!==null&&ye(e,t,2)}function io(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Dm(t,e){ba=Js=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Om(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Vd(t,i)}}var Ml={readContext:ie,use:Is,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};Ml.useEffectEvent=Yt;var Nm={readContext:ie,use:Is,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:mm,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,eo(4194308,4,vm.bind(null,e,t),i)},useLayoutEffect:function(t,e){return eo(4194308,4,t,e)},useInsertionEffect:function(t,e){eo(4,2,t,e)},useMemo:function(t,e){var i=ce();e=e===void 0?null:e;var l=t();if(Ui){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=ce();if(i!==void 0){var u=i(e);if(Ui){qn(!0);try{i(e)}finally{qn(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=R1.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=Du(t);var e=t.queue,i=Rm.bind(null,ct,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:ju,useDeferredValue:function(t,e){var i=ce();return _u(i,t,e)},useTransition:function(){var t=Du(!1);return t=Am.bind(null,ct,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=ct,u=ce();if(xt){if(i===void 0)throw Error(o(407));i=i()}else{if(i=e(),_t===null)throw Error(o(349));(vt&127)!==0||$h(l,e,i)}u.memoizedState=i;var c={value:i,getSnapshot:e};return u.queue=c,mm(tm.bind(null,l,c,t),[t]),l.flags|=2048,Sa(9,{destroy:void 0},Ih.bind(null,l,c,i,e),null),i},useId:function(){var t=ce(),e=_t.identifierPrefix;if(xt){var i=tn,l=Ie;i=(l&~(1<<32-xe(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=Ws++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=S1++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vu,useFormState:um,useActionState:um,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Lu.bind(null,ct,!0,i),i.dispatch=e,[t,e]},useMemoCache:wu,useCacheRefresh:function(){return ce().memoizedState=M1.bind(null,ct)},useEffectEvent:function(t){var e=ce(),i={impl:t};return e.memoizedState=i,function(){if((Ct&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Bu={readContext:ie,use:Is,useCallback:xm,useContext:ie,useEffect:Nu,useImperativeHandle:bm,useInsertionEffect:gm,useLayoutEffect:ym,useMemo:Sm,useReducer:to,useRef:hm,useState:function(){return to(Sn)},useDebugValue:ju,useDeferredValue:function(t,e){var i=Zt();return Tm(i,Dt.memoizedState,t,e)},useTransition:function(){var t=to(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Cl(t),e]},useSyncExternalStore:Wh,useId:wm,useHostTransitionStatus:Vu,useFormState:cm,useActionState:cm,useOptimistic:function(t,e){var i=Zt();return im(i,Dt,t,e)},useMemoCache:wu,useCacheRefresh:Mm};Bu.useEffectEvent=pm;var jm={readContext:ie,use:Is,useCallback:xm,useContext:ie,useEffect:Nu,useImperativeHandle:bm,useInsertionEffect:gm,useLayoutEffect:ym,useMemo:Sm,useReducer:Ru,useRef:hm,useState:function(){return Ru(Sn)},useDebugValue:ju,useDeferredValue:function(t,e){var i=Zt();return Dt===null?_u(i,t,e):Tm(i,Dt.memoizedState,t,e)},useTransition:function(){var t=Ru(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Cl(t),e]},useSyncExternalStore:Wh,useId:wm,useHostTransitionStatus:Vu,useFormState:dm,useActionState:dm,useOptimistic:function(t,e){var i=Zt();return Dt!==null?im(i,Dt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:wu,useCacheRefresh:Mm};jm.useEffectEvent=pm;function Uu(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:v({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Hu={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Me(),u=Jn(l);u.payload=e,i!=null&&(u.callback=i),e=Wn(t,u,l),e!==null&&(ye(e,t,l),Sl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Me(),u=Jn(l);u.tag=1,u.payload=e,i!=null&&(u.callback=i),e=Wn(t,u,l),e!==null&&(ye(e,t,l),Sl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Me(),l=Jn(i);l.tag=2,e!=null&&(l.callback=e),e=Wn(t,l,i),e!==null&&(ye(e,t,i),Sl(e,t,i))}};function _m(t,e,i,l,u,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!hl(i,l)||!hl(u,c):!0}function zm(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&Hu.enqueueReplaceState(e,e.state,null)}function Hi(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=v({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function Vm(t){Vs(t)}function Lm(t){console.error(t)}function Bm(t){Vs(t)}function ao(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Um(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Gu(t,e,i){return i=Jn(i),i.tag=3,i.payload={element:null},i.callback=function(){ao(t,e)},i}function Hm(t){return t=Jn(t),t.tag=3,t}function Gm(t,e,i,l){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;t.payload=function(){return u(c)},t.callback=function(){Um(e,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Um(e,i,l),typeof u!="function"&&(ii===null?ii=new Set([this]):ii.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function D1(t,e,i,l,u){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&ha(e,i,u,!0),i=Ae.current,i!==null){switch(i.tag){case 31:case 13:return He===null?yo():i.alternate===null&&qt===0&&(qt=3),i.flags&=-257,i.flags|=65536,i.lanes=u,l===Zs?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),fc(t,l,u)),!1;case 22:return i.flags|=65536,l===Zs?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),fc(t,l,u)),!1}throw Error(o(435,i.tag))}return fc(t,l,u),yo(),!1}if(xt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==lu&&(t=Error(o(422),{cause:l}),gl(Ve(t,i)))):(l!==lu&&(e=Error(o(423),{cause:l}),gl(Ve(e,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ve(l,i),u=Gu(t.stateNode,l,u),gu(t,u),qt!==4&&(qt=2)),!1;var c=Error(o(520),{cause:l});if(c=Ve(c,i),Vl===null?Vl=[c]:Vl.push(c),qt!==4&&(qt=2),e===null)return!0;l=Ve(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=Gu(i.stateNode,l,t),gu(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ii===null||!ii.has(c))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Hm(u),Gm(u,t,i,l),gu(i,u),!1}i=i.return}while(i!==null);return!1}var Yu=Error(o(461)),Ft=!1;function ae(t,e,i,l){e.child=t===null?Xh(e,null,i,l):Bi(e,t.child,i,l)}function Ym(t,e,i,l,u){i=i.render;var c=e.ref;if("ref"in l){var g={};for(var b in l)b!=="ref"&&(g[b]=l[b])}else g=l;return _i(e),l=Tu(t,e,i,g,c,u),b=Au(),t!==null&&!Ft?(Eu(t,e,u),Tn(t,e,u)):(xt&&b&&iu(e),e.flags|=1,ae(t,e,l,u),e.child)}function qm(t,e,i,l,u){if(t===null){var c=i.type;return typeof c=="function"&&!tu(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,Pm(t,e,c,l,u)):(t=Hs(i.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Fu(t,u)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:hl,i(g,l)&&t.ref===e.ref)return Tn(t,e,u)}return e.flags|=1,t=gn(c,l),t.ref=e.ref,t.return=e,e.child=t}function Pm(t,e,i,l,u){if(t!==null){var c=t.memoizedProps;if(hl(c,l)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=l=c,Fu(t,u))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Tn(t,e,u)}return qu(t,e,i,l,u)}function Xm(t,e,i,l){var u=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,e.child=null;return Zm(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ps(e,c!==null?c.cachePool:null),c!==null?Qh(e,c):vu(),kh(e);else return l=e.lanes=536870912,Zm(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Ps(e,c.cachePool),Qh(e,c),In(),e.memoizedState=null):(t!==null&&Ps(e,null),vu(),In());return ae(t,e,u,i),e.child}function Rl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zm(t,e,i,l,u){var c=du();return c=c===null?null:{parent:Qt._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Ps(e,null),vu(),kh(e),t!==null&&ha(t,e,l,!0),e.childLanes=u,null}function lo(t,e){return e=oo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Km(t,e,i){return Bi(e,t.child,null,i),t=lo(e,e.pendingProps),t.flags|=2,Ee(e),e.memoizedState=null,t}function O1(t,e,i){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(l.mode==="hidden")return t=lo(e,l),e.lanes=536870912,Rl(null,t);if(xu(e),(t=Vt)?(t=ag(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},i=Dh(t),i.return=e,e.child=i,ne=e,Vt=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return lo(e,l)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(xu(e),u)if(e.flags&256)e.flags&=-257,e=Km(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Ft||ha(t,e,i,!1),u=(i&t.childLanes)!==0,Ft||u){if(l=_t,l!==null&&(g=Ld(l,i),g!==0&&g!==c.retryLane))throw c.retryLane=g,Di(t,g),ye(l,t,g),Yu;yo(),e=Km(t,e,i)}else t=c.treeContext,Vt=Ge(g.nextSibling),ne=e,xt=!0,Kn=null,Ue=!1,t!==null&&jh(e,t),e=lo(e,l),e.flags|=4096;return e}return t=gn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function so(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function qu(t,e,i,l,u){return _i(e),i=Tu(t,e,i,l,void 0,u),l=Au(),t!==null&&!Ft?(Eu(t,e,u),Tn(t,e,u)):(xt&&l&&iu(e),e.flags|=1,ae(t,e,i,u),e.child)}function Qm(t,e,i,l,u,c){return _i(e),e.updateQueue=null,i=Jh(e,l,i,u),Fh(t),l=Au(),t!==null&&!Ft?(Eu(t,e,c),Tn(t,e,c)):(xt&&l&&iu(e),e.flags|=1,ae(t,e,i,c),e.child)}function km(t,e,i,l,u){if(_i(e),e.stateNode===null){var c=ua,g=i.contextType;typeof g=="object"&&g!==null&&(c=ie(g)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Hu,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},mu(e),g=i.contextType,c.context=typeof g=="object"&&g!==null?ie(g):ua,c.state=e.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Uu(e,i,g,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Hu.enqueueReplaceState(c,c.state,null),Al(e,l,c,u),Tl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var b=e.memoizedProps,E=Hi(i,b);c.props=E;var _=c.context,H=i.contextType;g=ua,typeof H=="object"&&H!==null&&(g=ie(H));var X=i.getDerivedStateFromProps;H=typeof X=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||_!==g)&&zm(e,c,l,g),Fn=!1;var z=e.memoizedState;c.state=z,Al(e,l,c,u),Tl(),_=e.memoizedState,b||z!==_||Fn?(typeof X=="function"&&(Uu(e,i,X,l),_=e.memoizedState),(E=Fn||_m(e,i,E,l,z,_,g))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=_),c.props=l,c.state=_,c.context=g,l=E):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,pu(t,e),g=e.memoizedProps,H=Hi(i,g),c.props=H,X=e.pendingProps,z=c.context,_=i.contextType,E=ua,typeof _=="object"&&_!==null&&(E=ie(_)),b=i.getDerivedStateFromProps,(_=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==X||z!==E)&&zm(e,c,l,E),Fn=!1,z=e.memoizedState,c.state=z,Al(e,l,c,u),Tl();var B=e.memoizedState;g!==X||z!==B||Fn||t!==null&&t.dependencies!==null&&Ys(t.dependencies)?(typeof b=="function"&&(Uu(e,i,b,l),B=e.memoizedState),(H=Fn||_m(e,i,H,l,z,B,E)||t!==null&&t.dependencies!==null&&Ys(t.dependencies))?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,E)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),c.props=l,c.state=B,c.context=E,l=H):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,so(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Bi(e,t.child,null,u),e.child=Bi(e,null,i,u)):ae(t,e,i,u),e.memoizedState=c.state,t=e.child):t=Tn(t,e,u),t}function Fm(t,e,i,l){return Ni(),e.flags|=256,ae(t,e,i,l),e.child}var Pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xu(t){return{baseLanes:t,cachePool:Uh()}}function Zu(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=we),t}function Jm(t,e,i){var l=e.pendingProps,u=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),g&&(u=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(u?$n(e):In(),(t=Vt)?(t=ag(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},i=Dh(t),i.return=e,e.child=i,ne=e,Vt=null)):t=null,t===null)throw Qn(e);return Mc(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,u?(In(),u=e.mode,b=oo({mode:"hidden",children:b},u),l=Oi(l,u,i,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=Xu(i),l.childLanes=Zu(t,g,i),e.memoizedState=Pu,Rl(null,l)):($n(e),Ku(e,b))}var E=t.memoizedState;if(E!==null&&(b=E.dehydrated,b!==null)){if(c)e.flags&256?($n(e),e.flags&=-257,e=Qu(t,e,i)):e.memoizedState!==null?(In(),e.child=t.child,e.flags|=128,e=null):(In(),b=l.fallback,u=e.mode,l=oo({mode:"visible",children:l.children},u),b=Oi(b,u,i,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,Bi(e,t.child,null,i),l=e.child,l.memoizedState=Xu(i),l.childLanes=Zu(t,g,i),e.memoizedState=Pu,e=Rl(null,l));else if($n(e),Mc(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var _=g.dgst;g=_,l=Error(o(419)),l.stack="",l.digest=g,gl({value:l,source:null,stack:null}),e=Qu(t,e,i)}else if(Ft||ha(t,e,i,!1),g=(i&t.childLanes)!==0,Ft||g){if(g=_t,g!==null&&(l=Ld(g,i),l!==0&&l!==E.retryLane))throw E.retryLane=l,Di(t,l),ye(g,t,l),Yu;wc(b)||yo(),e=Qu(t,e,i)}else wc(b)?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,Vt=Ge(b.nextSibling),ne=e,xt=!0,Kn=null,Ue=!1,t!==null&&jh(e,t),e=Ku(e,l.children),e.flags|=4096);return e}return u?(In(),b=l.fallback,u=e.mode,E=t.child,_=E.sibling,l=gn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,_!==null?b=gn(_,b):(b=Oi(b,u,i,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,Rl(null,l),l=e.child,b=t.child.memoizedState,b===null?b=Xu(i):(u=b.cachePool,u!==null?(E=Qt._currentValue,u=u.parent!==E?{parent:E,pool:E}:u):u=Uh(),b={baseLanes:b.baseLanes|i,cachePool:u}),l.memoizedState=b,l.childLanes=Zu(t,g,i),e.memoizedState=Pu,Rl(t.child,l)):($n(e),i=t.child,t=i.sibling,i=gn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=i,e.memoizedState=null,i)}function Ku(t,e){return e=oo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function oo(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Qu(t,e,i){return Bi(e,t.child,null,i),t=Ku(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wm(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ru(t.return,e,i)}function ku(t,e,i,l,u,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:u,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=u,g.treeForkCount=c)}function $m(t,e,i){var l=e.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var g=Xt.current,b=(g&2)!==0;if(b?(g=g&1|2,e.flags|=128):g&=1,J(Xt,g),ae(t,e,l,i),l=xt?pl:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wm(t,i,e);else if(t.tag===19)Wm(t,i,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(i=e.child,u=null;i!==null;)t=i.alternate,t!==null&&Fs(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=e.child,e.child=null):(u=i.sibling,i.sibling=null),ku(e,!1,u,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Fs(t)===null){e.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}ku(e,!0,i,null,c,l);break;case"together":ku(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Tn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ni|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(ha(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,i=gn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=gn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Fu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ys(t)))}function N1(t,e,i){switch(e.tag){case 3:$t(e,e.stateNode.containerInfo),kn(e,Qt,t.memoizedState.cache),Ni();break;case 27:case 5:Hn(e);break;case 4:$t(e,e.stateNode.containerInfo);break;case 10:kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,xu(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($n(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Jm(t,e,i):($n(e),t=Tn(t,e,i),t!==null?t.sibling:null);$n(e);break;case 19:var u=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(ha(t,e,i,!1),l=(i&e.childLanes)!==0),u){if(l)return $m(t,e,i);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),J(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,Xm(t,e,i,e.pendingProps);case 24:kn(e,Qt,t.memoizedState.cache)}return Tn(t,e,i)}function Im(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Fu(t,i)&&(e.flags&128)===0)return Ft=!1,N1(t,e,i);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Nh(e,pl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Vi(e.elementType),e.type=t,typeof t=="function")tu(t)?(l=Hi(t,l),e.tag=1,e=km(null,e,t,l,i)):(e.tag=0,e=qu(null,e,t,l,i));else{if(t!=null){var u=t.$$typeof;if(u===G){e.tag=11,e=Ym(null,e,t,l,i);break t}else if(u===P){e.tag=14,e=qm(null,e,t,l,i);break t}}throw e=ht(t)||t,Error(o(306,e,""))}}return e;case 0:return qu(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,u=Hi(l,e.pendingProps),km(t,e,l,u,i);case 3:t:{if($t(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;u=c.element,pu(t,e),Al(e,l,null,i);var g=e.memoizedState;if(l=g.cache,kn(e,Qt,l),l!==c.cache&&uu(e,[Qt],i,!0),Tl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Fm(t,e,l,i);break t}else if(l!==u){u=Ve(Error(o(424)),e),gl(u),e=Fm(t,e,l,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=Ge(t.firstChild),ne=e,xt=!0,Kn=null,Ue=!0,i=Xh(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ni(),l===u){e=Tn(t,e,i);break t}ae(t,e,l,i)}e=e.child}return e;case 26:return so(t,e),t===null?(i=cg(e.type,null,e.pendingProps,null))?e.memoizedState=i:xt||(i=e.type,t=e.pendingProps,l=Eo(mt.current).createElement(i),l[ee]=e,l[fe]=t,le(l,i,t),It(l),e.stateNode=l):e.memoizedState=cg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Hn(e),t===null&&xt&&(l=e.stateNode=og(e.type,e.pendingProps,mt.current),ne=e,Ue=!0,u=Vt,oi(e.type)?(Rc=u,Vt=Ge(l.firstChild)):Vt=u),ae(t,e,e.pendingProps.children,i),so(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((u=l=Vt)&&(l=oS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ne=e,Vt=Ge(l.firstChild),Ue=!1,u=!0):u=!1),u||Qn(e)),Hn(e),u=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Ac(u,c)?l=null:g!==null&&Ac(u,g)&&(e.flags|=32),e.memoizedState!==null&&(u=Tu(t,e,T1,null,null,i),Pl._currentValue=u),so(t,e),ae(t,e,l,i),e.child;case 6:return t===null&&xt&&((t=i=Vt)&&(i=rS(i,e.pendingProps,Ue),i!==null?(e.stateNode=i,ne=e,Vt=null,t=!0):t=!1),t||Qn(e)),null;case 13:return Jm(t,e,i);case 4:return $t(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Bi(e,null,l,i):ae(t,e,l,i),e.child;case 11:return Ym(t,e,e.type,e.pendingProps,i);case 7:return ae(t,e,e.pendingProps,i),e.child;case 8:return ae(t,e,e.pendingProps.children,i),e.child;case 12:return ae(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,kn(e,e.type,l.value),ae(t,e,l.children,i),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,_i(e),u=ie(u),l=l(u),e.flags|=1,ae(t,e,l,i),e.child;case 14:return qm(t,e,e.type,e.pendingProps,i);case 15:return Pm(t,e,e.type,e.pendingProps,i);case 19:return $m(t,e,i);case 31:return O1(t,e,i);case 22:return Xm(t,e,i,e.pendingProps);case 24:return _i(e),l=ie(Qt),t===null?(u=du(),u===null&&(u=_t,c=cu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=i),u=c),e.memoizedState={parent:l,cache:u},mu(e),kn(e,Qt,u)):((t.lanes&i)!==0&&(pu(t,e),Al(e,null,null,i),Tl()),u=t.memoizedState,c=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),kn(e,Qt,l)):(l=c.cache,kn(e,Qt,l),l!==u.cache&&uu(e,[Qt],i,!0))),ae(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function An(t){t.flags|=4}function Ju(t,e,i,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(wp())t.flags|=8192;else throw Li=Zs,hu}else t.flags&=-16777217}function tp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!pg(e))if(wp())t.flags|=8192;else throw Li=Zs,hu}function ro(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_d():536870912,t.lanes|=e,Ca|=e)}function Dl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function j1(t,e,i){var l=e.pendingProps;switch(au(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),bn(Qt),Ut(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(da(e)?An(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,su())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(An(e),c!==null?(Lt(e),tp(e,c)):(Lt(e),Ju(e,u,null,l,i))):c?c!==t.memoizedState?(An(e),Lt(e),tp(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&An(e),Lt(e),Ju(e,u,t,l,i)),null;case 27:if(Ai(e),i=mt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&An(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=$.current,da(e)?_h(e):(t=og(u,l,i),e.stateNode=t,An(e))}return Lt(e),null;case 5:if(Ai(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&An(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=$.current,da(e))_h(e);else{var g=Eo(mt.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(u,{is:l.is}):g.createElement(u)}}c[ee]=e,c[fe]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(le(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&An(e)}}return Lt(e),Ju(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&An(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=mt.current,da(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,u=ne,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[ee]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Jp(t.nodeValue,i)),t||Qn(e,!0)}else t=Eo(t).createTextNode(l),t[ee]=e,e.stateNode=t}return Lt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=da(e),i!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ee]=e}else Ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else i=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Ee(e),e):(Ee(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=da(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[ee]=e}else Ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ee(e),e):(Ee(e),null)}return Ee(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),ro(e,e.updateQueue),Lt(e),null);case 4:return Ut(),t===null&&vc(e.stateNode.containerInfo),Lt(e),null;case 10:return bn(e.type),Lt(e),null;case 19:if(K(Xt),l=e.memoizedState,l===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=l.rendering,c===null)if(u)Dl(l,!1);else{if(qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Fs(t),c!==null){for(e.flags|=128,Dl(l,!1),t=c.updateQueue,e.updateQueue=t,ro(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Rh(i,t),i=i.sibling;return J(Xt,Xt.current&1|2),xt&&yn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>mo&&(e.flags|=128,u=!0,Dl(l,!1),e.lanes=4194304)}else{if(!u)if(t=Fs(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,ro(e,t),Dl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!xt)return Lt(e),null}else 2*ve()-l.renderingStartTime>mo&&i!==536870912&&(e.flags|=128,u=!0,Dl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,i=Xt.current,J(Xt,u?i&1|2:i&1),xt&&yn(e,l.treeForkCount),t):(Lt(e),null);case 22:case 23:return Ee(e),bu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),i=e.updateQueue,i!==null&&ro(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&K(zi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),bn(Qt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function _1(t,e){switch(au(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return bn(Qt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ai(e),null;case 31:if(e.memoizedState!==null){if(Ee(e),e.alternate===null)throw Error(o(340));Ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ee(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return K(Xt),null;case 4:return Ut(),null;case 10:return bn(e.type),null;case 22:case 23:return Ee(e),bu(),t!==null&&K(zi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return bn(Qt),null;case 25:return null;default:return null}}function ep(t,e){switch(au(e),e.tag){case 3:bn(Qt),Ut();break;case 26:case 27:case 5:Ai(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&Ee(e);break;case 13:Ee(e);break;case 19:K(Xt);break;case 10:bn(e.type);break;case 22:case 23:Ee(e),bu(),t!==null&&K(zi);break;case 24:bn(Qt)}}function Ol(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var u=l.next;i=u;do{if((i.tag&t)===t){l=void 0;var c=i.create,g=i.inst;l=c(),g.destroy=l}i=i.next}while(i!==u)}}catch(b){Rt(e,e.return,b)}}function ti(t,e,i){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,u=e;var E=i,_=b;try{_()}catch(H){Rt(u,E,H)}}}l=l.next}while(l!==c)}}catch(H){Rt(e,e.return,H)}}function np(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Kh(e,i)}catch(l){Rt(t,t.return,l)}}}function ip(t,e,i){i.props=Hi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){Rt(t,e,l)}}function Nl(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(u){Rt(t,e,u)}}function en(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(u){Rt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Rt(t,e,u)}else i.current=null}function ap(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(u){Rt(t,t.return,u)}}function Wu(t,e,i){try{var l=t.stateNode;eS(l,t.type,i,e),l[fe]=e}catch(u){Rt(t,t.return,u)}}function lp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function $u(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||lp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Iu(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=mn));else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(Iu(t,e,i),t=t.sibling;t!==null;)Iu(t,e,i),t=t.sibling}function uo(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(uo(t,e,i),t=t.sibling;t!==null;)uo(t,e,i),t=t.sibling}function sp(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);le(e,l,i),e[ee]=t,e[fe]=i}catch(c){Rt(t,t.return,c)}}var En=!1,Jt=!1,tc=!1,op=typeof WeakSet=="function"?WeakSet:Set,te=null;function z1(t,e){if(t=t.containerInfo,Sc=No,t=bh(t),Qr(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var g=0,b=-1,E=-1,_=0,H=0,X=t,z=null;e:for(;;){for(var B;X!==i||u!==0&&X.nodeType!==3||(b=g+u),X!==c||l!==0&&X.nodeType!==3||(E=g+l),X.nodeType===3&&(g+=X.nodeValue.length),(B=X.firstChild)!==null;)z=X,X=B;for(;;){if(X===t)break e;if(z===i&&++_===u&&(b=g),z===c&&++H===l&&(E=g),(B=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=B}i=b===-1||E===-1?null:{start:b,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tc={focusedElem:t,selectionRange:i},No=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,u=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var W=Hi(i.type,u);t=l.getSnapshotBeforeUpdate(W,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){Rt(i,i.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Cc(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Cc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function rp(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:wn(t,i),l&4&&Ol(5,i);break;case 1:if(wn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(g){Rt(i,i.return,g)}else{var u=Hi(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Rt(i,i.return,g)}}l&64&&np(i),l&512&&Nl(i,i.return);break;case 3:if(wn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{Kh(t,e)}catch(g){Rt(i,i.return,g)}}break;case 27:e===null&&l&4&&sp(i);case 26:case 5:wn(t,i),e===null&&l&4&&ap(i),l&512&&Nl(i,i.return);break;case 12:wn(t,i);break;case 31:wn(t,i),l&4&&fp(t,i);break;case 13:wn(t,i),l&4&&dp(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=P1.bind(null,i),uS(t,i))));break;case 22:if(l=i.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Jt,u=En;var c=Jt;En=l,(Jt=e)&&!c?Mn(t,i,(i.subtreeFlags&8772)!==0):wn(t,i),En=u,Jt=c}break;case 30:break;default:wn(t,i)}}function up(t){var e=t.alternate;e!==null&&(t.alternate=null,up(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Or(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,he=!1;function Cn(t,e,i){for(i=i.child;i!==null;)cp(t,e,i),i=i.sibling}function cp(t,e,i){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(el,i)}catch{}switch(i.tag){case 26:Jt||en(i,e),Cn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Jt||en(i,e);var l=Ht,u=he;oi(i.type)&&(Ht=i.stateNode,he=!1),Cn(t,e,i),Gl(i.stateNode),Ht=l,he=u;break;case 5:Jt||en(i,e);case 6:if(l=Ht,u=he,Ht=null,Cn(t,e,i),Ht=l,he=u,Ht!==null)if(he)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(i.stateNode)}catch(c){Rt(i,e,c)}else try{Ht.removeChild(i.stateNode)}catch(c){Rt(i,e,c)}break;case 18:Ht!==null&&(he?(t=Ht,ng(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),_a(t)):ng(Ht,i.stateNode));break;case 4:l=Ht,u=he,Ht=i.stateNode.containerInfo,he=!0,Cn(t,e,i),Ht=l,he=u;break;case 0:case 11:case 14:case 15:ti(2,i,e),Jt||ti(4,i,e),Cn(t,e,i);break;case 1:Jt||(en(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&ip(i,e,l)),Cn(t,e,i);break;case 21:Cn(t,e,i);break;case 22:Jt=(l=Jt)||i.memoizedState!==null,Cn(t,e,i),Jt=l;break;default:Cn(t,e,i)}}function fp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_a(t)}catch(i){Rt(e,e.return,i)}}}function dp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_a(t)}catch(i){Rt(e,e.return,i)}}function V1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new op),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new op),e;default:throw Error(o(435,t.tag))}}function co(t,e){var i=V1(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var u=X1.bind(null,t,l);l.then(u,u)}})}function me(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var u=i[l],c=t,g=e,b=g;t:for(;b!==null;){switch(b.tag){case 27:if(oi(b.type)){Ht=b.stateNode,he=!1;break t}break;case 5:Ht=b.stateNode,he=!1;break t;case 3:case 4:Ht=b.stateNode.containerInfo,he=!0;break t}b=b.return}if(Ht===null)throw Error(o(160));cp(c,g,u),Ht=null,he=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)hp(e,t),e=e.sibling}var Ke=null;function hp(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),pe(t),l&4&&(ti(3,t,t.return),Ol(3,t),ti(5,t,t.return));break;case 1:me(e,t),pe(t),l&512&&(Jt||i===null||en(i,i.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var u=Ke;if(me(e,t),pe(t),l&512&&(Jt||i===null||en(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[al]||c[ee]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),le(c,l,i),c[ee]=t,It(c),l=c;break t;case"link":var g=hg("link","href",u).get(l+(i.href||""));if(g){for(var b=0;b<g.length;b++)if(c=g[b],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(b,1);break e}}c=u.createElement(l),le(c,l,i),u.head.appendChild(c);break;case"meta":if(g=hg("meta","content",u).get(l+(i.content||""))){for(b=0;b<g.length;b++)if(c=g[b],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(b,1);break e}}c=u.createElement(l),le(c,l,i),u.head.appendChild(c);break;default:throw Error(o(468,l))}c[ee]=t,It(c),l=c}t.stateNode=l}else mg(u,t.type,t.stateNode);else t.stateNode=dg(u,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?mg(u,t.type,t.stateNode):dg(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Wu(t,t.memoizedProps,i.memoizedProps)}break;case 27:me(e,t),pe(t),l&512&&(Jt||i===null||en(i,i.return)),i!==null&&l&4&&Wu(t,t.memoizedProps,i.memoizedProps);break;case 5:if(me(e,t),pe(t),l&512&&(Jt||i===null||en(i,i.return)),t.flags&32){u=t.stateNode;try{na(u,"")}catch(W){Rt(t,t.return,W)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,Wu(t,u,i!==null?i.memoizedProps:u)),l&1024&&(tc=!0);break;case 6:if(me(e,t),pe(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(W){Rt(t,t.return,W)}}break;case 3:if(Mo=null,u=Ke,Ke=Co(e.containerInfo),me(e,t),Ke=u,pe(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{_a(e.containerInfo)}catch(W){Rt(t,t.return,W)}tc&&(tc=!1,mp(t));break;case 4:l=Ke,Ke=Co(t.stateNode.containerInfo),me(e,t),pe(t),Ke=l;break;case 12:me(e,t),pe(t);break;case 31:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,co(t,l)));break;case 13:me(e,t),pe(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ho=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,co(t,l)));break;case 22:u=t.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,_=En,H=Jt;if(En=_||u,Jt=H||E,me(e,t),Jt=H,En=_,pe(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(i===null||E||En||Jt||Gi(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){E=i=e;try{if(c=E.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=E.stateNode;var X=E.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Rt(E,E.return,W)}}}else if(e.tag===6){if(i===null){E=e;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(W){Rt(E,E.return,W)}}}else if(e.tag===18){if(i===null){E=e;try{var B=E.stateNode;u?ig(B,!0):ig(E.stateNode,!1)}catch(W){Rt(E,E.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,co(t,i))));break;case 19:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,co(t,l)));break;case 30:break;case 21:break;default:me(e,t),pe(t)}}function pe(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(lp(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,c=$u(t);uo(t,c,u);break;case 5:var g=i.stateNode;i.flags&32&&(na(g,""),i.flags&=-33);var b=$u(t);uo(t,b,g);break;case 3:case 4:var E=i.stateNode.containerInfo,_=$u(t);Iu(t,_,E);break;default:throw Error(o(161))}}catch(H){Rt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function mp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;mp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function wn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)rp(t,e.alternate,e),e=e.sibling}function Gi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ti(4,e,e.return),Gi(e);break;case 1:en(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&ip(e,e.return,i),Gi(e);break;case 27:Gl(e.stateNode);case 26:case 5:en(e,e.return),Gi(e);break;case 22:e.memoizedState===null&&Gi(e);break;case 30:Gi(e);break;default:Gi(e)}t=t.sibling}}function Mn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:Mn(u,c,i),Ol(4,c);break;case 1:if(Mn(u,c,i),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(_){Rt(l,l.return,_)}if(l=c,u=l.updateQueue,u!==null){var b=l.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)Zh(E[u],b)}catch(_){Rt(l,l.return,_)}}i&&g&64&&np(c),Nl(c,c.return);break;case 27:sp(c);case 26:case 5:Mn(u,c,i),i&&l===null&&g&4&&ap(c),Nl(c,c.return);break;case 12:Mn(u,c,i);break;case 31:Mn(u,c,i),i&&g&4&&fp(u,c);break;case 13:Mn(u,c,i),i&&g&4&&dp(u,c);break;case 22:c.memoizedState===null&&Mn(u,c,i),Nl(c,c.return);break;case 30:break;default:Mn(u,c,i)}e=e.sibling}}function ec(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&yl(i))}function nc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t))}function Qe(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pp(t,e,i,l),e=e.sibling}function pp(t,e,i,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,i,l),u&2048&&Ol(9,e);break;case 1:Qe(t,e,i,l);break;case 3:Qe(t,e,i,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t)));break;case 12:if(u&2048){Qe(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,b=c.onPostCommit;typeof b=="function"&&b(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(E){Rt(e,e.return,E)}}else Qe(t,e,i,l);break;case 31:Qe(t,e,i,l);break;case 13:Qe(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?Qe(t,e,i,l):jl(t,e):c._visibility&2?Qe(t,e,i,l):(c._visibility|=2,Ta(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&ec(g,e);break;case 24:Qe(t,e,i,l),u&2048&&nc(e.alternate,e);break;default:Qe(t,e,i,l)}}function Ta(t,e,i,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,b=i,E=l,_=g.flags;switch(g.tag){case 0:case 11:case 15:Ta(c,g,b,E,u),Ol(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?Ta(c,g,b,E,u):jl(c,g):(H._visibility|=2,Ta(c,g,b,E,u)),u&&_&2048&&ec(g.alternate,g);break;case 24:Ta(c,g,b,E,u),u&&_&2048&&nc(g.alternate,g);break;default:Ta(c,g,b,E,u)}e=e.sibling}}function jl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,u=l.flags;switch(l.tag){case 22:jl(i,l),u&2048&&ec(l.alternate,l);break;case 24:jl(i,l),u&2048&&nc(l.alternate,l);break;default:jl(i,l)}e=e.sibling}}var _l=8192;function Aa(t,e,i){if(t.subtreeFlags&_l)for(t=t.child;t!==null;)gp(t,e,i),t=t.sibling}function gp(t,e,i){switch(t.tag){case 26:Aa(t,e,i),t.flags&_l&&t.memoizedState!==null&&SS(i,Ke,t.memoizedState,t.memoizedProps);break;case 5:Aa(t,e,i);break;case 3:case 4:var l=Ke;Ke=Co(t.stateNode.containerInfo),Aa(t,e,i),Ke=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=_l,_l=16777216,Aa(t,e,i),_l=l):Aa(t,e,i));break;default:Aa(t,e,i)}}function yp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function zl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];te=l,bp(l,t)}yp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vp(t),t=t.sibling}function vp(t){switch(t.tag){case 0:case 11:case 15:zl(t),t.flags&2048&&ti(9,t,t.return);break;case 3:zl(t);break;case 12:zl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,fo(t)):zl(t);break;default:zl(t)}}function fo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];te=l,bp(l,t)}yp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ti(8,e,e.return),fo(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,fo(e));break;default:fo(e)}t=t.sibling}}function bp(t,e){for(;te!==null;){var i=te;switch(i.tag){case 0:case 11:case 15:ti(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:yl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,te=l;else t:for(i=t;te!==null;){l=te;var u=l.sibling,c=l.return;if(up(l),l===i){te=null;break t}if(u!==null){u.return=c,te=u;break t}te=c}}}var L1={getCacheForType:function(t){var e=ie(Qt),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return ie(Qt).controller.signal}},B1=typeof WeakMap=="function"?WeakMap:Map,Ct=0,_t=null,gt=null,vt=0,Mt=0,Ce=null,ei=!1,Ea=!1,ic=!1,Rn=0,qt=0,ni=0,Yi=0,ac=0,we=0,Ca=0,Vl=null,ge=null,lc=!1,ho=0,xp=0,mo=1/0,po=null,ii=null,Wt=0,ai=null,wa=null,Dn=0,sc=0,oc=null,Sp=null,Ll=0,rc=null;function Me(){return(Ct&2)!==0&&vt!==0?vt&-vt:L.T!==null?mc():Bd()}function Tp(){if(we===0)if((vt&536870912)===0||xt){var t=Ts;Ts<<=1,(Ts&3932160)===0&&(Ts=262144),we=t}else we=536870912;return t=Ae.current,t!==null&&(t.flags|=32),we}function ye(t,e,i){(t===_t&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)&&(Ma(t,0),li(t,vt,we,!1)),il(t,i),((Ct&2)===0||t!==_t)&&(t===_t&&((Ct&2)===0&&(Yi|=i),qt===4&&li(t,vt,we,!1)),nn(t))}function Ap(t,e,i){if((Ct&6)!==0)throw Error(o(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||nl(t,e),u=l?G1(t,e):cc(t,e,!0),c=l;do{if(u===0){Ea&&!l&&li(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!U1(i)){u=cc(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var b=t;u=Vl;var E=b.current.memoizedState.isDehydrated;if(E&&(Ma(b,g).flags|=256),g=cc(b,g,!1),g!==2){if(ic&&!E){b.errorRecoveryDisabledLanes|=c,Yi|=c,u=4;break t}c=ge,ge=u,c!==null&&(ge===null?ge=c:ge.push.apply(ge,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){Ma(t,0),li(t,e,0,!0);break}t:{switch(l=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:li(l,e,we,!ei);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=ho+300-ve(),10<u)){if(li(l,e,we,!ei),Es(l,0,!0)!==0)break t;Dn=e,l.timeoutHandle=tg(Ep.bind(null,l,i,ge,po,lc,e,we,Yi,Ca,ei,c,"Throttled",-0,0),u);break t}Ep(l,i,ge,po,lc,e,we,Yi,Ca,ei,c,null,-0,0)}}break}while(!0);nn(t)}function Ep(t,e,i,l,u,c,g,b,E,_,H,X,z,B){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},gp(e,c,X);var W=(c&62914560)===c?ho-ve():(c&4194048)===c?xp-ve():0;if(W=TS(X,W),W!==null){Dn=c,t.cancelPendingCommit=W(jp.bind(null,t,e,c,i,l,u,g,b,E,H,X,null,z,B)),li(t,c,g,!_);return}}jp(t,e,c,i,l,u,g,b,E)}function U1(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var u=i[l],c=u.getSnapshot;u=u.value;try{if(!Se(c(),u))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function li(t,e,i,l){e&=~ac,e&=~Yi,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var c=31-xe(u),g=1<<c;l[c]=-1,u&=~g}i!==0&&zd(t,i,e)}function go(){return(Ct&6)===0?(Bl(0),!1):!0}function uc(){if(gt!==null){if(Mt===0)var t=gt.return;else t=gt,vn=ji=null,Cu(t),ya=null,bl=0,t=gt;for(;t!==null;)ep(t.alternate,t),t=t.return;gt=null}}function Ma(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,aS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Dn=0,uc(),_t=t,gt=i=gn(t.current,null),vt=e,Mt=0,Ce=null,ei=!1,Ea=nl(t,e),ic=!1,Ca=we=ac=Yi=ni=qt=0,ge=Vl=null,lc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-xe(l),c=1<<u;e|=t[u],l&=~c}return Rn=e,Ls(),i}function Cp(t,e){ct=null,L.H=Ml,e===ga||e===Xs?(e=Yh(),Mt=3):e===hu?(e=Yh(),Mt=4):Mt=e===Yu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,gt===null&&(qt=1,ao(t,Ve(e,t.current)))}function wp(){var t=Ae.current;return t===null?!0:(vt&4194048)===vt?He===null:(vt&62914560)===vt||(vt&536870912)!==0?t===He:!1}function Mp(){var t=L.H;return L.H=Ml,t===null?Ml:t}function Rp(){var t=L.A;return L.A=L1,t}function yo(){qt=4,ei||(vt&4194048)!==vt&&Ae.current!==null||(Ea=!0),(ni&134217727)===0&&(Yi&134217727)===0||_t===null||li(_t,vt,we,!1)}function cc(t,e,i){var l=Ct;Ct|=2;var u=Mp(),c=Rp();(_t!==t||vt!==e)&&(po=null,Ma(t,e)),e=!1;var g=qt;t:do try{if(Mt!==0&&gt!==null){var b=gt,E=Ce;switch(Mt){case 8:uc(),g=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var _=Mt;if(Mt=0,Ce=null,Ra(t,b,E,_),i&&Ea){g=0;break t}break;default:_=Mt,Mt=0,Ce=null,Ra(t,b,E,_)}}H1(),g=qt;break}catch(H){Cp(t,H)}while(!0);return e&&t.shellSuspendCounter++,vn=ji=null,Ct=l,L.H=u,L.A=c,gt===null&&(_t=null,vt=0,Ls()),g}function H1(){for(;gt!==null;)Dp(gt)}function G1(t,e){var i=Ct;Ct|=2;var l=Mp(),u=Rp();_t!==t||vt!==e?(po=null,mo=ve()+500,Ma(t,e)):Ea=nl(t,e);t:do try{if(Mt!==0&&gt!==null){e=gt;var c=Ce;e:switch(Mt){case 1:Mt=0,Ce=null,Ra(t,e,c,1);break;case 2:case 9:if(Hh(c)){Mt=0,Ce=null,Op(e);break}e=function(){Mt!==2&&Mt!==9||_t!==t||(Mt=7),nn(t)},c.then(e,e);break t;case 3:Mt=7;break t;case 4:Mt=5;break t;case 7:Hh(c)?(Mt=0,Ce=null,Op(e)):(Mt=0,Ce=null,Ra(t,e,c,7));break;case 5:var g=null;switch(gt.tag){case 26:g=gt.memoizedState;case 5:case 27:var b=gt;if(g?pg(g):b.stateNode.complete){Mt=0,Ce=null;var E=b.sibling;if(E!==null)gt=E;else{var _=b.return;_!==null?(gt=_,vo(_)):gt=null}break e}}Mt=0,Ce=null,Ra(t,e,c,5);break;case 6:Mt=0,Ce=null,Ra(t,e,c,6);break;case 8:uc(),qt=6;break t;default:throw Error(o(462))}}Y1();break}catch(H){Cp(t,H)}while(!0);return vn=ji=null,L.H=l,L.A=u,Ct=i,gt!==null?0:(_t=null,vt=0,Ls(),qt)}function Y1(){for(;gt!==null&&!cx();)Dp(gt)}function Dp(t){var e=Im(t.alternate,t,Rn);t.memoizedProps=t.pendingProps,e===null?vo(t):gt=e}function Op(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Qm(i,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=Qm(i,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Cu(e);default:ep(i,e),e=gt=Rh(e,Rn),e=Im(i,e,Rn)}t.memoizedProps=t.pendingProps,e===null?vo(t):gt=e}function Ra(t,e,i,l){vn=ji=null,Cu(e),ya=null,bl=0;var u=e.return;try{if(D1(t,u,e,i,vt)){qt=1,ao(t,Ve(i,t.current)),gt=null;return}}catch(c){if(u!==null)throw gt=u,c;qt=1,ao(t,Ve(i,t.current)),gt=null;return}e.flags&32768?(xt||l===1?t=!0:Ea||(vt&536870912)!==0?t=!1:(ei=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ae.current,l!==null&&l.tag===13&&(l.flags|=16384))),Np(e,t)):vo(e)}function vo(t){var e=t;do{if((e.flags&32768)!==0){Np(e,ei);return}t=e.return;var i=j1(e.alternate,e,Rn);if(i!==null){gt=i;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);qt===0&&(qt=5)}function Np(t,e){do{var i=_1(t.alternate,t);if(i!==null){i.flags&=32767,gt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=i}while(t!==null);qt=6,gt=null}function jp(t,e,i,l,u,c,g,b,E){t.cancelPendingCommit=null;do bo();while(Wt!==0);if((Ct&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=$r,xx(t,i,c,g,b,E),t===_t&&(gt=_t=null,vt=0),wa=e,ai=t,Dn=i,sc=c,oc=u,Sp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Z1(xs,function(){return Bp(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,u=Z.p,Z.p=2,g=Ct,Ct|=4;try{z1(t,e,i)}finally{Ct=g,Z.p=u,L.T=l}}Wt=1,_p(),zp(),Vp()}}function _p(){if(Wt===1){Wt=0;var t=ai,e=wa,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var l=Z.p;Z.p=2;var u=Ct;Ct|=4;try{hp(e,t);var c=Tc,g=bh(t.containerInfo),b=c.focusedElem,E=c.selectionRange;if(g!==b&&b&&b.ownerDocument&&vh(b.ownerDocument.documentElement,b)){if(E!==null&&Qr(b)){var _=E.start,H=E.end;if(H===void 0&&(H=_),"selectionStart"in b)b.selectionStart=_,b.selectionEnd=Math.min(H,b.value.length);else{var X=b.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var B=z.getSelection(),W=b.textContent.length,it=Math.min(E.start,W),Nt=E.end===void 0?it:Math.min(E.end,W);!B.extend&&it>Nt&&(g=Nt,Nt=it,it=g);var O=yh(b,it),R=yh(b,Nt);if(O&&R&&(B.rangeCount!==1||B.anchorNode!==O.node||B.anchorOffset!==O.offset||B.focusNode!==R.node||B.focusOffset!==R.offset)){var j=X.createRange();j.setStart(O.node,O.offset),B.removeAllRanges(),it>Nt?(B.addRange(j),B.extend(R.node,R.offset)):(j.setEnd(R.node,R.offset),B.addRange(j))}}}}for(X=[],B=b;B=B.parentNode;)B.nodeType===1&&X.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<X.length;b++){var Y=X[b];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}No=!!Sc,Tc=Sc=null}finally{Ct=u,Z.p=l,L.T=i}}t.current=e,Wt=2}}function zp(){if(Wt===2){Wt=0;var t=ai,e=wa,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var l=Z.p;Z.p=2;var u=Ct;Ct|=4;try{rp(t,e.alternate,e)}finally{Ct=u,Z.p=l,L.T=i}}Wt=3}}function Vp(){if(Wt===4||Wt===3){Wt=0,fx();var t=ai,e=wa,i=Dn,l=Sp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,wa=ai=null,Lp(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ii=null),Rr(i),e=e.stateNode,be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(el,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=L.T,u=Z.p,Z.p=2,L.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var b=l[g];c(b.value,{componentStack:b.stack})}}finally{L.T=e,Z.p=u}}(Dn&3)!==0&&bo(),nn(t),u=t.pendingLanes,(i&261930)!==0&&(u&42)!==0?t===rc?Ll++:(Ll=0,rc=t):Ll=0,Bl(0)}}function Lp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yl(e)))}function bo(){return _p(),zp(),Vp(),Bp()}function Bp(){if(Wt!==5)return!1;var t=ai,e=sc;sc=0;var i=Rr(Dn),l=L.T,u=Z.p;try{Z.p=32>i?32:i,L.T=null,i=oc,oc=null;var c=ai,g=Dn;if(Wt=0,wa=ai=null,Dn=0,(Ct&6)!==0)throw Error(o(331));var b=Ct;if(Ct|=4,vp(c.current),pp(c,c.current,g,i),Ct=b,Bl(0,!1),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(el,c)}catch{}return!0}finally{Z.p=u,L.T=l,Lp(t,e)}}function Up(t,e,i){e=Ve(i,e),e=Gu(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(il(t,2),nn(t))}function Rt(t,e,i){if(t.tag===3)Up(t,t,i);else for(;e!==null;){if(e.tag===3){Up(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ii===null||!ii.has(l))){t=Ve(i,t),i=Hm(2),l=Wn(e,i,2),l!==null&&(Gm(i,l,e,t),il(l,2),nn(l));break}}e=e.return}}function fc(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new B1;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(i)||(ic=!0,u.add(i),t=q1.bind(null,t,e,i),e.then(t,t))}function q1(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,_t===t&&(vt&i)===i&&(qt===4||qt===3&&(vt&62914560)===vt&&300>ve()-ho?(Ct&2)===0&&Ma(t,0):ac|=i,Ca===vt&&(Ca=0)),nn(t)}function Hp(t,e){e===0&&(e=_d()),t=Di(t,e),t!==null&&(il(t,e),nn(t))}function P1(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),Hp(t,i)}function X1(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),Hp(t,i)}function Z1(t,e){return Er(t,e)}var xo=null,Da=null,dc=!1,So=!1,hc=!1,si=0;function nn(t){t!==Da&&t.next===null&&(Da===null?xo=Da=t:Da=Da.next=t),So=!0,dc||(dc=!0,Q1())}function Bl(t,e){if(!hc&&So){hc=!0;do for(var i=!1,l=xo;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var g=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-xe(42|t)+1)-1,c&=u&~(g&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Pp(l,c))}else c=vt,c=Es(l,l===_t?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||nl(l,c)||(i=!0,Pp(l,c));l=l.next}while(i);hc=!1}}function K1(){Gp()}function Gp(){So=dc=!1;var t=0;si!==0&&iS()&&(t=si);for(var e=ve(),i=null,l=xo;l!==null;){var u=l.next,c=Yp(l,e);c===0?(l.next=null,i===null?xo=u:i.next=u,u===null&&(Da=i)):(i=l,(t!==0||(c&3)!==0)&&(So=!0)),l=u}Wt!==0&&Wt!==5||Bl(t),si!==0&&(si=0)}function Yp(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-xe(c),b=1<<g,E=u[g];E===-1?((b&i)===0||(b&l)!==0)&&(u[g]=bx(b,e)):E<=e&&(t.expiredLanes|=b),c&=~b}if(e=_t,i=vt,i=Es(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Cr(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||nl(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&Cr(l),Rr(i)){case 2:case 8:i=Nd;break;case 32:i=xs;break;case 268435456:i=jd;break;default:i=xs}return l=qp.bind(null,t),i=Er(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&Cr(l),t.callbackPriority=2,t.callbackNode=null,2}function qp(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(bo()&&t.callbackNode!==i)return null;var l=vt;return l=Es(t,t===_t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Ap(t,l,e),Yp(t,ve()),t.callbackNode!=null&&t.callbackNode===i?qp.bind(null,t):null)}function Pp(t,e){if(bo())return null;Ap(t,e,!0)}function Q1(){lS(function(){(Ct&6)!==0?Er(Od,K1):Gp()})}function mc(){if(si===0){var t=ma;t===0&&(t=Ss,Ss<<=1,(Ss&261888)===0&&(Ss=256)),si=t}return si}function Xp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Rs(""+t)}function Zp(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function k1(t,e,i,l,u){if(e==="submit"&&i&&i.stateNode===u){var c=Xp((u[fe]||null).action),g=l.submitter;g&&(e=(e=g[fe]||null)?Xp(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var b=new js("action","action",null,l,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(si!==0){var E=g?Zp(u,g):new FormData(u);zu(i,{pending:!0,data:E,method:u.method,action:c},null,E)}}else typeof c=="function"&&(b.preventDefault(),E=g?Zp(u,g):new FormData(u),zu(i,{pending:!0,data:E,method:u.method,action:c},c,E))},currentTarget:u}]})}}for(var pc=0;pc<Wr.length;pc++){var gc=Wr[pc],F1=gc.toLowerCase(),J1=gc[0].toUpperCase()+gc.slice(1);Ze(F1,"on"+J1)}Ze(Th,"onAnimationEnd"),Ze(Ah,"onAnimationIteration"),Ze(Eh,"onAnimationStart"),Ze("dblclick","onDoubleClick"),Ze("focusin","onFocus"),Ze("focusout","onBlur"),Ze(d1,"onTransitionRun"),Ze(h1,"onTransitionStart"),Ze(m1,"onTransitionCancel"),Ze(Ch,"onTransitionEnd"),ta("onMouseEnter",["mouseout","mouseover"]),ta("onMouseLeave",["mouseout","mouseover"]),ta("onPointerEnter",["pointerout","pointerover"]),ta("onPointerLeave",["pointerout","pointerover"]),Ci("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ci("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ci("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ci("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),W1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul));function Kp(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],u=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var g=l.length-1;0<=g;g--){var b=l[g],E=b.instance,_=b.currentTarget;if(b=b.listener,E!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=_;try{c(u)}catch(H){Vs(H)}u.currentTarget=null,c=E}else for(g=0;g<l.length;g++){if(b=l[g],E=b.instance,_=b.currentTarget,b=b.listener,E!==c&&u.isPropagationStopped())break t;c=b,u.currentTarget=_;try{c(u)}catch(H){Vs(H)}u.currentTarget=null,c=E}}}}function yt(t,e){var i=e[Dr];i===void 0&&(i=e[Dr]=new Set);var l=t+"__bubble";i.has(l)||(Qp(e,t,2,!1),i.add(l))}function yc(t,e,i){var l=0;e&&(l|=4),Qp(i,t,l,e)}var To="_reactListening"+Math.random().toString(36).slice(2);function vc(t){if(!t[To]){t[To]=!0,Gd.forEach(function(i){i!=="selectionchange"&&(W1.has(i)||yc(i,!1,t),yc(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[To]||(e[To]=!0,yc("selectionchange",!1,e))}}function Qp(t,e,i,l){switch(Tg(e)){case 2:var u=CS;break;case 8:u=wS;break;default:u=_c}i=u.bind(null,e,i,t),u=void 0,!Ur||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,i,{capture:!0,passive:u}):t.addEventListener(e,i,!0):u!==void 0?t.addEventListener(e,i,{passive:u}):t.addEventListener(e,i,!1)}function bc(t,e,i,l,u){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var b=l.stateNode.containerInfo;if(b===u)break;if(g===4)for(g=l.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;b!==null;){if(g=Wi(b),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){l=c=g;continue t}b=b.parentNode}}l=l.return}$d(function(){var _=c,H=Lr(i),X=[];t:{var z=wh.get(t);if(z!==void 0){var B=js,W=t;switch(t){case"keypress":if(Os(i)===0)break t;case"keydown":case"keyup":B=Xx;break;case"focusin":W="focus",B=qr;break;case"focusout":W="blur",B=qr;break;case"beforeblur":case"afterblur":B=qr;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Qx;break;case Th:case Ah:case Eh:B=Vx;break;case Ch:B=Fx;break;case"scroll":case"scrollend":B=Ox;break;case"wheel":B=Wx;break;case"copy":case"cut":case"paste":B=Bx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=ih;break;case"toggle":case"beforetoggle":B=Ix}var it=(e&4)!==0,Nt=!it&&(t==="scroll"||t==="scrollend"),O=it?z!==null?z+"Capture":null:z;it=[];for(var R=_,j;R!==null;){var Y=R;if(j=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||j===null||O===null||(Y=sl(R,O),Y!=null&&it.push(Hl(R,Y,j))),Nt)break;R=R.return}0<it.length&&(z=new B(z,W,null,i,H),X.push({event:z,listeners:it}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",z&&i!==Vr&&(W=i.relatedTarget||i.fromElement)&&(Wi(W)||W[Ji]))break t;if((B||z)&&(z=H.window===H?H:(z=H.ownerDocument)?z.defaultView||z.parentWindow:window,B?(W=i.relatedTarget||i.toElement,B=_,W=W?Wi(W):null,W!==null&&(Nt=f(W),it=W.tag,W!==Nt||it!==5&&it!==27&&it!==6)&&(W=null)):(B=null,W=_),B!==W)){if(it=eh,Y="onMouseLeave",O="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(it=ih,Y="onPointerLeave",O="onPointerEnter",R="pointer"),Nt=B==null?z:ll(B),j=W==null?z:ll(W),z=new it(Y,R+"leave",B,i,H),z.target=Nt,z.relatedTarget=j,Y=null,Wi(H)===_&&(it=new it(O,R+"enter",W,i,H),it.target=j,it.relatedTarget=Nt,Y=it),Nt=Y,B&&W)e:{for(it=$1,O=B,R=W,j=0,Y=O;Y;Y=it(Y))j++;Y=0;for(var nt=R;nt;nt=it(nt))Y++;for(;0<j-Y;)O=it(O),j--;for(;0<Y-j;)R=it(R),Y--;for(;j--;){if(O===R||R!==null&&O===R.alternate){it=O;break e}O=it(O),R=it(R)}it=null}else it=null;B!==null&&kp(X,z,B,it,!1),W!==null&&Nt!==null&&kp(X,Nt,W,it,!0)}}t:{if(z=_?ll(_):window,B=z.nodeName&&z.nodeName.toLowerCase(),B==="select"||B==="input"&&z.type==="file")var At=fh;else if(uh(z))if(dh)At=u1;else{At=o1;var I=s1}else B=z.nodeName,!B||B.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?_&&zr(_.elementType)&&(At=fh):At=r1;if(At&&(At=At(t,_))){ch(X,At,i,H);break t}I&&I(t,z,_),t==="focusout"&&_&&z.type==="number"&&_.memoizedProps.value!=null&&_r(z,"number",z.value)}switch(I=_?ll(_):window,t){case"focusin":(uh(I)||I.contentEditable==="true")&&(sa=I,kr=_,ml=null);break;case"focusout":ml=kr=sa=null;break;case"mousedown":Fr=!0;break;case"contextmenu":case"mouseup":case"dragend":Fr=!1,xh(X,i,H);break;case"selectionchange":if(f1)break;case"keydown":case"keyup":xh(X,i,H)}var ft;if(Xr)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else la?oh(t,i)&&(bt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(bt="onCompositionStart");bt&&(ah&&i.locale!=="ko"&&(la||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&la&&(ft=Id()):(Xn=H,Hr="value"in Xn?Xn.value:Xn.textContent,la=!0)),I=Ao(_,bt),0<I.length&&(bt=new nh(bt,t,null,i,H),X.push({event:bt,listeners:I}),ft?bt.data=ft:(ft=rh(i),ft!==null&&(bt.data=ft)))),(ft=e1?n1(t,i):i1(t,i))&&(bt=Ao(_,"onBeforeInput"),0<bt.length&&(I=new nh("onBeforeInput","beforeinput",null,i,H),X.push({event:I,listeners:bt}),I.data=ft)),k1(X,t,_,i,H)}Kp(X,e)})}function Hl(t,e,i){return{instance:t,listener:e,currentTarget:i}}function Ao(t,e){for(var i=e+"Capture",l=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=sl(t,i),u!=null&&l.unshift(Hl(t,u,c)),u=sl(t,e),u!=null&&l.push(Hl(t,u,c))),t.tag===3)return l;t=t.return}return[]}function $1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function kp(t,e,i,l,u){for(var c=e._reactName,g=[];i!==null&&i!==l;){var b=i,E=b.alternate,_=b.stateNode;if(b=b.tag,E!==null&&E===l)break;b!==5&&b!==26&&b!==27||_===null||(E=_,u?(_=sl(i,c),_!=null&&g.unshift(Hl(i,_,E))):u||(_=sl(i,c),_!=null&&g.push(Hl(i,_,E)))),i=i.return}g.length!==0&&t.push({event:e,listeners:g})}var I1=/\r\n?/g,tS=/\u0000|\uFFFD/g;function Fp(t){return(typeof t=="string"?t:""+t).replace(I1,`
49
+ `).replace(tS,"")}function Jp(t,e){return e=Fp(e),Fp(t)===e}function Ot(t,e,i,l,u,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||na(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&na(t,""+l);break;case"className":ws(t,"class",l);break;case"tabIndex":ws(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ws(t,i,l);break;case"style":Jd(t,l,c);break;case"data":if(e!=="object"){ws(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Rs(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 c=="function"&&(i==="formAction"?(e!=="input"&&Ot(t,e,"name",u.name,u,null),Ot(t,e,"formEncType",u.formEncType,u,null),Ot(t,e,"formMethod",u.formMethod,u,null),Ot(t,e,"formTarget",u.formTarget,u,null)):(Ot(t,e,"encType",u.encType,u,null),Ot(t,e,"method",u.method,u,null),Ot(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Rs(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=mn);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Rs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":yt("beforetoggle",t),yt("toggle",t),Cs(t,"popover",l);break;case"xlinkActuate":hn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":hn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":hn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":hn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":hn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":hn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":hn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":hn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":hn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Rx.get(i)||i,Cs(t,i,l))}}function xc(t,e,i,l,u,c){switch(i){case"style":Jd(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?na(t,l):(typeof l=="number"||typeof l=="bigint")&&na(t,""+l);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yd.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),e=i.slice(2,u?i.length-7:void 0),c=t[fe]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,u);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Cs(t,i,l)}}}function le(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var l=!1,u=!1,c;for(c in i)if(i.hasOwnProperty(c)){var g=i[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,c,g,i,null)}}u&&Ot(t,e,"srcSet",i.srcSet,i,null),l&&Ot(t,e,"src",i.src,i,null);return;case"input":yt("invalid",t);var b=c=g=u=null,E=null,_=null;for(l in i)if(i.hasOwnProperty(l)){var H=i[l];if(H!=null)switch(l){case"name":u=H;break;case"type":g=H;break;case"checked":E=H;break;case"defaultChecked":_=H;break;case"value":c=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,e));break;default:Ot(t,e,l,H,i,null)}}Kd(t,c,b,E,_,g,u,!1);return;case"select":yt("invalid",t),l=g=c=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":g=b;break;case"multiple":l=b;default:Ot(t,e,u,b,i,null)}e=c,i=g,t.multiple=!!l,e!=null?ea(t,!!l,e,!1):i!=null&&ea(t,!!l,i,!0);return;case"textarea":yt("invalid",t),c=u=l=null;for(g in i)if(i.hasOwnProperty(g)&&(b=i[g],b!=null))switch(g){case"value":l=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Ot(t,e,g,b,i,null)}kd(t,l,u,c);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(l=i[E],l!=null))switch(E){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,E,l,i,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(l=0;l<Ul.length;l++)yt(Ul[l],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in i)if(i.hasOwnProperty(_)&&(l=i[_],l!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,_,l,i,null)}return;default:if(zr(e)){for(H in i)i.hasOwnProperty(H)&&(l=i[H],l!==void 0&&xc(t,e,H,l,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(l=i[b],l!=null&&Ot(t,e,b,l,i,null))}function eS(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,b=null,E=null,_=null,H=null;for(B in i){var X=i[B];if(i.hasOwnProperty(B)&&X!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=X;default:l.hasOwnProperty(B)||Ot(t,e,B,null,l,X)}}for(var z in l){var B=l[z];if(X=i[z],l.hasOwnProperty(z)&&(B!=null||X!=null))switch(z){case"type":c=B;break;case"name":u=B;break;case"checked":_=B;break;case"defaultChecked":H=B;break;case"value":g=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:B!==X&&Ot(t,e,z,B,l,X)}}jr(t,g,b,E,_,H,c,u);return;case"select":B=g=b=z=null;for(c in i)if(E=i[c],i.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":B=E;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,E)}for(u in l)if(c=l[u],E=i[u],l.hasOwnProperty(u)&&(c!=null||E!=null))switch(u){case"value":z=c;break;case"defaultValue":b=c;break;case"multiple":g=c;default:c!==E&&Ot(t,e,u,c,l,E)}e=b,i=g,l=B,z!=null?ea(t,!!i,z,!1):!!l!=!!i&&(e!=null?ea(t,!!i,e,!0):ea(t,!!i,i?[]:"",!1));return;case"textarea":B=z=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ot(t,e,b,null,l,u)}for(g in l)if(u=l[g],c=i[g],l.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":z=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ot(t,e,g,u,l,c)}Qd(t,z,B);return;case"option":for(var W in i)if(z=i[W],i.hasOwnProperty(W)&&z!=null&&!l.hasOwnProperty(W))switch(W){case"selected":t.selected=!1;break;default:Ot(t,e,W,null,l,z)}for(E in l)if(z=l[E],B=i[E],l.hasOwnProperty(E)&&z!==B&&(z!=null||B!=null))switch(E){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ot(t,e,E,z,l,B)}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 it in i)z=i[it],i.hasOwnProperty(it)&&z!=null&&!l.hasOwnProperty(it)&&Ot(t,e,it,null,l,z);for(_ in l)if(z=l[_],B=i[_],l.hasOwnProperty(_)&&z!==B&&(z!=null||B!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ot(t,e,_,z,l,B)}return;default:if(zr(e)){for(var Nt in i)z=i[Nt],i.hasOwnProperty(Nt)&&z!==void 0&&!l.hasOwnProperty(Nt)&&xc(t,e,Nt,void 0,l,z);for(H in l)z=l[H],B=i[H],!l.hasOwnProperty(H)||z===B||z===void 0&&B===void 0||xc(t,e,H,z,l,B);return}}for(var O in i)z=i[O],i.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&Ot(t,e,O,null,l,z);for(X in l)z=l[X],B=i[X],!l.hasOwnProperty(X)||z===B||z==null&&B==null||Ot(t,e,X,z,l,B)}function Wp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var u=i[l],c=u.transferSize,g=u.initiatorType,b=u.duration;if(c&&b&&Wp(g)){for(g=0,b=u.responseEnd,l+=1;l<i.length;l++){var E=i[l],_=E.startTime;if(_>b)break;var H=E.transferSize,X=E.initiatorType;H&&Wp(X)&&(E=E.responseEnd,g+=H*(E<b?1:(b-_)/(E-_)))}if(--l,e+=8*(c+g)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Sc=null,Tc=null;function Eo(t){return t.nodeType===9?t:t.ownerDocument}function $p(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ip(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ac(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ec=null;function iS(){var t=window.event;return t&&t.type==="popstate"?t===Ec?!1:(Ec=t,!0):(Ec=null,!1)}var tg=typeof setTimeout=="function"?setTimeout:void 0,aS=typeof clearTimeout=="function"?clearTimeout:void 0,eg=typeof Promise=="function"?Promise:void 0,lS=typeof queueMicrotask=="function"?queueMicrotask:typeof eg<"u"?function(t){return eg.resolve(null).then(t).catch(sS)}:tg;function sS(t){setTimeout(function(){throw t})}function oi(t){return t==="head"}function ng(t,e){var i=e,l=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(u),_a(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Gl(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Gl(i);for(var c=i.firstChild;c;){var g=c.nextSibling,b=c.nodeName;c[al]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=g}}else i==="body"&&Gl(t.ownerDocument.body);i=u}while(i);_a(e)}function ig(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Cc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Cc(i),Or(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function oS(t,e,i,l){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[al])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function rS(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ge(t.nextSibling),t===null))return null;return t}function ag(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function wc(t){return t.data==="$?"||t.data==="$~"}function Mc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function uS(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Rc=null;function lg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Ge(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function sg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function og(t,e,i){switch(e=Eo(i),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Gl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Or(t)}var Ye=new Map,rg=new Set;function Co(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var On=Z.d;Z.d={f:cS,r:fS,D:dS,C:hS,L:mS,m:pS,X:yS,S:gS,M:vS};function cS(){var t=On.f(),e=go();return t||e}function fS(t){var e=$i(t);e!==null&&e.tag===5&&e.type==="form"?Cm(e):On.r(t)}var Oa=typeof document>"u"?null:document;function ug(t,e,i){var l=Oa;if(l&&typeof e=="string"&&e){var u=_e(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),rg.has(u)||(rg.add(u),t={rel:t,crossOrigin:i,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),le(e,"link",t),It(e),l.head.appendChild(e)))}}function dS(t){On.D(t),ug("dns-prefetch",t,null)}function hS(t,e){On.C(t,e),ug("preconnect",t,e)}function mS(t,e,i){On.L(t,e,i);var l=Oa;if(l&&t&&e){var u='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+_e(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+_e(i.imageSizes)+'"]')):u+='[href="'+_e(t)+'"]';var c=u;switch(e){case"style":c=Na(t);break;case"script":c=ja(t)}Ye.has(c)||(t=v({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Ye.set(c,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(Yl(c))||e==="script"&&l.querySelector(ql(c))||(e=l.createElement("link"),le(e,"link",t),It(e),l.head.appendChild(e)))}}function pS(t,e){On.m(t,e);var i=Oa;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ja(t)}if(!Ye.has(c)&&(t=v({rel:"modulepreload",href:t},e),Ye.set(c,t),i.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ql(c)))return}l=i.createElement("link"),le(l,"link",t),It(l),i.head.appendChild(l)}}}function gS(t,e,i){On.S(t,e,i);var l=Oa;if(l&&t){var u=Ii(l).hoistableStyles,c=Na(t);e=e||"default";var g=u.get(c);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(Yl(c)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Ye.get(c))&&Dc(t,i);var E=g=l.createElement("link");It(E),le(E,"link",t),E._p=new Promise(function(_,H){E.onload=_,E.onerror=H}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,wo(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:b},u.set(c,g)}}}function yS(t,e){On.X(t,e);var i=Oa;if(i&&t){var l=Ii(i).hoistableScripts,u=ja(t),c=l.get(u);c||(c=i.querySelector(ql(u)),c||(t=v({src:t,async:!0},e),(e=Ye.get(u))&&Oc(t,e),c=i.createElement("script"),It(c),le(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function vS(t,e){On.M(t,e);var i=Oa;if(i&&t){var l=Ii(i).hoistableScripts,u=ja(t),c=l.get(u);c||(c=i.querySelector(ql(u)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Ye.get(u))&&Oc(t,e),c=i.createElement("script"),It(c),le(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function cg(t,e,i,l){var u=(u=mt.current)?Co(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Na(i.href),i=Ii(u).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Na(i.href);var c=Ii(u).hoistableStyles,g=c.get(t);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=u.querySelector(Yl(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Ye.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ye.set(t,i),c||bS(u,t,i,g.state))),e&&l===null)throw Error(o(528,""));return g}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ja(i),i=Ii(u).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Na(t){return'href="'+_e(t)+'"'}function Yl(t){return'link[rel="stylesheet"]['+t+"]"}function fg(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function bS(t,e,i,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),le(e,"link",i),It(e),t.head.appendChild(e))}function ja(t){return'[src="'+_e(t)+'"]'}function ql(t){return"script[async]"+t}function dg(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(i.href)+'"]');if(l)return e.instance=l,It(l),l;var u=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),le(l,"style",u),wo(l,i.precedence,t),e.instance=l;case"stylesheet":u=Na(i.href);var c=t.querySelector(Yl(u));if(c)return e.state.loading|=4,e.instance=c,It(c),c;l=fg(i),(u=Ye.get(u))&&Dc(l,u),c=(t.ownerDocument||t).createElement("link"),It(c);var g=c;return g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),le(c,"link",l),e.state.loading|=4,wo(c,i.precedence,t),e.instance=c;case"script":return c=ja(i.src),(u=t.querySelector(ql(c)))?(e.instance=u,It(u),u):(l=i,(u=Ye.get(c))&&(l=v({},i),Oc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),It(u),le(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,wo(l,i.precedence,t));return e.instance}function wo(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,g=0;g<l.length;g++){var b=l[g];if(b.dataset.precedence===e)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Dc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Mo=null;function hg(t,e,i){if(Mo===null){var l=new Map,u=Mo=new Map;u.set(i,l)}else u=Mo,l=u.get(i),l||(l=new Map,u.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var c=i[u];if(!(c[al]||c[ee]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var b=l.get(g);b?b.push(c):l.set(g,[c])}}return l}function mg(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function xS(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function pg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function SS(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=Na(l.href),c=e.querySelector(Yl(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ro.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,It(c);return}c=e.ownerDocument||e,l=fg(l),(u=Ye.get(u))&&Dc(l,u),c=c.createElement("link"),It(c);var g=c;g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),le(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Ro.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Nc=0;function TS(t,e){return t.stylesheets&&t.count===0&&Oo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Oo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Nc===0&&(Nc=62500*nS());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Oo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Nc?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Ro(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Oo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Do=null;function Oo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Do=new Map,e.forEach(AS,t),Do=null,Ro.call(t))}function AS(t,e){if(!(e.state.loading&4)){var i=Do.get(t);if(i)var l=i.get(null);else{i=new Map,Do.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(null,l)}u=e.instance,g=u.getAttribute("data-precedence"),c=i.get(g)||l,c===l&&i.set(null,u),i.set(g,u),this.count++,l=Ro.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Pl={$$typeof:U,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function ES(t,e,i,l,u,c,g,b,E){this.tag=1,this.containerInfo=t,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=wr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.hiddenUpdates=wr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function gg(t,e,i,l,u,c,g,b,E,_,H,X){return t=new ES(t,e,i,g,E,_,H,X,b),e=1,c===!0&&(e|=24),c=Te(3,null,null,e),t.current=c,c.stateNode=t,e=cu(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},mu(c),t}function yg(t){return t?(t=ua,t):ua}function vg(t,e,i,l,u,c){u=yg(u),l.context===null?l.context=u:l.pendingContext=u,l=Jn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Wn(t,l,e),i!==null&&(ye(i,t,e),Sl(i,t,e))}function bg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function jc(t,e){bg(t,e),(t=t.alternate)&&bg(t,e)}function xg(t){if(t.tag===13||t.tag===31){var e=Di(t,67108864);e!==null&&ye(e,t,67108864),jc(t,67108864)}}function Sg(t){if(t.tag===13||t.tag===31){var e=Me();e=Mr(e);var i=Di(t,e);i!==null&&ye(i,t,e),jc(t,e)}}var No=!0;function CS(t,e,i,l){var u=L.T;L.T=null;var c=Z.p;try{Z.p=2,_c(t,e,i,l)}finally{Z.p=c,L.T=u}}function wS(t,e,i,l){var u=L.T;L.T=null;var c=Z.p;try{Z.p=8,_c(t,e,i,l)}finally{Z.p=c,L.T=u}}function _c(t,e,i,l){if(No){var u=zc(l);if(u===null)bc(t,e,l,jo,i),Ag(t,l);else if(RS(u,t,e,i,l))l.stopPropagation();else if(Ag(t,l),e&4&&-1<MS.indexOf(t)){for(;u!==null;){var c=$i(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Ei(c.pendingLanes);if(g!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var E=1<<31-xe(g);b.entanglements[1]|=E,g&=~E}nn(c),(Ct&6)===0&&(mo=ve()+500,Bl(0))}}break;case 31:case 13:b=Di(c,2),b!==null&&ye(b,c,2),go(),jc(c,2)}if(c=zc(l),c===null&&bc(t,e,l,jo,i),c===u)break;u=c}u!==null&&l.stopPropagation()}else bc(t,e,l,null,i)}}function zc(t){return t=Lr(t),Vc(t)}var jo=null;function Vc(t){if(jo=null,t=Wi(t),t!==null){var e=f(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=d(e),t!==null)return t;t=null}else if(i===31){if(t=h(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return jo=t,null}function Tg(t){switch(t){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(dx()){case Od:return 2;case Nd:return 8;case xs:case hx:return 32;case jd:return 268435456;default:return 32}default:return 32}}var Lc=!1,ri=null,ui=null,ci=null,Xl=new Map,Zl=new Map,fi=[],MS="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 Ag(t,e){switch(t){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":Xl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(e.pointerId)}}function Kl(t,e,i,l,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},e!==null&&(e=$i(e),e!==null&&xg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function RS(t,e,i,l,u){switch(e){case"focusin":return ri=Kl(ri,t,e,i,l,u),!0;case"dragenter":return ui=Kl(ui,t,e,i,l,u),!0;case"mouseover":return ci=Kl(ci,t,e,i,l,u),!0;case"pointerover":var c=u.pointerId;return Xl.set(c,Kl(Xl.get(c)||null,t,e,i,l,u)),!0;case"gotpointercapture":return c=u.pointerId,Zl.set(c,Kl(Zl.get(c)||null,t,e,i,l,u)),!0}return!1}function Eg(t){var e=Wi(t.target);if(e!==null){var i=f(e);if(i!==null){if(e=i.tag,e===13){if(e=d(i),e!==null){t.blockedOn=e,Ud(t.priority,function(){Sg(i)});return}}else if(e===31){if(e=h(i),e!==null){t.blockedOn=e,Ud(t.priority,function(){Sg(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _o(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=zc(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Vr=l,i.target.dispatchEvent(l),Vr=null}else return e=$i(i),e!==null&&xg(e),t.blockedOn=i,!1;e.shift()}return!0}function Cg(t,e,i){_o(t)&&i.delete(e)}function DS(){Lc=!1,ri!==null&&_o(ri)&&(ri=null),ui!==null&&_o(ui)&&(ui=null),ci!==null&&_o(ci)&&(ci=null),Xl.forEach(Cg),Zl.forEach(Cg)}function zo(t,e){t.blockedOn===e&&(t.blockedOn=null,Lc||(Lc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,DS)))}var Vo=null;function wg(t){Vo!==t&&(Vo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Vo===t&&(Vo=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Vc(l||i)===null)continue;break}var c=$i(i);c!==null&&(t.splice(e,3),e-=3,zu(c,{pending:!0,data:u,method:i.method,action:l},l,u))}}))}function _a(t){function e(E){return zo(E,t)}ri!==null&&zo(ri,t),ui!==null&&zo(ui,t),ci!==null&&zo(ci,t),Xl.forEach(e),Zl.forEach(e);for(var i=0;i<fi.length;i++){var l=fi[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<fi.length&&(i=fi[0],i.blockedOn===null);)Eg(i),i.blockedOn===null&&fi.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var u=i[l],c=i[l+1],g=u[fe]||null;if(typeof c=="function")g||wg(i);else if(g){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[fe]||null)b=g.formAction;else if(Vc(u)!==null)continue}else b=g.action;typeof b=="function"?i[l+1]=b:(i.splice(l,3),l-=3),wg(i)}}}function Mg(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Bc(t){this._internalRoot=t}Lo.prototype.render=Bc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var i=e.current,l=Me();vg(i,l,t,e,null,null)},Lo.prototype.unmount=Bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;vg(t.current,2,null,t,null,null),go(),e[Ji]=null}};function Lo(t){this._internalRoot=t}Lo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Bd();t={blockedOn:null,target:t,priority:e};for(var i=0;i<fi.length&&e!==0&&e<fi[i].priority;i++);fi.splice(i,0,t),i===0&&Eg(t)}};var Rg=a.version;if(Rg!=="19.2.4")throw Error(o(527,Rg,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var OS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bo.isDisabled&&Bo.supportsFiber)try{el=Bo.inject(OS),be=Bo}catch{}}return kl.createRoot=function(t,e){if(!r(t))throw Error(o(299));var i=!1,l="",u=Vm,c=Lm,g=Bm;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=gg(t,1,!1,null,null,i,l,null,u,c,g,Mg),t[Ji]=e.current,vc(t),new Bc(e)},kl.hydrateRoot=function(t,e,i){if(!r(t))throw Error(o(299));var l=!1,u="",c=Vm,g=Lm,b=Bm,E=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),e=gg(t,1,!0,e,i??null,l,u,E,c,g,b,Mg),e.context=yg(null),i=e.current,l=Me(),l=Mr(l),u=Jn(l),u.callback=null,Wn(i,u,l),i=l,e.current.lanes=i,il(e,i),nn(e),t[Ji]=e.current,vc(t),new Lo(e)},kl.version="19.2.4",kl}var Ug;function qS(){if(Ug)return Yc.exports;Ug=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yc.exports=YS(),Yc.exports}var PS=qS();const XS=Cv(PS),ZS=3e3,KS=3e4,QS=2,kS=10;function FS(n){const{url:a="/api/events",onEvent:s,onStatusChange:o,enabled:r=!0}=n,[f,d]=S.useState("connecting"),h=S.useRef(null),p=S.useRef(0),m=S.useRef(null),y=S.useRef(!1),v=S.useRef(s);v.current=s;const x=S.useRef(o);x.current=o;const T=S.useCallback(U=>{var G;y.current||(d(U),(G=x.current)==null||G.call(x,U))},[]),C=S.useCallback(()=>{m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),M=S.useCallback(()=>{C(),h.current&&(h.current.close(),h.current=null)},[C]),D=S.useCallback(()=>{if(y.current)return;M();const U=p.current>0;T(U?"reconnecting":"connecting");const G=new EventSource(a);h.current=G;const q=["connected","state:full","project:connected","project:disconnected","bead:discovered","bead:claimed","bead:stage","bead:done","bead:error","bead:changed","bead:removed","agent:active","agent:idle","beads:refreshed","pipeline:started","pipeline:done"],Q=P=>{if(!y.current)try{const F=JSON.parse(P.data);v.current({type:P.type,data:F,id:P.lastEventId||void 0})}catch{}};for(const P of q)G.addEventListener(P,Q);G.onopen=()=>{y.current||(p.current=0,T("connected"))},G.onerror=()=>{if(y.current)return;if(G.close(),h.current=null,p.current++,p.current>kS){T("disconnected");return}T("reconnecting");const P=Math.min(ZS*QS**(p.current-1),KS);m.current=setTimeout(()=>{y.current||D()},P)}},[a,M,T]);S.useEffect(()=>(y.current=!1,r?D():(M(),T("disconnected")),()=>{y.current=!0,M()}),[r,D,M,T]);const N=S.useCallback(()=>{p.current=0,D()},[D]),V=S.useCallback(()=>{M(),T("disconnected")},[M,T]);return{status:f,reconnect:N,disconnect:V}}const JS={projects:new Map},ko="Pipeline";function an(n){return new Map(n)}function qe(n,a){const s=an(n);let o=s.get(a);return o?(o={...o,pipelines:an(o.pipelines)},s.set(a,o)):(o={projectPath:a,projectName:a.split("/").pop()||a,pluginId:"",lastHeartbeat:Date.now(),connected:!0,pipelines:new Map,lastBeadSnapshot:[],columns:[]},s.set(a,o)),{project:o,projects:s}}function Nn(n,a){if(a){const o=n.pipelines.get(a);if(o){const f={...o,beads:an(o.beads)};return n.pipelines.set(a,f),f}const r={id:a,title:ko,status:"active",currentBeadId:null,beads:new Map};return n.pipelines.set(a,r),r}if(n.pipelines.size>0){const o=n.pipelines.values().next().value,r={...o,beads:an(o.beads)};return n.pipelines.set(o.id,r),r}const s={id:"default",title:ko,status:"active",currentBeadId:null,beads:new Map};return n.pipelines.set("default",s),s}function WS(n){switch(n){case"open":case"in_progress":return"ready";case"closed":return"done";case"blocked":return"error";default:return"ready"}}function Zc(n,a){return{id:n.id,title:n.title,description:n.description||"",priority:n.priority??1,issueType:n.issue_type||"task",bdStatus:n.status,stage:a,stageStartedAt:Date.now()}}function $S(n){if(!n||typeof n!="object")return{projects:new Map};const s=n.projects;if(!Array.isArray(s))return{projects:new Map};const o=new Map;for(const r of s){let f,d;if(Array.isArray(r)&&r.length===2)f=r[0],d=r[1];else if(r&&typeof r=="object"&&"projectPath"in r)d=r,f=d.projectPath;else continue;const h=new Map,p=d.pipelines;if(Array.isArray(p))for(const m of p){let y,v;if(Array.isArray(m)&&m.length===2)v=m[0],y=m[1];else if(m&&typeof m=="object"&&"id"in m)y=m,v=y.id;else continue;const x=new Map,T=y.beads;if(Array.isArray(T))for(const C of T){let M,D;if(Array.isArray(C)&&C.length===2)D=C[0],M=C[1];else if(C&&typeof C=="object"&&"id"in C)M=C,D=M.id;else continue;x.set(D,{...M})}h.set(v,{id:y.id,title:y.title||ko,status:y.status||"active",currentBeadId:y.currentBeadId??null,beads:x})}o.set(f,{projectPath:d.projectPath||f,projectName:d.projectName||f.split("/").pop()||f,pluginId:d.pluginId||"",lastHeartbeat:d.lastHeartbeat||Date.now(),connected:d.connected!==!1,pipelines:h,lastBeadSnapshot:d.lastBeadSnapshot||[],columns:d.columns||[]})}return{projects:o}}function IS(n,a){switch(a.type){case"STATE_FULL":return $S(a.payload);case"PROJECT_CONNECTED":{const{projectPath:s,projectName:o,pluginId:r}=a.payload;if(!s)return n;const f=an(n.projects),d=f.get(s);return d?f.set(s,{...d,pipelines:an(d.pipelines),connected:!0,lastHeartbeat:Date.now(),pluginId:r}):f.set(s,{projectPath:s,projectName:o||s.split("/").pop()||s,pluginId:r,lastHeartbeat:Date.now(),connected:!0,pipelines:new Map,lastBeadSnapshot:[],columns:[]}),{projects:f}}case"BEAD_DISCOVERED":{const{projectPath:s,bead:o,pipelineId:r}=a.payload;if(!(o!=null&&o.id))return n;const{project:f,projects:d}=qe(n.projects,s),h=Nn(f,r);if(!h.beads.has(o.id)){const p=WS(o.status);h.beads.set(o.id,Zc(o,p))}return{projects:d}}case"BEAD_CLAIMED":{const{projectPath:s,beadId:o,bead:r,stage:f,pipelineId:d}=a.payload,h=o||(r==null?void 0:r.id);if(!h)return n;const{project:p,projects:m}=qe(n.projects,s),y=Nn(p,d),v=f||"ready",x=Date.now(),T=y.beads.get(h);return T?y.beads.set(h,{...T,bdStatus:"in_progress",stage:v,stageStartedAt:x,claimedAt:x}):r&&y.beads.set(h,{...Zc(r,v),bdStatus:"in_progress",claimedAt:x}),y.currentBeadId=h,y.status="active",{projects:m}}case"BEAD_STAGE":{const{projectPath:s,beadId:o,stage:r,agentSessionId:f,pipelineId:d}=a.payload;if(!o||!r)return n;const{project:h,projects:p}=qe(n.projects,s),m=Nn(h,d),y=m.beads.get(o);return y&&m.beads.set(o,{...y,stage:r,stageStartedAt:Date.now(),...f?{agentSessionId:f}:{}}),{projects:p}}case"BEAD_DONE":{const{projectPath:s,beadId:o,bead:r,pipelineId:f}=a.payload,d=o||(r==null?void 0:r.id);if(!d)return n;const{project:h,projects:p}=qe(n.projects,s),m=Nn(h,f),y=m.beads.get(d);if(y){const v=Date.now();m.beads.set(d,{...y,bdStatus:"closed",stage:"done",stageStartedAt:v,completedAt:v,agentSessionId:void 0,error:void 0})}return m.currentBeadId===d&&(m.currentBeadId=null),{projects:p}}case"BEAD_ERROR":{const{projectPath:s,beadId:o,error:r,bead:f,pipelineId:d}=a.payload,h=o||(f==null?void 0:f.id);if(!h)return n;const{project:p,projects:m}=qe(n.projects,s),y=Nn(p,d),v=y.beads.get(h);return v?y.beads.set(h,{...v,stage:"error",stageStartedAt:Date.now(),error:r||"Unknown error",...f!=null&&f.status?{bdStatus:f.status}:{}}):f&&y.beads.set(h,{...Zc(f,"error"),error:r||"Unknown error"}),y.currentBeadId===h&&(y.currentBeadId=null),{projects:m}}case"BEAD_CHANGED":{const{projectPath:s,bead:o,pipelineId:r}=a.payload;if(!(o!=null&&o.id))return n;const{project:f,projects:d}=qe(n.projects,s),h=Nn(f,r),p=h.beads.get(o.id);return p&&h.beads.set(o.id,{...p,bdStatus:o.status,title:o.title,description:o.description||"",priority:o.priority??p.priority,issueType:o.issue_type||p.issueType}),{projects:d}}case"BEAD_REMOVED":{const{projectPath:s,beadId:o,pipelineId:r}=a.payload;if(!o)return n;const{project:f,projects:d}=qe(n.projects,s),h=Nn(f,r);return h.beads.delete(o),h.currentBeadId===o&&(h.currentBeadId=null),{projects:d}}case"PIPELINE_STARTED":{const{projectPath:s,pipelineId:o,title:r}=a.payload;if(!o)return n;const{project:f,projects:d}=qe(n.projects,s),h=f.pipelines.get(o);return h?f.pipelines.set(o,{...h,beads:an(h.beads),title:r||h.title,status:"active"}):f.pipelines.set(o,{id:o,title:r||ko,status:"active",currentBeadId:null,beads:new Map}),{projects:d}}case"PIPELINE_DONE":{const{projectPath:s,pipelineId:o}=a.payload;if(!o)return n;const{project:r,projects:f}=qe(n.projects,s),d=r.pipelines.get(o);return d&&r.pipelines.set(o,{...d,beads:an(d.beads),status:"done",currentBeadId:null}),{projects:f}}case"PROJECT_DISCONNECTED":{const{projectPath:s}=a.payload;if(!s)return n;const o=n.projects.get(s);if(!o)return n;const r=an(o.pipelines);for(const[d,h]of r)h.status==="active"&&r.set(d,{...h,status:"idle"});const f=an(n.projects);return f.set(s,{...o,pipelines:r,connected:!1}),{projects:f}}case"AGENT_ACTIVE":{const{projectPath:s,beadId:o,sessionId:r,pipelineId:f}=a.payload;if(!o||!r)return n;const{project:d,projects:h}=qe(n.projects,s),p=Nn(d,f),m=p.beads.get(o);return m&&p.beads.set(o,{...m,agentSessionId:r}),{projects:h}}case"AGENT_IDLE":{const{projectPath:s,beadId:o,sessionId:r,pipelineId:f}=a.payload;if(!o)return n;const{project:d,projects:h}=qe(n.projects,s),p=Nn(d,f),m=p.beads.get(o);return m&&m.agentSessionId===r&&p.beads.set(o,{...m,agentSessionId:void 0}),{projects:h}}case"COLUMNS_UPDATE":{const{projectPath:s,columns:o}=a.payload;if(!s||!Array.isArray(o))return n;const{project:r,projects:f}=qe(n.projects,s);return r.columns=o,{projects:f}}default:return n}}const tT={"state:full":"STATE_FULL","project:connected":"PROJECT_CONNECTED","bead:discovered":"BEAD_DISCOVERED","bead:claimed":"BEAD_CLAIMED","bead:stage":"BEAD_STAGE","bead:done":"BEAD_DONE","bead:error":"BEAD_ERROR","bead:changed":"BEAD_CHANGED","bead:removed":"BEAD_REMOVED","pipeline:started":"PIPELINE_STARTED","pipeline:done":"PIPELINE_DONE","project:disconnected":"PROJECT_DISCONNECTED","agent:active":"AGENT_ACTIVE","agent:idle":"AGENT_IDLE","columns:update":"COLUMNS_UPDATE"};function eT(){const[n,a]=S.useReducer(IS,JS),s=S.useCallback(o=>{const r=tT[o.type];r&&a({type:r,payload:o.data})},[]);return{state:n,dispatch:s}}const ls=S.createContext({});function or(n){const a=S.useRef(null);return a.current===null&&(a.current=n()),a.current}const rr=S.createContext(null),ss=S.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class nT extends S.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const o=this.props.sizeRef.current;o.height=s.offsetHeight||0,o.width=s.offsetWidth||0,o.top=s.offsetTop,o.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function iT({children:n,isPresent:a}){const s=S.useId(),o=S.useRef(null),r=S.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=S.useContext(ss);return S.useInsertionEffect(()=>{const{width:d,height:h,top:p,left:m}=r.current;if(a||!o.current||!d||!h)return;o.current.dataset.motionPopId=s;const y=document.createElement("style");return f&&(y.nonce=f),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
50
+ [data-motion-pop-id="${s}"] {
51
+ position: absolute !important;
52
+ width: ${d}px !important;
53
+ height: ${h}px !important;
54
+ top: ${p}px !important;
55
+ left: ${m}px !important;
56
+ }
57
+ `),()=>{document.head.removeChild(y)}},[a]),A.jsx(nT,{isPresent:a,childRef:o,sizeRef:r,children:S.cloneElement(n,{ref:o})})}const aT=({children:n,initial:a,isPresent:s,onExitComplete:o,custom:r,presenceAffectsLayout:f,mode:d})=>{const h=or(lT),p=S.useId(),m=S.useCallback(v=>{h.set(v,!0);for(const x of h.values())if(!x)return;o&&o()},[h,o]),y=S.useMemo(()=>({id:p,initial:a,isPresent:s,custom:r,onExitComplete:m,register:v=>(h.set(v,!1),()=>h.delete(v))}),f?[Math.random(),m]:[s,m]);return S.useMemo(()=>{h.forEach((v,x)=>h.set(x,!1))},[s]),S.useEffect(()=>{!s&&!h.size&&o&&o()},[s]),d==="popLayout"&&(n=A.jsx(iT,{isPresent:s,children:n})),A.jsx(rr.Provider,{value:y,children:n})};function lT(){return new Map}function Rv(n=!0){const a=S.useContext(rr);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:r}=a,f=S.useId();S.useEffect(()=>{n&&r(f)},[n]);const d=S.useCallback(()=>n&&o&&o(f),[f,o,n]);return!s&&o?[!1,d]:[!0]}const Uo=n=>n.key||"";function Hg(n){const a=[];return S.Children.forEach(n,s=>{S.isValidElement(s)&&a.push(s)}),a}const Vf=typeof window<"u",Lf=Vf?S.useLayoutEffect:S.useEffect,Dv=({children:n,custom:a,initial:s=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:f="sync",propagate:d=!1})=>{const[h,p]=Rv(d),m=S.useMemo(()=>Hg(n),[n]),y=d&&!h?[]:m.map(Uo),v=S.useRef(!0),x=S.useRef(m),T=or(()=>new Map),[C,M]=S.useState(m),[D,N]=S.useState(m);Lf(()=>{v.current=!1,x.current=m;for(let G=0;G<D.length;G++){const q=Uo(D[G]);y.includes(q)?T.delete(q):T.get(q)!==!0&&T.set(q,!1)}},[D,y.length,y.join("-")]);const V=[];if(m!==C){let G=[...m];for(let q=0;q<D.length;q++){const Q=D[q],P=Uo(Q);y.includes(P)||(G.splice(q,0,Q),V.push(Q))}f==="wait"&&V.length&&(G=V),N(Hg(G)),M(m);return}const{forceRender:U}=S.useContext(ls);return A.jsx(A.Fragment,{children:D.map(G=>{const q=Uo(G),Q=d&&!h?!1:m===D||y.includes(q),P=()=>{if(T.has(q))T.set(q,!0);else return;let F=!0;T.forEach(lt=>{lt||(F=!1)}),F&&(U==null||U(),N(x.current),d&&(p==null||p()),o&&o())};return A.jsx(aT,{isPresent:Q,initial:!v.current||s?void 0:!1,custom:Q?void 0:a,presenceAffectsLayout:r,mode:f,onExitComplete:Q?void 0:P,children:G},q)})})},sT=S.createContext(null);function oT(){const n=S.useRef(!1);return Lf(()=>(n.current=!0,()=>{n.current=!1}),[]),n}const De=n=>n;let Ov=De;function Bf(n){let a;return()=>(a===void 0&&(a=n()),a)}const Ya=(n,a,s)=>{const o=a-n;return o===0?1:(s-n)/o},zn=n=>n*1e3,Vn=n=>n/1e3,rT={useManualTiming:!1};function uT(n){let a=new Set,s=new Set,o=!1,r=!1;const f=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(m){f.has(m)&&(p.schedule(m),n()),m(d)}const p={schedule:(m,y=!1,v=!1)=>{const T=v&&o?a:s;return y&&f.add(m),T.has(m)||T.add(m),m},cancel:m=>{s.delete(m),f.delete(m)},process:m=>{if(d=m,o){r=!0;return}o=!0,[a,s]=[s,a],a.forEach(h),a.clear(),o=!1,r&&(r=!1,p.process(m))}};return p}const Ho=["read","resolveKeyframes","update","preRender","render","postRender"],cT=40;function Nv(n,a){let s=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Ho.reduce((N,V)=>(N[V]=uT(f),N),{}),{read:h,resolveKeyframes:p,update:m,preRender:y,render:v,postRender:x}=d,T=()=>{const N=performance.now();s=!1,r.delta=o?1e3/60:Math.max(Math.min(N-r.timestamp,cT),1),r.timestamp=N,r.isProcessing=!0,h.process(r),p.process(r),m.process(r),y.process(r),v.process(r),x.process(r),r.isProcessing=!1,s&&a&&(o=!1,n(T))},C=()=>{s=!0,o=!0,r.isProcessing||n(T)};return{schedule:Ho.reduce((N,V)=>{const U=d[V];return N[V]=(G,q=!1,Q=!1)=>(s||C(),U.schedule(G,q,Q)),N},{}),cancel:N=>{for(let V=0;V<Ho.length;V++)d[Ho[V]].cancel(N)},state:r,steps:d}}const{schedule:zt,cancel:gi,state:se,steps:Kc}=Nv(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0);function fT(){const n=oT(),[a,s]=S.useState(0),o=S.useCallback(()=>{n.current&&s(a+1)},[a]);return[S.useCallback(()=>zt.postRender(o),[o]),a]}const dT=n=>!n.isLayoutDirty&&n.willUpdate(!1);function Gg(){const n=new Set,a=new WeakMap,s=()=>n.forEach(dT);return{add:o=>{n.add(o),a.set(o,o.addEventListener("willUpdate",s))},remove:o=>{n.delete(o);const r=a.get(o);r&&(r(),a.delete(o)),s()},dirty:s}}const jv=n=>n===!0,hT=n=>jv(n===!0)||n==="id",mT=({children:n,id:a,inherit:s=!0})=>{const o=S.useContext(ls),r=S.useContext(sT),[f,d]=fT(),h=S.useRef(null),p=o.id||r;h.current===null&&(hT(s)&&p&&(a=a?p+"-"+a:p),h.current={id:a,group:jv(s)&&o.group||Gg()});const m=S.useMemo(()=>({...h.current,forceRender:f}),[d]);return A.jsx(ls.Provider,{value:m,children:n})},_v=S.createContext({strict:!1}),Yg={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"]},qa={};for(const n in Yg)qa[n]={isEnabled:a=>Yg[n].some(s=>!!a[s])};function pT(n){for(const a in n)qa[a]={...qa[a],...n[a]}}const gT=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 Fo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||gT.has(n)}let zv=n=>!Fo(n);function Vv(n){n&&(zv=a=>a.startsWith("on")?!Fo(a):n(a))}try{Vv(require("@emotion/is-prop-valid").default)}catch{}function yT(n,a,s){const o={};for(const r in n)r==="values"&&typeof n.values=="object"||(zv(r)||s===!0&&Fo(r)||!a&&!Fo(r)||n.draggable&&r.startsWith("onDrag"))&&(o[r]=n[r]);return o}function vT({children:n,isValidProp:a,...s}){a&&Vv(a),s={...S.useContext(ss),...s},s.isStatic=or(()=>s.isStatic);const o=S.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion]);return A.jsx(ss.Provider,{value:o,children:n})}function bT(n){if(typeof Proxy>"u")return n;const a=new Map,s=(...o)=>n(...o);return new Proxy(s,{get:(o,r)=>r==="create"?n:(a.has(r)||a.set(r,n(r)),a.get(r))})}const ur=S.createContext({});function os(n){return typeof n=="string"||Array.isArray(n)}function cr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Uf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hf=["initial",...Uf];function fr(n){return cr(n.animate)||Hf.some(a=>os(n[a]))}function Lv(n){return!!(fr(n)||n.variants)}function xT(n,a){if(fr(n)){const{initial:s,animate:o}=n;return{initial:s===!1||os(s)?s:void 0,animate:os(o)?o:void 0}}return n.inherit!==!1?a:{}}function ST(n){const{initial:a,animate:s}=xT(n,S.useContext(ur));return S.useMemo(()=>({initial:a,animate:s}),[qg(a),qg(s)])}function qg(n){return Array.isArray(n)?n.join(" "):n}const TT=Symbol.for("motionComponentSymbol");function za(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function AT(n,a,s){return S.useCallback(o=>{o&&n.onMount&&n.onMount(o),a&&(o?a.mount(o):a.unmount()),s&&(typeof s=="function"?s(o):za(s)&&(s.current=o))},[a])}const Gf=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ET="framerAppearId",Bv="data-"+Gf(ET),{schedule:Yf}=Nv(queueMicrotask,!1),Uv=S.createContext({});function CT(n,a,s,o,r){var f,d;const{visualElement:h}=S.useContext(ur),p=S.useContext(_v),m=S.useContext(rr),y=S.useContext(ss).reducedMotion,v=S.useRef(null);o=o||p.renderer,!v.current&&o&&(v.current=o(n,{visualState:a,parent:h,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const x=v.current,T=S.useContext(Uv);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&wT(v.current,s,r,T);const C=S.useRef(!1);S.useInsertionEffect(()=>{x&&C.current&&x.update(s,m)});const M=s[Bv],D=S.useRef(!!M&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,M))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,M)));return Lf(()=>{x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),Yf.render(x.render),D.current&&x.animationState&&x.animationState.animateChanges())}),S.useEffect(()=>{x&&(!D.current&&x.animationState&&x.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)===null||N===void 0||N.call(window,M)}),D.current=!1))}),x}function wT(n,a,s,o){const{layoutId:r,layout:f,drag:d,dragConstraints:h,layoutScroll:p,layoutRoot:m}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:Hv(n.parent)),n.projection.setOptions({layoutId:r,layout:f,alwaysMeasureLayout:!!d||h&&za(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:m})}function Hv(n){if(n)return n.options.allowProjection!==!1?n.projection:Hv(n.parent)}function MT({preloadedFeatures:n,createVisualElement:a,useRender:s,useVisualState:o,Component:r}){var f,d;n&&pT(n);function h(m,y){let v;const x={...S.useContext(ss),...m,layoutId:RT(m)},{isStatic:T}=x,C=ST(m),M=o(m,T);if(!T&&Vf){DT();const D=OT(x);v=D.MeasureLayout,C.visualElement=CT(r,M,x,a,D.ProjectionNode)}return A.jsxs(ur.Provider,{value:C,children:[v&&C.visualElement?A.jsx(v,{visualElement:C.visualElement,...x}):null,s(r,m,AT(M,C.visualElement,y),M,T,C.visualElement)]})}h.displayName=`motion.${typeof r=="string"?r:`create(${(d=(f=r.displayName)!==null&&f!==void 0?f:r.name)!==null&&d!==void 0?d:""})`}`;const p=S.forwardRef(h);return p[TT]=r,p}function RT({layoutId:n}){const a=S.useContext(ls).id;return a&&n!==void 0?a+"-"+n:n}function DT(n,a){S.useContext(_v).strict}function OT(n){const{drag:a,layout:s}=qa;if(!a&&!s)return{};const o={...a,...s};return{MeasureLayout:a!=null&&a.isEnabled(n)||s!=null&&s.isEnabled(n)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const NT=["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 qf(n){return typeof n!="string"||n.includes("-")?!1:!!(NT.indexOf(n)>-1||/[A-Z]/u.test(n))}function Pg(n){const a=[{},{}];return n==null||n.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function Pf(n,a,s,o){if(typeof a=="function"){const[r,f]=Pg(o);a=a(s!==void 0?s:n.custom,r,f)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[r,f]=Pg(o);a=a(s!==void 0?s:n.custom,r,f)}return a}const uf=n=>Array.isArray(n),jT=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),_T=n=>uf(n)?n[n.length-1]||0:n,ue=n=>!!(n&&n.getVelocity);function Xo(n){const a=ue(n)?n.get():n;return jT(a)?a.toValue():a}function zT({scrapeMotionValuesFromProps:n,createRenderState:a,onUpdate:s},o,r,f){const d={latestValues:VT(o,r,f,n),renderState:a()};return s&&(d.onMount=h=>s({props:o,current:h,...d}),d.onUpdate=h=>s(h)),d}const Gv=n=>(a,s)=>{const o=S.useContext(ur),r=S.useContext(rr),f=()=>zT(n,a,o,r);return s?f():or(f)};function VT(n,a,s,o){const r={},f=o(n,{});for(const x in f)r[x]=Xo(f[x]);let{initial:d,animate:h}=n;const p=fr(n),m=Lv(n);a&&m&&!p&&n.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let y=s?s.initial===!1:!1;y=y||d===!1;const v=y?h:d;if(v&&typeof v!="boolean"&&!cr(v)){const x=Array.isArray(v)?v:[v];for(let T=0;T<x.length;T++){const C=Pf(n,x[T]);if(C){const{transitionEnd:M,transition:D,...N}=C;for(const V in N){let U=N[V];if(Array.isArray(U)){const G=y?U.length-1:0;U=U[G]}U!==null&&(r[V]=U)}for(const V in M)r[V]=M[V]}}}return r}const ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ki=new Set(ka),Yv=n=>a=>typeof a=="string"&&a.startsWith(n),qv=Yv("--"),LT=Yv("var(--"),Xf=n=>LT(n)?BT.test(n.split("/*")[0].trim()):!1,BT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pv=(n,a)=>a&&typeof n=="number"?a.transform(n):n,Ln=(n,a,s)=>s>a?a:s<n?n:s,Fa={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},rs={...Fa,transform:n=>Ln(0,1,n)},Go={...Fa,default:1},ms=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),pi=ms("deg"),on=ms("%"),at=ms("px"),UT=ms("vh"),HT=ms("vw"),Xg={...on,parse:n=>on.parse(n)/100,transform:n=>on.transform(n*100)},GT={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,radius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,top:at,right:at,bottom:at,left:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,backgroundPositionX:at,backgroundPositionY:at},YT={rotate:pi,rotateX:pi,rotateY:pi,rotateZ:pi,scale:Go,scaleX:Go,scaleY:Go,scaleZ:Go,skew:pi,skewX:pi,skewY:pi,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:rs,originX:Xg,originY:Xg,originZ:at},Zg={...Fa,transform:Math.round},Zf={...GT,...YT,zIndex:Zg,size:at,fillOpacity:rs,strokeOpacity:rs,numOctaves:Zg},qT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PT=ka.length;function XT(n,a,s){let o="",r=!0;for(let f=0;f<PT;f++){const d=ka[f],h=n[d];if(h===void 0)continue;let p=!0;if(typeof h=="number"?p=h===(d.startsWith("scale")?1:0):p=parseFloat(h)===0,!p||s){const m=Pv(h,Zf[d]);if(!p){r=!1;const y=qT[d]||d;o+=`${y}(${m}) `}s&&(a[d]=m)}}return o=o.trim(),s?o=s(a,r?"":o):r&&(o="none"),o}function Kf(n,a,s){const{style:o,vars:r,transformOrigin:f}=n;let d=!1,h=!1;for(const p in a){const m=a[p];if(ki.has(p)){d=!0;continue}else if(qv(p)){r[p]=m;continue}else{const y=Pv(m,Zf[p]);p.startsWith("origin")?(h=!0,f[p]=y):o[p]=y}}if(a.transform||(d||s?o.transform=XT(a,n.transform,s):o.transform&&(o.transform="none")),h){const{originX:p="50%",originY:m="50%",originZ:y=0}=f;o.transformOrigin=`${p} ${m} ${y}`}}const ZT={offset:"stroke-dashoffset",array:"stroke-dasharray"},KT={offset:"strokeDashoffset",array:"strokeDasharray"};function QT(n,a,s=1,o=0,r=!0){n.pathLength=1;const f=r?ZT:KT;n[f.offset]=at.transform(-o);const d=at.transform(a),h=at.transform(s);n[f.array]=`${d} ${h}`}function Kg(n,a,s){return typeof n=="string"?n:at.transform(a+s*n)}function kT(n,a,s){const o=Kg(a,n.x,n.width),r=Kg(s,n.y,n.height);return`${o} ${r}`}function Qf(n,{attrX:a,attrY:s,attrScale:o,originX:r,originY:f,pathLength:d,pathSpacing:h=1,pathOffset:p=0,...m},y,v){if(Kf(n,m,v),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:T,dimensions:C}=n;x.transform&&(C&&(T.transform=x.transform),delete x.transform),C&&(r!==void 0||f!==void 0||T.transform)&&(T.transformOrigin=kT(C,r!==void 0?r:.5,f!==void 0?f:.5)),a!==void 0&&(x.x=a),s!==void 0&&(x.y=s),o!==void 0&&(x.scale=o),d!==void 0&&QT(x,d,h,p,!1)}const kf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Xv=()=>({...kf(),attrs:{}}),Ff=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Zv(n,{style:a,vars:s},o,r){Object.assign(n.style,a,r&&r.getProjectionStyles(o));for(const f in s)n.style.setProperty(f,s[f])}const Kv=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 Qv(n,a,s,o){Zv(n,a,void 0,o);for(const r in a.attrs)n.setAttribute(Kv.has(r)?r:Gf(r),a.attrs[r])}const Jo={};function FT(n){Object.assign(Jo,n)}function kv(n,{layout:a,layoutId:s}){return ki.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Jo[n]||n==="opacity")}function Jf(n,a,s){var o;const{style:r}=n,f={};for(const d in r)(ue(r[d])||a.style&&ue(a.style[d])||kv(d,n)||((o=s==null?void 0:s.getValue(d))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(f[d]=r[d]);return f}function Fv(n,a,s){const o=Jf(n,a,s);for(const r in n)if(ue(n[r])||ue(a[r])){const f=ka.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[f]=n[r]}return o}function JT(n,a){try{a.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{a.dimensions={x:0,y:0,width:0,height:0}}}const Qg=["x","y","width","height","cx","cy","r"],WT={useVisualState:Gv({scrapeMotionValuesFromProps:Fv,createRenderState:Xv,onUpdate:({props:n,prevProps:a,current:s,renderState:o,latestValues:r})=>{if(!s)return;let f=!!n.drag;if(!f){for(const h in r)if(ki.has(h)){f=!0;break}}if(!f)return;let d=!a;if(a)for(let h=0;h<Qg.length;h++){const p=Qg[h];n[p]!==a[p]&&(d=!0)}d&&zt.read(()=>{JT(s,o),zt.render(()=>{Qf(o,r,Ff(s.tagName),n.transformTemplate),Qv(s,o)})})}})},$T={useVisualState:Gv({scrapeMotionValuesFromProps:Jf,createRenderState:kf})};function Jv(n,a,s){for(const o in a)!ue(a[o])&&!kv(o,s)&&(n[o]=a[o])}function IT({transformTemplate:n},a){return S.useMemo(()=>{const s=kf();return Kf(s,a,n),Object.assign({},s.vars,s.style)},[a])}function tA(n,a){const s=n.style||{},o={};return Jv(o,s,n),Object.assign(o,IT(n,a)),o}function eA(n,a){const s={},o=tA(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=o,s}function nA(n,a,s,o){const r=S.useMemo(()=>{const f=Xv();return Qf(f,a,Ff(o),n.transformTemplate),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};Jv(f,n.style,n),r.style={...f,...r.style}}return r}function iA(n=!1){return(s,o,r,{latestValues:f},d)=>{const p=(qf(s)?nA:eA)(o,f,d,s),m=yT(o,typeof s=="string",n),y=s!==S.Fragment?{...m,...p,ref:r}:{},{children:v}=o,x=S.useMemo(()=>ue(v)?v.get():v,[v]);return S.createElement(s,{...y,children:x})}}function aA(n,a){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const d={...qf(o)?WT:$T,preloadedFeatures:n,useRender:iA(r),createVisualElement:a,Component:o};return MT(d)}}function Wv(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let o=0;o<s;o++)if(a[o]!==n[o])return!1;return!0}function dr(n,a,s){const o=n.getProps();return Pf(o,a,s!==void 0?s:o.custom,n)}const lA=Bf(()=>window.ScrollTimeline!==void 0);class sA{constructor(a){this.stop=()=>this.runAll("stop"),this.animations=a.filter(Boolean)}get finished(){return Promise.all(this.animations.map(a=>"finished"in a?a.finished:a))}getAll(a){return this.animations[0][a]}setAll(a,s){for(let o=0;o<this.animations.length;o++)this.animations[o][a]=s}attachTimeline(a,s){const o=this.animations.map(r=>{if(lA()&&r.attachTimeline)return r.attachTimeline(a);if(typeof s=="function")return s(r)});return()=>{o.forEach((r,f)=>{r&&r(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(a){this.setAll("time",a)}get speed(){return this.getAll("speed")}set speed(a){this.setAll("speed",a)}get startTime(){return this.getAll("startTime")}get duration(){let a=0;for(let s=0;s<this.animations.length;s++)a=Math.max(a,this.animations[s].duration);return a}runAll(a){this.animations.forEach(s=>s[a]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class oA extends sA{then(a,s){return Promise.all(this.animations).then(a).catch(s)}}function Wf(n,a){return n?n[a]||n.default||n:void 0}const cf=2e4;function $v(n){let a=0;const s=50;let o=n.next(a);for(;!o.done&&a<cf;)a+=s,o=n.next(a);return a>=cf?1/0:a}function $f(n){return typeof n=="function"}function kg(n,a){n.timeline=a,n.onfinish=null}const If=n=>Array.isArray(n)&&typeof n[0]=="number",rA={linearEasing:void 0};function uA(n,a){const s=Bf(n);return()=>{var o;return(o=rA[a])!==null&&o!==void 0?o:s()}}const Wo=uA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Iv=(n,a,s=10)=>{let o="";const r=Math.max(Math.round(a/s),2);for(let f=0;f<r;f++)o+=n(Ya(0,r-1,f))+", ";return`linear(${o.substring(0,o.length-2)})`};function t0(n){return!!(typeof n=="function"&&Wo()||!n||typeof n=="string"&&(n in ff||Wo())||If(n)||Array.isArray(n)&&n.every(t0))}const $l=([n,a,s,o])=>`cubic-bezier(${n}, ${a}, ${s}, ${o})`,ff={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$l([0,.65,.55,1]),circOut:$l([.55,0,1,.45]),backIn:$l([.31,.01,.66,-.59]),backOut:$l([.33,1.53,.69,.99])};function e0(n,a){if(n)return typeof n=="function"&&Wo()?Iv(n,a):If(n)?$l(n):Array.isArray(n)?n.map(s=>e0(s,a)||ff.easeOut):ff[n]}const ke={x:!1,y:!1};function n0(){return ke.x||ke.y}function cA(n,a,s){var o;if(n instanceof Element)return[n];if(typeof n=="string"){let r=document;const f=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function i0(n,a){const s=cA(n),o=new AbortController,r={passive:!0,...a,signal:o.signal};return[s,r,()=>o.abort()]}function Fg(n){return a=>{a.pointerType==="touch"||n0()||n(a)}}function fA(n,a,s={}){const[o,r,f]=i0(n,s),d=Fg(h=>{const{target:p}=h,m=a(h);if(typeof m!="function"||!p)return;const y=Fg(v=>{m(v),p.removeEventListener("pointerleave",y)});p.addEventListener("pointerleave",y,r)});return o.forEach(h=>{h.addEventListener("pointerenter",d,r)}),f}const a0=(n,a)=>a?n===a?!0:a0(n,a.parentElement):!1,td=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,dA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hA(n){return dA.has(n.tagName)||n.tabIndex!==-1}const Il=new WeakSet;function Jg(n){return a=>{a.key==="Enter"&&n(a)}}function Qc(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const mA=(n,a)=>{const s=n.currentTarget;if(!s)return;const o=Jg(()=>{if(Il.has(s))return;Qc(s,"down");const r=Jg(()=>{Qc(s,"up")}),f=()=>Qc(s,"cancel");s.addEventListener("keyup",r,a),s.addEventListener("blur",f,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function Wg(n){return td(n)&&!n0()}function pA(n,a,s={}){const[o,r,f]=i0(n,s),d=h=>{const p=h.currentTarget;if(!Wg(h)||Il.has(p))return;Il.add(p);const m=a(h),y=(T,C)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),!(!Wg(T)||!Il.has(p))&&(Il.delete(p),typeof m=="function"&&m(T,{success:C}))},v=T=>{y(T,s.useGlobalTarget||a0(p,T.target))},x=T=>{y(T,!1)};window.addEventListener("pointerup",v,r),window.addEventListener("pointercancel",x,r)};return o.forEach(h=>{!hA(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,r),h.addEventListener("focus",m=>mA(m,r),r)}),f}function gA(n){return n==="x"||n==="y"?ke[n]?null:(ke[n]=!0,()=>{ke[n]=!1}):ke.x||ke.y?null:(ke.x=ke.y=!0,()=>{ke.x=ke.y=!1})}const l0=new Set(["width","height","top","left","right","bottom",...ka]);let Zo;function yA(){Zo=void 0}const rn={now:()=>(Zo===void 0&&rn.set(se.isProcessing||rT.useManualTiming?se.timestamp:performance.now()),Zo),set:n=>{Zo=n,queueMicrotask(yA)}};function ed(n,a){n.indexOf(a)===-1&&n.push(a)}function nd(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}class id{constructor(){this.subscriptions=[]}add(a){return ed(this.subscriptions,a),()=>nd(this.subscriptions,a)}notify(a,s,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](a,s,o);else for(let f=0;f<r;f++){const d=this.subscriptions[f];d&&d(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function s0(n,a){return a?n*(1e3/a):0}const $g=30,vA=n=>!isNaN(parseFloat(n));class bA{constructor(a,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const f=rn.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=rn.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=vA(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new id);const o=this.events[a].add(s);return a==="change"?()=>{o(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a,s=!0){!s||!this.passiveEffect?this.updateAndNotify(a,s):this.passiveEffect(a,this.updateAndNotify)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>$g)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,$g);return s0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function us(n,a){return new bA(n,a)}function xA(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,us(s))}function SA(n,a){const s=dr(n,a);let{transitionEnd:o={},transition:r={},...f}=s||{};f={...f,...o};for(const d in f){const h=_T(f[d]);xA(n,d,h)}}function TA(n){return!!(ue(n)&&n.add)}function df(n,a){const s=n.getValue("willChange");if(TA(s))return s.add(a)}function o0(n){return n.props[Bv]}const r0=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,AA=1e-7,EA=12;function CA(n,a,s,o,r){let f,d,h=0;do d=a+(s-a)/2,f=r0(d,o,r)-n,f>0?s=d:a=d;while(Math.abs(f)>AA&&++h<EA);return d}function ps(n,a,s,o){if(n===a&&s===o)return De;const r=f=>CA(f,0,1,n,s);return f=>f===0||f===1?f:r0(r(f),a,o)}const u0=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,c0=n=>a=>1-n(1-a),f0=ps(.33,1.53,.69,.99),ad=c0(f0),d0=u0(ad),h0=n=>(n*=2)<1?.5*ad(n):.5*(2-Math.pow(2,-10*(n-1))),ld=n=>1-Math.sin(Math.acos(n)),m0=c0(ld),p0=u0(ld),g0=n=>/^0[^.\s]+$/u.test(n);function wA(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||g0(n):!0}const es=n=>Math.round(n*1e5)/1e5,sd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function MA(n){return n==null}const RA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,od=(n,a)=>s=>!!(typeof s=="string"&&RA.test(s)&&s.startsWith(n)||a&&!MA(s)&&Object.prototype.hasOwnProperty.call(s,a)),y0=(n,a,s)=>o=>{if(typeof o!="string")return o;const[r,f,d,h]=o.match(sd);return{[n]:parseFloat(r),[a]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},DA=n=>Ln(0,255,n),kc={...Fa,transform:n=>Math.round(DA(n))},Zi={test:od("rgb","red"),parse:y0("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:o=1})=>"rgba("+kc.transform(n)+", "+kc.transform(a)+", "+kc.transform(s)+", "+es(rs.transform(o))+")"};function OA(n){let a="",s="",o="",r="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),r=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),r=n.substring(4,5),a+=a,s+=s,o+=o,r+=r),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const hf={test:od("#"),parse:OA,transform:Zi.transform},Va={test:od("hsl","hue"),parse:y0("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+on.transform(es(a))+", "+on.transform(es(s))+", "+es(rs.transform(o))+")"},re={test:n=>Zi.test(n)||hf.test(n)||Va.test(n),parse:n=>Zi.test(n)?Zi.parse(n):Va.test(n)?Va.parse(n):hf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Zi.transform(n):Va.transform(n)},NA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jA(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(sd))===null||a===void 0?void 0:a.length)||0)+(((s=n.match(NA))===null||s===void 0?void 0:s.length)||0)>0}const v0="number",b0="color",_A="var",zA="var(",Ig="${}",VA=/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 cs(n){const a=n.toString(),s=[],o={color:[],number:[],var:[]},r=[];let f=0;const h=a.replace(VA,p=>(re.test(p)?(o.color.push(f),r.push(b0),s.push(re.parse(p))):p.startsWith(zA)?(o.var.push(f),r.push(_A),s.push(p)):(o.number.push(f),r.push(v0),s.push(parseFloat(p))),++f,Ig)).split(Ig);return{values:s,split:h,indexes:o,types:r}}function x0(n){return cs(n).values}function S0(n){const{split:a,types:s}=cs(n),o=a.length;return r=>{let f="";for(let d=0;d<o;d++)if(f+=a[d],r[d]!==void 0){const h=s[d];h===v0?f+=es(r[d]):h===b0?f+=re.transform(r[d]):f+=r[d]}return f}}const LA=n=>typeof n=="number"?0:n;function BA(n){const a=x0(n);return S0(n)(a.map(LA))}const yi={test:jA,parse:x0,createTransformer:S0,getAnimatableNone:BA},UA=new Set(["brightness","contrast","saturate","opacity"]);function HA(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[o]=s.match(sd)||[];if(!o)return n;const r=s.replace(o,"");let f=UA.has(a)?1:0;return o!==s&&(f*=100),a+"("+f+r+")"}const GA=/\b([a-z-]*)\(.*?\)/gu,mf={...yi,getAnimatableNone:n=>{const a=n.match(GA);return a?a.map(HA).join(" "):n}},YA={...Zf,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:mf,WebkitFilter:mf},rd=n=>YA[n];function T0(n,a){let s=rd(n);return s!==mf&&(s=yi),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const qA=new Set(["auto","none","0"]);function PA(n,a,s){let o=0,r;for(;o<n.length&&!r;){const f=n[o];typeof f=="string"&&!qA.has(f)&&cs(f).values.length&&(r=n[o]),o++}if(r&&s)for(const f of a)n[f]=T0(s,r)}const ty=n=>n===Fa||n===at,ey=(n,a)=>parseFloat(n.split(", ")[a]),ny=(n,a)=>(s,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return ey(r[1],a);{const f=o.match(/^matrix\((.+)\)$/u);return f?ey(f[1],n):0}},XA=new Set(["x","y","z"]),ZA=ka.filter(n=>!XA.has(n));function KA(n){const a=[];return ZA.forEach(s=>{const o=n.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const Pa={width:({x:n},{paddingLeft:a="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),height:({y:n},{paddingTop:a="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:ny(4,13),y:ny(5,14)};Pa.translateX=Pa.x;Pa.translateY=Pa.y;const Ki=new Set;let pf=!1,gf=!1;function A0(){if(gf){const n=Array.from(Ki).filter(o=>o.needsMeasurement),a=new Set(n.map(o=>o.element)),s=new Map;a.forEach(o=>{const r=KA(o);r.length&&(s.set(o,r),o.render())}),n.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const r=s.get(o);r&&r.forEach(([f,d])=>{var h;(h=o.getValue(f))===null||h===void 0||h.set(d)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}gf=!1,pf=!1,Ki.forEach(n=>n.complete()),Ki.clear()}function E0(){Ki.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(gf=!0)})}function QA(){E0(),A0()}class ud{constructor(a,s,o,r,f,d=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=r,this.element=f,this.isAsync=d}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ki.add(this),pf||(pf=!0,zt.read(E0),zt.resolveKeyframes(A0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:r}=this;for(let f=0;f<a.length;f++)if(a[f]===null)if(f===0){const d=r==null?void 0:r.get(),h=a[a.length-1];if(d!==void 0)a[0]=d;else if(o&&s){const p=o.readValue(s,h);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=h),r&&d===void 0&&r.set(a[0])}else a[f]=a[f-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ki.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ki.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const C0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),kA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function FA(n){const a=kA.exec(n);if(!a)return[,];const[,s,o,r]=a;return[`--${s??o}`,r]}function w0(n,a,s=1){const[o,r]=FA(n);if(!o)return;const f=window.getComputedStyle(a).getPropertyValue(o);if(f){const d=f.trim();return C0(d)?parseFloat(d):d}return Xf(r)?w0(r,a,s+1):r}const M0=n=>a=>a.test(n),JA={test:n=>n==="auto",parse:n=>n},R0=[Fa,at,on,pi,HT,UT,JA],iy=n=>R0.find(M0(n));class D0 extends ud{constructor(a,s,o,r,f){super(a,s,o,r,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p<a.length;p++){let m=a[p];if(typeof m=="string"&&(m=m.trim(),Xf(m))){const y=w0(m,s.current);y!==void 0&&(a[p]=y),p===a.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!l0.has(o)||a.length!==2)return;const[r,f]=a,d=iy(r),h=iy(f);if(d!==h)if(ty(d)&&ty(h))for(let p=0;p<a.length;p++){const m=a[p];typeof m=="string"&&(a[p]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,o=[];for(let r=0;r<a.length;r++)wA(a[r])&&o.push(r);o.length&&PA(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pa[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&a.getValue(o,r).jump(r,!1)}measureEndState(){var a;const{element:s,name:o,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const f=s.getValue(o);f&&f.jump(this.measuredOrigin,!1);const d=r.length-1,h=r[d];r[d]=Pa[o](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),!((a=this.removedTransforms)===null||a===void 0)&&a.length&&this.removedTransforms.forEach(([p,m])=>{s.getValue(p).set(m)}),this.resolveNoneKeyframes()}}const ay=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(yi.test(n)||n==="0")&&!n.startsWith("url("));function WA(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function $A(n,a,s,o){const r=n[0];if(r===null)return!1;if(a==="display"||a==="visibility")return!0;const f=n[n.length-1],d=ay(r,a),h=ay(f,a);return!d||!h?!1:WA(n)||(s==="spring"||$f(s))&&o}const IA=n=>n!==null;function hr(n,{repeat:a,repeatType:s="loop"},o){const r=n.filter(IA),f=a&&s!=="loop"&&a%2===1?0:r.length-1;return!f||o===void 0?r[f]:o}const tE=40;class O0{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:r=0,repeatDelay:f=0,repeatType:d="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:a,delay:s,type:o,repeat:r,repeatDelay:f,repeatType:d,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>tE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&QA(),this._resolved}onKeyframesResolved(a,s){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:f,delay:d,onComplete:h,onUpdate:p,isGenerator:m}=this.options;if(!m&&!$A(a,o,r,f))if(d)this.options.duration=0;else{p&&p(hr(a,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const y=this.initPlayback(a,s);y!==!1&&(this._resolved={keyframes:a,finalKeyframe:s,...y},this.onPostResolved())}onPostResolved(){}then(a,s){return this.currentFinishedPromise.then(a,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(a=>{this.resolveFinishedPromise=a})}}const Gt=(n,a,s)=>n+(a-n)*s;function Fc(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function eE({hue:n,saturation:a,lightness:s,alpha:o}){n/=360,a/=100,s/=100;let r=0,f=0,d=0;if(!a)r=f=d=s;else{const h=s<.5?s*(1+a):s+a-s*a,p=2*s-h;r=Fc(p,h,n+1/3),f=Fc(p,h,n),d=Fc(p,h,n-1/3)}return{red:Math.round(r*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function $o(n,a){return s=>s>0?a:n}const Jc=(n,a,s)=>{const o=n*n,r=s*(a*a-o)+o;return r<0?0:Math.sqrt(r)},nE=[hf,Zi,Va],iE=n=>nE.find(a=>a.test(n));function ly(n){const a=iE(n);if(!a)return!1;let s=a.parse(n);return a===Va&&(s=eE(s)),s}const sy=(n,a)=>{const s=ly(n),o=ly(a);if(!s||!o)return $o(n,a);const r={...s};return f=>(r.red=Jc(s.red,o.red,f),r.green=Jc(s.green,o.green,f),r.blue=Jc(s.blue,o.blue,f),r.alpha=Gt(s.alpha,o.alpha,f),Zi.transform(r))},aE=(n,a)=>s=>a(n(s)),gs=(...n)=>n.reduce(aE),yf=new Set(["none","hidden"]);function lE(n,a){return yf.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function sE(n,a){return s=>Gt(n,a,s)}function cd(n){return typeof n=="number"?sE:typeof n=="string"?Xf(n)?$o:re.test(n)?sy:uE:Array.isArray(n)?N0:typeof n=="object"?re.test(n)?sy:oE:$o}function N0(n,a){const s=[...n],o=s.length,r=n.map((f,d)=>cd(f)(f,a[d]));return f=>{for(let d=0;d<o;d++)s[d]=r[d](f);return s}}function oE(n,a){const s={...n,...a},o={};for(const r in s)n[r]!==void 0&&a[r]!==void 0&&(o[r]=cd(n[r])(n[r],a[r]));return r=>{for(const f in o)s[f]=o[f](r);return s}}function rE(n,a){var s;const o=[],r={color:0,var:0,number:0};for(let f=0;f<a.values.length;f++){const d=a.types[f],h=n.indexes[d][r[d]],p=(s=n.values[h])!==null&&s!==void 0?s:0;o[f]=p,r[d]++}return o}const uE=(n,a)=>{const s=yi.createTransformer(a),o=cs(n),r=cs(a);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?yf.has(n)&&!r.values.length||yf.has(a)&&!o.values.length?lE(n,a):gs(N0(rE(o,r),r.values),s):$o(n,a)};function j0(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Gt(n,a,s):cd(n)(n,a)}const cE=5;function _0(n,a,s){const o=Math.max(a-cE,0);return s0(s-n(o),a-o)}const Pt={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},Wc=.001;function fE({duration:n=Pt.duration,bounce:a=Pt.bounce,velocity:s=Pt.velocity,mass:o=Pt.mass}){let r,f,d=1-a;d=Ln(Pt.minDamping,Pt.maxDamping,d),n=Ln(Pt.minDuration,Pt.maxDuration,Vn(n)),d<1?(r=m=>{const y=m*d,v=y*n,x=y-s,T=vf(m,d),C=Math.exp(-v);return Wc-x/T*C},f=m=>{const v=m*d*n,x=v*s+s,T=Math.pow(d,2)*Math.pow(m,2)*n,C=Math.exp(-v),M=vf(Math.pow(m,2),d);return(-r(m)+Wc>0?-1:1)*((x-T)*C)/M}):(r=m=>{const y=Math.exp(-m*n),v=(m-s)*n+1;return-Wc+y*v},f=m=>{const y=Math.exp(-m*n),v=(s-m)*(n*n);return y*v});const h=5/n,p=hE(r,f,h);if(n=zn(n),isNaN(p))return{stiffness:Pt.stiffness,damping:Pt.damping,duration:n};{const m=Math.pow(p,2)*o;return{stiffness:m,damping:d*2*Math.sqrt(o*m),duration:n}}}const dE=12;function hE(n,a,s){let o=s;for(let r=1;r<dE;r++)o=o-n(o)/a(o);return o}function vf(n,a){return n*Math.sqrt(1-a*a)}const mE=["duration","bounce"],pE=["stiffness","damping","mass"];function oy(n,a){return a.some(s=>n[s]!==void 0)}function gE(n){let a={velocity:Pt.velocity,stiffness:Pt.stiffness,damping:Pt.damping,mass:Pt.mass,isResolvedFromDuration:!1,...n};if(!oy(n,pE)&&oy(n,mE))if(n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),r=o*o,f=2*Ln(.05,1,1-(n.bounce||0))*Math.sqrt(r);a={...a,mass:Pt.mass,stiffness:r,damping:f}}else{const s=fE(n);a={...a,...s,mass:Pt.mass},a.isResolvedFromDuration=!0}return a}function z0(n=Pt.visualDuration,a=Pt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:o,restDelta:r}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:p,damping:m,mass:y,duration:v,velocity:x,isResolvedFromDuration:T}=gE({...s,velocity:-Vn(s.velocity||0)}),C=x||0,M=m/(2*Math.sqrt(p*y)),D=d-f,N=Vn(Math.sqrt(p/y)),V=Math.abs(D)<5;o||(o=V?Pt.restSpeed.granular:Pt.restSpeed.default),r||(r=V?Pt.restDelta.granular:Pt.restDelta.default);let U;if(M<1){const q=vf(N,M);U=Q=>{const P=Math.exp(-M*N*Q);return d-P*((C+M*N*D)/q*Math.sin(q*Q)+D*Math.cos(q*Q))}}else if(M===1)U=q=>d-Math.exp(-N*q)*(D+(C+N*D)*q);else{const q=N*Math.sqrt(M*M-1);U=Q=>{const P=Math.exp(-M*N*Q),F=Math.min(q*Q,300);return d-P*((C+M*N*D)*Math.sinh(F)+q*D*Math.cosh(F))/q}}const G={calculatedDuration:T&&v||null,next:q=>{const Q=U(q);if(T)h.done=q>=v;else{let P=0;M<1&&(P=q===0?zn(C):_0(U,q,Q));const F=Math.abs(P)<=o,lt=Math.abs(d-Q)<=r;h.done=F&&lt}return h.value=h.done?d:Q,h},toString:()=>{const q=Math.min($v(G),cf),Q=Iv(P=>G.next(q*P).value,q,30);return q+"ms "+Q}};return G}function ry({keyframes:n,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:p,restDelta:m=.5,restSpeed:y}){const v=n[0],x={done:!1,value:v},T=F=>h!==void 0&&F<h||p!==void 0&&F>p,C=F=>h===void 0?p:p===void 0||Math.abs(h-F)<Math.abs(p-F)?h:p;let M=s*a;const D=v+M,N=d===void 0?D:d(D);N!==D&&(M=N-v);const V=F=>-M*Math.exp(-F/o),U=F=>N+V(F),G=F=>{const lt=V(F),st=U(F);x.done=Math.abs(lt)<=m,x.value=x.done?N:st};let q,Q;const P=F=>{T(x.value)&&(q=F,Q=z0({keyframes:[x.value,C(x.value)],velocity:_0(U,F,x.value),damping:r,stiffness:f,restDelta:m,restSpeed:y}))};return P(0),{calculatedDuration:null,next:F=>{let lt=!1;return!Q&&q===void 0&&(lt=!0,G(F),P(F)),q!==void 0&&F>=q?Q.next(F-q):(!lt&&G(F),x)}}}const yE=ps(.42,0,1,1),vE=ps(0,0,.58,1),V0=ps(.42,0,.58,1),bE=n=>Array.isArray(n)&&typeof n[0]!="number",xE={linear:De,easeIn:yE,easeInOut:V0,easeOut:vE,circIn:ld,circInOut:p0,circOut:m0,backIn:ad,backInOut:d0,backOut:f0,anticipate:h0},uy=n=>{if(If(n)){Ov(n.length===4);const[a,s,o,r]=n;return ps(a,s,o,r)}else if(typeof n=="string")return xE[n];return n};function SE(n,a,s){const o=[],r=s||j0,f=n.length-1;for(let d=0;d<f;d++){let h=r(n[d],n[d+1]);if(a){const p=Array.isArray(a)?a[d]||De:a;h=gs(p,h)}o.push(h)}return o}function TE(n,a,{clamp:s=!0,ease:o,mixer:r}={}){const f=n.length;if(Ov(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=SE(a,o,r),p=h.length,m=y=>{if(d&&y<n[0])return a[0];let v=0;if(p>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const x=Ya(n[v],n[v+1],y);return h[v](x)};return s?y=>m(Ln(n[0],n[f-1],y)):m}function AE(n,a){const s=n[n.length-1];for(let o=1;o<=a;o++){const r=Ya(0,a,o);n.push(Gt(s,1,r))}}function EE(n){const a=[0];return AE(a,n.length-1),a}function CE(n,a){return n.map(s=>s*a)}function wE(n,a){return n.map(()=>a||V0).splice(0,n.length-1)}function Io({duration:n=300,keyframes:a,times:s,ease:o="easeInOut"}){const r=bE(o)?o.map(uy):uy(o),f={done:!1,value:a[0]},d=CE(s&&s.length===a.length?s:EE(a),n),h=TE(d,a,{ease:Array.isArray(r)?r:wE(a,r)});return{calculatedDuration:n,next:p=>(f.value=h(p),f.done=p>=n,f)}}const ME=n=>{const a=({timestamp:s})=>n(s);return{start:()=>zt.update(a,!0),stop:()=>gi(a),now:()=>se.isProcessing?se.timestamp:rn.now()}},RE={decay:ry,inertia:ry,tween:Io,keyframes:Io,spring:z0},DE=n=>n/100;class fd extends O0{constructor(a){super(a),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:s,motionValue:o,element:r,keyframes:f}=this.options,d=(r==null?void 0:r.KeyframeResolver)||ud,h=(p,m)=>this.onKeyframesResolved(p,m);this.resolver=new d(f,h,s,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(a){const{type:s="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:f,velocity:d=0}=this.options,h=$f(s)?s:RE[s]||Io;let p,m;h!==Io&&typeof a[0]!="number"&&(p=gs(DE,j0(a[0],a[1])),a=[0,100]);const y=h({...this.options,keyframes:a});f==="mirror"&&(m=h({...this.options,keyframes:[...a].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=$v(y));const{calculatedDuration:v}=y,x=v+r,T=x*(o+1)-r;return{generator:y,mirroredGenerator:m,mapPercentToKeyframes:p,calculatedDuration:v,resolvedDuration:x,totalDuration:T}}onPostResolved(){const{autoplay:a=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!a?this.pause():this.state=this.pendingPlayState}tick(a,s=!1){const{resolved:o}=this;if(!o){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:r,generator:f,mirroredGenerator:d,mapPercentToKeyframes:h,keyframes:p,calculatedDuration:m,totalDuration:y,resolvedDuration:v}=o;if(this.startTime===null)return f.next(0);const{delay:x,repeat:T,repeatType:C,repeatDelay:M,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-y/this.speed,this.startTime)),s?this.currentTime=a:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(a-this.startTime)*this.speed;const N=this.currentTime-x*(this.speed>=0?1:-1),V=this.speed>=0?N<0:N>y;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let U=this.currentTime,G=f;if(T){const F=Math.min(this.currentTime,y)/v;let lt=Math.floor(F),st=F%1;!st&&F>=1&&(st=1),st===1&&lt--,lt=Math.min(lt,T+1),!!(lt%2)&&(C==="reverse"?(st=1-st,M&&(st-=M/v)):C==="mirror"&&(G=d)),U=Ln(0,1,st)*v}const q=V?{done:!1,value:p[0]}:G.next(U);h&&(q.value=h(q.value));let{done:Q}=q;!V&&m!==null&&(Q=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return P&&r!==void 0&&(q.value=hr(p,this.options,r)),D&&D(q.value),P&&this.finish(),q}get duration(){const{resolved:a}=this;return a?Vn(a.calculatedDuration):0}get time(){return Vn(this.currentTime)}set time(a){a=zn(a),this.currentTime=a,this.holdTime!==null||this.speed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.speed)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Vn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:a=ME,onPlay:s,startTime:o}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),s&&s();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var a;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(a=this.currentTime)!==null&&a!==void 0?a:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:a}=this.options;a&&a()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}}const OE=new Set(["opacity","clipPath","filter","transform"]);function NE(n,a,s,{delay:o=0,duration:r=300,repeat:f=0,repeatType:d="loop",ease:h="easeInOut",times:p}={}){const m={[a]:s};p&&(m.offset=p);const y=e0(h,r);return Array.isArray(y)&&(m.easing=y),n.animate(m,{delay:o,duration:r,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"})}const jE=Bf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tr=10,_E=2e4;function zE(n){return $f(n.type)||n.type==="spring"||!t0(n.ease)}function VE(n,a){const s=new fd({...a,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const r=[];let f=0;for(;!o.done&&f<_E;)o=s.sample(f),r.push(o.value),f+=tr;return{times:void 0,keyframes:r,duration:f-tr,ease:"linear"}}const L0={anticipate:h0,backInOut:d0,circInOut:p0};function LE(n){return n in L0}class cy extends O0{constructor(a){super(a);const{name:s,motionValue:o,element:r,keyframes:f}=this.options;this.resolver=new D0(f,(d,h)=>this.onKeyframesResolved(d,h),s,o,r),this.resolver.scheduleResolve()}initPlayback(a,s){let{duration:o=300,times:r,ease:f,type:d,motionValue:h,name:p,startTime:m}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&Wo()&&LE(f)&&(f=L0[f]),zE(this.options)){const{onComplete:v,onUpdate:x,motionValue:T,element:C,...M}=this.options,D=VE(a,M);a=D.keyframes,a.length===1&&(a[1]=a[0]),o=D.duration,r=D.times,f=D.ease,d="keyframes"}const y=NE(h.owner.current,p,a,{...this.options,duration:o,times:r,ease:f});return y.startTime=m??this.calcStartTime(),this.pendingTimeline?(kg(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:v}=this.options;h.set(hr(a,this.options,s)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:o,times:r,type:d,ease:f,keyframes:a}}get duration(){const{resolved:a}=this;if(!a)return 0;const{duration:s}=a;return Vn(s)}get time(){const{resolved:a}=this;if(!a)return 0;const{animation:s}=a;return Vn(s.currentTime||0)}set time(a){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.currentTime=zn(a)}get speed(){const{resolved:a}=this;if(!a)return 1;const{animation:s}=a;return s.playbackRate}set speed(a){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.playbackRate=a}get state(){const{resolved:a}=this;if(!a)return"idle";const{animation:s}=a;return s.playState}get startTime(){const{resolved:a}=this;if(!a)return null;const{animation:s}=a;return s.startTime}attachTimeline(a){if(!this._resolved)this.pendingTimeline=a;else{const{resolved:s}=this;if(!s)return De;const{animation:o}=s;kg(o,a)}return De}play(){if(this.isStopped)return;const{resolved:a}=this;if(!a)return;const{animation:s}=a;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:a}=this;if(!a)return;const{animation:s}=a;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:a}=this;if(!a)return;const{animation:s,keyframes:o,duration:r,type:f,ease:d,times:h}=a;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:y,onComplete:v,element:x,...T}=this.options,C=new fd({...T,keyframes:o,duration:r,type:f,ease:d,times:h,isGenerator:!0}),M=zn(this.time);m.setWithVelocity(C.sample(M-tr).value,C.sample(M).value,tr)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:a}=this;a&&a.animation.finish()}cancel(){const{resolved:a}=this;a&&a.animation.cancel()}static supports(a){const{motionValue:s,name:o,repeatDelay:r,repeatType:f,damping:d,type:h}=a;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=s.owner.getProps();return jE()&&o&&OE.has(o)&&!p&&!m&&!r&&f!=="mirror"&&d!==0&&h!=="inertia"}}const BE={type:"spring",stiffness:500,damping:25,restSpeed:10},UE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),HE={type:"keyframes",duration:.8},GE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YE=(n,{keyframes:a})=>a.length>2?HE:ki.has(n)?n.startsWith("scale")?UE(a[1]):BE:GE;function qE({when:n,delay:a,delayChildren:s,staggerChildren:o,staggerDirection:r,repeat:f,repeatType:d,repeatDelay:h,from:p,elapsed:m,...y}){return!!Object.keys(y).length}const dd=(n,a,s,o={},r,f)=>d=>{const h=Wf(o,n)||{},p=h.delay||o.delay||0;let{elapsed:m=0}=o;m=m-zn(p);let y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-m,onUpdate:x=>{a.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:f?void 0:r};qE(h)||(y={...y,...YE(n,y)}),y.duration&&(y.duration=zn(y.duration)),y.repeatDelay&&(y.repeatDelay=zn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),v&&!f&&a.get()!==void 0){const x=hr(y.keyframes,h);if(x!==void 0)return zt.update(()=>{y.onUpdate(x),y.onComplete()}),new oA([])}return!f&&cy.supports(y)?new cy(y):new fd(y)};function PE({protectedKeys:n,needsAnimating:a},s){const o=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function B0(n,a,{delay:s=0,transitionOverride:o,type:r}={}){var f;let{transition:d=n.getDefaultTransition(),transitionEnd:h,...p}=a;o&&(d=o);const m=[],y=r&&n.animationState&&n.animationState.getState()[r];for(const v in p){const x=n.getValue(v,(f=n.latestValues[v])!==null&&f!==void 0?f:null),T=p[v];if(T===void 0||y&&PE(y,v))continue;const C={delay:s,...Wf(d||{},v)};let M=!1;if(window.MotionHandoffAnimation){const N=o0(n);if(N){const V=window.MotionHandoffAnimation(N,v,zt);V!==null&&(C.startTime=V,M=!0)}}df(n,v),x.start(dd(v,x,T,n.shouldReduceMotion&&l0.has(v)?{type:!1}:C,n,M));const D=x.animation;D&&m.push(D)}return h&&Promise.all(m).then(()=>{zt.update(()=>{h&&SA(n,h)})}),m}function bf(n,a,s={}){var o;const r=dr(n,a,s.type==="exit"?(o=n.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(f=s.transitionOverride);const d=r?()=>Promise.all(B0(n,r,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:x}=f;return XE(n,a,y+m,v,x,s)}:()=>Promise.resolve(),{when:p}=f;if(p){const[m,y]=p==="beforeChildren"?[d,h]:[h,d];return m().then(()=>y())}else return Promise.all([d(),h(s.delay)])}function XE(n,a,s=0,o=0,r=1,f){const d=[],h=(n.variantChildren.size-1)*o,p=r===1?(m=0)=>m*o:(m=0)=>h-m*o;return Array.from(n.variantChildren).sort(ZE).forEach((m,y)=>{m.notify("AnimationStart",a),d.push(bf(m,a,{...f,delay:s+p(y)}).then(()=>m.notify("AnimationComplete",a)))}),Promise.all(d)}function ZE(n,a){return n.sortNodePosition(a)}function KE(n,a,s={}){n.notify("AnimationStart",a);let o;if(Array.isArray(a)){const r=a.map(f=>bf(n,f,s));o=Promise.all(r)}else if(typeof a=="string")o=bf(n,a,s);else{const r=typeof a=="function"?dr(n,a,s.custom):a;o=Promise.all(B0(n,r,s))}return o.then(()=>{n.notify("AnimationComplete",a)})}const QE=Hf.length;function U0(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?U0(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<QE;s++){const o=Hf[s],r=n.props[o];(os(r)||r===!1)&&(a[o]=r)}return a}const kE=[...Uf].reverse(),FE=Uf.length;function JE(n){return a=>Promise.all(a.map(({animation:s,options:o})=>KE(n,s,o)))}function WE(n){let a=JE(n),s=fy(),o=!0;const r=p=>(m,y)=>{var v;const x=dr(n,y,p==="exit"?(v=n.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(x){const{transition:T,transitionEnd:C,...M}=x;m={...m,...M,...C}}return m};function f(p){a=p(n)}function d(p){const{props:m}=n,y=U0(n.parent)||{},v=[],x=new Set;let T={},C=1/0;for(let D=0;D<FE;D++){const N=kE[D],V=s[N],U=m[N]!==void 0?m[N]:y[N],G=os(U),q=N===p?V.isActive:null;q===!1&&(C=D);let Q=U===y[N]&&U!==m[N]&&G;if(Q&&o&&n.manuallyAnimateOnMount&&(Q=!1),V.protectedKeys={...T},!V.isActive&&q===null||!U&&!V.prevProp||cr(U)||typeof U=="boolean")continue;const P=$E(V.prevProp,U);let F=P||N===p&&V.isActive&&!Q&&G||D>C&&G,lt=!1;const st=Array.isArray(U)?U:[U];let pt=st.reduce(r(N),{});q===!1&&(pt={});const{prevResolvedValues:tt={}}=V,Tt={...tt,...pt},ht=Z=>{F=!0,x.has(Z)&&(lt=!0,x.delete(Z)),V.needsAnimating[Z]=!0;const k=n.getValue(Z);k&&(k.liveStyle=!1)};for(const Z in Tt){const k=pt[Z],et=tt[Z];if(T.hasOwnProperty(Z))continue;let ot=!1;uf(k)&&uf(et)?ot=!Wv(k,et):ot=k!==et,ot?k!=null?ht(Z):x.add(Z):k!==void 0&&x.has(Z)?ht(Z):V.protectedKeys[Z]=!0}V.prevProp=U,V.prevResolvedValues=pt,V.isActive&&(T={...T,...pt}),o&&n.blockInitialAnimation&&(F=!1),F&&(!(Q&&P)||lt)&&v.push(...st.map(Z=>({animation:Z,options:{type:N}})))}if(x.size){const D={};x.forEach(N=>{const V=n.getBaseTarget(N),U=n.getValue(N);U&&(U.liveStyle=!0),D[N]=V??null}),v.push({animation:D})}let M=!!v.length;return o&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(M=!1),o=!1,M?a(v):Promise.resolve()}function h(p,m){var y;if(s[p].isActive===m)return Promise.resolve();(y=n.variantChildren)===null||y===void 0||y.forEach(x=>{var T;return(T=x.animationState)===null||T===void 0?void 0:T.setActive(p,m)}),s[p].isActive=m;const v=d(p);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=fy(),o=!0}}}function $E(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!Wv(a,n):!1}function qi(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fy(){return{animate:qi(!0),whileInView:qi(),whileHover:qi(),whileTap:qi(),whileDrag:qi(),whileFocus:qi(),exit:qi()}}class Si{constructor(a){this.isMounted=!1,this.node=a}update(){}}class IE extends Si{constructor(a){super(a),a.animationState||(a.animationState=WE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();cr(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)===null||a===void 0||a.call(this)}}let t2=0;class e2 extends Si{constructor(){super(...arguments),this.id=t2++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;const r=this.node.animationState.setActive("exit",!a);s&&!a&&r.then(()=>s(this.id))}mount(){const{register:a}=this.node.presenceContext||{};a&&(this.unmount=a(this.id))}unmount(){}}const n2={animation:{Feature:IE},exit:{Feature:e2}};function fs(n,a,s,o={passive:!0}){return n.addEventListener(a,s,o),()=>n.removeEventListener(a,s)}function ys(n){return{point:{x:n.pageX,y:n.pageY}}}const i2=n=>a=>td(a)&&n(a,ys(a));function ns(n,a,s,o){return fs(n,a,i2(s),o)}const dy=(n,a)=>Math.abs(n-a);function a2(n,a){const s=dy(n.x,a.x),o=dy(n.y,a.y);return Math.sqrt(s**2+o**2)}class H0{constructor(a,s,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:f=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ic(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,T=a2(v.offset,{x:0,y:0})>=3;if(!x&&!T)return;const{point:C}=v,{timestamp:M}=se;this.history.push({...C,timestamp:M});const{onStart:D,onMove:N}=this.handlers;x||(D&&D(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=$c(x,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:T,onSessionEnd:C,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Ic(v.type==="pointercancel"?this.lastMoveEventInfo:$c(x,this.transformPagePoint),this.history);this.startEvent&&T&&T(v,D),C&&C(v,D)},!td(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=o,this.contextWindow=r||window;const d=ys(a),h=$c(d,this.transformPagePoint),{point:p}=h,{timestamp:m}=se;this.history=[{...p,timestamp:m}];const{onSessionStart:y}=s;y&&y(a,Ic(h,this.history)),this.removeListeners=gs(ns(this.contextWindow,"pointermove",this.handlePointerMove),ns(this.contextWindow,"pointerup",this.handlePointerUp),ns(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),gi(this.updatePoint)}}function $c(n,a){return a?{point:a(n.point)}:n}function hy(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Ic({point:n},a){return{point:n,delta:hy(n,G0(a)),offset:hy(n,l2(a)),velocity:s2(a,.1)}}function l2(n){return n[0]}function G0(n){return n[n.length-1]}function s2(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const r=G0(n);for(;s>=0&&(o=n[s],!(r.timestamp-o.timestamp>zn(a)));)s--;if(!o)return{x:0,y:0};const f=Vn(r.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const d={x:(r.x-o.x)/f,y:(r.y-o.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}const Y0=1e-4,o2=1-Y0,r2=1+Y0,q0=.01,u2=0-q0,c2=0+q0;function Ne(n){return n.max-n.min}function f2(n,a,s){return Math.abs(n-a)<=s}function my(n,a,s,o=.5){n.origin=o,n.originPoint=Gt(a.min,a.max,n.origin),n.scale=Ne(s)/Ne(a),n.translate=Gt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=o2&&n.scale<=r2||isNaN(n.scale))&&(n.scale=1),(n.translate>=u2&&n.translate<=c2||isNaN(n.translate))&&(n.translate=0)}function is(n,a,s,o){my(n.x,a.x,s.x,o?o.originX:void 0),my(n.y,a.y,s.y,o?o.originY:void 0)}function py(n,a,s){n.min=s.min+a.min,n.max=n.min+Ne(a)}function d2(n,a,s){py(n.x,a.x,s.x),py(n.y,a.y,s.y)}function gy(n,a,s){n.min=a.min-s.min,n.max=n.min+Ne(a)}function as(n,a,s){gy(n.x,a.x,s.x),gy(n.y,a.y,s.y)}function h2(n,{min:a,max:s},o){return a!==void 0&&n<a?n=o?Gt(a,n,o.min):Math.max(n,a):s!==void 0&&n>s&&(n=o?Gt(s,n,o.max):Math.min(n,s)),n}function yy(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function m2(n,{top:a,left:s,bottom:o,right:r}){return{x:yy(n.x,s,r),y:yy(n.y,a,o)}}function vy(n,a){let s=a.min-n.min,o=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,o]=[o,s]),{min:s,max:o}}function p2(n,a){return{x:vy(n.x,a.x),y:vy(n.y,a.y)}}function g2(n,a){let s=.5;const o=Ne(n),r=Ne(a);return r>o?s=Ya(a.min,a.max-o,n.min):o>r&&(s=Ya(n.min,n.max-r,a.min)),Ln(0,1,s)}function y2(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const xf=.35;function v2(n=xf){return n===!1?n=0:n===!0&&(n=xf),{x:by(n,"left","right"),y:by(n,"top","bottom")}}function by(n,a,s){return{min:xy(n,a),max:xy(n,s)}}function xy(n,a){return typeof n=="number"?n:n[a]||0}const Sy=()=>({translate:0,scale:1,origin:0,originPoint:0}),La=()=>({x:Sy(),y:Sy()}),Ty=()=>({min:0,max:0}),Kt=()=>({x:Ty(),y:Ty()});function Xe(n){return[n("x"),n("y")]}function P0({top:n,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:n,max:o}}}function b2({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function x2(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),o=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function tf(n){return n===void 0||n===1}function Sf({scale:n,scaleX:a,scaleY:s}){return!tf(n)||!tf(a)||!tf(s)}function Pi(n){return Sf(n)||X0(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function X0(n){return Ay(n.x)||Ay(n.y)}function Ay(n){return n&&n!=="0%"}function er(n,a,s){const o=n-s,r=a*o;return s+r}function Ey(n,a,s,o,r){return r!==void 0&&(n=er(n,r,o)),er(n,s,o)+a}function Tf(n,a=0,s=1,o,r){n.min=Ey(n.min,a,s,o,r),n.max=Ey(n.max,a,s,o,r)}function Z0(n,{x:a,y:s}){Tf(n.x,a.translate,a.scale,a.originPoint),Tf(n.y,s.translate,s.scale,s.originPoint)}const Cy=.999999999999,wy=1.0000000000001;function S2(n,a,s,o=!1){const r=s.length;if(!r)return;a.x=a.y=1;let f,d;for(let h=0;h<r;h++){f=s[h],d=f.projectionDelta;const{visualElement:p}=f.options;p&&p.props.style&&p.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ua(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,Z0(n,d)),o&&Pi(f.latestValues)&&Ua(n,f.latestValues))}a.x<wy&&a.x>Cy&&(a.x=1),a.y<wy&&a.y>Cy&&(a.y=1)}function Ba(n,a){n.min=n.min+a,n.max=n.max+a}function My(n,a,s,o,r=.5){const f=Gt(n.min,n.max,r);Tf(n,a,s,f,o)}function Ua(n,a){My(n.x,a.x,a.scaleX,a.scale,a.originX),My(n.y,a.y,a.scaleY,a.scale,a.originY)}function K0(n,a){return P0(x2(n.getBoundingClientRect(),a))}function T2(n,a,s){const o=K0(n,s),{scroll:r}=a;return r&&(Ba(o.x,r.offset.x),Ba(o.y,r.offset.y)),o}const Q0=({current:n})=>n?n.ownerDocument.defaultView:null,A2=new WeakMap;class E2{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Kt(),this.visualElement=a}start(a,{snapToCursor:s=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ys(y).point)},f=(y,v)=>{const{drag:x,dragPropagation:T,onDragStart:C}=this.getProps();if(x&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gA(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(D=>{let N=this.getAxisMotionValue(D).get()||0;if(on.test(N)){const{projection:V}=this.visualElement;if(V&&V.layout){const U=V.layout.layoutBox[D];U&&(N=Ne(U)*(parseFloat(N)/100))}}this.originPoint[D]=N}),C&&zt.postRender(()=>C(y,v)),df(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},d=(y,v)=>{const{dragPropagation:x,dragDirectionLock:T,onDirectionLock:C,onDrag:M}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:D}=v;if(T&&this.currentDirection===null){this.currentDirection=C2(D),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,D),this.updateAxis("y",v.point,D),this.visualElement.render(),M&&M(y,v)},h=(y,v)=>this.stop(y,v),p=()=>Xe(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new H0(a,{onSessionStart:r,onStart:f,onMove:d,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Q0(this.visualElement)})}stop(a,s){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:f}=this.getProps();f&&zt.postRender(()=>f(a,s))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,o){const{drag:r}=this.getProps();if(!o||!Yo(a,r,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(d=h2(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){var a;const{dragConstraints:s,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)===null||a===void 0?void 0:a.layout,f=this.constraints;s&&za(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=m2(r.layoutBox,s):this.constraints=!1,this.elastic=v2(o),f!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xe(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=y2(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!za(a))return!1;const o=a.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const f=T2(o,r.root,this.visualElement.getTransformPagePoint());let d=p2(r.layout.layoutBox,f);if(s){const h=s(b2(d));this.hasMutatedConstraints=!!h,h&&(d=P0(h))}return d}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:r,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},m=Xe(y=>{if(!Yo(y,s,this.currentDirection))return;let v=p&&p[y]||{};d&&(v={min:0,max:0});const x=r?200:1e6,T=r?40:1e7,C={type:"inertia",velocity:o?a[y]:0,bounceStiffness:x,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,C)});return Promise.all(m).then(h)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return df(this.visualElement,a),o.start(dd(a,o,0,s,this.visualElement,!1))}stopAnimation(){Xe(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Xe(a=>{var s;return(s=this.getAxisMotionValue(a).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(a){var s;return(s=this.getAxisMotionValue(a).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),r=o[s];return r||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){Xe(s=>{const{drag:o}=this.getProps();if(!Yo(s,o,this.currentDirection))return;const{projection:r}=this.visualElement,f=this.getAxisMotionValue(s);if(r&&r.layout){const{min:d,max:h}=r.layout.layoutBox[s];f.set(a[s]-Gt(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!za(s)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Xe(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const p=h.get();r[d]=g2({min:p,max:p},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Xe(d=>{if(!Yo(d,a,null))return;const h=this.getAxisMotionValue(d),{min:p,max:m}=this.constraints[d];h.set(Gt(p,m,r[d]))})}addListeners(){if(!this.visualElement.current)return;A2.set(this.visualElement,this);const a=this.visualElement.current,s=ns(a,"pointerdown",p=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();za(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,f=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),zt.read(o);const d=fs(window,"resize",()=>this.scalePositionWithinConstraints()),h=r.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(Xe(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=p[y].translate,v.set(v.get()+p[y].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:f=!1,dragElastic:d=xf,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:r,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Yo(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function C2(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class w2 extends Si{constructor(a){super(a),this.removeGroupControls=De,this.removeListeners=De,this.controls=new E2(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ry=n=>(a,s)=>{n&&zt.postRender(()=>n(a,s))};class M2 extends Si{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(a){this.session=new H0(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q0(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ry(a),onStart:Ry(s),onMove:o,onEnd:(f,d)=>{delete this.session,r&&zt.postRender(()=>r(f,d))}}}mount(){this.removePointerDownListener=ns(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dy(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Fl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(at.test(n))n=parseFloat(n);else return n;const s=Dy(n,a.target.x),o=Dy(n,a.target.y);return`${s}% ${o}%`}},R2={correct:(n,{treeScale:a,projectionDelta:s})=>{const o=n,r=yi.parse(n);if(r.length>5)return o;const f=yi.createTransformer(n),d=typeof r[0]!="number"?1:0,h=s.x.scale*a.x,p=s.y.scale*a.y;r[0+d]/=h,r[1+d]/=p;const m=Gt(h,p,.5);return typeof r[2+d]=="number"&&(r[2+d]/=m),typeof r[3+d]=="number"&&(r[3+d]/=m),f(r)}};class D2 extends S.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:r}=this.props,{projection:f}=a;FT(O2),f&&(s.group&&s.group.add(f),o&&o.register&&r&&o.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:r,isPresent:f}=this.props,d=o.projection;return d&&(d.isPresent=f,r||a.layoutDependency!==s||s===void 0?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||zt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Yf.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:r}=a;r&&(r.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function k0(n){const[a,s]=Rv(),o=S.useContext(ls);return A.jsx(D2,{...n,layoutGroup:o,switchLayoutGroup:S.useContext(Uv),isPresent:a,safeToRemove:s})}const O2={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:R2};function N2(n,a,s){const o=ue(n)?n:us(n);return o.start(dd("",o,a,s)),o.animation}function j2(n){return n instanceof SVGElement&&n.tagName!=="svg"}const _2=(n,a)=>n.depth-a.depth;class z2{constructor(){this.children=[],this.isDirty=!1}add(a){ed(this.children,a),this.isDirty=!0}remove(a){nd(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(_2),this.isDirty=!1,this.children.forEach(a)}}function V2(n,a){const s=rn.now(),o=({timestamp:r})=>{const f=r-s;f>=a&&(gi(o),n(f-a))};return zt.read(o,!0),()=>gi(o)}const F0=["TopLeft","TopRight","BottomLeft","BottomRight"],L2=F0.length,Oy=n=>typeof n=="string"?parseFloat(n):n,Ny=n=>typeof n=="number"||at.test(n);function B2(n,a,s,o,r,f){r?(n.opacity=Gt(0,s.opacity!==void 0?s.opacity:1,U2(o)),n.opacityExit=Gt(a.opacity!==void 0?a.opacity:1,0,H2(o))):f&&(n.opacity=Gt(a.opacity!==void 0?a.opacity:1,s.opacity!==void 0?s.opacity:1,o));for(let d=0;d<L2;d++){const h=`border${F0[d]}Radius`;let p=jy(a,h),m=jy(s,h);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||Ny(p)===Ny(m)?(n[h]=Math.max(Gt(Oy(p),Oy(m),o),0),(on.test(m)||on.test(p))&&(n[h]+="%")):n[h]=m}(a.rotate||s.rotate)&&(n.rotate=Gt(a.rotate||0,s.rotate||0,o))}function jy(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const U2=J0(0,.5,m0),H2=J0(.5,.95,De);function J0(n,a,s){return o=>o<n?0:o>a?1:s(Ya(n,a,o))}function _y(n,a){n.min=a.min,n.max=a.max}function Pe(n,a){_y(n.x,a.x),_y(n.y,a.y)}function zy(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Vy(n,a,s,o,r){return n-=a,n=er(n,1/s,o),r!==void 0&&(n=er(n,1/r,o)),n}function G2(n,a=0,s=1,o=.5,r,f=n,d=n){if(on.test(a)&&(a=parseFloat(a),a=Gt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=Gt(f.min,f.max,o);n===f&&(h-=a),n.min=Vy(n.min,a,s,h,r),n.max=Vy(n.max,a,s,h,r)}function Ly(n,a,[s,o,r],f,d){G2(n,a[s],a[o],a[r],a.scale,f,d)}const Y2=["x","scaleX","originX"],q2=["y","scaleY","originY"];function By(n,a,s,o){Ly(n.x,a,Y2,s?s.x:void 0,o?o.x:void 0),Ly(n.y,a,q2,s?s.y:void 0,o?o.y:void 0)}function Uy(n){return n.translate===0&&n.scale===1}function W0(n){return Uy(n.x)&&Uy(n.y)}function Hy(n,a){return n.min===a.min&&n.max===a.max}function P2(n,a){return Hy(n.x,a.x)&&Hy(n.y,a.y)}function Gy(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function $0(n,a){return Gy(n.x,a.x)&&Gy(n.y,a.y)}function Yy(n){return Ne(n.x)/Ne(n.y)}function qy(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class X2{constructor(){this.members=[]}add(a){ed(this.members,a),a.scheduleRender()}remove(a){if(nd(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){const s=this.members.findIndex(r=>a===r);if(s===0)return!1;let o;for(let r=s;r>=0;r--){const f=this.members[r];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(a,s){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.instance&&o.scheduleRender(),a.scheduleRender(),a.resumeFrom=o,s&&(a.resumeFrom.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:r}=a.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:o}=a;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Z2(n,a,s){let o="";const r=n.x.translate/a.x,f=n.y.translate/a.y,d=(s==null?void 0:s.z)||0;if((r||f||d)&&(o=`translate3d(${r}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:x,skewX:T,skewY:C}=s;m&&(o=`perspective(${m}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),x&&(o+=`rotateY(${x}deg) `),T&&(o+=`skewX(${T}deg) `),C&&(o+=`skewY(${C}deg) `)}const h=n.x.scale*a.x,p=n.y.scale*a.y;return(h!==1||p!==1)&&(o+=`scale(${h}, ${p})`),o||"none"}const Xi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ts=typeof window<"u"&&window.MotionDebug!==void 0,ef=["","X","Y","Z"],K2={visibility:"hidden"},Py=1e3;let Q2=0;function nf(n,a,s,o){const{latestValues:r}=a;r[n]&&(s[n]=r[n],a.setStaticValue(n,0),o&&(o[n]=0))}function I0(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=o0(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:r,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",zt,!(r||f))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&I0(o)}function tb({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(d={},h=a==null?void 0:a()){this.id=Q2++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ts&&(Xi.totalNodes=Xi.resolvedTargetDeltas=Xi.recalculatedProjection=0),this.nodes.forEach(J2),this.nodes.forEach(eC),this.nodes.forEach(nC),this.nodes.forEach(W2),ts&&window.MotionDebug.record(Xi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new z2)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new id),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const p=this.eventHandlers.get(d);p&&p.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d,h=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=j2(d),this.instance=d;const{layoutId:p,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),h&&(m||p)&&(this.isLayoutDirty=!0),n){let v;const x=()=>this.root.updateBlockedByResize=!1;n(d,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=V2(x,250),Ko.hasAnimatedSinceResize&&(Ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Zy))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&y&&(p||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeTargetChanged:T,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||y.getDefaultTransition()||oC,{onLayoutAnimationStart:D,onLayoutAnimationComplete:N}=y.getProps(),V=!this.targetLayout||!$0(this.targetLayout,C)||T,U=!x&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||x&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,U);const G={...Wf(M,"layout"),onPlay:D,onComplete:N};(y.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G)}else x||Zy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gi(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(iC),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&I0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:p}=this.options;if(h===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xy);return}this.isUpdating||this.nodes.forEach(I2),this.isUpdating=!1,this.nodes.forEach(tC),this.nodes.forEach(k2),this.nodes.forEach(F2),this.clearAllSnapshots();const h=rn.now();se.delta=Ln(0,1e3/60,h-se.timestamp),se.timestamp=h,se.isProcessing=!0,Kc.update.process(se),Kc.preRender.process(se),Kc.render.process(se),se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($2),this.sharedNodes.forEach(aC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h){const p=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:p,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!r)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!W0(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;d&&(h||Pi(this.latestValues)||y)&&(r(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let p=this.removeElementScroll(h);return d&&(p=this.removeTransform(p)),rC(p),{animationId:this.root.animationId,measuredBox:h,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:h}=this.options;if(!h)return Kt();const p=h.measureViewportBox();if(!(((d=this.scroll)===null||d===void 0?void 0:d.wasRoot)||this.path.some(uC))){const{scroll:y}=this.root;y&&(Ba(p.x,y.offset.x),Ba(p.y,y.offset.y))}return p}removeElementScroll(d){var h;const p=Kt();if(Pe(p,d),!((h=this.scroll)===null||h===void 0)&&h.wasRoot)return p;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:x}=y;y!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Pe(p,d),Ba(p.x,v.offset.x),Ba(p.y,v.offset.y))}return p}applyTransform(d,h=!1){const p=Kt();Pe(p,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ua(p,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Pi(y.latestValues)&&Ua(p,y.latestValues)}return Pi(this.latestValues)&&Ua(p,this.latestValues),p}removeTransform(d){const h=Kt();Pe(h,d);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!m.instance||!Pi(m.latestValues))continue;Sf(m.latestValues)&&m.updateSnapshot();const y=Kt(),v=m.measurePageBox();Pe(y,v),By(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return Pi(this.latestValues)&&By(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==se.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var h;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!(!this.layout||!(v||x))){if(this.resolvedRelativeTargetAt=se.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),as(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Kt(),this.targetWithTransforms=Kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),d2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pe(this.target,this.layout.layoutBox),Z0(this.target,this.targetDelta)):Pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),as(this.relativeTargetOrigin,this.target,T.target),Pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ts&&Xi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Sf(this.parent.latestValues)||X0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var d;const h=this.getLead(),p=!!this.resumingFrom||this!==h;let m=!0;if((this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===se.timestamp&&(m=!1),m)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;Pe(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;S2(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Kt());const{target:C}=h;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zy(this.prevProjectionDelta.x,this.projectionDelta.x),zy(this.prevProjectionDelta.y,this.projectionDelta.y)),is(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==T||!qy(this.projectionDelta.x,this.prevProjectionDelta.x)||!qy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C)),ts&&Xi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)===null||h===void 0||h.scheduleRender(),d){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=La(),this.projectionDelta=La(),this.projectionDeltaWithTransform=La()}setAnimationOrigin(d,h=!1){const p=this.snapshot,m=p?p.latestValues:{},y={...this.latestValues},v=La();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=Kt(),T=p?p.source:void 0,C=this.layout?this.layout.source:void 0,M=T!==C,D=this.getStack(),N=!D||D.members.length<=1,V=!!(M&&!N&&this.options.crossfade===!0&&!this.path.some(sC));this.animationProgress=0;let U;this.mixTargetDelta=G=>{const q=G/1e3;Ky(v.x,d.x,q),Ky(v.y,d.y,q),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lC(this.relativeTarget,this.relativeTargetOrigin,x,q),U&&P2(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Kt()),Pe(U,this.relativeTarget)),M&&(this.animationValues=y,B2(y,m,this.latestValues,q,V,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Ko.hasAnimatedSinceResize=!0,this.currentAnimation=N2(0,Py,{...d,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Py),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:p,layout:m,latestValues:y}=d;if(!(!h||!p||!m)){if(this!==d&&this.layout&&m&&eb(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||Kt();const v=Ne(this.layout.layoutBox.x);p.x.min=d.target.x.min,p.x.max=p.x.min+v;const x=Ne(this.layout.layoutBox.y);p.y.min=d.target.y.min,p.y.max=p.y.min+x}Pe(h,p),Ua(h,y),is(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new X2),this.sharedNodes.get(d).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var d;const{layoutId:h}=this.options;return h?((d=this.getStack())===null||d===void 0?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:h}=this.options;return h?(d=this.getStack())===null||d===void 0?void 0:d.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:p}=d;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const m={};p.z&&nf("z",d,m,this.animationValues);for(let y=0;y<ef.length;y++)nf(`rotate${ef[y]}`,d,m,this.animationValues),nf(`skew${ef[y]}`,d,m,this.animationValues);d.render();for(const y in m)d.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);d.scheduleRender()}getProjectionStyles(d){var h,p;if(!this.instance||this.isSVG)return;if(!this.isVisible)return K2;const m={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Xo(d==null?void 0:d.pointerEvents)||"",m.transform=y?y(this.latestValues,""):"none",m;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=Xo(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Pi(this.latestValues)&&(M.transform=y?y({},""):"none",this.hasProjected=!1),M}const x=v.animationValues||v.latestValues;this.applyTransformsToTarget(),m.transform=Z2(this.projectionDeltaWithTransform,this.treeScale,x),y&&(m.transform=y(x,m.transform));const{x:T,y:C}=this.projectionDelta;m.transformOrigin=`${T.origin*100}% ${C.origin*100}% 0`,v.animationValues?m.opacity=v===this?(p=(h=x.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:m.opacity=v===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const M in Jo){if(x[M]===void 0)continue;const{correct:D,applyTo:N}=Jo[M],V=m.transform==="none"?x[M]:D(x[M],v);if(N){const U=N.length;for(let G=0;G<U;G++)m[N[G]]=V}else m[M]=V}return this.options.layoutId&&(m.pointerEvents=v===this?Xo(d==null?void 0:d.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(Xy),this.root.sharedNodes.clear()}}}function k2(n){n.updateLayout()}function F2(n){var a;const s=((a=n.resumeFrom)===null||a===void 0?void 0:a.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=n.layout,{animationType:f}=n.options,d=s.source!==n.layout.source;f==="size"?Xe(v=>{const x=d?s.measuredBox[v]:s.layoutBox[v],T=Ne(x);x.min=o[v].min,x.max=x.min+T}):eb(f,s.layoutBox,o)&&Xe(v=>{const x=d?s.measuredBox[v]:s.layoutBox[v],T=Ne(o[v]);x.max=x.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+T)});const h=La();is(h,o,s.layoutBox);const p=La();d?is(p,n.applyTransform(r,!0),s.measuredBox):is(p,o,s.layoutBox);const m=!W0(h);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:T}=v;if(x&&T){const C=Kt();as(C,s.layoutBox,x.layoutBox);const M=Kt();as(M,o,T.layoutBox),$0(C,M)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=C,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:s,delta:p,layoutDelta:h,hasLayoutChanged:m,hasRelativeTargetChanged:y})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function J2(n){ts&&Xi.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function W2(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function $2(n){n.clearSnapshot()}function Xy(n){n.clearMeasurements()}function I2(n){n.isLayoutDirty=!1}function tC(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Zy(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function eC(n){n.resolveTargetDelta()}function nC(n){n.calcProjection()}function iC(n){n.resetSkewAndRotation()}function aC(n){n.removeLeadSnapshot()}function Ky(n,a,s){n.translate=Gt(a.translate,0,s),n.scale=Gt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function Qy(n,a,s,o){n.min=Gt(a.min,s.min,o),n.max=Gt(a.max,s.max,o)}function lC(n,a,s,o){Qy(n.x,a.x,s.x,o),Qy(n.y,a.y,s.y,o)}function sC(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const oC={duration:.45,ease:[.4,0,.1,1]},ky=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Fy=ky("applewebkit/")&&!ky("chrome/")?Math.round:De;function Jy(n){n.min=Fy(n.min),n.max=Fy(n.max)}function rC(n){Jy(n.x),Jy(n.y)}function eb(n,a,s){return n==="position"||n==="preserve-aspect"&&!f2(Yy(a),Yy(s),.2)}function uC(n){var a;return n!==n.root&&((a=n.scroll)===null||a===void 0?void 0:a.wasRoot)}const cC=tb({attachResizeListener:(n,a)=>fs(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),af={current:void 0},nb=tb({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!af.current){const n=new cC({});n.mount(window),n.setOptions({layoutScroll:!0}),af.current=n}return af.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),fC={pan:{Feature:M2},drag:{Feature:w2,ProjectionNode:nb,MeasureLayout:k0}};function Wy(n,a,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const r="onHover"+s,f=o[r];f&&zt.postRender(()=>f(a,ys(a)))}class dC extends Si{mount(){const{current:a}=this.node;a&&(this.unmount=fA(a,s=>(Wy(this.node,s,"Start"),o=>Wy(this.node,o,"End"))))}unmount(){}}class hC extends Si{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=gs(fs(this.node.current,"focus",()=>this.onFocus()),fs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $y(n,a,s){const{props:o}=n;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const r="onTap"+(s==="End"?"":s),f=o[r];f&&zt.postRender(()=>f(a,ys(a)))}class mC extends Si{mount(){const{current:a}=this.node;a&&(this.unmount=pA(a,s=>($y(this.node,s,"Start"),(o,{success:r})=>$y(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Af=new WeakMap,lf=new WeakMap,pC=n=>{const a=Af.get(n.target);a&&a(n)},gC=n=>{n.forEach(pC)};function yC({root:n,...a}){const s=n||document;lf.has(s)||lf.set(s,{});const o=lf.get(s),r=JSON.stringify(a);return o[r]||(o[r]=new IntersectionObserver(gC,{root:n,...a})),o[r]}function vC(n,a,s){const o=yC(a);return Af.set(n,s),o.observe(n),()=>{Af.delete(n),o.unobserve(n)}}const bC={some:0,all:1};class xC extends Si{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:r="some",once:f}=a,d={root:s?s.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:bC[r]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),x=m?y:v;x&&x(p)};return vC(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(SC(a,s))&&this.startObserver()}unmount(){}}function SC({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const TC={inView:{Feature:xC},tap:{Feature:mC},focus:{Feature:hC},hover:{Feature:dC}},AC={layout:{ProjectionNode:nb,MeasureLayout:k0}},Ef={current:null},ib={current:!1};function EC(){if(ib.current=!0,!!Vf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Ef.current=n.matches;n.addListener(a),a()}else Ef.current=!1}const CC=[...R0,re,yi],wC=n=>CC.find(M0(n)),Iy=new WeakMap;function MC(n,a,s){for(const o in a){const r=a[o],f=s[o];if(ue(r))n.addValue(o,r);else if(ue(f))n.addValue(o,us(r,{owner:n}));else if(f!==r)if(n.hasValue(o)){const d=n.getValue(o);d.liveStyle===!0?d.jump(r):d.hasAnimated||d.set(r)}else{const d=n.getStaticValue(o);n.addValue(o,us(d!==void 0?d:r,{owner:n}))}}for(const o in s)a[o]===void 0&&n.removeValue(o);return a}const tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class RC{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ud,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 T=rn.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:m,onUpdate:y}=d;this.onUpdate=y,this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=m,this.parent=a,this.props=s,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=r,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=fr(s),this.isVariantNode=Lv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...x}=this.scrapeMotionValuesFromProps(s,{},this);for(const T in x){const C=x[T];p[T]!==void 0&&ue(C)&&C.set(p[T],!1)}}mount(a){this.current=a,Iy.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),ib.current||EC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Iy.delete(this.current),this.projection&&this.projection.unmount(),gi(this.notifyUpdate),gi(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const o=ki.has(a),r=s.on("change",h=>{this.latestValues[a]=h,this.props.onUpdate&&zt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),f=s.on("renderRequest",this.scheduleRender);let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{r(),f(),d&&d(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in qa){const s=qa[a];if(!s)continue;const{isEnabled:o,Feature:r}=s;if(!this.features[a]&&r&&o(this.props)&&(this.features[a]=new r(this)),this.features[a]){const f=this.features[a];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Kt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<tv.length;o++){const r=tv[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const f="on"+r,d=a[f];d&&(this.propEventSubscriptions[r]=this.on(r,d))}this.prevMotionValues=MC(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=us(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){var o;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(o=this.getBaseTargetFromProps(this.props,a))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(C0(r)||g0(r))?r=parseFloat(r):!wC(r)&&yi.test(s)&&(r=T0(a,s)),this.setBaseTarget(a,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var s;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const d=Pf(this.props,o,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);d&&(r=d[a])}if(o&&r!==void 0)return r;const f=this.getBaseTargetFromProps(this.props,a);return f!==void 0&&!ue(f)?f:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new id),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}}class ab extends RC{constructor(){super(...arguments),this.KeyframeResolver=D0}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){return a.style?a.style[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ue(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function DC(n){return window.getComputedStyle(n)}class OC extends ab{constructor(){super(...arguments),this.type="html",this.renderInstance=Zv}readValueFromInstance(a,s){if(ki.has(s)){const o=rd(s);return o&&o.default||0}else{const o=DC(a),r=(qv(s)?o.getPropertyValue(s):o[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(a,{transformPagePoint:s}){return K0(a,s)}build(a,s,o){Kf(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Jf(a,s,o)}}class NC extends ab{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Kt}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(ki.has(s)){const o=rd(s);return o&&o.default||0}return s=Kv.has(s)?s:Gf(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return Fv(a,s,o)}build(a,s,o){Qf(a,s,this.isSVGTag,o.transformTemplate)}renderInstance(a,s,o,r){Qv(a,s,o,r)}mount(a){this.isSVGTag=Ff(a.tagName),super.mount(a)}}const jC=(n,a)=>qf(n)?new NC(a):new OC(a,{allowProjection:n!==S.Fragment}),_C=aA({...n2,...TC,...fC,...AC},jC),lb=bT(_C);/**
58
+ * @license lucide-react v0.468.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const zC=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sb=(...n)=>n.filter((a,s,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===s).join(" ").trim();/**
63
+ * @license lucide-react v0.468.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */var VC={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"};/**
68
+ * @license lucide-react v0.468.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const LC=S.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:r="",children:f,iconNode:d,...h},p)=>S.createElement("svg",{ref:p,...VC,width:a,height:a,stroke:n,strokeWidth:o?Number(s)*24/Number(a):s,className:sb("lucide",r),...h},[...d.map(([m,y])=>S.createElement(m,y)),...Array.isArray(f)?f:[f]]));/**
73
+ * @license lucide-react v0.468.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const We=(n,a)=>{const s=S.forwardRef(({className:o,...r},f)=>S.createElement(LC,{ref:f,iconNode:a,className:sb(`lucide-${zC(n)}`,o),...r}));return s.displayName=`${n}`,s};/**
78
+ * @license lucide-react v0.468.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const ob=We("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
83
+ * @license lucide-react v0.468.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const BC=We("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
88
+ * @license lucide-react v0.468.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const rb=We("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
93
+ * @license lucide-react v0.468.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const ev=We("CircleAlert",[["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"}]]);/**
98
+ * @license lucide-react v0.468.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const UC=We("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
103
+ * @license lucide-react v0.468.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const HC=We("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
108
+ * @license lucide-react v0.468.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const GC=We("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
113
+ * @license lucide-react v0.468.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const Cf=We("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
118
+ * @license lucide-react v0.468.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const YC=We("ServerOff",[["path",{d:"M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5",key:"bt2siv"}],["path",{d:"M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z",key:"1hjrv1"}],["path",{d:"M22 17v-1a2 2 0 0 0-2-2h-1",key:"1iynyr"}],["path",{d:"M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z",key:"161ggg"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
123
+ * @license lucide-react v0.468.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const ub=We("TriangleAlert",[["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"}]]);/**
128
+ * @license lucide-react v0.468.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const qC=We("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Xa="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";function cb(n){var a,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var r=n.length;for(a=0;a<r;a++)n[a]&&(s=cb(n[a]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function fb(){for(var n,a,s=0,o="",r=arguments.length;s<r;s++)(n=arguments[s])&&(a=cb(n))&&(o&&(o+=" "),o+=a);return o}const hd="-",PC=n=>{const a=ZC(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:d=>{const h=d.split(hd);return h[0]===""&&h.length!==1&&h.shift(),db(h,a)||XC(d)},getConflictingClassGroupIds:(d,h)=>{const p=s[d]||[];return h&&o[d]?[...p,...o[d]]:p}}},db=(n,a)=>{var d;if(n.length===0)return a.classGroupId;const s=n[0],o=a.nextPart.get(s),r=o?db(n.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;const f=n.join(hd);return(d=a.validators.find(({validator:h})=>h(f)))==null?void 0:d.classGroupId},nv=/^\[(.+)\]$/,XC=n=>{if(nv.test(n)){const a=nv.exec(n)[1],s=a==null?void 0:a.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},ZC=n=>{const{theme:a,prefix:s}=n,o={nextPart:new Map,validators:[]};return QC(Object.entries(n.classGroups),s).forEach(([f,d])=>{wf(d,o,f,a)}),o},wf=(n,a,s,o)=>{n.forEach(r=>{if(typeof r=="string"){const f=r===""?a:iv(a,r);f.classGroupId=s;return}if(typeof r=="function"){if(KC(r)){wf(r(o),a,s,o);return}a.validators.push({validator:r,classGroupId:s});return}Object.entries(r).forEach(([f,d])=>{wf(d,iv(a,f),s,o)})})},iv=(n,a)=>{let s=n;return a.split(hd).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},KC=n=>n.isThemeGetter,QC=(n,a)=>a?n.map(([s,o])=>{const r=o.map(f=>typeof f=="string"?a+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,h])=>[a+d,h])):f);return[s,r]}):n,kC=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,o=new Map;const r=(f,d)=>{s.set(f,d),a++,a>n&&(a=0,o=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=o.get(f))!==void 0)return r(f,d),d},set(f,d){s.has(f)?s.set(f,d):r(f,d)}}},hb="!",FC=n=>{const{separator:a,experimentalParseClassName:s}=n,o=a.length===1,r=a[0],f=a.length,d=h=>{const p=[];let m=0,y=0,v;for(let D=0;D<h.length;D++){let N=h[D];if(m===0){if(N===r&&(o||h.slice(D,D+f)===a)){p.push(h.slice(y,D)),y=D+f;continue}if(N==="/"){v=D;continue}}N==="["?m++:N==="]"&&m--}const x=p.length===0?h:h.substring(y),T=x.startsWith(hb),C=T?x.substring(1):x,M=v&&v>y?v-y:void 0;return{modifiers:p,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:M}};return s?h=>s({className:h,parseClassName:d}):d},JC=n=>{if(n.length<=1)return n;const a=[];let s=[];return n.forEach(o=>{o[0]==="["?(a.push(...s.sort(),o),s=[]):s.push(o)}),a.push(...s.sort()),a},WC=n=>({cache:kC(n.cacheSize),parseClassName:FC(n),...PC(n)}),$C=/\s+/,IC=(n,a)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:r}=a,f=[],d=n.trim().split($C);let h="";for(let p=d.length-1;p>=0;p-=1){const m=d[p],{modifiers:y,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:T}=s(m);let C=!!T,M=o(C?x.substring(0,T):x);if(!M){if(!C){h=m+(h.length>0?" "+h:h);continue}if(M=o(x),!M){h=m+(h.length>0?" "+h:h);continue}C=!1}const D=JC(y).join(":"),N=v?D+hb:D,V=N+M;if(f.includes(V))continue;f.push(V);const U=r(M,C);for(let G=0;G<U.length;++G){const q=U[G];f.push(N+q)}h=m+(h.length>0?" "+h:h)}return h};function tw(){let n=0,a,s,o="";for(;n<arguments.length;)(a=arguments[n++])&&(s=mb(a))&&(o&&(o+=" "),o+=s);return o}const mb=n=>{if(typeof n=="string")return n;let a,s="";for(let o=0;o<n.length;o++)n[o]&&(a=mb(n[o]))&&(s&&(s+=" "),s+=a);return s};function ew(n,...a){let s,o,r,f=d;function d(p){const m=a.reduce((y,v)=>v(y),n());return s=WC(m),o=s.cache.get,r=s.cache.set,f=h,h(p)}function h(p){const m=o(p);if(m)return m;const y=IC(p,s);return r(p,y),y}return function(){return f(tw.apply(null,arguments))}}const Bt=n=>{const a=s=>s[n]||[];return a.isThemeGetter=!0,a},pb=/^\[(?:([a-z-]+):)?(.+)\]$/i,nw=/^\d+\/\d+$/,iw=new Set(["px","full","screen"]),aw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lw=/\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$/,sw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ow=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jn=n=>Ha(n)||iw.has(n)||nw.test(n),hi=n=>Ja(n,"length",gw),Ha=n=>!!n&&!Number.isNaN(Number(n)),sf=n=>Ja(n,"number",Ha),Jl=n=>!!n&&Number.isInteger(Number(n)),uw=n=>n.endsWith("%")&&Ha(n.slice(0,-1)),dt=n=>pb.test(n),mi=n=>aw.test(n),cw=new Set(["length","size","percentage"]),fw=n=>Ja(n,cw,gb),dw=n=>Ja(n,"position",gb),hw=new Set(["image","url"]),mw=n=>Ja(n,hw,vw),pw=n=>Ja(n,"",yw),Wl=()=>!0,Ja=(n,a,s)=>{const o=pb.exec(n);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):s(o[2]):!1},gw=n=>lw.test(n)&&!sw.test(n),gb=()=>!1,yw=n=>ow.test(n),vw=n=>rw.test(n),bw=()=>{const n=Bt("colors"),a=Bt("spacing"),s=Bt("blur"),o=Bt("brightness"),r=Bt("borderColor"),f=Bt("borderRadius"),d=Bt("borderSpacing"),h=Bt("borderWidth"),p=Bt("contrast"),m=Bt("grayscale"),y=Bt("hueRotate"),v=Bt("invert"),x=Bt("gap"),T=Bt("gradientColorStops"),C=Bt("gradientColorStopPositions"),M=Bt("inset"),D=Bt("margin"),N=Bt("opacity"),V=Bt("padding"),U=Bt("saturate"),G=Bt("scale"),q=Bt("sepia"),Q=Bt("skew"),P=Bt("space"),F=Bt("translate"),lt=()=>["auto","contain","none"],st=()=>["auto","hidden","clip","visible","scroll"],pt=()=>["auto",dt,a],tt=()=>[dt,a],Tt=()=>["",jn,hi],ht=()=>["auto",Ha,dt],wt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],et=()=>["","0",dt],ot=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[Ha,dt];return{cacheSize:500,separator:":",theme:{colors:[Wl],spacing:[jn,hi],blur:["none","",mi,dt],brightness:w(),borderColor:[n],borderRadius:["none","","full",mi,dt],borderSpacing:tt(),borderWidth:Tt(),contrast:w(),grayscale:et(),hueRotate:w(),invert:et(),gap:tt(),gradientColorStops:[n],gradientColorStopPositions:[uw,hi],inset:pt(),margin:pt(),opacity:w(),padding:tt(),saturate:w(),scale:w(),sepia:et(),skew:w(),space:tt(),translate:tt()},classGroups:{aspect:[{aspect:["auto","square","video",dt]}],container:["container"],columns:[{columns:[mi]}],"break-after":[{"break-after":ot()}],"break-before":[{"break-before":ot()}],"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"],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:[...wt(),dt]}],overflow:[{overflow:st()}],"overflow-x":[{"overflow-x":st()}],"overflow-y":[{"overflow-y":st()}],overscroll:[{overscroll:lt()}],"overscroll-x":[{"overscroll-x":lt()}],"overscroll-y":[{"overscroll-y":lt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jl,dt]}],basis:[{basis:pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",dt]}],grow:[{grow:et()}],shrink:[{shrink:et()}],order:[{order:["first","last","none",Jl,dt]}],"grid-cols":[{"grid-cols":[Wl]}],"col-start-end":[{col:["auto",{span:["full",Jl,dt]},dt]}],"col-start":[{"col-start":ht()}],"col-end":[{"col-end":ht()}],"grid-rows":[{"grid-rows":[Wl]}],"row-start-end":[{row:["auto",{span:[Jl,dt]},dt]}],"row-start":[{"row-start":ht()}],"row-end":[{"row-end":ht()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",dt]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",dt,a]}],"min-w":[{"min-w":[dt,a,"min","max","fit"]}],"max-w":[{"max-w":[dt,a,"none","full","min","max","fit","prose",{screen:[mi]},mi]}],h:[{h:[dt,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[dt,a,"auto","min","max","fit"]}],"font-size":[{text:["base",mi,hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sf]}],"font-family":[{font:[Wl]}],"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:["tighter","tight","normal","wide","wider","widest",dt]}],"line-clamp":[{"line-clamp":["none",Ha,sf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jn,dt]}],"list-image":[{"list-image":["none",dt]}],"list-style-type":[{list:["none","disc","decimal",dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jn,hi]}],"underline-offset":[{"underline-offset":["auto",jn,dt]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:tt()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...wt(),dw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mw]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:L()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[jn,dt]}],"outline-w":[{outline:[jn,hi]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Tt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[jn,hi]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",mi,pw]}],"shadow-color":[{shadow:[Wl]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",mi,dt]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[U]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"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:["none","all","","colors","opacity","shadow","transform",dt]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",dt]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[Jl,dt]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",dt]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],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",dt]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":tt()}],"scroll-mx":[{"scroll-mx":tt()}],"scroll-my":[{"scroll-my":tt()}],"scroll-ms":[{"scroll-ms":tt()}],"scroll-me":[{"scroll-me":tt()}],"scroll-mt":[{"scroll-mt":tt()}],"scroll-mr":[{"scroll-mr":tt()}],"scroll-mb":[{"scroll-mb":tt()}],"scroll-ml":[{"scroll-ml":tt()}],"scroll-p":[{"scroll-p":tt()}],"scroll-px":[{"scroll-px":tt()}],"scroll-py":[{"scroll-py":tt()}],"scroll-ps":[{"scroll-ps":tt()}],"scroll-pe":[{"scroll-pe":tt()}],"scroll-pt":[{"scroll-pt":tt()}],"scroll-pr":[{"scroll-pr":tt()}],"scroll-pb":[{"scroll-pb":tt()}],"scroll-pl":[{"scroll-pl":tt()}],"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",dt]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[jn,hi,sf]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},xw=ew(bw);function jt(...n){return xw(fb(n))}class Sw extends S.Component{constructor(s){super(s);Uc(this,"handleRetry",()=>{this.setState({hasError:!1,error:null,errorInfo:null})});Uc(this,"handleReload",()=>{window.location.reload()});this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s,o){this.setState({errorInfo:o}),console.error("[ErrorBoundary] Caught error:",s,o)}render(){var s;return this.state.hasError?this.props.fallback?this.props.fallback:A.jsx("div",{role:"alert",className:"flex min-h-screen items-center justify-center bg-background p-6",children:A.jsxs("div",{className:"w-full max-w-md rounded-lg border border-red-500/30 bg-red-500/5 p-6",children:[A.jsx("div",{className:"mb-4 flex justify-center",children:A.jsx("div",{className:"rounded-full bg-red-500/10 p-3",children:A.jsx(ub,{className:"h-8 w-8 text-red-400"})})}),A.jsx("h2",{className:"mb-2 text-center text-lg font-semibold text-foreground",children:"Something went wrong"}),A.jsx("p",{className:"mb-4 text-center text-sm text-muted-foreground",children:"The dashboard encountered an unexpected error. You can try recovering or reload the page."}),this.state.error&&A.jsxs("details",{className:"mb-4 rounded border border-border bg-muted/30 p-3",children:[A.jsx("summary",{className:"cursor-pointer text-xs font-medium text-muted-foreground",children:"Error details"}),A.jsxs("pre",{className:"mt-2 overflow-auto text-xs text-red-400",children:[this.state.error.message,((s=this.state.errorInfo)==null?void 0:s.componentStack)&&A.jsxs(A.Fragment,{children:[`
133
+
134
+ Component stack:`,this.state.errorInfo.componentStack]})]})]}),A.jsxs("div",{className:"flex gap-3",children:[A.jsxs("button",{type:"button",onClick:this.handleRetry,className:jt("flex flex-1 items-center justify-center gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",Xa),children:[A.jsx(Cf,{className:"h-4 w-4"}),"Try Again"]}),A.jsx("button",{type:"button",onClick:this.handleReload,className:jt("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",Xa),children:"Reload Page"})]})]})}):this.props.children}}const Tw=3e3,Aw=15e3,Ew={reconnecting:"bg-amber-500/10 text-amber-300 border-b border-amber-500/20",disconnected:"bg-red-500/10 text-red-300 border-b border-red-500/20",restored:"bg-green-500/10 text-green-300 border-b border-green-500/20"};function Cw({status:n,onReconnect:a}){const[s,o]=S.useState("hidden"),r=S.useRef(n),[f,d]=S.useState(!1);S.useEffect(()=>{const p=r.current;if(r.current=n,n==="reconnecting"){o("reconnecting"),d(!1);return}if(n==="disconnected"){o("disconnected"),d(!1);return}if(n==="connected"&&(p==="reconnecting"||p==="disconnected")){o("restored"),d(!1);const m=setTimeout(()=>o("hidden"),Tw);return()=>clearTimeout(m)}o("hidden"),d(!1)},[n]),S.useEffect(()=>{if(s!=="reconnecting")return;const p=setTimeout(()=>{d(!0)},Aw);return()=>clearTimeout(p)},[s]);const h=S.useCallback(()=>{d(!1),a()},[a]);return A.jsx(Dv,{children:s!=="hidden"&&A.jsx(lb.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:A.jsxs("div",{role:"status","aria-live":"polite",className:jt("flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium",Ew[s]),children:[s==="reconnecting"&&A.jsxs(A.Fragment,{children:[A.jsx(GC,{className:"h-4 w-4 animate-spin"}),A.jsx("span",{children:"Reconnecting to server..."}),f&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"text-amber-400/60",children:"·"}),A.jsx("span",{className:"text-xs text-amber-400/80",children:"Taking longer than expected."}),A.jsxs("button",{type:"button",onClick:h,className:"ml-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-amber-200 transition-colors hover:bg-amber-500/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60",children:[A.jsx(Cf,{className:"h-3 w-3"}),"Retry now"]})]})]}),s==="disconnected"&&A.jsxs(A.Fragment,{children:[A.jsx(qC,{className:"h-4 w-4"}),A.jsx("span",{children:"Connection lost."}),A.jsx("span",{className:"text-xs text-red-400/80",children:"Is the server running?"}),A.jsxs("button",{type:"button",onClick:h,className:"ml-2 inline-flex items-center gap-1 rounded border border-red-500/30 bg-red-500/10 px-3 py-1 text-xs font-medium text-red-200 transition-colors hover:bg-red-500/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-400/60",children:[A.jsx(Cf,{className:"h-3 w-3"}),"Reconnect"]})]}),s==="restored"&&A.jsxs(A.Fragment,{children:[A.jsx(UC,{className:"h-4 w-4"}),A.jsx("span",{children:"Connection restored — state synced."})]})]})},"reconnect-banner")})}const av=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,lv=fb,ww=(n,a)=>s=>{var o;if((a==null?void 0:a.variants)==null)return lv(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:r,defaultVariants:f}=a,d=Object.keys(r).map(m=>{const y=s==null?void 0:s[m],v=f==null?void 0:f[m];if(y===null)return null;const x=av(y)||av(v);return r[m][x]}),h=s&&Object.entries(s).reduce((m,y)=>{let[v,x]=y;return x===void 0||(m[v]=x),m},{}),p=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((m,y)=>{let{class:v,className:x,...T}=y;return Object.entries(T).every(C=>{let[M,D]=C;return Array.isArray(D)?D.includes({...f,...h}[M]):{...f,...h}[M]===D})?[...m,v,x]:m},[]);return lv(n,d,p,s==null?void 0:s.class,s==null?void 0:s.className)},Mw=ww("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Za({className:n,variant:a,...s}){return A.jsx("div",{className:jt(Mw({variant:a}),n),...s})}const sv={connecting:{label:"Connecting",className:"border-amber-500/50 bg-amber-500/10 text-amber-400",dot:"bg-amber-400 animate-pulse"},connected:{label:"Connected",className:"border-green-500/50 bg-green-500/10 text-green-400",dot:"bg-green-400"},reconnecting:{label:"Reconnecting",className:"border-amber-500/50 bg-amber-500/10 text-amber-400",dot:"bg-amber-400 animate-pulse"},disconnected:{label:"Disconnected",className:"border-red-500/50 bg-red-500/10 text-red-400",dot:"bg-red-400"}};function Rw({status:n}){const a=sv[n]??sv.disconnected;return A.jsxs(Za,{variant:"outline",className:jt("gap-1.5",a.className),children:[A.jsx("span",{className:jt("h-2 w-2 rounded-full",a.dot)}),a.label]})}function ln(n,a,{checkForDefaultPrevented:s=!0}={}){return function(r){if(n==null||n(r),s===!1||!r.defaultPrevented)return a==null?void 0:a(r)}}function md(n,a=[]){let s=[];function o(f,d){const h=S.createContext(d),p=s.length;s=[...s,d];const m=v=>{var N;const{scope:x,children:T,...C}=v,M=((N=x==null?void 0:x[n])==null?void 0:N[p])||h,D=S.useMemo(()=>C,Object.values(C));return A.jsx(M.Provider,{value:D,children:T})};m.displayName=f+"Provider";function y(v,x){var M;const T=((M=x==null?void 0:x[n])==null?void 0:M[p])||h,C=S.useContext(T);if(C)return C;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[m,y]}const r=()=>{const f=s.map(d=>S.createContext(d));return function(h){const p=(h==null?void 0:h[n])||f;return S.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return r.scopeName=n,[o,Dw(r,...a)]}function Dw(...n){const a=n[0];if(n.length===1)return a;const s=()=>{const o=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(f){const d=o.reduce((h,{useScope:p,scopeName:m})=>{const v=p(f)[`__scope${m}`];return{...h,...v}},{});return S.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return s.scopeName=a.scopeName,s}var vi=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},Ow=zf[" useInsertionEffect ".trim().toString()]||vi;function yb({prop:n,defaultProp:a,onChange:s=()=>{},caller:o}){const[r,f,d]=Nw({defaultProp:a,onChange:s}),h=n!==void 0,p=h?n:r;{const y=S.useRef(n!==void 0);S.useEffect(()=>{const v=y.current;v!==h&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,o])}const m=S.useCallback(y=>{var v;if(h){const x=jw(y)?y(n):y;x!==n&&((v=d.current)==null||v.call(d,x))}else f(y)},[h,n,f,d]);return[p,m]}function Nw({defaultProp:n,onChange:a}){const[s,o]=S.useState(n),r=S.useRef(s),f=S.useRef(a);return Ow(()=>{f.current=a},[a]),S.useEffect(()=>{var d;r.current!==s&&((d=f.current)==null||d.call(f,s),r.current=s)},[s,r]),[s,o,f]}function jw(n){return typeof n=="function"}function ov(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function pd(...n){return a=>{let s=!1;const o=n.map(r=>{const f=ov(r,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let r=0;r<o.length;r++){const f=o[r];typeof f=="function"?f():ov(n[r],null)}}}}function Ti(...n){return S.useCallback(pd(...n),n)}var vb=Mv();function _w(n){const a=zw(n),s=S.forwardRef((o,r)=>{const{children:f,...d}=o,h=S.Children.toArray(f),p=h.find(Lw);if(p){const m=p.props.children,y=h.map(v=>v===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:v);return A.jsx(a,{...d,ref:r,children:S.isValidElement(m)?S.cloneElement(m,void 0,y):null})}return A.jsx(a,{...d,ref:r,children:f})});return s.displayName=`${n}.Slot`,s}function zw(n){const a=S.forwardRef((s,o)=>{const{children:r,...f}=s;if(S.isValidElement(r)){const d=Uw(r),h=Bw(f,r.props);return r.type!==S.Fragment&&(h.ref=o?pd(o,d):d),S.cloneElement(r,h)}return S.Children.count(r)>1?S.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var Vw=Symbol("radix.slottable");function Lw(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Vw}function Bw(n,a){const s={...a};for(const o in a){const r=n[o],f=a[o];/^on[A-Z]/.test(o)?r&&f?s[o]=(...h)=>{const p=f(...h);return r(...h),p}:r&&(s[o]=r):o==="style"?s[o]={...r,...f}:o==="className"&&(s[o]=[r,f].filter(Boolean).join(" "))}return{...n,...s}}function Uw(n){var o,r;let a=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?n.ref:(a=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Hw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fn=Hw.reduce((n,a)=>{const s=_w(`Primitive.${a}`),o=S.forwardRef((r,f)=>{const{asChild:d,...h}=r,p=d?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(p,{...h,ref:f})});return o.displayName=`Primitive.${a}`,{...n,[a]:o}},{});function Gw(n,a){n&&vb.flushSync(()=>n.dispatchEvent(a))}function Yw(n,a){return S.useReducer((s,o)=>a[s][o]??s,n)}var gd=n=>{const{present:a,children:s}=n,o=qw(a),r=typeof s=="function"?s({present:o.isPresent}):S.Children.only(s),f=Ti(o.ref,Pw(r));return typeof s=="function"||o.isPresent?S.cloneElement(r,{ref:f}):null};gd.displayName="Presence";function qw(n){const[a,s]=S.useState(),o=S.useRef(null),r=S.useRef(n),f=S.useRef("none"),d=n?"mounted":"unmounted",[h,p]=Yw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=qo(o.current);f.current=h==="mounted"?m:"none"},[h]),vi(()=>{const m=o.current,y=r.current;if(y!==n){const x=f.current,T=qo(m);n?p("MOUNT"):T==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&x!==T?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,p]),vi(()=>{if(a){let m;const y=a.ownerDocument.defaultView??window,v=T=>{const M=qo(o.current).includes(CSS.escape(T.animationName));if(T.target===a&&M&&(p("ANIMATION_END"),!r.current)){const D=a.style.animationFillMode;a.style.animationFillMode="forwards",m=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=D)})}},x=T=>{T.target===a&&(f.current=qo(o.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",v),a.addEventListener("animationend",v),()=>{y.clearTimeout(m),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",v),a.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(m=>{o.current=m?getComputedStyle(m):null,s(m)},[])}}function qo(n){return(n==null?void 0:n.animationName)||"none"}function Pw(n){var o,r;let a=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?n.ref:(a=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Xw=zf[" useId ".trim().toString()]||(()=>{}),Zw=0;function bb(n){const[a,s]=S.useState(Xw());return vi(()=>{s(o=>o??String(Zw++))},[n]),n||(a?`radix-${a}`:"")}var mr="Collapsible",[Kw]=md(mr),[Qw,yd]=Kw(mr),xb=S.forwardRef((n,a)=>{const{__scopeCollapsible:s,open:o,defaultOpen:r,disabled:f,onOpenChange:d,...h}=n,[p,m]=yb({prop:o,defaultProp:r??!1,onChange:d,caller:mr});return A.jsx(Qw,{scope:s,disabled:f,contentId:bb(),open:p,onOpenToggle:S.useCallback(()=>m(y=>!y),[m]),children:A.jsx(fn.div,{"data-state":bd(p),"data-disabled":f?"":void 0,...h,ref:a})})});xb.displayName=mr;var Sb="CollapsibleTrigger",Tb=S.forwardRef((n,a)=>{const{__scopeCollapsible:s,...o}=n,r=yd(Sb,s);return A.jsx(fn.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":bd(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:a,onClick:ln(n.onClick,r.onOpenToggle)})});Tb.displayName=Sb;var vd="CollapsibleContent",Ab=S.forwardRef((n,a)=>{const{forceMount:s,...o}=n,r=yd(vd,n.__scopeCollapsible);return A.jsx(gd,{present:s||r.open,children:({present:f})=>A.jsx(kw,{...o,ref:a,present:f})})});Ab.displayName=vd;var kw=S.forwardRef((n,a)=>{const{__scopeCollapsible:s,present:o,children:r,...f}=n,d=yd(vd,s),[h,p]=S.useState(o),m=S.useRef(null),y=Ti(a,m),v=S.useRef(0),x=v.current,T=S.useRef(0),C=T.current,M=d.open||h,D=S.useRef(M),N=S.useRef(void 0);return S.useEffect(()=>{const V=requestAnimationFrame(()=>D.current=!1);return()=>cancelAnimationFrame(V)},[]),vi(()=>{const V=m.current;if(V){N.current=N.current||{transitionDuration:V.style.transitionDuration,animationName:V.style.animationName},V.style.transitionDuration="0s",V.style.animationName="none";const U=V.getBoundingClientRect();v.current=U.height,T.current=U.width,D.current||(V.style.transitionDuration=N.current.transitionDuration,V.style.animationName=N.current.animationName),p(o)}},[d.open,o]),A.jsx(fn.div,{"data-state":bd(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!M,...f,ref:y,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...n.style},children:M&&r})});function bd(n){return n?"open":"closed"}var Fw=xb;const Jw=Fw,Ww=Tb,Eb=S.forwardRef(({className:n,...a},s)=>A.jsx(Ab,{ref:s,className:n,...a}));Eb.displayName="CollapsibleContent";var $w=Symbol.for("react.lazy"),nr=zf[" use ".trim().toString()];function Iw(n){return typeof n=="object"&&n!==null&&"then"in n}function Cb(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===$w&&"_payload"in n&&Iw(n._payload)}function tM(n){const a=eM(n),s=S.forwardRef((o,r)=>{let{children:f,...d}=o;Cb(f)&&typeof nr=="function"&&(f=nr(f._payload));const h=S.Children.toArray(f),p=h.find(iM);if(p){const m=p.props.children,y=h.map(v=>v===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:v);return A.jsx(a,{...d,ref:r,children:S.isValidElement(m)?S.cloneElement(m,void 0,y):null})}return A.jsx(a,{...d,ref:r,children:f})});return s.displayName=`${n}.Slot`,s}function eM(n){const a=S.forwardRef((s,o)=>{let{children:r,...f}=s;if(Cb(r)&&typeof nr=="function"&&(r=nr(r._payload)),S.isValidElement(r)){const d=lM(r),h=aM(f,r.props);return r.type!==S.Fragment&&(h.ref=o?pd(o,d):d),S.cloneElement(r,h)}return S.Children.count(r)>1?S.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var nM=Symbol("radix.slottable");function iM(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===nM}function aM(n,a){const s={...a};for(const o in a){const r=n[o],f=a[o];/^on[A-Z]/.test(o)?r&&f?s[o]=(...h)=>{const p=f(...h);return r(...h),p}:r&&(s[o]=r):o==="style"?s[o]={...r,...f}:o==="className"&&(s[o]=[r,f].filter(Boolean).join(" "))}return{...n,...s}}function lM(n){var o,r;let a=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?n.ref:(a=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var sM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oM=sM.reduce((n,a)=>{const s=tM(`Primitive.${a}`),o=S.forwardRef((r,f)=>{const{asChild:d,...h}=r,p=d?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(p,{...h,ref:f})});return o.displayName=`Primitive.${a}`,{...n,[a]:o}},{}),rM="Separator",rv="horizontal",uM=["horizontal","vertical"],wb=S.forwardRef((n,a)=>{const{decorative:s,orientation:o=rv,...r}=n,f=cM(o)?o:rv,h=s?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return A.jsx(oM.div,{"data-orientation":f,...h,...r,ref:a})});wb.displayName=rM;function cM(n){return uM.includes(n)}var Mb=wb;const xd=S.forwardRef(({className:n,orientation:a="horizontal",decorative:s=!0,...o},r)=>A.jsx(Mb,{ref:r,decorative:s,orientation:a,className:jt("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...o}));xd.displayName=Mb.displayName;const uv={active:{label:"LIVE",className:"border-green-500/50 bg-green-500/10 text-green-400"},idle:{label:"IDLE",className:"border-gray-500/50 bg-gray-500/10 text-gray-400"},done:{label:"DONE",className:"border-blue-500/50 bg-blue-500/10 text-blue-400"}};function fM({pipeline:n,isExpanded:a,onToggle:s}){const o=uv[n.status]??uv.idle;return A.jsxs("div",{className:"flex items-center gap-3 py-2",children:[A.jsx("button",{type:"button",onClick:s,className:jt("flex items-center gap-1 rounded px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",Xa),"aria-label":a?"Collapse board":"Expand board",children:a?A.jsxs(A.Fragment,{children:[A.jsx(rb,{className:"h-3 w-3"}),A.jsx("span",{children:"Collapse"})]}):A.jsxs(A.Fragment,{children:[A.jsx(ob,{className:"h-3 w-3"}),A.jsx("span",{children:"Expand"})]})}),A.jsx("h3",{className:"text-sm font-medium text-foreground",children:n.title}),A.jsx(Za,{variant:"outline",className:jt("text-[10px] px-2 py-0",o.className),children:o.label}),A.jsxs("span",{className:"text-xs text-muted-foreground",children:[n.beads.size," bead",n.beads.size!==1?"s":""]})]})}const dM=[{id:"ready",label:"Ready",type:"status",color:"#64748b",order:0},{id:"done",label:"Done",type:"status",color:"#22c55e",order:1},{id:"error",label:"Error",type:"status",color:"#ef4444",order:2}],cv={0:"bg-red-500 text-white",1:"bg-orange-500 text-white",2:"bg-blue-500 text-white",3:"bg-gray-500 text-white",4:"bg-gray-400 text-white"},Rb=S.forwardRef(({className:n,...a},s)=>A.jsx("div",{ref:s,className:jt("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}));Rb.displayName="Card";const hM=S.forwardRef(({className:n,...a},s)=>A.jsx("div",{ref:s,className:jt("flex flex-col space-y-1.5 p-4",n),...a}));hM.displayName="CardHeader";const mM=S.forwardRef(({className:n,...a},s)=>A.jsx("h3",{ref:s,className:jt("text-sm font-semibold leading-none tracking-tight",n),...a}));mM.displayName="CardTitle";const pM=S.forwardRef(({className:n,...a},s)=>A.jsx("p",{ref:s,className:jt("text-xs text-muted-foreground",n),...a}));pM.displayName="CardDescription";const gM=S.forwardRef(({className:n,...a},s)=>A.jsx("div",{ref:s,className:jt("p-4 pt-0",n),...a}));gM.displayName="CardContent";const yM=S.forwardRef(({className:n,...a},s)=>A.jsx("div",{ref:s,className:jt("flex items-center p-4 pt-0",n),...a}));yM.displayName="CardFooter";function pr(n){const a=S.useRef(n);return S.useEffect(()=>{a.current=n}),S.useMemo(()=>(...s)=>{var o;return(o=a.current)==null?void 0:o.call(a,...s)},[])}function vM(n,a=globalThis==null?void 0:globalThis.document){const s=pr(n);S.useEffect(()=>{const o=r=>{r.key==="Escape"&&s(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[s,a])}var bM="DismissableLayer",Mf="dismissableLayer.update",xM="dismissableLayer.pointerDownOutside",SM="dismissableLayer.focusOutside",fv,Db=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ob=S.forwardRef((n,a)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...p}=n,m=S.useContext(Db),[y,v]=S.useState(null),x=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=S.useState({}),C=Ti(a,P=>v(P)),M=Array.from(m.layers),[D]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=M.indexOf(D),V=y?M.indexOf(y):-1,U=m.layersWithOutsidePointerEventsDisabled.size>0,G=V>=N,q=EM(P=>{const F=P.target,lt=[...m.branches].some(st=>st.contains(F));!G||lt||(r==null||r(P),d==null||d(P),P.defaultPrevented||h==null||h())},x),Q=CM(P=>{const F=P.target;[...m.branches].some(st=>st.contains(F))||(f==null||f(P),d==null||d(P),P.defaultPrevented||h==null||h())},x);return vM(P=>{V===m.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&h&&(P.preventDefault(),h()))},x),S.useEffect(()=>{if(y)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(fv=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),dv(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=fv)}},[y,x,s,m]),S.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),dv())},[y,m]),S.useEffect(()=>{const P=()=>T({});return document.addEventListener(Mf,P),()=>document.removeEventListener(Mf,P)},[]),A.jsx(fn.div,{...p,ref:C,style:{pointerEvents:U?G?"auto":"none":void 0,...n.style},onFocusCapture:ln(n.onFocusCapture,Q.onFocusCapture),onBlurCapture:ln(n.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:ln(n.onPointerDownCapture,q.onPointerDownCapture)})});Ob.displayName=bM;var TM="DismissableLayerBranch",AM=S.forwardRef((n,a)=>{const s=S.useContext(Db),o=S.useRef(null),r=Ti(a,o);return S.useEffect(()=>{const f=o.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),A.jsx(fn.div,{...n,ref:r})});AM.displayName=TM;function EM(n,a=globalThis==null?void 0:globalThis.document){const s=pr(n),o=S.useRef(!1),r=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!o.current){let p=function(){Nb(xM,s,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=p,a.addEventListener("click",r.current,{once:!0})):p()}else a.removeEventListener("click",r.current);o.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",f),a.removeEventListener("click",r.current)}},[a,s]),{onPointerDownCapture:()=>o.current=!0}}function CM(n,a=globalThis==null?void 0:globalThis.document){const s=pr(n),o=S.useRef(!1);return S.useEffect(()=>{const r=f=>{f.target&&!o.current&&Nb(SM,s,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,s]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function dv(){const n=new CustomEvent(Mf);document.dispatchEvent(n)}function Nb(n,a,s,{discrete:o}){const r=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});a&&r.addEventListener(n,a,{once:!0}),o?Gw(r,f):r.dispatchEvent(f)}const wM=["top","right","bottom","left"],bi=Math.min,Re=Math.max,ir=Math.round,Po=Math.floor,un=n=>({x:n,y:n}),MM={left:"right",right:"left",bottom:"top",top:"bottom"},RM={start:"end",end:"start"};function Rf(n,a,s){return Re(n,bi(a,s))}function Bn(n,a){return typeof n=="function"?n(a):n}function Un(n){return n.split("-")[0]}function Wa(n){return n.split("-")[1]}function Sd(n){return n==="x"?"y":"x"}function Td(n){return n==="y"?"height":"width"}const DM=new Set(["top","bottom"]);function sn(n){return DM.has(Un(n))?"y":"x"}function Ad(n){return Sd(sn(n))}function OM(n,a,s){s===void 0&&(s=!1);const o=Wa(n),r=Ad(n),f=Td(r);let d=r==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[f]>a.floating[f]&&(d=ar(d)),[d,ar(d)]}function NM(n){const a=ar(n);return[Df(n),a,Df(a)]}function Df(n){return n.replace(/start|end/g,a=>RM[a])}const hv=["left","right"],mv=["right","left"],jM=["top","bottom"],_M=["bottom","top"];function zM(n,a,s){switch(n){case"top":case"bottom":return s?a?mv:hv:a?hv:mv;case"left":case"right":return a?jM:_M;default:return[]}}function VM(n,a,s,o){const r=Wa(n);let f=zM(Un(n),s==="start",o);return r&&(f=f.map(d=>d+"-"+r),a&&(f=f.concat(f.map(Df)))),f}function ar(n){return n.replace(/left|right|bottom|top/g,a=>MM[a])}function LM(n){return{top:0,right:0,bottom:0,left:0,...n}}function jb(n){return typeof n!="number"?LM(n):{top:n,right:n,bottom:n,left:n}}function lr(n){const{x:a,y:s,width:o,height:r}=n;return{width:o,height:r,top:s,left:a,right:a+o,bottom:s+r,x:a,y:s}}function pv(n,a,s){let{reference:o,floating:r}=n;const f=sn(a),d=Ad(a),h=Td(d),p=Un(a),m=f==="y",y=o.x+o.width/2-r.width/2,v=o.y+o.height/2-r.height/2,x=o[h]/2-r[h]/2;let T;switch(p){case"top":T={x:y,y:o.y-r.height};break;case"bottom":T={x:y,y:o.y+o.height};break;case"right":T={x:o.x+o.width,y:v};break;case"left":T={x:o.x-r.width,y:v};break;default:T={x:o.x,y:o.y}}switch(Wa(a)){case"start":T[d]-=x*(s&&m?-1:1);break;case"end":T[d]+=x*(s&&m?-1:1);break}return T}async function BM(n,a){var s;a===void 0&&(a={});const{x:o,y:r,platform:f,rects:d,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:x=!1,padding:T=0}=Bn(a,n),C=jb(T),D=h[x?v==="floating"?"reference":"floating":v],N=lr(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(D)))==null||s?D:D.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:m,rootBoundary:y,strategy:p})),V=v==="floating"?{x:o,y:r,width:d.floating.width,height:d.floating.height}:d.reference,U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),G=await(f.isElement==null?void 0:f.isElement(U))?await(f.getScale==null?void 0:f.getScale(U))||{x:1,y:1}:{x:1,y:1},q=lr(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:V,offsetParent:U,strategy:p}):V);return{top:(N.top-q.top+C.top)/G.y,bottom:(q.bottom-N.bottom+C.bottom)/G.y,left:(N.left-q.left+C.left)/G.x,right:(q.right-N.right+C.right)/G.x}}const UM=async(n,a,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:f=[],platform:d}=s,h=f.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(a));let m=await d.getElementRects({reference:n,floating:a,strategy:r}),{x:y,y:v}=pv(m,o,p),x=o,T={},C=0;for(let D=0;D<h.length;D++){var M;const{name:N,fn:V}=h[D],{x:U,y:G,data:q,reset:Q}=await V({x:y,y:v,initialPlacement:o,placement:x,strategy:r,middlewareData:T,rects:m,platform:{...d,detectOverflow:(M=d.detectOverflow)!=null?M:BM},elements:{reference:n,floating:a}});y=U??y,v=G??v,T={...T,[N]:{...T[N],...q}},Q&&C<=50&&(C++,typeof Q=="object"&&(Q.placement&&(x=Q.placement),Q.rects&&(m=Q.rects===!0?await d.getElementRects({reference:n,floating:a,strategy:r}):Q.rects),{x:y,y:v}=pv(m,x,p)),D=-1)}return{x:y,y:v,placement:x,strategy:r,middlewareData:T}},HM=n=>({name:"arrow",options:n,async fn(a){const{x:s,y:o,placement:r,rects:f,platform:d,elements:h,middlewareData:p}=a,{element:m,padding:y=0}=Bn(n,a)||{};if(m==null)return{};const v=jb(y),x={x:s,y:o},T=Ad(r),C=Td(T),M=await d.getDimensions(m),D=T==="y",N=D?"top":"left",V=D?"bottom":"right",U=D?"clientHeight":"clientWidth",G=f.reference[C]+f.reference[T]-x[T]-f.floating[C],q=x[T]-f.reference[T],Q=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let P=Q?Q[U]:0;(!P||!await(d.isElement==null?void 0:d.isElement(Q)))&&(P=h.floating[U]||f.floating[C]);const F=G/2-q/2,lt=P/2-M[C]/2-1,st=bi(v[N],lt),pt=bi(v[V],lt),tt=st,Tt=P-M[C]-pt,ht=P/2-M[C]/2+F,wt=Rf(tt,ht,Tt),L=!p.arrow&&Wa(r)!=null&&ht!==wt&&f.reference[C]/2-(ht<tt?st:pt)-M[C]/2<0,Z=L?ht<tt?ht-tt:ht-Tt:0;return{[T]:x[T]+Z,data:{[T]:wt,centerOffset:ht-wt-Z,...L&&{alignmentOffset:Z}},reset:L}}}),GM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var s,o;const{placement:r,middlewareData:f,rects:d,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:M=!0,...D}=Bn(n,a);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const N=Un(r),V=sn(h),U=Un(h)===h,G=await(p.isRTL==null?void 0:p.isRTL(m.floating)),q=x||(U||!M?[ar(h)]:NM(h)),Q=C!=="none";!x&&Q&&q.push(...VM(h,M,C,G));const P=[h,...q],F=await p.detectOverflow(a,D),lt=[];let st=((o=f.flip)==null?void 0:o.overflows)||[];if(y&&lt.push(F[N]),v){const ht=OM(r,d,G);lt.push(F[ht[0]],F[ht[1]])}if(st=[...st,{placement:r,overflows:lt}],!lt.every(ht=>ht<=0)){var pt,tt;const ht=(((pt=f.flip)==null?void 0:pt.index)||0)+1,wt=P[ht];if(wt&&(!(v==="alignment"?V!==sn(wt):!1)||st.every(k=>sn(k.placement)===V?k.overflows[0]>0:!0)))return{data:{index:ht,overflows:st},reset:{placement:wt}};let L=(tt=st.filter(Z=>Z.overflows[0]<=0).sort((Z,k)=>Z.overflows[1]-k.overflows[1])[0])==null?void 0:tt.placement;if(!L)switch(T){case"bestFit":{var Tt;const Z=(Tt=st.filter(k=>{if(Q){const et=sn(k.placement);return et===V||et==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(et=>et>0).reduce((et,ot)=>et+ot,0)]).sort((k,et)=>k[1]-et[1])[0])==null?void 0:Tt[0];Z&&(L=Z);break}case"initialPlacement":L=h;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function gv(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function yv(n){return wM.some(a=>n[a]>=0)}const YM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:s,platform:o}=a,{strategy:r="referenceHidden",...f}=Bn(n,a);switch(r){case"referenceHidden":{const d=await o.detectOverflow(a,{...f,elementContext:"reference"}),h=gv(d,s.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:yv(h)}}}case"escaped":{const d=await o.detectOverflow(a,{...f,altBoundary:!0}),h=gv(d,s.floating);return{data:{escapedOffsets:h,escaped:yv(h)}}}default:return{}}}}},_b=new Set(["left","top"]);async function qM(n,a){const{placement:s,platform:o,elements:r}=n,f=await(o.isRTL==null?void 0:o.isRTL(r.floating)),d=Un(s),h=Wa(s),p=sn(s)==="y",m=_b.has(d)?-1:1,y=f&&p?-1:1,v=Bn(a,n);let{mainAxis:x,crossAxis:T,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return h&&typeof C=="number"&&(T=h==="end"?C*-1:C),p?{x:T*y,y:x*m}:{x:x*m,y:T*y}}const PM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var s,o;const{x:r,y:f,placement:d,middlewareData:h}=a,p=await qM(a,n);return d===((s=h.offset)==null?void 0:s.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:r+p.x,y:f+p.y,data:{...p,placement:d}}}}},XM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:s,y:o,placement:r,platform:f}=a,{mainAxis:d=!0,crossAxis:h=!1,limiter:p={fn:N=>{let{x:V,y:U}=N;return{x:V,y:U}}},...m}=Bn(n,a),y={x:s,y:o},v=await f.detectOverflow(a,m),x=sn(Un(r)),T=Sd(x);let C=y[T],M=y[x];if(d){const N=T==="y"?"top":"left",V=T==="y"?"bottom":"right",U=C+v[N],G=C-v[V];C=Rf(U,C,G)}if(h){const N=x==="y"?"top":"left",V=x==="y"?"bottom":"right",U=M+v[N],G=M-v[V];M=Rf(U,M,G)}const D=p.fn({...a,[T]:C,[x]:M});return{...D,data:{x:D.x-s,y:D.y-o,enabled:{[T]:d,[x]:h}}}}}},ZM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:s,y:o,placement:r,rects:f,middlewareData:d}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=Bn(n,a),y={x:s,y:o},v=sn(r),x=Sd(v);let T=y[x],C=y[v];const M=Bn(h,a),D=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(p){const U=x==="y"?"height":"width",G=f.reference[x]-f.floating[U]+D.mainAxis,q=f.reference[x]+f.reference[U]-D.mainAxis;T<G?T=G:T>q&&(T=q)}if(m){var N,V;const U=x==="y"?"width":"height",G=_b.has(Un(r)),q=f.reference[v]-f.floating[U]+(G&&((N=d.offset)==null?void 0:N[v])||0)+(G?0:D.crossAxis),Q=f.reference[v]+f.reference[U]+(G?0:((V=d.offset)==null?void 0:V[v])||0)-(G?D.crossAxis:0);C<q?C=q:C>Q&&(C=Q)}return{[x]:T,[v]:C}}}},KM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var s,o;const{placement:r,rects:f,platform:d,elements:h}=a,{apply:p=()=>{},...m}=Bn(n,a),y=await d.detectOverflow(a,m),v=Un(r),x=Wa(r),T=sn(r)==="y",{width:C,height:M}=f.floating;let D,N;v==="top"||v==="bottom"?(D=v,N=x===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(N=v,D=x==="end"?"top":"bottom");const V=M-y.top-y.bottom,U=C-y.left-y.right,G=bi(M-y[D],V),q=bi(C-y[N],U),Q=!a.middlewareData.shift;let P=G,F=q;if((s=a.middlewareData.shift)!=null&&s.enabled.x&&(F=U),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(P=V),Q&&!x){const st=Re(y.left,0),pt=Re(y.right,0),tt=Re(y.top,0),Tt=Re(y.bottom,0);T?F=C-2*(st!==0||pt!==0?st+pt:Re(y.left,y.right)):P=M-2*(tt!==0||Tt!==0?tt+Tt:Re(y.top,y.bottom))}await p({...a,availableWidth:F,availableHeight:P});const lt=await d.getDimensions(h.floating);return C!==lt.width||M!==lt.height?{reset:{rects:!0}}:{}}}};function gr(){return typeof window<"u"}function $a(n){return zb(n)?(n.nodeName||"").toLowerCase():"#document"}function Oe(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function dn(n){var a;return(a=(zb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function zb(n){return gr()?n instanceof Node||n instanceof Oe(n).Node:!1}function Fe(n){return gr()?n instanceof Element||n instanceof Oe(n).Element:!1}function cn(n){return gr()?n instanceof HTMLElement||n instanceof Oe(n).HTMLElement:!1}function vv(n){return!gr()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Oe(n).ShadowRoot}const QM=new Set(["inline","contents"]);function vs(n){const{overflow:a,overflowX:s,overflowY:o,display:r}=Je(n);return/auto|scroll|overlay|hidden|clip/.test(a+o+s)&&!QM.has(r)}const kM=new Set(["table","td","th"]);function FM(n){return kM.has($a(n))}const JM=[":popover-open",":modal"];function yr(n){return JM.some(a=>{try{return n.matches(a)}catch{return!1}})}const WM=["transform","translate","scale","rotate","perspective"],$M=["transform","translate","scale","rotate","perspective","filter"],IM=["paint","layout","strict","content"];function Ed(n){const a=Cd(),s=Fe(n)?Je(n):n;return WM.some(o=>s[o]?s[o]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!a&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!a&&(s.filter?s.filter!=="none":!1)||$M.some(o=>(s.willChange||"").includes(o))||IM.some(o=>(s.contain||"").includes(o))}function tR(n){let a=xi(n);for(;cn(a)&&!Ka(a);){if(Ed(a))return a;if(yr(a))return null;a=xi(a)}return null}function Cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eR=new Set(["html","body","#document"]);function Ka(n){return eR.has($a(n))}function Je(n){return Oe(n).getComputedStyle(n)}function vr(n){return Fe(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function xi(n){if($a(n)==="html")return n;const a=n.assignedSlot||n.parentNode||vv(n)&&n.host||dn(n);return vv(a)?a.host:a}function Vb(n){const a=xi(n);return Ka(a)?n.ownerDocument?n.ownerDocument.body:n.body:cn(a)&&vs(a)?a:Vb(a)}function ds(n,a,s){var o;a===void 0&&(a=[]),s===void 0&&(s=!0);const r=Vb(n),f=r===((o=n.ownerDocument)==null?void 0:o.body),d=Oe(r);if(f){const h=Of(d);return a.concat(d,d.visualViewport||[],vs(r)?r:[],h&&s?ds(h):[])}return a.concat(r,ds(r,[],s))}function Of(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Lb(n){const a=Je(n);let s=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const r=cn(n),f=r?n.offsetWidth:s,d=r?n.offsetHeight:o,h=ir(s)!==f||ir(o)!==d;return h&&(s=f,o=d),{width:s,height:o,$:h}}function wd(n){return Fe(n)?n:n.contextElement}function Ga(n){const a=wd(n);if(!cn(a))return un(1);const s=a.getBoundingClientRect(),{width:o,height:r,$:f}=Lb(a);let d=(f?ir(s.width):s.width)/o,h=(f?ir(s.height):s.height)/r;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const nR=un(0);function Bb(n){const a=Oe(n);return!Cd()||!a.visualViewport?nR:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function iR(n,a,s){return a===void 0&&(a=!1),!s||a&&s!==Oe(n)?!1:a}function Qi(n,a,s,o){a===void 0&&(a=!1),s===void 0&&(s=!1);const r=n.getBoundingClientRect(),f=wd(n);let d=un(1);a&&(o?Fe(o)&&(d=Ga(o)):d=Ga(n));const h=iR(f,s,o)?Bb(f):un(0);let p=(r.left+h.x)/d.x,m=(r.top+h.y)/d.y,y=r.width/d.x,v=r.height/d.y;if(f){const x=Oe(f),T=o&&Fe(o)?Oe(o):o;let C=x,M=Of(C);for(;M&&o&&T!==C;){const D=Ga(M),N=M.getBoundingClientRect(),V=Je(M),U=N.left+(M.clientLeft+parseFloat(V.paddingLeft))*D.x,G=N.top+(M.clientTop+parseFloat(V.paddingTop))*D.y;p*=D.x,m*=D.y,y*=D.x,v*=D.y,p+=U,m+=G,C=Oe(M),M=Of(C)}}return lr({width:y,height:v,x:p,y:m})}function br(n,a){const s=vr(n).scrollLeft;return a?a.left+s:Qi(dn(n)).left+s}function Ub(n,a){const s=n.getBoundingClientRect(),o=s.left+a.scrollLeft-br(n,s),r=s.top+a.scrollTop;return{x:o,y:r}}function aR(n){let{elements:a,rect:s,offsetParent:o,strategy:r}=n;const f=r==="fixed",d=dn(o),h=a?yr(a.floating):!1;if(o===d||h&&f)return s;let p={scrollLeft:0,scrollTop:0},m=un(1);const y=un(0),v=cn(o);if((v||!v&&!f)&&(($a(o)!=="body"||vs(d))&&(p=vr(o)),cn(o))){const T=Qi(o);m=Ga(o),y.x=T.x+o.clientLeft,y.y=T.y+o.clientTop}const x=d&&!v&&!f?Ub(d,p):un(0);return{width:s.width*m.x,height:s.height*m.y,x:s.x*m.x-p.scrollLeft*m.x+y.x+x.x,y:s.y*m.y-p.scrollTop*m.y+y.y+x.y}}function lR(n){return Array.from(n.getClientRects())}function sR(n){const a=dn(n),s=vr(n),o=n.ownerDocument.body,r=Re(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),f=Re(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let d=-s.scrollLeft+br(n);const h=-s.scrollTop;return Je(o).direction==="rtl"&&(d+=Re(a.clientWidth,o.clientWidth)-r),{width:r,height:f,x:d,y:h}}const bv=25;function oR(n,a){const s=Oe(n),o=dn(n),r=s.visualViewport;let f=o.clientWidth,d=o.clientHeight,h=0,p=0;if(r){f=r.width,d=r.height;const y=Cd();(!y||y&&a==="fixed")&&(h=r.offsetLeft,p=r.offsetTop)}const m=br(o);if(m<=0){const y=o.ownerDocument,v=y.body,x=getComputedStyle(v),T=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,C=Math.abs(o.clientWidth-v.clientWidth-T);C<=bv&&(f-=C)}else m<=bv&&(f+=m);return{width:f,height:d,x:h,y:p}}const rR=new Set(["absolute","fixed"]);function uR(n,a){const s=Qi(n,!0,a==="fixed"),o=s.top+n.clientTop,r=s.left+n.clientLeft,f=cn(n)?Ga(n):un(1),d=n.clientWidth*f.x,h=n.clientHeight*f.y,p=r*f.x,m=o*f.y;return{width:d,height:h,x:p,y:m}}function xv(n,a,s){let o;if(a==="viewport")o=oR(n,s);else if(a==="document")o=sR(dn(n));else if(Fe(a))o=uR(a,s);else{const r=Bb(n);o={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return lr(o)}function Hb(n,a){const s=xi(n);return s===a||!Fe(s)||Ka(s)?!1:Je(s).position==="fixed"||Hb(s,a)}function cR(n,a){const s=a.get(n);if(s)return s;let o=ds(n,[],!1).filter(h=>Fe(h)&&$a(h)!=="body"),r=null;const f=Je(n).position==="fixed";let d=f?xi(n):n;for(;Fe(d)&&!Ka(d);){const h=Je(d),p=Ed(d);!p&&h.position==="fixed"&&(r=null),(f?!p&&!r:!p&&h.position==="static"&&!!r&&rR.has(r.position)||vs(d)&&!p&&Hb(n,d))?o=o.filter(y=>y!==d):r=h,d=xi(d)}return a.set(n,o),o}function fR(n){let{element:a,boundary:s,rootBoundary:o,strategy:r}=n;const d=[...s==="clippingAncestors"?yr(a)?[]:cR(a,this._c):[].concat(s),o],h=d[0],p=d.reduce((m,y)=>{const v=xv(a,y,r);return m.top=Re(v.top,m.top),m.right=bi(v.right,m.right),m.bottom=bi(v.bottom,m.bottom),m.left=Re(v.left,m.left),m},xv(a,h,r));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function dR(n){const{width:a,height:s}=Lb(n);return{width:a,height:s}}function hR(n,a,s){const o=cn(a),r=dn(a),f=s==="fixed",d=Qi(n,!0,f,a);let h={scrollLeft:0,scrollTop:0};const p=un(0);function m(){p.x=br(r)}if(o||!o&&!f)if(($a(a)!=="body"||vs(r))&&(h=vr(a)),o){const T=Qi(a,!0,f,a);p.x=T.x+a.clientLeft,p.y=T.y+a.clientTop}else r&&m();f&&!o&&r&&m();const y=r&&!o&&!f?Ub(r,h):un(0),v=d.left+h.scrollLeft-p.x-y.x,x=d.top+h.scrollTop-p.y-y.y;return{x:v,y:x,width:d.width,height:d.height}}function of(n){return Je(n).position==="static"}function Sv(n,a){if(!cn(n)||Je(n).position==="fixed")return null;if(a)return a(n);let s=n.offsetParent;return dn(n)===s&&(s=s.ownerDocument.body),s}function Gb(n,a){const s=Oe(n);if(yr(n))return s;if(!cn(n)){let r=xi(n);for(;r&&!Ka(r);){if(Fe(r)&&!of(r))return r;r=xi(r)}return s}let o=Sv(n,a);for(;o&&FM(o)&&of(o);)o=Sv(o,a);return o&&Ka(o)&&of(o)&&!Ed(o)?s:o||tR(n)||s}const mR=async function(n){const a=this.getOffsetParent||Gb,s=this.getDimensions,o=await s(n.floating);return{reference:hR(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function pR(n){return Je(n).direction==="rtl"}const gR={convertOffsetParentRelativeRectToViewportRelativeRect:aR,getDocumentElement:dn,getClippingRect:fR,getOffsetParent:Gb,getElementRects:mR,getClientRects:lR,getDimensions:dR,getScale:Ga,isElement:Fe,isRTL:pR};function Yb(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function yR(n,a){let s=null,o;const r=dn(n);function f(){var h;clearTimeout(o),(h=s)==null||h.disconnect(),s=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),f();const m=n.getBoundingClientRect(),{left:y,top:v,width:x,height:T}=m;if(h||a(),!x||!T)return;const C=Po(v),M=Po(r.clientWidth-(y+x)),D=Po(r.clientHeight-(v+T)),N=Po(y),U={rootMargin:-C+"px "+-M+"px "+-D+"px "+-N+"px",threshold:Re(0,bi(1,p))||1};let G=!0;function q(Q){const P=Q[0].intersectionRatio;if(P!==p){if(!G)return d();P?d(!1,P):o=setTimeout(()=>{d(!1,1e-7)},1e3)}P===1&&!Yb(m,n.getBoundingClientRect())&&d(),G=!1}try{s=new IntersectionObserver(q,{...U,root:r.ownerDocument})}catch{s=new IntersectionObserver(q,U)}s.observe(n)}return d(!0),f}function vR(n,a,s,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,m=wd(n),y=r||f?[...m?ds(m):[],...ds(a)]:[];y.forEach(N=>{r&&N.addEventListener("scroll",s,{passive:!0}),f&&N.addEventListener("resize",s)});const v=m&&h?yR(m,s):null;let x=-1,T=null;d&&(T=new ResizeObserver(N=>{let[V]=N;V&&V.target===m&&T&&(T.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var U;(U=T)==null||U.observe(a)})),s()}),m&&!p&&T.observe(m),T.observe(a));let C,M=p?Qi(n):null;p&&D();function D(){const N=Qi(n);M&&!Yb(M,N)&&s(),M=N,C=requestAnimationFrame(D)}return s(),()=>{var N;y.forEach(V=>{r&&V.removeEventListener("scroll",s),f&&V.removeEventListener("resize",s)}),v==null||v(),(N=T)==null||N.disconnect(),T=null,p&&cancelAnimationFrame(C)}}const bR=PM,xR=XM,SR=GM,TR=KM,AR=YM,Tv=HM,ER=ZM,CR=(n,a,s)=>{const o=new Map,r={platform:gR,...s},f={...r.platform,_c:o};return UM(n,a,{...r,platform:f})};var wR=typeof document<"u",MR=function(){},Qo=wR?S.useLayoutEffect:MR;function sr(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let s,o,r;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==a.length)return!1;for(o=s;o--!==0;)if(!sr(n[o],a[o]))return!1;return!0}if(r=Object.keys(n),s=r.length,s!==Object.keys(a).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(a,r[o]))return!1;for(o=s;o--!==0;){const f=r[o];if(!(f==="_owner"&&n.$$typeof)&&!sr(n[f],a[f]))return!1}return!0}return n!==n&&a!==a}function qb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Av(n,a){const s=qb(n);return Math.round(a*s)/s}function rf(n){const a=S.useRef(n);return Qo(()=>{a.current=n}),a}function RR(n){n===void 0&&(n={});const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:r,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[y,v]=S.useState({x:0,y:0,strategy:s,placement:a,middlewareData:{},isPositioned:!1}),[x,T]=S.useState(o);sr(x,o)||T(o);const[C,M]=S.useState(null),[D,N]=S.useState(null),V=S.useCallback(k=>{k!==Q.current&&(Q.current=k,M(k))},[]),U=S.useCallback(k=>{k!==P.current&&(P.current=k,N(k))},[]),G=f||C,q=d||D,Q=S.useRef(null),P=S.useRef(null),F=S.useRef(y),lt=p!=null,st=rf(p),pt=rf(r),tt=rf(m),Tt=S.useCallback(()=>{if(!Q.current||!P.current)return;const k={placement:a,strategy:s,middleware:x};pt.current&&(k.platform=pt.current),CR(Q.current,P.current,k).then(et=>{const ot={...et,isPositioned:tt.current!==!1};ht.current&&!sr(F.current,ot)&&(F.current=ot,vb.flushSync(()=>{v(ot)}))})},[x,a,s,pt,tt]);Qo(()=>{m===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(k=>({...k,isPositioned:!1})))},[m]);const ht=S.useRef(!1);Qo(()=>(ht.current=!0,()=>{ht.current=!1}),[]),Qo(()=>{if(G&&(Q.current=G),q&&(P.current=q),G&&q){if(st.current)return st.current(G,q,Tt);Tt()}},[G,q,Tt,st,lt]);const wt=S.useMemo(()=>({reference:Q,floating:P,setReference:V,setFloating:U}),[V,U]),L=S.useMemo(()=>({reference:G,floating:q}),[G,q]),Z=S.useMemo(()=>{const k={position:s,left:0,top:0};if(!L.floating)return k;const et=Av(L.floating,y.x),ot=Av(L.floating,y.y);return h?{...k,transform:"translate("+et+"px, "+ot+"px)",...qb(L.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:et,top:ot}},[s,h,L.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:Tt,refs:wt,elements:L,floatingStyles:Z}),[y,Tt,wt,L,Z])}const DR=n=>{function a(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:o,padding:r}=typeof n=="function"?n(s):n;return o&&a(o)?o.current!=null?Tv({element:o.current,padding:r}).fn(s):{}:o?Tv({element:o,padding:r}).fn(s):{}}}},OR=(n,a)=>({...bR(n),options:[n,a]}),NR=(n,a)=>({...xR(n),options:[n,a]}),jR=(n,a)=>({...ER(n),options:[n,a]}),_R=(n,a)=>({...SR(n),options:[n,a]}),zR=(n,a)=>({...TR(n),options:[n,a]}),VR=(n,a)=>({...AR(n),options:[n,a]}),LR=(n,a)=>({...DR(n),options:[n,a]});var BR="Arrow",Pb=S.forwardRef((n,a)=>{const{children:s,width:o=10,height:r=5,...f}=n;return A.jsx(fn.svg,{...f,ref:a,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:A.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pb.displayName=BR;var UR=Pb;function HR(n){const[a,s]=S.useState(void 0);return vi(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const f=r[0];let d,h;if("borderBoxSize"in f){const p=f.borderBoxSize,m=Array.isArray(p)?p[0]:p;d=m.inlineSize,h=m.blockSize}else d=n.offsetWidth,h=n.offsetHeight;s({width:d,height:h})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else s(void 0)},[n]),a}var Md="Popper",[Xb,Zb]=md(Md),[GR,Kb]=Xb(Md),Qb=n=>{const{__scopePopper:a,children:s}=n,[o,r]=S.useState(null);return A.jsx(GR,{scope:a,anchor:o,onAnchorChange:r,children:s})};Qb.displayName=Md;var kb="PopperAnchor",Fb=S.forwardRef((n,a)=>{const{__scopePopper:s,virtualRef:o,...r}=n,f=Kb(kb,s),d=S.useRef(null),h=Ti(a,d),p=S.useRef(null);return S.useEffect(()=>{const m=p.current;p.current=(o==null?void 0:o.current)||d.current,m!==p.current&&f.onAnchorChange(p.current)}),o?null:A.jsx(fn.div,{...r,ref:h})});Fb.displayName=kb;var Rd="PopperContent",[YR,qR]=Xb(Rd),Jb=S.forwardRef((n,a)=>{var St,$t,Ut,Hn,Ai,Fi;const{__scopePopper:s,side:o="bottom",sideOffset:r=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:x=!1,updatePositionStrategy:T="optimized",onPlaced:C,...M}=n,D=Kb(Rd,s),[N,V]=S.useState(null),U=Ti(a,Gn=>V(Gn)),[G,q]=S.useState(null),Q=HR(G),P=(Q==null?void 0:Q.width)??0,F=(Q==null?void 0:Q.height)??0,lt=o+(f!=="center"?"-"+f:""),st=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},pt=Array.isArray(m)?m:[m],tt=pt.length>0,Tt={padding:st,boundary:pt.filter(XR),altBoundary:tt},{refs:ht,floatingStyles:wt,placement:L,isPositioned:Z,middlewareData:k}=RR({strategy:"fixed",placement:lt,whileElementsMounted:(...Gn)=>vR(...Gn,{animationFrame:T==="always"}),elements:{reference:D.anchor},middleware:[OR({mainAxis:r+F,alignmentAxis:d}),p&&NR({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?jR():void 0,...Tt}),p&&_R({...Tt}),zR({...Tt,apply:({elements:Gn,rects:$e,availableWidth:Ia,availableHeight:tl})=>{const{width:Ar,height:bs}=$e.reference,Yn=Gn.floating.style;Yn.setProperty("--radix-popper-available-width",`${Ia}px`),Yn.setProperty("--radix-popper-available-height",`${tl}px`),Yn.setProperty("--radix-popper-anchor-width",`${Ar}px`),Yn.setProperty("--radix-popper-anchor-height",`${bs}px`)}}),G&&LR({element:G,padding:h}),ZR({arrowWidth:P,arrowHeight:F}),x&&VR({strategy:"referenceHidden",...Tt})]}),[et,ot]=Ib(L),w=pr(C);vi(()=>{Z&&(w==null||w())},[Z,w]);const K=(St=k.arrow)==null?void 0:St.x,J=($t=k.arrow)==null?void 0:$t.y,$=((Ut=k.arrow)==null?void 0:Ut.centerOffset)!==0,[rt,mt]=S.useState();return vi(()=>{N&&mt(window.getComputedStyle(N).zIndex)},[N]),A.jsx("div",{ref:ht.setFloating,"data-radix-popper-content-wrapper":"",style:{...wt,transform:Z?wt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rt,"--radix-popper-transform-origin":[(Hn=k.transformOrigin)==null?void 0:Hn.x,(Ai=k.transformOrigin)==null?void 0:Ai.y].join(" "),...((Fi=k.hide)==null?void 0:Fi.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:A.jsx(YR,{scope:s,placedSide:et,onArrowChange:q,arrowX:K,arrowY:J,shouldHideArrow:$,children:A.jsx(fn.div,{"data-side":et,"data-align":ot,...M,ref:U,style:{...M.style,animation:Z?void 0:"none"}})})})});Jb.displayName=Rd;var Wb="PopperArrow",PR={top:"bottom",right:"left",bottom:"top",left:"right"},$b=S.forwardRef(function(a,s){const{__scopePopper:o,...r}=a,f=qR(Wb,o),d=PR[f.placedSide];return A.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:A.jsx(UR,{...r,ref:s,style:{...r.style,display:"block"}})})});$b.displayName=Wb;function XR(n){return n!==null}var ZR=n=>({name:"transformOrigin",options:n,fn(a){var D,N,V;const{placement:s,rects:o,middlewareData:r}=a,d=((D=r.arrow)==null?void 0:D.centerOffset)!==0,h=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[m,y]=Ib(s),v={start:"0%",center:"50%",end:"100%"}[y],x=(((N=r.arrow)==null?void 0:N.x)??0)+h/2,T=(((V=r.arrow)==null?void 0:V.y)??0)+p/2;let C="",M="";return m==="bottom"?(C=d?v:`${x}px`,M=`${-p}px`):m==="top"?(C=d?v:`${x}px`,M=`${o.floating.height+p}px`):m==="right"?(C=`${-p}px`,M=d?v:`${T}px`):m==="left"&&(C=`${o.floating.width+p}px`,M=d?v:`${T}px`),{data:{x:C,y:M}}}});function Ib(n){const[a,s="center"]=n.split("-");return[a,s]}var KR=Qb,QR=Fb,kR=Jb,FR=$b,JR=Symbol("radix.slottable");function WR(n){const a=({children:s})=>A.jsx(A.Fragment,{children:s});return a.displayName=`${n}.Slottable`,a.__radixId=JR,a}var $R=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),IR="VisuallyHidden",tx=S.forwardRef((n,a)=>A.jsx(fn.span,{...n,ref:a,style:{...$R,...n.style}}));tx.displayName=IR;var tD=tx,[xr]=md("Tooltip",[Zb]),Sr=Zb(),ex="TooltipProvider",eD=700,Nf="tooltip.open",[nD,Dd]=xr(ex),nx=n=>{const{__scopeTooltip:a,delayDuration:s=eD,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:f}=n,d=S.useRef(!0),h=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),A.jsx(nD,{scope:a,isOpenDelayedRef:d,delayDuration:s,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,o)},[o]),isPointerInTransitRef:h,onPointerInTransitChange:S.useCallback(m=>{h.current=m},[]),disableHoverableContent:r,children:f})};nx.displayName=ex;var hs="Tooltip",[iD,Tr]=xr(hs),ix=n=>{const{__scopeTooltip:a,children:s,open:o,defaultOpen:r,onOpenChange:f,disableHoverableContent:d,delayDuration:h}=n,p=Dd(hs,n.__scopeTooltip),m=Sr(a),[y,v]=S.useState(null),x=bb(),T=S.useRef(0),C=d??p.disableHoverableContent,M=h??p.delayDuration,D=S.useRef(!1),[N,V]=yb({prop:o,defaultProp:r??!1,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Nf))):p.onClose(),f==null||f(P)},caller:hs}),U=S.useMemo(()=>N?D.current?"delayed-open":"instant-open":"closed",[N]),G=S.useCallback(()=>{window.clearTimeout(T.current),T.current=0,D.current=!1,V(!0)},[V]),q=S.useCallback(()=>{window.clearTimeout(T.current),T.current=0,V(!1)},[V]),Q=S.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>{D.current=!0,V(!0),T.current=0},M)},[M,V]);return S.useEffect(()=>()=>{T.current&&(window.clearTimeout(T.current),T.current=0)},[]),A.jsx(KR,{...m,children:A.jsx(iD,{scope:a,contentId:x,open:N,stateAttribute:U,trigger:y,onTriggerChange:v,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?Q():G()},[p.isOpenDelayedRef,Q,G]),onTriggerLeave:S.useCallback(()=>{C?q():(window.clearTimeout(T.current),T.current=0)},[q,C]),onOpen:G,onClose:q,disableHoverableContent:C,children:s})})};ix.displayName=hs;var jf="TooltipTrigger",ax=S.forwardRef((n,a)=>{const{__scopeTooltip:s,...o}=n,r=Tr(jf,s),f=Dd(jf,s),d=Sr(s),h=S.useRef(null),p=Ti(a,h,r.onTriggerChange),m=S.useRef(!1),y=S.useRef(!1),v=S.useCallback(()=>m.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),A.jsx(QR,{asChild:!0,...d,children:A.jsx(fn.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:p,onPointerMove:ln(n.onPointerMove,x=>{x.pointerType!=="touch"&&!y.current&&!f.isPointerInTransitRef.current&&(r.onTriggerEnter(),y.current=!0)}),onPointerLeave:ln(n.onPointerLeave,()=>{r.onTriggerLeave(),y.current=!1}),onPointerDown:ln(n.onPointerDown,()=>{r.open&&r.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:ln(n.onFocus,()=>{m.current||r.onOpen()}),onBlur:ln(n.onBlur,r.onClose),onClick:ln(n.onClick,r.onClose)})})});ax.displayName=jf;var aD="TooltipPortal",[PD,lD]=xr(aD,{forceMount:void 0}),Qa="TooltipContent",lx=S.forwardRef((n,a)=>{const s=lD(Qa,n.__scopeTooltip),{forceMount:o=s.forceMount,side:r="top",...f}=n,d=Tr(Qa,n.__scopeTooltip);return A.jsx(gd,{present:o||d.open,children:d.disableHoverableContent?A.jsx(sx,{side:r,...f,ref:a}):A.jsx(sD,{side:r,...f,ref:a})})}),sD=S.forwardRef((n,a)=>{const s=Tr(Qa,n.__scopeTooltip),o=Dd(Qa,n.__scopeTooltip),r=S.useRef(null),f=Ti(a,r),[d,h]=S.useState(null),{trigger:p,onClose:m}=s,y=r.current,{onPointerInTransitChange:v}=o,x=S.useCallback(()=>{h(null),v(!1)},[v]),T=S.useCallback((C,M)=>{const D=C.currentTarget,N={x:C.clientX,y:C.clientY},V=fD(N,D.getBoundingClientRect()),U=dD(N,V),G=hD(M.getBoundingClientRect()),q=pD([...U,...G]);h(q),v(!0)},[v]);return S.useEffect(()=>()=>x(),[x]),S.useEffect(()=>{if(p&&y){const C=D=>T(D,y),M=D=>T(D,p);return p.addEventListener("pointerleave",C),y.addEventListener("pointerleave",M),()=>{p.removeEventListener("pointerleave",C),y.removeEventListener("pointerleave",M)}}},[p,y,T,x]),S.useEffect(()=>{if(d){const C=M=>{const D=M.target,N={x:M.clientX,y:M.clientY},V=(p==null?void 0:p.contains(D))||(y==null?void 0:y.contains(D)),U=!mD(N,d);V?x():U&&(x(),m())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[p,y,d,m,x]),A.jsx(sx,{...n,ref:f})}),[oD,rD]=xr(hs,{isInside:!1}),uD=WR("TooltipContent"),sx=S.forwardRef((n,a)=>{const{__scopeTooltip:s,children:o,"aria-label":r,onEscapeKeyDown:f,onPointerDownOutside:d,...h}=n,p=Tr(Qa,s),m=Sr(s),{onClose:y}=p;return S.useEffect(()=>(document.addEventListener(Nf,y),()=>document.removeEventListener(Nf,y)),[y]),S.useEffect(()=>{if(p.trigger){const v=x=>{const T=x.target;T!=null&&T.contains(p.trigger)&&y()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,y]),A.jsx(Ob,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v=>v.preventDefault(),onDismiss:y,children:A.jsxs(kR,{"data-state":p.stateAttribute,...m,...h,ref:a,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[A.jsx(uD,{children:o}),A.jsx(oD,{scope:s,isInside:!0,children:A.jsx(tD,{id:p.contentId,role:"tooltip",children:r||o})})]})})});lx.displayName=Qa;var ox="TooltipArrow",cD=S.forwardRef((n,a)=>{const{__scopeTooltip:s,...o}=n,r=Sr(s);return rD(ox,s).isInside?null:A.jsx(FR,{...r,...o,ref:a})});cD.displayName=ox;function fD(n,a){const s=Math.abs(a.top-n.y),o=Math.abs(a.bottom-n.y),r=Math.abs(a.right-n.x),f=Math.abs(a.left-n.x);switch(Math.min(s,o,r,f)){case f:return"left";case r:return"right";case s:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function dD(n,a,s=5){const o=[];switch(a){case"top":o.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":o.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":o.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":o.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return o}function hD(n){const{top:a,right:s,bottom:o,left:r}=n;return[{x:r,y:a},{x:s,y:a},{x:s,y:o},{x:r,y:o}]}function mD(n,a){const{x:s,y:o}=n;let r=!1;for(let f=0,d=a.length-1;f<a.length;d=f++){const h=a[f],p=a[d],m=h.x,y=h.y,v=p.x,x=p.y;y>o!=x>o&&s<(v-m)*(o-y)/(x-y)+m&&(r=!r)}return r}function pD(n){const a=n.slice();return a.sort((s,o)=>s.x<o.x?-1:s.x>o.x?1:s.y<o.y?-1:s.y>o.y?1:0),gD(a)}function gD(n){if(n.length<=1)return n.slice();const a=[];for(let o=0;o<n.length;o++){const r=n[o];for(;a.length>=2;){const f=a[a.length-1],d=a[a.length-2];if((f.x-d.x)*(r.y-d.y)>=(f.y-d.y)*(r.x-d.x))a.pop();else break}a.push(r)}a.pop();const s=[];for(let o=n.length-1;o>=0;o--){const r=n[o];for(;s.length>=2;){const f=s[s.length-1],d=s[s.length-2];if((f.x-d.x)*(r.y-d.y)>=(f.y-d.y)*(r.x-d.x))s.pop();else break}s.push(r)}return s.pop(),a.length===1&&s.length===1&&a[0].x===s[0].x&&a[0].y===s[0].y?a:a.concat(s)}var yD=nx,vD=ix,bD=ax,rx=lx;const xD=yD,SD=vD,TD=bD,ux=S.forwardRef(({className:n,sideOffset:a=4,...s},o)=>A.jsx(rx,{ref:o,sideOffset:a,className:jt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...s}));ux.displayName=rx.displayName;function AD(n){if(n<0)return"0s";const a=Math.floor(n/1e3),s=Math.floor(a/3600),o=Math.floor(a%3600/60),r=a%60;return s>0?`${s}h ${o}m`:o>0?`${o}m ${r}s`:`${r}s`}function ED(n){const a=Date.now()-n;if(a<0)return"0s ago";const s=Math.floor(a/1e3);if(s<60)return`${s}s ago`;const o=Math.floor(s/60);return o<60?`${o}m ago`:`${Math.floor(o/60)}h ago`}function CD({startTime:n}){const[a,s]=S.useState(Date.now());S.useEffect(()=>{const r=setInterval(()=>{s(Date.now())},1e3);return()=>clearInterval(r)},[]);const o=a-n;return A.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:AD(o)})}const wD={0:"P0",1:"P1",2:"P2",3:"P3",4:"P4"},MD={hidden:{opacity:0,scale:.95},visible:{opacity:1,scale:1}},RD={type:"spring",stiffness:300,damping:30},DD="border-red-500/60 bg-red-500/5 ring-1 ring-red-500/20 shadow-[0_0_8px_rgba(239,68,68,0.1)]",OD="ring-1 ring-blue-400/60 animate-agent-pulse";function ND({bead:n}){const a=cv[n.priority]??cv[3],s=wD[n.priority]??`P${n.priority}`,o=n.stage==="error",r=!!n.agentSessionId,f=A.jsx(lb.div,{layoutId:n.id,variants:MD,initial:"hidden",animate:"visible",exit:"hidden",transition:RD,children:A.jsxs(Rb,{className:jt("p-3 transition-colors hover:bg-accent/50",o&&DD,r&&!o&&OD),children:[A.jsxs("div",{className:"mb-1.5 flex items-center justify-between gap-2",children:[A.jsx(Za,{variant:"outline",className:jt("shrink-0 font-mono text-[10px] px-1.5 py-0",o&&"border-red-500/40 text-red-400"),children:n.id}),A.jsx(Za,{className:jt("shrink-0 border-0 text-[10px] px-1.5 py-0",a),children:s})]}),A.jsx("p",{className:"mb-2 line-clamp-2 text-sm leading-snug text-foreground",children:n.title}),A.jsxs("div",{className:"flex items-center justify-between",children:[n.stage!=="ready"&&n.stage!=="done"&&A.jsx(CD,{startTime:n.stageStartedAt}),o&&A.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-medium text-red-400",children:[A.jsx(ev,{className:"h-3 w-3"}),"Error"]})]}),o&&n.error&&A.jsx("p",{className:"mt-1.5 line-clamp-2 break-words rounded bg-red-500/10 px-1.5 py-1 text-[10px] leading-tight text-red-400",children:n.error})]})});return o&&n.error?A.jsxs(SD,{children:[A.jsx(TD,{asChild:!0,children:f}),A.jsx(ux,{side:"top",className:"max-w-xs border-red-500/30 bg-popover",children:A.jsxs("div",{className:"flex items-start gap-2",children:[A.jsx(ev,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-red-400"}),A.jsx("p",{className:"max-h-40 overflow-y-auto break-words text-xs text-popover-foreground",children:n.error})]})})]}):f}function jD({columnId:n,label:a,color:s,beads:o,isCompact:r}){const f=n==="error",d=f&&o.length>0,h=d?"text-red-400":"text-muted-foreground",p=r?o.slice(0,1):o;return A.jsxs("div",{"aria-label":`${a} column with ${o.length} bead${o.length!==1?"s":""}`,className:jt("flex w-[240px] min-w-[240px] flex-col rounded-lg border border-t-2 bg-muted/30",d&&"border-red-500/30 bg-red-500/[0.03]"),style:{borderTopColor:d?void 0:s},children:[A.jsxs("div",{className:"flex items-center justify-between px-3 py-2.5",children:[A.jsxs("div",{className:"flex items-center gap-1.5",children:[f&&A.jsx(ub,{className:jt("h-3.5 w-3.5",d?h:"text-muted-foreground/50")}),A.jsx("h3",{className:jt("text-xs font-semibold uppercase tracking-wider",h),children:a})]}),o.length>0&&A.jsx("span",{className:jt("flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[10px] font-medium",d?"bg-red-500/15 text-red-400":"bg-muted text-muted-foreground"),children:o.length})]}),A.jsx("div",{role:"list",className:"flex flex-col gap-2 px-2 pb-2",children:A.jsx(Dv,{mode:"popLayout",children:p.map(m=>A.jsx("div",{role:"listitem",children:A.jsx(ND,{bead:m})},m.id))})})]})}function _D({pipeline:n,isExpanded:a,columns:s}){const r=[...s&&s.length>0?s:dM].sort((h,p)=>h.order-p.order),f=new Set(r.map(h=>h.id)),d=new Map;for(const h of r)d.set(h.id,[]);for(const h of n.beads.values())if(f.has(h.stage))d.get(h.stage).push(h);else{const p=d.get("ready");p&&p.push(h)}return A.jsx("div",{className:"overflow-x-auto pb-2 scrollbar-thin",children:A.jsx(mT,{id:n.id,children:A.jsx("div",{className:"flex gap-3",children:r.map(h=>A.jsx(jD,{columnId:h.id,label:h.label,color:h.color,beads:d.get(h.id)??[],isCompact:!a},h.id))})})})}function zD({project:n}){const[a,s]=S.useState(!0),o=Array.from(n.pipelines.values()),[r,f]=S.useState(()=>{const h=localStorage.getItem("dashboard:expandedPipelines");if(h)try{return new Set(JSON.parse(h))}catch{return new Set}return new Set});S.useEffect(()=>{localStorage.setItem("dashboard:expandedPipelines",JSON.stringify(Array.from(r)))},[r]);const d=h=>{f(p=>{const m=new Set(p);return m.has(h)?m.delete(h):m.add(h),m})};return A.jsxs(Jw,{open:a,onOpenChange:s,children:[A.jsx(Ww,{asChild:!0,children:A.jsxs("button",{type:"button","aria-expanded":a,className:jt("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-left transition-colors hover:bg-accent/50",Xa),children:[A.jsx(BC,{className:jt("h-4 w-4 shrink-0 text-muted-foreground transition-transform",a&&"rotate-90")}),A.jsx("h2",{className:"text-base font-semibold text-foreground",children:n.projectName}),A.jsx("span",{className:"truncate text-xs text-muted-foreground",children:n.projectPath}),A.jsx("span",{className:"flex-1"}),A.jsx(VD,{connected:n.connected,lastHeartbeat:n.lastHeartbeat})]})}),A.jsx(Eb,{children:A.jsx("div",{className:"pl-7 pr-4 pb-4",children:o.length===0?A.jsx("p",{className:"py-4 text-sm text-muted-foreground",children:"No active pipelines"}):o.map((h,p)=>A.jsxs("div",{children:[p>0&&A.jsx(xd,{className:"my-3"}),A.jsx(fM,{pipeline:h,isExpanded:r.has(h.id),onToggle:()=>d(h.id)}),A.jsx(_D,{pipeline:h,isExpanded:r.has(h.id),columns:n.columns})]},h.id))})})]})}function VD({connected:n,lastHeartbeat:a}){const[,s]=S.useState(0);return S.useEffect(()=>{if(n)return;const o=setInterval(()=>s(r=>r+1),1e4);return()=>clearInterval(o)},[n]),n?A.jsxs(Za,{variant:"outline",className:"shrink-0 gap-1.5 border-green-500/50 bg-green-500/10 text-green-400",children:[A.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-green-400"}),"Connected"]}):A.jsxs(Za,{variant:"outline",className:"shrink-0 gap-1.5 border-red-500/50 bg-red-500/10 text-red-400",children:[A.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-red-400"}),"Disconnected · ",ED(a)]})}function _n({className:n,...a}){return A.jsx("div",{className:jt("animate-pulse rounded-md bg-muted",n),...a})}function LD(){return A.jsxs("div",{className:"space-y-6",children:[A.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[A.jsx(_n,{className:"h-4 w-4"}),A.jsx(_n,{className:"h-5 w-40"}),A.jsx(_n,{className:"h-4 w-64"}),A.jsx("span",{className:"flex-1"}),A.jsx(_n,{className:"h-6 w-24 rounded-full"})]}),A.jsxs("div",{className:"flex items-center gap-3 pl-11",children:[A.jsx(_n,{className:"h-4 w-32"}),A.jsx(_n,{className:"h-5 w-12 rounded-full"})]}),A.jsx("div",{className:"flex gap-3 overflow-x-auto pl-11 scrollbar-thin",children:Array.from({length:8}).map((n,a)=>A.jsxs("div",{className:"flex w-[240px] min-w-[240px] flex-col rounded-lg border bg-muted/30 p-3",children:[A.jsx(_n,{className:"mb-3 h-4 w-20"}),A.jsxs("div",{className:"space-y-2",children:[a<3&&A.jsx(_n,{className:"h-20 w-full rounded-lg"}),a<2&&A.jsx(_n,{className:"h-20 w-full rounded-lg"})]})]},a))})]})}function BD(){return A.jsx(Sw,{children:A.jsx(UD,{})})}function Ev(n){for(const a of n.pipelines.values())for(const s of a.beads.values())if(s.stage!=="done")return!1;return!0}function UD(){const{state:n,dispatch:a}=eT(),{status:s,reconnect:o}=FS({onEvent:a}),[r,f]=S.useState(()=>localStorage.getItem("dashboard:showCompleted")==="true");S.useEffect(()=>{localStorage.setItem("dashboard:showCompleted",String(r))},[r]);const d=Array.from(n.projects.values()),h=d.filter(x=>!Ev(x)),p=d.filter(x=>Ev(x)),m=r?d:h,y=s==="connecting"&&d.length===0,v=s==="disconnected"&&d.length===0;return A.jsx(vT,{reducedMotion:"user",children:A.jsx(xD,{delayDuration:300,children:A.jsxs("div",{className:"min-h-screen bg-background",children:[A.jsxs("header",{className:"sticky top-0 z-10 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:[A.jsxs("div",{className:"flex items-center justify-between px-6 py-4",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-xl font-bold text-foreground",children:"OpenCode Dashboard"}),A.jsx("p",{className:"text-xs text-muted-foreground",children:"Real-time agent activity dashboard"})]}),A.jsx(Rw,{status:s})]}),p.length>0&&A.jsx("div",{className:"border-t px-6 py-2",children:A.jsx("button",{type:"button",onClick:()=>f(!r),className:jt("inline-flex items-center gap-2 text-xs text-muted-foreground transition-colors hover:text-foreground",Xa),children:r?A.jsxs(A.Fragment,{children:[A.jsx(rb,{className:"h-3 w-3"}),A.jsxs("span",{children:["Showing ",p.length," completed project",p.length!==1?"s":""]}),A.jsx("span",{className:"text-muted-foreground/70",children:"(Hide)"})]}):A.jsxs(A.Fragment,{children:[A.jsx(ob,{className:"h-3 w-3"}),A.jsxs("span",{children:[p.length," completed project",p.length!==1?"s":""," hidden"]}),A.jsx("span",{className:"text-muted-foreground/70",children:"(Show)"})]})})})]}),A.jsx(Cw,{status:s,onReconnect:o}),A.jsxs("main",{className:"px-6 py-6",children:[y&&A.jsx(LD,{}),v&&A.jsx(GD,{onReconnect:o}),!y&&!v&&d.length===0&&A.jsx(HD,{}),m.length>0&&A.jsx("div",{className:"space-y-2",children:m.map((x,T)=>A.jsxs("div",{children:[T>0&&A.jsx(xd,{className:"my-4"}),A.jsx(zD,{project:x})]},x.projectPath))})]})]})})})}function HD(){return A.jsxs("div",{className:"flex flex-col items-center justify-center py-24",children:[A.jsx("div",{className:"mb-4 rounded-full bg-muted p-4",children:A.jsx(HC,{className:"h-8 w-8 text-muted-foreground"})}),A.jsx("h2",{className:"mb-1 text-lg font-semibold text-foreground",children:"No projects connected"}),A.jsx("p",{className:"text-sm text-muted-foreground",children:"Start an OpenCode session with the dashboard plugin to see agent activity here."})]})}function GD({onReconnect:n}){return A.jsxs("div",{role:"alert",className:"flex flex-col items-center justify-center py-24",children:[A.jsx("div",{className:"mb-4 rounded-full bg-red-500/10 p-4",children:A.jsx(YC,{className:"h-8 w-8 text-red-400"})}),A.jsx("h2",{className:"mb-1 text-lg font-semibold text-foreground",children:"Unable to connect to server"}),A.jsx("p",{className:"mb-2 text-sm text-muted-foreground",children:"The dashboard server appears to be offline. Please check that:"}),A.jsxs("ul",{className:"mb-6 list-inside list-disc text-sm text-muted-foreground",children:[A.jsxs("li",{children:["The server is running (",A.jsx("code",{className:"rounded bg-muted px-1 py-0.5 text-xs font-mono",children:"bun run server"}),")"]}),A.jsx("li",{children:"It's accessible on the expected port"}),A.jsx("li",{children:"No firewall is blocking the connection"})]}),A.jsx("button",{type:"button",onClick:n,className:jt("inline-flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",Xa),children:"Try Reconnecting"})]})}XS.createRoot(document.getElementById("root")).render(A.jsx(wv.StrictMode,{children:A.jsx(BD,{})}));