Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

chore: add pre-built UI assets for pip/uv installation

cyhhaoc38f6db03680
diff --git a/agent_routes.yaml b/agent_routes.yaml
deleted file mode 100644
index b2d231d04..000000000
--- a/agent_routes.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-default: opencode
-slack:
- default: opencode
- overrides:
- C09KX3GN118: codex
-telegram:
- default: claude
- overrides:
- "123456789": codex
diff --git a/ui/dist/assets/index-C2FuQjsO.js b/ui/dist/assets/index-C2FuQjsO.js
new file mode 100644
index 000000000..caa173c75
--- /dev/null
+++ b/ui/dist/assets/index-C2FuQjsO.js
@@ -0,0 +1,19 @@
+(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const c of r)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(r){const c={};return r.integrity&&(c.integrity=r.integrity),r.referrerPolicy&&(c.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?c.credentials="include":r.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(r){if(r.ep)return;r.ep=!0;const c=s(r);fetch(r.href,c)}})();function TS(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bc={exports:{}},Rs={};var vg;function wS(){if(vg)return Rs;vg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,r,c){var d=null;if(c!==void 0&&(d=""+c),r.key!==void 0&&(d=""+r.key),"key"in r){c={};for(var h in r)h!=="key"&&(c[h]=r[h])}else c=r;return r=c.ref,{$$typeof:n,type:l,key:d,ref:r!==void 0?r:null,props:c}}return Rs.Fragment=a,Rs.jsx=s,Rs.jsxs=s,Rs}var bg;function CS(){return bg||(bg=1,bc.exports=wS()),bc.exports}var g=CS(),Sc={exports:{}},fe={};var Sg;function ES(){if(Sg)return fe;Sg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,N={};function _(E,Y,W){this.props=E,this.context=Y,this.refs=N,this.updater=W||j}_.prototype.isReactComponent={},_.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Y,"setState")},_.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function O(){}O.prototype=_.prototype;function z(E,Y,W){this.props=E,this.context=Y,this.refs=N,this.updater=W||j}var F=z.prototype=new O;F.constructor=z,R(F,_.prototype),F.isPureReactComponent=!0;var H=Array.isArray;function Q(){}var X={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function $(E,Y,W){var te=W.ref;return{$$typeof:n,type:E,key:Y,ref:te!==void 0?te:null,props:W}}function Z(E,Y){return $(E.type,Y,E.props)}function re(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function de(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(W){return Y[W]})}var I=/\/+/g;function oe(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?de(""+E.key):Y.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(Q,Q):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,Y,W,te,me){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var Ae=!1;if(E===null)Ae=!0;else switch(ye){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(E.$$typeof){case n:case a:Ae=!0;break;case v:return Ae=E._init,D(Ae(E._payload),Y,W,te,me)}}if(Ae)return me=me(E),Ae=te===""?"."+oe(E,0):te,H(me)?(W="",Ae!=null&&(W=Ae.replace(I,"$&/")+"/"),D(me,Y,W,"",function(zi){return zi})):me!=null&&(re(me)&&(me=Z(me,W+(me.key==null||E&&E.key===me.key?"":(""+me.key).replace(I,"$&/")+"/")+Ae)),Y.push(me)),1;Ae=0;var ct=te===""?".":te+":";if(H(E))for(var Ke=0;Ke<E.length;Ke++)te=E[Ke],ye=ct+oe(te,Ke),Ae+=D(te,Y,W,ye,me);else if(Ke=w(E),typeof Ke=="function")for(E=Ke.call(E),Ke=0;!(te=E.next()).done;)te=te.value,ye=ct+oe(te,Ke++),Ae+=D(te,Y,W,ye,me);else if(ye==="object"){if(typeof E.then=="function")return D(ie(E),Y,W,te,me);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function B(E,Y,W){if(E==null)return E;var te=[],me=0;return D(E,te,"","",function(ye){return Y.call(W,ye,me++)}),te}function J(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(W){(E._status===0||E._status===-1)&&(E._status=1,E._result=W)},function(W){(E._status===0||E._status===-1)&&(E._status=2,E._result=W)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var ue=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},he={map:B,forEach:function(E,Y,W){B(E,function(){Y.apply(this,arguments)},W)},count:function(E){var Y=0;return B(E,function(){Y++}),Y},toArray:function(E){return B(E,function(Y){return Y})||[]},only:function(E){if(!re(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return fe.Activity=x,fe.Children=he,fe.Component=_,fe.Fragment=s,fe.Profiler=r,fe.PureComponent=z,fe.StrictMode=l,fe.Suspense=m,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,fe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},fe.cache=function(E){return function(){return E.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(E,Y,W){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var te=R({},E.props),me=E.key;if(Y!=null)for(ye in Y.key!==void 0&&(me=""+Y.key),Y)!q.call(Y,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&Y.ref===void 0||(te[ye]=Y[ye]);var ye=arguments.length-2;if(ye===1)te.children=W;else if(1<ye){for(var Ae=Array(ye),ct=0;ct<ye;ct++)Ae[ct]=arguments[ct+2];te.children=Ae}return $(E.type,me,te)},fe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:c,_context:E},E},fe.createElement=function(E,Y,W){var te,me={},ye=null;if(Y!=null)for(te in Y.key!==void 0&&(ye=""+Y.key),Y)q.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(me[te]=Y[te]);var Ae=arguments.length-2;if(Ae===1)me.children=W;else if(1<Ae){for(var ct=Array(Ae),Ke=0;Ke<Ae;Ke++)ct[Ke]=arguments[Ke+2];me.children=ct}if(E&&E.defaultProps)for(te in Ae=E.defaultProps,Ae)me[te]===void 0&&(me[te]=Ae[te]);return $(E,ye,me)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(E){return{$$typeof:h,render:E}},fe.isValidElement=re,fe.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:J}},fe.memo=function(E,Y){return{$$typeof:p,type:E,compare:Y===void 0?null:Y}},fe.startTransition=function(E){var Y=X.T,W={};X.T=W;try{var te=E(),me=X.S;me!==null&&me(W,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(Q,ue)}catch(ye){ue(ye)}finally{Y!==null&&W.types!==null&&(Y.types=W.types),X.T=Y}},fe.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},fe.use=function(E){return X.H.use(E)},fe.useActionState=function(E,Y,W){return X.H.useActionState(E,Y,W)},fe.useCallback=function(E,Y){return X.H.useCallback(E,Y)},fe.useContext=function(E){return X.H.useContext(E)},fe.useDebugValue=function(){},fe.useDeferredValue=function(E,Y){return X.H.useDeferredValue(E,Y)},fe.useEffect=function(E,Y){return X.H.useEffect(E,Y)},fe.useEffectEvent=function(E){return X.H.useEffectEvent(E)},fe.useId=function(){return X.H.useId()},fe.useImperativeHandle=function(E,Y,W){return X.H.useImperativeHandle(E,Y,W)},fe.useInsertionEffect=function(E,Y){return X.H.useInsertionEffect(E,Y)},fe.useLayoutEffect=function(E,Y){return X.H.useLayoutEffect(E,Y)},fe.useMemo=function(E,Y){return X.H.useMemo(E,Y)},fe.useOptimistic=function(E,Y){return X.H.useOptimistic(E,Y)},fe.useReducer=function(E,Y,W){return X.H.useReducer(E,Y,W)},fe.useRef=function(E){return X.H.useRef(E)},fe.useState=function(E){return X.H.useState(E)},fe.useSyncExternalStore=function(E,Y,W){return X.H.useSyncExternalStore(E,Y,W)},fe.useTransition=function(){return X.H.useTransition()},fe.version="19.2.3",fe}var Tg;function $o(){return Tg||(Tg=1,Sc.exports=ES()),Sc.exports}var T=$o();const Dt=TS(T);var Tc={exports:{}},Ms={},wc={exports:{}},Cc={};var wg;function jS(){return wg||(wg=1,(function(n){function a(D,B){var J=D.length;D.push(B);e:for(;0<J;){var ue=J-1>>>1,he=D[ue];if(0<r(he,B))D[ue]=B,D[J]=he,J=ue;else break e}}function s(D){return D.length===0?null:D[0]}function l(D){if(D.length===0)return null;var B=D[0],J=D.pop();if(J!==B){D[0]=J;e:for(var ue=0,he=D.length,E=he>>>1;ue<E;){var Y=2*(ue+1)-1,W=D[Y],te=Y+1,me=D[te];if(0>r(W,J))te<he&&0>r(me,W)?(D[ue]=me,D[te]=J,ue=te):(D[ue]=W,D[Y]=J,ue=Y);else if(te<he&&0>r(me,J))D[ue]=me,D[te]=J,ue=te;else break e}}return B}function r(D,B){var J=D.sortIndex-B.sortIndex;return J!==0?J:D.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],p=[],v=1,x=null,S=3,w=!1,j=!1,R=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var B=s(p);B!==null;){if(B.callback===null)l(p);else if(B.startTime<=D)l(p),B.sortIndex=B.expirationTime,a(m,B);else break;B=s(p)}}function H(D){if(R=!1,F(D),!j)if(s(m)!==null)j=!0,Q||(Q=!0,de());else{var B=s(p);B!==null&&ie(H,B.startTime-D)}}var Q=!1,X=-1,q=5,$=-1;function Z(){return N?!0:!(n.unstable_now()-$<q)}function re(){if(N=!1,Q){var D=n.unstable_now();$=D;var B=!0;try{e:{j=!1,R&&(R=!1,O(X),X=-1),w=!0;var J=S;try{t:{for(F(D),x=s(m);x!==null&&!(x.expirationTime>D&&Z());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,S=x.priorityLevel;var he=ue(x.expirationTime<=D);if(D=n.unstable_now(),typeof he=="function"){x.callback=he,F(D),B=!0;break t}x===s(m)&&l(m),F(D)}else l(m);x=s(m)}if(x!==null)B=!0;else{var E=s(p);E!==null&&ie(H,E.startTime-D),B=!1}}break e}finally{x=null,S=J,w=!1}B=void 0}}finally{B?de():Q=!1}}}var de;if(typeof z=="function")de=function(){z(re)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,oe=I.port2;I.port1.onmessage=re,de=function(){oe.postMessage(null)}}else de=function(){_(re,0)};function ie(D,B){X=_(function(){D(n.unstable_now())},B)}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(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var B=3;break;default:B=S}var J=S;S=B;try{return D()}finally{S=J}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=S;S=D;try{return B()}finally{S=J}},n.unstable_scheduleCallback=function(D,B,J){var ue=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ue+J:ue):J=ue,D){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=J+he,D={id:v++,callback:B,priorityLevel:D,startTime:J,expirationTime:he,sortIndex:-1},J>ue?(D.sortIndex=J,a(p,D),s(m)===null&&D===s(p)&&(R?(O(X),X=-1):R=!0,ie(H,J-ue))):(D.sortIndex=he,a(m,D),j||w||(j=!0,Q||(Q=!0,de()))),D},n.unstable_shouldYield=Z,n.unstable_wrapCallback=function(D){var B=S;return function(){var J=S;S=B;try{return D.apply(this,arguments)}finally{S=J}}}})(Cc)),Cc}var Cg;function AS(){return Cg||(Cg=1,wc.exports=jS()),wc.exports}var Ec={exports:{}},rt={};var Eg;function NS(){if(Eg)return rt;Eg=1;var n=$o();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={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 c(m,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:x==null?null:""+x,children:m,containerInfo:p,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,rt.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return c(m,p,null,v)},rt.flushSync=function(m){var p=d.T,v=l.p;try{if(d.T=null,l.p=2,m)return m()}finally{d.T=p,l.p=v,l.d.f()}},rt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(m,p))},rt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},rt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,x=h(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?l.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:w}):v==="script"&&l.d.X(m,{crossOrigin:x,integrity:S,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},rt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);l.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(m)},rt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=h(v,p.crossOrigin);l.d.L(m,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},rt.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=h(p.as,p.crossOrigin);l.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(m)},rt.requestFormReset=function(m){l.d.r(m)},rt.unstable_batchedUpdates=function(m,p){return m(p)},rt.useFormState=function(m,p,v){return d.H.useFormState(m,p,v)},rt.useFormStatus=function(){return d.H.useHostTransitionStatus()},rt.version="19.2.3",rt}var jg;function RS(){if(jg)return Ec.exports;jg=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(),Ec.exports=NS(),Ec.exports}var Ag;function MS(){if(Ag)return Ms;Ag=1;var n=AS(),a=$o(),s=RS();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var i=e,o=t;;){var u=i.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){i=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===i)return m(u),e;if(f===o)return m(u),t;f=f.sibling}throw Error(l(188))}if(i.return!==o.return)i=u,o=f;else{for(var y=!1,b=u.child;b;){if(b===i){y=!0,i=u,o=f;break}if(b===o){y=!0,o=u,i=f;break}b=b.sibling}if(!y){for(b=f.child;b;){if(b===i){y=!0,i=f,o=u;break}if(b===o){y=!0,o=f,i=u;break}b=b.sibling}if(!y)throw Error(l(189))}}if(i.alternate!==o)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),z=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case _:return"Profiler";case N:return"StrictMode";case H:return"Suspense";case Q:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case z:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var ie=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ue=[],he=-1;function E(e){return{current:e}}function Y(e){0>he||(e.current=ue[he],ue[he]=null,he--)}function W(e,t){he++,ue[he]=e.current,e.current=t}var te=E(null),me=E(null),ye=E(null),Ae=E(null);function ct(e,t){switch(W(ye,t),W(me,e),W(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gp(t),e=Yp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),W(te,e)}function Ke(){Y(te),Y(me),Y(ye)}function zi(e){e.memoizedState!==null&&W(Ae,e);var t=te.current,i=Yp(t,e.type);t!==i&&(W(me,e),W(te,i))}function al(e){me.current===e&&(Y(te),Y(me)),Ae.current===e&&(Y(Ae),Es._currentValue=J)}var nr,xd;function fa(e){if(nr===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);nr=t&&t[1]||"",xd=-1<i.stack.indexOf(`
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+nr+e+xd}var ar=!1;function ir(e,t){if(!e||ar)return"";ar=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(U){var V=U}Reflect.construct(e,[],P)}else{try{P.call()}catch(U){V=U}e.call(P.prototype)}}else{try{throw Error()}catch(U){V=U}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(U){if(U&&V&&typeof U.stack=="string")return[U.stack,V.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),y=f[0],b=f[1];if(y&&b){var C=y.split(`
+`),k=b.split(`
+`);for(u=o=0;o<C.length&&!C[o].includes("DetermineComponentFrameRoot");)o++;for(;u<k.length&&!k[u].includes("DetermineComponentFrameRoot");)u++;if(o===C.length||u===k.length)for(o=C.length-1,u=k.length-1;1<=o&&0<=u&&C[o]!==k[u];)u--;for(;1<=o&&0<=u;o--,u--)if(C[o]!==k[u]){if(o!==1||u!==1)do if(o--,u--,0>u||C[o]!==k[u]){var G=`
+`+C[o].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=o&&0<=u);break}}}finally{ar=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?fa(i):""}function I0(e,t){switch(e.tag){case 26:case 27:case 5:return fa(e.type);case 16:return fa("Lazy");case 13:return e.child!==t&&t!==null?fa("Suspense Fallback"):fa("Suspense");case 19:return fa("SuspenseList");case 0:case 15:return ir(e.type,!1);case 11:return ir(e.type.render,!1);case 1:return ir(e.type,!0);case 31:return fa("Activity");default:return""}}function vd(e){try{var t="",i=null;do t+=I0(e,i),i=e,e=e.return;while(e);return t}catch(o){return`
+Error generating stack: `+o.message+`
+`+o.stack}}var sr=Object.prototype.hasOwnProperty,lr=n.unstable_scheduleCallback,or=n.unstable_cancelCallback,eb=n.unstable_shouldYield,tb=n.unstable_requestPaint,Tt=n.unstable_now,nb=n.unstable_getCurrentPriorityLevel,bd=n.unstable_ImmediatePriority,Sd=n.unstable_UserBlockingPriority,il=n.unstable_NormalPriority,ab=n.unstable_LowPriority,Td=n.unstable_IdlePriority,ib=n.log,sb=n.unstable_setDisableYieldValue,Vi=null,wt=null;function Dn(e){if(typeof ib=="function"&&sb(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Vi,e)}catch{}}var Ct=Math.clz32?Math.clz32:rb,lb=Math.log,ob=Math.LN2;function rb(e){return e>>>=0,e===0?32:31-(lb(e)/ob|0)|0}var sl=256,ll=262144,ol=4194304;function da(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rl(e,t,i){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~f,o!==0?u=da(o):(y&=b,y!==0?u=da(y):i||(i=b&~e,i!==0&&(u=da(i))))):(b=o&~f,b!==0?u=da(b):y!==0?u=da(y):i||(i=o&~e,i!==0&&(u=da(i)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,i=t&-t,f>=i||f===32&&(i&4194048)!==0)?t:u}function Ui(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ub(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 wd(){var e=ol;return ol<<=1,(ol&62914560)===0&&(ol=4194304),e}function rr(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Bi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cb(e,t,i,o,u,f){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var b=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(i=y&~i;0<i;){var G=31-Ct(i),P=1<<G;b[G]=0,C[G]=-1;var V=k[G];if(V!==null)for(k[G]=null,G=0;G<V.length;G++){var U=V[G];U!==null&&(U.lane&=-536870913)}i&=~P}o!==0&&Cd(e,o,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~t))}function Cd(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ct(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|i&261930}function Ed(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var o=31-Ct(i),u=1<<o;u&t|e[o]&t&&(e[o]|=t),i&=~u}}function jd(e,t){var i=t&-t;return i=(i&42)!==0?1:ur(i),(i&(e.suspendedLanes|t))!==0?0:i}function ur(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ad(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:dg(e.type))}function Nd(e,t){var i=B.p;try{return B.p=e,t()}finally{B.p=i}}var _n=Math.random().toString(36).slice(2),nt="__reactFiber$"+_n,pt="__reactProps$"+_n,Va="__reactContainer$"+_n,fr="__reactEvents$"+_n,fb="__reactListeners$"+_n,db="__reactHandles$"+_n,Rd="__reactResources$"+_n,Hi="__reactMarker$"+_n;function dr(e){delete e[nt],delete e[pt],delete e[fr],delete e[fb],delete e[db]}function Ua(e){var t=e[nt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Va]||i[nt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Zp(e);e!==null;){if(i=e[nt])return i;e=Zp(e)}return t}e=i,i=e.parentNode}return null}function Ba(e){if(e=e[nt]||e[Va]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function Ha(e){var t=e[Rd];return t||(t=e[Rd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Hi]=!0}var Md=new Set,Od={};function ha(e,t){qa(e,t),qa(e+"Capture",t)}function qa(e,t){for(Od[e]=t,e=0;e<t.length;e++)Md.add(t[e])}var hb=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]*$"),Dd={},_d={};function mb(e){return sr.call(_d,e)?!0:sr.call(Dd,e)?!1:hb.test(e)?_d[e]=!0:(Dd[e]=!0,!1)}function ul(e,t,i){if(mb(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function cl(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function un(e,t,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+o)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ld(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pb(e,t,i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){i=""+y,f.call(this,y)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hr(e){if(!e._valueTracker){var t=Ld(e)?"checked":"value";e._valueTracker=pb(e,t,""+e[t])}}function kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Ld(e)?e.checked?"true":"false":e.value),e=o,e!==i?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gb=/[\n"\\]/g;function zt(e){return e.replace(gb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mr(e,t,i,o,u,f,y,b){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?pr(e,y,kt(t)):i!=null?pr(e,y,kt(i)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+kt(b):e.removeAttribute("name")}function zd(e,t,i,o,u,f,y,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){hr(e);return}i=i!=null?""+kt(i):"",t=t!=null?""+kt(t):i,b||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=b?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),hr(e)}function pr(e,t,i){t==="number"&&fl(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ga(e,t,i,o){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&o&&(e[i].defaultSelected=!0)}else{for(i=""+kt(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Vd(e,t,i){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+kt(i):""}function Ud(e,t,i,o){if(t==null){if(o!=null){if(i!=null)throw Error(l(92));if(ie(o)){if(1<o.length)throw Error(l(93));o=o[0]}i=o}i==null&&(i=""),t=i}i=kt(t),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o),hr(e)}function Ya(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var yb=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 Bd(e,t,i){var o=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,i):typeof i!="number"||i===0||yb.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Hd(e,t,i){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in t)o=t[u],t.hasOwnProperty(u)&&i[u]!==o&&Bd(e,u,o)}else for(var f in t)t.hasOwnProperty(f)&&Bd(e,f,t[f])}function gr(e){if(e.indexOf("-")===-1)return!1;switch(e){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 xb=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"]]),vb=/^[\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 dl(e){return vb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var yr=null;function xr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ka=null,Pa=null;function qd(e){var t=Ba(e);if(t&&(e=t.stateNode)){var i=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(mr(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var o=i[t];if(o!==e&&o.form===e.form){var u=o[pt]||null;if(!u)throw Error(l(90));mr(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)o=i[t],o.form===e.form&&kd(o)}break e;case"textarea":Vd(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Ga(e,!!i.multiple,t,!1)}}}var vr=!1;function Gd(e,t,i){if(vr)return e(t,i);vr=!0;try{var o=e(t);return o}finally{if(vr=!1,(Ka!==null||Pa!==null)&&(Il(),Ka&&(t=Ka,e=Pa,Pa=Ka=null,qd(t),e)))for(t=0;t<e.length;t++)qd(e[t])}}function Gi(e,t){var i=e.stateNode;if(i===null)return null;var o=i[pt]||null;if(o===null)return null;i=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,t,typeof i));return i}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(fn)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){br=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{br=!1}var Ln=null,Sr=null,hl=null;function Yd(){if(hl)return hl;var e,t=Sr,i=t.length,o,u="value"in Ln?Ln.value:Ln.textContent,f=u.length;for(e=0;e<i&&t[e]===u[e];e++);var y=i-e;for(o=1;o<=y&&t[i-o]===u[f-o];o++);return hl=u.slice(e,1<o?1-o:void 0)}function ml(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pl(){return!0}function Kd(){return!1}function gt(e){function t(i,o,u,f,y){this._reactName=i,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(i=e[b],this[b]=i?i(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?pl:Kd,this.isPropagationStopped=Kd,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),t}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gl=gt(ma),Ki=x({},ma,{view:0,detail:0}),bb=gt(Ki),Tr,wr,Pi,yl=x({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pi&&(Pi&&e.type==="mousemove"?(Tr=e.screenX-Pi.screenX,wr=e.screenY-Pi.screenY):wr=Tr=0,Pi=e),Tr)},movementY:function(e){return"movementY"in e?e.movementY:wr}}),Pd=gt(yl),Sb=x({},yl,{dataTransfer:0}),Tb=gt(Sb),wb=x({},Ki,{relatedTarget:0}),Cr=gt(wb),Cb=x({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Eb=gt(Cb),jb=x({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ab=gt(jb),Nb=x({},ma,{data:0}),Xd=gt(Nb),Rb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mb={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"},Ob={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Db(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ob[e])?!!t[e]:!1}function Er(){return Db}var _b=x({},Ki,{key:function(e){if(e.key){var t=Rb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return e.type==="keypress"?ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lb=gt(_b),kb=x({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=gt(kb),zb=x({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er}),Vb=gt(zb),Ub=x({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bb=gt(Ub),Hb=x({},yl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qb=gt(Hb),Gb=x({},ma,{newState:0,oldState:0}),Yb=gt(Gb),Kb=[9,13,27,32],jr=fn&&"CompositionEvent"in window,Xi=null;fn&&"documentMode"in document&&(Xi=document.documentMode);var Pb=fn&&"TextEvent"in window&&!Xi,$d=fn&&(!jr||Xi&&8<Xi&&11>=Xi),Qd=" ",Zd=!1;function Jd(e,t){switch(e){case"keyup":return Kb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xa=!1;function Xb(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Zd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Zd?null:e;default:return null}}function Fb(e,t){if(Xa)return e==="compositionend"||!jr&&Jd(e,t)?(e=Yd(),hl=Sr=Ln=null,Xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $d&&t.locale!=="ko"?null:t.data;default:return null}}var $b={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 Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$b[e.type]:t==="textarea"}function eh(e,t,i,o){Ka?Pa?Pa.push(o):Pa=[o]:Ka=o,t=lo(t,"onChange"),0<t.length&&(i=new gl("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Fi=null,$i=null;function Qb(e){zp(e,0)}function xl(e){var t=qi(e);if(kd(t))return e}function th(e,t){if(e==="change")return t}var nh=!1;if(fn){var Ar;if(fn){var Nr="oninput"in document;if(!Nr){var ah=document.createElement("div");ah.setAttribute("oninput","return;"),Nr=typeof ah.oninput=="function"}Ar=Nr}else Ar=!1;nh=Ar&&(!document.documentMode||9<document.documentMode)}function ih(){Fi&&(Fi.detachEvent("onpropertychange",sh),$i=Fi=null)}function sh(e){if(e.propertyName==="value"&&xl($i)){var t=[];eh(t,$i,e,xr(e)),Gd(Qb,t)}}function Zb(e,t,i){e==="focusin"?(ih(),Fi=t,$i=i,Fi.attachEvent("onpropertychange",sh)):e==="focusout"&&ih()}function Jb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl($i)}function Wb(e,t){if(e==="click")return xl(t)}function Ib(e,t){if(e==="input"||e==="change")return xl(t)}function e1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:e1;function Qi(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var u=i[o];if(!sr.call(t,u)||!Et(e[u],t[u]))return!1}return!0}function lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oh(e,t){var i=lh(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=t&&o>=t)return{node:i,offset:t-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=lh(i)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fl(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=fl(e.document)}return t}function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var t1=fn&&"documentMode"in document&&11>=document.documentMode,Fa=null,Mr=null,Zi=null,Or=!1;function ch(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Or||Fa==null||Fa!==fl(o)||(o=Fa,"selectionStart"in o&&Rr(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Zi&&Qi(Zi,o)||(Zi=o,o=lo(Mr,"onSelect"),0<o.length&&(t=new gl("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=Fa)))}function pa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var $a={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Dr={},fh={};fn&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function ga(e){if(Dr[e])return Dr[e];if(!$a[e])return e;var t=$a[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in fh)return Dr[e]=t[i];return e}var dh=ga("animationend"),hh=ga("animationiteration"),mh=ga("animationstart"),n1=ga("transitionrun"),a1=ga("transitionstart"),i1=ga("transitioncancel"),ph=ga("transitionend"),gh=new Map,_r="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(" ");_r.push("scrollEnd");function Qt(e,t){gh.set(e,t),ha(t,[e])}var vl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vt=[],Qa=0,Lr=0;function bl(){for(var e=Qa,t=Lr=Qa=0;t<e;){var i=Vt[t];Vt[t++]=null;var o=Vt[t];Vt[t++]=null;var u=Vt[t];Vt[t++]=null;var f=Vt[t];if(Vt[t++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}f!==0&&yh(i,u,f)}}function Sl(e,t,i,o){Vt[Qa++]=e,Vt[Qa++]=t,Vt[Qa++]=i,Vt[Qa++]=o,Lr|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function kr(e,t,i,o){return Sl(e,t,i,o),Tl(e)}function ya(e,t){return Sl(e,null,null,t),Tl(e)}function yh(e,t,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var u=!1,f=e.return;f!==null;)f.childLanes|=i,o=f.alternate,o!==null&&(o.childLanes|=i),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-Ct(i),e=f.hiddenUpdates,o=e[u],o===null?e[u]=[t]:o.push(t),t.lane=i|536870912),f):null}function Tl(e){if(50<xs)throw xs=0,Ku=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function s1(e,t,i,o){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,i,o){return new s1(e,t,i,o)}function zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dn(e,t){var i=e.alternate;return i===null?(i=jt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function xh(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wl(e,t,i,o,u,f){var y=0;if(o=e,typeof e=="function")zr(e)&&(y=1);else if(typeof e=="string")y=cS(e,i,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=jt(31,i,t,u),e.elementType=$,e.lanes=f,e;case R:return xa(i.children,u,f,t);case N:y=8,u|=24;break;case _:return e=jt(12,i,t,u|2),e.elementType=_,e.lanes=f,e;case H:return e=jt(13,i,t,u),e.elementType=H,e.lanes=f,e;case Q:return e=jt(19,i,t,u),e.elementType=Q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:y=10;break e;case O:y=9;break e;case F:y=11;break e;case X:y=14;break e;case q:y=16,o=null;break e}y=29,i=Error(l(130,e===null?"null":typeof e,"")),o=null}return t=jt(y,i,t,u),t.elementType=e,t.type=o,t.lanes=f,t}function xa(e,t,i,o){return e=jt(7,e,o,t),e.lanes=i,e}function Vr(e,t,i){return e=jt(6,e,null,t),e.lanes=i,e}function vh(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function Ur(e,t,i){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bh=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var i=bh.get(e);return i!==void 0?i:(t={value:e,source:t,stack:vd(t)},bh.set(e,t),t)}return{value:e,source:t,stack:vd(t)}}var Ja=[],Wa=0,Cl=null,Ji=0,Bt=[],Ht=0,kn=null,tn=1,nn="";function hn(e,t){Ja[Wa++]=Ji,Ja[Wa++]=Cl,Cl=e,Ji=t}function Sh(e,t,i){Bt[Ht++]=tn,Bt[Ht++]=nn,Bt[Ht++]=kn,kn=e;var o=tn;e=nn;var u=32-Ct(o)-1;o&=~(1<<u),i+=1;var f=32-Ct(t)+u;if(30<f){var y=u-u%5;f=(o&(1<<y)-1).toString(32),o>>=y,u-=y,tn=1<<32-Ct(t)+u|i<<u|o,nn=f+e}else tn=1<<f|i<<u|o,nn=e}function Br(e){e.return!==null&&(hn(e,1),Sh(e,1,0))}function Hr(e){for(;e===Cl;)Cl=Ja[--Wa],Ja[Wa]=null,Ji=Ja[--Wa],Ja[Wa]=null;for(;e===kn;)kn=Bt[--Ht],Bt[Ht]=null,nn=Bt[--Ht],Bt[Ht]=null,tn=Bt[--Ht],Bt[Ht]=null}function Th(e,t){Bt[Ht++]=tn,Bt[Ht++]=nn,Bt[Ht++]=kn,tn=t.id,nn=t.overflow,kn=e}var at=null,Le=null,Te=!1,zn=null,qt=!1,qr=Error(l(519));function Vn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wi(Ut(t,e)),qr}function wh(e){var t=e.stateNode,i=e.type,o=e.memoizedProps;switch(t[nt]=e,t[pt]=o,i){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(i=0;i<bs.length;i++)ve(bs[i],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),zd(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Ud(t,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||o.suppressHydrationWarning===!0||Hp(t.textContent,i)?(o.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),o.onScroll!=null&&ve("scroll",t),o.onScrollEnd!=null&&ve("scrollend",t),o.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Vn(e,!0)}function Ch(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:at=at.return}}function Ia(e){if(e!==at)return!1;if(!Te)return Ch(e),Te=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||sc(e.type,e.memoizedProps)),i=!i),i&&Le&&Vn(e),Ch(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Qp(e)}else t===27?(t=Le,Jn(e.type)?(e=cc,cc=null,Le=e):Le=t):Le=at?Yt(e.stateNode.nextSibling):null;return!0}function va(){Le=at=null,Te=!1}function Gr(){var e=zn;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),zn=null),e}function Wi(e){zn===null?zn=[e]:zn.push(e)}var Yr=E(null),ba=null,mn=null;function Un(e,t,i){W(Yr,t._currentValue),t._currentValue=i}function pn(e){e._currentValue=Yr.current,Y(Yr)}function Kr(e,t,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===i)break;e=e.return}}function Pr(e,t,i,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var y=u.child;f=f.firstContext;e:for(;f!==null;){var b=f;f=u;for(var C=0;C<t.length;C++)if(b.context===t[C]){f.lanes|=i,b=f.alternate,b!==null&&(b.lanes|=i),Kr(f.return,i,e),o||(y=null);break e}f=b.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(l(341));y.lanes|=i,f=y.alternate,f!==null&&(f.lanes|=i),Kr(y,i,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function ei(e,t,i,o){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var b=u.type;Et(u.pendingProps.value,y.value)||(e!==null?e.push(b):e=[b])}}else if(u===Ae.current){if(y=u.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Es):e=[Es])}u=u.return}e!==null&&Pr(t,e,i,o),t.flags|=262144}function El(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ba=e,mn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return Eh(ba,e)}function jl(e,t){return ba===null&&Sa(e),Eh(e,t)}function Eh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},mn===null){if(e===null)throw Error(l(308));mn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else mn=mn.next=t;return i}var l1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},o1=n.unstable_scheduleCallback,r1=n.unstable_NormalPriority,Fe={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xr(){return{controller:new l1,data:new Map,refCount:0}}function Ii(e){e.refCount--,e.refCount===0&&o1(r1,function(){e.controller.abort()})}var es=null,Fr=0,ti=0,ni=null;function u1(e,t){if(es===null){var i=es=[];Fr=0,ti=Zu(),ni={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Fr++,t.then(jh,jh),t}function jh(){if(--Fr===0&&es!==null){ni!==null&&(ni.status="fulfilled");var e=es;es=null,ti=0,ni=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function c1(e,t){var i=[],o={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(o.status="rejected",o.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),o}var Ah=D.S;D.S=function(e,t){cp=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&u1(e,t),Ah!==null&&Ah(e,t)};var Ta=E(null);function $r(){var e=Ta.current;return e!==null?e:_e.pooledCache}function Al(e,t){t===null?W(Ta,Ta.current):W(Ta,t.pool)}function Nh(){var e=$r();return e===null?null:{parent:Fe._currentValue,pool:e}}var ai=Error(l(460)),Qr=Error(l(474)),Nl=Error(l(542)),Rl={then:function(){}};function Rh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(cn,cn),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Dh(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=o}},function(o){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Dh(e),e}throw Ca=t,ai}}function wa(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ca=i,ai):i}}var Ca=null;function Oh(){if(Ca===null)throw Error(l(459));var e=Ca;return Ca=null,e}function Dh(e){if(e===ai||e===Nl)throw Error(l(483))}var ii=null,ts=0;function Ml(e){var t=ts;return ts+=1,ii===null&&(ii=[]),Mh(ii,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ol(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _h(e){function t(M,A){if(e){var L=M.deletions;L===null?(M.deletions=[A],M.flags|=16):L.push(A)}}function i(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function o(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function u(M,A){return M=dn(M,A),M.index=0,M.sibling=null,M}function f(M,A,L){return M.index=L,e?(L=M.alternate,L!==null?(L=L.index,L<A?(M.flags|=67108866,A):L):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function y(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,A,L,K){return A===null||A.tag!==6?(A=Vr(L,M.mode,K),A.return=M,A):(A=u(A,L),A.return=M,A)}function C(M,A,L,K){var se=L.type;return se===R?G(M,A,L.props.children,K,L.key):A!==null&&(A.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===q&&wa(se)===A.type)?(A=u(A,L.props),ns(A,L),A.return=M,A):(A=wl(L.type,L.key,L.props,null,M.mode,K),ns(A,L),A.return=M,A)}function k(M,A,L,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==L.containerInfo||A.stateNode.implementation!==L.implementation?(A=Ur(L,M.mode,K),A.return=M,A):(A=u(A,L.children||[]),A.return=M,A)}function G(M,A,L,K,se){return A===null||A.tag!==7?(A=xa(L,M.mode,K,se),A.return=M,A):(A=u(A,L),A.return=M,A)}function P(M,A,L){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Vr(""+A,M.mode,L),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return L=wl(A.type,A.key,A.props,null,M.mode,L),ns(L,A),L.return=M,L;case j:return A=Ur(A,M.mode,L),A.return=M,A;case q:return A=wa(A),P(M,A,L)}if(ie(A)||de(A))return A=xa(A,M.mode,L,null),A.return=M,A;if(typeof A.then=="function")return P(M,Ml(A),L);if(A.$$typeof===z)return P(M,jl(M,A),L);Ol(M,A)}return null}function V(M,A,L,K){var se=A!==null?A.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return se!==null?null:b(M,A,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return L.key===se?C(M,A,L,K):null;case j:return L.key===se?k(M,A,L,K):null;case q:return L=wa(L),V(M,A,L,K)}if(ie(L)||de(L))return se!==null?null:G(M,A,L,K,null);if(typeof L.then=="function")return V(M,A,Ml(L),K);if(L.$$typeof===z)return V(M,A,jl(M,L),K);Ol(M,L)}return null}function U(M,A,L,K,se){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(L)||null,b(A,M,""+K,se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return M=M.get(K.key===null?L:K.key)||null,C(A,M,K,se);case j:return M=M.get(K.key===null?L:K.key)||null,k(A,M,K,se);case q:return K=wa(K),U(M,A,L,K,se)}if(ie(K)||de(K))return M=M.get(L)||null,G(A,M,K,se,null);if(typeof K.then=="function")return U(M,A,L,Ml(K),se);if(K.$$typeof===z)return U(M,A,L,jl(A,K),se);Ol(A,K)}return null}function ne(M,A,L,K){for(var se=null,Ce=null,ae=A,ge=A=0,Se=null;ae!==null&&ge<L.length;ge++){ae.index>ge?(Se=ae,ae=null):Se=ae.sibling;var Ee=V(M,ae,L[ge],K);if(Ee===null){ae===null&&(ae=Se);break}e&&ae&&Ee.alternate===null&&t(M,ae),A=f(Ee,A,ge),Ce===null?se=Ee:Ce.sibling=Ee,Ce=Ee,ae=Se}if(ge===L.length)return i(M,ae),Te&&hn(M,ge),se;if(ae===null){for(;ge<L.length;ge++)ae=P(M,L[ge],K),ae!==null&&(A=f(ae,A,ge),Ce===null?se=ae:Ce.sibling=ae,Ce=ae);return Te&&hn(M,ge),se}for(ae=o(ae);ge<L.length;ge++)Se=U(ae,M,ge,L[ge],K),Se!==null&&(e&&Se.alternate!==null&&ae.delete(Se.key===null?ge:Se.key),A=f(Se,A,ge),Ce===null?se=Se:Ce.sibling=Se,Ce=Se);return e&&ae.forEach(function(na){return t(M,na)}),Te&&hn(M,ge),se}function le(M,A,L,K){if(L==null)throw Error(l(151));for(var se=null,Ce=null,ae=A,ge=A=0,Se=null,Ee=L.next();ae!==null&&!Ee.done;ge++,Ee=L.next()){ae.index>ge?(Se=ae,ae=null):Se=ae.sibling;var na=V(M,ae,Ee.value,K);if(na===null){ae===null&&(ae=Se);break}e&&ae&&na.alternate===null&&t(M,ae),A=f(na,A,ge),Ce===null?se=na:Ce.sibling=na,Ce=na,ae=Se}if(Ee.done)return i(M,ae),Te&&hn(M,ge),se;if(ae===null){for(;!Ee.done;ge++,Ee=L.next())Ee=P(M,Ee.value,K),Ee!==null&&(A=f(Ee,A,ge),Ce===null?se=Ee:Ce.sibling=Ee,Ce=Ee);return Te&&hn(M,ge),se}for(ae=o(ae);!Ee.done;ge++,Ee=L.next())Ee=U(ae,M,ge,Ee.value,K),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?ge:Ee.key),A=f(Ee,A,ge),Ce===null?se=Ee:Ce.sibling=Ee,Ce=Ee);return e&&ae.forEach(function(SS){return t(M,SS)}),Te&&hn(M,ge),se}function De(M,A,L,K){if(typeof L=="object"&&L!==null&&L.type===R&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var se=L.key;A!==null;){if(A.key===se){if(se=L.type,se===R){if(A.tag===7){i(M,A.sibling),K=u(A,L.props.children),K.return=M,M=K;break e}}else if(A.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===q&&wa(se)===A.type){i(M,A.sibling),K=u(A,L.props),ns(K,L),K.return=M,M=K;break e}i(M,A);break}else t(M,A);A=A.sibling}L.type===R?(K=xa(L.props.children,M.mode,K,L.key),K.return=M,M=K):(K=wl(L.type,L.key,L.props,null,M.mode,K),ns(K,L),K.return=M,M=K)}return y(M);case j:e:{for(se=L.key;A!==null;){if(A.key===se)if(A.tag===4&&A.stateNode.containerInfo===L.containerInfo&&A.stateNode.implementation===L.implementation){i(M,A.sibling),K=u(A,L.children||[]),K.return=M,M=K;break e}else{i(M,A);break}else t(M,A);A=A.sibling}K=Ur(L,M.mode,K),K.return=M,M=K}return y(M);case q:return L=wa(L),De(M,A,L,K)}if(ie(L))return ne(M,A,L,K);if(de(L)){if(se=de(L),typeof se!="function")throw Error(l(150));return L=se.call(L),le(M,A,L,K)}if(typeof L.then=="function")return De(M,A,Ml(L),K);if(L.$$typeof===z)return De(M,A,jl(M,L),K);Ol(M,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,A!==null&&A.tag===6?(i(M,A.sibling),K=u(A,L),K.return=M,M=K):(i(M,A),K=Vr(L,M.mode,K),K.return=M,M=K),y(M)):i(M,A)}return function(M,A,L,K){try{ts=0;var se=De(M,A,L,K);return ii=null,se}catch(ae){if(ae===ai||ae===Nl)throw ae;var Ce=jt(29,ae,null,M.mode);return Ce.lanes=K,Ce.return=M,Ce}}}var Ea=_h(!0),Lh=_h(!1),Bn=!1;function Zr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qn(e,t,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(je&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=Tl(e),yh(e,null,i),t}return Sl(e,o,t,i),Tl(e)}function as(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Ed(e,i)}}function Wr(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var u=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?u=f=y:f=f.next=y,i=i.next}while(i!==null);f===null?u=f=t:f=f.next=t}else u=f=t;i={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Ir=!1;function is(){if(Ir){var e=ni;if(e!==null)throw e}}function ss(e,t,i,o){Ir=!1;var u=e.updateQueue;Bn=!1;var f=u.firstBaseUpdate,y=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var C=b,k=C.next;C.next=null,y===null?f=k:y.next=k,y=C;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==y&&(b===null?G.firstBaseUpdate=k:b.next=k,G.lastBaseUpdate=C))}if(f!==null){var P=u.baseState;y=0,G=k=C=null,b=f;do{var V=b.lane&-536870913,U=V!==b.lane;if(U?(be&V)===V:(o&V)===V){V!==0&&V===ti&&(Ir=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,le=b;V=t;var De=i;switch(le.tag){case 1:if(ne=le.payload,typeof ne=="function"){P=ne.call(De,P,V);break e}P=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=le.payload,V=typeof ne=="function"?ne.call(De,P,V):ne,V==null)break e;P=x({},P,V);break e;case 2:Bn=!0}}V=b.callback,V!==null&&(e.flags|=64,U&&(e.flags|=8192),U=u.callbacks,U===null?u.callbacks=[V]:U.push(V))}else U={lane:V,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(k=G=U,C=P):G=G.next=U,y|=V;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;U=b,b=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);G===null&&(C=P),u.baseState=C,u.firstBaseUpdate=k,u.lastBaseUpdate=G,f===null&&(u.shared.lanes=0),Xn|=y,e.lanes=y,e.memoizedState=P}}function kh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function zh(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)kh(i[e],t)}var si=E(null),Dl=E(0);function Vh(e,t){e=Cn,W(Dl,e),W(si,t),Cn=e|t.baseLanes}function eu(){W(Dl,Cn),W(si,si.current)}function tu(){Cn=Dl.current,Y(si),Y(Dl)}var At=E(null),Gt=null;function Gn(e){var t=e.alternate;W(Pe,Pe.current&1),W(At,e),Gt===null&&(t===null||si.current!==null||t.memoizedState!==null)&&(Gt=e)}function nu(e){W(Pe,Pe.current),W(At,e),Gt===null&&(Gt=e)}function Uh(e){e.tag===22?(W(Pe,Pe.current),W(At,e),Gt===null&&(Gt=e)):Yn()}function Yn(){W(Pe,Pe.current),W(At,At.current)}function Nt(e){Y(At),Gt===e&&(Gt=null),Y(Pe)}var Pe=E(0);function _l(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||rc(i)||uc(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gn=0,pe=null,Me=null,$e=null,Ll=!1,li=!1,ja=!1,kl=0,ls=0,oi=null,f1=0;function qe(){throw Error(l(321))}function au(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Et(e[i],t[i]))return!1;return!0}function iu(e,t,i,o,u,f){return gn=f,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Sm:vu,ja=!1,f=i(o,u),ja=!1,li&&(f=Hh(t,i,o,u)),Bh(e),f}function Bh(e){D.H=us;var t=Me!==null&&Me.next!==null;if(gn=0,$e=Me=pe=null,Ll=!1,ls=0,oi=null,t)throw Error(l(300));e===null||Qe||(e=e.dependencies,e!==null&&El(e)&&(Qe=!0))}function Hh(e,t,i,o){pe=e;var u=0;do{if(li&&(oi=null),ls=0,li=!1,25<=u)throw Error(l(301));if(u+=1,$e=Me=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}D.H=Tm,f=t(i,o)}while(li);return f}function d1(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(pe.flags|=1024),t}function su(){var e=kl!==0;return kl=0,e}function lu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function ou(e){if(Ll){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ll=!1}gn=0,$e=Me=pe=null,li=!1,ls=kl=0,oi=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?pe.memoizedState=$e=e:$e=$e.next=e,$e}function Xe(){if(Me===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=$e===null?pe.memoizedState:$e.next;if(t!==null)$e=t,Me=e;else{if(e===null)throw pe.alternate===null?Error(l(467)):Error(l(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},$e===null?pe.memoizedState=$e=e:$e=$e.next=e}return $e}function zl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=ls;return ls+=1,oi===null&&(oi=[]),e=Mh(oi,e,t),t=pe,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Sm:vu),e}function Vl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===z)return it(e)}throw Error(l(438,String(e)))}function ru(e){var t=null,i=pe.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var o=pe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=zl(),pe.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),o=0;o<e;o++)i[o]=Z;return t.index++,i}function yn(e,t){return typeof t=="function"?t(e):t}function Ul(e){var t=Xe();return uu(t,Me,e)}function uu(e,t,i){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=i;var u=e.baseQueue,f=o.pending;if(f!==null){if(u!==null){var y=u.next;u.next=f.next,f.next=y}t.baseQueue=u=f,o.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var b=y=null,C=null,k=t,G=!1;do{var P=k.lane&-536870913;if(P!==k.lane?(be&P)===P:(gn&P)===P){var V=k.revertLane;if(V===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),P===ti&&(G=!0);else if((gn&V)===V){k=k.next,V===ti&&(G=!0);continue}else P={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=P,y=f):C=C.next=P,pe.lanes|=V,Xn|=V;P=k.action,ja&&i(f,P),f=k.hasEagerState?k.eagerState:i(f,P)}else V={lane:P,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=V,y=f):C=C.next=V,pe.lanes|=P,Xn|=P;k=k.next}while(k!==null&&k!==t);if(C===null?y=f:C.next=b,!Et(f,e.memoizedState)&&(Qe=!0,G&&(i=ni,i!==null)))throw i;e.memoizedState=f,e.baseState=y,e.baseQueue=C,o.lastRenderedState=f}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function cu(e){var t=Xe(),i=t.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var o=i.dispatch,u=i.pending,f=t.memoizedState;if(u!==null){i.pending=null;var y=u=u.next;do f=e(f,y.action),y=y.next;while(y!==u);Et(f,t.memoizedState)||(Qe=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),i.lastRenderedState=f}return[f,o]}function qh(e,t,i){var o=pe,u=Xe(),f=Te;if(f){if(i===void 0)throw Error(l(407));i=i()}else i=t();var y=!Et((Me||u).memoizedState,i);if(y&&(u.memoizedState=i,Qe=!0),u=u.queue,hu(Kh.bind(null,o,u,e),[e]),u.getSnapshot!==t||y||$e!==null&&$e.memoizedState.tag&1){if(o.flags|=2048,ri(9,{destroy:void 0},Yh.bind(null,o,u,i,t),null),_e===null)throw Error(l(349));f||(gn&127)!==0||Gh(o,t,i)}return i}function Gh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=pe.updateQueue,t===null?(t=zl(),pe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Yh(e,t,i,o){t.value=i,t.getSnapshot=o,Ph(t)&&Xh(e)}function Kh(e,t,i){return i(function(){Ph(t)&&Xh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Et(e,i)}catch{return!0}}function Xh(e){var t=ya(e,2);t!==null&&St(t,e,2)}function fu(e){var t=ft();if(typeof e=="function"){var i=e;if(e=i(),ja){Dn(!0);try{i()}finally{Dn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},t}function Fh(e,t,i,o){return e.baseState=i,uu(e,Me,typeof o=="function"?o:yn)}function h1(e,t,i,o,u){if(ql(e))throw Error(l(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};D.T!==null?i(!0):f.isTransition=!1,o(f),i=t.pending,i===null?(f.next=t.pending=f,$h(t,f)):(f.next=i.next,t.pending=i.next=f)}}function $h(e,t){var i=t.action,o=t.payload,u=e.state;if(t.isTransition){var f=D.T,y={};D.T=y;try{var b=i(u,o),C=D.S;C!==null&&C(y,b),Qh(e,t,b)}catch(k){du(e,t,k)}finally{f!==null&&y.types!==null&&(f.types=y.types),D.T=f}}else try{f=i(u,o),Qh(e,t,f)}catch(k){du(e,t,k)}}function Qh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Zh(e,t,o)},function(o){return du(e,t,o)}):Zh(e,t,i)}function Zh(e,t,i){t.status="fulfilled",t.value=i,Jh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,$h(e,i)))}function du(e,t,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=i,Jh(t),t=t.next;while(t!==o)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wh(e,t){return t}function Ih(e,t){if(Te){var i=_e.formState;if(i!==null){e:{var o=pe;if(Te){if(Le){t:{for(var u=Le,f=qt;u.nodeType!==8;){if(!f){u=null;break t}if(u=Yt(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Le=Yt(u.nextSibling),o=u.data==="F!";break e}}Vn(o)}o=!1}o&&(t=i[0])}}return i=ft(),i.memoizedState=i.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:t},i.queue=o,i=xm.bind(null,pe,o),o.dispatch=i,o=fu(!1),f=xu.bind(null,pe,!1,o.queue),o=ft(),u={state:t,dispatch:null,action:e,pending:null},o.queue=u,i=h1.bind(null,pe,u,f,i),u.dispatch=i,o.memoizedState=e,[t,i,!1]}function em(e){var t=Xe();return tm(t,Me,e)}function tm(e,t,i){if(t=uu(e,t,Wh)[0],e=Ul(yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=os(t)}catch(y){throw y===ai?Nl:y}else o=t;t=Xe();var u=t.queue,f=u.dispatch;return i!==t.memoizedState&&(pe.flags|=2048,ri(9,{destroy:void 0},m1.bind(null,u,i),null)),[o,f,e]}function m1(e,t){e.action=t}function nm(e){var t=Xe(),i=Me;if(i!==null)return tm(t,i,e);Xe(),t=t.memoizedState,i=Xe();var o=i.queue.dispatch;return i.memoizedState=e,[t,o,!1]}function ri(e,t,i,o){return e={tag:e,create:i,deps:o,inst:t,next:null},t=pe.updateQueue,t===null&&(t=zl(),pe.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,t.lastEffect=e),e}function am(){return Xe().memoizedState}function Bl(e,t,i,o){var u=ft();pe.flags|=e,u.memoizedState=ri(1|t,{destroy:void 0},i,o===void 0?null:o)}function Hl(e,t,i,o){var u=Xe();o=o===void 0?null:o;var f=u.memoizedState.inst;Me!==null&&o!==null&&au(o,Me.memoizedState.deps)?u.memoizedState=ri(t,f,i,o):(pe.flags|=e,u.memoizedState=ri(1|t,f,i,o))}function im(e,t){Bl(8390656,8,e,t)}function hu(e,t){Hl(2048,8,e,t)}function p1(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=zl(),pe.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function sm(e){var t=Xe().memoizedState;return p1({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function lm(e,t){return Hl(4,2,e,t)}function om(e,t){return Hl(4,4,e,t)}function rm(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function um(e,t,i){i=i!=null?i.concat([e]):null,Hl(4,4,rm.bind(null,t,e),i)}function mu(){}function cm(e,t){var i=Xe();t=t===void 0?null:t;var o=i.memoizedState;return t!==null&&au(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function fm(e,t){var i=Xe();t=t===void 0?null:t;var o=i.memoizedState;if(t!==null&&au(t,o[1]))return o[0];if(o=e(),ja){Dn(!0);try{e()}finally{Dn(!1)}}return i.memoizedState=[o,t],o}function pu(e,t,i){return i===void 0||(gn&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=dp(),pe.lanes|=e,Xn|=e,i)}function dm(e,t,i,o){return Et(i,t)?i:si.current!==null?(e=pu(e,i,o),Et(e,t)||(Qe=!0),e):(gn&42)===0||(gn&1073741824)!==0&&(be&261930)===0?(Qe=!0,e.memoizedState=i):(e=dp(),pe.lanes|=e,Xn|=e,t)}function hm(e,t,i,o,u){var f=B.p;B.p=f!==0&&8>f?f:8;var y=D.T,b={};D.T=b,xu(e,!1,t,i);try{var C=u(),k=D.S;if(k!==null&&k(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var G=c1(C,o);rs(e,t,G,Ot(e))}else rs(e,t,o,Ot(e))}catch(P){rs(e,t,{then:function(){},status:"rejected",reason:P},Ot())}finally{B.p=f,y!==null&&b.types!==null&&(y.types=b.types),D.T=y}}function g1(){}function gu(e,t,i,o){if(e.tag!==5)throw Error(l(476));var u=mm(e).queue;hm(e,u,t,J,i===null?g1:function(){return pm(e),i(o)})}function mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:J},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pm(e){var t=mm(e);t.next===null&&(t=e.alternate.memoizedState),rs(e,t.next.queue,{},Ot())}function yu(){return it(Es)}function gm(){return Xe().memoizedState}function ym(){return Xe().memoizedState}function y1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Ot();e=Hn(i);var o=qn(t,e,i);o!==null&&(St(o,t,i),as(o,t,i)),t={cache:Xr()},e.payload=t;return}t=t.return}}function x1(e,t,i){var o=Ot();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ql(e)?vm(t,i):(i=kr(e,t,i,o),i!==null&&(St(i,e,o),bm(i,t,o)))}function xm(e,t,i){var o=Ot();rs(e,t,i,o)}function rs(e,t,i,o){var u={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ql(e))vm(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var y=t.lastRenderedState,b=f(y,i);if(u.hasEagerState=!0,u.eagerState=b,Et(b,y))return Sl(e,t,u,0),_e===null&&bl(),!1}catch{}if(i=kr(e,t,u,o),i!==null)return St(i,e,o),bm(i,t,o),!0}return!1}function xu(e,t,i,o){if(o={lane:2,revertLane:Zu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ql(e)){if(t)throw Error(l(479))}else t=kr(e,i,o,2),t!==null&&St(t,e,2)}function ql(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function vm(e,t){li=Ll=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function bm(e,t,i){if((i&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Ed(e,i)}}var us={readContext:it,use:Vl,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};us.useEffectEvent=qe;var Sm={readContext:it,use:Vl,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:im,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,Bl(4194308,4,rm.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){Bl(4,2,e,t)},useMemo:function(e,t){var i=ft();t=t===void 0?null:t;var o=e();if(ja){Dn(!0);try{e()}finally{Dn(!1)}}return i.memoizedState=[o,t],o},useReducer:function(e,t,i){var o=ft();if(i!==void 0){var u=i(t);if(ja){Dn(!0);try{i(t)}finally{Dn(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=x1.bind(null,pe,e),[o.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=fu(e);var t=e.queue,i=xm.bind(null,pe,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:mu,useDeferredValue:function(e,t){var i=ft();return pu(i,e,t)},useTransition:function(){var e=fu(!1);return e=hm.bind(null,pe,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var o=pe,u=ft();if(Te){if(i===void 0)throw Error(l(407));i=i()}else{if(i=t(),_e===null)throw Error(l(349));(be&127)!==0||Gh(o,t,i)}u.memoizedState=i;var f={value:i,getSnapshot:t};return u.queue=f,im(Kh.bind(null,o,f,e),[e]),o.flags|=2048,ri(9,{destroy:void 0},Yh.bind(null,o,f,i,t),null),i},useId:function(){var e=ft(),t=_e.identifierPrefix;if(Te){var i=nn,o=tn;i=(o&~(1<<32-Ct(o)-1)).toString(32)+i,t="_"+t+"R_"+i,i=kl++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=f1++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yu,useFormState:Ih,useActionState:Ih,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=xu.bind(null,pe,!0,i),i.dispatch=t,[e,t]},useMemoCache:ru,useCacheRefresh:function(){return ft().memoizedState=y1.bind(null,pe)},useEffectEvent:function(e){var t=ft(),i={impl:e};return t.memoizedState=i,function(){if((je&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},vu={readContext:it,use:Vl,useCallback:cm,useContext:it,useEffect:hu,useImperativeHandle:um,useInsertionEffect:lm,useLayoutEffect:om,useMemo:fm,useReducer:Ul,useRef:am,useState:function(){return Ul(yn)},useDebugValue:mu,useDeferredValue:function(e,t){var i=Xe();return dm(i,Me.memoizedState,e,t)},useTransition:function(){var e=Ul(yn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:qh,useId:gm,useHostTransitionStatus:yu,useFormState:em,useActionState:em,useOptimistic:function(e,t){var i=Xe();return Fh(i,Me,e,t)},useMemoCache:ru,useCacheRefresh:ym};vu.useEffectEvent=sm;var Tm={readContext:it,use:Vl,useCallback:cm,useContext:it,useEffect:hu,useImperativeHandle:um,useInsertionEffect:lm,useLayoutEffect:om,useMemo:fm,useReducer:cu,useRef:am,useState:function(){return cu(yn)},useDebugValue:mu,useDeferredValue:function(e,t){var i=Xe();return Me===null?pu(i,e,t):dm(i,Me.memoizedState,e,t)},useTransition:function(){var e=cu(yn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:qh,useId:gm,useHostTransitionStatus:yu,useFormState:nm,useActionState:nm,useOptimistic:function(e,t){var i=Xe();return Me!==null?Fh(i,Me,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:ru,useCacheRefresh:ym};Tm.useEffectEvent=sm;function bu(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:x({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Su={enqueueSetState:function(e,t,i){e=e._reactInternals;var o=Ot(),u=Hn(o);u.payload=t,i!=null&&(u.callback=i),t=qn(e,u,o),t!==null&&(St(t,e,o),as(t,e,o))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=Ot(),u=Hn(o);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=qn(e,u,o),t!==null&&(St(t,e,o),as(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Ot(),o=Hn(i);o.tag=2,t!=null&&(o.callback=t),t=qn(e,o,i),t!==null&&(St(t,e,i),as(t,e,i))}};function wm(e,t,i,o,u,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,y):t.prototype&&t.prototype.isPureReactComponent?!Qi(i,o)||!Qi(u,f):!0}function Cm(e,t,i,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==e&&Su.enqueueReplaceState(t,t.state,null)}function Aa(e,t){var i=t;if("ref"in t){i={};for(var o in t)o!=="ref"&&(i[o]=t[o])}if(e=e.defaultProps){i===t&&(i=x({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function Em(e){vl(e)}function jm(e){console.error(e)}function Am(e){vl(e)}function Gl(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Nm(e,t,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Tu(e,t,i){return i=Hn(i),i.tag=3,i.payload={element:null},i.callback=function(){Gl(e,t)},i}function Rm(e){return e=Hn(e),e.tag=3,e}function Mm(e,t,i,o){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){Nm(t,i,o)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Nm(t,i,o),typeof u!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function v1(e,t,i,o,u){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=i.alternate,t!==null&&ei(t,i,u,!0),i=At.current,i!==null){switch(i.tag){case 31:case 13:return Gt===null?eo():i.alternate===null&&Ge===0&&(Ge=3),i.flags&=-257,i.flags|=65536,i.lanes=u,o===Rl?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([o]):t.add(o),Fu(e,o,u)),!1;case 22:return i.flags|=65536,o===Rl?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([o]):i.add(o)),Fu(e,o,u)),!1}throw Error(l(435,i.tag))}return Fu(e,o,u),eo(),!1}if(Te)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,o!==qr&&(e=Error(l(422),{cause:o}),Wi(Ut(e,i)))):(o!==qr&&(t=Error(l(423),{cause:o}),Wi(Ut(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=Ut(o,i),u=Tu(e.stateNode,o,u),Wr(e,u),Ge!==4&&(Ge=2)),!1;var f=Error(l(520),{cause:o});if(f=Ut(f,i),ys===null?ys=[f]:ys.push(f),Ge!==4&&(Ge=2),t===null)return!0;o=Ut(o,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=Tu(i.stateNode,o,e),Wr(i,e),!1;case 1:if(t=i.type,f=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Fn===null||!Fn.has(f))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Rm(u),Mm(u,e,i,o),Wr(i,u),!1}i=i.return}while(i!==null);return!1}var wu=Error(l(461)),Qe=!1;function st(e,t,i,o){t.child=e===null?Lh(t,null,i,o):Ea(t,e.child,i,o)}function Om(e,t,i,o,u){i=i.render;var f=t.ref;if("ref"in o){var y={};for(var b in o)b!=="ref"&&(y[b]=o[b])}else y=o;return Sa(t),o=iu(e,t,i,y,f,u),b=su(),e!==null&&!Qe?(lu(e,t,u),xn(e,t,u)):(Te&&b&&Br(t),t.flags|=1,st(e,t,o,u),t.child)}function Dm(e,t,i,o,u){if(e===null){var f=i.type;return typeof f=="function"&&!zr(f)&&f.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=f,_m(e,t,f,o,u)):(e=wl(i.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ou(e,u)){var y=f.memoizedProps;if(i=i.compare,i=i!==null?i:Qi,i(y,o)&&e.ref===t.ref)return xn(e,t,u)}return t.flags|=1,e=dn(f,o),e.ref=t.ref,e.return=t,t.child=e}function _m(e,t,i,o,u){if(e!==null){var f=e.memoizedProps;if(Qi(f,o)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=o=f,Ou(e,u))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,xn(e,t,u)}return Cu(e,t,i,o,u)}function Lm(e,t,i,o){var u=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|i:i,e!==null){for(o=t.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~f}else o=0,t.child=null;return km(e,t,f,i,o)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(t,f!==null?f.cachePool:null),f!==null?Vh(t,f):eu(),Uh(t);else return o=t.lanes=536870912,km(e,t,f!==null?f.baseLanes|i:i,i,o)}else f!==null?(Al(t,f.cachePool),Vh(t,f),Yn(),t.memoizedState=null):(e!==null&&Al(t,null),eu(),Yn());return st(e,t,u,i),t.child}function cs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function km(e,t,i,o,u){var f=$r();return f=f===null?null:{parent:Fe._currentValue,pool:f},t.memoizedState={baseLanes:i,cachePool:f},e!==null&&Al(t,null),eu(),Uh(t),e!==null&&ei(e,t,o,!0),t.childLanes=u,null}function Yl(e,t){return t=Pl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zm(e,t,i){return Ea(t,e.child,null,i),e=Yl(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function b1(e,t,i){var o=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(o.mode==="hidden")return e=Yl(t,o),t.lanes=536870912,cs(null,e);if(nu(t),(e=Le)?(e=$p(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},i=vh(e),i.return=t,t.child=i,at=t,Le=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Yl(t,o)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(nu(t),u)if(t.flags&256)t.flags&=-257,t=zm(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Qe||ei(e,t,i,!1),u=(i&e.childLanes)!==0,Qe||u){if(o=_e,o!==null&&(y=jd(o,i),y!==0&&y!==f.retryLane))throw f.retryLane=y,ya(e,y),St(o,e,y),wu;eo(),t=zm(e,t,i)}else e=f.treeContext,Le=Yt(y.nextSibling),at=t,Te=!0,zn=null,qt=!1,e!==null&&Th(t,e),t=Yl(t,o),t.flags|=4096;return t}return e=dn(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Kl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Cu(e,t,i,o,u){return Sa(t),i=iu(e,t,i,o,void 0,u),o=su(),e!==null&&!Qe?(lu(e,t,u),xn(e,t,u)):(Te&&o&&Br(t),t.flags|=1,st(e,t,i,u),t.child)}function Vm(e,t,i,o,u,f){return Sa(t),t.updateQueue=null,i=Hh(t,o,i,u),Bh(e),o=su(),e!==null&&!Qe?(lu(e,t,f),xn(e,t,f)):(Te&&o&&Br(t),t.flags|=1,st(e,t,i,f),t.child)}function Um(e,t,i,o,u){if(Sa(t),t.stateNode===null){var f=Za,y=i.contextType;typeof y=="object"&&y!==null&&(f=it(y)),f=new i(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Su,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Zr(t),y=i.contextType,f.context=typeof y=="object"&&y!==null?it(y):Za,f.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(bu(t,i,y,o),f.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&Su.enqueueReplaceState(f,f.state,null),ss(t,o,f,u),is(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,C=Aa(i,b);f.props=C;var k=f.context,G=i.contextType;y=Za,typeof G=="object"&&G!==null&&(y=it(G));var P=i.getDerivedStateFromProps;G=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||k!==y)&&Cm(t,f,o,y),Bn=!1;var V=t.memoizedState;f.state=V,ss(t,o,f,u),is(),k=t.memoizedState,b||V!==k||Bn?(typeof P=="function"&&(bu(t,i,P,o),k=t.memoizedState),(C=Bn||wm(t,i,C,o,V,k,y))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=k),f.props=o,f.state=k,f.context=y,o=C):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Jr(e,t),y=t.memoizedProps,G=Aa(i,y),f.props=G,P=t.pendingProps,V=f.context,k=i.contextType,C=Za,typeof k=="object"&&k!==null&&(C=it(k)),b=i.getDerivedStateFromProps,(k=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==P||V!==C)&&Cm(t,f,o,C),Bn=!1,V=t.memoizedState,f.state=V,ss(t,o,f,u),is();var U=t.memoizedState;y!==P||V!==U||Bn||e!==null&&e.dependencies!==null&&El(e.dependencies)?(typeof b=="function"&&(bu(t,i,b,o),U=t.memoizedState),(G=Bn||wm(t,i,G,o,V,U,C)||e!==null&&e.dependencies!==null&&El(e.dependencies))?(k||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,U,C),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,U,C)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=U),f.props=o,f.state=U,f.context=C,o=G):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,Kl(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Ea(t,e.child,null,u),t.child=Ea(t,null,i,u)):st(e,t,i,u),t.memoizedState=f.state,e=t.child):e=xn(e,t,u),e}function Bm(e,t,i,o){return va(),t.flags|=256,st(e,t,i,o),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:Nh()}}function Au(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Mt),e}function Hm(e,t,i){var o=t.pendingProps,u=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),y&&(u=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(u?Gn(t):Yn(),(e=Le)?(e=$p(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},i=vh(e),i.return=t,t.child=i,at=t,Le=null)):e=null,e===null)throw Vn(t);return uc(e)?t.lanes=32:t.lanes=536870912,null}var b=o.children;return o=o.fallback,u?(Yn(),u=t.mode,b=Pl({mode:"hidden",children:b},u),o=xa(o,u,i,null),b.return=t,o.return=t,b.sibling=o,t.child=b,o=t.child,o.memoizedState=ju(i),o.childLanes=Au(e,y,i),t.memoizedState=Eu,cs(null,o)):(Gn(t),Nu(t,b))}var C=e.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(f)t.flags&256?(Gn(t),t.flags&=-257,t=Ru(e,t,i)):t.memoizedState!==null?(Yn(),t.child=e.child,t.flags|=128,t=null):(Yn(),b=o.fallback,u=t.mode,o=Pl({mode:"visible",children:o.children},u),b=xa(b,u,i,null),b.flags|=2,o.return=t,b.return=t,o.sibling=b,t.child=o,Ea(t,e.child,null,i),o=t.child,o.memoizedState=ju(i),o.childLanes=Au(e,y,i),t.memoizedState=Eu,t=cs(null,o));else if(Gn(t),uc(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var k=y.dgst;y=k,o=Error(l(419)),o.stack="",o.digest=y,Wi({value:o,source:null,stack:null}),t=Ru(e,t,i)}else if(Qe||ei(e,t,i,!1),y=(i&e.childLanes)!==0,Qe||y){if(y=_e,y!==null&&(o=jd(y,i),o!==0&&o!==C.retryLane))throw C.retryLane=o,ya(e,o),St(y,e,o),wu;rc(b)||eo(),t=Ru(e,t,i)}else rc(b)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Le=Yt(b.nextSibling),at=t,Te=!0,zn=null,qt=!1,e!==null&&Th(t,e),t=Nu(t,o.children),t.flags|=4096);return t}return u?(Yn(),b=o.fallback,u=t.mode,C=e.child,k=C.sibling,o=dn(C,{mode:"hidden",children:o.children}),o.subtreeFlags=C.subtreeFlags&65011712,k!==null?b=dn(k,b):(b=xa(b,u,i,null),b.flags|=2),b.return=t,o.return=t,o.sibling=b,t.child=o,cs(null,o),o=t.child,b=e.child.memoizedState,b===null?b=ju(i):(u=b.cachePool,u!==null?(C=Fe._currentValue,u=u.parent!==C?{parent:C,pool:C}:u):u=Nh(),b={baseLanes:b.baseLanes|i,cachePool:u}),o.memoizedState=b,o.childLanes=Au(e,y,i),t.memoizedState=Eu,cs(e.child,o)):(Gn(t),i=e.child,e=i.sibling,i=dn(i,{mode:"visible",children:o.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Nu(e,t){return t=Pl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pl(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function Ru(e,t,i){return Ea(t,e.child,null,i),e=Nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qm(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Kr(e.return,t,i)}function Mu(e,t,i,o,u,f){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:u,treeForkCount:f}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=i,y.tailMode=u,y.treeForkCount=f)}function Gm(e,t,i){var o=t.pendingProps,u=o.revealOrder,f=o.tail;o=o.children;var y=Pe.current,b=(y&2)!==0;if(b?(y=y&1|2,t.flags|=128):y&=1,W(Pe,y),st(e,t,o,i),o=Te?Ji:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qm(e,i,t);else if(e.tag===19)qm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&_l(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Mu(t,!1,u,i,f,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&_l(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Mu(t,!0,i,null,f,o);break;case"together":Mu(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function xn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(ei(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,i=dn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=dn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Ou(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&El(e)))}function S1(e,t,i){switch(t.tag){case 3:ct(t,t.stateNode.containerInfo),Un(t,Fe,e.memoizedState.cache),va();break;case 27:case 5:zi(t);break;case 4:ct(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nu(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Gn(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Hm(e,t,i):(Gn(t),e=xn(e,t,i),e!==null?e.sibling:null);Gn(t);break;case 19:var u=(e.flags&128)!==0;if(o=(i&t.childLanes)!==0,o||(ei(e,t,i,!1),o=(i&t.childLanes)!==0),u){if(o)return Gm(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),W(Pe,Pe.current),o)break;return null;case 22:return t.lanes=0,Lm(e,t,i,t.pendingProps);case 24:Un(t,Fe,e.memoizedState.cache)}return xn(e,t,i)}function Ym(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Ou(e,i)&&(t.flags&128)===0)return Qe=!1,S1(e,t,i);Qe=(e.flags&131072)!==0}else Qe=!1,Te&&(t.flags&1048576)!==0&&Sh(t,Ji,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e=="function")zr(e)?(o=Aa(e,o),t.tag=1,t=Um(null,t,e,o,i)):(t.tag=0,t=Cu(null,t,e,o,i));else{if(e!=null){var u=e.$$typeof;if(u===F){t.tag=11,t=Om(null,t,e,o,i);break e}else if(u===X){t.tag=14,t=Dm(null,t,e,o,i);break e}}throw t=oe(e)||e,Error(l(306,t,""))}}return t;case 0:return Cu(e,t,t.type,t.pendingProps,i);case 1:return o=t.type,u=Aa(o,t.pendingProps),Um(e,t,o,u,i);case 3:e:{if(ct(t,t.stateNode.containerInfo),e===null)throw Error(l(387));o=t.pendingProps;var f=t.memoizedState;u=f.element,Jr(e,t),ss(t,o,null,i);var y=t.memoizedState;if(o=y.cache,Un(t,Fe,o),o!==f.cache&&Pr(t,[Fe],i,!0),is(),o=y.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Bm(e,t,o,i);break e}else if(o!==u){u=Ut(Error(l(424)),t),Wi(u),t=Bm(e,t,o,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=Yt(e.firstChild),at=t,Te=!0,zn=null,qt=!0,i=Lh(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(va(),o===u){t=xn(e,t,i);break e}st(e,t,o,i)}t=t.child}return t;case 26:return Kl(e,t),e===null?(i=eg(t.type,null,t.pendingProps,null))?t.memoizedState=i:Te||(i=t.type,e=t.pendingProps,o=oo(ye.current).createElement(i),o[nt]=t,o[pt]=e,lt(o,i,e),et(o),t.stateNode=o):t.memoizedState=eg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zi(t),e===null&&Te&&(o=t.stateNode=Jp(t.type,t.pendingProps,ye.current),at=t,qt=!0,u=Le,Jn(t.type)?(cc=u,Le=Yt(o.firstChild)):Le=u),st(e,t,t.pendingProps.children,i),Kl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((u=o=Le)&&(o=J1(o,t.type,t.pendingProps,qt),o!==null?(t.stateNode=o,at=t,Le=Yt(o.firstChild),qt=!1,u=!0):u=!1),u||Vn(t)),zi(t),u=t.type,f=t.pendingProps,y=e!==null?e.memoizedProps:null,o=f.children,sc(u,f)?o=null:y!==null&&sc(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=iu(e,t,d1,null,null,i),Es._currentValue=u),Kl(e,t),st(e,t,o,i),t.child;case 6:return e===null&&Te&&((e=i=Le)&&(i=W1(i,t.pendingProps,qt),i!==null?(t.stateNode=i,at=t,Le=null,e=!0):e=!1),e||Vn(t)),null;case 13:return Hm(e,t,i);case 4:return ct(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ea(t,null,o,i):st(e,t,o,i),t.child;case 11:return Om(e,t,t.type,t.pendingProps,i);case 7:return st(e,t,t.pendingProps,i),t.child;case 8:return st(e,t,t.pendingProps.children,i),t.child;case 12:return st(e,t,t.pendingProps.children,i),t.child;case 10:return o=t.pendingProps,Un(t,t.type,o.value),st(e,t,o.children,i),t.child;case 9:return u=t.type._context,o=t.pendingProps.children,Sa(t),u=it(u),o=o(u),t.flags|=1,st(e,t,o,i),t.child;case 14:return Dm(e,t,t.type,t.pendingProps,i);case 15:return _m(e,t,t.type,t.pendingProps,i);case 19:return Gm(e,t,i);case 31:return b1(e,t,i);case 22:return Lm(e,t,i,t.pendingProps);case 24:return Sa(t),o=it(Fe),e===null?(u=$r(),u===null&&(u=_e,f=Xr(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=i),u=f),t.memoizedState={parent:o,cache:u},Zr(t),Un(t,Fe,u)):((e.lanes&i)!==0&&(Jr(e,t),ss(t,null,null,i),is()),u=e.memoizedState,f=t.memoizedState,u.parent!==o?(u={parent:o,cache:o},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Un(t,Fe,o)):(o=f.cache,Un(t,Fe,o),o!==u.cache&&Pr(t,[Fe],i,!0))),st(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function vn(e){e.flags|=4}function Du(e,t,i,o,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(gp())e.flags|=8192;else throw Ca=Rl,Qr}else e.flags&=-16777217}function Km(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sg(t))if(gp())e.flags|=8192;else throw Ca=Rl,Qr}function Xl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wd():536870912,e.lanes|=t,di|=t)}function fs(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=i,t}function T1(e,t,i){var o=t.pendingProps;switch(Hr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return i=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),pn(Fe),Ke(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gr())),ke(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(vn(t),f!==null?(ke(t),Km(t,f)):(ke(t),Du(t,u,null,o,i))):f?f!==e.memoizedState?(vn(t),ke(t),Km(t,f)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&vn(t),ke(t),Du(t,u,e,o,i)),null;case 27:if(al(t),i=ye.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&vn(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return ke(t),null}e=te.current,Ia(t)?wh(t):(e=Jp(u,o,i),t.stateNode=e,vn(t))}return ke(t),null;case 5:if(al(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&vn(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return ke(t),null}if(f=te.current,Ia(t))wh(t);else{var y=oo(ye.current);switch(f){case 1:f=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=y.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?y.createElement(u,{is:o.is}):y.createElement(u)}}f[nt]=t,f[pt]=o;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=f;e:switch(lt(f,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&vn(t)}}return ke(t),Du(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&vn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(l(166));if(e=ye.current,Ia(t)){if(e=t.stateNode,i=t.memoizedProps,o=null,u=at,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[nt]=t,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||Hp(e.nodeValue,i)),e||Vn(t,!0)}else e=oo(e).createTextNode(o),e[nt]=t,t.stateNode=e}return ke(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(o=Ia(t),i!==null){if(e===null){if(!o)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[nt]=t}else va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else i=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return ke(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ia(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(l(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[nt]=t}else va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),u=!1}else u=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=o!==null,e=e!==null&&e.memoizedState!==null,i&&(o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Xl(t,t.updateQueue),ke(t),null);case 4:return Ke(),e===null&&ec(t.stateNode.containerInfo),ke(t),null;case 10:return pn(t.type),ke(t),null;case 19:if(Y(Pe),o=t.memoizedState,o===null)return ke(t),null;if(u=(t.flags&128)!==0,f=o.rendering,f===null)if(u)fs(o,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=_l(e),f!==null){for(t.flags|=128,fs(o,!1),e=f.updateQueue,t.updateQueue=e,Xl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)xh(i,e),i=i.sibling;return W(Pe,Pe.current&1|2),Te&&hn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Tt()>Jl&&(t.flags|=128,u=!0,fs(o,!1),t.lanes=4194304)}else{if(!u)if(e=_l(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Xl(t,e),fs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Te)return ke(t),null}else 2*Tt()-o.renderingStartTime>Jl&&i!==536870912&&(t.flags|=128,u=!0,fs(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Tt(),e.sibling=null,i=Pe.current,W(Pe,u?i&1|2:i&1),Te&&hn(t,o.treeForkCount),e):(ke(t),null);case 22:case 23:return Nt(t),tu(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(i&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),i=t.updateQueue,i!==null&&Xl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==i&&(t.flags|=2048),e!==null&&Y(Ta),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),pn(Fe),ke(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function w1(e,t){switch(Hr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pn(Fe),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return al(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(l(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Pe),null;case 4:return Ke(),null;case 10:return pn(t.type),null;case 22:case 23:return Nt(t),tu(),e!==null&&Y(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pn(Fe),null;case 25:return null;default:return null}}function Pm(e,t){switch(Hr(t),t.tag){case 3:pn(Fe),Ke();break;case 26:case 27:case 5:al(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:Y(Pe);break;case 10:pn(t.type);break;case 22:case 23:Nt(t),tu(),e!==null&&Y(Ta);break;case 24:pn(Fe)}}function ds(e,t){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var u=o.next;i=u;do{if((i.tag&e)===e){o=void 0;var f=i.create,y=i.inst;o=f(),y.destroy=o}i=i.next}while(i!==u)}}catch(b){Re(t,t.return,b)}}function Kn(e,t,i){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var y=o.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,u=t;var C=i,k=b;try{k()}catch(G){Re(u,C,G)}}}o=o.next}while(o!==f)}}catch(G){Re(t,t.return,G)}}function Xm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{zh(t,i)}catch(o){Re(e,e.return,o)}}}function Fm(e,t,i){i.props=Aa(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Re(e,t,o)}}function hs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(u){Re(e,t,u)}}function an(e,t){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(u){Re(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Re(e,t,u)}else i.current=null}function $m(e){var t=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(u){Re(e,e.return,u)}}function _u(e,t,i){try{var o=e.stateNode;P1(o,e.type,i,t),o[pt]=t}catch(u){Re(e,e.return,u)}}function Qm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jn(e.type)||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Jn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ku(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=cn));else if(o!==4&&(o===27&&Jn(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(ku(e,t,i),e=e.sibling;e!==null;)ku(e,t,i),e=e.sibling}function Fl(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(o!==4&&(o===27&&Jn(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Fl(e,t,i),e=e.sibling;e!==null;)Fl(e,t,i),e=e.sibling}function Zm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);lt(t,o,i),t[nt]=e,t[pt]=i}catch(f){Re(e,e.return,f)}}var bn=!1,Ze=!1,zu=!1,Jm=typeof WeakSet=="function"?WeakSet:Set,tt=null;function C1(e,t){if(e=e.containerInfo,ac=po,e=uh(e),Rr(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var y=0,b=-1,C=-1,k=0,G=0,P=e,V=null;t:for(;;){for(var U;P!==i||u!==0&&P.nodeType!==3||(b=y+u),P!==f||o!==0&&P.nodeType!==3||(C=y+o),P.nodeType===3&&(y+=P.nodeValue.length),(U=P.firstChild)!==null;)V=P,P=U;for(;;){if(P===e)break t;if(V===i&&++k===u&&(b=y),V===f&&++G===o&&(C=y),(U=P.nextSibling)!==null)break;P=V,V=P.parentNode}P=U}i=b===-1||C===-1?null:{start:b,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(ic={focusedElem:e,selectionRange:i},po=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,i=t,u=f.memoizedProps,f=f.memoizedState,o=i.stateNode;try{var ne=Aa(i.type,u);e=o.getSnapshotBeforeUpdate(ne,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(le){Re(i,i.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)oc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":oc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Wm(e,t,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Tn(e,i),o&4&&ds(5,i);break;case 1:if(Tn(e,i),o&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){Re(i,i.return,y)}else{var u=Aa(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Re(i,i.return,y)}}o&64&&Xm(i),o&512&&hs(i,i.return);break;case 3:if(Tn(e,i),o&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{zh(e,t)}catch(y){Re(i,i.return,y)}}break;case 27:t===null&&o&4&&Zm(i);case 26:case 5:Tn(e,i),t===null&&o&4&&$m(i),o&512&&hs(i,i.return);break;case 12:Tn(e,i);break;case 31:Tn(e,i),o&4&&tp(e,i);break;case 13:Tn(e,i),o&4&&np(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=_1.bind(null,i),I1(e,i))));break;case 22:if(o=i.memoizedState!==null||bn,!o){t=t!==null&&t.memoizedState!==null||Ze,u=bn;var f=Ze;bn=o,(Ze=t)&&!f?wn(e,i,(i.subtreeFlags&8772)!==0):Tn(e,i),bn=u,Ze=f}break;case 30:break;default:Tn(e,i)}}function Im(e){var t=e.alternate;t!==null&&(e.alternate=null,Im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,yt=!1;function Sn(e,t,i){for(i=i.child;i!==null;)ep(e,t,i),i=i.sibling}function ep(e,t,i){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Vi,i)}catch{}switch(i.tag){case 26:Ze||an(i,t),Sn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Ze||an(i,t);var o=Ve,u=yt;Jn(i.type)&&(Ve=i.stateNode,yt=!1),Sn(e,t,i),Ts(i.stateNode),Ve=o,yt=u;break;case 5:Ze||an(i,t);case 6:if(o=Ve,u=yt,Ve=null,Sn(e,t,i),Ve=o,yt=u,Ve!==null)if(yt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(i.stateNode)}catch(f){Re(i,t,f)}else try{Ve.removeChild(i.stateNode)}catch(f){Re(i,t,f)}break;case 18:Ve!==null&&(yt?(e=Ve,Xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),bi(e)):Xp(Ve,i.stateNode));break;case 4:o=Ve,u=yt,Ve=i.stateNode.containerInfo,yt=!0,Sn(e,t,i),Ve=o,yt=u;break;case 0:case 11:case 14:case 15:Kn(2,i,t),Ze||Kn(4,i,t),Sn(e,t,i);break;case 1:Ze||(an(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Fm(i,t,o)),Sn(e,t,i);break;case 21:Sn(e,t,i);break;case 22:Ze=(o=Ze)||i.memoizedState!==null,Sn(e,t,i),Ze=o;break;default:Sn(e,t,i)}}function tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{bi(e)}catch(i){Re(t,t.return,i)}}}function np(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{bi(e)}catch(i){Re(t,t.return,i)}}function E1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jm),t;default:throw Error(l(435,e.tag))}}function $l(e,t){var i=E1(e);t.forEach(function(o){if(!i.has(o)){i.add(o);var u=L1.bind(null,e,o);o.then(u,u)}})}function xt(e,t){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var u=i[o],f=e,y=t,b=y;e:for(;b!==null;){switch(b.tag){case 27:if(Jn(b.type)){Ve=b.stateNode,yt=!1;break e}break;case 5:Ve=b.stateNode,yt=!1;break e;case 3:case 4:Ve=b.stateNode.containerInfo,yt=!0;break e}b=b.return}if(Ve===null)throw Error(l(160));ep(f,y,u),Ve=null,yt=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ap(t,e),t=t.sibling}var Zt=null;function ap(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),o&4&&(Kn(3,e,e.return),ds(3,e),Kn(5,e,e.return));break;case 1:xt(t,e),vt(e),o&512&&(Ze||i===null||an(i,i.return)),o&64&&bn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var u=Zt;if(xt(t,e),vt(e),o&512&&(Ze||i===null||an(i,i.return)),o&4){var f=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Hi]||f[nt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),lt(f,o,i),f[nt]=e,et(f),o=f;break e;case"link":var y=ag("link","href",u).get(o+(i.href||""));if(y){for(var b=0;b<y.length;b++)if(f=y[b],f.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&f.getAttribute("rel")===(i.rel==null?null:i.rel)&&f.getAttribute("title")===(i.title==null?null:i.title)&&f.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(b,1);break t}}f=u.createElement(o),lt(f,o,i),u.head.appendChild(f);break;case"meta":if(y=ag("meta","content",u).get(o+(i.content||""))){for(b=0;b<y.length;b++)if(f=y[b],f.getAttribute("content")===(i.content==null?null:""+i.content)&&f.getAttribute("name")===(i.name==null?null:i.name)&&f.getAttribute("property")===(i.property==null?null:i.property)&&f.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&f.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(b,1);break t}}f=u.createElement(o),lt(f,o,i),u.head.appendChild(f);break;default:throw Error(l(468,o))}f[nt]=e,et(f),o=f}e.stateNode=o}else ig(u,e.type,e.stateNode);else e.stateNode=ng(u,o,e.memoizedProps);else f!==o?(f===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):f.count--,o===null?ig(u,e.type,e.stateNode):ng(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&_u(e,e.memoizedProps,i.memoizedProps)}break;case 27:xt(t,e),vt(e),o&512&&(Ze||i===null||an(i,i.return)),i!==null&&o&4&&_u(e,e.memoizedProps,i.memoizedProps);break;case 5:if(xt(t,e),vt(e),o&512&&(Ze||i===null||an(i,i.return)),e.flags&32){u=e.stateNode;try{Ya(u,"")}catch(ne){Re(e,e.return,ne)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,_u(e,u,i!==null?i.memoizedProps:u)),o&1024&&(zu=!0);break;case 6:if(xt(t,e),vt(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(ne){Re(e,e.return,ne)}}break;case 3:if(co=null,u=Zt,Zt=ro(t.containerInfo),xt(t,e),Zt=u,vt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{bi(t.containerInfo)}catch(ne){Re(e,e.return,ne)}zu&&(zu=!1,ip(e));break;case 4:o=Zt,Zt=ro(e.stateNode.containerInfo),xt(t,e),vt(e),Zt=o;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$l(e,o)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Zl=Tt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$l(e,o)));break;case 22:u=e.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,k=bn,G=Ze;if(bn=k||u,Ze=G||C,xt(t,e),Ze=G,bn=k,vt(e),o&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||C||bn||Ze||Na(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){C=i=t;try{if(f=C.stateNode,u)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=C.stateNode;var P=C.memoizedProps.style,V=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ne){Re(C,C.return,ne)}}}else if(t.tag===6){if(i===null){C=t;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(ne){Re(C,C.return,ne)}}}else if(t.tag===18){if(i===null){C=t;try{var U=C.stateNode;u?Fp(U,!0):Fp(C.stateNode,!1)}catch(ne){Re(C,C.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,$l(e,i))));break;case 19:xt(t,e),vt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$l(e,o)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var i,o=e.return;o!==null;){if(Qm(o)){i=o;break}o=o.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var u=i.stateNode,f=Lu(e);Fl(e,f,u);break;case 5:var y=i.stateNode;i.flags&32&&(Ya(y,""),i.flags&=-33);var b=Lu(e);Fl(e,b,y);break;case 3:case 4:var C=i.stateNode.containerInfo,k=Lu(e);ku(e,k,C);break;default:throw Error(l(161))}}catch(G){Re(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ip(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ip(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wm(e,t.alternate,t),t=t.sibling}function Na(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kn(4,t,t.return),Na(t);break;case 1:an(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Fm(t,t.return,i),Na(t);break;case 27:Ts(t.stateNode);case 26:case 5:an(t,t.return),Na(t);break;case 22:t.memoizedState===null&&Na(t);break;case 30:Na(t);break;default:Na(t)}e=e.sibling}}function wn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,u=e,f=t,y=f.flags;switch(f.tag){case 0:case 11:case 15:wn(u,f,i),ds(4,f);break;case 1:if(wn(u,f,i),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(k){Re(o,o.return,k)}if(o=f,u=o.updateQueue,u!==null){var b=o.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)kh(C[u],b)}catch(k){Re(o,o.return,k)}}i&&y&64&&Xm(f),hs(f,f.return);break;case 27:Zm(f);case 26:case 5:wn(u,f,i),i&&o===null&&y&4&&$m(f),hs(f,f.return);break;case 12:wn(u,f,i);break;case 31:wn(u,f,i),i&&y&4&&tp(u,f);break;case 13:wn(u,f,i),i&&y&4&&np(u,f);break;case 22:f.memoizedState===null&&wn(u,f,i),hs(f,f.return);break;case 30:break;default:wn(u,f,i)}t=t.sibling}}function Vu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Ii(i))}function Uu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ii(e))}function Jt(e,t,i,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sp(e,t,i,o),t=t.sibling}function sp(e,t,i,o){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,i,o),u&2048&&ds(9,t);break;case 1:Jt(e,t,i,o);break;case 3:Jt(e,t,i,o),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ii(e)));break;case 12:if(u&2048){Jt(e,t,i,o),e=t.stateNode;try{var f=t.memoizedProps,y=f.id,b=f.onPostCommit;typeof b=="function"&&b(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Re(t,t.return,C)}}else Jt(e,t,i,o);break;case 31:Jt(e,t,i,o);break;case 13:Jt(e,t,i,o);break;case 23:break;case 22:f=t.stateNode,y=t.alternate,t.memoizedState!==null?f._visibility&2?Jt(e,t,i,o):ms(e,t):f._visibility&2?Jt(e,t,i,o):(f._visibility|=2,ui(e,t,i,o,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Vu(y,t);break;case 24:Jt(e,t,i,o),u&2048&&Uu(t.alternate,t);break;default:Jt(e,t,i,o)}}function ui(e,t,i,o,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,y=t,b=i,C=o,k=y.flags;switch(y.tag){case 0:case 11:case 15:ui(f,y,b,C,u),ds(8,y);break;case 23:break;case 22:var G=y.stateNode;y.memoizedState!==null?G._visibility&2?ui(f,y,b,C,u):ms(f,y):(G._visibility|=2,ui(f,y,b,C,u)),u&&k&2048&&Vu(y.alternate,y);break;case 24:ui(f,y,b,C,u),u&&k&2048&&Uu(y.alternate,y);break;default:ui(f,y,b,C,u)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,o=t,u=o.flags;switch(o.tag){case 22:ms(i,o),u&2048&&Vu(o.alternate,o);break;case 24:ms(i,o),u&2048&&Uu(o.alternate,o);break;default:ms(i,o)}t=t.sibling}}var ps=8192;function ci(e,t,i){if(e.subtreeFlags&ps)for(e=e.child;e!==null;)lp(e,t,i),e=e.sibling}function lp(e,t,i){switch(e.tag){case 26:ci(e,t,i),e.flags&ps&&e.memoizedState!==null&&fS(i,Zt,e.memoizedState,e.memoizedProps);break;case 5:ci(e,t,i);break;case 3:case 4:var o=Zt;Zt=ro(e.stateNode.containerInfo),ci(e,t,i),Zt=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ps,ps=16777216,ci(e,t,i),ps=o):ci(e,t,i));break;default:ci(e,t,i)}}function op(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var o=t[i];tt=o,up(o,e)}op(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:gs(e),e.flags&2048&&Kn(9,e,e.return);break;case 3:gs(e);break;case 12:gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ql(e)):gs(e);break;default:gs(e)}}function Ql(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var o=t[i];tt=o,up(o,e)}op(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kn(8,t,t.return),Ql(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,Ql(t));break;default:Ql(t)}e=e.sibling}}function up(e,t){for(;tt!==null;){var i=tt;switch(i.tag){case 0:case 11:case 15:Kn(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ii(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,tt=o;else e:for(i=e;tt!==null;){o=tt;var u=o.sibling,f=o.return;if(Im(o),o===i){tt=null;break e}if(u!==null){u.return=f,tt=u;break e}tt=f}}}var j1={getCacheForType:function(e){var t=it(Fe),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return it(Fe).controller.signal}},A1=typeof WeakMap=="function"?WeakMap:Map,je=0,_e=null,xe=null,be=0,Ne=0,Rt=null,Pn=!1,fi=!1,Bu=!1,Cn=0,Ge=0,Xn=0,Ra=0,Hu=0,Mt=0,di=0,ys=null,bt=null,qu=!1,Zl=0,cp=0,Jl=1/0,Wl=null,Fn=null,We=0,$n=null,hi=null,En=0,Gu=0,Yu=null,fp=null,xs=0,Ku=null;function Ot(){return(je&2)!==0&&be!==0?be&-be:D.T!==null?Zu():Ad()}function dp(){if(Mt===0)if((be&536870912)===0||Te){var e=ll;ll<<=1,(ll&3932160)===0&&(ll=262144),Mt=e}else Mt=536870912;return e=At.current,e!==null&&(e.flags|=32),Mt}function St(e,t,i){(e===_e&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(mi(e,0),Qn(e,be,Mt,!1)),Bi(e,i),((je&2)===0||e!==_e)&&(e===_e&&((je&2)===0&&(Ra|=i),Ge===4&&Qn(e,be,Mt,!1)),sn(e))}function hp(e,t,i){if((je&6)!==0)throw Error(l(327));var o=!i&&(t&127)===0&&(t&e.expiredLanes)===0||Ui(e,t),u=o?M1(e,t):Xu(e,t,!0),f=o;do{if(u===0){fi&&!o&&Qn(e,t,0,!1);break}else{if(i=e.current.alternate,f&&!N1(i)){u=Xu(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var b=e;u=ys;var C=b.current.memoizedState.isDehydrated;if(C&&(mi(b,y).flags|=256),y=Xu(b,y,!1),y!==2){if(Bu&&!C){b.errorRecoveryDisabledLanes|=f,Ra|=f,u=4;break e}f=bt,bt=u,f!==null&&(bt===null?bt=f:bt.push.apply(bt,f))}u=y}if(f=!1,u!==2)continue}}if(u===1){mi(e,0),Qn(e,t,0,!0);break}e:{switch(o=e,f=u,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Qn(o,t,Mt,!Pn);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(u=Zl+300-Tt(),10<u)){if(Qn(o,t,Mt,!Pn),rl(o,0,!0)!==0)break e;En=t,o.timeoutHandle=Kp(mp.bind(null,o,i,bt,Wl,qu,t,Mt,Ra,di,Pn,f,"Throttled",-0,0),u);break e}mp(o,i,bt,Wl,qu,t,Mt,Ra,di,Pn,f,null,-0,0)}}break}while(!0);sn(e)}function mp(e,t,i,o,u,f,y,b,C,k,G,P,V,U){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},lp(t,f,P);var ne=(f&62914560)===f?Zl-Tt():(f&4194048)===f?cp-Tt():0;if(ne=dS(P,ne),ne!==null){En=f,e.cancelPendingCommit=ne(Tp.bind(null,e,t,f,i,o,u,y,b,C,G,P,null,V,U)),Qn(e,f,y,!k);return}}Tp(e,t,f,i,o,u,y,b,C)}function N1(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var u=i[o],f=u.getSnapshot;u=u.value;try{if(!Et(f(),u))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,i,o){t&=~Hu,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var u=t;0<u;){var f=31-Ct(u),y=1<<f;o[f]=-1,u&=~y}i!==0&&Cd(e,i,t)}function Il(){return(je&6)===0?(vs(0),!1):!0}function Pu(){if(xe!==null){if(Ne===0)var e=xe.return;else e=xe,mn=ba=null,ou(e),ii=null,ts=0,e=xe;for(;e!==null;)Pm(e.alternate,e),e=e.return;xe=null}}function mi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,$1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),En=0,Pu(),_e=e,xe=i=dn(e.current,null),be=t,Ne=0,Rt=null,Pn=!1,fi=Ui(e,t),Bu=!1,di=Mt=Hu=Ra=Xn=Ge=0,bt=ys=null,qu=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var u=31-Ct(o),f=1<<u;t|=e[u],o&=~f}return Cn=t,bl(),i}function pp(e,t){pe=null,D.H=us,t===ai||t===Nl?(t=Oh(),Ne=3):t===Qr?(t=Oh(),Ne=4):Ne=t===wu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,xe===null&&(Ge=1,Gl(e,Ut(t,e.current)))}function gp(){var e=At.current;return e===null?!0:(be&4194048)===be?Gt===null:(be&62914560)===be||(be&536870912)!==0?e===Gt:!1}function yp(){var e=D.H;return D.H=us,e===null?us:e}function xp(){var e=D.A;return D.A=j1,e}function eo(){Ge=4,Pn||(be&4194048)!==be&&At.current!==null||(fi=!0),(Xn&134217727)===0&&(Ra&134217727)===0||_e===null||Qn(_e,be,Mt,!1)}function Xu(e,t,i){var o=je;je|=2;var u=yp(),f=xp();(_e!==e||be!==t)&&(Wl=null,mi(e,t)),t=!1;var y=Ge;e:do try{if(Ne!==0&&xe!==null){var b=xe,C=Rt;switch(Ne){case 8:Pu(),y=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var k=Ne;if(Ne=0,Rt=null,pi(e,b,C,k),i&&fi){y=0;break e}break;default:k=Ne,Ne=0,Rt=null,pi(e,b,C,k)}}R1(),y=Ge;break}catch(G){pp(e,G)}while(!0);return t&&e.shellSuspendCounter++,mn=ba=null,je=o,D.H=u,D.A=f,xe===null&&(_e=null,be=0,bl()),y}function R1(){for(;xe!==null;)vp(xe)}function M1(e,t){var i=je;je|=2;var o=yp(),u=xp();_e!==e||be!==t?(Wl=null,Jl=Tt()+500,mi(e,t)):fi=Ui(e,t);e:do try{if(Ne!==0&&xe!==null){t=xe;var f=Rt;t:switch(Ne){case 1:Ne=0,Rt=null,pi(e,t,f,1);break;case 2:case 9:if(Rh(f)){Ne=0,Rt=null,bp(t);break}t=function(){Ne!==2&&Ne!==9||_e!==e||(Ne=7),sn(e)},f.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Rh(f)?(Ne=0,Rt=null,bp(t)):(Ne=0,Rt=null,pi(e,t,f,7));break;case 5:var y=null;switch(xe.tag){case 26:y=xe.memoizedState;case 5:case 27:var b=xe;if(y?sg(y):b.stateNode.complete){Ne=0,Rt=null;var C=b.sibling;if(C!==null)xe=C;else{var k=b.return;k!==null?(xe=k,to(k)):xe=null}break t}}Ne=0,Rt=null,pi(e,t,f,5);break;case 6:Ne=0,Rt=null,pi(e,t,f,6);break;case 8:Pu(),Ge=6;break e;default:throw Error(l(462))}}O1();break}catch(G){pp(e,G)}while(!0);return mn=ba=null,D.H=o,D.A=u,je=i,xe!==null?0:(_e=null,be=0,bl(),Ge)}function O1(){for(;xe!==null&&!eb();)vp(xe)}function vp(e){var t=Ym(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function bp(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Vm(i,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Vm(i,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:ou(t);default:Pm(i,t),t=xe=xh(t,Cn),t=Ym(i,t,Cn)}e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function pi(e,t,i,o){mn=ba=null,ou(t),ii=null,ts=0;var u=t.return;try{if(v1(e,u,t,i,be)){Ge=1,Gl(e,Ut(i,e.current)),xe=null;return}}catch(f){if(u!==null)throw xe=u,f;Ge=1,Gl(e,Ut(i,e.current)),xe=null;return}t.flags&32768?(Te||o===1?e=!0:fi||(be&536870912)!==0?e=!1:(Pn=e=!0,(o===2||o===9||o===3||o===6)&&(o=At.current,o!==null&&o.tag===13&&(o.flags|=16384))),Sp(t,e)):to(t)}function to(e){var t=e;do{if((t.flags&32768)!==0){Sp(t,Pn);return}e=t.return;var i=T1(t.alternate,t,Cn);if(i!==null){xe=i;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ge===0&&(Ge=5)}function Sp(e,t){do{var i=w1(e.alternate,e);if(i!==null){i.flags&=32767,xe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=i}while(e!==null);Ge=6,xe=null}function Tp(e,t,i,o,u,f,y,b,C){e.cancelPendingCommit=null;do no();while(We!==0);if((je&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=Lr,cb(e,i,f,y,b,C),e===_e&&(xe=_e=null,be=0),hi=t,$n=e,En=i,Gu=f,Yu=u,fp=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,k1(il,function(){return Ap(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,u=B.p,B.p=2,y=je,je|=4;try{C1(e,t,i)}finally{je=y,B.p=u,D.T=o}}We=1,wp(),Cp(),Ep()}}function wp(){if(We===1){We=0;var e=$n,t=hi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var o=B.p;B.p=2;var u=je;je|=4;try{ap(t,e);var f=ic,y=uh(e.containerInfo),b=f.focusedElem,C=f.selectionRange;if(y!==b&&b&&b.ownerDocument&&rh(b.ownerDocument.documentElement,b)){if(C!==null&&Rr(b)){var k=C.start,G=C.end;if(G===void 0&&(G=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(G,b.value.length);else{var P=b.ownerDocument||document,V=P&&P.defaultView||window;if(V.getSelection){var U=V.getSelection(),ne=b.textContent.length,le=Math.min(C.start,ne),De=C.end===void 0?le:Math.min(C.end,ne);!U.extend&&le>De&&(y=De,De=le,le=y);var M=oh(b,le),A=oh(b,De);if(M&&A&&(U.rangeCount!==1||U.anchorNode!==M.node||U.anchorOffset!==M.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var L=P.createRange();L.setStart(M.node,M.offset),U.removeAllRanges(),le>De?(U.addRange(L),U.extend(A.node,A.offset)):(L.setEnd(A.node,A.offset),U.addRange(L))}}}}for(P=[],U=b;U=U.parentNode;)U.nodeType===1&&P.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var K=P[b];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}po=!!ac,ic=ac=null}finally{je=u,B.p=o,D.T=i}}e.current=t,We=2}}function Cp(){if(We===2){We=0;var e=$n,t=hi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var o=B.p;B.p=2;var u=je;je|=4;try{Wm(e,t.alternate,t)}finally{je=u,B.p=o,D.T=i}}We=3}}function Ep(){if(We===4||We===3){We=0,tb();var e=$n,t=hi,i=En,o=fp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,hi=$n=null,jp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Fn=null),cr(i),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Vi,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=D.T,u=B.p,B.p=2,D.T=null;try{for(var f=e.onRecoverableError,y=0;y<o.length;y++){var b=o[y];f(b.value,{componentStack:b.stack})}}finally{D.T=t,B.p=u}}(En&3)!==0&&no(),sn(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===Ku?xs++:(xs=0,Ku=e):xs=0,vs(0)}}function jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ii(t)))}function no(){return wp(),Cp(),Ep(),Ap()}function Ap(){if(We!==5)return!1;var e=$n,t=Gu;Gu=0;var i=cr(En),o=D.T,u=B.p;try{B.p=32>i?32:i,D.T=null,i=Yu,Yu=null;var f=$n,y=En;if(We=0,hi=$n=null,En=0,(je&6)!==0)throw Error(l(331));var b=je;if(je|=4,rp(f.current),sp(f,f.current,y,i),je=b,vs(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Vi,f)}catch{}return!0}finally{B.p=u,D.T=o,jp(e,t)}}function Np(e,t,i){t=Ut(i,t),t=Tu(e.stateNode,t,2),e=qn(e,t,2),e!==null&&(Bi(e,2),sn(e))}function Re(e,t,i){if(e.tag===3)Np(e,e,i);else for(;t!==null;){if(t.tag===3){Np(t,e,i);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fn===null||!Fn.has(o))){e=Ut(i,e),i=Rm(2),o=qn(t,i,2),o!==null&&(Mm(i,o,t,e),Bi(o,2),sn(o));break}}t=t.return}}function Fu(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new A1;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(i)||(Bu=!0,u.add(i),e=D1.bind(null,e,t,i),t.then(e,e))}function D1(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,_e===e&&(be&i)===i&&(Ge===4||Ge===3&&(be&62914560)===be&&300>Tt()-Zl?(je&2)===0&&mi(e,0):Hu|=i,di===be&&(di=0)),sn(e)}function Rp(e,t){t===0&&(t=wd()),e=ya(e,t),e!==null&&(Bi(e,t),sn(e))}function _1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Rp(e,i)}function L1(e,t){var i=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(t),Rp(e,i)}function k1(e,t){return lr(e,t)}var ao=null,gi=null,$u=!1,io=!1,Qu=!1,Zn=0;function sn(e){e!==gi&&e.next===null&&(gi===null?ao=gi=e:gi=gi.next=e),io=!0,$u||($u=!0,V1())}function vs(e,t){if(!Qu&&io){Qu=!0;do for(var i=!1,o=ao;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var y=o.suspendedLanes,b=o.pingedLanes;f=(1<<31-Ct(42|e)+1)-1,f&=u&~(y&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,_p(o,f))}else f=be,f=rl(o,o===_e?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Ui(o,f)||(i=!0,_p(o,f));o=o.next}while(i);Qu=!1}}function z1(){Mp()}function Mp(){io=$u=!1;var e=0;Zn!==0&&F1()&&(e=Zn);for(var t=Tt(),i=null,o=ao;o!==null;){var u=o.next,f=Op(o,t);f===0?(o.next=null,i===null?ao=u:i.next=u,u===null&&(gi=i)):(i=o,(e!==0||(f&3)!==0)&&(io=!0)),o=u}We!==0&&We!==5||vs(e),Zn!==0&&(Zn=0)}function Op(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var y=31-Ct(f),b=1<<y,C=u[y];C===-1?((b&i)===0||(b&o)!==0)&&(u[y]=ub(b,t)):C<=t&&(e.expiredLanes|=b),f&=~b}if(t=_e,i=be,i=rl(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&or(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Ui(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(o!==null&&or(o),cr(i)){case 2:case 8:i=Sd;break;case 32:i=il;break;case 268435456:i=Td;break;default:i=il}return o=Dp.bind(null,e),i=lr(i,o),e.callbackPriority=t,e.callbackNode=i,t}return o!==null&&o!==null&&or(o),e.callbackPriority=2,e.callbackNode=null,2}function Dp(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(no()&&e.callbackNode!==i)return null;var o=be;return o=rl(e,e===_e?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(hp(e,o,t),Op(e,Tt()),e.callbackNode!=null&&e.callbackNode===i?Dp.bind(null,e):null)}function _p(e,t){if(no())return null;hp(e,t,!0)}function V1(){Q1(function(){(je&6)!==0?lr(bd,z1):Mp()})}function Zu(){if(Zn===0){var e=ti;e===0&&(e=sl,sl<<=1,(sl&261888)===0&&(sl=256)),Zn=e}return Zn}function Lp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:dl(""+e)}function kp(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function U1(e,t,i,o,u){if(t==="submit"&&i&&i.stateNode===u){var f=Lp((u[pt]||null).action),y=o.submitter;y&&(t=(t=y[pt]||null)?Lp(t.formAction):y.getAttribute("formAction"),t!==null&&(f=t,y=null));var b=new gl("action","action",null,o,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Zn!==0){var C=y?kp(u,y):new FormData(u);gu(i,{pending:!0,data:C,method:u.method,action:f},null,C)}}else typeof f=="function"&&(b.preventDefault(),C=y?kp(u,y):new FormData(u),gu(i,{pending:!0,data:C,method:u.method,action:f},f,C))},currentTarget:u}]})}}for(var Ju=0;Ju<_r.length;Ju++){var Wu=_r[Ju],B1=Wu.toLowerCase(),H1=Wu[0].toUpperCase()+Wu.slice(1);Qt(B1,"on"+H1)}Qt(dh,"onAnimationEnd"),Qt(hh,"onAnimationIteration"),Qt(mh,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(n1,"onTransitionRun"),Qt(a1,"onTransitionStart"),Qt(i1,"onTransitionCancel"),Qt(ph,"onTransitionEnd"),qa("onMouseEnter",["mouseout","mouseover"]),qa("onMouseLeave",["mouseout","mouseover"]),qa("onPointerEnter",["pointerout","pointerover"]),qa("onPointerLeave",["pointerout","pointerover"]),ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),q1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bs));function zp(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],u=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var y=o.length-1;0<=y;y--){var b=o[y],C=b.instance,k=b.currentTarget;if(b=b.listener,C!==f&&u.isPropagationStopped())break e;f=b,u.currentTarget=k;try{f(u)}catch(G){vl(G)}u.currentTarget=null,f=C}else for(y=0;y<o.length;y++){if(b=o[y],C=b.instance,k=b.currentTarget,b=b.listener,C!==f&&u.isPropagationStopped())break e;f=b,u.currentTarget=k;try{f(u)}catch(G){vl(G)}u.currentTarget=null,f=C}}}}function ve(e,t){var i=t[fr];i===void 0&&(i=t[fr]=new Set);var o=e+"__bubble";i.has(o)||(Vp(t,e,2,!1),i.add(o))}function Iu(e,t,i){var o=0;t&&(o|=4),Vp(i,e,o,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function ec(e){if(!e[so]){e[so]=!0,Md.forEach(function(i){i!=="selectionchange"&&(q1.has(i)||Iu(i,!1,e),Iu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Iu("selectionchange",!1,t))}}function Vp(e,t,i,o){switch(dg(t)){case 2:var u=pS;break;case 8:u=gS;break;default:u=pc}i=u.bind(null,t,i,e),u=void 0,!br||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function tc(e,t,i,o,u){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var b=o.stateNode.containerInfo;if(b===u)break;if(y===4)for(y=o.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;b!==null;){if(y=Ua(b),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){o=f=y;continue e}b=b.parentNode}}o=o.return}Gd(function(){var k=f,G=xr(i),P=[];e:{var V=gh.get(e);if(V!==void 0){var U=gl,ne=e;switch(e){case"keypress":if(ml(i)===0)break e;case"keydown":case"keyup":U=Lb;break;case"focusin":ne="focus",U=Cr;break;case"focusout":ne="blur",U=Cr;break;case"beforeblur":case"afterblur":U=Cr;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Tb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Vb;break;case dh:case hh:case mh:U=Eb;break;case ph:U=Bb;break;case"scroll":case"scrollend":U=bb;break;case"wheel":U=qb;break;case"copy":case"cut":case"paste":U=Ab;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Fd;break;case"toggle":case"beforetoggle":U=Yb}var le=(t&4)!==0,De=!le&&(e==="scroll"||e==="scrollend"),M=le?V!==null?V+"Capture":null:V;le=[];for(var A=k,L;A!==null;){var K=A;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||M===null||(K=Gi(A,M),K!=null&&le.push(Ss(A,K,L))),De)break;A=A.return}0<le.length&&(V=new U(V,ne,null,i,G),P.push({event:V,listeners:le}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",V&&i!==yr&&(ne=i.relatedTarget||i.fromElement)&&(Ua(ne)||ne[Va]))break e;if((U||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,U?(ne=i.relatedTarget||i.toElement,U=k,ne=ne?Ua(ne):null,ne!==null&&(De=c(ne),le=ne.tag,ne!==De||le!==5&&le!==27&&le!==6)&&(ne=null)):(U=null,ne=k),U!==ne)){if(le=Pd,K="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(le=Fd,K="onPointerLeave",M="onPointerEnter",A="pointer"),De=U==null?V:qi(U),L=ne==null?V:qi(ne),V=new le(K,A+"leave",U,i,G),V.target=De,V.relatedTarget=L,K=null,Ua(G)===k&&(le=new le(M,A+"enter",ne,i,G),le.target=L,le.relatedTarget=De,K=le),De=K,U&&ne)t:{for(le=G1,M=U,A=ne,L=0,K=M;K;K=le(K))L++;K=0;for(var se=A;se;se=le(se))K++;for(;0<L-K;)M=le(M),L--;for(;0<K-L;)A=le(A),K--;for(;L--;){if(M===A||A!==null&&M===A.alternate){le=M;break t}M=le(M),A=le(A)}le=null}else le=null;U!==null&&Up(P,V,U,le,!1),ne!==null&&De!==null&&Up(P,De,ne,le,!0)}}e:{if(V=k?qi(k):window,U=V.nodeName&&V.nodeName.toLowerCase(),U==="select"||U==="input"&&V.type==="file")var Ce=th;else if(Id(V))if(nh)Ce=Ib;else{Ce=Jb;var ae=Zb}else U=V.nodeName,!U||U.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?k&&gr(k.elementType)&&(Ce=th):Ce=Wb;if(Ce&&(Ce=Ce(e,k))){eh(P,Ce,i,G);break e}ae&&ae(e,V,k),e==="focusout"&&k&&V.type==="number"&&k.memoizedProps.value!=null&&pr(V,"number",V.value)}switch(ae=k?qi(k):window,e){case"focusin":(Id(ae)||ae.contentEditable==="true")&&(Fa=ae,Mr=k,Zi=null);break;case"focusout":Zi=Mr=Fa=null;break;case"mousedown":Or=!0;break;case"contextmenu":case"mouseup":case"dragend":Or=!1,ch(P,i,G);break;case"selectionchange":if(t1)break;case"keydown":case"keyup":ch(P,i,G)}var ge;if(jr)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Xa?Jd(e,i)&&(Se="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Se="onCompositionStart");Se&&($d&&i.locale!=="ko"&&(Xa||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Xa&&(ge=Yd()):(Ln=G,Sr="value"in Ln?Ln.value:Ln.textContent,Xa=!0)),ae=lo(k,Se),0<ae.length&&(Se=new Xd(Se,e,null,i,G),P.push({event:Se,listeners:ae}),ge?Se.data=ge:(ge=Wd(i),ge!==null&&(Se.data=ge)))),(ge=Pb?Xb(e,i):Fb(e,i))&&(Se=lo(k,"onBeforeInput"),0<Se.length&&(ae=new Xd("onBeforeInput","beforeinput",null,i,G),P.push({event:ae,listeners:Se}),ae.data=ge)),U1(P,e,k,i,G)}zp(P,t)})}function Ss(e,t,i){return{instance:e,listener:t,currentTarget:i}}function lo(e,t){for(var i=t+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Gi(e,i),u!=null&&o.unshift(Ss(e,u,f)),u=Gi(e,t),u!=null&&o.push(Ss(e,u,f))),e.tag===3)return o;e=e.return}return[]}function G1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Up(e,t,i,o,u){for(var f=t._reactName,y=[];i!==null&&i!==o;){var b=i,C=b.alternate,k=b.stateNode;if(b=b.tag,C!==null&&C===o)break;b!==5&&b!==26&&b!==27||k===null||(C=k,u?(k=Gi(i,f),k!=null&&y.unshift(Ss(i,k,C))):u||(k=Gi(i,f),k!=null&&y.push(Ss(i,k,C)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var Y1=/\r\n?/g,K1=/\u0000|\uFFFD/g;function Bp(e){return(typeof e=="string"?e:""+e).replace(Y1,`
+`).replace(K1,"")}function Hp(e,t){return t=Bp(t),Bp(e)===t}function Oe(e,t,i,o,u,f){switch(i){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Ya(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Ya(e,""+o);break;case"className":cl(e,"class",o);break;case"tabIndex":cl(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":cl(e,i,o);break;case"style":Hd(e,o,f);break;case"data":if(t!=="object"){cl(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=dl(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.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 f=="function"&&(i==="formAction"?(t!=="input"&&Oe(e,t,"name",u.name,u,null),Oe(e,t,"formEncType",u.formEncType,u,null),Oe(e,t,"formMethod",u.formMethod,u,null),Oe(e,t,"formTarget",u.formTarget,u,null)):(Oe(e,t,"encType",u.encType,u,null),Oe(e,t,"method",u.method,u,null),Oe(e,t,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=dl(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=cn);break;case"onScroll":o!=null&&ve("scroll",e);break;case"onScrollEnd":o!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=dl(""+o),e.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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":ve("beforetoggle",e),ve("toggle",e),ul(e,"popover",o);break;case"xlinkActuate":un(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":un(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":un(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":un(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":un(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":un(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":un(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ul(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=xb.get(i)||i,ul(e,i,o))}}function nc(e,t,i,o,u,f){switch(i){case"style":Hd(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Ya(e,o):(typeof o=="number"||typeof o=="bigint")&&Ya(e,""+o);break;case"onScroll":o!=null&&ve("scroll",e);break;case"onScrollEnd":o!=null&&ve("scrollend",e);break;case"onClick":o!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Od.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),f=e[pt]||null,f=f!=null?f[i]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,o,u);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):ul(e,i,o)}}}function lt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var o=!1,u=!1,f;for(f in i)if(i.hasOwnProperty(f)){var y=i[f];if(y!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Oe(e,t,f,y,i,null)}}u&&Oe(e,t,"srcSet",i.srcSet,i,null),o&&Oe(e,t,"src",i.src,i,null);return;case"input":ve("invalid",e);var b=f=y=u=null,C=null,k=null;for(o in i)if(i.hasOwnProperty(o)){var G=i[o];if(G!=null)switch(o){case"name":u=G;break;case"type":y=G;break;case"checked":C=G;break;case"defaultChecked":k=G;break;case"value":f=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,t));break;default:Oe(e,t,o,G,i,null)}}zd(e,f,b,C,k,y,u,!1);return;case"select":ve("invalid",e),o=y=f=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":f=b;break;case"defaultValue":y=b;break;case"multiple":o=b;default:Oe(e,t,u,b,i,null)}t=f,i=y,e.multiple=!!o,t!=null?Ga(e,!!o,t,!1):i!=null&&Ga(e,!!o,i,!0);return;case"textarea":ve("invalid",e),f=u=o=null;for(y in i)if(i.hasOwnProperty(y)&&(b=i[y],b!=null))switch(y){case"value":o=b;break;case"defaultValue":u=b;break;case"children":f=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Oe(e,t,y,b,i,null)}Ud(e,o,u,f);return;case"option":for(C in i)i.hasOwnProperty(C)&&(o=i[C],o!=null)&&(C==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Oe(e,t,C,o,i,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(o=0;o<bs.length;o++)ve(bs[o],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in i)if(i.hasOwnProperty(k)&&(o=i[k],o!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Oe(e,t,k,o,i,null)}return;default:if(gr(t)){for(G in i)i.hasOwnProperty(G)&&(o=i[G],o!==void 0&&nc(e,t,G,o,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(o=i[b],o!=null&&Oe(e,t,b,o,i,null))}function P1(e,t,i,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,y=null,b=null,C=null,k=null,G=null;for(U in i){var P=i[U];if(i.hasOwnProperty(U)&&P!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":C=P;default:o.hasOwnProperty(U)||Oe(e,t,U,null,o,P)}}for(var V in o){var U=o[V];if(P=i[V],o.hasOwnProperty(V)&&(U!=null||P!=null))switch(V){case"type":f=U;break;case"name":u=U;break;case"checked":k=U;break;case"defaultChecked":G=U;break;case"value":y=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:U!==P&&Oe(e,t,V,U,o,P)}}mr(e,y,b,C,k,G,f,u);return;case"select":U=y=b=V=null;for(f in i)if(C=i[f],i.hasOwnProperty(f)&&C!=null)switch(f){case"value":break;case"multiple":U=C;default:o.hasOwnProperty(f)||Oe(e,t,f,null,o,C)}for(u in o)if(f=o[u],C=i[u],o.hasOwnProperty(u)&&(f!=null||C!=null))switch(u){case"value":V=f;break;case"defaultValue":b=f;break;case"multiple":y=f;default:f!==C&&Oe(e,t,u,f,o,C)}t=b,i=y,o=U,V!=null?Ga(e,!!i,V,!1):!!o!=!!i&&(t!=null?Ga(e,!!i,t,!0):Ga(e,!!i,i?[]:"",!1));return;case"textarea":U=V=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!o.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Oe(e,t,b,null,o,u)}for(y in o)if(u=o[y],f=i[y],o.hasOwnProperty(y)&&(u!=null||f!=null))switch(y){case"value":V=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(l(91));break;default:u!==f&&Oe(e,t,y,u,o,f)}Vd(e,V,U);return;case"option":for(var ne in i)V=i[ne],i.hasOwnProperty(ne)&&V!=null&&!o.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:Oe(e,t,ne,null,o,V));for(C in o)V=o[C],U=i[C],o.hasOwnProperty(C)&&V!==U&&(V!=null||U!=null)&&(C==="selected"?e.selected=V&&typeof V!="function"&&typeof V!="symbol":Oe(e,t,C,V,o,U));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 le in i)V=i[le],i.hasOwnProperty(le)&&V!=null&&!o.hasOwnProperty(le)&&Oe(e,t,le,null,o,V);for(k in o)if(V=o[k],U=i[k],o.hasOwnProperty(k)&&V!==U&&(V!=null||U!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,t));break;default:Oe(e,t,k,V,o,U)}return;default:if(gr(t)){for(var De in i)V=i[De],i.hasOwnProperty(De)&&V!==void 0&&!o.hasOwnProperty(De)&&nc(e,t,De,void 0,o,V);for(G in o)V=o[G],U=i[G],!o.hasOwnProperty(G)||V===U||V===void 0&&U===void 0||nc(e,t,G,V,o,U);return}}for(var M in i)V=i[M],i.hasOwnProperty(M)&&V!=null&&!o.hasOwnProperty(M)&&Oe(e,t,M,null,o,V);for(P in o)V=o[P],U=i[P],!o.hasOwnProperty(P)||V===U||V==null&&U==null||Oe(e,t,P,V,o,U)}function qp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function X1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var u=i[o],f=u.transferSize,y=u.initiatorType,b=u.duration;if(f&&b&&qp(y)){for(y=0,b=u.responseEnd,o+=1;o<i.length;o++){var C=i[o],k=C.startTime;if(k>b)break;var G=C.transferSize,P=C.initiatorType;G&&qp(P)&&(C=C.responseEnd,y+=G*(C<b?1:(b-k)/(C-k)))}if(--o,t+=8*(f+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ac=null,ic=null;function oo(e){return e.nodeType===9?e:e.ownerDocument}function Gp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var lc=null;function F1(){var e=window.event;return e&&e.type==="popstate"?e===lc?!1:(lc=e,!0):(lc=null,!1)}var Kp=typeof setTimeout=="function"?setTimeout:void 0,$1=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,Q1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(Z1)}:Kp;function Z1(e){setTimeout(function(){throw e})}function Jn(e){return e==="head"}function Xp(e,t){var i=t,o=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(o===0){e.removeChild(u),bi(t);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")Ts(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ts(i);for(var f=i.firstChild;f;){var y=f.nextSibling,b=f.nodeName;f[Hi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&f.rel.toLowerCase()==="stylesheet"||i.removeChild(f),f=y}}else i==="body"&&Ts(e.ownerDocument.body);i=u}while(i);bi(t)}function Fp(e,t){var i=e;e=0;do{var o=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=o}while(i)}function oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":oc(i),dr(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function J1(e,t,i,o){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Hi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function W1(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Yt(e.nextSibling),e===null))return null;return e}function $p(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function rc(e){return e.data==="$?"||e.data==="$~"}function uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I1(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var o=function(){t(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var cc=null;function Qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return Yt(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Zp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Jp(e,t,i){switch(t=oo(i),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dr(e)}var Kt=new Map,Wp=new Set;function ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=B.d;B.d={f:eS,r:tS,D:nS,C:aS,L:iS,m:sS,X:oS,S:lS,M:rS};function eS(){var e=jn.f(),t=Il();return e||t}function tS(e){var t=Ba(e);t!==null&&t.tag===5&&t.type==="form"?pm(t):jn.r(e)}var yi=typeof document>"u"?null:document;function Ip(e,t,i){var o=yi;if(o&&typeof t=="string"&&t){var u=zt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Wp.has(u)||(Wp.add(u),e={rel:e,crossOrigin:i,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),lt(t,"link",e),et(t),o.head.appendChild(t)))}}function nS(e){jn.D(e),Ip("dns-prefetch",e,null)}function aS(e,t){jn.C(e,t),Ip("preconnect",e,t)}function iS(e,t,i){jn.L(e,t,i);var o=yi;if(o&&e&&t){var u='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+zt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+zt(i.imageSizes)+'"]')):u+='[href="'+zt(e)+'"]';var f=u;switch(t){case"style":f=xi(e);break;case"script":f=vi(e)}Kt.has(f)||(e=x({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Kt.set(f,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(ws(f))||t==="script"&&o.querySelector(Cs(f))||(t=o.createElement("link"),lt(t,"link",e),et(t),o.head.appendChild(t)))}}function sS(e,t){jn.m(e,t);var i=yi;if(i&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+zt(o)+'"][href="'+zt(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=vi(e)}if(!Kt.has(f)&&(e=x({rel:"modulepreload",href:e},t),Kt.set(f,e),i.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Cs(f)))return}o=i.createElement("link"),lt(o,"link",e),et(o),i.head.appendChild(o)}}}function lS(e,t,i){jn.S(e,t,i);var o=yi;if(o&&e){var u=Ha(o).hoistableStyles,f=xi(e);t=t||"default";var y=u.get(f);if(!y){var b={loading:0,preload:null};if(y=o.querySelector(ws(f)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Kt.get(f))&&fc(e,i);var C=y=o.createElement("link");et(C),lt(C,"link",e),C._p=new Promise(function(k,G){C.onload=k,C.onerror=G}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,uo(y,t,o)}y={type:"stylesheet",instance:y,count:1,state:b},u.set(f,y)}}}function oS(e,t){jn.X(e,t);var i=yi;if(i&&e){var o=Ha(i).hoistableScripts,u=vi(e),f=o.get(u);f||(f=i.querySelector(Cs(u)),f||(e=x({src:e,async:!0},t),(t=Kt.get(u))&&dc(e,t),f=i.createElement("script"),et(f),lt(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function rS(e,t){jn.M(e,t);var i=yi;if(i&&e){var o=Ha(i).hoistableScripts,u=vi(e),f=o.get(u);f||(f=i.querySelector(Cs(u)),f||(e=x({src:e,async:!0,type:"module"},t),(t=Kt.get(u))&&dc(e,t),f=i.createElement("script"),et(f),lt(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function eg(e,t,i,o){var u=(u=ye.current)?ro(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=xi(i.href),i=Ha(u).hoistableStyles,o=i.get(t),o||(o={type:"style",instance:null,count:0,state:null},i.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=xi(i.href);var f=Ha(u).hoistableStyles,y=f.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,y),(f=u.querySelector(ws(e)))&&!f._p&&(y.instance=f,y.state.loading=5),Kt.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Kt.set(e,i),f||uS(u,e,i,y.state))),t&&o===null)throw Error(l(528,""));return y}if(t&&o!==null)throw Error(l(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vi(i),i=Ha(u).hoistableScripts,o=i.get(t),o||(o={type:"script",instance:null,count:0,state:null},i.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function xi(e){return'href="'+zt(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function tg(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function uS(e,t,i,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),lt(t,"link",i),et(t),e.head.appendChild(t))}function vi(e){return'[src="'+zt(e)+'"]'}function Cs(e){return"script[async]"+e}function ng(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+zt(i.href)+'"]');if(o)return t.instance=o,et(o),o;var u=x({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),et(o),lt(o,"style",u),uo(o,i.precedence,e),t.instance=o;case"stylesheet":u=xi(i.href);var f=e.querySelector(ws(u));if(f)return t.state.loading|=4,t.instance=f,et(f),f;o=tg(i),(u=Kt.get(u))&&fc(o,u),f=(e.ownerDocument||e).createElement("link"),et(f);var y=f;return y._p=new Promise(function(b,C){y.onload=b,y.onerror=C}),lt(f,"link",o),t.state.loading|=4,uo(f,i.precedence,e),t.instance=f;case"script":return f=vi(i.src),(u=e.querySelector(Cs(f)))?(t.instance=u,et(u),u):(o=i,(u=Kt.get(f))&&(o=x({},i),dc(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),et(u),lt(u,"link",o),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,uo(o,i.precedence,e));return t.instance}function uo(e,t,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,y=0;y<o.length;y++){var b=o[y];if(b.dataset.precedence===t)f=b;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var co=null;function ag(e,t,i){if(co===null){var o=new Map,u=co=new Map;u.set(i,o)}else u=co,o=u.get(i),o||(o=new Map,u.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var f=i[u];if(!(f[Hi]||f[nt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(t)||"";y=e+y;var b=o.get(y);b?b.push(f):o.set(y,[f])}}return o}function ig(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function cS(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fS(e,t,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=xi(o.href),f=t.querySelector(ws(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fo.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=f,et(f);return}f=t.ownerDocument||t,o=tg(o),(u=Kt.get(u))&&fc(o,u),f=f.createElement("link"),et(f);var y=f;y._p=new Promise(function(b,C){y.onload=b,y.onerror=C}),lt(f,"link",o),i.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=fo.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var hc=0;function dS(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var o=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*X1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>hc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ho=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ho=new Map,t.forEach(hS,e),ho=null,fo.call(e))}function hS(e,t){if(!(t.state.loading&4)){var i=ho.get(e);if(i)var o=i.get(null);else{i=new Map,ho.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var y=u[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),o=y)}o&&i.set(null,o)}u=t.instance,y=u.getAttribute("data-precedence"),f=i.get(y)||o,f===o&&i.set(null,u),i.set(y,u),this.count++,o=fo.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Es={$$typeof:z,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function mS(e,t,i,o,u,f,y,b,C){this.tag=1,this.containerInfo=e,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=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function lg(e,t,i,o,u,f,y,b,C,k,G,P){return e=new mS(e,t,i,y,C,k,G,P,b),t=1,f===!0&&(t|=24),f=jt(3,null,null,t),e.current=f,f.stateNode=e,t=Xr(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:i,cache:t},Zr(f),e}function og(e){return e?(e=Za,e):Za}function rg(e,t,i,o,u,f){u=og(u),o.context===null?o.context=u:o.pendingContext=u,o=Hn(t),o.payload={element:i},f=f===void 0?null:f,f!==null&&(o.callback=f),i=qn(e,o,t),i!==null&&(St(i,e,t),as(i,e,t))}function ug(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function mc(e,t){ug(e,t),(e=e.alternate)&&ug(e,t)}function cg(e){if(e.tag===13||e.tag===31){var t=ya(e,67108864);t!==null&&St(t,e,67108864),mc(e,67108864)}}function fg(e){if(e.tag===13||e.tag===31){var t=Ot();t=ur(t);var i=ya(e,t);i!==null&&St(i,e,t),mc(e,t)}}var po=!0;function pS(e,t,i,o){var u=D.T;D.T=null;var f=B.p;try{B.p=2,pc(e,t,i,o)}finally{B.p=f,D.T=u}}function gS(e,t,i,o){var u=D.T;D.T=null;var f=B.p;try{B.p=8,pc(e,t,i,o)}finally{B.p=f,D.T=u}}function pc(e,t,i,o){if(po){var u=gc(o);if(u===null)tc(e,t,o,go,i),hg(e,o);else if(xS(u,e,t,i,o))o.stopPropagation();else if(hg(e,o),t&4&&-1<yS.indexOf(e)){for(;u!==null;){var f=Ba(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=da(f.pendingLanes);if(y!==0){var b=f;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var C=1<<31-Ct(y);b.entanglements[1]|=C,y&=~C}sn(f),(je&6)===0&&(Jl=Tt()+500,vs(0))}}break;case 31:case 13:b=ya(f,2),b!==null&&St(b,f,2),Il(),mc(f,2)}if(f=gc(o),f===null&&tc(e,t,o,go,i),f===u)break;u=f}u!==null&&o.stopPropagation()}else tc(e,t,o,null,i)}}function gc(e){return e=xr(e),yc(e)}var go=null;function yc(e){if(go=null,e=Ua(e),e!==null){var t=c(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=d(t),e!==null)return e;e=null}else if(i===31){if(e=h(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return go=e,null}function dg(e){switch(e){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(nb()){case bd:return 2;case Sd:return 8;case il:case ab:return 32;case Td:return 268435456;default:return 32}default:return 32}}var xc=!1,Wn=null,In=null,ea=null,js=new Map,As=new Map,ta=[],yS="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 hg(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":js.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function Ns(e,t,i,o,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:i,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},t!==null&&(t=Ba(t),t!==null&&cg(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function xS(e,t,i,o,u){switch(t){case"focusin":return Wn=Ns(Wn,e,t,i,o,u),!0;case"dragenter":return In=Ns(In,e,t,i,o,u),!0;case"mouseover":return ea=Ns(ea,e,t,i,o,u),!0;case"pointerover":var f=u.pointerId;return js.set(f,Ns(js.get(f)||null,e,t,i,o,u)),!0;case"gotpointercapture":return f=u.pointerId,As.set(f,Ns(As.get(f)||null,e,t,i,o,u)),!0}return!1}function mg(e){var t=Ua(e.target);if(t!==null){var i=c(t);if(i!==null){if(t=i.tag,t===13){if(t=d(i),t!==null){e.blockedOn=t,Nd(e.priority,function(){fg(i)});return}}else if(t===31){if(t=h(i),t!==null){e.blockedOn=t,Nd(e.priority,function(){fg(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=gc(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);yr=o,i.target.dispatchEvent(o),yr=null}else return t=Ba(i),t!==null&&cg(t),e.blockedOn=i,!1;t.shift()}return!0}function pg(e,t,i){yo(e)&&i.delete(t)}function vS(){xc=!1,Wn!==null&&yo(Wn)&&(Wn=null),In!==null&&yo(In)&&(In=null),ea!==null&&yo(ea)&&(ea=null),js.forEach(pg),As.forEach(pg)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,vS)))}var vo=null;function gg(e){vo!==e&&(vo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vo===e&&(vo=null);for(var t=0;t<e.length;t+=3){var i=e[t],o=e[t+1],u=e[t+2];if(typeof o!="function"){if(yc(o||i)===null)continue;break}var f=Ba(i);f!==null&&(e.splice(t,3),t-=3,gu(f,{pending:!0,data:u,method:i.method,action:o},o,u))}}))}function bi(e){function t(C){return xo(C,e)}Wn!==null&&xo(Wn,e),In!==null&&xo(In,e),ea!==null&&xo(ea,e),js.forEach(t),As.forEach(t);for(var i=0;i<ta.length;i++){var o=ta[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ta.length&&(i=ta[0],i.blockedOn===null);)mg(i),i.blockedOn===null&&ta.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var u=i[o],f=i[o+1],y=u[pt]||null;if(typeof f=="function")y||gg(i);else if(y){var b=null;if(f&&f.hasAttribute("formAction")){if(u=f,y=f[pt]||null)b=y.formAction;else if(yc(u)!==null)continue}else b=y.action;typeof b=="function"?i[o+1]=b:(i.splice(o,3),o-=3),gg(i)}}}function yg(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function vc(e){this._internalRoot=e}bo.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var i=t.current,o=Ot();rg(i,o,e,t,null,null)},bo.prototype.unmount=vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rg(e.current,2,null,e,null,null),Il(),t[Va]=null}};function bo(e){this._internalRoot=e}bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ad();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ta.length&&t!==0&&t<ta[i].priority;i++);ta.splice(i,0,e),i===0&&mg(e)}};var xg=a.version;if(xg!=="19.2.3")throw Error(l(527,xg,"19.2.3"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var bS={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Vi=So.inject(bS),wt=So}catch{}}return Ms.createRoot=function(e,t){if(!r(e))throw Error(l(299));var i=!1,o="",u=Em,f=jm,y=Am;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=lg(e,1,!1,null,null,i,o,null,u,f,y,yg),e[Va]=t.current,ec(e),new vc(t)},Ms.hydrateRoot=function(e,t,i){if(!r(e))throw Error(l(299));var o=!1,u="",f=Em,y=jm,b=Am,C=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),t=lg(e,1,!0,t,i??null,o,u,C,f,y,b,yg),t.context=og(null),i=t.current,o=Ot(),o=ur(o),u=Hn(o),u.callback=null,qn(i,u,o),i=o,t.current.lanes=i,Bi(t,i),sn(t),e[Va]=t.current,ec(e),new bo(t)},Ms.version="19.2.3",Ms}var Ng;function OS(){if(Ng)return Tc.exports;Ng=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(),Tc.exports=MS(),Tc.exports}var DS=OS();const ce=n=>typeof n=="string",Os=()=>{let n,a;const s=new Promise((l,r)=>{n=l,a=r});return s.resolve=n,s.reject=a,s},Rg=n=>n==null?"":""+n,_S=(n,a,s)=>{n.forEach(l=>{a[l]&&(s[l]=a[l])})},LS=/###/g,Mg=n=>n&&n.indexOf("###")>-1?n.replace(LS,"."):n,Og=n=>!n||ce(n),Vs=(n,a,s)=>{const l=ce(a)?a.split("."):a;let r=0;for(;r<l.length-1;){if(Og(n))return{};const c=Mg(l[r]);!n[c]&&s&&(n[c]=new s),Object.prototype.hasOwnProperty.call(n,c)?n=n[c]:n={},++r}return Og(n)?{}:{obj:n,k:Mg(l[r])}},Dg=(n,a,s)=>{const{obj:l,k:r}=Vs(n,a,Object);if(l!==void 0||a.length===1){l[r]=s;return}let c=a[a.length-1],d=a.slice(0,a.length-1),h=Vs(n,d,Object);for(;h.obj===void 0&&d.length;)c=`${d[d.length-1]}.${c}`,d=d.slice(0,d.length-1),h=Vs(n,d,Object),h?.obj&&typeof h.obj[`${h.k}.${c}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${c}`]=s},kS=(n,a,s,l)=>{const{obj:r,k:c}=Vs(n,a,Object);r[c]=r[c]||[],r[c].push(s)},zo=(n,a)=>{const{obj:s,k:l}=Vs(n,a);if(s&&Object.prototype.hasOwnProperty.call(s,l))return s[l]},zS=(n,a,s)=>{const l=zo(n,s);return l!==void 0?l:zo(a,s)},Ex=(n,a,s)=>{for(const l in a)l!=="__proto__"&&l!=="constructor"&&(l in n?ce(n[l])||n[l]instanceof String||ce(a[l])||a[l]instanceof String?s&&(n[l]=a[l]):Ex(n[l],a[l],s):n[l]=a[l]);return n},Si=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var VS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const US=n=>ce(n)?n.replace(/[&<>"'\/]/g,a=>VS[a]):n;class BS{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const s=this.regExpMap.get(a);if(s!==void 0)return s;const l=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,l),this.regExpQueue.push(a),l}}const HS=[" ",",","?","!",";"],qS=new BS(20),GS=(n,a,s)=>{a=a||"",s=s||"";const l=HS.filter(d=>a.indexOf(d)<0&&s.indexOf(d)<0);if(l.length===0)return!0;const r=qS.getRegExp(`(${l.map(d=>d==="?"?"\\?":d).join("|")})`);let c=!r.test(n);if(!c){const d=n.indexOf(s);d>0&&!r.test(n.substring(0,d))&&(c=!0)}return c},ef=(n,a,s=".")=>{if(!n)return;if(n[a])return Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;const l=a.split(s);let r=n;for(let c=0;c<l.length;){if(!r||typeof r!="object")return;let d,h="";for(let m=c;m<l.length;++m)if(m!==c&&(h+=s),h+=l[m],d=r[h],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&m<l.length-1)continue;c+=m-c+1;break}r=d}return r},Ks=n=>n?.replace("_","-"),YS={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,a){console?.[n]?.apply?.(console,a)}};class Vo{constructor(a,s={}){this.init(a,s)}init(a,s={}){this.prefix=s.prefix||"i18next:",this.logger=a||YS,this.options=s,this.debug=s.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,s,l,r){return r&&!this.debug?null:(ce(a[0])&&(a[0]=`${l}${this.prefix} ${a[0]}`),this.logger[s](a))}create(a){return new Vo(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new Vo(this.logger,a)}}var ln=new Vo;class Qo{constructor(){this.observers={}}on(a,s){return a.split(" ").forEach(l=>{this.observers[l]||(this.observers[l]=new Map);const r=this.observers[l].get(s)||0;this.observers[l].set(s,r+1)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a].delete(s)}}emit(a,...s){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([r,c])=>{for(let d=0;d<c;d++)r(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,c])=>{for(let d=0;d<c;d++)r.apply(r,[a,...s])})}}class _g extends Qo{constructor(a,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}getResource(a,s,l,r={}){const c=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,d=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,s],l&&(Array.isArray(l)?h.push(...l):ce(l)&&c?h.push(...l.split(c)):h.push(l)));const m=zo(this.data,h);return!m&&!s&&!l&&a.indexOf(".")>-1&&(a=h[0],s=h[1],l=h.slice(2).join(".")),m||!d||!ce(l)?m:ef(this.data?.[a]?.[s],l,c)}addResource(a,s,l,r,c={silent:!1}){const d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let h=[a,s];l&&(h=h.concat(d?l.split(d):l)),a.indexOf(".")>-1&&(h=a.split("."),r=s,s=h[1]),this.addNamespaces(s),Dg(this.data,h,r),c.silent||this.emit("added",a,s,l,r)}addResources(a,s,l,r={silent:!1}){for(const c in l)(ce(l[c])||Array.isArray(l[c]))&&this.addResource(a,s,c,l[c],{silent:!0});r.silent||this.emit("added",a,s,l)}addResourceBundle(a,s,l,r,c,d={silent:!1,skipCopy:!1}){let h=[a,s];a.indexOf(".")>-1&&(h=a.split("."),r=l,l=s,s=h[1]),this.addNamespaces(s);let m=zo(this.data,h)||{};d.skipCopy||(l=JSON.parse(JSON.stringify(l))),r?Ex(m,l,c):m={...m,...l},Dg(this.data,h,m),d.silent||this.emit("added",a,s,l)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(r=>s[r]&&Object.keys(s[r]).length>0)}toJSON(){return this.data}}var jx={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,a,s,l,r){return n.forEach(c=>{a=this.processors[c]?.process(a,s,l,r)??a}),a}};const Ax=Symbol("i18next/PATH_KEY");function KS(){const n=[],a=Object.create(null);let s;return a.get=(l,r)=>(s?.revoke?.(),r===Ax?n:(n.push(r),s=Proxy.revocable(l,a),s.proxy)),Proxy.revocable(Object.create(null),a).proxy}function tf(n,a){const{[Ax]:s}=n(KS());return s.join(a?.keySeparator??".")}const Lg={},jc=n=>!ce(n)&&typeof n!="boolean"&&typeof n!="number";class Uo extends Qo{constructor(a,s={}){super(),_S(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ln.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,s={interpolation:{}}){const l={...s};if(a==null)return!1;const r=this.resolve(a,l);if(r?.res===void 0)return!1;const c=jc(r.res);return!(l.returnObjects===!1&&c)}extractFromKey(a,s){let l=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const r=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=s.ns||this.options.defaultNS||[];const d=l&&a.indexOf(l)>-1,h=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!GS(a,l,r);if(d&&!h){const m=a.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:a,namespaces:ce(c)?[c]:c};const p=a.split(l);(l!==r||l===r&&this.options.ns.indexOf(p[0])>-1)&&(c=p.shift()),a=p.join(r)}return{key:a,namespaces:ce(c)?[c]:c}}translate(a,s,l){let r=typeof s=="object"?{...s}:s;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),a==null)return"";typeof a=="function"&&(a=tf(a,{...this.options,...r})),Array.isArray(a)||(a=[String(a)]);const c=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,d=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(a[a.length-1],r),p=m[m.length-1];let v=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const x=r.lng||this.language,S=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return S?c?{res:`${p}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${v}${h}`:c?{res:h,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:h;const w=this.resolve(a,r);let j=w?.res;const R=w?.usedKey||h,N=w?.exactUsedKey||h,_=["[object Number]","[object Function]","[object RegExp]"],O=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,F=r.count!==void 0&&!ce(r.count),H=Uo.hasDefaultValue(r),Q=F?this.pluralResolver.getSuffix(x,r.count,r):"",X=r.ordinal&&F?this.pluralResolver.getSuffix(x,r.count,{ordinal:!1}):"",q=F&&!r.ordinal&&r.count===0,$=q&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${Q}`]||r[`defaultValue${X}`]||r.defaultValue;let Z=j;z&&!j&&H&&(Z=$);const re=jc(Z),de=Object.prototype.toString.apply(Z);if(z&&Z&&re&&_.indexOf(de)<0&&!(ce(O)&&Array.isArray(Z))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,Z,{...r,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return c?(w.res=I,w.usedParams=this.getUsedParamsDetails(r),w):I}if(d){const I=Array.isArray(Z),oe=I?[]:{},ie=I?N:R;for(const D in Z)if(Object.prototype.hasOwnProperty.call(Z,D)){const B=`${ie}${d}${D}`;H&&!j?oe[D]=this.translate(B,{...r,defaultValue:jc($)?$[D]:void 0,joinArrays:!1,ns:m}):oe[D]=this.translate(B,{...r,joinArrays:!1,ns:m}),oe[D]===B&&(oe[D]=Z[D])}j=oe}}else if(z&&ce(O)&&Array.isArray(j))j=j.join(O),j&&(j=this.extendTranslation(j,a,r,l));else{let I=!1,oe=!1;!this.isValidLookup(j)&&H&&(I=!0,j=$),this.isValidLookup(j)||(oe=!0,j=h);const D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&oe?void 0:j,B=H&&$!==j&&this.options.updateMissing;if(oe||I||B){if(this.logger.log(B?"updateKey":"missingKey",x,p,h,B?$:j),d){const E=this.resolve(h,{...r,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let J=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let E=0;E<ue.length;E++)J.push(ue[E]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(r.lng||this.language):J.push(r.lng||this.language);const he=(E,Y,W)=>{const te=H&&W!==j?W:D;this.options.missingKeyHandler?this.options.missingKeyHandler(E,p,Y,te,B,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(E,p,Y,te,B,r),this.emit("missingKey",E,p,Y,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?J.forEach(E=>{const Y=this.pluralResolver.getSuffixes(E,r);q&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(W=>{he([E],h+W,r[`defaultValue${W}`]||$)})}):he(J,h,$))}j=this.extendTranslation(j,a,r,w,l),oe&&j===h&&this.options.appendNamespaceToMissingKey&&(j=`${p}${v}${h}`),(oe||I)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${v}${h}`:h,I?j:void 0,r))}return c?(w.res=j,w.usedParams=this.getUsedParamsDetails(r),w):j}extendTranslation(a,s,l,r,c){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const m=ce(a)&&(l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(m){const x=a.match(this.interpolator.nestingRegexp);p=x&&x.length}let v=l.replace&&!ce(l.replace)?l.replace:l;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),a=this.interpolator.interpolate(a,v,l.lng||this.language||r.usedLng,l),m){const x=a.match(this.interpolator.nestingRegexp),S=x&&x.length;p<S&&(l.nest=!1)}!l.lng&&r&&r.res&&(l.lng=this.language||r.usedLng),l.nest!==!1&&(a=this.interpolator.nest(a,(...x)=>c?.[0]===x[0]&&!l.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${s[0]}`),null):this.translate(...x,s),l)),l.interpolation&&this.interpolator.reset()}const d=l.postProcess||this.options.postProcess,h=ce(d)?[d]:d;return a!=null&&h?.length&&l.applyPostProcessor!==!1&&(a=jx.handle(h,a,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),a}resolve(a,s={}){let l,r,c,d,h;return ce(a)&&(a=[a]),a.forEach(m=>{if(this.isValidLookup(l))return;const p=this.extractFromKey(m,s),v=p.key;r=v;let x=p.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const S=s.count!==void 0&&!ce(s.count),w=S&&!s.ordinal&&s.count===0,j=s.context!==void 0&&(ce(s.context)||typeof s.context=="number")&&s.context!=="",R=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);x.forEach(N=>{this.isValidLookup(l)||(h=N,!Lg[`${R[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(Lg[`${R[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${R.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach(_=>{if(this.isValidLookup(l))return;d=_;const O=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(O,v,_,N,s);else{let F;S&&(F=this.pluralResolver.getSuffix(_,s.count,s));const H=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(s.ordinal&&F.indexOf(Q)===0&&O.push(v+F.replace(Q,this.options.pluralSeparator)),O.push(v+F),w&&O.push(v+H)),j){const X=`${v}${this.options.contextSeparator||"_"}${s.context}`;O.push(X),S&&(s.ordinal&&F.indexOf(Q)===0&&O.push(X+F.replace(Q,this.options.pluralSeparator)),O.push(X+F),w&&O.push(X+H))}}let z;for(;z=O.pop();)this.isValidLookup(l)||(c=z,l=this.getResource(_,N,z,s))}))})}),{res:l,usedKey:r,exactUsedKey:c,usedLng:d,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,l,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,s,l,r):this.resourceStore.getResource(a,s,l,r)}getUsedParamsDetails(a={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=a.replace&&!ce(a.replace);let r=l?a.replace:a;if(l&&typeof a.count<"u"&&(r.count=a.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!l){r={...r};for(const c of s)delete r[c]}return r}static hasDefaultValue(a){const s="defaultValue";for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&s===l.substring(0,s.length)&&a[l]!==void 0)return!0;return!1}}class kg{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ln.create("languageUtils")}getScriptPartFromCode(a){if(a=Ks(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=Ks(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(ce(a)&&a.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(a)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(l=>{if(s)return;const r=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(r))&&(s=r)}),!s&&this.options.supportedLngs&&a.forEach(l=>{if(s)return;const r=this.getScriptPartFromCode(l);if(this.isSupportedCode(r))return s=r;const c=this.getLanguagePartFromCode(l);if(this.isSupportedCode(c))return s=c;s=this.options.supportedLngs.find(d=>{if(d===c)return d;if(!(d.indexOf("-")<0&&c.indexOf("-")<0)&&(d.indexOf("-")>0&&c.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===c||d.indexOf(c)===0&&c.length>1))return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),ce(a)&&(a=[a]),Array.isArray(a))return a;if(!s)return a.default||[];let l=a[s];return l||(l=a[this.getScriptPartFromCode(s)]),l||(l=a[this.formatLanguageCode(s)]),l||(l=a[this.getLanguagePartFromCode(s)]),l||(l=a.default),l||[]}toResolveHierarchy(a,s){const l=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],a),r=[],c=d=>{d&&(this.isSupportedCode(d)?r.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ce(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(a))):ce(a)&&c(this.formatLanguageCode(a)),l.forEach(d=>{r.indexOf(d)<0&&c(this.formatLanguageCode(d))}),r}}const zg={zero:0,one:1,two:2,few:3,many:4,other:5},Vg={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class PS{constructor(a,s={}){this.languageUtils=a,this.options=s,this.logger=ln.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,s={}){const l=Ks(a==="dev"?"en":a),r=s.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:l,type:r});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let d;try{d=new Intl.PluralRules(l,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Vg;if(!a.match(/-|_/))return Vg;const m=this.languageUtils.getLanguagePartFromCode(a);d=this.getRule(m,s)}return this.pluralRulesCache[c]=d,d}needsPlural(a,s={}){let l=this.getRule(a,s);return l||(l=this.getRule("dev",s)),l?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,s,l={}){return this.getSuffixes(a,l).map(r=>`${s}${r}`)}getSuffixes(a,s={}){let l=this.getRule(a,s);return l||(l=this.getRule("dev",s)),l?l.resolvedOptions().pluralCategories.sort((r,c)=>zg[r]-zg[c]).map(r=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(a,s,l={}){const r=this.getRule(a,l);return r?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${r.select(s)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",s,l))}}const Ug=(n,a,s,l=".",r=!0)=>{let c=zS(n,a,s);return!c&&r&&ce(s)&&(c=ef(n,s,l),c===void 0&&(c=ef(a,s,l))),c},Ac=n=>n.replace(/\$/g,"$$$$");class Bg{constructor(a={}){this.logger=ln.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(s=>s),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:s,escapeValue:l,useRawValueToEscape:r,prefix:c,prefixEscaped:d,suffix:h,suffixEscaped:m,formatSeparator:p,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:S,nestingPrefixEscaped:w,nestingSuffix:j,nestingSuffixEscaped:R,nestingOptionsSeparator:N,maxReplaces:_,alwaysFormat:O}=a.interpolation;this.escape=s!==void 0?s:US,this.escapeValue=l!==void 0?l:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=c?Si(c):d||"{{",this.suffix=h?Si(h):m||"}}",this.formatSeparator=p||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=S?Si(S):w||Si("$t("),this.nestingSuffix=j?Si(j):R||Si(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=_||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(s,l)=>s?.source===l?(s.lastIndex=0,s):new RegExp(l,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,s,l,r){let c,d,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=w=>{if(w.indexOf(this.formatSeparator)<0){const _=Ug(s,m,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,l,{...r,...s,interpolationkey:w}):_}const j=w.split(this.formatSeparator),R=j.shift().trim(),N=j.join(this.formatSeparator).trim();return this.format(Ug(s,m,R,this.options.keySeparator,this.options.ignoreJSONStructure),N,l,{...r,...s,interpolationkey:R})};this.resetRegExp();const v=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Ac(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Ac(this.escape(w)):Ac(w)}].forEach(w=>{for(h=0;c=w.regex.exec(a);){const j=c[1].trim();if(d=p(j),d===void 0)if(typeof v=="function"){const N=v(a,c,r);d=ce(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,j))d="";else if(x){d=c[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${a}`),d="";else!ce(d)&&!this.useRawValueToEscape&&(d=Rg(d));const R=w.safeValue(d);if(a=a.replace(c[0],R),x?(w.regex.lastIndex+=d.length,w.regex.lastIndex-=c[0].length):w.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,s,l={}){let r,c,d;const h=(m,p)=>{const v=this.nestingOptionsSeparator;if(m.indexOf(v)<0)return m;const x=m.split(new RegExp(`${v}[ ]*{`));let S=`{${x[1]}`;m=x[0],S=this.interpolate(S,d);const w=S.match(/'/g),j=S.match(/"/g);((w?.length??0)%2===0&&!j||j.length%2!==0)&&(S=S.replace(/'/g,'"'));try{d=JSON.parse(S),p&&(d={...p,...d})}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,R),`${m}${v}${S}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,m};for(;r=this.nestingRegexp.exec(a);){let m=[];d={...l},d=d.replace&&!ce(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(m=r[1].slice(p).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),c=s(h.call(this,r[1].trim(),d),d),c&&r[0]===a&&!ce(c))return c;ce(c)||(c=Rg(c)),c||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${a}`),c=""),m.length&&(c=m.reduce((v,x)=>this.format(v,x,l.lng,{...l,interpolationkey:r[1].trim()}),c.trim())),a=a.replace(r[0],c),this.regexp.lastIndex=0}return a}}const XS=n=>{let a=n.toLowerCase().trim();const s={};if(n.indexOf("(")>-1){const l=n.split("(");a=l[0].toLowerCase().trim();const r=l[1].substring(0,l[1].length-1);a==="currency"&&r.indexOf(":")<0?s.currency||(s.currency=r.trim()):a==="relativetime"&&r.indexOf(":")<0?s.range||(s.range=r.trim()):r.split(";").forEach(d=>{if(d){const[h,...m]=d.split(":"),p=m.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();s[v]||(s[v]=p),p==="false"&&(s[v]=!1),p==="true"&&(s[v]=!0),isNaN(p)||(s[v]=parseInt(p,10))}})}return{formatName:a,formatOptions:s}},Hg=n=>{const a={};return(s,l,r)=>{let c=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(c={...c,[r.interpolationkey]:void 0});const d=l+JSON.stringify(c);let h=a[d];return h||(h=n(Ks(l),r),a[d]=h),h(s)}},FS=n=>(a,s,l)=>n(Ks(s),l)(a);class $S{constructor(a={}){this.logger=ln.create("formatter"),this.options=a,this.init(a)}init(a,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const l=s.cacheInBuiltFormats?Hg:FS;this.formats={number:l((r,c)=>{const d=new Intl.NumberFormat(r,{...c});return h=>d.format(h)}),currency:l((r,c)=>{const d=new Intl.NumberFormat(r,{...c,style:"currency"});return h=>d.format(h)}),datetime:l((r,c)=>{const d=new Intl.DateTimeFormat(r,{...c});return h=>d.format(h)}),relativetime:l((r,c)=>{const d=new Intl.RelativeTimeFormat(r,{...c});return h=>d.format(h,c.range||"day")}),list:l((r,c)=>{const d=new Intl.ListFormat(r,{...c});return h=>d.format(h)})}}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=Hg(s)}format(a,s,l,r={}){const c=s.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(h=>h.indexOf(")")>-1)){const h=c.findIndex(m=>m.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,h)].join(this.formatSeparator)}return c.reduce((h,m)=>{const{formatName:p,formatOptions:v}=XS(m);if(this.formats[p]){let x=h;try{const S=r?.formatParams?.[r.interpolationkey]||{},w=S.locale||S.lng||r.locale||r.lng||l;x=this.formats[p](h,w,{...v,...r,...S})}catch(S){this.logger.warn(S)}return x}else this.logger.warn(`there was no format function for ${p}`);return h},a)}}const QS=(n,a)=>{n.pending[a]!==void 0&&(delete n.pending[a],n.pendingCount--)};class ZS extends Qo{constructor(a,s,l,r={}){super(),this.backend=a,this.store=s,this.services=l,this.languageUtils=l.languageUtils,this.options=r,this.logger=ln.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(l,r.backend,r)}queueLoad(a,s,l,r){const c={},d={},h={},m={};return a.forEach(p=>{let v=!0;s.forEach(x=>{const S=`${p}|${x}`;!l.reload&&this.store.hasResourceBundle(p,x)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?d[S]===void 0&&(d[S]=!0):(this.state[S]=1,v=!1,d[S]===void 0&&(d[S]=!0),c[S]===void 0&&(c[S]=!0),m[x]===void 0&&(m[x]=!0)))}),v||(h[p]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(a,s,l){const r=a.split("|"),c=r[0],d=r[1];s&&this.emit("failedLoading",c,d,s),!s&&l&&this.store.addResourceBundle(c,d,l,void 0,void 0,{skipCopy:!0}),this.state[a]=s?-1:2,s&&l&&(this.state[a]=0);const h={};this.queue.forEach(m=>{kS(m.loaded,[c],d),QS(m,a),s&&m.errors.push(s),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(p=>{h[p]||(h[p]={});const v=m.loaded[p];v.length&&v.forEach(x=>{h[p][x]===void 0&&(h[p][x]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(a,s,l,r=0,c=this.retryTimeout,d){if(!a.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:l,tried:r,wait:c,callback:d});return}this.readingCalls++;const h=(p,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(p&&v&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,a,s,l,r+1,c*2,d)},c);return}d(p,v)},m=this.backend[l].bind(this.backend);if(m.length===2){try{const p=m(a,s);p&&typeof p.then=="function"?p.then(v=>h(null,v)).catch(h):h(null,p)}catch(p){h(p)}return}return m(a,s,h)}prepareLoading(a,s,l={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ce(a)&&(a=this.languageUtils.toResolveHierarchy(a)),ce(s)&&(s=[s]);const c=this.queueLoad(a,s,l,r);if(!c.toLoad.length)return c.pending.length||r(),null;c.toLoad.forEach(d=>{this.loadOne(d)})}load(a,s,l){this.prepareLoading(a,s,{},l)}reload(a,s,l){this.prepareLoading(a,s,{reload:!0},l)}loadOne(a,s=""){const l=a.split("|"),r=l[0],c=l[1];this.read(r,c,"read",void 0,void 0,(d,h)=>{d&&this.logger.warn(`${s}loading namespace ${c} for language ${r} failed`,d),!d&&h&&this.logger.log(`${s}loaded namespace ${c} for language ${r}`,h),this.loaded(a,d,h)})}saveMissing(a,s,l,r,c,d={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${l}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if(this.backend?.create){const m={...d,isUpdate:c},p=this.backend.create.bind(this.backend);if(p.length<6)try{let v;p.length===5?v=p(a,s,l,r,m):v=p(a,s,l,r),v&&typeof v.then=="function"?v.then(x=>h(null,x)).catch(h):h(null,v)}catch(v){h(v)}else p(a,s,l,r,h,m)}!a||!a[0]||this.store.addResource(a[0],s,l,r)}}}const Nc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let a={};if(typeof n[1]=="object"&&(a=n[1]),ce(n[1])&&(a.defaultValue=n[1]),ce(n[2])&&(a.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const s=n[3]||n[2];Object.keys(s).forEach(l=>{a[l]=s[l]})}return a},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qg=n=>(ce(n.ns)&&(n.ns=[n.ns]),ce(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),ce(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),To=()=>{},JS=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(s=>{typeof n[s]=="function"&&(n[s]=n[s].bind(n))})};class Us extends Qo{constructor(a={},s){if(super(),this.options=qg(a),this.services={},this.logger=ln,this.modules={external:[]},JS(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(a={},s){this.isInitializing=!0,typeof a=="function"&&(s=a,a={}),a.defaultNS==null&&a.ns&&(ce(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const l=Nc();this.options={...l,...this.options,...qg(a)},this.options.interpolation={...l.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=l.overloadTranslationOptionHandler);const r=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?ln.init(r(this.modules.logger),this.options):ln.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=$S;const v=new kg(this.options);this.store=new _g(this.options.resources,this.options);const x=this.services;x.logger=ln,x.resourceStore=this.store,x.languageUtils=v,x.pluralResolver=new PS(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==l.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(x.formatter=r(p),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new Bg(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new ZS(r(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(w,...j)=>{this.emit(w,...j)}),this.modules.languageDetector&&(x.languageDetector=r(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=r(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Uo(this.services,this.options),this.translator.on("*",(w,...j)=>{this.emit(w,...j)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,s||(s=To),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...v)=>this.store[p](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...v)=>(this.store[p](...v),this)});const h=Os(),m=()=>{const p=(v,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(x),s(v,x)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(a,s=To){let l=s;const r=ce(a)?a:this.language;if(typeof a=="function"&&(l=a),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const c=[],d=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(p=>{p!=="cimode"&&c.indexOf(p)<0&&c.push(p)})};r?d(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>d(m)),this.options.preload?.forEach?.(h=>d(h)),this.services.backendConnector.load(c,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(h)})}else l(null)}reloadResources(a,s,l){const r=Os();return typeof a=="function"&&(l=a,a=void 0),typeof s=="function"&&(l=s,s=void 0),a||(a=this.languages),s||(s=this.options.ns),l||(l=To),this.services.backendConnector.reload(a,s,c=>{r.resolve(),l(c)}),r}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&jx.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let s=0;s<this.languages.length;s++){const l=this.languages[s];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,s){this.isLanguageChangingTo=a;const l=Os();this.emit("languageChanging",a);const r=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,m)=>{m?this.isLanguageChangingTo===a&&(r(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,l.resolve((...p)=>this.t(...p)),s&&s(h,(...p)=>this.t(...p))},d=h=>{!a&&!h&&this.services.languageDetector&&(h=[]);const m=ce(h)?h:h&&h[0],p=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(ce(h)?[h]:h);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,v=>{c(v,p)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(a),l}getFixedT(a,s,l){const r=(c,d,...h)=>{let m;typeof d!="object"?m=this.options.overloadTranslationOptionHandler([c,d].concat(h)):m={...d},m.lng=m.lng||r.lng,m.lngs=m.lngs||r.lngs,m.ns=m.ns||r.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||l||r.keyPrefix);const p=this.options.keySeparator||".";let v;return m.keyPrefix&&Array.isArray(c)?v=c.map(x=>(typeof x=="function"&&(x=tf(x,{...this.options,...d})),`${m.keyPrefix}${p}${x}`)):(typeof c=="function"&&(c=tf(c,{...this.options,...d})),v=m.keyPrefix?`${m.keyPrefix}${p}${c}`:c),this.t(v,m)};return ce(a)?r.lng=a:r.lngs=a,r.ns=s,r.keyPrefix=l,r}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=s.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const d=(h,m)=>{const p=this.services.backendConnector.state[`${h}|${m}`];return p===-1||p===0||p===2};if(s.precheck){const h=s.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(l,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(l,a)&&(!r||d(c,a)))}loadNamespaces(a,s){const l=Os();return this.options.ns?(ce(a)&&(a=[a]),a.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{l.resolve(),s&&s(r)}),l):(s&&s(),Promise.resolve())}loadLanguages(a,s){const l=Os();ce(a)&&(a=[a]);const r=this.options.preload||[],c=a.filter(d=>r.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return c.length?(this.options.preload=r.concat(c),this.loadResources(d=>{l.resolve(),s&&s(d)}),l):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const r=new Intl.Locale(a);if(r&&r.getTextInfo){const c=r.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=this.services?.languageUtils||new kg(Nc());return a.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(l.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},s){const l=new Us(a,s);return l.createInstance=Us.createInstance,l}cloneInstance(a={},s=To){const l=a.forkResourceStore;l&&delete a.forkResourceStore;const r={...this.options,...a,isClone:!0},c=new Us(r);if((a.debug!==void 0||a.prefix!==void 0)&&(c.logger=c.logger.clone(a)),["store","services","language"].forEach(h=>{c[h]=this[h]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},l){const h=Object.keys(this.store.data).reduce((m,p)=>(m[p]={...this.store.data[p]},m[p]=Object.keys(m[p]).reduce((v,x)=>(v[x]={...m[p][x]},v),m[p]),m),{});c.store=new _g(h,r),c.services.resourceStore=c.store}if(a.interpolation){const m={...Nc().interpolation,...this.options.interpolation,...a.interpolation},p={...r,interpolation:m};c.services.interpolator=new Bg(p)}return c.translator=new Uo(c.services,r),c.translator.on("*",(h,...m)=>{c.emit(h,...m)}),c.init(r,s),c.translator.options=r,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mt=Us.createInstance();mt.createInstance;mt.dir;mt.init;mt.loadResources;mt.reloadResources;mt.use;mt.changeLanguage;mt.getFixedT;mt.t;mt.exists;mt.setDefaultNamespace;mt.hasLoadedNamespace;mt.loadNamespaces;mt.loadLanguages;const WS=(n,a,s,l)=>{const r=[s,{code:a,...l||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(r,"warn","react-i18next::",!0);za(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...r):console?.warn&&console.warn(...r)},Gg={},Nx=(n,a,s,l)=>{za(s)&&Gg[s]||(za(s)&&(Gg[s]=new Date),WS(n,a,s,l))},Rx=(n,a)=>()=>{if(n.isInitialized)a();else{const s=()=>{setTimeout(()=>{n.off("initialized",s)},0),a()};n.on("initialized",s)}},nf=(n,a,s)=>{n.loadNamespaces(a,Rx(n,s))},Yg=(n,a,s,l)=>{if(za(s)&&(s=[s]),n.options.preload&&n.options.preload.indexOf(a)>-1)return nf(n,s,l);s.forEach(r=>{n.options.ns.indexOf(r)<0&&n.options.ns.push(r)}),n.loadLanguages(a,Rx(n,l))},IS=(n,a,s={})=>!a.languages||!a.languages.length?(Nx(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(n,{lng:s.lng,precheck:(l,r)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!r(l.isLanguageChangingTo,n))return!1}}),za=n=>typeof n=="string",e2=n=>typeof n=="object"&&n!==null,t2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,n2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},a2=n=>n2[n],i2=n=>n.replace(t2,a2);let af={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:i2,transDefaultProps:void 0};const s2=(n={})=>{af={...af,...n}},l2=()=>af;let Mx;const o2=n=>{Mx=n},r2=()=>Mx,u2={type:"3rdParty",init(n){s2(n.options.react),o2(n)}},c2=T.createContext();class f2{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Rc={exports:{}},Mc={};var Kg;function d2(){if(Kg)return Mc;Kg=1;var n=$o();function a(x,S){return x===S&&(x!==0||1/x===1/S)||x!==x&&S!==S}var s=typeof Object.is=="function"?Object.is:a,l=n.useState,r=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function h(x,S){var w=S(),j=l({inst:{value:w,getSnapshot:S}}),R=j[0].inst,N=j[1];return c(function(){R.value=w,R.getSnapshot=S,m(R)&&N({inst:R})},[x,w,S]),r(function(){return m(R)&&N({inst:R}),x(function(){m(R)&&N({inst:R})})},[x]),d(w),w}function m(x){var S=x.getSnapshot;x=x.value;try{var w=S();return!s(x,w)}catch{return!0}}function p(x,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Mc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,Mc}var Pg;function h2(){return Pg||(Pg=1,Rc.exports=d2()),Rc.exports}var m2=h2();const p2=(n,a)=>za(a)?a:e2(a)&&za(a.defaultValue)?a.defaultValue:Array.isArray(n)?n[n.length-1]:n,g2={t:p2,ready:!1},y2=()=>()=>{},_t=(n,a={})=>{const{i18n:s}=a,{i18n:l,defaultNS:r}=T.useContext(c2)||{},c=s||l||r2();c&&!c.reportNamespaces&&(c.reportNamespaces=new f2),c||Nx(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=T.useMemo(()=>({...l2(),...c?.options?.react,...a}),[c,a]),{useSuspense:h,keyPrefix:m}=d,p=r||c?.options?.defaultNS,v=za(p)?[p]:p||["translation"],x=T.useMemo(()=>v,v);c?.reportNamespaces?.addUsedNamespaces?.(x);const S=T.useRef(0),w=T.useCallback($=>{if(!c)return y2;const{bindI18n:Z,bindI18nStore:re}=d,de=()=>{S.current+=1,$()};return Z&&c.on(Z,de),re&&c.store.on(re,de),()=>{Z&&Z.split(" ").forEach(I=>c.off(I,de)),re&&re.split(" ").forEach(I=>c.store.off(I,de))}},[c,d]),j=T.useRef(),R=T.useCallback(()=>{if(!c)return g2;const $=!!(c.isInitialized||c.initializedStoreOnce)&&x.every(ie=>IS(ie,c,d)),Z=a.lng||c.language,re=S.current,de=j.current;if(de&&de.ready===$&&de.lng===Z&&de.keyPrefix===m&&de.revision===re)return de;const oe={t:c.getFixedT(Z,d.nsMode==="fallback"?x:x[0],m),ready:$,lng:Z,keyPrefix:m,revision:re};return j.current=oe,oe},[c,x,m,d,a.lng]),[N,_]=T.useState(0),{t:O,ready:z}=m2.useSyncExternalStore(w,R,R);T.useEffect(()=>{if(c&&!z&&!h){const $=()=>_(Z=>Z+1);a.lng?Yg(c,a.lng,x,$):nf(c,x,$)}},[c,a.lng,x,z,h,N]);const F=c||{},H=T.useRef(null),Q=T.useRef(),X=$=>{const Z=Object.getOwnPropertyDescriptors($);Z.__original&&delete Z.__original;const re=Object.create(Object.getPrototypeOf($),Z);if(!Object.prototype.hasOwnProperty.call(re,"__original"))try{Object.defineProperty(re,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return re},q=T.useMemo(()=>{const $=F,Z=$?.language;let re=$;$&&(H.current&&H.current.__original===$?Q.current!==Z?(re=X($),H.current=re,Q.current=Z):re=H.current:(re=X($),H.current=re,Q.current=Z));const de=[O,re,z];return de.t=O,de.i18n=re,de.ready=z,de},[O,F,z,F.resolvedLanguage,F.language,F.languages]);if(c&&h&&!z)throw new Promise($=>{const Z=()=>$();a.lng?Yg(c,a.lng,x,Z):nf(c,x,Z)});return q},{slice:x2,forEach:v2}=[];function b2(n){return v2.call(x2.call(arguments,1),a=>{if(a)for(const s in a)n[s]===void 0&&(n[s]=a[s])}),n}function S2(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(n))}const Xg=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,T2=function(n,a){const l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(a);let c=`${n}=${r}`;if(l.maxAge>0){const d=l.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");c+=`; Max-Age=${Math.floor(d)}`}if(l.domain){if(!Xg.test(l.domain))throw new TypeError("option domain is invalid");c+=`; Domain=${l.domain}`}if(l.path){if(!Xg.test(l.path))throw new TypeError("option path is invalid");c+=`; Path=${l.path}`}if(l.expires){if(typeof l.expires.toUTCString!="function")throw new TypeError("option expires is invalid");c+=`; Expires=${l.expires.toUTCString()}`}if(l.httpOnly&&(c+="; HttpOnly"),l.secure&&(c+="; Secure"),l.sameSite)switch(typeof l.sameSite=="string"?l.sameSite.toLowerCase():l.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l.partitioned&&(c+="; Partitioned"),c},Fg={create(n,a,s,l){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+s*60*1e3)),l&&(r.domain=l),document.cookie=T2(n,a,r)},read(n){const a=`${n}=`,s=document.cookie.split(";");for(let l=0;l<s.length;l++){let r=s[l];for(;r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(a)===0)return r.substring(a.length,r.length)}return null},remove(n,a){this.create(n,"",-1,a)}};var w2={name:"cookie",lookup(n){let{lookupCookie:a}=n;if(a&&typeof document<"u")return Fg.read(a)||void 0},cacheUserLanguage(n,a){let{lookupCookie:s,cookieMinutes:l,cookieDomain:r,cookieOptions:c}=a;s&&typeof document<"u"&&Fg.create(s,n,l,r,c)}},C2={name:"querystring",lookup(n){let{lookupQuerystring:a}=n,s;if(typeof window<"u"){let{search:l}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(l=window.location.hash.substring(window.location.hash.indexOf("?")));const c=l.substring(1).split("&");for(let d=0;d<c.length;d++){const h=c[d].indexOf("=");h>0&&c[d].substring(0,h)===a&&(s=c[d].substring(h+1))}}return s}},E2={name:"hash",lookup(n){let{lookupHash:a,lookupFromHashIndex:s}=n,l;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const c=r.substring(1);if(a){const d=c.split("&");for(let h=0;h<d.length;h++){const m=d[h].indexOf("=");m>0&&d[h].substring(0,m)===a&&(l=d[h].substring(m+1))}}if(l)return l;if(!l&&s>-1){const d=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(d)?d[typeof s=="number"?s:0]?.replace("/",""):void 0}}}return l}};let Ti=null;const $g=()=>{if(Ti!==null)return Ti;try{if(Ti=typeof window<"u"&&window.localStorage!==null,!Ti)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{Ti=!1}return Ti};var j2={name:"localStorage",lookup(n){let{lookupLocalStorage:a}=n;if(a&&$g())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupLocalStorage:s}=a;s&&$g()&&window.localStorage.setItem(s,n)}};let wi=null;const Qg=()=>{if(wi!==null)return wi;try{if(wi=typeof window<"u"&&window.sessionStorage!==null,!wi)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{wi=!1}return wi};var A2={name:"sessionStorage",lookup(n){let{lookupSessionStorage:a}=n;if(a&&Qg())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupSessionStorage:s}=a;s&&Qg()&&window.sessionStorage.setItem(s,n)}},N2={name:"navigator",lookup(n){const a=[];if(typeof navigator<"u"){const{languages:s,userLanguage:l,language:r}=navigator;if(s)for(let c=0;c<s.length;c++)a.push(s[c]);l&&a.push(l),r&&a.push(r)}return a.length>0?a:void 0}},R2={name:"htmlTag",lookup(n){let{htmlTag:a}=n,s;const l=a||(typeof document<"u"?document.documentElement:null);return l&&typeof l.getAttribute=="function"&&(s=l.getAttribute("lang")),s}},M2={name:"path",lookup(n){let{lookupFromPathIndex:a}=n;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof a=="number"?a:0]?.replace("/",""):void 0}},O2={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:a}=n;const s=typeof a=="number"?a+1:1,l=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(l)return l[s]}};let Ox=!1;try{document.cookie,Ox=!0}catch{}const Dx=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ox||Dx.splice(1,1);const D2=()=>({order:Dx,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class _x{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,s)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=b2(s,this.options||{},D2()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=l,this.addDetector(w2),this.addDetector(C2),this.addDetector(j2),this.addDetector(A2),this.addDetector(N2),this.addDetector(R2),this.addDetector(M2),this.addDetector(O2),this.addDetector(E2)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return a.forEach(l=>{if(this.detectors[l]){let r=this.detectors[l].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(s=s.concat(r))}}),s=s.filter(l=>l!=null&&!S2(l)).map(l=>this.options.convertDetectedLanguage(l)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||s.forEach(l=>{this.detectors[l]&&this.detectors[l].cacheUserLanguage(a,this.options)}))}}_x.type="languageDetector";const _2={back:"Back",continue:"Continue",save:"Save",cancel:"Cancel",loading:"Loading...",saving:"Saving...",saved:"Saved",saveFailed:"Save failed",enabled:"Enabled",disabled:"Disabled",default:"Default",running:"Running",stopped:"Stopped",unknown:"Unknown",online:"Online",offline:"Offline",public:"Public",private:"Private",notSet:"Not set",notLinked:"Not linked",found:"Found",notFound:"Not Found",notChecked:"Not checked",missing:"Missing",detect:"Detect",detectAll:"Detect all",refresh:"Refresh",start:"Start",stop:"Stop",restart:"Restart",viewDetails:"View details",editSetup:"Edit setup",manageChannels:"Manage channels",viewLogs:"View logs",saveAndRestart:"Save & Restart"},L2={dashboard:"Dashboard",channels:"Channels",doctor:"Doctor"},k2={title:"Vibe Remote"},z2={title:"Vibe Remote Setup"},V2={title:"Set up Vibe Remote",subtitle:"Your local AI coding assistant for Slack.",getStarted:"Get started",feature1:"Runs locally. Your code stays on your computer.",feature2:"SaaS mode uses a cloud relay for Slack delivery, but does not store message content.",feature3:"Self-host mode runs entirely locally via Slack Socket Mode."},U2={title:"Choose Mode",saasMode:"SaaS Mode",saasDescription:"OAuth install + cloud relay + local execution (coming soon).",selfHostMode:"Self-host Mode",selfHostDescription:"Use your own Slack app + Socket Mode tokens."},B2={title:"Slack Configuration",saasDescription:"Authorize the official Slack app and wait for workspace binding.",selfHostDescription:"Create a Slack app and configure tokens for Socket Mode.",oauthPrompt:"Open OAuth in your browser to authorize Vibe Remote with your Slack workspace.",openSlackOAuth:"Open Slack OAuth",afterAuth:"After authorization, return here to continue.",botToken:"Bot User OAuth Token",botTokenHint:"Starts with",appToken:"App-Level Token",appTokenHint:"Starts with",validateTokens:"Validate Tokens",tokenValidated:"Tokens validated",authFailed:"Validation failed",tip:"Tip",important:"Important",viewManifest:"View manifest JSON",step1Title:"Create Slack App",step1Description:"Click the button below to create a new Slack app with pre-configured permissions.",step1Tip:"The manifest will be auto-filled. Just select your workspace and click Create.",createSlackApp:"Create Slack App",copyManifest:"Copy Manifest",copied:"Copied!",step2Title:"Get Bot Token",step2Description:"Install the app to your workspace and copy the Bot Token.",step2Item1:"In your new app, go to 'OAuth & Permissions'",step2Item2:"Click 'Install to Workspace'",step2Item3:"Authorize the app",step2Item4:"Copy the 'Bot User OAuth Token'",step3Title:"Get App Token",step3Description:"Generate an App-Level Token for Socket Mode connection.",step3Item1:"Go to 'Basic Information'",step3Item2:"Scroll to 'App-Level Tokens'",step3Item3:"Click 'Generate Token and Scopes'",step3Item4:"Name it (e.g., 'socket-mode')",step3Item5:"Add 'connections:write' scope and click Generate",step3Warning:"Keep this token secure. It provides full Socket Mode access.",step4Title:"Validate & Finish",step4Description:"Validate your tokens to ensure everything is configured correctly.",inviteBotTitle:"Invite the bot to channels:",step4Item1:"Open a Slack channel",step4Item2:"Type /invite @Vibe Remote",step4Item3:"The bot will now receive messages from this channel",step4Tip:"You can also right-click a channel and select 'Add apps'."},H2={title:"Agent Configuration",subtitle:"Detect local CLI paths and choose enabled backends.",defaultBackend:"Default Backend",cliPath:"CLI Path",cliPathPlaceholder:"Path to {{name}} CLI...",cliPathDetection:"CLI path detection and enablement",recommended:"(recommended)"},q2={title:"Channel Settings",subtitle:"Enable channels and configure per-channel routing.",refreshList:"Refresh List",enabledCount:"{{count}} enabled",accessPolicy:"Access Policy",accessPolicyHint:"Channels are enabled only when checked below.",noChannelsFound:"No channels found. Check token or invite bot.",noChannelsLoaded:"No channels loaded.",addTokenFirst:"Add a Slack bot token first to load channels.",workingDirectory:"Working Directory",useGlobalDefault:"Use global default",backend:"Backend",showMessageTypes:"Show Message Types",opencodeSettings:"OpenCode Settings",agent:"Agent",model:"Model",reasoningEffort:"Reasoning Effort",settingsSaved:"Settings saved",settingsSaveFailed:"Failed to save settings"},G2={title:"Review & Finish",subtitle:"Confirm settings and start Vibe Remote.",mode:"Mode",slackBotToken:"Slack Bot Token",slackAppToken:"Slack App Token",enabledAgents:"Enabled Agents",channelsConfigured:"Channels Configured",finishAndStart:"Finish & Start"},Y2={title:"Dashboard",subtitle:"Manage your local Vibe Remote instance.",serviceStatus:"Service Status",mode:"Mode",workspace:"Workspace",gateway:"Gateway",health:"Health",allSystemsOperational:"All systems operational",issuesDetected:"Issues detected",globalPolicy:"Global Policy",defaultBackend:"Default Backend",slackWorkspace:"Slack Workspace",messageHandling:"Message Handling",requireMention:"Require Mention",requireMentionHint:"Bot only responds when @mentioned",ackMode:"Ack Mode",ackModeHint:"How bot acknowledges received messages",ackReaction:"👀 Reaction",ackMessage:"Message",errorRetryLimit:"Error Retry Limit",errorRetryLimitHint:"Auto-retry with 'continue' when LLM stream errors occur (0 = no retry)",allowedChannels:"Allowed Channels",consoleServer:"Console Server",host:"Host",port:"Port",diagnostics:"Diagnostics",logLevel:"Log Level",configFile:"Config File",logs:"Logs",uiRestartMessage:"Saved. Restarting UI server...",mainServiceRestarted:"Saved. Main service restarted."},K2={title:"System Status",copyReport:"Copy Report",runChecks:"Run Checks",passed:"Passed",warnings:"Warnings",failed:"Failed"},P2={title:"System Logs",autoRefreshOn:"Auto-refresh ON",autoRefresh:"Auto-refresh",searchPlaceholder:"Search logs by message, logger, or timestamp...",allLevels:"All Levels",error:"Error",warning:"Warning",info:"Info",debug:"Debug",all:"All",entriesCount:"{{filtered}} of {{total}} entries",totalInFile:"({{total}} total in file)",jumpToLatest:"Jump to latest",loadingLogs:"Loading logs...",noLogsAvailable:"No logs available",noLogsMatch:"No logs match your filter"},X2={switchLanguage:"Language",en:"English",zh:"Chinese"},F2={common:_2,nav:L2,appShell:k2,wizard:z2,welcome:V2,modeSelection:U2,slackConfig:B2,agentDetection:H2,channelList:q2,summary:G2,dashboard:Y2,doctor:K2,logs:P2,language:X2},$2={back:"返回",continue:"继续",save:"保存",cancel:"取消",loading:"加载中...",saving:"保存中...",saved:"已保存",saveFailed:"保存失败",enabled:"已启用",disabled:"已禁用",default:"默认",running:"运行中",stopped:"已停止",unknown:"未知",online:"在线",offline:"离线",public:"公开",private:"私有",notSet:"未设置",notLinked:"未关联",found:"已找到",notFound:"未找到",notChecked:"未检测",missing:"缺失",detect:"检测",detectAll:"检测全部",refresh:"刷新",start:"启动",stop:"停止",restart:"重启",viewDetails:"查看详情",editSetup:"编辑设置",manageChannels:"管理频道",viewLogs:"查看日志",saveAndRestart:"保存并重启"},Q2={dashboard:"仪表盘",channels:"频道",doctor:"诊断"},Z2={title:"Vibe Remote"},J2={title:"Vibe Remote 设置向导"},W2={title:"设置 Vibe Remote",subtitle:"为 Slack 打造的本地 AI 编程助手",getStarted:"开始设置",feature1:"本地运行,代码留在您的电脑上",feature2:"SaaS 模式使用云端中继进行 Slack 消息传输,但不会存储消息内容",feature3:"自托管模式通过 Slack Socket Mode 完全在本地运行"},I2={title:"选择模式",saasMode:"SaaS 模式",saasDescription:"OAuth 安装 + 云端中继 + 本地执行(即将推出)",selfHostMode:"自托管模式",selfHostDescription:"使用您自己的 Slack 应用 + Socket Mode 令牌"},eT={title:"Slack 配置",saasDescription:"授权官方 Slack 应用并等待工作区绑定",selfHostDescription:"创建 Slack 应用并配置 Socket Mode 所需的令牌",oauthPrompt:"在浏览器中打开 OAuth 以授权 Vibe Remote 访问您的 Slack 工作区",openSlackOAuth:"打开 Slack OAuth",afterAuth:"授权后返回此处继续",botToken:"Bot 用户 OAuth 令牌",botTokenHint:"以此开头",appToken:"应用级别令牌",appTokenHint:"以此开头",validateTokens:"验证令牌",tokenValidated:"令牌验证成功",authFailed:"验证失败",tip:"提示",important:"重要",viewManifest:"查看配置清单 JSON",step1Title:"创建 Slack 应用",step1Description:"点击下方按钮,使用预配置的权限创建新的 Slack 应用。",step1Tip:"配置清单会自动填充,只需选择工作区并点击创建。",createSlackApp:"创建 Slack 应用",copyManifest:"复制配置清单",copied:"已复制!",step2Title:"获取 Bot 令牌",step2Description:"将应用安装到工作区并复制 Bot 令牌。",step2Item1:"在新应用中,进入「OAuth & Permissions」",step2Item2:"点击「Install to Workspace」",step2Item3:"授权应用",step2Item4:"复制「Bot User OAuth Token」",step3Title:"获取 App 令牌",step3Description:"生成用于 Socket Mode 连接的应用级别令牌。",step3Item1:"进入「Basic Information」",step3Item2:"滚动到「App-Level Tokens」",step3Item3:"点击「Generate Token and Scopes」",step3Item4:"输入名称(如 'socket-mode')",step3Item5:"添加「connections:write」权限范围,然后点击生成",step3Warning:"请妥善保管此令牌,它提供完整的 Socket Mode 访问权限。",step4Title:"验证并完成",step4Description:"验证令牌以确保配置正确。",inviteBotTitle:"邀请机器人加入频道:",step4Item1:"打开一个 Slack 频道",step4Item2:"输入 /invite @Vibe Remote",step4Item3:"机器人现在可以接收此频道的消息了",step4Tip:"也可以右键点击频道,选择「添加应用」。"},tT={title:"Agent 配置",subtitle:"检测本地 CLI 路径并选择启用的后端",defaultBackend:"默认后端",cliPath:"CLI 路径",cliPathPlaceholder:"{{name}} CLI 路径...",cliPathDetection:"CLI 路径检测和启用设置",recommended:"(推荐)"},nT={title:"频道设置",subtitle:"启用频道并配置每个频道的路由",refreshList:"刷新列表",enabledCount:"已启用 {{count}} 个",accessPolicy:"访问策略",accessPolicyHint:"只有勾选的频道才会启用",noChannelsFound:"未找到频道,请检查令牌或邀请机器人",noChannelsLoaded:"未加载频道",addTokenFirst:"请先添加 Slack Bot 令牌以加载频道",workingDirectory:"工作目录",useGlobalDefault:"使用全局默认值",backend:"后端",showMessageTypes:"显示的消息类型",opencodeSettings:"OpenCode 设置",agent:"Agent",model:"模型",reasoningEffort:"推理强度",settingsSaved:"设置已保存",settingsSaveFailed:"保存设置失败"},aT={title:"检查并完成",subtitle:"确认设置并启动 Vibe Remote",mode:"模式",slackBotToken:"Slack Bot 令牌",slackAppToken:"Slack App 令牌",enabledAgents:"已启用的 Agent",channelsConfigured:"已配置的频道",finishAndStart:"完成并启动"},iT={title:"仪表盘",subtitle:"管理您的本地 Vibe Remote 实例",serviceStatus:"服务状态",mode:"模式",workspace:"工作区",gateway:"网关",health:"健康状态",allSystemsOperational:"所有系统正常运行",issuesDetected:"检测到问题",globalPolicy:"全局策略",defaultBackend:"默认后端",slackWorkspace:"Slack 工作区",messageHandling:"消息处理",requireMention:"需要 @提及",requireMentionHint:"机器人仅在被 @提及时响应",ackMode:"确认模式",ackModeHint:"机器人如何确认收到的消息",ackReaction:"👀 表情回应",ackMessage:"消息回复",errorRetryLimit:"错误重试次数",errorRetryLimitHint:"当 LLM 流式响应出错时,自动发送 'continue' 重试(0 = 不重试)",allowedChannels:"允许的频道",consoleServer:"控制台服务器",host:"主机",port:"端口",diagnostics:"诊断",logLevel:"日志级别",configFile:"配置文件",logs:"日志",uiRestartMessage:"已保存,正在重启 UI 服务器...",mainServiceRestarted:"已保存,主服务已重启"},sT={title:"系统状态",copyReport:"复制报告",runChecks:"运行检查",passed:"通过",warnings:"警告",failed:"失败"},lT={title:"系统日志",autoRefreshOn:"自动刷新已开启",autoRefresh:"自动刷新",searchPlaceholder:"按消息、记录器或时间戳搜索日志...",allLevels:"所有级别",error:"错误",warning:"警告",info:"信息",debug:"调试",all:"全部",entriesCount:"{{filtered}} / {{total}} 条",totalInFile:"(文件中共 {{total}} 条)",jumpToLatest:"跳转到最新",loadingLogs:"加载日志中...",noLogsAvailable:"暂无日志",noLogsMatch:"没有匹配的日志"},oT={switchLanguage:"语言",en:"English",zh:"中文"},rT={common:$2,nav:Q2,appShell:Z2,wizard:J2,welcome:W2,modeSelection:I2,slackConfig:eT,agentDetection:tT,channelList:nT,summary:aT,dashboard:iT,doctor:sT,logs:lT,language:oT},uT={en:{translation:F2},zh:{translation:rT}};mt.use(_x).use(u2).init({resources:uT,fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});var Zg="popstate";function cT(n={}){function a(l,r){let{pathname:c,search:d,hash:h}=l.location;return sf("",{pathname:c,search:d,hash:h},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function s(l,r){return typeof r=="string"?r:Ps(r)}return dT(a,s,null,n)}function Be(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function $t(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function fT(){return Math.random().toString(36).substring(2,10)}function Jg(n,a){return{usr:n.state,key:n.key,idx:a}}function sf(n,a,s=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Mi(a):a,state:s,key:a&&a.key||l||fT()}}function Ps({pathname:n="/",search:a="",hash:s=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Mi(n){let a={};if(n){let s=n.indexOf("#");s>=0&&(a.hash=n.substring(s),n=n.substring(0,s));let l=n.indexOf("?");l>=0&&(a.search=n.substring(l),n=n.substring(0,l)),n&&(a.pathname=n)}return a}function dT(n,a,s,l={}){let{window:r=document.defaultView,v5Compat:c=!1}=l,d=r.history,h="POP",m=null,p=v();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function v(){return(d.state||{idx:null}).idx}function x(){h="POP";let N=v(),_=N==null?null:N-p;p=N,m&&m({action:h,location:R.location,delta:_})}function S(N,_){h="PUSH";let O=sf(R.location,N,_);p=v()+1;let z=Jg(O,p),F=R.createHref(O);try{d.pushState(z,"",F)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;r.location.assign(F)}c&&m&&m({action:h,location:R.location,delta:1})}function w(N,_){h="REPLACE";let O=sf(R.location,N,_);p=v();let z=Jg(O,p),F=R.createHref(O);d.replaceState(z,"",F),c&&m&&m({action:h,location:R.location,delta:0})}function j(N){return hT(N)}let R={get action(){return h},get location(){return n(r,d)},listen(N){if(m)throw new Error("A history only accepts one active listener");return r.addEventListener(Zg,x),m=N,()=>{r.removeEventListener(Zg,x),m=null}},createHref(N){return a(r,N)},createURL:j,encodeLocation(N){let _=j(N);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:S,replace:w,go(N){return d.go(N)}};return R}function hT(n,a=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Be(s,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:Ps(n);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=s+l),new URL(l,s)}function Lx(n,a,s="/"){return mT(n,a,s,!1)}function mT(n,a,s,l){let r=typeof a=="string"?Mi(a):a,c=Rn(r.pathname||"/",s);if(c==null)return null;let d=kx(n);pT(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let p=jT(c);h=CT(d[m],p,l)}return h}function kx(n,a=[],s=[],l="",r=!1){let c=(d,h,m=r,p)=>{let v={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(l)&&m)return;Be(v.relativePath.startsWith(l),`Absolute route path "${v.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(l.length)}let x=An([l,v.relativePath]),S=s.concat(v);d.children&&d.children.length>0&&(Be(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),kx(d.children,a,S,x,m)),!(d.path==null&&!d.index)&&a.push({path:x,score:TT(x,d.index),routesMeta:S})};return n.forEach((d,h)=>{if(d.path===""||!d.path?.includes("?"))c(d,h);else for(let m of zx(d.path))c(d,h,!0,m)}),a}function zx(n){let a=n.split("/");if(a.length===0)return[];let[s,...l]=a,r=s.endsWith("?"),c=s.replace(/\?$/,"");if(l.length===0)return r?[c,""]:[c];let d=zx(l.join("/")),h=[];return h.push(...d.map(m=>m===""?c:[c,m].join("/"))),r&&h.push(...d),h.map(m=>n.startsWith("/")&&m===""?"/":m)}function pT(n){n.sort((a,s)=>a.score!==s.score?s.score-a.score:wT(a.routesMeta.map(l=>l.childrenIndex),s.routesMeta.map(l=>l.childrenIndex)))}var gT=/^:[\w-]+$/,yT=3,xT=2,vT=1,bT=10,ST=-2,Wg=n=>n==="*";function TT(n,a){let s=n.split("/"),l=s.length;return s.some(Wg)&&(l+=ST),a&&(l+=xT),s.filter(r=>!Wg(r)).reduce((r,c)=>r+(gT.test(c)?yT:c===""?vT:bT),l)}function wT(n,a){return n.length===a.length&&n.slice(0,-1).every((l,r)=>l===a[r])?n[n.length-1]-a[a.length-1]:0}function CT(n,a,s=!1){let{routesMeta:l}=n,r={},c="/",d=[];for(let h=0;h<l.length;++h){let m=l[h],p=h===l.length-1,v=c==="/"?a:a.slice(c.length)||"/",x=Bo({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v),S=m.route;if(!x&&p&&s&&!l[l.length-1].route.index&&(x=Bo({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!x)return null;Object.assign(r,x.params),d.push({params:r,pathname:An([c,x.pathname]),pathnameBase:MT(An([c,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(c=An([c,x.pathnameBase]))}return d}function Bo(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,l]=ET(n.path,n.caseSensitive,n.end),r=a.match(s);if(!r)return null;let c=r[0],d=c.replace(/(.)\/+$/,"$1"),h=r.slice(1);return{params:l.reduce((p,{paramName:v,isOptional:x},S)=>{if(v==="*"){let j=h[S]||"";d=c.slice(0,c.length-j.length).replace(/(.)\/+$/,"$1")}const w=h[S];return x&&!w?p[v]=void 0:p[v]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:d,pattern:n}}function ET(n,a=!1,s=!0){$t(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],r="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m)=>(l.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(l.push({paramName:"*"}),r+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?r+="\\/*$":n!==""&&n!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,a?void 0:"i"),l]}function jT(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return $t(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Rn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,l=n.charAt(s);return l&&l!=="/"?null:n.slice(s)||"/"}var Vx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AT=n=>Vx.test(n);function NT(n,a="/"){let{pathname:s,search:l="",hash:r=""}=typeof n=="string"?Mi(n):n,c;if(s)if(AT(s))c=s;else{if(s.includes("//")){let d=s;s=s.replace(/\/\/+/g,"/"),$t(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${s}`)}s.startsWith("/")?c=Ig(s.substring(1),"/"):c=Ig(s,a)}else c=a;return{pathname:c,search:OT(l),hash:DT(r)}}function Ig(n,a){let s=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(r=>{r===".."?s.length>1&&s.pop():r!=="."&&s.push(r)}),s.length>1?s.join("/"):"/"}function Oc(n,a,s,l){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function RT(n){return n.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function Mf(n){let a=RT(n);return a.map((s,l)=>l===a.length-1?s.pathname:s.pathnameBase)}function Of(n,a,s,l=!1){let r;typeof n=="string"?r=Mi(n):(r={...n},Be(!r.pathname||!r.pathname.includes("?"),Oc("?","pathname","search",r)),Be(!r.pathname||!r.pathname.includes("#"),Oc("#","pathname","hash",r)),Be(!r.search||!r.search.includes("#"),Oc("#","search","hash",r)));let c=n===""||r.pathname==="",d=c?"/":r.pathname,h;if(d==null)h=s;else{let x=a.length-1;if(!l&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),x-=1;r.pathname=S.join("/")}h=x>=0?a[x]:"/"}let m=NT(r,h),p=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(p||v)&&(m.pathname+="/"),m}var An=n=>n.join("/").replace(/\/\/+/g,"/"),MT=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),OT=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,DT=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,_T=class{constructor(n,a,s,l=!1){this.status=n,this.statusText=a||"",this.internal=l,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function LT(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function kT(n){return n.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ux=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Bx(n,a){let s=n;if(typeof s!="string"||!Vx.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let l=s,r=!1;if(Ux)try{let c=new URL(window.location.href),d=s.startsWith("//")?new URL(c.protocol+s):new URL(s),h=Rn(d.pathname,a);d.origin===c.origin&&h!=null?s=h+d.search+d.hash:r=!0}catch{$t(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:r,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hx=["POST","PUT","PATCH","DELETE"];new Set(Hx);var zT=["GET",...Hx];new Set(zT);var Oi=T.createContext(null);Oi.displayName="DataRouter";var Zo=T.createContext(null);Zo.displayName="DataRouterState";var VT=T.createContext(!1),qx=T.createContext({isTransitioning:!1});qx.displayName="ViewTransition";var UT=T.createContext(new Map);UT.displayName="Fetchers";var BT=T.createContext(null);BT.displayName="Await";var Lt=T.createContext(null);Lt.displayName="Navigation";var Js=T.createContext(null);Js.displayName="Location";var en=T.createContext({outlet:null,matches:[],isDataRoute:!1});en.displayName="Route";var Df=T.createContext(null);Df.displayName="RouteError";var Gx="REACT_ROUTER_ERROR",HT="REDIRECT",qT="ROUTE_ERROR_RESPONSE";function GT(n){if(n.startsWith(`${Gx}:${HT}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function YT(n){if(n.startsWith(`${Gx}:${qT}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new _T(a.status,a.statusText,a.data)}catch{}}function KT(n,{relative:a}={}){Be(Di(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:l}=T.useContext(Lt),{hash:r,pathname:c,search:d}=Ws(n,{relative:a}),h=c;return s!=="/"&&(h=c==="/"?s:An([s,c])),l.createHref({pathname:h,search:d,hash:r})}function Di(){return T.useContext(Js)!=null}function On(){return Be(Di(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Js).location}var Yx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kx(n){T.useContext(Lt).static||T.useLayoutEffect(n)}function _f(){let{isDataRoute:n}=T.useContext(en);return n?sw():PT()}function PT(){Be(Di(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Oi),{basename:a,navigator:s}=T.useContext(Lt),{matches:l}=T.useContext(en),{pathname:r}=On(),c=JSON.stringify(Mf(l)),d=T.useRef(!1);return Kx(()=>{d.current=!0}),T.useCallback((m,p={})=>{if($t(d.current,Yx),!d.current)return;if(typeof m=="number"){s.go(m);return}let v=Of(m,JSON.parse(c),r,p.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:An([a,v.pathname])),(p.replace?s.replace:s.push)(v,p.state,p)},[a,s,c,r,n])}var XT=T.createContext(null);function FT(n){let a=T.useContext(en).outlet;return T.useMemo(()=>a&&T.createElement(XT.Provider,{value:n},a),[a,n])}function Ws(n,{relative:a}={}){let{matches:s}=T.useContext(en),{pathname:l}=On(),r=JSON.stringify(Mf(s));return T.useMemo(()=>Of(n,JSON.parse(r),l,a==="path"),[n,r,l,a])}function $T(n,a){return Px(n,a)}function Px(n,a,s,l,r){Be(Di(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=T.useContext(Lt),{matches:d}=T.useContext(en),h=d[d.length-1],m=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",x=h&&h.route;{let O=x&&x.path||"";Fx(p,!x||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
+
+Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let S=On(),w;if(a){let O=typeof a=="string"?Mi(a):a;Be(v==="/"||O.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${O.pathname}" was given in the \`location\` prop.`),w=O}else w=S;let j=w.pathname||"/",R=j;if(v!=="/"){let O=v.replace(/^\//,"").split("/");R="/"+j.replace(/^\//,"").split("/").slice(O.length).join("/")}let N=Lx(n,{pathname:R});$t(x||N!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),$t(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=IT(N&&N.map(O=>Object.assign({},O,{params:Object.assign({},m,O.params),pathname:An([v,c.encodeLocation?c.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?v:An([v,c.encodeLocation?c.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),d,s,l,r);return a&&_?T.createElement(Js.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},_):_}function QT(){let n=iw(),a=LT(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:c},"ErrorBoundary")," or"," ",T.createElement("code",{style:c},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},a),s?T.createElement("pre",{style:r},s):null,d)}var ZT=T.createElement(QT,null),Xx=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=YT(n.digest);s&&(n=s)}let a=n!==void 0?T.createElement(en.Provider,{value:this.props.routeContext},T.createElement(Df.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(JT,{error:n},a):a}};Xx.contextType=VT;var Dc=new WeakMap;function JT({children:n,error:a}){let{basename:s}=T.useContext(Lt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=GT(a.digest);if(l){let r=Dc.get(a);if(r)throw r;let c=Bx(l.location,s);if(Ux&&!Dc.get(a))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw Dc.set(a,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function WT({routeContext:n,match:a,children:s}){let l=T.useContext(Oi);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),T.createElement(en.Provider,{value:n},s)}function IT(n,a=[],s=null,l=null,r=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let c=n,d=s?.errors;if(d!=null){let v=c.findIndex(x=>x.route.id&&d?.[x.route.id]!==void 0);Be(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let h=!1,m=-1;if(s)for(let v=0;v<c.length;v++){let x=c[v];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(m=v),x.route.id){let{loaderData:S,errors:w}=s,j=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!w||w[x.route.id]===void 0);if(x.route.lazy||j){h=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}let p=s&&l?(v,x)=>{l(v,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:kT(s.matches),errorInfo:x})}:void 0;return c.reduceRight((v,x,S)=>{let w,j=!1,R=null,N=null;s&&(w=d&&x.route.id?d[x.route.id]:void 0,R=x.route.errorElement||ZT,h&&(m<0&&S===0?(Fx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,N=null):m===S&&(j=!0,N=x.route.hydrateFallbackElement||null)));let _=a.concat(c.slice(0,S+1)),O=()=>{let z;return w?z=R:j?z=N:x.route.Component?z=T.createElement(x.route.Component,null):x.route.element?z=x.route.element:z=v,T.createElement(WT,{match:x,routeContext:{outlet:v,matches:_,isDataRoute:s!=null},children:z})};return s&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?T.createElement(Xx,{location:s.location,revalidation:s.revalidation,component:R,error:w,children:O(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:p}):O()},null)}function Lf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ew(n){let a=T.useContext(Oi);return Be(a,Lf(n)),a}function tw(n){let a=T.useContext(Zo);return Be(a,Lf(n)),a}function nw(n){let a=T.useContext(en);return Be(a,Lf(n)),a}function kf(n){let a=nw(n),s=a.matches[a.matches.length-1];return Be(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function aw(){return kf("useRouteId")}function iw(){let n=T.useContext(Df),a=tw("useRouteError"),s=kf("useRouteError");return n!==void 0?n:a.errors?.[s]}function sw(){let{router:n}=ew("useNavigate"),a=kf("useNavigate"),s=T.useRef(!1);return Kx(()=>{s.current=!0}),T.useCallback(async(r,c={})=>{$t(s.current,Yx),s.current&&(typeof r=="number"?await n.navigate(r):await n.navigate(r,{fromRouteId:a,...c}))},[n,a])}var ey={};function Fx(n,a,s){!a&&!ey[n]&&(ey[n]=!0,$t(!1,s))}T.memo(lw);function lw({routes:n,future:a,state:s,onError:l}){return Px(n,void 0,s,l,a)}function $x({to:n,replace:a,state:s,relative:l}){Be(Di(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=T.useContext(Lt);$t(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=T.useContext(en),{pathname:d}=On(),h=_f(),m=Of(n,Mf(c),d,l==="path"),p=JSON.stringify(m);return T.useEffect(()=>{h(JSON.parse(p),{replace:a,state:s,relative:l})},[h,p,l,a,s]),null}function ty(n){return FT(n.context)}function aa(n){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ow({basename:n="/",children:a=null,location:s,navigationType:l="POP",navigator:r,static:c=!1,unstable_useTransitions:d}){Be(!Di(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=T.useMemo(()=>({basename:h,navigator:r,static:c,unstable_useTransitions:d,future:{}}),[h,r,c,d]);typeof s=="string"&&(s=Mi(s));let{pathname:p="/",search:v="",hash:x="",state:S=null,key:w="default"}=s,j=T.useMemo(()=>{let R=Rn(p,h);return R==null?null:{location:{pathname:R,search:v,hash:x,state:S,key:w},navigationType:l}},[h,p,v,x,S,w,l]);return $t(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${v}${x}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:T.createElement(Lt.Provider,{value:m},T.createElement(Js.Provider,{children:a,value:j}))}function rw({children:n,location:a}){return $T(lf(n),a)}function lf(n,a=[]){let s=[];return T.Children.forEach(n,(l,r)=>{if(!T.isValidElement(l))return;let c=[...a,r];if(l.type===T.Fragment){s.push.apply(s,lf(l.props.children,c));return}Be(l.type===aa,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=lf(l.props.children,c)),s.push(d)}),s}var Ro="get",Mo="application/x-www-form-urlencoded";function Jo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function uw(n){return Jo(n)&&n.tagName.toLowerCase()==="button"}function cw(n){return Jo(n)&&n.tagName.toLowerCase()==="form"}function fw(n){return Jo(n)&&n.tagName.toLowerCase()==="input"}function dw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function hw(n,a){return n.button===0&&(!a||a==="_self")&&!dw(n)}var wo=null;function mw(){if(wo===null)try{new FormData(document.createElement("form"),0),wo=!1}catch{wo=!0}return wo}var pw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _c(n){return n!=null&&!pw.has(n)?($t(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mo}"`),null):n}function gw(n,a){let s,l,r,c,d;if(cw(n)){let h=n.getAttribute("action");l=h?Rn(h,a):null,s=n.getAttribute("method")||Ro,r=_c(n.getAttribute("enctype"))||Mo,c=new FormData(n)}else if(uw(n)||fw(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||h.getAttribute("action");if(l=m?Rn(m,a):null,s=n.getAttribute("formmethod")||h.getAttribute("method")||Ro,r=_c(n.getAttribute("formenctype"))||_c(h.getAttribute("enctype"))||Mo,c=new FormData(h,n),!mw()){let{name:p,type:v,value:x}=n;if(v==="image"){let S=p?`${p}.`:"";c.append(`${S}x`,"0"),c.append(`${S}y`,"0")}else p&&c.append(p,x)}}else{if(Jo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Ro,l=null,r=Mo,d=n}return c&&r==="text/plain"&&(d=c,c=void 0),{action:l,method:s.toLowerCase(),encType:r,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function yw(n,a,s,l){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${l}`:r.pathname=`${r.pathname}.${l}`:r.pathname==="/"?r.pathname=`_root.${l}`:a&&Rn(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${l}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${l}`,r}async function xw(n,a){if(n.id in a)return a[n.id];try{let s=await import(n.module);return a[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function bw(n,a,s){let l=await Promise.all(n.map(async r=>{let c=a.routes[r.route.id];if(c){let d=await xw(c,s);return d.links?d.links():[]}return[]}));return Cw(l.flat(1).filter(vw).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function ny(n,a,s,l,r,c){let d=(m,p)=>s[p]?m.route.id!==s[p].route.id:!0,h=(m,p)=>s[p].pathname!==m.pathname||s[p].route.path?.endsWith("*")&&s[p].params["*"]!==m.params["*"];return c==="assets"?a.filter((m,p)=>d(m,p)||h(m,p)):c==="data"?a.filter((m,p)=>{let v=l.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(d(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Sw(n,a,{includeHydrateFallback:s}={}){return Tw(n.map(l=>{let r=a.routes[l.route.id];if(!r)return[];let c=[r.module];return r.clientActionModule&&(c=c.concat(r.clientActionModule)),r.clientLoaderModule&&(c=c.concat(r.clientLoaderModule)),s&&r.hydrateFallbackModule&&(c=c.concat(r.hydrateFallbackModule)),r.imports&&(c=c.concat(r.imports)),c}).flat(1))}function Tw(n){return[...new Set(n)]}function ww(n){let a={},s=Object.keys(n).sort();for(let l of s)a[l]=n[l];return a}function Cw(n,a){let s=new Set;return new Set(a),n.reduce((l,r)=>{let c=JSON.stringify(ww(r));return s.has(c)||(s.add(c),l.push({key:c,link:r})),l},[])}function Qx(){let n=T.useContext(Oi);return zf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Ew(){let n=T.useContext(Zo);return zf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Vf=T.createContext(void 0);Vf.displayName="FrameworkContext";function Zx(){let n=T.useContext(Vf);return zf(n,"You must render this element inside a <HydratedRouter> element"),n}function jw(n,a){let s=T.useContext(Vf),[l,r]=T.useState(!1),[c,d]=T.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:v,onTouchStart:x}=a,S=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=_=>{_.forEach(O=>{d(O.isIntersecting)})},N=new IntersectionObserver(R,{threshold:.5});return S.current&&N.observe(S.current),()=>{N.disconnect()}}},[n]),T.useEffect(()=>{if(l){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[l]);let w=()=>{r(!0)},j=()=>{r(!1),d(!1)};return s?n!=="intent"?[c,S,{}]:[c,S,{onFocus:Ds(h,w),onBlur:Ds(m,j),onMouseEnter:Ds(p,w),onMouseLeave:Ds(v,j),onTouchStart:Ds(x,w)}]:[!1,S,{}]}function Ds(n,a){return s=>{n&&n(s),s.defaultPrevented||a(s)}}function Aw({page:n,...a}){let{router:s}=Qx(),l=T.useMemo(()=>Lx(s.routes,n,s.basename),[s.routes,n,s.basename]);return l?T.createElement(Rw,{page:n,matches:l,...a}):null}function Nw(n){let{manifest:a,routeModules:s}=Zx(),[l,r]=T.useState([]);return T.useEffect(()=>{let c=!1;return bw(n,a,s).then(d=>{c||r(d)}),()=>{c=!0}},[n,a,s]),l}function Rw({page:n,matches:a,...s}){let l=On(),{future:r,manifest:c,routeModules:d}=Zx(),{basename:h}=Qx(),{loaderData:m,matches:p}=Ew(),v=T.useMemo(()=>ny(n,a,p,c,l,"data"),[n,a,p,c,l]),x=T.useMemo(()=>ny(n,a,p,c,l,"assets"),[n,a,p,c,l]),S=T.useMemo(()=>{if(n===l.pathname+l.search+l.hash)return[];let R=new Set,N=!1;if(a.forEach(O=>{let z=c.routes[O.route.id];!z||!z.hasLoader||(!v.some(F=>F.route.id===O.route.id)&&O.route.id in m&&d[O.route.id]?.shouldRevalidate||z.hasClientLoader?N=!0:R.add(O.route.id))}),R.size===0)return[];let _=yw(n,h,r.unstable_trailingSlashAwareDataRequests,"data");return N&&R.size>0&&_.searchParams.set("_routes",a.filter(O=>R.has(O.route.id)).map(O=>O.route.id).join(",")),[_.pathname+_.search]},[h,r.unstable_trailingSlashAwareDataRequests,m,l,c,v,a,n,d]),w=T.useMemo(()=>Sw(x,c),[x,c]),j=Nw(x);return T.createElement(T.Fragment,null,S.map(R=>T.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...s})),w.map(R=>T.createElement("link",{key:R,rel:"modulepreload",href:R,...s})),j.map(({key:R,link:N})=>T.createElement("link",{key:R,nonce:s.nonce,...N})))}function Mw(...n){return a=>{n.forEach(s=>{typeof s=="function"?s(a):s!=null&&(s.current=a)})}}var Ow=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ow&&(window.__reactRouterVersion="7.12.0")}catch{}function Dw({basename:n,children:a,unstable_useTransitions:s,window:l}){let r=T.useRef();r.current==null&&(r.current=cT({window:l,v5Compat:!0}));let c=r.current,[d,h]=T.useState({action:c.action,location:c.location}),m=T.useCallback(p=>{s===!1?h(p):T.startTransition(()=>h(p))},[s]);return T.useLayoutEffect(()=>c.listen(m),[c,m]),T.createElement(ow,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:s})}var Jx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Da=T.forwardRef(function({onClick:a,discover:s="render",prefetch:l="none",relative:r,reloadDocument:c,replace:d,state:h,target:m,to:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:S,...w},j){let{basename:R,unstable_useTransitions:N}=T.useContext(Lt),_=typeof p=="string"&&Jx.test(p),O=Bx(p,R);p=O.to;let z=KT(p,{relative:r}),[F,H,Q]=jw(l,w),X=kw(p,{replace:d,state:h,target:m,preventScrollReset:v,relative:r,viewTransition:x,unstable_defaultShouldRevalidate:S,unstable_useTransitions:N});function q(Z){a&&a(Z),Z.defaultPrevented||X(Z)}let $=T.createElement("a",{...w,...Q,href:O.absoluteURL||z,onClick:O.isExternal||c?a:q,ref:Mw(j,H),target:m,"data-discover":!_&&s==="render"?"true":void 0});return F&&!_?T.createElement(T.Fragment,null,$,T.createElement(Aw,{page:z})):$});Da.displayName="Link";var Bs=T.forwardRef(function({"aria-current":a="page",caseSensitive:s=!1,className:l="",end:r=!1,style:c,to:d,viewTransition:h,children:m,...p},v){let x=Ws(d,{relative:p.relative}),S=On(),w=T.useContext(Zo),{navigator:j,basename:R}=T.useContext(Lt),N=w!=null&&Hw(x)&&h===!0,_=j.encodeLocation?j.encodeLocation(x).pathname:x.pathname,O=S.pathname,z=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(O=O.toLowerCase(),z=z?z.toLowerCase():null,_=_.toLowerCase()),z&&R&&(z=Rn(z,R)||z);const F=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let H=O===_||!r&&O.startsWith(_)&&O.charAt(F)==="/",Q=z!=null&&(z===_||!r&&z.startsWith(_)&&z.charAt(_.length)==="/"),X={isActive:H,isPending:Q,isTransitioning:N},q=H?a:void 0,$;typeof l=="function"?$=l(X):$=[l,H?"active":null,Q?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let Z=typeof c=="function"?c(X):c;return T.createElement(Da,{...p,"aria-current":q,className:$,ref:v,style:Z,to:d,viewTransition:h},typeof m=="function"?m(X):m)});Bs.displayName="NavLink";var _w=T.forwardRef(({discover:n="render",fetcherKey:a,navigate:s,reloadDocument:l,replace:r,state:c,method:d=Ro,action:h,onSubmit:m,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:S,...w},j)=>{let{unstable_useTransitions:R}=T.useContext(Lt),N=Uw(),_=Bw(h,{relative:p}),O=d.toLowerCase()==="get"?"get":"post",z=typeof h=="string"&&Jx.test(h),F=H=>{if(m&&m(H),H.defaultPrevented)return;H.preventDefault();let Q=H.nativeEvent.submitter,X=Q?.getAttribute("formmethod")||d,q=()=>N(Q||H.currentTarget,{fetcherKey:a,method:X,navigate:s,replace:r,state:c,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:S});R&&s!==!1?T.startTransition(()=>q()):q()};return T.createElement("form",{ref:j,method:O,action:_,onSubmit:l?m:F,...w,"data-discover":!z&&n==="render"?"true":void 0})});_w.displayName="Form";function Lw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wx(n){let a=T.useContext(Oi);return Be(a,Lw(n)),a}function kw(n,{target:a,replace:s,state:l,preventScrollReset:r,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let p=_f(),v=On(),x=Ws(n,{relative:c});return T.useCallback(S=>{if(hw(S,a)){S.preventDefault();let w=s!==void 0?s:Ps(v)===Ps(x),j=()=>p(n,{replace:w,state:l,preventScrollReset:r,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:h});m?T.startTransition(()=>j()):j()}},[v,p,x,s,l,a,n,r,c,d,h,m])}var zw=0,Vw=()=>`__${String(++zw)}__`;function Uw(){let{router:n}=Wx("useSubmit"),{basename:a}=T.useContext(Lt),s=aw(),l=n.fetch,r=n.navigate;return T.useCallback(async(c,d={})=>{let{action:h,method:m,encType:p,formData:v,body:x}=gw(c,a);if(d.navigate===!1){let S=d.fetcherKey||Vw();await l(S,s,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||m,formEncType:d.encType||p,flushSync:d.flushSync})}else await r(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||m,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[l,r,a,s])}function Bw(n,{relative:a}={}){let{basename:s}=T.useContext(Lt),l=T.useContext(en);Be(l,"useFormAction must be used inside a RouteContext");let[r]=l.matches.slice(-1),c={...Ws(n||".",{relative:a})},d=On();if(n==null){c.search=d.search;let h=new URLSearchParams(c.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(x=>x).forEach(x=>h.append("index",x));let v=h.toString();c.search=v?`?${v}`:""}}return(!n||n===".")&&r.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:An([s,c.pathname])),Ps(c)}function Hw(n,{relative:a}={}){let s=T.useContext(qx);Be(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Wx("useViewTransitionState"),r=Ws(n,{relative:a});if(!s.isTransitioning)return!1;let c=Rn(s.currentLocation.pathname,l)||s.currentLocation.pathname,d=Rn(s.nextLocation.pathname,l)||s.nextLocation.pathname;return Bo(r.pathname,d)!=null||Bo(r.pathname,c)!=null}const Uf=T.createContext({});function Bf(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const Ix=typeof window<"u",ev=Ix?T.useLayoutEffect:T.useEffect,Wo=T.createContext(null);function Hf(n,a){n.indexOf(a)===-1&&n.push(a)}function qf(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const rn=(n,a,s)=>s>a?a:s<n?n:s;let Gf=()=>{};const Mn={},tv=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function nv(n){return typeof n=="object"&&n!==null}const av=n=>/^0[^.\s]+$/u.test(n);function Yf(n){let a;return()=>(a===void 0&&(a=n()),a)}const Ft=n=>n,qw=(n,a)=>s=>a(n(s)),Is=(...n)=>n.reduce(qw),Xs=(n,a,s)=>{const l=a-n;return l===0?1:(s-n)/l};class Kf{constructor(){this.subscriptions=[]}add(a){return Hf(this.subscriptions,a),()=>qf(this.subscriptions,a)}notify(a,s,l){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](a,s,l);else for(let c=0;c<r;c++){const d=this.subscriptions[c];d&&d(a,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Nn=n=>n*1e3,Xt=n=>n/1e3;function iv(n,a){return a?n*(1e3/a):0}const sv=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,Gw=1e-7,Yw=12;function Kw(n,a,s,l,r){let c,d,h=0;do d=a+(s-a)/2,c=sv(d,l,r)-n,c>0?s=d:a=d;while(Math.abs(c)>Gw&&++h<Yw);return d}function el(n,a,s,l){if(n===a&&s===l)return Ft;const r=c=>Kw(c,0,1,n,s);return c=>c===0||c===1?c:sv(r(c),a,l)}const lv=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,ov=n=>a=>1-n(1-a),rv=el(.33,1.53,.69,.99),Pf=ov(rv),uv=lv(Pf),cv=n=>(n*=2)<1?.5*Pf(n):.5*(2-Math.pow(2,-10*(n-1))),Xf=n=>1-Math.sin(Math.acos(n)),fv=ov(Xf),dv=lv(Xf),Pw=el(.42,0,1,1),Xw=el(0,0,.58,1),hv=el(.42,0,.58,1),Fw=n=>Array.isArray(n)&&typeof n[0]!="number",mv=n=>Array.isArray(n)&&typeof n[0]=="number",$w={linear:Ft,easeIn:Pw,easeInOut:hv,easeOut:Xw,circIn:Xf,circInOut:dv,circOut:fv,backIn:Pf,backInOut:uv,backOut:rv,anticipate:cv},Qw=n=>typeof n=="string",ay=n=>{if(mv(n)){Gf(n.length===4);const[a,s,l,r]=n;return el(a,s,l,r)}else if(Qw(n))return $w[n];return n},Co=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Zw(n,a){let s=new Set,l=new Set,r=!1,c=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(v){d.has(v)&&(p.schedule(v),n()),v(h)}const p={schedule:(v,x=!1,S=!1)=>{const j=S&&r?s:l;return x&&d.add(v),j.has(v)||j.add(v),v},cancel:v=>{l.delete(v),d.delete(v)},process:v=>{if(h=v,r){c=!0;return}r=!0,[s,l]=[l,s],s.forEach(m),s.clear(),r=!1,c&&(c=!1,p.process(v))}};return p}const Jw=40;function pv(n,a){let s=!1,l=!0;const r={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,d=Co.reduce((z,F)=>(z[F]=Zw(c),z),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:v,update:x,preRender:S,render:w,postRender:j}=d,R=()=>{const z=Mn.useManualTiming?r.timestamp:performance.now();s=!1,Mn.useManualTiming||(r.delta=l?1e3/60:Math.max(Math.min(z-r.timestamp,Jw),1)),r.timestamp=z,r.isProcessing=!0,h.process(r),m.process(r),p.process(r),v.process(r),x.process(r),S.process(r),w.process(r),j.process(r),r.isProcessing=!1,s&&a&&(l=!1,n(R))},N=()=>{s=!0,l=!0,r.isProcessing||n(R)};return{schedule:Co.reduce((z,F)=>{const H=d[F];return z[F]=(Q,X=!1,q=!1)=>(s||N(),H.schedule(Q,X,q)),z},{}),cancel:z=>{for(let F=0;F<Co.length;F++)d[Co[F]].cancel(z)},state:r,steps:d}}const{schedule:ze,cancel:la,state:ot,steps:Lc}=pv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ft,!0);let Oo;function Ww(){Oo=void 0}const dt={now:()=>(Oo===void 0&&dt.set(ot.isProcessing||Mn.useManualTiming?ot.timestamp:performance.now()),Oo),set:n=>{Oo=n,queueMicrotask(Ww)}},gv=n=>a=>typeof a=="string"&&a.startsWith(n),yv=gv("--"),Iw=gv("var(--"),Ff=n=>Iw(n)?eC.test(n.split("/*")[0].trim()):!1,eC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iy(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const _i={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Fs={..._i,transform:n=>rn(0,1,n)},Eo={..._i,default:1},Hs=n=>Math.round(n*1e5)/1e5,$f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tC(n){return n==null}const nC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qf=(n,a)=>s=>!!(typeof s=="string"&&nC.test(s)&&s.startsWith(n)||a&&!tC(s)&&Object.prototype.hasOwnProperty.call(s,a)),xv=(n,a,s)=>l=>{if(typeof l!="string")return l;const[r,c,d,h]=l.match($f);return{[n]:parseFloat(r),[a]:parseFloat(c),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},aC=n=>rn(0,255,n),kc={..._i,transform:n=>Math.round(aC(n))},_a={test:Qf("rgb","red"),parse:xv("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:l=1})=>"rgba("+kc.transform(n)+", "+kc.transform(a)+", "+kc.transform(s)+", "+Hs(Fs.transform(l))+")"};function iC(n){let a="",s="",l="",r="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),l=n.substring(5,7),r=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),l=n.substring(3,4),r=n.substring(4,5),a+=a,s+=s,l+=l,r+=r),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:r?parseInt(r,16)/255:1}}const of={test:Qf("#"),parse:iC,transform:_a.transform},tl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ia=tl("deg"),on=tl("%"),ee=tl("px"),sC=tl("vh"),lC=tl("vw"),sy={...on,parse:n=>on.parse(n)/100,transform:n=>on.transform(n*100)},Ci={test:Qf("hsl","hue"),parse:xv("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:l=1})=>"hsla("+Math.round(n)+", "+on.transform(Hs(a))+", "+on.transform(Hs(s))+", "+Hs(Fs.transform(l))+")"},Je={test:n=>_a.test(n)||of.test(n)||Ci.test(n),parse:n=>_a.test(n)?_a.parse(n):Ci.test(n)?Ci.parse(n):of.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?_a.transform(n):Ci.transform(n),getAnimatableNone:n=>{const a=Je.parse(n);return a.alpha=0,Je.transform(a)}},oC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rC(n){return isNaN(n)&&typeof n=="string"&&(n.match($f)?.length||0)+(n.match(oC)?.length||0)>0}const vv="number",bv="color",uC="var",cC="var(",ly="${}",fC=/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 $s(n){const a=n.toString(),s=[],l={color:[],number:[],var:[]},r=[];let c=0;const h=a.replace(fC,m=>(Je.test(m)?(l.color.push(c),r.push(bv),s.push(Je.parse(m))):m.startsWith(cC)?(l.var.push(c),r.push(uC),s.push(m)):(l.number.push(c),r.push(vv),s.push(parseFloat(m))),++c,ly)).split(ly);return{values:s,split:h,indexes:l,types:r}}function Sv(n){return $s(n).values}function Tv(n){const{split:a,types:s}=$s(n),l=a.length;return r=>{let c="";for(let d=0;d<l;d++)if(c+=a[d],r[d]!==void 0){const h=s[d];h===vv?c+=Hs(r[d]):h===bv?c+=Je.transform(r[d]):c+=r[d]}return c}}const dC=n=>typeof n=="number"?0:Je.test(n)?Je.getAnimatableNone(n):n;function hC(n){const a=Sv(n);return Tv(n)(a.map(dC))}const oa={test:rC,parse:Sv,createTransformer:Tv,getAnimatableNone:hC};function zc(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 mC({hue:n,saturation:a,lightness:s,alpha:l}){n/=360,a/=100,s/=100;let r=0,c=0,d=0;if(!a)r=c=d=s;else{const h=s<.5?s*(1+a):s+a-s*a,m=2*s-h;r=zc(m,h,n+1/3),c=zc(m,h,n),d=zc(m,h,n-1/3)}return{red:Math.round(r*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:l}}function Ho(n,a){return s=>s>0?a:n}const He=(n,a,s)=>n+(a-n)*s,Vc=(n,a,s)=>{const l=n*n,r=s*(a*a-l)+l;return r<0?0:Math.sqrt(r)},pC=[of,_a,Ci],gC=n=>pC.find(a=>a.test(n));function oy(n){const a=gC(n);if(!a)return!1;let s=a.parse(n);return a===Ci&&(s=mC(s)),s}const ry=(n,a)=>{const s=oy(n),l=oy(a);if(!s||!l)return Ho(n,a);const r={...s};return c=>(r.red=Vc(s.red,l.red,c),r.green=Vc(s.green,l.green,c),r.blue=Vc(s.blue,l.blue,c),r.alpha=He(s.alpha,l.alpha,c),_a.transform(r))},rf=new Set(["none","hidden"]);function yC(n,a){return rf.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function xC(n,a){return s=>He(n,a,s)}function Zf(n){return typeof n=="number"?xC:typeof n=="string"?Ff(n)?Ho:Je.test(n)?ry:SC:Array.isArray(n)?wv:typeof n=="object"?Je.test(n)?ry:vC:Ho}function wv(n,a){const s=[...n],l=s.length,r=n.map((c,d)=>Zf(c)(c,a[d]));return c=>{for(let d=0;d<l;d++)s[d]=r[d](c);return s}}function vC(n,a){const s={...n,...a},l={};for(const r in s)n[r]!==void 0&&a[r]!==void 0&&(l[r]=Zf(n[r])(n[r],a[r]));return r=>{for(const c in l)s[c]=l[c](r);return s}}function bC(n,a){const s=[],l={color:0,var:0,number:0};for(let r=0;r<a.values.length;r++){const c=a.types[r],d=n.indexes[c][l[c]],h=n.values[d]??0;s[r]=h,l[c]++}return s}const SC=(n,a)=>{const s=oa.createTransformer(a),l=$s(n),r=$s(a);return l.indexes.var.length===r.indexes.var.length&&l.indexes.color.length===r.indexes.color.length&&l.indexes.number.length>=r.indexes.number.length?rf.has(n)&&!r.values.length||rf.has(a)&&!l.values.length?yC(n,a):Is(wv(bC(l,r),r.values),s):Ho(n,a)};function Cv(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?He(n,a,s):Zf(n)(n,a)}const TC=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>ze.update(a,s),stop:()=>la(a),now:()=>ot.isProcessing?ot.timestamp:dt.now()}},Ev=(n,a,s=10)=>{let l="";const r=Math.max(Math.round(a/s),2);for(let c=0;c<r;c++)l+=Math.round(n(c/(r-1))*1e4)/1e4+", ";return`linear(${l.substring(0,l.length-2)})`},qo=2e4;function Jf(n){let a=0;const s=50;let l=n.next(a);for(;!l.done&&a<qo;)a+=s,l=n.next(a);return a>=qo?1/0:a}function wC(n,a=100,s){const l=s({...n,keyframes:[0,a]}),r=Math.min(Jf(l),qo);return{type:"keyframes",ease:c=>l.next(r*c).value/a,duration:Xt(r)}}const CC=5;function jv(n,a,s){const l=Math.max(a-CC,0);return iv(s-n(l),a-l)}const Ye={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},Uc=.001;function EC({duration:n=Ye.duration,bounce:a=Ye.bounce,velocity:s=Ye.velocity,mass:l=Ye.mass}){let r,c,d=1-a;d=rn(Ye.minDamping,Ye.maxDamping,d),n=rn(Ye.minDuration,Ye.maxDuration,Xt(n)),d<1?(r=p=>{const v=p*d,x=v*n,S=v-s,w=uf(p,d),j=Math.exp(-x);return Uc-S/w*j},c=p=>{const x=p*d*n,S=x*s+s,w=Math.pow(d,2)*Math.pow(p,2)*n,j=Math.exp(-x),R=uf(Math.pow(p,2),d);return(-r(p)+Uc>0?-1:1)*((S-w)*j)/R}):(r=p=>{const v=Math.exp(-p*n),x=(p-s)*n+1;return-Uc+v*x},c=p=>{const v=Math.exp(-p*n),x=(s-p)*(n*n);return v*x});const h=5/n,m=AC(r,c,h);if(n=Nn(n),isNaN(m))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:n};{const p=Math.pow(m,2)*l;return{stiffness:p,damping:d*2*Math.sqrt(l*p),duration:n}}}const jC=12;function AC(n,a,s){let l=s;for(let r=1;r<jC;r++)l=l-n(l)/a(l);return l}function uf(n,a){return n*Math.sqrt(1-a*a)}const NC=["duration","bounce"],RC=["stiffness","damping","mass"];function uy(n,a){return a.some(s=>n[s]!==void 0)}function MC(n){let a={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...n};if(!uy(n,RC)&&uy(n,NC))if(n.visualDuration){const s=n.visualDuration,l=2*Math.PI/(s*1.2),r=l*l,c=2*rn(.05,1,1-(n.bounce||0))*Math.sqrt(r);a={...a,mass:Ye.mass,stiffness:r,damping:c}}else{const s=EC(n);a={...a,...s,mass:Ye.mass},a.isResolvedFromDuration=!0}return a}function Go(n=Ye.visualDuration,a=Ye.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:l,restDelta:r}=s;const c=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:p,mass:v,duration:x,velocity:S,isResolvedFromDuration:w}=MC({...s,velocity:-Xt(s.velocity||0)}),j=S||0,R=p/(2*Math.sqrt(m*v)),N=d-c,_=Xt(Math.sqrt(m/v)),O=Math.abs(N)<5;l||(l=O?Ye.restSpeed.granular:Ye.restSpeed.default),r||(r=O?Ye.restDelta.granular:Ye.restDelta.default);let z;if(R<1){const H=uf(_,R);z=Q=>{const X=Math.exp(-R*_*Q);return d-X*((j+R*_*N)/H*Math.sin(H*Q)+N*Math.cos(H*Q))}}else if(R===1)z=H=>d-Math.exp(-_*H)*(N+(j+_*N)*H);else{const H=_*Math.sqrt(R*R-1);z=Q=>{const X=Math.exp(-R*_*Q),q=Math.min(H*Q,300);return d-X*((j+R*_*N)*Math.sinh(q)+H*N*Math.cosh(q))/H}}const F={calculatedDuration:w&&x||null,next:H=>{const Q=z(H);if(w)h.done=H>=x;else{let X=H===0?j:0;R<1&&(X=H===0?Nn(j):jv(z,H,Q));const q=Math.abs(X)<=l,$=Math.abs(d-Q)<=r;h.done=q&&$}return h.value=h.done?d:Q,h},toString:()=>{const H=Math.min(Jf(F),qo),Q=Ev(X=>F.next(H*X).value,H,30);return H+"ms "+Q},toTransition:()=>{}};return F}Go.applyToOptions=n=>{const a=wC(n,100,Go);return n.ease=a.ease,n.duration=Nn(a.duration),n.type="keyframes",n};function cf({keyframes:n,velocity:a=0,power:s=.8,timeConstant:l=325,bounceDamping:r=10,bounceStiffness:c=500,modifyTarget:d,min:h,max:m,restDelta:p=.5,restSpeed:v}){const x=n[0],S={done:!1,value:x},w=q=>h!==void 0&&q<h||m!==void 0&&q>m,j=q=>h===void 0?m:m===void 0||Math.abs(h-q)<Math.abs(m-q)?h:m;let R=s*a;const N=x+R,_=d===void 0?N:d(N);_!==N&&(R=_-x);const O=q=>-R*Math.exp(-q/l),z=q=>_+O(q),F=q=>{const $=O(q),Z=z(q);S.done=Math.abs($)<=p,S.value=S.done?_:Z};let H,Q;const X=q=>{w(S.value)&&(H=q,Q=Go({keyframes:[S.value,j(S.value)],velocity:jv(z,q,S.value),damping:r,stiffness:c,restDelta:p,restSpeed:v}))};return X(0),{calculatedDuration:null,next:q=>{let $=!1;return!Q&&H===void 0&&($=!0,F(q),X(q)),H!==void 0&&q>=H?Q.next(q-H):(!$&&F(q),S)}}}function OC(n,a,s){const l=[],r=s||Mn.mix||Cv,c=n.length-1;for(let d=0;d<c;d++){let h=r(n[d],n[d+1]);if(a){const m=Array.isArray(a)?a[d]||Ft:a;h=Is(m,h)}l.push(h)}return l}function DC(n,a,{clamp:s=!0,ease:l,mixer:r}={}){const c=n.length;if(Gf(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=OC(a,l,r),m=h.length,p=v=>{if(d&&v<n[0])return a[0];let x=0;if(m>1)for(;x<n.length-2&&!(v<n[x+1]);x++);const S=Xs(n[x],n[x+1],v);return h[x](S)};return s?v=>p(rn(n[0],n[c-1],v)):p}function _C(n,a){const s=n[n.length-1];for(let l=1;l<=a;l++){const r=Xs(0,a,l);n.push(He(s,1,r))}}function LC(n){const a=[0];return _C(a,n.length-1),a}function kC(n,a){return n.map(s=>s*a)}function zC(n,a){return n.map(()=>a||hv).splice(0,n.length-1)}function qs({duration:n=300,keyframes:a,times:s,ease:l="easeInOut"}){const r=Fw(l)?l.map(ay):ay(l),c={done:!1,value:a[0]},d=kC(s&&s.length===a.length?s:LC(a),n),h=DC(d,a,{ease:Array.isArray(r)?r:zC(a,r)});return{calculatedDuration:n,next:m=>(c.value=h(m),c.done=m>=n,c)}}const VC=n=>n!==null;function Wf(n,{repeat:a,repeatType:s="loop"},l,r=1){const c=n.filter(VC),h=r<0||a&&s!=="loop"&&a%2===1?0:c.length-1;return!h||l===void 0?c[h]:l}const UC={decay:cf,inertia:cf,tween:qs,keyframes:qs,spring:Go};function Av(n){typeof n.type=="string"&&(n.type=UC[n.type])}class If{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const BC=n=>n/100;class ed extends If{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Av(a);const{type:s=qs,repeat:l=0,repeatDelay:r=0,repeatType:c,velocity:d=0}=a;let{keyframes:h}=a;const m=s||qs;m!==qs&&typeof h[0]!="number"&&(this.mixKeyframes=Is(BC,Cv(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Jf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+r,this.totalDuration=this.resolvedDuration*(l+1)-r,this.generator=p}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:l,totalDuration:r,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return l.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:w,type:j,onUpdate:R,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-r/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const _=this.currentTime-p*(this.playbackSpeed>=0?1:-1),O=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let z=this.currentTime,F=l;if(x){const q=Math.min(this.currentTime,r)/h;let $=Math.floor(q),Z=q%1;!Z&&q>=1&&(Z=1),Z===1&&$--,$=Math.min($,x+1),$%2&&(S==="reverse"?(Z=1-Z,w&&(Z-=w/h)):S==="mirror"&&(F=d)),z=rn(0,1,Z)*h}const H=O?{done:!1,value:v[0]}:F.next(z);c&&(H.value=c(H.value));let{done:Q}=H;!O&&m!==null&&(Q=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return X&&j!==cf&&(H.value=Wf(v,this.options,N,this.speed)),R&&R(H.value),X&&this.finish(),H}then(a,s){return this.finished.then(a,s)}get duration(){return Xt(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xt(a)}get time(){return Xt(this.currentTime)}set time(a){a=Nn(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(dt.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Xt(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=TC,startTime:s}=this.options;this.driver||(this.driver=a(r=>this.tick(r))),this.options.onPlay?.();const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=s??l),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function HC(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const La=n=>n*180/Math.PI,ff=n=>{const a=La(Math.atan2(n[1],n[0]));return df(a)},qC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:ff,rotateZ:ff,skewX:n=>La(Math.atan(n[1])),skewY:n=>La(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},df=n=>(n=n%360,n<0&&(n+=360),n),cy=ff,fy=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),dy=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),GC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fy,scaleY:dy,scale:n=>(fy(n)+dy(n))/2,rotateX:n=>df(La(Math.atan2(n[6],n[5]))),rotateY:n=>df(La(Math.atan2(-n[2],n[0]))),rotateZ:cy,rotate:cy,skewX:n=>La(Math.atan(n[4])),skewY:n=>La(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function hf(n){return n.includes("scale")?1:0}function mf(n,a){if(!n||n==="none")return hf(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let l,r;if(s)l=GC,r=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);l=qC,r=h}if(!r)return hf(a);const c=l[a],d=r[1].split(",").map(KC);return typeof c=="function"?c(d):d[c]}const YC=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return mf(s,a)};function KC(n){return parseFloat(n.trim())}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ki=new Set(Li),hy=n=>n===_i||n===ee,PC=new Set(["x","y","z"]),XC=Li.filter(n=>!PC.has(n));function FC(n){const a=[];return XC.forEach(s=>{const l=n.getValue(s);l!==void 0&&(a.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),a}const sa={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:(n,{transform:a})=>mf(a,"x"),y:(n,{transform:a})=>mf(a,"y")};sa.translateX=sa.x;sa.translateY=sa.y;const ka=new Set;let pf=!1,gf=!1,yf=!1;function Nv(){if(gf){const n=Array.from(ka).filter(l=>l.needsMeasurement),a=new Set(n.map(l=>l.element)),s=new Map;a.forEach(l=>{const r=FC(l);r.length&&(s.set(l,r),l.render())}),n.forEach(l=>l.measureInitialState()),a.forEach(l=>{l.render();const r=s.get(l);r&&r.forEach(([c,d])=>{l.getValue(c)?.set(d)})}),n.forEach(l=>l.measureEndState()),n.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}gf=!1,pf=!1,ka.forEach(n=>n.complete(yf)),ka.clear()}function Rv(){ka.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(gf=!0)})}function $C(){yf=!0,Rv(),Nv(),yf=!1}class td{constructor(a,s,l,r,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=l,this.motionValue=r,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(ka.add(this),pf||(pf=!0,ze.read(Rv),ze.resolveKeyframes(Nv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:l,motionValue:r}=this;if(a[0]===null){const c=r?.get(),d=a[a.length-1];if(c!==void 0)a[0]=c;else if(l&&s){const h=l.readValue(s,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),r&&c===void 0&&r.set(a[0])}HC(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),ka.delete(this)}cancel(){this.state==="scheduled"&&(ka.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const QC=n=>n.startsWith("--");function ZC(n,a,s){QC(a)?n.style.setProperty(a,s):n.style[a]=s}const JC=Yf(()=>window.ScrollTimeline!==void 0),WC={};function IC(n,a){const s=Yf(n);return()=>WC[a]??s()}const Mv=IC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ks=([n,a,s,l])=>`cubic-bezier(${n}, ${a}, ${s}, ${l})`,my={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function Ov(n,a){if(n)return typeof n=="function"?Mv()?Ev(n,a):"ease-out":mv(n)?ks(n):Array.isArray(n)?n.map(s=>Ov(s,a)||my.easeOut):my[n]}function eE(n,a,s,{delay:l=0,duration:r=300,repeat:c=0,repeatType:d="loop",ease:h="easeOut",times:m}={},p=void 0){const v={[a]:s};m&&(v.offset=m);const x=Ov(h,r);Array.isArray(x)&&(v.easing=x);const S={delay:l,duration:r,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(v,S)}function Dv(n){return typeof n=="function"&&"applyToOptions"in n}function tE({type:n,...a}){return Dv(n)&&Mv()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class nE extends If{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:l,keyframes:r,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=a,Gf(typeof a.type!="string");const p=tE(a);this.animation=eE(s,l,r,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const v=Wf(r,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):ZC(s,l,v),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return Xt(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xt(a)}get time(){return Xt(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Nn(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&JC()?(this.animation.timeline=a,Ft):s(this)}}const _v={anticipate:cv,backInOut:uv,circInOut:dv};function aE(n){return n in _v}function iE(n){typeof n.ease=="string"&&aE(n.ease)&&(n.ease=_v[n.ease])}const Bc=10;class sE extends nE{constructor(a){iE(a),Av(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:l,onComplete:r,element:c,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new ed({...d,autoplay:!1}),m=Math.max(Bc,dt.now()-this.startTime),p=rn(0,Bc,m-Bc);s.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const py=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(oa.test(n)||n==="0")&&!n.startsWith("url("));function lE(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 oE(n,a,s,l){const r=n[0];if(r===null)return!1;if(a==="display"||a==="visibility")return!0;const c=n[n.length-1],d=py(r,a),h=py(c,a);return!d||!h?!1:lE(n)||(s==="spring"||Dv(s))&&l}function xf(n){n.duration=0,n.type="keyframes"}const rE=new Set(["opacity","clipPath","filter","transform"]),uE=Yf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function cE(n){const{motionValue:a,name:s,repeatDelay:l,repeatType:r,damping:c,type:d}=n;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return uE()&&s&&rE.has(s)&&(s!=="transform"||!p)&&!m&&!l&&r!=="mirror"&&c!==0&&d!=="inertia"}const fE=40;class dE extends If{constructor({autoplay:a=!0,delay:s=0,type:l="keyframes",repeat:r=0,repeatDelay:c=0,repeatType:d="loop",keyframes:h,name:m,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=dt.now();const S={autoplay:a,delay:s,type:l,repeat:r,repeatDelay:c,repeatType:d,name:m,motionValue:p,element:v,...x},w=v?.KeyframeResolver||td;this.keyframeResolver=new w(h,(j,R,N)=>this.onKeyframesResolved(j,R,S,!N),m,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,l,r){this.keyframeResolver=void 0;const{name:c,type:d,velocity:h,delay:m,isHandoff:p,onUpdate:v}=l;this.resolvedAt=dt.now(),oE(a,c,d,h)||((Mn.instantAnimations||!m)&&v?.(Wf(a,l,s)),a[0]=a[a.length-1],xf(l),l.repeat=0);const S={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>fE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...l,keyframes:a},w=!p&&cE(S)?new sE({...S,element:S.motionValue.owner.current}):new ed(S);w.finished.then(()=>this.notifyFinished()).catch(Ft),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$C()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const hE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mE(n){const a=hE.exec(n);if(!a)return[,];const[,s,l,r]=a;return[`--${s??l}`,r]}function Lv(n,a,s=1){const[l,r]=mE(n);if(!l)return;const c=window.getComputedStyle(a).getPropertyValue(l);if(c){const d=c.trim();return tv(d)?parseFloat(d):d}return Ff(r)?Lv(r,a,s+1):r}function nd(n,a){return n?.[a]??n?.default??n}const pE={type:"spring",stiffness:500,damping:25,restSpeed:10},gE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),yE={type:"keyframes",duration:.8},xE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vE=(n,{keyframes:a})=>a.length>2?yE:ki.has(n)?n.startsWith("scale")?gE(a[1]):pE:xE;function bE({when:n,delay:a,delayChildren:s,staggerChildren:l,staggerDirection:r,repeat:c,repeatType:d,repeatDelay:h,from:m,elapsed:p,...v}){return!!Object.keys(v).length}const SE=n=>n!==null;function TE(n,{repeat:a,repeatType:s="loop"},l){const r=n.filter(SE),c=a&&s!=="loop"&&a%2===1?0:r.length-1;return r[c]}function kv(n,a,s,l=0,r=1){const c=Array.from(n).sort((p,v)=>p.sortNodePosition(v)).indexOf(a),d=n.size,h=(d-1)*l;return typeof s=="function"?s(c,d):r===1?c*l:h-c*l}const ad=(n,a,s,l={},r,c)=>d=>{const h=nd(l,n)||{},m=h.delay||l.delay||0;let{elapsed:p=0}=l;p=p-Nn(m);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:c?void 0:r};bE(h)||Object.assign(v,vE(n,v)),v.duration&&(v.duration=Nn(v.duration)),v.repeatDelay&&(v.repeatDelay=Nn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(xf(v),v.delay===0&&(x=!0)),(Mn.instantAnimations||Mn.skipAnimations)&&(x=!0,xf(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,x&&!c&&a.get()!==void 0){const S=TE(v.keyframes,h);if(S!==void 0){ze.update(()=>{v.onUpdate(S),v.onComplete()});return}}return h.isSync?new ed(v):new dE(v)},zv=new Set(["width","height","top","left","right","bottom",...Li]),gy=30,wE=n=>!isNaN(parseFloat(n));class CE{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=l=>{const r=dt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=dt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=wE(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 Kf);const l=this.events[a].add(s);return a==="change"?()=>{l(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-l}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>gy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,gy);return iv(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ri(n,a){return new CE(n,a)}function yy(n){const a=[{},{}];return n?.values.forEach((s,l)=>{a[0][l]=s.get(),a[1][l]=s.getVelocity()}),a}function id(n,a,s,l){if(typeof a=="function"){const[r,c]=yy(l);a=a(s!==void 0?s:n.custom,r,c)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[r,c]=yy(l);a=a(s!==void 0?s:n.custom,r,c)}return a}function Ni(n,a,s){const l=n.getProps();return id(l,a,s!==void 0?s:l.custom,n)}const vf=n=>Array.isArray(n);function EE(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ri(s))}function jE(n){return vf(n)?n[n.length-1]||0:n}function AE(n,a){const s=Ni(n,a);let{transitionEnd:l={},transition:r={},...c}=s||{};c={...c,...l};for(const d in c){const h=jE(c[d]);EE(n,d,h)}}const ut=n=>!!(n&&n.getVelocity);function NE(n){return!!(ut(n)&&n.add)}function bf(n,a){const s=n.getValue("willChange");if(NE(s))return s.add(a);if(!s&&Mn.WillChange){const l=new Mn.WillChange("auto");n.addValue("willChange",l),l.add(a)}}function sd(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const RE="framerAppearId",Vv="data-"+sd(RE);function Uv(n){return n.props[Vv]}function ME({protectedKeys:n,needsAnimating:a},s){const l=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,l}function Bv(n,a,{delay:s=0,transitionOverride:l,type:r}={}){let{transition:c=n.getDefaultTransition(),transitionEnd:d,...h}=a;l&&(c=l);const m=[],p=r&&n.animationState&&n.animationState.getState()[r];for(const v in h){const x=n.getValue(v,n.latestValues[v]??null),S=h[v];if(S===void 0||p&&ME(p,v))continue;const w={delay:s,...nd(c||{},v)},j=x.get();if(j!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===j&&!w.velocity)continue;let R=!1;if(window.MotionHandoffAnimation){const _=Uv(n);if(_){const O=window.MotionHandoffAnimation(_,v,ze);O!==null&&(w.startTime=O,R=!0)}}bf(n,v),x.start(ad(v,x,S,n.shouldReduceMotion&&zv.has(v)?{type:!1}:w,n,R));const N=x.animation;N&&m.push(N)}return d&&Promise.all(m).then(()=>{ze.update(()=>{d&&AE(n,d)})}),m}function Sf(n,a,s={}){const l=Ni(n,a,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:r=n.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(r=s.transitionOverride);const c=l?()=>Promise.all(Bv(n,l,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=r;return OE(n,a,m,p,v,x,s)}:()=>Promise.resolve(),{when:h}=r;if(h){const[m,p]=h==="beforeChildren"?[c,d]:[d,c];return m().then(()=>p())}else return Promise.all([c(),d(s.delay)])}function OE(n,a,s=0,l=0,r=0,c=1,d){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(Sf(m,a,{...d,delay:s+(typeof l=="function"?0:l)+kv(n.variantChildren,m,l,r,c)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function DE(n,a,s={}){n.notify("AnimationStart",a);let l;if(Array.isArray(a)){const r=a.map(c=>Sf(n,c,s));l=Promise.all(r)}else if(typeof a=="string")l=Sf(n,a,s);else{const r=typeof a=="function"?Ni(n,a,s.custom):a;l=Promise.all(Bv(n,r,s))}return l.then(()=>{n.notify("AnimationComplete",a)})}const _E={test:n=>n==="auto",parse:n=>n},Hv=n=>a=>a.test(n),qv=[_i,ee,on,ia,lC,sC,_E],xy=n=>qv.find(Hv(n));function LE(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||av(n):!0}const kE=new Set(["brightness","contrast","saturate","opacity"]);function zE(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[l]=s.match($f)||[];if(!l)return n;const r=s.replace(l,"");let c=kE.has(a)?1:0;return l!==s&&(c*=100),a+"("+c+r+")"}const VE=/\b([a-z-]*)\(.*?\)/gu,Tf={...oa,getAnimatableNone:n=>{const a=n.match(VE);return a?a.map(zE).join(" "):n}},vy={..._i,transform:Math.round},UE={rotate:ia,rotateX:ia,rotateY:ia,rotateZ:ia,scale:Eo,scaleX:Eo,scaleY:Eo,scaleZ:Eo,skew:ia,skewX:ia,skewY:ia,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Fs,originX:sy,originY:sy,originZ:ee},ld={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,inset:ee,insetBlock:ee,insetBlockStart:ee,insetBlockEnd:ee,insetInline:ee,insetInlineStart:ee,insetInlineEnd:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,paddingBlock:ee,paddingBlockStart:ee,paddingBlockEnd:ee,paddingInline:ee,paddingInlineStart:ee,paddingInlineEnd:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,marginBlock:ee,marginBlockStart:ee,marginBlockEnd:ee,marginInline:ee,marginInlineStart:ee,marginInlineEnd:ee,backgroundPositionX:ee,backgroundPositionY:ee,...UE,zIndex:vy,fillOpacity:Fs,strokeOpacity:Fs,numOctaves:vy},BE={...ld,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Tf,WebkitFilter:Tf},Gv=n=>BE[n];function Yv(n,a){let s=Gv(n);return s!==Tf&&(s=oa),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const HE=new Set(["auto","none","0"]);function qE(n,a,s){let l=0,r;for(;l<n.length&&!r;){const c=n[l];typeof c=="string"&&!HE.has(c)&&$s(c).values.length&&(r=n[l]),l++}if(r&&s)for(const c of a)n[c]=Yv(s,r)}class GE extends td{constructor(a,s,l,r,c){super(a,s,l,r,c,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<a.length;v++){let x=a[v];if(typeof x=="string"&&(x=x.trim(),Ff(x))){const S=Lv(x,s.current);S!==void 0&&(a[v]=S),v===a.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!zv.has(l)||a.length!==2)return;const[r,c]=a,d=xy(r),h=xy(c),m=iy(r),p=iy(c);if(m!==p&&sa[l]){this.needsMeasurement=!0;return}if(d!==h)if(hy(d)&&hy(h))for(let v=0;v<a.length;v++){const x=a[v];typeof x=="string"&&(a[v]=parseFloat(x))}else sa[l]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,l=[];for(let r=0;r<a.length;r++)(a[r]===null||LE(a[r]))&&l.push(r);l.length&&qE(a,l,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:l}=this;if(!a||!a.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sa[l](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&a.getValue(l,r).jump(r,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:l}=this;if(!a||!a.current)return;const r=a.getValue(s);r&&r.jump(this.measuredOrigin,!1);const c=l.length-1,d=l[c];l[c]=sa[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function YE(n,a,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let l=document;const r=s?.[n]??l.querySelectorAll(n);return r?Array.from(r):[]}return Array.from(n)}const Kv=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Pv(n){return nv(n)&&"offsetHeight"in n}const{schedule:od}=pv(queueMicrotask,!1),It={x:!1,y:!1};function Xv(){return It.x||It.y}function KE(n){return n==="x"||n==="y"?It[n]?null:(It[n]=!0,()=>{It[n]=!1}):It.x||It.y?null:(It.x=It.y=!0,()=>{It.x=It.y=!1})}function Fv(n,a){const s=YE(n),l=new AbortController,r={passive:!0,...a,signal:l.signal};return[s,r,()=>l.abort()]}function by(n){return!(n.pointerType==="touch"||Xv())}function PE(n,a,s={}){const[l,r,c]=Fv(n,s),d=h=>{if(!by(h))return;const{target:m}=h,p=a(m,h);if(typeof p!="function"||!m)return;const v=x=>{by(x)&&(p(x),m.removeEventListener("pointerleave",v))};m.addEventListener("pointerleave",v,r)};return l.forEach(h=>{h.addEventListener("pointerenter",d,r)}),c}const $v=(n,a)=>a?n===a?!0:$v(n,a.parentElement):!1,rd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,XE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qv(n){return XE.has(n.tagName)||n.isContentEditable===!0}const Do=new WeakSet;function Sy(n){return a=>{a.key==="Enter"&&n(a)}}function Hc(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const FE=(n,a)=>{const s=n.currentTarget;if(!s)return;const l=Sy(()=>{if(Do.has(s))return;Hc(s,"down");const r=Sy(()=>{Hc(s,"up")}),c=()=>Hc(s,"cancel");s.addEventListener("keyup",r,a),s.addEventListener("blur",c,a)});s.addEventListener("keydown",l,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),a)};function Ty(n){return rd(n)&&!Xv()}function $E(n,a,s={}){const[l,r,c]=Fv(n,s),d=h=>{const m=h.currentTarget;if(!Ty(h))return;Do.add(m);const p=a(m,h),v=(w,j)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Do.has(m)&&Do.delete(m),Ty(w)&&typeof p=="function"&&p(w,{success:j})},x=w=>{v(w,m===window||m===document||s.useGlobalTarget||$v(m,w.target))},S=w=>{v(w,!1)};window.addEventListener("pointerup",x,r),window.addEventListener("pointercancel",S,r)};return l.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,r),Pv(h)&&(h.addEventListener("focus",p=>FE(p,r)),!Qv(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function Zv(n){return nv(n)&&"ownerSVGElement"in n}function QE(n){return Zv(n)&&n.tagName==="svg"}const ZE=[...qv,Je,oa],JE=n=>ZE.find(Hv(n)),wy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ei=()=>({x:wy(),y:wy()}),Cy=()=>({min:0,max:0}),Ie=()=>({x:Cy(),y:Cy()}),wf={current:null},Jv={current:!1},WE=typeof window<"u";function IE(){if(Jv.current=!0,!!WE)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>wf.current=n.matches;n.addEventListener("change",a),a()}else wf.current=!1}const ej=new WeakMap;function Io(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Qs(n){return typeof n=="string"||Array.isArray(n)}const ud=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cd=["initial",...ud];function er(n){return Io(n.animate)||cd.some(a=>Qs(n[a]))}function Wv(n){return!!(er(n)||n.variants)}function tj(n,a,s){for(const l in a){const r=a[l],c=s[l];if(ut(r))n.addValue(l,r);else if(ut(c))n.addValue(l,Ri(r,{owner:n}));else if(c!==r)if(n.hasValue(l)){const d=n.getValue(l);d.liveStyle===!0?d.jump(r):d.hasAnimated||d.set(r)}else{const d=n.getStaticValue(l);n.addValue(l,Ri(d!==void 0?d:r,{owner:n}))}}for(const l in s)a[l]===void 0&&n.removeValue(l);return a}const Ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Yo={};function Iv(n){Yo=n}function nj(){return Yo}class aj{scrapeMotionValuesFromProps(a,s,l){return{}}constructor({parent:a,props:s,presenceContext:l,reducedMotionConfig:r,blockInitialAnimation:c,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=td,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 S=dt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ze.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=p,this.parent=a,this.props=s,this.presenceContext=l,this.depth=a?a.depth+1:0,this.reducedMotionConfig=r,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=er(s),this.isVariantNode=Wv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...x}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in x){const w=x[S];m[S]!==void 0&&ut(w)&&w.set(m[S])}}mount(a){this.current=a,ej.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,l)=>this.bindToMotionValue(l,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Jv.current||IE(),this.shouldReduceMotion=wf.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),la(this.notifyUpdate),la(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const l=ki.has(a);l&&this.onBindTransform&&this.onBindTransform();const r=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&ze.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{r(),c&&c(),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 Yo){const s=Yo[a];if(!s)continue;const{isEnabled:l,Feature:r}=s;if(!this.features[a]&&r&&l(this.props)&&(this.features[a]=new r(this)),this.features[a]){const c=this.features[a];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}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 l=0;l<Ey.length;l++){const r=Ey[l];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const c="on"+r,d=a[c];d&&(this.propEventSubscriptions[r]=this.on(r,d))}this.prevMotionValues=tj(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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 l=this.values.get(a);s!==l&&(l&&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 l=this.values.get(a);return l===void 0&&s!==void 0&&(l=Ri(s===null?void 0:s,{owner:this}),this.addValue(a,l)),l}readValue(a,s){let l=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return l!=null&&(typeof l=="string"&&(tv(l)||av(l))?l=parseFloat(l):!JE(l)&&oa.test(s)&&(l=Yv(a,s)),this.setBaseTarget(a,ut(l)?l.get():l)),ut(l)?l.get():l}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let l;if(typeof s=="string"||typeof s=="object"){const c=id(this.props,s,this.presenceContext?.custom);c&&(l=c[a])}if(s&&l!==void 0)return l;const r=this.getBaseTargetFromProps(this.props,a);return r!==void 0&&!ut(r)?r:this.initialValues[a]!==void 0&&l===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new Kf),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){od.render(this.render)}}class ua{constructor(a){this.isMounted=!1,this.node=a}update(){}}class e0 extends aj{constructor(){super(...arguments),this.KeyframeResolver=GE}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const l=a.style;return l?l[s]:void 0}removeValueFromRenderState(a,{vars:s,style:l}){delete s[a],delete l[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ut(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function t0({top:n,left:a,right:s,bottom:l}){return{x:{min:a,max:s},y:{min:n,max:l}}}function ij({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function sj(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),l=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function qc(n){return n===void 0||n===1}function Cf({scale:n,scaleX:a,scaleY:s}){return!qc(n)||!qc(a)||!qc(s)}function Oa(n){return Cf(n)||n0(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function n0(n){return jy(n.x)||jy(n.y)}function jy(n){return n&&n!=="0%"}function Ko(n,a,s){const l=n-s,r=a*l;return s+r}function Ay(n,a,s,l,r){return r!==void 0&&(n=Ko(n,r,l)),Ko(n,s,l)+a}function Ef(n,a=0,s=1,l,r){n.min=Ay(n.min,a,s,l,r),n.max=Ay(n.max,a,s,l,r)}function a0(n,{x:a,y:s}){Ef(n.x,a.translate,a.scale,a.originPoint),Ef(n.y,s.translate,s.scale,s.originPoint)}const Ny=.999999999999,Ry=1.0000000000001;function lj(n,a,s,l=!1){const r=s.length;if(!r)return;a.x=a.y=1;let c,d;for(let h=0;h<r;h++){c=s[h],d=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ai(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,a0(n,d)),l&&Oa(c.latestValues)&&Ai(n,c.latestValues))}a.x<Ry&&a.x>Ny&&(a.x=1),a.y<Ry&&a.y>Ny&&(a.y=1)}function ji(n,a){n.min=n.min+a,n.max=n.max+a}function My(n,a,s,l,r=.5){const c=He(n.min,n.max,r);Ef(n,a,s,c,l)}function Ai(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 i0(n,a){return t0(sj(n.getBoundingClientRect(),a))}function oj(n,a,s){const l=i0(n,s),{scroll:r}=a;return r&&(ji(l.x,r.offset.x),ji(l.y,r.offset.y)),l}const rj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uj=Li.length;function cj(n,a,s){let l="",r=!0;for(let c=0;c<uj;c++){const d=Li[c],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(d.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||s){const p=Kv(h,ld[d]);if(!m){r=!1;const v=rj[d]||d;l+=`${v}(${p}) `}s&&(a[d]=p)}}return l=l.trim(),s?l=s(a,r?"":l):r&&(l="none"),l}function fd(n,a,s){const{style:l,vars:r,transformOrigin:c}=n;let d=!1,h=!1;for(const m in a){const p=a[m];if(ki.has(m)){d=!0;continue}else if(yv(m)){r[m]=p;continue}else{const v=Kv(p,ld[m]);m.startsWith("origin")?(h=!0,c[m]=v):l[m]=v}}if(a.transform||(d||s?l.transform=cj(a,n.transform,s):l.transform&&(l.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:v=0}=c;l.transformOrigin=`${m} ${p} ${v}`}}function s0(n,{style:a,vars:s},l,r){const c=n.style;let d;for(d in a)c[d]=a[d];r?.applyProjectionStyles(c,l);for(d in s)c.setProperty(d,s[d])}function Oy(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const _s={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(ee.test(n))n=parseFloat(n);else return n;const s=Oy(n,a.target.x),l=Oy(n,a.target.y);return`${s}% ${l}%`}},fj={correct:(n,{treeScale:a,projectionDelta:s})=>{const l=n,r=oa.parse(n);if(r.length>5)return l;const c=oa.createTransformer(n),d=typeof r[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;r[0+d]/=h,r[1+d]/=m;const p=He(h,m,.5);return typeof r[2+d]=="number"&&(r[2+d]/=p),typeof r[3+d]=="number"&&(r[3+d]/=p),c(r)}},jf={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:fj};function l0(n,{layout:a,layoutId:s}){return ki.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!jf[n]||n==="opacity")}function dd(n,a,s){const l=n.style,r=a?.style,c={};if(!l)return c;for(const d in l)(ut(l[d])||r&&ut(r[d])||l0(d,n)||s?.getValue(d)?.liveStyle!==void 0)&&(c[d]=l[d]);return c}function dj(n){return window.getComputedStyle(n)}class hj extends e0{constructor(){super(...arguments),this.type="html",this.renderInstance=s0}readValueFromInstance(a,s){if(ki.has(s))return this.projection?.isProjecting?hf(s):YC(a,s);{const l=dj(a),r=(yv(s)?l.getPropertyValue(s):l[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(a,{transformPagePoint:s}){return i0(a,s)}build(a,s,l){fd(a,s,l.transformTemplate)}scrapeMotionValuesFromProps(a,s,l){return dd(a,s,l)}}const mj={offset:"stroke-dashoffset",array:"stroke-dasharray"},pj={offset:"strokeDashoffset",array:"strokeDasharray"};function gj(n,a,s=1,l=0,r=!0){n.pathLength=1;const c=r?mj:pj;n[c.offset]=ee.transform(-l);const d=ee.transform(a),h=ee.transform(s);n[c.array]=`${d} ${h}`}const yj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function o0(n,{attrX:a,attrY:s,attrScale:l,pathLength:r,pathSpacing:c=1,pathOffset:d=0,...h},m,p,v){if(fd(n,h,p),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:S}=n;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const w of yj)x[w]!==void 0&&(S[w]=x[w],delete x[w]);a!==void 0&&(x.x=a),s!==void 0&&(x.y=s),l!==void 0&&(x.scale=l),r!==void 0&&gj(x,r,c,d,!1)}const r0=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"]),u0=n=>typeof n=="string"&&n.toLowerCase()==="svg";function xj(n,a,s,l){s0(n,a,void 0,l);for(const r in a.attrs)n.setAttribute(r0.has(r)?r:sd(r),a.attrs[r])}function c0(n,a,s){const l=dd(n,a,s);for(const r in n)if(ut(n[r])||ut(a[r])){const c=Li.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;l[c]=n[r]}return l}class vj extends e0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(ki.has(s)){const l=Gv(s);return l&&l.default||0}return s=r0.has(s)?s:sd(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,l){return c0(a,s,l)}build(a,s,l){o0(a,s,this.isSVGTag,l.transformTemplate,l.style)}renderInstance(a,s,l,r){xj(a,s,l,r)}mount(a){this.isSVGTag=u0(a.tagName),super.mount(a)}}const bj=cd.length;function f0(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?f0(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<bj;s++){const l=cd[s],r=n.props[l];(Qs(r)||r===!1)&&(a[l]=r)}return a}function d0(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let l=0;l<s;l++)if(a[l]!==n[l])return!1;return!0}const Sj=[...ud].reverse(),Tj=ud.length;function wj(n){return a=>Promise.all(a.map(({animation:s,options:l})=>DE(n,s,l)))}function Cj(n){let a=wj(n),s=Dy(),l=!0;const r=m=>(p,v)=>{const x=Ni(n,v,m==="exit"?n.presenceContext?.custom:void 0);if(x){const{transition:S,transitionEnd:w,...j}=x;p={...p,...j,...w}}return p};function c(m){a=m(n)}function d(m){const{props:p}=n,v=f0(n.parent)||{},x=[],S=new Set;let w={},j=1/0;for(let N=0;N<Tj;N++){const _=Sj[N],O=s[_],z=p[_]!==void 0?p[_]:v[_],F=Qs(z),H=_===m?O.isActive:null;H===!1&&(j=N);let Q=z===v[_]&&z!==p[_]&&F;if(Q&&l&&n.manuallyAnimateOnMount&&(Q=!1),O.protectedKeys={...w},!O.isActive&&H===null||!z&&!O.prevProp||Io(z)||typeof z=="boolean")continue;const X=Ej(O.prevProp,z);let q=X||_===m&&O.isActive&&!Q&&F||N>j&&F,$=!1;const Z=Array.isArray(z)?z:[z];let re=Z.reduce(r(_),{});H===!1&&(re={});const{prevResolvedValues:de={}}=O,I={...de,...re},oe=B=>{q=!0,S.has(B)&&($=!0,S.delete(B)),O.needsAnimating[B]=!0;const J=n.getValue(B);J&&(J.liveStyle=!1)};for(const B in I){const J=re[B],ue=de[B];if(w.hasOwnProperty(B))continue;let he=!1;vf(J)&&vf(ue)?he=!d0(J,ue):he=J!==ue,he?J!=null?oe(B):S.add(B):J!==void 0&&S.has(B)?oe(B):O.protectedKeys[B]=!0}O.prevProp=z,O.prevResolvedValues=re,O.isActive&&(w={...w,...re}),l&&n.blockInitialAnimation&&(q=!1);const ie=Q&&X;q&&(!ie||$)&&x.push(...Z.map(B=>{const J={type:_};if(typeof B=="string"&&l&&!ie&&n.manuallyAnimateOnMount&&n.parent){const{parent:ue}=n,he=Ni(ue,B);if(ue.enteringChildren&&he){const{delayChildren:E}=he.transition||{};J.delay=kv(ue.enteringChildren,n,E)}}return{animation:B,options:J}}))}if(S.size){const N={};if(typeof p.initial!="boolean"){const _=Ni(n,Array.isArray(p.initial)?p.initial[0]:p.initial);_&&_.transition&&(N.transition=_.transition)}S.forEach(_=>{const O=n.getBaseTarget(_),z=n.getValue(_);z&&(z.liveStyle=!0),N[_]=O??null}),x.push({animation:N})}let R=!!x.length;return l&&(p.initial===!1||p.initial===p.animate)&&!n.manuallyAnimateOnMount&&(R=!1),l=!1,R?a(x):Promise.resolve()}function h(m,p){if(s[m].isActive===p)return Promise.resolve();n.variantChildren?.forEach(x=>x.animationState?.setActive(m,p)),s[m].isActive=p;const v=d(m);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:c,getState:()=>s,reset:()=>{s=Dy()}}}function Ej(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!d0(a,n):!1}function Ma(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dy(){return{animate:Ma(!0),whileInView:Ma(),whileHover:Ma(),whileTap:Ma(),whileDrag:Ma(),whileFocus:Ma(),exit:Ma()}}const h0=1e-4,jj=1-h0,Aj=1+h0,m0=.01,Nj=0-m0,Rj=0+m0;function ht(n){return n.max-n.min}function Mj(n,a,s){return Math.abs(n-a)<=s}function _y(n,a,s,l=.5){n.origin=l,n.originPoint=He(a.min,a.max,n.origin),n.scale=ht(s)/ht(a),n.translate=He(s.min,s.max,n.origin)-n.originPoint,(n.scale>=jj&&n.scale<=Aj||isNaN(n.scale))&&(n.scale=1),(n.translate>=Nj&&n.translate<=Rj||isNaN(n.translate))&&(n.translate=0)}function Gs(n,a,s,l){_y(n.x,a.x,s.x,l?l.originX:void 0),_y(n.y,a.y,s.y,l?l.originY:void 0)}function Ly(n,a,s){n.min=s.min+a.min,n.max=n.min+ht(a)}function Oj(n,a,s){Ly(n.x,a.x,s.x),Ly(n.y,a.y,s.y)}function ky(n,a,s){n.min=a.min-s.min,n.max=n.min+ht(a)}function Po(n,a,s){ky(n.x,a.x,s.x),ky(n.y,a.y,s.y)}function zy(n,a,s,l,r){return n-=a,n=Ko(n,1/s,l),r!==void 0&&(n=Ko(n,1/r,l)),n}function Dj(n,a=0,s=1,l=.5,r,c=n,d=n){if(on.test(a)&&(a=parseFloat(a),a=He(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=He(c.min,c.max,l);n===c&&(h-=a),n.min=zy(n.min,a,s,h,r),n.max=zy(n.max,a,s,h,r)}function Vy(n,a,[s,l,r],c,d){Dj(n,a[s],a[l],a[r],a.scale,c,d)}const _j=["x","scaleX","originX"],Lj=["y","scaleY","originY"];function Uy(n,a,s,l){Vy(n.x,a,_j,s?s.x:void 0,l?l.x:void 0),Vy(n.y,a,Lj,s?s.y:void 0,l?l.y:void 0)}function By(n,a){n.min=a.min,n.max=a.max}function Wt(n,a){By(n.x,a.x),By(n.y,a.y)}function Hy(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function qy(n){return n.translate===0&&n.scale===1}function p0(n){return qy(n.x)&&qy(n.y)}function Gy(n,a){return n.min===a.min&&n.max===a.max}function kj(n,a){return Gy(n.x,a.x)&&Gy(n.y,a.y)}function Yy(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function g0(n,a){return Yy(n.x,a.x)&&Yy(n.y,a.y)}function Ky(n){return ht(n.x)/ht(n.y)}function Py(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function Pt(n){return[n("x"),n("y")]}function zj(n,a,s){let l="";const r=n.x.translate/a.x,c=n.y.translate/a.y,d=s?.z||0;if((r||c||d)&&(l=`translate3d(${r}px, ${c}px, ${d}px) `),(a.x!==1||a.y!==1)&&(l+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:S,skewX:w,skewY:j}=s;p&&(l=`perspective(${p}px) ${l}`),v&&(l+=`rotate(${v}deg) `),x&&(l+=`rotateX(${x}deg) `),S&&(l+=`rotateY(${S}deg) `),w&&(l+=`skewX(${w}deg) `),j&&(l+=`skewY(${j}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(l+=`scale(${h}, ${m})`),l||"none"}const y0=["TopLeft","TopRight","BottomLeft","BottomRight"],Vj=y0.length,Xy=n=>typeof n=="string"?parseFloat(n):n,Fy=n=>typeof n=="number"||ee.test(n);function Uj(n,a,s,l,r,c){r?(n.opacity=He(0,s.opacity??1,Bj(l)),n.opacityExit=He(a.opacity??1,0,Hj(l))):c&&(n.opacity=He(a.opacity??1,s.opacity??1,l));for(let d=0;d<Vj;d++){const h=`border${y0[d]}Radius`;let m=$y(a,h),p=$y(s,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Fy(m)===Fy(p)?(n[h]=Math.max(He(Xy(m),Xy(p),l),0),(on.test(p)||on.test(m))&&(n[h]+="%")):n[h]=p}(a.rotate||s.rotate)&&(n.rotate=He(a.rotate||0,s.rotate||0,l))}function $y(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const Bj=x0(0,.5,fv),Hj=x0(.5,.95,Ft);function x0(n,a,s){return l=>l<n?0:l>a?1:s(Xs(n,a,l))}function qj(n,a){const s=dt.now(),l=({timestamp:r})=>{const c=r-s;c>=a&&(la(l),n(c-a))};return ze.setup(l,!0),()=>la(l)}function Zs(n,a,s,l={passive:!0}){return n.addEventListener(a,s,l),()=>n.removeEventListener(a,s)}function _o(n){return ut(n)?n.get():n}function Gj(n,a,s){const l=ut(n)?n:Ri(n);return l.start(ad("",l,a,s)),l.animation}const Yj=(n,a)=>n.depth-a.depth;class Kj{constructor(){this.children=[],this.isDirty=!1}add(a){Hf(this.children,a),this.isDirty=!0}remove(a){qf(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(Yj),this.isDirty=!1,this.children.forEach(a)}}class Pj{constructor(){this.members=[]}add(a){Hf(this.members,a),a.scheduleRender()}remove(a){if(qf(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 l;for(let r=s;r>=0;r--){const c=this.members[r];if(c.isPresent!==!1){l=c;break}}return l?(this.promote(l),!0):!1}promote(a,s){const l=this.lead;if(a!==l&&(this.prevLead=l,this.lead=a,a.show(),l)){l.instance&&l.scheduleRender(),a.scheduleRender(),a.resumeFrom=l,s&&(a.resumeFrom.preserveOpacity=!0),l.snapshot&&(a.snapshot=l.snapshot,a.snapshot.latestValues=l.animationValues||l.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:r}=a.options;r===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:l}=a;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gc=["","X","Y","Z"],Xj=1e3;let Fj=0;function Yc(n,a,s,l){const{latestValues:r}=a;r[n]&&(s[n]=r[n],a.setStaticValue(n,0),l&&(l[n]=0))}function v0(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Uv(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:r,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",ze,!(r||c))}const{parent:l}=n;l&&!l.hasCheckedOptimisedAppear&&v0(l)}function b0({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:l,resetTransform:r}){return class{constructor(d={},h=a?.()){this.id=Fj++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Zj),this.nodes.forEach(eA),this.nodes.forEach(tA),this.nodes.forEach(Jj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kj)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Kf),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Zv(d)&&!QE(d),this.instance=d;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{x=window.innerWidth}),n(d,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,v&&v(),v=qj(S,250),Lo.hasAnimatedSinceResize&&(Lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Jy)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||lA,{onLayoutAnimationStart:R,onLayoutAnimationComplete:N}=p.getProps(),_=!this.targetLayout||!g0(this.targetLayout,w),O=!x&&S;if(this.options.layoutRoot||this.resumeFrom||O||x&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...nd(j,"layout"),onPlay:R,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(v,O)}else x||Jy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}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,this.eventHandlers.clear(),la(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(nA),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&&v0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ij),this.nodes.forEach($j),this.nodes.forEach(Qj)):this.nodes.forEach(Zy),this.clearAllSnapshots();const h=dt.now();ot.delta=rn(0,1e3/60,h-ot.timestamp),ot.timestamp=h,ot.isProcessing=!0,Lc.update.process(ot),Lc.preRender.process(ot),Lc.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,od.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Wj),this.sharedNodes.forEach(aA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ht(this.snapshot.measuredBox.x)&&!ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ie(),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&&this.instance){const m=l(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!r)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!p0(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||Oa(this.latestValues)||v)&&(r(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),oA(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Ie();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rA))){const{scroll:p}=this.root;p&&(ji(h.x,p.offset.x),ji(h.y,p.offset.y))}return h}removeElementScroll(d){const h=Ie();if(Wt(h,d),this.scroll?.wasRoot)return h;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Wt(h,d),ji(h.x,v.offset.x),ji(h.y,v.offset.y))}return h}applyTransform(d,h=!1){const m=Ie();Wt(m,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ai(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Oa(v.latestValues)&&Ai(m,v.latestValues)}return Oa(this.latestValues)&&Ai(m,this.latestValues),m}removeTransform(d){const h=Ie();Wt(h,d);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!Oa(p.latestValues))continue;Cf(p.latestValues)&&p.updateSnapshot();const v=Ie(),x=p.measurePageBox();Wt(v,x),Uy(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return Oa(this.latestValues)&&Uy(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!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=ot.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Oj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Wt(this.target,this.layout.layoutBox),a0(this.target,this.targetDelta)):Wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Cf(this.parent.latestValues)||n0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),Po(this.relativeTargetOrigin,h,m),Wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(m=!1),m)return;const{layout:p,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||!(p||v))return;Wt(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;lj(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ie());const{target:w}=d;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hy(this.prevProjectionDelta.x,this.projectionDelta.x),Hy(this.prevProjectionDelta.y,this.projectionDelta.y)),Gs(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!Py(this.projectionDelta.x,this.prevProjectionDelta.x)||!Py(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ei(),this.projectionDelta=Ei(),this.projectionDeltaWithTransform=Ei()}setAnimationOrigin(d,h=!1){const m=this.snapshot,p=m?m.latestValues:{},v={...this.latestValues},x=Ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=Ie(),w=m?m.source:void 0,j=this.layout?this.layout.source:void 0,R=w!==j,N=this.getStack(),_=!N||N.members.length<=1,O=!!(R&&!_&&this.options.crossfade===!0&&!this.path.some(sA));this.animationProgress=0;let z;this.mixTargetDelta=F=>{const H=F/1e3;Wy(x.x,d.x,H),Wy(x.y,d.y,H),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Po(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iA(this.relativeTarget,this.relativeTargetOrigin,S,H),z&&kj(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Ie()),Wt(z,this.relativeTarget)),R&&(this.animationValues=v,Uj(v,p,this.latestValues,H,O,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=H},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(la(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{Lo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ri(0)),this.currentAnimation=Gj(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onStop:()=>{},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(Xj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:v}=d;if(!(!h||!m||!p)){if(this!==d&&this.layout&&p&&S0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Ie();const x=ht(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+x;const S=ht(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+S}Wt(h,m),Ai(h,v),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new Pj),this.sharedNodes.get(d).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),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:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&Yc("z",d,p,this.animationValues);for(let v=0;v<Gc.length;v++)Yc(`rotate${Gc[v]}`,d,p,this.animationValues),Yc(`skew${Gc[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=_o(h?.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=_o(h?.pointerEvents)||""),this.hasProjected&&!Oa(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=zj(this.projectionDeltaWithTransform,this.treeScale,v);m&&(x=m(v,x)),d.transform=x;const{x:S,y:w}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${w.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const j in jf){if(v[j]===void 0)continue;const{correct:R,applyTo:N,isCSSVariable:_}=jf[j],O=x==="none"?v[j]:R(v[j],p);if(N){const z=N.length;for(let F=0;F<z;F++)d[N[F]]=O}else _?this.options.visualElement.renderState.vars[j]=O:d[j]=O}this.options.layoutId&&(d.pointerEvents=p===this?_o(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Qy),this.root.sharedNodes.clear()}}}function $j(n){n.updateLayout()}function Qj(n){const a=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:l}=n.layout,{animationType:r}=n.options,c=a.source!==n.layout.source;r==="size"?Pt(v=>{const x=c?a.measuredBox[v]:a.layoutBox[v],S=ht(x);x.min=s[v].min,x.max=x.min+S}):S0(r,a.layoutBox,s)&&Pt(v=>{const x=c?a.measuredBox[v]:a.layoutBox[v],S=ht(s[v]);x.max=x.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+S)});const d=Ei();Gs(d,s,a.layoutBox);const h=Ei();c?Gs(h,n.applyTransform(l,!0),a.measuredBox):Gs(h,s,a.layoutBox);const m=!p0(d);let p=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:S}=v;if(x&&S){const w=Ie();Po(w,a.layoutBox,x.layoutBox);const j=Ie();Po(j,s,S.layoutBox),g0(w,j)||(p=!0),v.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=w,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function Zj(n){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 Jj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Wj(n){n.clearSnapshot()}function Qy(n){n.clearMeasurements()}function Zy(n){n.isLayoutDirty=!1}function Ij(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Jy(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function eA(n){n.resolveTargetDelta()}function tA(n){n.calcProjection()}function nA(n){n.resetSkewAndRotation()}function aA(n){n.removeLeadSnapshot()}function Wy(n,a,s){n.translate=He(a.translate,0,s),n.scale=He(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function Iy(n,a,s,l){n.min=He(a.min,s.min,l),n.max=He(a.max,s.max,l)}function iA(n,a,s,l){Iy(n.x,a.x,s.x,l),Iy(n.y,a.y,s.y,l)}function sA(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const lA={duration:.45,ease:[.4,0,.1,1]},ex=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),tx=ex("applewebkit/")&&!ex("chrome/")?Math.round:Ft;function nx(n){n.min=tx(n.min),n.max=tx(n.max)}function oA(n){nx(n.x),nx(n.y)}function S0(n,a,s){return n==="position"||n==="preserve-aspect"&&!Mj(Ky(a),Ky(s),.2)}function rA(n){return n!==n.root&&n.scroll?.wasRoot}const uA=b0({attachResizeListener:(n,a)=>Zs(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kc={current:void 0},T0=b0({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Kc.current){const n=new uA({});n.mount(window),n.setOptions({layoutScroll:!0}),Kc.current=n}return Kc.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),hd=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function ax(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function cA(...n){return a=>{let s=!1;const l=n.map(r=>{const c=ax(r,a);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let r=0;r<l.length;r++){const c=l[r];typeof c=="function"?c():ax(n[r],null)}}}}function fA(...n){return T.useCallback(cA(...n),n)}class dA extends T.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const l=s.offsetParent,r=Pv(l)&&l.offsetWidth||0,c=this.props.sizeRef.current;c.height=s.offsetHeight||0,c.width=s.offsetWidth||0,c.top=s.offsetTop,c.left=s.offsetLeft,c.right=r-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function hA({children:n,isPresent:a,anchorX:s,root:l}){const r=T.useId(),c=T.useRef(null),d=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=T.useContext(hd),m=n.props?.ref??n?.ref,p=fA(c,m);return T.useInsertionEffect(()=>{const{width:v,height:x,top:S,left:w,right:j}=d.current;if(a||!c.current||!v||!x)return;const R=s==="left"?`left: ${w}`:`right: ${j}`;c.current.dataset.motionPopId=r;const N=document.createElement("style");h&&(N.nonce=h);const _=l??document.head;return _.appendChild(N),N.sheet&&N.sheet.insertRule(`
+ [data-motion-pop-id="${r}"] {
+ position: absolute !important;
+ width: ${v}px !important;
+ height: ${x}px !important;
+ ${R}px !important;
+ top: ${S}px !important;
+ }
+ `),()=>{_.contains(N)&&_.removeChild(N)}},[a]),g.jsx(dA,{isPresent:a,childRef:c,sizeRef:d,children:T.cloneElement(n,{ref:p})})}const mA=({children:n,initial:a,isPresent:s,onExitComplete:l,custom:r,presenceAffectsLayout:c,mode:d,anchorX:h,root:m})=>{const p=Bf(pA),v=T.useId();let x=!0,S=T.useMemo(()=>(x=!1,{id:v,initial:a,isPresent:s,custom:r,onExitComplete:w=>{p.set(w,!0);for(const j of p.values())if(!j)return;l&&l()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[s,p,l]);return c&&x&&(S={...S}),T.useMemo(()=>{p.forEach((w,j)=>p.set(j,!1))},[s]),T.useEffect(()=>{!s&&!p.size&&l&&l()},[s]),d==="popLayout"&&(n=g.jsx(hA,{isPresent:s,anchorX:h,root:m,children:n})),g.jsx(Wo.Provider,{value:S,children:n})};function pA(){return new Map}function w0(n=!0){const a=T.useContext(Wo);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:r}=a,c=T.useId();T.useEffect(()=>{if(n)return r(c)},[n]);const d=T.useCallback(()=>n&&l&&l(c),[c,l,n]);return!s&&l?[!1,d]:[!0]}const jo=n=>n.key||"";function ix(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const gA=({children:n,custom:a,initial:s=!0,onExitComplete:l,presenceAffectsLayout:r=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",root:m})=>{const[p,v]=w0(d),x=T.useMemo(()=>ix(n),[n]),S=d&&!p?[]:x.map(jo),w=T.useRef(!0),j=T.useRef(x),R=Bf(()=>new Map),N=T.useRef(new Set),[_,O]=T.useState(x),[z,F]=T.useState(x);ev(()=>{w.current=!1,j.current=x;for(let X=0;X<z.length;X++){const q=jo(z[X]);S.includes(q)?(R.delete(q),N.current.delete(q)):R.get(q)!==!0&&R.set(q,!1)}},[z,S.length,S.join("-")]);const H=[];if(x!==_){let X=[...x];for(let q=0;q<z.length;q++){const $=z[q],Z=jo($);S.includes(Z)||(X.splice(q,0,$),H.push($))}return c==="wait"&&H.length&&(X=H),F(ix(X)),O(x),null}const{forceRender:Q}=T.useContext(Uf);return g.jsx(g.Fragment,{children:z.map(X=>{const q=jo(X),$=d&&!p?!1:x===z||S.includes(q),Z=()=>{if(N.current.has(q))return;if(N.current.add(q),R.has(q))R.set(q,!0);else return;let re=!0;R.forEach(de=>{de||(re=!1)}),re&&(Q?.(),F(j.current),d&&v?.(),l&&l())};return g.jsx(mA,{isPresent:$,initial:!w.current||s?void 0:!1,custom:a,presenceAffectsLayout:r,mode:c,root:m,onExitComplete:$?void 0:Z,anchorX:h,children:X},q)})})},C0=T.createContext({strict:!1}),sx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let lx=!1;function yA(){if(lx)return;const n={};for(const a in sx)n[a]={isEnabled:s=>sx[a].some(l=>!!s[l])};Iv(n),lx=!0}function E0(){return yA(),nj()}function xA(n){const a=E0();for(const s in n)a[s]={...a[s],...n[s]};Iv(a)}const vA=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 Xo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||vA.has(n)}let j0=n=>!Xo(n);function bA(n){typeof n=="function"&&(j0=a=>a.startsWith("on")?!Xo(a):n(a))}try{bA(require("@emotion/is-prop-valid").default)}catch{}function SA(n,a,s){const l={};for(const r in n)r==="values"&&typeof n.values=="object"||(j0(r)||s===!0&&Xo(r)||!a&&!Xo(r)||n.draggable&&r.startsWith("onDrag"))&&(l[r]=n[r]);return l}const tr=T.createContext({});function TA(n,a){if(er(n)){const{initial:s,animate:l}=n;return{initial:s===!1||Qs(s)?s:void 0,animate:Qs(l)?l:void 0}}return n.inherit!==!1?a:{}}function wA(n){const{initial:a,animate:s}=TA(n,T.useContext(tr));return T.useMemo(()=>({initial:a,animate:s}),[ox(a),ox(s)])}function ox(n){return Array.isArray(n)?n.join(" "):n}const md=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function A0(n,a,s){for(const l in a)!ut(a[l])&&!l0(l,s)&&(n[l]=a[l])}function CA({transformTemplate:n},a){return T.useMemo(()=>{const s=md();return fd(s,a,n),Object.assign({},s.vars,s.style)},[a])}function EA(n,a){const s=n.style||{},l={};return A0(l,s,n),Object.assign(l,CA(n,a)),l}function jA(n,a){const s={},l=EA(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.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=l,s}const N0=()=>({...md(),attrs:{}});function AA(n,a,s,l){const r=T.useMemo(()=>{const c=N0();return o0(c,a,u0(l),n.transformTemplate,n.style),{...c.attrs,style:{...c.style}}},[a]);if(n.style){const c={};A0(c,n.style,n),r.style={...c,...r.style}}return r}const NA=["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 pd(n){return typeof n!="string"||n.includes("-")?!1:!!(NA.indexOf(n)>-1||/[A-Z]/u.test(n))}function RA(n,a,s,{latestValues:l},r,c=!1,d){const m=(d??pd(n)?AA:jA)(a,l,r,n),p=SA(a,typeof n=="string",c),v=n!==T.Fragment?{...p,...m,ref:s}:{},{children:x}=a,S=T.useMemo(()=>ut(x)?x.get():x,[x]);return T.createElement(n,{...v,children:S})}function MA({scrapeMotionValuesFromProps:n,createRenderState:a},s,l,r){return{latestValues:OA(s,l,r,n),renderState:a()}}function OA(n,a,s,l){const r={},c=l(n,{});for(const S in c)r[S]=_o(c[S]);let{initial:d,animate:h}=n;const m=er(n),p=Wv(n);a&&p&&!m&&n.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let v=s?s.initial===!1:!1;v=v||d===!1;const x=v?h:d;if(x&&typeof x!="boolean"&&!Io(x)){const S=Array.isArray(x)?x:[x];for(let w=0;w<S.length;w++){const j=id(n,S[w]);if(j){const{transitionEnd:R,transition:N,..._}=j;for(const O in _){let z=_[O];if(Array.isArray(z)){const F=v?z.length-1:0;z=z[F]}z!==null&&(r[O]=z)}for(const O in R)r[O]=R[O]}}}return r}const R0=n=>(a,s)=>{const l=T.useContext(tr),r=T.useContext(Wo),c=()=>MA(n,a,l,r);return s?c():Bf(c)},DA=R0({scrapeMotionValuesFromProps:dd,createRenderState:md}),_A=R0({scrapeMotionValuesFromProps:c0,createRenderState:N0}),LA=Symbol.for("motionComponentSymbol");function kA(n,a,s){const l=T.useRef(s);T.useInsertionEffect(()=>{l.current=s});const r=T.useRef(null);return T.useCallback(c=>{c&&n.onMount?.(c),a&&(c?a.mount(c):a.unmount());const d=l.current;if(typeof d=="function")if(c){const h=d(c);typeof h=="function"&&(r.current=h)}else r.current?(r.current(),r.current=null):d(c);else d&&(d.current=c)},[a])}const M0=T.createContext({});function zs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function zA(n,a,s,l,r,c){const{visualElement:d}=T.useContext(tr),h=T.useContext(C0),m=T.useContext(Wo),p=T.useContext(hd).reducedMotion,v=T.useRef(null);l=l||h.renderer,!v.current&&l&&(v.current=l(n,{visualState:a,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,isSVG:c}));const x=v.current,S=T.useContext(M0);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&VA(v.current,s,r,S);const w=T.useRef(!1);T.useInsertionEffect(()=>{x&&w.current&&x.update(s,m)});const j=s[Vv],R=T.useRef(!!j&&!window.MotionHandoffIsComplete?.(j)&&window.MotionHasOptimisedAnimation?.(j));return ev(()=>{x&&(w.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),R.current&&x.animationState&&x.animationState.animateChanges())}),T.useEffect(()=>{x&&(!R.current&&x.animationState&&x.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(j)}),R.current=!1),x.enteringChildren=void 0)}),x}function VA(n,a,s,l){const{layoutId:r,layout:c,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:v}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:O0(n.parent)),n.projection.setOptions({layoutId:r,layout:c,alwaysMeasureLayout:!!d||h&&zs(h),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:l,crossfade:v,layoutScroll:m,layoutRoot:p})}function O0(n){if(n)return n.options.allowProjection!==!1?n.projection:O0(n.parent)}function Pc(n,{forwardMotionProps:a=!1,type:s}={},l,r){l&&xA(l);const c=s?s==="svg":pd(n),d=c?_A:DA;function h(p,v){let x;const S={...T.useContext(hd),...p,layoutId:UA(p)},{isStatic:w}=S,j=wA(p),R=d(p,w);if(!w&&Ix){BA();const N=HA(S);x=N.MeasureLayout,j.visualElement=zA(n,R,S,r,N.ProjectionNode,c)}return g.jsxs(tr.Provider,{value:j,children:[x&&j.visualElement?g.jsx(x,{visualElement:j.visualElement,...S}):null,RA(n,p,kA(R,j.visualElement,v),R,w,a,c)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=T.forwardRef(h);return m[LA]=n,m}function UA({layoutId:n}){const a=T.useContext(Uf).id;return a&&n!==void 0?a+"-"+n:n}function BA(n,a){T.useContext(C0).strict}function HA(n){const a=E0(),{drag:s,layout:l}=a;if(!s&&!l)return{};const r={...s,...l};return{MeasureLayout:s?.isEnabled(n)||l?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qA(n,a){if(typeof Proxy>"u")return Pc;const s=new Map,l=(c,d)=>Pc(c,d,n,a),r=(c,d)=>l(c,d);return new Proxy(r,{get:(c,d)=>d==="create"?l:(s.has(d)||s.set(d,Pc(d,void 0,n,a)),s.get(d))})}const GA=(n,a)=>a.isSVG??pd(n)?new vj(a):new hj(a,{allowProjection:n!==T.Fragment});class YA extends ua{constructor(a){super(a),a.animationState||(a.animationState=Cj(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Io(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(){this.node.animationState.reset(),this.unmountControls?.()}}let KA=0;class PA extends ua{constructor(){super(...arguments),this.id=KA++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===l)return;const r=this.node.animationState.setActive("exit",!a);s&&!a&&r.then(()=>{s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const XA={animation:{Feature:YA},exit:{Feature:PA}};function nl(n){return{point:{x:n.pageX,y:n.pageY}}}const FA=n=>a=>rd(a)&&n(a,nl(a));function Ys(n,a,s,l){return Zs(n,a,FA(s),l)}const D0=({current:n})=>n?n.ownerDocument.defaultView:null,rx=(n,a)=>Math.abs(n-a);function $A(n,a){const s=rx(n.x,a.x),l=rx(n.y,a.y);return Math.sqrt(s**2+l**2)}const ux=new Set(["auto","scroll"]);class _0{constructor(a,s,{transformPagePoint:l,contextWindow:r=window,dragSnapToOrigin:c=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Fc(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,R=$A(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!R)return;const{point:N}=w,{timestamp:_}=ot;this.history.push({...N,timestamp:_});const{onStart:O,onMove:z}=this.handlers;j||(O&&O(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,w)},this.handlePointerMove=(w,j)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Xc(j,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(w,j)=>{this.end();const{onEnd:R,onSessionEnd:N,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Fc(w.type==="pointercancel"?this.lastMoveEventInfo:Xc(j,this.transformPagePoint),this.history);this.startEvent&&R&&R(w,O),N&&N(w,O)},!rd(a))return;this.dragSnapToOrigin=c,this.handlers=s,this.transformPagePoint=l,this.distanceThreshold=d,this.contextWindow=r||window;const m=nl(a),p=Xc(m,this.transformPagePoint),{point:v}=p,{timestamp:x}=ot;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=s;S&&S(a,Fc(p,this.history)),this.removeListeners=Is(Ys(this.contextWindow,"pointermove",this.handlePointerMove),Ys(this.contextWindow,"pointerup",this.handlePointerUp),Ys(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const l=getComputedStyle(s);(ux.has(l.overflowX)||ux.has(l.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const s=this.scrollPositions.get(a);if(!s)return;const l=a===window,r=l?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},c={x:r.x-s.x,y:r.y-s.y};c.x===0&&c.y===0||(l?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(a,r),ze.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),la(this.updatePoint)}}function Xc(n,a){return a?{point:a(n.point)}:n}function cx(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Fc({point:n},a){return{point:n,delta:cx(n,L0(a)),offset:cx(n,QA(a)),velocity:ZA(a,.1)}}function QA(n){return n[0]}function L0(n){return n[n.length-1]}function ZA(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,l=null;const r=L0(n);for(;s>=0&&(l=n[s],!(r.timestamp-l.timestamp>Nn(a)));)s--;if(!l)return{x:0,y:0};const c=Xt(r.timestamp-l.timestamp);if(c===0)return{x:0,y:0};const d={x:(r.x-l.x)/c,y:(r.y-l.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function JA(n,{min:a,max:s},l){return a!==void 0&&n<a?n=l?He(a,n,l.min):Math.max(n,a):s!==void 0&&n>s&&(n=l?He(s,n,l.max):Math.min(n,s)),n}function fx(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 WA(n,{top:a,left:s,bottom:l,right:r}){return{x:fx(n.x,s,r),y:fx(n.y,a,l)}}function dx(n,a){let s=a.min-n.min,l=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,l]=[l,s]),{min:s,max:l}}function IA(n,a){return{x:dx(n.x,a.x),y:dx(n.y,a.y)}}function eN(n,a){let s=.5;const l=ht(n),r=ht(a);return r>l?s=Xs(a.min,a.max-l,n.min):l>r&&(s=Xs(n.min,n.max-r,a.min)),rn(0,1,s)}function tN(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 Af=.35;function nN(n=Af){return n===!1?n=0:n===!0&&(n=Af),{x:hx(n,"left","right"),y:hx(n,"top","bottom")}}function hx(n,a,s){return{min:mx(n,a),max:mx(n,s)}}function mx(n,a){return typeof n=="number"?n:n[a]||0}const aN=new WeakMap;class iN{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=Ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:l}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const c=x=>{s?(this.stopAnimation(),this.snapToCursor(nl(x).point)):this.pauseAnimation()},d=(x,S)=>{this.stopAnimation();const{drag:w,dragPropagation:j,onDragStart:R}=this.getProps();if(w&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=KE(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pt(_=>{let O=this.getAxisMotionValue(_).get()||0;if(on.test(O)){const{projection:z}=this.visualElement;if(z&&z.layout){const F=z.layout.layoutBox[_];F&&(O=ht(F)*(parseFloat(O)/100))}}this.originPoint[_]=O}),R&&ze.postRender(()=>R(x,S)),bf(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},h=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:w,dragDirectionLock:j,onDirectionLock:R,onDrag:N}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:_}=S;if(j&&this.currentDirection===null){this.currentDirection=sN(_),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",S.point,_),this.updateAxis("y",S.point,_),this.visualElement.render(),N&&N(x,S)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Pt(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new _0(a,{onSessionStart:c,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:l,contextWindow:D0(this.visualElement),element:this.visualElement.current})}stop(a,s){const l=a||this.latestPointerEvent,r=s||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!r||!l)return;const{velocity:d}=r;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&ze.postRender(()=>h(l,r))}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:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,l){const{drag:r}=this.getProps();if(!l||!Ao(a,r,this.currentDirection))return;const c=this.getAxisMotionValue(a);let d=this.originPoint[a]+l[a];this.constraints&&this.constraints[a]&&(d=JA(d,this.constraints[a],this.elastic[a])),c.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;a&&zs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&l?this.constraints=WA(l.layoutBox,a):this.constraints=!1,this.elastic=nN(s),r!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&Pt(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=tN(l.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!zs(a))return!1;const l=a.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const c=oj(l,r.root,this.visualElement.getTransformPagePoint());let d=IA(r.layout.layoutBox,c);if(s){const h=s(ij(d));this.hasMutatedConstraints=!!h,h&&(d=t0(h))}return d}startAnimation(a){const{drag:s,dragMomentum:l,dragElastic:r,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=Pt(v=>{if(!Ao(v,s,this.currentDirection))return;let x=m&&m[v]||{};d&&(x={min:0,max:0});const S=r?200:1e6,w=r?40:1e7,j={type:"inertia",velocity:l?a[v]:0,bounceStiffness:S,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(v,j)});return Promise.all(p).then(h)}startAxisValueAnimation(a,s){const l=this.getAxisMotionValue(a);return bf(this.visualElement,a),l.start(ad(a,l,0,s,this.visualElement,!1))}stopAnimation(){Pt(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Pt(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,l=this.visualElement.getProps(),r=l[s];return r||this.visualElement.getValue(a,(l.initial?l.initial[a]:void 0)||0)}snapToCursor(a){Pt(s=>{const{drag:l}=this.getProps();if(!Ao(s,l,this.currentDirection))return;const{projection:r}=this.visualElement,c=this.getAxisMotionValue(s);if(r&&r.layout){const{min:d,max:h}=r.layout.layoutBox[s],m=c.get()||0;c.set(a[s]-He(d,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!zs(s)||!l||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Pt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();r[d]=eN({min:m,max:m},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.resolveConstraints(),Pt(d=>{if(!Ao(d,a,null))return;const h=this.getAxisMotionValue(d),{min:m,max:p}=this.constraints[d];h.set(He(m,p,r[d]))})}addListeners(){if(!this.visualElement.current)return;aN.set(this.visualElement,this);const a=this.visualElement.current,s=Ys(a,"pointerdown",m=>{const{drag:p,dragListener:v=!0}=this.getProps();p&&v&&!Qv(m.target)&&this.start(m)}),l=()=>{const{dragConstraints:m}=this.getProps();zs(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,c=r.addEventListener("measure",l);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ze.read(l);const d=Zs(window,"resize",()=>this.scalePositionWithinConstraints()),h=r.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Pt(v=>{const x=this.getAxisMotionValue(v);x&&(this.originPoint[v]+=m[v].translate,x.set(x.get()+m[v].translate))}),this.visualElement.render())}));return()=>{d(),s(),c(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:r=!1,dragConstraints:c=!1,dragElastic:d=Af,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:l,dragPropagation:r,dragConstraints:c,dragElastic:d,dragMomentum:h}}}function Ao(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function sN(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class lN extends ua{constructor(a){super(a),this.removeGroupControls=Ft,this.removeListeners=Ft,this.controls=new iN(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ft}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const px=n=>(a,s)=>{n&&ze.postRender(()=>n(a,s))};class oN extends ua{constructor(){super(...arguments),this.removePointerDownListener=Ft}onPointerDown(a){this.session=new _0(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:D0(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:l,onPanEnd:r}=this.node.getProps();return{onSessionStart:px(a),onStart:px(s),onMove:l,onEnd:(c,d)=>{delete this.session,r&&ze.postRender(()=>r(c,d))}}}mount(){this.removePointerDownListener=Ys(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let $c=!1;class rN extends T.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:l,layoutId:r}=this.props,{projection:c}=a;c&&(s.group&&s.group.add(c),l&&l.register&&r&&l.register(c),$c&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:l,drag:r,isPresent:c}=this.props,{projection:d}=l;return d&&(d.isPresent=c,$c=!0,r||a.layoutDependency!==s||s===void 0||a.isPresent!==c?d.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?d.promote():d.relegate()||ze.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),od.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:r}=a;$c=!0,r&&(r.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(r),l&&l.deregister&&l.deregister(r))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function k0(n){const[a,s]=w0(),l=T.useContext(Uf);return g.jsx(rN,{...n,layoutGroup:l,switchLayoutGroup:T.useContext(M0),isPresent:a,safeToRemove:s})}const uN={pan:{Feature:oN},drag:{Feature:lN,ProjectionNode:T0,MeasureLayout:k0}};function gx(n,a,s){const{props:l}=n;n.animationState&&l.whileHover&&n.animationState.setActive("whileHover",s==="Start");const r="onHover"+s,c=l[r];c&&ze.postRender(()=>c(a,nl(a)))}class cN extends ua{mount(){const{current:a}=this.node;a&&(this.unmount=PE(a,(s,l)=>(gx(this.node,l,"Start"),r=>gx(this.node,r,"End"))))}unmount(){}}class fN extends ua{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=Is(Zs(this.node.current,"focus",()=>this.onFocus()),Zs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yx(n,a,s){const{props:l}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&l.whileTap&&n.animationState.setActive("whileTap",s==="Start");const r="onTap"+(s==="End"?"":s),c=l[r];c&&ze.postRender(()=>c(a,nl(a)))}class dN extends ua{mount(){const{current:a}=this.node;a&&(this.unmount=$E(a,(s,l)=>(yx(this.node,l,"Start"),(r,{success:c})=>yx(this.node,r,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Nf=new WeakMap,Qc=new WeakMap,hN=n=>{const a=Nf.get(n.target);a&&a(n)},mN=n=>{n.forEach(hN)};function pN({root:n,...a}){const s=n||document;Qc.has(s)||Qc.set(s,{});const l=Qc.get(s),r=JSON.stringify(a);return l[r]||(l[r]=new IntersectionObserver(mN,{root:n,...a})),l[r]}function gN(n,a,s){const l=pN(a);return Nf.set(n,s),l.observe(n),()=>{Nf.delete(n),l.unobserve(n)}}const yN={some:0,all:1};class xN extends ua{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:l,amount:r="some",once:c}=a,d={root:s?s.current:void 0,rootMargin:l,threshold:typeof r=="number"?r:yN[r]},h=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=p?v:x;S&&S(m)};return gN(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(vN(a,s))&&this.startObserver()}unmount(){}}function vN({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const bN={inView:{Feature:xN},tap:{Feature:dN},focus:{Feature:fN},hover:{Feature:cN}},SN={layout:{ProjectionNode:T0,MeasureLayout:k0}},TN={...XA,...bN,...uN,...SN},wN=qA(TN,GA);const CN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,s,l)=>l?l.toUpperCase():s.toLowerCase()),xx=n=>{const a=EN(n);return a.charAt(0).toUpperCase()+a.slice(1)},z0=(...n)=>n.filter((a,s,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===s).join(" ").trim(),jN=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var AN={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"};const NN=T.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:r="",children:c,iconNode:d,...h},m)=>T.createElement("svg",{ref:m,...AN,width:a,height:a,stroke:n,strokeWidth:l?Number(s)*24/Number(a):s,className:z0("lucide",r),...!c&&!jN(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,v])=>T.createElement(p,v)),...Array.isArray(c)?c:[c]]));const we=(n,a)=>{const s=T.forwardRef(({className:l,...r},c)=>T.createElement(NN,{ref:c,iconNode:a,className:z0(`lucide-${CN(xx(n))}`,`lucide-${n}`,l),...r}));return s.displayName=xx(n),s};const RN=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Fo=we("activity",RN);const MN=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],ON=we("arrow-down",MN);const DN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],_N=we("arrow-right",DN);const LN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ko=we("check",LN);const kN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vx=we("chevron-down",kN);const zN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],VN=we("chevron-up",zN);const UN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gd=we("circle-check-big",UN);const BN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],HN=we("circle-check",BN);const qN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],V0=we("circle-x",qN);const GN=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],YN=we("cloud",GN);const KN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],U0=we("copy",KN);const PN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],XN=we("external-link",PN);const FN=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],B0=we("file-text",FN);const $N=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],QN=we("funnel",$N);const ZN=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],H0=we("hash",ZN);const JN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zc=we("info",JN);const WN=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],bx=we("key",WN);const IN=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],eR=we("languages",IN);const tR=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Sx=we("layout-dashboard",tR);const nR=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],aR=we("lock",nR);const iR=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Rf=we("message-square",iR);const sR=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],lR=we("pause",sR);const oR=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],q0=we("play",oR);const rR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],uR=we("plus",rR);const cR=[["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"}]],ra=we("refresh-cw",cR);const fR=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Jc=we("rotate-cw",fR);const dR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],G0=we("search",dR);const hR=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Y0=we("server",hR);const mR=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pR=we("settings",mR);const gR=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Tx=we("shield",gR);const yR=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],xR=we("square-check-big",yR);const vR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],K0=we("square",vR);const bR=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],SR=we("terminal",bR);const TR=[["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"}]],wR=we("triangle-alert",TR);const CR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],P0=we("x",CR),X0="/assets/logo-BzryTZ7u.png",ER=({onNext:n})=>{const{t:a}=_t();return g.jsxs("div",{className:"flex flex-col h-full justify-center items-center text-center max-w-lg mx-auto",children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("img",{src:X0,alt:"Vibe Remote Logo",className:"w-20 h-20 mx-auto mb-6 drop-shadow-lg"}),g.jsx("h1",{className:"text-4xl font-display font-bold mb-4 text-text",children:a("welcome.title")}),g.jsx("p",{className:"text-xl text-muted font-light",children:a("welcome.subtitle")})]}),g.jsxs("div",{className:"space-y-4 text-left w-full mb-10 bg-panel border border-border p-6 rounded-xl shadow-sm",children:[g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-accent mt-2"}),g.jsx("p",{className:"text-text",children:a("welcome.feature1")})]}),g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-accent mt-2"}),g.jsx("p",{className:"text-text",children:a("welcome.feature2")})]}),g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-accent mt-2"}),g.jsx("p",{className:"text-text",children:a("welcome.feature3")})]})]}),g.jsxs("button",{onClick:()=>n({}),className:"group flex items-center gap-2 px-8 py-3 bg-accent hover:bg-accent/90 text-white rounded-full font-bold text-lg transition-all shadow-md hover:shadow-lg hover:-translate-y-0.5",children:[a("welcome.getStarted")," ",g.jsx(_N,{size:20,className:"group-hover:translate-x-1 transition-transform"})]})]})};function F0(n){var a,s,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var r=n.length;for(a=0;a<r;a++)n[a]&&(s=F0(n[a]))&&(l&&(l+=" "),l+=s)}else for(s in n)n[s]&&(l&&(l+=" "),l+=s);return l}function Ue(){for(var n,a,s=0,l="",r=arguments.length;s<r;s++)(n=arguments[s])&&(a=F0(n))&&(l&&(l+=" "),l+=a);return l}const jR=({data:n,onNext:a,onBack:s})=>{const{t:l}=_t(),[r,c]=Dt.useState(n.mode||"self_host"),d=[{id:"saas",title:l("modeSelection.saasMode"),description:l("modeSelection.saasDescription"),icon:YN,disabled:!0},{id:"self_host",title:l("modeSelection.selfHostMode"),description:l("modeSelection.selfHostDescription"),icon:Y0}];return g.jsxs("div",{className:"flex flex-col h-full max-w-2xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-6 text-text",children:l("modeSelection.title")}),g.jsx("div",{className:"grid gap-4 mb-8",children:d.map(h=>{const m=r===h.id,p=h.icon,v=h.disabled;return g.jsxs("button",{onClick:()=>{v||c(h.id)},disabled:v,className:Ue("flex items-start gap-4 p-6 rounded-xl border-2 text-left transition-all",m?"border-accent bg-accent/5 shadow-md":"border-border bg-panel",v?"opacity-50 cursor-not-allowed":"hover:border-accent/50"),children:[g.jsx("div",{className:Ue("p-3 rounded-lg",m?"bg-accent/10 text-accent":"bg-neutral-100 text-muted"),children:g.jsx(p,{size:24})}),g.jsxs("div",{children:[g.jsx("h3",{className:Ue("font-semibold text-lg font-display",m?"text-accent":"text-text"),children:h.title}),g.jsx("p",{className:"text-muted mt-1",children:h.description})]})]},h.id)})}),g.jsxs("div",{className:"mt-auto flex justify-between",children:[g.jsx("button",{onClick:s,className:"px-6 py-2 text-muted hover:text-text font-medium",children:l("common.back")}),g.jsx("button",{onClick:()=>a({mode:r}),className:"px-8 py-3 bg-accent hover:bg-accent/90 text-white rounded-lg font-medium transition-colors shadow-sm",children:l("common.continue")})]})]})},$0=T.createContext(void 0),ca=()=>{const n=T.useContext($0);if(!n)throw new Error("useApi must be used within ApiProvider");return n},AR=({children:n})=>{const a=async r=>{const c=await fetch(r);if(!c.ok)throw new Error(`Request failed: ${r}`);return c.json()},s=async(r,c)=>{const d=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!d.ok)throw new Error(`Request failed: ${r}`);return d.json()},l={getConfig:()=>a("/config"),saveConfig:r=>s("/config",r),getSettings:()=>a("/settings"),saveSettings:r=>s("/settings",r),detectCli:r=>a(`/cli/detect?binary=${encodeURIComponent(r)}`),slackAuthTest:r=>s("/slack/auth_test",{bot_token:r}),slackChannels:r=>s("/slack/channels",{bot_token:r}),slackManifest:()=>a("/slack/manifest"),doctor:()=>s("/doctor",{}),opencodeOptions:r=>s("/opencode/options",{cwd:r}),getLogs:(r=500)=>s("/logs",{lines:r})};return g.jsx($0.Provider,{value:l,children:n})},NR=({data:n,onNext:a,onBack:s})=>{const{t:l}=_t(),r=ca(),[c,d]=T.useState(!1),[h,m]=T.useState(n.default_backend||"opencode"),[p,v]=T.useState(n.agents||{opencode:{enabled:!0,cli_path:"opencode",status:"unknown"},claude:{enabled:!0,cli_path:"claude",status:"unknown"},codex:{enabled:!1,cli_path:"codex",status:"unknown"}}),x=N=>N.status==="missing";T.useEffect(()=>{n.agents||w()},[]);const S=async N=>{d(!0);try{let _;_=await r.detectCli(N),v(O=>({...O,[N]:{...O[N],cli_path:_.path||O[N].cli_path,status:_.found?"ok":"missing"}}))}finally{d(!1)}},w=async()=>{await Promise.all(Object.keys(p).map(N=>S(N)))},j=(N,_)=>{v(O=>({...O,[N]:{...O[N],enabled:_}}))},R=Object.values(p).some(N=>N.enabled);return g.jsxs("div",{className:"flex flex-col h-full max-w-2xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-2 text-text",children:l("agentDetection.title")}),g.jsx("p",{className:"text-muted mb-6",children:l("agentDetection.subtitle")}),g.jsxs("div",{className:"mb-6 p-4 border border-border rounded-xl bg-panel shadow-sm",children:[g.jsx("label",{className:"text-sm font-medium text-muted uppercase",children:l("agentDetection.defaultBackend")}),g.jsxs("select",{value:h,onChange:N=>m(N.target.value),className:"mt-2 w-full bg-bg border border-border rounded px-3 py-2 text-sm",children:[g.jsxs("option",{value:"opencode",children:["OpenCode ",l("agentDetection.recommended")]}),g.jsx("option",{value:"claude",children:"Claude"}),g.jsx("option",{value:"codex",children:"Codex"})]})]}),g.jsx("div",{className:"flex justify-end mb-4",children:g.jsxs("button",{onClick:w,className:"flex items-center gap-2 px-4 py-2 bg-neutral-100 hover:bg-neutral-200 text-text rounded-lg transition-colors font-medium text-sm",children:[g.jsx(G0,{size:16})," ",l("common.detectAll")]})}),g.jsx("div",{className:"space-y-4 mb-6",children:Object.entries(p).map(([N,_])=>g.jsxs("div",{className:"p-5 bg-panel border border-border rounded-xl shadow-sm transition-shadow hover:shadow-md",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold capitalize text-lg text-text font-display",children:N}),g.jsx("p",{className:"text-sm text-muted",children:l("agentDetection.cliPathDetection")})]}),g.jsx(RR,{status:_.status||"unknown",loading:c})]}),g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsxs("label",{className:"flex items-center gap-2 text-sm text-text font-medium cursor-pointer w-fit",children:[g.jsx("input",{type:"checkbox",checked:_.enabled,onChange:O=>j(N,O.target.checked),className:"w-4 h-4 text-accent rounded focus:ring-accent border-gray-300"}),l("common.enabled")]}),g.jsxs("div",{className:"flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx("label",{className:"text-xs font-medium text-muted uppercase",children:l("agentDetection.cliPath")}),x(_)&&g.jsx("span",{className:"text-[10px] text-danger bg-danger/10 px-1.5 py-0.5 rounded border border-danger/20",children:l("common.notFound")}),!x(_)&&_.status==="ok"&&g.jsx("span",{className:"text-[10px] text-success bg-success/10 px-1.5 py-0.5 rounded border border-success/20",children:l("common.found")})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("input",{type:"text",value:_.cli_path,onChange:O=>v(z=>({...z,[N]:{...z[N],cli_path:O.target.value}})),placeholder:l("agentDetection.cliPathPlaceholder",{name:N}),className:"flex-1 bg-bg border border-border rounded px-3 py-2 text-sm focus:outline-none focus:border-accent font-mono text-text"}),g.jsx("button",{onClick:()=>S(N),disabled:c,className:"px-3 py-2 bg-neutral-100 hover:bg-neutral-200 rounded text-sm text-muted hover:text-text font-medium transition-colors border border-border",children:c?g.jsx(ra,{size:14,className:"animate-spin"}):l("common.detect")})]})]})]})]},N))}),g.jsxs("div",{className:"mt-auto flex justify-between pt-4",children:[g.jsx("button",{onClick:s,className:"px-6 py-2 text-muted hover:text-text font-medium transition-colors",children:l("common.back")}),g.jsx("button",{onClick:()=>a({agents:p,default_backend:h}),disabled:!R,className:Ue("px-8 py-3 rounded-lg font-medium transition-colors shadow-sm",R?"bg-accent hover:bg-accent/90 text-white":"bg-neutral-200 text-muted cursor-not-allowed"),children:l("common.continue")})]})]})},RR=({status:n,loading:a})=>{const{t:s}=_t();return a?g.jsx("div",{className:"animate-spin text-muted",children:g.jsx(ra,{size:20})}):n==="unknown"?g.jsx("span",{className:"text-sm text-muted italic",children:s("common.notChecked")}):n==="ok"?g.jsxs("div",{className:"flex items-center gap-2 text-success bg-success/10 px-3 py-1 rounded-full text-sm font-medium border border-success/20",children:[g.jsx(ko,{size:14})," ",s("common.found")]}):g.jsxs("div",{className:"flex items-center gap-2 text-danger bg-danger/10 px-3 py-1 rounded-full text-sm font-medium border border-danger/20",children:[g.jsx(P0,{size:14})," ",s("common.missing")]})},MR=({data:n,onNext:a,onBack:s})=>{const{t:l}=_t(),r=ca(),[c,d]=T.useState(n.slack?.bot_token||n.slackBotToken||""),[h,m]=T.useState(n.slack?.app_token||n.slackAppToken||""),[p]=T.useState(n.mode||"saas"),[v,x]=T.useState(!1),[S,w]=T.useState(null),[j,R]=T.useState(""),[N,_]=T.useState(""),[O,z]=T.useState(!1),[F,H]=T.useState(!1),[Q,X]=T.useState({1:!0,2:!1,3:!1,4:!1}),q=T.useMemo(()=>p==="saas"?!0:c.startsWith("xoxb-")&&h.startsWith("xapp-"),[p,c,h]);T.useEffect(()=>{p==="self_host"&&$()},[p]),T.useEffect(()=>{c.startsWith("xoxb-")&&!Q[3]&&X(ie=>({...ie,2:!1,3:!0}))},[c]),T.useEffect(()=>{h.startsWith("xapp-")&&!Q[4]&&X(ie=>({...ie,3:!1,4:!0}))},[h]);const $=async()=>{z(!0);try{const ie=await r.slackManifest();ie.ok&&(ie.manifest&&R(ie.manifest),ie.manifest_compact&&_(ie.manifest_compact))}catch(ie){console.error("Failed to load manifest:",ie)}finally{z(!1)}},Z=async()=>{if(j)try{await navigator.clipboard.writeText(j),H(!0),setTimeout(()=>H(!1),2e3)}catch(ie){console.error("Failed to copy:",ie)}},re=()=>{if(N){const ie=`https://api.slack.com/apps?new_app=1&manifest_json=${encodeURIComponent(N)}`;window.open(ie,"_blank")}else window.open("https://api.slack.com/apps?new_app=1","_blank")},de=async()=>{x(!0);try{const ie=await r.slackAuthTest(c);w(ie)}catch(ie){w({ok:!1,error:ie?.message||"Request failed"})}finally{x(!1)}},I=ie=>{X(D=>({...D,[ie]:!D[ie]}))},oe=({step:ie,title:D,icon:B,completed:J})=>g.jsxs("button",{onClick:()=>I(ie),className:"w-full px-4 py-3 flex items-center justify-between bg-neutral-50 hover:bg-neutral-100 transition-colors",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:Ue("w-7 h-7 rounded-full text-sm font-bold flex items-center justify-center transition-colors",J?"bg-success text-white":"bg-accent text-white"),children:J?g.jsx(ko,{size:14}):ie}),g.jsxs("span",{className:"flex items-center gap-2 font-semibold text-text",children:[B,D]})]}),Q[ie]?g.jsx(VN,{size:18,className:"text-muted"}):g.jsx(vx,{size:18,className:"text-muted"})]});return g.jsxs("div",{className:"flex flex-col h-full max-w-2xl mx-auto",children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("h2",{className:"text-3xl font-display font-bold text-text",children:l("slackConfig.title")}),g.jsx("p",{className:"text-muted mt-1",children:l(p==="saas"?"slackConfig.saasDescription":"slackConfig.selfHostDescription")})]}),p==="saas"?g.jsxs("div",{className:"flex flex-col items-center justify-center h-64 border-2 border-dashed border-border rounded-xl bg-neutral-50",children:[g.jsx("p",{className:"text-muted mb-6 text-center max-w-xs",children:l("slackConfig.oauthPrompt")}),g.jsx("button",{className:"px-6 py-3 bg-accent text-white rounded-lg font-medium hover:bg-accent/90 transition-colors shadow-sm",children:l("slackConfig.openSlackOAuth")}),g.jsx("p",{className:"text-xs text-muted mt-6",children:l("slackConfig.afterAuth")})]}):g.jsxs("div",{className:"space-y-3 overflow-y-auto flex-1 pr-1",children:[g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden",children:[g.jsx(oe,{step:1,title:l("slackConfig.step1Title"),icon:g.jsx(uR,{size:16,className:"text-accent"})}),Q[1]&&g.jsxs("div",{className:"p-4 space-y-4 border-t border-border",children:[g.jsx("p",{className:"text-sm text-muted",children:l("slackConfig.step1Description")}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsxs("button",{onClick:re,disabled:!N||O,className:"flex items-center gap-2 px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors font-medium shadow-sm",children:[g.jsx(XN,{size:16}),l("slackConfig.createSlackApp")]}),g.jsxs("button",{onClick:Z,disabled:!j||O,className:"flex items-center gap-2 px-4 py-2 bg-neutral-100 hover:bg-neutral-200 text-text rounded-lg transition-colors font-medium border border-border",children:[F?g.jsx(ko,{size:16}):g.jsx(U0,{size:16}),l(F?"slackConfig.copied":"slackConfig.copyManifest")]})]}),j&&g.jsxs("details",{className:"group",children:[g.jsxs("summary",{className:"cursor-pointer text-sm text-accent hover:text-accent/80 flex items-center gap-1",children:[g.jsx(vx,{size:14,className:"transition-transform group-open:rotate-180"}),l("slackConfig.viewManifest")]}),g.jsx("pre",{className:"mt-2 bg-neutral-900 text-neutral-100 p-3 rounded-lg text-xs overflow-x-auto max-h-40 overflow-y-auto font-mono",children:j})]}),O&&g.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted",children:[g.jsx(ra,{size:14,className:"animate-spin"}),l("common.loading")]}),g.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-3 text-sm text-blue-800",children:[g.jsxs("strong",{children:[l("slackConfig.tip"),":"]})," ",l("slackConfig.step1Tip")]})]})]}),g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden",children:[g.jsx(oe,{step:2,title:l("slackConfig.step2Title"),icon:g.jsx(Tx,{size:16,className:"text-accent"}),completed:c.startsWith("xoxb-")}),Q[2]&&g.jsxs("div",{className:"p-4 space-y-4 border-t border-border",children:[g.jsx("p",{className:"text-sm text-muted",children:l("slackConfig.step2Description")}),g.jsxs("ol",{className:"list-decimal list-inside space-y-1.5 text-sm text-muted pl-1",children:[g.jsx("li",{children:l("slackConfig.step2Item1")}),g.jsx("li",{children:l("slackConfig.step2Item2")}),g.jsx("li",{children:l("slackConfig.step2Item3")}),g.jsx("li",{children:l("slackConfig.step2Item4")})]}),g.jsxs("div",{className:"space-y-2 pt-2",children:[g.jsxs("label",{className:"text-sm font-medium text-text flex items-center gap-2",children:[g.jsx(bx,{size:16,className:"text-accent"})," ",l("slackConfig.botToken")]}),g.jsx("input",{type:"password",value:c,onChange:ie=>d(ie.target.value),placeholder:"xoxb-...",className:"w-full bg-bg border border-border rounded-lg p-3 text-text focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent font-mono transition-colors"}),g.jsxs("p",{className:"text-xs text-muted",children:[l("slackConfig.botTokenHint")," ",g.jsx("code",{className:"bg-neutral-100 px-1.5 py-0.5 rounded text-text",children:"xoxb-"})]})]})]})]}),g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden",children:[g.jsx(oe,{step:3,title:l("slackConfig.step3Title"),icon:g.jsx(aR,{size:16,className:"text-accent"}),completed:h.startsWith("xapp-")}),Q[3]&&g.jsxs("div",{className:"p-4 space-y-4 border-t border-border",children:[g.jsx("p",{className:"text-sm text-muted",children:l("slackConfig.step3Description")}),g.jsxs("ol",{className:"list-decimal list-inside space-y-1.5 text-sm text-muted pl-1",children:[g.jsx("li",{children:l("slackConfig.step3Item1")}),g.jsx("li",{children:l("slackConfig.step3Item2")}),g.jsx("li",{children:l("slackConfig.step3Item3")}),g.jsx("li",{children:l("slackConfig.step3Item4")}),g.jsx("li",{children:l("slackConfig.step3Item5")})]}),g.jsxs("div",{className:"space-y-2 pt-2",children:[g.jsxs("label",{className:"text-sm font-medium text-text flex items-center gap-2",children:[g.jsx(bx,{size:16,className:"text-accent"})," ",l("slackConfig.appToken")]}),g.jsx("input",{type:"password",value:h,onChange:ie=>m(ie.target.value),placeholder:"xapp-...",className:"w-full bg-bg border border-border rounded-lg p-3 text-text focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent font-mono transition-colors"}),g.jsxs("p",{className:"text-xs text-muted",children:[l("slackConfig.appTokenHint")," ",g.jsx("code",{className:"bg-neutral-100 px-1.5 py-0.5 rounded text-text",children:"xapp-"})]})]}),g.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-3 text-sm text-yellow-800",children:[g.jsxs("strong",{children:[l("slackConfig.important"),":"]})," ",l("slackConfig.step3Warning")]})]})]}),g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden",children:[g.jsx(oe,{step:4,title:l("slackConfig.step4Title"),icon:g.jsx(H0,{size:16,className:"text-accent"}),completed:S?.ok}),Q[4]&&g.jsxs("div",{className:"p-4 space-y-4 border-t border-border",children:[g.jsx("p",{className:"text-sm text-muted",children:l("slackConfig.step4Description")}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{onClick:de,disabled:!c||!h||v,className:"px-4 py-2 bg-accent text-white rounded-lg flex items-center gap-2 transition-colors font-medium shadow-sm hover:bg-accent/90 disabled:opacity-50 disabled:cursor-not-allowed",children:[v?g.jsx(ra,{size:16,className:"animate-spin"}):g.jsx(Tx,{size:16}),l("slackConfig.validateTokens")]}),S&&g.jsx("span",{className:Ue("flex items-center gap-2 text-sm font-medium px-3 py-1.5 rounded-lg border",S.ok?"text-success bg-success/10 border-success/20":"text-danger bg-danger/10 border-danger/20"),children:S.ok?g.jsxs(g.Fragment,{children:[g.jsx(ko,{size:14}),g.jsx("span",{children:l("slackConfig.tokenValidated")})]}):g.jsxs("span",{children:[l("slackConfig.authFailed"),": ",S.error]})})]}),S?.ok&&g.jsxs("div",{className:"space-y-3 pt-2",children:[g.jsx("p",{className:"text-sm font-medium text-text",children:l("slackConfig.inviteBotTitle")}),g.jsxs("ol",{className:"list-decimal list-inside space-y-1.5 text-sm text-muted pl-1",children:[g.jsx("li",{children:l("slackConfig.step4Item1")}),g.jsx("li",{children:l("slackConfig.step4Item2")}),g.jsx("li",{children:l("slackConfig.step4Item3")})]}),g.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-3 text-sm text-green-800",children:[g.jsxs("strong",{children:[l("slackConfig.tip"),":"]})," ",l("slackConfig.step4Tip")]})]})]})]})]}),g.jsxs("div",{className:"mt-auto flex justify-between pt-6 border-t border-border",children:[g.jsx("button",{onClick:s,className:"px-6 py-2 text-muted hover:text-text font-medium transition-colors",children:l("common.back")}),g.jsx("button",{onClick:()=>a({slack:{bot_token:c,app_token:h},mode:p}),disabled:!q,className:Ue("px-8 py-3 rounded-lg font-medium transition-colors shadow-sm",q?"bg-accent hover:bg-accent/90 text-white":"bg-neutral-200 text-muted cursor-not-allowed"),children:l("common.continue")})]})]})},Q0=T.createContext(null);let OR=0;const DR=({children:n})=>{const[a,s]=T.useState([]),l=T.useCallback((c,d="success")=>{const h=++OR;s(m=>[...m,{id:h,message:c,type:d}]),setTimeout(()=>{s(m=>m.filter(p=>p.id!==h))},3e3)},[]),r=T.useCallback(c=>{s(d=>d.filter(h=>h.id!==c))},[]);return g.jsxs(Q0.Provider,{value:{showToast:l},children:[n,g.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:a.map(c=>g.jsxs("div",{className:`flex items-center gap-3 px-4 py-3 rounded-lg shadow-lg border animate-slide-in ${c.type==="success"?"bg-success/10 border-success/30 text-success":"bg-error/10 border-error/30 text-error"}`,children:[c.type==="success"?g.jsx(gd,{size:18}):g.jsx(V0,{size:18}),g.jsx("span",{className:"text-sm font-medium",children:c.message}),g.jsx("button",{onClick:()=>r(c.id),className:"ml-2 opacity-60 hover:opacity-100 transition-opacity",children:g.jsx(P0,{size:14})})]},c.id))})]})},_R=()=>{const n=T.useContext(Q0);if(!n)throw new Error("useToast must be used within a ToastProvider");return n},Z0=({data:n={},onNext:a,onBack:s,isPage:l})=>{const{t:r}=_t(),c=ca(),{showToast:d}=_R(),[h,m]=T.useState(!1),[p,v]=T.useState([]),[x,S]=T.useState(n.channelConfigs||{}),[w,j]=T.useState(n),[R,N]=T.useState(null),[_,O]=T.useState({});T.useEffect(()=>{l||S(n.channelConfigs||{})},[n.channelConfigs,l]),T.useEffect(()=>{l&&c.getConfig().then(I=>{j(I),c.getSettings().then(oe=>{S(oe.channels||{})})})},[l]);const z=w.slack?.bot_token||w.slackBotToken||"",F=async()=>{if(z){m(!0);try{const I=await c.slackChannels(z);I.ok&&v(I.channels||[])}catch(I){console.error("Failed to load channels:",I)}finally{m(!1)}}},H=async()=>{try{const I=w.runtime?.default_cwd||".",oe=await c.opencodeOptions(I);oe.ok&&N(oe.data)}catch(I){console.error("Failed to load OpenCode options:",I)}};T.useEffect(()=>{z&&F()},[z]),T.useEffect(()=>{w.agents?.opencode?.enabled&&H()},[w.agents?.opencode?.enabled]),T.useEffect(()=>{p.length&&O(I=>{const oe={...I};return p.forEach(ie=>{const D=x[ie.id]?.routing?.opencode_model||"";oe[ie.id]!==D&&(oe[ie.id]=D)}),oe})},[p,x]);const Q=I=>{const oe=x[I];return oe?oe.enabled!==!1:!1},X=async I=>{if(!l){S(I);return}m(!0);try{await c.saveSettings({channels:I}),d(r("channelList.settingsSaved"))}catch{d(r("channelList.settingsSaveFailed"),"error")}finally{m(!1)}},q=(I,oe)=>{const D={...x[I]||$(),...oe};D.show_message_types||(D.show_message_types=$().show_message_types),(!D.routing||typeof D.routing!="object")&&(D.routing={agent_backend:w.agents?.default_backend||"opencode"});const B={...x,[I]:D};S(B),X(B)},$=()=>({enabled:!1,show_message_types:[],custom_cwd:"",routing:{agent_backend:w.agents?.default_backend||"opencode",opencode_agent:null,opencode_model:null,opencode_reasoning_effort:null}}),Z=Dt.useMemo(()=>{const I=R?.reasoning_options||{};return I&&typeof I=="object"?I:{}},[R]),re=I=>Z[I]||[],de=p.filter(I=>Q(I.id)).length;return g.jsxs("div",{className:Ue("flex flex-col h-full",l?"max-w-5xl mx-auto":""),children:[g.jsx("div",{className:"flex justify-between items-center mb-6",children:g.jsxs("div",{children:[g.jsx("h2",{className:Ue("font-display font-bold",l?"text-3xl":"text-2xl"),children:r("channelList.title")}),g.jsx("p",{className:"text-muted",children:r("channelList.subtitle")})]})}),g.jsxs("div",{className:"mb-4 bg-panel border border-border p-4 rounded-lg space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("button",{onClick:F,className:"flex items-center gap-2 px-3 py-1.5 bg-neutral-100 hover:bg-neutral-200 text-text rounded text-sm font-medium transition-colors",children:[g.jsx(ra,{size:14,className:h?"animate-spin":""})," ",r("channelList.refreshList")]}),p.length===0&&!h&&g.jsx("span",{className:"text-sm text-warning",children:r("channelList.noChannelsFound")})]}),g.jsx("span",{className:"text-sm text-muted font-mono",children:r("channelList.enabledCount",{count:de})})]}),l&&g.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[g.jsx("span",{className:"text-muted",children:r("channelList.accessPolicy")}),g.jsx("span",{className:"text-xs text-muted",children:r("channelList.accessPolicyHint")})]})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto border border-border rounded-xl divide-y divide-border bg-panel shadow-sm",children:[!h&&p.length===0&&!z&&g.jsx("div",{className:"p-8 text-center text-muted",children:r("channelList.addTokenFirst")}),p.map(I=>{const oe=x[I.id]||{},ie=$(),D={...ie,...oe,enabled:Q(I.id),show_message_types:oe.show_message_types||ie.show_message_types,routing:{...ie.routing,...oe.routing||{}}};return g.jsxs("div",{className:"p-4 hover:bg-neutral-50/50 transition-colors",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("button",{onClick:()=>q(I.id,{enabled:!D.enabled}),className:D.enabled?"text-accent":"text-muted",children:D.enabled?g.jsx(xR,{size:20}):g.jsx(K0,{size:20})}),g.jsxs("div",{children:[g.jsxs("div",{className:"font-medium flex items-center gap-1 text-text",children:[g.jsx(H0,{size:14,className:"text-muted"})," ",I.name]}),g.jsxs("div",{className:"text-xs text-muted font-mono",children:["ID: ",I.id]})]})]}),g.jsx("span",{className:Ue("text-xs px-2 py-0.5 rounded-full border",I.is_private?"bg-warning/10 text-warning border-warning/20":"bg-success/10 text-success border-success/20"),children:I.is_private?r("common.private"):r("common.public")})]}),D.enabled&&g.jsxs("div",{className:"mt-4 pl-8 space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"text-xs font-medium text-muted uppercase",children:r("channelList.workingDirectory")}),g.jsx("input",{type:"text",placeholder:w.runtime?.default_cwd||r("channelList.useGlobalDefault"),value:D.custom_cwd,onChange:B=>q(I.id,{custom_cwd:B.target.value}),className:"w-full bg-bg border border-border rounded px-3 py-2 text-sm focus:outline-none focus:border-accent text-text placeholder:text-muted/50 font-mono"})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"text-xs font-medium text-muted uppercase",children:r("channelList.backend")}),g.jsxs("select",{value:D.routing.agent_backend||"",onChange:B=>q(I.id,{routing:{...D.routing,agent_backend:B.target.value||null}}),className:"w-full bg-bg border border-border rounded px-3 py-2 text-sm focus:outline-none focus:border-accent text-text",children:[g.jsxs("option",{value:"",children:[r("common.default")," (",w.agents?.default_backend||"opencode",")"]}),g.jsx("option",{value:"opencode",children:"OpenCode"}),g.jsx("option",{value:"claude",children:"Claude"}),g.jsx("option",{value:"codex",children:"Codex"})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("div",{className:"text-xs font-medium text-muted uppercase",children:r("channelList.showMessageTypes")}),g.jsx("div",{className:"flex flex-wrap gap-3 text-sm",children:["system","assistant","toolcall"].map(B=>{const J=D.show_message_types.includes(B);return g.jsxs("label",{className:"flex items-center gap-2 text-text",children:[g.jsx("input",{type:"checkbox",checked:J,onChange:()=>{const ue=J?D.show_message_types.filter(he=>he!==B):[...D.show_message_types,B];q(I.id,{show_message_types:ue})},className:"h-4 w-4 rounded border-border text-accent focus:ring-accent"}),g.jsx("span",{className:"capitalize",children:B==="toolcall"?"Toolcall":B})]},B)})})]}),D.routing.agent_backend==="opencode"&&g.jsxs("div",{className:"space-y-3",children:[g.jsx("div",{className:"text-xs font-medium text-muted uppercase",children:r("channelList.opencodeSettings")}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 bg-bg/50 p-3 rounded border border-border",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"text-xs text-muted",children:r("channelList.agent")}),g.jsxs("select",{value:D.routing.opencode_agent||"",onChange:B=>q(I.id,{routing:{...D.routing,opencode_agent:B.target.value||null}}),className:"w-full bg-panel border border-border rounded px-3 py-2 text-sm",children:[g.jsx("option",{value:"",children:r("common.default")}),(R?.agents||[]).map(B=>g.jsx("option",{value:B.name,children:B.name},B.name))]})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"text-xs text-muted",children:r("channelList.model")}),g.jsxs("select",{value:D.routing.opencode_model||"",onChange:B=>{const J=B.target.value||"";O(ue=>({...ue,[I.id]:J})),q(I.id,{routing:{...D.routing,opencode_model:J||null,opencode_reasoning_effort:null}})},className:"w-full bg-panel border border-border rounded px-3 py-2 text-sm",children:[g.jsx("option",{value:"",children:r("common.default")}),(R?.models?.providers||[]).flatMap(B=>{const J=B.id||B.provider_id||B.name,ue=B.name||J,he=B.models||{};return Array.isArray(he)?he.map(E=>{const Y=typeof E=="string"?E:E.id;return g.jsxs("option",{value:`${J}/${Y}`,children:[ue,"/",Y]},`${J}:${Y}`)}):Object.keys(he).map(E=>g.jsxs("option",{value:`${J}/${E}`,children:[ue,"/",E]},`${J}:${E}`))})]})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"text-xs text-muted",children:r("channelList.reasoningEffort")}),g.jsxs("select",{value:D.routing.opencode_reasoning_effort||"",onChange:B=>q(I.id,{routing:{...D.routing,opencode_reasoning_effort:B.target.value||null}}),disabled:!re(_[I.id]||D.routing.opencode_model||"").length,className:"w-full bg-panel border border-border rounded px-3 py-2 text-sm disabled:opacity-50",children:[g.jsx("option",{value:"",children:r("common.default")}),re(_[I.id]||D.routing.opencode_model||"").map(B=>g.jsx("option",{value:B.value,children:B.label},B.value))]})]})]})]})]})]},I.id)}),p.length===0&&!h&&g.jsx("div",{className:"p-8 text-center text-muted",children:r("channelList.noChannelsLoaded")})]}),!l&&g.jsxs("div",{className:"mt-6 flex justify-between",children:[g.jsx("button",{onClick:s,className:"px-6 py-2 text-muted hover:text-text font-medium",children:r("common.back")}),g.jsx("button",{onClick:()=>a&&a({channelConfigs:x}),className:"px-6 py-2 bg-accent hover:bg-accent/90 text-white rounded-lg font-medium shadow-sm",children:r("common.continue")})]})]})},J0=T.createContext(void 0),yd=()=>{const n=T.useContext(J0);if(!n)throw new Error("useStatus must be used within a StatusProvider");return n},LR=({children:n})=>{const[a,s]=T.useState({}),[l,r]=T.useState(!1),c=async()=>{try{(await fetch("/health")).ok?r(!0):r(!1)}catch{r(!1)}},d=async()=>{try{const m=await fetch("/status");if(m.ok){const p=await m.json();s(p)}}catch(m){console.error("Failed to fetch status",m)}},h=async(m,p={})=>{try{const v=await fetch("/control",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:m,...p})});if(v.ok)return await d(),await v.json()}catch(v){throw console.error("Control action failed",v),v}};return T.useEffect(()=>{c(),d();const m=setInterval(()=>{c(),d()},2e3);return()=>clearInterval(m)},[]),g.jsx(J0.Provider,{value:{status:a,health:l,refreshStatus:d,control:h},children:n})},kR=({data:n,onBack:a})=>{const{t:s}=_t(),l=ca(),{control:r}=yd(),[c,d]=T.useState(!1),[h,m]=T.useState(null),p=_f(),v=async()=>{d(!0),m(null);try{const x=VR(n);await l.saveConfig(x),await l.saveSettings(UR(n)),await r("start"),setTimeout(()=>{p("/dashboard")},1e3)}catch(x){const S=x&&x.message?x.message:"Failed to save configuration";m(S)}finally{d(!1)}};return g.jsxs("div",{className:"flex flex-col h-full max-w-2xl mx-auto",children:[g.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[g.jsx("div",{className:"w-12 h-12 bg-success/10 text-success rounded-full flex items-center justify-center border border-success/20",children:g.jsx(HN,{size:32})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-2xl font-display font-bold text-text",children:s("summary.title")}),g.jsx("p",{className:"text-muted",children:s("summary.subtitle")})]})]}),g.jsxs("div",{className:"flex-1 space-y-4 overflow-y-auto mb-6",children:[g.jsx(Ls,{title:s("summary.mode"),value:n.mode}),g.jsx(Ls,{title:s("summary.slackBotToken"),value:wx(n.slack?.bot_token||"")}),g.jsx(Ls,{title:s("summary.slackAppToken"),value:wx(n.slack?.app_token||"")}),g.jsx(Ls,{title:s("summary.enabledAgents"),value:zR(n).join(", ")}),g.jsx(Ls,{title:s("summary.channelsConfigured"),value:Object.keys(n.channelConfigs||{}).filter(x=>n.channelConfigs[x]?.enabled).length})]}),h&&g.jsx("div",{className:"p-4 bg-danger/10 text-danger border border-danger/20 rounded-lg mb-4 text-sm",children:h}),g.jsxs("div",{className:"mt-auto flex justify-between",children:[g.jsx("button",{onClick:a,className:"px-6 py-2 text-muted hover:text-text font-medium transition-colors",children:s("common.back")}),g.jsx("button",{onClick:v,disabled:c,className:"px-8 py-3 bg-success hover:bg-success/90 text-white rounded-lg font-bold transition-colors shadow-sm",children:s(c?"common.saving":"summary.finishAndStart")})]})]})},Ls=({title:n,value:a})=>g.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4 shadow-sm flex justify-between items-center",children:[g.jsx("h3",{className:"text-sm font-medium text-muted uppercase tracking-wider",children:n}),g.jsx("div",{className:"text-text font-medium text-sm",children:String(a)})]}),wx=n=>n?`${n.slice(0,6)}...${n.slice(-4)}`:"Not set",zR=n=>{const a=n.agents||{};return Object.keys(a).filter(s=>a[s]?.enabled)},VR=n=>{const a=n.agents||{};return{mode:n.mode||"self_host",version:"v2",slack:{bot_token:n.slack?.bot_token||"",app_token:n.slack?.app_token||"",require_mention:n.slack?.require_mention||!1},runtime:{default_cwd:n.default_cwd||"/Users/cyh/PycharmProjects/vibe-remote/_tmp",log_level:"INFO"},agents:{default_backend:n.default_backend||"opencode",opencode:{enabled:a.opencode?.enabled??!0,cli_path:a.opencode?.cli_path||"opencode",default_agent:n.opencode_default_agent||null,default_model:n.opencode_default_model||null,default_reasoning_effort:n.opencode_default_reasoning_effort||null},claude:{enabled:a.claude?.enabled??!0,cli_path:a.claude?.cli_path||"claude",default_model:n.claude_default_model||null},codex:{enabled:a.codex?.enabled??!1,cli_path:a.codex?.cli_path||"codex",default_model:n.codex_default_model||null}},ui:{setup_host:n.ui?.setup_host||"127.0.0.1",setup_port:n.ui?.setup_port||5123,open_browser:!0}}},UR=n=>{const a=n.channelConfigs||{};return{channels:Object.fromEntries(Object.entries(a).map(([s,l])=>[s,{enabled:l.enabled,show_message_types:l.show_message_types||[],custom_cwd:l.custom_cwd||null,routing:{agent_backend:l.routing?.agent_backend||null,opencode_agent:l.routing?.opencode_agent||null,opencode_model:l.routing?.opencode_model||null,opencode_reasoning_effort:l.routing?.opencode_reasoning_effort||null}}]))}},Wc=[{code:"en",label:"English"},{code:"zh",label:"中文"}],W0=()=>{const{i18n:n}=_t(),a=Wc.find(l=>l.code===n.language)||Wc[0],s=l=>{n.changeLanguage(l.target.value)};return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(eR,{size:16,className:"text-muted"}),g.jsx("select",{value:a.code,onChange:s,className:"bg-transparent border border-border rounded px-2 py-1 text-sm text-text cursor-pointer hover:bg-neutral-50 focus:outline-none focus:ring-1 focus:ring-accent",children:Wc.map(l=>g.jsx("option",{value:l.code,children:l.label},l.code))})]})},BR=n=>({mode:n.mode||"self_host",version:"v2",slack:{bot_token:n.slack?.bot_token||"",app_token:n.slack?.app_token||"",require_mention:n.slack?.require_mention||!1},runtime:{default_cwd:n.default_cwd||".",log_level:"INFO"},agents:{default_backend:n.default_backend||"opencode",opencode:{enabled:n.agents?.opencode?.enabled??!0,cli_path:n.agents?.opencode?.cli_path||"opencode",default_agent:n.opencode_default_agent||null,default_model:n.opencode_default_model||null,default_reasoning_effort:n.opencode_default_reasoning_effort||null},claude:{enabled:n.agents?.claude?.enabled??!0,cli_path:n.agents?.claude?.cli_path||"claude",default_model:n.claude_default_model||null},codex:{enabled:n.agents?.codex?.enabled??!1,cli_path:n.agents?.codex?.cli_path||"codex",default_model:n.codex_default_model||null}},ui:{setup_host:n.ui?.setup_host||"127.0.0.1",setup_port:n.ui?.setup_port||5123,open_browser:!0}}),No=[{id:"welcome",title:"Welcome",component:ER},{id:"mode",title:"Mode",component:jR},{id:"agents",title:"Agents",component:NR},{id:"slack",title:"Slack",component:MR},{id:"channels",title:"Channels",component:Z0},{id:"summary",title:"Finish",component:kR}],HR=()=>{const{t:n}=_t(),a=ca(),[s,l]=T.useState(0),[r,c]=T.useState({}),[d,h]=T.useState(!1);T.useEffect(()=>{(async()=>{try{const w=await a.getConfig(),j=await a.getSettings();c({...w,channelConfigs:j.channels||{},default_backend:w.agents?.default_backend,agents:{opencode:w.agents?.opencode,claude:w.agents?.claude,codex:w.agents?.codex}})}catch{}finally{h(!0)}})()},[]);const m=async S=>{const w={...r,...S};c(w),await v(w),s<No.length-1&&l(s+1)},p=()=>{s>0&&l(s-1)},v=async S=>{S&&((S.agents||S.slack||S.mode||S.channelConfigs)&&await a.saveConfig(BR(S)),S.channelConfigs&&await a.saveSettings({channels:S.channelConfigs}))},x=No[s].component;return d?g.jsx("div",{className:"min-h-screen bg-bg flex flex-col items-center justify-center p-4 md:p-8",children:g.jsxs("div",{className:"w-full max-w-4xl bg-panel rounded-2xl border border-border shadow-xl overflow-hidden flex flex-col min-h-[600px] max-h-[90vh]",children:[g.jsxs("div",{className:"bg-panel border-b border-border p-6 flex justify-between items-center relative z-10",children:[g.jsx("div",{children:g.jsx("h1",{className:"text-xl font-bold text-text font-display",children:n("wizard.title")})}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(W0,{}),g.jsx("div",{className:"flex gap-2",children:No.map((S,w)=>{if(S.id==="welcome")return null;const j=w<s,R=w===s;return g.jsx("div",{className:"flex flex-col items-center gap-1",children:g.jsx("div",{className:Ue("w-8 h-1 rounded-full transition-all duration-300",j?"bg-success":R?"bg-accent":"bg-neutral-200")})},S.id)})})]})]}),g.jsx("div",{className:"flex-1 p-8 relative overflow-y-auto",children:g.jsx(gA,{mode:"wait",children:g.jsx(wN.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2},className:"h-full",children:g.jsx(x,{data:r,onNext:m,onBack:p,isFirst:s===0,isLast:s===No.length-1})},s)})})]})}):g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-bg text-muted",children:n("common.loading")})},Ic=({to:n,icon:a,children:s})=>g.jsxs(Bs,{to:n,className:({isActive:l})=>Ue("flex items-center gap-3 px-3 py-2 rounded-md transition-colors",l?"bg-accent/10 text-accent font-medium":"text-muted hover:bg-neutral-100 hover:text-text"),children:[g.jsx(a,{className:"w-5 h-5"}),g.jsx("span",{children:s})]}),qR=()=>{const{t:n}=_t(),{status:a}=yd(),s=On(),l=a.state==="running";return s.pathname==="/setup"?g.jsx(ty,{}):g.jsxs("div",{className:"min-h-screen flex bg-bg text-text font-sans",children:[g.jsxs("aside",{className:"w-64 border-r border-border bg-panel hidden md:flex flex-col",children:[g.jsx("div",{className:"p-6 border-b border-border",children:g.jsxs("h1",{className:"text-xl font-bold font-display tracking-tight flex items-center gap-2",children:[g.jsx("img",{src:X0,alt:"Vibe Remote Logo",className:"w-6 h-6 rounded-md"}),n("appShell.title")]})}),g.jsxs("nav",{className:"flex-1 p-4 space-y-1",children:[g.jsx(Ic,{to:"/dashboard",icon:Sx,children:n("nav.dashboard")}),g.jsx(Ic,{to:"/channels",icon:Rf,children:n("nav.channels")}),g.jsx(Ic,{to:"/doctor",icon:Fo,children:n("nav.doctor")})]}),g.jsxs("div",{className:"p-4 border-t border-border space-y-3",children:[g.jsx(W0,{}),g.jsx("div",{className:"flex items-center justify-between bg-neutral-50 p-3 rounded-lg border border-border",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:Ue("w-2.5 h-2.5 rounded-full",l?"bg-success":"bg-muted")}),g.jsx("span",{className:"text-sm font-medium",children:n(l?"common.running":"common.stopped")})]})})]})]}),g.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-8",children:g.jsx(ty,{})}),g.jsxs("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-panel border-t border-border flex justify-around p-3 z-50 pb-safe",children:[g.jsx(Bs,{to:"/dashboard",className:({isActive:r})=>Ue("p-2 rounded-lg",r?"text-accent":"text-muted"),children:g.jsx(Sx,{})}),g.jsx(Bs,{to:"/channels",className:({isActive:r})=>Ue("p-2 rounded-lg",r?"text-accent":"text-muted"),children:g.jsx(Rf,{})}),g.jsx(Bs,{to:"/doctor",className:({isActive:r})=>Ue("p-2 rounded-lg",r?"text-accent":"text-muted"),children:g.jsx(Fo,{})})]})]})},GR=()=>{const{t:n}=_t(),{status:a,control:s}=yd(),[l,r]=Dt.useState(!1),[c,d]=Dt.useState({}),[h,m]=Dt.useState(null),[p,v]=Dt.useState(null),[x,S]=Dt.useState(!1),[w,j]=Dt.useState(null),[R,N]=Dt.useState(!1),[_,O]=Dt.useState(null),z=async q=>{r(!0);try{await s(q)}finally{r(!1)}},F=async q=>{try{await fetch("/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)}),v(n("common.saved"))}catch{v(n("common.saveFailed"))}},H=async()=>{S(!0),j(null);try{const q={setup_host:c.ui?.setup_host||"127.0.0.1",setup_port:c.ui?.setup_port||5123},$={...c,ui:{...c.ui||{},...q}};await fetch("/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),await fetch("/ui/reload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({host:q.setup_host,port:q.setup_port})}),j(n("dashboard.uiRestartMessage"));const Z=`http://${q.setup_host}:${q.setup_port}`;window.setTimeout(()=>{window.location.href=Z},2e3)}catch{j(n("common.saveFailed"))}finally{S(!1)}},Q=async()=>{N(!0),O(null);try{const q={log_level:c.runtime?.log_level||"INFO"},$={...c,runtime:{...c.runtime||{},...q}};await fetch("/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),await s("restart"),O(n("dashboard.mainServiceRestarted"))}catch{O(n("common.saveFailed"))}finally{N(!1)}};Dt.useEffect(()=>{(async()=>{try{const $=await fetch("/config");if($.ok){const re=await $.json();d(re)}const Z=await fetch("/doctor",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"});Z.ok&&m(await Z.json())}catch{}})()},[]),Dt.useEffect(()=>{if(!p)return;const q=window.setTimeout(()=>{v(null)},4e3);return()=>window.clearTimeout(q)},[p]),Dt.useEffect(()=>{if(!_)return;const q=window.setTimeout(()=>{O(null)},4e3);return()=>window.clearTimeout(q)},[_]);const X=c.mode!=="self_host";return g.jsxs("div",{className:"max-w-5xl mx-auto space-y-8",children:[g.jsx("header",{className:"flex items-center justify-between",children:g.jsxs("div",{children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-2 text-text",children:n("dashboard.title")}),g.jsx("p",{className:"text-muted",children:n("dashboard.subtitle")})]})}),g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[n("dashboard.serviceStatus"),g.jsx("span",{className:`px-2 py-0.5 rounded-full text-xs font-medium ${a.state==="running"?"bg-success/10 text-success":"bg-muted/10 text-muted"}`,children:a.state?.toUpperCase()||n("common.unknown").toUpperCase()})]}),g.jsxs("p",{className:"text-sm text-muted mt-1",children:["PID: ",a.service_pid||a.pid||"-"]})]}),g.jsxs("div",{className:"flex gap-2",children:[a.state!=="running"&&g.jsxs("button",{onClick:()=>z("start"),disabled:l,className:"flex items-center gap-2 px-4 py-2 bg-success text-white rounded-lg hover:bg-success/90 disabled:opacity-50 font-medium shadow-sm transition-colors",children:[g.jsx(q0,{size:16})," ",n("common.start")]}),a.state==="running"&&g.jsxs("button",{onClick:()=>z("stop"),disabled:l,className:"flex items-center gap-2 px-4 py-2 bg-danger text-white rounded-lg hover:bg-danger/90 disabled:opacity-50 font-medium shadow-sm transition-colors",children:[g.jsx(K0,{size:16})," ",n("common.stop")]}),g.jsxs("button",{onClick:()=>z("restart"),disabled:l,className:"flex items-center gap-2 px-4 py-2 border border-border bg-white hover:bg-neutral-50 rounded-lg disabled:opacity-50 text-text font-medium transition-colors",children:[g.jsx(Jc,{size:16})," ",n("common.restart")]})]})]}),g.jsxs("div",{className:`grid grid-cols-1 gap-6 border-t border-border pt-6 ${X?"md:grid-cols-3":"md:grid-cols-1"}`,children:[g.jsxs("div",{children:[g.jsx("div",{className:"text-sm text-muted mb-1",children:n("dashboard.mode")}),g.jsx("div",{className:"font-mono font-medium text-text capitalize",children:c.mode||"-"})]}),X&&g.jsxs("div",{children:[g.jsx("div",{className:"text-sm text-muted mb-1",children:n("dashboard.workspace")}),g.jsx("div",{className:"font-medium text-text",children:c.slack?.team_name||"-"}),g.jsx("div",{className:"text-xs text-muted font-mono",children:c.slack?.team_id||""})]}),X&&g.jsxs("div",{children:[g.jsx("div",{className:"text-sm text-muted mb-1",children:n("dashboard.gateway")}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${c.gateway?.relay_url?"bg-success":"bg-danger"}`}),g.jsx("span",{className:"text-text",children:c.gateway?.relay_url?n("common.online"):n("common.offline")})]})]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("h3",{className:"font-semibold flex items-center gap-2 text-text",children:[g.jsx(Fo,{size:18})," ",n("dashboard.health")]}),g.jsx(Da,{to:"/doctor",className:"text-sm text-accent hover:underline font-medium",children:n("common.viewDetails")})]}),g.jsxs("div",{className:`flex items-center gap-2 font-medium ${h?.ok?"text-success":"text-warning"}`,children:[g.jsx(gd,{size:16})," ",h?.ok?n("dashboard.allSystemsOperational"):n("dashboard.issuesDetected")]})]}),g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("h3",{className:"font-semibold flex items-center gap-2 text-text",children:[g.jsx(pR,{size:18})," ",n("dashboard.globalPolicy")]}),g.jsx(Da,{to:"/setup",className:"text-sm text-accent hover:underline font-medium",children:n("common.editSetup")})]}),g.jsxs("div",{className:"space-y-3 text-sm",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.mode")}),g.jsx("span",{className:"font-mono text-xs text-text capitalize",children:c.mode||"-"})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.defaultBackend")}),g.jsx("span",{className:"font-mono text-xs text-text",children:c.agents?.default_backend||"opencode"})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.slackWorkspace")}),g.jsx("span",{className:"text-xs text-text",children:c.slack?.team_name||n("common.notLinked")})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.gateway")}),g.jsx("span",{className:"text-xs text-text",children:c.gateway?.relay_url?n("common.online"):n("common.offline")})]})]})]}),g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("h3",{className:"font-semibold flex items-center gap-2 text-text",children:[g.jsx(Rf,{size:18})," ",n("dashboard.messageHandling")]})}),g.jsxs("div",{className:"space-y-3 text-sm",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("span",{className:"text-muted flex items-center gap-1",children:[n("dashboard.requireMention"),g.jsxs("span",{className:"relative group",children:[g.jsx(Zc,{size:12,className:"text-muted/50 cursor-help"}),g.jsx("span",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1 px-2 py-1 bg-text text-bg text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:n("dashboard.requireMentionHint")})]})]}),g.jsx("button",{onClick:()=>{v(null);const q={...c,slack:{...c.slack||{},require_mention:!c.slack?.require_mention}};d(q),F(q)},className:`px-2 py-1 rounded text-xs font-semibold border ${c.slack?.require_mention?"bg-success/10 text-success border-success/20":"bg-neutral-100 text-muted border-border"}`,children:c.slack?.require_mention?n("common.enabled"):n("common.disabled")})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("span",{className:"text-muted flex items-center gap-1",children:[n("dashboard.ackMode"),g.jsxs("span",{className:"relative group",children:[g.jsx(Zc,{size:12,className:"text-muted/50 cursor-help"}),g.jsx("span",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1 px-2 py-1 bg-text text-bg text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:n("dashboard.ackModeHint")})]})]}),g.jsxs("select",{value:c.ack_mode||"reaction",onChange:q=>{const $=q.target.value||"reaction";v(null);const Z={...c,ack_mode:$};d(Z),F(Z)},className:"w-36 bg-neutral-100 border border-border rounded px-2 py-1 text-xs font-mono",children:[g.jsx("option",{value:"reaction",children:n("dashboard.ackReaction")}),g.jsx("option",{value:"message",children:n("dashboard.ackMessage")})]})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("span",{className:"text-muted flex items-center gap-1",children:[n("dashboard.errorRetryLimit"),g.jsxs("span",{className:"relative group",children:[g.jsx(Zc,{size:12,className:"text-muted/50 cursor-help"}),g.jsx("span",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1 px-2 py-1 bg-text text-bg text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10 w-48",children:n("dashboard.errorRetryLimitHint")})]})]}),g.jsx("input",{type:"number",min:0,max:10,value:c.agents?.opencode?.error_retry_limit??1,onChange:q=>{const $=Math.max(0,Math.min(10,Number(q.target.value)||0));v(null);const Z={...c,agents:{...c.agents||{},opencode:{...c.agents?.opencode||{},error_retry_limit:$}}};d(Z),F(Z)},className:"w-16 bg-neutral-100 border border-border rounded px-2 py-1 text-xs font-mono text-center"})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.allowedChannels")}),g.jsx(Da,{to:"/channels",className:"text-xs text-accent hover:underline font-medium",children:n("common.manageChannels")})]})]})]}),g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("h3",{className:"font-semibold flex items-center gap-2 text-text",children:[g.jsx(Y0,{size:18})," ",n("dashboard.consoleServer")]})}),g.jsxs("div",{className:"space-y-3 text-sm",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.host")}),g.jsx("input",{type:"text",value:c.ui?.setup_host||"127.0.0.1",onChange:q=>{const $=q.target.value||"127.0.0.1";j(null),d(Z=>({...Z,ui:{...Z.ui||{},setup_host:$}}))},className:"w-40 bg-neutral-100 border border-border rounded px-2 py-1 text-xs font-mono"})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.port")}),g.jsx("input",{type:"number",min:1024,max:65535,value:c.ui?.setup_port||5123,onChange:q=>{const $=Number(q.target.value)||5123;j(null),d(Z=>({...Z,ui:{...Z.ui||{},setup_port:$}}))},className:"w-24 bg-neutral-100 border border-border rounded px-2 py-1 text-xs font-mono"})]})]}),g.jsxs("div",{className:"flex justify-between items-center mt-4 pt-4 border-t border-border",children:[w&&g.jsx("span",{className:"text-xs text-muted",children:w}),!w&&g.jsx("span",{}),g.jsxs("button",{onClick:H,disabled:x,className:"px-3 py-1.5 bg-accent text-white rounded-md text-xs font-semibold disabled:opacity-50 flex items-center gap-1",children:[g.jsx(Jc,{size:12})," ",n(x?"common.saving":"common.saveAndRestart")]})]})]}),g.jsxs("div",{className:"bg-panel rounded-xl border border-border p-6 shadow-sm",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsxs("h3",{className:"font-semibold flex items-center gap-2 text-text",children:[g.jsx(SR,{size:18})," ",n("dashboard.diagnostics")]}),g.jsx(Da,{to:"/doctor/logs",className:"text-sm text-accent hover:underline font-medium",children:n("common.viewLogs")})]}),g.jsxs("div",{className:"space-y-3 text-sm",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.logLevel")}),g.jsx("select",{value:c.runtime?.log_level||"INFO",onChange:q=>{const $=q.target.value||"INFO";O(null),d(Z=>({...Z,runtime:{...Z.runtime||{},log_level:$}}))},className:"w-28 bg-neutral-100 border border-border rounded px-2 py-1 text-xs font-mono",children:["DEBUG","INFO","WARNING","ERROR"].map(q=>g.jsx("option",{value:q,children:q},q))})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.configFile")}),g.jsx("code",{className:"font-mono text-xs bg-neutral-100 px-2 py-1 rounded text-text",children:"~/.vibe_remote/config/config.json"})]}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"text-muted",children:n("dashboard.logs")}),g.jsx("code",{className:"font-mono text-xs bg-neutral-100 px-2 py-1 rounded text-text",children:"~/.vibe_remote/logs/vibe_remote.log"})]})]}),g.jsxs("div",{className:"flex justify-between items-center mt-4 pt-4 border-t border-border",children:[_&&g.jsx("span",{className:"text-xs text-muted",children:_}),!_&&g.jsx("span",{}),g.jsxs("button",{onClick:Q,disabled:R,className:"px-3 py-1.5 bg-accent text-white rounded-md text-xs font-semibold disabled:opacity-50 flex items-center gap-1",children:[g.jsx(Jc,{size:12})," ",n(R?"common.saving":"common.saveAndRestart")]})]})]})]})]})},YR=({isPage:n})=>{const{t:a}=_t(),s=ca(),[l,r]=T.useState(!1),[c,d]=T.useState(null),h=async()=>{r(!0);try{const p=await s.doctor();d(p)}finally{r(!1)}};T.useEffect(()=>{h()},[]);const m=({status:p})=>{switch(p){case"pass":return g.jsx(gd,{size:18,className:"text-success"});case"warn":return g.jsx(wR,{size:18,className:"text-warning"});case"fail":return g.jsx(V0,{size:18,className:"text-danger"});default:return g.jsx("div",{className:"w-4 h-4 rounded-full bg-muted"})}};return g.jsxs("div",{className:Ue("flex flex-col",n?"max-w-4xl mx-auto h-full":"w-full"),children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("h2",{className:Ue("font-display font-bold flex items-center gap-2",n?"text-3xl":"text-xl"),children:[g.jsx(Fo,{className:"text-accent"}),a("doctor.title")]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs(Da,{to:"/doctor/logs",className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg text-sm text-muted hover:bg-neutral-50 hover:text-text transition-colors",children:[g.jsx(B0,{size:16})," ",a("common.viewLogs")]}),c&&g.jsxs("button",{onClick:()=>navigator.clipboard.writeText(JSON.stringify(c,null,2)),className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg text-sm text-muted hover:bg-neutral-50 hover:text-text transition-colors",children:[g.jsx(U0,{size:16})," ",a("doctor.copyReport")]}),g.jsxs("button",{onClick:h,disabled:l,className:"flex items-center gap-2 px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 disabled:opacity-50 transition-colors font-medium shadow-sm",children:[g.jsx(ra,{size:16,className:l?"animate-spin":""})," ",a("doctor.runChecks")]})]})]}),c&&g.jsxs("div",{className:"space-y-6",children:[c.groups?.map((p,v)=>g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden shadow-sm",children:[g.jsx("div",{className:"px-4 py-3 bg-neutral-50 border-b border-border font-semibold text-sm uppercase text-muted tracking-wide",children:p.name}),g.jsx("div",{className:"divide-y divide-border",children:p.items.map((x,S)=>g.jsxs("div",{className:"p-4 flex items-start gap-4 hover:bg-neutral-50/30 transition-colors",children:[g.jsx("div",{className:"mt-0.5",children:g.jsx(m,{status:x.status})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:Ue("font-medium",x.status==="fail"?"text-danger":"text-text"),children:x.message}),x.action&&g.jsx("div",{className:"mt-2 text-sm text-accent underline cursor-pointer",children:x.action})]})]},S))})]},v)),g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[g.jsxs("div",{className:"bg-success/10 border border-success/20 rounded-lg p-4 text-center",children:[g.jsx("div",{className:"text-2xl font-bold text-success",children:c.summary?.pass||0}),g.jsx("div",{className:"text-sm text-success/80 font-medium",children:a("doctor.passed")})]}),g.jsxs("div",{className:"bg-warning/10 border border-warning/20 rounded-lg p-4 text-center",children:[g.jsx("div",{className:"text-2xl font-bold text-warning",children:c.summary?.warn||0}),g.jsx("div",{className:"text-sm text-warning/80 font-medium",children:a("doctor.warnings")})]}),g.jsxs("div",{className:"bg-danger/10 border border-danger/20 rounded-lg p-4 text-center",children:[g.jsx("div",{className:"text-2xl font-bold text-danger",children:c.summary?.fail||0}),g.jsx("div",{className:"text-sm text-danger/80 font-medium",children:a("doctor.failed")})]})]})]})]})},Cx={DEBUG:{bg:"bg-neutral-100",text:"text-neutral-500",border:"border-neutral-200"},INFO:{bg:"bg-blue-50",text:"text-blue-600",border:"border-blue-200"},WARNING:{bg:"bg-yellow-50",text:"text-yellow-600",border:"border-yellow-200"},ERROR:{bg:"bg-red-50",text:"text-red-600",border:"border-red-200"}},KR=n=>{const a=n.match(/^\[([^\]]+)\]\s*-?\s*(.*)$/s);return a?{location:a[1],content:a[2]}:{content:n}},PR=()=>{const{t:n}=_t(),a=ca(),[s,l]=T.useState([]),[r,c]=T.useState(!1),[d,h]=T.useState(0),[m,p]=T.useState(""),[v,x]=T.useState("ALL"),[S,w]=T.useState(!1),j=T.useRef(null),R=T.useRef(null),N=async()=>{c(!0);try{const H=await a.getLogs(2e3);l(H.logs),h(H.total)}finally{c(!1)}};T.useEffect(()=>{N()},[]),T.useEffect(()=>(S?R.current=setInterval(N,5e3):R.current&&(clearInterval(R.current),R.current=null),()=>{R.current&&clearInterval(R.current)}),[S]),T.useEffect(()=>{j.current&&(j.current.scrollTop=0)},[s]);const _=T.useMemo(()=>s.filter(H=>{const Q=v==="ALL"||H.level===v,X=!m||H.message.toLowerCase().includes(m.toLowerCase())||H.logger.toLowerCase().includes(m.toLowerCase())||H.timestamp.includes(m);return Q&&X}),[s,v,m]),O=T.useMemo(()=>{const H={DEBUG:0,INFO:0,WARNING:0,ERROR:0};return s.forEach(Q=>{H[Q.level]!==void 0&&H[Q.level]++}),H},[s]),z=({level:H})=>{const Q=Cx[H]||Cx.INFO;return g.jsx("span",{className:Ue("px-1.5 py-0.5 rounded text-xs font-medium border min-w-[60px] text-center inline-block",Q.bg,Q.text,Q.border),children:H})},F=()=>{j.current&&(j.current.scrollTop=0)};return g.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col h-full",children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("h2",{className:"text-3xl font-display font-bold flex items-center gap-2",children:[g.jsx(B0,{className:"text-accent"}),n("logs.title")]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{onClick:()=>w(!S),className:Ue("flex items-center gap-2 px-3 py-2 border rounded-lg text-sm transition-colors",S?"bg-accent/10 border-accent text-accent":"border-border text-muted hover:bg-neutral-50 hover:text-text"),children:[S?g.jsx(lR,{size:16}):g.jsx(q0,{size:16}),n(S?"logs.autoRefreshOn":"logs.autoRefresh")]}),g.jsxs("button",{onClick:N,disabled:r,className:"flex items-center gap-2 px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 disabled:opacity-50 transition-colors font-medium shadow-sm",children:[g.jsx(ra,{size:16,className:r?"animate-spin":""}),n("common.refresh")]})]})]}),g.jsxs("div",{className:"space-y-4 flex-1 flex flex-col min-h-0",children:[g.jsxs("div",{className:"flex gap-3 items-center flex-wrap",children:[g.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[g.jsx(G0,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),g.jsx("input",{type:"text",placeholder:n("logs.searchPlaceholder"),value:m,onChange:H=>p(H.target.value),className:"w-full pl-10 pr-4 py-2 border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent"})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(QN,{size:16,className:"text-muted"}),g.jsxs("select",{value:v,onChange:H=>x(H.target.value),className:"px-3 py-2 border border-border rounded-lg text-sm bg-white focus:outline-none focus:ring-2 focus:ring-accent/20",children:[g.jsx("option",{value:"ALL",children:n("logs.allLevels")}),g.jsxs("option",{value:"ERROR",children:[n("logs.error")," (",O.ERROR,")"]}),g.jsxs("option",{value:"WARNING",children:[n("logs.warning")," (",O.WARNING,")"]}),g.jsxs("option",{value:"INFO",children:[n("logs.info")," (",O.INFO,")"]}),g.jsxs("option",{value:"DEBUG",children:[n("logs.debug")," (",O.DEBUG,")"]})]})]})]}),g.jsx("div",{className:"flex gap-2 flex-wrap",children:["ALL","ERROR","WARNING","INFO","DEBUG"].map(H=>g.jsxs("button",{onClick:()=>x(H),className:Ue("px-3 py-1 rounded-full text-xs font-medium border transition-colors",v===H?"bg-accent text-white border-accent":"bg-white text-muted border-border hover:border-accent/50"),children:[H==="ALL"?n("logs.all"):H,H!=="ALL"&&` (${O[H]})`]},H))}),g.jsxs("div",{className:"bg-panel border border-border rounded-xl overflow-hidden shadow-sm flex-1 flex flex-col min-h-0",children:[g.jsxs("div",{className:"px-4 py-3 bg-neutral-50 border-b border-border flex justify-between items-center flex-shrink-0",children:[g.jsxs("span",{className:"font-semibold text-sm text-muted",children:[n("logs.entriesCount",{filtered:_.length,total:s.length}),d>s.length&&` ${n("logs.totalInFile",{total:d})}`]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{onClick:F,className:"text-xs text-accent hover:underline flex items-center gap-1",children:[g.jsx(ON,{size:12})," ",n("logs.jumpToLatest")]}),g.jsx("code",{className:"text-xs text-muted bg-neutral-100 px-2 py-1 rounded",children:"~/.vibe_remote/logs/vibe_remote.log"})]})]}),r&&s.length===0?g.jsx("div",{className:"p-8 text-center text-muted flex-1 flex items-center justify-center",children:g.jsxs("div",{children:[g.jsx(ra,{size:24,className:"animate-spin mx-auto mb-2"}),n("logs.loadingLogs")]})}):_.length===0?g.jsx("div",{className:"p-8 text-center text-muted flex-1 flex items-center justify-center",children:s.length===0?n("logs.noLogsAvailable"):n("logs.noLogsMatch")}):g.jsx("div",{ref:j,className:"divide-y divide-border overflow-y-auto flex-1 font-mono text-sm",style:{minHeight:"500px",maxHeight:"calc(100vh - 380px)"},children:_.slice().reverse().map((H,Q)=>{const{location:X,content:q}=KR(H.message);return g.jsxs("div",{className:Ue("p-3 hover:bg-neutral-50/50 transition-colors",H.level==="ERROR"&&"bg-red-50/30",H.level==="WARNING"&&"bg-yellow-50/30"),children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-muted text-xs whitespace-nowrap",children:H.timestamp}),g.jsx(z,{level:H.level}),g.jsx("span",{className:"text-muted text-xs truncate max-w-[200px]",title:H.logger,children:H.logger}),X&&g.jsxs("span",{className:"text-muted/60 text-xs font-normal",children:["[",X,"]"]})]}),g.jsx("div",{className:Ue("mt-1.5 whitespace-pre-wrap break-words leading-relaxed",H.level==="ERROR"?"text-red-700":H.level==="WARNING"?"text-yellow-700":"text-text"),children:q})]},Q)})})]})]})]})},XR=({children:n})=>{const{getConfig:a}=ca(),[s,l]=T.useState(!0),[r,c]=T.useState(!1);return T.useEffect(()=>{a().then(d=>{(!d||!d.mode)&&c(!0),l(!1)}).catch(()=>{c(!0),l(!1)})},[]),s?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-bg text-text",children:"Loading..."}):r?g.jsx($x,{to:"/setup",replace:!0}):n};function FR(){return g.jsxs(rw,{children:[g.jsx(aa,{path:"/setup",element:g.jsx(HR,{})}),g.jsxs(aa,{element:g.jsx(XR,{children:g.jsx(qR,{})}),children:[g.jsx(aa,{path:"/dashboard",element:g.jsx(GR,{})}),g.jsx(aa,{path:"/channels",element:g.jsx(Z0,{isPage:!0})}),g.jsx(aa,{path:"/doctor",element:g.jsx(YR,{isPage:!0})}),g.jsx(aa,{path:"/doctor/logs",element:g.jsx(PR,{})}),g.jsx(aa,{path:"/",element:g.jsx($x,{to:"/dashboard",replace:!0})})]})]})}function $R(){return g.jsx(LR,{children:g.jsx(AR,{children:g.jsx(DR,{children:g.jsx(Dw,{children:g.jsx(FR,{})})})})})}DS.createRoot(document.getElementById("root")).render(g.jsx(T.StrictMode,{children:g.jsx($R,{})}));
diff --git a/ui/dist/assets/index-Do2UC_-L.css b/ui/dist/assets/index-Do2UC_-L.css
new file mode 100644
index 000000000..4de83b309
--- /dev/null
+++ b/ui/dist/assets/index-Do2UC_-L.css
@@ -0,0 +1 @@
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:"IBM Plex Sans",sans-serif;--font-mono:"IBM Plex Mono",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-300:oklch(87.2% .01 258.338);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--drop-shadow-lg:0 4px 4px #00000026;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-display:"Space Grotesk",sans-serif;--color-bg:var(--bg);--color-panel:var(--panel);--color-text:var(--text);--color-muted:var(--muted);--color-border:var(--border);--color-accent:var(--accent);--color-success:var(--success);--color-warning:var(--warning);--color-danger:var(--danger)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing)*3)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-auto{margin-top:auto}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-2{margin-left:calc(var(--spacing)*2)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-12{height:calc(var(--spacing)*12)}.h-20{height:calc(var(--spacing)*20)}.h-64{height:calc(var(--spacing)*64)}.h-full{height:100%}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-\[90vh\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[600px\]{min-height:600px}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-64{width:calc(var(--spacing)*64)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[200px\]{max-width:200px}.max-w-lg{max-width:var(--container-lg)}.max-w-xs{max-width:var(--container-xs)}.min-w-\[60px\]{min-width:60px}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-spin{animation:var(--animate-spin)}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent{border-color:var(--color-accent)}.border-blue-200{border-color:var(--color-blue-200)}.border-border{border-color:var(--color-border)}.border-danger\/20{border-color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.border-danger\/20{border-color:color-mix(in oklab,var(--color-danger)20%,transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-red-200{border-color:var(--color-red-200)}.border-success\/20{border-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.border-success\/20{border-color:color-mix(in oklab,var(--color-success)20%,transparent)}}.border-success\/30{border-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.border-success\/30{border-color:color-mix(in oklab,var(--color-success)30%,transparent)}}.border-warning\/20{border-color:var(--color-warning)}@supports (color:color-mix(in lab,red,red)){.border-warning\/20{border-color:color-mix(in oklab,var(--color-warning)20%,transparent)}}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-accent,.bg-accent\/5{background-color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/5{background-color:color-mix(in oklab,var(--color-accent)5%,transparent)}}.bg-accent\/10{background-color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/10{background-color:color-mix(in oklab,var(--color-accent)10%,transparent)}}.bg-bg,.bg-bg\/50{background-color:var(--color-bg)}@supports (color:color-mix(in lab,red,red)){.bg-bg\/50{background-color:color-mix(in oklab,var(--color-bg)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-danger,.bg-danger\/10{background-color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.bg-danger\/10{background-color:color-mix(in oklab,var(--color-danger)10%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-muted,.bg-muted\/10{background-color:var(--color-muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/10{background-color:color-mix(in oklab,var(--color-muted)10%,transparent)}}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-panel{background-color:var(--color-panel)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\/30{background-color:#fef2f24d}@supports (color:color-mix(in lab,red,red)){.bg-red-50\/30{background-color:color-mix(in oklab,var(--color-red-50)30%,transparent)}}.bg-success,.bg-success\/10{background-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.bg-success\/10{background-color:color-mix(in oklab,var(--color-success)10%,transparent)}}.bg-text{background-color:var(--color-text)}.bg-transparent{background-color:#0000}.bg-warning\/10{background-color:var(--color-warning)}@supports (color:color-mix(in lab,red,red)){.bg-warning\/10{background-color:color-mix(in oklab,var(--color-warning)10%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-50\/30{background-color:#fefce84d}@supports (color:color-mix(in lab,red,red)){.bg-yellow-50\/30{background-color:color-mix(in oklab,var(--color-yellow-50)30%,transparent)}}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-4{padding-right:calc(var(--spacing)*4)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.font-display{font-family:var(--font-display)}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--color-accent)}.text-bg{color:var(--color-bg)}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-danger,.text-danger\/80{color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.text-danger\/80{color:color-mix(in oklab,var(--color-danger)80%,transparent)}}.text-green-800{color:var(--color-green-800)}.text-muted,.text-muted\/50{color:var(--color-muted)}@supports (color:color-mix(in lab,red,red)){.text-muted\/50{color:color-mix(in oklab,var(--color-muted)50%,transparent)}}.text-muted\/60{color:var(--color-muted)}@supports (color:color-mix(in lab,red,red)){.text-muted\/60{color:color-mix(in oklab,var(--color-muted)60%,transparent)}}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-500{color:var(--color-neutral-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-success,.text-success\/80{color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.text-success\/80{color:color-mix(in oklab,var(--color-success)80%,transparent)}}.text-text{color:var(--color-text)}.text-warning,.text-warning\/80{color:var(--color-warning)}@supports (color:color-mix(in lab,red,red)){.text-warning\/80{color:color-mix(in oklab,var(--color-warning)80%,transparent)}}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-lg));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:translate-x-1:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-muted\/50::placeholder{color:var(--color-muted)}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-muted\/50::placeholder{color:color-mix(in oklab,var(--color-muted)50%,transparent)}}@media(hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:border-accent\/50:hover{border-color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.hover\:border-accent\/50:hover{border-color:color-mix(in oklab,var(--color-accent)50%,transparent)}}.hover\:bg-accent\/90:hover{background-color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/90:hover{background-color:color-mix(in oklab,var(--color-accent)90%,transparent)}}.hover\:bg-danger\/90:hover{background-color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-danger\/90:hover{background-color:color-mix(in oklab,var(--color-danger)90%,transparent)}}.hover\:bg-neutral-50:hover{background-color:var(--color-neutral-50)}.hover\:bg-neutral-50\/30:hover{background-color:#fafafa4d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-neutral-50\/30:hover{background-color:color-mix(in oklab,var(--color-neutral-50)30%,transparent)}}.hover\:bg-neutral-50\/50:hover{background-color:#fafafa80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-neutral-50\/50:hover{background-color:color-mix(in oklab,var(--color-neutral-50)50%,transparent)}}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-success\/90:hover{background-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-success\/90:hover{background-color:color-mix(in oklab,var(--color-success)90%,transparent)}}.hover\:text-accent\/80:hover{color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.hover\:text-accent\/80:hover{color:color-mix(in oklab,var(--color-accent)80%,transparent)}}.hover\:text-text:hover{color:var(--color-text)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-accent:focus{border-color:var(--color-accent)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-accent:focus,.focus\:ring-accent\/20:focus{--tw-ring-color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-accent\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-accent)20%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:p-8{padding:calc(var(--spacing)*8)}}}:root{--bg:#f6f2ea;--panel:#fff;--text:#1f2430;--muted:#5b6475;--border:#e6dfd3;--accent:#0b7285;--accent-2:#e29578;--success:#2f9e44;--warning:#f08c00;--danger:#d9480f}body{font-family:var(--font-sans);color:var(--text);background:linear-gradient(to top,var(--bg),#fff);min-height:100vh;margin:0}h1,h2,h3,h4,h5,h6{font-family:var(--font-display)}button,[role=button]{cursor:pointer}button:disabled{cursor:not-allowed}@keyframes slide-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.animate-slide-in{animation:.2s ease-out slide-in}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
diff --git a/ui/dist/assets/logo-BzryTZ7u.png b/ui/dist/assets/logo-BzryTZ7u.png
new file mode 100644
index 000000000..16d20f161
Binary files /dev/null and b/ui/dist/assets/logo-BzryTZ7u.png differ
diff --git a/ui/dist/index.html b/ui/dist/index.html
new file mode 100644
index 000000000..f8a9c5240
--- /dev/null
+++ b/ui/dist/index.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <link rel="icon" type="image/png" href="/logo.png" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Vibe Remote</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@600&display=swap" rel="stylesheet">
+ <script type="module" crossorigin src="/assets/index-C2FuQjsO.js"></script>
+ <link rel="stylesheet" crossorigin href="/assets/index-Do2UC_-L.css">
+ </head>
+ <body>
+ <div id="root"></div>
+ </body>
+</html>
diff --git a/ui/dist/logo.png b/ui/dist/logo.png
new file mode 100644
index 000000000..16d20f161
Binary files /dev/null and b/ui/dist/logo.png differ
diff --git a/ui/dist/vite.svg b/ui/dist/vite.svg
new file mode 100644
index 000000000..e7b8dfb1b
--- /dev/null
+++ b/ui/dist/vite.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
\ No newline at end of file