vskill 0.2.72 → 0.2.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +0,0 @@
1
- (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const v of m)if(v.type==="childList")for(const x of v.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function f(m){const v={};return m.integrity&&(v.integrity=m.integrity),m.referrerPolicy&&(v.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?v.credentials="include":m.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(m){if(m.ep)return;m.ep=!0;const v=f(m);fetch(m.href,v)}})();var Os={exports:{}},Dn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var tm;function my(){if(tm)return Dn;tm=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,v){var x=null;if(v!==void 0&&(x=""+v),m.key!==void 0&&(x=""+m.key),"key"in m){v={};for(var _ in m)_!=="key"&&(v[_]=m[_])}else v=m;return m=v.ref,{$$typeof:i,type:r,key:x,ref:m!==void 0?m:null,props:v}}return Dn.Fragment=o,Dn.jsx=f,Dn.jsxs=f,Dn}var lm;function hy(){return lm||(lm=1,Os.exports=my()),Os.exports}var c=hy(),Cs={exports:{}},ae={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var am;function vy(){if(am)return ae;am=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),x=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function V(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,Q={};function D(b,k,J){this.props=b,this.context=k,this.refs=Q,this.updater=J||Y}D.prototype.isReactComponent={},D.prototype.setState=function(b,k){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,k,"setState")},D.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function W(){}W.prototype=D.prototype;function K(b,k,J){this.props=b,this.context=k,this.refs=Q,this.updater=J||Y}var O=K.prototype=new W;O.constructor=K,X(O,D.prototype),O.isPureReactComponent=!0;var L=Array.isArray;function q(){}var Z={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ye(b,k,J){var F=J.ref;return{$$typeof:i,type:b,key:k,ref:F!==void 0?F:null,props:J}}function Je(b,k){return ye(b.type,k,b.props)}function Ie(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function qe(b){var k={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(J){return k[J]})}var xt=/\/+/g;function Pe(b,k){return typeof b=="object"&&b!==null&&b.key!=null?qe(""+b.key):k.toString(36)}function Me(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(q,q):(b.status="pending",b.then(function(k){b.status==="pending"&&(b.status="fulfilled",b.value=k)},function(k){b.status==="pending"&&(b.status="rejected",b.reason=k)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function j(b,k,J,F,ne){var ce=typeof b;(ce==="undefined"||ce==="boolean")&&(b=null);var xe=!1;if(b===null)xe=!0;else switch(ce){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(b.$$typeof){case i:case o:xe=!0;break;case M:return xe=b._init,j(xe(b._payload),k,J,F,ne)}}if(xe)return ne=ne(b),xe=F===""?"."+Pe(b,0):F,L(ne)?(J="",xe!=null&&(J=xe.replace(xt,"$&/")+"/"),j(ne,k,J,"",function(ka){return ka})):ne!=null&&(Ie(ne)&&(ne=Je(ne,J+(ne.key==null||b&&b.key===ne.key?"":(""+ne.key).replace(xt,"$&/")+"/")+xe)),k.push(ne)),1;xe=0;var We=F===""?".":F+":";if(L(b))for(var Ce=0;Ce<b.length;Ce++)F=b[Ce],ce=We+Pe(F,Ce),xe+=j(F,k,J,ce,ne);else if(Ce=V(b),typeof Ce=="function")for(b=Ce.call(b),Ce=0;!(F=b.next()).done;)F=F.value,ce=We+Pe(F,Ce++),xe+=j(F,k,J,ce,ne);else if(ce==="object"){if(typeof b.then=="function")return j(Me(b),k,J,F,ne);throw k=String(b),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return xe}function C(b,k,J){if(b==null)return b;var F=[],ne=0;return j(b,F,"","",function(ce){return k.call(J,ce,ne++)}),F}function G(b){if(b._status===-1){var k=b._result;k=k(),k.then(function(J){(b._status===0||b._status===-1)&&(b._status=1,b._result=J)},function(J){(b._status===0||b._status===-1)&&(b._status=2,b._result=J)}),b._status===-1&&(b._status=0,b._result=k)}if(b._status===1)return b._result.default;throw b._result}var te=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},me={map:C,forEach:function(b,k,J){C(b,function(){k.apply(this,arguments)},J)},count:function(b){var k=0;return C(b,function(){k++}),k},toArray:function(b){return C(b,function(k){return k})||[]},only:function(b){if(!Ie(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ae.Activity=p,ae.Children=me,ae.Component=D,ae.Fragment=f,ae.Profiler=m,ae.PureComponent=K,ae.StrictMode=r,ae.Suspense=S,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ae.__COMPILER_RUNTIME={__proto__:null,c:function(b){return Z.H.useMemoCache(b)}},ae.cache=function(b){return function(){return b.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(b,k,J){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var F=X({},b.props),ne=b.key;if(k!=null)for(ce in k.key!==void 0&&(ne=""+k.key),k)!le.call(k,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&k.ref===void 0||(F[ce]=k[ce]);var ce=arguments.length-2;if(ce===1)F.children=J;else if(1<ce){for(var xe=Array(ce),We=0;We<ce;We++)xe[We]=arguments[We+2];F.children=xe}return ye(b.type,ne,F)},ae.createContext=function(b){return b={$$typeof:x,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:v,_context:b},b},ae.createElement=function(b,k,J){var F,ne={},ce=null;if(k!=null)for(F in k.key!==void 0&&(ce=""+k.key),k)le.call(k,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ne[F]=k[F]);var xe=arguments.length-2;if(xe===1)ne.children=J;else if(1<xe){for(var We=Array(xe),Ce=0;Ce<xe;Ce++)We[Ce]=arguments[Ce+2];ne.children=We}if(b&&b.defaultProps)for(F in xe=b.defaultProps,xe)ne[F]===void 0&&(ne[F]=xe[F]);return ye(b,ce,ne)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(b){return{$$typeof:_,render:b}},ae.isValidElement=Ie,ae.lazy=function(b){return{$$typeof:M,_payload:{_status:-1,_result:b},_init:G}},ae.memo=function(b,k){return{$$typeof:h,type:b,compare:k===void 0?null:k}},ae.startTransition=function(b){var k=Z.T,J={};Z.T=J;try{var F=b(),ne=Z.S;ne!==null&&ne(J,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(q,te)}catch(ce){te(ce)}finally{k!==null&&J.types!==null&&(k.types=J.types),Z.T=k}},ae.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ae.use=function(b){return Z.H.use(b)},ae.useActionState=function(b,k,J){return Z.H.useActionState(b,k,J)},ae.useCallback=function(b,k){return Z.H.useCallback(b,k)},ae.useContext=function(b){return Z.H.useContext(b)},ae.useDebugValue=function(){},ae.useDeferredValue=function(b,k){return Z.H.useDeferredValue(b,k)},ae.useEffect=function(b,k){return Z.H.useEffect(b,k)},ae.useEffectEvent=function(b){return Z.H.useEffectEvent(b)},ae.useId=function(){return Z.H.useId()},ae.useImperativeHandle=function(b,k,J){return Z.H.useImperativeHandle(b,k,J)},ae.useInsertionEffect=function(b,k){return Z.H.useInsertionEffect(b,k)},ae.useLayoutEffect=function(b,k){return Z.H.useLayoutEffect(b,k)},ae.useMemo=function(b,k){return Z.H.useMemo(b,k)},ae.useOptimistic=function(b,k){return Z.H.useOptimistic(b,k)},ae.useReducer=function(b,k,J){return Z.H.useReducer(b,k,J)},ae.useRef=function(b){return Z.H.useRef(b)},ae.useState=function(b){return Z.H.useState(b)},ae.useSyncExternalStore=function(b,k,J){return Z.H.useSyncExternalStore(b,k,J)},ae.useTransition=function(){return Z.H.useTransition()},ae.version="19.2.4",ae}var nm;function Zs(){return nm||(nm=1,Cs.exports=vy()),Cs.exports}var E=Zs(),Ds={exports:{}},Un={},Us={exports:{}},Hs={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var um;function yy(){return um||(um=1,(function(i){function o(j,C){var G=j.length;j.push(C);e:for(;0<G;){var te=G-1>>>1,me=j[te];if(0<m(me,C))j[te]=C,j[G]=me,G=te;else break e}}function f(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var C=j[0],G=j.pop();if(G!==C){j[0]=G;e:for(var te=0,me=j.length,b=me>>>1;te<b;){var k=2*(te+1)-1,J=j[k],F=k+1,ne=j[F];if(0>m(J,G))F<me&&0>m(ne,J)?(j[te]=ne,j[F]=G,te=F):(j[te]=J,j[k]=G,te=k);else if(F<me&&0>m(ne,G))j[te]=ne,j[F]=G,te=F;else break e}}return C}function m(j,C){var G=j.sortIndex-C.sortIndex;return G!==0?G:j.id-C.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var x=Date,_=x.now();i.unstable_now=function(){return x.now()-_}}var S=[],h=[],M=1,p=null,w=3,V=!1,Y=!1,X=!1,Q=!1,D=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function O(j){for(var C=f(h);C!==null;){if(C.callback===null)r(h);else if(C.startTime<=j)r(h),C.sortIndex=C.expirationTime,o(S,C);else break;C=f(h)}}function L(j){if(X=!1,O(j),!Y)if(f(S)!==null)Y=!0,q||(q=!0,qe());else{var C=f(h);C!==null&&Me(L,C.startTime-j)}}var q=!1,Z=-1,le=5,ye=-1;function Je(){return Q?!0:!(i.unstable_now()-ye<le)}function Ie(){if(Q=!1,q){var j=i.unstable_now();ye=j;var C=!0;try{e:{Y=!1,X&&(X=!1,W(Z),Z=-1),V=!0;var G=w;try{t:{for(O(j),p=f(S);p!==null&&!(p.expirationTime>j&&Je());){var te=p.callback;if(typeof te=="function"){p.callback=null,w=p.priorityLevel;var me=te(p.expirationTime<=j);if(j=i.unstable_now(),typeof me=="function"){p.callback=me,O(j),C=!0;break t}p===f(S)&&r(S),O(j)}else r(S);p=f(S)}if(p!==null)C=!0;else{var b=f(h);b!==null&&Me(L,b.startTime-j),C=!1}}break e}finally{p=null,w=G,V=!1}C=void 0}}finally{C?qe():q=!1}}}var qe;if(typeof K=="function")qe=function(){K(Ie)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,Pe=xt.port2;xt.port1.onmessage=Ie,qe=function(){Pe.postMessage(null)}}else qe=function(){D(Ie,0)};function Me(j,C){Z=D(function(){j(i.unstable_now())},C)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(j){switch(w){case 1:case 2:case 3:var C=3;break;default:C=w}var G=w;w=C;try{return j()}finally{w=G}},i.unstable_requestPaint=function(){Q=!0},i.unstable_runWithPriority=function(j,C){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=w;w=j;try{return C()}finally{w=G}},i.unstable_scheduleCallback=function(j,C,G){var te=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?te+G:te):G=te,j){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=G+me,j={id:M++,callback:C,priorityLevel:j,startTime:G,expirationTime:me,sortIndex:-1},G>te?(j.sortIndex=G,o(h,j),f(S)===null&&j===f(h)&&(X?(W(Z),Z=-1):X=!0,Me(L,G-te))):(j.sortIndex=me,o(S,j),Y||V||(Y=!0,q||(q=!0,qe()))),j},i.unstable_shouldYield=Je,i.unstable_wrapCallback=function(j){var C=w;return function(){var G=w;w=C;try{return j.apply(this,arguments)}finally{w=G}}}})(Hs)),Hs}var im;function py(){return im||(im=1,Us.exports=yy()),Us.exports}var ws={exports:{}},$e={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var cm;function xy(){if(cm)return $e;cm=1;var i=Zs();function o(S){var h="https://react.dev/errors/"+S;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)h+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+S+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(S,h,M){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:p==null?null:""+p,children:S,containerInfo:h,implementation:M}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(S,h){if(S==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$e.createPortal=function(S,h){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return v(S,h,null,M)},$e.flushSync=function(S){var h=x.T,M=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=h,r.p=M,r.d.f()}},$e.preconnect=function(S,h){typeof S=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(S,h))},$e.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},$e.preinit=function(S,h){if(typeof S=="string"&&h&&typeof h.as=="string"){var M=h.as,p=_(M,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,V=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;M==="style"?r.d.S(S,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:V}):M==="script"&&r.d.X(S,{crossOrigin:p,integrity:w,fetchPriority:V,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$e.preinitModule=function(S,h){if(typeof S=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var M=_(h.as,h.crossOrigin);r.d.M(S,{crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(S)},$e.preload=function(S,h){if(typeof S=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var M=h.as,p=_(M,h.crossOrigin);r.d.L(S,M,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$e.preloadModule=function(S,h){if(typeof S=="string")if(h){var M=_(h.as,h.crossOrigin);r.d.m(S,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(S)},$e.requestFormReset=function(S){r.d.r(S)},$e.unstable_batchedUpdates=function(S,h){return S(h)},$e.useFormState=function(S,h,M){return x.H.useFormState(S,h,M)},$e.useFormStatus=function(){return x.H.useHostTransitionStatus()},$e.version="19.2.4",$e}var sm;function gy(){if(sm)return ws.exports;sm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),ws.exports=xy(),ws.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var rm;function by(){if(rm)return Un;rm=1;var i=py(),o=Zs(),f=gy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(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 _(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 S(e){if(v(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,d=n.child;d;){if(d===l){s=!0,l=n,a=u;break}if(d===a){s=!0,a=n,l=u;break}d=d.sibling}if(!s){for(d=u.child;d;){if(d===l){s=!0,l=u,a=n;break}if(d===a){s=!0,a=u,l=n;break}d=d.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),K=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),Ie=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Ie&&e[Ie]||e["@@iterator"],typeof e=="function"?e:null)}var xt=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case D:return"Profiler";case Q:return"StrictMode";case L:return"Suspense";case q:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case K:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Pe(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return Pe(e(t))}catch{}}return null}var Me=Array.isArray,j=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},te=[],me=-1;function b(e){return{current:e}}function k(e){0>me||(e.current=te[me],te[me]=null,me--)}function J(e,t){me++,te[me]=e.current,e.current=t}var F=b(null),ne=b(null),ce=b(null),xe=b(null);function We(e,t){switch(J(ce,t),J(ne,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ed(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ed(t),e=Td(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(F),J(F,e)}function Ce(){k(F),k(ne),k(ce)}function ka(e){e.memoizedState!==null&&J(xe,e);var t=F.current,l=Td(t,e.type);t!==l&&(J(ne,e),J(F,l))}function qn(e){ne.current===e&&(k(F),k(ne)),xe.current===e&&(k(xe),Mn._currentValue=G)}var mi,Is;function Dl(e){if(mi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);mi=t&&t[1]||"",Is=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+mi+e+Is}var hi=!1;function vi(e,t){if(!e||hi)return"";hi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(R){var z=R}Reflect.construct(e,[],B)}else{try{B.call()}catch(R){z=R}e.call(B.prototype)}}else{try{throw Error()}catch(R){z=R}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),s=u[0],d=u[1];if(s&&d){var y=s.split(`
44
- `),A=d.split(`
45
- `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===A.length)for(a=y.length-1,n=A.length-1;1<=a&&0<=n&&y[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==A[n]){var U=`
46
- `+y[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=n);break}}}finally{hi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Dl(l):""}function Qm(e,t){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return e.child!==t&&t!==null?Dl("Suspense Fallback"):Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return vi(e.type,!1);case 11:return vi(e.type.render,!1);case 1:return vi(e.type,!0);case 31:return Dl("Activity");default:return""}}function Ps(e){try{var t="",l=null;do t+=Qm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var yi=Object.prototype.hasOwnProperty,pi=i.unstable_scheduleCallback,xi=i.unstable_cancelCallback,Zm=i.unstable_shouldYield,Vm=i.unstable_requestPaint,st=i.unstable_now,Km=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Yn=i.unstable_NormalPriority,Jm=i.unstable_LowPriority,lr=i.unstable_IdlePriority,$m=i.log,Wm=i.unstable_setDisableYieldValue,qa=null,rt=null;function sl(e){if(typeof $m=="function"&&Wm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(qa,e)}catch{}}var ot=Math.clz32?Math.clz32:Pm,Fm=Math.log,Im=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Fm(e)/Im|0)|0}var Gn=256,Xn=262144,Qn=4194304;function Ul(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 Zn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Ul(a):(s&=d,s!==0?n=Ul(s):l||(l=d&~e,l!==0&&(n=Ul(l))))):(d=a&~u,d!==0?n=Ul(d):s!==0?n=Ul(s):l||(l=a&~e,l!==0&&(n=Ul(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eh(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 ar(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function gi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function th(e,t,l,a,n,u){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,A=e.hiddenUpdates;for(l=s&~l;0<l;){var U=31-ot(l),B=1<<U;d[U]=0,y[U]=-1;var z=A[U];if(z!==null)for(A[U]=null,U=0;U<z.length;U++){var R=z[U];R!==null&&(R.lane&=-536870913)}l&=~B}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ot(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ir(e,t){var l=t&-t;return l=(l&42)!==0?1:bi(l),(l&(e.suspendedLanes|t))!==0?0:l}function bi(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 Si(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cr(){var e=C.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=C.p;try{return C.p=e,t()}finally{C.p=l}}var rl=Math.random().toString(36).slice(2),Xe="__reactFiber$"+rl,et="__reactProps$"+rl,ea="__reactContainer$"+rl,ji="__reactEvents$"+rl,lh="__reactListeners$"+rl,ah="__reactHandles$"+rl,rr="__reactResources$"+rl,Xa="__reactMarker$"+rl;function Ni(e){delete e[Xe],delete e[et],delete e[ji],delete e[lh],delete e[ah]}function ta(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[Xe])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[Xe]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function aa(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Xa]=!0}var or=new Set,fr={};function Hl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(fr[e]=t,e=0;e<t.length;e++)or.add(t[e])}var nh=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]*$"),dr={},mr={};function uh(e){return yi.call(mr,e)?!0:yi.call(dr,e)?!1:nh.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(uh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Yt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=ih(e,t,""+e[t])}}function vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(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 ch=/[\n"\\]/g;function bt(e){return e.replace(ch,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ti(e,t,l,a,n,u,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gt(t)):e.value!==""+gt(t)&&(e.value=""+gt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ai(e,s,gt(t)):l!=null?Ai(e,s,gt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+gt(d):e.removeAttribute("name")}function yr(e,t,l,a,n,u,s,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ei(e);return}l=l!=null?""+gt(l):"",t=t!=null?""+gt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Ei(e)}function Ai(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+gt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function pr(e,t,l){if(t!=null&&(t=""+gt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+gt(l):""}function xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Me(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=gt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ei(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sh=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 gr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||sh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function br(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&gr(e,u,t[u])}function zi(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 rh=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"]]),oh=/^[\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 $n(e){return oh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gt(){}var _i=null;function Mi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function Sr(e){var t=la(e);if(t&&(e=t.stateNode)){var l=e[et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ti(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[et]||null;if(!n)throw Error(r(90));Ti(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&vr(a)}break e;case"textarea":pr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Ri=!1;function jr(e,t,l){if(Ri)return e(t,l);Ri=!0;try{var a=e(t);return a}finally{if(Ri=!1,(ca!==null||sa!==null)&&(wu(),ca&&(t=ca,e=sa,sa=ca=null,Sr(t),e)))for(t=0;t<e.length;t++)Sr(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[et]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oi=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Oi=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Oi=!1}var ol=null,Ci=null,Wn=null;function Nr(){if(Wn)return Wn;var e,t=Ci,l=t.length,a,n="value"in ol?ol.value:ol.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[u-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Fn(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 In(){return!0}function Er(){return!1}function tt(e){function t(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Er,this.isPropagationStopped=Er,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=tt(wl),Ka=p({},wl,{view:0,detail:0}),fh=tt(Ka),Di,Ui,Ja,eu=p({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,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!==Ja&&(Ja&&e.type==="mousemove"?(Di=e.screenX-Ja.screenX,Ui=e.screenY-Ja.screenY):Ui=Di=0,Ja=e),Di)},movementY:function(e){return"movementY"in e?e.movementY:Ui}}),Tr=tt(eu),dh=p({},eu,{dataTransfer:0}),mh=tt(dh),hh=p({},Ka,{relatedTarget:0}),Hi=tt(hh),vh=p({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=tt(vh),ph=p({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=tt(ph),gh=p({},wl,{data:0}),Ar=tt(gh),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sh={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"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function wi(){return Nh}var Eh=p({},Ka,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=tt(Eh),Ah=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zr=tt(Ah),zh=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),_h=tt(zh),Mh=p({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=tt(Mh),Oh=p({},eu,{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}),Ch=tt(Oh),Dh=p({},wl,{newState:0,oldState:0}),Uh=tt(Dh),Hh=[9,13,27,32],Bi=Xt&&"CompositionEvent"in window,$a=null;Xt&&"documentMode"in document&&($a=document.documentMode);var wh=Xt&&"TextEvent"in window&&!$a,_r=Xt&&(!Bi||$a&&8<$a&&11>=$a),Mr=" ",Rr=!1;function Or(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function Bh(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return t.which!==32?null:(Rr=!0,Mr);case"textInput":return e=t.data,e===Mr&&Rr?null:e;default:return null}}function Lh(e,t){if(ra)return e==="compositionend"||!Bi&&Or(e,t)?(e=Nr(),Wn=Ci=ol=null,ra=!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 _r&&t.locale!=="ko"?null:t.data;default:return null}}var kh={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 Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kh[e.type]:t==="textarea"}function Ur(e,t,l,a){ca?sa?sa.push(a):sa=[a]:ca=a,t=Xu(t,"onChange"),0<t.length&&(l=new Pn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wa=null,Fa=null;function qh(e){xd(e,0)}function tu(e){var t=Qa(e);if(vr(t))return e}function Hr(e,t){if(e==="change")return t}var wr=!1;if(Xt){var Li;if(Xt){var ki="oninput"in document;if(!ki){var Br=document.createElement("div");Br.setAttribute("oninput","return;"),ki=typeof Br.oninput=="function"}Li=ki}else Li=!1;wr=Li&&(!document.documentMode||9<document.documentMode)}function Lr(){Wa&&(Wa.detachEvent("onpropertychange",kr),Fa=Wa=null)}function kr(e){if(e.propertyName==="value"&&tu(Fa)){var t=[];Ur(t,Fa,e,Mi(e)),jr(qh,t)}}function Yh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",kr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function Xh(e,t){if(e==="click")return tu(t)}function Qh(e,t){if(e==="input"||e==="change")return tu(t)}function Zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:Zh;function Ia(e,t){if(ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!yi.call(t,n)||!ft(e[n],t[n]))return!1}return!0}function qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yr(e,t){var l=qr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=qr(l)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function qi(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 Vh=Xt&&"documentMode"in document&&11>=document.documentMode,oa=null,Yi=null,Pa=null,Gi=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gi||oa==null||oa!==Jn(a)||(a=oa,"selectionStart"in a&&qi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Ia(Pa,a)||(Pa=a,a=Xu(Yi,"onSelect"),0<a.length&&(t=new Pn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=oa)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fa={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Xi={},Zr={};Xt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Ll(e){if(Xi[e])return Xi[e];if(!fa[e])return e;var t=fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return Xi[e]=t[l];return e}var Vr=Ll("animationend"),Kr=Ll("animationiteration"),Jr=Ll("animationstart"),Kh=Ll("transitionrun"),Jh=Ll("transitionstart"),$h=Ll("transitioncancel"),$r=Ll("transitionend"),Wr=new Map,Qi="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(" ");Qi.push("scrollEnd");function Rt(e,t){Wr.set(e,t),Hl(t,[e])}var lu=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)},St=[],da=0,Zi=0;function au(){for(var e=da,t=Zi=da=0;t<e;){var l=St[t];St[t++]=null;var a=St[t];St[t++]=null;var n=St[t];St[t++]=null;var u=St[t];if(St[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){St[da++]=e,St[da++]=t,St[da++]=l,St[da++]=a,Zi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Vi(e,t,l,a){return nu(e,t,l,a),uu(e)}function kl(e,t){return nu(e,null,null,t),uu(e)}function Fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ot(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function uu(e){if(50<jn)throw jn=0,ts=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Wh(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,l,a){return new Wh(e,t,l,a)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=dt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ir(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")Ki(e)&&(s=1);else if(typeof e=="string")s=ty(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=dt(31,l,t,n),e.elementType=ye,e.lanes=u,e;case X:return ql(l.children,n,u,t);case Q:s=8,n|=24;break;case D:return e=dt(12,l,t,n|2),e.elementType=D,e.lanes=u,e;case L:return e=dt(13,l,t,n),e.elementType=L,e.lanes=u,e;case q:return e=dt(19,l,t,n),e.elementType=q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:s=10;break e;case W:s=9;break e;case O:s=11;break e;case Z:s=14;break e;case le:s=16,a=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=dt(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ql(e,t,l,a){return e=dt(7,e,a,t),e.lanes=l,e}function Ji(e,t,l){return e=dt(6,e,null,t),e.lanes=l,e}function Pr(e){var t=dt(18,null,null,0);return t.stateNode=e,t}function $i(e,t,l){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=eo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},eo.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ha=[],va=0,cu=null,en=0,Nt=[],Et=0,fl=null,Ht=1,wt="";function Zt(e,t){ha[va++]=en,ha[va++]=cu,cu=e,en=t}function to(e,t,l){Nt[Et++]=Ht,Nt[Et++]=wt,Nt[Et++]=fl,fl=e;var a=Ht;e=wt;var n=32-ot(a)-1;a&=~(1<<n),l+=1;var u=32-ot(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Ht=1<<32-ot(t)+n|l<<n|a,wt=u+e}else Ht=1<<u|l<<n|a,wt=e}function Wi(e){e.return!==null&&(Zt(e,1),to(e,1,0))}function Fi(e){for(;e===cu;)cu=ha[--va],ha[va]=null,en=ha[--va],ha[va]=null;for(;e===fl;)fl=Nt[--Et],Nt[Et]=null,wt=Nt[--Et],Nt[Et]=null,Ht=Nt[--Et],Nt[Et]=null}function lo(e,t){Nt[Et++]=Ht,Nt[Et++]=wt,Nt[Et++]=fl,Ht=t.id,wt=t.overflow,fl=e}var Qe=null,Te=null,de=!1,dl=null,Tt=!1,Ii=Error(r(519));function ml(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(jt(t,e)),Ii}function ao(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[et]=a,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<En.length;l++)re(En[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),xr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||jd(t.textContent,l)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ml(e,!0)}function no(e){for(Qe=e.return;Qe;)switch(Qe.tag){case 5:case 31:case 13:Tt=!1;return;case 27:case 3:Tt=!0;return;default:Qe=Qe.return}}function ya(e){if(e!==Qe)return!1;if(!de)return no(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ys(e.type,e.memoizedProps)),l=!l),l&&Te&&ml(e),no(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else t===27?(t=Te,zl(e.type)?(e=Ss,Ss=null,Te=e):Te=t):Te=Qe?zt(e.stateNode.nextSibling):null;return!0}function Yl(){Te=Qe=null,de=!1}function Pi(){var e=dl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),dl=null),e}function tn(e){dl===null?dl=[e]:dl.push(e)}var ec=b(null),Gl=null,Vt=null;function hl(e,t,l){J(ec,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=ec.current,k(ec)}function tc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function lc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),tc(u.return,l,e),a||(s=null);break e}u=d.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),tc(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function pa(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var d=n.type;ft(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===xe.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&lc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Gl=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return uo(Gl,e)}function ru(e,t){return Gl===null&&Xl(e),uo(e,t)}function uo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(r(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var Fh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ih=i.unstable_scheduleCallback,Ph=i.unstable_NormalPriority,He={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ac(){return{controller:new Fh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Ih(Ph,function(){e.controller.abort()})}var an=null,nc=0,xa=0,ga=null;function ev(e,t){if(an===null){var l=an=[];nc=0,xa=cs(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return nc++,t.then(io,io),t}function io(){if(--nc===0&&an!==null){ga!==null&&(ga.status="fulfilled");var e=an;an=null,xa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var co=j.S;j.S=function(e,t){Vf=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ev(e,t),co!==null&&co(e,t)};var Ql=b(null);function uc(){var e=Ql.current;return e!==null?e:Ee.pooledCache}function ou(e,t){t===null?J(Ql,Ql.current):J(Ql,t.pool)}function so(){var e=uc();return e===null?null:{parent:He._currentValue,pool:e}}var ba=Error(r(460)),ic=Error(r(474)),fu=Error(r(542)),du={then:function(){}};function ro(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Gt,Gt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mo(e),e;default:if(typeof t.status=="string")t.then(Gt,Gt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mo(e),e}throw Vl=t,ba}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,ba):l}}var Vl=null;function fo(){if(Vl===null)throw Error(r(459));var e=Vl;return Vl=null,e}function mo(e){if(e===ba||e===fu)throw Error(r(483))}var Sa=null,nn=0;function mu(e){var t=nn;return nn+=1,Sa===null&&(Sa=[]),oo(Sa,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ho(e){function t(N,g){if(e){var T=N.deletions;T===null?(N.deletions=[g],N.flags|=16):T.push(g)}}function l(N,g){if(!e)return null;for(;g!==null;)t(N,g),g=g.sibling;return null}function a(N){for(var g=new Map;N!==null;)N.key!==null?g.set(N.key,N):g.set(N.index,N),N=N.sibling;return g}function n(N,g){return N=Qt(N,g),N.index=0,N.sibling=null,N}function u(N,g,T){return N.index=T,e?(T=N.alternate,T!==null?(T=T.index,T<g?(N.flags|=67108866,g):T):(N.flags|=67108866,g)):(N.flags|=1048576,g)}function s(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function d(N,g,T,H){return g===null||g.tag!==6?(g=Ji(T,N.mode,H),g.return=N,g):(g=n(g,T),g.return=N,g)}function y(N,g,T,H){var P=T.type;return P===X?U(N,g,T.props.children,H,T.key):g!==null&&(g.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===le&&Zl(P)===g.type)?(g=n(g,T.props),un(g,T),g.return=N,g):(g=iu(T.type,T.key,T.props,null,N.mode,H),un(g,T),g.return=N,g)}function A(N,g,T,H){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=$i(T,N.mode,H),g.return=N,g):(g=n(g,T.children||[]),g.return=N,g)}function U(N,g,T,H,P){return g===null||g.tag!==7?(g=ql(T,N.mode,H,P),g.return=N,g):(g=n(g,T),g.return=N,g)}function B(N,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ji(""+g,N.mode,T),g.return=N,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case V:return T=iu(g.type,g.key,g.props,null,N.mode,T),un(T,g),T.return=N,T;case Y:return g=$i(g,N.mode,T),g.return=N,g;case le:return g=Zl(g),B(N,g,T)}if(Me(g)||qe(g))return g=ql(g,N.mode,T,null),g.return=N,g;if(typeof g.then=="function")return B(N,mu(g),T);if(g.$$typeof===K)return B(N,ru(N,g),T);hu(N,g)}return null}function z(N,g,T,H){var P=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return P!==null?null:d(N,g,""+T,H);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case V:return T.key===P?y(N,g,T,H):null;case Y:return T.key===P?A(N,g,T,H):null;case le:return T=Zl(T),z(N,g,T,H)}if(Me(T)||qe(T))return P!==null?null:U(N,g,T,H,null);if(typeof T.then=="function")return z(N,g,mu(T),H);if(T.$$typeof===K)return z(N,g,ru(N,T),H);hu(N,T)}return null}function R(N,g,T,H,P){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return N=N.get(T)||null,d(g,N,""+H,P);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case V:return N=N.get(H.key===null?T:H.key)||null,y(g,N,H,P);case Y:return N=N.get(H.key===null?T:H.key)||null,A(g,N,H,P);case le:return H=Zl(H),R(N,g,T,H,P)}if(Me(H)||qe(H))return N=N.get(T)||null,U(g,N,H,P,null);if(typeof H.then=="function")return R(N,g,T,mu(H),P);if(H.$$typeof===K)return R(N,g,T,ru(g,H),P);hu(g,H)}return null}function $(N,g,T,H){for(var P=null,he=null,I=g,ie=g=0,fe=null;I!==null&&ie<T.length;ie++){I.index>ie?(fe=I,I=null):fe=I.sibling;var ve=z(N,I,T[ie],H);if(ve===null){I===null&&(I=fe);break}e&&I&&ve.alternate===null&&t(N,I),g=u(ve,g,ie),he===null?P=ve:he.sibling=ve,he=ve,I=fe}if(ie===T.length)return l(N,I),de&&Zt(N,ie),P;if(I===null){for(;ie<T.length;ie++)I=B(N,T[ie],H),I!==null&&(g=u(I,g,ie),he===null?P=I:he.sibling=I,he=I);return de&&Zt(N,ie),P}for(I=a(I);ie<T.length;ie++)fe=R(I,N,ie,T[ie],H),fe!==null&&(e&&fe.alternate!==null&&I.delete(fe.key===null?ie:fe.key),g=u(fe,g,ie),he===null?P=fe:he.sibling=fe,he=fe);return e&&I.forEach(function(Cl){return t(N,Cl)}),de&&Zt(N,ie),P}function ee(N,g,T,H){if(T==null)throw Error(r(151));for(var P=null,he=null,I=g,ie=g=0,fe=null,ve=T.next();I!==null&&!ve.done;ie++,ve=T.next()){I.index>ie?(fe=I,I=null):fe=I.sibling;var Cl=z(N,I,ve.value,H);if(Cl===null){I===null&&(I=fe);break}e&&I&&Cl.alternate===null&&t(N,I),g=u(Cl,g,ie),he===null?P=Cl:he.sibling=Cl,he=Cl,I=fe}if(ve.done)return l(N,I),de&&Zt(N,ie),P;if(I===null){for(;!ve.done;ie++,ve=T.next())ve=B(N,ve.value,H),ve!==null&&(g=u(ve,g,ie),he===null?P=ve:he.sibling=ve,he=ve);return de&&Zt(N,ie),P}for(I=a(I);!ve.done;ie++,ve=T.next())ve=R(I,N,ie,ve.value,H),ve!==null&&(e&&ve.alternate!==null&&I.delete(ve.key===null?ie:ve.key),g=u(ve,g,ie),he===null?P=ve:he.sibling=ve,he=ve);return e&&I.forEach(function(dy){return t(N,dy)}),de&&Zt(N,ie),P}function Ne(N,g,T,H){if(typeof T=="object"&&T!==null&&T.type===X&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case V:e:{for(var P=T.key;g!==null;){if(g.key===P){if(P=T.type,P===X){if(g.tag===7){l(N,g.sibling),H=n(g,T.props.children),H.return=N,N=H;break e}}else if(g.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===le&&Zl(P)===g.type){l(N,g.sibling),H=n(g,T.props),un(H,T),H.return=N,N=H;break e}l(N,g);break}else t(N,g);g=g.sibling}T.type===X?(H=ql(T.props.children,N.mode,H,T.key),H.return=N,N=H):(H=iu(T.type,T.key,T.props,null,N.mode,H),un(H,T),H.return=N,N=H)}return s(N);case Y:e:{for(P=T.key;g!==null;){if(g.key===P)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(N,g.sibling),H=n(g,T.children||[]),H.return=N,N=H;break e}else{l(N,g);break}else t(N,g);g=g.sibling}H=$i(T,N.mode,H),H.return=N,N=H}return s(N);case le:return T=Zl(T),Ne(N,g,T,H)}if(Me(T))return $(N,g,T,H);if(qe(T)){if(P=qe(T),typeof P!="function")throw Error(r(150));return T=P.call(T),ee(N,g,T,H)}if(typeof T.then=="function")return Ne(N,g,mu(T),H);if(T.$$typeof===K)return Ne(N,g,ru(N,T),H);hu(N,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(N,g.sibling),H=n(g,T),H.return=N,N=H):(l(N,g),H=Ji(T,N.mode,H),H.return=N,N=H),s(N)):l(N,g)}return function(N,g,T,H){try{nn=0;var P=Ne(N,g,T,H);return Sa=null,P}catch(I){if(I===ba||I===fu)throw I;var he=dt(29,I,null,N.mode);return he.lanes=H,he.return=N,he}finally{}}}var Kl=ho(!0),vo=ho(!1),vl=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(pe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),Fr(e,null,l),t}return nu(e,a,t,l),uu(e)}function cn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}function rc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var oc=!1;function sn(){if(oc){var e=ga;if(e!==null)throw e}}function rn(e,t,l,a){oc=!1;var n=e.updateQueue;vl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,A=y.next;y.next=null,s===null?u=A:s.next=A,s=y;var U=e.alternate;U!==null&&(U=U.updateQueue,d=U.lastBaseUpdate,d!==s&&(d===null?U.firstBaseUpdate=A:d.next=A,U.lastBaseUpdate=y))}if(u!==null){var B=n.baseState;s=0,U=A=y=null,d=u;do{var z=d.lane&-536870913,R=z!==d.lane;if(R?(oe&z)===z:(a&z)===z){z!==0&&z===xa&&(oc=!0),U!==null&&(U=U.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var $=e,ee=d;z=t;var Ne=l;switch(ee.tag){case 1:if($=ee.payload,typeof $=="function"){B=$.call(Ne,B,z);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ee.payload,z=typeof $=="function"?$.call(Ne,B,z):$,z==null)break e;B=p({},B,z);break e;case 2:vl=!0}}z=d.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[z]:R.push(z))}else R={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},U===null?(A=U=R,y=B):U=U.next=R,s|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;R=d,d=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);U===null&&(y=B),n.baseState=y,n.firstBaseUpdate=A,n.lastBaseUpdate=U,u===null&&(n.shared.lanes=0),jl|=s,e.lanes=s,e.memoizedState=B}}function yo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function po(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yo(l[e],t)}var ja=b(null),vu=b(0);function xo(e,t){e=ll,J(vu,e),J(ja,t),ll=e|t.baseLanes}function fc(){J(vu,ll),J(ja,ja.current)}function dc(){ll=vu.current,k(ja),k(vu)}var mt=b(null),At=null;function xl(e){var t=e.alternate;J(De,De.current&1),J(mt,e),At===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(At=e)}function mc(e){J(De,De.current),J(mt,e),At===null&&(At=e)}function go(e){e.tag===22?(J(De,De.current),J(mt,e),At===null&&(At=e)):gl()}function gl(){J(De,De.current),J(mt,mt.current)}function ht(e){k(mt),At===e&&(At=null),k(De)}var De=b(0);function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||gs(l)||bs(l)))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 Jt=0,ue=null,Se=null,we=null,pu=!1,Na=!1,Jl=!1,xu=0,on=0,Ea=null,lv=0;function Re(){throw Error(r(321))}function hc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function vc(e,t,l,a,n,u){return Jt=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?lf:Rc,Jl=!1,u=l(a,n),Jl=!1,Na&&(u=So(t,l,a,n)),bo(e),u}function bo(e){j.H=mn;var t=Se!==null&&Se.next!==null;if(Jt=0,we=Se=ue=null,pu=!1,on=0,Ea=null,t)throw Error(r(300));e===null||Be||(e=e.dependencies,e!==null&&su(e)&&(Be=!0))}function So(e,t,l,a){ue=e;var n=0;do{if(Na&&(Ea=null),on=0,Na=!1,25<=n)throw Error(r(301));if(n+=1,we=Se=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=af,u=t(l,a)}while(Na);return u}function av(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?fn(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ue.flags|=1024),t}function yc(){var e=xu!==0;return xu=0,e}function pc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xc(e){if(pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pu=!1}Jt=0,we=Se=ue=null,Na=!1,on=xu=0,Ea=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?ue.memoizedState=we=e:we=we.next=e,we}function Ue(){if(Se===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=we===null?ue.memoizedState:we.next;if(t!==null)we=t,Se=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},we===null?ue.memoizedState=we=e:we=we.next=e}return we}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fn(e){var t=on;return on+=1,Ea===null&&(Ea=[]),e=oo(Ea,e,t),t=ue,(we===null?t.memoizedState:we.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?lf:Rc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fn(e);if(e.$$typeof===K)return Ze(e)}throw Error(r(438,String(e)))}function gc(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=gu(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Je;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=Ue();return bc(t,Se,e)}function bc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=s=null,y=null,A=t,U=!1;do{var B=A.lane&-536870913;if(B!==A.lane?(oe&B)===B:(Jt&B)===B){var z=A.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),B===xa&&(U=!0);else if((Jt&z)===z){A=A.next,z===xa&&(U=!0);continue}else B={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(d=y=B,s=u):y=y.next=B,ue.lanes|=z,jl|=z;B=A.action,Jl&&l(u,B),u=A.hasEagerState?A.eagerState:l(u,B)}else z={lane:B,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(d=y=z,s=u):y=y.next=z,ue.lanes|=B,jl|=B;A=A.next}while(A!==null&&A!==t);if(y===null?s=u:y.next=d,!ft(u,e.memoizedState)&&(Be=!0,U&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Sc(e){var t=Ue(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=e(u,s.action),s=s.next;while(s!==n);ft(u,t.memoizedState)||(Be=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jo(e,t,l){var a=ue,n=Ue(),u=de;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var s=!ft((Se||n).memoizedState,l);if(s&&(n.memoizedState=l,Be=!0),n=n.queue,Ec(To.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||we!==null&&we.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},Eo.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(Jt&127)!==0||No(a,t,l)}return l}function No(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=gu(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Eo(e,t,l,a){t.value=l,t.getSnapshot=a,Ao(t)&&zo(e)}function To(e,t,l){return l(function(){Ao(t)&&zo(e)})}function Ao(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function zo(e){var t=kl(e,2);t!==null&&it(t,e,2)}function jc(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Jl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function _o(e,t,l,a){return e.baseState=l,bc(e,Se,typeof a=="function"?a:$t)}function nv(e,t,l,a,n){if(Eu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};j.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Mo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Mo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=j.T,s={};j.T=s;try{var d=l(n,a),y=j.S;y!==null&&y(s,d),Ro(e,t,d)}catch(A){Nc(e,t,A)}finally{u!==null&&s.types!==null&&(u.types=s.types),j.T=u}}else try{u=l(n,a),Ro(e,t,u)}catch(A){Nc(e,t,A)}}function Ro(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Oo(e,t,a)},function(a){return Nc(e,t,a)}):Oo(e,t,l)}function Oo(e,t,l){t.status="fulfilled",t.value=l,Co(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Mo(e,l)))}function Nc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Co(t),t=t.next;while(t!==a)}e.action=null}function Co(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Do(e,t){return t}function Uo(e,t){if(de){var l=Ee.formState;if(l!==null){e:{var a=ue;if(de){if(Te){t:{for(var n=Te,u=Tt;n.nodeType!==8;){if(!u){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=zt(n.nextSibling),a=n.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:t},l.queue=a,l=Po.bind(null,ue,a),a.dispatch=l,a=jc(!1),u=Mc.bind(null,ue,!1,a.queue),a=Fe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=nv.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ho(e){var t=Ue();return wo(t,Se,e)}function wo(e,t,l){if(t=bc(e,t,Do)[0],e=Su($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fn(t)}catch(s){throw s===ba?fu:s}else a=t;t=Ue();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Ta(9,{destroy:void 0},uv.bind(null,n,l),null)),[a,u,e]}function uv(e,t){e.action=t}function Bo(e){var t=Ue(),l=Se;if(l!==null)return wo(t,l,e);Ue(),t=t.memoizedState,l=Ue();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ta(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=gu(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Lo(){return Ue().memoizedState}function ju(e,t,l,a){var n=Fe();ue.flags|=e,n.memoizedState=Ta(1|t,{destroy:void 0},l,a===void 0?null:a)}function Nu(e,t,l,a){var n=Ue();a=a===void 0?null:a;var u=n.memoizedState.inst;Se!==null&&a!==null&&hc(a,Se.memoizedState.deps)?n.memoizedState=Ta(t,u,l,a):(ue.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function ko(e,t){ju(8390656,8,e,t)}function Ec(e,t){Nu(2048,8,e,t)}function iv(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=gu(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qo(e){var t=Ue().memoizedState;return iv({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Yo(e,t){return Nu(4,2,e,t)}function Go(e,t){return Nu(4,4,e,t)}function Xo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qo(e,t,l){l=l!=null?l.concat([e]):null,Nu(4,4,Xo.bind(null,t,e),l)}function Tc(){}function Zo(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&hc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vo(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&hc(t,a[1]))return a[0];if(a=e(),Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a}function Ac(e,t,l){return l===void 0||(Jt&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jf(),ue.lanes|=e,jl|=e,l)}function Ko(e,t,l,a){return ft(l,t)?l:ja.current!==null?(e=Ac(e,l,a),ft(e,t)||(Be=!0),e):(Jt&42)===0||(Jt&1073741824)!==0&&(oe&261930)===0?(Be=!0,e.memoizedState=l):(e=Jf(),ue.lanes|=e,jl|=e,t)}function Jo(e,t,l,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var s=j.T,d={};j.T=d,Mc(e,!1,t,l);try{var y=n(),A=j.S;if(A!==null&&A(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var U=tv(y,a);dn(e,t,U,pt(e))}else dn(e,t,a,pt(e))}catch(B){dn(e,t,{then:function(){},status:"rejected",reason:B},pt())}finally{C.p=u,s!==null&&d.types!==null&&(s.types=d.types),j.T=s}}function cv(){}function zc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$o(e).queue;Jo(e,n,t,G,l===null?cv:function(){return Wo(e),l(a)})}function $o(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:G},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wo(e){var t=$o(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},pt())}function _c(){return Ze(Mn)}function Fo(){return Ue().memoizedState}function Io(){return Ue().memoizedState}function sv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=pt();e=yl(l);var a=pl(t,e,l);a!==null&&(it(a,t,l),cn(a,t,l)),t={cache:ac()},e.payload=t;return}t=t.return}}function rv(e,t,l){var a=pt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Eu(e)?ef(t,l):(l=Vi(e,t,l,a),l!==null&&(it(l,e,a),tf(l,t,a)))}function Po(e,t,l){var a=pt();dn(e,t,l,a)}function dn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Eu(e))ef(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,d=u(s,l);if(n.hasEagerState=!0,n.eagerState=d,ft(d,s))return nu(e,t,n,0),Ee===null&&au(),!1}catch{}finally{}if(l=Vi(e,t,n,a),l!==null)return it(l,e,a),tf(l,t,a),!0}return!1}function Mc(e,t,l,a){if(a={lane:2,revertLane:cs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Eu(e)){if(t)throw Error(r(479))}else t=Vi(e,l,a,2),t!==null&&it(t,e,2)}function Eu(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ef(e,t){Na=pu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function tf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}var mn={readContext:Ze,use:bu,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};mn.useEffectEvent=Re;var lf={readContext:Ze,use:bu,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:ko,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var n=l(t);if(Jl){sl(!0);try{l(t)}finally{sl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=rv.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=jc(e);var t=e.queue,l=Po.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Tc,useDeferredValue:function(e,t){var l=Fe();return Ac(l,e,t)},useTransition:function(){var e=jc(!1);return e=Jo.bind(null,ue,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=Fe();if(de){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(oe&127)!==0||No(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,ko(To.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},Eo.bind(null,a,u,l,t),null),l},useId:function(){var e=Fe(),t=Ee.identifierPrefix;if(de){var l=wt,a=Ht;l=(a&~(1<<32-ot(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_c,useFormState:Uo,useActionState:Uo,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Mc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:gc,useCacheRefresh:function(){return Fe().memoizedState=sv.bind(null,ue)},useEffectEvent:function(e){var t=Fe(),l={impl:e};return t.memoizedState=l,function(){if((pe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Rc={readContext:Ze,use:bu,useCallback:Zo,useContext:Ze,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:Go,useMemo:Vo,useReducer:Su,useRef:Lo,useState:function(){return Su($t)},useDebugValue:Tc,useDeferredValue:function(e,t){var l=Ue();return Ko(l,Se.memoizedState,e,t)},useTransition:function(){var e=Su($t)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:jo,useId:Fo,useHostTransitionStatus:_c,useFormState:Ho,useActionState:Ho,useOptimistic:function(e,t){var l=Ue();return _o(l,Se,e,t)},useMemoCache:gc,useCacheRefresh:Io};Rc.useEffectEvent=qo;var af={readContext:Ze,use:bu,useCallback:Zo,useContext:Ze,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:Go,useMemo:Vo,useReducer:Sc,useRef:Lo,useState:function(){return Sc($t)},useDebugValue:Tc,useDeferredValue:function(e,t){var l=Ue();return Se===null?Ac(l,e,t):Ko(l,Se.memoizedState,e,t)},useTransition:function(){var e=Sc($t)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:jo,useId:Fo,useHostTransitionStatus:_c,useFormState:Bo,useActionState:Bo,useOptimistic:function(e,t){var l=Ue();return Se!==null?_o(l,Se,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gc,useCacheRefresh:Io};af.useEffectEvent=qo;function Oc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Cc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=pt(),n=yl(a);n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(it(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=pt(),n=yl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(it(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=pt(),a=yl(l);a.tag=2,t!=null&&(a.callback=t),t=pl(e,a,l),t!==null&&(it(t,e,l),cn(t,e,l))}};function nf(e,t,l,a,n,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,s):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function $l(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function cf(e){lu(e)}function sf(e){console.error(e)}function rf(e){lu(e)}function Tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function of(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Dc(e,t,l){return l=yl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function ff(e){return e=yl(e),e.tag=3,e}function df(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){of(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){of(t,l,a),typeof n!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ov(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,n,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Bu():l.alternate===null&&Oe===0&&(Oe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ns(e,a,n)),!1;case 22:return l.flags|=65536,a===du?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ns(e,a,n)),!1}throw Error(r(435,l.tag))}return ns(e,a,n),Bu(),!1}if(de)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Ii&&(e=Error(r(422),{cause:a}),tn(jt(e,l)))):(a!==Ii&&(t=Error(r(423),{cause:a}),tn(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=Dc(e.stateNode,a,n),rc(e,n),Oe!==4&&(Oe=2)),!1;var u=Error(r(520),{cause:a});if(u=jt(u,l),Sn===null?Sn=[u]:Sn.push(u),Oe!==4&&(Oe=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Dc(l.stateNode,a,e),rc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Nl===null||!Nl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ff(n),df(n,e,l,a),rc(l,n),!1}l=l.return}while(l!==null);return!1}var Uc=Error(r(461)),Be=!1;function Ve(e,t,l,a){t.child=e===null?vo(t,null,l,a):Kl(t,e.child,l,a)}function mf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return Xl(t),a=vc(e,t,l,s,u,n),d=yc(),e!==null&&!Be?(pc(e,t,n),Wt(e,t,n)):(de&&d&&Wi(t),t.flags|=1,Ve(e,t,a,n),t.child)}function hf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Ki(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,vf(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Gc(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(s,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Ia(u,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=u,Gc(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Hc(e,t,l,a,n)}function yf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return pf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ou(t,u!==null?u.cachePool:null),u!==null?xo(t,u):fc(),go(t);else return a=t.lanes=536870912,pf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ou(t,u.cachePool),xo(t,u),gl(),t.memoizedState=null):(e!==null&&ou(t,null),fc(),gl());return Ve(e,t,n,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pf(e,t,l,a,n){var u=uc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ou(t,null),fc(),go(t),e!==null&&pa(e,t,a,!0),t.childLanes=n,null}function Au(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xf(e,t,l){return Kl(t,e.child,null,l),e=Au(t,t.pendingProps),e.flags|=2,ht(t),t.memoizedState=null,e}function fv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Au(t,a),t.lanes=536870912,hn(null,e);if(mc(t),(e=Te)?(e=Rd(e,Tt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:wt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Qe=t,Te=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return Au(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(mc(t),n)if(t.flags&256)t.flags&=-257,t=xf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Be||pa(e,t,l,!1),n=(l&e.childLanes)!==0,Be||n){if(a=Ee,a!==null&&(s=ir(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,kl(e,s),it(a,e,s),Uc;Bu(),t=xf(e,t,l)}else e=u.treeContext,Te=zt(s.nextSibling),Qe=t,de=!0,dl=null,Tt=!1,e!==null&&lo(t,e),t=Au(t,a),t.flags|=4096;return t}return e=Qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Hc(e,t,l,a,n){return Xl(t),l=vc(e,t,l,a,void 0,n),a=yc(),e!==null&&!Be?(pc(e,t,n),Wt(e,t,n)):(de&&a&&Wi(t),t.flags|=1,Ve(e,t,l,n),t.child)}function gf(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=So(t,a,l,n),bo(e),a=yc(),e!==null&&!Be?(pc(e,t,u),Wt(e,t,u)):(de&&a&&Wi(t),t.flags|=1,Ve(e,t,l,u),t.child)}function bf(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=ma,s=l.contextType;typeof s=="object"&&s!==null&&(u=Ze(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Cc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},cc(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?Ze(s):ma,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Oc(t,l,s,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Cc.enqueueReplaceState(u,u.state,null),rn(t,a,u,n),sn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=$l(l,d);u.props=y;var A=u.context,U=l.contextType;s=ma,typeof U=="object"&&U!==null&&(s=Ze(U));var B=l.getDerivedStateFromProps;U=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||A!==s)&&uf(t,u,a,s),vl=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),A=t.memoizedState,d||z!==A||vl?(typeof B=="function"&&(Oc(t,l,B,a),A=t.memoizedState),(y=vl||nf(t,l,y,a,z,A,s))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=s,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,sc(e,t),s=t.memoizedProps,U=$l(l,s),u.props=U,B=t.pendingProps,z=u.context,A=l.contextType,y=ma,typeof A=="object"&&A!==null&&(y=Ze(A)),d=l.getDerivedStateFromProps,(A=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==B||z!==y)&&uf(t,u,a,y),vl=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var R=t.memoizedState;s!==B||z!==R||vl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Oc(t,l,d,a),R=t.memoizedState),(U=vl||nf(t,l,U,a,z,R,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,R,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,R,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),u.props=a,u.state=R,u.context=y,a=U):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,zu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Kl(t,e.child,null,n),t.child=Kl(t,null,l,n)):Ve(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function Sf(e,t,l,a){return Yl(),t.flags|=256,Ve(e,t,l,a),t.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:so()}}function Lc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function jf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(De.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?xl(t):gl(),(e=Te)?(e=Rd(e,Tt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:wt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Qe=t,Te=null)):e=null,e===null)throw ml(t);return bs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(gl(),n=t.mode,d=_u({mode:"hidden",children:d},n),a=ql(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Bc(l),a.childLanes=Lc(e,s,l),t.memoizedState=wc,hn(null,a)):(xl(t),kc(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),d=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),d=ql(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=Lc(e,s,l),t.memoizedState=wc,t=hn(null,a));else if(xl(t),bs(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var A=s.dgst;s=A,a=Error(r(419)),a.stack="",a.digest=s,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(Be||pa(e,t,l,!1),s=(l&e.childLanes)!==0,Be||s){if(s=Ee,s!==null&&(a=ir(s,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,kl(e,a),it(s,e,a),Uc;gs(d)||Bu(),t=qc(e,t,l)}else gs(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Te=zt(d.nextSibling),Qe=t,de=!0,dl=null,Tt=!1,e!==null&&lo(t,e),t=kc(t,a.children),t.flags|=4096);return t}return n?(gl(),d=a.fallback,n=t.mode,y=e.child,A=y.sibling,a=Qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,A!==null?d=Qt(A,d):(d=ql(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,hn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Bc(l):(n=d.cachePool,n!==null?(y=He._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=so(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Lc(e,s,l),t.memoizedState=wc,hn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function kc(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=dt(22,e,null,t),e.lanes=0,e}function qc(e,t,l){return Kl(t,e.child,null,l),e=kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),tc(e.return,t,l)}function Yc(e,t,l,a,n,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Ef(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=De.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,J(De,s),Ve(e,t,a,l),a=de?en:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nf(e,l,t);else if(e.tag===19)Nf(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&yu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Yc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&yu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Yc(t,!0,l,null,u,a);break;case"together":Yc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),jl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function dv(e,t,l){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),hl(t,He,e.memoizedState.cache),Yl();break;case 27:case 5:ka(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jf(e,t,l):(xl(t),e=Wt(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ef(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(De,De.current),a)break;return null;case 22:return t.lanes=0,yf(e,t,l,t.pendingProps);case 24:hl(t,He,e.memoizedState.cache)}return Wt(e,t,l)}function Tf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!Gc(e,l)&&(t.flags&128)===0)return Be=!1,dv(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,de&&(t.flags&1048576)!==0&&to(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Ki(e)?(a=$l(e,a),t.tag=1,t=bf(null,t,e,a,l)):(t.tag=0,t=Hc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===O){t.tag=11,t=mf(null,t,e,a,l);break e}else if(n===Z){t.tag=14,t=hf(null,t,e,a,l);break e}}throw t=Pe(e)||e,Error(r(306,t,""))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$l(a,t.pendingProps),bf(e,t,a,n,l);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,sc(e,t),rn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,hl(t,He,a),a!==u.cache&&lc(t,[He],l,!0),sn(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Sf(e,t,a,l);break e}else if(a!==n){n=jt(Error(r(424)),t),tn(n),t=Sf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Te=zt(e.firstChild),Qe=t,de=!0,dl=null,Tt=!0,l=vo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),a===n){t=Wt(e,t,l);break e}Ve(e,t,a,l)}t=t.child}return t;case 26:return zu(e,t),e===null?(l=wd(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Qu(ce.current).createElement(l),a[Xe]=t,a[et]=e,Ke(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ka(t),e===null&&de&&(a=t.stateNode=Dd(t.type,t.pendingProps,ce.current),Qe=t,Tt=!0,n=Te,zl(t.type)?(Ss=n,Te=zt(a.firstChild)):Te=n),Ve(e,t,t.pendingProps.children,l),zu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=Te)&&(a=Gv(a,t.type,t.pendingProps,Tt),a!==null?(t.stateNode=a,Qe=t,Te=zt(a.firstChild),Tt=!1,n=!0):n=!1),n||ml(t)),ka(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,ys(n,u)?a=null:s!==null&&ys(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=vc(e,t,av,null,null,l),Mn._currentValue=n),zu(e,t),Ve(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Te)&&(l=Xv(l,t.pendingProps,Tt),l!==null?(t.stateNode=l,Qe=t,Te=null,e=!0):e=!1),e||ml(t)),null;case 13:return jf(e,t,l);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Kl(t,null,a,l):Ve(e,t,a,l),t.child;case 11:return mf(e,t,t.type,t.pendingProps,l);case 7:return Ve(e,t,t.pendingProps,l),t.child;case 8:return Ve(e,t,t.pendingProps.children,l),t.child;case 12:return Ve(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),Ve(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Xl(t),n=Ze(n),a=a(n),t.flags|=1,Ve(e,t,a,l),t.child;case 14:return hf(e,t,t.type,t.pendingProps,l);case 15:return vf(e,t,t.type,t.pendingProps,l);case 19:return Ef(e,t,l);case 31:return fv(e,t,l);case 22:return yf(e,t,l,t.pendingProps);case 24:return Xl(t),a=Ze(He),e===null?(n=uc(),n===null&&(n=Ee,u=ac(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},cc(t),hl(t,He,n)):((e.lanes&l)!==0&&(sc(e,t),rn(t,null,null,l),sn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),hl(t,He,a)):(a=u.cache,hl(t,He,a),a!==n.cache&&lc(t,[He],l,!0))),Ve(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ft(e){e.flags|=4}function Xc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(If())e.flags|=8192;else throw Vl=du,ic}else e.flags&=-16777217}function Af(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yd(t))if(If())e.flags|=8192;else throw Vl=du,ic}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Ma|=t)}function vn(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function mv(e,t,l){var a=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(He),Ce(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Ft(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pi())),Ae(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Ft(t),u!==null?(Ae(t),Af(t,u)):(Ae(t),Xc(t,n,null,a,l))):u?u!==e.memoizedState?(Ft(t),Ae(t),Af(t,u)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ft(t),Ae(t),Xc(t,n,e,a,l)),null;case 27:if(qn(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ae(t),null}e=F.current,ya(t)?ao(t):(e=Dd(n,a,l),t.stateNode=e,Ft(t))}return Ae(t),null;case 5:if(qn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ae(t),null}if(u=F.current,ya(t))ao(t);else{var s=Qu(ce.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[Xe]=t,u[et]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(Ke(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ft(t)}}return Ae(t),Xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Qe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ml(t,!0)}else e=Qu(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return Ae(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Xe]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else l=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ht(t),t):(ht(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ae(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Xe]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),n=!1}else n=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ht(t),t):(ht(t),null)}return ht(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),Ae(t),null);case 4:return Ce(),e===null&&fs(t.stateNode.containerInfo),Ae(t),null;case 10:return Kt(t.type),Ae(t),null;case 19:if(k(De),a=t.memoizedState,a===null)return Ae(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(Oe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ir(l,e),l=l.sibling;return J(De,De.current&1|2),de&&Zt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Uu&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=yu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!de)return Ae(t),null}else 2*st()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=De.current,J(De,n?l&1|2:l&1),de&&Zt(t,a.treeForkCount),e):(Ae(t),null);case 22:case 23:return ht(t),dc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&k(Ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(He),Ae(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hv(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(He),Ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qn(t),null;case 31:if(t.memoizedState!==null){if(ht(t),t.alternate===null)throw Error(r(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(De),null;case 4:return Ce(),null;case 10:return Kt(t.type),null;case 22:case 23:return ht(t),dc(),e!==null&&k(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(He),null;case 25:return null;default:return null}}function zf(e,t){switch(Fi(t),t.tag){case 3:Kt(He),Ce();break;case 26:case 27:case 5:qn(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&ht(t);break;case 13:ht(t);break;case 19:k(De);break;case 10:Kt(t.type);break;case 22:case 23:ht(t),dc(),e!==null&&k(Ql);break;case 24:Kt(He)}}function yn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(d){be(t,t.return,d)}}function bl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var s=a.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,n=t;var y=l,A=d;try{A()}catch(U){be(n,y,U)}}}a=a.next}while(a!==u)}}catch(U){be(t,t.return,U)}}function _f(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{po(t,l)}catch(a){be(e,e.return,a)}}}function Mf(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){be(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){be(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){be(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){be(e,t,n)}else l.current=null}function Rf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){be(e,e.return,n)}}function Qc(e,t,l){try{var a=e.stateNode;wv(a,e.type,l,t),a[et]=t}catch(n){be(e,e.return,n)}}function Of(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zl(e.type)||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(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&&zl(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 Vc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gt));else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Vc(e,t,l),e=e.sibling;e!==null;)Vc(e,t,l),e=e.sibling}function Ru(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ru(e,t,l),e=e.sibling;e!==null;)Ru(e,t,l),e=e.sibling}function Cf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ke(t,a,l),t[Xe]=e,t[et]=l}catch(u){be(e,e.return,u)}}var It=!1,Le=!1,Kc=!1,Df=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function vv(e,t){if(e=e.containerInfo,hs=Fu,e=Xr(e),qi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var s=0,d=-1,y=-1,A=0,U=0,B=e,z=null;t:for(;;){for(var R;B!==l||n!==0&&B.nodeType!==3||(d=s+n),B!==u||a!==0&&B.nodeType!==3||(y=s+a),B.nodeType===3&&(s+=B.nodeValue.length),(R=B.firstChild)!==null;)z=B,B=R;for(;;){if(B===e)break t;if(z===l&&++A===n&&(d=s),z===u&&++U===a&&(y=s),(R=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=R}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(vs={focusedElem:e,selectionRange:l},Fu=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,u=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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var $=$l(l.type,n);e=a.getSnapshotBeforeUpdate($,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){be(l,l.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xs(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}}function Uf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:el(e,l),a&4&&yn(5,l);break;case 1:if(el(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){be(l,l.return,s)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){be(l,l.return,s)}}a&64&&_f(l),a&512&&pn(l,l.return);break;case 3:if(el(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{po(e,t)}catch(s){be(l,l.return,s)}}break;case 27:t===null&&a&4&&Cf(l);case 26:case 5:el(e,l),t===null&&a&4&&Rf(l),a&512&&pn(l,l.return);break;case 12:el(e,l);break;case 31:el(e,l),a&4&&Bf(e,l);break;case 13:el(e,l),a&4&&Lf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ev.bind(null,l),Qv(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||Le,n=It;var u=Le;It=a,(Le=t)&&!u?tl(e,l,(l.subtreeFlags&8772)!==0):el(e,l),It=n,Le=u}break;case 30:break;default:el(e,l)}}function Hf(e){var t=e.alternate;t!==null&&(e.alternate=null,Hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ni(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 ze=null,lt=!1;function Pt(e,t,l){for(l=l.child;l!==null;)wf(e,t,l),l=l.sibling}function wf(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(qa,l)}catch{}switch(l.tag){case 26:Le||Bt(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Bt(l,t);var a=ze,n=lt;zl(l.type)&&(ze=l.stateNode,lt=!1),Pt(e,t,l),An(l.stateNode),ze=a,lt=n;break;case 5:Le||Bt(l,t);case 6:if(a=ze,n=lt,ze=null,Pt(e,t,l),ze=a,lt=n,ze!==null)if(lt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(l.stateNode)}catch(u){be(l,t,u)}else try{ze.removeChild(l.stateNode)}catch(u){be(l,t,u)}break;case 18:ze!==null&&(lt?(e=ze,_d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ba(e)):_d(ze,l.stateNode));break;case 4:a=ze,n=lt,ze=l.stateNode.containerInfo,lt=!0,Pt(e,t,l),ze=a,lt=n;break;case 0:case 11:case 14:case 15:bl(2,l,t),Le||bl(4,l,t),Pt(e,t,l);break;case 1:Le||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Mf(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,Pt(e,t,l),Le=a;break;default:Pt(e,t,l)}}function Bf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ba(e)}catch(l){be(t,t.return,l)}}}function Lf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ba(e)}catch(l){be(t,t.return,l)}}function yv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Df),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Df),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=yv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Tv.bind(null,e,a);a.then(n,n)}})}function at(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(zl(d.type)){ze=d.stateNode,lt=!1;break e}break;case 5:ze=d.stateNode,lt=!1;break e;case 3:case 4:ze=d.stateNode.containerInfo,lt=!0;break e}d=d.return}if(ze===null)throw Error(r(160));wf(u,s,n),ze=null,lt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kf(t,e),t=t.sibling}var Ot=null;function kf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:at(t,e),nt(e),a&4&&(bl(3,e,e.return),yn(3,e),bl(5,e,e.return));break;case 1:at(t,e),nt(e),a&512&&(Le||l===null||Bt(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ot;if(at(t,e),nt(e),a&512&&(Le||l===null||Bt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[Xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ke(u,a,l),u[Xe]=e,Ye(u),a=u;break e;case"link":var s=kd("link","href",n).get(a+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(u=s[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;case"meta":if(s=kd("meta","content",n).get(a+(l.content||""))){for(d=0;d<s.length;d++)if(u=s[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Xe]=e,Ye(u),a=u}e.stateNode=a}else qd(n,e.type,e.stateNode);else e.stateNode=Ld(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?qd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,l.memoizedProps)}break;case 27:at(t,e),nt(e),a&512&&(Le||l===null||Bt(l,l.return)),l!==null&&a&4&&Qc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(at(t,e),nt(e),a&512&&(Le||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch($){be(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Qc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Kc=!0);break;case 6:if(at(t,e),nt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){be(e,e.return,$)}}break;case 3:if(Ku=null,n=Ot,Ot=Zu(t.containerInfo),at(t,e),Ot=n,nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch($){be(e,e.return,$)}Kc&&(Kc=!1,qf(e));break;case 4:a=Ot,Ot=Zu(e.stateNode.containerInfo),at(t,e),nt(e),Ot=a;break;case 12:at(t,e),nt(e);break;case 31:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:at(t,e),nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,A=It,U=Le;if(It=A||n,Le=U||y,at(t,e),Le=U,It=A,nt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||It||Le||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=y.stateNode;var B=y.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){be(y,y.return,$)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch($){be(y,y.return,$)}}}else if(t.tag===18){if(l===null){y=t;try{var R=y.stateNode;n?Md(R,!0):Md(y.stateNode,!1)}catch($){be(y,y.return,$)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ou(e,l))));break;case 19:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:at(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Of(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Zc(e);Ru(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ia(s,""),l.flags&=-33);var d=Zc(e);Ru(e,d,s);break;case 3:case 4:var y=l.stateNode.containerInfo,A=Zc(e);Vc(e,A,y);break;default:throw Error(r(161))}}catch(U){be(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function el(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uf(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Wl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mf(t,t.return,l),Wl(t);break;case 27:An(t.stateNode);case 26:case 5:Bt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:tl(n,u,l),yn(4,u);break;case 1:if(tl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){be(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yo(y[n],d)}catch(A){be(a,a.return,A)}}l&&s&64&&_f(u),pn(u,u.return);break;case 27:Cf(u);case 26:case 5:tl(n,u,l),l&&a===null&&s&4&&Rf(u),pn(u,u.return);break;case 12:tl(n,u,l);break;case 31:tl(n,u,l),l&&s&4&&Bf(n,u);break;case 13:tl(n,u,l),l&&s&4&&Lf(n,u);break;case 22:u.memoizedState===null&&tl(n,u,l),pn(u,u.return);break;case 30:break;default:tl(n,u,l)}t=t.sibling}}function Jc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ln(l))}function $c(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e))}function Ct(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yf(e,t,l,a),t=t.sibling}function Yf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ct(e,t,l,a),n&2048&&yn(9,t);break;case 1:Ct(e,t,l,a);break;case 3:Ct(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e)));break;case 12:if(n&2048){Ct(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,d=u.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){be(t,t.return,y)}}else Ct(e,t,l,a);break;case 31:Ct(e,t,l,a);break;case 13:Ct(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Ct(e,t,l,a):xn(e,t):u._visibility&2?Ct(e,t,l,a):(u._visibility|=2,Aa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Jc(s,t);break;case 24:Ct(e,t,l,a),n&2048&&$c(t.alternate,t);break;default:Ct(e,t,l,a)}}function Aa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,d=l,y=a,A=s.flags;switch(s.tag){case 0:case 11:case 15:Aa(u,s,d,y,n),yn(8,s);break;case 23:break;case 22:var U=s.stateNode;s.memoizedState!==null?U._visibility&2?Aa(u,s,d,y,n):xn(u,s):(U._visibility|=2,Aa(u,s,d,y,n)),n&&A&2048&&Jc(s.alternate,s);break;case 24:Aa(u,s,d,y,n),n&&A&2048&&$c(s.alternate,s);break;default:Aa(u,s,d,y,n)}t=t.sibling}}function xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&Jc(a.alternate,a);break;case 24:xn(l,a),n&2048&&$c(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var gn=8192;function za(e,t,l){if(e.subtreeFlags&gn)for(e=e.child;e!==null;)Gf(e,t,l),e=e.sibling}function Gf(e,t,l){switch(e.tag){case 26:za(e,t,l),e.flags&gn&&e.memoizedState!==null&&ly(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:za(e,t,l);break;case 3:case 4:var a=Ot;Ot=Zu(e.stateNode.containerInfo),za(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,za(e,t,l),gn=a):za(e,t,l));break;default:za(e,t,l)}}function Xf(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 bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ge=a,Zf(a,e)}Xf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qf(e),e=e.sibling}function Qf(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:bn(e);break;case 12:bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cu(e)):bn(e);break;default:bn(e)}}function Cu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ge=a,Zf(a,e)}Xf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Cu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Cu(t));break;default:Cu(t)}e=e.sibling}}function Zf(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Hf(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var pv={getCacheForType:function(e){var t=Ze(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ze(He).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,pe=0,Ee=null,se=null,oe=0,ge=0,vt=null,Sl=!1,_a=!1,Wc=!1,ll=0,Oe=0,jl=0,Fl=0,Fc=0,yt=0,Ma=0,Sn=null,ut=null,Ic=!1,Du=0,Vf=0,Uu=1/0,Hu=null,Nl=null,ke=0,El=null,Ra=null,al=0,Pc=0,es=null,Kf=null,jn=0,ts=null;function pt(){return(pe&2)!==0&&oe!==0?oe&-oe:j.T!==null?cs():cr()}function Jf(){if(yt===0)if((oe&536870912)===0||de){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),yt=e}else yt=536870912;return e=mt.current,e!==null&&(e.flags|=32),yt}function it(e,t,l){(e===Ee&&(ge===2||ge===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,oe,yt,!1)),Ga(e,l),((pe&2)===0||e!==Ee)&&(e===Ee&&((pe&2)===0&&(Fl|=l),Oe===4&&Tl(e,oe,yt,!1)),Lt(e))}function $f(e,t,l){if((pe&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ya(e,t),n=a?Sv(e,t):as(e,t,!0),u=a;do{if(n===0){_a&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gv(l)){n=as(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;n=Sn;var y=d.current.memoizedState.isDehydrated;if(y&&(Oa(d,s).flags|=256),s=as(d,s,!1),s!==2){if(Wc&&!y){d.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=ut,ut=n,u!==null&&(ut===null?ut=u:ut.push.apply(ut,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){Oa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,yt,!Sl);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-st(),10<n)){if(Tl(a,t,yt,!Sl),Zn(a,0,!0)!==0)break e;al=t,a.timeoutHandle=Ad(Wf.bind(null,a,l,ut,Hu,Ic,t,yt,Fl,Ma,Sl,u,"Throttled",-0,0),n);break e}Wf(a,l,ut,Hu,Ic,t,yt,Fl,Ma,Sl,u,null,-0,0)}}break}while(!0);Lt(e)}function Wf(e,t,l,a,n,u,s,d,y,A,U,B,z,R){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Gf(t,u,B);var $=(u&62914560)===u?Du-st():(u&4194048)===u?Vf-st():0;if($=ay(B,$),$!==null){al=u,e.cancelPendingCommit=$(nd.bind(null,e,t,u,l,a,n,s,d,y,U,B,null,z,R)),Tl(e,u,s,!A);return}}nd(e,t,u,l,a,n,s,d,y)}function gv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ft(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Tl(e,t,l,a){t&=~Fc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ot(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&nr(e,l,t)}function wu(){return(pe&6)===0?(Nn(0),!1):!0}function ls(){if(se!==null){if(ge===0)var e=se.return;else e=se,Vt=Gl=null,xc(e),Sa=null,nn=0,e=se;for(;e!==null;)zf(e.alternate,e),e=e.return;se=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,kv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),al=0,ls(),Ee=e,se=l=Qt(e.current,null),oe=t,ge=0,vt=null,Sl=!1,_a=Ya(e,t),Wc=!1,Ma=yt=Fc=Fl=jl=Oe=0,ut=Sn=null,Ic=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ot(a),u=1<<n;t|=e[n],a&=~u}return ll=t,au(),l}function Ff(e,t){ue=null,j.H=mn,t===ba||t===fu?(t=fo(),ge=3):t===ic?(t=fo(),ge=4):ge=t===Uc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,se===null&&(Oe=1,Tu(e,jt(t,e.current)))}function If(){var e=mt.current;return e===null?!0:(oe&4194048)===oe?At===null:(oe&62914560)===oe||(oe&536870912)!==0?e===At:!1}function Pf(){var e=j.H;return j.H=mn,e===null?mn:e}function ed(){var e=j.A;return j.A=pv,e}function Bu(){Oe=4,Sl||(oe&4194048)!==oe&&mt.current!==null||(_a=!0),(jl&134217727)===0&&(Fl&134217727)===0||Ee===null||Tl(Ee,oe,yt,!1)}function as(e,t,l){var a=pe;pe|=2;var n=Pf(),u=ed();(Ee!==e||oe!==t)&&(Hu=null,Oa(e,t)),t=!1;var s=Oe;e:do try{if(ge!==0&&se!==null){var d=se,y=vt;switch(ge){case 8:ls(),s=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var A=ge;if(ge=0,vt=null,Ca(e,d,y,A),l&&_a){s=0;break e}break;default:A=ge,ge=0,vt=null,Ca(e,d,y,A)}}bv(),s=Oe;break}catch(U){Ff(e,U)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,pe=a,j.H=n,j.A=u,se===null&&(Ee=null,oe=0,au()),s}function bv(){for(;se!==null;)td(se)}function Sv(e,t){var l=pe;pe|=2;var a=Pf(),n=ed();Ee!==e||oe!==t?(Hu=null,Uu=st()+500,Oa(e,t)):_a=Ya(e,t);e:do try{if(ge!==0&&se!==null){t=se;var u=vt;t:switch(ge){case 1:ge=0,vt=null,Ca(e,t,u,1);break;case 2:case 9:if(ro(u)){ge=0,vt=null,ld(t);break}t=function(){ge!==2&&ge!==9||Ee!==e||(ge=7),Lt(e)},u.then(t,t);break e;case 3:ge=7;break e;case 4:ge=5;break e;case 7:ro(u)?(ge=0,vt=null,ld(t)):(ge=0,vt=null,Ca(e,t,u,7));break;case 5:var s=null;switch(se.tag){case 26:s=se.memoizedState;case 5:case 27:var d=se;if(s?Yd(s):d.stateNode.complete){ge=0,vt=null;var y=d.sibling;if(y!==null)se=y;else{var A=d.return;A!==null?(se=A,Lu(A)):se=null}break t}}ge=0,vt=null,Ca(e,t,u,5);break;case 6:ge=0,vt=null,Ca(e,t,u,6);break;case 8:ls(),Oe=6;break e;default:throw Error(r(462))}}jv();break}catch(U){Ff(e,U)}while(!0);return Vt=Gl=null,j.H=a,j.A=n,pe=l,se!==null?0:(Ee=null,oe=0,au(),Oe)}function jv(){for(;se!==null&&!Zm();)td(se)}function td(e){var t=Tf(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Lu(e):se=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=gf(l,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=gf(l,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:xc(t);default:zf(l,t),t=se=Ir(t,ll),t=Tf(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Lu(e):se=t}function Ca(e,t,l,a){Vt=Gl=null,xc(t),Sa=null,nn=0;var n=t.return;try{if(ov(e,n,t,l,oe)){Oe=1,Tu(e,jt(l,e.current)),se=null;return}}catch(u){if(n!==null)throw se=n,u;Oe=1,Tu(e,jt(l,e.current)),se=null;return}t.flags&32768?(de||a===1?e=!0:_a||(oe&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ad(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){ad(t,Sl);return}e=t.return;var l=mv(t.alternate,t,ll);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Oe===0&&(Oe=5)}function ad(e,t){do{var l=hv(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);Oe=6,se=null}function nd(e,t,l,a,n,u,s,d,y){e.cancelPendingCommit=null;do ku();while(ke!==0);if((pe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Zi,th(e,l,u,s,d,y),e===Ee&&(se=Ee=null,oe=0),Ra=t,El=e,al=l,Pc=u,es=n,Kf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Av(Yn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,n=C.p,C.p=2,s=pe,pe|=4;try{vv(e,t,l)}finally{pe=s,C.p=n,j.T=a}}ke=1,ud(),id(),cd()}}function ud(){if(ke===1){ke=0;var e=El,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var a=C.p;C.p=2;var n=pe;pe|=4;try{kf(t,e);var u=vs,s=Xr(e.containerInfo),d=u.focusedElem,y=u.selectionRange;if(s!==d&&d&&d.ownerDocument&&Gr(d.ownerDocument.documentElement,d)){if(y!==null&&qi(d)){var A=y.start,U=y.end;if(U===void 0&&(U=A),"selectionStart"in d)d.selectionStart=A,d.selectionEnd=Math.min(U,d.value.length);else{var B=d.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var R=z.getSelection(),$=d.textContent.length,ee=Math.min(y.start,$),Ne=y.end===void 0?ee:Math.min(y.end,$);!R.extend&&ee>Ne&&(s=Ne,Ne=ee,ee=s);var N=Yr(d,ee),g=Yr(d,Ne);if(N&&g&&(R.rangeCount!==1||R.anchorNode!==N.node||R.anchorOffset!==N.offset||R.focusNode!==g.node||R.focusOffset!==g.offset)){var T=B.createRange();T.setStart(N.node,N.offset),R.removeAllRanges(),ee>Ne?(R.addRange(T),R.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),R.addRange(T))}}}}for(B=[],R=d;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<B.length;d++){var H=B[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Fu=!!hs,vs=hs=null}finally{pe=n,C.p=a,j.T=l}}e.current=t,ke=2}}function id(){if(ke===2){ke=0;var e=El,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var a=C.p;C.p=2;var n=pe;pe|=4;try{Uf(e,t.alternate,t)}finally{pe=n,C.p=a,j.T=l}}ke=3}}function cd(){if(ke===4||ke===3){ke=0,Vm();var e=El,t=Ra,l=al,a=Kf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ke=5:(ke=0,Ra=El=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Nl=null),Si(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,n=C.p,C.p=2,j.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var d=a[s];u(d.value,{componentStack:d.stack})}}finally{j.T=t,C.p=n}}(al&3)!==0&&ku(),Lt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ts?jn++:(jn=0,ts=e):jn=0,Nn(0)}}function sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ln(t)))}function ku(){return ud(),id(),cd(),rd()}function rd(){if(ke!==5)return!1;var e=El,t=Pc;Pc=0;var l=Si(al),a=j.T,n=C.p;try{C.p=32>l?32:l,j.T=null,l=es,es=null;var u=El,s=al;if(ke=0,Ra=El=null,al=0,(pe&6)!==0)throw Error(r(331));var d=pe;if(pe|=4,Qf(u.current),Yf(u,u.current,s,l),pe=d,Nn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(qa,u)}catch{}return!0}finally{C.p=n,j.T=a,sd(e,t)}}function od(e,t,l){t=jt(l,t),t=Dc(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Ga(e,2),Lt(e))}function be(e,t,l){if(e.tag===3)od(e,e,l);else for(;t!==null;){if(t.tag===3){od(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nl===null||!Nl.has(a))){e=jt(l,e),l=ff(2),a=pl(t,l,2),a!==null&&(df(l,a,t,e),Ga(a,2),Lt(a));break}}t=t.return}}function ns(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Wc=!0,n.add(l),e=Nv.bind(null,e,t,l),t.then(e,e))}function Nv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(oe&l)===l&&(Oe===4||Oe===3&&(oe&62914560)===oe&&300>st()-Du?(pe&2)===0&&Oa(e,0):Fc|=l,Ma===oe&&(Ma=0)),Lt(e)}function fd(e,t){t===0&&(t=ar()),e=kl(e,t),e!==null&&(Ga(e,t),Lt(e))}function Ev(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),fd(e,l)}function Tv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),fd(e,l)}function Av(e,t){return pi(e,t)}var qu=null,Da=null,us=!1,Yu=!1,is=!1,Al=0;function Lt(e){e!==Da&&e.next===null&&(Da===null?qu=Da=e:Da=Da.next=e),Yu=!0,us||(us=!0,_v())}function Nn(e,t){if(!is&&Yu){is=!0;do for(var l=!1,a=qu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-ot(42|e)+1)-1,u&=n&~(s&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=oe,u=Zn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ya(a,u)||(l=!0,vd(a,u));a=a.next}while(l);is=!1}}function zv(){dd()}function dd(){Yu=us=!1;var e=0;Al!==0&&Lv()&&(e=Al);for(var t=st(),l=null,a=qu;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?qu=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(Yu=!0)),a=n}ke!==0&&ke!==5||Nn(e),Al!==0&&(Al=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-ot(u),d=1<<s,y=n[s];y===-1?((d&l)===0||(d&a)!==0)&&(n[s]=eh(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=oe,l=Zn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ge===2||ge===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ya(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xi(a),Si(l)){case 2:case 8:l=tr;break;case 32:l=Yn;break;case 268435456:l=lr;break;default:l=Yn}return a=hd.bind(null,e),l=pi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xi(a),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ku()&&e.callbackNode!==l)return null;var a=oe;return a=Zn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($f(e,a,t),md(e,st()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(ku())return null;$f(e,t,!0)}function _v(){qv(function(){(pe&6)!==0?pi(er,zv):dd()})}function cs(){if(Al===0){var e=xa;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),Al=e}return Al}function yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$n(""+e)}function pd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Mv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[et]||null).action),s=a.submitter;s&&(t=(t=s[et]||null)?yd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var d=new Pn("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var y=s?pd(n,s):new FormData(n);zc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=s?pd(n,s):new FormData(n),zc(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var ss=0;ss<Qi.length;ss++){var rs=Qi[ss],Rv=rs.toLowerCase(),Ov=rs[0].toUpperCase()+rs.slice(1);Rt(Rv,"on"+Ov)}Rt(Vr,"onAnimationEnd"),Rt(Kr,"onAnimationIteration"),Rt(Jr,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(Kh,"onTransitionRun"),Rt(Jh,"onTransitionStart"),Rt($h,"onTransitionCancel"),Rt($r,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var En="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(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(En));function xd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var s=a.length-1;0<=s;s--){var d=a[s],y=d.instance,A=d.currentTarget;if(d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=A;try{u(n)}catch(U){lu(U)}n.currentTarget=null,u=y}else for(s=0;s<a.length;s++){if(d=a[s],y=d.instance,A=d.currentTarget,d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=A;try{u(n)}catch(U){lu(U)}n.currentTarget=null,u=y}}}}function re(e,t){var l=t[ji];l===void 0&&(l=t[ji]=new Set);var a=e+"__bubble";l.has(a)||(gd(t,e,2,!1),l.add(a))}function os(e,t,l){var a=0;t&&(a|=4),gd(l,e,a,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[Gu]){e[Gu]=!0,or.forEach(function(l){l!=="selectionchange"&&(Cv.has(l)||os(l,!1,e),os(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,os("selectionchange",!1,t))}}function gd(e,t,l,a){switch(Jd(t)){case 2:var n=iy;break;case 8:n=cy;break;default:n=As}l=n.bind(null,t,l,e),n=void 0,!Oi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ds(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var d=a.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=a.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=ta(d),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){a=u=s;continue e}d=d.parentNode}}a=a.return}jr(function(){var A=u,U=Mi(l),B=[];e:{var z=Wr.get(e);if(z!==void 0){var R=Pn,$=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":R=Th;break;case"focusin":$="focus",R=Hi;break;case"focusout":$="blur",R=Hi;break;case"beforeblur":case"afterblur":R=Hi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=_h;break;case Vr:case Kr:case Jr:R=yh;break;case $r:R=Rh;break;case"scroll":case"scrollend":R=fh;break;case"wheel":R=Ch;break;case"copy":case"cut":case"paste":R=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=zr;break;case"toggle":case"beforetoggle":R=Uh}var ee=(t&4)!==0,Ne=!ee&&(e==="scroll"||e==="scrollend"),N=ee?z!==null?z+"Capture":null:z;ee=[];for(var g=A,T;g!==null;){var H=g;if(T=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||T===null||N===null||(H=Za(g,N),H!=null&&ee.push(Tn(g,H,T))),Ne)break;g=g.return}0<ee.length&&(z=new R(z,$,null,l,U),B.push({event:z,listeners:ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&l!==_i&&($=l.relatedTarget||l.fromElement)&&(ta($)||$[ea]))break e;if((R||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,R?($=l.relatedTarget||l.toElement,R=A,$=$?ta($):null,$!==null&&(Ne=v($),ee=$.tag,$!==Ne||ee!==5&&ee!==27&&ee!==6)&&($=null)):(R=null,$=A),R!==$)){if(ee=Tr,H="onMouseLeave",N="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ee=zr,H="onPointerLeave",N="onPointerEnter",g="pointer"),Ne=R==null?z:Qa(R),T=$==null?z:Qa($),z=new ee(H,g+"leave",R,l,U),z.target=Ne,z.relatedTarget=T,H=null,ta(U)===A&&(ee=new ee(N,g+"enter",$,l,U),ee.target=T,ee.relatedTarget=Ne,H=ee),Ne=H,R&&$)t:{for(ee=Dv,N=R,g=$,T=0,H=N;H;H=ee(H))T++;H=0;for(var P=g;P;P=ee(P))H++;for(;0<T-H;)N=ee(N),T--;for(;0<H-T;)g=ee(g),H--;for(;T--;){if(N===g||g!==null&&N===g.alternate){ee=N;break t}N=ee(N),g=ee(g)}ee=null}else ee=null;R!==null&&bd(B,z,R,ee,!1),$!==null&&Ne!==null&&bd(B,Ne,$,ee,!0)}}e:{if(z=A?Qa(A):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var he=Hr;else if(Dr(z))if(wr)he=Qh;else{he=Gh;var I=Yh}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?A&&zi(A.elementType)&&(he=Hr):he=Xh;if(he&&(he=he(e,A))){Ur(B,he,l,U);break e}I&&I(e,z,A),e==="focusout"&&A&&z.type==="number"&&A.memoizedProps.value!=null&&Ai(z,"number",z.value)}switch(I=A?Qa(A):window,e){case"focusin":(Dr(I)||I.contentEditable==="true")&&(oa=I,Yi=A,Pa=null);break;case"focusout":Pa=Yi=oa=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":Gi=!1,Qr(B,l,U);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Qr(B,l,U)}var ie;if(Bi)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else ra?Or(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(_r&&l.locale!=="ko"&&(ra||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&ra&&(ie=Nr()):(ol=U,Ci="value"in ol?ol.value:ol.textContent,ra=!0)),I=Xu(A,fe),0<I.length&&(fe=new Ar(fe,e,null,l,U),B.push({event:fe,listeners:I}),ie?fe.data=ie:(ie=Cr(l),ie!==null&&(fe.data=ie)))),(ie=wh?Bh(e,l):Lh(e,l))&&(fe=Xu(A,"onBeforeInput"),0<fe.length&&(I=new Ar("onBeforeInput","beforeinput",null,l,U),B.push({event:I,listeners:fe}),I.data=ie)),Mv(B,e,A,l,U)}xd(B,t)})}function Tn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Za(e,l),n!=null&&a.unshift(Tn(e,n,u)),n=Za(e,t),n!=null&&a.push(Tn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bd(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var d=l,y=d.alternate,A=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||A===null||(y=A,n?(A=Za(l,u),A!=null&&s.unshift(Tn(l,A,y))):n||(A=Za(l,u),A!=null&&s.push(Tn(l,A,y)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Uv=/\r\n?/g,Hv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
49
- `).replace(Hv,"")}function jd(e,t){return t=Sd(t),Sd(e)===t}function je(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":br(e,a,u);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&je(e,t,"name",n.name,n,null),je(e,t,"formEncType",n.formEncType,n,null),je(e,t,"formMethod",n.formMethod,n,null),je(e,t,"formTarget",n.formTarget,n,null)):(je(e,t,"encType",n.encType,n,null),je(e,t,"method",n.method,n,null),je(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=$n(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":re("beforetoggle",e),re("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=rh.get(l)||l,Vn(e,l,a))}}function ms(e,t,l,a,n,u){switch(l){case"style":br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[et]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Vn(e,l,a)}}}function Ke(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,u,s,l,null)}}n&&je(e,t,"srcSet",l.srcSet,l,null),a&&je(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var d=u=s=n=null,y=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":s=U;break;case"checked":y=U;break;case"defaultChecked":A=U;break;case"value":u=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:je(e,t,a,U,l,null)}}yr(e,u,d,y,A,s,n,!1);return;case"select":re("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:je(e,t,n,d,l,null)}t=u,l=s,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":re("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:je(e,t,s,d,l,null)}xr(e,a,n,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:je(e,t,y,a,l,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<En.length;a++)re(En[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,A,a,l,null)}return;default:if(zi(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&ms(e,t,U,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&je(e,t,d,a,l,null))}function wv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,d=null,y=null,A=null,U=null;for(R in l){var B=l[R];if(l.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=B;default:a.hasOwnProperty(R)||je(e,t,R,null,a,B)}}for(var z in a){var R=a[z];if(B=l[z],a.hasOwnProperty(z)&&(R!=null||B!=null))switch(z){case"type":u=R;break;case"name":n=R;break;case"checked":A=R;break;case"defaultChecked":U=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==B&&je(e,t,z,R,a,B)}}Ti(e,s,d,y,A,U,u,n);return;case"select":R=s=d=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":R=y;default:a.hasOwnProperty(u)||je(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":z=u;break;case"defaultValue":d=u;break;case"multiple":s=u;default:u!==y&&je(e,t,n,u,a,y)}t=d,l=s,a=R,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":R=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:je(e,t,d,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":z=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&je(e,t,s,n,a,u)}pr(e,z,R);return;case"option":for(var $ in l)if(z=l[$],l.hasOwnProperty($)&&z!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:je(e,t,$,null,a,z)}for(y in a)if(z=a[y],R=l[y],a.hasOwnProperty(y)&&z!==R&&(z!=null||R!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:je(e,t,y,z,a,R)}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 ee in l)z=l[ee],l.hasOwnProperty(ee)&&z!=null&&!a.hasOwnProperty(ee)&&je(e,t,ee,null,a,z);for(A in a)if(z=a[A],R=l[A],a.hasOwnProperty(A)&&z!==R&&(z!=null||R!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:je(e,t,A,z,a,R)}return;default:if(zi(t)){for(var Ne in l)z=l[Ne],l.hasOwnProperty(Ne)&&z!==void 0&&!a.hasOwnProperty(Ne)&&ms(e,t,Ne,void 0,a,z);for(U in a)z=a[U],R=l[U],!a.hasOwnProperty(U)||z===R||z===void 0&&R===void 0||ms(e,t,U,z,a,R);return}}for(var N in l)z=l[N],l.hasOwnProperty(N)&&z!=null&&!a.hasOwnProperty(N)&&je(e,t,N,null,a,z);for(B in a)z=a[B],R=l[B],!a.hasOwnProperty(B)||z===R||z==null&&R==null||je(e,t,B,z,a,R)}function Nd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,d=n.duration;if(u&&d&&Nd(s)){for(s=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],A=y.startTime;if(A>d)break;var U=y.transferSize,B=y.initiatorType;U&&Nd(B)&&(y=y.responseEnd,s+=U*(y<d?1:(d-A)/(y-A)))}if(--a,t+=8*(u+s)/(n.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 hs=null,vs=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Ed(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 Td(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 ys(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 ps=null;function Lv(){var e=window.event;return e&&e.type==="popstate"?e===ps?!1:(ps=e,!0):(ps=null,!1)}var Ad=typeof setTimeout=="function"?setTimeout:void 0,kv=typeof clearTimeout=="function"?clearTimeout:void 0,zd=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof zd<"u"?function(e){return zd.resolve(null).then(e).catch(Yv)}:Ad;function Yv(e){setTimeout(function(){throw e})}function zl(e){return e==="head"}function _d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ba(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")An(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,An(l);for(var u=l.firstChild;u;){var s=u.nextSibling,d=u.nodeName;u[Xa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&An(e.ownerDocument.body);l=n}while(l);Ba(t)}function Md(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function xs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":xs(l),Ni(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function Xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function Rd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function gs(e){return e.data==="$?"||e.data==="$~"}function bs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function zt(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 Ss=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Cd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Dd(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function An(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ni(e)}var _t=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nl=C.d;C.d={f:Zv,r:Vv,D:Kv,C:Jv,L:$v,m:Wv,X:Iv,S:Fv,M:Pv};function Zv(){var e=nl.f(),t=wu();return e||t}function Vv(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?Wo(t):nl.r(e)}var Ua=typeof document>"u"?null:document;function Hd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ud.has(n)||(Ud.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Kv(e){nl.D(e),Hd("dns-prefetch",e,null)}function Jv(e,t){nl.C(e,t),Hd("preconnect",e,t)}function $v(e,t,l){nl.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+bt(l.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=wa(e)}_t.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),_t.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(zn(u))||t==="script"&&a.querySelector(_n(u))||(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Wv(e,t){nl.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wa(e)}if(!_t.has(u)&&(e=p({rel:"modulepreload",href:e},t),_t.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_n(u)))return}a=l.createElement("link"),Ke(a,"link",e),Ye(a),l.head.appendChild(a)}}}function Fv(e,t,l){nl.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=Ha(e);t=t||"default";var s=n.get(u);if(!s){var d={loading:0,preload:null};if(s=a.querySelector(zn(u)))d.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=_t.get(u))&&js(e,l);var y=s=a.createElement("link");Ye(y),Ke(y,"link",e),y._p=new Promise(function(A,U){y.onload=A,y.onerror=U}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Vu(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(u,s)}}}function Iv(e,t){nl.X(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=wa(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0},t),(t=_t.get(n))&&Ns(e,t),u=l.createElement("script"),Ye(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Pv(e,t){nl.M(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=wa(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0,type:"module"},t),(t=_t.get(n))&&Ns(e,t),u=l.createElement("script"),Ye(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function wd(e,t,l,a){var n=(n=ce.current)?Zu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=aa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var u=aa(n).hoistableStyles,s=u.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=n.querySelector(zn(e)))&&!u._p&&(s.instance=u,s.state.loading=5),_t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_t.set(e,l),u||ey(n,e,l,s.state))),t&&a===null)throw Error(r(528,""));return s}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(l),l=aa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ha(e){return'href="'+bt(e)+'"'}function zn(e){return'link[rel="stylesheet"]['+e+"]"}function Bd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ke(t,"link",l),Ye(t),e.head.appendChild(t))}function wa(e){return'[src="'+bt(e)+'"]'}function _n(e){return"script[async]"+e}function Ld(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Ke(a,"style",n),Vu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(zn(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=Bd(l),(n=_t.get(n))&&js(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var s=u;return s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Ke(u,"link",a),t.state.loading|=4,Vu(u,l.precedence,e),t.instance=u;case"script":return u=wa(l.src),(n=e.querySelector(_n(u)))?(t.instance=n,Ye(n),n):(a=l,(n=_t.get(u))&&(a=p({},l),Ns(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vu(a,l.precedence,e));return t.instance}function Vu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var d=a[s];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function js(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function kd(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Xa]||u[Xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(u):a.set(s,[u])}}return a}function qd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ty(e,t,l){if(l===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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!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 Yd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=t.querySelector(zn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=Bd(a),(n=_t.get(n))&&js(a,n),u=u.createElement("link"),Ye(u);var s=u;s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Ke(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Es=0;function ay(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Es===0&&(Es=62500*Bv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Es?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(ny,e),$u=null,Ju.call(e))}function ny(e,t){if(!(t.state.loading&4)){var l=$u.get(e);if(l)var a=l.get(null);else{l=new Map,$u.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Ju.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:K,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function uy(e,t,l,a,n,u,s,d,y){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=gi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.hiddenUpdates=gi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Gd(e,t,l,a,n,u,s,d,y,A,U,B){return e=new uy(e,t,l,s,y,A,U,B,d),t=1,u===!0&&(t|=24),u=dt(3,null,null,t),e.current=u,u.stateNode=e,t=ac(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},cc(u),e}function Xd(e){return e?(e=ma,e):ma}function Qd(e,t,l,a,n,u){n=Xd(n),a.context===null?a.context=n:a.pendingContext=n,a=yl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=pl(e,a,t),l!==null&&(it(l,e,t),cn(l,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ts(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function Vd(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&it(t,e,67108864),Ts(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=pt();t=bi(t);var l=kl(e,t);l!==null&&it(l,e,t),Ts(e,t)}}var Fu=!0;function iy(e,t,l,a){var n=j.T;j.T=null;var u=C.p;try{C.p=2,As(e,t,l,a)}finally{C.p=u,j.T=n}}function cy(e,t,l,a){var n=j.T;j.T=null;var u=C.p;try{C.p=8,As(e,t,l,a)}finally{C.p=u,j.T=n}}function As(e,t,l,a){if(Fu){var n=zs(a);if(n===null)ds(e,t,a,Iu,l),$d(e,a);else if(ry(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<sy.indexOf(e)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=Ul(u.pendingLanes);if(s!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var y=1<<31-ot(s);d.entanglements[1]|=y,s&=~y}Lt(u),(pe&6)===0&&(Uu=st()+500,Nn(0))}}break;case 31:case 13:d=kl(u,2),d!==null&&it(d,u,2),wu(),Ts(u,2)}if(u=zs(a),u===null&&ds(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ds(e,t,a,null,l)}}function zs(e){return e=Mi(e),_s(e)}var Iu=null;function _s(e){if(Iu=null,e=ta(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=_(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Iu=e,null}function Jd(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(Km()){case er:return 2;case tr:return 8;case Yn:case Jm:return 32;case lr:return 268435456;default:return 32}default:return 32}}var Ms=!1,_l=null,Ml=null,Rl=null,Rn=new Map,On=new Map,Ol=[],sy="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 $d(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Rn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(t.pointerId)}}function Cn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=la(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ry(e,t,l,a,n){switch(t){case"focusin":return _l=Cn(_l,e,t,l,a,n),!0;case"dragenter":return Ml=Cn(Ml,e,t,l,a,n),!0;case"mouseover":return Rl=Cn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Rn.set(u,Cn(Rn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,On.set(u,Cn(On.get(u)||null,e,t,l,a,n)),!0}return!1}function Wd(e){var t=ta(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=zs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);_i=a,l.target.dispatchEvent(a),_i=null}else return t=la(l),t!==null&&Vd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){Pu(e)&&l.delete(t)}function oy(){Ms=!1,_l!==null&&Pu(_l)&&(_l=null),Ml!==null&&Pu(Ml)&&(Ml=null),Rl!==null&&Pu(Rl)&&(Rl=null),Rn.forEach(Fd),On.forEach(Fd)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,Ms||(Ms=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,oy)))}var ti=null;function Id(e){ti!==e&&(ti=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ti===e&&(ti=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(_s(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ba(e){function t(y){return ei(y,e)}_l!==null&&ei(_l,e),Ml!==null&&ei(Ml,e),Rl!==null&&ei(Rl,e),Rn.forEach(t),On.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[et]||null;if(typeof u=="function")s||Id(l);else if(s){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[et]||null)d=s.formAction;else if(_s(n)!==null)continue}else d=s.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Id(l)}}}function Pd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Rs(e){this._internalRoot=e}li.prototype.render=Rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=pt();Qd(l,a,e,t,null,null)},li.prototype.unmount=Rs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qd(e.current,2,null,e,null,null),wu(),t[ea]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=cr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&Wd(e)}};var em=o.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));C.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var fy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{qa=ai.inject(fy),rt=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=cf,u=sf,s=rf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Gd(e,1,!1,null,null,l,a,null,n,u,s,Pd),e[ea]=t.current,fs(e),new Rs(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=cf,s=sf,d=rf,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Gd(e,1,!0,t,l??null,a,n,y,u,s,d,Pd),t.context=Xd(null),l=t.current,a=pt(),a=bi(a),n=yl(a),n.callback=null,pl(l,n,a),l=a,t.current.lanes=l,Ga(t,l),Lt(t),e[ea]=t.current,fs(e),new li(t)},Un.version="19.2.4",Un}var om;function Sy(){if(om)return Ds.exports;om=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Ds.exports=by(),Ds.exports}var jy=Sy();/**
50
- * react-router v7.13.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var fm="popstate";function dm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ny(i={}){function o(m,v){let{pathname:x="/",search:_="",hash:S=""}=Pl(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),Xs("",{pathname:x,search:_,hash:S},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function f(m,v){let x=m.document.querySelector("base"),_="";if(x&&x.getAttribute("href")){let S=m.location.href,h=S.indexOf("#");_=h===-1?S:S.slice(0,h)}return _+"#"+(typeof v=="string"?v:wn(v))}function r(m,v){Ut(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(v)})`)}return Ty(o,f,r,i)}function _e(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Ut(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Ey(){return Math.random().toString(36).substring(2,10)}function mm(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Xs(i,o,f=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?Pl(o):o,state:f,key:o&&o.key||r||Ey(),unstable_mask:m}}function wn({pathname:i="/",search:o="",hash:f=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Pl(i){let o={};if(i){let f=i.indexOf("#");f>=0&&(o.hash=i.substring(f),i=i.substring(0,f));let r=i.indexOf("?");r>=0&&(o.search=i.substring(r),i=i.substring(0,r)),i&&(o.pathname=i)}return o}function Ty(i,o,f,r={}){let{window:m=document.defaultView,v5Compat:v=!1}=r,x=m.history,_="POP",S=null,h=M();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function M(){return(x.state||{idx:null}).idx}function p(){_="POP";let Q=M(),D=Q==null?null:Q-h;h=Q,S&&S({action:_,location:X.location,delta:D})}function w(Q,D){_="PUSH";let W=dm(Q)?Q:Xs(X.location,Q,D);f&&f(W,Q),h=M()+1;let K=mm(W,h),O=X.createHref(W.unstable_mask||W);try{x.pushState(K,"",O)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;m.location.assign(O)}v&&S&&S({action:_,location:X.location,delta:1})}function V(Q,D){_="REPLACE";let W=dm(Q)?Q:Xs(X.location,Q,D);f&&f(W,Q),h=M();let K=mm(W,h),O=X.createHref(W.unstable_mask||W);x.replaceState(K,"",O),v&&S&&S({action:_,location:X.location,delta:0})}function Y(Q){return Ay(Q)}let X={get action(){return _},get location(){return i(m,x)},listen(Q){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(fm,p),S=Q,()=>{m.removeEventListener(fm,p),S=null}},createHref(Q){return o(m,Q)},createURL:Y,encodeLocation(Q){let D=Y(Q);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:w,replace:V,go(Q){return x.go(Q)}};return X}function Ay(i,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),_e(f,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:wn(i);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function Tm(i,o,f="/"){return zy(i,o,f,!1)}function zy(i,o,f,r){let m=typeof o=="string"?Pl(o):o,v=il(m.pathname||"/",f);if(v==null)return null;let x=Am(i);_y(x);let _=null;for(let S=0;_==null&&S<x.length;++S){let h=ky(v);_=By(x[S],h,r)}return _}function Am(i,o=[],f=[],r="",m=!1){let v=(x,_,S=m,h)=>{let M={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:_,route:x};if(M.relativePath.startsWith("/")){if(!M.relativePath.startsWith(r)&&S)return;_e(M.relativePath.startsWith(r),`Absolute route path "${M.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),M.relativePath=M.relativePath.slice(r.length)}let p=kt([r,M.relativePath]),w=f.concat(M);x.children&&x.children.length>0&&(_e(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Am(x.children,o,w,p,S)),!(x.path==null&&!x.index)&&o.push({path:p,score:Hy(p,x.index),routesMeta:w})};return i.forEach((x,_)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))v(x,_);else for(let h of zm(x.path))v(x,_,!0,h)}),o}function zm(i){let o=i.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),v=f.replace(/\?$/,"");if(r.length===0)return m?[v,""]:[v];let x=zm(r.join("/")),_=[];return _.push(...x.map(S=>S===""?v:[v,S].join("/"))),m&&_.push(...x),_.map(S=>i.startsWith("/")&&S===""?"/":S)}function _y(i){i.sort((o,f)=>o.score!==f.score?f.score-o.score:wy(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var My=/^:[\w-]+$/,Ry=3,Oy=2,Cy=1,Dy=10,Uy=-2,hm=i=>i==="*";function Hy(i,o){let f=i.split("/"),r=f.length;return f.some(hm)&&(r+=Uy),o&&(r+=Oy),f.filter(m=>!hm(m)).reduce((m,v)=>m+(My.test(v)?Ry:v===""?Cy:Dy),r)}function wy(i,o){return i.length===o.length&&i.slice(0,-1).every((r,m)=>r===o[m])?i[i.length-1]-o[o.length-1]:0}function By(i,o,f=!1){let{routesMeta:r}=i,m={},v="/",x=[];for(let _=0;_<r.length;++_){let S=r[_],h=_===r.length-1,M=v==="/"?o:o.slice(v.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},M),w=S.route;if(!p&&h&&f&&!r[r.length-1].route.index&&(p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},M)),!p)return null;Object.assign(m,p.params),x.push({params:m,pathname:kt([v,p.pathname]),pathnameBase:Xy(kt([v,p.pathnameBase])),route:w}),p.pathnameBase!=="/"&&(v=kt([v,p.pathnameBase]))}return x}function si(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,r]=Ly(i.path,i.caseSensitive,i.end),m=o.match(f);if(!m)return null;let v=m[0],x=v.replace(/(.)\/+$/,"$1"),_=m.slice(1);return{params:r.reduce((h,{paramName:M,isOptional:p},w)=>{if(M==="*"){let Y=_[w]||"";x=v.slice(0,v.length-Y.length).replace(/(.)\/+$/,"$1")}const V=_[w];return p&&!V?h[M]=void 0:h[M]=(V||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:i}}function Ly(i,o=!1,f=!0){Ut(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,_,S,h,M)=>{if(r.push({paramName:_,isOptional:S!=null}),S){let p=M.charAt(h+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function ky(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Ut(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function il(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=i.charAt(f);return r&&r!=="/"?null:i.slice(f)||"/"}var qy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yy(i,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof i=="string"?Pl(i):i,v;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?v=vm(f.substring(1),"/"):v=vm(f,o)):v=o,{pathname:v,search:Qy(r),hash:Zy(m)}}function vm(i,o){let f=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function Bs(i,o,f,r){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gy(i){return i.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function _m(i){let o=Gy(i);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function Vs(i,o,f,r=!1){let m;typeof i=="string"?m=Pl(i):(m={...i},_e(!m.pathname||!m.pathname.includes("?"),Bs("?","pathname","search",m)),_e(!m.pathname||!m.pathname.includes("#"),Bs("#","pathname","hash",m)),_e(!m.search||!m.search.includes("#"),Bs("#","search","hash",m)));let v=i===""||m.pathname==="",x=v?"/":m.pathname,_;if(x==null)_=f;else{let p=o.length-1;if(!r&&x.startsWith("..")){let w=x.split("/");for(;w[0]==="..";)w.shift(),p-=1;m.pathname=w.join("/")}_=p>=0?o[p]:"/"}let S=Yy(m,_),h=x&&x!=="/"&&x.endsWith("/"),M=(v||x===".")&&f.endsWith("/");return!S.pathname.endsWith("/")&&(h||M)&&(S.pathname+="/"),S}var kt=i=>i.join("/").replace(/\/\/+/g,"/"),Xy=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Qy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Vy=class{constructor(i,o,f,r=!1){this.status=i,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Ky(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Jy(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rm(i,o){let f=i;if(typeof f!="string"||!qy.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(Mm)try{let v=new URL(window.location.href),x=f.startsWith("//")?new URL(v.protocol+f):new URL(f),_=il(x.pathname,o);x.origin===v.origin&&_!=null?f=_+x.search+x.hash:m=!0}catch{Ut(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var $y=["GET",...Om];new Set($y);var La=E.createContext(null);La.displayName="DataRouter";var ri=E.createContext(null);ri.displayName="DataRouterState";var Wy=E.createContext(!1),Cm=E.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Fy=E.createContext(new Map);Fy.displayName="Fetchers";var Iy=E.createContext(null);Iy.displayName="Await";var Mt=E.createContext(null);Mt.displayName="Navigation";var Bn=E.createContext(null);Bn.displayName="Location";var qt=E.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var Ks=E.createContext(null);Ks.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Py="REDIRECT",ep="ROUTE_ERROR_RESPONSE";function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function lp(i){if(i.startsWith(`${Dm}:${ep}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Vy(o.status,o.statusText,o.data)}catch{}}function ap(i,{relative:o}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=E.useContext(Mt),{hash:m,pathname:v,search:x}=kn(i,{relative:o}),_=v;return f!=="/"&&(_=v==="/"?f:kt([f,v])),r.createHref({pathname:_,search:x,hash:m})}function Ln(){return E.useContext(Bn)!=null}function cl(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Bn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){E.useContext(Mt).static||E.useLayoutEffect(i)}function np(){let{isDataRoute:i}=E.useContext(qt);return i?pp():up()}function up(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(La),{basename:o,navigator:f}=E.useContext(Mt),{matches:r}=E.useContext(qt),{pathname:m}=cl(),v=JSON.stringify(_m(r)),x=E.useRef(!1);return Hm(()=>{x.current=!0}),E.useCallback((S,h={})=>{if(Ut(x.current,Um),!x.current)return;if(typeof S=="number"){f.go(S);return}let M=Vs(S,JSON.parse(v),m,h.relative==="path");i==null&&o!=="/"&&(M.pathname=M.pathname==="/"?o:kt([o,M.pathname])),(h.replace?f.replace:f.push)(M,h.state,h)},[o,f,v,m,i])}E.createContext(null);function oi(){let{matches:i}=E.useContext(qt),o=i[i.length-1];return o?o.params:{}}function kn(i,{relative:o}={}){let{matches:f}=E.useContext(qt),{pathname:r}=cl(),m=JSON.stringify(_m(f));return E.useMemo(()=>Vs(i,JSON.parse(m),r,o==="path"),[i,m,r,o])}function ip(i,o){return wm(i,o)}function wm(i,o,f){var Q;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(Mt),{matches:m}=E.useContext(qt),v=m[m.length-1],x=v?v.params:{},_=v?v.pathname:"/",S=v?v.pathnameBase:"/",h=v&&v.route;{let D=h&&h.path||"";Lm(_,!h||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${_}" (under <Route path="${D}">) 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.
59
-
60
- Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let M=cl(),p;if(o){let D=typeof o=="string"?Pl(o):o;_e(S==="/"||((Q=D.pathname)==null?void 0:Q.startsWith(S)),`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 "${S}" but pathname "${D.pathname}" was given in the \`location\` prop.`),p=D}else p=M;let w=p.pathname||"/",V=w;if(S!=="/"){let D=S.replace(/^\//,"").split("/");V="/"+w.replace(/^\//,"").split("/").slice(D.length).join("/")}let Y=Tm(i,{pathname:V});Ut(h||Y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ut(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 X=fp(Y&&Y.map(D=>Object.assign({},D,{params:Object.assign({},x,D.params),pathname:kt([S,r.encodeLocation?r.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?S:kt([S,r.encodeLocation?r.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),m,f);return o&&X?E.createElement(Bn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},X):X}function cp(){let i=yp(),o=Ky(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:v},"ErrorBoundary")," or"," ",E.createElement("code",{style:v},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),f?E.createElement("pre",{style:m},f):null,x)}var sp=E.createElement(cp,null),Bm=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=lp(i.digest);f&&(i=f)}let o=i!==void 0?E.createElement(qt.Provider,{value:this.props.routeContext},E.createElement(Ks.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(rp,{error:i},o):o}};Bm.contextType=Wy;var Ls=new WeakMap;function rp({children:i,error:o}){let{basename:f}=E.useContext(Mt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=tp(o.digest);if(r){let m=Ls.get(o);if(m)throw m;let v=Rm(r.location,f);if(Mm&&!Ls.get(o))if(v.isExternal||r.reloadDocument)window.location.href=v.absoluteURL||v.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(v.to,{replace:r.replace}));throw Ls.set(o,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v.absoluteURL||v.to}`})}}return i}function op({routeContext:i,match:o,children:f}){let r=E.useContext(La);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(qt.Provider,{value:i},f)}function fp(i,o=[],f){let r=f==null?void 0:f.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(o.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,v=r==null?void 0:r.errors;if(v!=null){let M=m.findIndex(p=>p.route.id&&(v==null?void 0:v[p.route.id])!==void 0);_e(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,M+1))}let x=!1,_=-1;if(f&&r){x=r.renderFallback;for(let M=0;M<m.length;M++){let p=m[M];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(_=M),p.route.id){let{loaderData:w,errors:V}=r,Y=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!V||V[p.route.id]===void 0);if(p.route.lazy||Y){f.isStatic&&(x=!0),_>=0?m=m.slice(0,_+1):m=[m[0]];break}}}}let S=f==null?void 0:f.onError,h=r&&S?(M,p)=>{var w,V;S(M,{location:r.location,params:((V=(w=r.matches)==null?void 0:w[0])==null?void 0:V.params)??{},unstable_pattern:Jy(r.matches),errorInfo:p})}:void 0;return m.reduceRight((M,p,w)=>{let V,Y=!1,X=null,Q=null;r&&(V=v&&p.route.id?v[p.route.id]:void 0,X=p.route.errorElement||sp,x&&(_<0&&w===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,Q=null):_===w&&(Y=!0,Q=p.route.hydrateFallbackElement||null)));let D=o.concat(m.slice(0,w+1)),W=()=>{let K;return V?K=X:Y?K=Q:p.route.Component?K=E.createElement(p.route.Component,null):p.route.element?K=p.route.element:K=M,E.createElement(op,{match:p,routeContext:{outlet:M,matches:D,isDataRoute:r!=null},children:K})};return r&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?E.createElement(Bm,{location:r.location,revalidation:r.revalidation,component:X,error:V,children:W(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:h}):W()},null)}function Js(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dp(i){let o=E.useContext(La);return _e(o,Js(i)),o}function mp(i){let o=E.useContext(ri);return _e(o,Js(i)),o}function hp(i){let o=E.useContext(qt);return _e(o,Js(i)),o}function $s(i){let o=hp(i),f=o.matches[o.matches.length-1];return _e(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function vp(){return $s("useRouteId")}function yp(){var r;let i=E.useContext(Ks),o=mp("useRouteError"),f=$s("useRouteError");return i!==void 0?i:(r=o.errors)==null?void 0:r[f]}function pp(){let{router:i}=dp("useNavigate"),o=$s("useNavigate"),f=E.useRef(!1);return Hm(()=>{f.current=!0}),E.useCallback(async(m,v={})=>{Ut(f.current,Um),f.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:o,...v}))},[i,o])}var ym={};function Lm(i,o,f){!o&&!ym[i]&&(ym[i]=!0,Ut(!1,f))}E.memo(xp);function xp({routes:i,future:o,state:f,isStatic:r,onError:m}){return wm(i,void 0,{state:f,isStatic:r,onError:m})}function Il(i){_e(!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 gp({basename:i="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:v=!1,unstable_useTransitions:x}){_e(!Ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let _=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:_,navigator:m,static:v,unstable_useTransitions:x,future:{}}),[_,m,v,x]);typeof f=="string"&&(f=Pl(f));let{pathname:h="/",search:M="",hash:p="",state:w=null,key:V="default",unstable_mask:Y}=f,X=E.useMemo(()=>{let Q=il(h,_);return Q==null?null:{location:{pathname:Q,search:M,hash:p,state:w,key:V,unstable_mask:Y},navigationType:r}},[_,h,M,p,w,V,r,Y]);return Ut(X!=null,`<Router basename="${_}"> is not able to match the URL "${h}${M}${p}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:E.createElement(Mt.Provider,{value:S},E.createElement(Bn.Provider,{children:o,value:X}))}function bp({children:i,location:o}){return ip(Qs(i),o)}function Qs(i,o=[]){let f=[];return E.Children.forEach(i,(r,m)=>{if(!E.isValidElement(r))return;let v=[...o,m];if(r.type===E.Fragment){f.push.apply(f,Qs(r.props.children,v));return}_e(r.type===Il,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={id:r.props.id||v.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(x.children=Qs(r.props.children,v)),f.push(x)}),f}var ii="get",ci="application/x-www-form-urlencoded";function fi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sp(i){return fi(i)&&i.tagName.toLowerCase()==="button"}function jp(i){return fi(i)&&i.tagName.toLowerCase()==="form"}function Np(i){return fi(i)&&i.tagName.toLowerCase()==="input"}function Ep(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Tp(i,o){return i.button===0&&(!o||o==="_self")&&!Ep(i)}var ni=null;function Ap(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var zp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ks(i){return i!=null&&!zp.has(i)?(Ut(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function _p(i,o){let f,r,m,v,x;if(jp(i)){let _=i.getAttribute("action");r=_?il(_,o):null,f=i.getAttribute("method")||ii,m=ks(i.getAttribute("enctype"))||ci,v=new FormData(i)}else if(Sp(i)||Np(i)&&(i.type==="submit"||i.type==="image")){let _=i.form;if(_==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||_.getAttribute("action");if(r=S?il(S,o):null,f=i.getAttribute("formmethod")||_.getAttribute("method")||ii,m=ks(i.getAttribute("formenctype"))||ks(_.getAttribute("enctype"))||ci,v=new FormData(_,i),!Ap()){let{name:h,type:M,value:p}=i;if(M==="image"){let w=h?`${h}.`:"";v.append(`${w}x`,"0"),v.append(`${w}y`,"0")}else h&&v.append(h,p)}}else{if(fi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=ii,r=null,m=ci,x=i}return v&&m==="text/plain"&&(x=v,v=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:v,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ws(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Mp(i,o,f,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&il(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,o){if(i.id in o)return o[i.id];try{let f=await import(i.module);return o[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Op(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Cp(i,o,f){let r=await Promise.all(i.map(async m=>{let v=o.routes[m.route.id];if(v){let x=await Rp(v,f);return x.links?x.links():[]}return[]}));return wp(r.flat(1).filter(Op).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,o,f,r,m,v){let x=(S,h)=>f[h]?S.route.id!==f[h].route.id:!0,_=(S,h)=>{var M;return f[h].pathname!==S.pathname||((M=f[h].route.path)==null?void 0:M.endsWith("*"))&&f[h].params["*"]!==S.params["*"]};return v==="assets"?o.filter((S,h)=>x(S,h)||_(S,h)):v==="data"?o.filter((S,h)=>{var p;let M=r.routes[S.route.id];if(!M||!M.hasLoader)return!1;if(x(S,h)||_(S,h))return!0;if(S.route.shouldRevalidate){let w=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((p=f[0])==null?void 0:p.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Dp(i,o,{includeHydrateFallback:f}={}){return Up(i.map(r=>{let m=o.routes[r.route.id];if(!m)return[];let v=[m.module];return m.clientActionModule&&(v=v.concat(m.clientActionModule)),m.clientLoaderModule&&(v=v.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(v=v.concat(m.hydrateFallbackModule)),m.imports&&(v=v.concat(m.imports)),v}).flat(1))}function Up(i){return[...new Set(i)]}function Hp(i){let o={},f=Object.keys(i).sort();for(let r of f)o[r]=i[r];return o}function wp(i,o){let f=new Set;return new Set(o),i.reduce((r,m)=>{let v=JSON.stringify(Hp(m));return f.has(v)||(f.add(v),r.push({key:v,link:m})),r},[])}function km(){let i=E.useContext(La);return Ws(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Bp(){let i=E.useContext(ri);return Ws(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Fs=E.createContext(void 0);Fs.displayName="FrameworkContext";function qm(){let i=E.useContext(Fs);return Ws(i,"You must render this element inside a <HydratedRouter> element"),i}function Lp(i,o){let f=E.useContext(Fs),[r,m]=E.useState(!1),[v,x]=E.useState(!1),{onFocus:_,onBlur:S,onMouseEnter:h,onMouseLeave:M,onTouchStart:p}=o,w=E.useRef(null);E.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let X=D=>{D.forEach(W=>{x(W.isIntersecting)})},Q=new IntersectionObserver(X,{threshold:.5});return w.current&&Q.observe(w.current),()=>{Q.disconnect()}}},[i]),E.useEffect(()=>{if(r){let X=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(X)}}},[r]);let V=()=>{m(!0)},Y=()=>{m(!1),x(!1)};return f?i!=="intent"?[v,w,{}]:[v,w,{onFocus:Hn(_,V),onBlur:Hn(S,Y),onMouseEnter:Hn(h,V),onMouseLeave:Hn(M,Y),onTouchStart:Hn(p,V)}]:[!1,w,{}]}function Hn(i,o){return f=>{i&&i(f),f.defaultPrevented||o(f)}}function kp({page:i,...o}){let{router:f}=km(),r=E.useMemo(()=>Tm(f.routes,i,f.basename),[f.routes,i,f.basename]);return r?E.createElement(Yp,{page:i,matches:r,...o}):null}function qp(i){let{manifest:o,routeModules:f}=qm(),[r,m]=E.useState([]);return E.useEffect(()=>{let v=!1;return Cp(i,o,f).then(x=>{v||m(x)}),()=>{v=!0}},[i,o,f]),r}function Yp({page:i,matches:o,...f}){let r=cl(),{future:m,manifest:v,routeModules:x}=qm(),{basename:_}=km(),{loaderData:S,matches:h}=Bp(),M=E.useMemo(()=>pm(i,o,h,v,r,"data"),[i,o,h,v,r]),p=E.useMemo(()=>pm(i,o,h,v,r,"assets"),[i,o,h,v,r]),w=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let X=new Set,Q=!1;if(o.forEach(W=>{var O;let K=v.routes[W.route.id];!K||!K.hasLoader||(!M.some(L=>L.route.id===W.route.id)&&W.route.id in S&&((O=x[W.route.id])!=null&&O.shouldRevalidate)||K.hasClientLoader?Q=!0:X.add(W.route.id))}),X.size===0)return[];let D=Mp(i,_,m.unstable_trailingSlashAwareDataRequests,"data");return Q&&X.size>0&&D.searchParams.set("_routes",o.filter(W=>X.has(W.route.id)).map(W=>W.route.id).join(",")),[D.pathname+D.search]},[_,m.unstable_trailingSlashAwareDataRequests,S,r,v,M,o,i,x]),V=E.useMemo(()=>Dp(p,v),[p,v]),Y=qp(p);return E.createElement(E.Fragment,null,w.map(X=>E.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...f})),V.map(X=>E.createElement("link",{key:X,rel:"modulepreload",href:X,...f})),Y.map(({key:X,link:Q})=>E.createElement("link",{key:X,nonce:f.nonce,...Q,crossOrigin:Q.crossOrigin??f.crossOrigin})))}function Gp(...i){return o=>{i.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xp&&(window.__reactRouterVersion="7.13.1")}catch{}function Qp({basename:i,children:o,unstable_useTransitions:f,window:r}){let m=E.useRef();m.current==null&&(m.current=Ny({window:r,v5Compat:!0}));let v=m.current,[x,_]=E.useState({action:v.action,location:v.location}),S=E.useCallback(h=>{f===!1?_(h):E.startTransition(()=>_(h))},[f]);return E.useLayoutEffect(()=>v.listen(S),[v,S]),E.createElement(gp,{basename:i,children:o,location:x.location,navigationType:x.action,navigator:v,unstable_useTransitions:f})}var Ym=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dt=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:v,replace:x,unstable_mask:_,state:S,target:h,to:M,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:V,...Y},X){let{basename:Q,navigator:D,unstable_useTransitions:W}=E.useContext(Mt),K=typeof M=="string"&&Ym.test(M),O=Rm(M,Q);M=O.to;let L=ap(M,{relative:m}),q=cl(),Z=null;if(_){let Me=Vs(_,[],q.unstable_mask?q.unstable_mask.pathname:"/",!0);Q!=="/"&&(Me.pathname=Me.pathname==="/"?Q:kt([Q,Me.pathname])),Z=D.createHref(Me)}let[le,ye,Je]=Lp(r,Y),Ie=Jp(M,{replace:x,unstable_mask:_,state:S,target:h,preventScrollReset:p,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:V,unstable_useTransitions:W});function qe(Me){o&&o(Me),Me.defaultPrevented||Ie(Me)}let xt=!(O.isExternal||v),Pe=E.createElement("a",{...Y,...Je,href:(xt?Z:void 0)||O.absoluteURL||L,onClick:xt?qe:o,ref:Gp(X,ye),target:h,"data-discover":!K&&f==="render"?"true":void 0});return le&&!K?E.createElement(E.Fragment,null,Pe,E.createElement(kp,{page:L})):Pe});Dt.displayName="Link";var Zp=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:v,to:x,viewTransition:_,children:S,...h},M){let p=kn(x,{relative:h.relative}),w=cl(),V=E.useContext(ri),{navigator:Y,basename:X}=E.useContext(Mt),Q=V!=null&&Pp(p)&&_===!0,D=Y.encodeLocation?Y.encodeLocation(p).pathname:p.pathname,W=w.pathname,K=V&&V.navigation&&V.navigation.location?V.navigation.location.pathname:null;f||(W=W.toLowerCase(),K=K?K.toLowerCase():null,D=D.toLowerCase()),K&&X&&(K=il(K,X)||K);const O=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let L=W===D||!m&&W.startsWith(D)&&W.charAt(O)==="/",q=K!=null&&(K===D||!m&&K.startsWith(D)&&K.charAt(D.length)==="/"),Z={isActive:L,isPending:q,isTransitioning:Q},le=L?o:void 0,ye;typeof r=="function"?ye=r(Z):ye=[r,L?"active":null,q?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let Je=typeof v=="function"?v(Z):v;return E.createElement(Dt,{...h,"aria-current":le,className:ye,ref:M,style:Je,to:x,viewTransition:_},typeof S=="function"?S(Z):S)});Zp.displayName="NavLink";var Vp=E.forwardRef(({discover:i="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:v,method:x=ii,action:_,onSubmit:S,relative:h,preventScrollReset:M,viewTransition:p,unstable_defaultShouldRevalidate:w,...V},Y)=>{let{unstable_useTransitions:X}=E.useContext(Mt),Q=Fp(),D=Ip(_,{relative:h}),W=x.toLowerCase()==="get"?"get":"post",K=typeof _=="string"&&Ym.test(_),O=L=>{if(S&&S(L),L.defaultPrevented)return;L.preventDefault();let q=L.nativeEvent.submitter,Z=(q==null?void 0:q.getAttribute("formmethod"))||x,le=()=>Q(q||L.currentTarget,{fetcherKey:o,method:Z,navigate:f,replace:m,state:v,relative:h,preventScrollReset:M,viewTransition:p,unstable_defaultShouldRevalidate:w});X&&f!==!1?E.startTransition(()=>le()):le()};return E.createElement("form",{ref:Y,method:W,action:D,onSubmit:r?S:O,...V,"data-discover":!K&&i==="render"?"true":void 0})});Vp.displayName="Form";function Kp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gm(i){let o=E.useContext(La);return _e(o,Kp(i)),o}function Jp(i,{target:o,replace:f,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:_,unstable_defaultShouldRevalidate:S,unstable_useTransitions:h}={}){let M=np(),p=cl(),w=kn(i,{relative:x});return E.useCallback(V=>{if(Tp(V,o)){V.preventDefault();let Y=f!==void 0?f:wn(p)===wn(w),X=()=>M(i,{replace:Y,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:_,unstable_defaultShouldRevalidate:S});h?E.startTransition(()=>X()):X()}},[p,M,w,f,r,m,o,i,v,x,_,S,h])}var $p=0,Wp=()=>`__${String(++$p)}__`;function Fp(){let{router:i}=Gm("useSubmit"),{basename:o}=E.useContext(Mt),f=vp(),r=i.fetch,m=i.navigate;return E.useCallback(async(v,x={})=>{let{action:_,method:S,encType:h,formData:M,body:p}=_p(v,o);if(x.navigate===!1){let w=x.fetcherKey||Wp();await r(w,f,x.action||_,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:M,body:p,formMethod:x.method||S,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||_,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:M,body:p,formMethod:x.method||S,formEncType:x.encType||h,replace:x.replace,state:x.state,fromRouteId:f,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,o,f])}function Ip(i,{relative:o}={}){let{basename:f}=E.useContext(Mt),r=E.useContext(qt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),v={...kn(i||".",{relative:o})},x=cl();if(i==null){v.search=x.search;let _=new URLSearchParams(v.search),S=_.getAll("index");if(S.some(M=>M==="")){_.delete("index"),S.filter(p=>p).forEach(p=>_.append("index",p));let M=_.toString();v.search=M?`?${M}`:""}}return(!i||i===".")&&m.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(v.pathname=v.pathname==="/"?f:kt([f,v.pathname])),wn(v)}function Pp(i,{relative:o}={}){let f=E.useContext(Cm);_e(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gm("useViewTransitionState"),m=kn(i,{relative:o});if(!f.isTransitioning)return!1;let v=il(f.currentLocation.pathname,r)||f.currentLocation.pathname,x=il(f.nextLocation.pathname,r)||f.nextLocation.pathname;return si(m.pathname,x)!=null||si(m.pathname,v)!=null}const ex="";async function ul(i,o){const f=await fetch(`${ex}${i}`,o);if(!f.ok){const r=await f.json().catch(()=>({error:f.statusText}));throw new Error(r.error||`HTTP ${f.status}`)}return f.json()}const ct={getConfig(){return ul("/api/config")},setConfig(i,o){return ul("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:i,model:o})})},getSkills(){return ul("/api/skills")},getSkillDetail(i,o){return ul(`/api/skills/${i}/${o}`)},getEvals(i,o){return ul(`/api/skills/${i}/${o}/evals`)},saveEvals(i,o,f){return ul(`/api/skills/${i}/${o}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})},getLatestBenchmark(i,o){return ul(`/api/skills/${i}/${o}/benchmark/latest`)},getHistory(i,o){return ul(`/api/skills/${i}/${o}/history`)},getHistoryEntry(i,o,f){return ul(`/api/skills/${i}/${o}/history/${encodeURIComponent(f)}`)}},xm={pass:{bg:"var(--green-muted)",text:"var(--green)",dot:"var(--green)",label:"Passing"},fail:{bg:"var(--red-muted)",text:"var(--red)",dot:"var(--red)",label:"Failing"},pending:{bg:"var(--yellow-muted)",text:"var(--yellow)",dot:"var(--yellow)",label:"Pending"},missing:{bg:"var(--surface-3)",text:"var(--text-tertiary)",dot:"var(--text-tertiary)",label:"No evals"}};function qs(){return c.jsx("div",{className:"glass-card p-5",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),c.jsx("div",{className:"skeleton h-3.5 w-48"})]}),c.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function tx(){const[i,o]=E.useState([]),[f,r]=E.useState(!0),[m,v]=E.useState(null);E.useEffect(()=>{ct.getSkills().then(o).catch(_=>v(_.message)).finally(()=>r(!1))},[]);const x=i.reduce((_,S)=>{var h;return(_[h=S.plugin]||(_[h]=[])).push(S),_},{});return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),c.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:f?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(x).length} plugin${Object.keys(x).length!==1?"s":""}`})]}),m&&c.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:m}),f&&c.jsxs("div",{className:"space-y-3",children:[c.jsx(qs,{}),c.jsx(qs,{}),c.jsx(qs,{})]}),!f&&c.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(x).map(([_,S])=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[c.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),c.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:_}),c.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),c.jsx("div",{className:"grid gap-2",children:S.map(h=>{const M=xm[h.benchmarkStatus]||xm.missing;return c.jsxs(Dt,{to:`/skills/${h.plugin}/${h.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"flex items-center gap-2",children:c.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.skill})}),c.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[c.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.evalCount," eval",h.evalCount!==1?"s":""]}),c.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.assertionCount," assertion",h.assertionCount!==1?"s":""]}),h.lastBenchmark&&c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(h.lastBenchmark).toLocaleDateString()})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"pill",style:{background:M.bg,color:M.text},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:M.dot}}),M.label]}),c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",style:{transform:"translateX(0)",transition:"transform 0.15s ease"},children:c.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${h.plugin}/${h.skill}`)})})]},_))}),!f&&i.length===0&&!m&&c.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})})}),c.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),c.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",c.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function di(){const[i,o]=E.useState([]),[f,r]=E.useState(!1),[m,v]=E.useState(!1),[x,_]=E.useState(null),S=E.useRef(null),h=E.useCallback(async(p,w)=>{o([]),r(!0),v(!1),_(null);const V=new AbortController;S.current=V;try{const Y=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:w?JSON.stringify(w):void 0,signal:V.signal});if(!Y.ok||!Y.body)throw new Error(`HTTP ${Y.status}`);const X=Y.body.getReader(),Q=new TextDecoder;let D="",W="";for(;;){const{done:K,value:O}=await X.read();if(K)break;D+=Q.decode(O,{stream:!0});const L=D.split(`
61
- `);D=L.pop()||"";for(const q of L)if(q.startsWith("event: "))W=q.slice(7).trim();else if(q.startsWith("data: ")){try{const Z=JSON.parse(q.slice(6)),le={event:W,data:Z};W==="done"?(v(!0),o(ye=>[...ye,le])):o(ye=>[...ye,le])}catch{}W=""}}}catch(Y){Y.name!=="AbortError"&&_(Y.message)}finally{r(!1),S.current=null}},[]),M=E.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:f,done:m,error:x,start:h,stop:M}}function lx(){const{plugin:i,skill:o}=oi(),[f,r]=E.useState(null),[m,v]=E.useState(!0),[x,_]=E.useState(null),[S,h]=E.useState(!1),[M,p]=E.useState(null),[w,V]=E.useState(!1),{events:Y,running:X,start:Q}=di(),[D,W]=E.useState(null),[K,O]=E.useState(new Map),[L,q]=E.useState(new Set);E.useEffect(()=>{!i||!o||ct.getEvals(i,o).then(r).catch(j=>_(j.message)).finally(()=>v(!1))},[i,o]);async function Z(j){if(!(!i||!o)){h(!0);try{const C=await ct.saveEvals(i,o,j);r(C),_(null)}catch(C){_(C.message)}finally{h(!1)}}}function le(j){f&&(Z({...f,evals:[...f.evals,j]}),V(!1))}function ye(j){f&&(Z({...f,evals:f.evals.map(C=>C.id===j.id?j:C)}),p(null))}function Je(j){!f||!confirm("Delete this eval case?")||Z({...f,evals:f.evals.filter(C=>C.id!==j)})}function Ie(j){if(!f)return;const C=f.evals.find(G=>G.id===j);C&&ye({...C,assertions:[...C.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function qe(j,C,G){if(!f)return;const te=f.evals.find(me=>me.id===j);te&&ye({...te,assertions:te.assertions.map(me=>me.id===C?{...me,text:G}:me)})}function xt(j,C){if(!f)return;const G=f.evals.find(te=>te.id===j);G&&ye({...G,assertions:G.assertions.filter(te=>te.id!==C)})}E.useEffect(()=>{if(!D)return;const j={assertions:[]};for(const C of Y){if(C.event==="output_ready"){const G=C.data;G.eval_id===D&&(j.output=G.output,G.durationMs!=null&&(j.durationMs=G.durationMs),G.tokens!=null&&(j.tokens=G.tokens))}if(C.event==="assertion_result"){const G=C.data;G.eval_id===D&&!j.assertions.find(te=>te.assertion_id===G.assertion_id)&&j.assertions.push(G)}if(C.event==="case_complete"){const G=C.data;G.eval_id===D&&(j.status=G.status,j.passRate=G.pass_rate,j.errorMessage=G.error_message||void 0)}}O(C=>new Map(C).set(D,j))},[Y,D]),E.useEffect(()=>{!X&&D&&W(null)},[X,D]);function Pe(j){W(j),q(C=>new Set(C).add(j)),Q(`/api/skills/${i}/${o}/benchmark`,{eval_ids:[j]})}function Me(j){q(C=>{const G=new Set(C);return G.has(j)?G.delete(j):G.add(j),G})}return m?c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),c.jsxs("div",{className:"flex gap-2 mb-6",children:[c.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),c.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"skeleton h-32 rounded-xl"}),c.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[c.jsx(Dt,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:j=>{j.currentTarget.style.color="var(--text-primary)"},onMouseLeave:j=>{j.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:o})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[c.jsxs(Dt,{to:`/skills/${i}/${o}/benchmark`,className:"btn btn-primary",children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),c.jsxs(Dt,{to:`/skills/${i}/${o}/compare`,className:"btn btn-purple",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M16 3h5v5"}),c.jsx("path",{d:"M8 21H3v-5"}),c.jsx("path",{d:"M21 3l-7 7"}),c.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),c.jsxs(Dt,{to:`/skills/${i}/${o}/history`,className:"btn btn-secondary",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),x&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:x}),f?c.jsxs("div",{className:"space-y-3 stagger-children",children:[f.evals.map(j=>c.jsxs("div",{className:"glass-card p-5",children:[c.jsxs("div",{className:"flex items-start justify-between mb-3",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",j.id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:j.name})]}),c.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:j.prompt})]}),c.jsxs("div",{className:"flex gap-1 ml-3",children:[c.jsx("button",{onClick:()=>Pe(j.id),disabled:X,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:D===j.id?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{width:12,height:12}})," Running..."]}):c.jsxs(c.Fragment,{children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run"]})}),c.jsx("button",{onClick:()=>{p(j),V(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),c.jsx("button",{onClick:()=>Je(j.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),c.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),c.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:j.assertions.length})]}),c.jsx("div",{className:"space-y-1.5",children:j.assertions.map(C=>c.jsxs("div",{className:"flex items-center gap-2 group",children:[c.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:C.id}),c.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:C.text,onChange:G=>qe(j.id,C.id,G.target.value),onFocus:G=>{G.currentTarget.style.borderColor="var(--border-default)",G.currentTarget.style.background="var(--surface-2)"},onBlur:G=>{G.currentTarget.style.borderColor="transparent",G.currentTarget.style.background="transparent"}}),c.jsx("button",{onClick:()=>xt(j.id,C.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},C.id))}),c.jsxs("button",{onClick:()=>Ie(j.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]}),(()=>{const C=K.get(j.id);if(!C||C.assertions.length===0&&!C.status)return null;const G=L.has(j.id);return c.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Benchmark Result"}),C.durationMs!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(C.durationMs/1e3).toFixed(1),"s"]}),C.tokens!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[C.tokens.toLocaleString()," tok"]})]}),C.status?c.jsxs("span",{className:"pill",style:{background:C.status==="pass"?"var(--green-muted)":C.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:C.status==="pass"?"var(--green)":C.status==="error"?"var(--yellow)":"var(--red)"},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:C.status==="pass"?"var(--green)":C.status==="error"?"var(--yellow)":"var(--red)"}}),C.status," ",C.passRate!==void 0?`${Math.round(C.passRate*100)}%`:""]}):c.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[c.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),C.errorMessage&&c.jsx("div",{className:"mb-2 p-2 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:C.errorMessage}),c.jsx("div",{className:"space-y-1.5",children:C.assertions.map(te=>c.jsxs("div",{className:"flex items-start gap-2 p-2 rounded-lg animate-fade-in",style:{background:te.pass?"var(--green-muted)":"var(--red-muted)"},children:[c.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:te.pass?"var(--green)":"var(--red)"},children:c.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:te.pass?c.jsx("polyline",{points:"20 6 9 17 4 12"}):c.jsxs(c.Fragment,{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:te.text||te.assertion_id}),c.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-secondary)"},children:te.reasoning})]})]},te.assertion_id))}),C.output&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>Me(j.id),className:"mt-2 flex items-center gap-1.5 text-[11px] font-medium transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:te=>{te.currentTarget.style.color="var(--text-primary)"},onMouseLeave:te=>{te.currentTarget.style.color="var(--text-tertiary)"},children:[c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:G?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),G?"Hide Output":"Show LLM Output"]}),G&&c.jsx("div",{className:"mt-2 text-[11px] leading-relaxed p-3 rounded-lg max-h-48 overflow-y-auto whitespace-pre-wrap animate-fade-in",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:C.output})]})]})})()]},j.id)),c.jsx("button",{onClick:()=>{p(null),V(!0)},className:"w-full p-4 rounded-xl text-[13px] font-medium transition-all duration-150",style:{border:"2px dashed var(--border-default)",color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:j=>{j.currentTarget.style.borderColor="var(--accent)",j.currentTarget.style.color="var(--accent)",j.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:j=>{j.currentTarget.style.borderColor="var(--border-default)",j.currentTarget.style.color="var(--text-tertiary)",j.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):c.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[c.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),c.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),c.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),c.jsx("button",{onClick:()=>V(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),w&&c.jsx(ax,{evalCase:M,skillName:(f==null?void 0:f.skill_name)||o||"",existingIds:(f==null?void 0:f.evals.map(j=>j.id))||[],onSave:j=>M?ye(j):le(j),onCancel:()=>{V(!1),p(null)}}),S&&c.jsxs("div",{className:"fixed bottom-5 right-5 flex items-center gap-2 px-4 py-2.5 rounded-lg text-[13px] animate-fade-in-scale",style:{background:"var(--accent)",color:"#fff",boxShadow:"0 8px 32px rgba(99,131,255,0.3)"},children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function ax({evalCase:i,skillName:o,existingIds:f,onSave:r,onCancel:m}){const[v,x]=E.useState((i==null?void 0:i.name)||""),[_,S]=E.useState((i==null?void 0:i.prompt)||""),[h,M]=E.useState((i==null?void 0:i.expected_output)||""),[p,w]=E.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function V(Y){Y.preventDefault();const X=(i==null?void 0:i.id)??(f.length>0?Math.max(...f)+1:1);r({id:X,name:v,prompt:_,expected_output:h,files:(i==null?void 0:i.files)||[],assertions:p.filter(Q=>Q.text.trim())})}return c.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},children:c.jsxs("form",{onSubmit:V,className:"glass-card p-6 w-full max-w-2xl max-h-[85vh] overflow-auto animate-modal-in",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)"},children:[c.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),c.jsx("input",{className:"input-field",value:v,onChange:Y=>x(Y.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),c.jsx("textarea",{className:"input-field h-24 resize-y",value:_,onChange:Y=>S(Y.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),c.jsx("textarea",{className:"input-field h-20 resize-y",value:h,onChange:Y=>M(Y.target.value),placeholder:"What a good answer should include..."})]}),c.jsxs("div",{className:"mb-5",children:[c.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),p.map((Y,X)=>c.jsxs("div",{className:"flex gap-2 mt-1.5",children:[c.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:Y.id,onChange:Q=>{const D=[...p];D[X]={...D[X],id:Q.target.value},w(D)},placeholder:"ID"}),c.jsx("input",{className:"input-field flex-1 text-[12px]",value:Y.text,onChange:Q=>{const D=[...p];D[X]={...D[X],text:Q.target.value},w(D)},placeholder:"Assertion text"}),c.jsx("button",{type:"button",onClick:()=>w(p.filter((Q,D)=>D!==X)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},X)),c.jsx("button",{type:"button",onClick:()=>w([...p,{id:`assert-${p.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),c.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function nx(){const{plugin:i,skill:o}=oi(),{events:f,running:r,done:m,error:v,start:x}=di(),[_,S]=E.useState(new Set),[h,M]=E.useState(null),[p,w]=E.useState(null),[V,Y]=E.useState(null);E.useEffect(()=>{ct.getConfig().then(L=>M(L.model)).catch(()=>{}),i&&o&&ct.getEvals(i,o).then(w).catch(()=>{})},[i,o]);function X(L){ct.getConfig().then(Z=>M(Z.model)).catch(()=>{}),S(new Set),Y((L==null?void 0:L.length)===1?L[0]:"all");const q=L?{eval_ids:L}:void 0;x(`/api/skills/${i}/${o}/benchmark`,q)}function Q(L){S(q=>{const Z=new Set(q);return Z.has(L)?Z.delete(L):Z.add(L),Z})}const D=new Map;for(const L of f){if(L.event==="case_start"){const q=L.data;D.has(q.eval_id)||D.set(q.eval_id,{name:q.eval_name,assertions:[]})}if(L.event==="output_ready"){const q=L.data,Z=D.get(q.eval_id)||{assertions:[]};Z.output=q.output,q.durationMs!=null&&(Z.durationMs=q.durationMs),q.tokens!=null&&(Z.tokens=q.tokens),D.set(q.eval_id,Z)}if(L.event==="assertion_result"){const q=L.data,Z=D.get(q.eval_id)||{assertions:[]};Z.assertions.find(le=>le.assertion_id===q.assertion_id)||(Z.assertions.push(q),D.set(q.eval_id,Z))}if(L.event==="case_complete"){const q=L.data,Z=D.get(q.eval_id)||{assertions:[]};Z.status=q.status,Z.passRate=q.pass_rate,Z.errorMessage=q.error_message||void 0,D.set(q.eval_id,Z)}}const W=f.find(L=>L.event==="done"),K=W==null?void 0:W.data,O=(K==null?void 0:K.overall_pass_rate)!==void 0?Math.round(K.overall_pass_rate*100):null;return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Dt,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:L=>{L.currentTarget.style.color="var(--text-primary)"},onMouseLeave:L=>{L.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),c.jsx("div",{className:"mb-3",children:c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs your skill against each eval case. An LLM judge grades every assertion against the actual output."})}),c.jsx("button",{onClick:()=>X(),disabled:r,className:"btn btn-primary mb-7",children:r&&V==="all"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running All..."]}):c.jsxs(c.Fragment,{children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run All (",(p==null?void 0:p.evals.length)??0," cases)"]})}),v&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),!r&&D.size===0&&p&&p.evals.length>0&&c.jsxs("div",{className:"space-y-2 mb-6",children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Eval Cases"}),p.evals.map(L=>c.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-100",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",L.id]}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-medium truncate",style:{color:"var(--text-primary)"},children:L.name}),c.jsxs("div",{className:"text-[11px] truncate mt-0.5",style:{color:"var(--text-tertiary)"},children:[L.assertions.length," assertion",L.assertions.length!==1?"s":""]})]}),c.jsxs("button",{onClick:()=>X([L.id]),disabled:r,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run"]})]},L.id))]}),D.size>0&&c.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(D.entries()).map(([L,q])=>{const Z=_.has(L);return c.jsxs("div",{className:"glass-card overflow-hidden",children:[c.jsxs("div",{className:"p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",L]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:q.name||"Eval Case"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[q.durationMs!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(q.durationMs/1e3).toFixed(1),"s"]}),q.tokens!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[q.tokens.toLocaleString()," tok"]}),q.status?c.jsxs("span",{className:"pill",style:{background:q.status==="pass"?"var(--green-muted)":q.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:q.status==="pass"?"var(--green)":q.status==="error"?"var(--yellow)":"var(--red)"},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:q.status==="pass"?"var(--green)":q.status==="error"?"var(--yellow)":"var(--red)"}}),q.status," ",q.passRate!==void 0?`${Math.round(q.passRate*100)}%`:""]}):c.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[c.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]})]}),q.errorMessage&&c.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:q.errorMessage}),c.jsx("div",{className:"space-y-2",children:q.assertions.map(le=>c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:le.pass?"var(--green-muted)":"var(--red-muted)"},children:[c.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:le.pass?"var(--green)":"var(--red)"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:le.pass?c.jsx("polyline",{points:"20 6 9 17 4 12"}):c.jsxs(c.Fragment,{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:le.text||le.assertion_id}),c.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:le.reasoning})]})]},le.assertion_id))})]}),q.output&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>Q(L),className:"w-full px-5 py-2.5 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:le=>{le.currentTarget.style.background="var(--surface-3)"},onMouseLeave:le=>{le.currentTarget.style.background="var(--surface-2)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:Z?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),Z?"Hide LLM Output":"Show Actual LLM Output"]}),Z&&c.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),c.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:q.output})]})]})]},L)}),m&&O!==null&&(()=>{const L=Array.from(D.values()),q=L.reduce((ye,Je)=>ye+(Je.durationMs??0),0),Z=L.reduce((ye,Je)=>ye+(Je.tokens??0),0),le=L.some(ye=>ye.tokens!=null);return c.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[c.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)"},children:[O,"%"]}),c.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:V==="all"?"Overall Pass Rate":"Pass Rate"}),c.jsxs("div",{className:"flex items-center justify-center gap-4 mt-2 text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[h&&c.jsx("span",{children:h}),q>0&&c.jsxs("span",{children:[(q/1e3).toFixed(1),"s total"]}),le&&Z>0&&c.jsxs("span",{children:[Z.toLocaleString()," tokens"]})]})]})})()]}),r&&D.size===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const gm={EFFECTIVE:{bg:"var(--green-muted)",text:"var(--green)",border:"var(--green)",glow:"rgba(52,211,153,0.15)"},MARGINAL:{bg:"var(--yellow-muted)",text:"var(--yellow)",border:"var(--yellow)",glow:"rgba(251,191,36,0.15)"},INEFFECTIVE:{bg:"rgba(251,146,60,0.12)",text:"var(--orange)",border:"var(--orange)",glow:"rgba(251,146,60,0.15)"},DEGRADING:{bg:"var(--red-muted)",text:"var(--red)",border:"var(--red)",glow:"rgba(248,113,113,0.15)"}};function ux(){const{plugin:i,skill:o}=oi(),{events:f,running:r,done:m,error:v,start:x}=di(),[_,S]=E.useState(new Set),[h,M]=E.useState(null);E.useEffect(()=>{ct.getConfig().then(O=>M(O.model)).catch(()=>{})},[]);function p(){S(new Set),x(`/api/skills/${i}/${o}/compare`)}function w(O){S(L=>{const q=new Set(L);return q.has(O)?q.delete(O):q.add(O),q})}const V=[],Y=[],X=[];for(const O of f)if(O.event==="outputs_ready"){const L=O.data;V.find(q=>q.eval_id===L.eval_id)||V.push(L)}else if(O.event==="case_error"){const L=O.data;Y.find(q=>q.eval_id===L.eval_id)||Y.push(L)}else if(O.event==="case_start"){const L=O.data;X.find(q=>q.eval_id===L.eval_id)||X.push(L)}const Q=new Set([...V.map(O=>O.eval_id),...Y.map(O=>O.eval_id)]),D=X.filter(O=>!Q.has(O.eval_id)).pop(),W=f.find(O=>O.event==="done"),K=W==null?void 0:W.data;return c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Dt,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:O=>{O.currentTarget.style.color="var(--text-primary)"},onMouseLeave:O=>{O.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),c.jsxs("div",{className:"mb-3",children:[c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs each eval prompt twice: once WITH your skill, once WITHOUT. An LLM judge scores both outputs blindly on content and structure (1-5 each)."}),h&&c.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),c.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:h})]})]}),c.jsx("button",{onClick:p,disabled:r,className:"btn btn-purple mb-7",children:r?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):c.jsxs(c.Fragment,{children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M16 3h5v5"}),c.jsx("path",{d:"M8 21H3v-5"}),c.jsx("path",{d:"M21 3l-7 7"}),c.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),v&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),(K==null?void 0:K.error)&&c.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[c.jsx("span",{className:"font-semibold",children:"Error:"})," ",K.error]}),Y.length>0&&c.jsx("div",{className:"space-y-2 mb-5",children:Y.map(O=>c.jsxs("div",{className:"px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[c.jsxs("span",{className:"font-semibold",children:["Eval #",O.eval_id," failed:"]})," ",O.error]},O.eval_id))}),V.length>0&&c.jsxs("div",{className:"space-y-4 stagger-children",children:[V.map(O=>{const L=_.has(O.eval_id),q=O.winner==="skill"?"Skill Wins":O.winner==="baseline"?"Baseline Wins":"Tie",Z=O.winner==="skill"?"var(--green)":O.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return c.jsxs("div",{className:"glass-card overflow-hidden",children:[c.jsxs("div",{className:"p-5 pb-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",O.eval_id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:O.eval_name||"Eval Case"})]}),c.jsx("span",{className:"pill",style:{background:O.winner==="skill"?"var(--green-muted)":O.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:Z,fontWeight:700},children:q})]}),c.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),c.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:O.prompt})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(bm,{label:"WITH Skill",contentScore:O.skillContentScore,structureScore:O.skillStructureScore,isWinner:O.winner==="skill"}),c.jsx(bm,{label:"WITHOUT Skill",contentScore:O.baselineContentScore,structureScore:O.baselineStructureScore,isWinner:O.winner==="baseline"})]})]}),c.jsxs("button",{onClick:()=>w(O.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:le=>{le.currentTarget.style.background="var(--surface-3)"},onMouseLeave:le=>{le.currentTarget.style.background="var(--surface-2)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:L?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),L?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),L&&c.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx(jm,{label:"WITH Skill",output:O.skillOutput,accentColor:O.winner==="skill"?"var(--green)":void 0}),c.jsx(jm,{label:"WITHOUT Skill",output:O.baselineOutput,accentColor:O.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},O.eval_id)}),m&&(K==null?void 0:K.verdict)&&(()=>{const O=gm[K.verdict]||gm.INEFFECTIVE;return c.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:O.border,borderWidth:2,boxShadow:`0 0 40px ${O.glow}`},children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),c.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:O.text},children:K.verdict}),K.comparison&&c.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[c.jsx(Ys,{label:"Skill Avg",value:K.comparison.skillRubricAvg.toFixed(1)}),c.jsx(Ys,{label:"Baseline Avg",value:K.comparison.baselineRubricAvg.toFixed(1)}),c.jsx(Ys,{label:"Delta",value:`${K.comparison.delta>0?"+":""}${K.comparison.delta.toFixed(1)}`,color:K.comparison.delta>0?"var(--green)":K.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),K.overall_pass_rate!==void 0&&c.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(K.overall_pass_rate*100),"%"]})]})})()]}),r&&V.length===0&&Y.length===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),c.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:D?`Processing: ${D.eval_name||`Eval #${D.eval_id}`}`:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:o,structureScore:f,isWinner:r}){const m=((o+f)/2).toFixed(1),v=parseFloat(m),x=v>=4?"var(--green)":v>=3?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:r?"1px solid var(--green)":"1px solid transparent",boxShadow:r?"0 0 20px var(--green-muted)":"none"},children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),c.jsx("div",{className:"text-[16px] font-bold",style:{color:x},children:m})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Sm,{label:"Content",score:o}),c.jsx(Sm,{label:"Structure",score:f})]})]})}function Sm({label:i,score:o}){const f=o/5*100,r=o>=4?"var(--green)":o>=3?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),c.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:c.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:r}})}),c.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:o})]})}function jm({label:i,output:o,accentColor:f,hasBorderLeft:r}){return c.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[f&&c.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:f}}),c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:f||"var(--text-tertiary)"},children:i})]}),c.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:o||"(empty output)"})]})}function Ys({label:i,value:o,color:f}){return c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-[18px] font-bold",style:{color:f||"var(--text-primary)"},children:o}),c.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function ix(){const{plugin:i,skill:o}=oi(),[f,r]=E.useState([]),[m,v]=E.useState(!0),[x,_]=E.useState(null),[S,h]=E.useState(null);E.useEffect(()=>{!i||!o||ct.getHistory(i,o).then(r).catch(()=>{}).finally(()=>v(!1))},[i,o]);async function M(p){if(!(!i||!o)){h(p);try{const w=await ct.getHistoryEntry(i,o,p);_(w)}catch{_(null)}}}return m?c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),c.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"skeleton h-20 rounded-xl"}),c.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),c.jsx("div",{className:"col-span-2",children:c.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Dt,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:p=>{p.currentTarget.style.color="var(--text-primary)"},onMouseLeave:p=>{p.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[c.jsxs("div",{className:"col-span-1",children:[c.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",f.length,")"]}),f.length===0&&c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:c.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),c.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:f.map(p=>{const w=S===p.timestamp,V=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return c.jsxs("button",{onClick:()=>M(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:w?"var(--accent-muted)":"var(--surface-1)",border:w?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:Y=>{w||(Y.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:Y=>{w||(Y.currentTarget.style.borderColor="var(--border-subtle)")},children:[c.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:new Date(p.timestamp).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),c.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:p.model}),c.jsxs("span",{className:"text-[11px] font-semibold",style:{color:V},children:[Math.round(p.passRate*100),"%"]}),p.type==="comparison"&&c.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},p.timestamp)})})]}),c.jsx("div",{className:"col-span-2",children:x?c.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[c.jsx("div",{className:"glass-card p-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString()}),c.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:x.model})]}),x.verdict&&c.jsx("span",{className:"text-[14px] font-bold",style:{color:x.verdict==="EFFECTIVE"?"var(--green)":x.verdict==="MARGINAL"?"var(--yellow)":x.verdict==="DEGRADING"?"var(--red)":"var(--orange)"},children:x.verdict})]})}),x.cases.map(p=>c.jsxs("div",{className:"glass-card p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",p.eval_id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:p.eval_name})]}),c.jsxs("span",{className:"pill",style:{background:p.status==="pass"?"var(--green-muted)":p.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:p.status==="pass"?"var(--green)":p.status==="error"?"var(--yellow)":"var(--red)"},children:[p.status," (",Math.round(p.pass_rate*100),"%)"]})]}),p.error_message&&c.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:p.error_message}),c.jsx("div",{className:"space-y-1.5",children:p.assertions.map(w=>c.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[c.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:w.pass?"var(--green)":"var(--red)"},children:c.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:w.pass?c.jsx("polyline",{points:"20 6 9 17 4 12"}):c.jsxs(c.Fragment,{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:w.text}),c.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:w.reasoning})]})]},w.id))})]},p.eval_id))]}):c.jsxs("div",{className:"text-center py-20",children:[c.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"15 18 9 12 15 6"})})}),c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Select a run to view details"})]})})]})]})}const Nm={TP:{bg:"var(--green-muted)",text:"var(--green)",icon:"check"},TN:{bg:"rgba(52,211,153,0.06)",text:"rgba(52,211,153,0.6)",icon:"check"},FP:{bg:"var(--red-muted)",text:"var(--red)",icon:"x"},FN:{bg:"rgba(248,113,113,0.06)",text:"rgba(248,113,113,0.6)",icon:"x"}},cx=[{label:"Should activate",prompts:["How do I use this feature?","Show me best practices for this","What's the recommended approach?"]},{label:"Should NOT activate",prompts:["!What's the weather today?","!Write me a poem","!How do I cook pasta?"]}];function sx(){const[i,o]=E.useState([]),[f,r]=E.useState(null),[m,v]=E.useState(null),[x,_]=E.useState(""),[S,h]=E.useState(!1),{events:M,running:p,error:w,start:V}=di();E.useEffect(()=>{ct.getSkills().then(o).catch(()=>{})},[]),E.useEffect(()=>{if(!f){v(null);return}fetch(`/api/skills/${f.plugin}/${f.skill}/description`).then(O=>O.json()).then(O=>v(O.description)).catch(()=>v(null))},[f]);function Y(){if(!f)return;const L=x.trim().split(`
62
- `).filter(Boolean).map(q=>{const Z=q.startsWith("!");return{prompt:Z?q.slice(1).trim():q.trim(),expected:Z?"should_not_activate":"should_activate"}});V(`/api/skills/${f.plugin}/${f.skill}/activation-test`,{prompts:L})}function X(O){const L=x.trim(),q=L?`${L}
63
- ${O.join(`
64
- `)}`:O.join(`
65
- `);_(q)}const Q=[];let D=null;for(const O of M)O.event==="prompt_result"&&Q.push(O.data),O.event==="done"&&(D=O.data);const W=Q.filter(O=>O.classification==="TP"||O.classification==="TN"),K=Q.filter(O=>O.classification==="FP"||O.classification==="FN");return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),c.jsxs("p",{className:"text-[13px] mt-1 max-w-2xl",style:{color:"var(--text-tertiary)"},children:["Tests whether a skill's description activates correctly for relevant prompts and stays silent for irrelevant ones. This validates the ",c.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),c.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[c.jsxs("div",{className:"col-span-3 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),c.jsxs("select",{className:"input-field",value:f?`${f.plugin}/${f.skill}`:"",onChange:O=>{const[L,q]=O.target.value.split("/");r(L&&q?{plugin:L,skill:q}:null)},children:[c.jsx("option",{value:"",children:"Select a skill..."}),i.map(O=>c.jsxs("option",{value:`${O.plugin}/${O.skill}`,children:[O.plugin," / ",O.skill]},`${O.plugin}/${O.skill}`))]})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),c.jsx("div",{className:"flex gap-1.5",children:cx.map(O=>c.jsxs("button",{onClick:()=>X(O.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:L=>{L.currentTarget.style.color="var(--text-primary)",L.currentTarget.style.background="var(--surface-3)"},onMouseLeave:L=>{L.currentTarget.style.color="var(--text-tertiary)",L.currentTarget.style.background="var(--surface-2)"},children:["+ ",O.label]},O.label))})]}),c.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:x,onChange:O=>_(O.target.value),placeholder:`How do I write a unit test?
66
- What edge cases should I test?
67
- !What's the weather like today?
68
- !Write me a poem about flowers`}),c.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[c.jsx("span",{children:"One prompt per line"}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),c.jsxs("span",{children:[x.trim().split(`
69
- `).filter(Boolean).length," prompt",x.trim().split(`
70
- `).filter(Boolean).length!==1?"s":""]})]})]})]}),c.jsx("div",{className:"col-span-2",children:c.jsxs("div",{className:"glass-card h-full",children:[c.jsxs("button",{onClick:()=>h(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[c.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:S?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&c.jsx("div",{className:"p-3 animate-fade-in",children:m?c.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):f?c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&c.jsx("div",{className:"px-3 pb-3 pt-1",children:c.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),c.jsx("button",{onClick:Y,disabled:p||!f||!x.trim(),className:"btn btn-primary mb-7",children:p?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):c.jsxs(c.Fragment,{children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("circle",{cx:"12",cy:"12",r:"6"}),c.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),w&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:w}),Q.length>0&&c.jsxs("div",{className:"space-y-5 mb-6",children:[K.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),c.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),c.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",K.length,")"]}),c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:K.map((O,L)=>c.jsx(Em,{result:O},`incorrect-${L}`))})]}),W.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"16 10 11 15 8 12"})]}),c.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",W.length,")"]})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:W.map((O,L)=>c.jsx(Em,{result:O},`correct-${L}`))})]})]}),D&&c.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),c.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[c.jsx(Gs,{label:"Precision",value:D.precision,description:"Of all activations, how many were correct?",detail:`${D.tp} true / ${D.tp+D.fp} total activations`}),c.jsx(Gs,{label:"Recall",value:D.recall,description:"Of expected activations, how many fired?",detail:`${D.tp} activated / ${D.tp+D.fn} expected`}),c.jsx(Gs,{label:"Reliability",value:D.reliability,description:"Overall correct classification rate",detail:`${D.tp+D.tn} correct / ${D.total} total`})]}),c.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[c.jsx(ui,{label:"True Positive",abbr:"TP",count:D.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),c.jsx(ui,{label:"False Positive",abbr:"FP",count:D.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),c.jsx(ui,{label:"False Negative",abbr:"FN",count:D.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),c.jsx(ui,{label:"True Negative",abbr:"TN",count:D.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),p&&Q.length===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Em({result:i}){const o=Nm[i.classification]||Nm.FN,f=i.classification==="TP"||i.classification==="TN";return c.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:o.bg,border:"1px solid transparent"},children:[c.jsx("div",{className:"flex-shrink-0 mt-0.5",children:c.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${o.text} 20%, transparent)`},children:f?c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:o.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})}):c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:o.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"flex items-center gap-2 mb-1",children:c.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),c.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[c.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:o.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),c.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),c.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),c.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&c.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function Gs({label:i,value:o,description:f,detail:r}){const m=Math.round(o*100),v=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"text-center",children:[c.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:v},children:[m,"%"]}),c.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),c.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:f}),c.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:o,count:f,bg:r,color:m,description:v}){return c.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[c.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:f}),c.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:o}),c.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:v})]})}function rx(){const[i,o]=E.useState(null),[f,r]=E.useState(!1),[m,v]=E.useState(!1),x=E.useRef(null);E.useEffect(()=>{ct.getConfig().then(o).catch(()=>{})},[]),E.useEffect(()=>{function h(M){x.current&&!x.current.contains(M.target)&&r(!1)}return f&&document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[f]);async function _(h,M){v(!0);try{const p=await ct.setConfig(h.id,M.id);o(p),r(!1)}catch{const p=await ct.getConfig();o(p)}finally{v(!1)}}if(!i)return null;const S=ox(i);return c.jsxs("div",{ref:x,className:"relative",children:[c.jsxs("button",{onClick:()=>r(!f),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] transition-all duration-150",style:{background:"var(--surface-3)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)"},onMouseEnter:h=>{h.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:h=>{h.currentTarget.style.borderColor="var(--border-subtle)"},children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"3"}),c.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),c.jsx("span",{className:"flex-1 text-left font-medium truncate",children:S}),c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:f?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),f&&c.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-64 rounded-xl shadow-xl z-50 overflow-hidden animate-fade-in",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),c.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:i.providers.map(h=>c.jsxs("div",{children:[c.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(h.available,"var(--text-tertiary)"),opacity:h.available?1:.5},children:h.label}),!h.available&&c.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),h.models.map(M=>{const p=Xm(i,h.id,M.id),w=!h.available||m;return c.jsxs("button",{onClick:()=>!w&&_(h,M),disabled:w,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:p?"var(--accent-muted)":"transparent",color:w?"var(--text-tertiary)":"var(--text-primary)",opacity:w?.4:1,cursor:w?"not-allowed":"pointer"},onMouseEnter:V=>{!w&&!p&&(V.currentTarget.style.background="var(--surface-3)")},onMouseLeave:V=>{p||(V.currentTarget.style.background="transparent")},children:[c.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${p?"var(--accent)":"var(--border-subtle)"}`},children:p&&c.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),c.jsx("span",{className:"text-[12px]",children:M.label})]},`${h.id}-${M.id}`)})]},h.id))})]})]})}function Xm(i,o,f){return i.provider!==o?!1:o==="claude-cli"?i.model===`claude-${f}`:i.model===f}function ox(i){for(const o of i.providers)for(const f of o.models)if(Xm(i,o.id,f.id))return f.label;return i.model}function fx({active:i}){return c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),c.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),c.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function dx({active:i}){return c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("circle",{cx:"12",cy:"12",r:"6"}),c.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const mx=[{path:"/",label:"Skills",Icon:fx},{path:"/activation",label:"Activation Test",Icon:dx}];function hx(){const i=cl(),[o,f]=E.useState(null);return E.useEffect(()=>{ct.getConfig().then(r=>f(r.projectName)).catch(()=>{})},[]),c.jsxs("div",{className:"flex h-screen",children:[c.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),c.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:o||"vskill"})]})]})}),c.jsxs("div",{className:"flex-1 px-3 py-3",children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),mx.map(r=>{const m=i.pathname===r.path;return c.jsxs(Dt,{to:r.path,className:"flex items-center gap-2.5 px-3 py-[9px] rounded-lg text-[13px] font-medium mb-0.5 transition-all duration-150",style:{background:m?"var(--accent)":"transparent",color:m?"#fff":"var(--text-secondary)"},onMouseEnter:v=>{m||(v.currentTarget.style.background="var(--surface-3)",v.currentTarget.style.color="var(--text-primary)")},onMouseLeave:v=>{m||(v.currentTarget.style.background="transparent",v.currentTarget.style.color="var(--text-secondary)")},children:[c.jsx(r.Icon,{active:m}),r.label]},r.path)})]}),c.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),c.jsx(rx,{})]})]}),c.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:c.jsx("div",{className:"animate-fade-in",children:c.jsxs(bp,{children:[c.jsx(Il,{path:"/",element:c.jsx(tx,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill",element:c.jsx(lx,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/benchmark",element:c.jsx(nx,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/compare",element:c.jsx(ux,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/history",element:c.jsx(ix,{})}),c.jsx(Il,{path:"/activation",element:c.jsx(sx,{})})]})},i.pathname)})]})}jy.createRoot(document.getElementById("root")).render(c.jsx(E.StrictMode,{children:c.jsx(Qp,{children:c.jsx(hx,{})})}));