@rigour-labs/cli 6.9.0-rc.1 → 6.9.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/git-identity.d.ts +1 -0
- package/dist/commands/git-identity.js +10 -0
- package/dist/commands/learn-reviews.js +2 -8
- package/dist/commands/outcomes.js +2 -0
- package/dist/commands/studio-learning.d.ts +22 -0
- package/dist/commands/studio-learning.js +40 -4
- package/dist/commands/studio.js +10 -0
- package/package.json +3 -3
- package/studio-dist/assets/{index-DmqbfpVo.js → index-DvSqJYCS.js} +34 -34
- package/studio-dist/index.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ji=(e,t,n)=>Wc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wa={exports:{}},cl={},ka={exports:{}},
|
|
1
|
+
var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ji=(e,t,n)=>Wc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wa={exports:{}},cl={},ka={exports:{}},L={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var nr=Symbol.for("react.element"),Vc=Symbol.for("react.portal"),Bc=Symbol.for("react.fragment"),Qc=Symbol.for("react.strict_mode"),Kc=Symbol.for("react.profiler"),Yc=Symbol.for("react.provider"),
|
|
9
|
+
*/var nr=Symbol.for("react.element"),Vc=Symbol.for("react.portal"),Bc=Symbol.for("react.fragment"),Qc=Symbol.for("react.strict_mode"),Kc=Symbol.for("react.profiler"),Yc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),Xc=Symbol.for("react.forward_ref"),Gc=Symbol.for("react.suspense"),Zc=Symbol.for("react.memo"),Jc=Symbol.for("react.lazy"),bi=Symbol.iterator;function bc(e){return e===null||typeof e!="object"?null:(e=bi&&e[bi]||e["@@iterator"],typeof e=="function"?e:null)}var ja={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sa=Object.assign,Na={};function fn(e,t,n){this.props=e,this.context=t,this.refs=Na,this.updater=n||ja}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ca(){}Ca.prototype=fn.prototype;function ni(e,t,n){this.props=e,this.context=t,this.refs=Na,this.updater=n||ja}var ri=ni.prototype=new Ca;ri.constructor=ni;Sa(ri,fn.prototype);ri.isPureReactComponent=!0;var eo=Array.isArray,Ea=Object.prototype.hasOwnProperty,li={current:null},Ta={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,l={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ea.call(t,r)&&!Ta.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:nr,type:e,key:s,ref:o,props:l,_owner:li.current}}function ed(e,t){return{$$typeof:nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function si(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr}function td(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var to=/\/+/g;function Pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?td(""+e.key):t.toString(36)}function Er(e,t,n,r,l){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case nr:case Vc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Pl(o,0):r,eo(l)?(n="",e!=null&&(n=e.replace(to,"$&/")+"/"),Er(l,t,n,"",function(d){return d})):l!=null&&(si(l)&&(l=ed(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(to,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",eo(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Pl(s,a);o+=Er(s,t,n,u,l)}else if(u=bc(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+Pl(s,a++),o+=Er(s,t,n,u,l);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ur(e,t,n){if(e==null)return e;var r=[],l=0;return Er(e,r,"","",function(s){return t.call(n,s,l++)}),r}function nd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ce={current:null},Tr={transition:null},rd={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Tr,ReactCurrentOwner:li};function za(){throw Error("act(...) is not supported in production builds of React.")}L.Children={map:ur,forEach:function(e,t,n){ur(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ur(e,function(){t++}),t},toArray:function(e){return ur(e,function(t){return t})||[]},only:function(e){if(!si(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};L.Component=fn;L.Fragment=Bc;L.Profiler=Kc;L.PureComponent=ni;L.StrictMode=Qc;L.Suspense=Gc;L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rd;L.act=za;L.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sa({},e.props),l=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=li.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Ea.call(t,u)&&!Ta.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:nr,type:e.type,key:l,ref:s,props:r,_owner:o}};L.createContext=function(e){return e={$$typeof:qc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Yc,_context:e},e.Consumer=e};L.createElement=_a;L.createFactory=function(e){var t=_a.bind(null,e);return t.type=e,t};L.createRef=function(){return{current:null}};L.forwardRef=function(e){return{$$typeof:Xc,render:e}};L.isValidElement=si;L.lazy=function(e){return{$$typeof:Jc,_payload:{_status:-1,_result:e},_init:nd}};L.memo=function(e,t){return{$$typeof:Zc,type:e,compare:t===void 0?null:t}};L.startTransition=function(e){var t=Tr.transition;Tr.transition={};try{e()}finally{Tr.transition=t}};L.unstable_act=za;L.useCallback=function(e,t){return ce.current.useCallback(e,t)};L.useContext=function(e){return ce.current.useContext(e)};L.useDebugValue=function(){};L.useDeferredValue=function(e){return ce.current.useDeferredValue(e)};L.useEffect=function(e,t){return ce.current.useEffect(e,t)};L.useId=function(){return ce.current.useId()};L.useImperativeHandle=function(e,t,n){return ce.current.useImperativeHandle(e,t,n)};L.useInsertionEffect=function(e,t){return ce.current.useInsertionEffect(e,t)};L.useLayoutEffect=function(e,t){return ce.current.useLayoutEffect(e,t)};L.useMemo=function(e,t){return ce.current.useMemo(e,t)};L.useReducer=function(e,t,n){return ce.current.useReducer(e,t,n)};L.useRef=function(e){return ce.current.useRef(e)};L.useState=function(e){return ce.current.useState(e)};L.useSyncExternalStore=function(e,t,n){return ce.current.useSyncExternalStore(e,t,n)};L.useTransition=function(){return ce.current.useTransition()};L.version="18.3.1";ka.exports=L;var z=ka.exports;const ii=Uc(z);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ld=z,sd=Symbol.for("react.element"),id=Symbol.for("react.fragment"),od=Object.prototype.hasOwnProperty,ad=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ud={key:!0,ref:!0,__self:!0,__source:!0};function Pa(e,t,n){var r,l={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)od.call(t,r)&&!ud.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:sd,type:e,key:s,ref:o,props:l,_owner:ad.current}}cl.Fragment=id;cl.jsx=Pa;cl.jsxs=Pa;wa.exports=cl;var i=wa.exports,as={},
|
|
17
|
+
*/var ld=z,sd=Symbol.for("react.element"),id=Symbol.for("react.fragment"),od=Object.prototype.hasOwnProperty,ad=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ud={key:!0,ref:!0,__self:!0,__source:!0};function Pa(e,t,n){var r,l={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)od.call(t,r)&&!ud.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:sd,type:e,key:s,ref:o,props:l,_owner:ad.current}}cl.Fragment=id;cl.jsx=Pa;cl.jsxs=Pa;wa.exports=cl;var i=wa.exports,as={},La={exports:{}},je={},Ra={exports:{}},Ma={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(N,_){var P=N.length;N.push(_);e:for(;0<P;){var K=P-1>>>1,J=N[K];if(0<l(J,_))N[K]=_,N[P]=J,P=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],P=N.pop();if(P!==_){N[0]=P;e:for(var K=0,J=N.length,or=J>>>1;K<or;){var xt=2*(K+1)-1,zl=N[xt],wt=xt+1,ar=N[wt];if(0>l(zl,P))wt<J&&0>l(ar,zl)?(N[K]=ar,N[wt]=P,K=wt):(N[K]=zl,N[xt]=P,K=xt);else if(wt<J&&0>l(ar,P))N[K]=ar,N[wt]=P,K=wt;else break e}}return _}function l(N,_){var P=N.sortIndex-_.sortIndex;return P!==0?P:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],m=1,v=null,h=3,y=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var _=n(d);_!==null;){if(_.callback===null)r(d);else if(_.startTime<=N)r(d),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(d)}}function g(N){if(k=!1,p(N),!w)if(n(u)!==null)w=!0,Tl(j);else{var _=n(d);_!==null&&_l(g,_.startTime-N)}}function j(N,_){w=!1,k&&(k=!1,f(T),T=-1),y=!0;var P=h;try{for(p(_),v=n(u);v!==null&&(!(v.expirationTime>_)||N&&!Pe());){var K=v.callback;if(typeof K=="function"){v.callback=null,h=v.priorityLevel;var J=K(v.expirationTime<=_);_=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(u)&&r(u),p(_)}else r(u);v=n(u)}if(v!==null)var or=!0;else{var xt=n(d);xt!==null&&_l(g,xt.startTime-_),or=!1}return or}finally{v=null,h=P,y=!1}}var C=!1,E=null,T=-1,Q=5,
|
|
25
|
+
*/(function(e){function t(N,_){var P=N.length;N.push(_);e:for(;0<P;){var K=P-1>>>1,J=N[K];if(0<l(J,_))N[K]=_,N[P]=J,P=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],P=N.pop();if(P!==_){N[0]=P;e:for(var K=0,J=N.length,or=J>>>1;K<or;){var xt=2*(K+1)-1,zl=N[xt],wt=xt+1,ar=N[wt];if(0>l(zl,P))wt<J&&0>l(ar,zl)?(N[K]=ar,N[wt]=P,K=wt):(N[K]=zl,N[xt]=P,K=xt);else if(wt<J&&0>l(ar,P))N[K]=ar,N[wt]=P,K=wt;else break e}}return _}function l(N,_){var P=N.sortIndex-_.sortIndex;return P!==0?P:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],m=1,v=null,h=3,y=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var _=n(d);_!==null;){if(_.callback===null)r(d);else if(_.startTime<=N)r(d),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(d)}}function g(N){if(k=!1,p(N),!w)if(n(u)!==null)w=!0,Tl(j);else{var _=n(d);_!==null&&_l(g,_.startTime-N)}}function j(N,_){w=!1,k&&(k=!1,f(T),T=-1),y=!0;var P=h;try{for(p(_),v=n(u);v!==null&&(!(v.expirationTime>_)||N&&!Pe());){var K=v.callback;if(typeof K=="function"){v.callback=null,h=v.priorityLevel;var J=K(v.expirationTime<=_);_=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(u)&&r(u),p(_)}else r(u);v=n(u)}if(v!==null)var or=!0;else{var xt=n(d);xt!==null&&_l(g,xt.startTime-_),or=!1}return or}finally{v=null,h=P,y=!1}}var C=!1,E=null,T=-1,Q=5,R=-1;function Pe(){return!(e.unstable_now()-R<Q)}function mn(){if(E!==null){var N=e.unstable_now();R=N;var _=!0;try{_=E(!0,N)}finally{_?vn():(C=!1,E=null)}}else C=!1}var vn;if(typeof c=="function")vn=function(){c(mn)};else if(typeof MessageChannel<"u"){var Zi=new MessageChannel,Hc=Zi.port2;Zi.port1.onmessage=mn,vn=function(){Hc.postMessage(null)}}else vn=function(){O(mn,0)};function Tl(N){E=N,C||(C=!0,vn())}function _l(N,_){T=O(function(){N(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,Tl(j))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var P=h;h=_;try{return N()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var P=h;h=N;try{return _()}finally{h=P}},e.unstable_scheduleCallback=function(N,_,P){var K=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?K+P:K):P=K,N){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=P+J,N={id:m++,callback:_,priorityLevel:N,startTime:P,expirationTime:J,sortIndex:-1},P>K?(N.sortIndex=P,t(d,N),n(u)===null&&N===n(d)&&(k?(f(T),T=-1):k=!0,_l(g,P-K))):(N.sortIndex=J,t(u,N),w||y||(w=!0,Tl(j))),N},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(N){var _=h;return function(){var P=h;h=_;try{return N.apply(this,arguments)}finally{h=P}}}})(Ma);Ra.exports=Ma;var cd=Ra.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,19 +30,19 @@ var Ac=Object.defineProperty;var Wc=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var dd=z,ke=cd;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Oa=new Set,
|
|
34
|
-
`+
|
|
33
|
+
*/var dd=z,ke=cd;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Oa=new Set,Dn={};function $t(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){for(Dn[e]=t,e=0;e<t.length;e++)Oa.add(t[e])}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),us=Object.prototype.hasOwnProperty,fd=/^[: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]*$/,no={},ro={};function pd(e){return us.call(ro,e)?!0:us.call(no,e)?!1:fd.test(e)?ro[e]=!0:(no[e]=!0,!1)}function hd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function md(e,t,n,r){if(t===null||typeof t>"u"||hd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,l,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var oi=/[\-:]([a-z])/g;function ai(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oi,ai);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oi,ai);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oi,ai);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function ui(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(md(t,n,l,r)&&(n=null),r||l===null?pd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Je=dd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cr=Symbol.for("react.element"),At=Symbol.for("react.portal"),Wt=Symbol.for("react.fragment"),ci=Symbol.for("react.strict_mode"),cs=Symbol.for("react.profiler"),$a=Symbol.for("react.provider"),Ia=Symbol.for("react.context"),di=Symbol.for("react.forward_ref"),ds=Symbol.for("react.suspense"),fs=Symbol.for("react.suspense_list"),fi=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),Fa=Symbol.for("react.offscreen"),lo=Symbol.iterator;function gn(e){return e===null||typeof e!="object"?null:(e=lo&&e[lo]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,Ll;function Cn(e){if(Ll===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ll=t&&t[1]||""}return`
|
|
34
|
+
`+Ll+e}var Rl=!1;function Ml(e,t){if(!e||Rl)return"";Rl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
35
35
|
`),s=r.stack.split(`
|
|
36
36
|
`),o=l.length-1,a=s.length-1;1<=o&&0<=a&&l[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==s[a]){var u=`
|
|
37
|
-
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function vd(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function ps(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case At:return"Fragment";case Ht:return"Portal";case cs:return"Profiler";case ci:return"StrictMode";case ds:return"Suspense";case fs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $a:return(e.displayName||"Context")+".Consumer";case Da:return(e._context.displayName||"Context")+".Provider";case di:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fi:return t=e.displayName||null,t!==null?t:ps(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return ps(e(t))}catch{}}return null}function gd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ps(t);case 8:return t===ci?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yd(e){var t=Fa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=yd(e))}function Ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fr(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}}function hs(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function so(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Aa(e,t){t=t.checked,t!=null&&ui(e,"checked",t,!1)}function ms(e,t){Aa(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vs(e,t.type,n):t.hasOwnProperty("defaultValue")&&vs(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function io(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vs(e,t,n){(t!=="number"||Fr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Zt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function gs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(En(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Wa(e,t){var n=ht(t.value),r=ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ao(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ua(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ys(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ua(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Va=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xd=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){xd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Ba(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Qa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ba(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var wd=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xs(e,t){if(t){if(wd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function ws(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ks=null;function pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var js=null,Jt=null,bt=null;function uo(e){if(e=sr(e)){if(typeof js!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ml(t),js(e.stateNode,e.type,t))}}function Ka(e){Jt?bt?bt.push(e):bt=[e]:Jt=e}function Ya(){if(Jt){var e=Jt,t=bt;if(bt=Jt=null,uo(e),t)for(e=0;e<t.length;e++)uo(t[e])}}function Xa(e,t){return e(t)}function qa(){}var Ol=!1;function Ga(e,t,n){if(Ol)return e(t,n);Ol=!0;try{return Xa(e,t,n)}finally{Ol=!1,(Jt!==null||bt!==null)&&(qa(),Ya())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=ml(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Ss=!1;if(Xe)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{Ss=!1}function kd(e,t,n,r,l,s,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Pn=!1,Hr=null,Ar=!1,Ns=null,jd={onError:function(e){Pn=!0,Hr=e}};function Sd(e,t,n,r,l,s,o,a,u){Pn=!1,Hr=null,kd.apply(jd,arguments)}function Nd(e,t,n,r,l,s,o,a,u){if(Sd.apply(this,arguments),Pn){if(Pn){var d=Hr;Pn=!1,Hr=null}else throw Error(x(198));Ar||(Ar=!0,Ns=d)}}function Dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Za(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 co(e){if(Dt(e)!==e)throw Error(x(188))}function Cd(e){var t=e.alternate;if(!t){if(t=Dt(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return co(l),e;if(s===r)return co(l),t;s=s.sibling}throw Error(x(188))}if(n.return!==r.return)n=l,r=s;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function Ja(e){return e=Cd(e),e!==null?ba(e):null}function ba(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ba(e);if(t!==null)return t;e=e.sibling}return null}var eu=ke.unstable_scheduleCallback,fo=ke.unstable_cancelCallback,Ed=ke.unstable_shouldYield,Td=ke.unstable_requestPaint,Y=ke.unstable_now,_d=ke.unstable_getCurrentPriorityLevel,hi=ke.unstable_ImmediatePriority,tu=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,zd=ke.unstable_LowPriority,nu=ke.unstable_IdlePriority,dl=null,We=null;function Pd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(dl,e,void 0,(e.current.flags&128)===128)}catch{}}var De=Math.clz32?Math.clz32:Md,Rd=Math.log,Ld=Math.LN2;function Md(e){return e>>>=0,e===0?32:31-(Rd(e)/Ld|0)|0}var pr=64,hr=4194304;function Tn(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Tn(a):(s&=o,s!==0&&(r=Tn(s)))}else o=n&~l,o!==0?r=Tn(o):s!==0&&(r=Tn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-De(t),l=1<<n,r|=e[n],t&=~l;return r}function Od(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-De(s),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=Od(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Cs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ru(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function Dl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function $d(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-De(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-De(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var D=0;function lu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var su,vi,iu,ou,au,Es=!1,mr=[],it=null,ot=null,at=null,Wn=new Map,Un=new Map,nt=[],Id="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 submit".split(" ");function po(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function xn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=sr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Fd(e,t,n,r,l){switch(t){case"focusin":return it=xn(it,e,t,n,r,l),!0;case"dragenter":return ot=xn(ot,e,t,n,r,l),!0;case"mouseover":return at=xn(at,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return Wn.set(s,xn(Wn.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,Un.set(s,xn(Un.get(s)||null,e,t,n,r,l)),!0}return!1}function uu(e){var t=St(e.target);if(t!==null){var n=Dt(t);if(n!==null){if(t=n.tag,t===13){if(t=Za(n),t!==null){e.blockedOn=t,au(e.priority,function(){iu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ts(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ks=r,n.target.dispatchEvent(r),ks=null}else return t=sr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function ho(e,t,n){_r(e)&&n.delete(t)}function Hd(){Es=!1,it!==null&&_r(it)&&(it=null),ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),Wn.forEach(ho),Un.forEach(ho)}function wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Hd)))}function Vn(e){function t(l){return wn(l,e)}if(0<mr.length){wn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&wn(it,e),ot!==null&&wn(ot,e),at!==null&&wn(at,e),Wn.forEach(t),Un.forEach(t),n=0;n<nt.length;n++)r=nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nt.length&&(n=nt[0],n.blockedOn===null);)uu(n),n.blockedOn===null&&nt.shift()}var en=Je.ReactCurrentBatchConfig,Vr=!0;function Ad(e,t,n,r){var l=D,s=en.transition;en.transition=null;try{D=1,gi(e,t,n,r)}finally{D=l,en.transition=s}}function Wd(e,t,n,r){var l=D,s=en.transition;en.transition=null;try{D=4,gi(e,t,n,r)}finally{D=l,en.transition=s}}function gi(e,t,n,r){if(Vr){var l=Ts(e,t,n,r);if(l===null)Ql(e,t,r,Br,n),po(e,r);else if(Fd(l,e,t,n,r))r.stopPropagation();else if(po(e,r),t&4&&-1<Id.indexOf(e)){for(;l!==null;){var s=sr(l);if(s!==null&&su(s),s=Ts(e,t,n,r),s===null&&Ql(e,t,r,Br,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else Ql(e,t,r,null,n)}}var Br=null;function Ts(e,t,n,r){if(Br=null,e=pi(r),e=St(e),e!==null)if(t=Dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Za(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Br=e,null}function cu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_d()){case hi:return 1;case tu:return 4;case Wr:case zd:return 16;case nu:return 536870912;default:return 16}default:return 16}}var lt=null,yi=null,zr=null;function du(){if(zr)return zr;var e,t=yi,n=t.length,r,l="value"in lt?lt.value:lt.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[s-r];r++);return zr=l.slice(e,1<r?1-r:void 0)}function Pr(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 vr(){return!0}function mo(){return!1}function Se(e){function t(n,r,l,s,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?vr:mo,this.isPropagationStopped=mo,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=Se(fn),lr=V({},fn,{view:0,detail:0}),Ud=Se(lr),$l,Il,kn,fl=V({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kn&&(kn&&e.type==="mousemove"?($l=e.screenX-kn.screenX,Il=e.screenY-kn.screenY):Il=$l=0,kn=e),$l)},movementY:function(e){return"movementY"in e?e.movementY:Il}}),vo=Se(fl),Vd=V({},fl,{dataTransfer:0}),Bd=Se(Vd),Qd=V({},lr,{relatedTarget:0}),Fl=Se(Qd),Kd=V({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Yd=Se(Kd),Xd=V({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qd=Se(Xd),Gd=V({},fn,{data:0}),go=Se(Gd),Zd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jd={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"},bd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ef(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bd[e])?!!t[e]:!1}function wi(){return ef}var tf=V({},lr,{key:function(e){if(e.key){var t=Zd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nf=Se(tf),rf=V({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=Se(rf),lf=V({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),sf=Se(lf),of=V({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),af=Se(of),uf=V({},fl,{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}),cf=Se(uf),df=[9,13,27,32],ki=Xe&&"CompositionEvent"in window,Rn=null;Xe&&"documentMode"in document&&(Rn=document.documentMode);var ff=Xe&&"TextEvent"in window&&!Rn,fu=Xe&&(!ki||Rn&&8<Rn&&11>=Rn),xo=" ",wo=!1;function pu(e,t){switch(e){case"keyup":return df.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function pf(e,t){switch(e){case"compositionend":return hu(t);case"keypress":return t.which!==32?null:(wo=!0,xo);case"textInput":return e=t.data,e===xo&&wo?null:e;default:return null}}function hf(e,t){if(Wt)return e==="compositionend"||!ki&&pu(e,t)?(e=du(),zr=yi=lt=null,Wt=!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 fu&&t.locale!=="ko"?null:t.data;default:return null}}var mf={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 ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mf[e.type]:t==="textarea"}function mu(e,t,n,r){Ka(r),t=Qr(t,"onChange"),0<t.length&&(n=new xi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ln=null,Bn=null;function vf(e){Eu(e,0)}function pl(e){var t=Bt(e);if(Ha(t))return e}function gf(e,t){if(e==="change")return t}var vu=!1;if(Xe){var Hl;if(Xe){var Al="oninput"in document;if(!Al){var jo=document.createElement("div");jo.setAttribute("oninput","return;"),Al=typeof jo.oninput=="function"}Hl=Al}else Hl=!1;vu=Hl&&(!document.documentMode||9<document.documentMode)}function So(){Ln&&(Ln.detachEvent("onpropertychange",gu),Bn=Ln=null)}function gu(e){if(e.propertyName==="value"&&pl(Bn)){var t=[];mu(t,Bn,e,pi(e)),Ga(vf,t)}}function yf(e,t,n){e==="focusin"?(So(),Ln=t,Bn=n,Ln.attachEvent("onpropertychange",gu)):e==="focusout"&&So()}function xf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Bn)}function wf(e,t){if(e==="click")return pl(t)}function kf(e,t){if(e==="input"||e==="change")return pl(t)}function jf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ie=typeof Object.is=="function"?Object.is:jf;function Qn(e,t){if(Ie(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!us.call(t,l)||!Ie(e[l],t[l]))return!1}return!0}function No(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Co(e,t){var n=No(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=No(n)}}function yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xu(){for(var e=window,t=Fr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function ji(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")}function Sf(e){var t=xu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yu(n.ownerDocument.documentElement,n)){if(r!==null&&ji(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=Co(n,s);var o=Co(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Nf=Xe&&"documentMode"in document&&11>=document.documentMode,Ut=null,_s=null,Mn=null,zs=!1;function Eo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zs||Ut==null||Ut!==Fr(r)||(r=Ut,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Qn(Mn,r)||(Mn=r,r=Qr(_s,"onSelect"),0<r.length&&(t=new xi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ut)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Wl={},wu={};Xe&&(wu=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);function hl(e){if(Wl[e])return Wl[e];if(!Vt[e])return e;var t=Vt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wu)return Wl[e]=t[n];return e}var ku=hl("animationend"),ju=hl("animationiteration"),Su=hl("animationstart"),Nu=hl("transitionend"),Cu=new Map,To="abort auxClick 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(" ");function vt(e,t){Cu.set(e,t),Ot(t,[e])}for(var Ul=0;Ul<To.length;Ul++){var Vl=To[Ul],Cf=Vl.toLowerCase(),Ef=Vl[0].toUpperCase()+Vl.slice(1);vt(Cf,"on"+Ef)}vt(ku,"onAnimationEnd");vt(ju,"onAnimationIteration");vt(Su,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(Nu,"onTransitionEnd");rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);Ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ot("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),Tf=new Set("cancel close invalid load scroll toggle".split(" ").concat(_n));function _o(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nd(r,t,void 0,e),e.currentTarget=null}function Eu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==s&&l.isPropagationStopped())break e;_o(l,a,d),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;_o(l,a,d),s=u}}}if(Ar)throw e=Ns,Ar=!1,Ns=null,e}function I(e,t){var n=t[Os];n===void 0&&(n=t[Os]=new Set);var r=e+"__bubble";n.has(r)||(Tu(t,e,2,!1),n.add(r))}function Bl(e,t,n){var r=0;t&&(r|=4),Tu(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Kn(e){if(!e[yr]){e[yr]=!0,Oa.forEach(function(n){n!=="selectionchange"&&(Tf.has(n)||Bl(n,!1,e),Bl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Bl("selectionchange",!1,t))}}function Tu(e,t,n,r){switch(cu(t)){case 1:var l=Ad;break;case 4:l=Wd;break;default:l=gi}n=l.bind(null,t,n,e),l=void 0,!Ss||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ql(e,t,n,r,l){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=St(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Ga(function(){var d=s,m=pi(n),v=[];e:{var h=Cu.get(e);if(h!==void 0){var y=xi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":y=nf;break;case"focusin":w="focus",y=Fl;break;case"focusout":w="blur",y=Fl;break;case"beforeblur":case"afterblur":y=Fl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Bd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=sf;break;case ku:case ju:case Su:y=Yd;break;case Nu:y=af;break;case"scroll":y=Ud;break;case"wheel":y=cf;break;case"copy":case"cut":case"paste":y=qd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=yo}var k=(t&4)!==0,O=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,f!==null&&(g=An(c,f),g!=null&&k.push(Yn(c,g,p)))),O)break;c=c.return}0<k.length&&(h=new y(h,w,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==ks&&(w=n.relatedTarget||n.fromElement)&&(St(w)||w[qe]))break e;if((y||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=d,w=w?St(w):null,w!==null&&(O=Dt(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=d),y!==w)){if(k=vo,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=yo,g="onPointerLeave",f="onPointerEnter",c="pointer"),O=y==null?h:Bt(y),p=w==null?h:Bt(w),h=new k(g,c+"leave",y,n,m),h.target=O,h.relatedTarget=p,g=null,St(m)===d&&(k=new k(f,c+"enter",w,n,m),k.target=p,k.relatedTarget=O,g=k),O=g,y&&w)t:{for(k=y,f=w,c=0,p=k;p;p=$t(p))c++;for(p=0,g=f;g;g=$t(g))p++;for(;0<c-p;)k=$t(k),c--;for(;0<p-c;)f=$t(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=$t(k),f=$t(f)}k=null}else k=null;y!==null&&zo(v,h,y,k,!1),w!==null&&O!==null&&zo(v,O,w,k,!0)}}e:{if(h=d?Bt(d):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var j=gf;else if(ko(h))if(vu)j=kf;else{j=xf;var C=yf}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=wf);if(j&&(j=j(e,d))){mu(v,j,n,m);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&vs(h,"number",h.value)}switch(C=d?Bt(d):window,e){case"focusin":(ko(C)||C.contentEditable==="true")&&(Ut=C,_s=d,Mn=null);break;case"focusout":Mn=_s=Ut=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,Eo(v,n,m);break;case"selectionchange":if(Nf)break;case"keydown":case"keyup":Eo(v,n,m)}var E;if(ki)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Wt?pu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(fu&&n.locale!=="ko"&&(Wt||T!=="onCompositionStart"?T==="onCompositionEnd"&&Wt&&(E=du()):(lt=m,yi="value"in lt?lt.value:lt.textContent,Wt=!0)),C=Qr(d,T),0<C.length&&(T=new go(T,e,null,n,m),v.push({event:T,listeners:C}),E?T.data=E:(E=hu(n),E!==null&&(T.data=E)))),(E=ff?pf(e,n):hf(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(m=new go("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:d}),m.data=E))}Eu(v,t)})}function Yn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=An(e,n),s!=null&&r.unshift(Yn(e,s,l)),s=An(e,t),s!=null&&r.push(Yn(e,s,l))),e=e.return}return r}function $t(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zo(e,t,n,r,l){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,l?(u=An(n,s),u!=null&&o.unshift(Yn(n,u,a))):l||(u=An(n,s),u!=null&&o.push(Yn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var _f=/\r\n?/g,zf=/\u0000|\uFFFD/g;function Po(e){return(typeof e=="string"?e:""+e).replace(_f,`
|
|
38
|
-
`).replace(zf,"")}function xr(e,t,n){if(t=Po(t),Po(e)!==t&&n)throw Error(x(425))}function Kr(){}var Ps=null,Rs=null;function Ls(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ms=typeof setTimeout=="function"?setTimeout:void 0,Pf=typeof clearTimeout=="function"?clearTimeout:void 0,Ro=typeof Promise=="function"?Promise:void 0,Rf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ro<"u"?function(e){return Ro.resolve(null).then(e).catch(Lf)}:Ms;function Lf(e){setTimeout(function(){throw e})}function Kl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Vn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Vn(t)}function ut(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==="$?")break;if(t==="/$")return null}}return e}function Lo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var pn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+pn,Xn="__reactProps$"+pn,qe="__reactContainer$"+pn,Os="__reactEvents$"+pn,Mf="__reactListeners$"+pn,Of="__reactHandles$"+pn;function St(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lo(e);e!==null;){if(n=e[Ae])return n;e=Lo(e)}return t}e=n,n=e.parentNode}return null}function sr(e){return e=e[Ae]||e[qe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function ml(e){return e[Xn]||null}var Ds=[],Qt=-1;function gt(e){return{current:e}}function H(e){0>Qt||(e.current=Ds[Qt],Ds[Qt]=null,Qt--)}function $(e,t){Qt++,Ds[Qt]=e.current,e.current=t}var mt={},oe=gt(mt),he=gt(!1),_t=mt;function ln(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Yr(){H(he),H(oe)}function Mo(e,t,n){if(oe.current!==mt)throw Error(x(168));$(oe,t),$(he,n)}function _u(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(x(108,gd(e)||"Unknown",l));return V({},n,r)}function Xr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,_t=oe.current,$(oe,e),$(he,he.current),!0}function Oo(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=_u(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,H(he),H(oe),$(oe,e)):H(he),$(he,n)}var Be=null,vl=!1,Yl=!1;function zu(e){Be===null?Be=[e]:Be.push(e)}function Df(e){vl=!0,zu(e)}function yt(){if(!Yl&&Be!==null){Yl=!0;var e=0,t=D;try{var n=Be;for(D=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,vl=!1}catch(l){throw Be!==null&&(Be=Be.slice(e+1)),eu(hi,yt),l}finally{D=t,Yl=!1}}return null}var Kt=[],Yt=0,qr=null,Gr=0,Ne=[],Ce=0,zt=null,Qe=1,Ke="";function kt(e,t){Kt[Yt++]=Gr,Kt[Yt++]=qr,qr=e,Gr=t}function Pu(e,t,n){Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,zt=e;var r=Qe;e=Ke;var l=32-De(r)-1;r&=~(1<<l),n+=1;var s=32-De(t)+l;if(30<s){var o=l-l%5;s=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Qe=1<<32-De(t)+l|n<<l|r,Ke=s+e}else Qe=1<<s|n<<l|r,Ke=e}function Si(e){e.return!==null&&(kt(e,1),Pu(e,1,0))}function Ni(e){for(;e===qr;)qr=Kt[--Yt],Kt[Yt]=null,Gr=Kt[--Yt],Kt[Yt]=null;for(;e===zt;)zt=Ne[--Ce],Ne[Ce]=null,Ke=Ne[--Ce],Ne[Ce]=null,Qe=Ne[--Ce],Ne[Ce]=null}var we=null,xe=null,A=!1,Oe=null;function Ru(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Do(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,xe=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zt!==null?{id:Qe,overflow:Ke}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,xe=null,!0):!1;default:return!1}}function $s(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Is(e){if(A){var t=xe;if(t){var n=t;if(!Do(e,t)){if($s(e))throw Error(x(418));t=ut(n.nextSibling);var r=we;t&&Do(e,t)?Ru(r,n):(e.flags=e.flags&-4097|2,A=!1,we=e)}}else{if($s(e))throw Error(x(418));e.flags=e.flags&-4097|2,A=!1,we=e}}}function $o(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!A)return $o(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ls(e.type,e.memoizedProps)),t&&(t=xe)){if($s(e))throw Lu(),Error(x(418));for(;t;)Ru(e,t),t=ut(t.nextSibling)}if($o(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=we?ut(e.stateNode.nextSibling):null;return!0}function Lu(){for(var e=xe;e;)e=ut(e.nextSibling)}function sn(){xe=we=null,A=!1}function Ci(e){Oe===null?Oe=[e]:Oe.push(e)}var $f=Je.ReactCurrentBatchConfig;function jn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=l.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Io(e){var t=e._init;return t(e._payload)}function Mu(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=pt(f,c),f.index=0,f.sibling=null,f}function s(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,g){return c===null||c.tag!==6?(c=es(p,f.mode,g),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,g){var j=p.type;return j===At?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Io(j)===c.type)?(g=l(c,p.props),g.ref=jn(f,c,p),g.return=f,g):(g=Ir(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,g)}function d(f,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=ts(p,f.mode,g),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function m(f,c,p,g,j){return c===null||c.tag!==7?(c=Tt(p,f.mode,g,j),c.return=f,c):(c=l(c,p),c.return=f,c)}function v(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=es(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Ir(c.type,c.key,c.props,null,f.mode,p),p.ref=jn(f,null,c),p.return=f,p;case Ht:return c=ts(c,f.mode,p),c.return=f,c;case et:var g=c._init;return v(f,g(c._payload),p)}if(En(c)||gn(c))return c=Tt(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,g){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===j?u(f,c,p,g):null;case Ht:return p.key===j?d(f,c,p,g):null;case et:return j=p._init,h(f,c,j(p._payload),g)}if(En(p)||gn(p))return j!==null?null:m(f,c,p,g,null);kr(f,p)}return null}function y(f,c,p,g,j){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(p)||null,a(c,f,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cr:return f=f.get(g.key===null?p:g.key)||null,u(c,f,g,j);case Ht:return f=f.get(g.key===null?p:g.key)||null,d(c,f,g,j);case et:var C=g._init;return y(f,c,p,C(g._payload),j)}if(En(g)||gn(g))return f=f.get(p)||null,m(c,f,g,j,null);kr(c,g)}return null}function w(f,c,p,g){for(var j=null,C=null,E=c,T=c=0,Q=null;E!==null&&T<p.length;T++){E.index>T?(Q=E,E=null):Q=E.sibling;var L=h(f,E,p[T],g);if(L===null){E===null&&(E=Q);break}e&&E&&L.alternate===null&&t(f,E),c=s(L,c,T),C===null?j=L:C.sibling=L,C=L,E=Q}if(T===p.length)return n(f,E),A&&kt(f,T),j;if(E===null){for(;T<p.length;T++)E=v(f,p[T],g),E!==null&&(c=s(E,c,T),C===null?j=E:C.sibling=E,C=E);return A&&kt(f,T),j}for(E=r(f,E);T<p.length;T++)Q=y(E,f,T,p[T],g),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),c=s(Q,c,T),C===null?j=Q:C.sibling=Q,C=Q);return e&&E.forEach(function(Pe){return t(f,Pe)}),A&&kt(f,T),j}function k(f,c,p,g){var j=gn(p);if(typeof j!="function")throw Error(x(150));if(p=j.call(p),p==null)throw Error(x(151));for(var C=j=null,E=c,T=c=0,Q=null,L=p.next();E!==null&&!L.done;T++,L=p.next()){E.index>T?(Q=E,E=null):Q=E.sibling;var Pe=h(f,E,L.value,g);if(Pe===null){E===null&&(E=Q);break}e&&E&&Pe.alternate===null&&t(f,E),c=s(Pe,c,T),C===null?j=Pe:C.sibling=Pe,C=Pe,E=Q}if(L.done)return n(f,E),A&&kt(f,T),j;if(E===null){for(;!L.done;T++,L=p.next())L=v(f,L.value,g),L!==null&&(c=s(L,c,T),C===null?j=L:C.sibling=L,C=L);return A&&kt(f,T),j}for(E=r(f,E);!L.done;T++,L=p.next())L=y(E,f,T,L.value,g),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),c=s(L,c,T),C===null?j=L:C.sibling=L,C=L);return e&&E.forEach(function(mn){return t(f,mn)}),A&&kt(f,T),j}function O(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===At&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===At){if(C.tag===7){n(f,C.sibling),c=l(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Io(j)===C.type){n(f,C.sibling),c=l(C,p.props),c.ref=jn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===At?(c=Tt(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=Ir(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,f=g)}return o(f);case Ht:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ts(p,f.mode,g),c.return=f,f=c}return o(f);case et:return C=p._init,O(f,c,C(p._payload),g)}if(En(p))return w(f,c,p,g);if(gn(p))return k(f,c,p,g);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=es(p,f.mode,g),c.return=f,f=c),o(f)):n(f,c)}return O}var on=Mu(!0),Ou=Mu(!1),Zr=gt(null),Jr=null,Xt=null,Ei=null;function Ti(){Ei=Xt=Jr=null}function _i(e){var t=Zr.current;H(Zr),e._currentValue=t}function Fs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tn(e,t){Jr=e,Ei=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Jr===null)throw Error(x(308));Xt=e,Jr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Nt=null;function zi(e){Nt===null?Nt=[e]:Nt.push(e)}function Du(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,zi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ge(e,r)}function Ge(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tt=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $u(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ge(e,n)}return l=r.interleaved,l===null?(t.next=t,zi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ge(e,n)}function Rr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var l=e.updateQueue;tt=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?s=d:o.next=d,o=u;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=d:a.next=d,m.lastBaseUpdate=u))}if(s!==null){var v=l.baseState;o=0,m=d=u=null,a=s;do{var h=a.lane,y=a.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,y=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){v=w.call(y,v,h);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(y,v,h):w,h==null)break e;v=V({},v,h);break e;case 2:tt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=y,u=v):m=m.next=y,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(m===null&&(u=v),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Rt|=o,e.lanes=o,e.memoizedState=v}}function Ho(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(x(191,l));l.call(r)}}}var ir={},Ue=gt(ir),qn=gt(ir),Gn=gt(ir);function Ct(e){if(e===ir)throw Error(x(174));return e}function Ri(e,t){switch($(Gn,t),$(qn,e),$(Ue,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ys(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ys(t,e)}H(Ue),$(Ue,t)}function an(){H(Ue),H(qn),H(Gn)}function Iu(e){Ct(Gn.current);var t=Ct(Ue.current),n=ys(t,e.type);t!==n&&($(qn,e),$(Ue,n))}function Li(e){qn.current===e&&(H(Ue),H(qn))}var W=gt(0);function el(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Xl=[];function Mi(){for(var e=0;e<Xl.length;e++)Xl[e]._workInProgressVersionPrimary=null;Xl.length=0}var Lr=Je.ReactCurrentDispatcher,ql=Je.ReactCurrentBatchConfig,Pt=0,U=null,G=null,b=null,tl=!1,On=!1,Zn=0,If=0;function le(){throw Error(x(321))}function Oi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ie(e[n],t[n]))return!1;return!0}function Di(e,t,n,r,l,s){if(Pt=s,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lr.current=e===null||e.memoizedState===null?Wf:Uf,e=n(r,l),On){s=0;do{if(On=!1,Zn=0,25<=s)throw Error(x(301));s+=1,b=G=null,t.updateQueue=null,Lr.current=Vf,e=n(r,l)}while(On)}if(Lr.current=nl,t=G!==null&&G.next!==null,Pt=0,b=G=U=null,tl=!1,t)throw Error(x(300));return e}function $i(){var e=Zn!==0;return Zn=0,e}function He(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?U.memoizedState=b=e:b=b.next=e,b}function ze(){if(G===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=G.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,G=e;else{if(e===null)throw Error(x(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function Jn(e,t){return typeof t=="function"?t(e):t}function Gl(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=G,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=o=null,u=null,d=s;do{var m=d.lane;if((Pt&m)===m)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var v={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=v,o=r):u=u.next=v,U.lanes|=m,Rt|=m}d=d.next}while(d!==null&&d!==s);u===null?o=r:u.next=a,Ie(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,U.lanes|=s,Rt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zl(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);Ie(s,t.memoizedState)||(pe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Fu(){}function Hu(e,t){var n=U,r=ze(),l=t(),s=!Ie(r.memoizedState,l);if(s&&(r.memoizedState=l,pe=!0),r=r.queue,Ii(Uu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,bn(9,Wu.bind(null,n,r,l,t),void 0,null),ee===null)throw Error(x(349));Pt&30||Au(n,t,l)}return l}function Au(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wu(e,t,n,r){t.value=n,t.getSnapshot=r,Vu(t)&&Bu(e)}function Uu(e,t,n){return n(function(){Vu(t)&&Bu(e)})}function Vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ie(e,n)}catch{return!0}}function Bu(e){var t=Ge(e,1);t!==null&&$e(t,e,1,-1)}function Ao(e){var t=He();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=Af.bind(null,U,e),[t.memoizedState,e]}function bn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Qu(){return ze().memoizedState}function Mr(e,t,n,r){var l=He();U.flags|=e,l.memoizedState=bn(1|t,n,void 0,r===void 0?null:r)}function gl(e,t,n,r){var l=ze();r=r===void 0?null:r;var s=void 0;if(G!==null){var o=G.memoizedState;if(s=o.destroy,r!==null&&Oi(r,o.deps)){l.memoizedState=bn(t,n,s,r);return}}U.flags|=e,l.memoizedState=bn(1|t,n,s,r)}function Wo(e,t){return Mr(8390656,8,e,t)}function Ii(e,t){return gl(2048,8,e,t)}function Ku(e,t){return gl(4,2,e,t)}function Yu(e,t){return gl(4,4,e,t)}function Xu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qu(e,t,n){return n=n!=null?n.concat([e]):null,gl(4,4,Xu.bind(null,t,e),n)}function Fi(){}function Gu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ju(e,t,n){return Pt&21?(Ie(n,t)||(n=ru(),U.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Ff(e,t){var n=D;D=n!==0&&4>n?n:4,e(!0);var r=ql.transition;ql.transition={};try{e(!1),t()}finally{D=n,ql.transition=r}}function bu(){return ze().memoizedState}function Hf(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ec(e))tc(t,n);else if(n=Du(e,t,n,r),n!==null){var l=ue();$e(n,e,r,l),nc(n,t,r)}}function Af(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ec(e))tc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,Ie(a,o)){var u=t.interleaved;u===null?(l.next=l,zi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Du(e,t,l,r),n!==null&&(l=ue(),$e(n,e,r,l),nc(n,t,r))}}function ec(e){var t=e.alternate;return e===U||t!==null&&t===U}function tc(e,t){On=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}var nl={readContext:_e,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Wf={readContext:_e,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Xu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Ao,useDebugValue:Fi,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Ff.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,l=He();if(A){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ee===null)throw Error(x(349));Pt&30||Au(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,Wo(Uu.bind(null,r,s,e),[e]),r.flags|=2048,bn(9,Wu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=He(),t=ee.identifierPrefix;if(A){var n=Ke,r=Qe;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=If++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Uf={readContext:_e,useCallback:Gu,useContext:_e,useEffect:Ii,useImperativeHandle:qu,useInsertionEffect:Ku,useLayoutEffect:Yu,useMemo:Zu,useReducer:Gl,useRef:Qu,useState:function(){return Gl(Jn)},useDebugValue:Fi,useDeferredValue:function(e){var t=ze();return Ju(t,G.memoizedState,e)},useTransition:function(){var e=Gl(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Fu,useSyncExternalStore:Hu,useId:bu,unstable_isNewReconciler:!1},Vf={readContext:_e,useCallback:Gu,useContext:_e,useEffect:Ii,useImperativeHandle:qu,useInsertionEffect:Ku,useLayoutEffect:Yu,useMemo:Zu,useReducer:Zl,useRef:Qu,useState:function(){return Zl(Jn)},useDebugValue:Fi,useDeferredValue:function(e){var t=ze();return G===null?t.memoizedState=e:Ju(t,G.memoizedState,e)},useTransition:function(){var e=Zl(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Fu,useSyncExternalStore:Hu,useId:bu,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yl={isMounted:function(e){return(e=e._reactInternals)?Dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&($e(t,e,l,r),Rr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&($e(t,e,l,r),Rr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=ft(e),l=Ye(n,r);l.tag=2,t!=null&&(l.callback=t),t=ct(e,l,r),t!==null&&($e(t,e,r,n),Rr(t,e,r))}};function Uo(e,t,n,r,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Qn(n,r)||!Qn(l,s):!0}function rc(e,t,n){var r=!1,l=mt,s=t.contextType;return typeof s=="object"&&s!==null?s=_e(s):(l=me(t)?_t:oe.current,r=t.contextTypes,s=(r=r!=null)?ln(e,l):mt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function Vo(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yl.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Pi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=_e(s):(s=me(t)?_t:oe.current,l.context=ln(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Hs(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&yl.enqueueReplaceState(l,l.state,null),br(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function un(e,t){try{var n="",r=t;do n+=vd(r),r=r.return;while(r);var l=n}catch(s){l=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function vd(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function ps(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wt:return"Fragment";case At:return"Portal";case cs:return"Profiler";case ci:return"StrictMode";case ds:return"Suspense";case fs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ia:return(e.displayName||"Context")+".Consumer";case $a:return(e._context.displayName||"Context")+".Provider";case di:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fi:return t=e.displayName||null,t!==null?t:ps(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return ps(e(t))}catch{}}return null}function gd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ps(t);case 8:return t===ci?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Da(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yd(e){var t=Da(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=yd(e))}function Ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Da(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dr(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}}function hs(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function so(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Aa(e,t){t=t.checked,t!=null&&ui(e,"checked",t,!1)}function ms(e,t){Aa(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vs(e,t.type,n):t.hasOwnProperty("defaultValue")&&vs(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function io(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vs(e,t,n){(t!=="number"||Dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function gs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(En(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Wa(e,t){var n=ht(t.value),r=ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ao(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ua(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ys(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ua(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Va=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xd=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){xd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Ba(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Qa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ba(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var wd=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xs(e,t){if(t){if(wd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function ws(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ks=null;function pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var js=null,bt=null,en=null;function uo(e){if(e=sr(e)){if(typeof js!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ml(t),js(e.stateNode,e.type,t))}}function Ka(e){bt?en?en.push(e):en=[e]:bt=e}function Ya(){if(bt){var e=bt,t=en;if(en=bt=null,uo(e),t)for(e=0;e<t.length;e++)uo(t[e])}}function qa(e,t){return e(t)}function Xa(){}var Ol=!1;function Ga(e,t,n){if(Ol)return e(t,n);Ol=!0;try{return qa(e,t,n)}finally{Ol=!1,(bt!==null||en!==null)&&(Xa(),Ya())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=ml(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Ss=!1;if(qe)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{Ss=!1}function kd(e,t,n,r,l,s,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Pn=!1,Hr=null,Ar=!1,Ns=null,jd={onError:function(e){Pn=!0,Hr=e}};function Sd(e,t,n,r,l,s,o,a,u){Pn=!1,Hr=null,kd.apply(jd,arguments)}function Nd(e,t,n,r,l,s,o,a,u){if(Sd.apply(this,arguments),Pn){if(Pn){var d=Hr;Pn=!1,Hr=null}else throw Error(x(198));Ar||(Ar=!0,Ns=d)}}function It(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Za(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 co(e){if(It(e)!==e)throw Error(x(188))}function Cd(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return co(l),e;if(s===r)return co(l),t;s=s.sibling}throw Error(x(188))}if(n.return!==r.return)n=l,r=s;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function Ja(e){return e=Cd(e),e!==null?ba(e):null}function ba(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ba(e);if(t!==null)return t;e=e.sibling}return null}var eu=ke.unstable_scheduleCallback,fo=ke.unstable_cancelCallback,Ed=ke.unstable_shouldYield,Td=ke.unstable_requestPaint,Y=ke.unstable_now,_d=ke.unstable_getCurrentPriorityLevel,hi=ke.unstable_ImmediatePriority,tu=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,zd=ke.unstable_LowPriority,nu=ke.unstable_IdlePriority,dl=null,We=null;function Pd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(dl,e,void 0,(e.current.flags&128)===128)}catch{}}var $e=Math.clz32?Math.clz32:Md,Ld=Math.log,Rd=Math.LN2;function Md(e){return e>>>=0,e===0?32:31-(Ld(e)/Rd|0)|0}var pr=64,hr=4194304;function Tn(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Tn(a):(s&=o,s!==0&&(r=Tn(s)))}else o=n&~l,o!==0?r=Tn(o):s!==0&&(r=Tn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$e(t),l=1<<n,r|=e[n],t&=~l;return r}function Od(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $d(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-$e(s),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=Od(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Cs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ru(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function $l(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function Id(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-$e(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var $=0;function lu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var su,vi,iu,ou,au,Es=!1,mr=[],it=null,ot=null,at=null,Wn=new Map,Un=new Map,nt=[],Fd="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 submit".split(" ");function po(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function xn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=sr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Dd(e,t,n,r,l){switch(t){case"focusin":return it=xn(it,e,t,n,r,l),!0;case"dragenter":return ot=xn(ot,e,t,n,r,l),!0;case"mouseover":return at=xn(at,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return Wn.set(s,xn(Wn.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,Un.set(s,xn(Un.get(s)||null,e,t,n,r,l)),!0}return!1}function uu(e){var t=St(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=Za(n),t!==null){e.blockedOn=t,au(e.priority,function(){iu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ts(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ks=r,n.target.dispatchEvent(r),ks=null}else return t=sr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function ho(e,t,n){_r(e)&&n.delete(t)}function Hd(){Es=!1,it!==null&&_r(it)&&(it=null),ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),Wn.forEach(ho),Un.forEach(ho)}function wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Hd)))}function Vn(e){function t(l){return wn(l,e)}if(0<mr.length){wn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&wn(it,e),ot!==null&&wn(ot,e),at!==null&&wn(at,e),Wn.forEach(t),Un.forEach(t),n=0;n<nt.length;n++)r=nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nt.length&&(n=nt[0],n.blockedOn===null);)uu(n),n.blockedOn===null&&nt.shift()}var tn=Je.ReactCurrentBatchConfig,Vr=!0;function Ad(e,t,n,r){var l=$,s=tn.transition;tn.transition=null;try{$=1,gi(e,t,n,r)}finally{$=l,tn.transition=s}}function Wd(e,t,n,r){var l=$,s=tn.transition;tn.transition=null;try{$=4,gi(e,t,n,r)}finally{$=l,tn.transition=s}}function gi(e,t,n,r){if(Vr){var l=Ts(e,t,n,r);if(l===null)Ql(e,t,r,Br,n),po(e,r);else if(Dd(l,e,t,n,r))r.stopPropagation();else if(po(e,r),t&4&&-1<Fd.indexOf(e)){for(;l!==null;){var s=sr(l);if(s!==null&&su(s),s=Ts(e,t,n,r),s===null&&Ql(e,t,r,Br,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else Ql(e,t,r,null,n)}}var Br=null;function Ts(e,t,n,r){if(Br=null,e=pi(r),e=St(e),e!==null)if(t=It(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Za(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Br=e,null}function cu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_d()){case hi:return 1;case tu:return 4;case Wr:case zd:return 16;case nu:return 536870912;default:return 16}default:return 16}}var lt=null,yi=null,zr=null;function du(){if(zr)return zr;var e,t=yi,n=t.length,r,l="value"in lt?lt.value:lt.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[s-r];r++);return zr=l.slice(e,1<r?1-r:void 0)}function Pr(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 vr(){return!0}function mo(){return!1}function Se(e){function t(n,r,l,s,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?vr:mo,this.isPropagationStopped=mo,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=Se(pn),lr=V({},pn,{view:0,detail:0}),Ud=Se(lr),Il,Fl,kn,fl=V({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kn&&(kn&&e.type==="mousemove"?(Il=e.screenX-kn.screenX,Fl=e.screenY-kn.screenY):Fl=Il=0,kn=e),Il)},movementY:function(e){return"movementY"in e?e.movementY:Fl}}),vo=Se(fl),Vd=V({},fl,{dataTransfer:0}),Bd=Se(Vd),Qd=V({},lr,{relatedTarget:0}),Dl=Se(Qd),Kd=V({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),Yd=Se(Kd),qd=V({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xd=Se(qd),Gd=V({},pn,{data:0}),go=Se(Gd),Zd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jd={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"},bd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ef(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bd[e])?!!t[e]:!1}function wi(){return ef}var tf=V({},lr,{key:function(e){if(e.key){var t=Zd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nf=Se(tf),rf=V({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=Se(rf),lf=V({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),sf=Se(lf),of=V({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),af=Se(of),uf=V({},fl,{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}),cf=Se(uf),df=[9,13,27,32],ki=qe&&"CompositionEvent"in window,Ln=null;qe&&"documentMode"in document&&(Ln=document.documentMode);var ff=qe&&"TextEvent"in window&&!Ln,fu=qe&&(!ki||Ln&&8<Ln&&11>=Ln),xo=" ",wo=!1;function pu(e,t){switch(e){case"keyup":return df.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ut=!1;function pf(e,t){switch(e){case"compositionend":return hu(t);case"keypress":return t.which!==32?null:(wo=!0,xo);case"textInput":return e=t.data,e===xo&&wo?null:e;default:return null}}function hf(e,t){if(Ut)return e==="compositionend"||!ki&&pu(e,t)?(e=du(),zr=yi=lt=null,Ut=!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 fu&&t.locale!=="ko"?null:t.data;default:return null}}var mf={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 ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mf[e.type]:t==="textarea"}function mu(e,t,n,r){Ka(r),t=Qr(t,"onChange"),0<t.length&&(n=new xi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Bn=null;function vf(e){Eu(e,0)}function pl(e){var t=Qt(e);if(Ha(t))return e}function gf(e,t){if(e==="change")return t}var vu=!1;if(qe){var Hl;if(qe){var Al="oninput"in document;if(!Al){var jo=document.createElement("div");jo.setAttribute("oninput","return;"),Al=typeof jo.oninput=="function"}Hl=Al}else Hl=!1;vu=Hl&&(!document.documentMode||9<document.documentMode)}function So(){Rn&&(Rn.detachEvent("onpropertychange",gu),Bn=Rn=null)}function gu(e){if(e.propertyName==="value"&&pl(Bn)){var t=[];mu(t,Bn,e,pi(e)),Ga(vf,t)}}function yf(e,t,n){e==="focusin"?(So(),Rn=t,Bn=n,Rn.attachEvent("onpropertychange",gu)):e==="focusout"&&So()}function xf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Bn)}function wf(e,t){if(e==="click")return pl(t)}function kf(e,t){if(e==="input"||e==="change")return pl(t)}function jf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:jf;function Qn(e,t){if(Fe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!us.call(t,l)||!Fe(e[l],t[l]))return!1}return!0}function No(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Co(e,t){var n=No(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=No(n)}}function yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xu(){for(var e=window,t=Dr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function ji(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")}function Sf(e){var t=xu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yu(n.ownerDocument.documentElement,n)){if(r!==null&&ji(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=Co(n,s);var o=Co(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Nf=qe&&"documentMode"in document&&11>=document.documentMode,Vt=null,_s=null,Mn=null,zs=!1;function Eo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zs||Vt==null||Vt!==Dr(r)||(r=Vt,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Qn(Mn,r)||(Mn=r,r=Qr(_s,"onSelect"),0<r.length&&(t=new xi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vt)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Wl={},wu={};qe&&(wu=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function hl(e){if(Wl[e])return Wl[e];if(!Bt[e])return e;var t=Bt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wu)return Wl[e]=t[n];return e}var ku=hl("animationend"),ju=hl("animationiteration"),Su=hl("animationstart"),Nu=hl("transitionend"),Cu=new Map,To="abort auxClick 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(" ");function vt(e,t){Cu.set(e,t),$t(t,[e])}for(var Ul=0;Ul<To.length;Ul++){var Vl=To[Ul],Cf=Vl.toLowerCase(),Ef=Vl[0].toUpperCase()+Vl.slice(1);vt(Cf,"on"+Ef)}vt(ku,"onAnimationEnd");vt(ju,"onAnimationIteration");vt(Su,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(Nu,"onTransitionEnd");ln("onMouseEnter",["mouseout","mouseover"]);ln("onMouseLeave",["mouseout","mouseover"]);ln("onPointerEnter",["pointerout","pointerover"]);ln("onPointerLeave",["pointerout","pointerover"]);$t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$t("onBeforeInput",["compositionend","keypress","textInput","paste"]);$t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),Tf=new Set("cancel close invalid load scroll toggle".split(" ").concat(_n));function _o(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nd(r,t,void 0,e),e.currentTarget=null}function Eu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==s&&l.isPropagationStopped())break e;_o(l,a,d),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;_o(l,a,d),s=u}}}if(Ar)throw e=Ns,Ar=!1,Ns=null,e}function F(e,t){var n=t[Os];n===void 0&&(n=t[Os]=new Set);var r=e+"__bubble";n.has(r)||(Tu(t,e,2,!1),n.add(r))}function Bl(e,t,n){var r=0;t&&(r|=4),Tu(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Kn(e){if(!e[yr]){e[yr]=!0,Oa.forEach(function(n){n!=="selectionchange"&&(Tf.has(n)||Bl(n,!1,e),Bl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Bl("selectionchange",!1,t))}}function Tu(e,t,n,r){switch(cu(t)){case 1:var l=Ad;break;case 4:l=Wd;break;default:l=gi}n=l.bind(null,t,n,e),l=void 0,!Ss||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ql(e,t,n,r,l){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=St(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Ga(function(){var d=s,m=pi(n),v=[];e:{var h=Cu.get(e);if(h!==void 0){var y=xi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":y=nf;break;case"focusin":w="focus",y=Dl;break;case"focusout":w="blur",y=Dl;break;case"beforeblur":case"afterblur":y=Dl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Bd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=sf;break;case ku:case ju:case Su:y=Yd;break;case Nu:y=af;break;case"scroll":y=Ud;break;case"wheel":y=cf;break;case"copy":case"cut":case"paste":y=Xd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=yo}var k=(t&4)!==0,O=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,f!==null&&(g=An(c,f),g!=null&&k.push(Yn(c,g,p)))),O)break;c=c.return}0<k.length&&(h=new y(h,w,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==ks&&(w=n.relatedTarget||n.fromElement)&&(St(w)||w[Xe]))break e;if((y||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=d,w=w?St(w):null,w!==null&&(O=It(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=d),y!==w)){if(k=vo,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=yo,g="onPointerLeave",f="onPointerEnter",c="pointer"),O=y==null?h:Qt(y),p=w==null?h:Qt(w),h=new k(g,c+"leave",y,n,m),h.target=O,h.relatedTarget=p,g=null,St(m)===d&&(k=new k(f,c+"enter",w,n,m),k.target=p,k.relatedTarget=O,g=k),O=g,y&&w)t:{for(k=y,f=w,c=0,p=k;p;p=Ft(p))c++;for(p=0,g=f;g;g=Ft(g))p++;for(;0<c-p;)k=Ft(k),c--;for(;0<p-c;)f=Ft(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=Ft(k),f=Ft(f)}k=null}else k=null;y!==null&&zo(v,h,y,k,!1),w!==null&&O!==null&&zo(v,O,w,k,!0)}}e:{if(h=d?Qt(d):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var j=gf;else if(ko(h))if(vu)j=kf;else{j=xf;var C=yf}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=wf);if(j&&(j=j(e,d))){mu(v,j,n,m);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&vs(h,"number",h.value)}switch(C=d?Qt(d):window,e){case"focusin":(ko(C)||C.contentEditable==="true")&&(Vt=C,_s=d,Mn=null);break;case"focusout":Mn=_s=Vt=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,Eo(v,n,m);break;case"selectionchange":if(Nf)break;case"keydown":case"keyup":Eo(v,n,m)}var E;if(ki)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ut?pu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(fu&&n.locale!=="ko"&&(Ut||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ut&&(E=du()):(lt=m,yi="value"in lt?lt.value:lt.textContent,Ut=!0)),C=Qr(d,T),0<C.length&&(T=new go(T,e,null,n,m),v.push({event:T,listeners:C}),E?T.data=E:(E=hu(n),E!==null&&(T.data=E)))),(E=ff?pf(e,n):hf(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(m=new go("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:d}),m.data=E))}Eu(v,t)})}function Yn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=An(e,n),s!=null&&r.unshift(Yn(e,s,l)),s=An(e,t),s!=null&&r.push(Yn(e,s,l))),e=e.return}return r}function Ft(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zo(e,t,n,r,l){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,l?(u=An(n,s),u!=null&&o.unshift(Yn(n,u,a))):l||(u=An(n,s),u!=null&&o.push(Yn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var _f=/\r\n?/g,zf=/\u0000|\uFFFD/g;function Po(e){return(typeof e=="string"?e:""+e).replace(_f,`
|
|
38
|
+
`).replace(zf,"")}function xr(e,t,n){if(t=Po(t),Po(e)!==t&&n)throw Error(x(425))}function Kr(){}var Ps=null,Ls=null;function Rs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ms=typeof setTimeout=="function"?setTimeout:void 0,Pf=typeof clearTimeout=="function"?clearTimeout:void 0,Lo=typeof Promise=="function"?Promise:void 0,Lf=typeof queueMicrotask=="function"?queueMicrotask:typeof Lo<"u"?function(e){return Lo.resolve(null).then(e).catch(Rf)}:Ms;function Rf(e){setTimeout(function(){throw e})}function Kl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Vn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Vn(t)}function ut(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==="$?")break;if(t==="/$")return null}}return e}function Ro(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+hn,qn="__reactProps$"+hn,Xe="__reactContainer$"+hn,Os="__reactEvents$"+hn,Mf="__reactListeners$"+hn,Of="__reactHandles$"+hn;function St(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ro(e);e!==null;){if(n=e[Ae])return n;e=Ro(e)}return t}e=n,n=e.parentNode}return null}function sr(e){return e=e[Ae]||e[Xe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function ml(e){return e[qn]||null}var $s=[],Kt=-1;function gt(e){return{current:e}}function H(e){0>Kt||(e.current=$s[Kt],$s[Kt]=null,Kt--)}function I(e,t){Kt++,$s[Kt]=e.current,e.current=t}var mt={},oe=gt(mt),he=gt(!1),_t=mt;function sn(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Yr(){H(he),H(oe)}function Mo(e,t,n){if(oe.current!==mt)throw Error(x(168));I(oe,t),I(he,n)}function _u(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(x(108,gd(e)||"Unknown",l));return V({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,_t=oe.current,I(oe,e),I(he,he.current),!0}function Oo(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=_u(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,H(he),H(oe),I(oe,e)):H(he),I(he,n)}var Be=null,vl=!1,Yl=!1;function zu(e){Be===null?Be=[e]:Be.push(e)}function $f(e){vl=!0,zu(e)}function yt(){if(!Yl&&Be!==null){Yl=!0;var e=0,t=$;try{var n=Be;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,vl=!1}catch(l){throw Be!==null&&(Be=Be.slice(e+1)),eu(hi,yt),l}finally{$=t,Yl=!1}}return null}var Yt=[],qt=0,Xr=null,Gr=0,Ne=[],Ce=0,zt=null,Qe=1,Ke="";function kt(e,t){Yt[qt++]=Gr,Yt[qt++]=Xr,Xr=e,Gr=t}function Pu(e,t,n){Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,zt=e;var r=Qe;e=Ke;var l=32-$e(r)-1;r&=~(1<<l),n+=1;var s=32-$e(t)+l;if(30<s){var o=l-l%5;s=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Qe=1<<32-$e(t)+l|n<<l|r,Ke=s+e}else Qe=1<<s|n<<l|r,Ke=e}function Si(e){e.return!==null&&(kt(e,1),Pu(e,1,0))}function Ni(e){for(;e===Xr;)Xr=Yt[--qt],Yt[qt]=null,Gr=Yt[--qt],Yt[qt]=null;for(;e===zt;)zt=Ne[--Ce],Ne[Ce]=null,Ke=Ne[--Ce],Ne[Ce]=null,Qe=Ne[--Ce],Ne[Ce]=null}var we=null,xe=null,A=!1,Oe=null;function Lu(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $o(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,xe=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zt!==null?{id:Qe,overflow:Ke}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,xe=null,!0):!1;default:return!1}}function Is(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fs(e){if(A){var t=xe;if(t){var n=t;if(!$o(e,t)){if(Is(e))throw Error(x(418));t=ut(n.nextSibling);var r=we;t&&$o(e,t)?Lu(r,n):(e.flags=e.flags&-4097|2,A=!1,we=e)}}else{if(Is(e))throw Error(x(418));e.flags=e.flags&-4097|2,A=!1,we=e}}}function Io(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!A)return Io(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rs(e.type,e.memoizedProps)),t&&(t=xe)){if(Is(e))throw Ru(),Error(x(418));for(;t;)Lu(e,t),t=ut(t.nextSibling)}if(Io(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=we?ut(e.stateNode.nextSibling):null;return!0}function Ru(){for(var e=xe;e;)e=ut(e.nextSibling)}function on(){xe=we=null,A=!1}function Ci(e){Oe===null?Oe=[e]:Oe.push(e)}var If=Je.ReactCurrentBatchConfig;function jn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=l.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fo(e){var t=e._init;return t(e._payload)}function Mu(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=pt(f,c),f.index=0,f.sibling=null,f}function s(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,g){return c===null||c.tag!==6?(c=es(p,f.mode,g),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,g){var j=p.type;return j===Wt?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Fo(j)===c.type)?(g=l(c,p.props),g.ref=jn(f,c,p),g.return=f,g):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,g)}function d(f,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=ts(p,f.mode,g),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function m(f,c,p,g,j){return c===null||c.tag!==7?(c=Tt(p,f.mode,g,j),c.return=f,c):(c=l(c,p),c.return=f,c)}function v(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=es(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Fr(c.type,c.key,c.props,null,f.mode,p),p.ref=jn(f,null,c),p.return=f,p;case At:return c=ts(c,f.mode,p),c.return=f,c;case et:var g=c._init;return v(f,g(c._payload),p)}if(En(c)||gn(c))return c=Tt(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,g){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===j?u(f,c,p,g):null;case At:return p.key===j?d(f,c,p,g):null;case et:return j=p._init,h(f,c,j(p._payload),g)}if(En(p)||gn(p))return j!==null?null:m(f,c,p,g,null);kr(f,p)}return null}function y(f,c,p,g,j){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(p)||null,a(c,f,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cr:return f=f.get(g.key===null?p:g.key)||null,u(c,f,g,j);case At:return f=f.get(g.key===null?p:g.key)||null,d(c,f,g,j);case et:var C=g._init;return y(f,c,p,C(g._payload),j)}if(En(g)||gn(g))return f=f.get(p)||null,m(c,f,g,j,null);kr(c,g)}return null}function w(f,c,p,g){for(var j=null,C=null,E=c,T=c=0,Q=null;E!==null&&T<p.length;T++){E.index>T?(Q=E,E=null):Q=E.sibling;var R=h(f,E,p[T],g);if(R===null){E===null&&(E=Q);break}e&&E&&R.alternate===null&&t(f,E),c=s(R,c,T),C===null?j=R:C.sibling=R,C=R,E=Q}if(T===p.length)return n(f,E),A&&kt(f,T),j;if(E===null){for(;T<p.length;T++)E=v(f,p[T],g),E!==null&&(c=s(E,c,T),C===null?j=E:C.sibling=E,C=E);return A&&kt(f,T),j}for(E=r(f,E);T<p.length;T++)Q=y(E,f,T,p[T],g),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),c=s(Q,c,T),C===null?j=Q:C.sibling=Q,C=Q);return e&&E.forEach(function(Pe){return t(f,Pe)}),A&&kt(f,T),j}function k(f,c,p,g){var j=gn(p);if(typeof j!="function")throw Error(x(150));if(p=j.call(p),p==null)throw Error(x(151));for(var C=j=null,E=c,T=c=0,Q=null,R=p.next();E!==null&&!R.done;T++,R=p.next()){E.index>T?(Q=E,E=null):Q=E.sibling;var Pe=h(f,E,R.value,g);if(Pe===null){E===null&&(E=Q);break}e&&E&&Pe.alternate===null&&t(f,E),c=s(Pe,c,T),C===null?j=Pe:C.sibling=Pe,C=Pe,E=Q}if(R.done)return n(f,E),A&&kt(f,T),j;if(E===null){for(;!R.done;T++,R=p.next())R=v(f,R.value,g),R!==null&&(c=s(R,c,T),C===null?j=R:C.sibling=R,C=R);return A&&kt(f,T),j}for(E=r(f,E);!R.done;T++,R=p.next())R=y(E,f,T,R.value,g),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?T:R.key),c=s(R,c,T),C===null?j=R:C.sibling=R,C=R);return e&&E.forEach(function(mn){return t(f,mn)}),A&&kt(f,T),j}function O(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===Wt){if(C.tag===7){n(f,C.sibling),c=l(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Fo(j)===C.type){n(f,C.sibling),c=l(C,p.props),c.ref=jn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Wt?(c=Tt(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,f=g)}return o(f);case At:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ts(p,f.mode,g),c.return=f,f=c}return o(f);case et:return C=p._init,O(f,c,C(p._payload),g)}if(En(p))return w(f,c,p,g);if(gn(p))return k(f,c,p,g);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=es(p,f.mode,g),c.return=f,f=c),o(f)):n(f,c)}return O}var an=Mu(!0),Ou=Mu(!1),Zr=gt(null),Jr=null,Xt=null,Ei=null;function Ti(){Ei=Xt=Jr=null}function _i(e){var t=Zr.current;H(Zr),e._currentValue=t}function Ds(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function nn(e,t){Jr=e,Ei=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Jr===null)throw Error(x(308));Xt=e,Jr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Nt=null;function zi(e){Nt===null?Nt=[e]:Nt.push(e)}function $u(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,zi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ge(e,r)}function Ge(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tt=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ge(e,n)}return l=r.interleaved,l===null?(t.next=t,zi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ge(e,n)}function Lr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var l=e.updateQueue;tt=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?s=d:o.next=d,o=u;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=d:a.next=d,m.lastBaseUpdate=u))}if(s!==null){var v=l.baseState;o=0,m=d=u=null,a=s;do{var h=a.lane,y=a.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,y=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){v=w.call(y,v,h);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(y,v,h):w,h==null)break e;v=V({},v,h);break e;case 2:tt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=y,u=v):m=m.next=y,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(m===null&&(u=v),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Lt|=o,e.lanes=o,e.memoizedState=v}}function Ho(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(x(191,l));l.call(r)}}}var ir={},Ue=gt(ir),Xn=gt(ir),Gn=gt(ir);function Ct(e){if(e===ir)throw Error(x(174));return e}function Li(e,t){switch(I(Gn,t),I(Xn,e),I(Ue,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ys(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ys(t,e)}H(Ue),I(Ue,t)}function un(){H(Ue),H(Xn),H(Gn)}function Fu(e){Ct(Gn.current);var t=Ct(Ue.current),n=ys(t,e.type);t!==n&&(I(Xn,e),I(Ue,n))}function Ri(e){Xn.current===e&&(H(Ue),H(Xn))}var W=gt(0);function el(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ql=[];function Mi(){for(var e=0;e<ql.length;e++)ql[e]._workInProgressVersionPrimary=null;ql.length=0}var Rr=Je.ReactCurrentDispatcher,Xl=Je.ReactCurrentBatchConfig,Pt=0,U=null,G=null,b=null,tl=!1,On=!1,Zn=0,Ff=0;function le(){throw Error(x(321))}function Oi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function $i(e,t,n,r,l,s){if(Pt=s,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rr.current=e===null||e.memoizedState===null?Wf:Uf,e=n(r,l),On){s=0;do{if(On=!1,Zn=0,25<=s)throw Error(x(301));s+=1,b=G=null,t.updateQueue=null,Rr.current=Vf,e=n(r,l)}while(On)}if(Rr.current=nl,t=G!==null&&G.next!==null,Pt=0,b=G=U=null,tl=!1,t)throw Error(x(300));return e}function Ii(){var e=Zn!==0;return Zn=0,e}function He(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?U.memoizedState=b=e:b=b.next=e,b}function ze(){if(G===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=G.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,G=e;else{if(e===null)throw Error(x(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function Jn(e,t){return typeof t=="function"?t(e):t}function Gl(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=G,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=o=null,u=null,d=s;do{var m=d.lane;if((Pt&m)===m)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var v={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=v,o=r):u=u.next=v,U.lanes|=m,Lt|=m}d=d.next}while(d!==null&&d!==s);u===null?o=r:u.next=a,Fe(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,U.lanes|=s,Lt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zl(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);Fe(s,t.memoizedState)||(pe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Du(){}function Hu(e,t){var n=U,r=ze(),l=t(),s=!Fe(r.memoizedState,l);if(s&&(r.memoizedState=l,pe=!0),r=r.queue,Fi(Uu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,bn(9,Wu.bind(null,n,r,l,t),void 0,null),ee===null)throw Error(x(349));Pt&30||Au(n,t,l)}return l}function Au(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wu(e,t,n,r){t.value=n,t.getSnapshot=r,Vu(t)&&Bu(e)}function Uu(e,t,n){return n(function(){Vu(t)&&Bu(e)})}function Vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function Bu(e){var t=Ge(e,1);t!==null&&Ie(t,e,1,-1)}function Ao(e){var t=He();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=Af.bind(null,U,e),[t.memoizedState,e]}function bn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Qu(){return ze().memoizedState}function Mr(e,t,n,r){var l=He();U.flags|=e,l.memoizedState=bn(1|t,n,void 0,r===void 0?null:r)}function gl(e,t,n,r){var l=ze();r=r===void 0?null:r;var s=void 0;if(G!==null){var o=G.memoizedState;if(s=o.destroy,r!==null&&Oi(r,o.deps)){l.memoizedState=bn(t,n,s,r);return}}U.flags|=e,l.memoizedState=bn(1|t,n,s,r)}function Wo(e,t){return Mr(8390656,8,e,t)}function Fi(e,t){return gl(2048,8,e,t)}function Ku(e,t){return gl(4,2,e,t)}function Yu(e,t){return gl(4,4,e,t)}function qu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xu(e,t,n){return n=n!=null?n.concat([e]):null,gl(4,4,qu.bind(null,t,e),n)}function Di(){}function Gu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ju(e,t,n){return Pt&21?(Fe(n,t)||(n=ru(),U.lanes|=n,Lt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Df(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=Xl.transition;Xl.transition={};try{e(!1),t()}finally{$=n,Xl.transition=r}}function bu(){return ze().memoizedState}function Hf(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ec(e))tc(t,n);else if(n=$u(e,t,n,r),n!==null){var l=ue();Ie(n,e,r,l),nc(n,t,r)}}function Af(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ec(e))tc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,Fe(a,o)){var u=t.interleaved;u===null?(l.next=l,zi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=$u(e,t,l,r),n!==null&&(l=ue(),Ie(n,e,r,l),nc(n,t,r))}}function ec(e){var t=e.alternate;return e===U||t!==null&&t===U}function tc(e,t){On=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}var nl={readContext:_e,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Wf={readContext:_e,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,qu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Ao,useDebugValue:Di,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Df.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,l=He();if(A){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ee===null)throw Error(x(349));Pt&30||Au(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,Wo(Uu.bind(null,r,s,e),[e]),r.flags|=2048,bn(9,Wu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=He(),t=ee.identifierPrefix;if(A){var n=Ke,r=Qe;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ff++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Uf={readContext:_e,useCallback:Gu,useContext:_e,useEffect:Fi,useImperativeHandle:Xu,useInsertionEffect:Ku,useLayoutEffect:Yu,useMemo:Zu,useReducer:Gl,useRef:Qu,useState:function(){return Gl(Jn)},useDebugValue:Di,useDeferredValue:function(e){var t=ze();return Ju(t,G.memoizedState,e)},useTransition:function(){var e=Gl(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Hu,useId:bu,unstable_isNewReconciler:!1},Vf={readContext:_e,useCallback:Gu,useContext:_e,useEffect:Fi,useImperativeHandle:Xu,useInsertionEffect:Ku,useLayoutEffect:Yu,useMemo:Zu,useReducer:Zl,useRef:Qu,useState:function(){return Zl(Jn)},useDebugValue:Di,useDeferredValue:function(e){var t=ze();return G===null?t.memoizedState=e:Ju(t,G.memoizedState,e)},useTransition:function(){var e=Zl(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Hu,useId:bu,unstable_isNewReconciler:!1};function Re(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yl={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&(Ie(t,e,l,r),Lr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&(Ie(t,e,l,r),Lr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=ft(e),l=Ye(n,r);l.tag=2,t!=null&&(l.callback=t),t=ct(e,l,r),t!==null&&(Ie(t,e,r,n),Lr(t,e,r))}};function Uo(e,t,n,r,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Qn(n,r)||!Qn(l,s):!0}function rc(e,t,n){var r=!1,l=mt,s=t.contextType;return typeof s=="object"&&s!==null?s=_e(s):(l=me(t)?_t:oe.current,r=t.contextTypes,s=(r=r!=null)?sn(e,l):mt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function Vo(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yl.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Pi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=_e(s):(s=me(t)?_t:oe.current,l.context=sn(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Hs(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&yl.enqueueReplaceState(l,l.state,null),br(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function cn(e,t){try{var n="",r=t;do n+=vd(r),r=r.return;while(r);var l=n}catch(s){l=`
|
|
39
39
|
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:l,digest:null}}function Jl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ws(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bf=typeof WeakMap=="function"?WeakMap:Map;function lc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,Zs=r),Ws(e,t)},n}function sc(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ws(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ws(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Bo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=lp.bind(null,e,t,n),t.then(e,e))}function Qo(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ko(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ye(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var Qf=Je.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?Ou(t,null,n,r):on(t,e.child,n,r)}function Yo(e,t,n,r,l){n=n.render;var s=t.ref;return tn(t,l),r=Di(e,t,n,r,s,l),n=$i(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(A&&n&&Si(t),t.flags|=1,ae(e,t,r,l),t.child)}function Xo(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!Ki(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ic(e,t,s,r,l)):(e=Ir(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Qn,n(o,r)&&e.ref===t.ref)return Ze(e,t,l)}return t.flags|=1,e=pt(s,r),e.ref=t.ref,e.return=t,t.child=e}function ic(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(Qn(s,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,l)}return Us(e,t,n,r,l)}function oc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(Gt,ye),ye|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$(Gt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,$(Gt,ye),ye|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,$(Gt,ye),ye|=r;return ae(e,t,l,n),t.child}function ac(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Us(e,t,n,r,l){var s=me(n)?_t:oe.current;return s=ln(t,s),tn(t,l),n=Di(e,t,n,r,s,l),r=$i(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(A&&r&&Si(t),t.flags|=1,ae(e,t,n,l),t.child)}function qo(e,t,n,r,l){if(me(n)){var s=!0;Xr(t)}else s=!1;if(tn(t,l),t.stateNode===null)Or(e,t),rc(t,n,r),As(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_e(d):(d=me(n)?_t:oe.current,d=ln(t,d));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&Vo(t,o,r,d),tt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,l),u=t.memoizedState,a!==r||h!==u||he.current||tt?(typeof m=="function"&&(Hs(t,n,m,r),u=t.memoizedState),(a=tt||Uo(t,n,a,r,h,u,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$u(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Le(t.type,a),o.props=d,v=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=_e(u):(u=me(n)?_t:oe.current,u=ln(t,u));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||h!==u)&&Vo(t,o,r,u),tt=!1,h=t.memoizedState,o.state=h,br(t,r,o,l);var w=t.memoizedState;a!==v||h!==w||he.current||tt?(typeof y=="function"&&(Hs(t,n,y,r),w=t.memoizedState),(d=tt||Uo(t,n,d,r,h,w,u)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vs(e,t,n,r,s,l)}function Vs(e,t,n,r,l,s){ac(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Oo(t,n,!1),Ze(e,t,s);r=t.stateNode,Qf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=on(t,e.child,null,s),t.child=on(t,null,a,s)):ae(e,t,a,s),t.memoizedState=r.state,l&&Oo(t,n,!0),t.child}function uc(e){var t=e.stateNode;t.pendingContext?Mo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(e,t.context,!1),Ri(e,t.containerInfo)}function Go(e,t,n,r,l){return sn(),Ci(l),t.flags|=256,ae(e,t,n,r),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var r=t.pendingProps,l=W.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),$(W,l&1),e===null)return Is(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=kl(o,r,0,null),e=Tt(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Qs(n),t.memoizedState=Bs,e):Hi(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Kf(e,t,o,r,a,l,n);if(s){s=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=pt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=pt(a,s):(s=Tt(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Qs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Bs,r}return s=e.child,e=s.sibling,r=pt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hi(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ci(r),on(t,e.child,null,n),e=Hi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kf(e,t,n,r,l,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Jl(Error(x(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=kl({mode:"visible",children:r.children},l,0,null),s=Tt(s,l,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&on(t,e.child,null,o),t.child.memoizedState=Qs(o),t.memoizedState=Bs,s);if(!(t.mode&1))return jr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(x(419)),r=Jl(s,r,void 0),jr(e,t,o,r)}if(a=(o&e.childLanes)!==0,pe||a){if(r=ee,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,Ge(e,l),$e(r,e,l,-1))}return Qi(),r=Jl(Error(x(421))),jr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=sp.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,xe=ut(l.nextSibling),we=t,A=!0,Oe=null,e!==null&&(Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,Qe=e.id,Ke=e.overflow,zt=t),t=Hi(t,r.children),t.flags|=4096,t)}function Zo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Fs(e.return,t,n)}function bl(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function dc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(ae(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zo(e,n,t);else if(e.tag===19)Zo(e,n,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}r&=1}if($(W,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&el(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),bl(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&el(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}bl(t,!0,n,null,s);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yf(e,t,n){switch(t.tag){case 3:uc(t),sn();break;case 5:Iu(t);break;case 1:me(t.type)&&Xr(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;$(Zr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?cc(e,t,n):($(W,W.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);$(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),$(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,oc(e,t,n)}return Ze(e,t,n)}var fc,Ks,pc,hc;fc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ks=function(){};pc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ct(Ue.current);var s=null;switch(n){case"input":l=hs(e,l),r=hs(e,r),s=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":l=gs(e,l),r=gs(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}xs(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Fn.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(a=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&I("scroll",e),s||a===u||(s=[])):(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!A)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xf(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return me(t.type)&&Yr(),se(t),null;case 3:return r=t.stateNode,an(),H(he),H(oe),Mi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(ei(Oe),Oe=null))),Ks(e,t),se(t),null;case 5:Li(t);var l=Ct(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return se(t),null}if(e=Ct(Ue.current),wr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ae]=t,r[Xn]=s,e=(t.mode&1)!==0,n){case"dialog":I("cancel",r),I("close",r);break;case"iframe":case"object":case"embed":I("load",r);break;case"video":case"audio":for(l=0;l<_n.length;l++)I(_n[l],r);break;case"source":I("error",r);break;case"img":case"image":case"link":I("error",r),I("load",r);break;case"details":I("toggle",r);break;case"input":so(r,s),I("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},I("invalid",r);break;case"textarea":oo(r,s),I("invalid",r)}xs(n,s),l=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",""+a]):Fn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&I("scroll",r)}switch(n){case"input":dr(r),io(r,s,!0);break;case"textarea":dr(r),ao(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ua(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ae]=t,e[Xn]=r,fc(e,t,!1,!1),t.stateNode=e;e:{switch(o=ws(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;l<_n.length;l++)I(_n[l],e);l=r;break;case"source":I("error",e),l=r;break;case"img":case"image":case"link":I("error",e),I("load",e),l=r;break;case"details":I("toggle",e),l=r;break;case"input":so(e,r),l=hs(e,r),I("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),I("invalid",e);break;case"textarea":oo(e,r),l=gs(e,r),I("invalid",e);break;default:l=r}xs(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?Qa(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Va(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hn(e,u):typeof u=="number"&&Hn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fn.hasOwnProperty(s)?u!=null&&s==="onScroll"&&I("scroll",e):u!=null&&ui(e,s,u,o))}switch(n){case"input":dr(e),io(e,r,!1);break;case"textarea":dr(e),ao(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Zt(e,!!r.multiple,s,!1):r.defaultValue!=null&&Zt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return se(t),null;case 6:if(e&&t.stateNode!=null)hc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Ct(Gn.current),Ct(Ue.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(s=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return se(t),null;case 13:if(H(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&xe!==null&&t.mode&1&&!(t.flags&128))Lu(),sn(),t.flags|=98560,s=!1;else if(s=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(x(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(x(317));s[Ae]=t}else sn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),s=!1}else Oe!==null&&(ei(Oe),Oe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?Z===0&&(Z=3):Qi())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return an(),Ks(e,t),e===null&&Kn(t.stateNode.containerInfo),se(t),null;case 10:return _i(t.type._context),se(t),null;case 17:return me(t.type)&&Yr(),se(t),null;case 19:if(H(W),s=t.memoizedState,s===null)return se(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Sn(s,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=el(e),o!==null){for(t.flags|=128,Sn(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&Y()>cn&&(t.flags|=128,r=!0,Sn(s,!1),t.lanes=4194304)}else{if(!r)if(e=el(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!A)return se(t),null}else 2*Y()-s.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=W.current,$(W,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function qf(e,t){switch(Ni(t),t.tag){case 1:return me(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),H(he),H(oe),Mi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Li(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return an(),null;case 10:return _i(t.type._context),null;case 22:case 23:return Bi(),null;case 24:return null;default:return null}}var Sr=!1,ie=!1,Gf=typeof WeakSet=="function"?WeakSet:Set,S=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function Ys(e,t,n){try{n()}catch(r){B(e,t,r)}}var Jo=!1;function Zf(e,t){if(Ps=Vr,e=xu(),ji(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,m=0,v=e,h=null;t:for(;;){for(var y;v!==n||l!==0&&v.nodeType!==3||(a=o+l),v!==s||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(y=v.firstChild)!==null;)h=v,v=y;for(;;){if(v===e)break t;if(h===n&&++d===l&&(a=o),h===s&&++m===r&&(u=o),(y=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rs={focusedElem:e,selectionRange:n},Vr=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Le(t.type,k),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){B(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return w=Jo,Jo=!1,w}function Dn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&Ys(t,n,s)}l=l.next}while(l!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Xn],delete t[Os],delete t[Mf],delete t[Of])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vc(e){return e.tag===5||e.tag===3||e.tag===4}function bo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vc(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.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 qs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gs(e,t,n),e=e.sibling;e!==null;)Gs(e,t,n),e=e.sibling}var te=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:ie||qt(n,t);case 6:var r=te,l=Me;te=null,be(e,t,n),te=r,Me=l,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?Kl(e.parentNode,n):e.nodeType===1&&Kl(e,n),Vn(e)):Kl(te,n.stateNode));break;case 4:r=te,l=Me,te=n.stateNode.containerInfo,Me=!0,be(e,t,n),te=r,Me=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ys(n,t,o),l=l.next}while(l!==r)}be(e,t,n);break;case 1:if(!ie&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){B(n,t,a)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,be(e,t,n),ie=r):be(e,t,n);break;default:be(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gf),t.forEach(function(r){var l=ip.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:te=a.stateNode,Me=!1;break e;case 3:te=a.stateNode.containerInfo,Me=!0;break e;case 4:te=a.stateNode.containerInfo,Me=!0;break e}a=a.return}if(te===null)throw Error(x(160));gc(s,o,l),te=null,Me=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){B(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),Fe(e),r&4){try{Dn(3,e,e.return),xl(3,e)}catch(k){B(e,e.return,k)}try{Dn(5,e,e.return)}catch(k){B(e,e.return,k)}}break;case 1:Re(t,e),Fe(e),r&512&&n!==null&&qt(n,n.return);break;case 5:if(Re(t,e),Fe(e),r&512&&n!==null&&qt(n,n.return),e.flags&32){var l=e.stateNode;try{Hn(l,"")}catch(k){B(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Aa(l,s),ws(a,o);var d=ws(a,s);for(o=0;o<u.length;o+=2){var m=u[o],v=u[o+1];m==="style"?Qa(l,v):m==="dangerouslySetInnerHTML"?Va(l,v):m==="children"?Hn(l,v):ui(l,m,v,d)}switch(a){case"input":ms(l,s);break;case"textarea":Wa(l,s);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Zt(l,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zt(l,!!s.multiple,s.defaultValue,!0):Zt(l,!!s.multiple,s.multiple?[]:"",!1))}l[Xn]=s}catch(k){B(e,e.return,k)}}break;case 6:if(Re(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(x(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(k){B(e,e.return,k)}}break;case 3:if(Re(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vn(t.containerInfo)}catch(k){B(e,e.return,k)}break;case 4:Re(t,e),Fe(e);break;case 13:Re(t,e),Fe(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(Ui=Y())),r&4&&ea(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ie=(d=ie)||m,Re(t,e),ie=d):Re(t,e),Fe(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(S=e,m=e.child;m!==null;){for(v=S=m;S!==null;){switch(h=S,y=h.child,h.tag){case 0:case 11:case 14:case 15:Dn(4,h,h.return);break;case 1:qt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){B(r,n,k)}}break;case 5:qt(h,h.return);break;case 22:if(h.memoizedState!==null){na(v);continue}}y!==null?(y.return=h,S=y):na(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{l=v.stateNode,d?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ba("display",o))}catch(k){B(e,e.return,k)}}}else if(v.tag===6){if(m===null)try{v.stateNode.nodeValue=d?"":v.memoizedProps}catch(k){B(e,e.return,k)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;m===v&&(m=null),v=v.return}m===v&&(m=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Re(t,e),Fe(e),r&4&&ea(e);break;case 21:break;default:Re(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Hn(l,""),r.flags&=-33);var s=bo(e);Gs(e,s,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bo(e);qs(e,a,o);break;default:throw Error(x(161))}}catch(u){B(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jf(e,t,n){S=e,xc(e)}function xc(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var l=S,s=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Sr;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Sr;var d=ie;if(Sr=o,(ie=u)&&!d)for(S=l;S!==null;)o=S,u=o.child,o.tag===22&&o.memoizedState!==null?ra(l):u!==null?(u.return=o,S=u):ra(l);for(;s!==null;)S=s,xc(s),s=s.sibling;S=l,Sr=a,ie=d}ta(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,S=s):ta(e)}}function ta(e){for(;S!==null;){var t=S;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ie||xl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ho(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ho(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var v=m.dehydrated;v!==null&&Vn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ie||t.flags&512&&Xs(t)}catch(h){B(t,t.return,h)}}if(t===e){S=null;break}if(n=t.sibling,n!==null){n.return=t.return,S=n;break}S=t.return}}function na(e){for(;S!==null;){var t=S;if(t===e){S=null;break}var n=t.sibling;if(n!==null){n.return=t.return,S=n;break}S=t.return}}function ra(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xl(4,t)}catch(u){B(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){B(t,l,u)}}var s=t.return;try{Xs(t)}catch(u){B(t,s,u)}break;case 5:var o=t.return;try{Xs(t)}catch(u){B(t,o,u)}}}catch(u){B(t,t.return,u)}if(t===e){S=null;break}var a=t.sibling;if(a!==null){a.return=t.return,S=a;break}S=t.return}}var bf=Math.ceil,rl=Je.ReactCurrentDispatcher,Ai=Je.ReactCurrentOwner,Te=Je.ReactCurrentBatchConfig,M=0,ee=null,q=null,ne=0,ye=0,Gt=gt(0),Z=0,er=null,Rt=0,wl=0,Wi=0,$n=null,fe=null,Ui=0,cn=1/0,Ve=null,ll=!1,Zs=null,dt=null,Nr=!1,st=null,sl=0,In=0,Js=null,Dr=-1,$r=0;function ue(){return M&6?Y():Dr!==-1?Dr:Dr=Y()}function ft(e){return e.mode&1?M&2&&ne!==0?ne&-ne:$f.transition!==null?($r===0&&($r=ru()),$r):(e=D,e!==0||(e=window.event,e=e===void 0?16:cu(e.type)),e):1}function $e(e,t,n,r){if(50<In)throw In=0,Js=null,Error(x(185));rr(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(wl|=n),Z===4&&rt(e,ne)),ve(e,r),n===1&&M===0&&!(t.mode&1)&&(cn=Y()+500,vl&&yt()))}function ve(e,t){var n=e.callbackNode;Dd(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&fo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fo(n),t===1)e.tag===0?Df(la.bind(null,e)):zu(la.bind(null,e)),Rf(function(){!(M&6)&&yt()}),n=null;else{switch(lu(r)){case 1:n=hi;break;case 4:n=tu;break;case 16:n=Wr;break;case 536870912:n=nu;break;default:n=Wr}n=Tc(n,wc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wc(e,t){if(Dr=-1,$r=0,M&6)throw Error(x(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Ur(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=il(e,r);else{t=r;var l=M;M|=2;var s=jc();(ee!==e||ne!==t)&&(Ve=null,cn=Y()+500,Et(e,t));do try{np();break}catch(a){kc(e,a)}while(!0);Ti(),rl.current=s,M=l,q!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(l=Cs(e),l!==0&&(r=l,t=bs(e,l))),t===1)throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;if(t===6)rt(e,r);else{if(l=e.current.alternate,!(r&30)&&!ep(l)&&(t=il(e,r),t===2&&(s=Cs(e),s!==0&&(r=s,t=bs(e,s))),t===1))throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:jt(e,fe,Ve);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Ui+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ms(jt.bind(null,e,fe,Ve),t);break}jt(e,fe,Ve);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-De(r);s=1<<o,o=t[o],o>l&&(l=o),r&=~s}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bf(r/1960))-r,10<r){e.timeoutHandle=Ms(jt.bind(null,e,fe,Ve),r);break}jt(e,fe,Ve);break;case 5:jt(e,fe,Ve);break;default:throw Error(x(329))}}}return ve(e,Y()),e.callbackNode===n?wc.bind(null,e):null}function bs(e,t){var n=$n;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=il(e,t),e!==2&&(t=fe,fe=n,t!==null&&ei(t)),e}function ei(e){fe===null?fe=e:fe.push.apply(fe,e)}function ep(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],s=l.getSnapshot;l=l.value;try{if(!Ie(s(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 rt(e,t){for(t&=~Wi,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-De(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if(M&6)throw Error(x(327));nn();var t=Ur(e,0);if(!(t&1))return ve(e,Y()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=Cs(e);r!==0&&(t=r,n=bs(e,r))}if(n===1)throw n=er,Et(e,0),rt(e,t),ve(e,Y()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,fe,Ve),ve(e,Y()),null}function Vi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(cn=Y()+500,vl&&yt())}}function Lt(e){st!==null&&st.tag===0&&!(M&6)&&nn();var t=M;M|=1;var n=Te.transition,r=D;try{if(Te.transition=null,D=1,e)return e()}finally{D=r,Te.transition=n,M=t,!(M&6)&&yt()}}function Bi(){ye=Gt.current,H(Gt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Pf(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Ni(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:an(),H(he),H(oe),Mi();break;case 5:Li(r);break;case 4:an();break;case 13:H(W);break;case 19:H(W);break;case 10:_i(r.type._context);break;case 22:case 23:Bi()}n=n.return}if(ee=e,q=e=pt(e.current,null),ne=ye=t,Z=0,er=null,Wi=wl=Rt=0,fe=$n=null,Nt!==null){for(t=0;t<Nt.length;t++)if(n=Nt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=l,r.next=o}n.pending=r}Nt=null}return e}function kc(e,t){do{var n=q;try{if(Ti(),Lr.current=nl,tl){for(var r=U.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}tl=!1}if(Pt=0,b=G=U=null,On=!1,Zn=0,Ai.current=null,n===null||n.return===null){Z=1,er=t,q=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,m=a,v=m.tag;if(!(m.mode&1)&&(v===0||v===11||v===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Qo(o);if(y!==null){y.flags&=-257,Ko(y,o,a,s,t),y.mode&1&&Bo(s,d,t),t=y,u=d;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){Bo(s,d,t),Qi();break e}u=Error(x(426))}}else if(A&&a.mode&1){var O=Qo(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Ko(O,o,a,s,t),Ci(un(u,a));break e}}s=u=un(u,a),Z!==4&&(Z=2),$n===null?$n=[s]:$n.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=lc(s,u,t);Fo(s,f);break e;case 1:a=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(dt===null||!dt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=sc(s,a,t);Fo(s,g);break e}}s=s.return}while(s!==null)}Nc(n)}catch(j){t=j,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function jc(){var e=rl.current;return rl.current=nl,e===null?nl:e}function Qi(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Rt&268435455)&&!(wl&268435455)||rt(ee,ne)}function il(e,t){var n=M;M|=2;var r=jc();(ee!==e||ne!==t)&&(Ve=null,Et(e,t));do try{tp();break}catch(l){kc(e,l)}while(!0);if(Ti(),M=n,rl.current=r,q!==null)throw Error(x(261));return ee=null,ne=0,Z}function tp(){for(;q!==null;)Sc(q)}function np(){for(;q!==null&&!Ed();)Sc(q)}function Sc(e){var t=Ec(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Nc(e):q=t,Ai.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qf(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,q=null;return}}else if(n=Xf(n,t,ye),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Z===0&&(Z=5)}function jt(e,t,n){var r=D,l=Te.transition;try{Te.transition=null,D=1,rp(e,t,n,r)}finally{Te.transition=l,D=r}return null}function rp(e,t,n,r){do nn();while(st!==null);if(M&6)throw Error(x(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if($d(e,s),e===ee&&(q=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nr||(Nr=!0,Tc(Wr,function(){return nn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Te.transition,Te.transition=null;var o=D;D=1;var a=M;M|=4,Ai.current=null,Zf(e,n),yc(n,e),Sf(Rs),Vr=!!Ps,Rs=Ps=null,e.current=n,Jf(n),Td(),M=a,D=o,Te.transition=s}else e.current=n;if(Nr&&(Nr=!1,st=e,sl=l),s=e.pendingLanes,s===0&&(dt=null),Pd(n.stateNode),ve(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(ll)throw ll=!1,e=Zs,Zs=null,e;return sl&1&&e.tag!==0&&nn(),s=e.pendingLanes,s&1?e===Js?In++:(In=0,Js=e):In=0,yt(),null}function nn(){if(st!==null){var e=lu(sl),t=Te.transition,n=D;try{if(Te.transition=null,D=16>e?16:e,st===null)var r=!1;else{if(e=st,st=null,sl=0,M&6)throw Error(x(331));var l=M;for(M|=4,S=e.current;S!==null;){var s=S,o=s.child;if(S.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(S=d;S!==null;){var m=S;switch(m.tag){case 0:case 11:case 15:Dn(8,m,s)}var v=m.child;if(v!==null)v.return=m,S=v;else for(;S!==null;){m=S;var h=m.sibling,y=m.return;if(mc(m),m===d){S=null;break}if(h!==null){h.return=y,S=h;break}S=y}}}var w=s.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}S=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,S=o;else e:for(;S!==null;){if(s=S,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dn(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,S=f;break e}S=s.return}}var c=e.current;for(S=c;S!==null;){o=S;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,S=p;else e:for(o=c;S!==null;){if(a=S,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xl(9,a)}}catch(j){B(a,a.return,j)}if(a===o){S=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,S=g;break e}S=a.return}}if(M=l,yt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(dl,e)}catch{}r=!0}return r}finally{D=n,Te.transition=t}}return!1}function sa(e,t,n){t=un(n,t),t=lc(e,t,1),e=ct(e,t,1),t=ue(),e!==null&&(rr(e,1,t),ve(e,t))}function B(e,t,n){if(e.tag===3)sa(e,e,n);else for(;t!==null;){if(t.tag===3){sa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(dt===null||!dt.has(r))){e=un(n,e),e=sc(t,e,1),t=ct(t,e,1),e=ue(),t!==null&&(rr(t,1,e),ve(t,e));break}}t=t.return}}function lp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ue(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(Z===4||Z===3&&(ne&130023424)===ne&&500>Y()-Ui?Et(e,0):Wi|=n),ve(e,t)}function Cc(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=Ge(e,t),e!==null&&(rr(e,t,n),ve(e,n))}function sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cc(e,n)}function ip(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Cc(e,n)}var Ec;Ec=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Yf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&Pu(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var l=ln(t,oe.current);tn(t,n),l=Di(null,t,r,e,l,n);var s=$i();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(s=!0,Xr(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pi(t),l.updater=yl,t.stateNode=l,l._reactInternals=t,As(t,r,e,n),t=Vs(null,t,r,!0,s,n)):(t.tag=0,A&&s&&Si(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ap(r),e=Le(r,e),l){case 0:t=Us(null,t,r,e,n);break e;case 1:t=qo(null,t,r,e,n);break e;case 11:t=Yo(null,t,r,e,n);break e;case 14:t=Xo(null,t,r,Le(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Us(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),qo(e,t,r,l,n);case 3:e:{if(uc(t),e===null)throw Error(x(387));r=t.pendingProps,s=t.memoizedState,l=s.element,$u(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=un(Error(x(423)),t),t=Go(e,t,r,n,l);break e}else if(r!==l){l=un(Error(x(424)),t),t=Go(e,t,r,n,l);break e}else for(xe=ut(t.stateNode.containerInfo.firstChild),we=t,A=!0,Oe=null,n=Ou(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Iu(t),e===null&&Is(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Ls(r,l)?o=null:s!==null&&Ls(r,s)&&(t.flags|=32),ac(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Is(t),null;case 13:return cc(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=on(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Yo(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,o=l.value,$(Zr,r._currentValue),r._currentValue=o,s!==null)if(Ie(s.value,o)){if(s.children===l.children&&!he.current){t=Ze(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?u.next=u:(u.next=m.next,m.next=u),d.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Fs(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(x(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Fs(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tn(t,n),l=_e(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),Xo(e,t,r,l,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Or(e,t),t.tag=1,me(r)?(e=!0,Xr(t)):e=!1,tn(t,n),rc(t,r,l),As(t,r,l,n),Vs(null,t,r,!0,e,n);case 19:return dc(e,t,n);case 22:return oc(e,t,n)}throw Error(x(156,t.tag))};function Tc(e,t){return eu(e,t)}function op(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new op(e,t,n,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ap(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===di)return 11;if(e===fi)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ir(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")Ki(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case At:return Tt(n.children,l,s,t);case ci:o=8,l|=8;break;case cs:return e=Ee(12,n,t,l|2),e.elementType=cs,e.lanes=s,e;case ds:return e=Ee(13,n,t,l),e.elementType=ds,e.lanes=s,e;case fs:return e=Ee(19,n,t,l),e.elementType=fs,e.lanes=s,e;case Ia:return kl(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Da:o=10;break e;case $a:o=9;break e;case di:o=11;break e;case fi:o=14;break e;case et:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Tt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Ia,e.lanes=n,e.stateNode={isHidden:!1},e}function es(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function ts(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function up(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dl(0),this.expirationTimes=Dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Yi(e,t,n,r,l,s,o,a,u){return e=new up(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ee(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(s),e}function cp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ht,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _c(e){if(!e)return mt;e=e._reactInternals;e:{if(Dt(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return _u(e,n,t)}return t}function zc(e,t,n,r,l,s,o,a,u){return e=Yi(n,r,!0,e,l,s,o,a,u),e.context=_c(null),n=e.current,r=ue(),l=ft(n),s=Ye(r,l),s.callback=t??null,ct(n,s,l),e.current.lanes=l,rr(e,l,r),ve(e,r),e}function jl(e,t,n,r){var l=t.current,s=ue(),o=ft(l);return n=_c(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(l,t,o),e!==null&&($e(e,l,o,s),Rr(e,l,o)),o}function ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xi(e,t){ia(e,t),(e=e.alternate)&&ia(e,t)}function dp(){return null}var Pc=typeof reportError=="function"?reportError:function(e){console.error(e)};function qi(e){this._internalRoot=e}Sl.prototype.render=qi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));jl(e,t,null,null)};Sl.prototype.unmount=qi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lt(function(){jl(null,e,null,null)}),t[qe]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ou();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nt.length&&t!==0&&t<nt[n].priority;n++);nt.splice(n,0,e),n===0&&uu(e)}};function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oa(){}function fp(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var d=ol(o);s.call(d)}}var o=zc(t,r,e,0,null,!1,!1,"",oa);return e._reactRootContainer=o,e[qe]=o.current,Kn(e.nodeType===8?e.parentNode:e),Lt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=ol(u);a.call(d)}}var u=Yi(e,0,!1,null,null,!1,!1,"",oa);return e._reactRootContainer=u,e[qe]=u.current,Kn(e.nodeType===8?e.parentNode:e),Lt(function(){jl(t,u,n,r)}),u}function Cl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var o=s;if(typeof l=="function"){var a=l;l=function(){var u=ol(o);a.call(u)}}jl(t,o,e,l)}else o=fp(n,t,e,l,r);return ol(o)}su=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tn(t.pendingLanes);n!==0&&(mi(t,n|1),ve(t,Y()),!(M&6)&&(cn=Y()+500,yt()))}break;case 13:Lt(function(){var r=Ge(e,1);if(r!==null){var l=ue();$e(r,e,1,l)}}),Xi(e,1)}};vi=function(e){if(e.tag===13){var t=Ge(e,134217728);if(t!==null){var n=ue();$e(t,e,134217728,n)}Xi(e,134217728)}};iu=function(e){if(e.tag===13){var t=ft(e),n=Ge(e,t);if(n!==null){var r=ue();$e(n,e,t,r)}Xi(e,t)}};ou=function(){return D};au=function(e,t){var n=D;try{return D=e,t()}finally{D=n}};js=function(e,t,n){switch(t){case"input":if(ms(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=ml(r);if(!l)throw Error(x(90));Ha(r),ms(r,l)}}}break;case"textarea":Wa(e,n);break;case"select":t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}};Xa=Vi;qa=Lt;var pp={usingClientEntryPoint:!1,Events:[sr,Bt,ml,Ka,Ya,Vi]},Nn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Je.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ja(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||dp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{dl=Cr.inject(hp),We=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gi(t))throw Error(x(200));return cp(e,t,null,n)};je.createRoot=function(e,t){if(!Gi(e))throw Error(x(299));var n=!1,r="",l=Pc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Yi(e,1,!1,null,null,n,!1,r,l),e[qe]=t.current,Kn(e.nodeType===8?e.parentNode:e),new qi(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=Ja(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Lt(e)};je.hydrate=function(e,t,n){if(!Nl(t))throw Error(x(200));return Cl(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Gi(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",o=Pc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zc(t,null,e,1,n??null,l,!1,s,o),e[qe]=t.current,Kn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Sl(t)};je.render=function(e,t,n){if(!Nl(t))throw Error(x(200));return Cl(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(x(40));return e._reactRootContainer?(Lt(function(){Cl(null,null,e,!1,function(){e._reactRootContainer=null,e[qe]=null})}),!0):!1};je.unstable_batchedUpdates=Vi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Nl(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cl(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Rc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rc)}catch(e){console.error(e)}}Rc(),Ra.exports=je;var mp=Ra.exports,aa=mp;as.createRoot=aa.createRoot,as.hydrateRoot=aa.hydrateRoot;/**
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:l,digest:null}}function Jl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ws(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bf=typeof WeakMap=="function"?WeakMap:Map;function lc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,Zs=r),Ws(e,t)},n}function sc(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ws(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ws(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Bo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=lp.bind(null,e,t,n),t.then(e,e))}function Qo(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ko(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ye(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var Qf=Je.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?Ou(t,null,n,r):an(t,e.child,n,r)}function Yo(e,t,n,r,l){n=n.render;var s=t.ref;return nn(t,l),r=$i(e,t,n,r,s,l),n=Ii(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(A&&n&&Si(t),t.flags|=1,ae(e,t,r,l),t.child)}function qo(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!Ki(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ic(e,t,s,r,l)):(e=Fr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Qn,n(o,r)&&e.ref===t.ref)return Ze(e,t,l)}return t.flags|=1,e=pt(s,r),e.ref=t.ref,e.return=t,t.child=e}function ic(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(Qn(s,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,l)}return Us(e,t,n,r,l)}function oc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Zt,ye),ye|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Zt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,I(Zt,ye),ye|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,I(Zt,ye),ye|=r;return ae(e,t,l,n),t.child}function ac(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Us(e,t,n,r,l){var s=me(n)?_t:oe.current;return s=sn(t,s),nn(t,l),n=$i(e,t,n,r,s,l),r=Ii(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(A&&r&&Si(t),t.flags|=1,ae(e,t,n,l),t.child)}function Xo(e,t,n,r,l){if(me(n)){var s=!0;qr(t)}else s=!1;if(nn(t,l),t.stateNode===null)Or(e,t),rc(t,n,r),As(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_e(d):(d=me(n)?_t:oe.current,d=sn(t,d));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&Vo(t,o,r,d),tt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,l),u=t.memoizedState,a!==r||h!==u||he.current||tt?(typeof m=="function"&&(Hs(t,n,m,r),u=t.memoizedState),(a=tt||Uo(t,n,a,r,h,u,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Iu(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Re(t.type,a),o.props=d,v=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=_e(u):(u=me(n)?_t:oe.current,u=sn(t,u));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||h!==u)&&Vo(t,o,r,u),tt=!1,h=t.memoizedState,o.state=h,br(t,r,o,l);var w=t.memoizedState;a!==v||h!==w||he.current||tt?(typeof y=="function"&&(Hs(t,n,y,r),w=t.memoizedState),(d=tt||Uo(t,n,d,r,h,w,u)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vs(e,t,n,r,s,l)}function Vs(e,t,n,r,l,s){ac(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Oo(t,n,!1),Ze(e,t,s);r=t.stateNode,Qf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=an(t,e.child,null,s),t.child=an(t,null,a,s)):ae(e,t,a,s),t.memoizedState=r.state,l&&Oo(t,n,!0),t.child}function uc(e){var t=e.stateNode;t.pendingContext?Mo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(e,t.context,!1),Li(e,t.containerInfo)}function Go(e,t,n,r,l){return on(),Ci(l),t.flags|=256,ae(e,t,n,r),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var r=t.pendingProps,l=W.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(W,l&1),e===null)return Fs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=kl(o,r,0,null),e=Tt(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Qs(n),t.memoizedState=Bs,e):Hi(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Kf(e,t,o,r,a,l,n);if(s){s=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=pt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=pt(a,s):(s=Tt(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Qs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Bs,r}return s=e.child,e=s.sibling,r=pt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hi(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ci(r),an(t,e.child,null,n),e=Hi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kf(e,t,n,r,l,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Jl(Error(x(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=kl({mode:"visible",children:r.children},l,0,null),s=Tt(s,l,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&an(t,e.child,null,o),t.child.memoizedState=Qs(o),t.memoizedState=Bs,s);if(!(t.mode&1))return jr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(x(419)),r=Jl(s,r,void 0),jr(e,t,o,r)}if(a=(o&e.childLanes)!==0,pe||a){if(r=ee,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,Ge(e,l),Ie(r,e,l,-1))}return Qi(),r=Jl(Error(x(421))),jr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=sp.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,xe=ut(l.nextSibling),we=t,A=!0,Oe=null,e!==null&&(Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,Qe=e.id,Ke=e.overflow,zt=t),t=Hi(t,r.children),t.flags|=4096,t)}function Zo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ds(e.return,t,n)}function bl(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function dc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(ae(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zo(e,n,t);else if(e.tag===19)Zo(e,n,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}r&=1}if(I(W,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&el(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),bl(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&el(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}bl(t,!0,n,null,s);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yf(e,t,n){switch(t.tag){case 3:uc(t),on();break;case 5:Fu(t);break;case 1:me(t.type)&&qr(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(Zr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?cc(e,t,n):(I(W,W.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);I(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,oc(e,t,n)}return Ze(e,t,n)}var fc,Ks,pc,hc;fc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ks=function(){};pc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ct(Ue.current);var s=null;switch(n){case"input":l=hs(e,l),r=hs(e,r),s=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":l=gs(e,l),r=gs(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}xs(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Dn.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(a=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Dn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&F("scroll",e),s||a===u||(s=[])):(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!A)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qf(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return me(t.type)&&Yr(),se(t),null;case 3:return r=t.stateNode,un(),H(he),H(oe),Mi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(ei(Oe),Oe=null))),Ks(e,t),se(t),null;case 5:Ri(t);var l=Ct(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return se(t),null}if(e=Ct(Ue.current),wr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ae]=t,r[qn]=s,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(l=0;l<_n.length;l++)F(_n[l],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":so(r,s),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},F("invalid",r);break;case"textarea":oo(r,s),F("invalid",r)}xs(n,s),l=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",""+a]):Dn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&F("scroll",r)}switch(n){case"input":dr(r),io(r,s,!0);break;case"textarea":dr(r),ao(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ua(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ae]=t,e[qn]=r,fc(e,t,!1,!1),t.stateNode=e;e:{switch(o=ws(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;l<_n.length;l++)F(_n[l],e);l=r;break;case"source":F("error",e),l=r;break;case"img":case"image":case"link":F("error",e),F("load",e),l=r;break;case"details":F("toggle",e),l=r;break;case"input":so(e,r),l=hs(e,r),F("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),F("invalid",e);break;case"textarea":oo(e,r),l=gs(e,r),F("invalid",e);break;default:l=r}xs(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?Qa(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Va(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hn(e,u):typeof u=="number"&&Hn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Dn.hasOwnProperty(s)?u!=null&&s==="onScroll"&&F("scroll",e):u!=null&&ui(e,s,u,o))}switch(n){case"input":dr(e),io(e,r,!1);break;case"textarea":dr(e),ao(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Jt(e,!!r.multiple,s,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return se(t),null;case 6:if(e&&t.stateNode!=null)hc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Ct(Gn.current),Ct(Ue.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(s=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return se(t),null;case 13:if(H(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&xe!==null&&t.mode&1&&!(t.flags&128))Ru(),on(),t.flags|=98560,s=!1;else if(s=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(x(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(x(317));s[Ae]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),s=!1}else Oe!==null&&(ei(Oe),Oe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?Z===0&&(Z=3):Qi())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return un(),Ks(e,t),e===null&&Kn(t.stateNode.containerInfo),se(t),null;case 10:return _i(t.type._context),se(t),null;case 17:return me(t.type)&&Yr(),se(t),null;case 19:if(H(W),s=t.memoizedState,s===null)return se(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Sn(s,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=el(e),o!==null){for(t.flags|=128,Sn(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&Y()>dn&&(t.flags|=128,r=!0,Sn(s,!1),t.lanes=4194304)}else{if(!r)if(e=el(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!A)return se(t),null}else 2*Y()-s.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Xf(e,t){switch(Ni(t),t.tag){case 1:return me(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),H(he),H(oe),Mi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ri(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return un(),null;case 10:return _i(t.type._context),null;case 22:case 23:return Bi(),null;case 24:return null;default:return null}}var Sr=!1,ie=!1,Gf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Gt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function Ys(e,t,n){try{n()}catch(r){B(e,t,r)}}var Jo=!1;function Zf(e,t){if(Ps=Vr,e=xu(),ji(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,m=0,v=e,h=null;t:for(;;){for(var y;v!==n||l!==0&&v.nodeType!==3||(a=o+l),v!==s||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(y=v.firstChild)!==null;)h=v,v=y;for(;;){if(v===e)break t;if(h===n&&++d===l&&(a=o),h===s&&++m===r&&(u=o),(y=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ls={focusedElem:e,selectionRange:n},Vr=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Re(t.type,k),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){B(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return w=Jo,Jo=!1,w}function $n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&Ys(t,n,s)}l=l.next}while(l!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[qn],delete t[Os],delete t[Mf],delete t[Of])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vc(e){return e.tag===5||e.tag===3||e.tag===4}function bo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vc(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.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 Xs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Xs(e,t,n),e=e.sibling;e!==null;)Xs(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gs(e,t,n),e=e.sibling;e!==null;)Gs(e,t,n),e=e.sibling}var te=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:ie||Gt(n,t);case 6:var r=te,l=Me;te=null,be(e,t,n),te=r,Me=l,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?Kl(e.parentNode,n):e.nodeType===1&&Kl(e,n),Vn(e)):Kl(te,n.stateNode));break;case 4:r=te,l=Me,te=n.stateNode.containerInfo,Me=!0,be(e,t,n),te=r,Me=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ys(n,t,o),l=l.next}while(l!==r)}be(e,t,n);break;case 1:if(!ie&&(Gt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){B(n,t,a)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,be(e,t,n),ie=r):be(e,t,n);break;default:be(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gf),t.forEach(function(r){var l=ip.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:te=a.stateNode,Me=!1;break e;case 3:te=a.stateNode.containerInfo,Me=!0;break e;case 4:te=a.stateNode.containerInfo,Me=!0;break e}a=a.return}if(te===null)throw Error(x(160));gc(s,o,l),te=null,Me=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){B(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Le(t,e),De(e),r&4){try{$n(3,e,e.return),xl(3,e)}catch(k){B(e,e.return,k)}try{$n(5,e,e.return)}catch(k){B(e,e.return,k)}}break;case 1:Le(t,e),De(e),r&512&&n!==null&&Gt(n,n.return);break;case 5:if(Le(t,e),De(e),r&512&&n!==null&&Gt(n,n.return),e.flags&32){var l=e.stateNode;try{Hn(l,"")}catch(k){B(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Aa(l,s),ws(a,o);var d=ws(a,s);for(o=0;o<u.length;o+=2){var m=u[o],v=u[o+1];m==="style"?Qa(l,v):m==="dangerouslySetInnerHTML"?Va(l,v):m==="children"?Hn(l,v):ui(l,m,v,d)}switch(a){case"input":ms(l,s);break;case"textarea":Wa(l,s);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Jt(l,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?Jt(l,!!s.multiple,s.defaultValue,!0):Jt(l,!!s.multiple,s.multiple?[]:"",!1))}l[qn]=s}catch(k){B(e,e.return,k)}}break;case 6:if(Le(t,e),De(e),r&4){if(e.stateNode===null)throw Error(x(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(k){B(e,e.return,k)}}break;case 3:if(Le(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vn(t.containerInfo)}catch(k){B(e,e.return,k)}break;case 4:Le(t,e),De(e);break;case 13:Le(t,e),De(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(Ui=Y())),r&4&&ea(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ie=(d=ie)||m,Le(t,e),ie=d):Le(t,e),De(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(S=e,m=e.child;m!==null;){for(v=S=m;S!==null;){switch(h=S,y=h.child,h.tag){case 0:case 11:case 14:case 15:$n(4,h,h.return);break;case 1:Gt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){B(r,n,k)}}break;case 5:Gt(h,h.return);break;case 22:if(h.memoizedState!==null){na(v);continue}}y!==null?(y.return=h,S=y):na(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{l=v.stateNode,d?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ba("display",o))}catch(k){B(e,e.return,k)}}}else if(v.tag===6){if(m===null)try{v.stateNode.nodeValue=d?"":v.memoizedProps}catch(k){B(e,e.return,k)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;m===v&&(m=null),v=v.return}m===v&&(m=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Le(t,e),De(e),r&4&&ea(e);break;case 21:break;default:Le(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Hn(l,""),r.flags&=-33);var s=bo(e);Gs(e,s,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bo(e);Xs(e,a,o);break;default:throw Error(x(161))}}catch(u){B(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jf(e,t,n){S=e,xc(e)}function xc(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var l=S,s=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Sr;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Sr;var d=ie;if(Sr=o,(ie=u)&&!d)for(S=l;S!==null;)o=S,u=o.child,o.tag===22&&o.memoizedState!==null?ra(l):u!==null?(u.return=o,S=u):ra(l);for(;s!==null;)S=s,xc(s),s=s.sibling;S=l,Sr=a,ie=d}ta(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,S=s):ta(e)}}function ta(e){for(;S!==null;){var t=S;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ie||xl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Re(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ho(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ho(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var v=m.dehydrated;v!==null&&Vn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ie||t.flags&512&&qs(t)}catch(h){B(t,t.return,h)}}if(t===e){S=null;break}if(n=t.sibling,n!==null){n.return=t.return,S=n;break}S=t.return}}function na(e){for(;S!==null;){var t=S;if(t===e){S=null;break}var n=t.sibling;if(n!==null){n.return=t.return,S=n;break}S=t.return}}function ra(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xl(4,t)}catch(u){B(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){B(t,l,u)}}var s=t.return;try{qs(t)}catch(u){B(t,s,u)}break;case 5:var o=t.return;try{qs(t)}catch(u){B(t,o,u)}}}catch(u){B(t,t.return,u)}if(t===e){S=null;break}var a=t.sibling;if(a!==null){a.return=t.return,S=a;break}S=t.return}}var bf=Math.ceil,rl=Je.ReactCurrentDispatcher,Ai=Je.ReactCurrentOwner,Te=Je.ReactCurrentBatchConfig,M=0,ee=null,X=null,ne=0,ye=0,Zt=gt(0),Z=0,er=null,Lt=0,wl=0,Wi=0,In=null,fe=null,Ui=0,dn=1/0,Ve=null,ll=!1,Zs=null,dt=null,Nr=!1,st=null,sl=0,Fn=0,Js=null,$r=-1,Ir=0;function ue(){return M&6?Y():$r!==-1?$r:$r=Y()}function ft(e){return e.mode&1?M&2&&ne!==0?ne&-ne:If.transition!==null?(Ir===0&&(Ir=ru()),Ir):(e=$,e!==0||(e=window.event,e=e===void 0?16:cu(e.type)),e):1}function Ie(e,t,n,r){if(50<Fn)throw Fn=0,Js=null,Error(x(185));rr(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(wl|=n),Z===4&&rt(e,ne)),ve(e,r),n===1&&M===0&&!(t.mode&1)&&(dn=Y()+500,vl&&yt()))}function ve(e,t){var n=e.callbackNode;$d(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&fo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fo(n),t===1)e.tag===0?$f(la.bind(null,e)):zu(la.bind(null,e)),Lf(function(){!(M&6)&&yt()}),n=null;else{switch(lu(r)){case 1:n=hi;break;case 4:n=tu;break;case 16:n=Wr;break;case 536870912:n=nu;break;default:n=Wr}n=Tc(n,wc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wc(e,t){if($r=-1,Ir=0,M&6)throw Error(x(327));var n=e.callbackNode;if(rn()&&e.callbackNode!==n)return null;var r=Ur(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=il(e,r);else{t=r;var l=M;M|=2;var s=jc();(ee!==e||ne!==t)&&(Ve=null,dn=Y()+500,Et(e,t));do try{np();break}catch(a){kc(e,a)}while(!0);Ti(),rl.current=s,M=l,X!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(l=Cs(e),l!==0&&(r=l,t=bs(e,l))),t===1)throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;if(t===6)rt(e,r);else{if(l=e.current.alternate,!(r&30)&&!ep(l)&&(t=il(e,r),t===2&&(s=Cs(e),s!==0&&(r=s,t=bs(e,s))),t===1))throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:jt(e,fe,Ve);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Ui+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ms(jt.bind(null,e,fe,Ve),t);break}jt(e,fe,Ve);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-$e(r);s=1<<o,o=t[o],o>l&&(l=o),r&=~s}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bf(r/1960))-r,10<r){e.timeoutHandle=Ms(jt.bind(null,e,fe,Ve),r);break}jt(e,fe,Ve);break;case 5:jt(e,fe,Ve);break;default:throw Error(x(329))}}}return ve(e,Y()),e.callbackNode===n?wc.bind(null,e):null}function bs(e,t){var n=In;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=il(e,t),e!==2&&(t=fe,fe=n,t!==null&&ei(t)),e}function ei(e){fe===null?fe=e:fe.push.apply(fe,e)}function ep(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],s=l.getSnapshot;l=l.value;try{if(!Fe(s(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 rt(e,t){for(t&=~Wi,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$e(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if(M&6)throw Error(x(327));rn();var t=Ur(e,0);if(!(t&1))return ve(e,Y()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=Cs(e);r!==0&&(t=r,n=bs(e,r))}if(n===1)throw n=er,Et(e,0),rt(e,t),ve(e,Y()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,fe,Ve),ve(e,Y()),null}function Vi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(dn=Y()+500,vl&&yt())}}function Rt(e){st!==null&&st.tag===0&&!(M&6)&&rn();var t=M;M|=1;var n=Te.transition,r=$;try{if(Te.transition=null,$=1,e)return e()}finally{$=r,Te.transition=n,M=t,!(M&6)&&yt()}}function Bi(){ye=Zt.current,H(Zt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Pf(n)),X!==null)for(n=X.return;n!==null;){var r=n;switch(Ni(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:un(),H(he),H(oe),Mi();break;case 5:Ri(r);break;case 4:un();break;case 13:H(W);break;case 19:H(W);break;case 10:_i(r.type._context);break;case 22:case 23:Bi()}n=n.return}if(ee=e,X=e=pt(e.current,null),ne=ye=t,Z=0,er=null,Wi=wl=Lt=0,fe=In=null,Nt!==null){for(t=0;t<Nt.length;t++)if(n=Nt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=l,r.next=o}n.pending=r}Nt=null}return e}function kc(e,t){do{var n=X;try{if(Ti(),Rr.current=nl,tl){for(var r=U.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}tl=!1}if(Pt=0,b=G=U=null,On=!1,Zn=0,Ai.current=null,n===null||n.return===null){Z=1,er=t,X=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,m=a,v=m.tag;if(!(m.mode&1)&&(v===0||v===11||v===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Qo(o);if(y!==null){y.flags&=-257,Ko(y,o,a,s,t),y.mode&1&&Bo(s,d,t),t=y,u=d;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){Bo(s,d,t),Qi();break e}u=Error(x(426))}}else if(A&&a.mode&1){var O=Qo(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Ko(O,o,a,s,t),Ci(cn(u,a));break e}}s=u=cn(u,a),Z!==4&&(Z=2),In===null?In=[s]:In.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=lc(s,u,t);Do(s,f);break e;case 1:a=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(dt===null||!dt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=sc(s,a,t);Do(s,g);break e}}s=s.return}while(s!==null)}Nc(n)}catch(j){t=j,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function jc(){var e=rl.current;return rl.current=nl,e===null?nl:e}function Qi(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Lt&268435455)&&!(wl&268435455)||rt(ee,ne)}function il(e,t){var n=M;M|=2;var r=jc();(ee!==e||ne!==t)&&(Ve=null,Et(e,t));do try{tp();break}catch(l){kc(e,l)}while(!0);if(Ti(),M=n,rl.current=r,X!==null)throw Error(x(261));return ee=null,ne=0,Z}function tp(){for(;X!==null;)Sc(X)}function np(){for(;X!==null&&!Ed();)Sc(X)}function Sc(e){var t=Ec(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Nc(e):X=t,Ai.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Xf(n,t),n!==null){n.flags&=32767,X=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,X=null;return}}else if(n=qf(n,t,ye),n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);Z===0&&(Z=5)}function jt(e,t,n){var r=$,l=Te.transition;try{Te.transition=null,$=1,rp(e,t,n,r)}finally{Te.transition=l,$=r}return null}function rp(e,t,n,r){do rn();while(st!==null);if(M&6)throw Error(x(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Id(e,s),e===ee&&(X=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nr||(Nr=!0,Tc(Wr,function(){return rn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Te.transition,Te.transition=null;var o=$;$=1;var a=M;M|=4,Ai.current=null,Zf(e,n),yc(n,e),Sf(Ls),Vr=!!Ps,Ls=Ps=null,e.current=n,Jf(n),Td(),M=a,$=o,Te.transition=s}else e.current=n;if(Nr&&(Nr=!1,st=e,sl=l),s=e.pendingLanes,s===0&&(dt=null),Pd(n.stateNode),ve(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(ll)throw ll=!1,e=Zs,Zs=null,e;return sl&1&&e.tag!==0&&rn(),s=e.pendingLanes,s&1?e===Js?Fn++:(Fn=0,Js=e):Fn=0,yt(),null}function rn(){if(st!==null){var e=lu(sl),t=Te.transition,n=$;try{if(Te.transition=null,$=16>e?16:e,st===null)var r=!1;else{if(e=st,st=null,sl=0,M&6)throw Error(x(331));var l=M;for(M|=4,S=e.current;S!==null;){var s=S,o=s.child;if(S.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(S=d;S!==null;){var m=S;switch(m.tag){case 0:case 11:case 15:$n(8,m,s)}var v=m.child;if(v!==null)v.return=m,S=v;else for(;S!==null;){m=S;var h=m.sibling,y=m.return;if(mc(m),m===d){S=null;break}if(h!==null){h.return=y,S=h;break}S=y}}}var w=s.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}S=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,S=o;else e:for(;S!==null;){if(s=S,s.flags&2048)switch(s.tag){case 0:case 11:case 15:$n(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,S=f;break e}S=s.return}}var c=e.current;for(S=c;S!==null;){o=S;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,S=p;else e:for(o=c;S!==null;){if(a=S,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xl(9,a)}}catch(j){B(a,a.return,j)}if(a===o){S=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,S=g;break e}S=a.return}}if(M=l,yt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(dl,e)}catch{}r=!0}return r}finally{$=n,Te.transition=t}}return!1}function sa(e,t,n){t=cn(n,t),t=lc(e,t,1),e=ct(e,t,1),t=ue(),e!==null&&(rr(e,1,t),ve(e,t))}function B(e,t,n){if(e.tag===3)sa(e,e,n);else for(;t!==null;){if(t.tag===3){sa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(dt===null||!dt.has(r))){e=cn(n,e),e=sc(t,e,1),t=ct(t,e,1),e=ue(),t!==null&&(rr(t,1,e),ve(t,e));break}}t=t.return}}function lp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ue(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(Z===4||Z===3&&(ne&130023424)===ne&&500>Y()-Ui?Et(e,0):Wi|=n),ve(e,t)}function Cc(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=Ge(e,t),e!==null&&(rr(e,t,n),ve(e,n))}function sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cc(e,n)}function ip(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Cc(e,n)}var Ec;Ec=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Yf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&Pu(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var l=sn(t,oe.current);nn(t,n),l=$i(null,t,r,e,l,n);var s=Ii();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(s=!0,qr(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pi(t),l.updater=yl,t.stateNode=l,l._reactInternals=t,As(t,r,e,n),t=Vs(null,t,r,!0,s,n)):(t.tag=0,A&&s&&Si(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ap(r),e=Re(r,e),l){case 0:t=Us(null,t,r,e,n);break e;case 1:t=Xo(null,t,r,e,n);break e;case 11:t=Yo(null,t,r,e,n);break e;case 14:t=qo(null,t,r,Re(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Us(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Xo(e,t,r,l,n);case 3:e:{if(uc(t),e===null)throw Error(x(387));r=t.pendingProps,s=t.memoizedState,l=s.element,Iu(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=cn(Error(x(423)),t),t=Go(e,t,r,n,l);break e}else if(r!==l){l=cn(Error(x(424)),t),t=Go(e,t,r,n,l);break e}else for(xe=ut(t.stateNode.containerInfo.firstChild),we=t,A=!0,Oe=null,n=Ou(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===l){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Fu(t),e===null&&Fs(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Rs(r,l)?o=null:s!==null&&Rs(r,s)&&(t.flags|=32),ac(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Fs(t),null;case 13:return cc(e,t,n);case 4:return Li(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Yo(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,o=l.value,I(Zr,r._currentValue),r._currentValue=o,s!==null)if(Fe(s.value,o)){if(s.children===l.children&&!he.current){t=Ze(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?u.next=u:(u.next=m.next,m.next=u),d.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ds(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(x(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ds(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nn(t,n),l=_e(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Re(r,t.pendingProps),l=Re(r.type,l),qo(e,t,r,l,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Or(e,t),t.tag=1,me(r)?(e=!0,qr(t)):e=!1,nn(t,n),rc(t,r,l),As(t,r,l,n),Vs(null,t,r,!0,e,n);case 19:return dc(e,t,n);case 22:return oc(e,t,n)}throw Error(x(156,t.tag))};function Tc(e,t){return eu(e,t)}function op(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new op(e,t,n,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ap(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===di)return 11;if(e===fi)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")Ki(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wt:return Tt(n.children,l,s,t);case ci:o=8,l|=8;break;case cs:return e=Ee(12,n,t,l|2),e.elementType=cs,e.lanes=s,e;case ds:return e=Ee(13,n,t,l),e.elementType=ds,e.lanes=s,e;case fs:return e=Ee(19,n,t,l),e.elementType=fs,e.lanes=s,e;case Fa:return kl(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $a:o=10;break e;case Ia:o=9;break e;case di:o=11;break e;case fi:o=14;break e;case et:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Tt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Fa,e.lanes=n,e.stateNode={isHidden:!1},e}function es(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function ts(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function up(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$l(0),this.expirationTimes=$l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Yi(e,t,n,r,l,s,o,a,u){return e=new up(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ee(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(s),e}function cp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _c(e){if(!e)return mt;e=e._reactInternals;e:{if(It(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return _u(e,n,t)}return t}function zc(e,t,n,r,l,s,o,a,u){return e=Yi(n,r,!0,e,l,s,o,a,u),e.context=_c(null),n=e.current,r=ue(),l=ft(n),s=Ye(r,l),s.callback=t??null,ct(n,s,l),e.current.lanes=l,rr(e,l,r),ve(e,r),e}function jl(e,t,n,r){var l=t.current,s=ue(),o=ft(l);return n=_c(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(l,t,o),e!==null&&(Ie(e,l,o,s),Lr(e,l,o)),o}function ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qi(e,t){ia(e,t),(e=e.alternate)&&ia(e,t)}function dp(){return null}var Pc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xi(e){this._internalRoot=e}Sl.prototype.render=Xi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));jl(e,t,null,null)};Sl.prototype.unmount=Xi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rt(function(){jl(null,e,null,null)}),t[Xe]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ou();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nt.length&&t!==0&&t<nt[n].priority;n++);nt.splice(n,0,e),n===0&&uu(e)}};function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oa(){}function fp(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var d=ol(o);s.call(d)}}var o=zc(t,r,e,0,null,!1,!1,"",oa);return e._reactRootContainer=o,e[Xe]=o.current,Kn(e.nodeType===8?e.parentNode:e),Rt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=ol(u);a.call(d)}}var u=Yi(e,0,!1,null,null,!1,!1,"",oa);return e._reactRootContainer=u,e[Xe]=u.current,Kn(e.nodeType===8?e.parentNode:e),Rt(function(){jl(t,u,n,r)}),u}function Cl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var o=s;if(typeof l=="function"){var a=l;l=function(){var u=ol(o);a.call(u)}}jl(t,o,e,l)}else o=fp(n,t,e,l,r);return ol(o)}su=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tn(t.pendingLanes);n!==0&&(mi(t,n|1),ve(t,Y()),!(M&6)&&(dn=Y()+500,yt()))}break;case 13:Rt(function(){var r=Ge(e,1);if(r!==null){var l=ue();Ie(r,e,1,l)}}),qi(e,1)}};vi=function(e){if(e.tag===13){var t=Ge(e,134217728);if(t!==null){var n=ue();Ie(t,e,134217728,n)}qi(e,134217728)}};iu=function(e){if(e.tag===13){var t=ft(e),n=Ge(e,t);if(n!==null){var r=ue();Ie(n,e,t,r)}qi(e,t)}};ou=function(){return $};au=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};js=function(e,t,n){switch(t){case"input":if(ms(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=ml(r);if(!l)throw Error(x(90));Ha(r),ms(r,l)}}}break;case"textarea":Wa(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};qa=Vi;Xa=Rt;var pp={usingClientEntryPoint:!1,Events:[sr,Qt,ml,Ka,Ya,Vi]},Nn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Je.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ja(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||dp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{dl=Cr.inject(hp),We=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gi(t))throw Error(x(200));return cp(e,t,null,n)};je.createRoot=function(e,t){if(!Gi(e))throw Error(x(299));var n=!1,r="",l=Pc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Yi(e,1,!1,null,null,n,!1,r,l),e[Xe]=t.current,Kn(e.nodeType===8?e.parentNode:e),new Xi(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=Ja(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Rt(e)};je.hydrate=function(e,t,n){if(!Nl(t))throw Error(x(200));return Cl(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Gi(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",o=Pc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zc(t,null,e,1,n??null,l,!1,s,o),e[Xe]=t.current,Kn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Sl(t)};je.render=function(e,t,n){if(!Nl(t))throw Error(x(200));return Cl(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(x(40));return e._reactRootContainer?(Rt(function(){Cl(null,null,e,!1,function(){e._reactRootContainer=null,e[Xe]=null})}),!0):!1};je.unstable_batchedUpdates=Vi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Nl(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cl(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=je;var mp=La.exports,aa=mp;as.createRoot=aa.createRoot,as.hydrateRoot=aa.hydrateRoot;/**
|
|
41
41
|
* @license lucide-react v0.441.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const vp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),
|
|
45
|
+
*/const vp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rc=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
46
|
* @license lucide-react v0.441.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
@@ -52,115 +52,115 @@ Error generating stack: `+s.message+`
|
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const yp=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:o,...a},u)=>z.createElement("svg",{ref:u,...gp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:
|
|
55
|
+
*/const yp=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:o,...a},u)=>z.createElement("svg",{ref:u,...gp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rc("lucide",l),...a},[...o.map(([d,m])=>z.createElement(d,m)),...Array.isArray(s)?s:[s]]));/**
|
|
56
56
|
* @license lucide-react v0.441.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const
|
|
60
|
+
*/const q=(e,t)=>{const n=z.forwardRef(({className:r,...l},s)=>z.createElement(yp,{ref:s,iconNode:t,className:Rc(`lucide-${vp(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
|
|
61
61
|
* @license lucide-react v0.441.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const ti=
|
|
65
|
+
*/const ti=q("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
66
|
* @license lucide-react v0.441.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const xp=
|
|
70
|
+
*/const xp=q("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
71
71
|
* @license lucide-react v0.441.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const wp=
|
|
75
|
+
*/const wp=q("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
76
76
|
* @license lucide-react v0.441.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const kp=
|
|
80
|
+
*/const kp=q("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
81
81
|
* @license lucide-react v0.441.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const jp=
|
|
85
|
+
*/const jp=q("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
86
86
|
* @license lucide-react v0.441.0 - ISC
|
|
87
87
|
*
|
|
88
88
|
* This source code is licensed under the ISC license.
|
|
89
89
|
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Sp=
|
|
90
|
+
*/const Sp=q("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
|
|
91
91
|
* @license lucide-react v0.441.0 - ISC
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Np=
|
|
95
|
+
*/const Np=q("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
|
96
96
|
* @license lucide-react v0.441.0 - ISC
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the ISC license.
|
|
99
99
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Cp=
|
|
100
|
+
*/const Cp=q("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
101
101
|
* @license lucide-react v0.441.0 - ISC
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the ISC license.
|
|
104
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const al=
|
|
105
|
+
*/const al=q("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
106
106
|
* @license lucide-react v0.441.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Ep=
|
|
110
|
+
*/const Ep=q("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
111
111
|
* @license lucide-react v0.441.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const Tp=
|
|
115
|
+
*/const Tp=q("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
116
116
|
* @license lucide-react v0.441.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Mc=
|
|
120
|
+
*/const Mc=q("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
121
121
|
* @license lucide-react v0.441.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const ua=
|
|
125
|
+
*/const ua=q("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
126
126
|
* @license lucide-react v0.441.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const _p=
|
|
130
|
+
*/const _p=q("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
131
131
|
* @license lucide-react v0.441.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const zp=
|
|
135
|
+
*/const zp=q("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
136
136
|
* @license lucide-react v0.441.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const Pp=
|
|
140
|
+
*/const Pp=q("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
141
141
|
* @license lucide-react v0.441.0 - ISC
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const
|
|
145
|
+
*/const Lp=q("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
146
146
|
* @license lucide-react v0.441.0 - ISC
|
|
147
147
|
*
|
|
148
148
|
* This source code is licensed under the ISC license.
|
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const
|
|
150
|
+
*/const Rp=q("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
|
|
151
151
|
* @license lucide-react v0.441.0 - ISC
|
|
152
152
|
*
|
|
153
153
|
* This source code is licensed under the ISC license.
|
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const Mp=
|
|
155
|
+
*/const Mp=q("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
|
|
156
156
|
* @license lucide-react v0.441.0 - ISC
|
|
157
157
|
*
|
|
158
158
|
* This source code is licensed under the ISC license.
|
|
159
159
|
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const Op=
|
|
160
|
+
*/const Op=q("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
161
161
|
* @license lucide-react v0.441.0 - ISC
|
|
162
162
|
*
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Dp=X("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class $p extends ii.Component{constructor(){super(...arguments);Ji(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){n.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}render(){return this.state.error?i.jsxs("div",{className:"empty-state glass-card",role:"alert",children:[i.jsx(Rp,{size:48}),i.jsx("h3",{children:"This view could not be displayed"}),i.jsx("p",{children:this.state.error.message||"Studio received data it could not render."}),i.jsxs("button",{className:"refresh-btn",type:"button",onClick:()=>this.setState({error:null}),children:[i.jsx(Mc,{size:16})," Retry view"]})]}):this.props.children}}function It({icon:e,label:t,status:n,detail:r}){const l=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${l}`,children:[i.jsx(e,{size:15,"aria-hidden":"true"}),i.jsxs("span",{children:[i.jsx("strong",{children:t}),i.jsx("small",{children:r})]}),i.jsx("span",{className:"health-state",children:n})]})}function Ip({data:e,loading:t,stale:n,onRetry:r}){var s,o,a,u,d,m,v,h,y,w,k,O,f,c,p,g,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(ti,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(ua,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Mc,{size:14})," Retry"]})]});const l=Object.values(((s=e.caches)==null?void 0:s.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx(It,{icon:kp,label:"Index",status:((o=e.index)==null?void 0:o.status)??"missing",detail:`${((a=e.index)==null?void 0:a.patterns)??0} patterns · ${((u=e.index)==null?void 0:u.files)??0} files`}),i.jsx(It,{icon:Mp,label:"Graph",status:((d=e.graph)==null?void 0:d.status)??"missing",detail:`${((m=e.graph)==null?void 0:m.nodes)??0} nodes · ${((v=e.graph)==null?void 0:v.edges)??0} edges`}),i.jsx(It,{icon:xp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((y=e.semantic)==null?void 0:y.message)??"Background enrichment"}),i.jsx(It,{icon:Tp,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${l}/4 layers populated`}),i.jsx(It,{icon:ti,label:"Learning",status:((k=e.learning)==null?void 0:k.status)??"idle",detail:`${((O=e.learning)==null?void 0:O.observations)??0} interactions · ${((f=e.learning)==null?void 0:f.total)??0} lessons`}),i.jsx(It,{icon:ua,label:"Storage",status:((c=e.storage)==null?void 0:c.connectivity)??"local",detail:((p=e.storage)==null?void 0:p.connectivity)==="offline"?`${((g=e.storage)==null?void 0:g.queuedChanges)??0} queued`:((j=e.storage)==null?void 0:j.mode)??"local"})]})}const Oc="rigour-studio-key",Fp="x-rigour-studio-key";function Hp(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem(Oc,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function El(){return Dc().length>0}function Dc(){try{return sessionStorage.getItem(Oc)??""}catch{return""}}function hn(e,t,n,r="application/json"){const l={[Fp]:Dc()};return n!==void 0&&(l["Content-Type"]=r),fetch(e,{method:t,headers:l,body:n})}const $c={edit:"while the agent was writing",review:"when the agent checked its work",stop:"before the agent said done",pr:"at the pull request"};function Mt(e,t=Date.now()){const n=Math.round((t-Date.parse(e))/6e4);if(!Number.isFinite(n))return"";if(n<60)return`${Math.max(1,n)} min ago`;const r=Math.round(n/60);return r<48?`${r} h ago`:new Date(e).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function F(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function ge(e){const[t,n]=z.useState(null),[r,l]=z.useState(null),s=z.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):l(`HTTP ${o.status}`)).catch(o=>l(o instanceof Error?o.message:String(o)))},[e]);return z.useEffect(s,[s]),{data:t,error:r,reload:s}}function tr(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?ii.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}const ca="rigour-intro-hidden",Ap=({onNavigate:e})=>{const{data:t,error:n,reload:r}=ge("/api/week"),[l,s]=z.useState(null),[o,a]=z.useState(()=>{try{return localStorage.getItem(ca)!=="1"}catch{return!0}});if(n)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load this week: ",n,"."]})});if(!t)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const u=()=>{try{localStorage.setItem(ca,"1")}catch{}a(!1)},d=t.needs;return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Wp,{onHide:u}),i.jsx("h1",{className:"st-h1",children:d.length===0?"Nothing needs you.":`${F(d.length,"thing needs","things need")} you.`}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${F(t.stopped.total,"problem")} stopped and fixed before a pull request this week.`:t.recordingSince?"Nothing was stopped this week.":"Rigour has not recorded any agent work in this repository yet."}),d.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:18},children:d.map(m=>i.jsx(Up,{need:m,onDone:r},`${m.rule}:${m.file}`))}),i.jsxs("div",{className:"st-grid",children:[i.jsxs("section",{children:[i.jsx("h2",{style:{margin:"0 0 14px",fontSize:18,fontWeight:600},children:"What Rigour stopped this week"}),t.stories.length===0?i.jsx("div",{className:"st-empty",children:"When an agent fixes something Rigour caught, it appears here with the code change."}):i.jsx("div",{className:"st-stack",children:t.stories.map(m=>i.jsx(Vp,{story:m,open:l===m.id,onToggle:()=>s(l===m.id?null:m.id)},m.id))})]}),i.jsxs("aside",{className:"st-side",children:[i.jsxs("div",{className:"st-card",children:[i.jsx("div",{className:"st-big",children:t.stopped.total}),i.jsx("div",{style:{fontSize:14,marginTop:6},children:"stopped before a PR"}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:[t.stopped.byStage.edit," while writing · ",t.stopped.byStage.review," on review · ",t.stopped.byStage.stop," before done"]}),i.jsx(Bp,{data:t})]}),i.jsxs("div",{className:"st-card",children:[i.jsx("div",{style:{fontSize:15,fontWeight:600},children:"Is it noisy?"}),i.jsx("div",{style:{fontSize:14,marginTop:8,lineHeight:1.6},children:t.raised===0?"Nothing raised this week.":`Rigour raised ${F(t.raised,"problem")} this week. You overruled ${t.overruled}.`}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:'Say "not a bug" once and Rigour stops raising it.'})]}),i.jsx("button",{className:"st-btn",onClick:()=>e("learns"),type:"button",children:"See how it learns"}),t.recordingSince&&i.jsxs("div",{className:"st-sub",children:["Recording since ",new Date(t.recordingSince).toLocaleDateString()]})]})]})]})},Wp=({onHide:e})=>i.jsxs("section",{className:"st-card",style:{marginBottom:28},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",marginBottom:16},children:[i.jsx("strong",{children:"How Rigour works"}),i.jsx("button",{className:"st-btn",onClick:e,type:"button",children:"Got it"})]}),i.jsxs("div",{className:"st-steps",children:[i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"1"}),i.jsxs("div",{children:["Your AI agent writes code",i.jsx("div",{className:"st-sub",children:"Claude Code, Cursor, any agent."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"2"}),i.jsxs("div",{children:["Rigour checks every change",i.jsx("div",{className:"st-sub",children:"It stops the agent only on problems it can prove; the agent fixes them."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"3"}),i.jsxs("div",{children:["Your PR arrives clean",i.jsx("div",{className:"st-sub",children:"A short PR review catches the rest. Every fix teaches Rigour your code."})]})]})]})]}),Up=({need:e,onDone:t})=>{const[n,r]=z.useState("idle"),l=async()=>{const o=window.prompt("Why is this not a bug? Rigour keeps the reason with the dismissal.");if(!(o!=null&&o.trim())||!e.key)return;(await hn("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},s=async()=>{try{await navigator.clipboard.writeText(`Rigour found a problem you introduced: ${e.title} in ${e.file}. Fix it, then run rigour review.`),r("copied")}catch{r("failed")}};return i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["found ",e.stage?$c[e.stage]:""," · ",Mt(e.openedAt)]})]}),i.jsx("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:e.title}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.file}),i.jsxs("div",{className:"st-row",style:{marginTop:14,flexWrap:"wrap"},children:[i.jsx("button",{className:"st-btn primary",onClick:s,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:l,type:"button",children:"It's fine, not a bug"}),n==="failed"&&i.jsx("span",{className:"st-sub",children:"That didn't work. Open Studio from the link in your terminal and try again."})]})]})},Vp=({story:e,open:t,onToggle:n})=>i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:n,type:"button","aria-expanded":t,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip",children:$c[e.stage]}),i.jsx("span",{className:"st-sub",children:Mt(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:tr(e.title)}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-mono",children:e.file})," · fixed by the agent"]})]}),t&&i.jsxs("div",{className:"st-story-body",children:[e.diff.length>0&&i.jsx("div",{className:"st-code st-mono",children:e.diff.map((r,l)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},l))}),e.details&&e.details!==e.title&&i.jsxs("div",{style:{marginTop:e.diff.length?16:0},children:[i.jsx("strong",{style:{fontSize:13},children:e.stage==="review"&&e.rule==="review"?"What the agent fixed":"How Rigour knew"}),i.jsx("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:tr(e.details)})]})]})]}),Bp=({data:e})=>{const[t,n]=z.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${F(e.stopped.total,"problem")} before a pull request this week: ${e.stopped.byStage.edit} while the agent was writing, ${e.stopped.byStage.review} when it checked its work, ${e.stopped.byStage.stop} before it said done. ${e.overruled} of ${e.raised} overruled.`,l=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:l,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},Qp=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),ns=(e,t)=>e.reduce((n,r)=>n+t(r),0),Kp=()=>{var s;const{data:e,error:t}=ge("/api/progress");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load progress: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.weeks.slice(-4),r=e.weeks.slice(0,-4),l=((s=e.weeks[e.weeks.length-1])==null?void 0:s.lessons)??0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour is shaping this code"}),i.jsxs("p",{className:"st-lead",children:["Last 4 weeks: ",F(ns(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${ns(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",F(ns(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",F(l,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(Ft,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(Ft,{title:"Repeat mistakes stopped",hint:"a mistake Rigour had already learned, caught again before a PR",weeks:e.weeks,value:o=>o.repeatsStopped}),i.jsx(Ft,{title:"Repeat mistakes that reached a PR",hint:"lower is better",weeks:e.weeks,value:o=>o.repeatsReachedPr,empty:"Shows once branch reviews run on this machine, for example rigour review --base main in a pre-push hook."}),i.jsx(Ft,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(Ft,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(Ft,{title:"Lessons learned",hint:"total by the end of each week",weeks:e.weeks,value:o=>o.lessons})]}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Lessons that stopped the most repeats"}),e.topLessons.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. A lesson ranks here once the mistake it describes is caught again and stopped."}):i.jsx("ol",{style:{margin:"12px 0 0",paddingLeft:20,lineHeight:1.6},children:e.topLessons.map(o=>i.jsxs("li",{style:{marginBottom:8},children:[tr(o.text),i.jsxs("div",{className:"st-sub",children:[F(o.stoppedInDevelopment??0,"repeat")," stopped · ",o.scope==="team"?"shared with team":o.scope]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Checks your team acts on"}),e.checks.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:'Each fix and each "not a bug" scores the check that raised it. Scores appear after the first one.'}):i.jsx("div",{className:"st-stack",style:{marginTop:12,gap:8},children:e.checks.map(o=>i.jsxs("div",{className:"st-row",style:{gap:10},children:[i.jsxs("span",{style:{width:44,fontWeight:600},children:[Math.round(o.precision*100),"%"]}),i.jsx("span",{style:{flex:1,fontSize:14},children:o.check}),i.jsxs("span",{className:"st-sub",children:[o.fixed," fixed · ",o.dismissed," overruled"]}),o.muted&&i.jsx("span",{className:"st-chip",children:"quiet"})]},o.check))})]})]})]})},Ft=({title:e,hint:t,weeks:n,value:r,empty:l})=>{const s=n.map(r),o=s.filter(u=>u!==null),a=Math.max(1,...o);return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:e}),i.jsx("span",{className:"st-sub",children:t})]}),o.length===0&&l?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:l}):i.jsx("div",{className:"st-bars",style:{height:90,gap:12},children:n.map((u,d)=>i.jsxs("div",{className:"st-bar",children:[i.jsx("div",{style:{fontSize:12},children:s[d]??"—"}),i.jsx("span",{style:{height:`${s[d]===null?2:Math.max(2,s[d]/a*56)}px`,opacity:s[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:Qp(u.from)})]},u.from))})]})},Yp=()=>{const{data:e,error:t}=ge("/api/week"),n=ge("/api/setup").data,r=n==null?void 0:n.checks.some(s=>s.id==="stop"&&s.state!=="missing"&&s.state!=="broken");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const l=e.stories.filter(s=>s.stage==="stop");return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What only Rigour caught"}),i.jsx("p",{className:"st-lead",children:"Counted only where Rigour can show it. A bug stopped before a PR never reached your other reviewers, so it is not counted against them."}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Your agent tried to finish with a bug"}),i.jsx("p",{className:"st-lead",style:{fontSize:14},children:e.agentSaidDone===0&&n&&!r?"The stop hook is not set up in this repository, so Rigour cannot see an agent finish. Run rigour setup.":e.agentSaidDone===0?"This week no agent tried to finish with a problem Rigour could prove.":`This week an agent tried to finish with a problem Rigour proved ${F(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:l.map(s=>i.jsxs("div",{className:"st-card st-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15,lineHeight:1.5},children:s.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:s.file})," · ",Mt(s.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},s.id))})]}),i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Rigour and your other PR reviewers"}),i.jsxs("div",{className:"st-empty",style:{marginTop:14},children:[e.prCatches===null?"No branch reviews recorded on this machine yet.":`Branch reviews here reported ${F(e.prCatches,"problem")} this week.`," ","Side by side with teammates and review bots (both caught it, only Rigour, only them) needs the PR's review comments; it comes with the PR integration."]})]})]})},rs=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",Xp=()=>{const{data:e,error:t,reload:n}=ge("/api/learning");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load lessons: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const r=async(s,o)=>{(await hn("/api/lessons","POST",JSON.stringify({id:s,state:o}))).ok&&n()},l=Math.max(1,...e.weeks.map(s=>Math.max(s.stoppedInDevelopment,s.reachedPr??0)));return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour learns your codebase"}),i.jsx("p",{className:"st-lead",children:"Every mistake fixed in development or caught at a PR becomes a lesson. Your agents are told before they write similar code, so the same mistake is stopped earlier next time."}),i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Repeat mistakes, by week"}),i.jsx("span",{className:"st-sub",children:"a mistake Rigour had already learned"})]}),i.jsx("div",{className:"st-bars",children:e.weeks.map(s=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[s.stoppedInDevelopment," stopped",s.reachedPr===null?"":` · ${s.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,s.stoppedInDevelopment/l*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(s.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},s.from))}),!e.prRecorded&&i.jsxs("div",{className:"st-sub",style:{marginTop:14},children:["Repeats that reached a PR show once branch reviews run on this machine (",i.jsx("span",{className:"st-mono",children:"rigour review --base main"}),", for example in a pre-push hook). Reviews in CI stay in CI."]})]}),e.lessons.length===0?i.jsx("div",{className:"st-empty",children:"No lessons yet. They form when an agent fixes something Rigour reported, when a PR comment leads to a fix, or when you tell your agent to remember something."}):i.jsx("div",{className:"st-stack",children:e.lessons.map(s=>i.jsx(qp,{lesson:s,onDecide:r},s.id))}),i.jsx(Gp,{})]})},qp=({lesson:e,onDecide:t})=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",alignItems:"flex-start"},children:[i.jsx("div",{style:{fontSize:17,lineHeight:1.5,flex:1},children:tr(e.text)}),i.jsx("span",{className:"st-chip",children:e.scope==="team"?"shared with team":e.scope})]}),i.jsxs("div",{className:"st-journey",children:[i.jsxs("div",{style:{background:"var(--bg-surface)"},children:[i.jsx("div",{className:"st-sub",children:"Learned"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:e.learnedFrom})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Agents told"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.told)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Stopped in development"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.stoppedInDevelopment,e.origin==="development")})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reached a PR again"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.reachedPr,e.origin==="development")})]})]}),e.canDecide&&i.jsxs("div",{className:"st-row",style:{marginTop:14},children:[i.jsx("span",{className:"st-sub",children:e.scope==="team"?"Shared by a teammate. Give it to everyone's agents?":"Seen once. Keep it so your agents get told?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>t(e.id,e.scope==="team"?"promoted":"validated"),type:"button",children:e.scope==="team"?"Share with team":"Keep"}),i.jsx("button",{className:"st-btn",onClick:()=>t(e.id,"rejected"),type:"button",children:"Drop"})]})]}),Gp=()=>{var r,l,s;const e=ge("/api/learned-rules").data??[],t=Object.entries(((r=ge("/api/memory").data)==null?void 0:r.memories)??{}),n=(s=(l=ge("/api/index-stats").data)==null?void 0:l.stats)==null?void 0:s.totalPatterns;return i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Rules learned from fixes"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Checked on every edit, like a built-in check."}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. rigour learn turns an agent's fixes into rules once they hold up."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:e.map(o=>i.jsxs("li",{children:[o.message,i.jsxs("div",{className:"st-sub",children:[o.requirement," · ",o.appliesTo]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"What your agents were told to remember"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Facts saved with rigour_remember; agents recall them by meaning."}),t.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"Nothing saved yet."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:t.slice(0,12).map(([o,a])=>i.jsxs("li",{children:[i.jsx("strong",{children:o.replace(/_/g," ")}),": ",a.value.length>220?`${a.value.slice(0,220)}…`:a.value]},o))}),t.length>12&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:["and ",t.length-12," more"]})]}),typeof n=="number"&&n>0&&i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsxs("strong",{children:[n," functions indexed"]}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:"Before an agent writes a new helper, Rigour checks whether one already exists and points to it, so the codebase doesn't fill with near-copies."})]})]})},da=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),Zp=()=>{const{data:e,error:t}=ge("/api/context");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load agent context: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.week,r=n.scopes+n.recalls+n.lessonsTold+n.reuse.length===0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What Rigour gave your agents"}),i.jsx("p",{className:"st-lead",children:"Before an agent writes, it can ask Rigour where to look, what this team already knows, and whether the thing it is about to write exists. Preventing a mistake is cheaper than catching it."}),r?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"No agent asked Rigour for context this week. Agents use it through the Rigour tools (rigour_context_scope, rigour_recall, rigour_check_pattern); Setup shows whether they are connected."}):i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsx(fa,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${F(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${F(n.scopes,"request")}. About ${da(n.tokensReturned)} tokens returned out of ${da(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(fa,{title:"What this team knows",value:`${F(n.lessonsTold,"lesson")} told`,detail:`${F(n.recalls,"recall")} of saved facts and lessons. How it learns shows what each lesson stopped.`}),i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsx("strong",{children:"Pointed to code that already exists"}),n.reuse.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:"No duplicate was about to be written this week."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:n.reuse.map(l=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${l.action==="BLOCK"?"warn":""}`,children:l.action==="BLOCK"?"reuse":"similar"}),i.jsxs("div",{style:{flex:1,fontSize:14,lineHeight:1.5},children:["About to write ",i.jsx("span",{className:"st-mono",children:l.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:l.existing})]}),i.jsx("span",{className:"st-sub",children:Mt(l.at)})]},`${l.at}-${l.planned}`))})]})]}),i.jsx(Jp,{weeks:e.weeks})]})},fa=({title:e,value:t,detail:n})=>i.jsxs("section",{className:"st-card",children:[i.jsx("div",{className:"st-sub",children:e}),i.jsx("div",{style:{fontSize:22,fontWeight:600,marginTop:6,color:"var(--text-primary)"},children:t}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:n})]}),Jp=({weeks:e})=>{const t=e.filter(n=>n.scopes+n.recalls+n.lessonsTold+n.reuse>0).reverse();return i.jsxs("section",{className:"st-card",style:{marginTop:24,padding:0,overflowX:"auto"},children:[i.jsx("div",{style:{padding:"16px 20px 8px"},children:i.jsx("strong",{children:"Last 8 weeks"})}),t.length===0?i.jsx("div",{className:"st-sub",style:{padding:"0 20px 18px"},children:"No context requests in the last 8 weeks."}):i.jsxs("table",{className:"st-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Week of"}),i.jsx("th",{children:"Focused file lists"}),i.jsx("th",{children:"Files given"}),i.jsx("th",{children:"Recalls"}),i.jsx("th",{children:"Lessons told"}),i.jsx("th",{children:"Duplicates avoided"})]})}),i.jsx("tbody",{children:t.map(n=>i.jsxs("tr",{children:[i.jsx("td",{children:new Date(n.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),i.jsx("td",{children:n.scopes}),i.jsx("td",{children:n.scopes?`${n.filesReturned} of ${n.filesConsidered}`:"—"}),i.jsx("td",{children:n.recalls}),i.jsx("td",{children:n.lessonsTold}),i.jsx("td",{children:n.reuse})]},n.from))})]})]})},ls={single:"one judge",cross:"one judge from another vendor",full:"one judge per vendor, findings merged",panel:"a panel: only what a majority confirms blocks"},bp=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",eh=({data:e,canWrite:t,onChange:n})=>{var l,s,o,a;const r=(l=e.status)==null?void 0:l.last;return i.jsxs("section",{style:{marginTop:24},children:[i.jsxs("h2",{style:{margin:"0 0 12px",fontSize:18,fontWeight:600},children:["The reviewer's verdict on ",e.branch]}),((s=e.status)==null?void 0:s.running)&&i.jsxs("div",{className:"st-sub",style:{marginBottom:8},children:["Reviewing ",e.status.running.head.slice(0,9)," now."]}),((o=e.status)==null?void 0:o.attempt)&&i.jsxs("div",{className:"st-card",style:{marginBottom:12},children:[i.jsx("span",{className:"st-chip warn",children:e.status.attempt.outcome==="skipped"?"skipped":"could not run"})," ",i.jsxs("span",{className:"st-sub",children:["The last review, of ",e.status.attempt.head.slice(0,9)," ",Mt(e.status.attempt.at),": ",e.status.attempt.reason]})]}),r?i.jsxs("div",{className:"st-stack",children:[i.jsx("div",{className:"st-card st-row",style:{justifyContent:"space-between"},children:i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${r.open.length?"bad":"ok"}`,children:r.open.length?`${F(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${ls[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",Mt(r.at)]})]})}),r.ran&&(r.ran.degraded||r.ran.escalation||r.ran.asked!==r.ran.ran)&&i.jsxs("div",{className:"st-sub",children:["Asked for ",ls[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",ls[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(pa,{item:u,canWrite:t&&e.effective.dismissals,onChange:n},u.id)),r.disputed.length>0&&i.jsx("div",{className:"st-sub",style:{marginTop:8},children:"No majority, so these never block:"}),r.disputed.map(u=>i.jsx(pa,{item:u,disputed:!0,canWrite:!1,onChange:n},u.id))]}):!((a=e.status)!=null&&a.attempt)&&i.jsxs("div",{className:"st-empty",children:["No verdict yet. Run ",i.jsx("span",{className:"st-mono",children:"rigour review --reviewer"}),", or push with the reviewer on."]})]})},pa=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[l,s]=z.useState(""),[o,a]=z.useState(!1),[u,d]=z.useState(null),m=async()=>{const v=await hn("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:l}));v.ok?r():d((await v.json().catch(()=>({}))).error??`HTTP ${v.status}`)};return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",gap:12},children:[i.jsx("strong",{style:{fontSize:14},children:e.issue}),i.jsx("span",{className:"st-mono st-sub",children:bp(e)})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[t?i.jsx("span",{className:"st-chip warn",children:"disputed"}):i.jsx("span",{className:"st-chip",children:e.class}),e.reviewer&&i.jsxs(i.Fragment,{children:[" found by ",e.reviewer.split("+").join(" and ")]})]}),e.consequence&&i.jsxs("div",{style:{marginTop:8,fontSize:14},children:["What goes wrong: ",e.consequence]}),e.evidence&&i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.evidence}),n&&e.kind!=="prior"&&(o?i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[i.jsx("input",{"aria-label":"Why it is not a bug",value:l,onChange:v=>s(v.target.value),placeholder:"Why it is not a bug",style:{flex:1,minHeight:36,padding:"0 10px",borderRadius:8,border:"1px solid var(--text-dim)",background:"var(--bg-card)",color:"var(--text-primary)"}}),i.jsx("button",{className:"st-btn",disabled:l.trim().length<5,onClick:m,children:"Dismiss"})]}):i.jsx("button",{className:"st-btn",style:{marginTop:10},onClick:()=>a(!0),children:"Not a bug"})),u&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-chip bad",children:"not dismissed"})," ",u]})]})},ul=({label:e,value:t,options:n,disabled:r,withTeam:l,onChange:s})=>{const o=l?[{value:null,label:"Team"},...n]:n,a=t===void 0?null:t;return i.jsx("div",{className:"st-seg",role:"radiogroup","aria-label":e,children:o.map(u=>{const d=JSON.stringify(u.value)===JSON.stringify(a);return i.jsx("button",{type:"button",role:"radio","aria-checked":d,className:d?"on":"",disabled:r,onClick:()=>!d&&s(u.value),children:u.label},u.label)})})},th={flag:"this run",env:"environment",user:"yours",team:"team"};function nh(e,t){return e.key==="mode"?t.source.mode:e.key==="panel"?t.source.panel:e.key==="escalate"&&(t.required.panel||t.required.mode)?"team":e.user&&e.user.value!==void 0?"user":"team"}const ss=[{value:!0,label:"on"},{value:!1,label:"off"}],ha=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],rh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:l})=>{const[s,o]=z.useState(!1),a=e.effective,u=e.team,d=a.required.panel||a.required.mode,m=[{key:"enabled",label:"Review at push",help:"Ask the reviewer when you push a branch that has an open pull request.",effective:a.enabled?"on":"off",user:{value:e.user.enabled,options:ss},team:{value:u.enabled??!1,options:ss}},{key:"mode",label:"Mode",help:"One judge; one from a vendor that did not write the code; or one judge per vendor (up to Judges), findings merged.",effective:a.mode,user:{value:e.user.mode,options:ha},team:{value:u.mode??"single",options:ha},locked:a.required.mode?"your team requires at least this":void 0},{key:"mode_required",label:"Required for everyone",help:"No person or run may review with fewer judges than the team's, in CI or anywhere.",effective:a.required.mode?"yes":"no",team:{value:u.mode_required??!1,options:[{value:!0,label:"yes"},{value:!1,label:"no"}]}},{key:"panel",label:"Panel",help:"Judges cross-examine what only one of them found; only what a majority confirms blocks. Required: no one may turn it off.",effective:a.panel?"on":"off",user:{value:e.user.panel,options:ss},team:{value:u.panel??"off",options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}]},locked:a.required.panel?"your team requires the panel":void 0},{key:"dismissals",label:"Dismissals",help:'Whether people may mark a reviewer finding "not a bug". Off: a wrong finding is fixed by improving the reviewer, a right one by fixing the code.',effective:a.dismissals?"allowed":"off",team:{value:u.dismissals??!1,options:[{value:!0,label:"allowed"},{value:!1,label:"off"}]}},{key:"judges",label:"Judges",help:"How many judges a full or panel review uses, each from a different vendor. Three give a real majority.",effective:String(a.judges),user:{value:e.user.judges,options:[{value:2,label:"2"},{value:3,label:"3"}]},team:{value:u.judges??2,options:[{value:2,label:"2"},{value:3,label:"3"}]}},{key:"escalate",label:"When to add judges",help:"Always, or only for a risky change or one a person has reviewed. The backtest shows whether that loses anything.",effective:a.escalate,user:{value:e.user.escalate,options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},team:{value:u.escalate??"always",options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},locked:d?"your team requires every review to be full":void 0}],v=t&&(e.teamFile||s);return i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[i.jsx("strong",{children:"Yours"})," applies to your own runs, in every repository on this machine, and wins over the team's except where the team set a floor. ",i.jsx("strong",{children:"Team"})," is"," ",e.teamFile?i.jsxs(i.Fragment,{children:["in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": a change here edits the file, and you commit it"]}):i.jsxs(i.Fragment,{children:["Rigour's defaults: this repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"})]}),".",!t&&" Open Studio from the link the terminal printed to change settings here."]}),t&&!e.teamFile&&!s&&i.jsxs("div",{className:"st-card st-row",style:{justifyContent:"space-between",marginBottom:12},children:[i.jsxs("span",{className:"st-sub",children:["Setting team defaults creates a ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": from then on this repository uses the team setup."]}),i.jsx("button",{className:"st-btn",onClick:()=>o(!0),children:"Set team defaults"})]}),i.jsx("div",{className:"st-stack",children:m.map(h=>i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:h.label}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:h.help})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:h.effective})," ",i.jsxs("span",{className:"st-sub",children:["· ",th[nh(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(al,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(ul,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:y=>r({[h.key]:y})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(ul,{label:`Team ${h.label}`,disabled:!v||n!==null,value:h.team.value,options:h.team.options,onChange:y=>l({[h.key]:y},!e.teamFile)})]})]},h.key))}),i.jsx(lh,{data:e}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(h=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",h]},h))})]})},Ic=({diff:e})=>i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{style:{fontSize:14},children:"rigour.yml changed"}),i.jsx("span",{className:"st-sub",children:"Commit it so the change reaches your team."})]}),i.jsx("pre",{className:"st-code",style:{marginTop:8},children:e.split(`
|
|
166
|
-
`).map((t,n)=>i.jsx("div",{className:`st-ln ${t.startsWith("+")?"add":t.startsWith("-")?"del":""}`,children:t},n))})]}),lh=({data:e})=>{var l;const t=((l=e.status)==null?void 0:l.today)??{runs:0,usd:0},{max_runs_per_day:n,max_usd_per_day:r}=e.effective;return i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:15},children:"Today in this repository"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:[F(t.runs,"agent run"),n!==void 0?` of ${n} allowed`:"",t.usd||r!==void 0?`, $${t.usd.toFixed(2)} reported${r!==void 0?` of $${r.toFixed(2)}`:""}`:"","."," ",n===void 0&&r===void 0?i.jsxs(i.Fragment,{children:["No daily cap: set ",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"})," or ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"})," in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),"."]}):"Past a cap, reviews are skipped until tomorrow (or cannot run, where your team requires the reviewer)."]})]})},sh=({data:e})=>{const t=new Set(e.available.filter(r=>r.installed&&e.effective.reviewers.includes(r.name)).map(r=>r.vendor)).size,n=e.effective.required.panel||e.effective.required.mode;return i.jsxs("section",{style:{marginTop:20},children:[i.jsx("h3",{style:{margin:"0 0 6px",fontSize:15,fontWeight:600},children:"Agent CLIs on this machine"}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px"},children:["The reviewer uses their own logins: no API key. ",t>=3?"Enough vendors for three judges.":t===2?"Enough for two judges; a third vendor, listed in the reviewers, allows three.":n?"Your team requires two judges from different vendors: with one, the review cannot run until another is installed.":"Two judges need two vendors; with one, the review runs with one judge and says so."]}),i.jsx("div",{className:"st-row",style:{flexWrap:"wrap",gap:8},children:e.available.map(r=>i.jsxs("span",{className:`st-chip ${r.installed?"ok":""}`,children:[r.binary,r.installed?` ${r.version??""}`:": not installed"]},r.name))})]})};function Fc(){return ge("/api/reviewer")}const ih=()=>{const{data:e,error:t,reload:n}=Fc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(eh,{data:e,canWrite:El(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},oh=()=>{const{data:e,error:t,reload:n}=Fc(),[r,l]=z.useState(null),[s,o]=z.useState(null),[a,u]=z.useState(null);if(t)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's settings: ",t,"."]});if(!e)return i.jsx("div",{className:"st-sub",children:"Loading…"});const d=async(m,v,h)=>{l(h),o(null);const y=await hn(m,"POST",JSON.stringify(v)),w=await y.json().catch(()=>({}));y.ok?m.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${y.status}`),l(null),n()};return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:"The reviewer"}),i.jsx("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:"A second opinion from other AI models, before a person reviews. Off until your team or you turn it on. With two or three judges from different vendors, a finding blocks only when most of them agree and it names what goes wrong."}),i.jsx(rh,{data:e,canWrite:El(),saving:r,onSave:m=>d("/api/reviewer/settings",m,Object.keys(m)[0]),onSaveTeam:(m,v)=>d("/api/reviewer/team",{patch:m,create:v},`team:${Object.keys(m)[0]}`)}),s&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:s})]}),a&&i.jsx(Ic,{diff:a}),i.jsx(sh,{data:e})]})},ah=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),uh=()=>{const{data:e,error:t}=ge("/api/pre-pr-review");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load reviews: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Review before the PR"}),i.jsx("p",{className:"st-lead",children:"What still stands between this branch and a person's review: the reviewer's verdict, then the risky functions your agent checked."}),i.jsx(ih,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Risky functions your agent checks"}),i.jsxs("p",{className:"st-sub",style:{margin:0,lineHeight:1.6},children:["Rigour picks the riskiest changed functions and asks specific questions about them. Your agent answers with its own model, or you do.",e.reviewed.total>0&&` So far: ${F(e.reviewed.total,"function")} reviewed, ${e.reviewed.fixed} fixed, ${e.reviewed.noIssue} with no issue.`]}),i.jsxs("section",{style:{marginTop:24},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Waiting"}),e.pending.length===0?i.jsx("div",{className:"st-empty",children:"No risky function in the current changes is waiting."}):i.jsx("div",{className:"st-stack",children:e.pending.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{className:"st-mono",style:{fontSize:14},children:n.function}),i.jsxs("span",{className:"st-mono st-sub",children:[n.file,":",n.start]})]}),i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:n.questions.map(r=>i.jsx("li",{children:r},r))})]},`${n.file}:${n.function}`))})]}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Checked"}),e.recent.length===0?i.jsx("div",{className:"st-empty",children:"Nothing reviewed yet. Agents review through rigour_review; you can run rigour review-task."}):i.jsx("div",{className:"st-stack",children:e.recent.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${n.verdict==="fixed"?"ok":""}`,children:n.verdict==="fixed"?"fixed":n.verdict==="no_issue"?"no issue":n.verdict})," ",i.jsx("strong",{className:"st-mono",style:{fontSize:14,marginLeft:8},children:n.function})]}),i.jsxs("span",{className:"st-sub",children:[ah(n.reviewer)," · ",Mt(n.at)]})]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:n.file}),n.note&&i.jsx("div",{style:{marginTop:10,fontSize:14,lineHeight:1.6},children:n.note})]},`${n.file}:${n.function}:${n.at}`))})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:24},children:["Model reviews with your own key: ",e.spend.runs===0?"none run here":`${F(e.spend.runs,"run")}, ${ch(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function ch(e){return e.runs-e.unpricedRuns===0?"cost not reported by the provider":`$${e.costUsd.toFixed(2)} observed${e.unpricedRuns?` (${e.unpricedRuns} without a reported cost)`:""}`}const ma={stopped:{label:"blocked",cls:"warn"},fixed:{label:"fixed",cls:"ok"},checked:{label:"checked",cls:""},reviewed:{label:"reviewed",cls:""},taught:{label:"told",cls:""},pr:{label:"PR",cls:"warn"}},is=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),dh=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),fh=()=>{const{data:e,error:t}=ge("/api/activity");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load activity: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Activity"}),i.jsx("p",{className:"st-lead",children:"Each block is one stretch of agent work. What Rigour blocked or got fixed is listed; routine checks fold away."}),e.sessions.length===0?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"Nothing yet. Activity appears as agents edit code, ask for reviews and finish their work."}):i.jsx("div",{className:"st-stack",style:{marginTop:24,gap:16},children:e.sessions.map(n=>i.jsx(ph,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},ph=({session:e})=>{const[t,n]=z.useState(!1),r=e.counts,l=r.fixed+r.reviewedFixed,s=[l&&`${F(l,"problem")} fixed`,r.stopped&&`${F(r.stopped,"edit")} blocked`,r.pr&&`${F(r.pr,"branch review")} with findings`,r.reviewed&&`${F(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${F(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${F(r.taught,"time")}`].filter(Boolean).join(" · ");return i.jsxs("section",{className:"st-card",style:{padding:0},children:[i.jsxs("div",{style:{padding:"16px 20px",borderBottom:e.highlights.length||t?"1px solid var(--border-dim)":0},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("strong",{children:[dh(e.start),", ",is(e.start),e.start!==e.end?`–${is(e.end)}`:""]}),e.rest.length>0&&i.jsx("button",{className:"st-btn",onClick:()=>n(!t),type:"button",style:{minHeight:32},children:t?"Hide routine":`Show ${F(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:s})]}),[...e.highlights,...t?e.rest:[]].map((o,a)=>i.jsxs("div",{className:"st-row",style:{padding:"12px 20px",borderTop:a?"1px solid var(--border-dim)":0,alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"ok":ma[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":ma[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:tr(o.text)}),o.detail&&i.jsx("div",{className:"st-sub",style:{marginTop:3,lineHeight:1.5},children:o.detail})]}),i.jsx("span",{className:"st-sub",style:{whiteSpace:"nowrap"},children:is(o.at)})]},`${o.at}-${a}`))]})},hh={flag:"this run",env:"environment",user:"yours",team:"team"},mh=({text:e,data:t,canWrite:n,saving:r,problem:l,diff:s,onSave:o})=>{const a=t.effective,u=a.required?`your team requires the ${e.name}`:void 0;return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:e.title}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[e.lead,!n&&" Open Studio from the link the terminal printed to change it here."]}),i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:e.row}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:e.rowHelp})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:a.enabled?"on":"off"})," ",i.jsxs("span",{className:"st-sub",children:["· ",hh[a.source]]}),u&&i.jsxs("span",{title:u,"aria-label":u,children:[" ",i.jsx(al,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),i.jsx(ul,{label:`Your ${e.name}`,withTeam:!0,disabled:!n||r,value:t.user??void 0,options:[{value:!0,label:"on"},{value:!1,label:"off"}],onChange:d=>o({user:d})}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(ul,{label:`Team ${e.name}`,disabled:!n||r,value:t.team,options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}],onChange:d=>o({team:d,create:!t.teamFile})})]})]}),!t.teamFile&&n&&i.jsxs("div",{className:"st-sub",style:{marginTop:8},children:["This repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": setting the team's value creates one, and from then on it uses the team setup."]}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(d=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",d]},d))}),l&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:l})]}),s&&i.jsx(Ic,{diff:s})]})},va={goal:{title:"The goal check",lead:i.jsxs(i.Fragment,{children:["Checks a change against what its pull request says it is for: files outside its ",i.jsx("span",{className:"st-mono",children:"Scope"})," or inside ",i.jsx("span",{className:"st-mono",children:"Out of scope"}),", and"," ",i.jsx("span",{className:"st-mono",children:"Done when"})," items naming a file it never touched, block. No model; a description without these sections is never checked."]}),row:"Check the goal",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--goal"})," and ",i.jsx("span",{className:"st-mono",children:"--no-goal"})," choose for one run."]}),name:"goal check"},outcomes:{title:"The outcome loop",lead:i.jsxs(i.Fragment,{children:["What happened after each pull request merged: CI on its merge commit, later commits and fixes on its files, a revert. Read with"," ",i.jsx("span",{className:"st-mono",children:"rigour outcomes"}),", one GitHub call per merged pull request until its window closes, then never again."]}),row:"Read outcomes",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--outcomes"})," and ",i.jsx("span",{className:"st-mono",children:"--no-outcomes"})," choose for one run."]}),name:"outcome loop"}},ga=({name:e})=>{const t=`/api/switches/${e}`,{data:n,error:r,reload:l}=ge(t),[s,o]=z.useState(!1),[a,u]=z.useState(null),[d,m]=z.useState(null);if(r)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the ",va[e].name,": ",r,"."]});if(!n)return i.jsx("div",{className:"st-sub",children:"Loading…"});const v=async h=>{o(!0),u(null);const y=await hn(t,"POST",JSON.stringify(h)),w=await y.json().catch(()=>({}));y.ok?"team"in h&&m(w.diff??null):u(w.error??`HTTP ${y.status}`),o(!1),l()};return i.jsx(mh,{text:va[e],data:n,canWrite:El(),saving:s,problem:a,diff:d,onSave:v})},vh={working:"ok","set up":"",broken:"bad",missing:"warn"},gh=()=>{const{data:e,error:t}=ge("/api/setup");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't check setup: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Setup"}),i.jsxs("p",{className:"st-lead",children:["What runs in this repository, and whether Rigour saw it work this week. The same checks run with ",i.jsx("span",{className:"st-mono",children:"rigour doctor"}),"."]}),i.jsx("div",{className:"st-stack",style:{marginTop:24},children:e.checks.map(n=>i.jsxs("div",{className:"st-card st-row",children:[i.jsx("span",{className:`st-chip ${vh[n.state]}`,style:{minWidth:72,textAlign:"center"},children:n.state}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15},children:n.name}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:n.detail})]}),n.fix&&n.state!=="working"&&i.jsx("span",{className:"st-mono st-sub",children:n.fix})]},n.id))}),i.jsx(ga,{name:"goal"}),i.jsx(ga,{name:"outcomes"}),i.jsx(oh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Who double-checks risky code"}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))",marginTop:12},children:[i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your agent's own model"}),i.jsx("span",{children:"Free"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["Your agent calls ",i.jsx("span",{className:"st-mono",children:"rigour_review"})," and answers Rigour's questions with the model you already pay for. No key."]})]}),i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your own API key"}),i.jsx("span",{children:"Pay per use"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["For code written without an agent, and for PR reviews. ",i.jsx("span",{className:"st-mono",children:"rigour settings set-key"}),"; keys are never shown here."]})]})]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Checking…"})})},ya=60,yh=({request:e,onClose:t})=>{const[n,r]=z.useState(ya),[l,s]=z.useState(null);z.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,ya-Math.floor((Date.now()-a)/1e3)));u();const d=window.setInterval(u,1e3);return()=>window.clearInterval(d)},[e.timestamp]);const o=async a=>{const u=await hn("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():s(u.status===403?"Studio was opened without the link from your terminal, or the request expired.":`That didn't go through (HTTP ${u.status}).`)};return i.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Approve a command",style:{position:"fixed",inset:0,background:"rgba(15, 17, 22, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:i.jsxs("div",{className:"st-card",style:{width:"min(560px, calc(100vw - 32px))",padding:24},children:[i.jsx("strong",{style:{fontSize:18},children:"Your agent wants to run a command"}),i.jsx("pre",{className:"st-code st-mono",style:{padding:"12px 14px",marginTop:14,whiteSpace:"pre-wrap"},children:e.command}),e.firewallDecision&&e.firewallDecision!=="allow"&&i.jsxs("div",{className:"st-sub",style:{marginTop:10},children:["Rigour's pre-check: ",e.firewallDecision,e.firewallReason?`: ${e.firewallReason}`:""]}),i.jsx("div",{className:"st-sub",style:{marginTop:10},children:n>0?`Denied automatically in ${n}s if nobody answers.`:"Time ran out: the request was denied."}),l&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:l}),i.jsxs("div",{className:"st-row",style:{marginTop:18,justifyContent:"flex-end"},children:[i.jsx("button",{className:"st-btn",onClick:t,type:"button",children:"Close"}),i.jsx("button",{className:"st-btn",onClick:()=>o("reject"),type:"button",disabled:n===0,children:"Deny"}),i.jsx("button",{className:"st-btn primary",onClick:()=>o("approve"),type:"button",disabled:n===0,children:"Allow"})]})]})})},xa="rigour-theme-v2",os=[{id:"week",label:"This week",icon:Np,page:e=>i.jsx(Ap,{onNavigate:e})},{id:"progress",label:"Progress",icon:Pp,page:()=>i.jsx(Kp,{})},{id:"only",label:"Only Rigour",icon:Lp,page:()=>i.jsx(Yp,{})},{id:"learns",label:"How it learns",icon:Sp,page:()=>i.jsx(Xp,{})},{id:"context",label:"Agent context",icon:wp,page:()=>i.jsx(Zp,{})},{id:"reviews",label:"Review",icon:Cp,page:()=>i.jsx(uh,{})},{id:"activity",label:"Activity",icon:ti,page:()=>i.jsx(fh,{})},{id:"setup",label:"Setup",icon:Op,page:()=>i.jsx(gh,{})}],xh=6e4;function wh(){const[e,t]=z.useState(()=>{try{return localStorage.getItem(xa)||"light"}catch{return"light"}}),[n,r]=z.useState("week"),[l,s]=z.useState(null),[o,a]=z.useState("connecting"),[u,d]=z.useState(null),[m,v]=z.useState(null),[h,y]=z.useState(!0),[w,k]=z.useState(!1),O=z.useCallback(async()=>{y(!0);try{const c=await fetch("/api/health"),p=await c.json();v(c.ok?p:{error:p.error||`HTTP ${c.status}`})}catch(c){v({error:c instanceof Error?c.message:String(c)})}finally{y(!1)}},[]);z.useEffect(()=>{const c=new EventSource("/api/events");return c.onopen=()=>a("live"),c.onerror=()=>a("offline"),c.onmessage=p=>{try{const g=JSON.parse(p.data),j=!g.timestamp||Date.now()-Date.parse(g.timestamp)<xh;g.type==="interception_requested"&&j&&d(g)}catch{}},fetch("/api/info").then(p=>p.json()).then(s).catch(()=>s(null)),()=>c.close()},[]),z.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(xa,e)}catch{}},[e]);const f=os.find(c=>c.id===n)??os[0];return i.jsxs("div",{className:"studio",children:[i.jsxs("aside",{className:"sidebar glass-shell",children:[i.jsxs("div",{className:"brand",children:[i.jsx("div",{className:"logo-icon",children:i.jsx(_p,{size:18})}),i.jsx("span",{children:"Rigour"}),(l==null?void 0:l.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",l.studioVersion]})]}),i.jsx("nav",{children:os.map(c=>i.jsxs("button",{className:`nav-item ${c.id===f.id?"active":""}`,onClick:()=>r(c.id),type:"button",children:[i.jsx(c.icon,{size:18}),i.jsx("span",{children:c.label})]},c.id))}),l&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:l.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(al,{size:14}),i.jsx("span",{children:l.teamSync?"Synced with your team":"Stored on this machine"})]})})]}),i.jsxs("main",{className:"main-content",children:[i.jsxs("header",{className:"glass-shell",children:[i.jsx("div",{className:"header-left",children:l&&i.jsxs("div",{className:"project-identity",children:[i.jsx(jp,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:l.projectName}),l.projectVersion&&i.jsxs("span",{className:"project-version-pill",children:["v",l.projectVersion]}),l.branch&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:l.branch}),i.jsx("span",{className:"project-path",children:l.projectPath})]})}),i.jsxs("div",{className:"header-right",children:[i.jsx("button",{type:"button",className:"connection-status",onClick:()=>{k(c=>!c),O()},"aria-expanded":w,title:"Studio receives Rigour's events live",children:i.jsxs("div",{className:`status-indicator ${o}`,children:[i.jsx("div",{className:"pulse-emitter"}),i.jsx("span",{children:o==="live"?"Live":o==="offline"?"Offline":"Connecting"})]})}),i.jsx("button",{className:"theme-toggle",onClick:()=>t(c=>c==="dark"?"light":"dark"),"aria-label":"Toggle theme",type:"button",children:e==="dark"?i.jsx(zp,{size:18}):i.jsx(Ep,{size:18})})]})]}),w&&i.jsxs("div",{className:"health-popover",children:[i.jsxs("div",{className:"health-popover-title",children:[i.jsx("strong",{children:"Rigour system health"}),i.jsx("button",{type:"button",onClick:()=>k(!1),"aria-label":"Close health",children:i.jsx(Dp,{size:15})})]}),i.jsx(Ip,{data:m,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!El()&&i.jsxs("div",{className:"overview-banner",role:"note",children:[i.jsx(al,{size:18}),i.jsxs("div",{children:[i.jsx("strong",{children:"Read-only"}),i.jsx("p",{children:"Open Studio from the link printed in your terminal to dismiss findings, keep lessons or answer an approval."})]})]}),i.jsx($p,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(yh,{request:u,onClose:()=>d(null)})]})}Hp();as.createRoot(document.getElementById("root")).render(i.jsx(ii.StrictMode,{children:i.jsx(wh,{})}));
|
|
165
|
+
*/const $p=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Ip extends ii.Component{constructor(){super(...arguments);Ji(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){n.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}render(){return this.state.error?i.jsxs("div",{className:"empty-state glass-card",role:"alert",children:[i.jsx(Lp,{size:48}),i.jsx("h3",{children:"This view could not be displayed"}),i.jsx("p",{children:this.state.error.message||"Studio received data it could not render."}),i.jsxs("button",{className:"refresh-btn",type:"button",onClick:()=>this.setState({error:null}),children:[i.jsx(Mc,{size:16})," Retry view"]})]}):this.props.children}}function Dt({icon:e,label:t,status:n,detail:r}){const l=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${l}`,children:[i.jsx(e,{size:15,"aria-hidden":"true"}),i.jsxs("span",{children:[i.jsx("strong",{children:t}),i.jsx("small",{children:r})]}),i.jsx("span",{className:"health-state",children:n})]})}function Fp({data:e,loading:t,stale:n,onRetry:r}){var s,o,a,u,d,m,v,h,y,w,k,O,f,c,p,g,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(ti,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(ua,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Mc,{size:14})," Retry"]})]});const l=Object.values(((s=e.caches)==null?void 0:s.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx(Dt,{icon:kp,label:"Index",status:((o=e.index)==null?void 0:o.status)??"missing",detail:`${((a=e.index)==null?void 0:a.patterns)??0} patterns · ${((u=e.index)==null?void 0:u.files)??0} files`}),i.jsx(Dt,{icon:Mp,label:"Graph",status:((d=e.graph)==null?void 0:d.status)??"missing",detail:`${((m=e.graph)==null?void 0:m.nodes)??0} nodes · ${((v=e.graph)==null?void 0:v.edges)??0} edges`}),i.jsx(Dt,{icon:xp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((y=e.semantic)==null?void 0:y.message)??"Background enrichment"}),i.jsx(Dt,{icon:Tp,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${l}/4 layers populated`}),i.jsx(Dt,{icon:ti,label:"Learning",status:((k=e.learning)==null?void 0:k.status)??"idle",detail:`${((O=e.learning)==null?void 0:O.observations)??0} interactions · ${((f=e.learning)==null?void 0:f.total)??0} lessons`}),i.jsx(Dt,{icon:ua,label:"Storage",status:((c=e.storage)==null?void 0:c.connectivity)??"local",detail:((p=e.storage)==null?void 0:p.connectivity)==="offline"?`${((g=e.storage)==null?void 0:g.queuedChanges)??0} queued`:((j=e.storage)==null?void 0:j.mode)??"local"})]})}const Oc="rigour-studio-key",Dp="x-rigour-studio-key";function Hp(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem(Oc,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function El(){return $c().length>0}function $c(){try{return sessionStorage.getItem(Oc)??""}catch{return""}}function Mt(e,t,n,r="application/json"){const l={[Dp]:$c()};return n!==void 0&&(l["Content-Type"]=r),fetch(e,{method:t,headers:l,body:n})}const Ic={edit:"while the agent was writing",review:"when the agent checked its work",stop:"before the agent said done",pr:"at the pull request"};function Ot(e,t=Date.now()){const n=Math.round((t-Date.parse(e))/6e4);if(!Number.isFinite(n))return"";if(n<60)return`${Math.max(1,n)} min ago`;const r=Math.round(n/60);return r<48?`${r} h ago`:new Date(e).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function D(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function ge(e){const[t,n]=z.useState(null),[r,l]=z.useState(null),s=z.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):l(`HTTP ${o.status}`)).catch(o=>l(o instanceof Error?o.message:String(o)))},[e]);return z.useEffect(s,[s]),{data:t,error:r,reload:s}}function tr(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?ii.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}const ca="rigour-intro-hidden",Ap=({onNavigate:e})=>{const{data:t,error:n,reload:r}=ge("/api/week"),[l,s]=z.useState(null),[o,a]=z.useState(()=>{try{return localStorage.getItem(ca)!=="1"}catch{return!0}});if(n)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load this week: ",n,"."]})});if(!t)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const u=()=>{try{localStorage.setItem(ca,"1")}catch{}a(!1)},d=t.needs;return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Wp,{onHide:u}),i.jsx("h1",{className:"st-h1",children:d.length===0?"Nothing needs you.":`${D(d.length,"thing needs","things need")} you.`}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${D(t.stopped.total,"problem")} stopped and fixed before a pull request this week.`:t.recordingSince?"Nothing was stopped this week.":"Rigour has not recorded any agent work in this repository yet."}),d.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:18},children:d.map(m=>i.jsx(Up,{need:m,onDone:r},`${m.rule}:${m.file}`))}),i.jsxs("div",{className:"st-grid",children:[i.jsxs("section",{children:[i.jsx("h2",{style:{margin:"0 0 14px",fontSize:18,fontWeight:600},children:"What Rigour stopped this week"}),t.stories.length===0?i.jsx("div",{className:"st-empty",children:"When an agent fixes something Rigour caught, it appears here with the code change."}):i.jsx("div",{className:"st-stack",children:t.stories.map(m=>i.jsx(Vp,{story:m,open:l===m.id,onToggle:()=>s(l===m.id?null:m.id)},m.id))})]}),i.jsxs("aside",{className:"st-side",children:[i.jsxs("div",{className:"st-card",children:[i.jsx("div",{className:"st-big",children:t.stopped.total}),i.jsx("div",{style:{fontSize:14,marginTop:6},children:"stopped before a PR"}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:[t.stopped.byStage.edit," while writing · ",t.stopped.byStage.review," on review · ",t.stopped.byStage.stop," before done"]}),i.jsx(Bp,{data:t})]}),i.jsxs("div",{className:"st-card",children:[i.jsx("div",{style:{fontSize:15,fontWeight:600},children:"Is it noisy?"}),i.jsx("div",{style:{fontSize:14,marginTop:8,lineHeight:1.6},children:t.raised===0?"Nothing raised this week.":`Rigour raised ${D(t.raised,"problem")} this week. You overruled ${t.overruled}.`}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:'Say "not a bug" once and Rigour stops raising it.'})]}),i.jsx("button",{className:"st-btn",onClick:()=>e("learns"),type:"button",children:"See how it learns"}),t.recordingSince&&i.jsxs("div",{className:"st-sub",children:["Recording since ",new Date(t.recordingSince).toLocaleDateString()]})]})]})]})},Wp=({onHide:e})=>i.jsxs("section",{className:"st-card",style:{marginBottom:28},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",marginBottom:16},children:[i.jsx("strong",{children:"How Rigour works"}),i.jsx("button",{className:"st-btn",onClick:e,type:"button",children:"Got it"})]}),i.jsxs("div",{className:"st-steps",children:[i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"1"}),i.jsxs("div",{children:["Your AI agent writes code",i.jsx("div",{className:"st-sub",children:"Claude Code, Cursor, any agent."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"2"}),i.jsxs("div",{children:["Rigour checks every change",i.jsx("div",{className:"st-sub",children:"It stops the agent only on problems it can prove; the agent fixes them."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"3"}),i.jsxs("div",{children:["Your PR arrives clean",i.jsx("div",{className:"st-sub",children:"A short PR review catches the rest. Every fix teaches Rigour your code."})]})]})]})]}),Up=({need:e,onDone:t})=>{const[n,r]=z.useState("idle"),l=async()=>{const o=window.prompt("Why is this not a bug? Rigour keeps the reason with the dismissal.");if(!(o!=null&&o.trim())||!e.key)return;(await Mt("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},s=async()=>{try{await navigator.clipboard.writeText(`Rigour found a problem you introduced: ${e.title} in ${e.file}. Fix it, then run rigour review.`),r("copied")}catch{r("failed")}};return i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["found ",e.stage?Ic[e.stage]:""," · ",Ot(e.openedAt)]})]}),i.jsx("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:e.title}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.file}),i.jsxs("div",{className:"st-row",style:{marginTop:14,flexWrap:"wrap"},children:[i.jsx("button",{className:"st-btn primary",onClick:s,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:l,type:"button",children:"It's fine, not a bug"}),n==="failed"&&i.jsx("span",{className:"st-sub",children:"That didn't work. Open Studio from the link in your terminal and try again."})]})]})},Vp=({story:e,open:t,onToggle:n})=>i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:n,type:"button","aria-expanded":t,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip",children:Ic[e.stage]}),i.jsx("span",{className:"st-sub",children:Ot(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:tr(e.title)}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-mono",children:e.file})," · fixed by the agent"]})]}),t&&i.jsxs("div",{className:"st-story-body",children:[e.diff.length>0&&i.jsx("div",{className:"st-code st-mono",children:e.diff.map((r,l)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},l))}),e.details&&e.details!==e.title&&i.jsxs("div",{style:{marginTop:e.diff.length?16:0},children:[i.jsx("strong",{style:{fontSize:13},children:e.stage==="review"&&e.rule==="review"?"What the agent fixed":"How Rigour knew"}),i.jsx("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:tr(e.details)})]})]})]}),Bp=({data:e})=>{const[t,n]=z.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${D(e.stopped.total,"problem")} before a pull request this week: ${e.stopped.byStage.edit} while the agent was writing, ${e.stopped.byStage.review} when it checked its work, ${e.stopped.byStage.stop} before it said done. ${e.overruled} of ${e.raised} overruled.`,l=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:l,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},Qp=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),ns=(e,t)=>e.reduce((n,r)=>n+t(r),0),Kp=()=>{var s;const{data:e,error:t}=ge("/api/progress");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load progress: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.weeks.slice(-4),r=e.weeks.slice(0,-4),l=((s=e.weeks[e.weeks.length-1])==null?void 0:s.lessons)??0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour is shaping this code"}),i.jsxs("p",{className:"st-lead",children:["Last 4 weeks: ",D(ns(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${ns(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",D(ns(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",D(l,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(Ht,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(Ht,{title:"Repeat mistakes stopped",hint:"a mistake Rigour had already learned, caught again before a PR",weeks:e.weeks,value:o=>o.repeatsStopped}),i.jsx(Ht,{title:"Repeat mistakes that reached a PR",hint:"lower is better",weeks:e.weeks,value:o=>o.repeatsReachedPr,empty:"Shows once branch reviews run on this machine, for example rigour review --base main in a pre-push hook."}),i.jsx(Ht,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(Ht,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(Ht,{title:"Lessons learned",hint:"total by the end of each week",weeks:e.weeks,value:o=>o.lessons})]}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Lessons that stopped the most repeats"}),e.topLessons.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. A lesson ranks here once the mistake it describes is caught again and stopped."}):i.jsx("ol",{style:{margin:"12px 0 0",paddingLeft:20,lineHeight:1.6},children:e.topLessons.map(o=>i.jsxs("li",{style:{marginBottom:8},children:[tr(o.text),i.jsxs("div",{className:"st-sub",children:[D(o.stoppedInDevelopment??0,"repeat")," stopped · ",o.scope==="team"?"shared with team":o.scope]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Checks your team acts on"}),e.checks.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:'Each fix and each "not a bug" scores the check that raised it. Scores appear after the first one.'}):i.jsx("div",{className:"st-stack",style:{marginTop:12,gap:8},children:e.checks.map(o=>i.jsxs("div",{className:"st-row",style:{gap:10},children:[i.jsxs("span",{style:{width:44,fontWeight:600},children:[Math.round(o.precision*100),"%"]}),i.jsx("span",{style:{flex:1,fontSize:14},children:o.check}),i.jsxs("span",{className:"st-sub",children:[o.fixed," fixed · ",o.dismissed," overruled"]}),o.muted&&i.jsx("span",{className:"st-chip",children:"quiet"})]},o.check))})]})]})]})},Ht=({title:e,hint:t,weeks:n,value:r,empty:l})=>{const s=n.map(r),o=s.filter(u=>u!==null),a=Math.max(1,...o);return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:e}),i.jsx("span",{className:"st-sub",children:t})]}),o.length===0&&l?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:l}):i.jsx("div",{className:"st-bars",style:{height:90,gap:12},children:n.map((u,d)=>i.jsxs("div",{className:"st-bar",children:[i.jsx("div",{style:{fontSize:12},children:s[d]??"—"}),i.jsx("span",{style:{height:`${s[d]===null?2:Math.max(2,s[d]/a*56)}px`,opacity:s[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:Qp(u.from)})]},u.from))})]})},Yp=()=>{const{data:e,error:t}=ge("/api/week"),n=ge("/api/setup").data,r=n==null?void 0:n.checks.some(s=>s.id==="stop"&&s.state!=="missing"&&s.state!=="broken");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const l=e.stories.filter(s=>s.stage==="stop");return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What only Rigour caught"}),i.jsx("p",{className:"st-lead",children:"Counted only where Rigour can show it. A bug stopped before a PR never reached your other reviewers, so it is not counted against them."}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Your agent tried to finish with a bug"}),i.jsx("p",{className:"st-lead",style:{fontSize:14},children:e.agentSaidDone===0&&n&&!r?"The stop hook is not set up in this repository, so Rigour cannot see an agent finish. Run rigour setup.":e.agentSaidDone===0?"This week no agent tried to finish with a problem Rigour could prove.":`This week an agent tried to finish with a problem Rigour proved ${D(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:l.map(s=>i.jsxs("div",{className:"st-card st-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15,lineHeight:1.5},children:s.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:s.file})," · ",Ot(s.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},s.id))})]}),i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Rigour and your other PR reviewers"}),i.jsxs("div",{className:"st-empty",style:{marginTop:14},children:[e.prCatches===null?"No branch reviews recorded on this machine yet.":`Branch reviews here reported ${D(e.prCatches,"problem")} this week.`," ","Side by side with teammates and review bots (both caught it, only Rigour, only them) needs the PR's review comments; it comes with the PR integration."]})]})]})},rs=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",qp=({lesson:e,onDecide:t,onDecideReview:n})=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",alignItems:"flex-start"},children:[i.jsx("div",{style:{fontSize:17,lineHeight:1.5,flex:1},children:tr(e.text)}),i.jsx("span",{className:"st-chip",children:e.scope==="team"?"shared with team":e.scope})]}),i.jsxs("div",{className:"st-journey",children:[i.jsxs("div",{style:{background:"var(--bg-surface)"},children:[i.jsx("div",{className:"st-sub",children:"Learned"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:e.learnedFrom})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Agents told"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.told)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Stopped in development"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.stoppedInDevelopment,e.origin==="development")})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reached a PR again"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rs(e.reachedPr,e.origin==="development")})]})]}),e.takenBack&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"taken back"})," ",i.jsx("span",{className:"st-sub",children:e.takenBack.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"Later pull requests a review found repeating it merged and stayed fine. Keep telling agents anyway?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote again"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"rejected"),type:"button",children:"Drop"})]})]}),e.reclassified&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"back to candidate"})," ",i.jsx("span",{className:"st-sub",children:e.reclassified.detail})]}),e.reclassified.evidence.map(r=>i.jsx("div",{className:"st-sub",style:{marginTop:4},children:r},r)),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"A later fix on its lines used to make this a lesson by itself; now a person decides. Keep telling agents?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.suggested&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip",children:"a later fix changed these lines"})," ",i.jsx("span",{className:"st-sub",children:e.suggested.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsxs("span",{className:"st-sub",children:["The pull request (#",e.suggested.pr,") left this point alone, and a later fix changed its lines. If that fix is about this point, the lesson was right."]}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.canDecide&&!e.takenBack&&!e.suggested&&!e.reclassified&&i.jsxs("div",{className:"st-row",style:{marginTop:14},children:[i.jsx("span",{className:"st-sub",children:e.scope==="team"?"Shared by a teammate. Give it to everyone's agents?":"Seen once. Keep it so your agents get told?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>t(e.id,e.scope==="team"?"promoted":"validated"),type:"button",children:e.scope==="team"?"Share with team":"Keep"}),i.jsx("button",{className:"st-btn",onClick:()=>t(e.id,"rejected"),type:"button",children:"Drop"})]})]}),Xp=()=>{const{data:e,error:t,reload:n}=ge("/api/learning");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load lessons: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const r=async(o,a)=>{(await Mt("/api/lessons","POST",JSON.stringify({id:o,state:a}))).ok&&n()},l=async(o,a)=>{(await Mt("/api/review-lessons","POST",JSON.stringify({id:o,decision:a}))).ok&&n()},s=Math.max(1,...e.weeks.map(o=>Math.max(o.stoppedInDevelopment,o.reachedPr??0)));return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour learns your codebase"}),i.jsx("p",{className:"st-lead",children:"Every mistake fixed in development or caught at a PR becomes a lesson. Your agents are told before they write similar code, so the same mistake is stopped earlier next time."}),i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Repeat mistakes, by week"}),i.jsx("span",{className:"st-sub",children:"a mistake Rigour had already learned"})]}),i.jsx("div",{className:"st-bars",children:e.weeks.map(o=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[o.stoppedInDevelopment," stopped",o.reachedPr===null?"":` · ${o.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,o.stoppedInDevelopment/s*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(o.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},o.from))}),!e.prRecorded&&i.jsxs("div",{className:"st-sub",style:{marginTop:14},children:["Repeats that reached a PR show once branch reviews run on this machine (",i.jsx("span",{className:"st-mono",children:"rigour review --base main"}),", for example in a pre-push hook). Reviews in CI stay in CI."]})]}),e.lessons.length===0?i.jsx("div",{className:"st-empty",children:"No lessons yet. They form when an agent fixes something Rigour reported, when a PR comment leads to a fix, or when you tell your agent to remember something."}):i.jsx("div",{className:"st-stack",children:e.lessons.map(o=>i.jsx(qp,{lesson:o,onDecide:r,onDecideReview:l},o.id))}),i.jsx(Gp,{})]})},Gp=()=>{var r,l,s;const e=ge("/api/learned-rules").data??[],t=Object.entries(((r=ge("/api/memory").data)==null?void 0:r.memories)??{}),n=(s=(l=ge("/api/index-stats").data)==null?void 0:l.stats)==null?void 0:s.totalPatterns;return i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Rules learned from fixes"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Checked on every edit, like a built-in check."}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. rigour learn turns an agent's fixes into rules once they hold up."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:e.map(o=>i.jsxs("li",{children:[o.message,i.jsxs("div",{className:"st-sub",children:[o.requirement," · ",o.appliesTo]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"What your agents were told to remember"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Facts saved with rigour_remember; agents recall them by meaning."}),t.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"Nothing saved yet."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:t.slice(0,12).map(([o,a])=>i.jsxs("li",{children:[i.jsx("strong",{children:o.replace(/_/g," ")}),": ",a.value.length>220?`${a.value.slice(0,220)}…`:a.value]},o))}),t.length>12&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:["and ",t.length-12," more"]})]}),typeof n=="number"&&n>0&&i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsxs("strong",{children:[n," functions indexed"]}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:"Before an agent writes a new helper, Rigour checks whether one already exists and points to it, so the codebase doesn't fill with near-copies."})]})]})},da=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),Zp=()=>{const{data:e,error:t}=ge("/api/context");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load agent context: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.week,r=n.scopes+n.recalls+n.lessonsTold+n.reuse.length===0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What Rigour gave your agents"}),i.jsx("p",{className:"st-lead",children:"Before an agent writes, it can ask Rigour where to look, what this team already knows, and whether the thing it is about to write exists. Preventing a mistake is cheaper than catching it."}),r?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"No agent asked Rigour for context this week. Agents use it through the Rigour tools (rigour_context_scope, rigour_recall, rigour_check_pattern); Setup shows whether they are connected."}):i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsx(fa,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${D(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${D(n.scopes,"request")}. About ${da(n.tokensReturned)} tokens returned out of ${da(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(fa,{title:"What this team knows",value:`${D(n.lessonsTold,"lesson")} told`,detail:`${D(n.recalls,"recall")} of saved facts and lessons. How it learns shows what each lesson stopped.`}),i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsx("strong",{children:"Pointed to code that already exists"}),n.reuse.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:"No duplicate was about to be written this week."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:n.reuse.map(l=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${l.action==="BLOCK"?"warn":""}`,children:l.action==="BLOCK"?"reuse":"similar"}),i.jsxs("div",{style:{flex:1,fontSize:14,lineHeight:1.5},children:["About to write ",i.jsx("span",{className:"st-mono",children:l.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:l.existing})]}),i.jsx("span",{className:"st-sub",children:Ot(l.at)})]},`${l.at}-${l.planned}`))})]})]}),i.jsx(Jp,{weeks:e.weeks})]})},fa=({title:e,value:t,detail:n})=>i.jsxs("section",{className:"st-card",children:[i.jsx("div",{className:"st-sub",children:e}),i.jsx("div",{style:{fontSize:22,fontWeight:600,marginTop:6,color:"var(--text-primary)"},children:t}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:n})]}),Jp=({weeks:e})=>{const t=e.filter(n=>n.scopes+n.recalls+n.lessonsTold+n.reuse>0).reverse();return i.jsxs("section",{className:"st-card",style:{marginTop:24,padding:0,overflowX:"auto"},children:[i.jsx("div",{style:{padding:"16px 20px 8px"},children:i.jsx("strong",{children:"Last 8 weeks"})}),t.length===0?i.jsx("div",{className:"st-sub",style:{padding:"0 20px 18px"},children:"No context requests in the last 8 weeks."}):i.jsxs("table",{className:"st-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Week of"}),i.jsx("th",{children:"Focused file lists"}),i.jsx("th",{children:"Files given"}),i.jsx("th",{children:"Recalls"}),i.jsx("th",{children:"Lessons told"}),i.jsx("th",{children:"Duplicates avoided"})]})}),i.jsx("tbody",{children:t.map(n=>i.jsxs("tr",{children:[i.jsx("td",{children:new Date(n.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),i.jsx("td",{children:n.scopes}),i.jsx("td",{children:n.scopes?`${n.filesReturned} of ${n.filesConsidered}`:"—"}),i.jsx("td",{children:n.recalls}),i.jsx("td",{children:n.lessonsTold}),i.jsx("td",{children:n.reuse})]},n.from))})]})]})},ls={single:"one judge",cross:"one judge from another vendor",full:"one judge per vendor, findings merged",panel:"a panel: only what a majority confirms blocks"},bp=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",eh=({data:e,canWrite:t,onChange:n})=>{var l,s,o,a;const r=(l=e.status)==null?void 0:l.last;return i.jsxs("section",{style:{marginTop:24},children:[i.jsxs("h2",{style:{margin:"0 0 12px",fontSize:18,fontWeight:600},children:["The reviewer's verdict on ",e.branch]}),((s=e.status)==null?void 0:s.running)&&i.jsxs("div",{className:"st-sub",style:{marginBottom:8},children:["Reviewing ",e.status.running.head.slice(0,9)," now."]}),((o=e.status)==null?void 0:o.attempt)&&i.jsxs("div",{className:"st-card",style:{marginBottom:12},children:[i.jsx("span",{className:"st-chip warn",children:e.status.attempt.outcome==="skipped"?"skipped":"could not run"})," ",i.jsxs("span",{className:"st-sub",children:["The last review, of ",e.status.attempt.head.slice(0,9)," ",Ot(e.status.attempt.at),": ",e.status.attempt.reason]})]}),r?i.jsxs("div",{className:"st-stack",children:[i.jsx("div",{className:"st-card st-row",style:{justifyContent:"space-between"},children:i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${r.open.length?"bad":"ok"}`,children:r.open.length?`${D(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${ls[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",Ot(r.at)]})]})}),r.ran&&(r.ran.degraded||r.ran.escalation||r.ran.asked!==r.ran.ran)&&i.jsxs("div",{className:"st-sub",children:["Asked for ",ls[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",ls[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(pa,{item:u,canWrite:t&&e.effective.dismissals,onChange:n},u.id)),r.disputed.length>0&&i.jsx("div",{className:"st-sub",style:{marginTop:8},children:"No majority, so these never block:"}),r.disputed.map(u=>i.jsx(pa,{item:u,disputed:!0,canWrite:!1,onChange:n},u.id))]}):!((a=e.status)!=null&&a.attempt)&&i.jsxs("div",{className:"st-empty",children:["No verdict yet. Run ",i.jsx("span",{className:"st-mono",children:"rigour review --reviewer"}),", or push with the reviewer on."]})]})},pa=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[l,s]=z.useState(""),[o,a]=z.useState(!1),[u,d]=z.useState(null),m=async()=>{const v=await Mt("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:l}));v.ok?r():d((await v.json().catch(()=>({}))).error??`HTTP ${v.status}`)};return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",gap:12},children:[i.jsx("strong",{style:{fontSize:14},children:e.issue}),i.jsx("span",{className:"st-mono st-sub",children:bp(e)})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[t?i.jsx("span",{className:"st-chip warn",children:"disputed"}):i.jsx("span",{className:"st-chip",children:e.class}),e.reviewer&&i.jsxs(i.Fragment,{children:[" found by ",e.reviewer.split("+").join(" and ")]})]}),e.consequence&&i.jsxs("div",{style:{marginTop:8,fontSize:14},children:["What goes wrong: ",e.consequence]}),e.evidence&&i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.evidence}),n&&e.kind!=="prior"&&(o?i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[i.jsx("input",{"aria-label":"Why it is not a bug",value:l,onChange:v=>s(v.target.value),placeholder:"Why it is not a bug",style:{flex:1,minHeight:36,padding:"0 10px",borderRadius:8,border:"1px solid var(--text-dim)",background:"var(--bg-card)",color:"var(--text-primary)"}}),i.jsx("button",{className:"st-btn",disabled:l.trim().length<5,onClick:m,children:"Dismiss"})]}):i.jsx("button",{className:"st-btn",style:{marginTop:10},onClick:()=>a(!0),children:"Not a bug"})),u&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-chip bad",children:"not dismissed"})," ",u]})]})},ul=({label:e,value:t,options:n,disabled:r,withTeam:l,onChange:s})=>{const o=l?[{value:null,label:"Team"},...n]:n,a=t===void 0?null:t;return i.jsx("div",{className:"st-seg",role:"radiogroup","aria-label":e,children:o.map(u=>{const d=JSON.stringify(u.value)===JSON.stringify(a);return i.jsx("button",{type:"button",role:"radio","aria-checked":d,className:d?"on":"",disabled:r,onClick:()=>!d&&s(u.value),children:u.label},u.label)})})},th={flag:"this run",env:"environment",user:"yours",team:"team"};function nh(e,t){return e.key==="mode"?t.source.mode:e.key==="panel"?t.source.panel:e.key==="escalate"&&(t.required.panel||t.required.mode)?"team":e.user&&e.user.value!==void 0?"user":"team"}const ss=[{value:!0,label:"on"},{value:!1,label:"off"}],ha=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],rh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:l})=>{const[s,o]=z.useState(!1),a=e.effective,u=e.team,d=a.required.panel||a.required.mode,m=[{key:"enabled",label:"Review at push",help:"Ask the reviewer when you push a branch that has an open pull request.",effective:a.enabled?"on":"off",user:{value:e.user.enabled,options:ss},team:{value:u.enabled??!1,options:ss}},{key:"mode",label:"Mode",help:"One judge; one from a vendor that did not write the code; or one judge per vendor (up to Judges), findings merged.",effective:a.mode,user:{value:e.user.mode,options:ha},team:{value:u.mode??"single",options:ha},locked:a.required.mode?"your team requires at least this":void 0},{key:"mode_required",label:"Required for everyone",help:"No person or run may review with fewer judges than the team's, in CI or anywhere.",effective:a.required.mode?"yes":"no",team:{value:u.mode_required??!1,options:[{value:!0,label:"yes"},{value:!1,label:"no"}]}},{key:"panel",label:"Panel",help:"Judges cross-examine what only one of them found; only what a majority confirms blocks. Required: no one may turn it off.",effective:a.panel?"on":"off",user:{value:e.user.panel,options:ss},team:{value:u.panel??"off",options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}]},locked:a.required.panel?"your team requires the panel":void 0},{key:"dismissals",label:"Dismissals",help:'Whether people may mark a reviewer finding "not a bug". Off: a wrong finding is fixed by improving the reviewer, a right one by fixing the code.',effective:a.dismissals?"allowed":"off",team:{value:u.dismissals??!1,options:[{value:!0,label:"allowed"},{value:!1,label:"off"}]}},{key:"judges",label:"Judges",help:"How many judges a full or panel review uses, each from a different vendor. Three give a real majority.",effective:String(a.judges),user:{value:e.user.judges,options:[{value:2,label:"2"},{value:3,label:"3"}]},team:{value:u.judges??2,options:[{value:2,label:"2"},{value:3,label:"3"}]}},{key:"escalate",label:"When to add judges",help:"Always, or only for a risky change or one a person has reviewed. The backtest shows whether that loses anything.",effective:a.escalate,user:{value:e.user.escalate,options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},team:{value:u.escalate??"always",options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},locked:d?"your team requires every review to be full":void 0}],v=t&&(e.teamFile||s);return i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[i.jsx("strong",{children:"Yours"})," applies to your own runs, in every repository on this machine, and wins over the team's except where the team set a floor. ",i.jsx("strong",{children:"Team"})," is"," ",e.teamFile?i.jsxs(i.Fragment,{children:["in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": a change here edits the file, and you commit it"]}):i.jsxs(i.Fragment,{children:["Rigour's defaults: this repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"})]}),".",!t&&" Open Studio from the link the terminal printed to change settings here."]}),t&&!e.teamFile&&!s&&i.jsxs("div",{className:"st-card st-row",style:{justifyContent:"space-between",marginBottom:12},children:[i.jsxs("span",{className:"st-sub",children:["Setting team defaults creates a ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": from then on this repository uses the team setup."]}),i.jsx("button",{className:"st-btn",onClick:()=>o(!0),children:"Set team defaults"})]}),i.jsx("div",{className:"st-stack",children:m.map(h=>i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:h.label}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:h.help})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:h.effective})," ",i.jsxs("span",{className:"st-sub",children:["· ",th[nh(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(al,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(ul,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:y=>r({[h.key]:y})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(ul,{label:`Team ${h.label}`,disabled:!v||n!==null,value:h.team.value,options:h.team.options,onChange:y=>l({[h.key]:y},!e.teamFile)})]})]},h.key))}),i.jsx(lh,{data:e}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(h=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",h]},h))})]})},Fc=({diff:e})=>i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{style:{fontSize:14},children:"rigour.yml changed"}),i.jsx("span",{className:"st-sub",children:"Commit it so the change reaches your team."})]}),i.jsx("pre",{className:"st-code",style:{marginTop:8},children:e.split(`
|
|
166
|
+
`).map((t,n)=>i.jsx("div",{className:`st-ln ${t.startsWith("+")?"add":t.startsWith("-")?"del":""}`,children:t},n))})]}),lh=({data:e})=>{var l;const t=((l=e.status)==null?void 0:l.today)??{runs:0,usd:0},{max_runs_per_day:n,max_usd_per_day:r}=e.effective;return i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:15},children:"Today in this repository"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:[D(t.runs,"agent run"),n!==void 0?` of ${n} allowed`:"",t.usd||r!==void 0?`, $${t.usd.toFixed(2)} reported${r!==void 0?` of $${r.toFixed(2)}`:""}`:"","."," ",n===void 0&&r===void 0?i.jsxs(i.Fragment,{children:["No daily cap: set ",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"})," or ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"})," in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),"."]}):"Past a cap, reviews are skipped until tomorrow (or cannot run, where your team requires the reviewer)."]})]})},sh=({data:e})=>{const t=new Set(e.available.filter(r=>r.installed&&e.effective.reviewers.includes(r.name)).map(r=>r.vendor)).size,n=e.effective.required.panel||e.effective.required.mode;return i.jsxs("section",{style:{marginTop:20},children:[i.jsx("h3",{style:{margin:"0 0 6px",fontSize:15,fontWeight:600},children:"Agent CLIs on this machine"}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px"},children:["The reviewer uses their own logins: no API key. ",t>=3?"Enough vendors for three judges.":t===2?"Enough for two judges; a third vendor, listed in the reviewers, allows three.":n?"Your team requires two judges from different vendors: with one, the review cannot run until another is installed.":"Two judges need two vendors; with one, the review runs with one judge and says so."]}),i.jsx("div",{className:"st-row",style:{flexWrap:"wrap",gap:8},children:e.available.map(r=>i.jsxs("span",{className:`st-chip ${r.installed?"ok":""}`,children:[r.binary,r.installed?` ${r.version??""}`:": not installed"]},r.name))})]})};function Dc(){return ge("/api/reviewer")}const ih=()=>{const{data:e,error:t,reload:n}=Dc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(eh,{data:e,canWrite:El(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},oh=()=>{const{data:e,error:t,reload:n}=Dc(),[r,l]=z.useState(null),[s,o]=z.useState(null),[a,u]=z.useState(null);if(t)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's settings: ",t,"."]});if(!e)return i.jsx("div",{className:"st-sub",children:"Loading…"});const d=async(m,v,h)=>{l(h),o(null);const y=await Mt(m,"POST",JSON.stringify(v)),w=await y.json().catch(()=>({}));y.ok?m.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${y.status}`),l(null),n()};return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:"The reviewer"}),i.jsx("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:"A second opinion from other AI models, before a person reviews. Off until your team or you turn it on. With two or three judges from different vendors, a finding blocks only when most of them agree and it names what goes wrong."}),i.jsx(rh,{data:e,canWrite:El(),saving:r,onSave:m=>d("/api/reviewer/settings",m,Object.keys(m)[0]),onSaveTeam:(m,v)=>d("/api/reviewer/team",{patch:m,create:v},`team:${Object.keys(m)[0]}`)}),s&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:s})]}),a&&i.jsx(Fc,{diff:a}),i.jsx(sh,{data:e})]})},ah=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),uh=()=>{const{data:e,error:t}=ge("/api/pre-pr-review");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load reviews: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Review before the PR"}),i.jsx("p",{className:"st-lead",children:"What still stands between this branch and a person's review: the reviewer's verdict, then the risky functions your agent checked."}),i.jsx(ih,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Risky functions your agent checks"}),i.jsxs("p",{className:"st-sub",style:{margin:0,lineHeight:1.6},children:["Rigour picks the riskiest changed functions and asks specific questions about them. Your agent answers with its own model, or you do.",e.reviewed.total>0&&` So far: ${D(e.reviewed.total,"function")} reviewed, ${e.reviewed.fixed} fixed, ${e.reviewed.noIssue} with no issue.`]}),i.jsxs("section",{style:{marginTop:24},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Waiting"}),e.pending.length===0?i.jsx("div",{className:"st-empty",children:"No risky function in the current changes is waiting."}):i.jsx("div",{className:"st-stack",children:e.pending.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{className:"st-mono",style:{fontSize:14},children:n.function}),i.jsxs("span",{className:"st-mono st-sub",children:[n.file,":",n.start]})]}),i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:n.questions.map(r=>i.jsx("li",{children:r},r))})]},`${n.file}:${n.function}`))})]}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Checked"}),e.recent.length===0?i.jsx("div",{className:"st-empty",children:"Nothing reviewed yet. Agents review through rigour_review; you can run rigour review-task."}):i.jsx("div",{className:"st-stack",children:e.recent.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${n.verdict==="fixed"?"ok":""}`,children:n.verdict==="fixed"?"fixed":n.verdict==="no_issue"?"no issue":n.verdict})," ",i.jsx("strong",{className:"st-mono",style:{fontSize:14,marginLeft:8},children:n.function})]}),i.jsxs("span",{className:"st-sub",children:[ah(n.reviewer)," · ",Ot(n.at)]})]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:n.file}),n.note&&i.jsx("div",{style:{marginTop:10,fontSize:14,lineHeight:1.6},children:n.note})]},`${n.file}:${n.function}:${n.at}`))})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:24},children:["Model reviews with your own key: ",e.spend.runs===0?"none run here":`${D(e.spend.runs,"run")}, ${ch(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function ch(e){return e.runs-e.unpricedRuns===0?"cost not reported by the provider":`$${e.costUsd.toFixed(2)} observed${e.unpricedRuns?` (${e.unpricedRuns} without a reported cost)`:""}`}const ma={stopped:{label:"blocked",cls:"warn"},fixed:{label:"fixed",cls:"ok"},checked:{label:"checked",cls:""},reviewed:{label:"reviewed",cls:""},taught:{label:"told",cls:""},pr:{label:"PR",cls:"warn"}},is=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),dh=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),fh=()=>{const{data:e,error:t}=ge("/api/activity");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load activity: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Activity"}),i.jsx("p",{className:"st-lead",children:"Each block is one stretch of agent work. What Rigour blocked or got fixed is listed; routine checks fold away."}),e.sessions.length===0?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"Nothing yet. Activity appears as agents edit code, ask for reviews and finish their work."}):i.jsx("div",{className:"st-stack",style:{marginTop:24,gap:16},children:e.sessions.map(n=>i.jsx(ph,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},ph=({session:e})=>{const[t,n]=z.useState(!1),r=e.counts,l=r.fixed+r.reviewedFixed,s=[l&&`${D(l,"problem")} fixed`,r.stopped&&`${D(r.stopped,"edit")} blocked`,r.pr&&`${D(r.pr,"branch review")} with findings`,r.reviewed&&`${D(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${D(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${D(r.taught,"time")}`].filter(Boolean).join(" · ");return i.jsxs("section",{className:"st-card",style:{padding:0},children:[i.jsxs("div",{style:{padding:"16px 20px",borderBottom:e.highlights.length||t?"1px solid var(--border-dim)":0},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("strong",{children:[dh(e.start),", ",is(e.start),e.start!==e.end?`–${is(e.end)}`:""]}),e.rest.length>0&&i.jsx("button",{className:"st-btn",onClick:()=>n(!t),type:"button",style:{minHeight:32},children:t?"Hide routine":`Show ${D(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:s})]}),[...e.highlights,...t?e.rest:[]].map((o,a)=>i.jsxs("div",{className:"st-row",style:{padding:"12px 20px",borderTop:a?"1px solid var(--border-dim)":0,alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"ok":ma[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":ma[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:tr(o.text)}),o.detail&&i.jsx("div",{className:"st-sub",style:{marginTop:3,lineHeight:1.5},children:o.detail})]}),i.jsx("span",{className:"st-sub",style:{whiteSpace:"nowrap"},children:is(o.at)})]},`${o.at}-${a}`))]})},hh={flag:"this run",env:"environment",user:"yours",team:"team"},mh=({text:e,data:t,canWrite:n,saving:r,problem:l,diff:s,onSave:o})=>{const a=t.effective,u=a.required?`your team requires the ${e.name}`:void 0;return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:e.title}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[e.lead,!n&&" Open Studio from the link the terminal printed to change it here."]}),i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:e.row}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:e.rowHelp})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:a.enabled?"on":"off"})," ",i.jsxs("span",{className:"st-sub",children:["· ",hh[a.source]]}),u&&i.jsxs("span",{title:u,"aria-label":u,children:[" ",i.jsx(al,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),i.jsx(ul,{label:`Your ${e.name}`,withTeam:!0,disabled:!n||r,value:t.user??void 0,options:[{value:!0,label:"on"},{value:!1,label:"off"}],onChange:d=>o({user:d})}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(ul,{label:`Team ${e.name}`,disabled:!n||r,value:t.team,options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}],onChange:d=>o({team:d,create:!t.teamFile})})]})]}),!t.teamFile&&n&&i.jsxs("div",{className:"st-sub",style:{marginTop:8},children:["This repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": setting the team's value creates one, and from then on it uses the team setup."]}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(d=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",d]},d))}),l&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:l})]}),s&&i.jsx(Fc,{diff:s})]})},va={goal:{title:"The goal check",lead:i.jsxs(i.Fragment,{children:["Checks a change against what its pull request says it is for: files outside its ",i.jsx("span",{className:"st-mono",children:"Scope"})," or inside ",i.jsx("span",{className:"st-mono",children:"Out of scope"}),", and"," ",i.jsx("span",{className:"st-mono",children:"Done when"})," items naming a file it never touched, block. No model; a description without these sections is never checked."]}),row:"Check the goal",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--goal"})," and ",i.jsx("span",{className:"st-mono",children:"--no-goal"})," choose for one run."]}),name:"goal check"},outcomes:{title:"The outcome loop",lead:i.jsxs(i.Fragment,{children:["What happened after each pull request merged: CI on its merge commit, later commits and fixes on its files, a revert. Read with"," ",i.jsx("span",{className:"st-mono",children:"rigour outcomes"}),", one GitHub call per merged pull request until its window closes, then never again."]}),row:"Read outcomes",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--outcomes"})," and ",i.jsx("span",{className:"st-mono",children:"--no-outcomes"})," choose for one run."]}),name:"outcome loop"}},ga=({name:e})=>{const t=`/api/switches/${e}`,{data:n,error:r,reload:l}=ge(t),[s,o]=z.useState(!1),[a,u]=z.useState(null),[d,m]=z.useState(null);if(r)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the ",va[e].name,": ",r,"."]});if(!n)return i.jsx("div",{className:"st-sub",children:"Loading…"});const v=async h=>{o(!0),u(null);const y=await Mt(t,"POST",JSON.stringify(h)),w=await y.json().catch(()=>({}));y.ok?"team"in h&&m(w.diff??null):u(w.error??`HTTP ${y.status}`),o(!1),l()};return i.jsx(mh,{text:va[e],data:n,canWrite:El(),saving:s,problem:a,diff:d,onSave:v})},vh={working:"ok","set up":"",broken:"bad",missing:"warn"},gh=()=>{const{data:e,error:t}=ge("/api/setup");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't check setup: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Setup"}),i.jsxs("p",{className:"st-lead",children:["What runs in this repository, and whether Rigour saw it work this week. The same checks run with ",i.jsx("span",{className:"st-mono",children:"rigour doctor"}),"."]}),i.jsx("div",{className:"st-stack",style:{marginTop:24},children:e.checks.map(n=>i.jsxs("div",{className:"st-card st-row",children:[i.jsx("span",{className:`st-chip ${vh[n.state]}`,style:{minWidth:72,textAlign:"center"},children:n.state}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15},children:n.name}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:n.detail})]}),n.fix&&n.state!=="working"&&i.jsx("span",{className:"st-mono st-sub",children:n.fix})]},n.id))}),i.jsx(ga,{name:"goal"}),i.jsx(ga,{name:"outcomes"}),i.jsx(oh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Who double-checks risky code"}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))",marginTop:12},children:[i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your agent's own model"}),i.jsx("span",{children:"Free"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["Your agent calls ",i.jsx("span",{className:"st-mono",children:"rigour_review"})," and answers Rigour's questions with the model you already pay for. No key."]})]}),i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your own API key"}),i.jsx("span",{children:"Pay per use"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["For code written without an agent, and for PR reviews. ",i.jsx("span",{className:"st-mono",children:"rigour settings set-key"}),"; keys are never shown here."]})]})]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Checking…"})})},ya=60,yh=({request:e,onClose:t})=>{const[n,r]=z.useState(ya),[l,s]=z.useState(null);z.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,ya-Math.floor((Date.now()-a)/1e3)));u();const d=window.setInterval(u,1e3);return()=>window.clearInterval(d)},[e.timestamp]);const o=async a=>{const u=await Mt("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():s(u.status===403?"Studio was opened without the link from your terminal, or the request expired.":`That didn't go through (HTTP ${u.status}).`)};return i.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Approve a command",style:{position:"fixed",inset:0,background:"rgba(15, 17, 22, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:i.jsxs("div",{className:"st-card",style:{width:"min(560px, calc(100vw - 32px))",padding:24},children:[i.jsx("strong",{style:{fontSize:18},children:"Your agent wants to run a command"}),i.jsx("pre",{className:"st-code st-mono",style:{padding:"12px 14px",marginTop:14,whiteSpace:"pre-wrap"},children:e.command}),e.firewallDecision&&e.firewallDecision!=="allow"&&i.jsxs("div",{className:"st-sub",style:{marginTop:10},children:["Rigour's pre-check: ",e.firewallDecision,e.firewallReason?`: ${e.firewallReason}`:""]}),i.jsx("div",{className:"st-sub",style:{marginTop:10},children:n>0?`Denied automatically in ${n}s if nobody answers.`:"Time ran out: the request was denied."}),l&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:l}),i.jsxs("div",{className:"st-row",style:{marginTop:18,justifyContent:"flex-end"},children:[i.jsx("button",{className:"st-btn",onClick:t,type:"button",children:"Close"}),i.jsx("button",{className:"st-btn",onClick:()=>o("reject"),type:"button",disabled:n===0,children:"Deny"}),i.jsx("button",{className:"st-btn primary",onClick:()=>o("approve"),type:"button",disabled:n===0,children:"Allow"})]})]})})},xa="rigour-theme-v2",os=[{id:"week",label:"This week",icon:Np,page:e=>i.jsx(Ap,{onNavigate:e})},{id:"progress",label:"Progress",icon:Pp,page:()=>i.jsx(Kp,{})},{id:"only",label:"Only Rigour",icon:Rp,page:()=>i.jsx(Yp,{})},{id:"learns",label:"How it learns",icon:Sp,page:()=>i.jsx(Xp,{})},{id:"context",label:"Agent context",icon:wp,page:()=>i.jsx(Zp,{})},{id:"reviews",label:"Review",icon:Cp,page:()=>i.jsx(uh,{})},{id:"activity",label:"Activity",icon:ti,page:()=>i.jsx(fh,{})},{id:"setup",label:"Setup",icon:Op,page:()=>i.jsx(gh,{})}],xh=6e4;function wh(){const[e,t]=z.useState(()=>{try{return localStorage.getItem(xa)||"light"}catch{return"light"}}),[n,r]=z.useState("week"),[l,s]=z.useState(null),[o,a]=z.useState("connecting"),[u,d]=z.useState(null),[m,v]=z.useState(null),[h,y]=z.useState(!0),[w,k]=z.useState(!1),O=z.useCallback(async()=>{y(!0);try{const c=await fetch("/api/health"),p=await c.json();v(c.ok?p:{error:p.error||`HTTP ${c.status}`})}catch(c){v({error:c instanceof Error?c.message:String(c)})}finally{y(!1)}},[]);z.useEffect(()=>{const c=new EventSource("/api/events");return c.onopen=()=>a("live"),c.onerror=()=>a("offline"),c.onmessage=p=>{try{const g=JSON.parse(p.data),j=!g.timestamp||Date.now()-Date.parse(g.timestamp)<xh;g.type==="interception_requested"&&j&&d(g)}catch{}},fetch("/api/info").then(p=>p.json()).then(s).catch(()=>s(null)),()=>c.close()},[]),z.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(xa,e)}catch{}},[e]);const f=os.find(c=>c.id===n)??os[0];return i.jsxs("div",{className:"studio",children:[i.jsxs("aside",{className:"sidebar glass-shell",children:[i.jsxs("div",{className:"brand",children:[i.jsx("div",{className:"logo-icon",children:i.jsx(_p,{size:18})}),i.jsx("span",{children:"Rigour"}),(l==null?void 0:l.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",l.studioVersion]})]}),i.jsx("nav",{children:os.map(c=>i.jsxs("button",{className:`nav-item ${c.id===f.id?"active":""}`,onClick:()=>r(c.id),type:"button",children:[i.jsx(c.icon,{size:18}),i.jsx("span",{children:c.label})]},c.id))}),l&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:l.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(al,{size:14}),i.jsx("span",{children:l.teamSync?"Synced with your team":"Stored on this machine"})]})})]}),i.jsxs("main",{className:"main-content",children:[i.jsxs("header",{className:"glass-shell",children:[i.jsx("div",{className:"header-left",children:l&&i.jsxs("div",{className:"project-identity",children:[i.jsx(jp,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:l.projectName}),l.projectVersion&&i.jsxs("span",{className:"project-version-pill",children:["v",l.projectVersion]}),l.branch&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:l.branch}),i.jsx("span",{className:"project-path",children:l.projectPath})]})}),i.jsxs("div",{className:"header-right",children:[i.jsx("button",{type:"button",className:"connection-status",onClick:()=>{k(c=>!c),O()},"aria-expanded":w,title:"Studio receives Rigour's events live",children:i.jsxs("div",{className:`status-indicator ${o}`,children:[i.jsx("div",{className:"pulse-emitter"}),i.jsx("span",{children:o==="live"?"Live":o==="offline"?"Offline":"Connecting"})]})}),i.jsx("button",{className:"theme-toggle",onClick:()=>t(c=>c==="dark"?"light":"dark"),"aria-label":"Toggle theme",type:"button",children:e==="dark"?i.jsx(zp,{size:18}):i.jsx(Ep,{size:18})})]})]}),w&&i.jsxs("div",{className:"health-popover",children:[i.jsxs("div",{className:"health-popover-title",children:[i.jsx("strong",{children:"Rigour system health"}),i.jsx("button",{type:"button",onClick:()=>k(!1),"aria-label":"Close health",children:i.jsx($p,{size:15})})]}),i.jsx(Fp,{data:m,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!El()&&i.jsxs("div",{className:"overview-banner",role:"note",children:[i.jsx(al,{size:18}),i.jsxs("div",{children:[i.jsx("strong",{children:"Read-only"}),i.jsx("p",{children:"Open Studio from the link printed in your terminal to dismiss findings, keep lessons or answer an approval."})]})]}),i.jsx(Ip,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(yh,{request:u,onClose:()=>d(null)})]})}Hp();as.createRoot(document.getElementById("root")).render(i.jsx(ii.StrictMode,{children:i.jsx(wh,{})}));
|