vskill 0.2.76 → 0.2.77

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.
Files changed (40) hide show
  1. package/README.md +27 -0
  2. package/dist/commands/eval/__tests__/coverage.test.js +1 -1
  3. package/dist/commands/eval/__tests__/coverage.test.js.map +1 -1
  4. package/dist/commands/eval/serve.js +10 -4
  5. package/dist/commands/eval/serve.js.map +1 -1
  6. package/dist/eval/__tests__/benchmark.test.js +2 -2
  7. package/dist/eval/__tests__/benchmark.test.js.map +1 -1
  8. package/dist/eval/__tests__/llm.test.js +7 -7
  9. package/dist/eval/__tests__/llm.test.js.map +1 -1
  10. package/dist/eval/__tests__/mcp-detector.test.d.ts +1 -0
  11. package/dist/eval/__tests__/mcp-detector.test.js +125 -0
  12. package/dist/eval/__tests__/mcp-detector.test.js.map +1 -0
  13. package/dist/eval/__tests__/skill-scanner.test.js +2 -1
  14. package/dist/eval/__tests__/skill-scanner.test.js.map +1 -1
  15. package/dist/eval/llm.js +2 -2
  16. package/dist/eval/llm.js.map +1 -1
  17. package/dist/eval/mcp-detector.d.ts +13 -0
  18. package/dist/eval/mcp-detector.js +123 -0
  19. package/dist/eval/mcp-detector.js.map +1 -0
  20. package/dist/eval/skill-scanner.js +14 -2
  21. package/dist/eval/skill-scanner.js.map +1 -1
  22. package/dist/eval-server/api-routes.js +18 -18
  23. package/dist/eval-server/api-routes.js.map +1 -1
  24. package/dist/eval-server/eval-server.js +4 -0
  25. package/dist/eval-server/eval-server.js.map +1 -1
  26. package/dist/eval-server/improve-routes.d.ts +2 -0
  27. package/dist/eval-server/improve-routes.js +77 -0
  28. package/dist/eval-server/improve-routes.js.map +1 -0
  29. package/dist/eval-server/model-compare-routes.d.ts +2 -0
  30. package/dist/eval-server/model-compare-routes.js +119 -0
  31. package/dist/eval-server/model-compare-routes.js.map +1 -0
  32. package/dist/eval-server/skill-resolver.d.ts +1 -0
  33. package/dist/eval-server/skill-resolver.js +24 -0
  34. package/dist/eval-server/skill-resolver.js.map +1 -0
  35. package/dist/eval-ui/assets/index-CFJYUUyc.js +73 -0
  36. package/dist/eval-ui/assets/index-DSspu3L6.css +1 -0
  37. package/dist/eval-ui/index.html +2 -2
  38. package/package.json +1 -1
  39. package/dist/eval-ui/assets/index-BYv6znnG.css +0 -1
  40. package/dist/eval-ui/assets/index-Bp1HQKak.js +0 -70
@@ -0,0 +1,73 @@
1
+ (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function f(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(d){if(d.ep)return;d.ep=!0;const h=f(d);fetch(d.href,h)}})();var Xu={exports:{}},Xn={};/**
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 pm;function Hv(){if(pm)return Xn;pm=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(o,d,h){var v=null;if(h!==void 0&&(v=""+h),d.key!==void 0&&(v=""+d.key),"key"in d){h={};for(var j in d)j!=="key"&&(h[j]=d[j])}else h=d;return d=h.ref,{$$typeof:r,type:o,key:v,ref:d!==void 0?d:null,props:h}}return Xn.Fragment=c,Xn.jsx=f,Xn.jsxs=f,Xn}var ym;function Uv(){return ym||(ym=1,Xu.exports=Hv()),Xu.exports}var s=Uv(),Qu={exports:{}},fe={};/**
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 gm;function qv(){if(gm)return fe;gm=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),B=Symbol.iterator;function Z(N){return N===null||typeof N!="object"?null:(N=B&&N[B]||N["@@iterator"],typeof N=="function"?N:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,V={};function z(N,H,R){this.props=N,this.context=H,this.refs=V,this.updater=R||X}z.prototype.isReactComponent={},z.prototype.setState=function(N,H){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,H,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function K(){}K.prototype=z.prototype;function W(N,H,R){this.props=N,this.context=H,this.refs=V,this.updater=R||X}var G=W.prototype=new K;G.constructor=W,Q(G,z.prototype),G.isPureReactComponent=!0;var $=Array.isArray;function U(){}var P={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function je(N,H,R){var w=R.ref;return{$$typeof:r,type:N,key:H,ref:w!==void 0?w:null,props:R}}function Me(N,H){return je(N.type,H,N.props)}function te(N){return typeof N=="object"&&N!==null&&N.$$typeof===r}function ye(N){var H={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(R){return H[R]})}var ee=/\/+/g;function he(N,H){return typeof N=="object"&&N!==null&&N.key!=null?ye(""+N.key):H.toString(36)}function xe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(U,U):(N.status="pending",N.then(function(H){N.status==="pending"&&(N.status="fulfilled",N.value=H)},function(H){N.status==="pending"&&(N.status="rejected",N.reason=H)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function T(N,H,R,w,F){var ie=typeof N;(ie==="undefined"||ie==="boolean")&&(N=null);var D=!1;if(N===null)D=!0;else switch(ie){case"bigint":case"string":case"number":D=!0;break;case"object":switch(N.$$typeof){case r:case c:D=!0;break;case E:return D=N._init,T(D(N._payload),H,R,w,F)}}if(D)return F=F(N),D=w===""?"."+he(N,0):w,$(F)?(R="",D!=null&&(R=D.replace(ee,"$&/")+"/"),T(F,H,R,"",function(oe){return oe})):F!=null&&(te(F)&&(F=Me(F,R+(F.key==null||N&&N.key===F.key?"":(""+F.key).replace(ee,"$&/")+"/")+D)),H.push(F)),1;D=0;var O=w===""?".":w+":";if($(N))for(var I=0;I<N.length;I++)w=N[I],ie=O+he(w,I),D+=T(w,H,R,ie,F);else if(I=Z(N),typeof I=="function")for(N=I.call(N),I=0;!(w=N.next()).done;)w=w.value,ie=O+he(w,I++),D+=T(w,H,R,ie,F);else if(ie==="object"){if(typeof N.then=="function")return T(xe(N),H,R,w,F);throw H=String(N),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return D}function J(N,H,R){if(N==null)return N;var w=[],F=0;return T(N,w,"","",function(ie){return H.call(R,ie,F++)}),w}function ne(N){if(N._status===-1){var H=N._result;H=H(),H.then(function(R){(N._status===0||N._status===-1)&&(N._status=1,N._result=R)},function(R){(N._status===0||N._status===-1)&&(N._status=2,N._result=R)}),N._status===-1&&(N._status=0,N._result=H)}if(N._status===1)return N._result.default;throw N._result}var ue=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Ne={map:J,forEach:function(N,H,R){J(N,function(){H.apply(this,arguments)},R)},count:function(N){var H=0;return J(N,function(){H++}),H},toArray:function(N){return J(N,function(H){return H})||[]},only:function(N){if(!te(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return fe.Activity=g,fe.Children=Ne,fe.Component=z,fe.Fragment=f,fe.Profiler=d,fe.PureComponent=W,fe.StrictMode=o,fe.Suspense=y,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,fe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return P.H.useMemoCache(N)}},fe.cache=function(N){return function(){return N.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(N,H,R){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var w=Q({},N.props),F=N.key;if(H!=null)for(ie in H.key!==void 0&&(F=""+H.key),H)!ce.call(H,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&H.ref===void 0||(w[ie]=H[ie]);var ie=arguments.length-2;if(ie===1)w.children=R;else if(1<ie){for(var D=Array(ie),O=0;O<ie;O++)D[O]=arguments[O+2];w.children=D}return je(N.type,F,w)},fe.createContext=function(N){return N={$$typeof:v,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},fe.createElement=function(N,H,R){var w,F={},ie=null;if(H!=null)for(w in H.key!==void 0&&(ie=""+H.key),H)ce.call(H,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(F[w]=H[w]);var D=arguments.length-2;if(D===1)F.children=R;else if(1<D){for(var O=Array(D),I=0;I<D;I++)O[I]=arguments[I+2];F.children=O}if(N&&N.defaultProps)for(w in D=N.defaultProps,D)F[w]===void 0&&(F[w]=D[w]);return je(N,ie,F)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(N){return{$$typeof:j,render:N}},fe.isValidElement=te,fe.lazy=function(N){return{$$typeof:E,_payload:{_status:-1,_result:N},_init:ne}},fe.memo=function(N,H){return{$$typeof:x,type:N,compare:H===void 0?null:H}},fe.startTransition=function(N){var H=P.T,R={};P.T=R;try{var w=N(),F=P.S;F!==null&&F(R,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(U,ue)}catch(ie){ue(ie)}finally{H!==null&&R.types!==null&&(H.types=R.types),P.T=H}},fe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},fe.use=function(N){return P.H.use(N)},fe.useActionState=function(N,H,R){return P.H.useActionState(N,H,R)},fe.useCallback=function(N,H){return P.H.useCallback(N,H)},fe.useContext=function(N){return P.H.useContext(N)},fe.useDebugValue=function(){},fe.useDeferredValue=function(N,H){return P.H.useDeferredValue(N,H)},fe.useEffect=function(N,H){return P.H.useEffect(N,H)},fe.useEffectEvent=function(N){return P.H.useEffectEvent(N)},fe.useId=function(){return P.H.useId()},fe.useImperativeHandle=function(N,H,R){return P.H.useImperativeHandle(N,H,R)},fe.useInsertionEffect=function(N,H){return P.H.useInsertionEffect(N,H)},fe.useLayoutEffect=function(N,H){return P.H.useLayoutEffect(N,H)},fe.useMemo=function(N,H){return P.H.useMemo(N,H)},fe.useOptimistic=function(N,H){return P.H.useOptimistic(N,H)},fe.useReducer=function(N,H,R){return P.H.useReducer(N,H,R)},fe.useRef=function(N){return P.H.useRef(N)},fe.useState=function(N){return P.H.useState(N)},fe.useSyncExternalStore=function(N,H,R){return P.H.useSyncExternalStore(N,H,R)},fe.useTransition=function(){return P.H.useTransition()},fe.version="19.2.4",fe}var bm;function uc(){return bm||(bm=1,Qu.exports=qv()),Qu.exports}var p=uc(),Zu={exports:{}},Qn={},Vu={exports:{}},Ku={};/**
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 jm;function Yv(){return jm||(jm=1,(function(r){function c(T,J){var ne=T.length;T.push(J);e:for(;0<ne;){var ue=ne-1>>>1,Ne=T[ue];if(0<d(Ne,J))T[ue]=J,T[ne]=Ne,ne=ue;else break e}}function f(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var J=T[0],ne=T.pop();if(ne!==J){T[0]=ne;e:for(var ue=0,Ne=T.length,N=Ne>>>1;ue<N;){var H=2*(ue+1)-1,R=T[H],w=H+1,F=T[w];if(0>d(R,ne))w<Ne&&0>d(F,R)?(T[ue]=F,T[w]=ne,ue=w):(T[ue]=R,T[H]=ne,ue=H);else if(w<Ne&&0>d(F,ne))T[ue]=F,T[w]=ne,ue=w;else break e}}return J}function d(T,J){var ne=T.sortIndex-J.sortIndex;return ne!==0?ne:T.id-J.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var v=Date,j=v.now();r.unstable_now=function(){return v.now()-j}}var y=[],x=[],E=1,g=null,B=3,Z=!1,X=!1,Q=!1,V=!1,z=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function G(T){for(var J=f(x);J!==null;){if(J.callback===null)o(x);else if(J.startTime<=T)o(x),J.sortIndex=J.expirationTime,c(y,J);else break;J=f(x)}}function $(T){if(Q=!1,G(T),!X)if(f(y)!==null)X=!0,U||(U=!0,ye());else{var J=f(x);J!==null&&xe($,J.startTime-T)}}var U=!1,P=-1,ce=5,je=-1;function Me(){return V?!0:!(r.unstable_now()-je<ce)}function te(){if(V=!1,U){var T=r.unstable_now();je=T;var J=!0;try{e:{X=!1,Q&&(Q=!1,K(P),P=-1),Z=!0;var ne=B;try{t:{for(G(T),g=f(y);g!==null&&!(g.expirationTime>T&&Me());){var ue=g.callback;if(typeof ue=="function"){g.callback=null,B=g.priorityLevel;var Ne=ue(g.expirationTime<=T);if(T=r.unstable_now(),typeof Ne=="function"){g.callback=Ne,G(T),J=!0;break t}g===f(y)&&o(y),G(T)}else o(y);g=f(y)}if(g!==null)J=!0;else{var N=f(x);N!==null&&xe($,N.startTime-T),J=!1}}break e}finally{g=null,B=ne,Z=!1}J=void 0}}finally{J?ye():U=!1}}}var ye;if(typeof W=="function")ye=function(){W(te)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,he=ee.port2;ee.port1.onmessage=te,ye=function(){he.postMessage(null)}}else ye=function(){z(te,0)};function xe(T,J){P=z(function(){T(r.unstable_now())},J)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(T){T.callback=null},r.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<T?Math.floor(1e3/T):5},r.unstable_getCurrentPriorityLevel=function(){return B},r.unstable_next=function(T){switch(B){case 1:case 2:case 3:var J=3;break;default:J=B}var ne=B;B=J;try{return T()}finally{B=ne}},r.unstable_requestPaint=function(){V=!0},r.unstable_runWithPriority=function(T,J){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var ne=B;B=T;try{return J()}finally{B=ne}},r.unstable_scheduleCallback=function(T,J,ne){var ue=r.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ue+ne:ue):ne=ue,T){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ne+Ne,T={id:E++,callback:J,priorityLevel:T,startTime:ne,expirationTime:Ne,sortIndex:-1},ne>ue?(T.sortIndex=ne,c(x,T),f(y)===null&&T===f(x)&&(Q?(K(P),P=-1):Q=!0,xe($,ne-ue))):(T.sortIndex=Ne,c(y,T),X||Z||(X=!0,U||(U=!0,ye()))),T},r.unstable_shouldYield=Me,r.unstable_wrapCallback=function(T){var J=B;return function(){var ne=B;B=J;try{return T.apply(this,arguments)}finally{B=ne}}}})(Ku)),Ku}var Sm;function Gv(){return Sm||(Sm=1,Vu.exports=Yv()),Vu.exports}var Ju={exports:{}},lt={};/**
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 Nm;function Xv(){if(Nm)return lt;Nm=1;var r=uc();function c(y){var x="https://react.dev/errors/"+y;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)x+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+y+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(y,x,E){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:y,containerInfo:x,implementation:E}}var v=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(y,x){if(y==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,lt.createPortal=function(y,x){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(c(299));return h(y,x,null,E)},lt.flushSync=function(y){var x=v.T,E=o.p;try{if(v.T=null,o.p=2,y)return y()}finally{v.T=x,o.p=E,o.d.f()}},lt.preconnect=function(y,x){typeof y=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(y,x))},lt.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},lt.preinit=function(y,x){if(typeof y=="string"&&x&&typeof x.as=="string"){var E=x.as,g=j(E,x.crossOrigin),B=typeof x.integrity=="string"?x.integrity:void 0,Z=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;E==="style"?o.d.S(y,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:g,integrity:B,fetchPriority:Z}):E==="script"&&o.d.X(y,{crossOrigin:g,integrity:B,fetchPriority:Z,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},lt.preinitModule=function(y,x){if(typeof y=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var E=j(x.as,x.crossOrigin);o.d.M(y,{crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(y)},lt.preload=function(y,x){if(typeof y=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var E=x.as,g=j(E,x.crossOrigin);o.d.L(y,E,{crossOrigin:g,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},lt.preloadModule=function(y,x){if(typeof y=="string")if(x){var E=j(x.as,x.crossOrigin);o.d.m(y,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(y)},lt.requestFormReset=function(y){o.d.r(y)},lt.unstable_batchedUpdates=function(y,x){return y(x)},lt.useFormState=function(y,x,E){return v.H.useFormState(y,x,E)},lt.useFormStatus=function(){return v.H.useHostTransitionStatus()},lt.version="19.2.4",lt}var Em;function Qv(){if(Em)return Ju.exports;Em=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),Ju.exports=Xv(),Ju.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 Tm;function Zv(){if(Tm)return Qn;Tm=1;var r=Gv(),c=uc(),f=Qv();function o(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 v(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 j(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 y(e){if(h(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return y(n),e;if(i===a)return y(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,m=n.child;m;){if(m===l){u=!0,l=n,a=i;break}if(m===a){u=!0,a=n,l=i;break}m=m.sibling}if(!u){for(m=i.child;m;){if(m===l){u=!0,l=i,a=n;break}if(m===a){u=!0,a=i,l=n;break}m=m.sibling}if(!u)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,B=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),W=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),je=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ye(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case z:return"Profiler";case V:return"StrictMode";case $:return"Suspense";case U:return"SuspenseList";case je:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case W:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var xe=Array.isArray,T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ue=[],Ne=-1;function N(e){return{current:e}}function H(e){0>Ne||(e.current=ue[Ne],ue[Ne]=null,Ne--)}function R(e,t){Ne++,ue[Ne]=e.current,e.current=t}var w=N(null),F=N(null),ie=N(null),D=N(null);function O(e,t){switch(R(ie,t),R(F,e),R(w,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Yd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(w),R(w,e)}function I(){H(w),H(F),H(ie)}function oe(e){e.memoizedState!==null&&R(D,e);var t=w.current,l=Yd(t,e.type);t!==l&&(R(F,e),R(w,l))}function He(e){F.current===e&&(H(w),H(F)),D.current===e&&(H(D),Un._currentValue=ne)}var hl,Kt;function mt(e){if(hl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);hl=t&&t[1]||"",Kt=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+hl+e+Kt}var xl=!1;function Gl(e,t){if(!e||xl)return"";xl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(_){var C=_}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(_){C=_}e.call(Y.prototype)}}else{try{throw Error()}catch(_){C=_}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(_){if(_&&C&&typeof _.stack=="string")return[_.stack,C.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 i=a.DetermineComponentFrameRoot(),u=i[0],m=i[1];if(u&&m){var b=u.split(`
44
+ `),k=m.split(`
45
+ `);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<k.length&&!k[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===k.length)for(a=b.length-1,n=k.length-1;1<=a&&0<=n&&b[a]!==k[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==k[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==k[n]){var L=`
46
+ `+b[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=n);break}}}finally{xl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?mt(l):""}function $a(e,t){switch(e.tag){case 26:case 27:case 5:return mt(e.type);case 16:return mt("Lazy");case 13:return e.child!==t&&t!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Gl(e.type,!1);case 11:return Gl(e.type.render,!1);case 1:return Gl(e.type,!0);case 31:return mt("Activity");default:return""}}function xc(e){try{var t="",l=null;do t+=$a(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var ki=Object.prototype.hasOwnProperty,Ci=r.unstable_scheduleCallback,_i=r.unstable_cancelCallback,vh=r.unstable_shouldYield,ph=r.unstable_requestPaint,ht=r.unstable_now,yh=r.unstable_getCurrentPriorityLevel,vc=r.unstable_ImmediatePriority,pc=r.unstable_UserBlockingPriority,Pn=r.unstable_NormalPriority,gh=r.unstable_LowPriority,yc=r.unstable_IdlePriority,bh=r.log,jh=r.unstable_setDisableYieldValue,Wa=null,xt=null;function vl(e){if(typeof bh=="function"&&jh(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Wa,e)}catch{}}var vt=Math.clz32?Math.clz32:Eh,Sh=Math.log,Nh=Math.LN2;function Eh(e){return e>>>=0,e===0?32:31-(Sh(e)/Nh|0)|0}var es=256,ts=262144,ls=4194304;function Xl(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 as(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?n=Xl(a):(u&=m,u!==0?n=Xl(u):l||(l=m&~e,l!==0&&(n=Xl(l))))):(m=a&~i,m!==0?n=Xl(m):u!==0?n=Xl(u):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Th(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 gc(){var e=ls;return ls<<=1,(ls&62914560)===0&&(ls=4194304),e}function Ri(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ia(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ah(e,t,l,a,n,i){var u=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 m=e.entanglements,b=e.expirationTimes,k=e.hiddenUpdates;for(l=u&~l;0<l;){var L=31-vt(l),Y=1<<L;m[L]=0,b[L]=-1;var C=k[L];if(C!==null)for(k[L]=null,L=0;L<C.length;L++){var _=C[L];_!==null&&(_.lane&=-536870913)}l&=~Y}a!==0&&bc(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function bc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-vt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function jc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-vt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Sc(e,t){var l=t&-t;return l=(l&42)!==0?1:zi(l),(l&(e.suspendedLanes|t))!==0?0:l}function zi(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 wi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nc(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:om(e.type))}function Ec(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var pl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+pl,it="__reactProps$"+pl,oa="__reactContainer$"+pl,Oi="__reactEvents$"+pl,Mh="__reactListeners$"+pl,kh="__reactHandles$"+pl,Tc="__reactResources$"+pl,Pa="__reactMarker$"+pl;function Di(e){delete e[Fe],delete e[it],delete e[Oi],delete e[Mh],delete e[kh]}function fa(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[oa]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Jd(e);e!==null;){if(l=e[Fe])return l;e=Jd(e)}return t}e=l,l=e.parentNode}return null}function da(e){if(e=e[Fe]||e[oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function en(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ma(e){var t=e[Tc];return t||(t=e[Tc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[Pa]=!0}var Ac=new Set,Mc={};function Ql(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(Mc[e]=t,e=0;e<t.length;e++)Ac.add(t[e])}var Ch=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]*$"),kc={},Cc={};function _h(e){return ki.call(Cc,e)?!0:ki.call(kc,e)?!1:Ch.test(e)?Cc[e]=!0:(kc[e]=!0,!1)}function ns(e,t,l){if(_h(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 ss(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 Jt(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 Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rh(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,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){if(!e._valueTracker){var t=_c(e)?"checked":"value";e._valueTracker=Rh(e,t,""+e[t])}}function Rc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=_c(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function is(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 zh=/[\n"\\]/g;function Tt(e){return e.replace(zh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Li(e,t,l,a,n,i,u,m){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?Hi(e,u,Et(t)):l!=null?Hi(e,u,Et(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Et(m):e.removeAttribute("name")}function zc(e,t,l,a,n,i,u,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Bi(e);return}l=l!=null?""+Et(l):"",t=t!=null?""+Et(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Bi(e)}function Hi(e,t,l){t==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function xa(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=""+Et(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 wc(e,t,l){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Et(l):""}function Oc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(xe(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Et(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Bi(e)}function va(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var wh=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 Dc(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||wh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Bc(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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&&Dc(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Dc(e,i,t[i])}function Ui(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 Oh=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"]]),Dh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rs(e){return Dh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var qi=null;function Yi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,ya=null;function Lc(e){var t=da(e);if(t&&(e=t.stateNode)){var l=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(Li(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="'+Tt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[it]||null;if(!n)throw Error(o(90));Li(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&&Rc(a)}break e;case"textarea":wc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&xa(e,!!l.multiple,t,!1)}}}var Gi=!1;function Hc(e,t,l){if(Gi)return e(t,l);Gi=!0;try{var a=e(t);return a}finally{if(Gi=!1,(pa!==null||ya!==null)&&(Js(),pa&&(t=pa,e=ya,ya=pa=null,Lc(t),e)))for(t=0;t<e.length;t++)Lc(e[t])}}function tn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[it]||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(o(231,t,typeof l));return l}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xi=!1;if(Wt)try{var ln={};Object.defineProperty(ln,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",ln,ln),window.removeEventListener("test",ln,ln)}catch{Xi=!1}var yl=null,Qi=null,us=null;function Uc(){if(us)return us;var e,t=Qi,l=t.length,a,n="value"in yl?yl.value:yl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[i-a];a++);return us=n.slice(e,1<a?1-a:void 0)}function cs(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 os(){return!0}function qc(){return!1}function rt(e){function t(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?os:qc,this.isPropagationStopped=qc,this}return g(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=os)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=os)},persist:function(){},isPersistent:os}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=rt(Zl),an=g({},Zl,{view:0,detail:0}),Bh=rt(an),Zi,Vi,nn,ds=g({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ji,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!==nn&&(nn&&e.type==="mousemove"?(Zi=e.screenX-nn.screenX,Vi=e.screenY-nn.screenY):Vi=Zi=0,nn=e),Zi)},movementY:function(e){return"movementY"in e?e.movementY:Vi}}),Yc=rt(ds),Lh=g({},ds,{dataTransfer:0}),Hh=rt(Lh),Uh=g({},an,{relatedTarget:0}),Ki=rt(Uh),qh=g({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yh=rt(qh),Gh=g({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xh=rt(Gh),Qh=g({},Zl,{data:0}),Gc=rt(Qh),Zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vh={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"},Kh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kh[e])?!!t[e]:!1}function Ji(){return Jh}var $h=g({},an,{key:function(e){if(e.key){var t=Zh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ji,charCode:function(e){return e.type==="keypress"?cs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wh=rt($h),Fh=g({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xc=rt(Fh),Ih=g({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ji}),Ph=rt(Ih),ex=g({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tx=rt(ex),lx=g({},ds,{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}),ax=rt(lx),nx=g({},Zl,{newState:0,oldState:0}),sx=rt(nx),ix=[9,13,27,32],$i=Wt&&"CompositionEvent"in window,sn=null;Wt&&"documentMode"in document&&(sn=document.documentMode);var rx=Wt&&"TextEvent"in window&&!sn,Qc=Wt&&(!$i||sn&&8<sn&&11>=sn),Zc=" ",Vc=!1;function Kc(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function ux(e,t){switch(e){case"compositionend":return Jc(t);case"keypress":return t.which!==32?null:(Vc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Vc?null:e;default:return null}}function cx(e,t){if(ga)return e==="compositionend"||!$i&&Kc(e,t)?(e=Uc(),us=Qi=yl=null,ga=!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 Qc&&t.locale!=="ko"?null:t.data;default:return null}}var ox={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 $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ox[e.type]:t==="textarea"}function Wc(e,t,l,a){pa?ya?ya.push(a):ya=[a]:pa=a,t=ti(t,"onChange"),0<t.length&&(l=new fs("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var rn=null,un=null;function fx(e){Od(e,0)}function ms(e){var t=en(e);if(Rc(t))return e}function Fc(e,t){if(e==="change")return t}var Ic=!1;if(Wt){var Wi;if(Wt){var Fi="oninput"in document;if(!Fi){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),Fi=typeof Pc.oninput=="function"}Wi=Fi}else Wi=!1;Ic=Wi&&(!document.documentMode||9<document.documentMode)}function eo(){rn&&(rn.detachEvent("onpropertychange",to),un=rn=null)}function to(e){if(e.propertyName==="value"&&ms(un)){var t=[];Wc(t,un,e,Yi(e)),Hc(fx,t)}}function dx(e,t,l){e==="focusin"?(eo(),rn=t,un=l,rn.attachEvent("onpropertychange",to)):e==="focusout"&&eo()}function mx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ms(un)}function hx(e,t){if(e==="click")return ms(t)}function xx(e,t){if(e==="input"||e==="change")return ms(t)}function vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:vx;function cn(e,t){if(pt(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(!ki.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function lo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ao(e,t){var l=lo(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=lo(l)}}function no(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?no(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function so(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=is(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=is(e.document)}return t}function Ii(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 px=Wt&&"documentMode"in document&&11>=document.documentMode,ba=null,Pi=null,on=null,er=!1;function io(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;er||ba==null||ba!==is(a)||(a=ba,"selectionStart"in a&&Ii(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}),on&&cn(on,a)||(on=a,a=ti(Pi,"onSelect"),0<a.length&&(t=new fs("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ba)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ja={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},tr={},ro={};Wt&&(ro=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function Kl(e){if(tr[e])return tr[e];if(!ja[e])return e;var t=ja[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ro)return tr[e]=t[l];return e}var uo=Kl("animationend"),co=Kl("animationiteration"),oo=Kl("animationstart"),yx=Kl("transitionrun"),gx=Kl("transitionstart"),bx=Kl("transitioncancel"),fo=Kl("transitionend"),mo=new Map,lr="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(" ");lr.push("scrollEnd");function Bt(e,t){mo.set(e,t),Ql(t,[e])}var hs=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)},At=[],Sa=0,ar=0;function xs(){for(var e=Sa,t=ar=Sa=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var n=At[t];At[t++]=null;var i=At[t];if(At[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&ho(l,n,i)}}function vs(e,t,l,a){At[Sa++]=e,At[Sa++]=t,At[Sa++]=l,At[Sa++]=a,ar|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function nr(e,t,l,a){return vs(e,t,l,a),ps(e)}function Jl(e,t){return vs(e,null,null,t),ps(e)}function ho(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-vt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function ps(e){if(50<zn)throw zn=0,mu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Na={};function jx(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 yt(e,t,l,a){return new jx(e,t,l,a)}function sr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=yt(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 xo(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 ys(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")sr(e)&&(u=1);else if(typeof e=="string")u=Av(e,l,w.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case je:return e=yt(31,l,t,n),e.elementType=je,e.lanes=i,e;case Q:return $l(l.children,n,i,t);case V:u=8,n|=24;break;case z:return e=yt(12,l,t,n|2),e.elementType=z,e.lanes=i,e;case $:return e=yt(13,l,t,n),e.elementType=$,e.lanes=i,e;case U:return e=yt(19,l,t,n),e.elementType=U,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:u=10;break e;case K:u=9;break e;case G:u=11;break e;case P:u=14;break e;case ce:u=16,a=null;break e}u=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=yt(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function $l(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function ir(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function vo(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function rr(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var po=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var l=po.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xc(t)},po.set(e,t),t)}return{value:e,source:t,stack:xc(t)}}var Ea=[],Ta=0,gs=null,fn=0,kt=[],Ct=0,gl=null,qt=1,Yt="";function It(e,t){Ea[Ta++]=fn,Ea[Ta++]=gs,gs=e,fn=t}function yo(e,t,l){kt[Ct++]=qt,kt[Ct++]=Yt,kt[Ct++]=gl,gl=e;var a=qt;e=Yt;var n=32-vt(a)-1;a&=~(1<<n),l+=1;var i=32-vt(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,qt=1<<32-vt(t)+n|l<<n|a,Yt=i+e}else qt=1<<i|l<<n|a,Yt=e}function ur(e){e.return!==null&&(It(e,1),yo(e,1,0))}function cr(e){for(;e===gs;)gs=Ea[--Ta],Ea[Ta]=null,fn=Ea[--Ta],Ea[Ta]=null;for(;e===gl;)gl=kt[--Ct],kt[Ct]=null,Yt=kt[--Ct],kt[Ct]=null,qt=kt[--Ct],kt[Ct]=null}function go(e,t){kt[Ct++]=qt,kt[Ct++]=Yt,kt[Ct++]=gl,qt=t.id,Yt=t.overflow,gl=e}var Ie=null,De=null,Se=!1,bl=null,_t=!1,or=Error(o(519));function jl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dn(Mt(t,e)),or}function bo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[it]=a,l){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(l=0;l<On.length;l++)pe(On[l],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),zc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Oc(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||Hd(t.textContent,l)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||jl(e,!0)}function jo(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:_t=!1;return;case 27:case 3:_t=!0;return;default:Ie=Ie.return}}function Aa(e){if(e!==Ie)return!1;if(!Se)return jo(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ku(e.type,e.memoizedProps)),l=!l),l&&De&&jl(e),jo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));De=Kd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));De=Kd(e)}else t===27?(t=De,Dl(e.type)?(e=wu,wu=null,De=e):De=t):De=Ie?zt(e.stateNode.nextSibling):null;return!0}function Wl(){De=Ie=null,Se=!1}function fr(){var e=bl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),bl=null),e}function dn(e){bl===null?bl=[e]:bl.push(e)}var dr=N(null),Fl=null,Pt=null;function Sl(e,t,l){R(dr,t._currentValue),t._currentValue=l}function el(e){e._currentValue=dr.current,H(dr)}function mr(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 hr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=n;for(var b=0;b<t.length;b++)if(m.context===t[b]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),mr(i.return,l,e),a||(u=null);break e}i=m.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(o(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),mr(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function Ma(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(o(387));if(u=u.memoizedProps,u!==null){var m=n.type;pt(n.pendingProps.value,u.value)||(e!==null?e.push(m):e=[m])}}else if(n===D.current){if(u=n.alternate,u===null)throw Error(o(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}n=n.return}e!==null&&hr(t,e,l,a),t.flags|=262144}function bs(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){Fl=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return So(Fl,e)}function js(e,t){return Fl===null&&Il(e),So(e,t)}function So(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(o(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var Sx=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()})}},Nx=r.unstable_scheduleCallback,Ex=r.unstable_NormalPriority,Qe={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xr(){return{controller:new Sx,data:new Map,refCount:0}}function mn(e){e.refCount--,e.refCount===0&&Nx(Ex,function(){e.controller.abort()})}var hn=null,vr=0,ka=0,Ca=null;function Tx(e,t){if(hn===null){var l=hn=[];vr=0,ka=gu(),Ca={status:"pending",value:void 0,then:function(a){l.push(a)}}}return vr++,t.then(No,No),t}function No(){if(--vr===0&&hn!==null){Ca!==null&&(Ca.status="fulfilled");var e=hn;hn=null,ka=0,Ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ax(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 Eo=T.S;T.S=function(e,t){ud=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Tx(e,t),Eo!==null&&Eo(e,t)};var Pl=N(null);function pr(){var e=Pl.current;return e!==null?e:Oe.pooledCache}function Ss(e,t){t===null?R(Pl,Pl.current):R(Pl,t.pool)}function To(){var e=pr();return e===null?null:{parent:Qe._currentValue,pool:e}}var _a=Error(o(460)),yr=Error(o(474)),Ns=Error(o(542)),Es={then:function(){}};function Ao(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Co(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Co(e),e}throw ta=t,_a}}function ea(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ta=l,_a):l}}var ta=null;function ko(){if(ta===null)throw Error(o(459));var e=ta;return ta=null,e}function Co(e){if(e===_a||e===Ns)throw Error(o(483))}var Ra=null,xn=0;function Ts(e){var t=xn;return xn+=1,Ra===null&&(Ra=[]),Mo(Ra,e,t)}function vn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function As(e,t){throw t.$$typeof===B?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _o(e){function t(A,S){if(e){var M=A.deletions;M===null?(A.deletions=[S],A.flags|=16):M.push(S)}}function l(A,S){if(!e)return null;for(;S!==null;)t(A,S),S=S.sibling;return null}function a(A){for(var S=new Map;A!==null;)A.key!==null?S.set(A.key,A):S.set(A.index,A),A=A.sibling;return S}function n(A,S){return A=Ft(A,S),A.index=0,A.sibling=null,A}function i(A,S,M){return A.index=M,e?(M=A.alternate,M!==null?(M=M.index,M<S?(A.flags|=67108866,S):M):(A.flags|=67108866,S)):(A.flags|=1048576,S)}function u(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function m(A,S,M,q){return S===null||S.tag!==6?(S=ir(M,A.mode,q),S.return=A,S):(S=n(S,M),S.return=A,S)}function b(A,S,M,q){var se=M.type;return se===Q?L(A,S,M.props.children,q,M.key):S!==null&&(S.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===ce&&ea(se)===S.type)?(S=n(S,M.props),vn(S,M),S.return=A,S):(S=ys(M.type,M.key,M.props,null,A.mode,q),vn(S,M),S.return=A,S)}function k(A,S,M,q){return S===null||S.tag!==4||S.stateNode.containerInfo!==M.containerInfo||S.stateNode.implementation!==M.implementation?(S=rr(M,A.mode,q),S.return=A,S):(S=n(S,M.children||[]),S.return=A,S)}function L(A,S,M,q,se){return S===null||S.tag!==7?(S=$l(M,A.mode,q,se),S.return=A,S):(S=n(S,M),S.return=A,S)}function Y(A,S,M){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=ir(""+S,A.mode,M),S.return=A,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Z:return M=ys(S.type,S.key,S.props,null,A.mode,M),vn(M,S),M.return=A,M;case X:return S=rr(S,A.mode,M),S.return=A,S;case ce:return S=ea(S),Y(A,S,M)}if(xe(S)||ye(S))return S=$l(S,A.mode,M,null),S.return=A,S;if(typeof S.then=="function")return Y(A,Ts(S),M);if(S.$$typeof===W)return Y(A,js(A,S),M);As(A,S)}return null}function C(A,S,M,q){var se=S!==null?S.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return se!==null?null:m(A,S,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Z:return M.key===se?b(A,S,M,q):null;case X:return M.key===se?k(A,S,M,q):null;case ce:return M=ea(M),C(A,S,M,q)}if(xe(M)||ye(M))return se!==null?null:L(A,S,M,q,null);if(typeof M.then=="function")return C(A,S,Ts(M),q);if(M.$$typeof===W)return C(A,S,js(A,M),q);As(A,M)}return null}function _(A,S,M,q,se){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(M)||null,m(S,A,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Z:return A=A.get(q.key===null?M:q.key)||null,b(S,A,q,se);case X:return A=A.get(q.key===null?M:q.key)||null,k(S,A,q,se);case ce:return q=ea(q),_(A,S,M,q,se)}if(xe(q)||ye(q))return A=A.get(M)||null,L(S,A,q,se,null);if(typeof q.then=="function")return _(A,S,M,Ts(q),se);if(q.$$typeof===W)return _(A,S,M,js(S,q),se);As(S,q)}return null}function le(A,S,M,q){for(var se=null,Ee=null,ae=S,me=S=0,be=null;ae!==null&&me<M.length;me++){ae.index>me?(be=ae,ae=null):be=ae.sibling;var Te=C(A,ae,M[me],q);if(Te===null){ae===null&&(ae=be);break}e&&ae&&Te.alternate===null&&t(A,ae),S=i(Te,S,me),Ee===null?se=Te:Ee.sibling=Te,Ee=Te,ae=be}if(me===M.length)return l(A,ae),Se&&It(A,me),se;if(ae===null){for(;me<M.length;me++)ae=Y(A,M[me],q),ae!==null&&(S=i(ae,S,me),Ee===null?se=ae:Ee.sibling=ae,Ee=ae);return Se&&It(A,me),se}for(ae=a(ae);me<M.length;me++)be=_(ae,A,me,M[me],q),be!==null&&(e&&be.alternate!==null&&ae.delete(be.key===null?me:be.key),S=i(be,S,me),Ee===null?se=be:Ee.sibling=be,Ee=be);return e&&ae.forEach(function(ql){return t(A,ql)}),Se&&It(A,me),se}function re(A,S,M,q){if(M==null)throw Error(o(151));for(var se=null,Ee=null,ae=S,me=S=0,be=null,Te=M.next();ae!==null&&!Te.done;me++,Te=M.next()){ae.index>me?(be=ae,ae=null):be=ae.sibling;var ql=C(A,ae,Te.value,q);if(ql===null){ae===null&&(ae=be);break}e&&ae&&ql.alternate===null&&t(A,ae),S=i(ql,S,me),Ee===null?se=ql:Ee.sibling=ql,Ee=ql,ae=be}if(Te.done)return l(A,ae),Se&&It(A,me),se;if(ae===null){for(;!Te.done;me++,Te=M.next())Te=Y(A,Te.value,q),Te!==null&&(S=i(Te,S,me),Ee===null?se=Te:Ee.sibling=Te,Ee=Te);return Se&&It(A,me),se}for(ae=a(ae);!Te.done;me++,Te=M.next())Te=_(ae,A,me,Te.value,q),Te!==null&&(e&&Te.alternate!==null&&ae.delete(Te.key===null?me:Te.key),S=i(Te,S,me),Ee===null?se=Te:Ee.sibling=Te,Ee=Te);return e&&ae.forEach(function(Lv){return t(A,Lv)}),Se&&It(A,me),se}function ze(A,S,M,q){if(typeof M=="object"&&M!==null&&M.type===Q&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case Z:e:{for(var se=M.key;S!==null;){if(S.key===se){if(se=M.type,se===Q){if(S.tag===7){l(A,S.sibling),q=n(S,M.props.children),q.return=A,A=q;break e}}else if(S.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===ce&&ea(se)===S.type){l(A,S.sibling),q=n(S,M.props),vn(q,M),q.return=A,A=q;break e}l(A,S);break}else t(A,S);S=S.sibling}M.type===Q?(q=$l(M.props.children,A.mode,q,M.key),q.return=A,A=q):(q=ys(M.type,M.key,M.props,null,A.mode,q),vn(q,M),q.return=A,A=q)}return u(A);case X:e:{for(se=M.key;S!==null;){if(S.key===se)if(S.tag===4&&S.stateNode.containerInfo===M.containerInfo&&S.stateNode.implementation===M.implementation){l(A,S.sibling),q=n(S,M.children||[]),q.return=A,A=q;break e}else{l(A,S);break}else t(A,S);S=S.sibling}q=rr(M,A.mode,q),q.return=A,A=q}return u(A);case ce:return M=ea(M),ze(A,S,M,q)}if(xe(M))return le(A,S,M,q);if(ye(M)){if(se=ye(M),typeof se!="function")throw Error(o(150));return M=se.call(M),re(A,S,M,q)}if(typeof M.then=="function")return ze(A,S,Ts(M),q);if(M.$$typeof===W)return ze(A,S,js(A,M),q);As(A,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,S!==null&&S.tag===6?(l(A,S.sibling),q=n(S,M),q.return=A,A=q):(l(A,S),q=ir(M,A.mode,q),q.return=A,A=q),u(A)):l(A,S)}return function(A,S,M,q){try{xn=0;var se=ze(A,S,M,q);return Ra=null,se}catch(ae){if(ae===_a||ae===Ns)throw ae;var Ee=yt(29,ae,null,A.mode);return Ee.lanes=q,Ee.return=A,Ee}finally{}}}var la=_o(!0),Ro=_o(!1),Nl=!1;function gr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function br(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 El(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=ps(e),ho(e,null,l),t}return vs(e,a,t,l),ps(e)}function pn(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,jc(e,l)}}function jr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,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 Sr=!1;function yn(){if(Sr){var e=Ca;if(e!==null)throw e}}function gn(e,t,l,a){Sr=!1;var n=e.updateQueue;Nl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var b=m,k=b.next;b.next=null,u===null?i=k:u.next=k,u=b;var L=e.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==u&&(m===null?L.firstBaseUpdate=k:m.next=k,L.lastBaseUpdate=b))}if(i!==null){var Y=n.baseState;u=0,L=k=b=null,m=i;do{var C=m.lane&-536870913,_=C!==m.lane;if(_?(ge&C)===C:(a&C)===C){C!==0&&C===ka&&(Sr=!0),L!==null&&(L=L.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var le=e,re=m;C=t;var ze=l;switch(re.tag){case 1:if(le=re.payload,typeof le=="function"){Y=le.call(ze,Y,C);break e}Y=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=re.payload,C=typeof le=="function"?le.call(ze,Y,C):le,C==null)break e;Y=g({},Y,C);break e;case 2:Nl=!0}}C=m.callback,C!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[C]:_.push(C))}else _={lane:C,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(k=L=_,b=Y):L=L.next=_,u|=C;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;_=m,m=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);L===null&&(b=Y),n.baseState=b,n.firstBaseUpdate=k,n.lastBaseUpdate=L,i===null&&(n.shared.lanes=0),_l|=u,e.lanes=u,e.memoizedState=Y}}function zo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function wo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)zo(l[e],t)}var za=N(null),Ms=N(0);function Oo(e,t){e=cl,R(Ms,e),R(za,t),cl=e|t.baseLanes}function Nr(){R(Ms,cl),R(za,za.current)}function Er(){cl=Ms.current,H(za),H(Ms)}var gt=N(null),Rt=null;function Al(e){var t=e.alternate;R(Ge,Ge.current&1),R(gt,e),Rt===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Rt=e)}function Tr(e){R(Ge,Ge.current),R(gt,e),Rt===null&&(Rt=e)}function Do(e){e.tag===22?(R(Ge,Ge.current),R(gt,e),Rt===null&&(Rt=e)):Ml()}function Ml(){R(Ge,Ge.current),R(gt,gt.current)}function bt(e){H(gt),Rt===e&&(Rt=null),H(Ge)}var Ge=N(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ru(l)||zu(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 tl=0,de=null,_e=null,Ze=null,Cs=!1,wa=!1,aa=!1,_s=0,bn=0,Oa=null,Mx=0;function qe(){throw Error(o(321))}function Ar(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function Mr(e,t,l,a,n,i){return tl=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?gf:Gr,aa=!1,i=l(a,n),aa=!1,wa&&(i=Lo(t,l,a,n)),Bo(e),i}function Bo(e){T.H=Nn;var t=_e!==null&&_e.next!==null;if(tl=0,Ze=_e=de=null,Cs=!1,bn=0,Oa=null,t)throw Error(o(300));e===null||Ve||(e=e.dependencies,e!==null&&bs(e)&&(Ve=!0))}function Lo(e,t,l,a){de=e;var n=0;do{if(wa&&(Oa=null),bn=0,wa=!1,25<=n)throw Error(o(301));if(n+=1,Ze=_e=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}T.H=bf,i=t(l,a)}while(wa);return i}function kx(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?jn(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(de.flags|=1024),t}function kr(){var e=_s!==0;return _s=0,e}function Cr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function _r(e){if(Cs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cs=!1}tl=0,Ze=_e=de=null,wa=!1,bn=_s=0,Oa=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(_e===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?de.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw de.alternate===null?Error(o(467)):Error(o(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jn(e){var t=bn;return bn+=1,Oa===null&&(Oa=[]),e=Mo(Oa,e,t),t=de,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?gf:Gr),e}function zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jn(e);if(e.$$typeof===W)return Pe(e)}throw Error(o(438,String(e)))}function Rr(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.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=Rs(),de.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]=Me;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function ws(e){var t=Xe();return zr(t,_e,e)}function zr(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var m=u=null,b=null,k=t,L=!1;do{var Y=k.lane&-536870913;if(Y!==k.lane?(ge&Y)===Y:(tl&Y)===Y){var C=k.revertLane;if(C===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),Y===ka&&(L=!0);else if((tl&C)===C){k=k.next,C===ka&&(L=!0);continue}else Y={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(m=b=Y,u=i):b=b.next=Y,de.lanes|=C,_l|=C;Y=k.action,aa&&l(i,Y),i=k.hasEagerState?k.eagerState:l(i,Y)}else C={lane:Y,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(m=b=C,u=i):b=b.next=C,de.lanes|=Y,_l|=Y;k=k.next}while(k!==null&&k!==t);if(b===null?u=i:b.next=m,!pt(i,e.memoizedState)&&(Ve=!0,L&&(l=Ca,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=b,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wr(e){var t=Xe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);pt(i,t.memoizedState)||(Ve=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ho(e,t,l){var a=de,n=Xe(),i=Se;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var u=!pt((_e||n).memoizedState,l);if(u&&(n.memoizedState=l,Ve=!0),n=n.queue,Br(Yo.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Da(9,{destroy:void 0},qo.bind(null,a,n,l,t),null),Oe===null)throw Error(o(349));i||(tl&127)!==0||Uo(a,t,l)}return l}function Uo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=Rs(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qo(e,t,l,a){t.value=l,t.getSnapshot=a,Go(t)&&Xo(e)}function Yo(e,t,l){return l(function(){Go(t)&&Xo(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function Xo(e){var t=Jl(e,2);t!==null&&dt(t,e,2)}function Or(e){var t=nt();if(typeof e=="function"){var l=e;if(e=l(),aa){vl(!0);try{l()}finally{vl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function Qo(e,t,l,a){return e.baseState=l,zr(e,_e,typeof a=="function"?a:ll)}function Cx(e,t,l,a,n){if(Bs(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};T.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Zo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Zo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=T.T,u={};T.T=u;try{var m=l(n,a),b=T.S;b!==null&&b(u,m),Vo(e,t,m)}catch(k){Dr(e,t,k)}finally{i!==null&&u.types!==null&&(i.types=u.types),T.T=i}}else try{i=l(n,a),Vo(e,t,i)}catch(k){Dr(e,t,k)}}function Vo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ko(e,t,a)},function(a){return Dr(e,t,a)}):Ko(e,t,l)}function Ko(e,t,l){t.status="fulfilled",t.value=l,Jo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Zo(e,l)))}function Dr(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Jo(t),t=t.next;while(t!==a)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function Wo(e,t){if(Se){var l=Oe.formState;if(l!==null){e:{var a=de;if(Se){if(De){t:{for(var n=De,i=_t;n.nodeType!==8;){if(!i){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){De=zt(n.nextSibling),a=n.data==="F!";break e}}jl(a)}a=!1}a&&(t=l[0])}}return l=nt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},l.queue=a,l=vf.bind(null,de,a),a.dispatch=l,a=Or(!1),i=Yr.bind(null,de,!1,a.queue),a=nt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Cx.bind(null,de,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Fo(e){var t=Xe();return Io(t,_e,e)}function Io(e,t,l){if(t=zr(e,t,$o)[0],e=ws(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=jn(t)}catch(u){throw u===_a?Ns:u}else a=t;t=Xe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(de.flags|=2048,Da(9,{destroy:void 0},_x.bind(null,n,l),null)),[a,i,e]}function _x(e,t){e.action=t}function Po(e){var t=Xe(),l=_e;if(l!==null)return Io(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Da(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=Rs(),de.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 ef(){return Xe().memoizedState}function Os(e,t,l,a){var n=nt();de.flags|=e,n.memoizedState=Da(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ds(e,t,l,a){var n=Xe();a=a===void 0?null:a;var i=n.memoizedState.inst;_e!==null&&a!==null&&Ar(a,_e.memoizedState.deps)?n.memoizedState=Da(t,i,l,a):(de.flags|=e,n.memoizedState=Da(1|t,i,l,a))}function tf(e,t){Os(8390656,8,e,t)}function Br(e,t){Ds(2048,8,e,t)}function Rx(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Rs(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function lf(e){var t=Xe().memoizedState;return Rx({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function af(e,t){return Ds(4,2,e,t)}function nf(e,t){return Ds(4,4,e,t)}function sf(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 rf(e,t,l){l=l!=null?l.concat([e]):null,Ds(4,4,sf.bind(null,t,e),l)}function Lr(){}function uf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ar(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function cf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ar(t,a[1]))return a[0];if(a=e(),aa){vl(!0);try{e()}finally{vl(!1)}}return l.memoizedState=[a,t],a}function Hr(e,t,l){return l===void 0||(tl&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=od(),de.lanes|=e,_l|=e,l)}function of(e,t,l,a){return pt(l,t)?l:za.current!==null?(e=Hr(e,l,a),pt(e,t)||(Ve=!0),e):(tl&42)===0||(tl&1073741824)!==0&&(ge&261930)===0?(Ve=!0,e.memoizedState=l):(e=od(),de.lanes|=e,_l|=e,t)}function ff(e,t,l,a,n){var i=J.p;J.p=i!==0&&8>i?i:8;var u=T.T,m={};T.T=m,Yr(e,!1,t,l);try{var b=n(),k=T.S;if(k!==null&&k(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var L=Ax(b,a);Sn(e,t,L,Nt(e))}else Sn(e,t,a,Nt(e))}catch(Y){Sn(e,t,{then:function(){},status:"rejected",reason:Y},Nt())}finally{J.p=i,u!==null&&m.types!==null&&(u.types=m.types),T.T=u}}function zx(){}function Ur(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=df(e).queue;ff(e,n,t,ne,l===null?zx:function(){return mf(e),l(a)})}function df(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mf(e){var t=df(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},Nt())}function qr(){return Pe(Un)}function hf(){return Xe().memoizedState}function xf(){return Xe().memoizedState}function wx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=El(l);var a=Tl(t,e,l);a!==null&&(dt(a,t,l),pn(a,t,l)),t={cache:xr()},e.payload=t;return}t=t.return}}function Ox(e,t,l){var a=Nt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bs(e)?pf(t,l):(l=nr(e,t,l,a),l!==null&&(dt(l,e,a),yf(l,t,a)))}function vf(e,t,l){var a=Nt();Sn(e,t,l,a)}function Sn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))pf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,m=i(u,l);if(n.hasEagerState=!0,n.eagerState=m,pt(m,u))return vs(e,t,n,0),Oe===null&&xs(),!1}catch{}finally{}if(l=nr(e,t,n,a),l!==null)return dt(l,e,a),yf(l,t,a),!0}return!1}function Yr(e,t,l,a){if(a={lane:2,revertLane:gu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(o(479))}else t=nr(e,l,a,2),t!==null&&dt(t,e,2)}function Bs(e){var t=e.alternate;return e===de||t!==null&&t===de}function pf(e,t){wa=Cs=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function yf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,jc(e,l)}}var Nn={readContext:Pe,use:zs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};Nn.useEffectEvent=qe;var gf={readContext:Pe,use:zs,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:tf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Os(4194308,4,sf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){Os(4,2,e,t)},useMemo:function(e,t){var l=nt();t=t===void 0?null:t;var a=e();if(aa){vl(!0);try{e()}finally{vl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=nt();if(l!==void 0){var n=l(t);if(aa){vl(!0);try{l(t)}finally{vl(!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=Ox.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Or(e);var t=e.queue,l=vf.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Lr,useDeferredValue:function(e,t){var l=nt();return Hr(l,e,t)},useTransition:function(){var e=Or(!1);return e=ff.bind(null,de,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,n=nt();if(Se){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Oe===null)throw Error(o(349));(ge&127)!==0||Uo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,tf(Yo.bind(null,a,i,e),[e]),a.flags|=2048,Da(9,{destroy:void 0},qo.bind(null,a,i,l,t),null),l},useId:function(){var e=nt(),t=Oe.identifierPrefix;if(Se){var l=Yt,a=qt;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_s++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Mx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qr,useFormState:Wo,useActionState:Wo,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Yr.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:Rr,useCacheRefresh:function(){return nt().memoizedState=wx.bind(null,de)},useEffectEvent:function(e){var t=nt(),l={impl:e};return t.memoizedState=l,function(){if((Ae&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Gr={readContext:Pe,use:zs,useCallback:uf,useContext:Pe,useEffect:Br,useImperativeHandle:rf,useInsertionEffect:af,useLayoutEffect:nf,useMemo:cf,useReducer:ws,useRef:ef,useState:function(){return ws(ll)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=Xe();return of(l,_e.memoizedState,e,t)},useTransition:function(){var e=ws(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Ho,useId:hf,useHostTransitionStatus:qr,useFormState:Fo,useActionState:Fo,useOptimistic:function(e,t){var l=Xe();return Qo(l,_e,e,t)},useMemoCache:Rr,useCacheRefresh:xf};Gr.useEffectEvent=lf;var bf={readContext:Pe,use:zs,useCallback:uf,useContext:Pe,useEffect:Br,useImperativeHandle:rf,useInsertionEffect:af,useLayoutEffect:nf,useMemo:cf,useReducer:wr,useRef:ef,useState:function(){return wr(ll)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=Xe();return _e===null?Hr(l,e,t):of(l,_e.memoizedState,e,t)},useTransition:function(){var e=wr(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Ho,useId:hf,useHostTransitionStatus:qr,useFormState:Po,useActionState:Po,useOptimistic:function(e,t){var l=Xe();return _e!==null?Qo(l,_e,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Rr,useCacheRefresh:xf};bf.useEffectEvent=lf;function Xr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Qr={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Nt(),n=El(a);n.payload=t,l!=null&&(n.callback=l),t=Tl(e,n,a),t!==null&&(dt(t,e,a),pn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Nt(),n=El(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Tl(e,n,a),t!==null&&(dt(t,e,a),pn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),a=El(l);a.tag=2,t!=null&&(a.callback=t),t=Tl(e,a,l),t!==null&&(dt(t,e,l),pn(t,e,l))}};function jf(e,t,l,a,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,i):!0}function Sf(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&&Qr.enqueueReplaceState(t,t.state,null)}function na(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=g({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Nf(e){hs(e)}function Ef(e){console.error(e)}function Tf(e){hs(e)}function Ls(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Af(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 Zr(e,t,l){return l=El(l),l.tag=3,l.payload={element:null},l.callback=function(){Ls(e,t)},l}function Mf(e){return e=El(e),e.tag=3,e}function kf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Af(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Af(t,l,a),typeof n!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Dx(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ma(t,l,n,!0),l=gt.current,l!==null){switch(l.tag){case 31:case 13:return Rt===null?$s():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Es?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),vu(e,a,n)),!1;case 22:return l.flags|=65536,a===Es?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)),vu(e,a,n)),!1}throw Error(o(435,l.tag))}return vu(e,a,n),$s(),!1}if(Se)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==or&&(e=Error(o(422),{cause:a}),dn(Mt(e,l)))):(a!==or&&(t=Error(o(423),{cause:a}),dn(Mt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Mt(a,l),n=Zr(e.stateNode,a,n),jr(e,n),Ye!==4&&(Ye=2)),!1;var i=Error(o(520),{cause:a});if(i=Mt(i,l),Rn===null?Rn=[i]:Rn.push(i),Ye!==4&&(Ye=2),t===null)return!0;a=Mt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Zr(l.stateNode,a,e),jr(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Rl===null||!Rl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mf(n),kf(n,e,l,a),jr(l,n),!1}l=l.return}while(l!==null);return!1}var Vr=Error(o(461)),Ve=!1;function et(e,t,l,a){t.child=e===null?Ro(t,null,l,a):la(t,e.child,l,a)}function Cf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}else u=a;return Il(t),a=Mr(e,t,l,u,i,n),m=kr(),e!==null&&!Ve?(Cr(e,t,n),al(e,t,n)):(Se&&m&&ur(t),t.flags|=1,et(e,t,a,n),t.child)}function _f(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!sr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Rf(e,t,i,a,n)):(e=ys(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!eu(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(u,a)&&e.ref===t.ref)return al(e,t,n)}return t.flags|=1,e=Ft(i,a),e.ref=t.ref,e.return=t,t.child=e}function Rf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(cn(i,a)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=a=i,eu(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,al(e,t,n)}return Kr(e,t,l,a,n)}function zf(e,t,l,a){var n=a.children,i=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(i=i!==null?i.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&~i}else a=0,t.child=null;return wf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ss(t,i!==null?i.cachePool:null),i!==null?Oo(t,i):Nr(),Do(t);else return a=t.lanes=536870912,wf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ss(t,i.cachePool),Oo(t,i),Ml(),t.memoizedState=null):(e!==null&&Ss(t,null),Nr(),Ml());return et(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wf(e,t,l,a,n){var i=pr();return i=i===null?null:{parent:Qe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ss(t,null),Nr(),Do(t),e!==null&&Ma(e,t,a,!0),t.childLanes=n,null}function Hs(e,t){return t=qs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Of(e,t,l){return la(t,e.child,null,l),e=Hs(t,t.pendingProps),e.flags|=2,bt(t),t.memoizedState=null,e}function Bx(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=Hs(t,a),t.lanes=536870912,En(null,e);if(Tr(t),(e=De)?(e=Vd(e,_t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Ie=t,De=null)):e=null,e===null)throw jl(t);return t.lanes=536870912,null}return Hs(t,a)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Tr(t),n)if(t.flags&256)t.flags&=-257,t=Of(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ve||Ma(e,t,l,!1),n=(l&e.childLanes)!==0,Ve||n){if(a=Oe,a!==null&&(u=Sc(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,Jl(e,u),dt(a,e,u),Vr;$s(),t=Of(e,t,l)}else e=i.treeContext,De=zt(u.nextSibling),Ie=t,Se=!0,bl=null,_t=!1,e!==null&&go(t,e),t=Hs(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Us(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Kr(e,t,l,a,n){return Il(t),l=Mr(e,t,l,a,void 0,n),a=kr(),e!==null&&!Ve?(Cr(e,t,n),al(e,t,n)):(Se&&a&&ur(t),t.flags|=1,et(e,t,l,n),t.child)}function Df(e,t,l,a,n,i){return Il(t),t.updateQueue=null,l=Lo(t,a,l,n),Bo(e),a=kr(),e!==null&&!Ve?(Cr(e,t,i),al(e,t,i)):(Se&&a&&ur(t),t.flags|=1,et(e,t,l,i),t.child)}function Bf(e,t,l,a,n){if(Il(t),t.stateNode===null){var i=Na,u=l.contextType;typeof u=="object"&&u!==null&&(i=Pe(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Qr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},gr(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?Pe(u):Na,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Xr(t,l,u,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Qr.enqueueReplaceState(i,i.state,null),gn(t,a,i,n),yn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,b=na(l,m);i.props=b;var k=i.context,L=l.contextType;u=Na,typeof L=="object"&&L!==null&&(u=Pe(L));var Y=l.getDerivedStateFromProps;L=typeof Y=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,L||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||k!==u)&&Sf(t,i,a,u),Nl=!1;var C=t.memoizedState;i.state=C,gn(t,a,i,n),yn(),k=t.memoizedState,m||C!==k||Nl?(typeof Y=="function"&&(Xr(t,l,Y,a),k=t.memoizedState),(b=Nl||jf(t,l,b,a,C,k,u))?(L||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),i.props=a,i.state=k,i.context=u,a=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,br(e,t),u=t.memoizedProps,L=na(l,u),i.props=L,Y=t.pendingProps,C=i.context,k=l.contextType,b=Na,typeof k=="object"&&k!==null&&(b=Pe(k)),m=l.getDerivedStateFromProps,(k=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==Y||C!==b)&&Sf(t,i,a,b),Nl=!1,C=t.memoizedState,i.state=C,gn(t,a,i,n),yn();var _=t.memoizedState;u!==Y||C!==_||Nl||e!==null&&e.dependencies!==null&&bs(e.dependencies)?(typeof m=="function"&&(Xr(t,l,m,a),_=t.memoizedState),(L=Nl||jf(t,l,L,a,C,_,b)||e!==null&&e.dependencies!==null&&bs(e.dependencies))?(k||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,_,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,_,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),i.props=a,i.state=_,i.context=b,a=L):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Us(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=la(t,e.child,null,n),t.child=la(t,null,l,n)):et(e,t,l,n),t.memoizedState=i.state,e=t.child):e=al(e,t,n),e}function Lf(e,t,l,a){return Wl(),t.flags|=256,et(e,t,l,a),t.child}var Jr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $r(e){return{baseLanes:e,cachePool:To()}}function Wr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Hf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(n?Al(t):Ml(),(e=De)?(e=Vd(e,_t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Ie=t,De=null)):e=null,e===null)throw jl(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Ml(),n=t.mode,m=qs({mode:"hidden",children:m},n),a=$l(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=$r(l),a.childLanes=Wr(e,u,l),t.memoizedState=Jr,En(null,a)):(Al(t),Fr(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(i)t.flags&256?(Al(t),t.flags&=-257,t=Ir(e,t,l)):t.memoizedState!==null?(Ml(),t.child=e.child,t.flags|=128,t=null):(Ml(),m=a.fallback,n=t.mode,a=qs({mode:"visible",children:a.children},n),m=$l(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,la(t,e.child,null,l),a=t.child,a.memoizedState=$r(l),a.childLanes=Wr(e,u,l),t.memoizedState=Jr,t=En(null,a));else if(Al(t),zu(m)){if(u=m.nextSibling&&m.nextSibling.dataset,u)var k=u.dgst;u=k,a=Error(o(419)),a.stack="",a.digest=u,dn({value:a,source:null,stack:null}),t=Ir(e,t,l)}else if(Ve||Ma(e,t,l,!1),u=(l&e.childLanes)!==0,Ve||u){if(u=Oe,u!==null&&(a=Sc(u,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Jl(e,a),dt(u,e,a),Vr;Ru(m)||$s(),t=Ir(e,t,l)}else Ru(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,De=zt(m.nextSibling),Ie=t,Se=!0,bl=null,_t=!1,e!==null&&go(t,e),t=Fr(t,a.children),t.flags|=4096);return t}return n?(Ml(),m=a.fallback,n=t.mode,b=e.child,k=b.sibling,a=Ft(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,k!==null?m=Ft(k,m):(m=$l(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,En(null,a),a=t.child,m=e.child.memoizedState,m===null?m=$r(l):(n=m.cachePool,n!==null?(b=Qe._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=To(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=Wr(e,u,l),t.memoizedState=Jr,En(e.child,a)):(Al(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function Fr(e,t){return t=qs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qs(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Ir(e,t,l){return la(t,e.child,null,l),e=Fr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mr(e.return,t,l)}function Pr(e,t,l,a,n,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function qf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Ge.current,m=(u&2)!==0;if(m?(u=u&1|2,t.flags|=128):u&=1,R(Ge,u),et(e,t,a,l),a=Se?fn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uf(e,l,t);else if(e.tag===19)Uf(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&&ks(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Pr(t,!1,n,l,i,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&&ks(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Pr(t,!0,l,null,i,a);break;case"together":Pr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function al(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ma(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function eu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bs(e)))}function Lx(e,t,l){switch(t.tag){case 3:O(t,t.stateNode.containerInfo),Sl(t,Qe,e.memoizedState.cache),Wl();break;case 27:case 5:oe(t);break;case 4:O(t,t.stateNode.containerInfo);break;case 10:Sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Tr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Al(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Hf(e,t,l):(Al(t),e=al(e,t,l),e!==null?e.sibling:null);Al(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ma(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return qf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),R(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,zf(e,t,l,t.pendingProps);case 24:Sl(t,Qe,e.memoizedState.cache)}return al(e,t,l)}function Yf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!eu(e,l)&&(t.flags&128)===0)return Ve=!1,Lx(e,t,l);Ve=(e.flags&131072)!==0}else Ve=!1,Se&&(t.flags&1048576)!==0&&yo(t,fn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ea(t.elementType),t.type=e,typeof e=="function")sr(e)?(a=na(e,a),t.tag=1,t=Bf(null,t,e,a,l)):(t.tag=0,t=Kr(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===G){t.tag=11,t=Cf(null,t,e,a,l);break e}else if(n===P){t.tag=14,t=_f(null,t,e,a,l);break e}}throw t=he(e)||e,Error(o(306,t,""))}}return t;case 0:return Kr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=na(a,t.pendingProps),Bf(e,t,a,n,l);case 3:e:{if(O(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,br(e,t),gn(t,a,null,l);var u=t.memoizedState;if(a=u.cache,Sl(t,Qe,a),a!==i.cache&&hr(t,[Qe],l,!0),yn(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Lf(e,t,a,l);break e}else if(a!==n){n=Mt(Error(o(424)),t),dn(n),t=Lf(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(De=zt(e.firstChild),Ie=t,Se=!0,bl=null,_t=!0,l=Ro(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Wl(),a===n){t=al(e,t,l);break e}et(e,t,a,l)}t=t.child}return t;case 26:return Us(e,t),e===null?(l=Id(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,a=li(ie.current).createElement(l),a[Fe]=t,a[it]=e,tt(a,l,e),$e(a),t.stateNode=a):t.memoizedState=Id(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oe(t),e===null&&Se&&(a=t.stateNode=$d(t.type,t.pendingProps,ie.current),Ie=t,_t=!0,n=De,Dl(t.type)?(wu=n,De=zt(a.firstChild)):De=n),et(e,t,t.pendingProps.children,l),Us(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((n=a=De)&&(a=mv(a,t.type,t.pendingProps,_t),a!==null?(t.stateNode=a,Ie=t,De=zt(a.firstChild),_t=!1,n=!0):n=!1),n||jl(t)),oe(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,ku(n,i)?a=null:u!==null&&ku(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=Mr(e,t,kx,null,null,l),Un._currentValue=n),Us(e,t),et(e,t,a,l),t.child;case 6:return e===null&&Se&&((e=l=De)&&(l=hv(l,t.pendingProps,_t),l!==null?(t.stateNode=l,Ie=t,De=null,e=!0):e=!1),e||jl(t)),null;case 13:return Hf(e,t,l);case 4:return O(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=la(t,null,a,l):et(e,t,a,l),t.child;case 11:return Cf(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Sl(t,t.type,a.value),et(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Il(t),n=Pe(n),a=a(n),t.flags|=1,et(e,t,a,l),t.child;case 14:return _f(e,t,t.type,t.pendingProps,l);case 15:return Rf(e,t,t.type,t.pendingProps,l);case 19:return qf(e,t,l);case 31:return Bx(e,t,l);case 22:return zf(e,t,l,t.pendingProps);case 24:return Il(t),a=Pe(Qe),e===null?(n=pr(),n===null&&(n=Oe,i=xr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},gr(t),Sl(t,Qe,n)):((e.lanes&l)!==0&&(br(e,t),gn(t,null,null,l),yn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Sl(t,Qe,a)):(a=i.cache,Sl(t,Qe,a),a!==n.cache&&hr(t,[Qe],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function nl(e){e.flags|=4}function tu(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(hd())e.flags|=8192;else throw ta=Es,yr}else e.flags&=-16777217}function Gf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!am(t))if(hd())e.flags|=8192;else throw ta=Es,yr}function Ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gc():536870912,e.lanes|=t,Ua|=t)}function Tn(e,t){if(!Se)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 Be(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 Hx(e,t,l){var a=t.pendingProps;switch(cr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),el(Qe),I(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Aa(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fr())),Be(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(nl(t),i!==null?(Be(t),Gf(t,i)):(Be(t),tu(t,n,null,a,l))):i?i!==e.memoizedState?(nl(t),Be(t),Gf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nl(t),Be(t),tu(t,n,e,a,l)),null;case 27:if(He(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Be(t),null}e=w.current,Aa(t)?bo(t):(e=$d(n,a,l),t.stateNode=e,nl(t))}return Be(t),null;case 5:if(He(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Be(t),null}if(i=w.current,Aa(t))bo(t);else{var u=li(ie.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[Fe]=t,i[it]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(tt(i,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&&nl(t)}}return Be(t),tu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Aa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ie,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Hd(e.nodeValue,l)),e||jl(t,!0)}else e=li(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Aa(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(bt(t),t):(bt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Aa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Fe]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(bt(t),t):(bt(t),null)}return bt(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),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ys(t,t.updateQueue),Be(t),null);case 4:return I(),e===null&&Nu(t.stateNode.containerInfo),Be(t),null;case 10:return el(t.type),Be(t),null;case 19:if(H(Ge),a=t.memoizedState,a===null)return Be(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Tn(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ks(e),i!==null){for(t.flags|=128,Tn(a,!1),e=i.updateQueue,t.updateQueue=e,Ys(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)xo(l,e),l=l.sibling;return R(Ge,Ge.current&1|2),Se&&It(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ht()>Vs&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ks(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ys(t,e),Tn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Se)return Be(t),null}else 2*ht()-a.renderingStartTime>Vs&&l!==536870912&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ht(),e.sibling=null,l=Ge.current,R(Ge,n?l&1|2:l&1),Se&&It(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return bt(t),Er(),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&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&Ys(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&&H(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),el(Qe),Be(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Ux(e,t){switch(cr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return el(Qe),I(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(bt(t),t.alternate===null)throw Error(o(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Ge),null;case 4:return I(),null;case 10:return el(t.type),null;case 22:case 23:return bt(t),Er(),e!==null&&H(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return el(Qe),null;case 25:return null;default:return null}}function Xf(e,t){switch(cr(t),t.tag){case 3:el(Qe),I();break;case 26:case 27:case 5:He(t);break;case 4:I();break;case 31:t.memoizedState!==null&&bt(t);break;case 13:bt(t);break;case 19:H(Ge);break;case 10:el(t.type);break;case 22:case 23:bt(t),Er(),e!==null&&H(Pl);break;case 24:el(Qe)}}function An(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 i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(m){Ce(t,t.return,m)}}function kl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var u=a.inst,m=u.destroy;if(m!==void 0){u.destroy=void 0,n=t;var b=l,k=m;try{k()}catch(L){Ce(n,b,L)}}}a=a.next}while(a!==i)}}catch(L){Ce(t,t.return,L)}}function Qf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wo(t,l)}catch(a){Ce(e,e.return,a)}}}function Zf(e,t,l){l.props=na(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function Mn(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){Ce(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ce(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){Ce(e,t,n)}else l.current=null}function Vf(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){Ce(e,e.return,n)}}function lu(e,t,l){try{var a=e.stateNode;rv(a,e.type,l,t),a[it]=t}catch(n){Ce(e,e.return,n)}}function Kf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kf(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&&Dl(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 nu(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=$t));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(nu(e,t,l),e=e.sibling;e!==null;)nu(e,t,l),e=e.sibling}function Gs(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&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Gs(e,t,l),e=e.sibling;e!==null;)Gs(e,t,l),e=e.sibling}function Jf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);tt(t,a,l),t[Fe]=e,t[it]=l}catch(i){Ce(e,e.return,i)}}var sl=!1,Ke=!1,su=!1,$f=typeof WeakSet=="function"?WeakSet:Set,We=null;function qx(e,t){if(e=e.containerInfo,Au=ci,e=so(e),Ii(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,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,m=-1,b=-1,k=0,L=0,Y=e,C=null;t:for(;;){for(var _;Y!==l||n!==0&&Y.nodeType!==3||(m=u+n),Y!==i||a!==0&&Y.nodeType!==3||(b=u+a),Y.nodeType===3&&(u+=Y.nodeValue.length),(_=Y.firstChild)!==null;)C=Y,Y=_;for(;;){if(Y===e)break t;if(C===l&&++k===n&&(m=u),C===i&&++L===a&&(b=u),(_=Y.nextSibling)!==null)break;Y=C,C=Y.parentNode}Y=_}l=m===-1||b===-1?null:{start:m,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mu={focusedElem:e,selectionRange:l},ci=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,i=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&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var le=na(l.type,n);e=a.getSnapshotBeforeUpdate(le,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(re){Ce(l,l.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)_u(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_u(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function Wf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(e,l),a&4&&An(5,l);break;case 1:if(rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){Ce(l,l.return,u)}else{var n=na(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){Ce(l,l.return,u)}}a&64&&Qf(l),a&512&&Mn(l,l.return);break;case 3:if(rl(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{wo(e,t)}catch(u){Ce(l,l.return,u)}}break;case 27:t===null&&a&4&&Jf(l);case 26:case 5:rl(e,l),t===null&&a&4&&Vf(l),a&512&&Mn(l,l.return);break;case 12:rl(e,l);break;case 31:rl(e,l),a&4&&Pf(e,l);break;case 13:rl(e,l),a&4&&ed(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=$x.bind(null,l),xv(e,l))));break;case 22:if(a=l.memoizedState!==null||sl,!a){t=t!==null&&t.memoizedState!==null||Ke,n=sl;var i=Ke;sl=a,(Ke=t)&&!i?ul(e,l,(l.subtreeFlags&8772)!==0):rl(e,l),sl=n,Ke=i}break;case 30:break;default:rl(e,l)}}function Ff(e){var t=e.alternate;t!==null&&(e.alternate=null,Ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Di(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 Le=null,ut=!1;function il(e,t,l){for(l=l.child;l!==null;)If(e,t,l),l=l.sibling}function If(e,t,l){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Wa,l)}catch{}switch(l.tag){case 26:Ke||Gt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ke||Gt(l,t);var a=Le,n=ut;Dl(l.type)&&(Le=l.stateNode,ut=!1),il(e,t,l),Bn(l.stateNode),Le=a,ut=n;break;case 5:Ke||Gt(l,t);case 6:if(a=Le,n=ut,Le=null,il(e,t,l),Le=a,ut=n,Le!==null)if(ut)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(l.stateNode)}catch(i){Ce(l,t,i)}else try{Le.removeChild(l.stateNode)}catch(i){Ce(l,t,i)}break;case 18:Le!==null&&(ut?(e=Le,Qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ka(e)):Qd(Le,l.stateNode));break;case 4:a=Le,n=ut,Le=l.stateNode.containerInfo,ut=!0,il(e,t,l),Le=a,ut=n;break;case 0:case 11:case 14:case 15:kl(2,l,t),Ke||kl(4,l,t),il(e,t,l);break;case 1:Ke||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Zf(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Ke=(a=Ke)||l.memoizedState!==null,il(e,t,l),Ke=a;break;default:il(e,t,l)}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ka(e)}catch(l){Ce(t,t.return,l)}}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ka(e)}catch(l){Ce(t,t.return,l)}}function Yx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $f),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $f),t;default:throw Error(o(435,e.tag))}}function Xs(e,t){var l=Yx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Wx.bind(null,e,a);a.then(n,n)}})}function ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,u=t,m=u;e:for(;m!==null;){switch(m.tag){case 27:if(Dl(m.type)){Le=m.stateNode,ut=!1;break e}break;case 5:Le=m.stateNode,ut=!1;break e;case 3:case 4:Le=m.stateNode.containerInfo,ut=!0;break e}m=m.return}if(Le===null)throw Error(o(160));If(i,u,n),Le=null,ut=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)td(t,e),t=t.sibling}var Lt=null;function td(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),ot(e),a&4&&(kl(3,e,e.return),An(3,e),kl(5,e,e.return));break;case 1:ct(t,e),ot(e),a&512&&(Ke||l===null||Gt(l,l.return)),a&64&&sl&&(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=Lt;if(ct(t,e),ot(e),a&512&&(Ke||l===null||Gt(l,l.return)),a&4){var i=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":i=n.getElementsByTagName("title")[0],(!i||i[Pa]||i[Fe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),tt(i,a,l),i[Fe]=e,$e(i),a=i;break e;case"link":var u=tm("link","href",n).get(a+(l.href||""));if(u){for(var m=0;m<u.length;m++)if(i=u[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(m,1);break t}}i=n.createElement(a),tt(i,a,l),n.head.appendChild(i);break;case"meta":if(u=tm("meta","content",n).get(a+(l.content||""))){for(m=0;m<u.length;m++)if(i=u[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(m,1);break t}}i=n.createElement(a),tt(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[Fe]=e,$e(i),a=i}e.stateNode=a}else lm(n,e.type,e.stateNode);else e.stateNode=em(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?lm(n,e.type,e.stateNode):em(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&lu(e,e.memoizedProps,l.memoizedProps)}break;case 27:ct(t,e),ot(e),a&512&&(Ke||l===null||Gt(l,l.return)),l!==null&&a&4&&lu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ct(t,e),ot(e),a&512&&(Ke||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{va(n,"")}catch(le){Ce(e,e.return,le)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,lu(e,n,l!==null?l.memoizedProps:n)),a&1024&&(su=!0);break;case 6:if(ct(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(le){Ce(e,e.return,le)}}break;case 3:if(si=null,n=Lt,Lt=ai(t.containerInfo),ct(t,e),Lt=n,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ka(t.containerInfo)}catch(le){Ce(e,e.return,le)}su&&(su=!1,ld(e));break;case 4:a=Lt,Lt=ai(e.stateNode.containerInfo),ct(t,e),ot(e),Lt=a;break;case 12:ct(t,e),ot(e);break;case 31:ct(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xs(e,a)));break;case 13:ct(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Zs=ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xs(e,a)));break;case 22:n=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,k=sl,L=Ke;if(sl=k||n,Ke=L||b,ct(t,e),Ke=L,sl=k,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||b||sl||Ke||sa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(i=b.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{m=b.stateNode;var Y=b.memoizedProps.style,C=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;m.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(le){Ce(b,b.return,le)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(le){Ce(b,b.return,le)}}}else if(t.tag===18){if(l===null){b=t;try{var _=b.stateNode;n?Zd(_,!0):Zd(b.stateNode,!1)}catch(le){Ce(b,b.return,le)}}}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,Xs(e,l))));break;case 19:ct(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xs(e,a)));break;case 30:break;case 21:break;default:ct(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Kf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=au(e);Gs(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(va(u,""),l.flags&=-33);var m=au(e);Gs(e,m,u);break;case 3:case 4:var b=l.stateNode.containerInfo,k=au(e);nu(e,k,b);break;default:throw Error(o(161))}}catch(L){Ce(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ld(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ld(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function rl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wf(e,t.alternate,t),t=t.sibling}function sa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:kl(4,t,t.return),sa(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Zf(t,t.return,l),sa(t);break;case 27:Bn(t.stateNode);case 26:case 5:Gt(t,t.return),sa(t);break;case 22:t.memoizedState===null&&sa(t);break;case 30:sa(t);break;default:sa(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:ul(n,i,l),An(4,i);break;case 1:if(ul(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(k){Ce(a,a.return,k)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)zo(b[n],m)}catch(k){Ce(a,a.return,k)}}l&&u&64&&Qf(i),Mn(i,i.return);break;case 27:Jf(i);case 26:case 5:ul(n,i,l),l&&a===null&&u&4&&Vf(i),Mn(i,i.return);break;case 12:ul(n,i,l);break;case 31:ul(n,i,l),l&&u&4&&Pf(n,i);break;case 13:ul(n,i,l),l&&u&4&&ed(n,i);break;case 22:i.memoizedState===null&&ul(n,i,l),Mn(i,i.return);break;case 30:break;default:ul(n,i,l)}t=t.sibling}}function iu(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&&mn(l))}function ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ad(e,t,l,a),t=t.sibling}function ad(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),n&2048&&An(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(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&&mn(e)));break;case 12:if(n&2048){Ht(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,m=i.onPostCommit;typeof m=="function"&&m(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Ht(e,t,l,a):kn(e,t):i._visibility&2?Ht(e,t,l,a):(i._visibility|=2,Ba(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&iu(u,t);break;case 24:Ht(e,t,l,a),n&2048&&ru(t.alternate,t);break;default:Ht(e,t,l,a)}}function Ba(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,m=l,b=a,k=u.flags;switch(u.tag){case 0:case 11:case 15:Ba(i,u,m,b,n),An(8,u);break;case 23:break;case 22:var L=u.stateNode;u.memoizedState!==null?L._visibility&2?Ba(i,u,m,b,n):kn(i,u):(L._visibility|=2,Ba(i,u,m,b,n)),n&&k&2048&&iu(u.alternate,u);break;case 24:Ba(i,u,m,b,n),n&&k&2048&&ru(u.alternate,u);break;default:Ba(i,u,m,b,n)}t=t.sibling}}function kn(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:kn(l,a),n&2048&&iu(a.alternate,a);break;case 24:kn(l,a),n&2048&&ru(a.alternate,a);break;default:kn(l,a)}t=t.sibling}}var Cn=8192;function La(e,t,l){if(e.subtreeFlags&Cn)for(e=e.child;e!==null;)nd(e,t,l),e=e.sibling}function nd(e,t,l){switch(e.tag){case 26:La(e,t,l),e.flags&Cn&&e.memoizedState!==null&&Mv(l,Lt,e.memoizedState,e.memoizedProps);break;case 5:La(e,t,l);break;case 3:case 4:var a=Lt;Lt=ai(e.stateNode.containerInfo),La(e,t,l),Lt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Cn,Cn=16777216,La(e,t,l),Cn=a):La(e,t,l));break;default:La(e,t,l)}}function sd(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 _n(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];We=a,rd(a,e)}sd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)id(e),e=e.sibling}function id(e){switch(e.tag){case 0:case 11:case 15:_n(e),e.flags&2048&&kl(9,e,e.return);break;case 3:_n(e);break;case 12:_n(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qs(e)):_n(e);break;default:_n(e)}}function Qs(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];We=a,rd(a,e)}sd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kl(8,t,t.return),Qs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Qs(t));break;default:Qs(t)}e=e.sibling}}function rd(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:kl(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:mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,We=a;else e:for(l=e;We!==null;){a=We;var n=a.sibling,i=a.return;if(Ff(a),a===l){We=null;break e}if(n!==null){n.return=i,We=n;break e}We=i}}}var Gx={getCacheForType:function(e){var t=Pe(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Pe(Qe).controller.signal}},Xx=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Oe=null,ve=null,ge=0,ke=0,jt=null,Cl=!1,Ha=!1,uu=!1,cl=0,Ye=0,_l=0,ia=0,cu=0,St=0,Ua=0,Rn=null,ft=null,ou=!1,Zs=0,ud=0,Vs=1/0,Ks=null,Rl=null,Je=0,zl=null,qa=null,ol=0,fu=0,du=null,cd=null,zn=0,mu=null;function Nt(){return(Ae&2)!==0&&ge!==0?ge&-ge:T.T!==null?gu():Nc()}function od(){if(St===0)if((ge&536870912)===0||Se){var e=ts;ts<<=1,(ts&3932160)===0&&(ts=262144),St=e}else St=536870912;return e=gt.current,e!==null&&(e.flags|=32),St}function dt(e,t,l){(e===Oe&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ya(e,0),wl(e,ge,St,!1)),Ia(e,l),((Ae&2)===0||e!==Oe)&&(e===Oe&&((Ae&2)===0&&(ia|=l),Ye===4&&wl(e,ge,St,!1)),Xt(e))}function fd(e,t,l){if((Ae&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Fa(e,t),n=a?Vx(e,t):xu(e,t,!0),i=a;do{if(n===0){Ha&&!a&&wl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Qx(l)){n=xu(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var m=e;n=Rn;var b=m.current.memoizedState.isDehydrated;if(b&&(Ya(m,u).flags|=256),u=xu(m,u,!1),u!==2){if(uu&&!b){m.errorRecoveryDisabledLanes|=i,ia|=i,n=4;break e}i=ft,ft=n,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){Ya(e,0),wl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:wl(a,t,St,!Cl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Zs+300-ht(),10<n)){if(wl(a,t,St,!Cl),as(a,0,!0)!==0)break e;ol=t,a.timeoutHandle=Gd(dd.bind(null,a,l,ft,Ks,ou,t,St,ia,Ua,Cl,i,"Throttled",-0,0),n);break e}dd(a,l,ft,Ks,ou,t,St,ia,Ua,Cl,i,null,-0,0)}}break}while(!0);Xt(e)}function dd(e,t,l,a,n,i,u,m,b,k,L,Y,C,_){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},nd(t,i,Y);var le=(i&62914560)===i?Zs-ht():(i&4194048)===i?ud-ht():0;if(le=kv(Y,le),le!==null){ol=i,e.cancelPendingCommit=le(bd.bind(null,e,t,i,l,a,n,u,m,b,L,Y,null,C,_)),wl(e,i,u,!k);return}}bd(e,t,i,l,a,n,u,m,b)}function Qx(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],i=n.getSnapshot;n=n.value;try{if(!pt(i(),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 wl(e,t,l,a){t&=~cu,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-vt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&bc(e,l,t)}function Js(){return(Ae&6)===0?(wn(0),!1):!0}function hu(){if(ve!==null){if(ke===0)var e=ve.return;else e=ve,Pt=Fl=null,_r(e),Ra=null,xn=0,e=ve;for(;e!==null;)Xf(e.alternate,e),e=e.return;ve=null}}function Ya(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ov(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ol=0,hu(),Oe=e,ve=l=Ft(e.current,null),ge=t,ke=0,jt=null,Cl=!1,Ha=Fa(e,t),uu=!1,Ua=St=cu=ia=_l=Ye=0,ft=Rn=null,ou=!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-vt(a),i=1<<n;t|=e[n],a&=~i}return cl=t,xs(),l}function md(e,t){de=null,T.H=Nn,t===_a||t===Ns?(t=ko(),ke=3):t===yr?(t=ko(),ke=4):ke=t===Vr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ve===null&&(Ye=1,Ls(e,Mt(t,e.current)))}function hd(){var e=gt.current;return e===null?!0:(ge&4194048)===ge?Rt===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Rt:!1}function xd(){var e=T.H;return T.H=Nn,e===null?Nn:e}function vd(){var e=T.A;return T.A=Gx,e}function $s(){Ye=4,Cl||(ge&4194048)!==ge&&gt.current!==null||(Ha=!0),(_l&134217727)===0&&(ia&134217727)===0||Oe===null||wl(Oe,ge,St,!1)}function xu(e,t,l){var a=Ae;Ae|=2;var n=xd(),i=vd();(Oe!==e||ge!==t)&&(Ks=null,Ya(e,t)),t=!1;var u=Ye;e:do try{if(ke!==0&&ve!==null){var m=ve,b=jt;switch(ke){case 8:hu(),u=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var k=ke;if(ke=0,jt=null,Ga(e,m,b,k),l&&Ha){u=0;break e}break;default:k=ke,ke=0,jt=null,Ga(e,m,b,k)}}Zx(),u=Ye;break}catch(L){md(e,L)}while(!0);return t&&e.shellSuspendCounter++,Pt=Fl=null,Ae=a,T.H=n,T.A=i,ve===null&&(Oe=null,ge=0,xs()),u}function Zx(){for(;ve!==null;)pd(ve)}function Vx(e,t){var l=Ae;Ae|=2;var a=xd(),n=vd();Oe!==e||ge!==t?(Ks=null,Vs=ht()+500,Ya(e,t)):Ha=Fa(e,t);e:do try{if(ke!==0&&ve!==null){t=ve;var i=jt;t:switch(ke){case 1:ke=0,jt=null,Ga(e,t,i,1);break;case 2:case 9:if(Ao(i)){ke=0,jt=null,yd(t);break}t=function(){ke!==2&&ke!==9||Oe!==e||(ke=7),Xt(e)},i.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Ao(i)?(ke=0,jt=null,yd(t)):(ke=0,jt=null,Ga(e,t,i,7));break;case 5:var u=null;switch(ve.tag){case 26:u=ve.memoizedState;case 5:case 27:var m=ve;if(u?am(u):m.stateNode.complete){ke=0,jt=null;var b=m.sibling;if(b!==null)ve=b;else{var k=m.return;k!==null?(ve=k,Ws(k)):ve=null}break t}}ke=0,jt=null,Ga(e,t,i,5);break;case 6:ke=0,jt=null,Ga(e,t,i,6);break;case 8:hu(),Ye=6;break e;default:throw Error(o(462))}}Kx();break}catch(L){md(e,L)}while(!0);return Pt=Fl=null,T.H=a,T.A=n,Ae=l,ve!==null?0:(Oe=null,ge=0,xs(),Ye)}function Kx(){for(;ve!==null&&!vh();)pd(ve)}function pd(e){var t=Yf(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?Ws(e):ve=t}function yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Df(l,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Df(l,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:_r(t);default:Xf(l,t),t=ve=xo(t,cl),t=Yf(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?Ws(e):ve=t}function Ga(e,t,l,a){Pt=Fl=null,_r(t),Ra=null,xn=0;var n=t.return;try{if(Dx(e,n,t,l,ge)){Ye=1,Ls(e,Mt(l,e.current)),ve=null;return}}catch(i){if(n!==null)throw ve=n,i;Ye=1,Ls(e,Mt(l,e.current)),ve=null;return}t.flags&32768?(Se||a===1?e=!0:Ha||(ge&536870912)!==0?e=!1:(Cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gd(t,e)):Ws(t)}function Ws(e){var t=e;do{if((t.flags&32768)!==0){gd(t,Cl);return}e=t.return;var l=Hx(t.alternate,t,cl);if(l!==null){ve=l;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ye===0&&(Ye=5)}function gd(e,t){do{var l=Ux(e.alternate,e);if(l!==null){l.flags&=32767,ve=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=l}while(e!==null);Ye=6,ve=null}function bd(e,t,l,a,n,i,u,m,b){e.cancelPendingCommit=null;do Fs();while(Je!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=ar,Ah(e,l,i,u,m,b),e===Oe&&(ve=Oe=null,ge=0),qa=t,zl=e,ol=l,fu=i,du=n,cd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fx(Pn,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,n=J.p,J.p=2,u=Ae,Ae|=4;try{qx(e,t,l)}finally{Ae=u,J.p=n,T.T=a}}Je=1,jd(),Sd(),Nd()}}function jd(){if(Je===1){Je=0;var e=zl,t=qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=J.p;J.p=2;var n=Ae;Ae|=4;try{td(t,e);var i=Mu,u=so(e.containerInfo),m=i.focusedElem,b=i.selectionRange;if(u!==m&&m&&m.ownerDocument&&no(m.ownerDocument.documentElement,m)){if(b!==null&&Ii(m)){var k=b.start,L=b.end;if(L===void 0&&(L=k),"selectionStart"in m)m.selectionStart=k,m.selectionEnd=Math.min(L,m.value.length);else{var Y=m.ownerDocument||document,C=Y&&Y.defaultView||window;if(C.getSelection){var _=C.getSelection(),le=m.textContent.length,re=Math.min(b.start,le),ze=b.end===void 0?re:Math.min(b.end,le);!_.extend&&re>ze&&(u=ze,ze=re,re=u);var A=ao(m,re),S=ao(m,ze);if(A&&S&&(_.rangeCount!==1||_.anchorNode!==A.node||_.anchorOffset!==A.offset||_.focusNode!==S.node||_.focusOffset!==S.offset)){var M=Y.createRange();M.setStart(A.node,A.offset),_.removeAllRanges(),re>ze?(_.addRange(M),_.extend(S.node,S.offset)):(M.setEnd(S.node,S.offset),_.addRange(M))}}}}for(Y=[],_=m;_=_.parentNode;)_.nodeType===1&&Y.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<Y.length;m++){var q=Y[m];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}ci=!!Au,Mu=Au=null}finally{Ae=n,J.p=a,T.T=l}}e.current=t,Je=2}}function Sd(){if(Je===2){Je=0;var e=zl,t=qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=J.p;J.p=2;var n=Ae;Ae|=4;try{Wf(e,t.alternate,t)}finally{Ae=n,J.p=a,T.T=l}}Je=3}}function Nd(){if(Je===4||Je===3){Je=0,ph();var e=zl,t=qa,l=ol,a=cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,qa=zl=null,Ed(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Rl=null),wi(l),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Wa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,n=J.p,J.p=2,T.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var m=a[u];i(m.value,{componentStack:m.stack})}}finally{T.T=t,J.p=n}}(ol&3)!==0&&Fs(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===mu?zn++:(zn=0,mu=e):zn=0,wn(0)}}function Ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mn(t)))}function Fs(){return jd(),Sd(),Nd(),Td()}function Td(){if(Je!==5)return!1;var e=zl,t=fu;fu=0;var l=wi(ol),a=T.T,n=J.p;try{J.p=32>l?32:l,T.T=null,l=du,du=null;var i=zl,u=ol;if(Je=0,qa=zl=null,ol=0,(Ae&6)!==0)throw Error(o(331));var m=Ae;if(Ae|=4,id(i.current),ad(i,i.current,u,l),Ae=m,wn(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Wa,i)}catch{}return!0}finally{J.p=n,T.T=a,Ed(e,t)}}function Ad(e,t,l){t=Mt(l,t),t=Zr(e.stateNode,t,2),e=Tl(e,t,2),e!==null&&(Ia(e,2),Xt(e))}function Ce(e,t,l){if(e.tag===3)Ad(e,e,l);else for(;t!==null;){if(t.tag===3){Ad(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Rl===null||!Rl.has(a))){e=Mt(l,e),l=Mf(2),a=Tl(t,l,2),a!==null&&(kf(l,a,t,e),Ia(a,2),Xt(a));break}}t=t.return}}function vu(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Xx;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)||(uu=!0,n.add(l),e=Jx.bind(null,e,t,l),t.then(e,e))}function Jx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(ge&l)===l&&(Ye===4||Ye===3&&(ge&62914560)===ge&&300>ht()-Zs?(Ae&2)===0&&Ya(e,0):cu|=l,Ua===ge&&(Ua=0)),Xt(e)}function Md(e,t){t===0&&(t=gc()),e=Jl(e,t),e!==null&&(Ia(e,t),Xt(e))}function $x(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function Wx(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(o(314))}a!==null&&a.delete(t),Md(e,l)}function Fx(e,t){return Ci(e,t)}var Is=null,Xa=null,pu=!1,Ps=!1,yu=!1,Ol=0;function Xt(e){e!==Xa&&e.next===null&&(Xa===null?Is=Xa=e:Xa=Xa.next=e),Ps=!0,pu||(pu=!0,Px())}function wn(e,t){if(!yu&&Ps){yu=!0;do for(var l=!1,a=Is;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-vt(42|e)+1)-1,i&=n&~(u&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Rd(a,i))}else i=ge,i=as(a,a===Oe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Fa(a,i)||(l=!0,Rd(a,i));a=a.next}while(l);yu=!1}}function Ix(){kd()}function kd(){Ps=pu=!1;var e=0;Ol!==0&&cv()&&(e=Ol);for(var t=ht(),l=null,a=Is;a!==null;){var n=a.next,i=Cd(a,t);i===0?(a.next=null,l===null?Is=n:l.next=n,n===null&&(Xa=l)):(l=a,(e!==0||(i&3)!==0)&&(Ps=!0)),a=n}Je!==0&&Je!==5||wn(e),Ol!==0&&(Ol=0)}function Cd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-vt(i),m=1<<u,b=n[u];b===-1?((m&l)===0||(m&a)!==0)&&(n[u]=Th(m,t)):b<=t&&(e.expiredLanes|=m),i&=~m}if(t=Oe,l=ge,l=as(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&_i(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&_i(a),wi(l)){case 2:case 8:l=pc;break;case 32:l=Pn;break;case 268435456:l=yc;break;default:l=Pn}return a=_d.bind(null,e),l=Ci(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&_i(a),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fs()&&e.callbackNode!==l)return null;var a=ge;return a=as(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(fd(e,a,t),Cd(e,ht()),e.callbackNode!=null&&e.callbackNode===l?_d.bind(null,e):null)}function Rd(e,t){if(Fs())return null;fd(e,t,!0)}function Px(){fv(function(){(Ae&6)!==0?Ci(vc,Ix):kd()})}function gu(){if(Ol===0){var e=ka;e===0&&(e=es,es<<=1,(es&261888)===0&&(es=256)),Ol=e}return Ol}function zd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:rs(""+e)}function wd(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 ev(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=zd((n[it]||null).action),u=a.submitter;u&&(t=(t=u[it]||null)?zd(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var m=new fs("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ol!==0){var b=u?wd(n,u):new FormData(n);Ur(l,{pending:!0,data:b,method:n.method,action:i},null,b)}}else typeof i=="function"&&(m.preventDefault(),b=u?wd(n,u):new FormData(n),Ur(l,{pending:!0,data:b,method:n.method,action:i},i,b))},currentTarget:n}]})}}for(var bu=0;bu<lr.length;bu++){var ju=lr[bu],tv=ju.toLowerCase(),lv=ju[0].toUpperCase()+ju.slice(1);Bt(tv,"on"+lv)}Bt(uo,"onAnimationEnd"),Bt(co,"onAnimationIteration"),Bt(oo,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(yx,"onTransitionRun"),Bt(gx,"onTransitionStart"),Bt(bx,"onTransitionCancel"),Bt(fo,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var On="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(" "),av=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(On));function Od(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 i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var m=a[u],b=m.instance,k=m.currentTarget;if(m=m.listener,b!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=k;try{i(n)}catch(L){hs(L)}n.currentTarget=null,i=b}else for(u=0;u<a.length;u++){if(m=a[u],b=m.instance,k=m.currentTarget,m=m.listener,b!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=k;try{i(n)}catch(L){hs(L)}n.currentTarget=null,i=b}}}}function pe(e,t){var l=t[Oi];l===void 0&&(l=t[Oi]=new Set);var a=e+"__bubble";l.has(a)||(Dd(t,e,2,!1),l.add(a))}function Su(e,t,l){var a=0;t&&(a|=4),Dd(l,e,a,t)}var ei="_reactListening"+Math.random().toString(36).slice(2);function Nu(e){if(!e[ei]){e[ei]=!0,Ac.forEach(function(l){l!=="selectionchange"&&(av.has(l)||Su(l,!1,e),Su(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ei]||(t[ei]=!0,Su("selectionchange",!1,t))}}function Dd(e,t,l,a){switch(om(t)){case 2:var n=Rv;break;case 8:n=zv;break;default:n=Hu}l=n.bind(null,t,l,e),n=void 0,!Xi||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 Eu(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var m=a.stateNode.containerInfo;if(m===n)break;if(u===4)for(u=a.return;u!==null;){var b=u.tag;if((b===3||b===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;m!==null;){if(u=fa(m),u===null)return;if(b=u.tag,b===5||b===6||b===26||b===27){a=i=u;continue e}m=m.parentNode}}a=a.return}Hc(function(){var k=i,L=Yi(l),Y=[];e:{var C=mo.get(e);if(C!==void 0){var _=fs,le=e;switch(e){case"keypress":if(cs(l)===0)break e;case"keydown":case"keyup":_=Wh;break;case"focusin":le="focus",_=Ki;break;case"focusout":le="blur",_=Ki;break;case"beforeblur":case"afterblur":_=Ki;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":_=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Ph;break;case uo:case co:case oo:_=Yh;break;case fo:_=tx;break;case"scroll":case"scrollend":_=Bh;break;case"wheel":_=ax;break;case"copy":case"cut":case"paste":_=Xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Xc;break;case"toggle":case"beforetoggle":_=sx}var re=(t&4)!==0,ze=!re&&(e==="scroll"||e==="scrollend"),A=re?C!==null?C+"Capture":null:C;re=[];for(var S=k,M;S!==null;){var q=S;if(M=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||M===null||A===null||(q=tn(S,A),q!=null&&re.push(Dn(S,q,M))),ze)break;S=S.return}0<re.length&&(C=new _(C,le,null,l,L),Y.push({event:C,listeners:re}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",C&&l!==qi&&(le=l.relatedTarget||l.fromElement)&&(fa(le)||le[oa]))break e;if((_||C)&&(C=L.window===L?L:(C=L.ownerDocument)?C.defaultView||C.parentWindow:window,_?(le=l.relatedTarget||l.toElement,_=k,le=le?fa(le):null,le!==null&&(ze=h(le),re=le.tag,le!==ze||re!==5&&re!==27&&re!==6)&&(le=null)):(_=null,le=k),_!==le)){if(re=Yc,q="onMouseLeave",A="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(re=Xc,q="onPointerLeave",A="onPointerEnter",S="pointer"),ze=_==null?C:en(_),M=le==null?C:en(le),C=new re(q,S+"leave",_,l,L),C.target=ze,C.relatedTarget=M,q=null,fa(L)===k&&(re=new re(A,S+"enter",le,l,L),re.target=M,re.relatedTarget=ze,q=re),ze=q,_&&le)t:{for(re=nv,A=_,S=le,M=0,q=A;q;q=re(q))M++;q=0;for(var se=S;se;se=re(se))q++;for(;0<M-q;)A=re(A),M--;for(;0<q-M;)S=re(S),q--;for(;M--;){if(A===S||S!==null&&A===S.alternate){re=A;break t}A=re(A),S=re(S)}re=null}else re=null;_!==null&&Bd(Y,C,_,re,!1),le!==null&&ze!==null&&Bd(Y,ze,le,re,!0)}}e:{if(C=k?en(k):window,_=C.nodeName&&C.nodeName.toLowerCase(),_==="select"||_==="input"&&C.type==="file")var Ee=Fc;else if($c(C))if(Ic)Ee=xx;else{Ee=mx;var ae=dx}else _=C.nodeName,!_||_.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?k&&Ui(k.elementType)&&(Ee=Fc):Ee=hx;if(Ee&&(Ee=Ee(e,k))){Wc(Y,Ee,l,L);break e}ae&&ae(e,C,k),e==="focusout"&&k&&C.type==="number"&&k.memoizedProps.value!=null&&Hi(C,"number",C.value)}switch(ae=k?en(k):window,e){case"focusin":($c(ae)||ae.contentEditable==="true")&&(ba=ae,Pi=k,on=null);break;case"focusout":on=Pi=ba=null;break;case"mousedown":er=!0;break;case"contextmenu":case"mouseup":case"dragend":er=!1,io(Y,l,L);break;case"selectionchange":if(px)break;case"keydown":case"keyup":io(Y,l,L)}var me;if($i)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else ga?Kc(e,l)&&(be="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(be="onCompositionStart");be&&(Qc&&l.locale!=="ko"&&(ga||be!=="onCompositionStart"?be==="onCompositionEnd"&&ga&&(me=Uc()):(yl=L,Qi="value"in yl?yl.value:yl.textContent,ga=!0)),ae=ti(k,be),0<ae.length&&(be=new Gc(be,e,null,l,L),Y.push({event:be,listeners:ae}),me?be.data=me:(me=Jc(l),me!==null&&(be.data=me)))),(me=rx?ux(e,l):cx(e,l))&&(be=ti(k,"onBeforeInput"),0<be.length&&(ae=new Gc("onBeforeInput","beforeinput",null,l,L),Y.push({event:ae,listeners:be}),ae.data=me)),ev(Y,e,k,l,L)}Od(Y,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ti(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=tn(e,l),n!=null&&a.unshift(Dn(e,n,i)),n=tn(e,t),n!=null&&a.push(Dn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function nv(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 i=t._reactName,u=[];l!==null&&l!==a;){var m=l,b=m.alternate,k=m.stateNode;if(m=m.tag,b!==null&&b===a)break;m!==5&&m!==26&&m!==27||k===null||(b=k,n?(k=tn(l,i),k!=null&&u.unshift(Dn(l,k,b))):n||(k=tn(l,i),k!=null&&u.push(Dn(l,k,b)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var sv=/\r\n?/g,iv=/\u0000|\uFFFD/g;function Ld(e){return(typeof e=="string"?e:""+e).replace(sv,`
49
+ `).replace(iv,"")}function Hd(e,t){return t=Ld(t),Ld(e)===t}function Re(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||va(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&va(e,""+a);break;case"className":ss(e,"class",a);break;case"tabIndex":ss(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ss(e,l,a);break;case"style":Bc(e,a,i);break;case"data":if(t!=="object"){ss(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=rs(""+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 i=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=rs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(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=rs(""+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":pe("beforetoggle",e),pe("toggle",e),ns(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ns(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=Oh.get(l)||l,ns(e,l,a))}}function Tu(e,t,l,a,n,i){switch(l){case"style":Bc(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?va(e,a):(typeof a=="number"||typeof a=="bigint")&&va(e,""+a);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[it]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==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,""):ns(e,l,a)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,i,u,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":pe("invalid",e);var m=i=u=n=null,b=null,k=null;for(a in l)if(l.hasOwnProperty(a)){var L=l[a];if(L!=null)switch(a){case"name":n=L;break;case"type":u=L;break;case"checked":b=L;break;case"defaultChecked":k=L;break;case"value":i=L;break;case"defaultValue":m=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Re(e,t,a,L,l,null)}}zc(e,i,m,b,k,u,n,!1);return;case"select":pe("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":u=m;break;case"multiple":a=m;default:Re(e,t,n,m,l,null)}t=i,l=u,e.multiple=!!a,t!=null?xa(e,!!a,t,!1):l!=null&&xa(e,!!a,l,!0);return;case"textarea":pe("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(m=l[u],m!=null))switch(u){case"value":a=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:Re(e,t,u,m,l,null)}Oc(e,a,n,i);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,b,a,l,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<On.length;a++)pe(On[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in l)if(l.hasOwnProperty(k)&&(a=l[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,k,a,l,null)}return;default:if(Ui(t)){for(L in l)l.hasOwnProperty(L)&&(a=l[L],a!==void 0&&Tu(e,t,L,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Re(e,t,m,a,l,null))}function rv(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,i=null,u=null,m=null,b=null,k=null,L=null;for(_ in l){var Y=l[_];if(l.hasOwnProperty(_)&&Y!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=Y;default:a.hasOwnProperty(_)||Re(e,t,_,null,a,Y)}}for(var C in a){var _=a[C];if(Y=l[C],a.hasOwnProperty(C)&&(_!=null||Y!=null))switch(C){case"type":i=_;break;case"name":n=_;break;case"checked":k=_;break;case"defaultChecked":L=_;break;case"value":u=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:_!==Y&&Re(e,t,C,_,a,Y)}}Li(e,u,m,b,k,L,i,n);return;case"select":_=u=m=C=null;for(i in l)if(b=l[i],l.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":_=b;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,b)}for(n in a)if(i=a[n],b=l[n],a.hasOwnProperty(n)&&(i!=null||b!=null))switch(n){case"value":C=i;break;case"defaultValue":m=i;break;case"multiple":u=i;default:i!==b&&Re(e,t,n,i,a,b)}t=m,l=u,a=_,C!=null?xa(e,!!l,C,!1):!!a!=!!l&&(t!=null?xa(e,!!l,t,!0):xa(e,!!l,l?[]:"",!1));return;case"textarea":_=C=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Re(e,t,m,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":C=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Re(e,t,u,n,a,i)}wc(e,C,_);return;case"option":for(var le in l)if(C=l[le],l.hasOwnProperty(le)&&C!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Re(e,t,le,null,a,C)}for(b in a)if(C=a[b],_=l[b],a.hasOwnProperty(b)&&C!==_&&(C!=null||_!=null))switch(b){case"selected":e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Re(e,t,b,C,a,_)}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 re in l)C=l[re],l.hasOwnProperty(re)&&C!=null&&!a.hasOwnProperty(re)&&Re(e,t,re,null,a,C);for(k in a)if(C=a[k],_=l[k],a.hasOwnProperty(k)&&C!==_&&(C!=null||_!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:Re(e,t,k,C,a,_)}return;default:if(Ui(t)){for(var ze in l)C=l[ze],l.hasOwnProperty(ze)&&C!==void 0&&!a.hasOwnProperty(ze)&&Tu(e,t,ze,void 0,a,C);for(L in a)C=a[L],_=l[L],!a.hasOwnProperty(L)||C===_||C===void 0&&_===void 0||Tu(e,t,L,C,a,_);return}}for(var A in l)C=l[A],l.hasOwnProperty(A)&&C!=null&&!a.hasOwnProperty(A)&&Re(e,t,A,null,a,C);for(Y in a)C=a[Y],_=l[Y],!a.hasOwnProperty(Y)||C===_||C==null&&_==null||Re(e,t,Y,C,a,_)}function Ud(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uv(){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],i=n.transferSize,u=n.initiatorType,m=n.duration;if(i&&m&&Ud(u)){for(u=0,m=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],k=b.startTime;if(k>m)break;var L=b.transferSize,Y=b.initiatorType;L&&Ud(Y)&&(b=b.responseEnd,u+=L*(b<m?1:(m-k)/(b-k)))}if(--a,t+=8*(i+u)/(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 Au=null,Mu=null;function li(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 Yd(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 ku(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 Cu=null;function cv(){var e=window.event;return e&&e.type==="popstate"?e===Cu?!1:(Cu=e,!0):(Cu=null,!1)}var Gd=typeof setTimeout=="function"?setTimeout:void 0,ov=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,fv=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(dv)}:Gd;function dv(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Qd(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),Ka(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Bn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Bn(l);for(var i=l.firstChild;i;){var u=i.nextSibling,m=i.nodeName;i[Pa]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&Bn(e.ownerDocument.body);l=n}while(l);Ka(t)}function Zd(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 _u(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":_u(l),Di(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function mv(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[Pa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==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(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function hv(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 Vd(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 Ru(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xv(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 wu=null;function Kd(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 Jd(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 $d(e,t,l){switch(t=li(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Bn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Di(e)}var wt=new Map,Wd=new Set;function ai(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fl=J.d;J.d={f:vv,r:pv,D:yv,C:gv,L:bv,m:jv,X:Nv,S:Sv,M:Ev};function vv(){var e=fl.f(),t=Js();return e||t}function pv(e){var t=da(e);t!==null&&t.tag===5&&t.type==="form"?mf(t):fl.r(e)}var Qa=typeof document>"u"?null:document;function Fd(e,t,l){var a=Qa;if(a&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Wd.has(n)||(Wd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function yv(e){fl.D(e),Fd("dns-prefetch",e,null)}function gv(e,t){fl.C(e,t),Fd("preconnect",e,t)}function bv(e,t,l){fl.L(e,t,l);var a=Qa;if(a&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Tt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Tt(l.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var i=n;switch(t){case"style":i=Za(e);break;case"script":i=Va(e)}wt.has(i)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),wt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Ln(i))||t==="script"&&a.querySelector(Hn(i))||(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function jv(e,t){fl.m(e,t);var l=Qa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Va(e)}if(!wt.has(i)&&(e=g({rel:"modulepreload",href:e},t),wt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(i)))return}a=l.createElement("link"),tt(a,"link",e),$e(a),l.head.appendChild(a)}}}function Sv(e,t,l){fl.S(e,t,l);var a=Qa;if(a&&e){var n=ma(a).hoistableStyles,i=Za(e);t=t||"default";var u=n.get(i);if(!u){var m={loading:0,preload:null};if(u=a.querySelector(Ln(i)))m.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=wt.get(i))&&Ou(e,l);var b=u=a.createElement("link");$e(b),tt(b,"link",e),b._p=new Promise(function(k,L){b.onload=k,b.onerror=L}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,ni(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:m},n.set(i,u)}}}function Nv(e,t){fl.X(e,t);var l=Qa;if(l&&e){var a=ma(l).hoistableScripts,n=Va(e),i=a.get(n);i||(i=l.querySelector(Hn(n)),i||(e=g({src:e,async:!0},t),(t=wt.get(n))&&Du(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Ev(e,t){fl.M(e,t);var l=Qa;if(l&&e){var a=ma(l).hoistableScripts,n=Va(e),i=a.get(n);i||(i=l.querySelector(Hn(n)),i||(e=g({src:e,async:!0,type:"module"},t),(t=wt.get(n))&&Du(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Id(e,t,l,a){var n=(n=ie.current)?ai(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Za(l.href),l=ma(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=Za(l.href);var i=ma(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(Ln(e)))&&!i._p&&(u.instance=i,u.state.loading=5),wt.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},wt.set(e,l),i||Tv(n,e,l,u.state))),t&&a===null)throw Error(o(528,""));return u}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Va(l),l=ma(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(o(444,e))}}function Za(e){return'href="'+Tt(e)+'"'}function Ln(e){return'link[rel="stylesheet"]['+e+"]"}function Pd(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Tv(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}),tt(t,"link",l),$e(t),e.head.appendChild(t))}function Va(e){return'[src="'+Tt(e)+'"]'}function Hn(e){return"script[async]"+e}function em(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(l.href)+'"]');if(a)return t.instance=a,$e(a),a;var n=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),$e(a),tt(a,"style",n),ni(a,l.precedence,e),t.instance=a;case"stylesheet":n=Za(l.href);var i=e.querySelector(Ln(n));if(i)return t.state.loading|=4,t.instance=i,$e(i),i;a=Pd(l),(n=wt.get(n))&&Ou(a,n),i=(e.ownerDocument||e).createElement("link"),$e(i);var u=i;return u._p=new Promise(function(m,b){u.onload=m,u.onerror=b}),tt(i,"link",a),t.state.loading|=4,ni(i,l.precedence,e),t.instance=i;case"script":return i=Va(l.src),(n=e.querySelector(Hn(i)))?(t.instance=n,$e(n),n):(a=l,(n=wt.get(i))&&(a=g({},l),Du(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),$e(n),tt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ni(a,l.precedence,e));return t.instance}function ni(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var m=a[u];if(m.dataset.precedence===t)i=m;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ou(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var si=null;function tm(e,t,l){if(si===null){var a=new Map,n=si=new Map;n.set(l,a)}else n=si,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 i=l[n];if(!(i[Pa]||i[Fe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var m=a.get(u);m?m.push(i):a.set(u,[i])}}return a}function lm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Av(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 am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mv(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=Za(a.href),i=t.querySelector(Ln(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ii.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,$e(i);return}i=t.ownerDocument||t,a=Pd(a),(n=wt.get(n))&&Ou(a,n),i=i.createElement("link"),$e(i);var u=i;u._p=new Promise(function(m,b){u.onload=m,u.onerror=b}),tt(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ii.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Bu=0;function kv(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Bu===0&&(Bu=62500*uv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Bu?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ri=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ri=new Map,t.forEach(Cv,e),ri=null,ii.call(e))}function Cv(e,t){if(!(t.state.loading&4)){var l=ri.get(e);if(l)var a=l.get(null);else{l=new Map,ri.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=ii.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Un={$$typeof:W,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function _v(e,t,l,a,n,i,u,m,b){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=Ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.hiddenUpdates=Ri(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function nm(e,t,l,a,n,i,u,m,b,k,L,Y){return e=new _v(e,t,l,u,b,k,L,Y,m),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=xr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},gr(i),e}function sm(e){return e?(e=Na,e):Na}function im(e,t,l,a,n,i){n=sm(n),a.context===null?a.context=n:a.pendingContext=n,a=El(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Tl(e,a,t),l!==null&&(dt(l,e,t),pn(l,e,t))}function rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lu(e,t){rm(e,t),(e=e.alternate)&&rm(e,t)}function um(e){if(e.tag===13||e.tag===31){var t=Jl(e,67108864);t!==null&&dt(t,e,67108864),Lu(e,67108864)}}function cm(e){if(e.tag===13||e.tag===31){var t=Nt();t=zi(t);var l=Jl(e,t);l!==null&&dt(l,e,t),Lu(e,t)}}var ci=!0;function Rv(e,t,l,a){var n=T.T;T.T=null;var i=J.p;try{J.p=2,Hu(e,t,l,a)}finally{J.p=i,T.T=n}}function zv(e,t,l,a){var n=T.T;T.T=null;var i=J.p;try{J.p=8,Hu(e,t,l,a)}finally{J.p=i,T.T=n}}function Hu(e,t,l,a){if(ci){var n=Uu(a);if(n===null)Eu(e,t,a,oi,l),fm(e,a);else if(Ov(n,e,t,l,a))a.stopPropagation();else if(fm(e,a),t&4&&-1<wv.indexOf(e)){for(;n!==null;){var i=da(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Xl(i.pendingLanes);if(u!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;u;){var b=1<<31-vt(u);m.entanglements[1]|=b,u&=~b}Xt(i),(Ae&6)===0&&(Vs=ht()+500,wn(0))}}break;case 31:case 13:m=Jl(i,2),m!==null&&dt(m,i,2),Js(),Lu(i,2)}if(i=Uu(a),i===null&&Eu(e,t,a,oi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Eu(e,t,a,null,l)}}function Uu(e){return e=Yi(e),qu(e)}var oi=null;function qu(e){if(oi=null,e=fa(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=j(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 oi=e,null}function om(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(yh()){case vc:return 2;case pc:return 8;case Pn:case gh:return 32;case yc:return 268435456;default:return 32}default:return 32}}var Yu=!1,Bl=null,Ll=null,Hl=null,qn=new Map,Yn=new Map,Ul=[],wv="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 fm(e,t){switch(e){case"focusin":case"focusout":Bl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=da(t),t!==null&&um(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Ov(e,t,l,a,n){switch(t){case"focusin":return Bl=Gn(Bl,e,t,l,a,n),!0;case"dragenter":return Ll=Gn(Ll,e,t,l,a,n),!0;case"mouseover":return Hl=Gn(Hl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return qn.set(i,Gn(qn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Yn.set(i,Gn(Yn.get(i)||null,e,t,l,a,n)),!0}return!1}function dm(e){var t=fa(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Ec(e.priority,function(){cm(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,Ec(e.priority,function(){cm(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 fi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Uu(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qi=a,l.target.dispatchEvent(a),qi=null}else return t=da(l),t!==null&&um(t),e.blockedOn=l,!1;t.shift()}return!0}function mm(e,t,l){fi(e)&&l.delete(t)}function Dv(){Yu=!1,Bl!==null&&fi(Bl)&&(Bl=null),Ll!==null&&fi(Ll)&&(Ll=null),Hl!==null&&fi(Hl)&&(Hl=null),qn.forEach(mm),Yn.forEach(mm)}function di(e,t){e.blockedOn===t&&(e.blockedOn=null,Yu||(Yu=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Dv)))}var mi=null;function hm(e){mi!==e&&(mi=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){mi===e&&(mi=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(qu(a||l)===null)continue;break}var i=da(l);i!==null&&(e.splice(t,3),t-=3,Ur(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ka(e){function t(b){return di(b,e)}Bl!==null&&di(Bl,e),Ll!==null&&di(Ll,e),Hl!==null&&di(Hl,e),qn.forEach(t),Yn.forEach(t);for(var l=0;l<Ul.length;l++){var a=Ul[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)dm(l),l.blockedOn===null&&Ul.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[it]||null;if(typeof i=="function")u||hm(l);else if(u){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[it]||null)m=u.formAction;else if(qu(n)!==null)continue}else m=u.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),hm(l)}}}function xm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.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 Gu(e){this._internalRoot=e}hi.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Nt();im(l,a,e,t,null,null)},hi.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;im(e.current,2,null,e,null,null),Js(),t[oa]=null}};function hi(e){this._internalRoot=e}hi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ul.length&&t!==0&&t<Ul[l].priority;l++);Ul.splice(l,0,e),l===0&&dm(e)}};var vm=c.version;if(vm!=="19.2.4")throw Error(o(527,vm,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Bv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xi.isDisabled&&xi.supportsFiber)try{Wa=xi.inject(Bv),xt=xi}catch{}}return Qn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var l=!1,a="",n=Nf,i=Ef,u=Tf;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&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=nm(e,1,!1,null,null,l,a,null,n,i,u,xm),e[oa]=t.current,Nu(e),new Gu(t)},Qn.hydrateRoot=function(e,t,l){if(!d(e))throw Error(o(299));var a=!1,n="",i=Nf,u=Ef,m=Tf,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=nm(e,1,!0,t,l??null,a,n,b,i,u,m,xm),t.context=sm(null),l=t.current,a=Nt(),a=zi(a),n=El(a),n.callback=null,Tl(l,n,a),l=a,t.current.lanes=l,Ia(t,l),Xt(t),e[oa]=t.current,Nu(e),new hi(t)},Qn.version="19.2.4",Qn}var Am;function Vv(){if(Am)return Zu.exports;Am=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),Zu.exports=Zv(),Zu.exports}var Kv=Vv();/**
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 Mm="popstate";function km(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function Jv(r={}){function c(d,h){let{pathname:v="/",search:j="",hash:y=""}=ca(d.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),ac("",{pathname:v,search:j,hash:y},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(d,h){let v=d.document.querySelector("base"),j="";if(v&&v.getAttribute("href")){let y=d.location.href,x=y.indexOf("#");j=x===-1?y:y.slice(0,x)}return j+"#"+(typeof h=="string"?h:Kn(h))}function o(d,h){Ot(d.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return Wv(c,f,o,r)}function Ue(r,c){if(r===!1||r===null||typeof r>"u")throw new Error(c)}function Ot(r,c){if(!r){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function $v(){return Math.random().toString(36).substring(2,10)}function Cm(r,c){return{usr:r.state,key:r.key,idx:c,masked:r.unstable_mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function ac(r,c,f=null,o,d){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof c=="string"?ca(c):c,state:f,key:c&&c.key||o||$v(),unstable_mask:d}}function Kn({pathname:r="/",search:c="",hash:f=""}){return c&&c!=="?"&&(r+=c.charAt(0)==="?"?c:"?"+c),f&&f!=="#"&&(r+=f.charAt(0)==="#"?f:"#"+f),r}function ca(r){let c={};if(r){let f=r.indexOf("#");f>=0&&(c.hash=r.substring(f),r=r.substring(0,f));let o=r.indexOf("?");o>=0&&(c.search=r.substring(o),r=r.substring(0,o)),r&&(c.pathname=r)}return c}function Wv(r,c,f,o={}){let{window:d=document.defaultView,v5Compat:h=!1}=o,v=d.history,j="POP",y=null,x=E();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function E(){return(v.state||{idx:null}).idx}function g(){j="POP";let V=E(),z=V==null?null:V-x;x=V,y&&y({action:j,location:Q.location,delta:z})}function B(V,z){j="PUSH";let K=km(V)?V:ac(Q.location,V,z);f&&f(K,V),x=E()+1;let W=Cm(K,x),G=Q.createHref(K.unstable_mask||K);try{v.pushState(W,"",G)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;d.location.assign(G)}h&&y&&y({action:j,location:Q.location,delta:1})}function Z(V,z){j="REPLACE";let K=km(V)?V:ac(Q.location,V,z);f&&f(K,V),x=E();let W=Cm(K,x),G=Q.createHref(K.unstable_mask||K);v.replaceState(W,"",G),h&&y&&y({action:j,location:Q.location,delta:0})}function X(V){return Fv(V)}let Q={get action(){return j},get location(){return r(d,v)},listen(V){if(y)throw new Error("A history only accepts one active listener");return d.addEventListener(Mm,g),y=V,()=>{d.removeEventListener(Mm,g),y=null}},createHref(V){return c(d,V)},createURL:X,encodeLocation(V){let z=X(V);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:B,replace:Z,go(V){return v.go(V)}};return Q}function Fv(r,c=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(f,"No window.location.(origin|href) available to create URL");let o=typeof r=="string"?r:Kn(r);return o=o.replace(/ $/,"%20"),!c&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Km(r,c,f="/"){return Iv(r,c,f,!1)}function Iv(r,c,f,o){let d=typeof c=="string"?ca(c):c,h=ml(d.pathname||"/",f);if(h==null)return null;let v=Jm(r);Pv(v);let j=null;for(let y=0;j==null&&y<v.length;++y){let x=op(h);j=up(v[y],x,o)}return j}function Jm(r,c=[],f=[],o="",d=!1){let h=(v,j,y=d,x)=>{let E={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:j,route:v};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(o)&&y)return;Ue(E.relativePath.startsWith(o),`Absolute route path "${E.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(o.length)}let g=Qt([o,E.relativePath]),B=f.concat(E);v.children&&v.children.length>0&&(Ue(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Jm(v.children,c,B,g,y)),!(v.path==null&&!v.index)&&c.push({path:g,score:ip(g,v.index),routesMeta:B})};return r.forEach((v,j)=>{var y;if(v.path===""||!((y=v.path)!=null&&y.includes("?")))h(v,j);else for(let x of $m(v.path))h(v,j,!0,x)}),c}function $m(r){let c=r.split("/");if(c.length===0)return[];let[f,...o]=c,d=f.endsWith("?"),h=f.replace(/\?$/,"");if(o.length===0)return d?[h,""]:[h];let v=$m(o.join("/")),j=[];return j.push(...v.map(y=>y===""?h:[h,y].join("/"))),d&&j.push(...v),j.map(y=>r.startsWith("/")&&y===""?"/":y)}function Pv(r){r.sort((c,f)=>c.score!==f.score?f.score-c.score:rp(c.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var ep=/^:[\w-]+$/,tp=3,lp=2,ap=1,np=10,sp=-2,_m=r=>r==="*";function ip(r,c){let f=r.split("/"),o=f.length;return f.some(_m)&&(o+=sp),c&&(o+=lp),f.filter(d=>!_m(d)).reduce((d,h)=>d+(ep.test(h)?tp:h===""?ap:np),o)}function rp(r,c){return r.length===c.length&&r.slice(0,-1).every((o,d)=>o===c[d])?r[r.length-1]-c[c.length-1]:0}function up(r,c,f=!1){let{routesMeta:o}=r,d={},h="/",v=[];for(let j=0;j<o.length;++j){let y=o[j],x=j===o.length-1,E=h==="/"?c:c.slice(h.length)||"/",g=Si({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},E),B=y.route;if(!g&&x&&f&&!o[o.length-1].route.index&&(g=Si({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},E)),!g)return null;Object.assign(d,g.params),v.push({params:d,pathname:Qt([h,g.pathname]),pathnameBase:hp(Qt([h,g.pathnameBase])),route:B}),g.pathnameBase!=="/"&&(h=Qt([h,g.pathnameBase]))}return v}function Si(r,c){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[f,o]=cp(r.path,r.caseSensitive,r.end),d=c.match(f);if(!d)return null;let h=d[0],v=h.replace(/(.)\/+$/,"$1"),j=d.slice(1);return{params:o.reduce((x,{paramName:E,isOptional:g},B)=>{if(E==="*"){let X=j[B]||"";v=h.slice(0,h.length-X.length).replace(/(.)\/+$/,"$1")}const Z=j[B];return g&&!Z?x[E]=void 0:x[E]=(Z||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:v,pattern:r}}function cp(r,c=!1,f=!0){Ot(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let o=[],d="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,j,y,x,E)=>{if(o.push({paramName:j,isOptional:y!=null}),y){let g=E.charAt(x+v.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(o.push({paramName:"*"}),d+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":r!==""&&r!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),o]}function op(r){try{return r.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Ot(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),r}}function ml(r,c){if(c==="/")return r;if(!r.toLowerCase().startsWith(c.toLowerCase()))return null;let f=c.endsWith("/")?c.length-1:c.length,o=r.charAt(f);return o&&o!=="/"?null:r.slice(f)||"/"}var fp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dp(r,c="/"){let{pathname:f,search:o="",hash:d=""}=typeof r=="string"?ca(r):r,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=Rm(f.substring(1),"/"):h=Rm(f,c)):h=c,{pathname:h,search:xp(o),hash:vp(d)}}function Rm(r,c){let f=c.replace(/\/+$/,"").split("/");return r.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function $u(r,c,f,o){return`Cannot include a '${r}' character in a manually specified \`to.${c}\` field [${JSON.stringify(o)}]. 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 mp(r){return r.filter((c,f)=>f===0||c.route.path&&c.route.path.length>0)}function Wm(r){let c=mp(r);return c.map((f,o)=>o===c.length-1?f.pathname:f.pathnameBase)}function cc(r,c,f,o=!1){let d;typeof r=="string"?d=ca(r):(d={...r},Ue(!d.pathname||!d.pathname.includes("?"),$u("?","pathname","search",d)),Ue(!d.pathname||!d.pathname.includes("#"),$u("#","pathname","hash",d)),Ue(!d.search||!d.search.includes("#"),$u("#","search","hash",d)));let h=r===""||d.pathname==="",v=h?"/":d.pathname,j;if(v==null)j=f;else{let g=c.length-1;if(!o&&v.startsWith("..")){let B=v.split("/");for(;B[0]==="..";)B.shift(),g-=1;d.pathname=B.join("/")}j=g>=0?c[g]:"/"}let y=dp(d,j),x=v&&v!=="/"&&v.endsWith("/"),E=(h||v===".")&&f.endsWith("/");return!y.pathname.endsWith("/")&&(x||E)&&(y.pathname+="/"),y}var Qt=r=>r.join("/").replace(/\/\/+/g,"/"),hp=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),xp=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,vp=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,pp=class{constructor(r,c,f,o=!1){this.status=r,this.statusText=c||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function yp(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function gp(r){return r.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Fm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Im(r,c){let f=r;if(typeof f!="string"||!fp.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,d=!1;if(Fm)try{let h=new URL(window.location.href),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),j=ml(v.pathname,c);v.origin===h.origin&&j!=null?f=j+v.search+v.hash:d=!0}catch{Ot(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Pm=["POST","PUT","PATCH","DELETE"];new Set(Pm);var bp=["GET",...Pm];new Set(bp);var Ja=p.createContext(null);Ja.displayName="DataRouter";var Ei=p.createContext(null);Ei.displayName="DataRouterState";var jp=p.createContext(!1),eh=p.createContext({isTransitioning:!1});eh.displayName="ViewTransition";var Sp=p.createContext(new Map);Sp.displayName="Fetchers";var Np=p.createContext(null);Np.displayName="Await";var Dt=p.createContext(null);Dt.displayName="Navigation";var $n=p.createContext(null);$n.displayName="Location";var Zt=p.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var oc=p.createContext(null);oc.displayName="RouteError";var th="REACT_ROUTER_ERROR",Ep="REDIRECT",Tp="ROUTE_ERROR_RESPONSE";function Ap(r){if(r.startsWith(`${th}:${Ep}:{`))try{let c=JSON.parse(r.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Mp(r){if(r.startsWith(`${th}:${Tp}:{`))try{let c=JSON.parse(r.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new pp(c.status,c.statusText,c.data)}catch{}}function kp(r,{relative:c}={}){Ue(Wn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=p.useContext(Dt),{hash:d,pathname:h,search:v}=Fn(r,{relative:c}),j=h;return f!=="/"&&(j=h==="/"?f:Qt([f,h])),o.createHref({pathname:j,search:v,hash:d})}function Wn(){return p.useContext($n)!=null}function Vt(){return Ue(Wn(),"useLocation() may be used only in the context of a <Router> component."),p.useContext($n).location}var lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ah(r){p.useContext(Dt).static||p.useLayoutEffect(r)}function Ti(){let{isDataRoute:r}=p.useContext(Zt);return r?Yp():Cp()}function Cp(){Ue(Wn(),"useNavigate() may be used only in the context of a <Router> component.");let r=p.useContext(Ja),{basename:c,navigator:f}=p.useContext(Dt),{matches:o}=p.useContext(Zt),{pathname:d}=Vt(),h=JSON.stringify(Wm(o)),v=p.useRef(!1);return ah(()=>{v.current=!0}),p.useCallback((y,x={})=>{if(Ot(v.current,lh),!v.current)return;if(typeof y=="number"){f.go(y);return}let E=cc(y,JSON.parse(h),d,x.relative==="path");r==null&&c!=="/"&&(E.pathname=E.pathname==="/"?c:Qt([c,E.pathname])),(x.replace?f.replace:f.push)(E,x.state,x)},[c,f,h,d,r])}p.createContext(null);function Ai(){let{matches:r}=p.useContext(Zt),c=r[r.length-1];return c?c.params:{}}function Fn(r,{relative:c}={}){let{matches:f}=p.useContext(Zt),{pathname:o}=Vt(),d=JSON.stringify(Wm(f));return p.useMemo(()=>cc(r,JSON.parse(d),o,c==="path"),[r,d,o,c])}function _p(r,c){return nh(r,c)}function nh(r,c,f){var V;Ue(Wn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=p.useContext(Dt),{matches:d}=p.useContext(Zt),h=d[d.length-1],v=h?h.params:{},j=h?h.pathname:"/",y=h?h.pathnameBase:"/",x=h&&h.route;{let z=x&&x.path||"";ih(j,!x||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${j}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let E=Vt(),g;if(c){let z=typeof c=="string"?ca(c):c;Ue(y==="/"||((V=z.pathname)==null?void 0:V.startsWith(y)),`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 "${y}" but pathname "${z.pathname}" was given in the \`location\` prop.`),g=z}else g=E;let B=g.pathname||"/",Z=B;if(y!=="/"){let z=y.replace(/^\//,"").split("/");Z="/"+B.replace(/^\//,"").split("/").slice(z.length).join("/")}let X=Km(r,{pathname:Z});Ot(x||X!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ot(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 Q=Dp(X&&X.map(z=>Object.assign({},z,{params:Object.assign({},v,z.params),pathname:Qt([y,o.encodeLocation?o.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?y:Qt([y,o.encodeLocation?o.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),d,f);return c&&Q?p.createElement($n.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},Q):Q}function Rp(){let r=qp(),c=yp(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),f=r instanceof Error?r.stack:null,o="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},v=null;return console.error("Error handled by React Router default ErrorBoundary:",r),v=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:h},"ErrorBoundary")," or"," ",p.createElement("code",{style:h},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},c),f?p.createElement("pre",{style:d},f):null,v)}var zp=p.createElement(Rp,null),sh=class extends p.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,c){return c.location!==r.location||c.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:c.error,location:c.location,revalidation:r.revalidation||c.revalidation}}componentDidCatch(r,c){this.props.onError?this.props.onError(r,c):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const f=Mp(r.digest);f&&(r=f)}let c=r!==void 0?p.createElement(Zt.Provider,{value:this.props.routeContext},p.createElement(oc.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?p.createElement(wp,{error:r},c):c}};sh.contextType=jp;var Wu=new WeakMap;function wp({children:r,error:c}){let{basename:f}=p.useContext(Dt);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let o=Ap(c.digest);if(o){let d=Wu.get(c);if(d)throw d;let h=Im(o.location,f);if(Fm&&!Wu.get(c))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Wu.set(c,v),v}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return r}function Op({routeContext:r,match:c,children:f}){let o=p.useContext(Ja);return o&&o.static&&o.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=c.route.id),p.createElement(Zt.Provider,{value:r},f)}function Dp(r,c=[],f){let o=f==null?void 0:f.state;if(r==null){if(!o)return null;if(o.errors)r=o.matches;else if(c.length===0&&!o.initialized&&o.matches.length>0)r=o.matches;else return null}let d=r,h=o==null?void 0:o.errors;if(h!=null){let E=d.findIndex(g=>g.route.id&&(h==null?void 0:h[g.route.id])!==void 0);Ue(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,E+1))}let v=!1,j=-1;if(f&&o){v=o.renderFallback;for(let E=0;E<d.length;E++){let g=d[E];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(j=E),g.route.id){let{loaderData:B,errors:Z}=o,X=g.route.loader&&!B.hasOwnProperty(g.route.id)&&(!Z||Z[g.route.id]===void 0);if(g.route.lazy||X){f.isStatic&&(v=!0),j>=0?d=d.slice(0,j+1):d=[d[0]];break}}}}let y=f==null?void 0:f.onError,x=o&&y?(E,g)=>{var B,Z;y(E,{location:o.location,params:((Z=(B=o.matches)==null?void 0:B[0])==null?void 0:Z.params)??{},unstable_pattern:gp(o.matches),errorInfo:g})}:void 0;return d.reduceRight((E,g,B)=>{let Z,X=!1,Q=null,V=null;o&&(Z=h&&g.route.id?h[g.route.id]:void 0,Q=g.route.errorElement||zp,v&&(j<0&&B===0?(ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,V=null):j===B&&(X=!0,V=g.route.hydrateFallbackElement||null)));let z=c.concat(d.slice(0,B+1)),K=()=>{let W;return Z?W=Q:X?W=V:g.route.Component?W=p.createElement(g.route.Component,null):g.route.element?W=g.route.element:W=E,p.createElement(Op,{match:g,routeContext:{outlet:E,matches:z,isDataRoute:o!=null},children:W})};return o&&(g.route.ErrorBoundary||g.route.errorElement||B===0)?p.createElement(sh,{location:o.location,revalidation:o.revalidation,component:Q,error:Z,children:K(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:x}):K()},null)}function fc(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bp(r){let c=p.useContext(Ja);return Ue(c,fc(r)),c}function Lp(r){let c=p.useContext(Ei);return Ue(c,fc(r)),c}function Hp(r){let c=p.useContext(Zt);return Ue(c,fc(r)),c}function dc(r){let c=Hp(r),f=c.matches[c.matches.length-1];return Ue(f.route.id,`${r} can only be used on routes that contain a unique "id"`),f.route.id}function Up(){return dc("useRouteId")}function qp(){var o;let r=p.useContext(oc),c=Lp("useRouteError"),f=dc("useRouteError");return r!==void 0?r:(o=c.errors)==null?void 0:o[f]}function Yp(){let{router:r}=Bp("useNavigate"),c=dc("useNavigate"),f=p.useRef(!1);return ah(()=>{f.current=!0}),p.useCallback(async(d,h={})=>{Ot(f.current,lh),f.current&&(typeof d=="number"?await r.navigate(d):await r.navigate(d,{fromRouteId:c,...h}))},[r,c])}var zm={};function ih(r,c,f){!c&&!zm[r]&&(zm[r]=!0,Ot(!1,f))}p.memo(Gp);function Gp({routes:r,future:c,state:f,isStatic:o,onError:d}){return nh(r,void 0,{state:f,isStatic:o,onError:d})}function ua(r){Ue(!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 Xp({basename:r="/",children:c=null,location:f,navigationType:o="POP",navigator:d,static:h=!1,unstable_useTransitions:v}){Ue(!Wn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=r.replace(/^\/*/,"/"),y=p.useMemo(()=>({basename:j,navigator:d,static:h,unstable_useTransitions:v,future:{}}),[j,d,h,v]);typeof f=="string"&&(f=ca(f));let{pathname:x="/",search:E="",hash:g="",state:B=null,key:Z="default",unstable_mask:X}=f,Q=p.useMemo(()=>{let V=ml(x,j);return V==null?null:{location:{pathname:V,search:E,hash:g,state:B,key:Z,unstable_mask:X},navigationType:o}},[j,x,E,g,B,Z,o,X]);return Ot(Q!=null,`<Router basename="${j}"> is not able to match the URL "${x}${E}${g}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:p.createElement(Dt.Provider,{value:y},p.createElement($n.Provider,{children:c,value:Q}))}function Qp({children:r,location:c}){return _p(nc(r),c)}function nc(r,c=[]){let f=[];return p.Children.forEach(r,(o,d)=>{if(!p.isValidElement(o))return;let h=[...c,d];if(o.type===p.Fragment){f.push.apply(f,nc(o.props.children,h));return}Ue(o.type===ua,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!o.props.index||!o.props.children,"An index route cannot have child routes.");let v={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(v.children=nc(o.props.children,h)),f.push(v)}),f}var gi="get",bi="application/x-www-form-urlencoded";function Mi(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function Zp(r){return Mi(r)&&r.tagName.toLowerCase()==="button"}function Vp(r){return Mi(r)&&r.tagName.toLowerCase()==="form"}function Kp(r){return Mi(r)&&r.tagName.toLowerCase()==="input"}function Jp(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function $p(r,c){return r.button===0&&(!c||c==="_self")&&!Jp(r)}function sc(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((c,f)=>{let o=r[f];return c.concat(Array.isArray(o)?o.map(d=>[f,d]):[[f,o]])},[]))}function Wp(r,c){let f=sc(r);return c&&c.forEach((o,d)=>{f.has(d)||c.getAll(d).forEach(h=>{f.append(d,h)})}),f}var vi=null;function Fp(){if(vi===null)try{new FormData(document.createElement("form"),0),vi=!1}catch{vi=!0}return vi}var Ip=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fu(r){return r!=null&&!Ip.has(r)?(Ot(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bi}"`),null):r}function Pp(r,c){let f,o,d,h,v;if(Vp(r)){let j=r.getAttribute("action");o=j?ml(j,c):null,f=r.getAttribute("method")||gi,d=Fu(r.getAttribute("enctype"))||bi,h=new FormData(r)}else if(Zp(r)||Kp(r)&&(r.type==="submit"||r.type==="image")){let j=r.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=r.getAttribute("formaction")||j.getAttribute("action");if(o=y?ml(y,c):null,f=r.getAttribute("formmethod")||j.getAttribute("method")||gi,d=Fu(r.getAttribute("formenctype"))||Fu(j.getAttribute("enctype"))||bi,h=new FormData(j,r),!Fp()){let{name:x,type:E,value:g}=r;if(E==="image"){let B=x?`${x}.`:"";h.append(`${B}x`,"0"),h.append(`${B}y`,"0")}else x&&h.append(x,g)}}else{if(Mi(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=gi,o=null,d=bi,v=r}return h&&d==="text/plain"&&(v=h,h=void 0),{action:o,method:f.toLowerCase(),encType:d,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mc(r,c){if(r===!1||r===null||typeof r>"u")throw new Error(c)}function ey(r,c,f,o){let d=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${o}`:d.pathname=`${d.pathname}.${o}`:d.pathname==="/"?d.pathname=`_root.${o}`:c&&ml(d.pathname,c)==="/"?d.pathname=`${c.replace(/\/$/,"")}/_root.${o}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${o}`,d}async function ty(r,c){if(r.id in c)return c[r.id];try{let f=await import(r.module);return c[r.id]=f,f}catch(f){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ly(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function ay(r,c,f){let o=await Promise.all(r.map(async d=>{let h=c.routes[d.route.id];if(h){let v=await ty(h,f);return v.links?v.links():[]}return[]}));return ry(o.flat(1).filter(ly).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function wm(r,c,f,o,d,h){let v=(y,x)=>f[x]?y.route.id!==f[x].route.id:!0,j=(y,x)=>{var E;return f[x].pathname!==y.pathname||((E=f[x].route.path)==null?void 0:E.endsWith("*"))&&f[x].params["*"]!==y.params["*"]};return h==="assets"?c.filter((y,x)=>v(y,x)||j(y,x)):h==="data"?c.filter((y,x)=>{var g;let E=o.routes[y.route.id];if(!E||!E.hasLoader)return!1;if(v(y,x)||j(y,x))return!0;if(y.route.shouldRevalidate){let B=y.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((g=f[0])==null?void 0:g.params)||{},nextUrl:new URL(r,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof B=="boolean")return B}return!0}):[]}function ny(r,c,{includeHydrateFallback:f}={}){return sy(r.map(o=>{let d=c.routes[o.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function sy(r){return[...new Set(r)]}function iy(r){let c={},f=Object.keys(r).sort();for(let o of f)c[o]=r[o];return c}function ry(r,c){let f=new Set;return new Set(c),r.reduce((o,d)=>{let h=JSON.stringify(iy(d));return f.has(h)||(f.add(h),o.push({key:h,link:d})),o},[])}function rh(){let r=p.useContext(Ja);return mc(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function uy(){let r=p.useContext(Ei);return mc(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var hc=p.createContext(void 0);hc.displayName="FrameworkContext";function uh(){let r=p.useContext(hc);return mc(r,"You must render this element inside a <HydratedRouter> element"),r}function cy(r,c){let f=p.useContext(hc),[o,d]=p.useState(!1),[h,v]=p.useState(!1),{onFocus:j,onBlur:y,onMouseEnter:x,onMouseLeave:E,onTouchStart:g}=c,B=p.useRef(null);p.useEffect(()=>{if(r==="render"&&v(!0),r==="viewport"){let Q=z=>{z.forEach(K=>{v(K.isIntersecting)})},V=new IntersectionObserver(Q,{threshold:.5});return B.current&&V.observe(B.current),()=>{V.disconnect()}}},[r]),p.useEffect(()=>{if(o){let Q=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(Q)}}},[o]);let Z=()=>{d(!0)},X=()=>{d(!1),v(!1)};return f?r!=="intent"?[h,B,{}]:[h,B,{onFocus:Zn(j,Z),onBlur:Zn(y,X),onMouseEnter:Zn(x,Z),onMouseLeave:Zn(E,X),onTouchStart:Zn(g,Z)}]:[!1,B,{}]}function Zn(r,c){return f=>{r&&r(f),f.defaultPrevented||c(f)}}function oy({page:r,...c}){let{router:f}=rh(),o=p.useMemo(()=>Km(f.routes,r,f.basename),[f.routes,r,f.basename]);return o?p.createElement(dy,{page:r,matches:o,...c}):null}function fy(r){let{manifest:c,routeModules:f}=uh(),[o,d]=p.useState([]);return p.useEffect(()=>{let h=!1;return ay(r,c,f).then(v=>{h||d(v)}),()=>{h=!0}},[r,c,f]),o}function dy({page:r,matches:c,...f}){let o=Vt(),{future:d,manifest:h,routeModules:v}=uh(),{basename:j}=rh(),{loaderData:y,matches:x}=uy(),E=p.useMemo(()=>wm(r,c,x,h,o,"data"),[r,c,x,h,o]),g=p.useMemo(()=>wm(r,c,x,h,o,"assets"),[r,c,x,h,o]),B=p.useMemo(()=>{if(r===o.pathname+o.search+o.hash)return[];let Q=new Set,V=!1;if(c.forEach(K=>{var G;let W=h.routes[K.route.id];!W||!W.hasLoader||(!E.some($=>$.route.id===K.route.id)&&K.route.id in y&&((G=v[K.route.id])!=null&&G.shouldRevalidate)||W.hasClientLoader?V=!0:Q.add(K.route.id))}),Q.size===0)return[];let z=ey(r,j,d.unstable_trailingSlashAwareDataRequests,"data");return V&&Q.size>0&&z.searchParams.set("_routes",c.filter(K=>Q.has(K.route.id)).map(K=>K.route.id).join(",")),[z.pathname+z.search]},[j,d.unstable_trailingSlashAwareDataRequests,y,o,h,E,c,r,v]),Z=p.useMemo(()=>ny(g,h),[g,h]),X=fy(g);return p.createElement(p.Fragment,null,B.map(Q=>p.createElement("link",{key:Q,rel:"prefetch",as:"fetch",href:Q,...f})),Z.map(Q=>p.createElement("link",{key:Q,rel:"modulepreload",href:Q,...f})),X.map(({key:Q,link:V})=>p.createElement("link",{key:Q,nonce:f.nonce,...V,crossOrigin:V.crossOrigin??f.crossOrigin})))}function my(...r){return c=>{r.forEach(f=>{typeof f=="function"?f(c):f!=null&&(f.current=c)})}}var hy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hy&&(window.__reactRouterVersion="7.13.1")}catch{}function xy({basename:r,children:c,unstable_useTransitions:f,window:o}){let d=p.useRef();d.current==null&&(d.current=Jv({window:o,v5Compat:!0}));let h=d.current,[v,j]=p.useState({action:h.action,location:h.location}),y=p.useCallback(x=>{f===!1?j(x):p.startTransition(()=>j(x))},[f]);return p.useLayoutEffect(()=>h.listen(y),[h,y]),p.createElement(Xp,{basename:r,children:c,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:f})}var ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=p.forwardRef(function({onClick:c,discover:f="render",prefetch:o="none",relative:d,reloadDocument:h,replace:v,unstable_mask:j,state:y,target:x,to:E,preventScrollReset:g,viewTransition:B,unstable_defaultShouldRevalidate:Z,...X},Q){let{basename:V,navigator:z,unstable_useTransitions:K}=p.useContext(Dt),W=typeof E=="string"&&ch.test(E),G=Im(E,V);E=G.to;let $=kp(E,{relative:d}),U=Vt(),P=null;if(j){let xe=cc(j,[],U.unstable_mask?U.unstable_mask.pathname:"/",!0);V!=="/"&&(xe.pathname=xe.pathname==="/"?V:Qt([V,xe.pathname])),P=z.createHref(xe)}let[ce,je,Me]=cy(o,X),te=gy(E,{replace:v,unstable_mask:j,state:y,target:x,preventScrollReset:g,relative:d,viewTransition:B,unstable_defaultShouldRevalidate:Z,unstable_useTransitions:K});function ye(xe){c&&c(xe),xe.defaultPrevented||te(xe)}let ee=!(G.isExternal||h),he=p.createElement("a",{...X,...Me,href:(ee?P:void 0)||G.absoluteURL||$,onClick:ee?ye:c,ref:my(Q,je),target:x,"data-discover":!W&&f==="render"?"true":void 0});return ce&&!W?p.createElement(p.Fragment,null,he,p.createElement(oy,{page:$})):he});Ut.displayName="Link";var vy=p.forwardRef(function({"aria-current":c="page",caseSensitive:f=!1,className:o="",end:d=!1,style:h,to:v,viewTransition:j,children:y,...x},E){let g=Fn(v,{relative:x.relative}),B=Vt(),Z=p.useContext(Ei),{navigator:X,basename:Q}=p.useContext(Dt),V=Z!=null&&Ey(g)&&j===!0,z=X.encodeLocation?X.encodeLocation(g).pathname:g.pathname,K=B.pathname,W=Z&&Z.navigation&&Z.navigation.location?Z.navigation.location.pathname:null;f||(K=K.toLowerCase(),W=W?W.toLowerCase():null,z=z.toLowerCase()),W&&Q&&(W=ml(W,Q)||W);const G=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let $=K===z||!d&&K.startsWith(z)&&K.charAt(G)==="/",U=W!=null&&(W===z||!d&&W.startsWith(z)&&W.charAt(z.length)==="/"),P={isActive:$,isPending:U,isTransitioning:V},ce=$?c:void 0,je;typeof o=="function"?je=o(P):je=[o,$?"active":null,U?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let Me=typeof h=="function"?h(P):h;return p.createElement(Ut,{...x,"aria-current":ce,className:je,ref:E,style:Me,to:v,viewTransition:j},typeof y=="function"?y(P):y)});vy.displayName="NavLink";var py=p.forwardRef(({discover:r="render",fetcherKey:c,navigate:f,reloadDocument:o,replace:d,state:h,method:v=gi,action:j,onSubmit:y,relative:x,preventScrollReset:E,viewTransition:g,unstable_defaultShouldRevalidate:B,...Z},X)=>{let{unstable_useTransitions:Q}=p.useContext(Dt),V=Sy(),z=Ny(j,{relative:x}),K=v.toLowerCase()==="get"?"get":"post",W=typeof j=="string"&&ch.test(j),G=$=>{if(y&&y($),$.defaultPrevented)return;$.preventDefault();let U=$.nativeEvent.submitter,P=(U==null?void 0:U.getAttribute("formmethod"))||v,ce=()=>V(U||$.currentTarget,{fetcherKey:c,method:P,navigate:f,replace:d,state:h,relative:x,preventScrollReset:E,viewTransition:g,unstable_defaultShouldRevalidate:B});Q&&f!==!1?p.startTransition(()=>ce()):ce()};return p.createElement("form",{ref:X,method:K,action:z,onSubmit:o?y:G,...Z,"data-discover":!W&&r==="render"?"true":void 0})});py.displayName="Form";function yy(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oh(r){let c=p.useContext(Ja);return Ue(c,yy(r)),c}function gy(r,{target:c,replace:f,unstable_mask:o,state:d,preventScrollReset:h,relative:v,viewTransition:j,unstable_defaultShouldRevalidate:y,unstable_useTransitions:x}={}){let E=Ti(),g=Vt(),B=Fn(r,{relative:v});return p.useCallback(Z=>{if($p(Z,c)){Z.preventDefault();let X=f!==void 0?f:Kn(g)===Kn(B),Q=()=>E(r,{replace:X,unstable_mask:o,state:d,preventScrollReset:h,relative:v,viewTransition:j,unstable_defaultShouldRevalidate:y});x?p.startTransition(()=>Q()):Q()}},[g,E,B,f,o,d,c,r,h,v,j,y,x])}function fh(r){Ot(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let c=p.useRef(sc(r)),f=p.useRef(!1),o=Vt(),d=p.useMemo(()=>Wp(o.search,f.current?null:c.current),[o.search]),h=Ti(),v=p.useCallback((j,y)=>{const x=sc(typeof j=="function"?j(new URLSearchParams(d)):j);f.current=!0,h("?"+x,y)},[h,d]);return[d,v]}var by=0,jy=()=>`__${String(++by)}__`;function Sy(){let{router:r}=oh("useSubmit"),{basename:c}=p.useContext(Dt),f=Up(),o=r.fetch,d=r.navigate;return p.useCallback(async(h,v={})=>{let{action:j,method:y,encType:x,formData:E,body:g}=Pp(h,c);if(v.navigate===!1){let B=v.fetcherKey||jy();await o(B,f,v.action||j,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:g,formMethod:v.method||y,formEncType:v.encType||x,flushSync:v.flushSync})}else await d(v.action||j,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:g,formMethod:v.method||y,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[o,d,c,f])}function Ny(r,{relative:c}={}){let{basename:f}=p.useContext(Dt),o=p.useContext(Zt);Ue(o,"useFormAction must be used inside a RouteContext");let[d]=o.matches.slice(-1),h={...Fn(r||".",{relative:c})},v=Vt();if(r==null){h.search=v.search;let j=new URLSearchParams(h.search),y=j.getAll("index");if(y.some(E=>E==="")){j.delete("index"),y.filter(g=>g).forEach(g=>j.append("index",g));let E=j.toString();h.search=E?`?${E}`:""}}return(!r||r===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:Qt([f,h.pathname])),Kn(h)}function Ey(r,{relative:c}={}){let f=p.useContext(eh);Ue(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=oh("useViewTransitionState"),d=Fn(r,{relative:c});if(!f.isTransitioning)return!1;let h=ml(f.currentLocation.pathname,o)||f.currentLocation.pathname,v=ml(f.nextLocation.pathname,o)||f.nextLocation.pathname;return Si(d.pathname,v)!=null||Si(d.pathname,h)!=null}const Ty="";async function at(r,c){const f=await fetch(`${Ty}${r}`,c);if(!f.ok){const o=await f.json().catch(()=>({error:f.statusText}));throw new Error(o.error||`HTTP ${f.status}`)}return f.json()}const we={getConfig(){return at("/api/config")},setConfig(r,c){return at("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,model:c})})},getSkills(){return at("/api/skills")},getSkillDetail(r,c){return at(`/api/skills/${r}/${c}`)},getEvals(r,c){return at(`/api/skills/${r}/${c}/evals`)},saveEvals(r,c,f){return at(`/api/skills/${r}/${c}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})},generateEvals(r,c){return at(`/api/skills/${r}/${c}/generate-evals`,{method:"POST"})},getLatestBenchmark(r,c){return at(`/api/skills/${r}/${c}/benchmark/latest`)},getHistory(r,c,f){const o=new URLSearchParams;f!=null&&f.model&&o.set("model",f.model),f!=null&&f.type&&o.set("type",f.type),f!=null&&f.from&&o.set("from",f.from),f!=null&&f.to&&o.set("to",f.to);const d=o.toString();return at(`/api/skills/${r}/${c}/history${d?"?"+d:""}`)},getHistoryEntry(r,c,f){return at(`/api/skills/${r}/${c}/history/${encodeURIComponent(f)}`)},compareRuns(r,c,f,o){return at(`/api/skills/${r}/${c}/history-compare?a=${encodeURIComponent(f)}&b=${encodeURIComponent(o)}`)},getCaseHistory(r,c,f,o){const d=new URLSearchParams;o&&d.set("model",o);const h=d.toString();return at(`/api/skills/${r}/${c}/history/case/${f}${h?"?"+h:""}`)},deleteHistoryEntry(r,c,f){return at(`/api/skills/${r}/${c}/history/${encodeURIComponent(f)}`,{method:"DELETE"})},improveSkill(r,c,f){return at(`/api/skills/${r}/${c}/improve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})},applyImprovement(r,c,f){return at(`/api/skills/${r}/${c}/apply-improvement`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:f})})},getDependencies(r,c){return at(`/api/skills/${r}/${c}/dependencies`)}},Om={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 Iu(){return s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function Ay(){const[r,c]=p.useState([]),[f,o]=p.useState(!0),[d,h]=p.useState(null);p.useEffect(()=>{we.getSkills().then(c).catch(j=>h(j.message)).finally(()=>o(!1))},[]);const v=r.reduce((j,y)=>{var x;return(j[x=y.plugin]||(j[x]=[])).push(y),j},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:f?"Scanning plugins...":`${r.length} skill${r.length!==1?"s":""} across ${Object.keys(v).length} plugin${Object.keys(v).length!==1?"s":""}`})]}),d&&s.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:d}),f&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(Iu,{}),s.jsx(Iu,{}),s.jsx(Iu,{})]}),!f&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(v).map(([j,y])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:j}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:y.map(x=>{const E=Om[x.benchmarkStatus]||Om.missing;return s.jsxs(Ut,{to:`/skills/${x.plugin}/${x.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:x.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[x.evalCount," eval",x.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[x.assertionCount," assertion",x.assertionCount!==1?"s":""]}),x.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(x.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:E.bg,color:E.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:E.dot}}),E.label]}),s.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:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${x.plugin}/${x.skill}`)})})]},j))}),!f&&r.length===0&&!d&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.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"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function In(){const[r,c]=p.useState([]),[f,o]=p.useState(!1),[d,h]=p.useState(!1),[v,j]=p.useState(null),y=p.useRef(null),x=p.useCallback(async(g,B)=>{c([]),o(!0),h(!1),j(null);const Z=new AbortController;y.current=Z;try{const X=await fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:B?JSON.stringify(B):void 0,signal:Z.signal});if(!X.ok||!X.body)throw new Error(`HTTP ${X.status}`);const Q=X.body.getReader(),V=new TextDecoder;let z="",K="";for(;;){const{done:W,value:G}=await Q.read();if(W)break;z+=V.decode(G,{stream:!0});const $=z.split(`
61
+ `);z=$.pop()||"";for(const U of $)if(U.startsWith("event: "))K=U.slice(7).trim();else if(U.startsWith("data: ")){try{const P=JSON.parse(U.slice(6)),ce={event:K,data:P};K==="done"?(h(!0),c(je=>[...je,ce])):c(je=>[...je,ce])}catch{}K=""}}}catch(X){X.name!=="AbortError"&&j(X.message)}finally{o(!1),y.current=null}},[]),E=p.useCallback(()=>{var g;(g=y.current)==null||g.abort()},[]);return{events:r,running:f,done:d,error:v,start:x,stop:E}}function My(r){const c=r.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);if(!c)return{metadata:{},body:r};const f=c[1],o=c[2].trim(),d={},h=f.split(`
62
+ `);let v="";for(const j of h){const y=j.match(/^\s+-\s+(.+)$/);if(y&&v){const E=d[v];Array.isArray(E)?E.push(y[1].trim().replace(/^["']|["']$/g,"")):d[v]=[y[1].trim().replace(/^["']|["']$/g,"")];continue}const x=j.match(/^([\w-]+):\s*(.*)$/);if(x){v=x[1];const E=x[2].trim();if(!E){d[v]=[];continue}const g=E.match(/^\[(.+)\]$/);if(g){d[v]=g[1].split(",").map(B=>B.trim().replace(/^["']|["']$/g,"")).filter(Boolean);continue}d[v]=E.replace(/^["']|["']$/g,"")}}return{metadata:d,body:o}}function ky({content:r,defaultExpanded:c=!0}){const[f,o]=p.useState(c),{metadata:d,body:h}=My(r);if(!r.trim())return null;const v=Object.keys(d).length>0,j=d["allowed-tools"],y=Array.isArray(j)?j:j?[j]:[],x=Object.entries(d).filter(([E])=>E!=="allowed-tools");return s.jsxs("div",{className:"mb-5 rounded-xl overflow-hidden",style:{border:"1px solid var(--border-subtle)",background:"var(--surface-1)"},children:[s.jsxs("button",{onClick:()=>o(!f),className:"w-full flex items-center justify-between px-5 py-3.5 text-left transition-colors duration-150",style:{background:"var(--surface-2)"},onMouseEnter:E=>{E.currentTarget.style.background="var(--surface-3)"},onMouseLeave:E=>{E.currentTarget.style.background="var(--surface-2)"},children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"}),s.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),s.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]})}),s.jsxs("div",{children:[s.jsx("span",{className:"text-[13px] font-semibold",style:{color:"var(--text-primary)"},children:"SKILL.md"}),s.jsx("span",{className:"text-[11px] ml-2",style:{color:"var(--text-tertiary)"},children:"Skill Definition"})]})]}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",style:{transform:f?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),f&&s.jsxs("div",{className:"px-5 py-4 animate-fade-in",children:[v&&s.jsx("div",{className:"grid grid-cols-2 gap-3 mb-4",children:x.map(([E,g])=>s.jsxs("div",{className:"px-3 py-2.5 rounded-lg",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-1",style:{color:"var(--text-tertiary)"},children:E}),s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:Array.isArray(g)?g.join(", "):g})]},E))}),y.length>0&&s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-2",style:{color:"var(--text-tertiary)"},children:"Allowed Tools"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:y.map(E=>s.jsx("span",{className:"px-2 py-1 rounded-md text-[11px] font-mono",style:{background:"var(--accent-muted)",color:"var(--accent)"},children:E},E))})]}),h&&s.jsx("pre",{className:"text-[12px] leading-relaxed p-4 rounded-lg overflow-x-auto",style:{background:"var(--surface-0)",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)",maxHeight:"400px",overflowY:"auto",fontFamily:"var(--font-mono, ui-monospace, monospace)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:h})]})]})}function Cy(r,c){const f=r.split(`
63
+ `),o=c.split(`
64
+ `);if(f.length>1e3||o.length>1e3)return[...f.map(E=>({type:"unchanged",content:E}))];const d=f.length,h=o.length,v=Array.from({length:d+1},()=>new Array(h+1).fill(0));for(let E=1;E<=d;E++)for(let g=1;g<=h;g++)f[E-1]===o[g-1]?v[E][g]=v[E-1][g-1]+1:v[E][g]=Math.max(v[E-1][g],v[E][g-1]);const j=[];let y=d,x=h;for(;y>0||x>0;)y>0&&x>0&&f[y-1]===o[x-1]?(j.push({type:"unchanged",content:f[y-1]}),y--,x--):x>0&&(y===0||v[y][x-1]>=v[y-1][x])?(j.push({type:"added",content:o[x-1]}),x--):(j.push({type:"removed",content:f[y-1]}),y--);return j.reverse()}function _y({plugin:r,skill:c,skillContent:f,onApplied:o}){const[d,h]=p.useState("closed"),[v,j]=p.useState(null),[y,x]=p.useState("claude-cli"),[E,g]=p.useState("opus"),[B,Z]=p.useState([]),[X,Q]=p.useState(""),[V,z]=p.useState(""),[K,W]=p.useState(null),[G,$]=p.useState(!1);p.useEffect(()=>{we.getConfig().then(te=>{j(te),te.providers.find(ee=>ee.id==="claude-cli"&&ee.available)&&(x("claude-cli"),g("opus"))}).catch(()=>{})},[]);function U(){return v==null?void 0:v.providers.find(te=>te.id===y&&te.available)}async function P(){h("loading"),W(null);try{const te=await we.improveSkill(r,c,{provider:y,model:E});Q(te.improved),z(te.reasoning),Z(Cy(te.original,te.improved)),h("diff_shown")}catch(te){W(te.message),h("open")}}async function ce(){$(!0);try{await we.applyImprovement(r,c,X),o(X),h("closed")}catch(te){W(te.message)}finally{$(!1)}}function je(){h("closed"),Z([]),Q(""),z(""),W(null)}if(d==="closed")return s.jsxs("button",{onClick:()=>h("open"),className:"btn btn-secondary mb-5",disabled:!f,children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),s.jsx("path",{d:"M2 17l10 5 10-5"}),s.jsx("path",{d:"M2 12l10 5 10-5"})]}),"Improve Skill"]});const Me=U();return s.jsxs("div",{className:"mb-5 rounded-xl overflow-hidden animate-fade-in",style:{border:"1px solid var(--border-subtle)",background:"var(--surface-1)"},children:[s.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5",style:{background:"var(--surface-2)",borderBottom:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:"rgba(168,85,247,0.15)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#a855f7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),s.jsx("path",{d:"M2 17l10 5 10-5"}),s.jsx("path",{d:"M2 12l10 5 10-5"})]})}),s.jsx("span",{className:"text-[13px] font-semibold",style:{color:"var(--text-primary)"},children:"AI Skill Improvement"})]}),s.jsx("button",{onClick:je,className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:te=>{te.currentTarget.style.background="var(--surface-3)"},onMouseLeave:te=>{te.currentTarget.style.background="transparent"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),s.jsxs("div",{className:"px-5 py-4",children:[(d==="open"||d==="loading")&&s.jsxs("div",{className:"flex items-end gap-3 mb-4",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"text-[11px] font-medium mb-1 block",style:{color:"var(--text-tertiary)"},children:"Provider"}),s.jsx("select",{className:"input-field text-[12px] py-1.5",value:y,onChange:te=>{x(te.target.value);const ye=v==null?void 0:v.providers.find(ee=>ee.id===te.target.value);ye!=null&&ye.models[0]&&g(ye.models[0].id)},disabled:d==="loading",children:v==null?void 0:v.providers.filter(te=>te.available).map(te=>s.jsx("option",{value:te.id,children:te.label},te.id))})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"text-[11px] font-medium mb-1 block",style:{color:"var(--text-tertiary)"},children:"Model"}),s.jsx("select",{className:"input-field text-[12px] py-1.5",value:E,onChange:te=>g(te.target.value),disabled:d==="loading",children:Me==null?void 0:Me.models.map(te=>s.jsx("option",{value:te.id,children:te.label},te.id))})]}),s.jsx("button",{onClick:P,disabled:d==="loading",className:"btn btn-primary flex-shrink-0",children:d==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}})," Improving..."]}):"Improve"})]}),K&&s.jsx("div",{className:"mb-4 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:K}),d==="diff_shown"&&s.jsxs(s.Fragment,{children:[V&&s.jsxs("div",{className:"mb-4 px-4 py-3 rounded-lg text-[12px]",style:{background:"rgba(168,85,247,0.08)",color:"var(--text-secondary)",border:"1px solid rgba(168,85,247,0.2)"},children:[s.jsx("span",{className:"font-semibold",style:{color:"#a855f7"},children:"AI Reasoning: "}),V]}),s.jsx("div",{className:"rounded-lg overflow-hidden mb-4",style:{border:"1px solid var(--border-subtle)",maxHeight:"400px",overflowY:"auto"},children:B.map((te,ye)=>s.jsxs("div",{className:"px-3 py-0.5 text-[11px] font-mono",style:{background:te.type==="added"?"rgba(34,197,94,0.1)":te.type==="removed"?"rgba(239,68,68,0.1)":"transparent",color:te.type==="added"?"var(--green)":te.type==="removed"?"var(--red)":"var(--text-secondary)",borderLeft:te.type==="added"?"3px solid var(--green)":te.type==="removed"?"3px solid var(--red)":"3px solid transparent"},children:[s.jsx("span",{style:{userSelect:"none",opacity:.5,marginRight:8},children:te.type==="added"?"+":te.type==="removed"?"-":" "}),te.content]},ye))}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:ce,disabled:G,className:"btn btn-primary",children:G?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}})," Applying..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})," Apply"]})}),s.jsx("button",{onClick:je,className:"btn btn-secondary",children:"Discard"})]})]})]})]})}function Ry({plugin:r,skill:c}){const[f,o]=p.useState([]),[d,h]=p.useState([]),[v,j]=p.useState(!0),[y,x]=p.useState(null);p.useEffect(()=>{we.getDependencies(r,c).then(g=>{o(g.mcpDependencies),h(g.skillDependencies)}).catch(()=>{}).finally(()=>j(!1))},[r,c]);async function E(g,B){try{await navigator.clipboard.writeText(B),x(g),setTimeout(()=>x(null),2e3)}catch{}}return v?null:f.length===0&&d.length===0?s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[12px]",style:{background:"var(--surface-2)",color:"var(--text-tertiary)",border:"1px solid var(--border-subtle)"},children:"No dependencies detected"}):s.jsxs("div",{className:"mb-5 rounded-xl overflow-hidden",style:{border:"1px solid var(--border-subtle)",background:"var(--surface-1)"},children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3.5",style:{background:"var(--surface-2)",borderBottom:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:"rgba(234,179,8,0.15)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#eab308",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),s.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}),s.jsx("span",{className:"text-[13px] font-semibold",style:{color:"var(--text-primary)"},children:"Dependencies"}),s.jsx("span",{className:"pill text-[10px]",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:f.length+d.length})]}),s.jsxs("div",{className:"px-5 py-4",children:[f.length>0&&s.jsxs("div",{className:"space-y-3 mb-4",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)"},children:"MCP Servers"}),f.map(g=>s.jsxs("div",{className:"p-3 rounded-lg",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:g.server}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:g.transport})]}),s.jsx("button",{onClick:()=>E(g.server,g.configSnippet),className:"btn btn-ghost text-[11px] py-1 px-2",style:{color:y===g.server?"var(--green)":"var(--accent)"},children:y===g.server?s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})," Copied!"]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),s.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})," Copy Config"]})})]}),s.jsx("div",{className:"text-[11px] mb-2 font-mono",style:{color:"var(--text-tertiary)"},children:g.url}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.matchedTools.map(B=>s.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-mono",style:{background:"var(--surface-3)",color:"var(--text-secondary)"},children:B},B))})]},g.server))]}),d.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-2",style:{color:"var(--text-tertiary)"},children:"Skill Dependencies"}),s.jsx("div",{className:"space-y-1.5",children:d.map(g=>s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.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"})}),s.jsx("span",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:g.name}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:g.source==="frontmatter"?"frontmatter":"referenced"})]},g.name))})]})]})]})}function zy({plugin:r,skill:c,evalCase:f,onClose:o}){var he,xe;const[d,h]=p.useState(null),[v,j]=p.useState("claude-cli"),[y,x]=p.useState("sonnet"),[E,g]=p.useState("claude-cli"),[B,Z]=p.useState("opus"),[X,Q]=p.useState("idle"),[V,z]=p.useState(null),[K,W]=p.useState(null),[G,$]=p.useState(null),{events:U,running:P,start:ce}=In(),je=p.useRef(null);p.useEffect(()=>{we.getConfig().then(h).catch(()=>{})},[]),p.useEffect(()=>{const T=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=T}},[]),p.useEffect(()=>{function T(J){J.key==="Escape"&&X!=="running_a"&&X!=="running_b"&&o()}return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[o,X]),p.useEffect(()=>{for(const T of U)T.event==="model_a_start"?Q("running_a"):T.event==="model_a_result"?(z(T.data),Q("running_b")):T.event==="model_b_start"?Q("running_b"):T.event==="model_b_result"?W(T.data):T.event==="done"?Q("complete"):T.event==="error"&&($(T.data.error),Q("complete"))},[U]),p.useEffect(()=>{!P&&(X==="running_a"||X==="running_b")&&Q("complete")},[P,X]);function Me(){z(null),W(null),$(null),Q("running_a"),ce(`/api/skills/${r}/${c}/compare-models`,{eval_id:f.id,modelA:{provider:v,model:y},modelB:{provider:E,model:B}})}const te=p.useCallback(T=>{T.target===je.current&&X!=="running_a"&&X!=="running_b"&&o()},[o,X]);function ye(T){return d==null?void 0:d.providers.find(J=>J.id===T&&J.available)}const ee=X==="running_a"||X==="running_b";return s.jsx("div",{ref:je,onClick:te,className:"fixed inset-0 z-50 flex items-center justify-center p-4 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)"},children:s.jsxs("div",{className:"w-full max-w-4xl animate-modal-in flex flex-col",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)",borderRadius:"16px",boxShadow:"0 24px 80px rgba(0,0,0,0.5)",maxHeight:"min(90vh, 800px)"},children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4",style:{borderBottom:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"rgba(99,131,255,0.15)"},children:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[15px] font-semibold",style:{color:"var(--text-primary)"},children:"Compare Models"}),s.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:["#",f.id," — ",f.name]})]})]}),s.jsx("button",{onClick:o,disabled:ee,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-colors duration-150",style:{color:"var(--text-tertiary)",opacity:ee?.3:1},onMouseEnter:T=>{ee||(T.currentTarget.style.background="var(--surface-3)")},onMouseLeave:T=>{T.currentTarget.style.background="transparent"},children:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-5",style:{minHeight:0},children:[X==="idle"&&s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-5",children:[s.jsxs("div",{className:"p-4 rounded-xl",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wider mb-3",style:{color:"var(--text-tertiary)"},children:"Model A"}),s.jsx("select",{className:"input-field text-[12px] py-1.5 mb-2 w-full",value:v,onChange:T=>{j(T.target.value);const J=d==null?void 0:d.providers.find(ne=>ne.id===T.target.value);J!=null&&J.models[0]&&x(J.models[0].id)},children:d==null?void 0:d.providers.filter(T=>T.available).map(T=>s.jsx("option",{value:T.id,children:T.label},T.id))}),s.jsx("select",{className:"input-field text-[12px] py-1.5 w-full",value:y,onChange:T=>x(T.target.value),children:(he=ye(v))==null?void 0:he.models.map(T=>s.jsx("option",{value:T.id,children:T.label},T.id))})]}),s.jsxs("div",{className:"p-4 rounded-xl",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wider mb-3",style:{color:"var(--text-tertiary)"},children:"Model B"}),s.jsx("select",{className:"input-field text-[12px] py-1.5 mb-2 w-full",value:E,onChange:T=>{g(T.target.value);const J=d==null?void 0:d.providers.find(ne=>ne.id===T.target.value);J!=null&&J.models[0]&&Z(J.models[0].id)},children:d==null?void 0:d.providers.filter(T=>T.available).map(T=>s.jsx("option",{value:T.id,children:T.label},T.id))}),s.jsx("select",{className:"input-field text-[12px] py-1.5 w-full",value:B,onChange:T=>Z(T.target.value),children:(xe=ye(E))==null?void 0:xe.models.map(T=>s.jsx("option",{value:T.id,children:T.label},T.id))})]})]}),ee&&s.jsxs("div",{className:"flex items-center justify-center gap-3 py-8",children:[s.jsx("div",{className:"spinner",style:{width:20,height:20}}),s.jsx("span",{className:"text-[13px]",style:{color:"var(--text-secondary)"},children:X==="running_a"?"Model A running...":"Model A done, Model B running..."})]}),G&&s.jsx("div",{className:"mb-4 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:G}),(V||K)&&s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(Dm,{label:"Model A",result:V}),s.jsx(Dm,{label:"Model B",result:K})]})]}),s.jsxs("div",{className:"flex items-center justify-between px-6 py-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Results are ephemeral — not saved to benchmark history"}),s.jsxs("div",{className:"flex gap-2",children:[X==="idle"&&s.jsxs("button",{onClick:Me,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Compare"]}),X==="complete"&&s.jsx("button",{onClick:o,className:"btn btn-secondary",children:"Close"})]})]})]})})}function Dm({label:r,result:c}){const[f,o]=p.useState(!1);if(!c)return s.jsxs("div",{className:"p-4 rounded-xl",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wider mb-3",style:{color:"var(--text-tertiary)"},children:r}),s.jsx("div",{className:"flex items-center justify-center py-6",style:{color:"var(--text-tertiary)"},children:s.jsx("span",{className:"text-[12px]",children:"Waiting..."})})]});const d=c.assertions.filter(v=>v.pass).length,h=Math.round(c.passRate*100);return s.jsxs("div",{className:"p-4 rounded-xl",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)"},children:r}),s.jsxs("span",{className:"pill",style:{background:h>=80?"var(--green-muted)":h>=50?"var(--yellow-muted)":"var(--red-muted)",color:h>=80?"var(--green)":h>=50?"var(--yellow)":"var(--red)"},children:[h,"%"]})]}),s.jsx("div",{className:"text-[12px] font-medium mb-2",style:{color:"var(--text-primary)"},children:c.model}),s.jsxs("div",{className:"flex gap-3 text-[11px] mb-3",style:{color:"var(--text-tertiary)"},children:[s.jsxs("span",{children:[(c.durationMs/1e3).toFixed(1),"s"]}),c.tokens!=null&&s.jsxs("span",{children:[c.tokens.toLocaleString()," tokens"]}),s.jsxs("span",{children:[d,"/",c.assertions.length," passed"]})]}),s.jsx("div",{className:"space-y-1.5 mb-3",children:c.assertions.map(v=>s.jsxs("div",{className:"flex items-start gap-2 p-2 rounded-lg text-[11px]",style:{background:v.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:v.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"7",height:"7",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:v.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"font-medium",style:{color:"var(--text-primary)"},children:v.text}),s.jsx("div",{className:"mt-0.5",style:{color:"var(--text-secondary)"},children:v.reasoning})]})]},v.id))}),s.jsxs("button",{onClick:()=>o(!f),className:"flex items-center gap-1.5 text-[11px] font-medium transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:v=>{v.currentTarget.style.color="var(--text-primary)"},onMouseLeave:v=>{v.currentTarget.style.color="var(--text-tertiary)"},children:[s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:f?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),f?"Hide Output":"Show Output"]}),f&&s.jsx("pre",{className:"mt-2 text-[11px] leading-relaxed p-3 rounded-lg max-h-40 overflow-y-auto whitespace-pre-wrap animate-fade-in",style:{background:"var(--surface-0)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:c.output})]})}function wy(){const{plugin:r,skill:c}=Ai(),[f,o]=p.useState(null),[d,h]=p.useState(!0),[v,j]=p.useState(null),[y,x]=p.useState(!1),[E,g]=p.useState(null),[B,Z]=p.useState(!1),{events:X,running:Q,start:V}=In(),[z,K]=p.useState(null),[W,G]=p.useState(new Map),[$,U]=p.useState(new Set),[P,ce]=p.useState(null),[je,Me]=p.useState(!1),[te,ye]=p.useState(null),[ee,he]=p.useState(""),[xe,T]=p.useState(null);p.useEffect(()=>{!r||!c||(we.getEvals(r,c).then(o).catch(D=>j(D.message)).finally(()=>h(!1)),we.getSkillDetail(r,c).then(D=>he(D.skillContent)).catch(()=>{}),we.getLatestBenchmark(r,c).then(D=>{ce(D);const O=new Map;for(const I of D.cases)O.set(I.eval_id,{status:I.status,passRate:I.pass_rate,errorMessage:I.error_message||void 0,durationMs:I.durationMs,tokens:I.tokens,assertions:I.assertions.map(oe=>({assertion_id:oe.id,text:oe.text,pass:oe.pass,reasoning:oe.reasoning}))});G(O)}).catch(()=>{}))},[r,c]);async function J(D){if(!(!r||!c)){x(!0);try{const O=await we.saveEvals(r,c,D);o(O),j(null)}catch(O){j(O.message)}finally{x(!1)}}}function ne(D){f&&(J({...f,evals:[...f.evals,D]}),Z(!1))}function ue(D){f&&(J({...f,evals:f.evals.map(O=>O.id===D.id?D:O)}),g(null))}function Ne(D){!f||!confirm("Delete this eval case?")||J({...f,evals:f.evals.filter(O=>O.id!==D)})}function N(D){if(!f)return;const O=f.evals.find(I=>I.id===D);O&&ue({...O,assertions:[...O.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function H(D,O,I){if(!f)return;const oe=f.evals.find(He=>He.id===D);oe&&ue({...oe,assertions:oe.assertions.map(He=>He.id===O?{...He,text:I}:He)})}function R(D,O){if(!f)return;const I=f.evals.find(oe=>oe.id===D);I&&ue({...I,assertions:I.assertions.filter(oe=>oe.id!==O)})}async function w(){if(!(!r||!c)){Me(!0),ye(null);try{const D=await we.generateEvals(r,c),O=await we.saveEvals(r,c,D);o(O),j(null)}catch(D){ye(D.message)}finally{Me(!1)}}}p.useEffect(()=>{if(!z)return;const D={assertions:[]};for(const O of X){if(O.event==="output_ready"){const I=O.data;I.eval_id===z&&(D.output=I.output,I.durationMs!=null&&(D.durationMs=I.durationMs),I.tokens!=null&&(D.tokens=I.tokens))}if(O.event==="assertion_result"){const I=O.data;I.eval_id===z&&!D.assertions.find(oe=>oe.assertion_id===I.assertion_id)&&D.assertions.push(I)}if(O.event==="case_complete"){const I=O.data;I.eval_id===z&&(D.status=I.status,D.passRate=I.pass_rate,D.errorMessage=I.error_message||void 0)}}G(O=>new Map(O).set(z,D))},[X,z]),p.useEffect(()=>{!Q&&z&&K(null)},[Q,z]);function F(D){K(D),U(O=>new Set(O).add(D)),V(`/api/skills/${r}/${c}/benchmark`,{eval_ids:[D]})}function ie(D){U(O=>{const I=new Set(O);return I.has(D)?I.delete(D):I.add(D),I})}return d?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Ut,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:D=>{D.currentTarget.style.color="var(--text-primary)"},onMouseLeave:D=>{D.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:r}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:c})]}),s.jsx(ky,{content:ee}),r&&c&&s.jsx(_y,{plugin:r,skill:c,skillContent:ee,onApplied:D=>{he(D)}}),r&&c&&s.jsx(Ry,{plugin:r,skill:c}),f&&s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Ut,{to:`/skills/${r}/${c}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Ut,{to:`/skills/${r}/${c}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Ut,{to:`/skills/${r}/${c}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),P&&!Q&&(()=>{const D=P.cases.filter(Kt=>Kt.status==="pass").length,O=P.cases.length,I=P.overall_pass_rate!==void 0?Math.round(P.overall_pass_rate*100):O>0?Math.round(D/O*100):0,oe=P.cases.reduce((Kt,mt)=>Kt+(mt.durationMs??0),0),He=new Date(P.timestamp),hl=Oy(He);return s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg flex items-center justify-between",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"text-[20px] font-bold",style:{color:I>=80?"var(--green)":I>=50?"var(--yellow)":"var(--red)"},children:[I,"%"]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:["Last Benchmark — ",D,"/",O," passed"]}),s.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:[P.model," · ",hl,oe>0?` · ${(oe/1e3).toFixed(1)}s`:""]})]})]}),s.jsx("span",{className:"pill",style:{background:I>=80?"var(--green-muted)":I>=50?"var(--yellow-muted)":"var(--red-muted)",color:I>=80?"var(--green)":I>=50?"var(--yellow)":"var(--red)"},children:I>=80?"Healthy":I>=50?"Needs Work":"Failing"})]})})(),v&&s.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}),f?s.jsxs("div",{className:"space-y-3 stagger-children",children:[f.evals.map(D=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",D.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:D.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:D.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>F(D.id),disabled:Q,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:z===D.id?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run"]})}),s.jsxs("button",{onClick:()=>T(D),disabled:Q,className:"btn btn-ghost text-[12px]",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"A/B"]}),s.jsx("button",{onClick:()=>{g(D),Z(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>Ne(D.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:D.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:D.assertions.map(O=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:O.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:O.text,onChange:I=>H(D.id,O.id,I.target.value),onFocus:I=>{I.currentTarget.style.borderColor="var(--border-default)",I.currentTarget.style.background="var(--surface-2)"},onBlur:I=>{I.currentTarget.style.borderColor="transparent",I.currentTarget.style.background="transparent"}}),s.jsx("button",{onClick:()=>R(D.id,O.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},O.id))}),s.jsxs("button",{onClick:()=>N(D.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]}),(()=>{const O=W.get(D.id);if(!O||O.assertions.length===0&&!O.status)return null;const I=$.has(D.id);return s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Benchmark Result"}),O.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(O.durationMs/1e3).toFixed(1),"s"]}),O.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[O.tokens.toLocaleString()," tok"]})]}),O.status?s.jsxs("span",{className:"pill",style:{background:O.status==="pass"?"var(--green-muted)":O.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:O.status==="pass"?"var(--green)":O.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:O.status==="pass"?"var(--green)":O.status==="error"?"var(--yellow)":"var(--red)"}}),O.status," ",O.passRate!==void 0?`${Math.round(O.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),O.errorMessage&&s.jsx("div",{className:"mb-2 p-2 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:O.errorMessage}),s.jsx("div",{className:"space-y-1.5",children:O.assertions.map(oe=>s.jsxs("div",{className:"flex items-start gap-2 p-2 rounded-lg animate-fade-in",style:{background:oe.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:oe.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:oe.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:oe.text||oe.assertion_id}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-secondary)"},children:oe.reasoning})]})]},oe.assertion_id))}),O.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>ie(D.id),className:"mt-2 flex items-center gap-1.5 text-[11px] font-medium transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:oe=>{oe.currentTarget.style.color="var(--text-primary)"},onMouseLeave:oe=>{oe.currentTarget.style.color="var(--text-tertiary)"},children:[s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:I?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),I?"Hide Output":"Show LLM Output"]}),I&&s.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:O.output})]})]})})()]},D.id)),s.jsx("button",{onClick:()=>{g(null),Z(!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:D=>{D.currentTarget.style.borderColor="var(--accent)",D.currentTarget.style.color="var(--accent)",D.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:D=>{D.currentTarget.style.borderColor="var(--border-default)",D.currentTarget.style.color="var(--text-tertiary)",D.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:je?s.jsx("div",{className:"spinner",style:{width:28,height:28}}):s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),je?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"Generating eval cases..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:"This may take 10–30 seconds"})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),te&&s.jsx("div",{className:"mt-3 mx-auto max-w-md px-4 py-3 rounded-lg text-[13px] text-left",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:te}),s.jsxs("div",{className:"flex items-center justify-center gap-2 mt-3",children:[s.jsxs("button",{onClick:w,className:"btn btn-primary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),s.jsx("path",{d:"M2 17l10 5 10-5"}),s.jsx("path",{d:"M2 12l10 5 10-5"})]}),"Generate with AI"]}),s.jsx("button",{onClick:()=>Z(!0),className:"btn btn-secondary",children:"Create Manually"})]})]})]}),B&&s.jsx(Dy,{evalCase:E,skillName:(f==null?void 0:f.skill_name)||c||"",existingIds:(f==null?void 0:f.evals.map(D=>D.id))||[],onSave:D=>E?ue(D):ne(D),onCancel:()=>{Z(!1),g(null)}}),xe&&r&&c&&s.jsx(zy,{plugin:r,skill:c,evalCase:xe,onClose:()=>T(null)}),y&&s.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:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function Oy(r){const c=Math.floor((Date.now()-r.getTime())/1e3);if(c<60)return"just now";const f=Math.floor(c/60);if(f<60)return`${f}m ago`;const o=Math.floor(f/60);if(o<24)return`${o}h ago`;const d=Math.floor(o/24);return d<30?`${d}d ago`:r.toLocaleDateString()}function Dy({evalCase:r,skillName:c,existingIds:f,onSave:o,onCancel:d}){const[h,v]=p.useState((r==null?void 0:r.name)||""),[j,y]=p.useState((r==null?void 0:r.prompt)||""),[x,E]=p.useState((r==null?void 0:r.expected_output)||""),[g,B]=p.useState((r==null?void 0:r.assertions)||[{id:"assert-1",text:"",type:"boolean"}]),Z=p.useRef(null),X=p.useRef(null),Q=p.useRef(null);p.useEffect(()=>{const K=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=K}},[]),p.useEffect(()=>{requestAnimationFrame(()=>{var K;return(K=Q.current)==null?void 0:K.focus()})},[]),p.useEffect(()=>{function K(W){W.key==="Escape"&&d()}return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[d]);const V=p.useCallback(K=>{K.target===Z.current&&d()},[d]);function z(K){K.preventDefault();const W=(r==null?void 0:r.id)??(f.length>0?Math.max(...f)+1:1);o({id:W,name:h,prompt:j,expected_output:x,files:(r==null?void 0:r.files)||[],assertions:g.filter(G=>G.text.trim())})}return s.jsx("div",{ref:Z,onClick:V,className:"fixed inset-0 z-50 flex items-center justify-center p-4 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)"},children:s.jsxs("form",{ref:X,onSubmit:z,className:"w-full max-w-2xl animate-modal-in flex flex-col",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)",borderRadius:"16px",boxShadow:"0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04)",maxHeight:"min(85vh, 720px)"},children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r?s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[15px] font-semibold",style:{color:"var(--text-primary)"},children:r?"Edit Eval Case":"New Eval Case"}),r&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:["#",r.id]})]})]}),s.jsx("button",{type:"button",onClick:d,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-colors duration-150",style:{color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:K=>{K.currentTarget.style.background="var(--surface-3)",K.currentTarget.style.color="var(--text-primary)"},onMouseLeave:K=>{K.currentTarget.style.background="transparent",K.currentTarget.style.color="var(--text-tertiary)"},"aria-label":"Close",children:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),s.jsxs("div",{className:"overflow-y-auto flex-1 px-6 py-5",style:{minHeight:0},children:[s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{ref:Q,className:"input-field",value:h,onChange:K=>v(K.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field resize-y",style:{minHeight:"96px"},value:j,onChange:K=>y(K.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field resize-y",style:{minHeight:"80px"},value:x,onChange:K=>E(K.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Assertions"}),s.jsx("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded-full",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:g.length})]}),s.jsxs("button",{type:"button",onClick:()=>B([...g,{id:`assert-${g.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] py-1 px-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add"]})]}),s.jsx("div",{className:"space-y-2",children:g.map((K,W)=>s.jsxs("div",{className:"flex items-center gap-2 p-2.5 rounded-lg group transition-colors duration-150",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("input",{className:"input-field text-[11px] font-mono py-1.5 px-2",style:{background:"var(--surface-3)",width:"120px",flexShrink:0},value:K.id,onChange:G=>{const $=[...g];$[W]={...$[W],id:G.target.value},B($)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5 px-2.5",style:{background:"transparent",borderColor:"transparent"},value:K.text,onChange:G=>{const $=[...g];$[W]={...$[W],text:G.target.value},B($)},onFocus:G=>{G.currentTarget.style.borderColor="var(--border-default)",G.currentTarget.style.background="var(--surface-1)"},onBlur:G=>{G.currentTarget.style.borderColor="transparent",G.currentTarget.style.background="transparent"},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>B(g.filter((G,$)=>$!==W)),className:"w-7 h-7 rounded-md flex items-center justify-center flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-150",style:{color:"var(--red)",background:"transparent"},onMouseEnter:G=>{G.currentTarget.style.background="var(--red-muted)"},onMouseLeave:G=>{G.currentTarget.style.background="transparent"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},W))}),g.length===0&&s.jsx("div",{className:"text-center py-6 rounded-lg text-[12px]",style:{background:"var(--surface-2)",color:"var(--text-tertiary)",border:"1px dashed var(--border-default)"},children:"No assertions yet. Add one to validate the eval output."})]})]}),s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 flex-shrink-0",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:["Press ",s.jsx("kbd",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"var(--surface-3)",border:"1px solid var(--border-subtle)"},children:"Esc"})," to cancel"]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",onClick:d,className:"btn btn-secondary",children:"Cancel"}),s.jsxs("button",{type:"submit",className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),r?"Save Changes":"Create Case"]})]})]})]})})}const dl=220,Vn=32,Bm=4,Lm=28,pi=44,Hm=16,ra=40,By=52;function dh({title:r,groups:c,seriesColors:f,seriesLabels:o,maxValue:d,formatValue:h=j=>j.toFixed(1),yLabel:v}){const j=o.length,y=j*Vn+(j-1)*Bm,x=pi+Hm+c.length*y+(c.length-1)*Lm,E=ra+dl+By,g=5,B=Array.from({length:g+1},(Z,X)=>d/g*X);return s.jsxs("div",{className:"glass-card p-5 overflow-x-auto animate-fade-in",children:[s.jsx("div",{className:"text-[13px] font-semibold mb-4",style:{color:"var(--text-primary)"},children:r}),s.jsx("div",{className:"flex items-center gap-5 mb-3",children:o.map((Z,X)=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-3 h-3 rounded-[3px]",style:{background:f[X]}}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-secondary)"},children:Z})]},Z))}),s.jsxs("svg",{width:Math.max(x,300),height:E,viewBox:`0 0 ${Math.max(x,300)} ${E}`,style:{display:"block"},children:[v&&s.jsx("text",{x:12,y:ra+dl/2,transform:`rotate(-90, 12, ${ra+dl/2})`,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em"},children:v}),B.map(Z=>{const X=ra+dl-Z/d*dl;return s.jsxs("g",{children:[s.jsx("line",{x1:pi,y1:X,x2:Math.max(x,300)-Hm,y2:X,stroke:"var(--border-subtle)",strokeWidth:Z===0?1:.5,strokeDasharray:Z===0?void 0:"4 4"}),s.jsx("text",{x:pi-8,y:X+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:Z%1===0?Z.toFixed(0):Z.toFixed(1)})]},Z)}),c.map((Z,X)=>{const Q=pi+X*(y+Lm);return s.jsxs("g",{children:[Z.values.map((V,z)=>{const K=Math.max(0,V.value/d*dl),W=Q+z*(Vn+Bm),G=ra+dl-K;return s.jsxs("g",{children:[s.jsxs("rect",{x:W,y:G,width:Vn,height:K,rx:4,ry:4,fill:f[z],opacity:.85,children:[s.jsx("animate",{attributeName:"height",from:"0",to:K,dur:"0.5s",fill:"freeze"}),s.jsx("animate",{attributeName:"y",from:ra+dl,to:G,dur:"0.5s",fill:"freeze"})]}),s.jsx("text",{x:W+Vn/2,y:G-6,textAnchor:"middle",style:{fill:"var(--text-secondary)",fontSize:10,fontWeight:600},children:h(V.value)}),V.label&&s.jsx("text",{x:W+Vn/2,y:G-17,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:9},children:V.label})]},z)}),s.jsx("text",{x:Q+y/2,y:ra+dl+18,textAnchor:"middle",style:{fill:"var(--text-secondary)",fontSize:11},children:Ly(Z.label,14)})]},Z.label)})]})]})}function Ly(r,c){return r.length<=c?r:r.slice(0,c-1)+"…"}function Hy(){const{plugin:r,skill:c}=Ai(),[f]=fh(),o=Ti(),{events:d,running:h,done:v,error:j,start:y}=In(),[x,E]=p.useState(new Set),[g,B]=p.useState(null),[Z,X]=p.useState(null),[Q,V]=p.useState(null),[z,K]=p.useState(null),[W,G]=p.useState(!1),[$,U]=p.useState(null),[P,ce]=p.useState([]),[je,Me]=p.useState(""),[te,ye]=p.useState(!1),ee=p.useRef(!1);p.useEffect(()=>{we.getConfig().then(R=>B(R.model)).catch(()=>{}),r&&c&&(we.getEvals(r,c).then(X).catch(()=>{}),we.getLatestBenchmark(r,c).then(K).catch(()=>{}))},[r,c]),p.useEffect(()=>{if(ee.current||!r||!c)return;const R=f.get("autostart"),w=f.get("mode");R==="true"&&(ee.current=!0,w==="baseline"?xe():he())},[r,c,f]);function he(R){we.getConfig().then(F=>B(F.model)).catch(()=>{}),E(new Set),G(!1),V((R==null?void 0:R.length)===1?R[0]:"all");const w=R?{eval_ids:R}:void 0;y(`/api/skills/${r}/${c}/benchmark`,w)}function xe(){we.getConfig().then(R=>B(R.model)).catch(()=>{}),E(new Set),G(!0),V("all"),y(`/api/skills/${r}/${c}/baseline`)}function T(R){if($===R){U(null),ce([]),Me("");return}U(R),Me(""),J(R)}function J(R,w){!r||!c||(ye(!0),we.getCaseHistory(r,c,R,w||void 0).then(ce).catch(()=>ce([])).finally(()=>ye(!1)))}function ne(R){E(w=>{const F=new Set(w);return F.has(R)?F.delete(R):F.add(R),F})}const ue=new Map;for(const R of d){if(R.event==="case_start"){const w=R.data;ue.has(w.eval_id)||ue.set(w.eval_id,{name:w.eval_name,assertions:[]})}if(R.event==="output_ready"){const w=R.data,F=ue.get(w.eval_id)||{assertions:[]};F.output=w.output,w.durationMs!=null&&(F.durationMs=w.durationMs),w.tokens!=null&&(F.tokens=w.tokens),ue.set(w.eval_id,F)}if(R.event==="assertion_result"){const w=R.data,F=ue.get(w.eval_id)||{assertions:[]};F.assertions.find(ie=>ie.assertion_id===w.assertion_id)||(F.assertions.push(w),ue.set(w.eval_id,F))}if(R.event==="case_complete"){const w=R.data,F=ue.get(w.eval_id)||{assertions:[]};F.status=w.status,F.passRate=w.pass_rate,F.errorMessage=w.error_message||void 0,ue.set(w.eval_id,F)}}const Ne=d.find(R=>R.event==="done"),N=Ne==null?void 0:Ne.data,H=(N==null?void 0:N.overall_pass_rate)!==void 0?Math.round(N.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ut,{to:`/skills/${r}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:R=>{R.currentTarget.style.color="var(--text-primary)"},onMouseLeave:R=>{R.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:W?"Baseline (no skill)":"Benchmark"})]}),s.jsx("div",{className:"mb-3",children:s.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."})}),s.jsxs("div",{className:"flex items-center gap-2 mb-7",children:[s.jsx("button",{onClick:()=>he(),disabled:h,className:"btn btn-primary",children:h&&Q==="all"&&!W?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running All..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run All (",(Z==null?void 0:Z.evals.length)??0," cases)"]})}),s.jsx("button",{onClick:()=>xe(),disabled:h,className:"btn btn-ghost",style:{color:"#f97316"},children:h&&W?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#f97316",borderColor:"rgba(249,115,22,0.2)",width:14,height:14}})," Running Baseline..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"})]})," Run Baseline"]})}),s.jsxs("button",{onClick:()=>o(`/skills/${r}/${c}/compare`),className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),s.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),s.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]}),"Run A/B"]})]}),j&&s.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:j}),!h&&ue.size===0&&z&&(()=>{const R=z.cases.filter(O=>O.status==="pass").length,w=z.cases.length,F=z.overall_pass_rate!==void 0?Math.round(z.overall_pass_rate*100):w>0?Math.round(R/w*100):0,ie=z.cases.reduce((O,I)=>O+(I.durationMs??0),0),D=new Date(z.timestamp);return s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg flex items-center justify-between",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"text-[20px] font-bold",style:{color:F>=80?"var(--green)":F>=50?"var(--yellow)":"var(--red)"},children:[F,"%"]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:["Last Benchmark — ",R,"/",w," passed"]}),s.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:[z.model," · ",D.toLocaleString(),ie>0?` · ${(ie/1e3).toFixed(1)}s`:""]})]})]}),s.jsx("span",{className:"pill",style:{background:F>=80?"var(--green-muted)":F>=50?"var(--yellow-muted)":"var(--red-muted)",color:F>=80?"var(--green)":F>=50?"var(--yellow)":"var(--red)"},children:F>=80?"Healthy":F>=50?"Needs Work":"Failing"})]})})(),!h&&ue.size===0&&Z&&Z.evals.length>0&&s.jsxs("div",{className:"space-y-2 mb-6",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Eval Cases"}),Z.evals.map(R=>{const w=z==null?void 0:z.cases.find(F=>F.eval_id===R.id);return s.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:[s.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:["#",R.id]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium truncate",style:{color:"var(--text-primary)"},children:R.name}),s.jsxs("div",{className:"text-[11px] truncate mt-0.5",style:{color:"var(--text-tertiary)"},children:[R.assertions.length," assertion",R.assertions.length!==1?"s":""]})]}),w&&s.jsxs("span",{className:"pill flex-shrink-0",style:{background:w.status==="pass"?"var(--green-muted)":w.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"}}),w.status," ",Math.round(w.pass_rate*100),"%",w.durationMs!=null&&s.jsxs("span",{className:"ml-1 opacity-70",children:[(w.durationMs/1e3).toFixed(1),"s"]})]}),s.jsxs("button",{onClick:()=>he([R.id]),disabled:h,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run"]})]},R.id)})]}),ue.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(ue.entries()).map(([R,w])=>{const F=x.has(R),ie=!!w.status,D=$===R;return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",style:{cursor:ie?"pointer":"default"},onClick:()=>{ie&&T(R)},children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",R]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:w.name||"Eval Case"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[w.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(w.durationMs/1e3).toFixed(1),"s"]}),w.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[w.tokens.toLocaleString()," tok"]}),w.status?s.jsxs("span",{className:"pill",style:{background:w.status==="pass"?"var(--green-muted)":w.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"}}),w.status," ",w.passRate!==void 0?`${Math.round(w.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]}),ie&&s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:D?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease",flexShrink:0},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),w.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:w.errorMessage}),s.jsx("div",{className:"space-y-2",children:w.assertions.map(O=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:O.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:O.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:O.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:O.text||O.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:O.reasoning})]})]},O.assertion_id))})]}),D&&s.jsxs("div",{className:"px-5 py-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)",background:"var(--surface-1)"},onClick:O=>O.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Case History"}),s.jsxs("select",{value:je,onChange:O=>{Me(O.target.value),J(R,O.target.value)},className:"text-[11px] px-2 py-1 rounded",style:{background:"var(--surface-2)",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)"},children:[s.jsx("option",{value:"",children:"All models"}),[...new Set(P.map(O=>O.model))].map(O=>s.jsx("option",{value:O,children:O},O))]})]}),te?s.jsx("div",{className:"flex items-center justify-center py-4",children:s.jsx("div",{className:"spinner",style:{width:16,height:16}})}):P.length===0?s.jsx("div",{className:"text-[12px] py-3 text-center",style:{color:"var(--text-tertiary)"},children:"No history found for this case."}):s.jsxs(s.Fragment,{children:[P.length>=2&&(()=>{const O=P.slice().reverse(),I=200,oe=40,He=4,hl=1,Kt=(I-He*2)/(O.length-1);return s.jsx("div",{className:"mb-3",children:s.jsxs("svg",{width:I,height:oe,style:{display:"block"},children:[s.jsx("polyline",{points:O.map((mt,xl)=>{const Gl=He+xl*Kt,$a=oe-He-mt.pass_rate/hl*(oe-He*2);return`${Gl.toFixed(1)},${$a.toFixed(1)}`}).join(" "),fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.map((mt,xl)=>{const Gl=He+xl*Kt,$a=oe-He-mt.pass_rate/hl*(oe-He*2);return s.jsx("circle",{cx:Gl,cy:$a,r:"2.5",fill:"var(--accent)"},xl)})]})})})(),s.jsx("div",{className:"space-y-1.5",children:P.map((O,I)=>{const oe=Math.round(O.pass_rate*100),He=new Date(O.timestamp);return s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg text-[12px]",style:{background:"var(--surface-2)"},children:[s.jsxs("span",{className:"text-[11px] flex-shrink-0",style:{color:"var(--text-tertiary)"},children:[He.toLocaleDateString()," ",He.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),s.jsx("span",{className:"pill flex-shrink-0",style:{background:"var(--surface-3)",color:"var(--text-secondary)",fontSize:"10px"},children:O.model}),s.jsxs("span",{className:"pill flex-shrink-0",style:{background:oe>=80?"var(--green-muted)":oe>=50?"var(--yellow-muted)":"var(--red-muted)",color:oe>=80?"var(--green)":oe>=50?"var(--yellow)":"var(--red)",fontSize:"10px"},children:[oe,"%"]}),O.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(O.durationMs/1e3).toFixed(1),"s"]}),O.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[O.tokens.toLocaleString()," tok"]})]},I)})})]})]}),w.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:O=>{O.stopPropagation(),ne(R)},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:O=>{O.currentTarget.style.background="var(--surface-3)"},onMouseLeave:O=>{O.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:F?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),F?"Hide LLM Output":"Show Actual LLM Output"]}),F&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.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:w.output})]})]})]},R)}),v&&ue.size>1&&(()=>{const R=Array.from(ue.entries());return s.jsx(dh,{title:"Benchmark Results — Pass Rate per Eval",groups:R.map(([F,ie])=>{const D=ie.assertions.filter(oe=>oe.pass).length,O=ie.assertions.length,I=O>0?D/O:0;return{label:ie.name||`Eval #${F}`,values:[{value:I*100,label:`${D}/${O}`}]}}),seriesColors:[R.every(([,F])=>F.status==="pass")?"#34d399":"#6383ff"],seriesLabels:["Pass Rate"],maxValue:100,formatValue:F=>`${Math.round(F)}%`,yLabel:"Accuracy"})})(),v&&H!==null&&(()=>{const R=Array.from(ue.values()),w=R.reduce((D,O)=>D+(O.durationMs??0),0),F=R.reduce((D,O)=>D+(O.tokens??0),0),ie=R.some(D=>D.tokens!=null);return s.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:H>=80?"var(--green)":H>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:H>=80?"var(--green)":H>=50?"var(--yellow)":"var(--red)"},children:[H,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:Q==="all"?"Overall Pass Rate":"Pass Rate"}),s.jsxs("div",{className:"flex items-center justify-center gap-4 mt-2 text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[g&&s.jsx("span",{children:g}),w>0&&s.jsxs("span",{children:[(w/1e3).toFixed(1),"s total"]}),ie&&F>0&&s.jsxs("span",{children:[F.toLocaleString()," tokens"]})]})]})})()]}),h&&ue.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const Um={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 Uy(){const{plugin:r,skill:c}=Ai(),{events:f,running:o,done:d,error:h,start:v}=In(),[j,y]=p.useState(new Set),[x,E]=p.useState(null),[g]=fh(),B=p.useRef(!1);p.useEffect(()=>{we.getConfig().then(U=>E(U.model)).catch(()=>{})},[]),p.useEffect(()=>{g.get("autostart")==="true"&&!B.current&&r&&c&&(B.current=!0,y(new Set),v(`/api/skills/${r}/${c}/compare`))},[g,r,c]);function Z(){y(new Set),v(`/api/skills/${r}/${c}/compare`)}function X(U){y(P=>{const ce=new Set(P);return ce.has(U)?ce.delete(U):ce.add(U),ce})}const Q=[],V=[],z=[];for(const U of f)if(U.event==="outputs_ready"){const P=U.data;Q.find(ce=>ce.eval_id===P.eval_id)||Q.push(P)}else if(U.event==="case_error"){const P=U.data;V.find(ce=>ce.eval_id===P.eval_id)||V.push(P)}else if(U.event==="case_start"){const P=U.data;z.find(ce=>ce.eval_id===P.eval_id)||z.push(P)}const K=new Set([...Q.map(U=>U.eval_id),...V.map(U=>U.eval_id)]),W=z.filter(U=>!K.has(U.eval_id)).pop(),G=f.find(U=>U.event==="done"),$=G==null?void 0:G.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ut,{to:`/skills/${r}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:U=>{U.currentTarget.style.color="var(--text-primary)"},onMouseLeave:U=>{U.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsxs("div",{className:"mb-3",children:[s.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)."}),x&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:x})]})]}),s.jsx("button",{onClick:Z,disabled:o,className:"btn btn-purple mb-7",children:o?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),h&&s.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:h}),($==null?void 0:$.error)&&s.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:[s.jsx("span",{className:"font-semibold",children:"Error:"})," ",$.error]}),V.length>0&&s.jsx("div",{className:"space-y-2 mb-5",children:V.map(U=>s.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:[s.jsxs("span",{className:"font-semibold",children:["Eval #",U.eval_id," failed:"]})," ",U.error]},U.eval_id))}),Q.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[Q.map(U=>{const P=j.has(U.eval_id),ce=U.winner==="skill"?"Skill Wins":U.winner==="baseline"?"Baseline Wins":"Tie",je=U.winner==="skill"?"var(--green)":U.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",U.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:U.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:U.winner==="skill"?"var(--green-muted)":U.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:je,fontWeight:700},children:ce})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:U.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(qm,{label:"WITH Skill",contentScore:U.skillContentScore,structureScore:U.skillStructureScore,isWinner:U.winner==="skill"}),s.jsx(qm,{label:"WITHOUT Skill",contentScore:U.baselineContentScore,structureScore:U.baselineStructureScore,isWinner:U.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>X(U.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:Me=>{Me.currentTarget.style.background="var(--surface-3)"},onMouseLeave:Me=>{Me.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:P?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),P?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),P&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(Gm,{label:"WITH Skill",output:U.skillOutput,accentColor:U.winner==="skill"?"var(--green)":void 0}),s.jsx(Gm,{label:"WITHOUT Skill",output:U.baselineOutput,accentColor:U.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},U.eval_id)}),d&&Q.length>1&&s.jsx(dh,{title:"Score Comparison — With Skill vs Without",groups:Q.map(U=>({label:U.eval_name||`Eval #${U.eval_id}`,values:[{value:(U.skillContentScore+U.skillStructureScore)/2,label:`${U.skillContentScore+U.skillStructureScore}/10`},{value:(U.baselineContentScore+U.baselineStructureScore)/2,label:`${U.baselineContentScore+U.baselineStructureScore}/10`}]})),seriesColors:["#6383ff","#a0a0a0"],seriesLabels:["With Skill","Without Skill"],maxValue:5,yLabel:"Avg Score"}),d&&($==null?void 0:$.verdict)&&(()=>{const U=Um[$.verdict]||Um.INEFFECTIVE;return s.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:U.border,borderWidth:2,boxShadow:`0 0 40px ${U.glow}`},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:U.text},children:$.verdict}),$.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Pu,{label:"Skill Avg",value:$.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Pu,{label:"Baseline Avg",value:$.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Pu,{label:"Delta",value:`${$.comparison.delta>0?"+":""}${$.comparison.delta.toFixed(1)}`,color:$.comparison.delta>0?"var(--green)":$.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),$.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round($.overall_pass_rate*100),"%"]})]})})()]}),o&&Q.length===0&&V.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:W?`Processing: ${W.eval_name||`Eval #${W.eval_id}`}`:"Then blind-scoring both responses"})]})]})}function qm({label:r,contentScore:c,structureScore:f,isWinner:o}){const d=((c+f)/2).toFixed(1),h=parseFloat(d),v=h>=4?"var(--green)":h>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:o?"1px solid var(--green)":"1px solid transparent",boxShadow:o?"0 0 20px var(--green-muted)":"none"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:r}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:v},children:d})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ym,{label:"Content",score:c}),s.jsx(Ym,{label:"Structure",score:f})]})]})}function Ym({label:r,score:c}){const f=c/5*100,o=c>=4?"var(--green)":c>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:r}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:o}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:o},children:c})]})}function Gm({label:r,output:c,accentColor:f,hasBorderLeft:o}){return s.jsxs("div",{className:"p-4",style:{borderLeft:o?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[f&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:f}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:f||"var(--text-tertiary)"},children:r})]}),s.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:c||"(empty output)"})]})}function Pu({label:r,value:c,color:f}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:f||"var(--text-primary)"},children:c}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:r})]})}const ec={benchmark:"#6383ff",comparison:"#a78bfa",baseline:"#fb923c"},Xm={benchmark:"Benchmark",comparison:"Comparison",baseline:"Baseline"},ic=600,rc=180,st=40,tc=ic-st*2,Yl=rc-st*2,qy=[25,50,75,100];function Qm(r){return new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Yy({entries:r}){const[c,f]=p.useState(null);if(r.length<2)return null;const o=r.length,d=r.map((j,y)=>{const x=st+y/(o-1)*tc,E=j.passRate*100,g=st+Yl-E/100*Yl;return{x,y:g,pct:E,entry:j}}),h=d.map(j=>`${j.x},${j.y}`).join(" "),v=Array.from(new Set(r.map(j=>j.type)));return s.jsxs("div",{className:"glass-card p-5 animate-fade-in",style:{position:"relative"},children:[s.jsx("div",{className:"text-[13px] font-semibold mb-2",style:{color:"var(--text-primary)"},children:"Pass Rate Trend"}),s.jsx("div",{className:"flex items-center gap-5 mb-3",children:v.map(j=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-3 h-3 rounded-full",style:{background:ec[j]??"var(--text-tertiary)"}}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-secondary)"},children:Xm[j]??j})]},j))}),s.jsxs("svg",{width:ic,height:rc,viewBox:`0 0 ${ic} ${rc}`,style:{display:"block",overflow:"visible"},children:[qy.map(j=>{const y=st+Yl-j/100*Yl;return s.jsxs("g",{children:[s.jsx("line",{x1:st,y1:y,x2:st+tc,y2:y,stroke:"var(--border-subtle)",strokeWidth:.5,strokeDasharray:"4 4"}),s.jsxs("text",{x:st-8,y:y+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:[j,"%"]})]},j)}),s.jsx("line",{x1:st,y1:st+Yl,x2:st+tc,y2:st+Yl,stroke:"var(--border-subtle)",strokeWidth:1}),s.jsx("text",{x:st-8,y:st+Yl+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:"0%"}),s.jsx("polyline",{points:h,fill:"none",stroke:"var(--border-subtle)",strokeWidth:1.5,strokeLinejoin:"round"}),d.map((j,y)=>s.jsx("circle",{cx:j.x,cy:j.y,r:5,fill:ec[j.entry.type]??"var(--text-tertiary)",stroke:"var(--surface-2)",strokeWidth:2,style:{cursor:"pointer",transition:"r 0.15s ease"},onMouseEnter:x=>{x.currentTarget.setAttribute("r","7"),f({x:j.x,y:j.y,entry:j.entry})},onMouseLeave:x=>{x.currentTarget.setAttribute("r","5"),f(null)}},y)),Gy(o).map(j=>s.jsx("text",{x:d[j].x,y:st+Yl+16,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:10},children:Qm(r[j].timestamp)},j))]}),c&&s.jsxs("div",{style:{position:"absolute",left:c.x,top:c.y-12,transform:"translate(-50%, -100%)",background:"var(--surface-3)",border:"1px solid var(--border-subtle)",borderRadius:8,padding:"8px 12px",pointerEvents:"none",zIndex:10,whiteSpace:"nowrap"},children:[s.jsx("div",{className:"text-[11px] font-medium",style:{color:"var(--text-primary)"},children:Qm(c.entry.timestamp)}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:c.entry.model}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:"text-[9px] font-semibold px-1.5 py-0.5 rounded-full",style:{background:ec[c.entry.type]??"var(--text-tertiary)",color:"#fff"},children:Xm[c.entry.type]??c.entry.type}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--text-primary)"},children:[Math.round(c.entry.passRate*100),"%"]})]})]})]})}function Gy(r){return r<=3?Array.from({length:r},(c,f)=>f):r<=6?[0,Math.floor(r/2),r-1]:[0,Math.floor(r/3),Math.floor(2*r/3),r-1]}function mh(r){const c=new Date(r);return c.toLocaleDateString(void 0,{month:"short",day:"numeric"})+", "+c.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function Ni(r){return r==null?"--":r>=1e3?`${(r/1e3).toFixed(1)}s`:`${r}ms`}function Jn(r){return r==null?"--":r>=1e3?`${(r/1e3).toFixed(1)}k tok`:`${r} tok`}function ji(r){return r>=.8?"var(--green)":r>=.5?"var(--yellow)":"var(--red)"}const Xy={benchmark:{bg:"rgba(99,131,255,0.15)",fg:"#6383ff",label:"Benchmark"},comparison:{bg:"var(--purple-muted)",fg:"var(--purple)",label:"A/B"},baseline:{bg:"rgba(251,146,60,0.15)",fg:"#fb923c",label:"Baseline"}};function hh(r){return r?r==="EFFECTIVE"?"var(--green)":r==="MARGINAL"?"var(--yellow)":r==="DEGRADING"?"var(--red)":"var(--text-secondary)":"var(--text-tertiary)"}function Qy({models:r,filters:c,onChange:f}){const o=!!(c.model||c.type||c.from||c.to),d={background:"var(--surface-2)",border:"1px solid var(--border-subtle)",borderRadius:8,padding:"4px 8px",fontSize:12,color:"var(--text-primary)",outline:"none"};return s.jsxs("div",{className:"flex items-center gap-3 flex-wrap animate-fade-in",style:{marginBottom:16},children:[s.jsxs("select",{value:c.model??"",onChange:h=>f({...c,model:h.target.value||void 0}),style:d,children:[s.jsx("option",{value:"",children:"All models"}),r.map(h=>s.jsx("option",{value:h,children:h},h))]}),s.jsxs("select",{value:c.type??"",onChange:h=>f({...c,type:h.target.value||void 0}),style:d,children:[s.jsx("option",{value:"",children:"All types"}),s.jsx("option",{value:"benchmark",children:"Benchmark"}),s.jsx("option",{value:"comparison",children:"Comparison"}),s.jsx("option",{value:"baseline",children:"Baseline"})]}),s.jsx("input",{type:"date",value:c.from??"",onChange:h=>f({...c,from:h.target.value||void 0}),style:d,placeholder:"From"}),s.jsx("input",{type:"date",value:c.to??"",onChange:h=>f({...c,to:h.target.value||void 0}),style:d,placeholder:"To"}),o&&s.jsx("button",{className:"btn btn-ghost",style:{fontSize:12,padding:"4px 10px"},onClick:()=>f({}),children:"Clear Filters"})]})}function Zy({result:r}){const{runA:c,runB:f,caseDiffs:o}=r;return s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsx("div",{className:"grid grid-cols-2 gap-4",children:[c,f].map((d,h)=>s.jsxs("div",{children:[s.jsxs("div",{className:"text-[10px] uppercase tracking-widest font-semibold mb-1",style:{color:"var(--text-tertiary)"},children:["Run ",h===0?"A":"B"]}),s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:mh(d.timestamp)}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:d.model}),s.jsxs("div",{className:"text-[12px] font-semibold mt-1",style:{color:ji(d.passRate)},children:[Math.round(d.passRate*100),"% pass"]})]},h))})}),s.jsx("div",{className:"glass-card p-4 overflow-x-auto",children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{borderBottom:"1px solid var(--border-subtle)"},children:[s.jsx("th",{style:{textAlign:"left",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Case"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Run A"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Run B"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Duration"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Tokens"})]})}),s.jsx("tbody",{children:o.map(d=>{const h=d.statusA==="pass"&&d.statusB!=="pass",v=d.statusA!=="pass"&&d.statusB==="pass",j=h?"var(--red-muted)":v?"var(--green-muted)":"transparent";return s.jsxs("tr",{style:{background:j,borderBottom:"1px solid var(--border-subtle)"},children:[s.jsx("td",{style:{padding:"8px",color:"var(--text-primary)",fontWeight:500},children:d.eval_name}),s.jsx("td",{style:{padding:"8px",textAlign:"center"},children:d.statusA==="missing"?s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:9,padding:"1px 6px"},children:"removed"}):s.jsxs("span",{style:{color:ji(d.passRateA??0),fontWeight:600,fontFamily:"var(--font-mono, monospace)"},children:[d.statusA," ",d.passRateA!=null?`${Math.round(d.passRateA*100)}%`:""]})}),s.jsx("td",{style:{padding:"8px",textAlign:"center"},children:d.statusB==="missing"?s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:9,padding:"1px 6px"},children:"new"}):s.jsxs("span",{style:{color:ji(d.passRateB??0),fontWeight:600,fontFamily:"var(--font-mono, monospace)"},children:[d.statusB," ",d.passRateB!=null?`${Math.round(d.passRateB*100)}%`:""]})}),s.jsx("td",{style:{padding:"8px",textAlign:"center",fontFamily:"var(--font-mono, monospace)",fontSize:11,color:"var(--text-secondary)"},children:d.durationMsA!=null||d.durationMsB!=null?`${Ni(d.durationMsA??void 0)} / ${Ni(d.durationMsB??void 0)}`:"--"}),s.jsx("td",{style:{padding:"8px",textAlign:"center",fontFamily:"var(--font-mono, monospace)",fontSize:11,color:"var(--text-secondary)"},children:d.tokensA!=null||d.tokensB!=null?`${Jn(d.tokensA)} / ${Jn(d.tokensB)}`:"--"})]},d.eval_id)})})]})}),r.regressions.length>0&&s.jsxs("div",{className:"glass-card p-4",children:[s.jsxs("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:["Assertion Changes (",r.regressions.length,")"]}),s.jsx("div",{className:"space-y-1",children:r.regressions.map((d,h)=>s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:d.change==="regression"?"var(--red)":"var(--green)"},children:[s.jsx("span",{children:d.change==="regression"?"↓":"↑"}),s.jsxs("span",{style:{color:"var(--text-tertiary)",fontFamily:"var(--font-mono, monospace)",fontSize:10},children:["#",d.evalId]}),s.jsx("span",{style:{color:"var(--text-primary)"},children:d.evalName}),s.jsx("span",{className:"pill",style:{background:d.change==="regression"?"var(--red-muted)":"var(--green-muted)",color:d.change==="regression"?"var(--red)":"var(--green)",fontSize:9,padding:"1px 6px"},children:d.change})]},h))})]})]})}function Vy({run:r,plugin:c,skill:f,onDelete:o}){const d=Ti();return s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsxs("div",{className:"glass-card p-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(r.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:r.model})]}),r.verdict&&s.jsx("span",{className:"text-[14px] font-bold",style:{color:hh(r.verdict)},children:r.verdict})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px"},onClick:()=>d(`/skills/${c}/${f}/benchmark?autostart=true`),children:"Rerun Benchmark"}),s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px"},onClick:()=>d(`/skills/${c}/${f}/benchmark?mode=baseline&autostart=true`),children:"Run Baseline"}),s.jsx("button",{className:"btn btn-purple",style:{fontSize:11,padding:"3px 10px"},onClick:()=>d(`/skills/${c}/${f}/compare?autostart=true`),children:"Run A/B"}),s.jsx("div",{style:{flex:1}}),s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px",color:"var(--red)"},onClick:()=>{confirm("Delete this run?")&&o(r.timestamp)},children:"Delete"})]})]}),r.cases.map(h=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",h.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.eval_name})]}),s.jsxs("span",{className:"pill",style:{background:h.status==="pass"?"var(--green-muted)":h.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:h.status==="pass"?"var(--green)":h.status==="error"?"var(--yellow)":"var(--red)"},children:[h.status," (",Math.round(h.pass_rate*100),"%)"]})]}),(h.durationMs!=null||h.inputTokens!=null||h.outputTokens!=null)&&s.jsxs("div",{className:"flex items-center gap-4 mb-3 text-[11px]",style:{fontFamily:"var(--font-mono, monospace)",color:"var(--text-tertiary)"},children:[h.durationMs!=null&&s.jsx("span",{children:Ni(h.durationMs)}),h.inputTokens!=null&&s.jsxs("span",{children:[Jn(h.inputTokens)," in"]}),h.outputTokens!=null&&s.jsxs("span",{children:[Jn(h.outputTokens)," out"]})]}),h.error_message&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:h.error_message}),s.jsx("div",{className:"space-y-1.5",children:h.assertions.map(v=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:v.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:v.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:v.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:v.reasoning})]})]},v.id))})]},h.eval_id))]})}function Ky(){const{plugin:r,skill:c}=Ai(),[f,o]=p.useState([]),[d,h]=p.useState(!0),[v,j]=p.useState({}),[y,x]=p.useState(null),[E,g]=p.useState(null),[B,Z]=p.useState(!1),[X,Q]=p.useState(new Set),[V,z]=p.useState(null),[K,W]=p.useState(!1),G=p.useMemo(()=>{const ee=new Set(f.map(he=>he.model));return Array.from(ee).sort()},[f]),$=p.useCallback(async ee=>{if(!(!r||!c)){h(!0);try{const he=await we.getHistory(r,c,ee);o(he)}catch{o([])}finally{h(!1)}}},[r,c]);p.useEffect(()=>{$(v)},[$,v]);function U(ee){j(ee),x(null),g(null),z(null),Q(new Set)}async function P(ee){if(!(!r||!c)){z(null),g(ee);try{const he=await we.getHistoryEntry(r,c,ee);x(he)}catch{x(null)}}}async function ce(ee){if(!(!r||!c))try{await we.deleteHistoryEntry(r,c,ee),x(null),g(null),$(v)}catch{}}function je(ee){Q(he=>{const xe=new Set(he);if(xe.has(ee))xe.delete(ee);else{if(xe.size>=2)return he;xe.add(ee)}return xe})}async function Me(){if(!r||!c)return;const[ee,he]=Array.from(X);if(!(!ee||!he)){W(!0);try{const xe=await we.compareRuns(r,c,ee,he);z(xe),x(null),g(null)}catch{z(null)}finally{W(!1)}}}function te(){B?(Z(!1),Q(new Set),z(null)):(Z(!0),z(null))}if(d&&f.length===0)return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsx("div",{className:"skeleton h-48 rounded-xl mb-4"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]});const ye=!!(v.model||v.type||v.from||v.to);return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ut,{to:`/skills/${r}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:ee=>{ee.currentTarget.style.color="var(--text-primary)"},onMouseLeave:ee=>{ee.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),f.length>=2&&s.jsx("div",{style:{marginBottom:16},children:s.jsx(Yy,{entries:f.slice().reverse()})}),s.jsx(Qy,{models:G,filters:v,onChange:U}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 px-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:["Past Runs (",f.length,")"]}),s.jsxs("div",{className:"flex items-center gap-2",children:[B&&X.size===2&&s.jsx("button",{className:"btn btn-primary",style:{fontSize:10,padding:"2px 8px"},onClick:Me,disabled:K,children:K?"Comparing...":"Compare Selected"}),s.jsx("button",{className:`btn ${B?"btn-purple":"btn-ghost"}`,style:{fontSize:10,padding:"2px 8px"},onClick:te,children:"Compare"})]})]}),f.length===0&&!ye&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),f.length===0&&ye&&s.jsx("div",{className:"text-center py-8",children:s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No runs match current filters"})}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:f.map(ee=>{const he=E===ee.timestamp,xe=ji(ee.passRate),T=Xy[ee.type],J=X.has(ee.timestamp);return s.jsxs("div",{className:"flex items-start gap-2",children:[B&&s.jsx("label",{className:"flex items-center justify-center mt-3.5 flex-shrink-0 cursor-pointer",style:{width:18,height:18},children:s.jsx("input",{type:"checkbox",checked:J,onChange:()=>je(ee.timestamp),disabled:!J&&X.size>=2,style:{accentColor:"var(--purple)"}})}),s.jsxs("button",{onClick:()=>P(ee.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:he?"var(--accent-muted)":"var(--surface-1)",border:he?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:ne=>{he||(ne.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:ne=>{he||(ne.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:mh(ee.timestamp)}),T&&s.jsx("span",{className:"pill",style:{background:T.bg,color:T.fg,fontSize:9,padding:"1px 6px"},children:T.label})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:ee.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:xe},children:[Math.round(ee.passRate*100),"%"]})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-[10px]",style:{fontFamily:"var(--font-mono, monospace)",color:"var(--text-tertiary)"},children:[s.jsxs("span",{children:[ee.caseCount??0," cases"]}),s.jsx("span",{children:Ni(ee.totalDurationMs??void 0)}),s.jsx("span",{children:Jn(ee.totalTokens)})]}),ee.type==="comparison"&&ee.verdict&&s.jsx("div",{className:"mt-1.5",children:s.jsx("span",{className:"pill",style:{background:ee.verdict==="EFFECTIVE"?"var(--green-muted)":ee.verdict==="MARGINAL"?"var(--yellow-muted)":ee.verdict==="DEGRADING"?"var(--red-muted)":"var(--surface-3)",color:hh(ee.verdict),fontSize:9,padding:"1px 6px"},children:ee.verdict})})]})]},ee.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:V?s.jsx(Zy,{result:V}):y&&r&&c?s.jsx(Vy,{run:y,plugin:r,skill:c,onDelete:ce}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:B?"Check two runs and click Compare Selected":"Select a run to view details"})]})})]})]})}const Zm={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"}},Jy=[{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 $y(){const[r,c]=p.useState([]),[f,o]=p.useState(null),[d,h]=p.useState(null),[v,j]=p.useState(""),[y,x]=p.useState(!1),{events:E,running:g,error:B,start:Z}=In();p.useEffect(()=>{we.getSkills().then(c).catch(()=>{})},[]),p.useEffect(()=>{if(!f){h(null);return}fetch(`/api/skills/${f.plugin}/${f.skill}/description`).then(G=>G.json()).then(G=>h(G.description)).catch(()=>h(null))},[f]);function X(){if(!f)return;const $=v.trim().split(`
65
+ `).filter(Boolean).map(U=>{const P=U.startsWith("!");return{prompt:P?U.slice(1).trim():U.trim(),expected:P?"should_not_activate":"should_activate"}});Z(`/api/skills/${f.plugin}/${f.skill}/activation-test`,{prompts:$})}function Q(G){const $=v.trim(),U=$?`${$}
66
+ ${G.join(`
67
+ `)}`:G.join(`
68
+ `);j(U)}const V=[];let z=null;for(const G of E)G.event==="prompt_result"&&V.push(G.data),G.event==="done"&&(z=G.data);const K=V.filter(G=>G.classification==="TP"||G.classification==="TN"),W=V.filter(G=>G.classification==="FP"||G.classification==="FN");return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),s.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 ",s.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),s.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[s.jsxs("div",{className:"col-span-3 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),s.jsxs("select",{className:"input-field",value:f?`${f.plugin}/${f.skill}`:"",onChange:G=>{const[$,U]=G.target.value.split("/");o($&&U?{plugin:$,skill:U}:null)},children:[s.jsx("option",{value:"",children:"Select a skill..."}),r.map(G=>s.jsxs("option",{value:`${G.plugin}/${G.skill}`,children:[G.plugin," / ",G.skill]},`${G.plugin}/${G.skill}`))]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),s.jsx("div",{className:"flex gap-1.5",children:Jy.map(G=>s.jsxs("button",{onClick:()=>Q(G.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:$=>{$.currentTarget.style.color="var(--text-primary)",$.currentTarget.style.background="var(--surface-3)"},onMouseLeave:$=>{$.currentTarget.style.color="var(--text-tertiary)",$.currentTarget.style.background="var(--surface-2)"},children:["+ ",G.label]},G.label))})]}),s.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:v,onChange:G=>j(G.target.value),placeholder:`How do I write a unit test?
69
+ What edge cases should I test?
70
+ !What's the weather like today?
71
+ !Write me a poem about flowers`}),s.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[s.jsx("span",{children:"One prompt per line"}),s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),s.jsxs("span",{children:[v.trim().split(`
72
+ `).filter(Boolean).length," prompt",v.trim().split(`
73
+ `).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>x(!y),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:y?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:y?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),y&&s.jsx("div",{className:"p-3 animate-fade-in",children:d?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:d}):f?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!y&&d&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[d.slice(0,100),d.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:X,disabled:g||!f||!v.trim(),className:"btn btn-primary mb-7",children:g?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),B&&s.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:B}),V.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[W.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",W.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:W.map((G,$)=>s.jsx(Vm,{result:G},`incorrect-${$}`))})]}),K.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",K.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:K.map((G,$)=>s.jsx(Vm,{result:G},`correct-${$}`))})]})]}),z&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(lc,{label:"Precision",value:z.precision,description:"Of all activations, how many were correct?",detail:`${z.tp} true / ${z.tp+z.fp} total activations`}),s.jsx(lc,{label:"Recall",value:z.recall,description:"Of expected activations, how many fired?",detail:`${z.tp} activated / ${z.tp+z.fn} expected`}),s.jsx(lc,{label:"Reliability",value:z.reliability,description:"Overall correct classification rate",detail:`${z.tp+z.tn} correct / ${z.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(yi,{label:"True Positive",abbr:"TP",count:z.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(yi,{label:"False Positive",abbr:"FP",count:z.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(yi,{label:"False Negative",abbr:"FN",count:z.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(yi,{label:"True Negative",abbr:"TN",count:z.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),g&&V.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Vm({result:r}){const c=Zm[r.classification]||Zm.FN,f=r.classification==="TP"||r.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:c.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${c.text} 20%, transparent)`},children:f?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:c.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:c.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:r.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:c.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:r.classification}),s.jsx("span",{style:{color:r.activate?"var(--green)":"var(--text-tertiary)"},children:r.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",r.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[r.confidence," confidence"]})]}),r.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:r.reasoning})]})]})}function lc({label:r,value:c,description:f,detail:o}){const d=Math.round(c*100),h=d>=80?"var(--green)":d>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:h},children:[d,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:r}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:f}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:o})]})}function yi({label:r,abbr:c,count:f,bg:o,color:d,description:h}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:o},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:d},children:f}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:d},children:c}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:h})]})}function Wy(){const[r,c]=p.useState(null),[f,o]=p.useState(!1),[d,h]=p.useState(!1),v=p.useRef(null);p.useEffect(()=>{we.getConfig().then(c).catch(()=>{})},[]),p.useEffect(()=>{function x(E){v.current&&!v.current.contains(E.target)&&o(!1)}return f&&document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[f]);async function j(x,E){h(!0);try{const g=await we.setConfig(x.id,E.id);c(g),o(!1)}catch{const g=await we.getConfig();c(g)}finally{h(!1)}}if(!r)return null;const y=Fy(r);return s.jsxs("div",{ref:v,className:"relative",children:[s.jsxs("button",{onClick:()=>o(!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:x=>{x.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:x=>{x.currentTarget.style.borderColor="var(--border-subtle)"},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.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"})]}),s.jsx("span",{className:"flex-1 text-left font-medium truncate",children:y}),s.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:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),f&&s.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:[s.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),s.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:r.providers.map(x=>s.jsxs("div",{children:[s.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(x.available,"var(--text-tertiary)"),opacity:x.available?1:.5},children:x.label}),!x.available&&s.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),x.models.map(E=>{const g=xh(r,x.id,E.id),B=!x.available||d;return s.jsxs("button",{onClick:()=>!B&&j(x,E),disabled:B,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:g?"var(--accent-muted)":"transparent",color:B?"var(--text-tertiary)":"var(--text-primary)",opacity:B?.4:1,cursor:B?"not-allowed":"pointer"},onMouseEnter:Z=>{!B&&!g&&(Z.currentTarget.style.background="var(--surface-3)")},onMouseLeave:Z=>{g||(Z.currentTarget.style.background="transparent")},children:[s.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${g?"var(--accent)":"var(--border-subtle)"}`},children:g&&s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),s.jsx("span",{className:"text-[12px]",children:E.label})]},`${x.id}-${E.id}`)})]},x.id))})]})]})}function xh(r,c,f){return r.provider!==c?!1:c==="claude-cli"?r.model===`claude-${f}`:r.model===f}function Fy(r){for(const c of r.providers)for(const f of c.models)if(xh(r,c.id,f.id))return f.label;return r.model}function Iy({active:r}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:r?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.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"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function Py({active:r}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:r?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const e1=[{path:"/",label:"Skills",Icon:Iy},{path:"/activation",label:"Activation Test",Icon:Py}];function t1(){const r=Vt(),[c,f]=p.useState(null);return p.useEffect(()=>{we.getConfig().then(o=>f(o.projectName)).catch(()=>{})},[]),s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:c||"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),e1.map(o=>{const d=r.pathname===o.path;return s.jsxs(Ut,{to:o.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:d?"var(--accent)":"transparent",color:d?"#fff":"var(--text-secondary)"},onMouseEnter:h=>{d||(h.currentTarget.style.background="var(--surface-3)",h.currentTarget.style.color="var(--text-primary)")},onMouseLeave:h=>{d||(h.currentTarget.style.background="transparent",h.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(o.Icon,{active:d}),o.label]},o.path)})]}),s.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),s.jsx(Wy,{})]})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(Qp,{children:[s.jsx(ua,{path:"/",element:s.jsx(Ay,{})}),s.jsx(ua,{path:"/skills/:plugin/:skill",element:s.jsx(wy,{})}),s.jsx(ua,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(Hy,{})}),s.jsx(ua,{path:"/skills/:plugin/:skill/compare",element:s.jsx(Uy,{})}),s.jsx(ua,{path:"/skills/:plugin/:skill/history",element:s.jsx(Ky,{})}),s.jsx(ua,{path:"/activation",element:s.jsx($y,{})})]})},r.pathname)})]})}Kv.createRoot(document.getElementById("root")).render(s.jsx(p.StrictMode,{children:s.jsx(xy,{children:s.jsx(t1,{})})}));